cve_id
stringlengths
13
16
hash
stringlengths
40
40
repo_url
stringlengths
25
73
cve_description
stringlengths
64
3.9k
cvss2_base_score
float64
1.2
10
cvss3_base_score
float64
2.2
10
published_date
stringdate
1999-06-23 04:00:00
2024-07-22 18:15:00
severity
stringclasses
4 values
cwe_id
stringclasses
269 values
cwe_name
stringclasses
269 values
cwe_description
stringclasses
268 values
commit_message
stringlengths
0
46.8k
commit_date
stringlengths
25
25
version_tag
stringlengths
3
36
repo_total_files
int64
1
169k
repo_total_commits
int64
2
1.4M
file_paths
listlengths
0
53.6k
language
stringclasses
27 values
diff_stats
stringlengths
2
4.23M
diff_with_context
stringlengths
0
654M
vulnerable_code
stringlengths
0
55.3M
fixed_code
stringlengths
0
622M
security_keywords
listlengths
0
5
CVE-2024-24746
d42a0ebe6632bd0c318560e4293a522634f60594
https://github.com/apache/mynewt-nimble
[{'lang': 'en', 'value': "Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache NimBLE.\xa0\n\nSpecially crafted GATT operation can cause infinite loop in GATT server leading to denial of service in Bluetooth stack or device.\n\nThis issue affects Apache NimBLE: through 1.6.0.\nUsers are recommended to upgrade to version 1.7.0, which fixes the issue."}]
null
null
2024-04-06T12:15Z
nan
CWE-835
Loop with Unreachable Exit Condition ('Infinite Loop')
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
nimble/host: Fix disconnect on host connection timeout We don't need to have double loop and lock-unlock host lock when issuing disconnect. ble_gap_terminate_with_conn() can be used to disconnect and it can be called with already provided conn object under host lock.
2024-02-14 21:27:16 +0100
d42a0ebe
1,024
2
[ "nimble/host/src/ble_hs_conn.c" ]
C
{"nimble/host/src/ble_hs_conn.c": {"lines_added": 49, "lines_deleted": 62}}
diff --git a/nimble/host/src/ble_hs_conn.c b/nimble/host/src/ble_hs_conn.c index 9b7bdbb3..57ba16af 100644 --- a/nimble/host/src/ble_hs_conn.c +++ b/nimble/host/src/ble_hs_conn.c @@ -475,90 +475,77 @@ ble_hs_conn_timer(void) return BLE_HS_FOREVER; #endif struct ble_hs_conn *conn; - ble_npl_time_t now; - int32_t next_exp_in; + ble_npl_time_t now = ble_npl_time_get(); + int32_t next_exp_in = BLE_HS_FOREVER; + int32_t next_exp_in_new; + bool next_exp_in_updated; int32_t time_diff; - uint16_t conn_handle; - for (;;) { - conn_handle = BLE_HS_CONN_HANDLE_NONE; - next_exp_in = BLE_HS_FOREVER; - now = ble_npl_time_get(); + ble_hs_lock(); - ble_hs_lock(); - - /* This loop performs one of two tasks: - * 1. Determine if any connections need to be terminated due to timeout. - * If so, break out of the loop and terminate the connection. This - * function will need to be executed again. - * 2. Otherwise, determine when the next timeout will occur. - */ - SLIST_FOREACH(conn, &ble_hs_conns, bhc_next) { - if (!(conn->bhc_flags & BLE_HS_CONN_F_TERMINATING)) { + /* This loop performs one of two tasks: + * 1. Determine if any connections need to be terminated due to timeout. If + * so connection is disconnected. + * 2. Otherwise, determine when the next timeout will occur. + */ + SLIST_FOREACH(conn, &ble_hs_conns, bhc_next) { + if (!(conn->bhc_flags & BLE_HS_CONN_F_TERMINATING)) { + next_exp_in_updated = false; #if MYNEWT_VAL(BLE_L2CAP_RX_FRAG_TIMEOUT) != 0 - /* Check each connection's rx fragment timer. If too much time - * passes after a partial packet is received, the connection is - * terminated. - */ - if (conn->bhc_rx_chan != NULL) { - time_diff = conn->bhc_rx_timeout - now; - - if (time_diff <= 0) { - /* ACL reassembly has timed out. Remember the connection - * handle so it can be terminated after the mutex is - * unlocked. - */ - conn_handle = conn->bhc_handle; - break; - } - - /* Determine if this connection is the soonest to time out. */ - if (time_diff < next_exp_in) { - next_exp_in = time_diff; - } - } -#endif + /* Check each connection's rx fragment timer. If too much time + * passes after a partial packet is received, the connection is + * terminated. + */ + if (conn->bhc_rx_chan != NULL) { + time_diff = conn->bhc_rx_timeout - now; -#if BLE_HS_ATT_SVR_QUEUED_WRITE_TMO - /* Check each connection's rx queued write timer. If too much - * time passes after a prep write is received, the queue is - * cleared. - */ - time_diff = ble_att_svr_ticks_until_tmo(&conn->bhc_att_svr, now); if (time_diff <= 0) { - /* ACL reassembly has timed out. Remember the connection - * handle so it can be terminated after the mutex is - * unlocked. - */ - conn_handle = conn->bhc_handle; - break; + /* ACL reassembly has timed out.*/ + ble_gap_terminate_with_conn(conn, BLE_ERR_REM_USER_CONN_TERM); + continue; } /* Determine if this connection is the soonest to time out. */ if (time_diff < next_exp_in) { - next_exp_in = time_diff; + next_exp_in_new = time_diff; + next_exp_in_updated = true; } + } #endif + +#if BLE_HS_ATT_SVR_QUEUED_WRITE_TMO + /* Check each connection's rx queued write timer. If too much + * time passes after a prep write is received, the queue is + * cleared. + */ + time_diff = ble_att_svr_ticks_until_tmo(&conn->bhc_att_svr, now); + if (time_diff <= 0) { + /* Queued write has timed out.*/ + ble_gap_terminate_with_conn(conn, BLE_ERR_REM_USER_CONN_TERM); + continue; } - } - ble_hs_unlock(); + /* Determine if this connection is the soonest to time out. */ + if (time_diff < next_exp_in) { + next_exp_in_new = time_diff; + next_exp_in_updated = true; + } +#endif - /* If a connection has timed out, terminate it. We need to repeatedly - * call this function again to determine when the next timeout is. - */ - if (conn_handle != BLE_HS_CONN_HANDLE_NONE) { - ble_gap_terminate(conn_handle, BLE_ERR_REM_USER_CONN_TERM); - continue; + if (next_exp_in_updated) { + next_exp_in = next_exp_in_new; + } } - - return next_exp_in; } + + ble_hs_unlock(); + + return next_exp_in; } int ble_hs_conn_init(void) {
ble_npl_time_t now; int32_t next_exp_in; uint16_t conn_handle; for (;;) { conn_handle = BLE_HS_CONN_HANDLE_NONE; next_exp_in = BLE_HS_FOREVER; now = ble_npl_time_get(); ble_hs_lock(); /* This loop performs one of two tasks: * 1. Determine if any connections need to be terminated due to timeout. * If so, break out of the loop and terminate the connection. This * function will need to be executed again. * 2. Otherwise, determine when the next timeout will occur. */ SLIST_FOREACH(conn, &ble_hs_conns, bhc_next) { if (!(conn->bhc_flags & BLE_HS_CONN_F_TERMINATING)) { /* Check each connection's rx fragment timer. If too much time * passes after a partial packet is received, the connection is * terminated. */ if (conn->bhc_rx_chan != NULL) { time_diff = conn->bhc_rx_timeout - now; if (time_diff <= 0) { /* ACL reassembly has timed out. Remember the connection * handle so it can be terminated after the mutex is * unlocked. */ conn_handle = conn->bhc_handle; break; } /* Determine if this connection is the soonest to time out. */ if (time_diff < next_exp_in) { next_exp_in = time_diff; } } #endif #if BLE_HS_ATT_SVR_QUEUED_WRITE_TMO /* Check each connection's rx queued write timer. If too much * time passes after a prep write is received, the queue is * cleared. */ time_diff = ble_att_svr_ticks_until_tmo(&conn->bhc_att_svr, now); /* ACL reassembly has timed out. Remember the connection * handle so it can be terminated after the mutex is * unlocked. */ conn_handle = conn->bhc_handle; break; next_exp_in = time_diff; } ble_hs_unlock(); /* If a connection has timed out, terminate it. We need to repeatedly * call this function again to determine when the next timeout is. */ if (conn_handle != BLE_HS_CONN_HANDLE_NONE) { ble_gap_terminate(conn_handle, BLE_ERR_REM_USER_CONN_TERM); continue; return next_exp_in;
ble_npl_time_t now = ble_npl_time_get(); int32_t next_exp_in = BLE_HS_FOREVER; int32_t next_exp_in_new; bool next_exp_in_updated; ble_hs_lock(); /* This loop performs one of two tasks: * 1. Determine if any connections need to be terminated due to timeout. If * so connection is disconnected. * 2. Otherwise, determine when the next timeout will occur. */ SLIST_FOREACH(conn, &ble_hs_conns, bhc_next) { if (!(conn->bhc_flags & BLE_HS_CONN_F_TERMINATING)) { next_exp_in_updated = false; /* Check each connection's rx fragment timer. If too much time * passes after a partial packet is received, the connection is * terminated. */ if (conn->bhc_rx_chan != NULL) { time_diff = conn->bhc_rx_timeout - now; /* ACL reassembly has timed out.*/ ble_gap_terminate_with_conn(conn, BLE_ERR_REM_USER_CONN_TERM); continue; next_exp_in_new = time_diff; next_exp_in_updated = true; } #if BLE_HS_ATT_SVR_QUEUED_WRITE_TMO /* Check each connection's rx queued write timer. If too much * time passes after a prep write is received, the queue is * cleared. */ time_diff = ble_att_svr_ticks_until_tmo(&conn->bhc_att_svr, now); if (time_diff <= 0) { /* Queued write has timed out.*/ ble_gap_terminate_with_conn(conn, BLE_ERR_REM_USER_CONN_TERM); continue; /* Determine if this connection is the soonest to time out. */ if (time_diff < next_exp_in) { next_exp_in_new = time_diff; next_exp_in_updated = true; } #endif if (next_exp_in_updated) { next_exp_in = next_exp_in_new; } ble_hs_unlock(); return next_exp_in;
[]
CVE-2020-7763
b5d2da2639a49a95e0bdb3bc0c987cb6406b8259
https://github.com/pofider/phantom-html-to-pdf
[{'lang': 'en', 'value': 'This affects the package phantom-html-to-pdf before 0.6.1.'}]
5
7.5
2020-11-05T14:15Z
MEDIUM
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
fix access to files without protocol
2020-11-02 15:51:26 +0100
b5d2da2
20
2
[ "lib/scripts/conversionScriptPart.js", "test/test.js" ]
JavaScript
{"lib/scripts/conversionScriptPart.js": {"lines_added": 7, "lines_deleted": 7}, "test/test.js": {"lines_added": 33, "lines_deleted": 18}}
diff --git a/lib/scripts/conversionScriptPart.js b/lib/scripts/conversionScriptPart.js index 20c8f42..044ab07 100644 --- a/lib/scripts/conversionScriptPart.js +++ b/lib/scripts/conversionScriptPart.js @@ -17,23 +17,23 @@ if(body.cookies.length > 0) { page.onResourceRequested = function (request, networkRequest) { console.log('Request ' + request.url); if (request.url.lastIndexOf(body.url, 0) === 0) { return; - } - - //potentially dangerous request - if (request.url.lastIndexOf("file:///", 0) === 0 && !body.allowLocalFilesAccess) { - networkRequest.abort(); - return; - } + } //to support cdn like format //cdn.jquery... if (request.url.lastIndexOf("file://", 0) === 0 && request.url.lastIndexOf("file:///", 0) !== 0) { networkRequest.changeUrl(request.url.replace("file://", "http://")); } + //potentially dangerous request + if (request.url.lastIndexOf("http://", 0) !== 0 && request.url.lastIndexOf("https://", 0) && !body.allowLocalFilesAccess) { + networkRequest.abort(); + return; + } + if (body.waitForJS && request.url.lastIndexOf("http://intruct-javascript-ending", 0) === 0) { pageJSisDone = true; } }; diff --git a/test/test.js b/test/test.js index 2d74f19..3bc6a0d 100644 --- a/test/test.js +++ b/test/test.js @@ -1,8 +1,8 @@ -var should = require("should"), +var should = require("should"), path = require("path"), - fs = require("fs"), + fs = require("fs"), phantomjs = require("phantomjs"), phantomjs2 = require("phantomjs-prebuilt") tmpDir = path.join(__dirname, "temp"), conversion = require("../lib/conversion.js")({ timeout: 10000, @@ -93,25 +93,11 @@ describe("phantom html to pdf", function () { res.stream.should.have.property("readable"); done(); }); }); - }); - - it('should create a pdf file ignoring ssl errors', function(done) { - conversion({ - url: 'https://sygris.com' - }, function(err, res) { - if (err) { - return done(err); - } - - res.numberOfPages.should.be.eql(1); - res.stream.should.have.property("readable"); - done(); - }); - }); + }); it('should wait for page js execution', function(done) { conversion({ html: '<h1>aa</h1><script>window.PHANTOM_HTML_TO_PDF_READY = true;</script>', waitForJS: true @@ -199,11 +185,11 @@ describe("phantom html to pdf", function () { }, function(err, res) { if (err) { return done(err); } - JSON.stringify(res.logs).should.containEql('foo'); + ; done(); }); }); it('should trim logs for long base64 encoded images', function(done) { @@ -259,10 +245,39 @@ describe("phantom html to pdf", function () { return done(err); JSON.stringify(res.logs).should.containEql('test-cookie1=test-value1; test-cookie2=test-value2'); done(); }) }); + + it('should reject local files', function(done) { + conversion({ + html: `<script> + document.write(window.location='${__filename.replace(/\\/g, '/')}') + </script>` + }, function(err, res) { + if (err) { + return done(err); + } + JSON.stringify(res.logs).should.containEql('Unable to load resource') + done() + }); + }); + + it('should allow local files when allowLocalFilesAccess', function(done) { + conversion({ + allowLocalFilesAccess: true, + html: `<script> + document.write(window.location='${__filename.replace(/\\/g, '/')}') + </script>` + }, function(err, res) { + if (err) { + return done(err); + } + JSON.stringify(res.logs).should.not.containEql('Unable to load resource') + done() + }); + }); } rmDir = function (dirPath) { if (!fs.existsSync(dirPath)) fs.mkdirSync(dirPath);
} //potentially dangerous request if (request.url.lastIndexOf("file:///", 0) === 0 && !body.allowLocalFilesAccess) { networkRequest.abort(); return; } var should = require("should"), fs = require("fs"), }); it('should create a pdf file ignoring ssl errors', function(done) { conversion({ url: 'https://sygris.com' }, function(err, res) { if (err) { return done(err); } res.numberOfPages.should.be.eql(1); res.stream.should.have.property("readable"); done(); }); }); JSON.stringify(res.logs).should.containEql('foo');
} //potentially dangerous request if (request.url.lastIndexOf("http://", 0) !== 0 && request.url.lastIndexOf("https://", 0) && !body.allowLocalFilesAccess) { networkRequest.abort(); return; } var should = require("should"), fs = require("fs"), }); ; it('should reject local files', function(done) { conversion({ html: `<script> document.write(window.location='${__filename.replace(/\\/g, '/')}') </script>` }, function(err, res) { if (err) { return done(err); } JSON.stringify(res.logs).should.containEql('Unable to load resource') done() }); }); it('should allow local files when allowLocalFilesAccess', function(done) { conversion({ allowLocalFilesAccess: true, html: `<script> document.write(window.location='${__filename.replace(/\\/g, '/')}') </script>` }, function(err, res) { if (err) { return done(err); } JSON.stringify(res.logs).should.not.containEql('Unable to load resource') done() }); });
[]
CVE-2023-51665
728496010cbfcee5b7b54001c9f79e02ede30d82
https://github.com/advplyr/audiobookshelf
[{'lang': 'en', 'value': 'Audiobookshelf is a self-hosted audiobook and podcast server. Prior to 2.7.0, Audiobookshelf is vulnerable to unauthenticated blind server-side request (SSRF) vulnerability in Auth.js. This vulnerability has been addressed in version 2.7.0. There are no known workarounds for this vulnerability.\n\n'}]
null
7.5
2023-12-27T18:15Z
nan
CWE-918
Server-Side Request Forgery (SSRF)
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Update:/auth/openid/config API endpoint to require admin user and validate issuer URL
2023-12-17 10:41:39 -0600
72849601
934
2
[ "server/Auth.js" ]
JavaScript
{"server/Auth.js": {"lines_added": 27, "lines_deleted": 6}}
diff --git a/server/Auth.js b/server/Auth.js index 0a282c9c..d2334de2 100644 --- a/server/Auth.js +++ b/server/Auth.js @@ -294,11 +294,11 @@ class Auth { // We will allow if it is in the whitelist, by saving it into this.openIdAuthSession and setting the redirect uri to /auth/openid/mobile-redirect // where we will handle the redirect to it if (req.query.redirect_uri) { // Check if the redirect_uri is in the whitelist if (Database.serverSettings.authOpenIDMobileRedirectURIs.includes(req.query.redirect_uri) || - (Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) { + (Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) { oidcStrategy._params.redirect_uri = new URL(`${protocol}://${req.get('host')}/auth/openid/mobile-redirect`).toString() mobile_redirect_uri = req.query.redirect_uri } else { Logger.debug(`[Auth] Invalid redirect_uri=${req.query.redirect_uri} - not in whitelist`) return res.status(400).send('Invalid redirect_uri') @@ -379,11 +379,11 @@ class Auth { // It will redirect to an app-link like audiobookshelf://oauth router.get('/auth/openid/mobile-redirect', (req, res) => { try { // Extract the state parameter from the request const { state, code } = req.query - + // Check if the state provided is in our list if (!state || !this.openIdAuthSession.has(state)) { Logger.error('[Auth] /auth/openid/mobile-redirect route: State parameter mismatch') return res.status(400).send('State parameter mismatch') } @@ -467,21 +467,42 @@ class Auth { }, // on a successfull login: read the cookies and react like the client requested (callback or json) this.handleLoginSuccessBasedOnCookie.bind(this)) /** - * Used to auto-populate the openid URLs in config/authentication + * Helper route used to auto-populate the openid URLs in config/authentication + * Takes an issuer URL as a query param and requests the config data at "/.well-known/openid-configuration" + * + * @example /auth/openid/config?issuer=http://192.168.1.66:9000/application/o/audiobookshelf/ */ - router.get('/auth/openid/config', async (req, res) => { + router.get('/auth/openid/config', this.isAuthenticated, async (req, res) => { + if (!req.user.isAdminOrUp) { + Logger.error(`[Auth] Non-admin user "${req.user.username}" attempted to get issuer config`) + return res.sendStatus(403) + } + if (!req.query.issuer) { return res.status(400).send('Invalid request. Query param \'issuer\' is required') } + + // Strip trailing slash let issuerUrl = req.query.issuer if (issuerUrl.endsWith('/')) issuerUrl = issuerUrl.slice(0, -1) - const configUrl = `${issuerUrl}/.well-known/openid-configuration` - axios.get(configUrl).then(({ data }) => { + // Append config pathname and validate URL + let configUrl = null + try { + configUrl = new URL(`${issuerUrl}/.well-known/openid-configuration`) + if (!configUrl.pathname.endsWith('/.well-known/openid-configuration')) { + throw new Error('Invalid pathname') + } + } catch (error) { + Logger.error(`[Auth] Failed to get openid configuration. Invalid URL "${configUrl}"`, error) + return res.status(400).send('Invalid request. Query param \'issuer\' is invalid') + } + + axios.get(configUrl.toString()).then(({ data }) => { res.json({ issuer: data.issuer, authorization_endpoint: data.authorization_endpoint, token_endpoint: data.token_endpoint, userinfo_endpoint: data.userinfo_endpoint,
(Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) { * Used to auto-populate the openid URLs in config/authentication router.get('/auth/openid/config', async (req, res) => { const configUrl = `${issuerUrl}/.well-known/openid-configuration` axios.get(configUrl).then(({ data }) => {
(Database.serverSettings.authOpenIDMobileRedirectURIs.length === 1 && Database.serverSettings.authOpenIDMobileRedirectURIs[0] === '*')) { * Helper route used to auto-populate the openid URLs in config/authentication * Takes an issuer URL as a query param and requests the config data at "/.well-known/openid-configuration" * * @example /auth/openid/config?issuer=http://192.168.1.66:9000/application/o/audiobookshelf/ router.get('/auth/openid/config', this.isAuthenticated, async (req, res) => { if (!req.user.isAdminOrUp) { Logger.error(`[Auth] Non-admin user "${req.user.username}" attempted to get issuer config`) return res.sendStatus(403) } // Strip trailing slash // Append config pathname and validate URL let configUrl = null try { configUrl = new URL(`${issuerUrl}/.well-known/openid-configuration`) if (!configUrl.pathname.endsWith('/.well-known/openid-configuration')) { throw new Error('Invalid pathname') } } catch (error) { Logger.error(`[Auth] Failed to get openid configuration. Invalid URL "${configUrl}"`, error) return res.status(400).send('Invalid request. Query param \'issuer\' is invalid') } axios.get(configUrl.toString()).then(({ data }) => {
[ "validation", "authentication" ]
CVE-2023-51697
f2f2ea161ca0701e1405e737b0df0f96296e4f64
https://github.com/advplyr/audiobookshelf
[{'lang': 'en', 'value': 'Audiobookshelf is a self-hosted audiobook and podcast server. Prior to 2.7.0, Audiobookshelf is vulnerable to unauthenticated blind server-side request (SSRF) vulnerability in `podcastUtils.js`. This vulnerability has been addressed in version 2.7.0. There are no known workarounds for this vulnerability.\n\n'}]
null
7.5
2023-12-27T18:15Z
nan
CWE-918
Server-Side Request Forgery (SSRF)
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Update:API endpoint /podcasts/feed validates rssFeed URL and uses SSRF req filter
2023-12-17 12:00:11 -0600
f2f2ea16
934
2
[ "server/controllers/PodcastController.js", "server/utils/index.js", "server/utils/podcastUtils.js" ]
JavaScript
{"server/controllers/PodcastController.js": {"lines_added": 12, "lines_deleted": 2}, "server/utils/index.js": {"lines_added": 22, "lines_deleted": 6}, "server/utils/podcastUtils.js": {"lines_added": 23, "lines_deleted": 5}}
diff --git a/server/controllers/PodcastController.js b/server/controllers/PodcastController.js index 035f9152..e476efd5 100644 --- a/server/controllers/PodcastController.js +++ b/server/controllers/PodcastController.js @@ -4,10 +4,11 @@ const Database = require('../Database') const fs = require('../libs/fsExtra') const { getPodcastFeed, findMatchingEpisodes } = require('../utils/podcastUtils') const { getFileTimestampsWithIno, filePathToPOSIX } = require('../utils/fileUtils') +const { validateUrl } = require('../utils/index') const Scanner = require('../scanner/Scanner') const CoverManager = require('../managers/CoverManager') const LibraryItem = require('../objects/LibraryItem') @@ -100,19 +101,28 @@ class PodcastController { if (libraryItem.media.autoDownloadEpisodes) { this.cronManager.checkUpdatePodcastCron(libraryItem) } } + /** + * POST: /api/podcasts/feed + * + * @typedef getPodcastFeedReqBody + * @property {string} rssFeed + * + * @param {import('express').Request<{}, {}, getPodcastFeedReqBody, {}} req + * @param {import('express').Response} res + */ async getPodcastFeed(req, res) { if (!req.user.isAdminOrUp) { Logger.error(`[PodcastController] Non-admin user "${req.user.username}" attempted to get podcast feed`) return res.sendStatus(403) } - var url = req.body.rssFeed + const url = validateUrl(req.body.rssFeed) if (!url) { - return res.status(400).send('Bad request') + return res.status(400).send('Invalid request body. "rssFeed" must be a valid URL') } const podcast = await getPodcastFeed(url) if (!podcast) { return res.status(404).send('Podcast RSS feed request failed or invalid response data') diff --git a/server/utils/index.js b/server/utils/index.js index 0377b173..29a65885 100644 --- a/server/utils/index.js +++ b/server/utils/index.js @@ -9,28 +9,28 @@ const levenshteinDistance = (str1, str2, caseSensitive = false) => { if (!caseSensitive) { str1 = str1.toLowerCase() str2 = str2.toLowerCase() } const track = Array(str2.length + 1).fill(null).map(() => - Array(str1.length + 1).fill(null)); + Array(str1.length + 1).fill(null)) for (let i = 0; i <= str1.length; i += 1) { - track[0][i] = i; + track[0][i] = i } for (let j = 0; j <= str2.length; j += 1) { - track[j][0] = j; + track[j][0] = j } for (let j = 1; j <= str2.length; j += 1) { for (let i = 1; i <= str1.length; i += 1) { - const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1; + const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1 track[j][i] = Math.min( track[j][i - 1] + 1, // deletion track[j - 1][i] + 1, // insertion track[j - 1][i - 1] + indicator, // substitution - ); + ) } } - return track[str2.length][str1.length]; + return track[str2.length][str1.length] } module.exports.levenshteinDistance = levenshteinDistance module.exports.isObject = (val) => { return val !== null && typeof val === 'object' @@ -202,6 +202,22 @@ module.exports.asciiOnlyToLowerCase = (str) => { * @returns {string} */ module.exports.escapeRegExp = (str) => { if (typeof str !== 'string') return '' return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') +} + +/** + * Validate url string with URL class + * + * @param {string} rawUrl + * @returns {string} null if invalid + */ +module.exports.validateUrl = (rawUrl) => { + if (!rawUrl || typeof rawUrl !== 'string') return null + try { + return new URL(rawUrl).toString() + } catch (error) { + Logger.error(`Invalid URL "${rawUrl}"`, error) + return null + } } \ No newline at end of file diff --git a/server/utils/podcastUtils.js b/server/utils/podcastUtils.js index 87b080d7..819ec914 100644 --- a/server/utils/podcastUtils.js +++ b/server/utils/podcastUtils.js @@ -1,7 +1,8 @@ -const Logger = require('../Logger') const axios = require('axios') +const ssrfFilter = require('ssrf-req-filter') +const Logger = require('../Logger') const { xmlToJSON, levenshteinDistance } = require('./index') const htmlSanitizer = require('../utils/htmlSanitizer') function extractFirstArrayItem(json, key) { if (!json[key]?.length) return null @@ -214,13 +215,30 @@ module.exports.parsePodcastRssFeedXml = async (xml, excludeEpisodeMetadata = fal podcast } } } +/** + * Get podcast RSS feed as JSON + * Uses SSRF filter to prevent internal URLs + * + * @param {string} feedUrl + * @param {boolean} [excludeEpisodeMetadata=false] + * @returns {Promise} + */ module.exports.getPodcastFeed = (feedUrl, excludeEpisodeMetadata = false) => { Logger.debug(`[podcastUtils] getPodcastFeed for "${feedUrl}"`) - return axios.get(feedUrl, { timeout: 12000, responseType: 'arraybuffer', headers: { Accept: 'application/rss+xml' } }).then(async (data) => { + + return axios({ + url: feedUrl, + method: 'GET', + timeout: 12000, + responseType: 'arraybuffer', + headers: { Accept: 'application/rss+xml' }, + httpAgent: ssrfFilter(feedUrl), + httpsAgent: ssrfFilter(feedUrl) + }).then(async (data) => { // Adding support for ios-8859-1 encoded RSS feeds. // See: https://github.com/advplyr/audiobookshelf/issues/1489 const contentType = data.headers?.['content-type'] || '' // e.g. text/xml; charset=iso-8859-1 if (contentType.toLowerCase().includes('iso-8859-1')) { @@ -229,25 +247,25 @@ module.exports.getPodcastFeed = (feedUrl, excludeEpisodeMetadata = false) => { data.data = data.data.toString() } if (!data?.data) { Logger.error(`[podcastUtils] getPodcastFeed: Invalid podcast feed request response (${feedUrl})`) - return false + return null } Logger.debug(`[podcastUtils] getPodcastFeed for "${feedUrl}" success - parsing xml`) const payload = await this.parsePodcastRssFeedXml(data.data, excludeEpisodeMetadata) if (!payload) { - return false + return null } // RSS feed may be a private RSS feed payload.podcast.metadata.feedUrl = feedUrl return payload.podcast }).catch((error) => { Logger.error('[podcastUtils] getPodcastFeed Error', error) - return false + return null }) } // Return array of episodes ordered by closest match (Levenshtein distance of 6 or less) module.exports.findMatchingEpisodes = async (feedUrl, searchTitle) => {
var url = req.body.rssFeed return res.status(400).send('Bad request') Array(str1.length + 1).fill(null)); track[0][i] = i; track[j][0] = j; const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1; ); return track[str2.length][str1.length]; const Logger = require('../Logger') return axios.get(feedUrl, { timeout: 12000, responseType: 'arraybuffer', headers: { Accept: 'application/rss+xml' } }).then(async (data) => { return false return false return false
const { validateUrl } = require('../utils/index') /** * POST: /api/podcasts/feed * * @typedef getPodcastFeedReqBody * @property {string} rssFeed * * @param {import('express').Request<{}, {}, getPodcastFeedReqBody, {}} req * @param {import('express').Response} res */ const url = validateUrl(req.body.rssFeed) return res.status(400).send('Invalid request body. "rssFeed" must be a valid URL') Array(str1.length + 1).fill(null)) track[0][i] = i track[j][0] = j const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1 ) return track[str2.length][str1.length] } /** * Validate url string with URL class * * @param {string} rawUrl * @returns {string} null if invalid */ module.exports.validateUrl = (rawUrl) => { if (!rawUrl || typeof rawUrl !== 'string') return null try { return new URL(rawUrl).toString() } catch (error) { Logger.error(`Invalid URL "${rawUrl}"`, error) return null } const ssrfFilter = require('ssrf-req-filter') const Logger = require('../Logger') /** * Get podcast RSS feed as JSON * Uses SSRF filter to prevent internal URLs * * @param {string} feedUrl * @param {boolean} [excludeEpisodeMetadata=false] * @returns {Promise} */ return axios({ url: feedUrl, method: 'GET', timeout: 12000, responseType: 'arraybuffer', headers: { Accept: 'application/rss+xml' }, httpAgent: ssrfFilter(feedUrl), httpsAgent: ssrfFilter(feedUrl) }).then(async (data) => { return null return null return null
[ "sanitization", "validation" ]
CVE-2024-35236
ce7f891b9b2cb57c6644aaf96f89a8bda6307664
https://github.com/advplyr/audiobookshelf
[{'lang': 'en', 'value': 'Audiobookshelf is a self-hosted audiobook and podcast server. Prior to version 2.10.0, opening an ebook with malicious scripts inside leads to code execution inside the browsing context. Attacking a user with high privileges (upload, creation of libraries) can lead to remote code execution (RCE) in the worst case. This was tested on version 2.9.0 on Windows, but an arbitrary file write is powerful enough as is and should easily lead to RCE on Linux, too. Version 2.10.0 contains a patch for the vulnerability.'}]
null
null
2024-05-27T17:15Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
Update:Disable epubs from running scripts by default, add library setting to enable it GHSA-7j99-76cj-q9pg
2024-05-26 16:01:08 -0500
ce7f891b9
934
2
[ "client/components/modals/libraries/LibrarySettings.vue", "client/components/readers/EpubReader.vue", "client/store/libraries.js", "client/strings/bg.json", "client/strings/bn.json", "client/strings/cs.json", "client/strings/da.json", "client/strings/de.json", "client/strings/en-us.json", "client/strings/es.json", "client/strings/et.json", "client/strings/fr.json", "client/strings/gu.json", "client/strings/he.json", "client/strings/hi.json", "client/strings/hr.json", "client/strings/hu.json", "client/strings/it.json", "client/strings/lt.json", "client/strings/nl.json", "client/strings/no.json", "client/strings/pl.json", "client/strings/pt-br.json", "client/strings/ru.json", "client/strings/sv.json", "client/strings/uk.json", "client/strings/vi-vn.json", "client/strings/zh-cn.json", "client/strings/zh-tw.json", "server/objects/settings/LibrarySettings.js" ]
JSON
{"client/components/modals/libraries/LibrarySettings.vue": {"lines_added": 15, "lines_deleted": 1}, "client/components/readers/EpubReader.vue": {"lines_added": 4, "lines_deleted": 1}, "client/store/libraries.js": {"lines_added": 29, "lines_deleted": 25}, "client/strings/bg.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/bn.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/cs.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/da.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/de.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/en-us.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/es.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/et.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/fr.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/gu.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/he.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/hi.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/hr.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/hu.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/it.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/lt.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/nl.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/no.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/pl.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/pt-br.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/ru.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/sv.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/uk.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/vi-vn.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/zh-cn.json": {"lines_added": 2, "lines_deleted": 0}, "client/strings/zh-tw.json": {"lines_added": 2, "lines_deleted": 0}, "server/objects/settings/LibrarySettings.js": {"lines_added": 4, "lines_deleted": 1}}
diff --git a/client/components/modals/libraries/LibrarySettings.vue b/client/components/modals/libraries/LibrarySettings.vue index 4183c4fe4..3808ed07b 100644 --- a/client/components/modals/libraries/LibrarySettings.vue +++ b/client/components/modals/libraries/LibrarySettings.vue @@ -58,10 +58,21 @@ <span class="material-icons icon-text text-sm">info_outlined</span> </p> </ui-tooltip> </div> </div> + <div v-if="isBookLibrary" class="py-3"> + <div class="flex items-center"> + <ui-toggle-switch v-model="epubsAllowScriptedContent" @input="formUpdated" /> + <ui-tooltip :text="$strings.LabelSettingsEpubsAllowScriptedContentHelp"> + <p class="pl-4 text-base"> + {{ $strings.LabelSettingsEpubsAllowScriptedContent }} + <span class="material-icons icon-text text-sm">info_outlined</span> + </p> + </ui-tooltip> + </div> + </div> <div v-if="isPodcastLibrary" class="py-3"> <ui-dropdown :label="$strings.LabelPodcastSearchRegion" v-model="podcastSearchRegion" :items="$podcastSearchRegionOptions" small class="max-w-72" menu-max-height="200px" @input="formUpdated" /> </div> </div> </template> @@ -81,10 +92,11 @@ export default { useSquareBookCovers: false, enableWatcher: false, skipMatchingMediaWithAsin: false, skipMatchingMediaWithIsbn: false, audiobooksOnly: false, + epubsAllowScriptedContent: false, hideSingleBookSeries: false, onlyShowLaterBooksInContinueSeries: false, podcastSearchRegion: 'us' } }, @@ -116,10 +128,11 @@ export default { coverAspectRatio: this.useSquareBookCovers ? this.$constants.BookCoverAspectRatio.SQUARE : this.$constants.BookCoverAspectRatio.STANDARD, disableWatcher: !this.enableWatcher, skipMatchingMediaWithAsin: !!this.skipMatchingMediaWithAsin, skipMatchingMediaWithIsbn: !!this.skipMatchingMediaWithIsbn, audiobooksOnly: !!this.audiobooksOnly, + epubsAllowScriptedContent: !!this.epubsAllowScriptedContent, hideSingleBookSeries: !!this.hideSingleBookSeries, onlyShowLaterBooksInContinueSeries: !!this.onlyShowLaterBooksInContinueSeries, podcastSearchRegion: this.podcastSearchRegion } } @@ -131,15 +144,16 @@ export default { this.useSquareBookCovers = this.librarySettings.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE this.enableWatcher = !this.librarySettings.disableWatcher this.skipMatchingMediaWithAsin = !!this.librarySettings.skipMatchingMediaWithAsin this.skipMatchingMediaWithIsbn = !!this.librarySettings.skipMatchingMediaWithIsbn this.audiobooksOnly = !!this.librarySettings.audiobooksOnly + this.epubsAllowScriptedContent = !!this.librarySettings.epubsAllowScriptedContent this.hideSingleBookSeries = !!this.librarySettings.hideSingleBookSeries this.onlyShowLaterBooksInContinueSeries = !!this.librarySettings.onlyShowLaterBooksInContinueSeries this.podcastSearchRegion = this.librarySettings.podcastSearchRegion || 'us' } }, mounted() { this.init() } } -</script> \ No newline at end of file +</script> diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index 3941c0d81..819f5beb1 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue @@ -61,10 +61,13 @@ export default { }, /** @returns {string} */ libraryItemId() { return this.libraryItem?.id }, + allowScriptedContent() { + return this.$store.getters['libraries/getLibraryEpubsAllowScriptedContent'] + }, hasPrev() { return !this.rendition?.location?.atStart }, hasNext() { return !this.rendition?.location?.atEnd @@ -314,11 +317,11 @@ export default { /** @type {ePub.Rendition} */ reader.rendition = reader.book.renderTo('viewer', { width: this.readerWidth, height: this.readerHeight * 0.8, - allowScriptedContent: true, + allowScriptedContent: this.allowScriptedContent, spread: 'auto', snap: true, manager: 'continuous', flow: 'paginated' }) diff --git a/client/store/libraries.js b/client/store/libraries.js index 1d13d6322..f56bdad67 100644 --- a/client/store/libraries.js +++ b/client/store/libraries.js @@ -14,27 +14,27 @@ export const state = () => ({ userPlaylists: [], ereaderDevices: [] }) export const getters = { - getCurrentLibrary: state => { - return state.libraries.find(lib => lib.id === state.currentLibraryId) + getCurrentLibrary: (state) => { + return state.libraries.find((lib) => lib.id === state.currentLibraryId) }, getCurrentLibraryName: (state, getters) => { var currentLibrary = getters.getCurrentLibrary if (!currentLibrary) return '' return currentLibrary.name }, getCurrentLibraryMediaType: (state, getters) => { if (!getters.getCurrentLibrary) return null return getters.getCurrentLibrary.mediaType }, - getSortedLibraries: state => () => { - return state.libraries.map(lib => ({ ...lib })).sort((a, b) => a.displayOrder - b.displayOrder) + getSortedLibraries: (state) => () => { + return state.libraries.map((lib) => ({ ...lib })).sort((a, b) => a.displayOrder - b.displayOrder) }, - getLibraryProvider: state => libraryId => { - var library = state.libraries.find(l => l.id === libraryId) + getLibraryProvider: (state) => (libraryId) => { + var library = state.libraries.find((l) => l.id === libraryId) if (!library) return null return library.provider }, getNextAccessibleLibrary: (state, getters, rootState, rootGetters) => { var librariesSorted = getters['getSortedLibraries']() @@ -58,26 +58,30 @@ export const getters = { return getters.getCurrentLibrarySettings.coverAspectRatio === Constants.BookCoverAspectRatio.STANDARD ? 1.6 : 1 }, getLibraryIsAudiobooksOnly: (state, getters) => { return !!getters.getCurrentLibrarySettings?.audiobooksOnly }, - getCollection: state => id => { - return state.collections.find(c => c.id === id) + getLibraryEpubsAllowScriptedContent: (state, getters) => { + return !!getters.getCurrentLibrarySettings?.epubsAllowScriptedContent }, - getPlaylist: state => id => { - return state.userPlaylists.find(p => p.id === id) + getCollection: (state) => (id) => { + return state.collections.find((c) => c.id === id) + }, + getPlaylist: (state) => (id) => { + return state.userPlaylists.find((p) => p.id === id) } } export const actions = { requestLibraryScan({ state, commit }, { libraryId, force }) { return this.$axios.$post(`/api/libraries/${libraryId}/scan?force=${force ? 1 : 0}`) }, loadFolders({ state, commit }) { if (state.folders.length) { const lastCheck = Date.now() - state.folderLastUpdate - if (lastCheck < 1000 * 5) { // 5 seconds + if (lastCheck < 1000 * 5) { + // 5 seconds // Folders up to date return state.folders } } commit('setFoldersLastUpdate') @@ -202,11 +206,11 @@ export const mutations = { state.listeners.forEach((listener) => { listener.meth() }) }, addUpdate(state, library) { - var index = state.libraries.findIndex(a => a.id === library.id) + var index = state.libraries.findIndex((a) => a.id === library.id) if (index >= 0) { state.libraries.splice(index, 1, library) } else { state.libraries.push(library) } @@ -214,33 +218,33 @@ export const mutations = { state.listeners.forEach((listener) => { listener.meth() }) }, remove(state, library) { - state.libraries = state.libraries.filter(a => a.id !== library.id) + state.libraries = state.libraries.filter((a) => a.id !== library.id) state.listeners.forEach((listener) => { listener.meth() }) }, addListener(state, listener) { - var index = state.listeners.findIndex(l => l.id === listener.id) + var index = state.listeners.findIndex((l) => l.id === listener.id) if (index >= 0) state.listeners.splice(index, 1, listener) else state.listeners.push(listener) }, removeListener(state, listenerId) { - state.listeners = state.listeners.filter(l => l.id !== listenerId) + state.listeners = state.listeners.filter((l) => l.id !== listenerId) }, setLibraryFilterData(state, filterData) { state.filterData = filterData }, setNumUserPlaylists(state, numUserPlaylists) { state.numUserPlaylists = numUserPlaylists }, removeSeriesFromFilterData(state, seriesId) { if (!seriesId || !state.filterData) return - state.filterData.series = state.filterData.series.filter(se => se.id !== seriesId) + state.filterData.series = state.filterData.series.filter((se) => se.id !== seriesId) }, updateFilterDataWithItem(state, libraryItem) { if (!libraryItem || !state.filterData) return if (state.currentLibraryId !== libraryItem.libraryId) return /* @@ -258,29 +262,29 @@ export const mutations = { const mediaMetadata = libraryItem.media.metadata // Add/update book authors if (mediaMetadata.authors?.length) { mediaMetadata.authors.forEach((author) => { - const indexOf = state.filterData.authors.findIndex(au => au.id === author.id) + const indexOf = state.filterData.authors.findIndex((au) => au.id === author.id) if (indexOf >= 0) { state.filterData.authors.splice(indexOf, 1, author) } else { state.filterData.authors.push(author) - state.filterData.authors.sort((a, b) => (a.name || '').localeCompare((b.name || ''))) + state.filterData.authors.sort((a, b) => (a.name || '').localeCompare(b.name || '')) } }) } // Add/update series if (mediaMetadata.series?.length) { mediaMetadata.series.forEach((series) => { - const indexOf = state.filterData.series.findIndex(se => se.id === series.id) + const indexOf = state.filterData.series.findIndex((se) => se.id === series.id) if (indexOf >= 0) { state.filterData.series.splice(indexOf, 1, { id: series.id, name: series.name }) } else { state.filterData.series.push({ id: series.id, name: series.name }) - state.filterData.series.sort((a, b) => (a.name || '').localeCompare((b.name || ''))) + state.filterData.series.sort((a, b) => (a.name || '').localeCompare(b.name || '')) } }) } // Add genres @@ -327,36 +331,36 @@ export const mutations = { }, setCollections(state, collections) { state.collections = collections }, addUpdateCollection(state, collection) { - var index = state.collections.findIndex(c => c.id === collection.id) + var index = state.collections.findIndex((c) => c.id === collection.id) if (index >= 0) { state.collections.splice(index, 1, collection) } else { state.collections.push(collection) } }, removeCollection(state, collection) { - state.collections = state.collections.filter(c => c.id !== collection.id) + state.collections = state.collections.filter((c) => c.id !== collection.id) }, setUserPlaylists(state, playlists) { state.userPlaylists = playlists state.numUserPlaylists = playlists.length }, addUpdateUserPlaylist(state, playlist) { - const index = state.userPlaylists.findIndex(p => p.id === playlist.id) + const index = state.userPlaylists.findIndex((p) => p.id === playlist.id) if (index >= 0) { state.userPlaylists.splice(index, 1, playlist) } else { state.userPlaylists.push(playlist) state.numUserPlaylists++ } }, removeUserPlaylist(state, playlist) { - state.userPlaylists = state.userPlaylists.filter(p => p.id !== playlist.id) + state.userPlaylists = state.userPlaylists.filter((p) => p.id !== playlist.id) state.numUserPlaylists = state.userPlaylists.length }, setEReaderDevices(state, ereaderDevices) { state.ereaderDevices = ereaderDevices } -} \ No newline at end of file +} diff --git a/client/strings/bg.json b/client/strings/bg.json index f8c9c5948..0858856e4 100644 --- a/client/strings/bg.json +++ b/client/strings/bg.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Изключи наблюдателя за библиотека", "LabelSettingsDisableWatcherHelp": "Изключва автоматичното добавяне/обновяване на елементи, когато се открият промени във файловете. *Изисква рестарт на сървъра", "LabelSettingsEnableWatcher": "Включи наблюдателя", "LabelSettingsEnableWatcherForLibrary": "Включи наблюдателя за библиотека", "LabelSettingsEnableWatcherHelp": "Включва автоматичното добавяне/обновяване на елементи, когато се открият промени във файловете. *Изисква рестарт на сървъра", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Експериментални Функции", "LabelSettingsExperimentalFeaturesHelp": "Функции в разработка, които могат да изискват вашето мнение и помощ за тестване. Кликнете за да отворите дискусия в github.", "LabelSettingsFindCovers": "Намери Корици", "LabelSettingsFindCoversHelp": "Ако аудиокнигата ви няма вградена корица или изображение на корицата в папката, скенерът ще опита да намери корица.<br>Забележка: Това ще удължи времето за сканиране", "LabelSettingsHideSingleBookSeries": "Скрий серии с една книга", diff --git a/client/strings/bn.json b/client/strings/bn.json index 07e226a8b..89fe78fef 100644 --- a/client/strings/bn.json +++ b/client/strings/bn.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "লাইব্রেরির জন্য ফোল্ডার প্রহরী নিষ্ক্রিয় করুন", "LabelSettingsDisableWatcherHelp": "ফাইলের পরিবর্তন শনাক্ত হলে স্বয়ংক্রিয়ভাবে আইটেম যোগ/আপডেট করা অক্ষম করবে। *সার্ভার পুনরায় চালু করতে হবে", "LabelSettingsEnableWatcher": "প্রহরী সক্ষম করুন", "LabelSettingsEnableWatcherForLibrary": "লাইব্রেরির জন্য ফোল্ডার প্রহরী সক্ষম করুন", "LabelSettingsEnableWatcherHelp": "ফাইলের পরিবর্তন শনাক্ত হলে আইটেমগুলির স্বয়ংক্রিয় যোগ/আপডেট সক্ষম করবে। *সার্ভার পুনরায় চালু করতে হবে", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "পরীক্ষামূলক বৈশিষ্ট্য", "LabelSettingsExperimentalFeaturesHelp": "ফিচারের বৈশিষ্ট্য যা আপনার প্রতিক্রিয়া ব্যবহার করতে পারে এবং পরীক্ষায় সহায়তা করতে পারে। গিটহাব আলোচনা খুলতে ক্লিক করুন।", "LabelSettingsFindCovers": "কভার খুঁজুন", "LabelSettingsFindCoversHelp": "যদি আপনার অডিওবইয়ের ফোল্ডারের ভিতরে একটি এমবেডেড কভার বা কভার ইমেজ না থাকে, তাহলে স্ক্যানার একটি কভার খোঁজার চেষ্টা করবে৷<br>দ্রষ্টব্য: এটি স্ক্যানের সময় বাড়িয়ে দেবে", "LabelSettingsHideSingleBookSeries": "একক বই সিরিজ লুকান", diff --git a/client/strings/cs.json b/client/strings/cs.json index f7aeda3a3..b326996d1 100644 --- a/client/strings/cs.json +++ b/client/strings/cs.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Zakázat sledování složky pro knihovnu", "LabelSettingsDisableWatcherHelp": "Zakáže automatické přidávání/aktualizaci položek při zjištění změn v souboru. *Vyžaduje restart serveru", "LabelSettingsEnableWatcher": "Povolit sledování", "LabelSettingsEnableWatcherForLibrary": "Povolit sledování složky pro knihovnu", "LabelSettingsEnableWatcherHelp": "Povoluje automatické přidávání/aktualizaci položek, když jsou zjištěny změny souborů. *Vyžaduje restart serveru", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimentální funkce", "LabelSettingsExperimentalFeaturesHelp": "Funkce ve vývoji, které by mohly využít vaši zpětnou vazbu a pomoc s testováním. Kliknutím otevřete diskuzi na githubu.", "LabelSettingsFindCovers": "Najít obálky", "LabelSettingsFindCoversHelp": "Pokud vaše audiokniha nemá vloženou obálku nebo obrázek obálky uvnitř složky, skener se pokusí obálku najít.<br>Poznámka: Tím se prodlouží doba prohledávání", "LabelSettingsHideSingleBookSeries": "Skrýt sérii s jedinou knihou", diff --git a/client/strings/da.json b/client/strings/da.json index 080d61d52..96a0d04b2 100644 --- a/client/strings/da.json +++ b/client/strings/da.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Deaktiver mappeovervågning for bibliotek", "LabelSettingsDisableWatcherHelp": "Deaktiverer automatisk tilføjelse/opdatering af elementer, når der registreres filændringer. *Kræver servergenstart", "LabelSettingsEnableWatcher": "Aktiver overvågning", "LabelSettingsEnableWatcherForLibrary": "Aktiver mappeovervågning for bibliotek", "LabelSettingsEnableWatcherHelp": "Aktiverer automatisk tilføjelse/opdatering af elementer, når filændringer registreres. *Kræver servergenstart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Eksperimentelle funktioner", "LabelSettingsExperimentalFeaturesHelp": "Funktioner under udvikling, der kunne bruge din feedback og hjælp til test. Klik for at åbne Github-diskussionen.", "LabelSettingsFindCovers": "Find omslag", "LabelSettingsFindCoversHelp": "Hvis din lydbog ikke har et indlejret omslag eller et omslagsbillede i mappen, vil skanneren forsøge at finde et omslag.<br>Bemærk: Dette vil forlænge scanntiden", "LabelSettingsHideSingleBookSeries": "Skjul enkeltbogsserier", diff --git a/client/strings/de.json b/client/strings/de.json index dcf23084a..4ce822ddd 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Ordnerüberwachung für die Bibliothek deaktivieren", "LabelSettingsDisableWatcherHelp": "Deaktiviert das automatische Hinzufügen/Aktualisieren von Elementen, wenn Dateiänderungen erkannt werden. *Erfordert einen Server-Neustart", "LabelSettingsEnableWatcher": "Überwachung aktivieren", "LabelSettingsEnableWatcherForLibrary": "Ordnerüberwachung für die Bibliothek aktivieren", "LabelSettingsEnableWatcherHelp": "Aktiviert das automatische Hinzufügen/Aktualisieren von Elementen, wenn Dateiänderungen erkannt werden. *Erfordert einen Server-Neustart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimentelle Funktionen", "LabelSettingsExperimentalFeaturesHelp": "Funktionen welche sich in der Entwicklung befinden, benötigen dein Feedback und deine Hilfe beim Testen. Klicke hier, um die Github-Diskussion zu öffnen.", "LabelSettingsFindCovers": "Suche Titelbilder", "LabelSettingsFindCoversHelp": "Wenn dein Medium kein eingebettetes Titelbild oder kein Titelbild im Ordner hat, versucht der Scanner, ein Titelbild online zu finden.<br>Hinweis: Dies verlängert die Scandauer", "LabelSettingsHideSingleBookSeries": "Ausblenden einzelner Bücher", diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 7828f5f9f..2a390b5fa 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Disable folder watcher for library", "LabelSettingsDisableWatcherHelp": "Disables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsEnableWatcher": "Enable Watcher", "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimental features", "LabelSettingsExperimentalFeaturesHelp": "Features in development that could use your feedback and help testing. Click to open github discussion.", "LabelSettingsFindCovers": "Find covers", "LabelSettingsFindCoversHelp": "If your audiobook does not have an embedded cover or a cover image inside the folder, the scanner will attempt to find a cover.<br>Note: This will extend scan time", "LabelSettingsHideSingleBookSeries": "Hide single book series", diff --git a/client/strings/es.json b/client/strings/es.json index 0b1279674..cead84e25 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Deshabilitar Watcher de Carpetas para esta biblioteca", "LabelSettingsDisableWatcherHelp": "Deshabilitar la función de agregar/actualizar elementos automáticamente cuando se detectan cambios en los archivos. *Require Reiniciar el Servidor", "LabelSettingsEnableWatcher": "Habilitar Watcher", "LabelSettingsEnableWatcherForLibrary": "Habilitar Watcher para la carpeta de esta biblioteca", "LabelSettingsEnableWatcherHelp": "Permite agregar/actualizar elementos automáticamente cuando se detectan cambios en los archivos. *Requiere reiniciar el servidor", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Funciones Experimentales", "LabelSettingsExperimentalFeaturesHelp": "Funciones en desarrollo que se beneficiarían de sus comentarios y experiencias de prueba. Haga click aquí para abrir una conversación en Github.", "LabelSettingsFindCovers": "Buscar Portadas", "LabelSettingsFindCoversHelp": "Si tu audiolibro no tiene una portada incluída, o la portada no esta dentro de la carpeta, el escaneador tratará de encontrar una portada.<br>Nota: Esto extenderá el tiempo de escaneo", "LabelSettingsHideSingleBookSeries": "Esconder series con un solo libro", diff --git a/client/strings/et.json b/client/strings/et.json index 9944fca13..fcf7c4ce2 100644 --- a/client/strings/et.json +++ b/client/strings/et.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Keela kaustavaatamine raamatukogu jaoks", "LabelSettingsDisableWatcherHelp": "Keelab automaatse lisamise/uuendamise, kui failimuudatusi tuvastatakse. *Nõuab serveri taaskäivitamist", "LabelSettingsEnableWatcher": "Luba vaatamine", "LabelSettingsEnableWatcherForLibrary": "Luba kaustavaatamine raamatukogu jaoks", "LabelSettingsEnableWatcherHelp": "Lubab automaatset lisamist/uuendamist, kui tuvastatakse failimuudatused. *Nõuab serveri taaskäivitamist", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Eksperimentaalsed funktsioonid", "LabelSettingsExperimentalFeaturesHelp": "Arengus olevad funktsioonid, mis vajavad teie tagasisidet ja abi testimisel. Klõpsake GitHubi arutelu avamiseks.", "LabelSettingsFindCovers": "Leia ümbrised", "LabelSettingsFindCoversHelp": "Kui teie heliraamatul pole sisseehitatud ümbrist ega ümbrise pilti kaustas, proovib skanner leida ümbrist.<br>Märkus: see pikendab skaneerimisaega", "LabelSettingsHideSingleBookSeries": "Peida üksikute raamatute seeriad", diff --git a/client/strings/fr.json b/client/strings/fr.json index 053de0d38..ae7f60f3b 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Désactiver la surveillance des dossiers pour la bibliothèque", "LabelSettingsDisableWatcherHelp": "Désactive la mise à jour automatique lorsque des modifications de fichiers sont détectées. * nécessite le redémarrage du serveur", "LabelSettingsEnableWatcher": "Activer la veille", "LabelSettingsEnableWatcherForLibrary": "Activer la surveillance des dossiers pour la bibliothèque", "LabelSettingsEnableWatcherHelp": "Active la mise à jour automatique automatique lorsque des modifications de fichiers sont détectées. * nécessite le redémarrage du serveur", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Fonctionnalités expérimentales", "LabelSettingsExperimentalFeaturesHelp": "Fonctionnalités en cours de développement sur lesquelles nous attendons votre retour et expérience. Cliquez pour ouvrir la discussion GitHub.", "LabelSettingsFindCovers": "Chercher des couvertures de livre", "LabelSettingsFindCoversHelp": "Si votre livre audio ne possède pas de couverture intégrée ou une image de couverture dans le dossier, l’analyseur tentera de récupérer une couverture.<br>Attention, cela peut augmenter le temps d’analyse.", "LabelSettingsHideSingleBookSeries": "Masquer les séries de livres uniques", diff --git a/client/strings/gu.json b/client/strings/gu.json index 2f7be4d01..11c475043 100644 --- a/client/strings/gu.json +++ b/client/strings/gu.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Disable folder watcher for library", "LabelSettingsDisableWatcherHelp": "Disables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsEnableWatcher": "Enable Watcher", "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimental features", "LabelSettingsExperimentalFeaturesHelp": "Features in development that could use your feedback and help testing. Click to open github discussion.", "LabelSettingsFindCovers": "Find covers", "LabelSettingsFindCoversHelp": "If your audiobook does not have an embedded cover or a cover image inside the folder, the scanner will attempt to find a cover.<br>Note: This will extend scan time", "LabelSettingsHideSingleBookSeries": "Hide single book series", diff --git a/client/strings/he.json b/client/strings/he.json index 9ddf2d5fd..7d17a2a88 100644 --- a/client/strings/he.json +++ b/client/strings/he.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "השבת עוקב תיקייה עבור ספרייה", "LabelSettingsDisableWatcherHelp": "מבטל את הוספת/עדכון אוטומטי של פריטים כאשר שינויי קבצים זוהים. *דורש איתחול שרת", "LabelSettingsEnableWatcher": "הפעל עוקב", "LabelSettingsEnableWatcherForLibrary": "הפעל עוקב תיקייה עבור ספרייה", "LabelSettingsEnableWatcherHelp": "מאפשר הוספת/עדכון אוטומטי של פריטים כאשר שינויי קבצים זוהים. *דורש איתחול שרת", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "תכונות ניסיוניות", "LabelSettingsExperimentalFeaturesHelp": "תכונות בפיתוח שדורשות משובך ובדיקה. לחץ לפתיחת דיון ב-GitHub.", "LabelSettingsFindCovers": "מצא כריכות", "LabelSettingsFindCoversHelp": "אם לספר הקולי שלך אין כריכה מוטמעת או תמונת כריכה בתיקייה, הסורק ינסה למצוא תמונת כריכה.<br>שים לב: זה יאריך את זמן הסריקה", "LabelSettingsHideSingleBookSeries": "הסתר סדרות עם ספר אחד", diff --git a/client/strings/hi.json b/client/strings/hi.json index df09699f1..83b7f011a 100644 --- a/client/strings/hi.json +++ b/client/strings/hi.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Disable folder watcher for library", "LabelSettingsDisableWatcherHelp": "Disables the automatic adding/updating of items when file changes are detected. *Requires server restart", "LabelSettingsEnableWatcher": "Enable Watcher", "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimental features", "LabelSettingsExperimentalFeaturesHelp": "Features in development that could use your feedback and help testing. Click to open github discussion.", "LabelSettingsFindCovers": "Find covers", "LabelSettingsFindCoversHelp": "If your audiobook does not have an embedded cover or a cover image inside the folder, the scanner will attempt to find a cover.<br>Note: This will extend scan time", "LabelSettingsHideSingleBookSeries": "Hide single book series", diff --git a/client/strings/hr.json b/client/strings/hr.json index f1c47bd22..a3a88e9ce 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Isključi folder watchera za biblioteku", "LabelSettingsDisableWatcherHelp": "Isključi automatsko dodavanje/aktualiziranje stavci ako su promjene prepoznate. *Potreban restart servera", "LabelSettingsEnableWatcher": "Enable Watcher", "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Eksperimentalni features", "LabelSettingsExperimentalFeaturesHelp": "Features u razvoju trebaju vaš feedback i pomoć pri testiranju. Klikni da odeš to Github discussionsa.", "LabelSettingsFindCovers": "Pronađi covers", "LabelSettingsFindCoversHelp": "Ako audiobook nema embedani cover or a cover sliku unutar foldera, skener će probati pronaći cover.<br>Bilješka: Ovo će produžiti trjanje skeniranja", "LabelSettingsHideSingleBookSeries": "Hide single book series", diff --git a/client/strings/hu.json b/client/strings/hu.json index 8cdb4566d..971c45fc8 100644 --- a/client/strings/hu.json +++ b/client/strings/hu.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Mappafigyelő letiltása a könyvtárban", "LabelSettingsDisableWatcherHelp": "Letiltja az automatikus elem hozzáadás/frissítés funkciót, amikor fájlváltozásokat észlel. *Szerver újraindítása szükséges", "LabelSettingsEnableWatcher": "Figyelő engedélyezése", "LabelSettingsEnableWatcherForLibrary": "Mappafigyelő engedélyezése a könyvtárban", "LabelSettingsEnableWatcherHelp": "Engedélyezi az automatikus elem hozzáadás/frissítés funkciót, amikor fájlváltozásokat észlel. *Szerver újraindítása szükséges", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Kísérleti funkciók", "LabelSettingsExperimentalFeaturesHelp": "Fejlesztés alatt álló funkciók, amelyek visszajelzésre és tesztelésre szorulnak. Kattintson a github megbeszélés megnyitásához.", "LabelSettingsFindCovers": "Borítók keresése", "LabelSettingsFindCoversHelp": "Ha a hangoskönyvnek nincs beágyazott borítója vagy borítóképe a mappában, a szkenner megpróbálja megtalálni a borítót.<br>Megjegyzés: Ez meghosszabbítja a szkennelési időt", "LabelSettingsHideSingleBookSeries": "Egykönyves sorozatok elrejtése", diff --git a/client/strings/it.json b/client/strings/it.json index f2295d2b1..549ea94d4 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Disattiva Watcher per le librerie", "LabelSettingsDisableWatcherHelp": "Disattiva il controllo automatico libri nelle cartelle delle librerie. *Richiede il Riavvio del Server", "LabelSettingsEnableWatcher": "Abilita Watcher", "LabelSettingsEnableWatcherForLibrary": "Abilita il controllo cartelle per la libreria", "LabelSettingsEnableWatcherHelp": "Abilita l'aggiunta/aggiornamento automatico degli elementi quando vengono rilevate modifiche ai file. *Richiede il riavvio del Server", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Opzioni Sperimentali", "LabelSettingsExperimentalFeaturesHelp": "Funzionalità in fase di sviluppo che potrebbero utilizzare i tuoi feedback e aiutare i test. Fare clic per aprire la discussione github.", "LabelSettingsFindCovers": "Trova covers", "LabelSettingsFindCoversHelp": "Se il tuo audiolibro non ha una copertina incorporata o un'immagine di copertina all'interno della cartella, questa funzione tenterà di trovare una copertina.<br>Nota: aumenta il tempo di scansione", "LabelSettingsHideSingleBookSeries": "Nascondi una singola serie di libri", diff --git a/client/strings/lt.json b/client/strings/lt.json index 8c904e1f1..5bd42bdf2 100644 --- a/client/strings/lt.json +++ b/client/strings/lt.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Išjungti aplankų stebėtoją bibliotekai", "LabelSettingsDisableWatcherHelp": "Išjungia automatinį elementų pridėjimą/atnaujinimą, jei pastebėti failų pokyčiai. *Reikalingas serverio paleidimas iš naujo", "LabelSettingsEnableWatcher": "Enable Watcher", "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Eksperimentiniai funkcionalumai", "LabelSettingsExperimentalFeaturesHelp": "Funkcijos, kurios yra kuriamos ir laukiami jūsų komentarai. Spustelėkite, kad atidarytumėte „GitHub“ diskusiją.", "LabelSettingsFindCovers": "Rasti viršelius", "LabelSettingsFindCoversHelp": "Jei jūsų audioknyga neturi įterpto viršelio arba viršelio paveikslėlio aplanko, skeneris bandys rasti viršelį.<br>Pastaba: Tai padidins skenavimo trukmę.", "LabelSettingsHideSingleBookSeries": "Slėpti serijas, turinčias tik vieną knygą", diff --git a/client/strings/nl.json b/client/strings/nl.json index 84f4d0543..28c3ada1c 100644 --- a/client/strings/nl.json +++ b/client/strings/nl.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Map-watcher voor bibliotheek uitschakelen", "LabelSettingsDisableWatcherHelp": "Schakelt het automatisch toevoegen/bijwerken van onderdelen wanneer bestandswijzigingen gedetecteerd zijn uit. *Vereist herstart server", "LabelSettingsEnableWatcher": "Watcher inschakelen", "LabelSettingsEnableWatcherForLibrary": "Map-watcher voor bibliotheek inschakelen", "LabelSettingsEnableWatcherHelp": "Zorgt voor het automatisch toevoegen/bijwerken van onderdelen als bestandswijzigingen worden gedetecteerd. *Vereist herstarten van server", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimentele functies", "LabelSettingsExperimentalFeaturesHelp": "Functies in ontwikkeling die je feedback en testing kunnen gebruiken. Klik om de Github-discussie te openen.", "LabelSettingsFindCovers": "Zoek covers", "LabelSettingsFindCoversHelp": "Als je audioboek geen ingesloten cover of cover in de map heeft, zal de scanner proberen een cover te vinden.<br>Opmerking: Dit zal de scan-duur verlengen", "LabelSettingsHideSingleBookSeries": "Verberg series met een enkel boek", diff --git a/client/strings/no.json b/client/strings/no.json index 95d9d8563..4c4be82fa 100644 --- a/client/strings/no.json +++ b/client/strings/no.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Deaktiver mappe overvåker for bibliotek", "LabelSettingsDisableWatcherHelp": "Deaktiverer automatisk opprettelse/oppdatering av enheter når filendringer er oppdaget. *Krever restart av server*", "LabelSettingsEnableWatcher": "Aktiver overvåker", "LabelSettingsEnableWatcherForLibrary": "Aktiver mappe overvåker for bibliotek", "LabelSettingsEnableWatcherHelp": "Aktiverer automatisk opprettelse/oppdatering av enheter når filendringer er oppdaget. *Krever restart av server*", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Eksperimentelle funksjoner", "LabelSettingsExperimentalFeaturesHelp": "Funksjoner under utvikling som kan trenge din tilbakemelding og hjelp med testing. Klikk for å åpne GitHub diskusjon.", "LabelSettingsFindCovers": "Finn omslag", "LabelSettingsFindCoversHelp": "Hvis lydboken ikke har innbakt omslag eller ett omslagsbilde i mappen, vil skanneren prøve å finne ett.<br>Notis: Dette vil øke søketiden", "LabelSettingsHideSingleBookSeries": "Gjem bokserie med en bok", diff --git a/client/strings/pl.json b/client/strings/pl.json index 0fa5ee328..ce0109d9e 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Wyłącz monitorowanie folderów dla biblioteki", "LabelSettingsDisableWatcherHelp": "Wyłącz automatyczne dodawanie/aktualizowanie elementów po wykryciu zmian w plikach. *Wymaga restartu serwera", "LabelSettingsEnableWatcher": "Enable Watcher", "LabelSettingsEnableWatcherForLibrary": "Enable folder watcher for library", "LabelSettingsEnableWatcherHelp": "Enables the automatic adding/updating of items when file changes are detected. *Requires server restart", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Funkcje eksperymentalne", "LabelSettingsExperimentalFeaturesHelp": "Funkcje w trakcie rozwoju, które mogą zyskanć na Twojej opinii i pomocy w testowaniu. Kliknij, aby otworzyć dyskusję na githubie.", "LabelSettingsFindCovers": "Szukanie okładek", "LabelSettingsFindCoversHelp": "Jeśli audiobook nie posiada zintegrowanej okładki albo w folderze nie zostanie znaleziony plik okładki, skaner podejmie próbę pobrania okładki z sieci. <br>Uwaga: może to wydłuzyć proces skanowania", "LabelSettingsHideSingleBookSeries": "Hide single book series", diff --git a/client/strings/pt-br.json b/client/strings/pt-br.json index 4e2368510..f88f6a5e7 100644 --- a/client/strings/pt-br.json +++ b/client/strings/pt-br.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Desativa o monitoramento de pastas para a biblioteca", "LabelSettingsDisableWatcherHelp": "Desativa o acréscimo/atualização de itens quando forem detectadas mudanças no arquivo. *Requer reiniciar o servidor", "LabelSettingsEnableWatcher": "Ativar Monitoramento", "LabelSettingsEnableWatcherForLibrary": "Ativa o monitoramento de pastas para a biblioteca", "LabelSettingsEnableWatcherHelp": "Ativa o acréscimo/atualização de itens quando forem detectadas mudanças no arquivo. *Requer reiniciar o servidor", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Funcionalidade experimentais", "LabelSettingsExperimentalFeaturesHelp": "Funcionalidade em desenvolvimento que se beneficiairam dos seus comentários e da sua ajuda para testar. Clique para abrir a discussão no github.", "LabelSettingsFindCovers": "Localizar capas", "LabelSettingsFindCoversHelp": "Se o seu audiobook não tiver uma capa incluída ou uma imagem de capa na pasta, o verificador tentará localizar uma capa.<br>Atenção: Isso irá estender o tempo de análise", "LabelSettingsHideSingleBookSeries": "Ocultar séries com um só livro", diff --git a/client/strings/ru.json b/client/strings/ru.json index 243d96a09..7b6e9c7c1 100644 --- a/client/strings/ru.json +++ b/client/strings/ru.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Отключить отслеживание для библиотеки", "LabelSettingsDisableWatcherHelp": "Отключает автоматическое добавление/обновление элементов, когда обнаружено изменение файлов. *Требуется перезапуск сервера", "LabelSettingsEnableWatcher": "Включить отслеживание", "LabelSettingsEnableWatcherForLibrary": "Включить отслеживание за папками библиотеки", "LabelSettingsEnableWatcherHelp": "Включает автоматическое добавление/обновление элементов при обнаружении изменений файлов. *Требуется перезапуск сервера", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Экспериментальные функции", "LabelSettingsExperimentalFeaturesHelp": "Функционал в разработке на который Вы могли бы дать отзыв или помочь в тестировании. Нажмите для открытия обсуждения на github.", "LabelSettingsFindCovers": "Найти обложки", "LabelSettingsFindCoversHelp": "Если у Ваших аудиокниг нет встроенной обложки или файла обложки в папке книги, то сканер попробует найти обложку.<br>Примечание: Это увеличит время сканирования", "LabelSettingsHideSingleBookSeries": "Скрыть серии с одной книгой", diff --git a/client/strings/sv.json b/client/strings/sv.json index dbff38750..fd8c6e692 100644 --- a/client/strings/sv.json +++ b/client/strings/sv.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Inaktivera mappbevakning för bibliotek", "LabelSettingsDisableWatcherHelp": "Inaktiverar automatiskt lägga till/uppdatera objekt när filändringar upptäcks. *Kräver omstart av servern", "LabelSettingsEnableWatcher": "Aktivera Watcher", "LabelSettingsEnableWatcherForLibrary": "Aktivera mappbevakning för bibliotek", "LabelSettingsEnableWatcherHelp": "Aktiverar automatiskt lägga till/uppdatera objekt när filändringar upptäcks. *Kräver omstart av servern", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Experimentella funktioner", "LabelSettingsExperimentalFeaturesHelp": "Funktioner under utveckling som behöver din feedback och hjälp med testning. Klicka för att öppna diskussionen på GitHub.", "LabelSettingsFindCovers": "Hitta omslag", "LabelSettingsFindCoversHelp": "Om din ljudbok inte har ett inbäddat omslag eller en omslagsbild i mappen kommer skannern att försöka hitta ett omslag.<br>Observera: Detta kommer att förlänga skannningstiden", "LabelSettingsHideSingleBookSeries": "Dölj enboksserier", diff --git a/client/strings/uk.json b/client/strings/uk.json index e32ac69e0..6d8c311ca 100644 --- a/client/strings/uk.json +++ b/client/strings/uk.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Вимкнути спостерігання тек бібліотеки", "LabelSettingsDisableWatcherHelp": "Вимикає автоматичне додавання/оновлення елементів, коли спостерігаються зміни файлів. *Потребує перезавантаження сервера", "LabelSettingsEnableWatcher": "Увімкнути спостерігача", "LabelSettingsEnableWatcherForLibrary": "Увімкнути спостерігання тек бібліотеки", "LabelSettingsEnableWatcherHelp": "Вмикає автоматичне додавання/оновлення елементів, коли спостерігаються зміни файлів. *Потребує перезавантаження сервера", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Експериментальні функції", "LabelSettingsExperimentalFeaturesHelp": "Функції в розробці, які потребують вашого відгуку та допомоги в тестуванні. Натисніть, щоб відкрити обговорення на Github.", "LabelSettingsFindCovers": "Пошук обкладинок", "LabelSettingsFindCoversHelp": "Якщо ваша аудіокнига не містить вбудованої обкладинки або зображення у теці, сканувальник спробує знайти обкладинку.<br>Примітка: Це збільшить час сканування", "LabelSettingsHideSingleBookSeries": "Сховати серії з однією книгою", diff --git a/client/strings/vi-vn.json b/client/strings/vi-vn.json index e3e5fa313..7c6d09b05 100644 --- a/client/strings/vi-vn.json +++ b/client/strings/vi-vn.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "Tắt watcher thư mục cho thư viện", "LabelSettingsDisableWatcherHelp": "Tắt chức năng tự động thêm/cập nhật các mục khi phát hiện thay đổi tập tin. *Yêu cầu khởi động lại máy chủ", "LabelSettingsEnableWatcher": "Bật Watcher", "LabelSettingsEnableWatcherForLibrary": "Bật watcher thư mục cho thư viện", "LabelSettingsEnableWatcherHelp": "Bật chức năng tự động thêm/cập nhật các mục khi phát hiện thay đổi tập tin. *Yêu cầu khởi động lại máy chủ", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "Tính năng thử nghiệm", "LabelSettingsExperimentalFeaturesHelp": "Các tính năng đang phát triển có thể cần phản hồi của bạn và sự giúp đỡ trong thử nghiệm. Nhấp để mở thảo luận trên github.", "LabelSettingsFindCovers": "Tìm ảnh bìa", "LabelSettingsFindCoversHelp": "Nếu sách nói của bạn không có ảnh bìa nhúng hoặc ảnh bìa trong thư mục, trình quét sẽ cố gắng tìm ảnh bìa.<br>Lưu ý: Điều này sẽ kéo dài thời gian quét", "LabelSettingsHideSingleBookSeries": "Ẩn loạt sách đơn lẻ", diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index 654411fe4..fb375aec1 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "禁用媒体库的文件夹监视程序", "LabelSettingsDisableWatcherHelp": "检测到文件更改时禁用自动添加和更新项目. *需要重启服务器", "LabelSettingsEnableWatcher": "启用监视程序", "LabelSettingsEnableWatcherForLibrary": "为库启用文件夹监视程序", "LabelSettingsEnableWatcherHelp": "当检测到文件更改时, 启用项目的自动添加/更新. *需要重新启动服务器", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "实验功能", "LabelSettingsExperimentalFeaturesHelp": "开发中的功能需要你的反馈并帮助测试. 点击打开 github 讨论.", "LabelSettingsFindCovers": "查找封面", "LabelSettingsFindCoversHelp": "如果你的有声读物在文件夹中没有嵌入封面或封面图像, 扫描将尝试查找封面.<br>注意: 这将延长扫描时间", "LabelSettingsHideSingleBookSeries": "隐藏单书系列", diff --git a/client/strings/zh-tw.json b/client/strings/zh-tw.json index bf3a625b7..54e7849b4 100644 --- a/client/strings/zh-tw.json +++ b/client/strings/zh-tw.json @@ -469,10 +469,12 @@ "LabelSettingsDisableWatcherForLibrary": "禁用媒體庫的資料夾監視程序", "LabelSettingsDisableWatcherHelp": "檢測到檔案更改時禁用自動新增和更新項目. *需要重啟伺服器", "LabelSettingsEnableWatcher": "啟用監視程序", "LabelSettingsEnableWatcherForLibrary": "為庫啟用資料夾監視程序", "LabelSettingsEnableWatcherHelp": "當檢測到檔案更改時, 啟用項目的自動新增/更新. *需要重新啟動伺服器", + "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", + "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsExperimentalFeatures": "實驗功能", "LabelSettingsExperimentalFeaturesHelp": "開發中的功能需要你的反饋並幫助測試. 點擊打開 github 討論.", "LabelSettingsFindCovers": "查找封面", "LabelSettingsFindCoversHelp": "如果你的有聲書在資料夾中沒有嵌入封面或封面圖像, 掃描將嘗試查找封面.<br>注意: 這將延長掃描時間", "LabelSettingsHideSingleBookSeries": "隱藏單書系列", diff --git a/server/objects/settings/LibrarySettings.js b/server/objects/settings/LibrarySettings.js index a9885c791..4369c0ff5 100644 --- a/server/objects/settings/LibrarySettings.js +++ b/server/objects/settings/LibrarySettings.js @@ -6,10 +6,11 @@ class LibrarySettings { this.disableWatcher = false this.skipMatchingMediaWithAsin = false this.skipMatchingMediaWithIsbn = false this.autoScanCronExpression = null this.audiobooksOnly = false + this.epubsAllowScriptedContent = false this.hideSingleBookSeries = false // Do not show series that only have 1 book this.onlyShowLaterBooksInContinueSeries = false // Skip showing books that are earlier than the max sequence read this.metadataPrecedence = ['folderStructure', 'audioMetatags', 'nfoFile', 'txtFiles', 'opfFile', 'absMetadata'] this.podcastSearchRegion = 'us' @@ -23,10 +24,11 @@ class LibrarySettings { this.disableWatcher = !!settings.disableWatcher this.skipMatchingMediaWithAsin = !!settings.skipMatchingMediaWithAsin this.skipMatchingMediaWithIsbn = !!settings.skipMatchingMediaWithIsbn this.autoScanCronExpression = settings.autoScanCronExpression || null this.audiobooksOnly = !!settings.audiobooksOnly + this.epubsAllowScriptedContent = !!settings.epubsAllowScriptedContent this.hideSingleBookSeries = !!settings.hideSingleBookSeries this.onlyShowLaterBooksInContinueSeries = !!settings.onlyShowLaterBooksInContinueSeries if (settings.metadataPrecedence) { this.metadataPrecedence = [...settings.metadataPrecedence] } else { @@ -42,10 +44,11 @@ class LibrarySettings { disableWatcher: this.disableWatcher, skipMatchingMediaWithAsin: this.skipMatchingMediaWithAsin, skipMatchingMediaWithIsbn: this.skipMatchingMediaWithIsbn, autoScanCronExpression: this.autoScanCronExpression, audiobooksOnly: this.audiobooksOnly, + epubsAllowScriptedContent: this.epubsAllowScriptedContent, hideSingleBookSeries: this.hideSingleBookSeries, onlyShowLaterBooksInContinueSeries: this.onlyShowLaterBooksInContinueSeries, metadataPrecedence: [...this.metadataPrecedence], podcastSearchRegion: this.podcastSearchRegion } @@ -65,6 +68,6 @@ class LibrarySettings { } } return hasUpdates } } -module.exports = LibrarySettings \ No newline at end of file +module.exports = LibrarySettings
</script> allowScriptedContent: true, getCurrentLibrary: state => { return state.libraries.find(lib => lib.id === state.currentLibraryId) getSortedLibraries: state => () => { return state.libraries.map(lib => ({ ...lib })).sort((a, b) => a.displayOrder - b.displayOrder) getLibraryProvider: state => libraryId => { var library = state.libraries.find(l => l.id === libraryId) getCollection: state => id => { return state.collections.find(c => c.id === id) getPlaylist: state => id => { return state.userPlaylists.find(p => p.id === id) if (lastCheck < 1000 * 5) { // 5 seconds var index = state.libraries.findIndex(a => a.id === library.id) state.libraries = state.libraries.filter(a => a.id !== library.id) var index = state.listeners.findIndex(l => l.id === listener.id) state.listeners = state.listeners.filter(l => l.id !== listenerId) state.filterData.series = state.filterData.series.filter(se => se.id !== seriesId) const indexOf = state.filterData.authors.findIndex(au => au.id === author.id) state.filterData.authors.sort((a, b) => (a.name || '').localeCompare((b.name || ''))) const indexOf = state.filterData.series.findIndex(se => se.id === series.id) state.filterData.series.sort((a, b) => (a.name || '').localeCompare((b.name || ''))) var index = state.collections.findIndex(c => c.id === collection.id) state.collections = state.collections.filter(c => c.id !== collection.id) const index = state.userPlaylists.findIndex(p => p.id === playlist.id) state.userPlaylists = state.userPlaylists.filter(p => p.id !== playlist.id) } module.exports = LibrarySettings
<div v-if="isBookLibrary" class="py-3"> <div class="flex items-center"> <ui-toggle-switch v-model="epubsAllowScriptedContent" @input="formUpdated" /> <ui-tooltip :text="$strings.LabelSettingsEpubsAllowScriptedContentHelp"> <p class="pl-4 text-base"> {{ $strings.LabelSettingsEpubsAllowScriptedContent }} <span class="material-icons icon-text text-sm">info_outlined</span> </p> </ui-tooltip> </div> </div> epubsAllowScriptedContent: false, epubsAllowScriptedContent: !!this.epubsAllowScriptedContent, this.epubsAllowScriptedContent = !!this.librarySettings.epubsAllowScriptedContent </script> allowScriptedContent() { return this.$store.getters['libraries/getLibraryEpubsAllowScriptedContent'] }, allowScriptedContent: this.allowScriptedContent, getCurrentLibrary: (state) => { return state.libraries.find((lib) => lib.id === state.currentLibraryId) getSortedLibraries: (state) => () => { return state.libraries.map((lib) => ({ ...lib })).sort((a, b) => a.displayOrder - b.displayOrder) getLibraryProvider: (state) => (libraryId) => { var library = state.libraries.find((l) => l.id === libraryId) getLibraryEpubsAllowScriptedContent: (state, getters) => { return !!getters.getCurrentLibrarySettings?.epubsAllowScriptedContent getCollection: (state) => (id) => { return state.collections.find((c) => c.id === id) }, getPlaylist: (state) => (id) => { return state.userPlaylists.find((p) => p.id === id) if (lastCheck < 1000 * 5) { // 5 seconds var index = state.libraries.findIndex((a) => a.id === library.id) state.libraries = state.libraries.filter((a) => a.id !== library.id) var index = state.listeners.findIndex((l) => l.id === listener.id) state.listeners = state.listeners.filter((l) => l.id !== listenerId) state.filterData.series = state.filterData.series.filter((se) => se.id !== seriesId) const indexOf = state.filterData.authors.findIndex((au) => au.id === author.id) state.filterData.authors.sort((a, b) => (a.name || '').localeCompare(b.name || '')) const indexOf = state.filterData.series.findIndex((se) => se.id === series.id) state.filterData.series.sort((a, b) => (a.name || '').localeCompare(b.name || '')) var index = state.collections.findIndex((c) => c.id === collection.id) state.collections = state.collections.filter((c) => c.id !== collection.id) const index = state.userPlaylists.findIndex((p) => p.id === playlist.id) state.userPlaylists = state.userPlaylists.filter((p) => p.id !== playlist.id) } "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", "LabelSettingsEpubsAllowScriptedContent": "Allow scripted content in epubs", "LabelSettingsEpubsAllowScriptedContentHelp": "Allow epub files to execute scripts. It is recommended to keep this setting disabled unless you trust the source of the epub files.", this.epubsAllowScriptedContent = false this.epubsAllowScriptedContent = !!settings.epubsAllowScriptedContent epubsAllowScriptedContent: this.epubsAllowScriptedContent, module.exports = LibrarySettings
[]
CVE-2021-4265
924d16008cfcc09356c87db01848e45290cb58ca
https://github.com/siwapp/siwapp-ror
[{'lang': 'en', 'value': 'A vulnerability was found in siwapp-ror. It has been rated as problematic. This issue affects some unknown processing. The manipulation leads to cross site scripting. The attack may be initiated remotely. The name of the patch is 924d16008cfcc09356c87db01848e45290cb58ca. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-216467.'}]
null
6.1
2022-12-21T19:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix possible XSS issues (#365) * some fixes for old migrations, that allows new migrations * force ssl default true unless env var * check address no html tags
2021-10-19 11:07:49 +0200
924d160
334
2
[ "app/models/common.rb", "app/models/customer.rb", "config/environments/production.rb", "db/migrate/20160907152236_default_for_enabled.rb", "db/migrate/20160908093323_add_indexes_on_deleted_column.rb", "db/migrate/20160913081503_remove_status_from_commons.rb", "db/migrate/20160915000824_add_active_to_customer.rb", "db/migrate/20160915094942_add_failed_to_commons.rb", "db/migrate/20160923100618_series_first_number.rb", "db/migrate/20160929124104_email_and_print_template_to_common.rb", "db/migrate/20160929133954_email_and_print_default_templates_to_template.rb", "db/migrate/20161025134552_change_customer_index.rb", "db/migrate/20161026092553_add_template_subject.rb", "db/migrate/20161028103504_add_invoice_number_unique_number.rb", "db/migrate/20161207184222_remove_tax_amount.rb", "db/migrate/20161208171651_remove_commons_amounts.rb", "db/migrate/20170112115658_remove_invoice_unique_number.rb", "db/migrate/20170209101048_remove_customers_unique_name.rb", "db/migrate/20170216122053_add_unique_index_to_invoice_series_and_number.rb", "db/migrate/20170217120023_add_deleted_number_to_commons.rb", "db/migrate/20170223101022_add_commons_customer_id_not_null.rb", "db/migrate/20170608155530_add_currency_to_commons.rb" ]
Ruby
{"app/models/common.rb": {"lines_added": 4, "lines_deleted": 0}, "app/models/customer.rb": {"lines_added": 4, "lines_deleted": 0}, "config/environments/production.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160907152236_default_for_enabled.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160908093323_add_indexes_on_deleted_column.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160913081503_remove_status_from_commons.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160915000824_add_active_to_customer.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160915094942_add_failed_to_commons.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160923100618_series_first_number.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160929124104_email_and_print_template_to_common.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20160929133954_email_and_print_default_templates_to_template.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20161025134552_change_customer_index.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20161026092553_add_template_subject.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20161028103504_add_invoice_number_unique_number.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20161207184222_remove_tax_amount.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20161208171651_remove_commons_amounts.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20170112115658_remove_invoice_unique_number.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20170209101048_remove_customers_unique_name.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20170216122053_add_unique_index_to_invoice_series_and_number.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20170217120023_add_deleted_number_to_commons.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20170223101022_add_commons_customer_id_not_null.rb": {"lines_added": 1, "lines_deleted": 1}, "db/migrate/20170608155530_add_currency_to_commons.rb": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/app/models/common.rb b/app/models/common.rb index 0c70c1d..388d781 100644 --- a/app/models/common.rb +++ b/app/models/common.rb @@ -29,10 +29,14 @@ class Common < ActiveRecord::Base validates :series, presence: true # from https://emailregex.com/ validates :email, format: {with: /\A([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,})\z/i, message: "Only valid emails"}, allow_blank: true + validates :invoicing_address, format: { without: /<(.*)>.*?|<(.*) \/>/, + message: "wrong format" } + validates :shipping_address, format: { without: /<(.*)>.*?|<(.*) \/>/, + message: "wrong format" } # Events after_save :purge_items after_save :update_amounts after_initialize :init diff --git a/app/models/customer.rb b/app/models/customer.rb index 2d6f8e5..78640a3 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -9,10 +9,14 @@ class Customer < ActiveRecord::Base has_many :recurring_invoices # Validation validate :valid_customer_identification validates_uniqueness_of :name, scope: :identification + validates :invoicing_address, format: { without: /<(.*)>.*?|<(.*) \/>/, + message: "Wrong address format" } + validates :shipping_address, format: { without: /<(.*)>.*?|<(.*) \/>/, + message: "Wrong address format" } # Behaviors acts_as_taggable before_destroy :check_invoices diff --git a/config/environments/production.rb b/config/environments/production.rb index 6bd81a6..ca506e7 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -45,11 +45,11 @@ Rails.application.configure do # config.action_cable.mount_path = nil # config.action_cable.url = 'wss://example.com/cable' # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true + config.force_ssl = ENV['NO_FORCE_SSL'].present? ? false : true # Use the lowest log level to ensure availability of diagnostic information # when problems arise. config.log_level = :debug diff --git a/db/migrate/20160907152236_default_for_enabled.rb b/db/migrate/20160907152236_default_for_enabled.rb index 648734d..d60244d 100644 --- a/db/migrate/20160907152236_default_for_enabled.rb +++ b/db/migrate/20160907152236_default_for_enabled.rb @@ -1,6 +1,6 @@ -class DefaultForEnabled < ActiveRecord::Migration +class DefaultForEnabled < ActiveRecord::Migration[4.2] def change change_column_default(:commons, :enabled, true) change_column_default(:commons, :draft, false) end end diff --git a/db/migrate/20160908093323_add_indexes_on_deleted_column.rb b/db/migrate/20160908093323_add_indexes_on_deleted_column.rb index 2a9c5c2..60667c1 100644 --- a/db/migrate/20160908093323_add_indexes_on_deleted_column.rb +++ b/db/migrate/20160908093323_add_indexes_on_deleted_column.rb @@ -1,6 +1,6 @@ -class AddIndexesOnDeletedColumn < ActiveRecord::Migration +class AddIndexesOnDeletedColumn < ActiveRecord::Migration[4.2] def change add_index :commons, :deleted_at add_index :customers, :deleted_at add_index :items, :deleted_at add_index :payments, :deleted_at diff --git a/db/migrate/20160913081503_remove_status_from_commons.rb b/db/migrate/20160913081503_remove_status_from_commons.rb index 5a755b6..ecf1b42 100644 --- a/db/migrate/20160913081503_remove_status_from_commons.rb +++ b/db/migrate/20160913081503_remove_status_from_commons.rb @@ -1,5 +1,5 @@ -class RemoveStatusFromCommons < ActiveRecord::Migration +class RemoveStatusFromCommons < ActiveRecord::Migration[4.2] def change remove_column :commons, :status end end diff --git a/db/migrate/20160915000824_add_active_to_customer.rb b/db/migrate/20160915000824_add_active_to_customer.rb index c5602cb..4999ec6 100644 --- a/db/migrate/20160915000824_add_active_to_customer.rb +++ b/db/migrate/20160915000824_add_active_to_customer.rb @@ -1,6 +1,6 @@ -class AddActiveToCustomer < ActiveRecord::Migration +class AddActiveToCustomer < ActiveRecord::Migration[4.2] def up add_column :customers, :active, :boolean, default: true Customer.update_all ["active = ?", true] end diff --git a/db/migrate/20160915094942_add_failed_to_commons.rb b/db/migrate/20160915094942_add_failed_to_commons.rb index 458edc1..c6d1b36 100644 --- a/db/migrate/20160915094942_add_failed_to_commons.rb +++ b/db/migrate/20160915094942_add_failed_to_commons.rb @@ -1,5 +1,5 @@ -class AddFailedToCommons < ActiveRecord::Migration +class AddFailedToCommons < ActiveRecord::Migration[4.2] def change add_column :commons, :failed, :boolean, default: false end end diff --git a/db/migrate/20160923100618_series_first_number.rb b/db/migrate/20160923100618_series_first_number.rb index 27c6493..5432762 100644 --- a/db/migrate/20160923100618_series_first_number.rb +++ b/db/migrate/20160923100618_series_first_number.rb @@ -1,6 +1,6 @@ -class SeriesFirstNumber < ActiveRecord::Migration +class SeriesFirstNumber < ActiveRecord::Migration[4.2] def change add_column :series, :first_number, :integer, default: 1 remove_column :series, :next_number end end diff --git a/db/migrate/20160929124104_email_and_print_template_to_common.rb b/db/migrate/20160929124104_email_and_print_template_to_common.rb index 91b7d30..f399d69 100644 --- a/db/migrate/20160929124104_email_and_print_template_to_common.rb +++ b/db/migrate/20160929124104_email_and_print_template_to_common.rb @@ -1,6 +1,6 @@ -class EmailAndPrintTemplateToCommon < ActiveRecord::Migration +class EmailAndPrintTemplateToCommon < ActiveRecord::Migration[4.2] def change rename_column :commons, :template_id, :print_template_id add_column :commons, :email_template_id, :integer end end diff --git a/db/migrate/20160929133954_email_and_print_default_templates_to_template.rb b/db/migrate/20160929133954_email_and_print_default_templates_to_template.rb index c84dcc1..b2b7512 100644 --- a/db/migrate/20160929133954_email_and_print_default_templates_to_template.rb +++ b/db/migrate/20160929133954_email_and_print_default_templates_to_template.rb @@ -1,6 +1,6 @@ -class EmailAndPrintDefaultTemplatesToTemplate < ActiveRecord::Migration +class EmailAndPrintDefaultTemplatesToTemplate < ActiveRecord::Migration[4.2] def change rename_column :templates, :default, :print_default add_column :templates, :email_default, :boolean, default: false end end diff --git a/db/migrate/20161025134552_change_customer_index.rb b/db/migrate/20161025134552_change_customer_index.rb index 8427ef8..8059c0e 100644 --- a/db/migrate/20161025134552_change_customer_index.rb +++ b/db/migrate/20161025134552_change_customer_index.rb @@ -1,6 +1,6 @@ -class ChangeCustomerIndex < ActiveRecord::Migration +class ChangeCustomerIndex < ActiveRecord::Migration[4.2] def change remove_index "customers", name: "cstm_idx" add_index "customers", ["name", "identification"], name: "cstm_idx", unique: true, using: :btree end end diff --git a/db/migrate/20161026092553_add_template_subject.rb b/db/migrate/20161026092553_add_template_subject.rb index 08b35aa..3f97020 100644 --- a/db/migrate/20161026092553_add_template_subject.rb +++ b/db/migrate/20161026092553_add_template_subject.rb @@ -1,5 +1,5 @@ -class AddTemplateSubject < ActiveRecord::Migration +class AddTemplateSubject < ActiveRecord::Migration[4.2] def change add_column :templates, :subject, :string, limit: 200 end end diff --git a/db/migrate/20161028103504_add_invoice_number_unique_number.rb b/db/migrate/20161028103504_add_invoice_number_unique_number.rb index 27f3b05..12f09d5 100644 --- a/db/migrate/20161028103504_add_invoice_number_unique_number.rb +++ b/db/migrate/20161028103504_add_invoice_number_unique_number.rb @@ -1,5 +1,5 @@ -class AddInvoiceNumberUniqueNumber < ActiveRecord::Migration +class AddInvoiceNumberUniqueNumber < ActiveRecord::Migration[4.2] def change add_index "commons", ["number", "series_id"], name: "common_unique_number_idx", unique: true, using: :btree end end diff --git a/db/migrate/20161207184222_remove_tax_amount.rb b/db/migrate/20161207184222_remove_tax_amount.rb index 27bc371..130d313 100644 --- a/db/migrate/20161207184222_remove_tax_amount.rb +++ b/db/migrate/20161207184222_remove_tax_amount.rb @@ -1,5 +1,5 @@ -class RemoveTaxAmount < ActiveRecord::Migration +class RemoveTaxAmount < ActiveRecord::Migration[4.2] def change remove_column :commons, :tax_amount end end diff --git a/db/migrate/20161208171651_remove_commons_amounts.rb b/db/migrate/20161208171651_remove_commons_amounts.rb index 22f9500..dba0a63 100644 --- a/db/migrate/20161208171651_remove_commons_amounts.rb +++ b/db/migrate/20161208171651_remove_commons_amounts.rb @@ -1,6 +1,6 @@ -class RemoveCommonsAmounts < ActiveRecord::Migration +class RemoveCommonsAmounts < ActiveRecord::Migration[4.2] def change remove_column :commons, :discount_amount remove_column :commons, :base_amount end end diff --git a/db/migrate/20170112115658_remove_invoice_unique_number.rb b/db/migrate/20170112115658_remove_invoice_unique_number.rb index 3ffa062..24c698d 100644 --- a/db/migrate/20170112115658_remove_invoice_unique_number.rb +++ b/db/migrate/20170112115658_remove_invoice_unique_number.rb @@ -1,5 +1,5 @@ -class RemoveInvoiceUniqueNumber < ActiveRecord::Migration +class RemoveInvoiceUniqueNumber < ActiveRecord::Migration[4.2] def change remove_index "commons", name: "common_unique_number_idx" end end diff --git a/db/migrate/20170209101048_remove_customers_unique_name.rb b/db/migrate/20170209101048_remove_customers_unique_name.rb index 6f9adaf..b7c1512 100644 --- a/db/migrate/20170209101048_remove_customers_unique_name.rb +++ b/db/migrate/20170209101048_remove_customers_unique_name.rb @@ -1,5 +1,5 @@ -class RemoveCustomersUniqueName < ActiveRecord::Migration +class RemoveCustomersUniqueName < ActiveRecord::Migration[4.2] def change remove_index "customers", name: "cstm_idx" end end diff --git a/db/migrate/20170216122053_add_unique_index_to_invoice_series_and_number.rb b/db/migrate/20170216122053_add_unique_index_to_invoice_series_and_number.rb index 9e64d24..2d48686 100644 --- a/db/migrate/20170216122053_add_unique_index_to_invoice_series_and_number.rb +++ b/db/migrate/20170216122053_add_unique_index_to_invoice_series_and_number.rb @@ -1,5 +1,5 @@ -class AddUniqueIndexToInvoiceSeriesAndNumber < ActiveRecord::Migration +class AddUniqueIndexToInvoiceSeriesAndNumber < ActiveRecord::Migration[4.2] def change add_index "commons", ["series_id", "number"], name: "common_unique_number_idx", unique: true, using: :btree end end diff --git a/db/migrate/20170217120023_add_deleted_number_to_commons.rb b/db/migrate/20170217120023_add_deleted_number_to_commons.rb index 8c860aa..d4ce1ba 100644 --- a/db/migrate/20170217120023_add_deleted_number_to_commons.rb +++ b/db/migrate/20170217120023_add_deleted_number_to_commons.rb @@ -1,6 +1,6 @@ -class AddDeletedNumberToCommons < ActiveRecord::Migration +class AddDeletedNumberToCommons < ActiveRecord::Migration[4.2] def change add_column :commons, :deleted_number, :integer, default: nil add_index "commons", ["series_id", "deleted_number"], name: "common_deleted_number_idx", using: :btree end end diff --git a/db/migrate/20170223101022_add_commons_customer_id_not_null.rb b/db/migrate/20170223101022_add_commons_customer_id_not_null.rb index 62e7b53..b7baeb9 100644 --- a/db/migrate/20170223101022_add_commons_customer_id_not_null.rb +++ b/db/migrate/20170223101022_add_commons_customer_id_not_null.rb @@ -1,5 +1,5 @@ -class AddCommonsCustomerIdNotNull < ActiveRecord::Migration +class AddCommonsCustomerIdNotNull < ActiveRecord::Migration[4.2] def change change_column :commons, :customer_id, :integer, :null => false end end diff --git a/db/migrate/20170608155530_add_currency_to_commons.rb b/db/migrate/20170608155530_add_currency_to_commons.rb index cfdef37..62c1b5c 100644 --- a/db/migrate/20170608155530_add_currency_to_commons.rb +++ b/db/migrate/20170608155530_add_currency_to_commons.rb @@ -1,6 +1,6 @@ -class AddCurrencyToCommons < ActiveRecord::Migration +class AddCurrencyToCommons < ActiveRecord::Migration[4.2] def up add_column :commons, :currency, :string, limit: 3 currency = Settings.currency Common.find_each do |common| common.currency = currency
# config.force_ssl = true class DefaultForEnabled < ActiveRecord::Migration class AddIndexesOnDeletedColumn < ActiveRecord::Migration class RemoveStatusFromCommons < ActiveRecord::Migration class AddActiveToCustomer < ActiveRecord::Migration class AddFailedToCommons < ActiveRecord::Migration class SeriesFirstNumber < ActiveRecord::Migration class EmailAndPrintTemplateToCommon < ActiveRecord::Migration class EmailAndPrintDefaultTemplatesToTemplate < ActiveRecord::Migration class ChangeCustomerIndex < ActiveRecord::Migration class AddTemplateSubject < ActiveRecord::Migration class AddInvoiceNumberUniqueNumber < ActiveRecord::Migration class RemoveTaxAmount < ActiveRecord::Migration class RemoveCommonsAmounts < ActiveRecord::Migration class RemoveInvoiceUniqueNumber < ActiveRecord::Migration class RemoveCustomersUniqueName < ActiveRecord::Migration class AddUniqueIndexToInvoiceSeriesAndNumber < ActiveRecord::Migration class AddDeletedNumberToCommons < ActiveRecord::Migration class AddCommonsCustomerIdNotNull < ActiveRecord::Migration class AddCurrencyToCommons < ActiveRecord::Migration
validates :invoicing_address, format: { without: /<(.*)>.*?|<(.*) \/>/, message: "wrong format" } validates :shipping_address, format: { without: /<(.*)>.*?|<(.*) \/>/, message: "wrong format" } validates :invoicing_address, format: { without: /<(.*)>.*?|<(.*) \/>/, message: "Wrong address format" } validates :shipping_address, format: { without: /<(.*)>.*?|<(.*) \/>/, message: "Wrong address format" } config.force_ssl = ENV['NO_FORCE_SSL'].present? ? false : true class DefaultForEnabled < ActiveRecord::Migration[4.2] class AddIndexesOnDeletedColumn < ActiveRecord::Migration[4.2] class RemoveStatusFromCommons < ActiveRecord::Migration[4.2] class AddActiveToCustomer < ActiveRecord::Migration[4.2] class AddFailedToCommons < ActiveRecord::Migration[4.2] class SeriesFirstNumber < ActiveRecord::Migration[4.2] class EmailAndPrintTemplateToCommon < ActiveRecord::Migration[4.2] class EmailAndPrintDefaultTemplatesToTemplate < ActiveRecord::Migration[4.2] class ChangeCustomerIndex < ActiveRecord::Migration[4.2] class AddTemplateSubject < ActiveRecord::Migration[4.2] class AddInvoiceNumberUniqueNumber < ActiveRecord::Migration[4.2] class RemoveTaxAmount < ActiveRecord::Migration[4.2] class RemoveCommonsAmounts < ActiveRecord::Migration[4.2] class RemoveInvoiceUniqueNumber < ActiveRecord::Migration[4.2] class RemoveCustomersUniqueName < ActiveRecord::Migration[4.2] class AddUniqueIndexToInvoiceSeriesAndNumber < ActiveRecord::Migration[4.2] class AddDeletedNumberToCommons < ActiveRecord::Migration[4.2] class AddCommonsCustomerIdNotNull < ActiveRecord::Migration[4.2] class AddCurrencyToCommons < ActiveRecord::Migration[4.2]
[ "validation" ]
CVE-2017-16876
5f06d724bc05580e7f203db2d4a4905fc1127f98
https://github.com/lepture/mistune
[{'lang': 'en', 'value': 'Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument.'}]
4.3
6.1
2017-12-29T15:29Z
MEDIUM
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix CVE-2017-16876
2017-11-21 00:15:09 +0900
5f06d72
127
3
[ "mistune.py" ]
Python
{"mistune.py": {"lines_added": 5, "lines_deleted": 3}}
diff --git a/mistune.py b/mistune.py index d6ecf7e..5b05fcb 100644 --- a/mistune.py +++ b/mistune.py @@ -9,11 +9,11 @@ """ import re import inspect -__version__ = '0.8' +__version__ = '0.8.1' __author__ = 'Hsiaoming Yang <me@lepture.com>' __all__ = [ 'BlockGrammar', 'BlockLexer', 'InlineGrammar', 'InlineLexer', 'Renderer', 'Markdown', @@ -46,11 +46,12 @@ def _pure_pattern(regex): pattern = pattern[1:] return pattern def _keyify(key): - return _key_pattern.sub(' ', key.lower()) + key = escape(key.lower(), quote=True) + return _key_pattern.sub(' ', key) def escape(text, quote=False, smart_amp=True): """Replace special characters "&", "<" and ">" to HTML-safe sequences. @@ -443,11 +444,12 @@ class InlineGrammar(object): escape = re.compile(r'^\\([\\`*{}\[\]()#+\-.!_>~|])') # \* \+ \! .... inline_html = re.compile( r'^(?:%s|%s|%s)' % ( r'<!--[\s\S]*?-->', - r'<(\w+%s)((?:%s)*?)\s*>([\s\S]*?)<\/\1>' % (_valid_end, _valid_attr), + r'<(\w+%s)((?:%s)*?)\s*>([\s\S]*?)<\/\1>' % ( + _valid_end, _valid_attr), r'<\w+%s(?:%s)*?\s*\/?>' % (_valid_end, _valid_attr), ) ) autolink = re.compile(r'^<([^ >]+(@|:)[^ >]+)>') link = re.compile(
__version__ = '0.8' return _key_pattern.sub(' ', key.lower()) r'<(\w+%s)((?:%s)*?)\s*>([\s\S]*?)<\/\1>' % (_valid_end, _valid_attr),
__version__ = '0.8.1' key = escape(key.lower(), quote=True) return _key_pattern.sub(' ', key) r'<(\w+%s)((?:%s)*?)\s*>([\s\S]*?)<\/\1>' % ( _valid_end, _valid_attr),
[]
CVE-2022-21159
cfa94cbf10302bedc779703f874ee2e8387a0721
https://github.com/mz-automation/libiec61850
[{'lang': 'en', 'value': 'A denial of service vulnerability exists in the parseNormalModeParameters functionality of MZ Automation GmbH libiec61850 1.5.0. A specially-crafted series of network requests can lead to denial of service. An attacker can send a sequence of malformed iec61850 messages to trigger this vulnerability.'}]
5
7.5
2022-04-15T16:15Z
MEDIUM
CWE-835
Loop with Unreachable Exit Condition ('Infinite Loop')
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
- fixed - Bug in presentation layer parser can cause infinite loop (LIB61850-302)
2022-02-25 18:21:45 +0100
cfa94cb
896
3
[ "src/mms/iso_presentation/iso_presentation.c" ]
C
{"src/mms/iso_presentation/iso_presentation.c": {"lines_added": 4, "lines_deleted": 0}}
diff --git a/src/mms/iso_presentation/iso_presentation.c b/src/mms/iso_presentation/iso_presentation.c index 96fd8a3..e2ee12a 100644 --- a/src/mms/iso_presentation/iso_presentation.c +++ b/src/mms/iso_presentation/iso_presentation.c @@ -467,10 +467,14 @@ parseNormalModeParameters(IsoPresentation* self, uint8_t* buffer, int totalLengt case 0xa4: /* presentation-context-definition list */ if (DEBUG_PRES) printf("PRES: pcd list\n"); bufPos = parsePresentationContextDefinitionList(self, buffer, len, bufPos); + + if (bufPos < 0) + return -1; + break; case 0xa5: /* context-definition-result-list */ bufPos += len;
if (bufPos < 0) return -1;
[]
CVE-2022-3976
10622ba36bb3910c151348f1569f039ecdd8786f
https://github.com/mz-automation/libiec61850
[{'lang': 'en', 'value': 'A vulnerability has been found in MZ Automation libiec61850 up to 1.4 and classified as critical. This vulnerability affects unknown code of the file src/mms/iso_mms/client/mms_client_files.c of the component MMS File Services. The manipulation of the argument filename leads to path traversal. Upgrading to version 1.5 is able to address this issue. The name of the patch is 10622ba36bb3910c151348f1569f039ecdd8786f. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-213556.'}]
null
8.8
2022-11-13T14:15Z
nan
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- fixed path traversal vulnerability in MMS file services (LIB61850-357)
2022-10-07 17:09:11 +0100
10622ba3
896
3
[ "hal/filesystem/linux/file_provider_linux.c", "src/mms/inc_private/mms_common_internal.h", "src/mms/iso_mms/client/mms_client_files.c", "src/mms/iso_mms/common/mms_common_msg.c", "src/mms/iso_mms/server/mms_file_service.c" ]
C
{"hal/filesystem/linux/file_provider_linux.c": {"lines_added": 0, "lines_deleted": 1}, "src/mms/inc_private/mms_common_internal.h": {"lines_added": 3, "lines_deleted": 0}, "src/mms/iso_mms/client/mms_client_files.c": {"lines_added": 30, "lines_deleted": 21}, "src/mms/iso_mms/common/mms_common_msg.c": {"lines_added": 19, "lines_deleted": 1}, "src/mms/iso_mms/server/mms_file_service.c": {"lines_added": 51, "lines_deleted": 2}}
diff --git a/hal/filesystem/linux/file_provider_linux.c b/hal/filesystem/linux/file_provider_linux.c index dc869d96..7b501f00 100644 --- a/hal/filesystem/linux/file_provider_linux.c +++ b/hal/filesystem/linux/file_provider_linux.c @@ -35,11 +35,10 @@ struct sDirectoryHandle { DIR* handle; }; - FileHandle FileSystem_openFile(char* fileName, bool readWrite) { FileHandle newHandle = NULL; diff --git a/src/mms/inc_private/mms_common_internal.h b/src/mms/inc_private/mms_common_internal.h index 6ce05aeb..f096e7bc 100644 --- a/src/mms/inc_private/mms_common_internal.h +++ b/src/mms/inc_private/mms_common_internal.h @@ -80,10 +80,13 @@ LIB61850_INTERNAL void mmsMsg_createExtendedFilename(const char* basepath, int bufSize, char* extendedFileName, char* fileName); LIB61850_INTERNAL FileHandle mmsMsg_openFile(const char* basepath, char* fileName, bool readWrite); +LIB61850_INTERNAL bool +mmsMsg_isFilenameSave(const char* filename); + #endif /* (MMS_FILE_SERVICE == 1) */ typedef struct sMmsServiceError { int errorClass; diff --git a/src/mms/iso_mms/client/mms_client_files.c b/src/mms/iso_mms/client/mms_client_files.c index eda9bb1f..4fca418e 100644 --- a/src/mms/iso_mms/client/mms_client_files.c +++ b/src/mms/iso_mms/client/mms_client_files.c @@ -69,11 +69,10 @@ getFrsm(MmsConnection connection, int32_t frsmId) } return frsm; } - static int32_t getNextFrsmId(MmsConnection connection) { uint32_t nextFrsmId = connection->nextFrsmId; connection->nextFrsmId++; @@ -123,42 +122,52 @@ mmsClient_handleFileOpenRequest( } } if (hasFileName) { - MmsFileReadStateMachine* frsm = getFreeFrsm(connection); + if (mmsMsg_isFilenameSave(filename) == false) { + /* potential attack */ - if (frsm != NULL) { + if (DEBUG_MMS_CLIENT) + printf("MMS_CLIENT: client provided unsave filename -> rejected\n"); - MmsOutstandingCall obtainFileCall = mmsClient_getMatchingObtainFileRequest(connection, filename); + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); + } + else { + MmsFileReadStateMachine* frsm = getFreeFrsm(connection); - if (obtainFileCall) { + if (frsm != NULL) { - if (DEBUG_MMS_CLIENT) - printf("MMS_CLIENT: file open is matching obtain file request for file %s\n", filename); + MmsOutstandingCall obtainFileCall = mmsClient_getMatchingObtainFileRequest(connection, filename); - obtainFileCall->timeout = Hal_getTimeInMs() + connection->requestTimeout; - } + if (obtainFileCall) { - FileHandle fileHandle = mmsMsg_openFile(MmsConnection_getFilestoreBasepath(connection), filename, false); + if (DEBUG_MMS_CLIENT) + printf("MMS_CLIENT: file open is matching obtain file request for file %s\n", filename); - if (fileHandle != NULL) { + obtainFileCall->timeout = Hal_getTimeInMs() + connection->requestTimeout; + } - frsm->fileHandle = fileHandle; - frsm->readPosition = filePosition; - frsm->frsmId = getNextFrsmId(connection); - frsm->obtainRequest = obtainFileCall; + FileHandle fileHandle = mmsMsg_openFile(MmsConnection_getFilestoreBasepath(connection), filename, false); + + if (fileHandle != NULL) { + + frsm->fileHandle = fileHandle; + frsm->readPosition = filePosition; + frsm->frsmId = getNextFrsmId(connection); + frsm->obtainRequest = obtainFileCall; + + mmsMsg_createFileOpenResponse(MmsConnection_getFilestoreBasepath(connection), + invokeId, response, filename, frsm); + } + else + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); - mmsMsg_createFileOpenResponse(MmsConnection_getFilestoreBasepath(connection), - invokeId, response, filename, frsm); } else - mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); - + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_RESOURCE_OTHER); } - else - mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_RESOURCE_OTHER); } else goto exit_invalid_parameter; return; diff --git a/src/mms/iso_mms/common/mms_common_msg.c b/src/mms/iso_mms/common/mms_common_msg.c index 7555f0c0..76657334 100644 --- a/src/mms/iso_mms/common/mms_common_msg.c +++ b/src/mms/iso_mms/common/mms_common_msg.c @@ -568,10 +568,28 @@ mmsMsg_createExtendedFilename(const char* basepath, int bufSize, char* extendedF #else StringUtils_concatString(extendedFileName, bufSize, CONFIG_VIRTUAL_FILESTORE_BASEPATH, fileName); #endif } +bool +mmsMsg_isFilenameSave(const char* filename) +{ + if (filename) + { + if (strstr(filename, "..")) + return false; + + if (strstr(filename, "./")) + return false; + + return true; + } + else { + return false; + } +} + FileHandle mmsMsg_openFile(const char* basepath, char* fileName, bool readWrite) { #if (CONFIG_SET_FILESTORE_BASEPATH_AT_RUNTIME == 1) char extendedFileName[512]; @@ -618,11 +636,11 @@ mmsMsg_parseFileName(char* filename, uint8_t* buffer, int* bufPos, int maxBufPos /* Check if path contains invalid characters (prevent escaping the virtual filestore by using "..") * TODO this may be platform dependent. Also depending of the platform there might be other evil * characters. */ if (strstr(filename, "..") != NULL) { - mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILENAME_SYNTAX_ERROR); + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); return false; } return true; } diff --git a/src/mms/iso_mms/server/mms_file_service.c b/src/mms/iso_mms/server/mms_file_service.c index 2a0b18ad..e4ae154b 100644 --- a/src/mms/iso_mms/server/mms_file_service.c +++ b/src/mms/iso_mms/server/mms_file_service.c @@ -233,12 +233,10 @@ mmsMsg_createFileOpenResponse(const char* basepath, uint32_t invokeId, ByteBuffe bufPos = encodeFileAttributes(0xa1, frsm->fileSize, gtString, buffer, bufPos); response->size = bufPos; } - - void mmsServer_handleFileDeleteRequest( MmsServerConnection connection, uint8_t* buffer, int bufPos, int maxBufPos, uint32_t invokeId, @@ -264,10 +262,20 @@ mmsServer_handleFileDeleteRequest( filename[length] = 0; if (DEBUG_MMS_SERVER) printf("MMS_SERVER: mms_file_service.c: Delete file (%s)\n", filename); + if (mmsMsg_isFilenameSave(filename) == false) + { + if (DEBUG_MMS_SERVER) + printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); + + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); + + return; + } + if (connection->server->fileAccessHandler != NULL) { MmsError access = connection->server->fileAccessHandler(connection->server->fileAccessHandlerParameter, connection, MMS_FILE_ACCESS_TYPE_DELETE, filename, NULL); if (access != MMS_ERROR_NONE) { @@ -342,10 +350,21 @@ mmsServer_handleFileOpenRequest( } } if (hasFileName) { + if (mmsMsg_isFilenameSave(filename) == false) { + /* potential attack */ + + if (DEBUG_MMS_CLIENT) + printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); + + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); + + return; + } + if (connection->server->fileAccessHandler != NULL) { MmsError access = connection->server->fileAccessHandler(connection->server->fileAccessHandlerParameter, connection, MMS_FILE_ACCESS_TYPE_OPEN, filename, NULL); if (access != MMS_ERROR_NONE) { @@ -688,10 +707,19 @@ mmsServer_handleObtainFileRequest( } } if (hasSourceFileName && hasDestinationFilename) { + if (mmsMsg_isFilenameSave(destinationFilename) == false) { + /* potential attack */ + + if (DEBUG_MMS_SERVER) + printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); + + goto exit_invalid_parameter; + } + /* Call user to check if access is allowed */ if (connection->server->fileAccessHandler != NULL) { MmsError access = connection->server->fileAccessHandler(connection->server->fileAccessHandlerParameter, connection, MMS_FILE_ACCESS_TYPE_OBTAIN, destinationFilename, sourceFilename); @@ -1021,10 +1049,21 @@ createFileDirectoryResponse(const char* basepath, uint32_t invokeId, ByteBuffer* if (continueAfterFileName != NULL) { if (strlen(continueAfterFileName) == 0) continueAfterFileName = NULL; } + if ((directoryName && mmsMsg_isFilenameSave(directoryName) == false) || + (continueAfterFileName && mmsMsg_isFilenameSave(continueAfterFileName) == false)) + { + if (DEBUG_MMS_SERVER) + printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); + + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); + + return; + } + tempCurPos = addFileEntriesToResponse(basepath, buffer, tempCurPos, maxSize, directoryName, &continueAfterFileName, &moreFollows); if (tempCurPos < 0) { if (DEBUG_MMS_SERVER) @@ -1126,10 +1165,20 @@ mmsServer_handleFileRenameRequest( } } if ((strlen(currentFileName) != 0) && (strlen(newFileName) != 0)) { + if ((mmsMsg_isFilenameSave(currentFileName) == false) || (mmsMsg_isFilenameSave(newFileName) == false)) + { + if (DEBUG_MMS_SERVER) + printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); + + mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); + + return; + } + /* Call user to check if access is allowed */ if (connection->server->fileAccessHandler != NULL) { MmsError access = connection->server->fileAccessHandler(connection->server->fileAccessHandlerParameter, connection, MMS_FILE_ACCESS_TYPE_RENAME, currentFileName, newFileName);
MmsFileReadStateMachine* frsm = getFreeFrsm(connection); if (frsm != NULL) { MmsOutstandingCall obtainFileCall = mmsClient_getMatchingObtainFileRequest(connection, filename); if (obtainFileCall) { if (DEBUG_MMS_CLIENT) printf("MMS_CLIENT: file open is matching obtain file request for file %s\n", filename); obtainFileCall->timeout = Hal_getTimeInMs() + connection->requestTimeout; } FileHandle fileHandle = mmsMsg_openFile(MmsConnection_getFilestoreBasepath(connection), filename, false); if (fileHandle != NULL) { frsm->fileHandle = fileHandle; frsm->readPosition = filePosition; frsm->frsmId = getNextFrsmId(connection); frsm->obtainRequest = obtainFileCall; mmsMsg_createFileOpenResponse(MmsConnection_getFilestoreBasepath(connection), invokeId, response, filename, frsm); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); else mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_RESOURCE_OTHER); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILENAME_SYNTAX_ERROR);
LIB61850_INTERNAL bool mmsMsg_isFilenameSave(const char* filename); if (mmsMsg_isFilenameSave(filename) == false) { /* potential attack */ if (DEBUG_MMS_CLIENT) printf("MMS_CLIENT: client provided unsave filename -> rejected\n"); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); } else { MmsFileReadStateMachine* frsm = getFreeFrsm(connection); if (frsm != NULL) { MmsOutstandingCall obtainFileCall = mmsClient_getMatchingObtainFileRequest(connection, filename); if (obtainFileCall) { if (DEBUG_MMS_CLIENT) printf("MMS_CLIENT: file open is matching obtain file request for file %s\n", filename); obtainFileCall->timeout = Hal_getTimeInMs() + connection->requestTimeout; } FileHandle fileHandle = mmsMsg_openFile(MmsConnection_getFilestoreBasepath(connection), filename, false); if (fileHandle != NULL) { frsm->fileHandle = fileHandle; frsm->readPosition = filePosition; frsm->frsmId = getNextFrsmId(connection); frsm->obtainRequest = obtainFileCall; mmsMsg_createFileOpenResponse(MmsConnection_getFilestoreBasepath(connection), invokeId, response, filename, frsm); } else mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_RESOURCE_OTHER); bool mmsMsg_isFilenameSave(const char* filename) { if (filename) { if (strstr(filename, "..")) return false; if (strstr(filename, "./")) return false; return true; } else { return false; } } mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); if (mmsMsg_isFilenameSave(filename) == false) { if (DEBUG_MMS_SERVER) printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); return; } if (mmsMsg_isFilenameSave(filename) == false) { /* potential attack */ if (DEBUG_MMS_CLIENT) printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); return; } if (mmsMsg_isFilenameSave(destinationFilename) == false) { /* potential attack */ if (DEBUG_MMS_SERVER) printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); goto exit_invalid_parameter; } if ((directoryName && mmsMsg_isFilenameSave(directoryName) == false) || (continueAfterFileName && mmsMsg_isFilenameSave(continueAfterFileName) == false)) { if (DEBUG_MMS_SERVER) printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); return; } if ((mmsMsg_isFilenameSave(currentFileName) == false) || (mmsMsg_isFilenameSave(newFileName) == false)) { if (DEBUG_MMS_SERVER) printf("MMS_SERVER: remote provided unsave filename -> rejected\n"); mmsMsg_createServiceErrorPdu(invokeId, response, MMS_ERROR_FILE_FILE_NON_EXISTENT); return; }
[]
CVE-2023-27772
79a8eaf26070e02044afc4b2ffbfe777dfdf3e0b
https://github.com/mz-automation/libiec61850
[{'lang': 'en', 'value': 'libiec61850 v1.5.1 was discovered to contain a segmentation violation via the function ControlObjectClient_setOrigin() at /client/client_control.c.'}]
null
7.5
2023-04-13T18:15Z
nan
CWE-754
Improper Check for Unusual or Exceptional Conditions
The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.
- added missing checks in iec61850_client_example_control (#442)
2023-02-24 11:07:09 +0000
79a8eaf2
896
3
[ "examples/iec61850_client_example_control/client_example_control.c" ]
C
{"examples/iec61850_client_example_control/client_example_control.c": {"lines_added": 106, "lines_deleted": 77}}
diff --git a/examples/iec61850_client_example_control/client_example_control.c b/examples/iec61850_client_example_control/client_example_control.c index 33da635a..37d6b6bc 100644 --- a/examples/iec61850_client_example_control/client_example_control.c +++ b/examples/iec61850_client_example_control/client_example_control.c @@ -43,171 +43,200 @@ int main(int argc, char** argv) { IedConnection con = IedConnection_create(); IedConnection_connect(con, &error, hostname, tcpPort); - if (error == IED_ERROR_OK) { - + if (error == IED_ERROR_OK) + { + MmsValue* ctlVal = NULL; + MmsValue* stVal = NULL; /************************ * Direct control ***********************/ ControlObjectClient control = ControlObjectClient_create("simpleIOGenericIO/GGIO1.SPCSO1", con); - MmsValue* ctlVal = MmsValue_newBoolean(true); + if (control) + { + ctlVal = MmsValue_newBoolean(true); - ControlObjectClient_setOrigin(control, NULL, 3); + ControlObjectClient_setOrigin(control, NULL, 3); - if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { - printf("simpleIOGenericIO/GGIO1.SPCSO1 operated successfully\n"); - } - else { - printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO1\n"); - } + if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { + printf("simpleIOGenericIO/GGIO1.SPCSO1 operated successfully\n"); + } + else { + printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO1\n"); + } + + MmsValue_delete(ctlVal); - MmsValue_delete(ctlVal); + ControlObjectClient_destroy(control); - ControlObjectClient_destroy(control); + /* Check if status value has changed */ - /* Check if status value has changed */ + stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO1.stVal", IEC61850_FC_ST); - MmsValue* stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO1.stVal", IEC61850_FC_ST); + if (error == IED_ERROR_OK) { + bool state = MmsValue_getBoolean(stVal); + MmsValue_delete(stVal); - if (error == IED_ERROR_OK) { - bool state = MmsValue_getBoolean(stVal); - MmsValue_delete(stVal); + printf("New status of simpleIOGenericIO/GGIO1.SPCSO1.stVal: %i\n", state); + } + else { + printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO1 failed!\n"); + } - printf("New status of simpleIOGenericIO/GGIO1.SPCSO1.stVal: %i\n", state); } else { - printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO1 failed!\n"); + printf("Control object simpleIOGenericIO/GGIO1.SPCSO1 not found in server\n"); } - /************************ * Select before operate ***********************/ control = ControlObjectClient_create("simpleIOGenericIO/GGIO1.SPCSO2", con); - if (ControlObjectClient_select(control)) { + if (control) + { + if (ControlObjectClient_select(control)) { - ctlVal = MmsValue_newBoolean(true); + ctlVal = MmsValue_newBoolean(true); - if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { - printf("simpleIOGenericIO/GGIO1.SPCSO2 operated successfully\n"); + if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { + printf("simpleIOGenericIO/GGIO1.SPCSO2 operated successfully\n"); + } + else { + printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO2!\n"); + } + + MmsValue_delete(ctlVal); } else { - printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO2!\n"); + printf("failed to select simpleIOGenericIO/GGIO1.SPCSO2!\n"); } - MmsValue_delete(ctlVal); + ControlObjectClient_destroy(control); } else { - printf("failed to select simpleIOGenericIO/GGIO1.SPCSO2!\n"); + printf("Control object simpleIOGenericIO/GGIO1.SPCSO2 not found in server\n"); } - ControlObjectClient_destroy(control); - - /**************************************** * Direct control with enhanced security ****************************************/ control = ControlObjectClient_create("simpleIOGenericIO/GGIO1.SPCSO3", con); - ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); + if (control) + { + ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); - ctlVal = MmsValue_newBoolean(true); + ctlVal = MmsValue_newBoolean(true); - if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { - printf("simpleIOGenericIO/GGIO1.SPCSO3 operated successfully\n"); - } - else { - printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO3\n"); - } + if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { + printf("simpleIOGenericIO/GGIO1.SPCSO3 operated successfully\n"); + } + else { + printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO3\n"); + } - MmsValue_delete(ctlVal); + MmsValue_delete(ctlVal); - /* Wait for command termination message */ - Thread_sleep(1000); + /* Wait for command termination message */ + Thread_sleep(1000); - ControlObjectClient_destroy(control); + ControlObjectClient_destroy(control); - /* Check if status value has changed */ + /* Check if status value has changed */ - stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO3.stVal", IEC61850_FC_ST); + stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO3.stVal", IEC61850_FC_ST); - if (error == IED_ERROR_OK) { - bool state = MmsValue_getBoolean(stVal); + if (error == IED_ERROR_OK) { + bool state = MmsValue_getBoolean(stVal); - printf("New status of simpleIOGenericIO/GGIO1.SPCSO3.stVal: %i\n", state); + printf("New status of simpleIOGenericIO/GGIO1.SPCSO3.stVal: %i\n", state); - MmsValue_delete(stVal); + MmsValue_delete(stVal); + } + else { + printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO3 failed!\n"); + } } else { - printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO3 failed!\n"); + printf("Control object simpleIOGenericIO/GGIO1.SPCSO3 not found in server\n"); } /*********************************************** * Select before operate with enhanced security ***********************************************/ control = ControlObjectClient_create("simpleIOGenericIO/GGIO1.SPCSO4", con); - ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); + if (control) + { + ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); - ctlVal = MmsValue_newBoolean(true); + ctlVal = MmsValue_newBoolean(true); - if (ControlObjectClient_selectWithValue(control, ctlVal)) { + if (ControlObjectClient_selectWithValue(control, ctlVal)) { + + if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { + printf("simpleIOGenericIO/GGIO1.SPCSO4 operated successfully\n"); + } + else { + printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO4!\n"); + } - if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { - printf("simpleIOGenericIO/GGIO1.SPCSO4 operated successfully\n"); } else { - printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO4!\n"); + printf("failed to select simpleIOGenericIO/GGIO1.SPCSO4!\n"); } + MmsValue_delete(ctlVal); + + /* Wait for command termination message */ + Thread_sleep(1000); + + ControlObjectClient_destroy(control); } else { - printf("failed to select simpleIOGenericIO/GGIO1.SPCSO4!\n"); + printf("Control object simpleIOGenericIO/GGIO1.SPCSO4 not found in server\n"); } - MmsValue_delete(ctlVal); - - /* Wait for command termination message */ - Thread_sleep(1000); - - ControlObjectClient_destroy(control); - - /********************************************************************* * Direct control with enhanced security (expect CommandTermination-) *********************************************************************/ control = ControlObjectClient_create("simpleIOGenericIO/GGIO1.SPCSO9", con); - ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); - - ctlVal = MmsValue_newBoolean(true); + if (control) + { + ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); - if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { - printf("simpleIOGenericIO/GGIO1.SPCSO9 operated successfully\n"); - } - else { - printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO9\n"); - } + ctlVal = MmsValue_newBoolean(true); - MmsValue_delete(ctlVal); + if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { + printf("simpleIOGenericIO/GGIO1.SPCSO9 operated successfully\n"); + } + else { + printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO9\n"); + } - /* Wait for command termination message */ - Thread_sleep(1000); + MmsValue_delete(ctlVal); - ControlObjectClient_destroy(control); + /* Wait for command termination message */ + Thread_sleep(1000); + ControlObjectClient_destroy(control); + } + else { + printf("Control object simpleIOGenericIO/GGIO1.SPCSO9 not found in server\n"); + } IedConnection_close(con); } else { printf("Connection failed!\n");
if (error == IED_ERROR_OK) { MmsValue* ctlVal = MmsValue_newBoolean(true); ControlObjectClient_setOrigin(control, NULL, 3); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO1 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO1\n"); } MmsValue_delete(ctlVal); ControlObjectClient_destroy(control); /* Check if status value has changed */ MmsValue* stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO1.stVal", IEC61850_FC_ST); if (error == IED_ERROR_OK) { bool state = MmsValue_getBoolean(stVal); MmsValue_delete(stVal); printf("New status of simpleIOGenericIO/GGIO1.SPCSO1.stVal: %i\n", state); printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO1 failed!\n"); if (ControlObjectClient_select(control)) { ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO2 operated successfully\n"); printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO2!\n"); MmsValue_delete(ctlVal); printf("failed to select simpleIOGenericIO/GGIO1.SPCSO2!\n"); ControlObjectClient_destroy(control); ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO3 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO3\n"); } MmsValue_delete(ctlVal); /* Wait for command termination message */ Thread_sleep(1000); ControlObjectClient_destroy(control); /* Check if status value has changed */ stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO3.stVal", IEC61850_FC_ST); if (error == IED_ERROR_OK) { bool state = MmsValue_getBoolean(stVal); printf("New status of simpleIOGenericIO/GGIO1.SPCSO3.stVal: %i\n", state); MmsValue_delete(stVal); printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO3 failed!\n"); ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_selectWithValue(control, ctlVal)) { if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO4 operated successfully\n"); printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO4!\n"); printf("failed to select simpleIOGenericIO/GGIO1.SPCSO4!\n"); MmsValue_delete(ctlVal); /* Wait for command termination message */ Thread_sleep(1000); ControlObjectClient_destroy(control); ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO9 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO9\n"); } MmsValue_delete(ctlVal); /* Wait for command termination message */ Thread_sleep(1000); ControlObjectClient_destroy(control);
if (error == IED_ERROR_OK) { MmsValue* ctlVal = NULL; MmsValue* stVal = NULL; if (control) { ctlVal = MmsValue_newBoolean(true); ControlObjectClient_setOrigin(control, NULL, 3); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO1 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO1\n"); } MmsValue_delete(ctlVal); ControlObjectClient_destroy(control); /* Check if status value has changed */ stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO1.stVal", IEC61850_FC_ST); if (error == IED_ERROR_OK) { bool state = MmsValue_getBoolean(stVal); MmsValue_delete(stVal); printf("New status of simpleIOGenericIO/GGIO1.SPCSO1.stVal: %i\n", state); } else { printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO1 failed!\n"); } printf("Control object simpleIOGenericIO/GGIO1.SPCSO1 not found in server\n"); if (control) { if (ControlObjectClient_select(control)) { ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO2 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO2!\n"); } MmsValue_delete(ctlVal); printf("failed to select simpleIOGenericIO/GGIO1.SPCSO2!\n"); ControlObjectClient_destroy(control); printf("Control object simpleIOGenericIO/GGIO1.SPCSO2 not found in server\n"); if (control) { ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO3 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO3\n"); } MmsValue_delete(ctlVal); /* Wait for command termination message */ Thread_sleep(1000); ControlObjectClient_destroy(control); /* Check if status value has changed */ stVal = IedConnection_readObject(con, &error, "simpleIOGenericIO/GGIO1.SPCSO3.stVal", IEC61850_FC_ST); if (error == IED_ERROR_OK) { bool state = MmsValue_getBoolean(stVal); printf("New status of simpleIOGenericIO/GGIO1.SPCSO3.stVal: %i\n", state); MmsValue_delete(stVal); } else { printf("Reading status for simpleIOGenericIO/GGIO1.SPCSO3 failed!\n"); } printf("Control object simpleIOGenericIO/GGIO1.SPCSO3 not found in server\n"); if (control) { ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_selectWithValue(control, ctlVal)) { if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO4 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO4!\n"); } printf("failed to select simpleIOGenericIO/GGIO1.SPCSO4!\n"); MmsValue_delete(ctlVal); /* Wait for command termination message */ Thread_sleep(1000); ControlObjectClient_destroy(control); printf("Control object simpleIOGenericIO/GGIO1.SPCSO4 not found in server\n"); if (control) { ControlObjectClient_setCommandTerminationHandler(control, commandTerminationHandler, NULL); ctlVal = MmsValue_newBoolean(true); if (ControlObjectClient_operate(control, ctlVal, 0 /* operate now */)) { printf("simpleIOGenericIO/GGIO1.SPCSO9 operated successfully\n"); } else { printf("failed to operate simpleIOGenericIO/GGIO1.SPCSO9\n"); } MmsValue_delete(ctlVal); /* Wait for command termination message */ Thread_sleep(1000); ControlObjectClient_destroy(control); } else { printf("Control object simpleIOGenericIO/GGIO1.SPCSO9 not found in server\n"); }
[ "validation" ]
CVE-2019-25087
1a0de56e4dafff9c2f9c8f6b130a764f7a50df52
https://github.com/RamseyK/httpserver
[{'lang': 'en', 'value': "A vulnerability was found in RamseyK httpserver. It has been rated as critical. This issue affects the function ResourceHost::getResource of the file src/ResourceHost.cpp of the component URI Handler. The manipulation of the argument uri leads to path traversal: '../filedir'. The attack may be initiated remotely. The name of the patch is 1a0de56e4dafff9c2f9c8f6b130a764f7a50df52. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-216863."}]
null
7.5
2022-12-27T09:15Z
nan
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Deny any directory traversal paths. README update
2019-09-08 11:23:20 -0500
1a0de56
26
2
[ "README.md", "src/HTTPServer.cpp", "src/ResourceHost.cpp" ]
C++
{"README.md": {"lines_added": 4, "lines_deleted": 1}, "src/HTTPServer.cpp": {"lines_added": 1, "lines_deleted": 1}, "src/ResourceHost.cpp": {"lines_added": 3, "lines_deleted": 0}}
diff --git a/README.md b/README.md index ec0ba22..db89830 100755 --- a/README.md +++ b/README.md @@ -1,15 +1,18 @@ # HTTP Server Ramsey Kant https://github.com/RamseyK/httpserver -A high performance, single threaded, HTTP server written in C++ to serve as a kqueue socket management and HTTP protocol learning tool +A high performance, single threaded, HTTP server written in C++ to serve as a kqueue socket management and HTTP protocol learning tool on BSD systems ## Features * Clean, documented code * Efficient socket management with kqueue * Easy to understand HTTP protocol parser (from my ByteBuffer project) * Tested on FreeBSD and MacOS +## Compiling Notes +* On FreeBSD, compile with gmake + ## License See LICENSE.TXT diff --git a/src/HTTPServer.cpp b/src/HTTPServer.cpp index 75900bc..41fa33d 100755 --- a/src/HTTPServer.cpp +++ b/src/HTTPServer.cpp @@ -438,11 +438,11 @@ void HTTPServer::handleRequest(Client *cl, HTTPRequest* req) { } std::cout << "[" << cl->getClientIP() << "] " << req->methodIntToStr(req->getMethod()) << " " << req->getRequestUri() << std::endl; /*std::cout << "Headers:" << std::endl; for(int i = 0; i < req->getNumHeaders(); i++) { - std::cout << req->getHeaderStr(i) << std::endl; + std::cout << "\t" << req->getHeaderStr(i) << std::endl; } std::cout << std::endl;*/ // Determine the appropriate vhost ResourceHost* resHost = NULL; diff --git a/src/ResourceHost.cpp b/src/ResourceHost.cpp index ab65d41..013221c 100755 --- a/src/ResourceHost.cpp +++ b/src/ResourceHost.cpp @@ -181,10 +181,13 @@ std::string ResourceHost::generateDirList(std::string path) { */ Resource* ResourceHost::getResource(std::string uri) { if (uri.length() > 255 || uri.empty()) return NULL; + if (uri.find("../") != std::string::npos) + return NULL; + std::string path = baseDiskPath + uri; Resource* res = NULL; // Gather info about the resource with stat: determine if it's a directory or file, check if its owned by group/user, modify times struct stat sb;
A high performance, single threaded, HTTP server written in C++ to serve as a kqueue socket management and HTTP protocol learning tool std::cout << req->getHeaderStr(i) << std::endl;
A high performance, single threaded, HTTP server written in C++ to serve as a kqueue socket management and HTTP protocol learning tool on BSD systems ## Compiling Notes * On FreeBSD, compile with gmake std::cout << "\t" << req->getHeaderStr(i) << std::endl; if (uri.find("../") != std::string::npos) return NULL;
[]
CVE-2014-2829
586d96cc12ef218243a3466354b4d208b5472a6c
https://github.com/esl/MongooseIM
[{'lang': 'en', 'value': 'Erlang Solutions MongooseIM through 1.3.1 rev. 2 does not properly restrict the processing of compressed XML elements, which allows remote attackers to cause a denial of service (resource consumption) via a crafted XMPP stream, aka an "xmppbomb" attack.'}]
7.8
null
2014-04-11T01:55Z
HIGH
CWE-264
Permissions, Privileges, and Access Controls
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.
Merge pull request #167 from esl/zlib_cwe400_fix Add zlib inflated data size limit
2014-04-09 15:05:37 +0200
586d96cc
1,451
3
[]
Unknown
{"apps/ejabberd/c_src/ejabberd_zlib_drv.c": {"lines_added": 79, "lines_deleted": 72}, "apps/ejabberd/src/ejabberd_c2s.erl": {"lines_added": 20, "lines_deleted": 18}, "apps/ejabberd/src/ejabberd_receiver.erl": {"lines_added": 10, "lines_deleted": 2}, "apps/ejabberd/src/ejabberd_socket.erl": {"lines_added": 4, "lines_deleted": 3}, "apps/ejabberd/src/ejabberd_zlib.erl": {"lines_added": 11, "lines_deleted": 8}, "apps/ejabberd/src/mod_bosh_socket.erl": {"lines_added": 3, "lines_deleted": 3}, "apps/ejabberd/src/mod_websockets.erl": {"lines_added": 3, "lines_deleted": 3}, "apps/ejabberd/src/xml_stream.erl": {"lines_added": 1, "lines_deleted": 1}, "rel/files/ejabberd.cfg": {"lines_added": 2, "lines_deleted": 0}, "rel/reltool_vars/node1_vars.config": {"lines_added": 7, "lines_deleted": 0}, "rel/vars.config": {"lines_added": 1, "lines_deleted": 1}}
[]
CVE-2020-15084
7ecab5f8f0cab5297c2b863596566eb0c019cdef
https://github.com/auth0/express-jwt
[{'lang': 'en', 'value': 'In express-jwt (NPM package) up and including version 5.3.3, the algorithms entry to be specified in the configuration is not being enforced. When algorithms is not specified in the configuration, with the combination of jwks-rsa, it may lead to authorization bypass. You are affected by this vulnerability if all of the following conditions apply: - You are using express-jwt - You do not have **algorithms** configured in your express-jwt configuration. - You are using libraries such as jwks-rsa as the **secret**. You can fix this by specifying **algorithms** in the express-jwt configuration. See linked GHSA for example. This is also fixed in version 6.0.0.'}]
4.3
9.1
2020-06-30T16:15Z
MEDIUM
CWE-863
Incorrect Authorization
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.
Merge pull request from GHSA-6g6m-m6h5-w9gf Made algorithms mandatory
2020-06-29 16:36:49 -0300
7ecab5f
20
3
[]
Unknown
{"lib/index.js": {"lines_added": 3, "lines_deleted": 0}, "package.json": {"lines_added": 1, "lines_deleted": 1}, "test/jwt.test.js": {"lines_added": 46, "lines_deleted": 29}, "test/multitenancy.test.js": {"lines_added": 4, "lines_deleted": 2}, "test/revocation.test.js": {"lines_added": 2, "lines_deleted": 0}, "test/string_token.test.js": {"lines_added": 1, "lines_deleted": 1}}
[]
CVE-2016-7149
9a4ab85439d1b838ee7b8eeebbf59174bb787811
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'Cross-site scripting (XSS) vulnerability in b2evolution 6.7.5 and earlier allows remote attackers to inject arbitrary web script or HTML via vectors related to the autolink function.'}]
4.3
6.1
2017-01-18T17:59Z
MEDIUM
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix autolink function to avoid XSS issue
2016-08-12 18:11:18 +0300
9a4ab8543
2,948
3
[ "_tests/blogs/evocore/misc.funcs.simpletest.php", "inc/_core/_misc.funcs.php" ]
PHP
{"_tests/blogs/evocore/misc.funcs.simpletest.php": {"lines_added": 3, "lines_deleted": 0}, "inc/_core/_misc.funcs.php": {"lines_added": 4, "lines_deleted": 4}}
diff --git a/_tests/blogs/evocore/misc.funcs.simpletest.php b/_tests/blogs/evocore/misc.funcs.simpletest.php index cd2fe71cb..a58d5b943 100644 --- a/_tests/blogs/evocore/misc.funcs.simpletest.php +++ b/_tests/blogs/evocore/misc.funcs.simpletest.php @@ -52,10 +52,13 @@ class MiscFuncsTestCase extends EvoUnitTestCase 'wanna chat? icq:878787.' => 'wanna chat? <a href="http://wwp.icq.com/scripts/search.dll?to=878787">878787</a>.', '<img src="http://example.com/" />' => '<img src="http://example.com/" />', '<img src=http://example.com/ />' => '<img src=http://example.com/ />', '<div>http://example.com/</div>' => '<div><a href="http://example.com/">http://example.com/</a></div>', + + // XSS sample: + 'text http://test_url.test"onmouseover="alert(1)"onerror=1 "text' => 'text <a href="http://test_url.test">http://test_url.test</a>"onmouseover="alert(1)"onerror=1 "text', ) as $lText => $lExpected ) { $this->assertEqual( make_clickable($lText), $lExpected ); } } diff --git a/inc/_core/_misc.funcs.php b/inc/_core/_misc.funcs.php index c487df914..0f716268c 100644 --- a/inc/_core/_misc.funcs.php +++ b/inc/_core/_misc.funcs.php @@ -1319,15 +1319,15 @@ function make_clickable_callback( $text, $moredelim = '&amp;', $additional_attrs $pattern_domain = '([\p{L}0-9\-]+\.[\p{L}0-9\-.\~]+)'; // a domain name (not very strict) $text = preg_replace( /* Tblue> I removed the double quotes from the first RegExp because it made URLs in tag attributes clickable. See http://forums.b2evolution.net/viewtopic.php?p=92073 */ - array( '#(^|[\s>\(]|\[url=)(https?|mailto)://([^<>{}\s]+[^.,:;!\?<>{}\s\]\)])#i', - '#(^|[\s>\(]|\[url=)aim:([^,<\s\]\)]+)#i', + array( '#(^|[\s>\(]|\[url=)(https?|mailto)://([^"<>{}\s]+[^".,:;!\?<>{}\s\]\)])#i', + '#(^|[\s>\(]|\[url=)aim:([^",<\s\]\)]+)#i', '#(^|[\s>\(]|\[url=)icq:(\d+)#i', - '#(^|[\s>\(]|\[url=)www\.'.$pattern_domain.'([^<>{}\s]*[^.,:;!\?\s\]\)])#i', - '#(^|[\s>\(]|\[url=)([a-z0-9\-_.]+?)@'.$pattern_domain.'([^.,:;!\?<\s\]\)]+)#i', ), + '#(^|[\s>\(]|\[url=)www\.'.$pattern_domain.'([^"<>{}\s]*[^".,:;!\?\s\]\)])#i', + '#(^|[\s>\(]|\[url=)([a-z0-9\-_.]+?)@'.$pattern_domain.'([^".,:;!\?<\s\]\)]+)#i', ), array( '$1<a href="$2://$3"'.$additional_attrs.'>$2://$3</a>', '$1<a href="aim:goim?screenname=$2$3'.$moredelim.'message='.rawurlencode(T_('Hello')).'"'.$additional_attrs.'>$2$3</a>', '$1<a href="http://wwp.icq.com/scripts/search.dll?to=$2"'.$additional_attrs.'>$2</a>', '$1<a href="http://www.$2$3$4"'.$additional_attrs.'>www.$2$3$4</a>', '$1<a href="mailto:$2@$3$4"'.$additional_attrs.'>$2@$3$4</a>', ),
array( '#(^|[\s>\(]|\[url=)(https?|mailto)://([^<>{}\s]+[^.,:;!\?<>{}\s\]\)])#i', '#(^|[\s>\(]|\[url=)aim:([^,<\s\]\)]+)#i', '#(^|[\s>\(]|\[url=)www\.'.$pattern_domain.'([^<>{}\s]*[^.,:;!\?\s\]\)])#i', '#(^|[\s>\(]|\[url=)([a-z0-9\-_.]+?)@'.$pattern_domain.'([^.,:;!\?<\s\]\)]+)#i', ),
// XSS sample: 'text http://test_url.test"onmouseover="alert(1)"onerror=1 "text' => 'text <a href="http://test_url.test">http://test_url.test</a>"onmouseover="alert(1)"onerror=1 "text', array( '#(^|[\s>\(]|\[url=)(https?|mailto)://([^"<>{}\s]+[^".,:;!\?<>{}\s\]\)])#i', '#(^|[\s>\(]|\[url=)aim:([^",<\s\]\)]+)#i', '#(^|[\s>\(]|\[url=)www\.'.$pattern_domain.'([^"<>{}\s]*[^".,:;!\?\s\]\)])#i', '#(^|[\s>\(]|\[url=)([a-z0-9\-_.]+?)@'.$pattern_domain.'([^".,:;!\?<\s\]\)]+)#i', ),
[]
CVE-2016-7150
dd975fff7fce81bf12f9c59edb1a99475747c83c
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'Cross-site scripting (XSS) vulnerability in b2evolution 6.7.5 and earlier allows remote authenticated users to inject arbitrary web script or HTML via the site name.'}]
3.5
5.4
2017-01-18T17:59Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix XSS vulnerability on "site name"
2016-08-12 18:24:55 +0300
dd975fff7f
2,948
3
[ "skins_site/_site_body_header.inc.php" ]
PHP
{"skins_site/_site_body_header.inc.php": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/skins_site/_site_body_header.inc.php b/skins_site/_site_body_header.inc.php index 70e3c21796..99e63b9a90 100644 --- a/skins_site/_site_body_header.inc.php +++ b/skins_site/_site_body_header.inc.php @@ -15,12 +15,12 @@ global $baseurl, $Settings; <nav class="sitewide_header"> <?php if( $Settings->get( 'notification_logo' ) != '' ) { - $site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title="'.$Settings->get( 'notification_long_name' ).'"' : ''; - $site_name_text = '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.$Settings->get( 'notification_short_name' ).'"'.$site_title.' />'; + $site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title="'.format_to_output( $Settings->get( 'notification_long_name' ), 'htmlattr' ).'"' : ''; + $site_name_text = '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.format_to_output( $Settings->get( 'notification_short_name' ), 'htmlattr' ).'"'.$site_title.' />'; $site_title_class = ' swhead_logo'; } else { $site_name_text = $Settings->get( 'notification_short_name' );
$site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title="'.$Settings->get( 'notification_long_name' ).'"' : ''; $site_name_text = '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.$Settings->get( 'notification_short_name' ).'"'.$site_title.' />';
$site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title="'.format_to_output( $Settings->get( 'notification_long_name' ), 'htmlattr' ).'"' : ''; $site_name_text = '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.format_to_output( $Settings->get( 'notification_short_name' ), 'htmlattr' ).'"'.$site_title.' />';
[]
CVE-2016-8901
999b5ad1d59760d7e450ceb541f55432fc74cd27
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'b2evolution 6.7.6 suffer from an Object Injection vulnerability in /htsrv/call_plugin.php.'}]
7.5
9.8
2019-05-23T18:29Z
HIGH
CWE-74
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Fix object injection vulnerability
2016-10-03 10:40:07 +0300
999b5ad1d5
2,948
3
[ "htsrv/call_plugin.php" ]
PHP
{"htsrv/call_plugin.php": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/htsrv/call_plugin.php b/htsrv/call_plugin.php index 919c8e7106..542df0d16f 100644 --- a/htsrv/call_plugin.php +++ b/htsrv/call_plugin.php @@ -34,11 +34,11 @@ if( is_null( $params ) ) { // Use empty array by default if params are not sent by request: $params = array(); } else { // Params given: - if( ( substr( $params, 0, 2 ) == 'a:' ) && ( ! preg_match( '/(;|{|})O:\+?[0-9]+:"/', $params ) ) ) + if( ( substr( $params, 0, 2 ) == 'a:' ) && ( ! preg_match( '/(s:\d+:"[^"]*"|i:\d+)(;|{|})O:\+?[0-9]+:"/', $params ) ) ) { // Allow to unserialize only arrays + check there is no Object in the array (We NEVER want to unserialize an object) // (This may result in "false", but this means that unserializing failed) $params = @unserialize( $params ); } else
if( ( substr( $params, 0, 2 ) == 'a:' ) && ( ! preg_match( '/(;|{|})O:\+?[0-9]+:"/', $params ) ) )
if( ( substr( $params, 0, 2 ) == 'a:' ) && ( ! preg_match( '/(s:\d+:"[^"]*"|i:\d+)(;|{|})O:\+?[0-9]+:"/', $params ) ) )
[]
CVE-2016-8901
25c21cf9cc4261324001f9039509710b37ee2c4d
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'b2evolution 6.7.6 suffer from an Object Injection vulnerability in /htsrv/call_plugin.php.'}]
7.5
9.8
2019-05-23T18:29Z
HIGH
CWE-74
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Fix object injection vulnerability
2016-09-28 07:23:33 +0300
25c21cf9cc
2,948
3
[ "htsrv/call_plugin.php" ]
PHP
{"htsrv/call_plugin.php": {"lines_added": 12, "lines_deleted": 4}}
diff --git a/htsrv/call_plugin.php b/htsrv/call_plugin.php index 1b18e47f84..044d48c703 100644 --- a/htsrv/call_plugin.php +++ b/htsrv/call_plugin.php @@ -28,17 +28,25 @@ param( 'plugin_ID', 'integer', true ); // instead of calling handle_htsrv_action() all the time // and letting the plugin deal with its methods internally. param( 'method', 'string', '' ); param( 'params', 'string', null ); // serialized -if( is_null($params) ) -{ // Default: +if( is_null( $params ) ) +{ // Use empty array by default if params are not sent by request: $params = array(); } else -{ // params given. This may result in "false", but this means that unserializing failed. - $params = @unserialize($params); +{ // Params given: + if( substr( $params, 0, 2 ) == 'a:' ) + { // Allow to unserialize only arrays, to avoid object injection vulnerability: + // (This may result in "false", but this means that unserializing failed) + $params = @unserialize( $params ); + } + else + { // Restrict all non array params to empty array: + $params = array(); + } } if( $plugin_ID ) {
if( is_null($params) ) { // Default: { // params given. This may result in "false", but this means that unserializing failed. $params = @unserialize($params);
if( is_null( $params ) ) { // Use empty array by default if params are not sent by request: { // Params given: if( substr( $params, 0, 2 ) == 'a:' ) { // Allow to unserialize only arrays, to avoid object injection vulnerability: // (This may result in "false", but this means that unserializing failed) $params = @unserialize( $params ); } else { // Restrict all non array params to empty array: $params = array(); }
[]
CVE-2017-1000423
b899d654d931f3bf3cfbbdd71e0d1a0f3a16d04c
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': "b2evolution version 6.6.0 - 6.8.10 is vulnerable to input validation (backslash and single quote escape) in basic install functionality resulting in unauthenticated attacker gaining PHP code execution on the victim's setup."}]
7.5
9.8
2018-01-02T20:29Z
HIGH
CWE-20
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Format install params
2017-08-09 12:27:27 +0300
b899d654d9
2,948
3
[ "install/_functions_install.php" ]
PHP
{"install/_functions_install.php": {"lines_added": 19, "lines_deleted": 7}}
diff --git a/install/_functions_install.php b/install/_functions_install.php index 27d76ae342..c4c2e16055 100644 --- a/install/_functions_install.php +++ b/install/_functions_install.php @@ -1789,10 +1789,22 @@ function check_quick_install_request() return true; } +/** + * Format an install param like DB config and base url + * + * @return string + */ +function format_install_param( $value ) +{ + $value = str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $value ); + return preg_replace( "#([\\\\]*)(\\\\\\\')#", "\\\\\\\\\\\\\\\\\'", $value ); +} + + /** * Update file /conf/_basic_config.php * * @param string Current action, updated by reference * @param array Params @@ -1889,17 +1901,17 @@ function update_basic_config_file( $params = array() ) "#admin_email\s*=\s*'.*?';#", "#config_is_done\s*=.*?;#", ), array( "\$db_config = array(\n" - ."\t'user' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_user'] )."',\$1" - ."\t'password' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_password'] )."',\$2" - ."\t'name' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_name'] )."',\$3" - ."\t'host' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_host'] )."',\$4", - "tableprefix = '".str_replace( "'", "\'", $params['db_tableprefix'] )."';", - "baseurl = '".str_replace( "'", "\'", $params['baseurl'] )."';", - "admin_email = '".str_replace( "'", "\'", $params['admin_email'] )."';", + ."\t'user' => '".format_install_param( $params['db_user'] )."',\$1" + ."\t'password' => '".format_install_param( $params['db_password'] )."',\$2" + ."\t'name' => '".format_install_param( $params['db_name'] )."',\$3" + ."\t'host' => '".format_install_param( $params['db_host'] )."',\$4", + "tableprefix = '".format_install_param( $params['db_tableprefix'] )."';", + "baseurl = '".format_install_param( $params['baseurl'] )."';", + "admin_email = '".format_install_param( $params['admin_email'] )."';", 'config_is_done = 1;', ), $conf ); // Write new contents: if( save_to_file( $conf, $conf_filepath, 'w' ) )
."\t'user' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_user'] )."',\$1" ."\t'password' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_password'] )."',\$2" ."\t'name' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_name'] )."',\$3" ."\t'host' => '".str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $params['db_host'] )."',\$4", "tableprefix = '".str_replace( "'", "\'", $params['db_tableprefix'] )."';", "baseurl = '".str_replace( "'", "\'", $params['baseurl'] )."';", "admin_email = '".str_replace( "'", "\'", $params['admin_email'] )."';",
/** * Format an install param like DB config and base url * * @return string */ function format_install_param( $value ) { $value = str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $value ); return preg_replace( "#([\\\\]*)(\\\\\\\')#", "\\\\\\\\\\\\\\\\\'", $value ); } ."\t'user' => '".format_install_param( $params['db_user'] )."',\$1" ."\t'password' => '".format_install_param( $params['db_password'] )."',\$2" ."\t'name' => '".format_install_param( $params['db_name'] )."',\$3" ."\t'host' => '".format_install_param( $params['db_host'] )."',\$4", "tableprefix = '".format_install_param( $params['db_tableprefix'] )."';", "baseurl = '".format_install_param( $params['baseurl'] )."';", "admin_email = '".format_install_param( $params['admin_email'] )."';",
[]
CVE-2017-1000423
0096a3ebc85f6aadbda2c4427cd092a538b161d2
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': "b2evolution version 6.6.0 - 6.8.10 is vulnerable to input validation (backslash and single quote escape) in basic install functionality resulting in unauthenticated attacker gaining PHP code execution on the victim's setup."}]
7.5
9.8
2018-01-02T20:29Z
HIGH
CWE-20
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Format install params
2017-08-10 10:39:03 +0300
0096a3ebc8
2,948
3
[ "install/_functions_install.php" ]
PHP
{"install/_functions_install.php": {"lines_added": 13, "lines_deleted": 2}}
diff --git a/install/_functions_install.php b/install/_functions_install.php index c4c2e16055..96c065da59 100644 --- a/install/_functions_install.php +++ b/install/_functions_install.php @@ -1796,12 +1796,23 @@ function check_quick_install_request() * * @return string */ function format_install_param( $value ) { - $value = str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $value ); - return preg_replace( "#([\\\\]*)(\\\\\\\')#", "\\\\\\\\\\\\\\\\\'", $value ); + // We need backslashes only for single quote(') and backslash(\): + $value = addcslashes( $value, "'\\" ); + /* + The below code excludes even number of slashes, because we need always odd + number of slashes before single quote(') to avoid a broken string value. + Examples for source and result: + \' => \' (1 slash is not converted because it is used only for single quote backslashing) + \\' => \\\' (2 slashes are converted to 3, because only first one slash must be backslashed) + \\\' => \\\\\' (3 slashes are converted to 5, first two slashes must be backslashed) + \\\\' => \\\\\\\' (4 slashes are converted to 7, first three slashes must be backslashed) + \\\\\' => \\\\\\\\\' (5 slashes are converted to 9, first four slashes must be backslashed) + */ + return preg_replace( '#(\\\\*)(\\\')#', '$1$1$2', $value ); } /** * Update file /conf/_basic_config.php
$value = str_replace( array( "'", "\$" ), array( "\'", "\\$" ), $value ); return preg_replace( "#([\\\\]*)(\\\\\\\')#", "\\\\\\\\\\\\\\\\\'", $value );
// We need backslashes only for single quote(') and backslash(\): $value = addcslashes( $value, "'\\" ); /* The below code excludes even number of slashes, because we need always odd number of slashes before single quote(') to avoid a broken string value. Examples for source and result: \' => \' (1 slash is not converted because it is used only for single quote backslashing) \\' => \\\' (2 slashes are converted to 3, because only first one slash must be backslashed) \\\' => \\\\\' (3 slashes are converted to 5, first two slashes must be backslashed) \\\\' => \\\\\\\' (4 slashes are converted to 7, first three slashes must be backslashed) \\\\\' => \\\\\\\\\' (5 slashes are converted to 9, first four slashes must be backslashed) */ return preg_replace( '#(\\\\*)(\\\')#', '$1$1$2', $value );
[]
CVE-2017-5480
26841d9c81f27ad23b2f6e4bd5eaec7f2f58dfe0
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'Directory traversal vulnerability in inc/files/files.ctrl.php in b2evolution through 6.8.3 allows remote authenticated users to read or delete arbitrary files by leveraging back-office access to provide a .. (dot dot) in the fm_selected array parameter.'}]
5.5
8.1
2017-01-15T22:59Z
MEDIUM
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Fixed fm_selected parameter exploit
2017-01-15 16:31:00 +0800
26841d9c81
2,948
3
[ "inc/files/files.ctrl.php" ]
PHP
{"inc/files/files.ctrl.php": {"lines_added": 7, "lines_deleted": 0}}
diff --git a/inc/files/files.ctrl.php b/inc/files/files.ctrl.php index 66a473a5b8..e7ecda94e8 100644 --- a/inc/files/files.ctrl.php +++ b/inc/files/files.ctrl.php @@ -341,12 +341,19 @@ $Debuglog->add( count($fm_selected).' selected files/directories', 'files' ); * The selected files (must be within current fileroot) * * @global Filelist */ $selected_Filelist = new Filelist( $fm_FileRoot, $ads_list_path ); + +// Prevent directory traversal using '..' +$re = '/\/?\.\.\/+/'; foreach( $fm_selected as $l_source_path ) { + if( preg_match( $re, $l_source_path ) ) + { + debug_die( 'Invalid fm_selected parameter value' ); + } $selected_Filelist->add_by_subpath( urldecode($l_source_path), true ); } /*
// Prevent directory traversal using '..' $re = '/\/?\.\.\/+/'; if( preg_match( $re, $l_source_path ) ) { debug_die( 'Invalid fm_selected parameter value' ); }
[]
CVE-2017-5494
261dbd5b294e707af766691e65a177a290314a6e
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'Multiple cross-site scripting (XSS) vulnerabilities in the file types table in b2evolution through 6.8.3 allow remote authenticated users to inject arbitrary web script or HTML via a .swf file in a (1) comment frame or (2) avatar frame.'}]
3.5
5.4
2017-01-15T22:59Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Updated file types table to only allow admins to upload files with SWF extension
2017-01-15 15:17:52 +0800
261dbd5b29
2,948
3
[ "conf/_application.php", "install/_functions_create.php", "install/_functions_evoupgrade.php" ]
PHP
{"conf/_application.php": {"lines_added": 1, "lines_deleted": 1}, "install/_functions_create.php": {"lines_added": 1, "lines_deleted": 1}, "install/_functions_evoupgrade.php": {"lines_added": 8, "lines_deleted": 0}}
diff --git a/conf/_application.php b/conf/_application.php index 9e34c30c12..fc5f12fe77 100644 --- a/conf/_application.php +++ b/conf/_application.php @@ -34,11 +34,11 @@ $app_version_long = $app_version.'-'.$app_date; * This will be incrememented by 5 with each change in {@link upgrade_b2evo_tables()} * in order to leave space for maintenance releases. * * {@internal Before changing this in CVS, it should be discussed! }} */ -$new_db_version = 11810; +$new_db_version = 11815; /** * Minimum PHP version required for b2evolution to function properly. It will contain each module own minimum PHP version as well. * @global array */ diff --git a/install/_functions_create.php b/install/_functions_create.php index 0e5b45ecbf..93038ac894 100644 --- a/install/_functions_create.php +++ b/install/_functions_create.php @@ -446,11 +446,11 @@ function create_default_data() (15, 'm4a', 'MPEG audio file', 'audio/x-m4a', 'file_sound', 'browser', 'registered'), (16, 'mp4 f4v', 'MPEG video', 'video/mp4', 'file_video', 'browser', 'registered'), (17, 'mov', 'Quicktime video', 'video/quicktime', 'file_video', 'browser', 'registered'), (18, 'm4v', 'MPEG video file', 'video/x-m4v', 'file_video', 'browser', 'registered'), (19, 'flv', 'Flash video file', 'video/x-flv', 'file_video', 'browser', 'registered'), - (20, 'swf', 'Flash video file', 'application/x-shockwave-flash', 'file_video', 'browser', 'registered'), + (20, 'swf', 'Flash video file', 'application/x-shockwave-flash', 'file_video', 'browser', 'admin'), (21, 'webm', 'WebM video file', 'video/webm', 'file_video', 'browser', 'registered'), (22, 'ogv', 'Ogg video file', 'video/ogg', 'file_video', 'browser', 'registered'), (23, 'm3u8', 'M3U8 video file', 'application/x-mpegurl', 'file_video', 'browser', 'registered'), (24, 'xml', 'XML file', 'application/xml', 'file_www', 'browser', 'admin') " ); diff --git a/install/_functions_evoupgrade.php b/install/_functions_evoupgrade.php index 3435fca6d4..18c0520198 100644 --- a/install/_functions_evoupgrade.php +++ b/install/_functions_evoupgrade.php @@ -7590,10 +7590,18 @@ function upgrade_b2evo_tables( $upgrade_action = 'evoupgrade' ) $DB->query( 'ALTER TABLE T_plugins MODIFY plug_priority TINYINT UNSIGNED NOT NULL default 50' ); upg_task_end(); } + if( upg_task_start( 11815, 'Updating file types table...' ) ) + { // part of 6.7.10-stable + $DB->query( 'UPDATE T_filetypes + SET ftyp_allowed = "admin" + WHERE ftyp_extensions REGEXP "[[:<:]]swf[[:>:]]"' ); + upg_task_end(); + } + /* * ADD UPGRADES __ABOVE__ IN A NEW UPGRADE BLOCK. * * YOU MUST USE: * task_begin( 'Descriptive text about action...' );
$new_db_version = 11810; (20, 'swf', 'Flash video file', 'application/x-shockwave-flash', 'file_video', 'browser', 'registered'),
$new_db_version = 11815; (20, 'swf', 'Flash video file', 'application/x-shockwave-flash', 'file_video', 'browser', 'admin'), if( upg_task_start( 11815, 'Updating file types table...' ) ) { // part of 6.7.10-stable $DB->query( 'UPDATE T_filetypes SET ftyp_allowed = "admin" WHERE ftyp_extensions REGEXP "[[:<:]]swf[[:>:]]"' ); upg_task_end(); }
[]
CVE-2017-5539
e35f7c195d8c1103d2d981a48cda5ab45ecac48a
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'The patch for directory traversal (CVE-2017-5480) in b2evolution version 6.8.4-stable has a bypass vulnerability. An attacker can use ..\\/ to bypass the filter rule. Then, this attacker can exploit this vulnerability to delete or read any files on the server. It can also be used to determine whether a file exists.'}]
9
9.1
2017-01-23T07:59Z
HIGH
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Merge branch 'develop'
2017-01-19 17:14:27 +0100
e35f7c195d
2,948
3
[]
Unknown
{"Gruntfile.js": {"lines_added": 2, "lines_deleted": 0}, "conf/_advanced.php": {"lines_added": 7, "lines_deleted": 0}, "conf/_application.php": {"lines_added": 3, "lines_deleted": 3}, "htsrv/anon_async.php": {"lines_added": 140, "lines_deleted": 0}, "htsrv/async.php": {"lines_added": 35, "lines_deleted": 112}, "htsrv/getfile.php": {"lines_added": 1, "lines_deleted": 1}, "htsrv/quick_unsubscribe.php": {"lines_added": 6, "lines_deleted": 0}, "htsrv/quick_upload.php": {"lines_added": 17, "lines_deleted": 9}, "htsrv/viewfile.php": {"lines_added": 1, "lines_deleted": 1}, "inc/_core/_misc.funcs.php": {"lines_added": 8, "lines_deleted": 5}, "inc/_core/_param.funcs.php": {"lines_added": 77, "lines_deleted": 5}, "inc/_core/ui/forms/_form.class.php": {"lines_added": 260, "lines_deleted": 0}, "inc/_core/ui/forms/_form.funcs.php": {"lines_added": 57, "lines_deleted": 0}, "inc/_ext/phpwhois/whois.client.php": {"lines_added": 89, "lines_deleted": 86}, "inc/_ext/phpwhois/whois.ip.php": {"lines_added": 26, "lines_deleted": 15}, "inc/chapters/model/_chapter.class.php": {"lines_added": 17, "lines_deleted": 1}, "inc/chapters/model/_chaptercache.class.php": {"lines_added": 1, "lines_deleted": 1}, "inc/chapters/views/_chapter.form.php": {"lines_added": 5, "lines_deleted": 1}, "inc/chapters/views/_chapter_list.view.php": {"lines_added": 18, "lines_deleted": 0}, "inc/collections/_collections.init.php": {"lines_added": 6, "lines_deleted": 0}, "inc/collections/collections.ctrl.php": {"lines_added": 2, "lines_deleted": 3}, "inc/collections/model/_blog.class.php": {"lines_added": 4, "lines_deleted": 0}, "inc/collections/model/_collections.install.php": {"lines_added": 5, "lines_deleted": 3}, "inc/collections/views/_coll_features.form.php": {"lines_added": 2, "lines_deleted": 0}, "inc/collections/views/_coll_settings_site.form.php": {"lines_added": 2, "lines_deleted": 1}, "inc/comments/views/_comment.form.php": {"lines_added": 5, "lines_deleted": 3}, "inc/cron/jobs/_monthly_alert_old_contents.job.php": {"lines_added": 279, "lines_deleted": 0}, "inc/cron/jobs/_post_moderation_reminder.job.php": {"lines_added": 15, "lines_deleted": 8}, "inc/dashboard/model/_dashboard.funcs.php": {"lines_added": 10, "lines_deleted": 0}, "inc/email_campaigns/views/_campaigns_compose.form.php": {"lines_added": 5, "lines_deleted": 5}, "inc/files/files.ctrl.php": {"lines_added": 15, "lines_deleted": 16}, "inc/files/model/_file.funcs.php": {"lines_added": 19, "lines_deleted": 6}, "inc/files/model/_filelist.class.php": {"lines_added": 9, "lines_deleted": 3}, "inc/files/model/_fileroot.class.php": {"lines_added": 20, "lines_deleted": 0}, "inc/files/upload.ctrl.php": {"lines_added": 3, "lines_deleted": 3}, "inc/files/views/_file_list.inc.php": {"lines_added": 47, "lines_deleted": 1}, "inc/items/items.ctrl.php": {"lines_added": 1, "lines_deleted": 1}, "inc/items/model/_item.class.php": {"lines_added": 82, "lines_deleted": 2}, "inc/items/model/_item.funcs.php": {"lines_added": 37, "lines_deleted": 0}, "inc/items/views/_item_expert.form.php": {"lines_added": 8, "lines_deleted": 7}, "inc/links/model/_link.funcs.php": {"lines_added": 30, "lines_deleted": 20}, "inc/links/model/_linkitem.class.php": {"lines_added": 97, "lines_deleted": 17}, "inc/links/model/_linkmessage.class.php": {"lines_added": 4, "lines_deleted": 2}, "inc/links/model/_linkowner.class.php": {"lines_added": 29, "lines_deleted": 24}, "inc/links/model/_temporaryid.class.php": {"lines_added": 2, "lines_deleted": 0}, "inc/links/views/_link_list.view.php": {"lines_added": 8, "lines_deleted": 6}, "inc/messaging/messages.ctrl.php": {"lines_added": 4, "lines_deleted": 0}, "inc/messaging/model/_message.class.php": {"lines_added": 1, "lines_deleted": 1}, "inc/messaging/views/_message_list.view.php": {"lines_added": 5, "lines_deleted": 4}, "inc/messaging/views/_thread.form.php": {"lines_added": 5, "lines_deleted": 4}, "inc/plugins/_plugin.class.php": {"lines_added": 6, "lines_deleted": 2}, "inc/plugins/_plugin.funcs.php": {"lines_added": 12, "lines_deleted": 0}, "inc/rest/_restapi.class.php": {"lines_added": 28, "lines_deleted": 2}, "inc/skins/model/_skin.class.php": {"lines_added": 22, "lines_deleted": 1}, "inc/tools/email.ctrl.php": {"lines_added": 3, "lines_deleted": 2}, "inc/tools/system.ctrl.php": {"lines_added": 50, "lines_deleted": 56}, "inc/tools/views/_email_settings.form.php": {"lines_added": 2, "lines_deleted": 1}, "inc/users/model/_group.class.php": {"lines_added": 0, "lines_deleted": 8}, "inc/users/model/_user.class.php": {"lines_added": 1, "lines_deleted": 0}, "inc/users/model/_usersettings.class.php": {"lines_added": 1, "lines_deleted": 0}, "inc/users/views/_user_admin.form.php": {"lines_added": 6, "lines_deleted": 2}, "inc/users/views/_user_subscriptions.form.php": {"lines_added": 1, "lines_deleted": 0}, "inc/widgets/widgets/_coll_item_list.widget.php": {"lines_added": 67, "lines_deleted": 43}, "inc/widgets/widgets/_coll_logo.widget.php": {"lines_added": 55, "lines_deleted": 11}, "inc/widgets/widgets/_image.widget.php": {"lines_added": 30, "lines_deleted": 7}, "install/_functions_create.php": {"lines_added": 2, "lines_deleted": 0}, "install/_functions_evoupgrade.php": {"lines_added": 15, "lines_deleted": 2}, "plugins/_smilies.plugin.php": {"lines_added": 1, "lines_deleted": 1}, "plugins/markdown_plugin/_parsedown.inc.php": {"lines_added": 5, "lines_deleted": 4}, "rsc/build/b2evo_base.bmin.css": {"lines_added": 1, "lines_deleted": 1}, "rsc/build/b2evo_base.bundle.css": {"lines_added": 49, "lines_deleted": 0}, "rsc/build/bootstrap-b2evo_base.bmin.css": {"lines_added": 1, "lines_deleted": 1}, "rsc/build/bootstrap-b2evo_base.bundle.css": {"lines_added": 86, "lines_deleted": 0}, "rsc/build/bootstrap-backoffice-b2evo_base.bmin.css": {"lines_added": 1, "lines_deleted": 1}, "rsc/build/bootstrap-backoffice-b2evo_base.bundle.css": {"lines_added": 21, "lines_deleted": 0}, "rsc/css/basic.css": {"lines_added": 49, "lines_deleted": 0}, "rsc/css/bootstrap-blog_base.css": {"lines_added": 61, "lines_deleted": 0}, "rsc/js/bozo_validator.js": {"lines_added": 1, "lines_deleted": 1}, "rsc/js/build/bootstrap-evo_backoffice.bmin.js": {"lines_added": 2, "lines_deleted": 2}, "rsc/js/build/bootstrap-evo_frontoffice.bmin.js": {"lines_added": 1, "lines_deleted": 1}, "rsc/js/build/evo_backoffice.bmin.js": {"lines_added": 2, "lines_deleted": 2}, "rsc/js/build/evo_frontoffice.bmin.js": {"lines_added": 1, "lines_deleted": 1}, "rsc/js/src/evo_links.js": {"lines_added": 11, "lines_deleted": 13}, "rsc/less/basic.less": {"lines_added": 28, "lines_deleted": 0}, "rsc/less/bootstrap-basic.less": {"lines_added": 29, "lines_deleted": 1}, "rsc/less/bootstrap-blog_base.less": {"lines_added": 68, "lines_deleted": 0}, "skins/pureforums/pureforums.bmin.css": {"lines_added": 1, "lines_deleted": 0}, "skins/pureforums/pureforums.bundle.css": {"lines_added": 1070, "lines_deleted": 0}, "skins/pureforums/pureforums_header.css": {"lines_added": 214, "lines_deleted": 0}, "skins/pureforums/pureforums_main.css": {"lines_added": 847, "lines_deleted": 0}, "skins_adm/bootstrap/_adminUI.class.php": {"lines_added": 0, "lines_deleted": 12}, "skins_email/_email_footer.inc.txt.php": {"lines_added": 1, "lines_deleted": 1}, "skins_email/_email_header.inc.html.php": {"lines_added": 10, "lines_deleted": 2}, "skins_email/posts_stale_alert.html.php": {"lines_added": 46, "lines_deleted": 0}, "skins_email/posts_stale_alert.txt.php": {"lines_added": 42, "lines_deleted": 0}, "skins_fallback_v6/_edit.disp.php": {"lines_added": 10, "lines_deleted": 44}, "skins_site/_site_body_header.inc.php": {"lines_added": 12, "lines_deleted": 3}}
[]
CVE-2017-5553
ce5b36e44b714b18b0bcd34c6db0187b8d13bab8
https://github.com/b2evolution/b2evolution
[{'lang': 'en', 'value': 'Cross-site scripting (XSS) vulnerability in plugins/markdown_plugin/_markdown.plugin.php in b2evolution before 6.8.5 allows remote authenticated users to inject arbitrary web script or HTML via a javascript: URL.'}]
3.5
5.4
2017-01-23T07:59Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Ignore wrong urls on markdown plugin
2017-01-19 10:24:29 +0300
ce5b36e44b
2,948
3
[ "plugins/markdown_plugin/_parsedown.inc.php" ]
PHP
{"plugins/markdown_plugin/_parsedown.inc.php": {"lines_added": 5, "lines_deleted": 4}}
diff --git a/plugins/markdown_plugin/_parsedown.inc.php b/plugins/markdown_plugin/_parsedown.inc.php index 9ab2f281d9..7aea9f0065 100644 --- a/plugins/markdown_plugin/_parsedown.inc.php +++ b/plugins/markdown_plugin/_parsedown.inc.php @@ -27,10 +27,11 @@ Modifications by yura: - #header {.header-class-value#header-id-value} => <h1 id="header-id-value" class="header-class-value">header</h1> - ####header {#header-id-value.header-class-value} => <h4 class="header-class-value" id="header-id-value">header</h4> 9. Don't apply <p> around list and already existing paragraph tags 10. Don't convert HTML entities inside <code> html tags because the "Escape code" plugin does this 11. Fix the missed empty lines in code blocks which are started and ended with ``` + 12. Ignore wrong URLs for links and images; Allow only which begin with http://, https:// or / */ class Parsedown { # @@ -98,11 +99,11 @@ class Parsedown } */ # Extracts link references. - if (preg_match_all('/^[ ]{0,3}\[(.+)\][ ]?:[ ]*\n?[ ]*(.+)$/m', $text, $matches, PREG_SET_ORDER)) + if (preg_match_all('/^[ ]{0,3}\[(.+)\][ ]?:[ ]*\n?[ ]*((https?:\/\/|\/).+)$/m', $text, $matches, PREG_SET_ORDER)) { foreach ($matches as $matches) { $this->reference_map[strtolower($matches[1])] = $matches[2]; @@ -587,27 +588,27 @@ class Parsedown # Inline Link / Image if( strpos($text, '](') !== FALSE ) # inline { $text = str_replace( '&quot;', '"', $text ); // revert from html entity - if( preg_match_all( '/(!?)(\[((?:[^][]+|(?2))*)\])\(([^"]*?)( "([^"]+)")?\)/', $text, $matches, PREG_SET_ORDER ) ) + if( preg_match_all( '/(!?)(\[((?:[^][]+|(?2))*)\])\((https?:\/\/|\/)([^"]*?)( "([^"]+)")?\)/', $text, $matches, PREG_SET_ORDER ) ) { foreach ($matches as $matches) { if ($matches[1]) # image { if( $this->parse_images ) { // Parse images only if it is enabled - $element = '<img src="'.$matches[4].'" alt="'.$matches[3].'"'.( ! empty( $matches[6] ) ? ' title="'.$matches[6].'"' : '' ).'>'; + $element = '<img src="'.$matches[4].$matches[5].'" alt="'.$matches[3].'"'.( ! empty( $matches[7] ) ? ' title="'.$matches[7].'"' : '' ).'>'; } } else { if( $this->parse_links ) { // Parse links only if it is enabled $element_text = $this->parse_inline_elements($matches[3]); - $element = '<a href="'.$matches[4].'"'.( ! empty( $matches[6] ) ? ' title="'.$matches[6].'"' : '' ).'>'.$element_text.'</a>'; + $element = '<a href="'.$matches[4].$matches[5].'"'.( ! empty( $matches[7] ) ? ' title="'.$matches[7].'"' : '' ).'>'.$element_text.'</a>'; } } if( ! isset( $element ) ) {
if (preg_match_all('/^[ ]{0,3}\[(.+)\][ ]?:[ ]*\n?[ ]*(.+)$/m', $text, $matches, PREG_SET_ORDER)) if( preg_match_all( '/(!?)(\[((?:[^][]+|(?2))*)\])\(([^"]*?)( "([^"]+)")?\)/', $text, $matches, PREG_SET_ORDER ) ) $element = '<img src="'.$matches[4].'" alt="'.$matches[3].'"'.( ! empty( $matches[6] ) ? ' title="'.$matches[6].'"' : '' ).'>'; $element = '<a href="'.$matches[4].'"'.( ! empty( $matches[6] ) ? ' title="'.$matches[6].'"' : '' ).'>'.$element_text.'</a>';
12. Ignore wrong URLs for links and images; Allow only which begin with http://, https:// or / if (preg_match_all('/^[ ]{0,3}\[(.+)\][ ]?:[ ]*\n?[ ]*((https?:\/\/|\/).+)$/m', $text, $matches, PREG_SET_ORDER)) if( preg_match_all( '/(!?)(\[((?:[^][]+|(?2))*)\])\((https?:\/\/|\/)([^"]*?)( "([^"]+)")?\)/', $text, $matches, PREG_SET_ORDER ) ) $element = '<img src="'.$matches[4].$matches[5].'" alt="'.$matches[3].'"'.( ! empty( $matches[7] ) ? ' title="'.$matches[7].'"' : '' ).'>'; $element = '<a href="'.$matches[4].$matches[5].'"'.( ! empty( $matches[7] ) ? ' title="'.$matches[7].'"' : '' ).'>'.$element_text.'</a>';
[]
CVE-2020-24654
8bf8c5ef07b0ac5e914d752681e470dea403a5bd
https://github.com/KDE/ark
[{'lang': 'en', 'value': "In KDE Ark before 20.08.1, a crafted TAR archive with symlinks can install files outside the extraction directory, as demonstrated by a write operation to a user's home directory."}]
4.3
3.3
2020-09-02T17:15Z
MEDIUM
CWE-59
Improper Link Resolution Before File Access ('Link Following')
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Pass the ARCHIVE_EXTRACT_SECURE_SYMLINKS flag to libarchive There are archive types which allow to first create a symlink and then later on dereference it. If the symlink points outside of the archive, this results in writing outside of the destination directory. With the ARCHIVE_EXTRACT_SECURE_SYMLINKS option set, libarchive avoids this situation by verifying that none of the target path components are symlinks before writing. Remove the commented out code in the method, which would actually misbehave if enabled again. Signed-off-by: Fabian Vogt <fabian@ritter-vogt.de>
2020-08-27 21:47:49 +0200
8bf8c5ef
506
2
[ "plugins/libarchive/libarchiveplugin.cpp" ]
C++
{"plugins/libarchive/libarchiveplugin.cpp": {"lines_added": 3, "lines_deleted": 15}}
diff --git a/plugins/libarchive/libarchiveplugin.cpp b/plugins/libarchive/libarchiveplugin.cpp index 50e81da1..8a0fed21 100644 --- a/plugins/libarchive/libarchiveplugin.cpp +++ b/plugins/libarchive/libarchiveplugin.cpp @@ -507,25 +507,13 @@ void LibarchivePlugin::emitEntryFromArchiveEntry(struct archive_entry *aentry) m_emittedEntries << e; } int LibarchivePlugin::extractionFlags() const { - int result = ARCHIVE_EXTRACT_TIME; - result |= ARCHIVE_EXTRACT_SECURE_NODOTDOT; - - // TODO: Don't use arksettings here - /*if ( ArkSettings::preservePerms() ) - { - result &= ARCHIVE_EXTRACT_PERM; - } - - if ( !ArkSettings::extractOverwrite() ) - { - result &= ARCHIVE_EXTRACT_NO_OVERWRITE; - }*/ - - return result; + return ARCHIVE_EXTRACT_TIME + | ARCHIVE_EXTRACT_SECURE_NODOTDOT + | ARCHIVE_EXTRACT_SECURE_SYMLINKS; } void LibarchivePlugin::copyData(const QString& filename, struct archive *dest, bool partialprogress) { char buff[10240];
int result = ARCHIVE_EXTRACT_TIME; result |= ARCHIVE_EXTRACT_SECURE_NODOTDOT; // TODO: Don't use arksettings here /*if ( ArkSettings::preservePerms() ) { result &= ARCHIVE_EXTRACT_PERM; } if ( !ArkSettings::extractOverwrite() ) { result &= ARCHIVE_EXTRACT_NO_OVERWRITE; }*/ return result;
return ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_SECURE_NODOTDOT | ARCHIVE_EXTRACT_SECURE_SYMLINKS;
[ "validation" ]
CVE-2015-10092
74b3932696f9868e14563e51b7d0bb68c53bf5e4
https://github.com/wp-plugins/qtranslate-slug
[{'lang': 'en', 'value': 'A vulnerability was found in Qtranslate Slug Plugin up to 1.1.16 on WordPress. It has been classified as problematic. Affected is the function add_slug_meta_box of the file includes/class-qtranslate-slug.php. The manipulation leads to cross site scripting. It is possible to launch the attack remotely. Upgrading to version 1.1.17 is able to address this issue. The name of the patch is 74b3932696f9868e14563e51b7d0bb68c53bf5e4. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-222324.'}]
null
6.1
2023-03-06T06:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
fixed XSS and added hability to filter the metabox position git-svn-id: https://plugins.svn.wordpress.org/qtranslate-slug/trunk@1213627 b8457f37-d9ea-0310-8a92-e5e31aec5664
2015-08-05 17:32:56 +0000
74b3932
24
2
[ "assets/css/qts-default.css", "assets/css/qts-default.min.css", "assets/css/qts-settings.css", "assets/js/qts-nav-menu-min.js", "assets/js/qts-nav-menu.js", "assets/js/qts-settings-upgrade.js", "assets/js/qts-settings.js", "includes/class-qtranslate-slug-widget.php", "includes/class-qtranslate-slug.php", "includes/qtranslate-slug-settings-options.php", "includes/qtranslate-slug-settings.php", "includes/termmeta-core.php", "languages/qts-es_ES.po", "languages/qts-pt_PT.po", "languages/qts.pot", "qtranslate-slug.php", "readme.txt", "version.txt" ]
PHP
{"assets/css/qts-default.css": {"lines_added": 16, "lines_deleted": 0}, "assets/css/qts-default.min.css": {"lines_added": 1, "lines_deleted": 0}, "assets/css/qts-settings.css": {"lines_added": 42, "lines_deleted": 0}, "assets/js/qts-nav-menu-min.js": {"lines_added": 1, "lines_deleted": 0}, "assets/js/qts-nav-menu.js": {"lines_added": 167, "lines_deleted": 0}, "assets/js/qts-settings-upgrade.js": {"lines_added": 69, "lines_deleted": 0}, "assets/js/qts-settings.js": {"lines_added": 19, "lines_deleted": 0}, "includes/class-qtranslate-slug-widget.php": {"lines_added": 62, "lines_deleted": 0}, "includes/class-qtranslate-slug.php": {"lines_added": 2696, "lines_deleted": 0}, "includes/qtranslate-slug-settings-options.php": {"lines_added": 179, "lines_deleted": 0}, "includes/qtranslate-slug-settings.php": {"lines_added": 979, "lines_deleted": 0}, "includes/termmeta-core.php": {"lines_added": 223, "lines_deleted": 0}, "languages/qts-es_ES.mo": {"lines_added": 0, "lines_deleted": 0}, "languages/qts-es_ES.po": {"lines_added": 142, "lines_deleted": 0}, "languages/qts-pt_PT.mo": {"lines_added": 0, "lines_deleted": 0}, "languages/qts-pt_PT.po": {"lines_added": 343, "lines_deleted": 0}, "languages/qts.pot": {"lines_added": 313, "lines_deleted": 0}, "qtranslate-slug.php": {"lines_added": 193, "lines_deleted": 0}, "readme.txt": {"lines_added": 278, "lines_deleted": 0}, "screenshot-1.png": {"lines_added": 0, "lines_deleted": 0}, "screenshot-2.png": {"lines_added": 0, "lines_deleted": 0}, "screenshot-3.png": {"lines_added": 0, "lines_deleted": 0}, "screenshot-4.png": {"lines_added": 0, "lines_deleted": 0}, "version.txt": {"lines_added": 127, "lines_deleted": 0}}
diff --git a/assets/css/qts-default.css b/assets/css/qts-default.css new file mode 100644 index 0000000..c700de0 --- /dev/null +++ b/assets/css/qts-default.css @@ -0,0 +1,16 @@ +.qts_type_image .qts_lang_item { + float: left; + margin-right: 7px; +} +.qts_type_image .qts_lang_item.last-child { + margin-right: 0; +} +.qts_lang_item{ + margin-top: 7px; + margin-bottom: 7px; +} +.qts_both { + white-space: nowrap; + line-height:1em; +} +.qts_both img { margin-right: 4px } diff --git a/assets/css/qts-default.min.css b/assets/css/qts-default.min.css new file mode 100644 index 0000000..e8867d1 --- /dev/null +++ b/assets/css/qts-default.min.css @@ -0,0 +1 @@ +.qts_type_image .qts_lang_item{float:left;margin-right:7px}.qts_type_image .qts_lang_item.last-child{margin-right:0}.qts_lang_item{margin-top:7px;margin-bottom:7px}.qts_both{white-space:nowrap;line-height:1em}.qts_both img{margin-right:4px} \ No newline at end of file diff --git a/assets/css/qts-settings.css b/assets/css/qts-settings.css new file mode 100755 index 0000000..16e263b --- /dev/null +++ b/assets/css/qts-settings.css @@ -0,0 +1,42 @@ +/*messages*/ +.error {color:#cc0000;} + +.form-table th { + width: 15%; + min-width: 15% !important; +} + +.form-table td > span { + display: inline-block; + min-width: 100px; +} + +.form-table label { + display: block; + margin-bottom: 8px; +} + +.qts-slug { + width: 35%; +} + +#qts-loading { + display: none; + position: relative; + margin-left: 5px; + vertical-align: middle; +} + +div.updated.success{ + border-color: #298e00; + background-color: #D4EDC9; +} + +.error a.button-primary { + color: white !important; + text-decoration: none !important; +} + +.ko { + color: #c00; +} \ No newline at end of file diff --git a/assets/js/qts-nav-menu-min.js b/assets/js/qts-nav-menu-min.js new file mode 100644 index 0000000..95d44e4 --- /dev/null +++ b/assets/js/qts-nav-menu-min.js @@ -0,0 +1 @@ +jQuery(document).ready(function(t){function i(){t(".item-title").each(function(){n[t(this).closest("li").attr("id")]=[],n[t(this).closest("li").attr("id")].Title=t(this).find("span").html(),"undefined"==typeof n[t(this).closest("li").attr("id")].Original&&(n[t(this).closest("li").attr("id")].Original=n[t(this).closest("li").attr("id")].Title)}),t(".menu-item").each(function(){this_label=t(this).find("input.edit-menu-item-title"),this_title=t(this).find("input.edit-menu-item-attr-title"),n[t(this).attr("id")][this_label.attr("id")]=this_label.val(),n[t(this).attr("id")][this_title.attr("id")]=this_title.val()})}function e(){regexp=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i"),t(".item-title").each(function(){(matches=n[t(this).closest("li").attr("id")].Original.match(regexp))&&t(this).closest("li").find(".link-to-original a").text(matches[1])}),regexp2=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i"),t(".menu-item").each(function(){this_label=t(this).find("input.edit-menu-item-title"),this_title=t(this).find("input.edit-menu-item-attr-title"),"all"===d?(this_label.val(n[t(this).attr("id")][this_label.attr("id")]),this_title.val(n[t(this).attr("id")][this_title.attr("id")])):((matches=n[t(this).attr("id")][this_label.attr("id")].match(regexp2))&&this_label.val(matches[1]),(matches2=n[t(this).attr("id")][this_title.attr("id")].match(regexp2))&&this_title.val(matches2[1]))})}function a(){t(".menu-item").each(function(){this_label=t(this).find("input.edit-menu-item-title"),this_title=t(this).find("input.edit-menu-item-attr-title"),this_label.val(n[t(this).attr("id")][this_label.attr("id")]),this_title.val(n[t(this).attr("id")][this_title.attr("id")]),t(this).find(".link-to-original a").text(n[t(this).closest("li").attr("id")].Original)})}var n=[],s=wpNavMenu.addMenuItemToBottom;wpNavMenu.addMenuItemToBottom=function(t,a){s(t,a),i(),e()};var l=wpNavMenu.addMenuItemToTop;wpNavMenu.addMenuItemToTop=function(t,a){l(t,a),i(),e()};var d=t("#qt-languages :radio:checked").val();i(),e(),t(document).ajaxComplete(function(){d=t("#qt-languages :radio:checked").val(),e()}),t("#qt-languages :radio").change(function(){d=t("#qt-languages :radio:checked").val(),e()}),t(".submit-add-to-menu").click(function(){d=t("#qt-languages :radio:checked").val(),e()}),t(document.body).on("change","input.edit-menu-item-title",null,function(){regexp=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i");var i=n[t(this).closest("li").attr("id")][t(this).attr("id")],e=t(this).val();regexp.test(i)&&(n[t(this).closest("li").attr("id")][t(this).attr("id")]=i.replace(regexp,"<!--:"+d+"-->"+e+"<!--:-->"))}),t(document.body).on("change","input.edit-menu-item-attr-title",null,function(){regexp=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i");var i=n[t(this).closest("li").attr("id")][t(this).attr("id")],e=t(this).val();qts_new_string="<!--:"+d+"-->"+e+"<!--:-->","undefined"==typeof i||""==i?(n[t(this).closest("li").attr("id")][t(this).attr("id")]=qts_new_string,t(this).val(qts_new_string)):regexp.test(i)?n[t(this).closest("li").attr("id")][t(this).attr("id")]=i.replace(regexp,qts_new_string):(t(this).val(i+qts_new_string),n[t(this).closest("li").attr("id")][t(this).attr("id")]=i+qts_new_string)}),t(".menu-save").click(function(){a()}),window.onbeforeunload=function(){a()}}); \ No newline at end of file diff --git a/assets/js/qts-nav-menu.js b/assets/js/qts-nav-menu.js new file mode 100644 index 0000000..7b96e9b --- /dev/null +++ b/assets/js/qts-nav-menu.js @@ -0,0 +1,167 @@ +jQuery(document).ready(function($){ + var qts_menuitemlang = []; + // Change titles (and values) when user add new item to the menu: + var oldAddMenuItemToBottom = wpNavMenu.addMenuItemToBottom; + wpNavMenu.addMenuItemToBottom = function( menuMarkup, req ) { + oldAddMenuItemToBottom( menuMarkup, req ); + saveLang(); + changeTitles(); + }; + var oldAddMenuItemToTop = wpNavMenu.addMenuItemToTop; + wpNavMenu.addMenuItemToTop = function( menuMarkup, req ) { + oldAddMenuItemToTop( menuMarkup, req ); + saveLang(); + changeTitles(); + }; + + // Change titles (and values) when document is ready: + var lang = $('#qt-languages :radio:checked').val(); + saveLang(); + changeTitles(); + + /** + * Change titles when there is a click on pagination + * on show all pages tab. + * + * It happens when there are a large number of pages. + */ + $( document ).ajaxComplete(function() { + lang = $('#qt-languages :radio:checked').val(); + changeTitles(); + }); + + // Change titles (and values) when language is changed: + $('#qt-languages :radio').change( function() { + lang = $('#qt-languages :radio:checked').val(); + + changeTitles(); + }); + + // Change titles (and values) when new menu is added: + $('.submit-add-to-menu').click( function() { + lang = $('#qt-languages :radio:checked').val(); + changeTitles(); + }); + + // Update original value when user changed a value: + $(document.body).on('change', 'input.edit-menu-item-title', null, function() { + regexp = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); + + + var qts_old_value = qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")], + qts_new_value = $(this).val(); + + if( regexp.test(qts_old_value ) ) { + qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_old_value.replace( regexp,'<!--:' + lang + '-->' + qts_new_value + '<!--:-->'); + } + + }); + + + + + // Update original title="" value when user changed a value: + $(document.body).on('change', 'input.edit-menu-item-attr-title', null, function() { + regexp = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); + var qts_old_value = qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")], + qts_new_value = $(this).val(); + qts_new_string = '<!--:' + lang + '-->'+ qts_new_value + '<!--:-->'; + if(typeof qts_old_value === "undefined" || qts_old_value == "" ) { + qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_new_string; + $(this).val( qts_new_string ); + } else if( regexp.test(qts_old_value ) ) { + qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_old_value.replace( regexp,qts_new_string); + } else { + $(this).val( qts_old_value + qts_new_string ); + qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_old_value + qts_new_string; + } + + }); + + + + // Change titles (and values): + function saveLang() { + $('.item-title').each( function() { + qts_menuitemlang[ $(this).closest("li").attr("id") ] = []; + qts_menuitemlang[ $(this).closest("li").attr("id") ]['Title'] = $(this).find("span").html(); + + if( typeof qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original'] === "undefined" ) { + qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original'] = qts_menuitemlang[ $(this).closest("li").attr("id") ]['Title']; + } + }); + $('.menu-item').each( function() { + + this_label = $(this).find('input.edit-menu-item-title'); + this_title = $(this).find('input.edit-menu-item-attr-title'); + + qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ] = this_label.val(); + qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ] = this_title.val(); + + }); + + } + // Change titles (and values): + function changeTitles() { + // Change menu item titles and links (on the right side): + // TODO: review, and dump + regexp = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); + $('.item-title').each( function() { + if (matches = qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original'].match(regexp)) { + $(this).closest('li').find('.link-to-original a').text( matches[1] ); + } + + }); + // Change menu item title inputs (on the right side): Navigation Label, Title Attribute... + regexp2 = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); + $('.menu-item').each( function() { + this_label = $(this).find('input.edit-menu-item-title'); + this_title = $(this).find('input.edit-menu-item-attr-title'); + if( lang === "all") { + this_label.val(qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ] ); + this_title.val(qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ] ); + } else { + + if (matches = qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ].match(regexp2)) { + this_label.val( matches[1] ); + } + + if (matches2 = qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ].match(regexp2)) { + this_title.val( matches2[1] ); + } + } + }); + + // Change menu item checkbox labels (on the left side): + // TODO: fix this, not a show stopper + /*$('label.menu-item-title').each( function() { + var textNode = $(this).contents().get(1); + });*/ + } + + // Restore the original input values: + function restoreValues(){ + + $('.menu-item').each( function() { + + this_label = $(this).find('input.edit-menu-item-title'); + this_title = $(this).find('input.edit-menu-item-attr-title'); + + this_label.val( qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ] ); + this_title.val( qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ] ); + $(this).find('.link-to-original a').text( qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original']); + }); + } + + // Just before saving restore the original input values: + $('.menu-save').click(function() { + restoreValues(); + }); + + // Just before leaving the page (or refresh) restore the original input values: + window.onbeforeunload = function(){ + restoreValues(); + return; + }; + +}); \ No newline at end of file diff --git a/assets/js/qts-settings-upgrade.js b/assets/js/qts-settings-upgrade.js new file mode 100755 index 0000000..66e18c0 --- /dev/null +++ b/assets/js/qts-settings-upgrade.js @@ -0,0 +1,69 @@ +jQuery(document).ready(function($) { + + function _debug(msg) { + if(window.console) { + console.debug(msg); + } + } + var upgrade_box = $('#qts-upgrade-box'), + upgrade_form = $('#qts-upgrade-form'), + upgrade_button = $('#qts-upgrade-button'), + notice_status = function(_status) { + upgrade_box.removeClass().addClass(_status); + }, + block_form = function(_block) { + if (_block) { + $('#qts-loading').show(); + upgrade_button.attr('disabled', true); + } else { + $('#qts-loading').hide(); + upgrade_button.attr('disabled', false); + } + + }, + check_types = function(_response) { + + block_form(false); + upgrade_form.find('.message').remove(); + + switch (_response.status) { + default: + case 0: + upgrade_form.prepend('<p class=\'message ko\'>'+_response.message+'</p>'); + break; + case 1: + notice_status('updated success'); + upgrade_form.remove(); + upgrade_box.append('<p><strong>'+_response.message+'</strong></p>'); + upgrade_box.delay(2500).fadeTo(1300, 0, function(){ upgrade_box.remove(); }); + break; + case 2: + var data_ = '<p class=\'message\'>'+_response.message+'</p>'; + data_ += '<select id=\'qts-slug-type\' class=\'message\'>'; + + for (opt in _response.options) + data_ += '<option value=\''+opt+'\'>'+_response.options[opt]+'</option>'; + data_ += '</select>'; + + upgrade_form.prepend(data_); + + break; + } + }, + start_upgrade = function(_event) { + _event.preventDefault(); + + notice_status('updated'); + block_form(true); + + var package_ = {}; + package_.action = $('#qts-upgrade-action').val(); + package_.nonce = $('#qts-upgrade-nonce').val(); + if ( $('#qts-slug-type').length ) + package_.type = $('#qts-slug-type').val(); + + $.post(ajaxurl, package_, check_types); + }; + + upgrade_button.bind('click', start_upgrade); +}); \ No newline at end of file diff --git a/assets/js/qts-settings.js b/assets/js/qts-settings.js new file mode 100755 index 0000000..c86503e --- /dev/null +++ b/assets/js/qts-settings.js @@ -0,0 +1,19 @@ +/*############### Error messages ######################*/ +jQuery(function(){ + + var error_msg = jQuery("#message p[class='setting-error-message']"); + // look for admin messages with the "setting-error-message" error class + if (error_msg.length != 0) { + // get the title + var error_setting = error_msg.attr('title'); + + // look for the label with the "for" attribute=setting title and give it an "error" class (style this in the css file!) + jQuery("label[for='" + error_setting + "']").addClass('error'); + + // look for the input with id=setting title and add a red border to it. + jQuery("input[id='" + error_setting + "']").attr('style', 'border-color: red'); + } + + + +}); \ No newline at end of file diff --git a/includes/class-qtranslate-slug-widget.php b/includes/class-qtranslate-slug-widget.php new file mode 100644 index 0000000..9b08aeb --- /dev/null +++ b/includes/class-qtranslate-slug-widget.php @@ -0,0 +1,62 @@ +<?php + +/** + * QtranslateSlug_Widget class + * + * @since 1.0 + */ +class QtranslateSlugWidget extends WP_Widget { + + function QtranslateSlugWidget() { + $widget_ops = array('classname' => 'qts_widget', 'description' => __('Allows your visitors to choose a Language.','qts') ); + $this->WP_Widget('qtranslateslug', __('Language selector', 'qts'), $widget_ops); + } + + function widget($args, $instance) { + extract($args); + + echo $before_widget; + $title = empty($instance['title']) ? __('Language', 'qts') : apply_filters('widget_title', $instance['title']); + $hide_title = empty($instance['hide-title']) ? false : 'on'; + $type = $instance['type']; + $short_text = ($instance['short_text'] == 'on') ? true : false ; + + if( $type!='text' && $type!='image' && $type!='both' && $type!='dropdown' ) $type='text'; + + if( $hide_title!='on') + echo $before_title . $title . $after_title; + + qts_language_menu($type, array( 'id' => $this->id, 'short' => $short_text ) ); + + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = $new_instance['title']; + $instance['hide-title'] = $new_instance['hide-title']; + $instance['type'] = $new_instance['type']; + $instance['short_text'] = $new_instance['short_text']; + + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'hide-title' => false, 'type' => 'text' ) ); + $title = $instance['title']; + $hide_title = $instance['hide-title']; + $type = $instance['type']; + $short_text = isset($instance['short_text']) ? $instance['short_text'] : ''; + ?> + <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'qts'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p> + <p><label for="<?php echo $this->get_field_id('hide-title'); ?>"><?php _e('Hide Title:', 'qts'); ?> <input type="checkbox" id="<?php echo $this->get_field_id('hide-title'); ?>" name="<?php echo $this->get_field_name('hide-title'); ?>" <?php echo ($hide_title=='on')?'checked="checked"':''; ?>/></label></p> + <p><?php _e('Display:', 'qts'); ?></p> + <p><label for="<?php echo $this->get_field_id('type'); ?>1"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>1" value="text"<?php echo ($type=='text')?' checked="checked"':'' ?>/> <?php _e('Text only', 'qts'); ?></label></p> + <p><label for="<?php echo $this->get_field_id('type'); ?>2"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>2" value="image"<?php echo ($type=='image')?' checked="checked"':'' ?>/> <?php _e('Image only', 'qts'); ?></label></p> + <p><label for="<?php echo $this->get_field_id('type'); ?>3"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>3" value="both"<?php echo ($type=='both')?' checked="checked"':'' ?>/> <?php _e('Text and Image', 'qts'); ?></label></p> + <p><label for="<?php echo $this->get_field_id('type'); ?>4"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>4" value="dropdown"<?php echo ($type=='dropdown')?' checked="checked"':'' ?>/> <?php _e('Dropdown Box', 'qts'); ?></label></p> + <p><label for="<?php echo $this->get_field_id('short_text'); ?>"><?php _e('Show short name (en):', 'qts'); ?> <input type="checkbox" id="<?php echo $this->get_field_id('short_text'); ?>" name="<?php echo $this->get_field_name('short_text'); ?>" <?php checked($short_text, 'on') ?>/></label></p> + + <?php + } +} diff --git a/includes/class-qtranslate-slug.php b/includes/class-qtranslate-slug.php new file mode 100644 index 0000000..e02c3d7 --- /dev/null +++ b/includes/class-qtranslate-slug.php @@ -0,0 +1,2696 @@ +<?php + +/** + * QtranslateSlug class + * + * @since 1.0 + */ +class QtranslateSlug { + + + /** + * array with old data system + * + * @var bool + * + * @since 1.0 + */ + private $old_data = null; + + + + /** + * stores permalink_structure option, for save queries to db + * + * @var string + * + * @since 1.0 + */ + private $permalink_structure; + + + + /** + * Stores options slugs from database + * + * @var array + * + * @since 1.0 + */ + protected $options; + + + + /** + * Variable used to override the language + * + * @var string + * + * @since 1.0 + */ + private $lang = false; + + /** + * variable for current language + */ + private $current_lang = false; + + /** + * variable for default language + */ + private $default_language = false; + + /** + * Array of enabled languages + * + * @var array + * + * @since 1.0 + */ + private $enabled_languages = array(); + /** + * Array of enabled languages + * + * @var array + * + * @since 1.0 + */ + private $url_path_mode = ""; + + + + /** + * slug in meta_key name in meta tables + * + * @var string + * + * @since 1.0 + */ + private $meta_key = "_qts_slug_%s"; + + + + /** + * Array of translated versions of the current url + * + * @var array + * + * @since 1.0 + */ + private $current_url = array(); + + + /** + * Variable that contains the prefix for base plugin function names (qtranslate/qtranslate-x) + * + * @var string + * + * @since ? + */ + private $plugin_prefix = ""; + + + /** + * return the current / temp language + * + * @since 1.0 + */ + private function get_lang() { + global $q_config; + + return ($this->lang) ? $this->lang : $q_config['language']; + } + /** + * return the current / temp language + * we store and use it all the way! + * + * @since 1.1.9 + */ + private function get_currentlang() { + return $this->current_lang; + } + /** + * return the enabled languages + * we store and use it all the way! + * + * @since 1.1.9 + */ + private function get_enabled_languages() { + return $this->enabled_languages; + } + /** + * return the enabled languages + * we store and use it all the way! + * + * @since 1.1.9 + */ + private function get_url_path_mode() { + return $this->url_path_mode; + } + + + /** + * getter: options + * + * @since 1.0 + */ + public function get_options() { + $this->set_options(); + return $this->options; + } + + /** + * Returns the correct prefix for the function names of the different supported translation plugins. + * Will return 'qtranxf_' if qtranslate-x is used, 'qtrans_' otherwise. + * + * @return string the function name prefix for translation functions from other plugins + * @since 1.1.9 + */ + + private function get_plugin_prefix(){ + + return $this->plugin_prefix; + } + + + /** + * setter: options | permalink_structure + * + * @since 1.0 + */ + public function set_options() { + + if (empty($this->options)) { + $this->options = get_option(QTS_OPTIONS_NAME); + } + + if (!$this->options) { + add_option(QTS_OPTIONS_NAME, array()); + } + + if (is_null($this->permalink_structure)) { + $this->permalink_structure = get_option('permalink_structure'); + } + } + + /** + * Sets the prefix for the active fork. See get_plugin_prefix + * @since 1.1.9 + * + */ + private function set_plugin_prefix(){ + if ('' === $this->plugin_prefix){ + if (is_plugin_active('qtranslate-x/qtranslate.php')){ + $this->plugin_prefix = 'qtranxf_'; + } else { + $this->plugin_prefix = 'qtrans_'; + } + } + } + + /** + * Sets the url path mode based on the qtranslate or fork settings. + * + */ + + private function set_url_path_mode(){ + if ('' === $this->url_path_mode){ + if (is_plugin_active('qtranslate-x/qtranslate.php')){ + $this->url_path_mode = QTX_URL_PATH; + } else { + $this->url_path_mode = QT_URL_PATH; + } + } + } + + /** + * setter: options | permalink_structure + * + * @since 1.0 + */ + public function save_options($new_options = false) { + if (!$new_options || empty($new_options)) { + return; + } + + if (count($this->options) != count($new_options)) { + return; + } + + update_option(QTS_OPTIONS_NAME, $new_options); + $this->options = $new_options; + } + + + + /** + * getter: meta key + * + * @since 1.0 + */ + public function get_meta_key( $force_lang = false ) { + global $q_config; + + $lang = $this->get_lang(); + + if ($force_lang) { + $lang = $force_lang; + } + + return sprintf($this->meta_key, $lang); // returns: _qts_slug_en + } + + + + /** + * check dependences for activation + * + * @since 1.0 + */ + static function block_activate() { + global $wp_version; + + include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); + + return ( + version_compare($wp_version, "3.3", "<" ) || + ( !is_plugin_active('qtranslate/qtranslate.php') && + !is_plugin_active('mqtranslate/mqtranslate.php') && + !is_plugin_active('qtranslate-x/qtranslate.php')) + ); + } + + + + + /** + * check if exists qtranslate and do the installation, support multisite + * + * @since 1.0 + */ + public function install() { + global $wpdb; + + if ( self::block_activate() ) { + return; + } + + if ( function_exists('is_multisite') && is_multisite() ) { + + if (isset($_GET['networkwide']) && ($_GET['networkwide'] == 1)) { + + $old_blog = $wpdb->blogid; + $blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs")); + foreach ($blogids as $blog_id) { + switch_to_blog($blog_id); + $this->activate(); + } + switch_to_blog($old_blog); + return; + } + } + + $this->activate(); + } + + + + /** + * activates and do the installation + * + * @since 1.0 + */ + private function activate() { + global $wp_rewrite; + + $this->set_options(); + + $qts_version = get_option('qts_version'); + + // checks version and do the installation + if ( !$qts_version || $qts_version != QTS_VERSION ) { + + // install termmeta table using functions from Simple-Term-Meta + // ( http://wordpress.org/extend/plugins/simple-term-meta/ ) + install_term_meta_table(); + + // update installed option + update_option('qts_version', QTS_VERSION); + } + + // regenerate rewrite rules in db + add_action( 'generate_rewrite_rules', array(&$this, 'modify_rewrite_rules') ); + flush_rewrite_rules(); + } + + + + /** + * register front end styles and enqueue + * + * @since 1.1.7 + */ + public function register_plugin_styles() { + wp_register_style( 'qts_front_styles', plugins_url( '/assets/css/qts-default.css', dirname(__FILE__ ) ) ); + wp_enqueue_style( 'qts_front_styles' ); + } + /** + * register minified front end styles and enqueue + * 43LC: easier duplicating the function :| + * @since 1.1.8 + */ + public function register_plugin_styles_min() { + wp_register_style( 'qts_front_styles', plugins_url( '/assets/css/qts-default.min.css', dirname(__FILE__ ) ) ); + wp_enqueue_style( 'qts_front_styles' ); + } + + + + /** + * print front end styles + * + * @since 1.1.7 + */ + public function print_plugin_styles() { + + $css_path = dirname(__FILE__).'/assets/css/qts-default.css'; + + if (!file_exists($css_path) || !is_readable($css_path)) { + return; + } + + $default_css_file = file_get_contents($css_path, FILE_USE_INCLUDE_PATH); + + $css = "<style media=\"screen\">\n"; + $css .= "$default_css_file\n"; + $css .="</style>\n"; + echo $css; + } + + + + /** + * actions when deactivating the plugin + * + * @since 1.0 + */ + public function deactivate() { + global $wp_rewrite; + + // regenerate rewrite rules in db + remove_action( 'generate_rewrite_rules', array(&$this, 'modify_rewrite_rules') ); + $wp_rewrite->flush_rules(); + } + + + + /** + * admin notice: update your old data + * + * @since 1.0 + */ + function notice_update(){ + global $current_screen; + + if ($current_screen->id != 'settings_page_qtranslate-slug-settings') { + + echo "<div class=\"updated\">" . PHP_EOL; + echo "<p><strong>Qtranslate Slug:</strong></p>" . PHP_EOL; + printf("<p>%s <a href=\"%s\" class=\"button\">%s</a></p>", __('Please update your old data to the new system.', 'qts'), add_query_arg(array('page' => 'qtranslate-slug-settings'), 'options-general.php'), __('upgrade now', 'qts')) . PHP_EOL; + echo "</div>" . PHP_EOL; + } + } + + + + /** + * admin notice: update your old data + * + * @since 1.0 + */ + function notice_dependences(){ + global $current_screen; + $ornewer=__('or newer','qts'); + $info_url=admin_url('plugin-install.php?tab=plugin-information'); + echo '<div class="error">' . PHP_EOL; + echo '<p><strong>Qtranslate Slug:</strong></p>' . PHP_EOL; + echo '<p>'; + printf(__('This plugin requires at least %s and either %s, or %s, or %s', 'qts'),'<strong>WordPress 3.3</strong>','<a href="'.$info_url.'&plugin=qtranslate-x&TB_iframe=true" class="thickbox" aria-label="'.__('More information about', 'qts').' '.'qTranslate-X" data-title="qTranslate-X"><strong>qTranslate-X</strong></a> (2.9 '.$ornewer.')','<a href="'.$info_url.'&plugin=mqtranslate&TB_iframe=true" class="thickbox" aria-label="'.__('More information about', 'qts').' '.'mqTranslate" data-title="mqTranslate"><strong>mqTranslate</strong></a> (2.6.2.4 '.$ornewer.')','<a href="'.$info_url.'&plugin=qtranslate&TB_iframe=true" class="thickbox" aria-label="'.__('More information about', 'qts').' '.'qTranslate" data-title="qTranslate"><strong>qTranslate</strong></a> (2.5.8 '.$ornewer.')'); + echo '</p>' . PHP_EOL; + echo '</div>' . PHP_EOL; + } + + + + /** + * checks if old table 'qtranslate_slug' exists and is not empty + * + * @return object | false + * + * @since 1.0 + */ + public function check_old_data() { + global $wpdb; + + if ($this->old_data === false) { + return false; + } + + $table_name = $wpdb->get_var("SHOW TABLES LIKE '{$wpdb->prefix}qtranslate_slug'"); + + if (!empty($table_name)) { + $this->old_data = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}qtranslate_slug"); + } + + if ( empty($table_name) || empty($this->old_data) ) { + $this->old_data = false; + } + + return $this->old_data; + } + + + + /** + * actions when deactivating the plugin + * + * @since 1.0 + */ + private function check_old_versions() { + + if ( $this->check_old_data() ) { + add_action('admin_notices', array(&$this, 'notice_update')); + } + } + + + + /** + * Initialise the Class with all hooks + * + * @since 1.0 + */ + function init() { + + load_plugin_textdomain( 'qts', false, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages' ); + + // checking plugin activate + if ( self::block_activate() ) { + if (is_admin()) { + add_action('admin_notices', array(&$this, 'notice_dependences')); + } + return; + } + + // caching qts options + $this->set_options(); + + global $q_config; + + // until we get a proper function, this will make it for it. + $this->current_lang = $q_config['language']; + $this->enabled_languages = $q_config['enabled_languages']; + $this->default_language = $q_config['default_language']; + $this->set_plugin_prefix(); + $this->set_url_path_mode(); + + if ( is_admin() ) { + + $this->check_old_versions(); + + + // add filters + add_filter( 'qts_validate_post_slug', array(&$this, 'validate_post_slug'), 0, 3 ); + add_filter( 'qts_validate_post_slug', array(&$this, 'unique_post_slug'), 1, 3 ); + add_filter( 'qts_validate_term_slug', array(&$this, 'validate_term_slug'), 0, 3 ); + add_filter( 'qts_validate_term_slug', array(&$this, 'unique_term_slug'), 1, 3 ); + add_filter( 'wp_get_object_terms', array(&$this, 'get_object_terms'), 0, 4 ); + add_filter( 'get_terms', array(&$this, 'get_terms'), 0, 3 ); + + // admin actions + add_action( 'admin_menu', array(&$this, 'add_slug_meta_box') ); + add_action( 'save_post', array(&$this, 'save_postdata'), 605, 2 ); + add_action( 'delete_term', array(&$this, 'delete_term'), 0, 3); + add_action( 'created_term', array(&$this, 'save_term'), 605, 3); + add_action( 'edited_term', array(&$this, 'save_term'), 605, 3 ); + add_action( 'admin_head', array(&$this, 'hide_slug_box'), 900 ); + + add_action( 'init', array(&$this, 'taxonomies_hooks'), 805 ); + + add_action( 'wp_dashboard_setup', array(&$this, 'remove_dashboard_widgets') ); + add_action( 'admin_head', array(&$this, 'hide_quick_edit'), 600 ); + if(!defined('QTRANSLATE_FILE')) + add_action( 'admin_init', array(&$this, 'fix_nav_menu') ); + + } else { + + add_filter( 'request', array(&$this, 'filter_request') ); + + // adds external style file + $qts_options = $this->get_options(); + if ( !isset($qts_options[QTS_PREFIX.'styles']) || $qts_options[QTS_PREFIX.'styles'] == "file" ) { + add_action( 'wp_enqueue_scripts', array( &$this, 'register_plugin_styles' ) ); + } elseif ($qts_options[QTS_PREFIX.'styles'] == "minified" ) { + add_action( 'wp_enqueue_scripts', array( &$this, 'register_plugin_styles_min' ) ); + } elseif ($qts_options[QTS_PREFIX.'styles'] == "inline" ) { + add_action( 'wp_print_styles', array( &$this, 'print_plugin_styles' ), 20 ); + } + } + + add_filter( 'query_vars', array(&$this, 'query_vars')); + add_action( 'generate_rewrite_rules', array(&$this, 'modify_rewrite_rules') ); + + // remove from qtranslate the discouraged meta http-equiv, inline styles + // (including flag URLs) and wrong hreflang links + + remove_action('wp_head', $this->get_plugin_prefix() . 'header'); + if( "qtranxf_" === $this->get_plugin_prefix() ) { + remove_action('wp_head', $this->get_plugin_prefix() . 'head'); + } + + // add proper hreflang links + add_action('wp_head',array(&$this, 'qtranslate_slug_header_extended')); + + // remove some Qtranslate filters + remove_filter( 'page_link', $this->get_plugin_prefix() . 'convertURL' ); + remove_filter( 'post_link', $this->get_plugin_prefix() . 'convertURL' ); + remove_filter( 'category_link', $this->get_plugin_prefix() . 'convertURL' ); + remove_filter( 'tag_link', $this->get_plugin_prefix() . 'convertURL' ); + + add_filter( 'qts_permastruct' , array(&$this, 'get_extra_permastruct'), 0, 2); + add_filter( 'qts_url_args', array(&$this, 'parse_url_args'), 0, 1); + add_filter( 'home_url', array(&$this, 'home_url'), 10, 4); + add_filter( 'post_type_link', array(&$this, 'post_type_link'), 600, 4 ); + add_filter( 'post_link', array(&$this, 'post_link'), 0, 3 ); + add_filter( '_get_page_link', array(&$this, '_get_page_link'), 0, 2 ); + add_filter( 'term_link', array(&$this, 'term_link'), 600, 3 ); + + add_filter( 'single_term_title', $this->get_plugin_prefix() . 'useTermLib', 805 ); + add_filter( 'get_blogs_of_user', array(&$this, 'blog_names'), 1 ); + add_action( 'widgets_init', array(&$this, 'widget_init'), 100 ); + // Add specific CSS class to body class based on current lang + add_filter('body_class', array($this, 'qts_body_class'), 600, 1 ); + + add_filter( 'nav_menu_attr_title', array($this, 'qts_filter_attr_title'), 0, 3 ); + + + } + + /** + * Filters menu link attribute + * + * @since 1.1.9 + */ + function qts_filter_attr_title( $attr_title ) { + return $this->qts_quickuse($attr_title); + } + + + /** + * Adds proper links to the content with available translations. + * Fixes issue #25 + * + * @global $qtranslate_slug used to convert the url + * @global $q_config available languages + * + * @since 1.1.8 + */ + public function qtranslate_slug_header_extended(){ + if(is_404()) return; + + //taken from qtx + echo '<link hreflang="x-default" href="'.$this->get_current_url($this->default_language) .'" rel="alternate" />'.PHP_EOL; + foreach($this->get_enabled_languages() as $language) { + + if($language != $this->get_currentlang() ) + echo '<link hreflang="'.$language.'" href="'.$this->get_current_url($language).'" rel="alternate" />'."\n"; + } + } + + + /** + * Add a class based on the current language + * @param array $classes list of classes + */ + public function qts_body_class( $classes ) { + // add 'class-name' to the $classes array + $classes[] = call_user_func($this->get_plugin_prefix() . 'getLanguage'); + + // return the $classes array + return $classes; + } + + /** + * Finds the translated slug of the given post + * based on: https://wordpress.org/support/topic/permalink-for-other-languages + * @param int $id the post id + * @param string $lang which language to look for + * @return string the slug or empty if not found + * @author vbkun + * @since 1.1.13 + */ + public function get_slug($id, $lang){ + $slugArray = get_post_meta( $id, '_qts_slug_'.$lang ); + return !empty($slugArray) ? $slugArray[0] : ""; + } + + // TODO: properly test this + /** + * Get text in $lang, or in the current lang + * + * @package Qtranslate Slug + * @since 1.1.9 + * @param string $text the whole text + * @param string $lang (optional) get the text in this language, or if empty, the current + * @return array the text in the required language + */ + public function qts_quickuse( $text,$lang='' ){ + global $q_config; + $lang = '' == $lang ? $q_config['language'] : $lang; + $parsed_text = call_user_func($this->get_plugin_prefix() . 'getSortedLanguages',$text); + if( !empty($parsed_text[$lang])){ + return $parsed_text[$lang]; + } + } + + + /** + * Adds news rules to translate the URL bases, + * this function must be called on flush_rewrite or 'flush_rewrite_rules' + * + * @param object $wp_rewrite + * + * @since 1.0 + */ + public function modify_rewrite_rules() { + // do we need this global? + //global $wp_rewrite; + + // post types rules + $post_types = get_post_types( array('_builtin' => false ), 'objects'); + foreach ( $post_types as $post_type ) { + $this->generate_extra_rules( $post_type->name ); + } + + // taxonomies rules + $taxonomies = $this->get_public_taxonomies(); + foreach ( $taxonomies as $taxonomy ) { + $this->generate_extra_rules( $taxonomy->name ); + } + } + + + + /** + * Helper: news rules to translate the URL bases + * + * @param string $name name of extra permastruct + * @param string $type 'post_type' or 'taxonomy' + * + * @since 1.0 + */ + private function generate_extra_rules( $name = false ) { + global $wp_rewrite; + + foreach ($this->get_enabled_languages() as $lang): + + if ( $base = $this->get_base_slug( $name, $lang) ): + + $struct = $wp_rewrite->extra_permastructs[$name]; + + if ( is_array( $struct ) ) { + if ( count( $struct ) == 2 ) + $rules = $wp_rewrite->generate_rewrite_rules( "/$base/%$name%", $struct[1] ); + else + $rules = $wp_rewrite->generate_rewrite_rules( "/$base/%$name%", $struct['ep_mask'], $struct['paged'], $struct['feed'], $struct['forcomments'], $struct['walk_dirs'], $struct['endpoints'] ); + } else { + $rules = $wp_rewrite->generate_rewrite_rules( "/$base/%$name%" ); + } + + $wp_rewrite->rules = array_merge($rules, $wp_rewrite->rules); + + endif; + + endforeach; + } + + + + /** + * Helper that gets a base slug stored in options + * + * @param string $name of extra permastruct + * @return string base slug for 'post_type' and 'language' or false + * + * @since 1.0 + */ + public function get_base_slug($name = false, $lang = false) { + + if ( !$name || !$lang ) { + return false; + } + + if ( taxonomy_exists($name) ) { + $type = 'taxonomy'; + } else if ( post_type_exists($name) ) { + $type = 'post_type'; + } else { + return false; + } + + $qts_options = $this->get_options(); + + $option_name = QTS_PREFIX . $type . '_' . $name; + + if ( !isset($qts_options[$option_name]) || empty($qts_options[$option_name]) ) { + return false; + } + + if (isset($qts_options[$option_name][$lang])) { + return $qts_options[$option_name][$lang]; + } + + return false; + } + + + + /** + * Helper: returns public built-in and not built-in taxonomies + * + * @return array of public taxonomies objects + * + * @since 1.0 + */ + private function get_public_taxonomies() { + + $builtin = get_taxonomies( array( 'public' => true, 'show_ui' => true, '_builtin' => true ), 'object'); + $taxonomies = get_taxonomies( array( 'public' => true, 'show_ui' => true, '_builtin' => false ), 'object' ); + + return array_merge( $builtin, $taxonomies ); + } + + + + /** + * parse and adds $_GET args passed to an url + * + * @param string $url parameters + * @param string $lang processed + * @return string converted url + * + * @since 1.0 + */ + public function parse_url_args( $url ) { + global $q_config; + + if (is_admin()) { + return $url; + } + + $url = preg_replace('/&amp;/', '&', $url); + + // if no permalink structure ads ?lang=en + $base_query = parse_url($q_config['url_info']['original_url']); + $base_args = isset($base_query['query']) ? wp_parse_args($base_query['query']) : array(); + + if ( empty($this->permalink_structure) || $q_config['url_mode'] == 1 ) { + $base_args['lang'] = $this->get_lang(); + + } + + // rebuild query with all args + $url = add_query_arg($base_args, $url); + + $url = str_replace('/?', '?', $url); // TODO: hack: improve this code + $url = str_replace('?', '/?', $url); // TODO: hack: improve this code + + return $url; + } + + + + /** + * Fix get_page_by_path when querying vars + * + * @param $query_vars objec query vars founded + * @return object $query_vars processed + * + * @since 1.0 + */ + public function query_vars( $query_vars ) { + global $wp, $wp_rewrite; + + $wp->query_vars = array(); + $post_type_query_vars = array(); + + // Fetch the rewrite rules. + $rewrite = $wp_rewrite->wp_rewrite_rules(); + + if ( ! empty($rewrite) ) { + // If we match a rewrite rule, this will be cleared. + $error = '404'; + $wp->did_permalink = true; + + if ( isset($_SERVER['PATH_INFO']) ) { + $pathinfo = $_SERVER['PATH_INFO']; + } else { + $pathinfo = ''; + } + $pathinfo_array = explode('?', $pathinfo); + $pathinfo = str_replace("%", "%25", $pathinfo_array[0]); + $req_uri = $_SERVER['REQUEST_URI']; + $req_uri_array = explode('?', $req_uri); + $req_uri = $req_uri_array[0]; + $self = $_SERVER['PHP_SELF']; + $home_path = parse_url(home_url()); + + if ( isset($home_path['path']) ) { + $home_path = $home_path['path']; + } else { + $home_path = ''; + } + $home_path = trim($home_path, '/'); + + // Trim path info from the end and the leading home path from the + // front. For path info requests, this leaves us with the requesting + // filename, if any. For 404 requests, this leaves us with the + // requested permalink. + $req_uri = str_replace($pathinfo, '', $req_uri); + $req_uri = trim($req_uri, '/'); + $req_uri = preg_replace("|^$home_path|", '', $req_uri); + $req_uri = trim($req_uri, '/'); + if ($GLOBALS['q_config']['url_mode'] == $this->get_url_path_mode()) { + $req_uri = preg_replace("/^{$GLOBALS['q_config']['language']}(\/|$)/", '', $req_uri); + } + $pathinfo = trim($pathinfo, '/'); + $pathinfo = preg_replace("|^$home_path|", '', $pathinfo); + $pathinfo = trim($pathinfo, '/'); + $self = trim($self, '/'); + $self = preg_replace("|^$home_path|", '', $self); + $self = trim($self, '/'); + + // The requested permalink is in $pathinfo for path info requests and + // $req_uri for other requests. + if ( ! empty($pathinfo) && !preg_match('|^.*' . $wp_rewrite->index . '$|', $pathinfo) ) { + $request = $pathinfo; + } else { + // If the request uri is the index, blank it out so that + // we don't try to match it against a rule. + if ( $req_uri == $wp_rewrite->index ) + $req_uri = ''; + $request = $req_uri; + } + + $wp->request = $request; + + // Look for matches. + $request_match = $request; + if ( empty( $request_match ) ) { + // An empty request could only match against ^$ regex + if ( isset( $rewrite['$'] ) ) { + $wp->matched_rule = '$'; + $query = $rewrite['$']; + $matches = array(''); + } + } else if ( $req_uri != 'wp-app.php' ) { + foreach ( (array) $rewrite as $match => $query ) { + // If the requesting file is the anchor of the match, prepend it to the path info. + if ( ! empty($req_uri) && strpos($match, $req_uri) === 0 && $req_uri != $request ) { + $request_match = $req_uri . '/' . $request; + } + + if ( preg_match("#^$match#", $request_match, $matches) || preg_match("#^$match#", urldecode($request_match), $matches) ) { + + if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { + // this is a verbose page match, lets check to be sure about it + if ( ! $page_foundid = $this->get_page_by_path( $matches[ $varmatch[1] ] ) ) { + continue; + } else { + wp_cache_set('qts_page_request', $page_foundid); // caching query :) + } + } + + // Got a match. + $wp->matched_rule = $match; + break; + } + } + } + + if ( isset( $wp->matched_rule ) ) { + // Trim the query of everything up to the '?'. + $query = preg_replace("!^.+\?!", '', $query); + + // Substitute the substring matches into the query. + $query = addslashes(WP_MatchesMapRegex::apply($query, $matches)); + + $wp->matched_query = $query; + + // Parse the query. + parse_str($query, $perma_query_vars); + + // If we're processing a 404 request, clear the error var + // since we found something. + unset( $_GET['error'] ); + unset( $error ); + } + + // If req_uri is empty or if it is a request for ourself, unset error. + if ( empty($request) || $req_uri == $self || strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) { + unset( $_GET['error'] ); + unset( $error ); + + if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) { + unset( $perma_query_vars ); + } + + $wp->did_permalink = false; + } + } + + return count(array_diff($query_vars, $wp->public_query_vars)) > 0 ? $query_vars : $wp->public_query_vars; + } + + + + /** + * Function called when query parameters are processed by Wordpress. + * + * @param $query query parameters + * @return array() $query processed + * + * @since 1.0 + */ + function filter_request( $query ) { + global $wp_query, $wp; + if ((isset($wp->matched_query) || empty($query)) && ! isset($query['s']) ) { + $query = wp_parse_args($wp->matched_query); + } + + foreach (get_post_types() as $post_type) { + if ( array_key_exists($post_type, $query) && !in_array($post_type, array('post', 'page')) ) { + $query['post_type'] = $post_type; + } + } + + $page_foundit = false; + + // -> page + if ( isset($query['pagename']) || isset($query['page_id']) ): + + $page = wp_cache_get('qts_page_request'); + if (!$page) + $page = isset($query['page_id']) ? get_post($query['page_id']) : $this->get_page_by_path($query['pagename']); + + if (!$page) return $query; + $id = $page->ID; + $cache_array = array($page); + update_post_caches($cache_array, 'page'); // caching query :) + wp_cache_delete('qts_page_request'); + $query['pagename'] = get_page_uri($page); + $function = 'get_page_link'; + + // -> custom post type + elseif ( isset($query['post_type']) ): + + $page_slug = ( isset($query['name']) && !empty($query['name']) ) ? $query['name'] : $query[$query['post_type']]; + $page = $this->get_page_by_path($page_slug, OBJECT, $query['post_type']); + if (!$page) return $query; + $id = $page->ID; + $cache_array = array($page); + update_post_caches($cache_array, $query['post_type']); // caching query :) + $query['name'] = $query[$query['post_type']] = get_page_uri($page); + $function = 'get_post_permalink'; + + // -> post + elseif ( isset($query['name']) || isset($query['p']) ): + + $post = isset($query['p']) ? get_post($query['p']) : $this->get_page_by_path($query['name'], OBJECT, 'post'); + if (!$post) { + return $query; + } + $query['name'] = $post->post_name; + $id = $post->ID; + $cache_array = array($post); + update_post_caches($cache_array); + $function = 'get_permalink'; + + // -> category + elseif ( ( isset($query['category_name']) || isset($query['cat'])) ): + if ( isset($query['category_name']) ) { + $term_slug = $this->get_last_slash( $query['category_name'] ); + } + $term = isset($query['cat']) ? get_term($query['cat'], 'category') : $this->get_term_by('slug', $term_slug, 'category'); + if (!$term) { + return $query; + } + $cache_array = array($term); + update_term_cache($cache_array, 'category'); // caching query :) + $id = $term->term_id; + $query['category_name'] = $term->slug; // uri + $function = 'get_category_link'; + + // -> tag + elseif ( isset($query['tag']) ): + + $term = $this->get_term_by('slug', $query['tag'], 'post_tag'); + if (!$term) { + return $query; + } + $cache_array = array($term); + update_term_cache($cache_array, 'post_tag'); // caching query :) + $id = $term->term_id; + $query['tag'] = $term->slug; + $function = 'get_tag_link'; + + endif; + + + // -> taxonomy + $taxonomies = get_taxonomies( array( 'public' => true, '_builtin' => false ) ); + foreach ($taxonomies as $term_name): + if ( isset($query[$term_name]) ) { + + $term_slug = $this->get_last_slash( $query[$term_name] ); + $term = $this->get_term_by('slug', $term_slug, $term_name); + if (!$term) { + return $query; + } + $cache_array = array($term); + update_term_cache($cache_array, $term_name); // caching query :) + $id = $term; + $query[$term_name] = $term->slug; + $function = 'get_term_link'; + + } + endforeach; + + // -> home url + if ( empty($query) ) { + + $function = 'home_url'; + $id = ''; + + } + + // -> search + if (isset($query['s'])) { + + $id = $query['s']; + $function="get_search_link"; + + } + + if ( isset($function) ) { + + // parse all languages links + foreach( $this->get_enabled_languages() as $lang ) { + + $this->lang = $lang; + $this->current_url[$lang] = esc_url(apply_filters('qts_url_args', call_user_func($function, $id))); + } + + $this->lang = false; + } + + return $query; + } + + + + /** + * Parse a hierarquical name and extract the last one + * + * @param string $lang Page path + * @return string + * + * @since 1.0 + */ + public function get_current_url( $lang = false ) { + + if (!$lang) { + $lang = $this->get_lang(); + } + + if (isset($this->current_url[$lang]) && !empty($this->current_url[$lang])) { + return $this->current_url[$lang]; + } + + return ''; + } + + + + /** + * Parse a hierarquical name and extract the last one + * + * @param string $slug Page path + * @return string + * + * @since 1.0 + */ + private function get_last_slash($slug) { + + $slug = rawurlencode( urldecode( $slug ) ); + $slug = str_replace('%2F', '/', $slug); + $slug = str_replace('%20', ' ', $slug); + $exploded_slug = explode('/', $slug); + + return array_pop( $exploded_slug ); + } + + + + /** + * Retrieves a page id given its path. + * + * @param string $page_path Page path + * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. + * @param string $post_type Optional. Post type. Default page. + * @return mixed Null when complete. + * + * @since 1.0 + */ + private function get_page_id_by_path($page_path, $output = OBJECT, $post_type = 'page') { + global $wpdb; + + $page_path = rawurlencode(urldecode($page_path)); + $page_path = str_replace('%2F', '/', $page_path); + $page_path = str_replace('%20', ' ', $page_path); + $parts = explode( '/', trim( $page_path, '/' ) ); + $parts = array_map( 'esc_sql', $parts ); + $parts = array_map( 'sanitize_title_for_query', $parts ); + $in_string = "'". implode( "','", $parts ) . "'"; + $meta_key = $this->get_meta_key(); + $post_type_sql = $post_type; + $wpdb->escape_by_ref( $post_type_sql ); + + $pages = $wpdb->get_results( "SELECT $wpdb->posts.ID, $wpdb->posts.post_parent, $wpdb->postmeta.meta_value FROM $wpdb->posts,$wpdb->postmeta WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->postmeta.meta_key = '$meta_key' AND $wpdb->postmeta.meta_value IN ($in_string) AND ($wpdb->posts.post_type = '$post_type_sql' OR $wpdb->posts.post_type = 'attachment')", OBJECT_K ); + + $revparts = array_reverse( $parts ); + + $foundid = 0; + foreach ( (array) $pages as $page ) { + if ( $page->meta_value == $revparts[0] ) { + $count = 0; + $p = $page; + while ( $p->post_parent != 0 && isset( $pages[ $p->post_parent ] ) ) { + $count++; + $parent = $pages[ $p->post_parent ]; + if ( ! isset( $revparts[ $count ] ) || $parent->meta_value != $revparts[ $count ] ) { + break; + } + $p = $parent; + } + + if ( $p->post_parent == 0 && $count+1 == count( $revparts ) && $p->meta_value == $revparts[ $count ] ) { + $foundid = $page->ID; + break; + } + } + } + + if ( $foundid ) { + return $foundid; + + } else { + + $last_part = array_pop($parts); + $page_id = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_name = '$last_part' AND (post_type = '$post_type_sql' OR post_type = 'attachment')" ); + + if ( $page_id ) { + return $page_id; + } + } + + return null; + } + + + + + /** + * Retrieves a page given its path. + * + * @param string $page_path Page path + * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. + * @param string $post_type Optional. Post type. Default page. + * @return mixed Null when complete. + * + * @since 1.0 + */ + private function get_page_by_path($page_path, $output = OBJECT, $post_type = 'page') { + + $foundid = $this->get_page_id_by_path($page_path, $output, $post_type); + if ( $foundid ) { + return get_post( $foundid, $output ); + } + + return null; + } + + + + /** + * Ignores if the mod_rewrite func is the caller + * + * @return boolean + * + * @since 1.0 + */ + private function ignore_rewrite_caller() { + + $backtrace = debug_backtrace(); + + $ignore_functions = array('mod_rewrite_rules', 'save_mod_rewrite_rules', 'flush_rules', 'rewrite_rules', 'wp_rewrite_rules', 'query_vars'); + + if ( isset($backtrace['function']) ) { + if (in_array($backtrace['function'], $ignore_functions)) { + return true; + } + } else { + foreach ($backtrace as $trace) { + if ( isset($trace['function']) && in_array($trace['function'], $ignore_functions) ) { + return true; + } + } + } + + return false; + } + + + /** + * Retrieve the home url for a given site. + * + * @param int $blog_id (optional) Blog ID. Defaults to current blog. + * @param string $path (optional) Path relative to the home url. + * @param string $scheme (optional) Scheme to give the home url context. Currently 'http', 'https'. + * @return string Home url link with optional path appended. + * + * @since 1.0 + */ + public function home_url($url, $path, $scheme, $blog_id) { + if ( !in_array( $scheme, array( 'http', 'https' ) ) ) { + $scheme = is_ssl() && !is_admin() ? 'https' : 'http'; + } + + if ( empty( $blog_id ) || !is_multisite() ) { + $url = get_option( 'home' ); + } else { + $url = get_blog_option( $blog_id, 'home' ); + } + + if ( 'http' != $scheme ) { + $url = str_replace( 'http://', "$scheme://", $url ); + } + + $ignore_caller = $this->ignore_rewrite_caller(); + + if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) { + $url .= '/' . ltrim( $path, '/' ); + } + + if ( !$ignore_caller ) { + $url = call_user_func($this->get_plugin_prefix() . 'convertURL', $url, $this->get_lang(), true); + } + + return $url; + } + + + + /** + * Filter that changes the permastruct depending + * + * @param string $permastruct default permastruct given b wp_rewrite + * @param string $name the name of the extra permastruct + * @return string processed permastruct + * + * @since 1.0 + */ + public function get_extra_permastruct( $permastruct = false, $name = false ) { + + if ( !$name || !$permastruct ) { + return ''; + } + + if ( $base = $this->get_base_slug($name, $this->get_lang()) ) { + return "/$base/%$name%"; + } + + return $permastruct; + } + + + + /** + * Filter that translates the slug parts in a page link + * + * @param $link the link for the page generated by Wordpress + * @param $id the id of the page + * @return the link translated + * + * @since 1.0 + */ + public function post_type_link( $link, $post, $leavename, $sample ) { + global $wp_rewrite; + + if ( is_wp_error( $post ) ) { + return $post; + } + + $post_link = apply_filters( 'qts_permastruct', $wp_rewrite->get_extra_permastruct($post->post_type), $post->post_type); + + $slug = get_post_meta( $post->ID, $this->get_meta_key(), true ); + if (!$slug) { + $slug = $post->post_name; + } + + $draft_or_pending = isset($post->post_status) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) ); + + $post_type = get_post_type_object($post->post_type); + + if ( !empty($post_link) && ( !$draft_or_pending || $sample ) ) { + if ( ! $leavename ) { + if ( $post_type->hierarchical ) + $slug = $this->get_page_uri($post->ID); + $post_link = str_replace("%$post->post_type%", $slug, $post_link); + } + + $post_link = home_url( user_trailingslashit($post_link) ); + + } else { + + if ( $post_type->query_var && ( isset($post->post_status) && !$draft_or_pending ) ) { + $post_link = add_query_arg($post_type->query_var, $slug, ''); + } else { + $post_link = add_query_arg(array('post_type' => $post->post_type, 'p' => $post->ID), ''); + } + + $post_link = home_url($post_link); + } + + return $post_link; + } + + + + /** + * Filter that translates the slug in a post link + * + * @param $link the link generated by wordpress + * @param $post the post data + * @param $leavename parameter used by get_permalink. Whether to keep post name or page name. + * @return the link translated + * + * @since 1.0 + */ + public function post_link( $link, $post, $leavename ) { + global $q_config; + + $rewritecode = array( + '%year%', + '%monthnum%', + '%day%', + '%hour%', + '%minute%', + '%second%', + $leavename? '' : '%postname%', + '%post_id%', + '%category%', + '%author%', + $leavename? '' : '%pagename%', + ); + + if ( empty($post->ID) ) { + return false; + } + + $permalink = $this->permalink_structure; + + if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft')) ) { + $unixtime = strtotime($post->post_date); + + $category = ''; + if ( strpos($permalink, '%category%') !== false ) { + $cats = get_the_category($post->ID); + if ( $cats ) { + usort($cats, '_usort_terms_by_ID'); // order by ID + + $category = get_term_meta($cats[0]->term_id, $this->get_meta_key(), true ); + if (!$category) $category = $cats[0]->slug; + + if ( $parent = $cats[0]->parent ) + $category = $this->get_category_parents($parent, false, '/', true) . $category; + } + // show default category in permalinks, without + // having to assign it explicitly + if ( empty($category) ) { + $default_category = get_category( get_option( 'default_category' ) ); + + $default_category_slug = get_term_meta($default_category->term_id, $this->get_meta_key(), true ); + if (!$default_category_slug) $default_category_slug = $default_category->slug; + + $category = is_wp_error( $default_category ) ? '' : $default_category_slug; + } + } + + $author = ''; + if ( strpos($permalink, '%author%') !== false ) { + $authordata = get_userdata($post->post_author); + $author = $authordata->user_nicename; + } + + $date = explode(" ",date('Y m d H i s', $unixtime)); + + $post_slug = get_post_meta($post->ID, $this->get_meta_key(), true ); + if (!$post_slug) { + $post_slug = $post->post_name; + } + + $rewritereplace = + array( + $date[0], + $date[1], + $date[2], + $date[3], + $date[4], + $date[5], + $post_slug, + $post->ID, + $category, + $author, + $post_slug, + ); + $permalink = home_url( str_replace($rewritecode, $rewritereplace, $permalink)); + if ($q_config['url_mode'] != 1) { + $permalink = user_trailingslashit($permalink, 'single'); + } + } else { // if they're not using the fancy permalink option + $permalink = home_url('?p=' . $post->ID); + } + + return $permalink; + } + + + + /** + * Retrieve category parents with separator. + * + * @param int $id Category ID. + * @param bool $link Optional, default is false. Whether to format with link. + * @param string $separator Optional, default is '/'. How to separate categories. + * @param bool $nicename Optional, default is false. Whether to use nice name for display. + * @param array $visited Optional. Already linked to categories to prevent duplicates. + * @return string + * + * @since 1.0 + */ + private function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) { + + $chain = ''; + if(phpversion() >= 5.4) { + $parent = get_category( $id ); + } else { + $parent = &get_category( $id ); + } + + if ( is_wp_error( $parent ) ) { + return $parent; + } + + if ( $nicename ) { + + $name = get_term_meta($parent->term_id, $this->get_meta_key(), true ); + if (!$name) { + $name = $parent->slug; + } + } else { + $name = $parent->name; + } + + if ( $parent->parent && ( $parent->parent != $parent->term_id ) && !in_array( $parent->parent, $visited ) ) { + $visited[] = $parent->parent; + $chain .= $this->get_category_parents( $parent->parent, $link, $separator, $nicename, $visited ); + } + + if ( $link ) { + $chain .= '<a href="' . get_category_link( $parent->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s", "qts" ), $parent->name ) ) . '">'.$name.'</a>' . $separator; + } else { + $chain .= $name.$separator; + } + + return $chain; + } + + + + + + /** + * Filter that translates the slug parts in a page link + * + * @param $link the link for the page generated by Wordpress + * @param $id the id of the page + * @return the link translated + * + * @since 1.0 + */ + public function _get_page_link( $link, $id ) { + global $post, $wp_rewrite, $q_config; + + $current_post = $post; + + if ( !$id ) { + $id = (int) $post->ID; + } else { + if(phpversion() >= 5.4) { + $current_post = get_post($id); + } else { + $current_post = &get_post($id); + } + } + + $draft_or_pending = in_array( $current_post->post_status, array( 'draft', 'pending', 'auto-draft' ) ); + + $link = $wp_rewrite->get_page_permastruct(); + + if ( !empty($link) && ( isset($current_post->post_status) && !$draft_or_pending ) ) { + + $link = str_replace('%pagename%', $this->get_page_uri($id), $link); + + $link = trim($link, '/'); // hack + $link = home_url("/$link/"); // hack + + if ($q_config['url_mode'] != 1) + $link = user_trailingslashit($link, 'page'); + + } else { + + $link = home_url("?page_id=$id"); + } + + return $link; + } + + + + /** + * Builds URI for a page. + * + * Sub pages will be in the "directory" under the parent page post name. + * + * @param mixed $page Page object or page ID. + * @return string Page URI. + * + * @since 1.0 + */ + private function get_page_uri($page) { + + if ( ! is_object($page) ) { + $page = get_post($page); + } + + $uri = get_post_meta( $page->ID, $this->get_meta_key(), true ); + if (!$uri) { + $uri = $page->post_name; + } + + // A page cannot be it's own parent. + if ( $page->post_parent == $page->ID ) { + return $uri; + } + + while ($page->post_parent != 0) { + $page = get_post($page->post_parent); + + $page_name = get_post_meta( $page->ID, $this->get_meta_key(), true ); + if (!$page_name) { + $page_name = $page->post_name; + } + + $uri = $page_name . "/" . $uri; + } + + return $uri; + } + + + + /** + * Filter that translates the slug parts in a term link + * + * @param $link the link for the page generated by Wordpress + * @param $term object + * @param $taxonomy object + * @return the link translated + * + * @since 1.0 + */ + public function term_link( $link, $term, $taxonomy ) { + global $wp_rewrite; + + // parse normal term names for ?tag=tagname + if (empty($this->permalink_structure)) return $link; + + if ( !is_object($term) ) { + if ( is_int($term) ) { + $term = &get_term($term, $taxonomy); + } else { + $term = $this->get_term_by('slug', $term, $taxonomy); + } + } + + if ( !is_object($term) ) { + $term = new WP_Error('invalid_term', __('Empty Term', 'qts')); + } + + if ( is_wp_error( $term ) ) { + return $term; + } + + $taxonomy = $term->taxonomy; + + $termlink = apply_filters( 'qts_permastruct', $wp_rewrite->get_extra_permastruct($taxonomy), $taxonomy); + + $slug = get_term_meta( $term->term_id, $this->get_meta_key(), true ); + if (!$slug) { + $slug = $term->slug; + } + + $t = get_taxonomy($taxonomy); + + if ( empty($termlink) ) { + if ( 'category' == $taxonomy ) + $termlink = '?cat=' . $term->term_id; + elseif ( $t->query_var ) + $termlink = "?$t->query_var=$slug"; + else + $termlink = "?taxonomy=$taxonomy&term=$slug"; + $termlink = home_url($termlink); + } else { + if ( $t->rewrite['hierarchical'] ) { + $hierarchical_slugs = array(); + $ancestors = get_ancestors($term->term_id, $taxonomy); + foreach ( (array)$ancestors as $ancestor ) { + $ancestor_term = get_term($ancestor, $taxonomy); + + $ancestor_slug = get_term_meta( $ancestor_term->term_id, $this->get_meta_key(), true ); + if (!$ancestor_slug) $ancestor_slug = $ancestor_term->slug; + + $hierarchical_slugs[] = $ancestor_slug; + } + $hierarchical_slugs = array_reverse($hierarchical_slugs); + $hierarchical_slugs[] = $slug; + $termlink = str_replace("%$taxonomy%", implode('/', $hierarchical_slugs), $termlink); + } else { + $termlink = str_replace("%$taxonomy%", $slug, $termlink); + } + $termlink = home_url( user_trailingslashit($termlink, 'category') ); + } + return $termlink; + } + + + + /** + * Get all Term data from database by Term field and data. + * + * @param (string) $field Either 'slug', 'name', or 'id' + * @param (string|int) $value Search for this term value + * @param (string) $taxonomy Taxonomy Name + * @param (string) $output Constant OBJECT, ARRAY_A, or ARRAY_N + * @param (string) $filter Optional, default is raw or no WordPress defined filter will applied. + * @return (mixed) Term Row from database. Will return false if $taxonomy does not exist or $term was not found. + * + * @since 1.0 + */ + private function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw') { + global $wpdb; + + $original_field = $field; + + if ( ! taxonomy_exists($taxonomy) ) { + return false; + } + + if ( 'slug' == $field ) { + $field = 'm.meta_key = \''.$this->get_meta_key().'\' AND m.meta_value'; + $value = sanitize_title($value); + if ( empty($value) ) + return false; + } else if ( 'name' == $field ) { + // Assume already escaped + $value = stripslashes($value); + $field = 't.name'; + } else { + $term = get_term( (int) $value, $taxonomy, $output, $filter); + if ( is_wp_error( $term ) ) + $term = false; + return $term; + } + + $term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t, $wpdb->term_taxonomy AS tt, $wpdb->termmeta AS m WHERE t.term_id = tt.term_id AND tt.term_id = m.term_id AND tt.taxonomy = %s AND $field = %s LIMIT 1", $taxonomy, $value) ); + + if ( !$term && 'slug' == $original_field ) { + $field = 't.slug'; + $term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND $field = %s LIMIT 1", $taxonomy, $value) ); + } + + if ( !$term ) { + return false; + } + + wp_cache_add($term->term_id, $term, $taxonomy); + + $term = apply_filters('get_term', $term, $taxonomy); + $term = apply_filters("get_$taxonomy", $term, $taxonomy); + $term = sanitize_term($term, $taxonomy, $filter); + + if ( $output == OBJECT ) { + return $term; + } elseif ( $output == ARRAY_A ) { + return get_object_vars($term); + } elseif ( $output == ARRAY_N ) { + return array_values(get_object_vars($term)); + } else { + return $term; + } + } + + + + /** + * Fix for: + * - Taxonomy names in Taxonomy Manage page + * - 'Popular Tags' in Taxonomy (Tags) Manage page + * - Category filter dropdown menu in Post Manage page + * - Category list in Post Edit page + * - 'Most Used' tags list in Post Edit page (but have issues when saving) + * + * @param (array) $terms + * @param (string|array) $taxonomy + * @since 1.2 + */ + function get_terms($terms, $taxonomy) { + + global $pagenow; + + + if ( $pagenow != 'admin-ajax.php' ) { + + $meta = get_option('qtranslate_term_name'); + $lang = call_user_func($this->get_plugin_prefix() . 'getLanguage'); + + + if ( !empty( $terms ) ) { + foreach ($terms as $term_index => $term) { + // after saving, dont do anything + if( ( isset($_POST['action'] ) && $_POST['action'] == "editedtag") || + !is_object( $term ) ) { + return $terms; + } + $termname = $term->name; + if( isset( $meta[$termname][$lang] ) ) { + $term->name = $meta[$termname][$lang]; + } + }; + }; + } + return $terms; + } + + + + /** + * Fix for: + * - Taxonomy & custom taxonomy names in Post Manage page + * - List of tags already added to the post in Post + * - Edit page (but have issues when saving) + * + * @param (array) $terms + * @param (int|array) $obj_id + * @param (string|array) $taxonomy + * @param (array) $taxonomy + * @since 1.2 + */ + function get_object_terms($terms, $obj_id, $taxonomy, $args) { + + global $pagenow; + + // Although in post edit page the tags are translated, + // but when saving/updating the post Wordpress considers + // the translated tags as new tags. Due to this + // issue I limit this 'hack' to the post manage + // page only. + if ( $pagenow == 'edit.php' ) { + + // $taxonomy output seems to be wrapped + // in single quotes, thus remove them to + // make the output valid + $tax = str_replace("'", "", $taxonomy); + + $meta = get_option('qtranslate_term_name'); + $lang = call_user_func($this->get_plugin_prefix() . 'getLanguage'); + + if ( !empty( $terms ) ) { + foreach ($terms as $term) { + if( isset( $meta[$term->name][$lang] ) ) { + $term->name = $meta[$term->name][$lang]; + } + }; + }; + + } + return $terms; + } + + + + /** + * hide quickedit slug + * + * @since 1.0 + */ + public function hide_quick_edit() { + echo "<!-- QTS remove quick edit box -->" . PHP_EOL; + echo "<style type=\"text/css\" media=\"screen\">" . PHP_EOL; + echo " .inline-edit-row fieldset.inline-edit-col-left .inline-edit-col *:first-child + label + label { display: none !important }" . PHP_EOL; + echo "</style>" . PHP_EOL; + } + + + + /** + * Hide auttomatically the wordpress slug blog in edit posts page + * + * @since 1.0 + */ + public function hide_slug_box() { + global $pagenow; + + switch ( $pagenow ): + case 'edit-tags.php': + + echo "<!-- QTS remove slug box -->" . PHP_EOL; + echo "<script type=\"text/javascript\" charset=\"utf-8\">" . PHP_EOL; + echo " jQuery(document).ready(function($){" . PHP_EOL; + echo " $(\"#tag-slug\").parent().hide();" . PHP_EOL; + echo " $(\".form-field td #slug\").parent().parent().hide();" . PHP_EOL; + echo " });" . PHP_EOL; + echo "</script>" . PHP_EOL; + break; + + case 'post.php': + + echo "<!-- QTS remove slug box -->" . PHP_EOL; + echo "<style type=\"text/css\" media=\"screen\">" . PHP_EOL; + echo " #edit-slug-box { display: none !important}" . PHP_EOL; + echo "</style>" . PHP_EOL; + break; + endswitch; + } + + + + /** + * Creates a metabox for every post, page and post type avaiable + * + * @since 1.0 + */ + public function add_slug_meta_box() { + + if ( function_exists( 'add_meta_box' ) ) { + + $context = apply_filters("qts_admin_meta_box_context","side"); + $priority = apply_filters("qts_admin_meta_box_priority","high"); + + add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'post', $context, $priority); + add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'page', $context, $priority); + + foreach ( get_post_types( array('_builtin' => false ) ) as $ptype ) + add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), $ptype, $context, $priority ); + } + } + + + + /** + * Shows the fields where insert the translated slugs in the post and page edit form. + * + * @param $post (object) current post object + * + * @since 1.0 + */ + public function draw_meta_box( $post ) { + global $q_config; + + // Use nonce for verification + echo "<table style=\"width:100%\">" . PHP_EOL; + echo "<input type=\"hidden\" name=\"qts_nonce\" id=\"qts_nonce\" value=\"" . wp_create_nonce( 'qts_nonce' ) . "\" />" . PHP_EOL; + + foreach ($q_config['enabled_languages'] as $lang): + + $slug = get_post_meta( $post->ID, $this->get_meta_key($lang), true); + + $value = ( $slug ) ? htmlspecialchars( $slug , ENT_QUOTES ) : ''; + + echo "<tr>" . PHP_EOL; + echo "<th style=\"text-align:left; width:10%; color:#555 \"><label for=\"qts_{$lang}_slug\">".__($q_config['language_name'][$lang], 'qtranslate')."</label></th>" . PHP_EOL; + echo "<td><input type=\"text\" id=\"qts_{$lang}_slug\" name=\"qts_{$lang}_slug\" value=\"$value\" style=\"width:90%; margin-left:10%; color:#777\" /></td>" . PHP_EOL; + echo "</tr>" . PHP_EOL; + + endforeach; + + echo '</table>' . PHP_EOL; + } + + + + /** + * Sanitize title as slug, if empty slug + * + * @param $post (object) the post object + * @param $slug (string) the slug name + * @param $lang (string) the language + * @return the slug validated + * + * @since 1.0 + */ + public function validate_post_slug( $slug, $post, $lang ) { + + $post_title = trim(call_user_func($this->get_plugin_prefix() . 'use',$lang, $_POST['post_title'])); + $post_name = get_post_meta($post->ID, $this->get_meta_key($lang), true); + if (!$post_name) { + $post_name = $post->post_name; + } + + $name = ( $post_title == '' || strlen($post_title) == 0 ) ? $post_name : $post_title; + + $slug = trim($slug); + + $slug = (empty($slug)) ? sanitize_title($name) : sanitize_title($slug); + + + + return htmlspecialchars( $slug , ENT_QUOTES ); + } + + + + /** + * Validates post slug against repetitions per language + * + * @param $post (object) the post object + * @param $slug (string) the slug name + * @param $lang (string) the language + * @return the slug validated + * + * @since 1.0 + */ + public function unique_post_slug( $slug, $post, $lang ) { + + $original_status = $post->post_status; + + if ( in_array($post->post_status, array('draft', 'pending')) ) { + $post->post_status = 'publish'; + } + + $slug = $this->wp_unique_post_slug( $slug, $post->ID, $post->post_status, $post->post_type, $post->post_parent, $lang ); + + $post->post_status = $original_status; + + return $slug; + } + + + + /** + * Computes a unique slug for the post and language, when given the desired slug and some post details. + * + * @param string $slug the desired slug (post_name) + * @param integer $post_ID + * @param string $post_status no uniqueness checks are made if the post is still draft or pending + * @param string $post_type + * @param integer $post_parent + * @return string unique slug for the post, based on language meta_value (with a -1, -2, etc. suffix) + * + * @since 1.0 + */ + public function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent, $lang ) { + if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) ) { + return $slug; + } + + global $wpdb, $wp_rewrite; + + $feeds = $wp_rewrite->feeds; + if ( ! is_array( $feeds ) ) { + $feeds = array(); + } + + $meta_key = $this->get_meta_key($lang); + if ( 'attachment' == $post_type ) { + // Attachment slugs must be unique across all types. + $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND ID != %d LIMIT 1"; + $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $slug, $post_ID ) ); + + if ( $post_name_check || in_array( $slug, $feeds ) || apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug ) ) { + $suffix = 2; + do { + $alt_post_name = substr ($slug, 0, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; + $post_name_check = $wpdb->get_var( $wpdb->prepare($check_sql, $alt_post_name, $post_ID ) ); + $suffix++; + } while ( $post_name_check ); + $slug = $alt_post_name; + } + } else { + // Post slugs must be unique across all posts. + $check_sql = "SELECT $wpdb->postmeta.meta_value FROM $wpdb->posts,$wpdb->postmeta WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->postmeta.meta_key = '%s' AND $wpdb->postmeta.meta_value = '%s' AND $wpdb->posts.post_type = %s AND ID != %d LIMIT 1"; + $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $meta_key, $slug, $post_type, $post_ID ) ); + + if ( $post_name_check || in_array( $slug, $feeds ) || apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type ) ) { + $suffix = 2; + do { + $alt_post_name = substr( $slug, 0, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; + $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $meta_key, $alt_post_name, $post_type, $post_ID ) ); + $suffix++; + } while ( $post_name_check ); + $slug = $alt_post_name; + } + } + + return $slug; + } + + + + + /** + * Saves the translated slug when the page is saved + * + * @param $post_id the post id + * @param $post the post object + * + * @since 1.0 + */ + public function save_postdata( $post_id, $post ) { + + $post_type_object = get_post_type_object( $post->post_type); + + + if ((defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) // check autosave + || (!isset($_POST['post_ID']) || $post_id != $_POST['post_ID']) // check revision + || (!wp_verify_nonce( $_POST['qts_nonce'], 'qts_nonce')) // verify nonce + || (!current_user_can($post_type_object->cap->edit_post, $post_id))) { // check permission + return $post_id; + } + foreach ($this->get_enabled_languages() as $lang) { + + $meta_name = $this->get_meta_key($lang); + $meta_value = apply_filters( 'qts_validate_post_slug', $_POST["qts_{$lang}_slug"], $post, $lang); + delete_post_meta($post_id, $meta_name); + update_post_meta($post_id, $meta_name, $meta_value); + + } + } + + + + /** + * Display multiple input fields, one per language + * + * @param $term the term object + * + * @since 1.0 + */ + public function show_term_fields( $term ) { + global $q_config; + + // prints the fields in edit page + if (isset($_GET['action']) && $_GET['action'] == 'edit' ): + + echo "<table class=\"form-table\">" . PHP_EOL; + echo "<input type=\"hidden\" name=\"qts_nonce\" id=\"qts_nonce\" value=\"" . wp_create_nonce( 'qts_nonce' ) . "\" />" . PHP_EOL; + + foreach( $q_config['enabled_languages'] as $lang ) { + + $slug = (is_object($term)) ? get_term_meta( $term->term_id, $this->get_meta_key($lang), true ) : ''; + + $value = ( $slug ) ? htmlspecialchars( $slug , ENT_QUOTES ) : ''; + + echo "<tr class=\"form-field form-required\">" . PHP_EOL; + echo "<th scope=\"row\" valig=\"top\"><label for=\"qts_{$lang}_slug\">".sprintf( __('Slug (%s)', 'qts'), $q_config['language_name'][$lang] )."</label></th>" . PHP_EOL; + echo "<td><input type=\"text\" name=\"qts_{$lang}_slug\" value=\"$value\" /></td></tr>" . PHP_EOL; + + } + + echo '</table>'; + + // prints the fields in new page + else: + echo "<input type=\"hidden\" name=\"qts_nonce\" id=\"qts_nonce\" value=\"" . wp_create_nonce( 'qts_nonce' ) . "\" />" . PHP_EOL; + + foreach( $q_config['enabled_languages'] as $lang ) { + + echo "<div class=\"form-field\">" . PHP_EOL; + + $slug = (is_object($term)) ? get_term_meta( $term->term_id, $this->get_meta_key($lang), true ) : ''; + + $value = ( $slug ) ? htmlspecialchars( $slug , ENT_QUOTES ) : ''; + + echo "<label for=\"qts_{$lang}_slug\">".sprintf( __('Slug (%s)', 'qts'), $q_config['language_name'][$lang] )."</label>" . PHP_EOL; + echo "<input type=\"text\" name=\"qts_{$lang}_slug\" value=\"$value\" aria-required=\"true\">" . PHP_EOL; + + echo '</div>'; + + } + + endif; + } + + + + /** + * Sanitize title as slug, if empty slug + * + * @param $term (object) the term object + * @param $slug (string) the slug name + * @param $lang (string) the language + * @return the slug validated + * + * @since 1.0 + */ + public function validate_term_slug( $slug, $term, $lang ) { + + global $q_config; + + $lang_name = $q_config['term_name'][$term->name][$lang]; + + $ajax_name = 'new' . $term->taxonomy; + + $post_name = isset($_POST['name']) ? $_POST['name'] : ''; + + $term_name = isset($_POST[$ajax_name]) ? trim($_POST[$ajax_name]) : $post_name; + + if (empty($term_name)) { + return $slug; + } + + $name = ( $lang_name == '' || strlen($lang_name) == 0 ) ? $term_name : $lang_name; + + $slug = trim($slug); + + $slug = (empty($slug)) ? sanitize_title($name) : sanitize_title($slug); + + return htmlspecialchars( $slug , ENT_QUOTES ); + } + + + + /** + * Will make slug unique per language, if it isn't already. + * + * @param string $slug The string that will be tried for a unique slug + * @param object $term The term object that the $slug will belong too + * @param object $lang The language reference + * @return string Will return a true unique slug. + * + * @since 1.0 + */ + public function unique_term_slug($slug, $term, $lang) { + + global $wpdb; + + $meta_key_name = $this->get_meta_key($lang); + $query = $wpdb->prepare("SELECT term_id FROM $wpdb->termmeta WHERE meta_key = '%s' AND meta_value = '%s' AND term_id != %d ", $meta_key_name, $slug, $term->term_id); + $exists_slug = $wpdb->get_results($query); + + if ( empty($exists_slug) ) { + return $slug; + } + + // If we didn't get a unique slug, try appending a number to make it unique. + $query = $wpdb->prepare("SELECT meta_value FROM $wpdb->termmeta WHERE meta_key = '%s' AND meta_value = '%s' AND term_id != %d", $meta_key_name, $slug, $term->term_id); + + if ( $wpdb->get_var( $query ) ) { + $num = 2; + do { + $alt_slug = $slug . "-$num"; + $num++; + $slug_check = $wpdb->get_var( + $wpdb->prepare( + "SELECT meta_value FROM $wpdb->termmeta WHERE meta_key = '%s' AND meta_value = '%s'", + $meta_key_name, + $alt_slug) ); + } while ( $slug_check ); + $slug = $alt_slug; + } + + return $slug; + } + + + + /** + * Display multiple input fields, one per language + * + * @param $term_id the term id + * @param $tt_id the term taxonomy id + * @param $taxonomy the term object + * + * @since 1.0 + */ + public function save_term( $term_id, $tt_id, $taxonomy ) { + + $cur_screen = get_current_screen(); + if ( (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) // check autosave + || ( !current_user_can('edit_posts') ) // check permission + || ( isset($cur_screen) && $cur_screen->id === "nav-menus") + ) { + return $term_id; + } + + $term = get_term( $term_id, $taxonomy); + foreach( $this->get_enabled_languages() as $lang ) { + $meta_name = $this->get_meta_key($lang); + + //43LC: when at the post edit screen and creating a new tag + // the $slug comes from $_POST with the value of the post slug, + // not with the term slug. + if ($_POST['action'] == "editpost") { + // so we use the slug wp gave it + $term_slug = $term->slug; + } else { + // otherwise, its the edit term screen + $term_slug = $_POST["qts_{$lang}_slug"]; + } + + $meta_value = apply_filters( 'qts_validate_term_slug', $term_slug, $term, $lang); + + delete_term_meta($term_id, $meta_name); + update_term_meta($term_id, $meta_name, $meta_value); + } + } + + + + /** + * deletes termmeta rows associated with the term + * + * @since 1.0 + */ + public function delete_term($term_id, $tt_id, $taxonomy) { + global $wpdb; + + $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->termmeta WHERE term_id = %d", $term_id ) ); + } + + + + /** + * creates and prints the forms and hides the default fields + * @param object $term the term object + * @since 1.1.12 + * + * TODO: merge with our own form. + * TODO: move code into js file + * + */ + public function qts_modify_term_form($term) { + echo "<script type=\"text/javascript\">\n// <![CDATA[\r\n"; + if(is_object($term)&&isset($term->name)) { + $termname = $term->name; + } else { + $termname = ""; + } + if(isset($_GET['action']) && $_GET['action']=='edit') { + foreach($this->get_enabled_languages() as $language) { + echo $this->qts_insert_term_input('name', __('Name','qts'), $termname, $language,"edit"); + } + } else { + foreach($this->get_enabled_languages() as $language) { + echo $this->qts_insert_term_input('tag-name', __('Name','qts'), $termname, $language,"new"); + } + } + // hide real category text + echo "if (ins != null) ins.style.display='none';\n"; + echo "// ]]>\n</script>\n"; + } + + /** + * Helper for qts_modify_term_form_for + * @param string $id the term id + * @param object #term the term + * @param string $language the term name + * @param string $action the term name + * @return string $html the new input fields + * @since 1.1.12 + * TODO: use DocumentFragment + */ + private function qts_insert_term_input($id,$name, $language,$action){ + global $q_config; + $html = ""; + if( $action === "new") { + $html =" + var il = document.getElementsByTagName('input'), + d = document.createElement('div'), + l = document.createTextNode('".$name." (".$q_config['language_name'][$language].")'), + ll = document.createElement('label'), + i = document.createElement('input'), + ins = null; + for(var j = 0; j < il.length; j++) { + if(il[j].id=='".$id."') { + ins = il[j]; + break; + } + } + i.type = 'text'; + i.id = i.name = ll.htmlFor ='qtrans_term_".$language."'; + "; + } elseif ( $action === "edit") { + $html =" + var tr = document.createElement('tr'), + th = document.createElement('th'), + ll = document.createElement('label'), + l = document.createTextNode('".$name." (".$q_config['language_name'][$language].")'), + td = document.createElement('td'), + i = document.createElement('input'), + ins = document.getElementById('".$id."'); + i.type = 'text'; + i.id = i.name = ll.htmlFor ='qtrans_term_".$language."'; + "; + } + if(isset($q_config['term_name'][$termname][$language])) { + $html .=" + i.value = '".addslashes(htmlspecialchars_decode($q_config['term_name'][$termname][$language], ENT_QUOTES))."';"; + //43LC: applied ENT_QUOTES to both edit and new forms. + } else { + $html .=" + if (ins != null) + i.value = ins.value; + "; + } + + if($language == $this->default_language) { + $html .=" + i.onchange = function() { + var il = document.getElementsByTagName('input'), + ins = null; + for(var j = 0; j < il.length; j++) { + if(il[j].id=='".$id."') { + ins = il[j]; + break; + } + } + if (ins != null) + ins.value = document.getElementById('qtrans_term_".$language."').value; + }; + "; + } + if( $action === "new") { + $html .=" + if (ins != null) + ins = ins.parentNode; + d.className = 'form-field form-required'; + ll.appendChild(l); + d.appendChild(ll); + d.appendChild(i); + if (ins != null) + ins.parentNode.insertBefore(d,ins); + "; + } elseif ( $action === "edit") { + $html .=" + ins = ins.parentNode.parentNode; + tr.className = 'form-field form-required'; + th.scope = 'row'; + th.vAlign = 'top'; + ll.appendChild(l); + th.appendChild(ll); + tr.appendChild(th); + td.appendChild(i); + tr.appendChild(td); + ins.parentNode.insertBefore(tr,ins); + "; + } + return $html; + } + /** + * adds support for qtranslate in taxonomies + * + * @since 1.0 + */ + public function taxonomies_hooks() { + + $taxonomies = $this->get_public_taxonomies(); + + if ($taxonomies) { + foreach ($taxonomies as $taxonomy ) { + add_action( $taxonomy->name.'_add_form', array(&$this, 'qts_modify_term_form')); + add_action( $taxonomy->name.'_edit_form', array(&$this, 'qts_modify_term_form')); + add_action( $taxonomy->name.'_add_form', array(&$this, 'show_term_fields')); + add_action( $taxonomy->name.'_edit_form_fields', array(&$this, 'show_term_fields') ); + add_filter('manage_edit-'.$taxonomy->name.'_columns', array(&$this, 'taxonomy_columns')); + add_filter('manage_'.$taxonomy->name.'_custom_column', array(&$this, 'taxonomy_custom_column'), 0, 3); + } + } + } + + + + /* + * Bug fix for slug column in taxonomies + * + * @since 1.0 + */ + public function taxonomy_columns($columns) { + unset($columns['slug']); + unset($columns['posts']); + + $columns['qts-slug'] = __('Slug', 'qts'); + $columns['posts'] = __('Posts', 'qts'); + + return $columns; + } + + + + /* + * Bug fix for slug column in taxonomies + * + * @since 1.0 + */ + public function taxonomy_custom_column($str, $column_name, $term_id) { + + switch ($column_name) { + case 'qts-slug': + echo get_term_meta($term_id, $this->get_meta_key(), true); + break; + } + return false; + } + + + + + /** + * Bug fix for multisite blog names + * + * @since 1.0 + */ + public function blog_names($blogs) { + + foreach ($blogs as $blog) { + $blog->blogname = __($blog->blogname); + } + + return $blogs; + } + + + + /** + * Initialise the Language Widget selector + * + * @since 1.0 + */ + public function widget_init() { + + if (class_exists('qTranslateWidget')) { + unregister_widget('qTranslateWidget'); + } + if (class_exists('mqTranslateWidget')) { + unregister_widget('mqTranslateWidget'); + } + if (class_exists('ppqTranslateWidget')) { + unregister_widget('ppqTranslateWidget'); + } + + //if (class_exists('qTranslateXWidget')) {//it has additional features some people use. + // unregister_widget('qTranslateXWidget'); + //} + + register_widget('QtranslateSlugWidget'); + } + + + + /** + * remove some default dashboard Widgets on Desktop + * + * @since 1.0 + */ + function remove_dashboard_widgets() { + global $wp_meta_boxes; + unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); + } + + + + /** + * adds support for qtranslate nav menus + * + * @since 1.0 + */ + public function fix_nav_menu() { + global $pagenow; + + if( $pagenow != 'nav-menus.php' ) { + return; + } + //FIXME: fix the nav menu box + // wp_enqueue_script( 'nav-menu-query', plugins_url( 'assets/js/qts-nav-menu-min.js' , dirname(__FILE__ ) ), 'nav-menu', '1.0' ); + // add_meta_box( 'qt-languages', __('Languages', 'qts'), array(&$this, 'nav_menu_meta_box'), 'nav-menus', 'side', 'default' ); + } + + + + /** + * draws meta box for select language + * + * @since 1.0 + */ + public function nav_menu_meta_box() { + global $q_config; + echo '<p>'; + foreach($q_config['enabled_languages'] as $id => $language) { + $checked = ($language == $q_config['language']) ? ' checked="checked"' : ''; + echo '<p style="margin:0 0 5px 0"><input type="radio" style="margin-right:5px" name="wa_qt_lang" value="' . $language . '" id="wa_gt_lang_' . $id . '" ' . $checked . '/>'; + echo '<label for="wa_gt_lang_' . $id . '">'; + echo '<img src="' . trailingslashit(WP_CONTENT_URL).$q_config['flag_location'].$q_config['flag'][$language] . '"/>&nbsp;'; + echo __($q_config['language_name'][$language], 'qtranslate'); + echo '</label></p>'; + } + echo '<p style="margin:0 0 5px 0"><input type="radio" style="margin-right:5px" name="wa_qt_lang" value="all" id="wa_gt_lang_999" />'; + echo '<label for="wa_gt_lang_999">'; + echo __('All languages', 'qts'); + echo '</label></p>'; + echo '</p>'; + } + + + + /** + * Language select function for templating + * + * @param $type (string) choose the type of menu: 'text', 'image', 'both', 'dropdown' + * @param $args (array) some args for draw the menu: array( 'id', 'class', 'short' ); + * + * @since 1.0 + */ + public function language_menu( $type = "text", $args = array() ) { + global $q_config; + + + // default arguments + $defaults = array( + 'id' => "qts-lang-menu", + 'class' => "qts-lang-menu", + 'short' => false + ); + $args = wp_parse_args( $args, $defaults ); + + $languages = call_user_func($this->get_plugin_prefix() . 'getSortedLanguages'); + + // every type + switch ( $type ) { + + case 'image': + case 'text': + case 'both': + + $baseurl = dirname(plugins_url()); + $num_languages = count($languages); + echo "<ul id=\"{$args['id']}\" class=\"qts_type_{$type} {$args['class']}\">". PHP_EOL; + + foreach( $languages as $index => $lang ): + + $url = $this->get_current_url($lang); + // 43LC: hack to play nice with qtranslate-x + if( "qtranxf_" === $this->plugin_prefix && $this->default_language === $lang ) { + + $url = qtranxf_convertURL('',$lang,false,true); + } + $item_class = array(); + if ( (string)$q_config['language'] == (string)$lang ) $item_class[] = 'current-menu-item'; + if ( $index == ( $num_languages - 1) ) $item_class[] = 'last-child'; + + + $item_class = ' class="qts_lang_item ' . implode(' ', $item_class) . '"'; + + $language_name = ($args['short']) ? $lang : $q_config['language_name'][$lang]; + + if ( $type == 'image' ) { + $link_class = " class=\"qtrans_flag qtrans_flag_$lang\""; + $link_content = "<span style=\"display:none\">$language_name</span>"; + } else if ( $type == 'both' ) { + $link_class = " class=\"qts_both qtrans_flag qtrans_flag_$lang\""; + $link_content = "$language_name"; + } else { + $link_class = ''; + $link_content = $language_name; + $link_flag =''; + } + if( $type == 'image' || $type == 'both' ) { + $link_flag_url = $baseurl . '/'.$q_config['flag_location'].$q_config['flag'][$lang]; + + //TODO: add i18n for alt attribute + //43LC: hardcoding height and width + $link_flag = "<img widht=\"18\" height=\"12\" src=\"$link_flag_url\" alt=\"$language_name\" />"; + } + + echo "<li $item_class><a href=\"$url\" lang=\"$lang\" hreflang=\"$lang\"$link_class>$link_flag$link_content</a></li>" . PHP_EOL; + + endforeach; + + echo "</ul>". PHP_EOL; + + break; + + case 'dropdown': + + echo "<select id=\"{$args['id']}\" class=\"{$args['class']}\" onchange=\"window.location.href=this.options[this.selectedIndex].value\">". PHP_EOL; + + foreach( $languages as $index => $lang ): + + $url = $this->get_current_url($lang); + + $item_class = ''; + if ( (string)$q_config['language'] == (string)$lang ) $item_class = 'selected="selected"'; + + $language_name = ($args['short']) ? $lang : $q_config['language_name'][$lang]; + + echo "<option value=\"$url\" $item_class>$language_name</option>" . PHP_EOL; + + endforeach; + + echo "</select>". PHP_EOL; + + break; + } + + } +} diff --git a/includes/qtranslate-slug-settings-options.php b/includes/qtranslate-slug-settings-options.php new file mode 100644 index 0000000..7a33c1e --- /dev/null +++ b/includes/qtranslate-slug-settings-options.php @@ -0,0 +1,179 @@ +<?php +/** + * Define our settings sections + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return array key=$id, array value=$title in: add_settings_section( $id, $title, $callback, $page ); + */ +function qts_options_page_sections() { + + $sections = array(); + $sections['post_types'] = __('Post types', 'qts'); + $sections['taxonomies'] = __('Taxonomies', 'qts'); + $sections['styles'] = __('Styles', 'qts'); + + return $sections; +} + + + +/** + * Helper for create arrays of choices + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return array + */ +function get_multi_txt_choices($name = false) { + global $q_config; + + if (!$name) return array(); + + $choices = array(); + foreach( $q_config['enabled_languages'] as $key => $lang) { + $label = sprintf( __('Slug (%s)', 'qts'), $q_config['language_name'][$lang] ); + $choices[] = "$label|$lang"; // prints: 'Slug (English)|en' ( $name = books ) + } + + return $choices; +} + + + +/** + * Define our form fields (settings) for displaying the default styles + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.1.7 + * + * @return array + */ +function qts_options_page_styles() { + + + $options[] = array( + "section" => "styles", + "id" => QTS_PREFIX . "styles", + "title" => __('Change styles type', 'qts'), + "desc" => array( + __("adds a file (qts-default.css) to the theme's header.", "qts"), + __("adds a minified ( slighlty faster) file (qts-default.min.css) to the theme's header.", "qts"), + __("prints the styles directly into the theme's header.", "qts"), + __("neither include not print the default style.", "qts") + ), + "type" => "multi-radio", + 'class' => 'qts-style', + "choices" => array( + __("file", "qts"), + __("minified", "qts"), + __("inline", "qts"), + __("none", "qts") + ), + "std" => "file" + ); + + return $options; +} + + + +/** + * Define our form fields (settings) + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return array + */ +function qts_options_page_fields() { + + $post_types = get_post_types( array('_builtin' => false, 'public' => true ), 'objects'); + + // each post type + foreach ($post_types as $post_type): + + $options[] = array( + "section" => "post_types", + "id" => QTS_PREFIX . "post_type_" . $post_type->name, + "title" => $post_type->labels->singular_name, + "desc" => sprintf( __( '<code>http://example.org/<u>%s</u>/some-%s/</code>', 'qts' ), $post_type->name, $post_type->name), + 'class' => 'qts-slug', + "type" => "multi-text", + "choices" => get_multi_txt_choices( $post_type->name), + "std" => "" + ); + + endforeach; + // end each post type + + $options[] = array( + "section" => "taxonomies", + "id" => QTS_PREFIX . "taxonomy_category", + "title" => __( 'Categories', 'qts' ), + "desc" => __( '<code>http://example.org/<u>category</u>/some-category/</code>', 'qts' ), + "type" => "multi-text", + 'class' => 'qts-slug', + "choices" => get_multi_txt_choices('category'), + "std" => "" + ); + + $options[] = array( + "section" => "taxonomies", + "id" => QTS_PREFIX . "taxonomy_post_tag", + "title" => __( 'Tags', 'qts' ), + "desc" => __( '<code>http://example.org/<u>tag</u>/some-tag/</code>', 'qts' ), + "type" => "multi-text", + 'class' => 'qts-slug', + "choices" => get_multi_txt_choices('post_tag'), + "std" => "" + ); + + + $taxonomies = get_taxonomies( array( 'public' => true, 'show_ui' => true, '_builtin' => false ), 'object' ); + + // each extra taxonomy + foreach ($taxonomies as $taxonomy): + + $options[] = array( + "section" => "taxonomies", + "id" => QTS_PREFIX . "taxonomy_" . $taxonomy->name, + "title" => $taxonomy->labels->singular_name, + "desc" => sprintf( __( '<code>http://example.org/<u>%s</u>/some-%s/</code>', 'qts' ), $taxonomy->name, $taxonomy->name ), + "type" => "multi-text", + 'class' => 'qts-slug', + "choices" => get_multi_txt_choices( $taxonomy->name), + "std" => "" + ); + + endforeach; + // end each extra taxonomy + + + return $options; +} + + + +/** + * Contextual Help + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + */ +function qts_options_page_contextual_help() { + + + $text = "<h3>" . __('Qtranslate Settings - Contextual Help','qts') . "</h3>"; + $text .= "<p>" . __('Contextual help goes here. You may want to use different html elements to format your text as you want.','qts') . "</p>"; + + return $text; +} \ No newline at end of file diff --git a/includes/qtranslate-slug-settings.php b/includes/qtranslate-slug-settings.php new file mode 100644 index 0000000..c52ec54 --- /dev/null +++ b/includes/qtranslate-slug-settings.php @@ -0,0 +1,979 @@ +<?php + +// page settings sections & fields as well as the contextual help text. +include_once('qtranslate-slug-settings-options.php'); + + +/** + * Prints upgrade form in Qtranslate Slug admin page + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return array + */ +function qts_upgrade() { + global $qtranslate_slug; + + if ( !$qtranslate_slug->check_old_data() ) return; + + echo "<div id=\"qts-upgrade-box\" class=\"updated\" style=\"margin: 15px 0; margin-bottom:25px; padding: 10px\">" . PHP_EOL; + + echo "<h3>" . __('Upgrade your data', 'qts') . "</h3>" . PHP_EOL; + echo "<p>" . __('There are slugs stored with old data system. Please upgrade your data pressing upgrade button:', 'qts') . "</p>" . PHP_EOL; + + echo "<div id=\"qts-upgrade-form\">" . PHP_EOL; + echo "<input type=\"hidden\" id=\"qts-upgrade-action\" name=\"qts-upgrade-action\" value=\"qts-upgrade-check\" />" .PHP_EOL; + echo "<input type=\"hidden\" id=\"qts-upgrade-nonce\" name=\"qts-upgrade-nonce\" value=\"". wp_create_nonce('qts-upgrade') . "\" />" .PHP_EOL; + echo "<p><a id=\"qts-upgrade-button\" href=\"#\" class=\"button-primary\">" . __('upgrade now', 'qts') . "</a><img src=\"".admin_url('images/wpspin_light.gif')."\" class=\"qts-loading\" id=\"qts-loading\" alt=\"\"></p>" . PHP_EOL; + echo "</div></div>" . PHP_EOL; +} + + +/** + * AJAX: upgrade old database to new system + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return boolean + */ +function qts_process_old_data( $old_data = null, $type = 'post' ) { + global $wpdb, $qtranslate_slug; + + if ( is_null($old_data) || empty($old_data) ) return 0; + foreach ($old_data as $row) { + switch ($row->qts_type) { + case 1: + case 2: + update_post_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); + break; + case 3: + case 4: + update_term_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); + break; + case 5: + if ($type == 'post') + update_post_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); + + if ($type == 'term') + update_term_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); + break; + }; + } + $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}qtranslate_slug"); + + return 1; +} + +function qts_upgrade_response($type = 0, $slug = null) { + switch ( $type ) { + default: + case 0: + $response = array( + 'status' => 0, + 'message' => __('Sorry, some error happened. Refresh this page and try again please.', 'qts'), + ); + break; + + case 1: + $response = array( + 'status' => 1, + 'message' => __('Congratulations, your data has been upgraded, you are up to date.', 'qts'), + ); + break; + case 2: + $response = array( + 'status' => 2, + 'message' => sprintf(__('One step more, select what type of slug is this: <strong>%s</strong>', 'qts'), $slug), + 'options' => array( 'post' => __('Post, Page or Custom post type', 'qts'), 'term' => __('Category, tag or custom taxonomy', 'qts') ) + ); + break; + } + + return $response; +} + + + +/** + * AJAX: upgrade old database to new system + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return JSON object + */ +function qts_upgrade_check() { + global $qtranslate_slug; + + $old_data = $qtranslate_slug->check_old_data(); + + if ( wp_verify_nonce( $_POST['nonce'], 'qts-upgrade') ): + + // if data process to save... + if ($old_data) { + + // if defined data type 5, process to upgrade + if ( isset($_POST['type']) ): + + $res = qts_process_old_data($old_data, $_POST['type']); + + $response = qts_upgrade_response($res); + + else : + + // define wich type of data is 5 + $array_of_5 = array(); + foreach ( $old_data as $row ) + if ( $row->qts_type == 5 ) $array_of_5[] = $row->qts_slug; + + if (!empty($array_of_5)) $response = qts_upgrade_response(2, implode(', ', $array_of_5)); + + // if no data type 5, process to upgrade + if (!isset($response)) { + $res = qts_process_old_data($old_data); + $response = qts_upgrade_response($res); + } + + endif; + + + // if not continue + } else { + + $response = qts_upgrade_response(); + + } + + else: + + $response = qts_upgrade_response(); + + endif; + + // response output + header( "Content-Type: application/json" ); + echo json_encode($response); + exit; +} +add_action('wp_ajax_qts-upgrade-check', 'qts_upgrade_check'); + + + +/** + * Helper function for defining variables for the current page + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return array + */ +function qts_get_settings() { + + $output = array(); + + // put together the output array + $output['qts_option_name'] = QTS_OPTIONS_NAME; // the option name as used in the get_option() call. + $output['qts_page_title'] = __('Qtranslate Slug options', 'qts'); // the settings page title + $output['qts_page_sections'] = qts_options_page_sections(); // the settings sections + $output['qts_page_fields'] = qts_options_page_fields(); // the settings fields + $output['qts_page_styles'] = qts_options_page_styles(); // the settings for style + + + $output['qts_contextual_help'] = qts_options_page_contextual_help(); // the contextual help + +return $output; +} + + + +/** + * Helper function for registering our form field settings + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * src: http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/ + * @param (array) $args The array of arguments to be used in creating the field + * @return function call + */ +function qts_create_settings_field( $args = array() ) { + // default array to overwrite when calling the function + $defaults = array( + 'id' => 'default_field', // the ID of the setting in our options array, and the ID of the HTML form element + 'title' => 'Default Field', // the label for the HTML form element + 'desc' => 'This is a default description.', // the description displayed under the HTML form element + 'std' => '', // the default value for this setting + 'type' => 'text', // the HTML form element to use + 'section' => 'main_section', // the section this setting belongs to must match the array key of a section in qts_options_page_sections() + 'choices' => array(), // (optional): the values in radio buttons or a drop-down menu + 'class' => '' // the HTML form element class. Is used for validation purposes and may be also use for styling if needed. + ); + + // "extract" to be able to use the array keys as variables in our function output below + extract( wp_parse_args( $args, $defaults ) ); + + // additional arguments for use in form field output in the function qts_show_form_field! + $field_args = array( + 'type' => $type, + 'id' => $id, + 'desc' => $desc, + 'std' => $std, + 'choices' => $choices, + 'label_for' => $id, + 'class' => $class + ); + + + + add_settings_field( $id, $title, 'qts_show_form_field', __FILE__, $section, $field_args ); + +} + + + +/** + * Register our setting, settings sections and settings fields + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + */ +function qts_register_settings(){ + + // get the settings sections array + $settings_output = qts_get_settings(); + $qts_option_name = $settings_output['qts_option_name']; + + //setting + register_setting($qts_option_name, $qts_option_name, 'qts_validate_options' ); + + //sections + if(!empty($settings_output['qts_page_sections'])){ + // call the "add_settings_section" for each! + foreach ( $settings_output['qts_page_sections'] as $id => $title ) { + add_settings_section( $id, $title, 'qts_section_fn', __FILE__); + } + } + + //fields + if(!empty($settings_output['qts_page_fields'])){ + // call the "add_settings_field" for each! + foreach ($settings_output['qts_page_fields'] as $option) { + qts_create_settings_field($option); + } + } + //style + if(!empty($settings_output['qts_page_styles'])){ + // call the "add_settings_field" for each + foreach ($settings_output['qts_page_styles'] as $styleoption) { + qts_create_settings_field($styleoption); + } + } +} +add_action( 'admin_init', 'qts_register_settings' ); + + + +/** + * Group scripts (js & css) + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + */ +function qts_settings_scripts() { + global $qtranslate_slug; + + wp_enqueue_style('qts_theme_settings_css', plugins_url( 'assets/css/qts-settings.css' , dirname(__FILE__) ) ); + wp_enqueue_script( 'qts_theme_settings_js', plugins_url( 'assets/js/qts-settings.js' , dirname(__FILE__) ), array('jquery')); + + if ($qtranslate_slug->check_old_data()) { + wp_enqueue_script('qts_theme_settings_upgrade_js', plugins_url( 'assets/js/qts-settings-upgrade.js' , dirname(__FILE__) ), array('jquery') ); + } +} + + + +/** + * The Admin menu page + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + */ +function qts_add_menu() { + global $current_screen; + + $settings_output = qts_get_settings(); + // collect our contextual help text + $qts_contextual_help = $settings_output['qts_contextual_help']; + + // Display Settings Page link under the "Appearance" Admin Menu + $qts_settings_page = add_options_page(__('Qtranslate Slug options', 'qts'), __('Slug options', 'qts'), 'manage_options', QTS_PAGE_BASENAME, 'qts_show_settings_page'); + // contextual help + /* + if ($qts_settings_page) { + $current_screen = get_current_screen(); + //$current_screen->add_help_tab( array( $qts_settings_page, $qts_contextual_help )); + } + */ + // css & js + add_action( 'load-'. $qts_settings_page, 'qts_settings_scripts' ); +} +add_action( 'admin_menu', 'qts_add_menu' ); + + + +//////////////////////////////////////////////////////////////////////////////////////// + +// Callback functions + + + +/** + * Section HTML, displayed before the first option + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return echoes output + */ +function qts_section_fn($page_section = false) { + + if ( !$page_section || !isset($page_section['id']) ) return; + + switch ($page_section['id']) { + case 'post_types': + + echo "<p>" . __('For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as <code>http://example.org/es/libros/post-type-name/</code>. If you leave this blank will use the default option when you <a href="http://codex.wordpress.org/Function_Reference/register_post_type">registered</a> the post_type.', 'qts') . "</p>"; + break; + + case 'taxonomies': + + echo "<p>" . __('For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave this blank will use the default option when you <a href="http://codex.wordpress.org/Function_Reference/register_taxonomy">registered</a> the taxonomy (if you previously setup a base permastruct for <u>categories</u> or <u>tags</u> in <a href="options-permalink.php">permalinks</a> page, these bases will be overwritten by the translated ones).', 'qts') . "</p>"; + break; + case 'styles': + + echo "<p>" . __('The default styles are very minimal, and you can include them or not.', 'qts') . "</p>\n"; + break; + } +} + + + +/** + * Form Fields HTML: all form field types share the same function + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return echoes output + */ +function qts_show_form_field($args = array()) { + global $qtranslate_slug; + + extract( $args ); + + // get the settings sections array + $settings_output = qts_get_settings(); + $options = $qtranslate_slug->get_options(); + + // pass the standard value if the option is not yet set in the database + if ( !isset( $options[$id] ) && 'type' != 'checkbox' ) { + $options[$id] = $std; + } + + // additional field class. output only if the class is defined in the create_setting arguments + $field_class = ($class != '') ? ' ' . $class : ''; + + // switch html display based on the setting type. + switch ( $type ) { + case 'text': + $options[$id] = stripslashes($options[$id]); + $options[$id] = esc_attr( $options[$id]); + echo "<input class='regular-text$field_class' type='text' id='$id' name='" . QTS_OPTIONS_NAME . "[$id]' value='$options[$id]' />"; + echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + + case "multi-text": + foreach($choices as $item) { + + $item = explode("|",$item); // cat_name|cat_slug + $item[0] = esc_html__($item[0], 'qts'); + + if (!empty($options[$id])) { + foreach ($options[$id] as $option_key => $option_val){ + if ($item[1] == $option_key) { + $value = $option_val; + } + } + } else { + $value = ''; + } + + echo "<span>$item[0]:</span> <input class='$field_class' type='text' id='$id|$item[1]' name='" . QTS_OPTIONS_NAME . "[$id|$item[1]]' value='$value' /><br/>"; + } + echo ($desc != '') ? "<span class='description'>$desc</span>" : ""; + break; + + case 'textarea': + $options[$id] = stripslashes($options[$id]); + $options[$id] = esc_html( $options[$id]); + echo "<textarea class='textarea$field_class' type='text' id='$id' name='" . QTS_OPTIONS_NAME . "[$id]' rows='5' cols='30'>$options[$id]</textarea>"; + echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + + case 'select': + echo "<select id='$id' class='select$field_class' name='" . QTS_OPTIONS_NAME . "[$id]'>"; + foreach($choices as $item) { + $value = esc_attr($item, 'qts'); + $item = esc_html($item, 'qts'); + + $selected = ($options[$id]==$value) ? 'selected="selected"' : ''; + echo "<option value='$value' $selected>$item</option>"; + } + echo "</select>"; + echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + + case 'select2': + echo "<select id='$id' class='select$field_class' name='" . QTS_OPTIONS_NAME . "[$id]'>"; + foreach($choices as $item) { + + $item = explode("|",$item); + $item[0] = esc_html($item[0], 'qts'); + + $selected = ($options[$id]==$item[1]) ? 'selected="selected"' : ''; + echo "<option value='$item[1]' $selected>$item[0]</option>"; + } + echo "</select>"; + echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + + case 'checkbox': + echo "<input class='checkbox$field_class' type='checkbox' id='$id' name='" . QTS_OPTIONS_NAME . "[$id]' value='1' " . checked( $options[$id], 1, false ) . " />"; + echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + + case "multi-checkbox": + foreach($choices as $item) { + + $item = explode("|",$item); + $item[0] = esc_html($item[0], 'qts'); + + $checked = ''; + + if ( isset($options[$id][$item[1]]) ) { + if ( $options[$id][$item[1]] == 'true') { + $checked = 'checked="checked"'; + } + } + + echo "<input class='checkbox$field_class' type='checkbox' id='$id|$item[1]' name='" . QTS_OPTIONS_NAME . "[$id|$item[1]]' value='1' $checked /> $item[0] <br/>"; + } + echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + + case "multi-radio": + foreach($choices as $index => $item) { + + $item = explode("|",$item); + $item_key = (count($item) > 1) ? esc_html($item[0], 'qts') : esc_html(end($item), 'qts'); + $item_value = (count($item) > 1) ? esc_html($item[1], 'qts') : esc_html(end($item), 'qts'); + + $checked = ''; + + if ( isset($options[$id]) && $options[$id] === $item_value) { + $checked = 'checked="checked"'; + } + + echo "<label for='$id|$item_value'><input class='radio$field_class' type='radio' id='$id|$item_value' name='" . QTS_OPTIONS_NAME . "[$id]' value='$item_value' $checked /> <strong>$item_key</strong>"; + if (isset($desc[$index]) && !empty($desc[$index])) { + echo ": " . $desc[$index]; + } + echo "</label>"; + } + echo (!is_array($desc) && $desc != '') ? "<br /><span class='description'>$desc</span>" : ""; + break; + } +} + + + +/** + * Validates base slugs per 'type' (post_type | taxonomy) and 'language' + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + */ +function qts_sanitize_bases($base_slugs = false) { + + if ( !$base_slugs || empty($base_slugs) ) return; + + $base_slugs_processed = array(); + $base_founded = array(); + + // changing array structure + foreach ($base_slugs as $type => $base) { + foreach ($base as $lang => $value) { + if ($value != ""): + $base_value = $value; + $count = 2; + while (in_array($value, $base_founded)) { + $value = "$base_value-$count"; + $count++; + } + $base_founded[] = $base_slugs[$type][$lang] = $value; + endif; + } + } + + return $base_slugs; +} + + + +/** + * Admin Settings Page HTML + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return echoes output + */ +function qts_show_settings_page() { + // get the settings sections array + $settings_output = qts_get_settings(); +?> + <div class="wrap"> + <div class="icon32" id="icon-options-general"></div> + <h2><?php echo $settings_output['qts_page_title']; ?></h2> + + <p><?php _e('If you activated previously the <a href="options-permalink.php">pretty permalinks</a>, in this section you can translate the <abbr title="en inglés, Universal Resource Locator">URLs</abbr> <strong>bases</strong> for <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">public</a> post_types, categories, tags and taxonomies.', 'qts'); ?> </p> + + <form action="options.php" method="post"> + <?php + // upgrade notify + qts_upgrade(); + // http://codex.wordpress.org/Function_Reference/settings_fields + settings_fields($settings_output['qts_option_name']); + + // http://codex.wordpress.org/Function_Reference/do_settings_sections + do_settings_sections(__FILE__); + // rewrite rules + flush_rewrite_rules(); + ?> + <?php $css_path = plugin_dir_url(dirname(__FILE__)).'/assets/css/qts-default.css'; + $file_styles = file_get_contents($css_path); + + + ?> + <p><?php _e('If you selected "none", copy and use these styles as you see fit:','qts'); ?> </p> + <textarea name="textarea" rows="10" cols="80"><?php echo $file_styles; ?></textarea>; + <p class="submit"> + <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes','qts'); ?>" /> + </p> + + </form> + </div><!-- wrap --> +<?php } + + + +/** + * Validate input + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return array + */ +function qts_validate_options($input) { + + // for enhanced security, create a new empty array + $valid_input = array(); + + // collect only the values we expect and fill the new $valid_input array + // i.e. whitelist our option IDs + + // get the settings sections array + $settings_output = qts_get_settings(); + + $styleoptions = $settings_output['qts_page_styles']; + + $slugoptions = $settings_output['qts_page_fields']; + + $options = array_merge($styleoptions,$slugoptions); + + // run a foreach and switch on option type + foreach ($options as $option): + + switch ( $option['type'] ): + case 'text': + //switch validation based on the class! + switch ( $option['class'] ) { + //for numeric + case 'numeric': + //accept the input only when numeric! + $input[$option['id']] = trim($input[$option['id']]); // trim whitespace + $valid_input[$option['id']] = (is_numeric($input[$option['id']])) ? $input[$option['id']] : 'Expecting a Numeric value!'; + + // register error + if(is_numeric($input[$option['id']]) == FALSE) { + add_settings_error( + $option['id'], // setting title + QTS_PREFIX . '_txt_numeric_error', // error ID + __('Expecting a Numeric value! Please fix.', 'qts'), // error message + 'error' // type of message + ); + } + break; + + //for multi-numeric values (separated by a comma) + case 'multinumeric': + //accept the input only when the numeric values are comma separated + $input[$option['id']] = trim($input[$option['id']]); // trim whitespace + + if($input[$option['id']] !=''){ + // /^-?\d+(?:,\s?-?\d+)*$/ matches: -1 | 1 | -12,-23 | 12,23 | -123, -234 | 123, 234 | etc. + $valid_input[$option['id']] = (preg_match('/^-?\d+(?:,\s?-?\d+)*$/', $input[$option['id']]) == 1) ? $input[$option['id']] : __('Expecting comma separated numeric values','qts'); + }else{ + $valid_input[$option['id']] = $input[$option['id']]; + } + + // register error + if($input[$option['id']] !='' && preg_match('/^-?\d+(?:,\s?-?\d+)*$/', $input[$option['id']]) != 1) { + add_settings_error( + $option['id'], // setting title + QTS_PREFIX . '_txt_multinumeric_error', // error ID + __('Expecting comma separated numeric values! Please fix.','qts'), // error message + 'error' // type of message + ); + } + break; + + //for no html + case 'nohtml': + //accept the input only after stripping out all html, extra white space etc! + $input[$option['id']] = sanitize_text_field($input[$option['id']]); // need to add slashes still before sending to the database + $valid_input[$option['id']] = addslashes($input[$option['id']]); + break; + + //for url + case 'url': + //accept the input only when the url has been sanited for database usage with esc_url_raw() + $input[$option['id']] = trim($input[$option['id']]); // trim whitespace + $valid_input[$option['id']] = esc_url_raw($input[$option['id']]); + break; + + //for email + case 'email': + //accept the input only after the email has been validated + $input[$option['id']] = trim($input[$option['id']]); // trim whitespace + if($input[$option['id']] != ''){ + $valid_input[$option['id']] = (is_email($input[$option['id']])!== FALSE) ? $input[$option['id']] : __('Invalid email', 'qts'); + }elseif($input[$option['id']] == ''){ + $valid_input[$option['id']] = __('This setting field cannot be empty! Please enter a valid email address.', 'qts'); + } + + // register error + if(is_email($input[$option['id']])== FALSE || $input[$option['id']] == '') { + add_settings_error( + $option['id'], // setting title + QTS_PREFIX . '_txt_email_error', // error ID + __('Please enter a valid email address.', 'qts'), // error message + 'error' // type of message + ); + } + break; + + // a "cover-all" fall-back when the class argument is not set + default: + // accept only a few inline html elements + $allowed_html = array( + 'a' => array('href' => array (),'title' => array ()), + 'b' => array(), + 'em' => array (), + 'i' => array (), + 'strong' => array() + ); + // trim whitespace + $input[$option['id']] = trim($input[$option['id']]); + // find incorrectly nested or missing closing tags and fix markup + $input[$option['id']] = force_balance_tags($input[$option['id']]); + // need to add slashes still before sending to the database + $input[$option['id']] = wp_kses( $input[$option['id']], $allowed_html); + + $valid_input[$option['id']] = addslashes($input[$option['id']]); + break; + } + break; + + case "multi-text": + // this will hold the text values as an array of 'key' => 'value' + unset($textarray); + + $text_values = array(); + foreach ($option['choices'] as $k => $v ) { + // explode the connective + $pieces = explode("|", $v); + + $text_values[] = $pieces[1]; + } + + foreach ($text_values as $v ) { + + // Check that the option isn't empty + if (!empty($input[$option['id'] . '|' . $v])) { + // If it's not null, make sure it's sanitized, add it to an array + switch ($option['class']) { + // different sanitation actions based on the class create you own cases as you need them + + //for numeric input + case 'numeric': + //accept the input only if is numberic! + $input[$option['id'] . '|' . $v]= trim($input[$option['id'] . '|' . $v]); // trim whitespace + $input[$option['id'] . '|' . $v]= (is_numeric($input[$option['id'] . '|' . $v])) ? $input[$option['id'] . '|' . $v] : ''; + break; + + case 'qts-slug': + // strip all html tags and white-space. + $exploded_types = explode('_', $option['id']); + $type_ = end($exploded_types ); + $input[$option['id'] . '|' . $v]= sanitize_title( sanitize_text_field( $input[$option['id'] . '|' . $v] ) ); + $input[$option['id'] . '|' . $v]= addslashes($input[$option['id'] . '|' . $v]); + break; + + // a "cover-all" fall-back when the class argument is not set + default: + // strip all html tags and white-space. + $input[$option['id'] . '|' . $v]= sanitize_text_field($input[$option['id'] . '|' . $v]); // need to add slashes still before sending to the database + $input[$option['id'] . '|' . $v]= addslashes($input[$option['id'] . '|' . $v]); + break; + } + // pass the sanitized user input to our $textarray array + $textarray[$v] = $input[$option['id'] . '|' . $v]; + + } else { + $textarray[$v] = ''; + } + } + // pass the non-empty $textarray to our $valid_input array + if (!empty($textarray)) { + $valid_input[$option['id']] = $textarray; + } + break; + + case 'textarea': + //switch validation based on the class! + switch ( $option['class'] ) { + //for only inline html + case 'inlinehtml': + // accept only inline html + // trim whitespace + $input[$option['id']] = trim($input[$option['id']]); + // find incorrectly nested or missing closing tags and fix markup + $input[$option['id']] = force_balance_tags($input[$option['id']]); + //wp_filter_kses expects content to be escaped! + $input[$option['id']] = addslashes($input[$option['id']]); + //calls stripslashes then addslashes + $valid_input[$option['id']] = wp_filter_kses($input[$option['id']]); + break; + + //for no html + case 'nohtml': + //accept the input only after stripping out all html, extra white space etc! + // need to add slashes still before sending to the database + $input[$option['id']] = sanitize_text_field($input[$option['id']]); + $valid_input[$option['id']] = addslashes($input[$option['id']]); + break; + + //for allowlinebreaks + case 'allowlinebreaks': + //accept the input only after stripping out all html, extra white space etc! + // need to add slashes still before sending to the database + $input[$option['id']] = wp_strip_all_tags($input[$option['id']]); + $valid_input[$option['id']] = addslashes($input[$option['id']]); + break; + + // a "cover-all" fall-back when the class argument is not set + default: + // accept only limited html + //my allowed html + $allowed_html = array( + 'a' => array('href' => array (),'title' => array ()), + 'b' => array(), + 'blockquote' => array('cite' => array ()), + 'br' => array(), + 'dd' => array(), + 'dl' => array(), + 'dt' => array(), + 'em' => array (), + 'i' => array (), + 'li' => array(), + 'ol' => array(), + 'p' => array(), + 'q' => array('cite' => array ()), + 'strong' => array(), + 'ul' => array(), + 'h1' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), + 'h2' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), + 'h3' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), + 'h4' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), + 'h5' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), + 'h6' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()) + ); + + $input[$option['id']] = trim($input[$option['id']]); // trim whitespace + $input[$option['id']] = force_balance_tags($input[$option['id']]); // find incorrectly nested or missing closing tags and fix markup + $input[$option['id']] = wp_kses( $input[$option['id']], $allowed_html); // need to add slashes still before sending to the database + $valid_input[$option['id']] = addslashes($input[$option['id']]); + break; + } + break; + + case 'select': + // check to see if the selected value is in our approved array of values! + $valid_input[$option['id']] = (in_array( $input[$option['id']], $option['choices']) ? $input[$option['id']] : '' ); + break; + + case 'select2': + // process $select_values + $select_values = array(); + foreach ($option['choices'] as $k => $v) { + // explode the connective + $pieces = explode("|", $v); + + $select_values[] = $pieces[1]; + } + // check to see if selected value is in our approved array of values! + $valid_input[$option['id']] = (in_array( $input[$option['id']], $select_values) ? $input[$option['id']] : '' ); + break; + + case 'checkbox': + // if it's not set, default to null! + if (!isset($input[$option['id']])) { + $input[$option['id']] = null; + } + // Our checkbox value is either 0 or 1 + $valid_input[$option['id']] = ( $input[$option['id']] == 1 ? 1 : 0 ); + break; + + case 'multi-checkbox': + unset($checkboxarray); + $check_values = array(); + foreach ($option['choices'] as $k => $v ) { + // explode the connective + $pieces = explode("|", $v); + + $check_values[] = $pieces[1]; + } + + foreach ($check_values as $v ) { + + // Check that the option isn't null + if (!empty($input[$option['id'] . '|' . $v])) { + // If it's not null, make sure it's true, add it to an array + $checkboxarray[$v] = 'true'; + } + else { + $checkboxarray[$v] = 'false'; + } + } + // Take all the items that were checked, and set them as the main option + if (!empty($checkboxarray)) { + $valid_input[$option['id']] = $checkboxarray; + } + break; + + case 'multi-radio': + $valid_input[$option['id']] = (empty($input) || !isset($input[$option['id']])) ? $option['std'] : $input[$option['id']]; + break; + + endswitch; + + if (!empty($valid_input) && $valid_input[$option['id']] === "qts-slug" ) { + $valid_input = qts_sanitize_bases($valid_input); + } else { + $valid_input= $valid_input; + } + + endforeach; + + return $valid_input; +} + + + +/** + * Helper function for creating admin messages + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * src: http://www.wprecipes.com/how-to-show-an-urgent-message-in-the-wordpress-admin-area + * + * @param (string) $message The message to echo + * @param (string) $msgclass The message class + * @return echoes the message + */ +function qts_show_msg($message, $msgclass = 'info') { + echo "<div id='message' class='$msgclass'>$message</div>"; +} + + + +/** + * Callback function for displaying admin messages + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return calls qts_show_msg() + */ +function qts_admin_msgs() { + global $current_screen; + + // check for our settings page - need this in conditional further down + $qts_settings_pg = isset($_GET['page']) ? strpos($_GET['page'], QTS_PAGE_BASENAME) : ''; + // collect setting errors/notices: + // http://codex.wordpress.org/Function_Reference/get_settings_errors + $set_errors = get_settings_errors(); + + // display admin message only for the admin to see, only on our settings page + // and only when setting errors/notices are returned! + if(current_user_can ('manage_options') && $qts_settings_pg !== false && !empty($set_errors)){ + + // have our settings succesfully been updated? + if($set_errors[0]['code'] == 'settings_updated' && isset($_GET['settings-updated'])){ + qts_show_msg("<p>" . $set_errors[0]['message'] . "</p>", 'updated'); + + // have errors been found? + }else{ + // there maybe more than one so run a foreach loop. + foreach($set_errors as $set_error){ + // set the title attribute to match the error "setting title" - need this in js file + qts_show_msg("<p class='setting-error-message' title='" . $set_error['setting'] . "'>" . $set_error['message'] . "</p>", 'error'); + } + } + } +} +add_action('admin_notices', 'qts_admin_msgs'); diff --git a/includes/termmeta-core.php b/includes/termmeta-core.php new file mode 100644 index 0000000..a8cfac1 --- /dev/null +++ b/includes/termmeta-core.php @@ -0,0 +1,223 @@ +<?php +/** + * Install Term meta table - setup table, store db version for future updates + */ +if ( !function_exists('install_term_meta_table') ): +function install_term_meta_table() { + global $wpdb; + + $collate = ''; + //if($wpdb->supports_collation())//deprecated, was a reason for activation admin notice + if($wpdb->has_cap( 'collation' )) { + if(!empty($wpdb->charset)) $collate = "DEFAULT CHARACTER SET $wpdb->charset"; + if(!empty($wpdb->collate)) $collate .= " COLLATE $wpdb->collate"; + } + + $sql = "CREATE TABLE IF NOT EXISTS ". $wpdb->prefix . "termmeta" ." ( + `meta_id` bigint(20) NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) NOT NULL DEFAULT '0', + `meta_key` varchar(255) NULL, + `meta_value` longtext NULL, + PRIMARY KEY id (`meta_id`)) $collate;"; + $wpdb->query($sql); +} +endif; + + + +function simple_post_meta_define_table() { + global $wpdb; + $wpdb->termmeta = $wpdb->prefix . 'termmeta'; +} +add_action( 'init', 'simple_post_meta_define_table' ); + + + +/** + * Updates metadata cache for list of term IDs. + * + * Performs SQL query to retrieve the metadata for the term IDs and updates the + * metadata cache for the terms. Therefore, the functions, which call this + * function, do not need to perform SQL queries on their own. + * + * @param array $term_ids List of post IDs. + * @return bool|array Returns false if there is nothing to update or an array of metadata. + */ +if ( !function_exists('update_termmeta_cache') ): + function update_termmeta_cache($term_ids) { + return update_meta_cache('term', $term_ids); + } +endif; + + + +/** + * Add meta data field to a term. + * + * @param int $term_id Term ID. + * @param string $key Metadata name. + * @param mixed $value Metadata value. + * @param bool $unique Optional, default is false. Whether the same key should not be added. + * @return bool False for failure. True for success. + */ +if ( !function_exists('add_term_meta') ): + function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) { + return add_metadata('term', $term_id, $meta_key, $meta_value, $unique); + } +endif; + + + +/** + * Remove metadata matching criteria from a term. + * + * You can match based on the key, or key and value. Removing based on key and + * value, will keep from removing duplicate metadata with the same key. It also + * allows removing all metadata matching key, if needed. + * + * @param int $term_id Term ID + * @param string $meta_key Metadata name. + * @param mixed $meta_value Optional. Metadata value. + * @return bool False for failure. True for success. + */ +if ( !function_exists('delete_term_meta') ): + function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) { + return delete_metadata('term', $term_id, $meta_key, $meta_value); + } +endif; + + + +/** + * Retrieve term meta field for a term. + * + * @param int $term_id Term ID. + * @param string $key The meta key to retrieve. + * @param bool $single Whether to return a single value. + * @return mixed Will be an array if $single is false. Will be value of meta data field if $single + * is true. + */ +if ( !function_exists('get_term_meta') ): + function get_term_meta( $term_id, $key, $single = false ) { + return get_metadata('term', $term_id, $key, $single); + } +endif; + + + +/** + * Update term meta field based on term ID. + * + * Use the $prev_value parameter to differentiate between meta fields with the + * same key and term ID. + * + * If the meta field for the term does not exist, it will be added. + * + * @param int $term_id Term ID. + * @param string $key Metadata key. + * @param mixed $value Metadata value. + * @param mixed $prev_value Optional. Previous value to check before removing. + * @return bool False on failure, true if success. + */ +if ( !function_exists('update_term_meta') ): + function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) { + return update_metadata('term', $term_id, $meta_key, $meta_value, $prev_value); + } +endif; + + + +/** + * Delete everything from term meta matching meta key. + * + * @param string $term_meta_key Key to search for when deleting. + * @return bool Whether the term meta key was deleted from the database + */ +if ( !function_exists('delete_term_meta_by_key') ): + function delete_term_meta_by_key($term_meta_key) { + if ( !$term_meta_key ) + return false; + + global $wpdb; + $term_ids = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT term_id FROM $wpdb->termmeta WHERE meta_key = %s", $term_meta_key)); + if ( $term_ids ) { + $termmetaids = $wpdb->get_col( $wpdb->prepare( "SELECT meta_id FROM $wpdb->termmeta WHERE meta_key = %s", $term_meta_key ) ); + $in = implode( ',', array_fill(1, count($termmetaids), '%d')); + do_action( 'delete_termmeta', $termmetaids ); + $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->termmeta WHERE meta_id IN($in)", $termmetaids )); + do_action( 'deleted_termmeta', $termmetaids ); + foreach ( $term_ids as $term_id ) + wp_cache_delete($term_id, 'term_meta'); + return true; + } + return false; + } +endif; + + + +/** + * Retrieve term meta fields, based on term ID. + * + * The term meta fields are retrieved from the cache, so the function is + * optimized to be called more than once. It also applies to the functions, that + * use this function. + * + * @param int $term_id term ID + * @return array + */ +if ( !function_exists('add_term_meta') ): + function get_term_custom( $term_id ) { + $term_id = (int) $term_id; + + if ( ! wp_cache_get($term_id, 'term_meta') ) + update_termmeta_cache($term_id); + + return wp_cache_get($term_id, 'term_meta'); + } +endif; + + + +/** + * Retrieve meta field names for a term. + * + * If there are no meta fields, then nothing (null) will be returned. + * + * @param int $term_id term ID + * @return array|null Either array of the keys, or null if keys could not be retrieved. + */ +if ( !function_exists('get_term_custom_keys') ): + function get_term_custom_keys( $term_id ) { + $custom = get_term_custom( $term_id ); + + if ( !is_array($custom) ) + return; + + if ( $keys = array_keys($custom) ) + return $keys; + } +endif; + + + +/** + * Retrieve values for a custom term field. + * + * The parameters must not be considered optional. All of the term meta fields + * will be retrieved and only the meta field key values returned. + * + * @param string $key Meta field key. + * @param int $term_id Term ID + * @return array Meta field values. + */ +if ( !function_exists('get_term_custom_values') ): + function get_term_custom_values( $key = '', $term_id ) { + if ( !$key ) + return null; + + $custom = get_term_custom($term_id); + + return isset($custom[$key]) ? $custom[$key] : null; + } +endif; \ No newline at end of file diff --git a/languages/qts-es_ES.mo b/languages/qts-es_ES.mo new file mode 100644 index 0000000..e702170 Binary files /dev/null and b/languages/qts-es_ES.mo differ diff --git a/languages/qts-es_ES.po b/languages/qts-es_ES.po new file mode 100644 index 0000000..3372765 --- /dev/null +++ b/languages/qts-es_ES.po @@ -0,0 +1,142 @@ +# Copyright (C) 2012 qTranslate slug +# This file is distributed under the same license as the qTranslate slug package. +msgid "" +msgstr "" +"Project-Id-Version: qTranslate slug 1.0\n" +"Report-Msgid-Bugs-To: http://wordpress.org/tag/qtranslate-slug\n" +"POT-Creation-Date: 2012-05-27 20:27:55+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2012-06-17 03:37+0100\n" +"Last-Translator: Carlos Sanz <carlos.sanz@gmail.com>\n" +"Language-Team: Carlos Sanz Garcia <carlos.sanz@gmail.com>\n" + +# qtranslate-slug.php +msgid "Language selector" +msgstr "Selector de idioma" + +# qtranslate-slug.php +msgid "Title:" +msgstr "Título:" + +# qtranslate-slug.php +msgid "<p style=\"color:red\">This plugin requires qTranslate to be installed and activated.</p>" +msgstr "<p style=\"color:red\">Este plugin necesita qTranslate instalado y activado previamente.</p>" + +# qtranslate-slug.php +msgid "Slug" +msgstr "Enlace permanente" + +# qtranslate-slug.php +msgid "Show short name (en):" +msgstr "Mostrar nombre corto (en):" + +# qtranslate-slug-settings-options.php +msgid "Post types" +msgstr "Post types" + +# qtranslate-slug-settings-options.php +msgid "Taxonomies" +msgstr "Taxonomias" + +# qtranslate-slug-settings-options.php +msgid "Slug (%s)" +msgstr "URL (%s)" + +# qtranslate-slug-settings-options.php +msgid "<code>http://example.org/<u>%s</u>/some-%s/</code>" +msgstr "<code>http://ejemplo.org/<u>%s</u>/algun-%s/</code>" + +# qtranslate-slug-settings-options.php +msgid "<code>http://example.org/<u>category</u>/some-category/</code>" +msgstr "<code>http://ejemplo.org/<u>categoria</u>/alguna-categoria/</code>" + +# qtranslate-slug-settings-options.php +msgid "<code>http://example.org/<u>tag</u>/some-tag/</code>" +msgstr "<code>http://ejemplo.org/<u>etiqueta</u>/alguna-etiqueta/</code>" + +# qtranslate-slug-settings.php +msgid "Qtranslate Slug options" +msgstr "Opciones de Qtranslate Slug" + +# qtranslate-slug-settings.php +msgid "Slug options" +msgstr "Opciones de URL" + +# qtranslate-slug-settings.php +msgid "Save Changes" +msgstr "Guardar cambios" + +# qtranslate-slug-settings.php +msgid "Expecting a Numeric value! Please fix." +msgstr "Se espera un valor numérico! Por favor, corrígelo." + +# qtranslate-slug-settings.php +msgid "Expecting comma separated numeric values! Please fix." +msgstr "Se esperan valores numéricos separados por coma! Por favor, corrígelo." + +# qtranslate-slug-settings.php +msgid "Invalid email" +msgstr "E-mail incorrecto" + +# qtranslate-slug-settings.php +msgid "This setting field cannot be empty! Please enter a valid email address." +msgstr "Este campo no puede estar vacío! Por favor introduce una dirección de e-mail válida." + +# qtranslate-slug-settings.php +msgid "Please enter a valid email address." +msgstr "Por favor introduce una dirección de e-mail válida." + +# qtranslate-slug-settings.php +msgid "upgrade now" +msgstr "actualizar ahora" + +# qtranslate-slug.php +msgid "Please update your old data to the new system." +msgstr "Por favor actualiza tu antiguo sistema de datos al nuevo." + +# qtranslate-slug-settings.php +msgid "Upgrade your data" +msgstr "Actualiza tus datos" + +# qtranslate-slug-settings.php +msgid "There are slugs stored with old data system. Please upgrade your data pressing upgrade button:" +msgstr "Hay slugs almacenados en el antiguo sistema. Por favor actualiza tus datos aprentando el botón actualizar:" + +# qtranslate-slug-settings.php +msgid "Sorry, some error happened. Refresh this page and try again please." +msgstr "Lo sentimos, algún tipo de error ha ocurrido. Por favor recarga esta página y prueba otra vez." + +# qtranslate-slug-settings.php +msgid "Congratulations, your data has been upgraded, you are up to date." +msgstr "Felicidades, tus datos se han actualizado, ahora estás al día." + +# qtranslate-slug-settings.php +msgid "One step more, select what type of slug is this: <strong>%s</strong>" +msgstr "Un paso más, selecction qué tipo de slug es este: <strong>%s</strong>" + +# qtranslate-slug-settings.php +msgid "Post, Page or Custom post type" +msgstr "Entrada, Página o Custom post type" + +# qtranslate-slug-settings.php +msgid "Category, tag or custom taxonomy" +msgstr "Categoria, tag o taxonomía" + +# qtranslate-slug.php +msgid "This plugin requires at least <strong>Wordpress 3.3</strong> and <strong>Qtranslate(2.5.8 or newer)</strong>" +msgstr "Este plugin requiere al menos <strong>Wordpress 3.3</strong> y <strong>Qtranslate(2.5.8 o mayor)</strong>" + +# qtranslate-slug-settings.php +msgid "If you activated previously the <a href=\"options-permalink.php\">pretty permalinks</a>, in this section you can translate the <abbr title=\"en inglés, Universal Resource Locator\">URLs</abbr> <strong>bases</strong> for <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments\">public</a> post_types, categories, tags and taxonomies." +msgstr "Si has activado previamente los <a href=\"options-permalink.php\">enlaces permanentes</a>, en esta sección podrás traducir las <strong>bases</strong> de las <abbr title=\"en inglés, Universal Resource Locator\">URLs</abbr> para post_types, categorías, etiquetas y taxonomias <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments\">públicas</a>." + +# qtranslate-slug-settings.php +msgid "For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as <code>http://example.org/es/libros/post-type-name/</code>. If you leave this blank will use the default option when you <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type\">registered</a> the post_type." +msgstr "Por ejemplo, para el post_type <kbd>books</kbd> en Español se mostraría como <code>http://example.org/es/libros/post-type-name/</code>. Si dejas esto en blanco se usará la opción predeterminada cuando <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type\">registraste</a> el post_type." + +# qtranslate-slug-settings.php +msgid "For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave this blank will use the default option when you <a href=\"http://codex.wordpress.org/Function_Reference/register_taxonomy\">registered</a> the taxonomy (if you previously setup a base permastruct for <u>categories</u> or <u>tags</u> in <a href=\"options-permalink.php\">permalinks</a> page, these bases will be overwritten by the translated ones)." +msgstr "Por ejemplo, la taxonomia <kbd>category</kbd>, en Español se mostraría como <code>http://example.org/es/categoria/taxonomy-name/</code>. Si dejas esto en blanco se usará la opción predeterminada cuando <a href=\"http://codex.wordpress.org/Function_Reference/register_taxonomy\">registraste</a> la texonomia (si previamente configuraste la base de las estructuraas de <u>categorías</u> o <u>tags</u> en la página <a href=\"options-permalink.php\">enlaces permanentes</a>, estas bases serán reemplazadas por las traducidas)." + diff --git a/languages/qts-pt_PT.mo b/languages/qts-pt_PT.mo new file mode 100644 index 0000000..64c0c00 Binary files /dev/null and b/languages/qts-pt_PT.mo differ diff --git a/languages/qts-pt_PT.po b/languages/qts-pt_PT.po new file mode 100644 index 0000000..246d426 --- /dev/null +++ b/languages/qts-pt_PT.po @@ -0,0 +1,343 @@ +# Copyright (C) 2012 qTranslate slug +# This file is distributed under the same license as the qTranslate slug package. +msgid "" +msgstr "" +"Project-Id-Version: qTranslate slug\n" +"Report-Msgid-Bugs-To: http://wordpress.org/tag/qtranslate-slug\n" +"POT-Creation-Date: 2015-01-23 14:23-0000\n" +"PO-Revision-Date: 2015-01-23 15:26-0000\n" +"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n" +"Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.7.3\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __;_e;__ngettext;_n;__ngettext_noop;_n_noop;_x;_nx;" +"_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;esc_html_x;" +"_c;_nc\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SearchPath-1: ..\n" + +#: ../includes/class-qtranslate-slug-widget.php:11 +msgid "Allows your visitors to choose a Language." +msgstr "Permite aos visitantes escolher o seu Idioma." + +#: ../includes/class-qtranslate-slug-widget.php:12 +msgid "Language selector" +msgstr "Selector de idioma" + +#: ../includes/class-qtranslate-slug-widget.php:19 +msgid "Language" +msgstr "Idioma" + +#: ../includes/class-qtranslate-slug-widget.php:51 +msgid "Title:" +msgstr "Título:" + +#: ../includes/class-qtranslate-slug-widget.php:52 +msgid "Hide Title:" +msgstr "Esconder título:" + +#: ../includes/class-qtranslate-slug-widget.php:53 +msgid "Display:" +msgstr "Mostrar:" + +#: ../includes/class-qtranslate-slug-widget.php:54 +msgid "Text only" +msgstr "Apenas texto" + +#: ../includes/class-qtranslate-slug-widget.php:55 +msgid "Image only" +msgstr "Apenas imagem" + +#: ../includes/class-qtranslate-slug-widget.php:56 +msgid "Text and Image" +msgstr "Texto e imagem" + +#: ../includes/class-qtranslate-slug-widget.php:57 +msgid "Dropdown Box" +msgstr "Caixa de selecção" + +#: ../includes/class-qtranslate-slug-widget.php:58 +msgid "Show short name (en):" +msgstr "Mostrar abreviatura (pt):" + +#: ../includes/class-qtranslate-slug.php:413 +msgid "Please update your old data to the new system." +msgstr "Por favor actualize os seus dados antigos para o novo sistema." + +#: ../includes/class-qtranslate-slug.php:413 +#: ../includes/qtranslate-slug-settings.php:29 +msgid "upgrade now" +msgstr "actualizar agora" + +#: ../includes/class-qtranslate-slug.php:427 +msgid "or newer" +msgstr "ou mais recente" + +#: ../includes/class-qtranslate-slug.php:432 +msgid "This plugin requires at least %s and either %s, or %s, or %s" +msgstr "Este plugin requer no mínimo o %s e o %s, ou %s, ou %s" + +#: ../includes/class-qtranslate-slug.php:432 +msgid "More information about" +msgstr "Mais informações sobre" + +#: ../includes/class-qtranslate-slug.php:1612 +msgid "View all posts in %s" +msgstr "Ver todos os artigos em %s" + +#: ../includes/class-qtranslate-slug.php:1739 +msgid "Empty Term" +msgstr "Termo vazio" + +#: ../includes/class-qtranslate-slug.php:1999 +#: ../includes/class-qtranslate-slug.php:2000 +#: ../includes/class-qtranslate-slug.php:2003 +#: ../includes/class-qtranslate-slug.php:2541 +msgid "Slug" +msgstr "URL" + +#: ../includes/class-qtranslate-slug.php:2214 +#: ../includes/class-qtranslate-slug.php:2233 +#: ../includes/qtranslate-slug-settings-options.php:39 +msgid "Slug (%s)" +msgstr "URL (%s)" + +#: ../includes/class-qtranslate-slug.php:2400 +#: ../includes/class-qtranslate-slug.php:2404 +msgid "Name" +msgstr "Nome" + +#: ../includes/class-qtranslate-slug.php:2542 +msgid "Posts" +msgstr "Artigos" + +#: ../includes/class-qtranslate-slug.php:2634 +msgid "Languages" +msgstr "Idiomas" + +#: ../includes/class-qtranslate-slug.php:2657 +msgid "All languages" +msgstr "Todos os idiomas" + +#: ../includes/qtranslate-slug-settings-options.php:14 +msgid "Post types" +msgstr "Tipos de artigos" + +#: ../includes/qtranslate-slug-settings-options.php:15 +msgid "Taxonomies" +msgstr "Taxonomias" + +#: ../includes/qtranslate-slug-settings-options.php:16 +msgid "Styles" +msgstr "Estilos" + +#: ../includes/qtranslate-slug-settings-options.php:63 +msgid "Change styles type" +msgstr "Alterar o tipo de estilos" + +#: ../includes/qtranslate-slug-settings-options.php:65 +msgid "adds a file (qts-default.css) to the theme's header." +msgstr "adiciona um ficheiro (qts-default.css) ao cabeçalho do tema." + +#: ../includes/qtranslate-slug-settings-options.php:66 +msgid "" +"adds a minified ( slighlty faster) file (qts-default.min.css) to the theme's " +"header." +msgstr "" +"adiciona um ficheiro minimizado (qts-default.min.css), ligeiramente mais " +"rápido, ao cabeçalho do tema." + +#: ../includes/qtranslate-slug-settings-options.php:67 +msgid "prints the styles directly into the theme's header." +msgstr "exibe os estilos directamente no cabeçalho do tema." + +#: ../includes/qtranslate-slug-settings-options.php:68 +msgid "neither include not print the default style." +msgstr "nem incluir nem exibir o estilo padrão." + +#: ../includes/qtranslate-slug-settings-options.php:73 +msgid "file" +msgstr "ficheiro" + +#: ../includes/qtranslate-slug-settings-options.php:74 +msgid "minified" +msgstr "minimizado" + +#: ../includes/qtranslate-slug-settings-options.php:75 +msgid "inline" +msgstr "em linha" + +#: ../includes/qtranslate-slug-settings-options.php:76 +msgid "none" +msgstr "nenhum" + +#: ../includes/qtranslate-slug-settings-options.php:106 +#: ../includes/qtranslate-slug-settings-options.php:148 +msgid "<code>http://example.org/<u>%s</u>/some-%s/</code>" +msgstr "<code>http://exemplo.org/<u>%s</u>/qualquer-%s/</code>" + +#: ../includes/qtranslate-slug-settings-options.php:119 +msgid "Categories" +msgstr "Categorias" + +#: ../includes/qtranslate-slug-settings-options.php:120 +msgid "<code>http://example.org/<u>category</u>/some-category/</code>" +msgstr "<code>http://exemplo.org/<u>categoria</u>/qualquer-categoria/</code>" + +#: ../includes/qtranslate-slug-settings-options.php:130 +msgid "Tags" +msgstr "Etiquetas" + +#: ../includes/qtranslate-slug-settings-options.php:131 +msgid "<code>http://example.org/<u>tag</u>/some-tag/</code>" +msgstr "<code>http://exemplo.org/<u>etiqueta</u>/qualquer-etiqueta/</code>" + +#: ../includes/qtranslate-slug-settings-options.php:175 +msgid "Qtranslate Settings - Contextual Help" +msgstr "Definições do Qtranslate - Ajuda contextual" + +#: ../includes/qtranslate-slug-settings-options.php:176 +msgid "" +"Contextual help goes here. You may want to use different html elements to " +"format your text as you want." +msgstr "" +"Isto é a ajuda contextual. Poderá utilizar diferentes elementos html para " +"formatar o seu texto como desejar." + +#: ../includes/qtranslate-slug-settings.php:23 +msgid "Upgrade your data" +msgstr "Actualize os seus dados" + +#: ../includes/qtranslate-slug-settings.php:24 +msgid "" +"There are slugs stored with old data system. Please upgrade your data pressing " +"upgrade button:" +msgstr "" +"Existem URLs com sistema de dados antigo. Por favor actualize os seus dados " +"através do botão actualizar:" + +#: ../includes/qtranslate-slug-settings.php:77 +msgid "Sorry, some error happened. Refresh this page and try again please." +msgstr "" +"Lamentavelmente mas ocorreu um erro. Por favor refresque esta página e tente " +"novamente." + +#: ../includes/qtranslate-slug-settings.php:84 +msgid "Congratulations, your data has been upgraded, you are up to date." +msgstr "" +"Parabéns, os seus dados foram actualizados e o sistema está agora actual." + +#: ../includes/qtranslate-slug-settings.php:90 +msgid "One step more, select what type of slug is this: <strong>%s</strong>" +msgstr "Um passo mais, seleccione que tipo de URL é este: <strong>%s</strong>" + +#: ../includes/qtranslate-slug-settings.php:91 +msgid "Post, Page or Custom post type" +msgstr "Artigo, página ou tipo de artigo personalizado" + +#: ../includes/qtranslate-slug-settings.php:91 +msgid "Category, tag or custom taxonomy" +msgstr "Categoria, etiqueta ou taxonomia personalizada" + +#: ../includes/qtranslate-slug-settings.php:182 +#: ../includes/qtranslate-slug-settings.php:322 +msgid "Qtranslate Slug options" +msgstr "Opções do Qtranslate Slug" + +#: ../includes/qtranslate-slug-settings.php:322 +msgid "Slug options" +msgstr "Opções do URL" + +#: ../includes/qtranslate-slug-settings.php:359 +msgid "" +"For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as " +"<code>http://example.org/es/libros/post-type-name/</code>. If you leave this " +"blank will use the default option when you <a href=\"http://codex.wordpress." +"org/Function_Reference/register_post_type\">registered</a> the post_type." +msgstr "" +"Por exemplo, o tipo de artigo <kbd>livros</kbd>, em português seria mostrado " +"como <code>http://exemplo.org/pt/livros/nome-de-tipo-de-artigo/</code>. Se " +"deixar isto em branco, será usada a opção por omissão <a href=\"http://codex." +"wordpress.org/Function_Reference/register_post_type\">registada</a> no tipo de " +"artigo." + +#: ../includes/qtranslate-slug-settings.php:364 +msgid "" +"For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed " +"as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave " +"this blank will use the default option when you <a href=\"http://codex." +"wordpress.org/Function_Reference/register_taxonomy\">registered</a> the " +"taxonomy (if you previously setup a base permastruct for <u>categories</u> or " +"<u>tags</u> in <a href=\"options-permalink.php\">permalinks</a> page, these " +"bases will be overwritten by the translated ones)." +msgstr "" +"Por exemplo, a taxonomia <kbd>categoria</kbd>, em português seria mostrado " +"como <code>http://exemplo.org/pt/categoria/nome-de-taxonomia/</code>. Se " +"deixar isto em branco, será usada a opção por omissão <a href=\"http://codex." +"wordpress.org/Function_Reference/register_taxonomy\">registada</a> na " +"taxonomia (se previamente configurou a base das ligações permanentes para " +"<u>categorias</u> ou <u>etiquetas</u> na página <a href=\"options-permalink.php" +"\">ligações permanentes</a>, estas bases serão sobrepostas pelas traduzidas)." + +#: ../includes/qtranslate-slug-settings.php:368 +msgid "The default styles are very minimal, and you can include them or not." +msgstr "Os estilos padrão são mínimos, pode incluí-los ou não." + +#: ../includes/qtranslate-slug-settings.php:567 +msgid "" +"If you activated previously the <a href=\"options-permalink.php\">pretty " +"permalinks</a>, in this section you can translate the <abbr title=\"en inglés, " +"Universal Resource Locator\">URLs</abbr> <strong>bases</strong> for <a href=" +"\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments" +"\">public</a> post_types, categories, tags and taxonomies." +msgstr "" +"Se activou previamente as <a href=\"options-permalink.php\">ligações " +"permanentes</a>, nesta secção poderá traduzir as <strong>bases</strong> das " +"<abbr title=\"em inglês, Universal Resource Locator\">URLs</abbr> para tipos " +"de artigo, categorias, etiquetas e taxonomias <a href=\"http://codex.wordpress." +"org/Function_Reference/register_post_type#Arguments\">públicas</a>." + +#: ../includes/qtranslate-slug-settings.php:586 +msgid "If you selected \"none\", copy and use these styles as you see fit:" +msgstr "Se escolher \"nenhum\", copie e utilize estes estilos como entender:" + +#: ../includes/qtranslate-slug-settings.php:589 +msgid "Save Changes" +msgstr "Guardar alterações" + +#: ../includes/qtranslate-slug-settings.php:642 +msgid "Expecting a Numeric value! Please fix." +msgstr "É necessário um valor numérico! Por favor, corrija." + +#: ../includes/qtranslate-slug-settings.php:655 +msgid "Expecting comma separated numeric values" +msgstr "Valores numéricos separados por vírgulas" + +#: ../includes/qtranslate-slug-settings.php:665 +msgid "Expecting comma separated numeric values! Please fix." +msgstr "" +"São necessários valores numéricos separados por vírgulas! Por favor, corrija." + +#: ../includes/qtranslate-slug-settings.php:690 +msgid "Invalid email" +msgstr "Email incorrecto" + +#: ../includes/qtranslate-slug-settings.php:692 +msgid "This setting field cannot be empty! Please enter a valid email address." +msgstr "" +"Este campo não pode estar vazio! Por favor introduza um endereço de email " +"válido." + +#: ../includes/qtranslate-slug-settings.php:700 +msgid "Please enter a valid email address." +msgstr "Por favor introduza um endereço de email válido." + +#: ../qtranslate-slug.php:150 +msgid "Settings" +msgstr "Definições" diff --git a/languages/qts.pot b/languages/qts.pot new file mode 100644 index 0000000..cedf142 --- /dev/null +++ b/languages/qts.pot @@ -0,0 +1,313 @@ +# Copyright (C) 2012 qTranslate slug +# This file is distributed under the same license as the qTranslate slug package. +msgid "" +msgstr "" +"Project-Id-Version: qTranslate slug 1.0\n" +"Report-Msgid-Bugs-To: http://wordpress.org/tag/qtranslate-slug\n" +"POT-Creation-Date: 2015-01-23 14:23-0000\n" +"PO-Revision-Date: 2015-01-23 14:23-0000\n" +"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n" +"Language-Team: Carlos Sanz Garcia <carlos.sanz@gmail.com>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.3\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __;_e;__ngettext;_n;__ngettext_noop;_n_noop;_x;_nx;" +"_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;" +"esc_html_x\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SearchPath-1: ..\n" + +#: ../includes/class-qtranslate-slug-widget.php:11 +msgid "Allows your visitors to choose a Language." +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:12 +msgid "Language selector" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:19 +msgid "Language" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:51 +msgid "Title:" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:52 +msgid "Hide Title:" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:53 +msgid "Display:" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:54 +msgid "Text only" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:55 +msgid "Image only" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:56 +msgid "Text and Image" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:57 +msgid "Dropdown Box" +msgstr "" + +#: ../includes/class-qtranslate-slug-widget.php:58 +msgid "Show short name (en):" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:413 +msgid "Please update your old data to the new system." +msgstr "" + +#: ../includes/class-qtranslate-slug.php:413 +#: ../includes/qtranslate-slug-settings.php:29 +msgid "upgrade now" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:427 +msgid "or newer" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:432 +msgid "This plugin requires at least %s and either %s, or %s, or %s" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:432 +msgid "More information about" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:1612 +msgid "View all posts in %s" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:1739 +msgid "Empty Term" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:1999 +#: ../includes/class-qtranslate-slug.php:2000 +#: ../includes/class-qtranslate-slug.php:2003 +#: ../includes/class-qtranslate-slug.php:2541 +msgid "Slug" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:2214 +#: ../includes/class-qtranslate-slug.php:2233 +#: ../includes/qtranslate-slug-settings-options.php:39 +msgid "Slug (%s)" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:2400 +#: ../includes/class-qtranslate-slug.php:2404 +msgid "Name" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:2542 +msgid "Posts" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:2634 +msgid "Languages" +msgstr "" + +#: ../includes/class-qtranslate-slug.php:2657 +msgid "All languages" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:14 +msgid "Post types" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:15 +msgid "Taxonomies" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:16 +msgid "Styles" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:63 +msgid "Change styles type" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:65 +msgid "adds a file (qts-default.css) to the theme's header." +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:66 +msgid "" +"adds a minified ( slighlty faster) file (qts-default.min.css) to the theme's " +"header." +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:67 +msgid "prints the styles directly into the theme's header." +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:68 +msgid "neither include not print the default style." +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:73 +msgid "file" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:74 +msgid "minified" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:75 +msgid "inline" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:76 +msgid "none" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:106 +#: ../includes/qtranslate-slug-settings-options.php:148 +msgid "<code>http://example.org/<u>%s</u>/some-%s/</code>" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:119 +msgid "Categories" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:120 +msgid "<code>http://example.org/<u>category</u>/some-category/</code>" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:130 +msgid "Tags" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:131 +msgid "<code>http://example.org/<u>tag</u>/some-tag/</code>" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:175 +msgid "Qtranslate Settings - Contextual Help" +msgstr "" + +#: ../includes/qtranslate-slug-settings-options.php:176 +msgid "" +"Contextual help goes here. You may want to use different html elements to " +"format your text as you want." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:23 +msgid "Upgrade your data" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:24 +msgid "" +"There are slugs stored with old data system. Please upgrade your data pressing " +"upgrade button:" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:77 +msgid "Sorry, some error happened. Refresh this page and try again please." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:84 +msgid "Congratulations, your data has been upgraded, you are up to date." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:90 +msgid "One step more, select what type of slug is this: <strong>%s</strong>" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:91 +msgid "Post, Page or Custom post type" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:91 +msgid "Category, tag or custom taxonomy" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:182 +#: ../includes/qtranslate-slug-settings.php:322 +msgid "Qtranslate Slug options" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:322 +msgid "Slug options" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:359 +msgid "" +"For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as " +"<code>http://example.org/es/libros/post-type-name/</code>. If you leave this " +"blank will use the default option when you <a href=\"http://codex.wordpress." +"org/Function_Reference/register_post_type\">registered</a> the post_type." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:364 +msgid "" +"For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed " +"as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave " +"this blank will use the default option when you <a href=\"http://codex." +"wordpress.org/Function_Reference/register_taxonomy\">registered</a> the " +"taxonomy (if you previously setup a base permastruct for <u>categories</u> or " +"<u>tags</u> in <a href=\"options-permalink.php\">permalinks</a> page, these " +"bases will be overwritten by the translated ones)." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:368 +msgid "The default styles are very minimal, and you can include them or not." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:567 +msgid "" +"If you activated previously the <a href=\"options-permalink.php\">pretty " +"permalinks</a>, in this section you can translate the <abbr title=\"en inglés, " +"Universal Resource Locator\">URLs</abbr> <strong>bases</strong> for <a href=" +"\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments" +"\">public</a> post_types, categories, tags and taxonomies." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:586 +msgid "If you selected \"none\", copy and use these styles as you see fit:" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:589 +msgid "Save Changes" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:642 +msgid "Expecting a Numeric value! Please fix." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:655 +msgid "Expecting comma separated numeric values" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:665 +msgid "Expecting comma separated numeric values! Please fix." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:690 +msgid "Invalid email" +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:692 +msgid "This setting field cannot be empty! Please enter a valid email address." +msgstr "" + +#: ../includes/qtranslate-slug-settings.php:700 +msgid "Please enter a valid email address." +msgstr "" + +#: ../qtranslate-slug.php:150 +msgid "Settings" +msgstr "" diff --git a/qtranslate-slug.php b/qtranslate-slug.php new file mode 100644 index 0000000..cdfa49e --- /dev/null +++ b/qtranslate-slug.php @@ -0,0 +1,193 @@ +<?php +/* +Plugin Name: qTranslate slug +Plugin URI: http://not-only-code.github.com/qtranslate-slug/ +Description: Allows to define a slug for each language and some qTranslate bug fixes +Version: 1.1.16 +Author: Carlos Sanz Garcia, Pedro Carvalho +Author URI: http://github.com/not-only-code +*/ + + +//////////////////////////////////////////////////////////////////////////////////////// + +if ( !function_exists('_debug') ): +function _debug( $message ) { + + if ( WP_DEBUG === true ): + + if ( is_array( $message ) || is_object( $message ) ) { + + error_log( print_r( $message, true ) ); + + } else { + + error_log( $message ); + } + + endif; +} +endif; + +//////////////////////////////////////////////////////////////////////////////////////// + + + +/** + * Includes + * + * @since 1.1.8 + */ +include_once(dirname(__FILE__).'/includes/class-qtranslate-slug-widget.php'); +include_once(dirname(__FILE__).'/includes/class-qtranslate-slug.php'); + +//////////////////////////////////////////////////////////////////////////////////////// + + + +/** + * Define Constants + * + * @since 1.0 + */ +if (!defined("QTS_VERSION")) define("QTS_VERSION", '1.1.12'); +if (!defined("QTS_PREFIX")) define("QTS_PREFIX", '_qts_'); +if (!defined("QTS_PAGE_BASENAME")) define('QTS_PAGE_BASENAME', 'qtranslate-slug-settings'); +if (!defined("QTS_OPTIONS_NAME")) define("QTS_OPTIONS_NAME", 'qts_options'); +if (!defined("PHP_EOL")) define("PHP_EOL", "\r\n"); + +//////////////////////////////////////////////////////////////////////////////////////// + + + +/** + * Includes + * + * @since 1.0 + */ +if ( is_admin() && !QtranslateSlug::block_activate() ) { // setting options page + include_once(dirname(__FILE__).'/includes/qtranslate-slug-settings.php'); +} + +include_once(dirname(__FILE__).'/includes/termmeta-core.php'); // termmeta install and core functions + +//////////////////////////////////////////////////////////////////////////////////////// + + + +/** + * Init the plugin + * + * @since 1.0 + */ +global $qtranslate_slug; + +$qtranslate_slug = new QtranslateSlug(); + +// plugin activation +register_activation_hook( __FILE__, array($qtranslate_slug, 'install') ); + +// plugin deactivation +register_deactivation_hook( __FILE__, array($qtranslate_slug, 'deactivate') ); + +// plugin uninstall +register_uninstall_hook( __FILE__, 'qts_uninstall' ); + +// plugin init +add_action('plugins_loaded', array($qtranslate_slug, 'init') ); + +//////////////////////////////////////////////////////////////////////////////////////// + +/** + * Language Selector Code for templating + * + * @package Qtranslate Slug + * @subpackage Core + * @since 1.0 + */ +function qts_language_menu ($type = "text", $args = array()) { + global $qtranslate_slug; + + $qtranslate_slug->language_menu($type, $args); +} + +/** + * Finds the translated slug of the given post by calling get_slug + * @param int $id the post id + * @param string $lang which language to look for + * @since 1.1.13 + */ + +function qts_get_slug( $id, $lang ) { + global $qtranslate_slug; + return $qtranslate_slug->get_slug($id, $lang); +} + + +/** + * Adds support for old plugin function + * + * @package Qtranslate Slug + * @subpackage Core + * @since 1.1.5 + */ +function qTranslateSlug_getSelfUrl ($lang = false) { // bad naming, I'll keep just in case + return qts_get_url($lang); +} + +function qts_get_url($lang = false) { + global $qtranslate_slug; + + return $qtranslate_slug->get_current_url($lang); +} + + + +/** + * Add a "Settings" link to the plugins.php page for Qtranslate Slug + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + * @return calls qts_show_msg() + */ +function qts_add_settings_link( $links, $file ) { + + if (QtranslateSlug::block_activate()) return $links; + + $this_plugin = plugin_basename( __FILE__ ); + if( $file == $this_plugin ) { + $settings_link = "<a href=\"options-general.php?page=" . QTS_PAGE_BASENAME . "\">" . __( 'Settings', 'qts' ) . '</a>'; + array_unshift($links, $settings_link); + } + return $links; +} +add_filter( 'plugin_action_links', 'qts_add_settings_link', 10, 2 ); + + + +/** + * Delete plugin stored data ( options, termmeta table and postmeta data ) + * + * @package Qtranslate Slug + * @subpackage Settings + * @version 1.0 + * + */ +function qts_uninstall() { + global $q_config, $wpdb; + + // options + delete_option(QTS_OPTIONS_NAME); + delete_option('qts_version'); + + // delete termmeta table + $wpdb->query("DROP TABLE IF EXISTS $wpdb->termmeta"); + + // delete postmeta data + $meta_keys = array(); + foreach ($q_config['enabled_languages'] as $lang) $meta_keys[] = sprintf("_qts_slug_%s", $lang); + $meta_keys = "'". implode( "','", $meta_keys ) . "'"; + $wpdb->query("DELETE from $wpdb->postmeta WHERE meta_key IN ($meta_keys)"); +} diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..f40439e --- /dev/null +++ b/readme.txt @@ -0,0 +1,278 @@ +=== Qtranslate Slug === +Contributors: carlos_a_sanz, pedroghandi +Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SYC46KSLRC4Q8 +Tags: qtranslate, slug, multilanguage, widget +Requires at least: 3.3 +Tested up to: 4.2.4 +Stable tag: 1.1.17 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +Adds support for permalink translations to QTranslate-X since wordpress 3.0 + +== Description == + +[Qtranslate-X](http://wordpress.org/plugins/qtranslate-x/) is a nice plugin for Multilingual Websites. **Qtranslate Slug** is an addon to QTranslate, which adds support for permalinks translations. + +1.1.17 fixes a dangerous Security Exploit. Please update right now! + += Requirements: = + +* Wordpress 3.3 (PHP 5.4 and MySQL 5) +* mQtranslate 2.6.2.4 or Qtranslate 2.5.8 or qtranslate-x ( 2.9.1 ) + += New in 1.1.17 = +* Hability to filter the position of the Metabox +* Fixed dangerous security exploit! + += New in 1.1.16 = +Minor fix for the language menu using qtranslate's function + += New in 1.1.15 = +* Fixes the duplicated hreflang links in <head> + += New in 1.1.14 = + +The menu widget didn't allow the visitors to change to the default language if qtranslate-x was being used. So, adjusted the Language Menu widget to play nice with qtranslate-x. +Hope to bring some nice changes that were made in the github repository in the next version. For now, enjoy. + += New in 1.1.13 = +== Thanks to returning @pedro-mendonca for these commits: == +* Cleaned duplicated label in widget +* Bug fix in "Slug (%s)" string translation +* Changed text strings with no text-domain and with text-domain 'qtranlate' to text-domain 'qts' +* pot catalog updated with current strings, including last found is "More information about". +== Thanks to @johnclause for these : == +* Convenience links in notice_dependences +* Menu compatibility with qTranslate-X +* Fixed extra characters in widget +### Thanks to vbkun for casting the much wanted function to get a slug based on an id and language +* Added a global qts_get_slug( $id, $lang) +### and sadly: +* removed the menu admin box until better implementation + + +See you next Version! + + +**Advice: If you're using a multisite installation, you will must activate qtranslate plugins by separately on each site.** + +You can also check the [project website](http://not-only-code.github.com/qtranslate-slug/) hosted on [GitHub](http://not-only-code.github.com). +Thanks for use this plugin! + += Contributors = + +* [Pedro de Carvalho](https://github.com/LC43/) +* [Risto Niinemets](https://github.com/RistoNiinemets) +* [Pedro Mendonça](https://github.com/pedro-mendonca) +* [codep0et](https://github.com/codep0et) +* [Giraldi Maggio](https://github.com/bedex78) +* [jinoOM](https://github.com/jinoOM) +* [Juanfran](https://github.com/juanfran-granados) +* [Arild](https://github.com/arildm) +* [Rafa Aguilar](https://github.com/rafitaFCB) +* [Bastian Heist](https://github.com/beheist) +* [John Clause](https://github.com/johnclause) + + +== Installation == +**This plugins requires [Qtranslate](http://wordpress.org/extend/plugins/qtranslate/) or [mqTranslate](https://wordpress.org/plugins/mqtranslate/) installed previously, if not, it will not activate.** + +1. Upload `qtranslate-slug` to the `/wp-content/plugins/` directory. +1. Activate the plugin through the 'Plugins' menu in WordPress. +1. That's all! + += Changing base permastructs = + +1. In admin: navigate to *Settings/Slug options*. +1. Set the base permastructs for **post types** and **taxonomies** (If you setup a base permastruct for *categories* or *tags* in *Settings/Permalinks*, these will be overwritten by the translated ones). +1. Save settings and that's all! + +== Frequently Asked Questions == + += It works with posts and pages, but with other content type? = + +This plugin allows to translate slugs of: posts, pages, custom post types, categories, tags and custom taxonomies. + += Do I have to configure anything? = + +If you want to translate also the base permastructs (ex. *category*, *tag*, etc). Visit the plugin settings page in the admin *Settings/Slug options* + += How can i insert a language selector in my theme ? = + +You can choose to: +* use **Qtranslate Slug Widget** in your sidebar. +* place in your template `<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>`. Options are: `dropdown`, `text`, `image`, and `both`. + += Appears an error 404, what can i do? = + +In the admin go to *Settings/Permalinks* or *Settings/Slug options* and save. + += I can't manage translations in Nav Menus. = + +That's because language selector metabox is hidden, if you are in admin *nav menus* screen, press the button **Screen options** (on top and right) and after, check the option *Languages*. It will appear a **Language** meta box on top of the left sidebar. + += How to get the current url in a specific language? = + +You can use `qts_get_url()` or the awkwardly named `qTranslateSlug_getSelfUrl()` which is an alias for the first one. + + +== Screenshots == + +1. Edit page for: post / page / post_type, you can see the meta box for translated slugs on top and right. +2. Add new taxonomy page +3. Edit taxonomy page +4. Qtranslate Slug options page for translate base permastructs of post_types and taxonomies. + +== Changelog == + + += New in Versions 1.1.12 = + +* fixed warnings in settings +* replace qtranslate with our own for taxonomies + += New in Versions 1.1.10 and 1.1.11 = + +* Fixing wrong commit to wp.org +* Clean deleted files += New in Version 1.1.9 = + +Lots of bug fixes! Thanks again to everyone that contributed to this project, with commits, bug reports and suggestions. + +* Compatibility with qtranslate-X! ( thanks @beheist, pull #85, fixing most of #80 ) +* More updates to the portuguese translation ( thanks pedro-mendonca, pull #86) +* Corrected the link to language files ( thanks pedro-mendonca ) +* Added translation for some hardcoded texts ( thanks pedro-mendonca ) +* Corrected a link from 'qtranslate' to 'qts' language files ( thanks pedro-mendonca ) +* Fixed taxonomies slugs ( thanks to [eirikv's bug report](https://wordpress.org/support/topic/categories-slug-dont-work) ) +* Fixed many warnings ( thanks piffpaffpuff, issue #78 and to [pedrodu1](https://wordpress.org/support/topic/warnings-qtranslate-slugphp) ) +* Changed the behaviour of "Quick Edit", from the wp forums [1](https://wordpress.org/support/topic/categories-tags-and-quick-edit-dont-show-in-admin) [2](https://wordpress.org/support/topic/quick-edit-inhibited-by-qtranslate-slug-with-wp-41-mqtranslate) ( thanks everyone!! ) +* Fixed the menus! Now you can properly use one menu for every language. Use the dropdown section "Languages", and for each item, change the "Navigation Label" and "Title Attribute". Select "All languages", to make sure everything is awesome! All these features were a consequence of fixing all the warnings based on [Gery's bug report](https://wordpress.org/support/topic/qtranslate-slug-conflicting-with-ubermenu). +* Minor fixes, etc. + + += New in Version 1.1.9 = + +Lots of bug fixes! Thanks again to everyone that contributed to this project, with commits, bug reports and suggestions. + +* Compatibility with qtranslate-X! ( thanks @beheist, pull #85, fixing most of #80 ) +* More updates to the portuguese translation ( thanks pedro-mendonca, pull #86) +* Corrected the link to language files ( thanks pedro-mendonca ) +* Added translation for some hardcoded texts ( thanks pedro-mendonca ) +* Corrected a link from 'qtranslate' to 'qts' language files ( thanks pedro-mendonca ) +* Fixed taxonomies slugs ( thanks to [eirikv's bug report](https://wordpress.org/support/topic/categories-slug-dont-work) +* Fixed many warnings ( thanks piffpaffpuff, issue #78 and to [pedrodu1](https://wordpress.org/support/topic/warnings-qtranslate-slugphp) ) +* Changed the behaviour of "Quick Edit", from the wp forums [1](https://wordpress.org/support/topic/categories-tags-and-quick-edit-dont-show-in-admin) [2](https://wordpress.org/support/topic/quick-edit-inhibited-by-qtranslate-slug-with-wp-41-mqtranslate) ( thanks everyone!! ) +* Fixed the menus! Now you can properly use one menu for every language. Use the dropdown section "Languages", and for each item, change the "Navigation Label" and "Title Attribute". Select "All languages", to make sure everything is awesome! All these features were a consequence of fixing all the warnings based on [Gery's bug report)[https://wordpress.org/support/topic/qtranslate-slug-conflicting-with-ubermenu). +* Minor fixes, etc. + +See you next Version! + + += 1.1.8 = + +Many thanks to everyone that contributed to this update, for their commits, bug reports and for simply using it + +* Portuguese translation and fixed some translation bugs ( thanks pedro-mendonca ) +* removed mqtranslate switcher widget hook +* Updated the plugin structure and coding style +* solve some conflicts with search and pagination queries +* Settings php errors, syntax indent and fixed settings assets url +* Change titles when there is a click on pagination on show all pages tab ( thanks juanfran-granados ) +* Formatted dependency notice message ( thanks arildm ) +* Updated the deprecated jquery 'live' function and solve php strict standards error ( thanks rafitaFCB ) +* Fixed error showing if PHP was newer than 5.3 ( thanks rafitaFCB ) +* Strict standard advise prevented ( thanks rafitaFCB ) +* php notices are prevented in post edit, when using adding new translated tags ( thanks rafitaFCB ) +* fixed the hreflang issue! 'bout time! +* As discussed in issue #25, the flags are now img tags, intead of background-url. +* Added another option to include the css style in a minified file. ( and also showing in the option screen the styles we would use.) + += 1.1.7 = +* removed styles from html elements and added options to use .css file or print inline styles +* fixed tag creation on post edit. +* fixed earlier bad post slug introduced in 1.1.6 + += 1.1.6 = +* compatible with mqtranslate +* php5.4+ compatible + += 1.1.5 = +* bugfixes + += 1.1 = +* added multisite support +* fixed some parse url bugs +* fixed slug bases validation + += 1.0 = +* **works** with any permalink combination and qtranslate mode. +* new branch, the plugin has been rewritten: now the code is commented and wrapped inside a class, much code has change and the performance has been increased (use caches). +* data system changed, no ID for slug type, then it don't needs install `qtrasnlate_slug` table. That means slugs now are stored on meta tables and installation creates a termmeta table with some new *core functions* to access/save data, based on [simple term meta](http://wordpress.org/extend/plugins/simple-term-meta/). Upgrade process when the plugin updates from older versions. +* the plugin generates translated slug automatically from title in empty cases. +* the plugin checks if the slug already exists (per each language and `post_type`/`taxonomy`), and adds a progressive number in this case. Works on ajax requests for example when new taxonomies are created in edit post page. +* possibility to translate the base of permastructs for *post_types* and *taxonomies*, uses [$wp_rewrite](http://codex.wordpress.org/Class_Reference/WP_Rewrite). New admin options page for save the base permastructs. +* added some filters, see in [other notes](http://wordpress.org/extend/plugins/qtranslate-slug/other_notes/). +* added plugin language textdomain (.pot file). +* updated **Language selector Widget**, and some new conventions like accessible functions for templating. +* some bug fixes. +* some Qtranslate patches. + += 0.9 = +* some wordpress qTranslate bug fixes +* adds a javascript solution for qTranslate Nav Menus + += 0.8 = +* added support por Categories +* added support por Tags +* added support por Taxonomies +* added support por Custom Post Types + += 0.7 = [Zapo](http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=4&t=1049&start=50#p7499) +* added suport for qTranslate TLD domain mode (en: domain.com | fr: domain.fr) visit + += 0.5 and 0.6 enhanched by Marco Del Percio = + +== Upgrade Notice == + += 1.0 = +Major version, the plugin has been rewritten. Better performance, and some enhancements. + += 0.9 = +This version fix some bugs and allow multilanguage in nav-menus. + += 0.8 = +A lot of slugs content allowed + += 0.7 = +This version allows TLD domain option for a different Qtranslate fork maded by Zappo + + +== Other notes == + +Plugin filters reference: + += qts_validate_post_slug = +filter to process the post slug before is saved on the database. +`args: $post (object), $slug (string), $lang (string)` + += qts_validate_term_slug = +filter to process the term slug before is saved on the database. +`args: $term (object), $slug (string), $lang (string)` + += qts_url_args = +filter to process the entire url after it has been generated. +`args: $url (string), $lang (string)` + += qts_permastruct = +filter to process the permastruct, used for change the base. +`args: $permastruct (string), $name (string)` + + += Todo = + +* detect Slug for each language and redirect accordingly in parse_query. +* expand qtranslate for translate attachment names and descriptions ( useful for galleries ) +* translate other slugs like attachments. +* qtranslate integration with other plugins like Jigoshop, e-commerce, etc. Addapt **$wp_rewrite**. diff --git a/screenshot-1.png b/screenshot-1.png new file mode 100644 index 0000000..26b1d03 Binary files /dev/null and b/screenshot-1.png differ diff --git a/screenshot-2.png b/screenshot-2.png new file mode 100644 index 0000000..1c65e54 Binary files /dev/null and b/screenshot-2.png differ diff --git a/screenshot-3.png b/screenshot-3.png new file mode 100644 index 0000000..1e68461 Binary files /dev/null and b/screenshot-3.png differ diff --git a/screenshot-4.png b/screenshot-4.png new file mode 100644 index 0000000..87ea7a9 Binary files /dev/null and b/screenshot-4.png differ diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..3b0e860 --- /dev/null +++ b/version.txt @@ -0,0 +1,127 @@ += New in 1.1.17 = +* Fixed dangerous security exploit! +* Hability to filter the position of the Metabox + += New in 1.1.16 = +Minor fix for the language menu using qtranslate's function + += New in 1.1.15 = +* Fixes the duplicated hreflang links in <head> + += New in 1.1.14 = + +The menu widget didn't allow the visitors to change to the default language if qtranslate-x was being used. So, adjusted the Language Menu widget to play nice with qtranslate-x. +Hope to bring some nice changes that were made in the github repository in the next version. For now, enjoy. + += 1.1.13 = +== Thanks to returning @pedro-mendonca for these commits: == +* Cleaned duplicated label in widget +* Bug fix in "Slug (%s)" string translation +* Changed text strings with no text-domain and with text-domain 'qtranlate' to text-domain 'qts' +* pot catalog updated with current strings, including last found is "More information about". +== Thanks to @johnclause for these : == +* Convenience links in notice_dependences +* Menu compatibility with qTranslate-X +* Fixed extra characters in widget +== Thanks to vbkun for casting this much wanted function == +* Added a global qts_get_slug( $id, $lang) +== and sadly: == +* removed the menu admin box until better implementation + += 1.1.12 = + +* fixed warnings in settings +* replace qtranslate with our own for taxonomies + += 1.1.10 and 1.1.11 = +* Fixing wrong commit to wp.org +* Clean deleted files + += 1.1.9 = + +Lots of bug fixes! Thanks again to everyone that contributed to this project, with commits, bug reports and suggestions. + +* Compatibility with qtranslate-X! ( thanks @beheist, pull #85, fixing most of #80 ) +* More updates to the portuguese translation ( thanks pedro-mendonca, pull #86) +* Corrected the link to language files ( thanks pedro-mendonca ) +* Added translation for some hardcoded texts ( thanks pedro-mendonca ) +* Corrected a link from 'qtranslate' to 'qts' language files ( thanks pedro-mendonca ) +* Fixed taxonomies slugs ( thanks to [eirikv's bug report](https://wordpress.org/support/topic/categories-slug-dont-work) ) +* Fixed many warnings ( thanks piffpaffpuff, issue #78 and to [pedrodu1](https://wordpress.org/support/topic/warnings-qtranslate-slugphp) ) +* Changed the behaviour of "Quick Edit", from the wp forums [1](https://wordpress.org/support/topic/categories-tags-and-quick-edit-dont-show-in-admin) [2](https://wordpress.org/support/topic/quick-edit-inhibited-by-qtranslate-slug-with-wp-41-mqtranslate) ( thanks everyone!! ) +* Fixed the menus! Now you can properly use one menu for every language. Use the dropdown section "Languages", and for each item, change the "Navigation Label" and "Title Attribute". Select "All languages", to make sure everything is awesome! All these features were a consequence of fixing all the warnings based on [Gery's bug report](https://wordpress.org/support/topic/qtranslate-slug-conflicting-with-ubermenu). +* Minor fixes, etc. + +See you next Version! + += 1.1.8 = + +Many thanks to everyone that contributed to this update, both for their commits and bug reports ) + +* Portuguese translation and fixed some translation bugs ( thanks pedro-mendonca ) +* removed mqtranslate switcher widget hook +* Updated the plugin structure and coding style +* solve some conflicts with search and pagination queries +* Settings php errors, syntax indent and fixed settings assets url +* Change titles when there is a click on pagination on show all pages tab ( thanks juanfran-granados ) +* Formatted dependency notice message ( thanks arildm ) +* Updated the deprecated jquery 'live' function and solve php strict standards error ( thanks rafitaFCB ) +* Fixed error showing if PHP was newer than 5.3 ( thanks rafitaFCB ) +* Strict standard advise prevented ( thanks rafitaFCB ) +* php notices are prevented in post edit, when using adding new translated tags ( thanks rafitaFCB ) +* fixed the hreflang issue! 'bout time! +* As discussed in issue #25, the flags are now img tags, intead of background-url. +* Added another option to include the css style in a minified file. ( and also showing in the option screen the styles we would use.) + += 1.1.7 = +* removed styles from html elements and added options to use .css file or print inline styles +* fixed tag creation on post edit. +* fixed earlier bad post slug introduced in 1.1.6 + += 1.1.6 = +* compatible with mqtranslate +* php5.4+ compatible + += 1.1.5 = +* bugfixes + += 1.1 = +* added multisite support +* fixed some parse url bugs +* fixed slug bases validation + += 1.0 = +* new branch, the plugin has been rewrited: now the code is commented and wrapped inside a class, also all code has change and the performance has been increased. +* structural changes: + * no ID for slug type, then don't install qtrasnlate_slug table. + * slugs now are stored on meta tables, installation creates a termmeta table with some new 'core functions' to access/save data, based on [simple term meta](http://wordpress.org/extend/plugins/simple-term-meta/). +* some automation: + * the plugin generates translated slug automatically from title in empty cases (like wordpress). + * the plugin checks if the slug already exists (per each language and type / taxonomy), and adds a progressive number in this case (like wordpress). + * works on ajax requests like creatig new taxonomies on edit post page. +* possibility to translate the base of permastructs for 'post_types' and 'taxonomies' (uses $wp_rewrite). +* added some filters: + * 'qts_validate_post_slug' : args( $post (object), $slug (string), $lang (string) ) / filter to process the post slug before is saved on the database. + * 'qts_validate_term_slug' : args( $term (object), $slug (string), $lang (string) ) / filter to process the term slug before is saved on the database. + * 'qts_current_url' : args ( $url (string), $lang (string) ) / filter to process the entire url after it has been generated. + * 'qts_permastruct' : args ( $permastruct (string), $name (string) ) / filter to process the permastruct, used for change the base. +* added plugin language textdomain (.pot file) +* new admin options page for save the base permastructs. +* import process when the plugin updates older versions. +* some bug fixes. +* some Qtranslate patches. + += 0.9 = +* some wordpress qTranslate bug fixes +* adds a javascript solution for qTranslate Nav Menus + += 0.8 = +* added support por Categories +* added support por Tags +* added support por Taxonomies +* added support por Custom Post Types + += 0.7 ( enhanced by Zapo (http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=4&t=1049&start=50#p7499) ) = +* added suport for qTranslate TLD domain mode (en: domain.com | fr: domain.fr) visit + += 0.5 and 0.6 enhanched by Marco Del Percio = \ No newline at end of file
.qts_type_image .qts_lang_item { float: left; margin-right: 7px; } .qts_type_image .qts_lang_item.last-child { margin-right: 0; } .qts_lang_item{ margin-top: 7px; margin-bottom: 7px; } .qts_both { white-space: nowrap; line-height:1em; } .qts_both img { margin-right: 4px } .qts_type_image .qts_lang_item{float:left;margin-right:7px}.qts_type_image .qts_lang_item.last-child{margin-right:0}.qts_lang_item{margin-top:7px;margin-bottom:7px}.qts_both{white-space:nowrap;line-height:1em}.qts_both img{margin-right:4px} /*messages*/ .error {color:#cc0000;} .form-table th { width: 15%; min-width: 15% !important; } .form-table td > span { display: inline-block; min-width: 100px; } .form-table label { display: block; margin-bottom: 8px; } .qts-slug { width: 35%; } #qts-loading { display: none; position: relative; margin-left: 5px; vertical-align: middle; } div.updated.success{ border-color: #298e00; background-color: #D4EDC9; } .error a.button-primary { color: white !important; text-decoration: none !important; } .ko { color: #c00; } jQuery(document).ready(function(t){function i(){t(".item-title").each(function(){n[t(this).closest("li").attr("id")]=[],n[t(this).closest("li").attr("id")].Title=t(this).find("span").html(),"undefined"==typeof n[t(this).closest("li").attr("id")].Original&&(n[t(this).closest("li").attr("id")].Original=n[t(this).closest("li").attr("id")].Title)}),t(".menu-item").each(function(){this_label=t(this).find("input.edit-menu-item-title"),this_title=t(this).find("input.edit-menu-item-attr-title"),n[t(this).attr("id")][this_label.attr("id")]=this_label.val(),n[t(this).attr("id")][this_title.attr("id")]=this_title.val()})}function e(){regexp=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i"),t(".item-title").each(function(){(matches=n[t(this).closest("li").attr("id")].Original.match(regexp))&&t(this).closest("li").find(".link-to-original a").text(matches[1])}),regexp2=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i"),t(".menu-item").each(function(){this_label=t(this).find("input.edit-menu-item-title"),this_title=t(this).find("input.edit-menu-item-attr-title"),"all"===d?(this_label.val(n[t(this).attr("id")][this_label.attr("id")]),this_title.val(n[t(this).attr("id")][this_title.attr("id")])):((matches=n[t(this).attr("id")][this_label.attr("id")].match(regexp2))&&this_label.val(matches[1]),(matches2=n[t(this).attr("id")][this_title.attr("id")].match(regexp2))&&this_title.val(matches2[1]))})}function a(){t(".menu-item").each(function(){this_label=t(this).find("input.edit-menu-item-title"),this_title=t(this).find("input.edit-menu-item-attr-title"),this_label.val(n[t(this).attr("id")][this_label.attr("id")]),this_title.val(n[t(this).attr("id")][this_title.attr("id")]),t(this).find(".link-to-original a").text(n[t(this).closest("li").attr("id")].Original)})}var n=[],s=wpNavMenu.addMenuItemToBottom;wpNavMenu.addMenuItemToBottom=function(t,a){s(t,a),i(),e()};var l=wpNavMenu.addMenuItemToTop;wpNavMenu.addMenuItemToTop=function(t,a){l(t,a),i(),e()};var d=t("#qt-languages :radio:checked").val();i(),e(),t(document).ajaxComplete(function(){d=t("#qt-languages :radio:checked").val(),e()}),t("#qt-languages :radio").change(function(){d=t("#qt-languages :radio:checked").val(),e()}),t(".submit-add-to-menu").click(function(){d=t("#qt-languages :radio:checked").val(),e()}),t(document.body).on("change","input.edit-menu-item-title",null,function(){regexp=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i");var i=n[t(this).closest("li").attr("id")][t(this).attr("id")],e=t(this).val();regexp.test(i)&&(n[t(this).closest("li").attr("id")][t(this).attr("id")]=i.replace(regexp,"<!--:"+d+"-->"+e+"<!--:-->"))}),t(document.body).on("change","input.edit-menu-item-attr-title",null,function(){regexp=new RegExp("<!--:"+d+"-->(.*?)<!--:-->","i");var i=n[t(this).closest("li").attr("id")][t(this).attr("id")],e=t(this).val();qts_new_string="<!--:"+d+"-->"+e+"<!--:-->","undefined"==typeof i||""==i?(n[t(this).closest("li").attr("id")][t(this).attr("id")]=qts_new_string,t(this).val(qts_new_string)):regexp.test(i)?n[t(this).closest("li").attr("id")][t(this).attr("id")]=i.replace(regexp,qts_new_string):(t(this).val(i+qts_new_string),n[t(this).closest("li").attr("id")][t(this).attr("id")]=i+qts_new_string)}),t(".menu-save").click(function(){a()}),window.onbeforeunload=function(){a()}}); jQuery(document).ready(function($){ var qts_menuitemlang = []; // Change titles (and values) when user add new item to the menu: var oldAddMenuItemToBottom = wpNavMenu.addMenuItemToBottom; wpNavMenu.addMenuItemToBottom = function( menuMarkup, req ) { oldAddMenuItemToBottom( menuMarkup, req ); saveLang(); changeTitles(); }; var oldAddMenuItemToTop = wpNavMenu.addMenuItemToTop; wpNavMenu.addMenuItemToTop = function( menuMarkup, req ) { oldAddMenuItemToTop( menuMarkup, req ); saveLang(); changeTitles(); }; // Change titles (and values) when document is ready: var lang = $('#qt-languages :radio:checked').val(); saveLang(); changeTitles(); /** * Change titles when there is a click on pagination * on show all pages tab. * * It happens when there are a large number of pages. */ $( document ).ajaxComplete(function() { lang = $('#qt-languages :radio:checked').val(); changeTitles(); }); // Change titles (and values) when language is changed: $('#qt-languages :radio').change( function() { lang = $('#qt-languages :radio:checked').val(); changeTitles(); }); // Change titles (and values) when new menu is added: $('.submit-add-to-menu').click( function() { lang = $('#qt-languages :radio:checked').val(); changeTitles(); }); // Update original value when user changed a value: $(document.body).on('change', 'input.edit-menu-item-title', null, function() { regexp = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); var qts_old_value = qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")], qts_new_value = $(this).val(); if( regexp.test(qts_old_value ) ) { qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_old_value.replace( regexp,'<!--:' + lang + '-->' + qts_new_value + '<!--:-->'); } }); // Update original title="" value when user changed a value: $(document.body).on('change', 'input.edit-menu-item-attr-title', null, function() { regexp = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); var qts_old_value = qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")], qts_new_value = $(this).val(); qts_new_string = '<!--:' + lang + '-->'+ qts_new_value + '<!--:-->'; if(typeof qts_old_value === "undefined" || qts_old_value == "" ) { qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_new_string; $(this).val( qts_new_string ); } else if( regexp.test(qts_old_value ) ) { qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_old_value.replace( regexp,qts_new_string); } else { $(this).val( qts_old_value + qts_new_string ); qts_menuitemlang[ $(this).closest("li").attr("id") ][ $(this).attr("id")] = qts_old_value + qts_new_string; } }); // Change titles (and values): function saveLang() { $('.item-title').each( function() { qts_menuitemlang[ $(this).closest("li").attr("id") ] = []; qts_menuitemlang[ $(this).closest("li").attr("id") ]['Title'] = $(this).find("span").html(); if( typeof qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original'] === "undefined" ) { qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original'] = qts_menuitemlang[ $(this).closest("li").attr("id") ]['Title']; } }); $('.menu-item').each( function() { this_label = $(this).find('input.edit-menu-item-title'); this_title = $(this).find('input.edit-menu-item-attr-title'); qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ] = this_label.val(); qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ] = this_title.val(); }); } // Change titles (and values): function changeTitles() { // Change menu item titles and links (on the right side): // TODO: review, and dump regexp = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); $('.item-title').each( function() { if (matches = qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original'].match(regexp)) { $(this).closest('li').find('.link-to-original a').text( matches[1] ); } }); // Change menu item title inputs (on the right side): Navigation Label, Title Attribute... regexp2 = new RegExp('<!--:' + lang + '-->(.*?)<!--:-->', 'i'); $('.menu-item').each( function() { this_label = $(this).find('input.edit-menu-item-title'); this_title = $(this).find('input.edit-menu-item-attr-title'); if( lang === "all") { this_label.val(qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ] ); this_title.val(qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ] ); } else { if (matches = qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ].match(regexp2)) { this_label.val( matches[1] ); } if (matches2 = qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ].match(regexp2)) { this_title.val( matches2[1] ); } } }); // Change menu item checkbox labels (on the left side): // TODO: fix this, not a show stopper /*$('label.menu-item-title').each( function() { var textNode = $(this).contents().get(1); });*/ } // Restore the original input values: function restoreValues(){ $('.menu-item').each( function() { this_label = $(this).find('input.edit-menu-item-title'); this_title = $(this).find('input.edit-menu-item-attr-title'); this_label.val( qts_menuitemlang[ $(this).attr("id") ][this_label.attr("id") ] ); this_title.val( qts_menuitemlang[ $(this).attr("id") ][this_title.attr("id") ] ); $(this).find('.link-to-original a').text( qts_menuitemlang[ $(this).closest("li").attr("id") ]['Original']); }); } // Just before saving restore the original input values: $('.menu-save').click(function() { restoreValues(); }); // Just before leaving the page (or refresh) restore the original input values: window.onbeforeunload = function(){ restoreValues(); return; }; }); jQuery(document).ready(function($) { function _debug(msg) { if(window.console) { console.debug(msg); } } var upgrade_box = $('#qts-upgrade-box'), upgrade_form = $('#qts-upgrade-form'), upgrade_button = $('#qts-upgrade-button'), notice_status = function(_status) { upgrade_box.removeClass().addClass(_status); }, block_form = function(_block) { if (_block) { $('#qts-loading').show(); upgrade_button.attr('disabled', true); } else { $('#qts-loading').hide(); upgrade_button.attr('disabled', false); } }, check_types = function(_response) { block_form(false); upgrade_form.find('.message').remove(); switch (_response.status) { default: case 0: upgrade_form.prepend('<p class=\'message ko\'>'+_response.message+'</p>'); break; case 1: notice_status('updated success'); upgrade_form.remove(); upgrade_box.append('<p><strong>'+_response.message+'</strong></p>'); upgrade_box.delay(2500).fadeTo(1300, 0, function(){ upgrade_box.remove(); }); break; case 2: var data_ = '<p class=\'message\'>'+_response.message+'</p>'; data_ += '<select id=\'qts-slug-type\' class=\'message\'>'; for (opt in _response.options) data_ += '<option value=\''+opt+'\'>'+_response.options[opt]+'</option>'; data_ += '</select>'; upgrade_form.prepend(data_); break; } }, start_upgrade = function(_event) { _event.preventDefault(); notice_status('updated'); block_form(true); var package_ = {}; package_.action = $('#qts-upgrade-action').val(); package_.nonce = $('#qts-upgrade-nonce').val(); if ( $('#qts-slug-type').length ) package_.type = $('#qts-slug-type').val(); $.post(ajaxurl, package_, check_types); }; upgrade_button.bind('click', start_upgrade); }); /*############### Error messages ######################*/ jQuery(function(){ var error_msg = jQuery("#message p[class='setting-error-message']"); // look for admin messages with the "setting-error-message" error class if (error_msg.length != 0) { // get the title var error_setting = error_msg.attr('title'); // look for the label with the "for" attribute=setting title and give it an "error" class (style this in the css file!) jQuery("label[for='" + error_setting + "']").addClass('error'); // look for the input with id=setting title and add a red border to it. jQuery("input[id='" + error_setting + "']").attr('style', 'border-color: red'); } }); <?php /** * QtranslateSlug_Widget class * * @since 1.0 */ class QtranslateSlugWidget extends WP_Widget { function QtranslateSlugWidget() { $widget_ops = array('classname' => 'qts_widget', 'description' => __('Allows your visitors to choose a Language.','qts') ); $this->WP_Widget('qtranslateslug', __('Language selector', 'qts'), $widget_ops); } function widget($args, $instance) { extract($args); echo $before_widget; $title = empty($instance['title']) ? __('Language', 'qts') : apply_filters('widget_title', $instance['title']); $hide_title = empty($instance['hide-title']) ? false : 'on'; $type = $instance['type']; $short_text = ($instance['short_text'] == 'on') ? true : false ; if( $type!='text' && $type!='image' && $type!='both' && $type!='dropdown' ) $type='text'; if( $hide_title!='on') echo $before_title . $title . $after_title; qts_language_menu($type, array( 'id' => $this->id, 'short' => $short_text ) ); echo $after_widget; } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = $new_instance['title']; $instance['hide-title'] = $new_instance['hide-title']; $instance['type'] = $new_instance['type']; $instance['short_text'] = $new_instance['short_text']; return $instance; } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'hide-title' => false, 'type' => 'text' ) ); $title = $instance['title']; $hide_title = $instance['hide-title']; $type = $instance['type']; $short_text = isset($instance['short_text']) ? $instance['short_text'] : ''; ?> <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'qts'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p> <p><label for="<?php echo $this->get_field_id('hide-title'); ?>"><?php _e('Hide Title:', 'qts'); ?> <input type="checkbox" id="<?php echo $this->get_field_id('hide-title'); ?>" name="<?php echo $this->get_field_name('hide-title'); ?>" <?php echo ($hide_title=='on')?'checked="checked"':''; ?>/></label></p> <p><?php _e('Display:', 'qts'); ?></p> <p><label for="<?php echo $this->get_field_id('type'); ?>1"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>1" value="text"<?php echo ($type=='text')?' checked="checked"':'' ?>/> <?php _e('Text only', 'qts'); ?></label></p> <p><label for="<?php echo $this->get_field_id('type'); ?>2"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>2" value="image"<?php echo ($type=='image')?' checked="checked"':'' ?>/> <?php _e('Image only', 'qts'); ?></label></p> <p><label for="<?php echo $this->get_field_id('type'); ?>3"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>3" value="both"<?php echo ($type=='both')?' checked="checked"':'' ?>/> <?php _e('Text and Image', 'qts'); ?></label></p> <p><label for="<?php echo $this->get_field_id('type'); ?>4"><input type="radio" name="<?php echo $this->get_field_name('type'); ?>" id="<?php echo $this->get_field_id('type'); ?>4" value="dropdown"<?php echo ($type=='dropdown')?' checked="checked"':'' ?>/> <?php _e('Dropdown Box', 'qts'); ?></label></p> <p><label for="<?php echo $this->get_field_id('short_text'); ?>"><?php _e('Show short name (en):', 'qts'); ?> <input type="checkbox" id="<?php echo $this->get_field_id('short_text'); ?>" name="<?php echo $this->get_field_name('short_text'); ?>" <?php checked($short_text, 'on') ?>/></label></p> <?php } } <?php /** * QtranslateSlug class * * @since 1.0 */ class QtranslateSlug { /** * array with old data system * * @var bool * * @since 1.0 */ private $old_data = null; /** * stores permalink_structure option, for save queries to db * * @var string * * @since 1.0 */ private $permalink_structure; /** * Stores options slugs from database * * @var array * * @since 1.0 */ protected $options; /** * Variable used to override the language * * @var string * * @since 1.0 */ private $lang = false; /** * variable for current language */ private $current_lang = false; /** * variable for default language */ private $default_language = false; /** * Array of enabled languages * * @var array * * @since 1.0 */ private $enabled_languages = array(); /** * Array of enabled languages * * @var array * * @since 1.0 */ private $url_path_mode = ""; /** * slug in meta_key name in meta tables * * @var string * * @since 1.0 */ private $meta_key = "_qts_slug_%s"; /** * Array of translated versions of the current url * * @var array * * @since 1.0 */ private $current_url = array(); /** * Variable that contains the prefix for base plugin function names (qtranslate/qtranslate-x) * * @var string * * @since ? */ private $plugin_prefix = ""; /** * return the current / temp language * * @since 1.0 */ private function get_lang() { global $q_config; return ($this->lang) ? $this->lang : $q_config['language']; } /** * return the current / temp language * we store and use it all the way! * * @since 1.1.9 */ private function get_currentlang() { return $this->current_lang; } /** * return the enabled languages * we store and use it all the way! * * @since 1.1.9 */ private function get_enabled_languages() { return $this->enabled_languages; } /** * return the enabled languages * we store and use it all the way! * * @since 1.1.9 */ private function get_url_path_mode() { return $this->url_path_mode; } /** * getter: options * * @since 1.0 */ public function get_options() { $this->set_options(); return $this->options; } /** * Returns the correct prefix for the function names of the different supported translation plugins. * Will return 'qtranxf_' if qtranslate-x is used, 'qtrans_' otherwise. * * @return string the function name prefix for translation functions from other plugins * @since 1.1.9 */ private function get_plugin_prefix(){ return $this->plugin_prefix; } /** * setter: options | permalink_structure * * @since 1.0 */ public function set_options() { if (empty($this->options)) { $this->options = get_option(QTS_OPTIONS_NAME); } if (!$this->options) { add_option(QTS_OPTIONS_NAME, array()); } if (is_null($this->permalink_structure)) { $this->permalink_structure = get_option('permalink_structure'); } } /** * Sets the prefix for the active fork. See get_plugin_prefix * @since 1.1.9 * */ private function set_plugin_prefix(){ if ('' === $this->plugin_prefix){ if (is_plugin_active('qtranslate-x/qtranslate.php')){ $this->plugin_prefix = 'qtranxf_'; } else { $this->plugin_prefix = 'qtrans_'; } } } /** * Sets the url path mode based on the qtranslate or fork settings. * */ private function set_url_path_mode(){ if ('' === $this->url_path_mode){ if (is_plugin_active('qtranslate-x/qtranslate.php')){ $this->url_path_mode = QTX_URL_PATH; } else { $this->url_path_mode = QT_URL_PATH; } } } /** * setter: options | permalink_structure * * @since 1.0 */ public function save_options($new_options = false) { if (!$new_options || empty($new_options)) { return; } if (count($this->options) != count($new_options)) { return; } update_option(QTS_OPTIONS_NAME, $new_options); $this->options = $new_options; } /** * getter: meta key * * @since 1.0 */ public function get_meta_key( $force_lang = false ) { global $q_config; $lang = $this->get_lang(); if ($force_lang) { $lang = $force_lang; } return sprintf($this->meta_key, $lang); // returns: _qts_slug_en } /** * check dependences for activation * * @since 1.0 */ static function block_activate() { global $wp_version; include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); return ( version_compare($wp_version, "3.3", "<" ) || ( !is_plugin_active('qtranslate/qtranslate.php') && !is_plugin_active('mqtranslate/mqtranslate.php') && !is_plugin_active('qtranslate-x/qtranslate.php')) ); } /** * check if exists qtranslate and do the installation, support multisite * * @since 1.0 */ public function install() { global $wpdb; if ( self::block_activate() ) { return; } if ( function_exists('is_multisite') && is_multisite() ) { if (isset($_GET['networkwide']) && ($_GET['networkwide'] == 1)) { $old_blog = $wpdb->blogid; $blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs")); foreach ($blogids as $blog_id) { switch_to_blog($blog_id); $this->activate(); } switch_to_blog($old_blog); return; } } $this->activate(); } /** * activates and do the installation * * @since 1.0 */ private function activate() { global $wp_rewrite; $this->set_options(); $qts_version = get_option('qts_version'); // checks version and do the installation if ( !$qts_version || $qts_version != QTS_VERSION ) { // install termmeta table using functions from Simple-Term-Meta // ( http://wordpress.org/extend/plugins/simple-term-meta/ ) install_term_meta_table(); // update installed option update_option('qts_version', QTS_VERSION); } // regenerate rewrite rules in db add_action( 'generate_rewrite_rules', array(&$this, 'modify_rewrite_rules') ); flush_rewrite_rules(); } /** * register front end styles and enqueue * * @since 1.1.7 */ public function register_plugin_styles() { wp_register_style( 'qts_front_styles', plugins_url( '/assets/css/qts-default.css', dirname(__FILE__ ) ) ); wp_enqueue_style( 'qts_front_styles' ); } /** * register minified front end styles and enqueue * 43LC: easier duplicating the function :| * @since 1.1.8 */ public function register_plugin_styles_min() { wp_register_style( 'qts_front_styles', plugins_url( '/assets/css/qts-default.min.css', dirname(__FILE__ ) ) ); wp_enqueue_style( 'qts_front_styles' ); } /** * print front end styles * * @since 1.1.7 */ public function print_plugin_styles() { $css_path = dirname(__FILE__).'/assets/css/qts-default.css'; if (!file_exists($css_path) || !is_readable($css_path)) { return; } $default_css_file = file_get_contents($css_path, FILE_USE_INCLUDE_PATH); $css = "<style media=\"screen\">\n"; $css .= "$default_css_file\n"; $css .="</style>\n"; echo $css; } /** * actions when deactivating the plugin * * @since 1.0 */ public function deactivate() { global $wp_rewrite; // regenerate rewrite rules in db remove_action( 'generate_rewrite_rules', array(&$this, 'modify_rewrite_rules') ); $wp_rewrite->flush_rules(); } /** * admin notice: update your old data * * @since 1.0 */ function notice_update(){ global $current_screen; if ($current_screen->id != 'settings_page_qtranslate-slug-settings') { echo "<div class=\"updated\">" . PHP_EOL; echo "<p><strong>Qtranslate Slug:</strong></p>" . PHP_EOL; printf("<p>%s <a href=\"%s\" class=\"button\">%s</a></p>", __('Please update your old data to the new system.', 'qts'), add_query_arg(array('page' => 'qtranslate-slug-settings'), 'options-general.php'), __('upgrade now', 'qts')) . PHP_EOL; echo "</div>" . PHP_EOL; } } /** * admin notice: update your old data * * @since 1.0 */ function notice_dependences(){ global $current_screen; $ornewer=__('or newer','qts'); $info_url=admin_url('plugin-install.php?tab=plugin-information'); echo '<div class="error">' . PHP_EOL; echo '<p><strong>Qtranslate Slug:</strong></p>' . PHP_EOL; echo '<p>'; printf(__('This plugin requires at least %s and either %s, or %s, or %s', 'qts'),'<strong>WordPress 3.3</strong>','<a href="'.$info_url.'&plugin=qtranslate-x&TB_iframe=true" class="thickbox" aria-label="'.__('More information about', 'qts').' '.'qTranslate-X" data-title="qTranslate-X"><strong>qTranslate-X</strong></a> (2.9 '.$ornewer.')','<a href="'.$info_url.'&plugin=mqtranslate&TB_iframe=true" class="thickbox" aria-label="'.__('More information about', 'qts').' '.'mqTranslate" data-title="mqTranslate"><strong>mqTranslate</strong></a> (2.6.2.4 '.$ornewer.')','<a href="'.$info_url.'&plugin=qtranslate&TB_iframe=true" class="thickbox" aria-label="'.__('More information about', 'qts').' '.'qTranslate" data-title="qTranslate"><strong>qTranslate</strong></a> (2.5.8 '.$ornewer.')'); echo '</p>' . PHP_EOL; echo '</div>' . PHP_EOL; } /** * checks if old table 'qtranslate_slug' exists and is not empty * * @return object | false * * @since 1.0 */ public function check_old_data() { global $wpdb; if ($this->old_data === false) { return false; } $table_name = $wpdb->get_var("SHOW TABLES LIKE '{$wpdb->prefix}qtranslate_slug'"); if (!empty($table_name)) { $this->old_data = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}qtranslate_slug"); } if ( empty($table_name) || empty($this->old_data) ) { $this->old_data = false; } return $this->old_data; } /** * actions when deactivating the plugin * * @since 1.0 */ private function check_old_versions() { if ( $this->check_old_data() ) { add_action('admin_notices', array(&$this, 'notice_update')); } } /** * Initialise the Class with all hooks * * @since 1.0 */ function init() { load_plugin_textdomain( 'qts', false, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages' ); // checking plugin activate if ( self::block_activate() ) { if (is_admin()) { add_action('admin_notices', array(&$this, 'notice_dependences')); } return; } // caching qts options $this->set_options(); global $q_config; // until we get a proper function, this will make it for it. $this->current_lang = $q_config['language']; $this->enabled_languages = $q_config['enabled_languages']; $this->default_language = $q_config['default_language']; $this->set_plugin_prefix(); $this->set_url_path_mode(); if ( is_admin() ) { $this->check_old_versions(); // add filters add_filter( 'qts_validate_post_slug', array(&$this, 'validate_post_slug'), 0, 3 ); add_filter( 'qts_validate_post_slug', array(&$this, 'unique_post_slug'), 1, 3 ); add_filter( 'qts_validate_term_slug', array(&$this, 'validate_term_slug'), 0, 3 ); add_filter( 'qts_validate_term_slug', array(&$this, 'unique_term_slug'), 1, 3 ); add_filter( 'wp_get_object_terms', array(&$this, 'get_object_terms'), 0, 4 ); add_filter( 'get_terms', array(&$this, 'get_terms'), 0, 3 ); // admin actions add_action( 'admin_menu', array(&$this, 'add_slug_meta_box') ); add_action( 'save_post', array(&$this, 'save_postdata'), 605, 2 ); add_action( 'delete_term', array(&$this, 'delete_term'), 0, 3); add_action( 'created_term', array(&$this, 'save_term'), 605, 3); add_action( 'edited_term', array(&$this, 'save_term'), 605, 3 ); add_action( 'admin_head', array(&$this, 'hide_slug_box'), 900 ); add_action( 'init', array(&$this, 'taxonomies_hooks'), 805 ); add_action( 'wp_dashboard_setup', array(&$this, 'remove_dashboard_widgets') ); add_action( 'admin_head', array(&$this, 'hide_quick_edit'), 600 ); if(!defined('QTRANSLATE_FILE')) add_action( 'admin_init', array(&$this, 'fix_nav_menu') ); } else { add_filter( 'request', array(&$this, 'filter_request') ); // adds external style file $qts_options = $this->get_options(); if ( !isset($qts_options[QTS_PREFIX.'styles']) || $qts_options[QTS_PREFIX.'styles'] == "file" ) { add_action( 'wp_enqueue_scripts', array( &$this, 'register_plugin_styles' ) ); } elseif ($qts_options[QTS_PREFIX.'styles'] == "minified" ) { add_action( 'wp_enqueue_scripts', array( &$this, 'register_plugin_styles_min' ) ); } elseif ($qts_options[QTS_PREFIX.'styles'] == "inline" ) { add_action( 'wp_print_styles', array( &$this, 'print_plugin_styles' ), 20 ); } } add_filter( 'query_vars', array(&$this, 'query_vars')); add_action( 'generate_rewrite_rules', array(&$this, 'modify_rewrite_rules') ); // remove from qtranslate the discouraged meta http-equiv, inline styles // (including flag URLs) and wrong hreflang links remove_action('wp_head', $this->get_plugin_prefix() . 'header'); if( "qtranxf_" === $this->get_plugin_prefix() ) { remove_action('wp_head', $this->get_plugin_prefix() . 'head'); } // add proper hreflang links add_action('wp_head',array(&$this, 'qtranslate_slug_header_extended')); // remove some Qtranslate filters remove_filter( 'page_link', $this->get_plugin_prefix() . 'convertURL' ); remove_filter( 'post_link', $this->get_plugin_prefix() . 'convertURL' ); remove_filter( 'category_link', $this->get_plugin_prefix() . 'convertURL' ); remove_filter( 'tag_link', $this->get_plugin_prefix() . 'convertURL' ); add_filter( 'qts_permastruct' , array(&$this, 'get_extra_permastruct'), 0, 2); add_filter( 'qts_url_args', array(&$this, 'parse_url_args'), 0, 1); add_filter( 'home_url', array(&$this, 'home_url'), 10, 4); add_filter( 'post_type_link', array(&$this, 'post_type_link'), 600, 4 ); add_filter( 'post_link', array(&$this, 'post_link'), 0, 3 ); add_filter( '_get_page_link', array(&$this, '_get_page_link'), 0, 2 ); add_filter( 'term_link', array(&$this, 'term_link'), 600, 3 ); add_filter( 'single_term_title', $this->get_plugin_prefix() . 'useTermLib', 805 ); add_filter( 'get_blogs_of_user', array(&$this, 'blog_names'), 1 ); add_action( 'widgets_init', array(&$this, 'widget_init'), 100 ); // Add specific CSS class to body class based on current lang add_filter('body_class', array($this, 'qts_body_class'), 600, 1 ); add_filter( 'nav_menu_attr_title', array($this, 'qts_filter_attr_title'), 0, 3 ); } /** * Filters menu link attribute * * @since 1.1.9 */ function qts_filter_attr_title( $attr_title ) { return $this->qts_quickuse($attr_title); } /** * Adds proper links to the content with available translations. * Fixes issue #25 * * @global $qtranslate_slug used to convert the url * @global $q_config available languages * * @since 1.1.8 */ public function qtranslate_slug_header_extended(){ if(is_404()) return; //taken from qtx echo '<link hreflang="x-default" href="'.$this->get_current_url($this->default_language) .'" rel="alternate" />'.PHP_EOL; foreach($this->get_enabled_languages() as $language) { if($language != $this->get_currentlang() ) echo '<link hreflang="'.$language.'" href="'.$this->get_current_url($language).'" rel="alternate" />'."\n"; } } /** * Add a class based on the current language * @param array $classes list of classes */ public function qts_body_class( $classes ) { // add 'class-name' to the $classes array $classes[] = call_user_func($this->get_plugin_prefix() . 'getLanguage'); // return the $classes array return $classes; } /** * Finds the translated slug of the given post * based on: https://wordpress.org/support/topic/permalink-for-other-languages * @param int $id the post id * @param string $lang which language to look for * @return string the slug or empty if not found * @author vbkun * @since 1.1.13 */ public function get_slug($id, $lang){ $slugArray = get_post_meta( $id, '_qts_slug_'.$lang ); return !empty($slugArray) ? $slugArray[0] : ""; } // TODO: properly test this /** * Get text in $lang, or in the current lang * * @package Qtranslate Slug * @since 1.1.9 * @param string $text the whole text * @param string $lang (optional) get the text in this language, or if empty, the current * @return array the text in the required language */ public function qts_quickuse( $text,$lang='' ){ global $q_config; $lang = '' == $lang ? $q_config['language'] : $lang; $parsed_text = call_user_func($this->get_plugin_prefix() . 'getSortedLanguages',$text); if( !empty($parsed_text[$lang])){ return $parsed_text[$lang]; } } /** * Adds news rules to translate the URL bases, * this function must be called on flush_rewrite or 'flush_rewrite_rules' * * @param object $wp_rewrite * * @since 1.0 */ public function modify_rewrite_rules() { // do we need this global? //global $wp_rewrite; // post types rules $post_types = get_post_types( array('_builtin' => false ), 'objects'); foreach ( $post_types as $post_type ) { $this->generate_extra_rules( $post_type->name ); } // taxonomies rules $taxonomies = $this->get_public_taxonomies(); foreach ( $taxonomies as $taxonomy ) { $this->generate_extra_rules( $taxonomy->name ); } } /** * Helper: news rules to translate the URL bases * * @param string $name name of extra permastruct * @param string $type 'post_type' or 'taxonomy' * * @since 1.0 */ private function generate_extra_rules( $name = false ) { global $wp_rewrite; foreach ($this->get_enabled_languages() as $lang): if ( $base = $this->get_base_slug( $name, $lang) ): $struct = $wp_rewrite->extra_permastructs[$name]; if ( is_array( $struct ) ) { if ( count( $struct ) == 2 ) $rules = $wp_rewrite->generate_rewrite_rules( "/$base/%$name%", $struct[1] ); else $rules = $wp_rewrite->generate_rewrite_rules( "/$base/%$name%", $struct['ep_mask'], $struct['paged'], $struct['feed'], $struct['forcomments'], $struct['walk_dirs'], $struct['endpoints'] ); } else { $rules = $wp_rewrite->generate_rewrite_rules( "/$base/%$name%" ); } $wp_rewrite->rules = array_merge($rules, $wp_rewrite->rules); endif; endforeach; } /** * Helper that gets a base slug stored in options * * @param string $name of extra permastruct * @return string base slug for 'post_type' and 'language' or false * * @since 1.0 */ public function get_base_slug($name = false, $lang = false) { if ( !$name || !$lang ) { return false; } if ( taxonomy_exists($name) ) { $type = 'taxonomy'; } else if ( post_type_exists($name) ) { $type = 'post_type'; } else { return false; } $qts_options = $this->get_options(); $option_name = QTS_PREFIX . $type . '_' . $name; if ( !isset($qts_options[$option_name]) || empty($qts_options[$option_name]) ) { return false; } if (isset($qts_options[$option_name][$lang])) { return $qts_options[$option_name][$lang]; } return false; } /** * Helper: returns public built-in and not built-in taxonomies * * @return array of public taxonomies objects * * @since 1.0 */ private function get_public_taxonomies() { $builtin = get_taxonomies( array( 'public' => true, 'show_ui' => true, '_builtin' => true ), 'object'); $taxonomies = get_taxonomies( array( 'public' => true, 'show_ui' => true, '_builtin' => false ), 'object' ); return array_merge( $builtin, $taxonomies ); } /** * parse and adds $_GET args passed to an url * * @param string $url parameters * @param string $lang processed * @return string converted url * * @since 1.0 */ public function parse_url_args( $url ) { global $q_config; if (is_admin()) { return $url; } $url = preg_replace('/&amp;/', '&', $url); // if no permalink structure ads ?lang=en $base_query = parse_url($q_config['url_info']['original_url']); $base_args = isset($base_query['query']) ? wp_parse_args($base_query['query']) : array(); if ( empty($this->permalink_structure) || $q_config['url_mode'] == 1 ) { $base_args['lang'] = $this->get_lang(); } // rebuild query with all args $url = add_query_arg($base_args, $url); $url = str_replace('/?', '?', $url); // TODO: hack: improve this code $url = str_replace('?', '/?', $url); // TODO: hack: improve this code return $url; } /** * Fix get_page_by_path when querying vars * * @param $query_vars objec query vars founded * @return object $query_vars processed * * @since 1.0 */ public function query_vars( $query_vars ) { global $wp, $wp_rewrite; $wp->query_vars = array(); $post_type_query_vars = array(); // Fetch the rewrite rules. $rewrite = $wp_rewrite->wp_rewrite_rules(); if ( ! empty($rewrite) ) { // If we match a rewrite rule, this will be cleared. $error = '404'; $wp->did_permalink = true; if ( isset($_SERVER['PATH_INFO']) ) { $pathinfo = $_SERVER['PATH_INFO']; } else { $pathinfo = ''; } $pathinfo_array = explode('?', $pathinfo); $pathinfo = str_replace("%", "%25", $pathinfo_array[0]); $req_uri = $_SERVER['REQUEST_URI']; $req_uri_array = explode('?', $req_uri); $req_uri = $req_uri_array[0]; $self = $_SERVER['PHP_SELF']; $home_path = parse_url(home_url()); if ( isset($home_path['path']) ) { $home_path = $home_path['path']; } else { $home_path = ''; } $home_path = trim($home_path, '/'); // Trim path info from the end and the leading home path from the // front. For path info requests, this leaves us with the requesting // filename, if any. For 404 requests, this leaves us with the // requested permalink. $req_uri = str_replace($pathinfo, '', $req_uri); $req_uri = trim($req_uri, '/'); $req_uri = preg_replace("|^$home_path|", '', $req_uri); $req_uri = trim($req_uri, '/'); if ($GLOBALS['q_config']['url_mode'] == $this->get_url_path_mode()) { $req_uri = preg_replace("/^{$GLOBALS['q_config']['language']}(\/|$)/", '', $req_uri); } $pathinfo = trim($pathinfo, '/'); $pathinfo = preg_replace("|^$home_path|", '', $pathinfo); $pathinfo = trim($pathinfo, '/'); $self = trim($self, '/'); $self = preg_replace("|^$home_path|", '', $self); $self = trim($self, '/'); // The requested permalink is in $pathinfo for path info requests and // $req_uri for other requests. if ( ! empty($pathinfo) && !preg_match('|^.*' . $wp_rewrite->index . '$|', $pathinfo) ) { $request = $pathinfo; } else { // If the request uri is the index, blank it out so that // we don't try to match it against a rule. if ( $req_uri == $wp_rewrite->index ) $req_uri = ''; $request = $req_uri; } $wp->request = $request; // Look for matches. $request_match = $request; if ( empty( $request_match ) ) { // An empty request could only match against ^$ regex if ( isset( $rewrite['$'] ) ) { $wp->matched_rule = '$'; $query = $rewrite['$']; $matches = array(''); } } else if ( $req_uri != 'wp-app.php' ) { foreach ( (array) $rewrite as $match => $query ) { // If the requesting file is the anchor of the match, prepend it to the path info. if ( ! empty($req_uri) && strpos($match, $req_uri) === 0 && $req_uri != $request ) { $request_match = $req_uri . '/' . $request; } if ( preg_match("#^$match#", $request_match, $matches) || preg_match("#^$match#", urldecode($request_match), $matches) ) { if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { // this is a verbose page match, lets check to be sure about it if ( ! $page_foundid = $this->get_page_by_path( $matches[ $varmatch[1] ] ) ) { continue; } else { wp_cache_set('qts_page_request', $page_foundid); // caching query :) } } // Got a match. $wp->matched_rule = $match; break; } } } if ( isset( $wp->matched_rule ) ) { // Trim the query of everything up to the '?'. $query = preg_replace("!^.+\?!", '', $query); // Substitute the substring matches into the query. $query = addslashes(WP_MatchesMapRegex::apply($query, $matches)); $wp->matched_query = $query; // Parse the query. parse_str($query, $perma_query_vars); // If we're processing a 404 request, clear the error var // since we found something. unset( $_GET['error'] ); unset( $error ); } // If req_uri is empty or if it is a request for ourself, unset error. if ( empty($request) || $req_uri == $self || strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) { unset( $_GET['error'] ); unset( $error ); if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) { unset( $perma_query_vars ); } $wp->did_permalink = false; } } return count(array_diff($query_vars, $wp->public_query_vars)) > 0 ? $query_vars : $wp->public_query_vars; } /** * Function called when query parameters are processed by Wordpress. * * @param $query query parameters * @return array() $query processed * * @since 1.0 */ function filter_request( $query ) { global $wp_query, $wp; if ((isset($wp->matched_query) || empty($query)) && ! isset($query['s']) ) { $query = wp_parse_args($wp->matched_query); } foreach (get_post_types() as $post_type) { if ( array_key_exists($post_type, $query) && !in_array($post_type, array('post', 'page')) ) { $query['post_type'] = $post_type; } } $page_foundit = false; // -> page if ( isset($query['pagename']) || isset($query['page_id']) ): $page = wp_cache_get('qts_page_request'); if (!$page) $page = isset($query['page_id']) ? get_post($query['page_id']) : $this->get_page_by_path($query['pagename']); if (!$page) return $query; $id = $page->ID; $cache_array = array($page); update_post_caches($cache_array, 'page'); // caching query :) wp_cache_delete('qts_page_request'); $query['pagename'] = get_page_uri($page); $function = 'get_page_link'; // -> custom post type elseif ( isset($query['post_type']) ): $page_slug = ( isset($query['name']) && !empty($query['name']) ) ? $query['name'] : $query[$query['post_type']]; $page = $this->get_page_by_path($page_slug, OBJECT, $query['post_type']); if (!$page) return $query; $id = $page->ID; $cache_array = array($page); update_post_caches($cache_array, $query['post_type']); // caching query :) $query['name'] = $query[$query['post_type']] = get_page_uri($page); $function = 'get_post_permalink'; // -> post elseif ( isset($query['name']) || isset($query['p']) ): $post = isset($query['p']) ? get_post($query['p']) : $this->get_page_by_path($query['name'], OBJECT, 'post'); if (!$post) { return $query; } $query['name'] = $post->post_name; $id = $post->ID; $cache_array = array($post); update_post_caches($cache_array); $function = 'get_permalink'; // -> category elseif ( ( isset($query['category_name']) || isset($query['cat'])) ): if ( isset($query['category_name']) ) { $term_slug = $this->get_last_slash( $query['category_name'] ); } $term = isset($query['cat']) ? get_term($query['cat'], 'category') : $this->get_term_by('slug', $term_slug, 'category'); if (!$term) { return $query; } $cache_array = array($term); update_term_cache($cache_array, 'category'); // caching query :) $id = $term->term_id; $query['category_name'] = $term->slug; // uri $function = 'get_category_link'; // -> tag elseif ( isset($query['tag']) ): $term = $this->get_term_by('slug', $query['tag'], 'post_tag'); if (!$term) { return $query; } $cache_array = array($term); update_term_cache($cache_array, 'post_tag'); // caching query :) $id = $term->term_id; $query['tag'] = $term->slug; $function = 'get_tag_link'; endif; // -> taxonomy $taxonomies = get_taxonomies( array( 'public' => true, '_builtin' => false ) ); foreach ($taxonomies as $term_name): if ( isset($query[$term_name]) ) { $term_slug = $this->get_last_slash( $query[$term_name] ); $term = $this->get_term_by('slug', $term_slug, $term_name); if (!$term) { return $query; } $cache_array = array($term); update_term_cache($cache_array, $term_name); // caching query :) $id = $term; $query[$term_name] = $term->slug; $function = 'get_term_link'; } endforeach; // -> home url if ( empty($query) ) { $function = 'home_url'; $id = ''; } // -> search if (isset($query['s'])) { $id = $query['s']; $function="get_search_link"; } if ( isset($function) ) { // parse all languages links foreach( $this->get_enabled_languages() as $lang ) { $this->lang = $lang; $this->current_url[$lang] = esc_url(apply_filters('qts_url_args', call_user_func($function, $id))); } $this->lang = false; } return $query; } /** * Parse a hierarquical name and extract the last one * * @param string $lang Page path * @return string * * @since 1.0 */ public function get_current_url( $lang = false ) { if (!$lang) { $lang = $this->get_lang(); } if (isset($this->current_url[$lang]) && !empty($this->current_url[$lang])) { return $this->current_url[$lang]; } return ''; } /** * Parse a hierarquical name and extract the last one * * @param string $slug Page path * @return string * * @since 1.0 */ private function get_last_slash($slug) { $slug = rawurlencode( urldecode( $slug ) ); $slug = str_replace('%2F', '/', $slug); $slug = str_replace('%20', ' ', $slug); $exploded_slug = explode('/', $slug); return array_pop( $exploded_slug ); } /** * Retrieves a page id given its path. * * @param string $page_path Page path * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. * @param string $post_type Optional. Post type. Default page. * @return mixed Null when complete. * * @since 1.0 */ private function get_page_id_by_path($page_path, $output = OBJECT, $post_type = 'page') { global $wpdb; $page_path = rawurlencode(urldecode($page_path)); $page_path = str_replace('%2F', '/', $page_path); $page_path = str_replace('%20', ' ', $page_path); $parts = explode( '/', trim( $page_path, '/' ) ); $parts = array_map( 'esc_sql', $parts ); $parts = array_map( 'sanitize_title_for_query', $parts ); $in_string = "'". implode( "','", $parts ) . "'"; $meta_key = $this->get_meta_key(); $post_type_sql = $post_type; $wpdb->escape_by_ref( $post_type_sql ); $pages = $wpdb->get_results( "SELECT $wpdb->posts.ID, $wpdb->posts.post_parent, $wpdb->postmeta.meta_value FROM $wpdb->posts,$wpdb->postmeta WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->postmeta.meta_key = '$meta_key' AND $wpdb->postmeta.meta_value IN ($in_string) AND ($wpdb->posts.post_type = '$post_type_sql' OR $wpdb->posts.post_type = 'attachment')", OBJECT_K ); $revparts = array_reverse( $parts ); $foundid = 0; foreach ( (array) $pages as $page ) { if ( $page->meta_value == $revparts[0] ) { $count = 0; $p = $page; while ( $p->post_parent != 0 && isset( $pages[ $p->post_parent ] ) ) { $count++; $parent = $pages[ $p->post_parent ]; if ( ! isset( $revparts[ $count ] ) || $parent->meta_value != $revparts[ $count ] ) { break; } $p = $parent; } if ( $p->post_parent == 0 && $count+1 == count( $revparts ) && $p->meta_value == $revparts[ $count ] ) { $foundid = $page->ID; break; } } } if ( $foundid ) { return $foundid; } else { $last_part = array_pop($parts); $page_id = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_name = '$last_part' AND (post_type = '$post_type_sql' OR post_type = 'attachment')" ); if ( $page_id ) { return $page_id; } } return null; } /** * Retrieves a page given its path. * * @param string $page_path Page path * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. * @param string $post_type Optional. Post type. Default page. * @return mixed Null when complete. * * @since 1.0 */ private function get_page_by_path($page_path, $output = OBJECT, $post_type = 'page') { $foundid = $this->get_page_id_by_path($page_path, $output, $post_type); if ( $foundid ) { return get_post( $foundid, $output ); } return null; } /** * Ignores if the mod_rewrite func is the caller * * @return boolean * * @since 1.0 */ private function ignore_rewrite_caller() { $backtrace = debug_backtrace(); $ignore_functions = array('mod_rewrite_rules', 'save_mod_rewrite_rules', 'flush_rules', 'rewrite_rules', 'wp_rewrite_rules', 'query_vars'); if ( isset($backtrace['function']) ) { if (in_array($backtrace['function'], $ignore_functions)) { return true; } } else { foreach ($backtrace as $trace) { if ( isset($trace['function']) && in_array($trace['function'], $ignore_functions) ) { return true; } } } return false; } /** * Retrieve the home url for a given site. * * @param int $blog_id (optional) Blog ID. Defaults to current blog. * @param string $path (optional) Path relative to the home url. * @param string $scheme (optional) Scheme to give the home url context. Currently 'http', 'https'. * @return string Home url link with optional path appended. * * @since 1.0 */ public function home_url($url, $path, $scheme, $blog_id) { if ( !in_array( $scheme, array( 'http', 'https' ) ) ) { $scheme = is_ssl() && !is_admin() ? 'https' : 'http'; } if ( empty( $blog_id ) || !is_multisite() ) { $url = get_option( 'home' ); } else { $url = get_blog_option( $blog_id, 'home' ); } if ( 'http' != $scheme ) { $url = str_replace( 'http://', "$scheme://", $url ); } $ignore_caller = $this->ignore_rewrite_caller(); if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) { $url .= '/' . ltrim( $path, '/' ); } if ( !$ignore_caller ) { $url = call_user_func($this->get_plugin_prefix() . 'convertURL', $url, $this->get_lang(), true); } return $url; } /** * Filter that changes the permastruct depending * * @param string $permastruct default permastruct given b wp_rewrite * @param string $name the name of the extra permastruct * @return string processed permastruct * * @since 1.0 */ public function get_extra_permastruct( $permastruct = false, $name = false ) { if ( !$name || !$permastruct ) { return ''; } if ( $base = $this->get_base_slug($name, $this->get_lang()) ) { return "/$base/%$name%"; } return $permastruct; } /** * Filter that translates the slug parts in a page link * * @param $link the link for the page generated by Wordpress * @param $id the id of the page * @return the link translated * * @since 1.0 */ public function post_type_link( $link, $post, $leavename, $sample ) { global $wp_rewrite; if ( is_wp_error( $post ) ) { return $post; } $post_link = apply_filters( 'qts_permastruct', $wp_rewrite->get_extra_permastruct($post->post_type), $post->post_type); $slug = get_post_meta( $post->ID, $this->get_meta_key(), true ); if (!$slug) { $slug = $post->post_name; } $draft_or_pending = isset($post->post_status) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) ); $post_type = get_post_type_object($post->post_type); if ( !empty($post_link) && ( !$draft_or_pending || $sample ) ) { if ( ! $leavename ) { if ( $post_type->hierarchical ) $slug = $this->get_page_uri($post->ID); $post_link = str_replace("%$post->post_type%", $slug, $post_link); } $post_link = home_url( user_trailingslashit($post_link) ); } else { if ( $post_type->query_var && ( isset($post->post_status) && !$draft_or_pending ) ) { $post_link = add_query_arg($post_type->query_var, $slug, ''); } else { $post_link = add_query_arg(array('post_type' => $post->post_type, 'p' => $post->ID), ''); } $post_link = home_url($post_link); } return $post_link; } /** * Filter that translates the slug in a post link * * @param $link the link generated by wordpress * @param $post the post data * @param $leavename parameter used by get_permalink. Whether to keep post name or page name. * @return the link translated * * @since 1.0 */ public function post_link( $link, $post, $leavename ) { global $q_config; $rewritecode = array( '%year%', '%monthnum%', '%day%', '%hour%', '%minute%', '%second%', $leavename? '' : '%postname%', '%post_id%', '%category%', '%author%', $leavename? '' : '%pagename%', ); if ( empty($post->ID) ) { return false; } $permalink = $this->permalink_structure; if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft')) ) { $unixtime = strtotime($post->post_date); $category = ''; if ( strpos($permalink, '%category%') !== false ) { $cats = get_the_category($post->ID); if ( $cats ) { usort($cats, '_usort_terms_by_ID'); // order by ID $category = get_term_meta($cats[0]->term_id, $this->get_meta_key(), true ); if (!$category) $category = $cats[0]->slug; if ( $parent = $cats[0]->parent ) $category = $this->get_category_parents($parent, false, '/', true) . $category; } // show default category in permalinks, without // having to assign it explicitly if ( empty($category) ) { $default_category = get_category( get_option( 'default_category' ) ); $default_category_slug = get_term_meta($default_category->term_id, $this->get_meta_key(), true ); if (!$default_category_slug) $default_category_slug = $default_category->slug; $category = is_wp_error( $default_category ) ? '' : $default_category_slug; } } $author = ''; if ( strpos($permalink, '%author%') !== false ) { $authordata = get_userdata($post->post_author); $author = $authordata->user_nicename; } $date = explode(" ",date('Y m d H i s', $unixtime)); $post_slug = get_post_meta($post->ID, $this->get_meta_key(), true ); if (!$post_slug) { $post_slug = $post->post_name; } $rewritereplace = array( $date[0], $date[1], $date[2], $date[3], $date[4], $date[5], $post_slug, $post->ID, $category, $author, $post_slug, ); $permalink = home_url( str_replace($rewritecode, $rewritereplace, $permalink)); if ($q_config['url_mode'] != 1) { $permalink = user_trailingslashit($permalink, 'single'); } } else { // if they're not using the fancy permalink option $permalink = home_url('?p=' . $post->ID); } return $permalink; } /** * Retrieve category parents with separator. * * @param int $id Category ID. * @param bool $link Optional, default is false. Whether to format with link. * @param string $separator Optional, default is '/'. How to separate categories. * @param bool $nicename Optional, default is false. Whether to use nice name for display. * @param array $visited Optional. Already linked to categories to prevent duplicates. * @return string * * @since 1.0 */ private function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) { $chain = ''; if(phpversion() >= 5.4) { $parent = get_category( $id ); } else { $parent = &get_category( $id ); } if ( is_wp_error( $parent ) ) { return $parent; } if ( $nicename ) { $name = get_term_meta($parent->term_id, $this->get_meta_key(), true ); if (!$name) { $name = $parent->slug; } } else { $name = $parent->name; } if ( $parent->parent && ( $parent->parent != $parent->term_id ) && !in_array( $parent->parent, $visited ) ) { $visited[] = $parent->parent; $chain .= $this->get_category_parents( $parent->parent, $link, $separator, $nicename, $visited ); } if ( $link ) { $chain .= '<a href="' . get_category_link( $parent->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s", "qts" ), $parent->name ) ) . '">'.$name.'</a>' . $separator; } else { $chain .= $name.$separator; } return $chain; } /** * Filter that translates the slug parts in a page link * * @param $link the link for the page generated by Wordpress * @param $id the id of the page * @return the link translated * * @since 1.0 */ public function _get_page_link( $link, $id ) { global $post, $wp_rewrite, $q_config; $current_post = $post; if ( !$id ) { $id = (int) $post->ID; } else { if(phpversion() >= 5.4) { $current_post = get_post($id); } else { $current_post = &get_post($id); } } $draft_or_pending = in_array( $current_post->post_status, array( 'draft', 'pending', 'auto-draft' ) ); $link = $wp_rewrite->get_page_permastruct(); if ( !empty($link) && ( isset($current_post->post_status) && !$draft_or_pending ) ) { $link = str_replace('%pagename%', $this->get_page_uri($id), $link); $link = trim($link, '/'); // hack $link = home_url("/$link/"); // hack if ($q_config['url_mode'] != 1) $link = user_trailingslashit($link, 'page'); } else { $link = home_url("?page_id=$id"); } return $link; } /** * Builds URI for a page. * * Sub pages will be in the "directory" under the parent page post name. * * @param mixed $page Page object or page ID. * @return string Page URI. * * @since 1.0 */ private function get_page_uri($page) { if ( ! is_object($page) ) { $page = get_post($page); } $uri = get_post_meta( $page->ID, $this->get_meta_key(), true ); if (!$uri) { $uri = $page->post_name; } // A page cannot be it's own parent. if ( $page->post_parent == $page->ID ) { return $uri; } while ($page->post_parent != 0) { $page = get_post($page->post_parent); $page_name = get_post_meta( $page->ID, $this->get_meta_key(), true ); if (!$page_name) { $page_name = $page->post_name; } $uri = $page_name . "/" . $uri; } return $uri; } /** * Filter that translates the slug parts in a term link * * @param $link the link for the page generated by Wordpress * @param $term object * @param $taxonomy object * @return the link translated * * @since 1.0 */ public function term_link( $link, $term, $taxonomy ) { global $wp_rewrite; // parse normal term names for ?tag=tagname if (empty($this->permalink_structure)) return $link; if ( !is_object($term) ) { if ( is_int($term) ) { $term = &get_term($term, $taxonomy); } else { $term = $this->get_term_by('slug', $term, $taxonomy); } } if ( !is_object($term) ) { $term = new WP_Error('invalid_term', __('Empty Term', 'qts')); } if ( is_wp_error( $term ) ) { return $term; } $taxonomy = $term->taxonomy; $termlink = apply_filters( 'qts_permastruct', $wp_rewrite->get_extra_permastruct($taxonomy), $taxonomy); $slug = get_term_meta( $term->term_id, $this->get_meta_key(), true ); if (!$slug) { $slug = $term->slug; } $t = get_taxonomy($taxonomy); if ( empty($termlink) ) { if ( 'category' == $taxonomy ) $termlink = '?cat=' . $term->term_id; elseif ( $t->query_var ) $termlink = "?$t->query_var=$slug"; else $termlink = "?taxonomy=$taxonomy&term=$slug"; $termlink = home_url($termlink); } else { if ( $t->rewrite['hierarchical'] ) { $hierarchical_slugs = array(); $ancestors = get_ancestors($term->term_id, $taxonomy); foreach ( (array)$ancestors as $ancestor ) { $ancestor_term = get_term($ancestor, $taxonomy); $ancestor_slug = get_term_meta( $ancestor_term->term_id, $this->get_meta_key(), true ); if (!$ancestor_slug) $ancestor_slug = $ancestor_term->slug; $hierarchical_slugs[] = $ancestor_slug; } $hierarchical_slugs = array_reverse($hierarchical_slugs); $hierarchical_slugs[] = $slug; $termlink = str_replace("%$taxonomy%", implode('/', $hierarchical_slugs), $termlink); } else { $termlink = str_replace("%$taxonomy%", $slug, $termlink); } $termlink = home_url( user_trailingslashit($termlink, 'category') ); } return $termlink; } /** * Get all Term data from database by Term field and data. * * @param (string) $field Either 'slug', 'name', or 'id' * @param (string|int) $value Search for this term value * @param (string) $taxonomy Taxonomy Name * @param (string) $output Constant OBJECT, ARRAY_A, or ARRAY_N * @param (string) $filter Optional, default is raw or no WordPress defined filter will applied. * @return (mixed) Term Row from database. Will return false if $taxonomy does not exist or $term was not found. * * @since 1.0 */ private function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw') { global $wpdb; $original_field = $field; if ( ! taxonomy_exists($taxonomy) ) { return false; } if ( 'slug' == $field ) { $field = 'm.meta_key = \''.$this->get_meta_key().'\' AND m.meta_value'; $value = sanitize_title($value); if ( empty($value) ) return false; } else if ( 'name' == $field ) { // Assume already escaped $value = stripslashes($value); $field = 't.name'; } else { $term = get_term( (int) $value, $taxonomy, $output, $filter); if ( is_wp_error( $term ) ) $term = false; return $term; } $term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t, $wpdb->term_taxonomy AS tt, $wpdb->termmeta AS m WHERE t.term_id = tt.term_id AND tt.term_id = m.term_id AND tt.taxonomy = %s AND $field = %s LIMIT 1", $taxonomy, $value) ); if ( !$term && 'slug' == $original_field ) { $field = 't.slug'; $term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND $field = %s LIMIT 1", $taxonomy, $value) ); } if ( !$term ) { return false; } wp_cache_add($term->term_id, $term, $taxonomy); $term = apply_filters('get_term', $term, $taxonomy); $term = apply_filters("get_$taxonomy", $term, $taxonomy); $term = sanitize_term($term, $taxonomy, $filter); if ( $output == OBJECT ) { return $term; } elseif ( $output == ARRAY_A ) { return get_object_vars($term); } elseif ( $output == ARRAY_N ) { return array_values(get_object_vars($term)); } else { return $term; } } /** * Fix for: * - Taxonomy names in Taxonomy Manage page * - 'Popular Tags' in Taxonomy (Tags) Manage page * - Category filter dropdown menu in Post Manage page * - Category list in Post Edit page * - 'Most Used' tags list in Post Edit page (but have issues when saving) * * @param (array) $terms * @param (string|array) $taxonomy * @since 1.2 */ function get_terms($terms, $taxonomy) { global $pagenow; if ( $pagenow != 'admin-ajax.php' ) { $meta = get_option('qtranslate_term_name'); $lang = call_user_func($this->get_plugin_prefix() . 'getLanguage'); if ( !empty( $terms ) ) { foreach ($terms as $term_index => $term) { // after saving, dont do anything if( ( isset($_POST['action'] ) && $_POST['action'] == "editedtag") || !is_object( $term ) ) { return $terms; } $termname = $term->name; if( isset( $meta[$termname][$lang] ) ) { $term->name = $meta[$termname][$lang]; } }; }; } return $terms; } /** * Fix for: * - Taxonomy & custom taxonomy names in Post Manage page * - List of tags already added to the post in Post * - Edit page (but have issues when saving) * * @param (array) $terms * @param (int|array) $obj_id * @param (string|array) $taxonomy * @param (array) $taxonomy * @since 1.2 */ function get_object_terms($terms, $obj_id, $taxonomy, $args) { global $pagenow; // Although in post edit page the tags are translated, // but when saving/updating the post Wordpress considers // the translated tags as new tags. Due to this // issue I limit this 'hack' to the post manage // page only. if ( $pagenow == 'edit.php' ) { // $taxonomy output seems to be wrapped // in single quotes, thus remove them to // make the output valid $tax = str_replace("'", "", $taxonomy); $meta = get_option('qtranslate_term_name'); $lang = call_user_func($this->get_plugin_prefix() . 'getLanguage'); if ( !empty( $terms ) ) { foreach ($terms as $term) { if( isset( $meta[$term->name][$lang] ) ) { $term->name = $meta[$term->name][$lang]; } }; }; } return $terms; } /** * hide quickedit slug * * @since 1.0 */ public function hide_quick_edit() { echo "<!-- QTS remove quick edit box -->" . PHP_EOL; echo "<style type=\"text/css\" media=\"screen\">" . PHP_EOL; echo " .inline-edit-row fieldset.inline-edit-col-left .inline-edit-col *:first-child + label + label { display: none !important }" . PHP_EOL; echo "</style>" . PHP_EOL; } /** * Hide auttomatically the wordpress slug blog in edit posts page * * @since 1.0 */ public function hide_slug_box() { global $pagenow; switch ( $pagenow ): case 'edit-tags.php': echo "<!-- QTS remove slug box -->" . PHP_EOL; echo "<script type=\"text/javascript\" charset=\"utf-8\">" . PHP_EOL; echo " jQuery(document).ready(function($){" . PHP_EOL; echo " $(\"#tag-slug\").parent().hide();" . PHP_EOL; echo " $(\".form-field td #slug\").parent().parent().hide();" . PHP_EOL; echo " });" . PHP_EOL; echo "</script>" . PHP_EOL; break; case 'post.php': echo "<!-- QTS remove slug box -->" . PHP_EOL; echo "<style type=\"text/css\" media=\"screen\">" . PHP_EOL; echo " #edit-slug-box { display: none !important}" . PHP_EOL; echo "</style>" . PHP_EOL; break; endswitch; } /** * Creates a metabox for every post, page and post type avaiable * * @since 1.0 */ public function add_slug_meta_box() { if ( function_exists( 'add_meta_box' ) ) { $context = apply_filters("qts_admin_meta_box_context","side"); $priority = apply_filters("qts_admin_meta_box_priority","high"); add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'post', $context, $priority); add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), 'page', $context, $priority); foreach ( get_post_types( array('_builtin' => false ) ) as $ptype ) add_meta_box( 'qts_sectionid', __('Slug', 'qts'), array(&$this, 'draw_meta_box'), $ptype, $context, $priority ); } } /** * Shows the fields where insert the translated slugs in the post and page edit form. * * @param $post (object) current post object * * @since 1.0 */ public function draw_meta_box( $post ) { global $q_config; // Use nonce for verification echo "<table style=\"width:100%\">" . PHP_EOL; echo "<input type=\"hidden\" name=\"qts_nonce\" id=\"qts_nonce\" value=\"" . wp_create_nonce( 'qts_nonce' ) . "\" />" . PHP_EOL; foreach ($q_config['enabled_languages'] as $lang): $slug = get_post_meta( $post->ID, $this->get_meta_key($lang), true); $value = ( $slug ) ? htmlspecialchars( $slug , ENT_QUOTES ) : ''; echo "<tr>" . PHP_EOL; echo "<th style=\"text-align:left; width:10%; color:#555 \"><label for=\"qts_{$lang}_slug\">".__($q_config['language_name'][$lang], 'qtranslate')."</label></th>" . PHP_EOL; echo "<td><input type=\"text\" id=\"qts_{$lang}_slug\" name=\"qts_{$lang}_slug\" value=\"$value\" style=\"width:90%; margin-left:10%; color:#777\" /></td>" . PHP_EOL; echo "</tr>" . PHP_EOL; endforeach; echo '</table>' . PHP_EOL; } /** * Sanitize title as slug, if empty slug * * @param $post (object) the post object * @param $slug (string) the slug name * @param $lang (string) the language * @return the slug validated * * @since 1.0 */ public function validate_post_slug( $slug, $post, $lang ) { $post_title = trim(call_user_func($this->get_plugin_prefix() . 'use',$lang, $_POST['post_title'])); $post_name = get_post_meta($post->ID, $this->get_meta_key($lang), true); if (!$post_name) { $post_name = $post->post_name; } $name = ( $post_title == '' || strlen($post_title) == 0 ) ? $post_name : $post_title; $slug = trim($slug); $slug = (empty($slug)) ? sanitize_title($name) : sanitize_title($slug); return htmlspecialchars( $slug , ENT_QUOTES ); } /** * Validates post slug against repetitions per language * * @param $post (object) the post object * @param $slug (string) the slug name * @param $lang (string) the language * @return the slug validated * * @since 1.0 */ public function unique_post_slug( $slug, $post, $lang ) { $original_status = $post->post_status; if ( in_array($post->post_status, array('draft', 'pending')) ) { $post->post_status = 'publish'; } $slug = $this->wp_unique_post_slug( $slug, $post->ID, $post->post_status, $post->post_type, $post->post_parent, $lang ); $post->post_status = $original_status; return $slug; } /** * Computes a unique slug for the post and language, when given the desired slug and some post details. * * @param string $slug the desired slug (post_name) * @param integer $post_ID * @param string $post_status no uniqueness checks are made if the post is still draft or pending * @param string $post_type * @param integer $post_parent * @return string unique slug for the post, based on language meta_value (with a -1, -2, etc. suffix) * * @since 1.0 */ public function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent, $lang ) { if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) ) { return $slug; } global $wpdb, $wp_rewrite; $feeds = $wp_rewrite->feeds; if ( ! is_array( $feeds ) ) { $feeds = array(); } $meta_key = $this->get_meta_key($lang); if ( 'attachment' == $post_type ) { // Attachment slugs must be unique across all types. $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND ID != %d LIMIT 1"; $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $slug, $post_ID ) ); if ( $post_name_check || in_array( $slug, $feeds ) || apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug ) ) { $suffix = 2; do { $alt_post_name = substr ($slug, 0, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; $post_name_check = $wpdb->get_var( $wpdb->prepare($check_sql, $alt_post_name, $post_ID ) ); $suffix++; } while ( $post_name_check ); $slug = $alt_post_name; } } else { // Post slugs must be unique across all posts. $check_sql = "SELECT $wpdb->postmeta.meta_value FROM $wpdb->posts,$wpdb->postmeta WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->postmeta.meta_key = '%s' AND $wpdb->postmeta.meta_value = '%s' AND $wpdb->posts.post_type = %s AND ID != %d LIMIT 1"; $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $meta_key, $slug, $post_type, $post_ID ) ); if ( $post_name_check || in_array( $slug, $feeds ) || apply_filters( 'wp_unique_post_slug_is_bad_flat_slug', false, $slug, $post_type ) ) { $suffix = 2; do { $alt_post_name = substr( $slug, 0, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $meta_key, $alt_post_name, $post_type, $post_ID ) ); $suffix++; } while ( $post_name_check ); $slug = $alt_post_name; } } return $slug; } /** * Saves the translated slug when the page is saved * * @param $post_id the post id * @param $post the post object * * @since 1.0 */ public function save_postdata( $post_id, $post ) { $post_type_object = get_post_type_object( $post->post_type); if ((defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) // check autosave || (!isset($_POST['post_ID']) || $post_id != $_POST['post_ID']) // check revision || (!wp_verify_nonce( $_POST['qts_nonce'], 'qts_nonce')) // verify nonce || (!current_user_can($post_type_object->cap->edit_post, $post_id))) { // check permission return $post_id; } foreach ($this->get_enabled_languages() as $lang) { $meta_name = $this->get_meta_key($lang); $meta_value = apply_filters( 'qts_validate_post_slug', $_POST["qts_{$lang}_slug"], $post, $lang); delete_post_meta($post_id, $meta_name); update_post_meta($post_id, $meta_name, $meta_value); } } /** * Display multiple input fields, one per language * * @param $term the term object * * @since 1.0 */ public function show_term_fields( $term ) { global $q_config; // prints the fields in edit page if (isset($_GET['action']) && $_GET['action'] == 'edit' ): echo "<table class=\"form-table\">" . PHP_EOL; echo "<input type=\"hidden\" name=\"qts_nonce\" id=\"qts_nonce\" value=\"" . wp_create_nonce( 'qts_nonce' ) . "\" />" . PHP_EOL; foreach( $q_config['enabled_languages'] as $lang ) { $slug = (is_object($term)) ? get_term_meta( $term->term_id, $this->get_meta_key($lang), true ) : ''; $value = ( $slug ) ? htmlspecialchars( $slug , ENT_QUOTES ) : ''; echo "<tr class=\"form-field form-required\">" . PHP_EOL; echo "<th scope=\"row\" valig=\"top\"><label for=\"qts_{$lang}_slug\">".sprintf( __('Slug (%s)', 'qts'), $q_config['language_name'][$lang] )."</label></th>" . PHP_EOL; echo "<td><input type=\"text\" name=\"qts_{$lang}_slug\" value=\"$value\" /></td></tr>" . PHP_EOL; } echo '</table>'; // prints the fields in new page else: echo "<input type=\"hidden\" name=\"qts_nonce\" id=\"qts_nonce\" value=\"" . wp_create_nonce( 'qts_nonce' ) . "\" />" . PHP_EOL; foreach( $q_config['enabled_languages'] as $lang ) { echo "<div class=\"form-field\">" . PHP_EOL; $slug = (is_object($term)) ? get_term_meta( $term->term_id, $this->get_meta_key($lang), true ) : ''; $value = ( $slug ) ? htmlspecialchars( $slug , ENT_QUOTES ) : ''; echo "<label for=\"qts_{$lang}_slug\">".sprintf( __('Slug (%s)', 'qts'), $q_config['language_name'][$lang] )."</label>" . PHP_EOL; echo "<input type=\"text\" name=\"qts_{$lang}_slug\" value=\"$value\" aria-required=\"true\">" . PHP_EOL; echo '</div>'; } endif; } /** * Sanitize title as slug, if empty slug * * @param $term (object) the term object * @param $slug (string) the slug name * @param $lang (string) the language * @return the slug validated * * @since 1.0 */ public function validate_term_slug( $slug, $term, $lang ) { global $q_config; $lang_name = $q_config['term_name'][$term->name][$lang]; $ajax_name = 'new' . $term->taxonomy; $post_name = isset($_POST['name']) ? $_POST['name'] : ''; $term_name = isset($_POST[$ajax_name]) ? trim($_POST[$ajax_name]) : $post_name; if (empty($term_name)) { return $slug; } $name = ( $lang_name == '' || strlen($lang_name) == 0 ) ? $term_name : $lang_name; $slug = trim($slug); $slug = (empty($slug)) ? sanitize_title($name) : sanitize_title($slug); return htmlspecialchars( $slug , ENT_QUOTES ); } /** * Will make slug unique per language, if it isn't already. * * @param string $slug The string that will be tried for a unique slug * @param object $term The term object that the $slug will belong too * @param object $lang The language reference * @return string Will return a true unique slug. * * @since 1.0 */ public function unique_term_slug($slug, $term, $lang) { global $wpdb; $meta_key_name = $this->get_meta_key($lang); $query = $wpdb->prepare("SELECT term_id FROM $wpdb->termmeta WHERE meta_key = '%s' AND meta_value = '%s' AND term_id != %d ", $meta_key_name, $slug, $term->term_id); $exists_slug = $wpdb->get_results($query); if ( empty($exists_slug) ) { return $slug; } // If we didn't get a unique slug, try appending a number to make it unique. $query = $wpdb->prepare("SELECT meta_value FROM $wpdb->termmeta WHERE meta_key = '%s' AND meta_value = '%s' AND term_id != %d", $meta_key_name, $slug, $term->term_id); if ( $wpdb->get_var( $query ) ) { $num = 2; do { $alt_slug = $slug . "-$num"; $num++; $slug_check = $wpdb->get_var( $wpdb->prepare( "SELECT meta_value FROM $wpdb->termmeta WHERE meta_key = '%s' AND meta_value = '%s'", $meta_key_name, $alt_slug) ); } while ( $slug_check ); $slug = $alt_slug; } return $slug; } /** * Display multiple input fields, one per language * * @param $term_id the term id * @param $tt_id the term taxonomy id * @param $taxonomy the term object * * @since 1.0 */ public function save_term( $term_id, $tt_id, $taxonomy ) { $cur_screen = get_current_screen(); if ( (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) // check autosave || ( !current_user_can('edit_posts') ) // check permission || ( isset($cur_screen) && $cur_screen->id === "nav-menus") ) { return $term_id; } $term = get_term( $term_id, $taxonomy); foreach( $this->get_enabled_languages() as $lang ) { $meta_name = $this->get_meta_key($lang); //43LC: when at the post edit screen and creating a new tag // the $slug comes from $_POST with the value of the post slug, // not with the term slug. if ($_POST['action'] == "editpost") { // so we use the slug wp gave it $term_slug = $term->slug; } else { // otherwise, its the edit term screen $term_slug = $_POST["qts_{$lang}_slug"]; } $meta_value = apply_filters( 'qts_validate_term_slug', $term_slug, $term, $lang); delete_term_meta($term_id, $meta_name); update_term_meta($term_id, $meta_name, $meta_value); } } /** * deletes termmeta rows associated with the term * * @since 1.0 */ public function delete_term($term_id, $tt_id, $taxonomy) { global $wpdb; $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->termmeta WHERE term_id = %d", $term_id ) ); } /** * creates and prints the forms and hides the default fields * @param object $term the term object * @since 1.1.12 * * TODO: merge with our own form. * TODO: move code into js file * */ public function qts_modify_term_form($term) { echo "<script type=\"text/javascript\">\n// <![CDATA[\r\n"; if(is_object($term)&&isset($term->name)) { $termname = $term->name; } else { $termname = ""; } if(isset($_GET['action']) && $_GET['action']=='edit') { foreach($this->get_enabled_languages() as $language) { echo $this->qts_insert_term_input('name', __('Name','qts'), $termname, $language,"edit"); } } else { foreach($this->get_enabled_languages() as $language) { echo $this->qts_insert_term_input('tag-name', __('Name','qts'), $termname, $language,"new"); } } // hide real category text echo "if (ins != null) ins.style.display='none';\n"; echo "// ]]>\n</script>\n"; } /** * Helper for qts_modify_term_form_for * @param string $id the term id * @param object #term the term * @param string $language the term name * @param string $action the term name * @return string $html the new input fields * @since 1.1.12 * TODO: use DocumentFragment */ private function qts_insert_term_input($id,$name, $language,$action){ global $q_config; $html = ""; if( $action === "new") { $html =" var il = document.getElementsByTagName('input'), d = document.createElement('div'), l = document.createTextNode('".$name." (".$q_config['language_name'][$language].")'), ll = document.createElement('label'), i = document.createElement('input'), ins = null; for(var j = 0; j < il.length; j++) { if(il[j].id=='".$id."') { ins = il[j]; break; } } i.type = 'text'; i.id = i.name = ll.htmlFor ='qtrans_term_".$language."'; "; } elseif ( $action === "edit") { $html =" var tr = document.createElement('tr'), th = document.createElement('th'), ll = document.createElement('label'), l = document.createTextNode('".$name." (".$q_config['language_name'][$language].")'), td = document.createElement('td'), i = document.createElement('input'), ins = document.getElementById('".$id."'); i.type = 'text'; i.id = i.name = ll.htmlFor ='qtrans_term_".$language."'; "; } if(isset($q_config['term_name'][$termname][$language])) { $html .=" i.value = '".addslashes(htmlspecialchars_decode($q_config['term_name'][$termname][$language], ENT_QUOTES))."';"; //43LC: applied ENT_QUOTES to both edit and new forms. } else { $html .=" if (ins != null) i.value = ins.value; "; } if($language == $this->default_language) { $html .=" i.onchange = function() { var il = document.getElementsByTagName('input'), ins = null; for(var j = 0; j < il.length; j++) { if(il[j].id=='".$id."') { ins = il[j]; break; } } if (ins != null) ins.value = document.getElementById('qtrans_term_".$language."').value; }; "; } if( $action === "new") { $html .=" if (ins != null) ins = ins.parentNode; d.className = 'form-field form-required'; ll.appendChild(l); d.appendChild(ll); d.appendChild(i); if (ins != null) ins.parentNode.insertBefore(d,ins); "; } elseif ( $action === "edit") { $html .=" ins = ins.parentNode.parentNode; tr.className = 'form-field form-required'; th.scope = 'row'; th.vAlign = 'top'; ll.appendChild(l); th.appendChild(ll); tr.appendChild(th); td.appendChild(i); tr.appendChild(td); ins.parentNode.insertBefore(tr,ins); "; } return $html; } /** * adds support for qtranslate in taxonomies * * @since 1.0 */ public function taxonomies_hooks() { $taxonomies = $this->get_public_taxonomies(); if ($taxonomies) { foreach ($taxonomies as $taxonomy ) { add_action( $taxonomy->name.'_add_form', array(&$this, 'qts_modify_term_form')); add_action( $taxonomy->name.'_edit_form', array(&$this, 'qts_modify_term_form')); add_action( $taxonomy->name.'_add_form', array(&$this, 'show_term_fields')); add_action( $taxonomy->name.'_edit_form_fields', array(&$this, 'show_term_fields') ); add_filter('manage_edit-'.$taxonomy->name.'_columns', array(&$this, 'taxonomy_columns')); add_filter('manage_'.$taxonomy->name.'_custom_column', array(&$this, 'taxonomy_custom_column'), 0, 3); } } } /* * Bug fix for slug column in taxonomies * * @since 1.0 */ public function taxonomy_columns($columns) { unset($columns['slug']); unset($columns['posts']); $columns['qts-slug'] = __('Slug', 'qts'); $columns['posts'] = __('Posts', 'qts'); return $columns; } /* * Bug fix for slug column in taxonomies * * @since 1.0 */ public function taxonomy_custom_column($str, $column_name, $term_id) { switch ($column_name) { case 'qts-slug': echo get_term_meta($term_id, $this->get_meta_key(), true); break; } return false; } /** * Bug fix for multisite blog names * * @since 1.0 */ public function blog_names($blogs) { foreach ($blogs as $blog) { $blog->blogname = __($blog->blogname); } return $blogs; } /** * Initialise the Language Widget selector * * @since 1.0 */ public function widget_init() { if (class_exists('qTranslateWidget')) { unregister_widget('qTranslateWidget'); } if (class_exists('mqTranslateWidget')) { unregister_widget('mqTranslateWidget'); } if (class_exists('ppqTranslateWidget')) { unregister_widget('ppqTranslateWidget'); } //if (class_exists('qTranslateXWidget')) {//it has additional features some people use. // unregister_widget('qTranslateXWidget'); //} register_widget('QtranslateSlugWidget'); } /** * remove some default dashboard Widgets on Desktop * * @since 1.0 */ function remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); } /** * adds support for qtranslate nav menus * * @since 1.0 */ public function fix_nav_menu() { global $pagenow; if( $pagenow != 'nav-menus.php' ) { return; } //FIXME: fix the nav menu box // wp_enqueue_script( 'nav-menu-query', plugins_url( 'assets/js/qts-nav-menu-min.js' , dirname(__FILE__ ) ), 'nav-menu', '1.0' ); // add_meta_box( 'qt-languages', __('Languages', 'qts'), array(&$this, 'nav_menu_meta_box'), 'nav-menus', 'side', 'default' ); } /** * draws meta box for select language * * @since 1.0 */ public function nav_menu_meta_box() { global $q_config; echo '<p>'; foreach($q_config['enabled_languages'] as $id => $language) { $checked = ($language == $q_config['language']) ? ' checked="checked"' : ''; echo '<p style="margin:0 0 5px 0"><input type="radio" style="margin-right:5px" name="wa_qt_lang" value="' . $language . '" id="wa_gt_lang_' . $id . '" ' . $checked . '/>'; echo '<label for="wa_gt_lang_' . $id . '">'; echo '<img src="' . trailingslashit(WP_CONTENT_URL).$q_config['flag_location'].$q_config['flag'][$language] . '"/>&nbsp;'; echo __($q_config['language_name'][$language], 'qtranslate'); echo '</label></p>'; } echo '<p style="margin:0 0 5px 0"><input type="radio" style="margin-right:5px" name="wa_qt_lang" value="all" id="wa_gt_lang_999" />'; echo '<label for="wa_gt_lang_999">'; echo __('All languages', 'qts'); echo '</label></p>'; echo '</p>'; } /** * Language select function for templating * * @param $type (string) choose the type of menu: 'text', 'image', 'both', 'dropdown' * @param $args (array) some args for draw the menu: array( 'id', 'class', 'short' ); * * @since 1.0 */ public function language_menu( $type = "text", $args = array() ) { global $q_config; // default arguments $defaults = array( 'id' => "qts-lang-menu", 'class' => "qts-lang-menu", 'short' => false ); $args = wp_parse_args( $args, $defaults ); $languages = call_user_func($this->get_plugin_prefix() . 'getSortedLanguages'); // every type switch ( $type ) { case 'image': case 'text': case 'both': $baseurl = dirname(plugins_url()); $num_languages = count($languages); echo "<ul id=\"{$args['id']}\" class=\"qts_type_{$type} {$args['class']}\">". PHP_EOL; foreach( $languages as $index => $lang ): $url = $this->get_current_url($lang); // 43LC: hack to play nice with qtranslate-x if( "qtranxf_" === $this->plugin_prefix && $this->default_language === $lang ) { $url = qtranxf_convertURL('',$lang,false,true); } $item_class = array(); if ( (string)$q_config['language'] == (string)$lang ) $item_class[] = 'current-menu-item'; if ( $index == ( $num_languages - 1) ) $item_class[] = 'last-child'; $item_class = ' class="qts_lang_item ' . implode(' ', $item_class) . '"'; $language_name = ($args['short']) ? $lang : $q_config['language_name'][$lang]; if ( $type == 'image' ) { $link_class = " class=\"qtrans_flag qtrans_flag_$lang\""; $link_content = "<span style=\"display:none\">$language_name</span>"; } else if ( $type == 'both' ) { $link_class = " class=\"qts_both qtrans_flag qtrans_flag_$lang\""; $link_content = "$language_name"; } else { $link_class = ''; $link_content = $language_name; $link_flag =''; } if( $type == 'image' || $type == 'both' ) { $link_flag_url = $baseurl . '/'.$q_config['flag_location'].$q_config['flag'][$lang]; //TODO: add i18n for alt attribute //43LC: hardcoding height and width $link_flag = "<img widht=\"18\" height=\"12\" src=\"$link_flag_url\" alt=\"$language_name\" />"; } echo "<li $item_class><a href=\"$url\" lang=\"$lang\" hreflang=\"$lang\"$link_class>$link_flag$link_content</a></li>" . PHP_EOL; endforeach; echo "</ul>". PHP_EOL; break; case 'dropdown': echo "<select id=\"{$args['id']}\" class=\"{$args['class']}\" onchange=\"window.location.href=this.options[this.selectedIndex].value\">". PHP_EOL; foreach( $languages as $index => $lang ): $url = $this->get_current_url($lang); $item_class = ''; if ( (string)$q_config['language'] == (string)$lang ) $item_class = 'selected="selected"'; $language_name = ($args['short']) ? $lang : $q_config['language_name'][$lang]; echo "<option value=\"$url\" $item_class>$language_name</option>" . PHP_EOL; endforeach; echo "</select>". PHP_EOL; break; } } } <?php /** * Define our settings sections * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return array key=$id, array value=$title in: add_settings_section( $id, $title, $callback, $page ); */ function qts_options_page_sections() { $sections = array(); $sections['post_types'] = __('Post types', 'qts'); $sections['taxonomies'] = __('Taxonomies', 'qts'); $sections['styles'] = __('Styles', 'qts'); return $sections; } /** * Helper for create arrays of choices * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return array */ function get_multi_txt_choices($name = false) { global $q_config; if (!$name) return array(); $choices = array(); foreach( $q_config['enabled_languages'] as $key => $lang) { $label = sprintf( __('Slug (%s)', 'qts'), $q_config['language_name'][$lang] ); $choices[] = "$label|$lang"; // prints: 'Slug (English)|en' ( $name = books ) } return $choices; } /** * Define our form fields (settings) for displaying the default styles * * @package Qtranslate Slug * @subpackage Settings * @version 1.1.7 * * @return array */ function qts_options_page_styles() { $options[] = array( "section" => "styles", "id" => QTS_PREFIX . "styles", "title" => __('Change styles type', 'qts'), "desc" => array( __("adds a file (qts-default.css) to the theme's header.", "qts"), __("adds a minified ( slighlty faster) file (qts-default.min.css) to the theme's header.", "qts"), __("prints the styles directly into the theme's header.", "qts"), __("neither include not print the default style.", "qts") ), "type" => "multi-radio", 'class' => 'qts-style', "choices" => array( __("file", "qts"), __("minified", "qts"), __("inline", "qts"), __("none", "qts") ), "std" => "file" ); return $options; } /** * Define our form fields (settings) * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return array */ function qts_options_page_fields() { $post_types = get_post_types( array('_builtin' => false, 'public' => true ), 'objects'); // each post type foreach ($post_types as $post_type): $options[] = array( "section" => "post_types", "id" => QTS_PREFIX . "post_type_" . $post_type->name, "title" => $post_type->labels->singular_name, "desc" => sprintf( __( '<code>http://example.org/<u>%s</u>/some-%s/</code>', 'qts' ), $post_type->name, $post_type->name), 'class' => 'qts-slug', "type" => "multi-text", "choices" => get_multi_txt_choices( $post_type->name), "std" => "" ); endforeach; // end each post type $options[] = array( "section" => "taxonomies", "id" => QTS_PREFIX . "taxonomy_category", "title" => __( 'Categories', 'qts' ), "desc" => __( '<code>http://example.org/<u>category</u>/some-category/</code>', 'qts' ), "type" => "multi-text", 'class' => 'qts-slug', "choices" => get_multi_txt_choices('category'), "std" => "" ); $options[] = array( "section" => "taxonomies", "id" => QTS_PREFIX . "taxonomy_post_tag", "title" => __( 'Tags', 'qts' ), "desc" => __( '<code>http://example.org/<u>tag</u>/some-tag/</code>', 'qts' ), "type" => "multi-text", 'class' => 'qts-slug', "choices" => get_multi_txt_choices('post_tag'), "std" => "" ); $taxonomies = get_taxonomies( array( 'public' => true, 'show_ui' => true, '_builtin' => false ), 'object' ); // each extra taxonomy foreach ($taxonomies as $taxonomy): $options[] = array( "section" => "taxonomies", "id" => QTS_PREFIX . "taxonomy_" . $taxonomy->name, "title" => $taxonomy->labels->singular_name, "desc" => sprintf( __( '<code>http://example.org/<u>%s</u>/some-%s/</code>', 'qts' ), $taxonomy->name, $taxonomy->name ), "type" => "multi-text", 'class' => 'qts-slug', "choices" => get_multi_txt_choices( $taxonomy->name), "std" => "" ); endforeach; // end each extra taxonomy return $options; } /** * Contextual Help * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * */ function qts_options_page_contextual_help() { $text = "<h3>" . __('Qtranslate Settings - Contextual Help','qts') . "</h3>"; $text .= "<p>" . __('Contextual help goes here. You may want to use different html elements to format your text as you want.','qts') . "</p>"; return $text; } <?php // page settings sections & fields as well as the contextual help text. include_once('qtranslate-slug-settings-options.php'); /** * Prints upgrade form in Qtranslate Slug admin page * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return array */ function qts_upgrade() { global $qtranslate_slug; if ( !$qtranslate_slug->check_old_data() ) return; echo "<div id=\"qts-upgrade-box\" class=\"updated\" style=\"margin: 15px 0; margin-bottom:25px; padding: 10px\">" . PHP_EOL; echo "<h3>" . __('Upgrade your data', 'qts') . "</h3>" . PHP_EOL; echo "<p>" . __('There are slugs stored with old data system. Please upgrade your data pressing upgrade button:', 'qts') . "</p>" . PHP_EOL; echo "<div id=\"qts-upgrade-form\">" . PHP_EOL; echo "<input type=\"hidden\" id=\"qts-upgrade-action\" name=\"qts-upgrade-action\" value=\"qts-upgrade-check\" />" .PHP_EOL; echo "<input type=\"hidden\" id=\"qts-upgrade-nonce\" name=\"qts-upgrade-nonce\" value=\"". wp_create_nonce('qts-upgrade') . "\" />" .PHP_EOL; echo "<p><a id=\"qts-upgrade-button\" href=\"#\" class=\"button-primary\">" . __('upgrade now', 'qts') . "</a><img src=\"".admin_url('images/wpspin_light.gif')."\" class=\"qts-loading\" id=\"qts-loading\" alt=\"\"></p>" . PHP_EOL; echo "</div></div>" . PHP_EOL; } /** * AJAX: upgrade old database to new system * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return boolean */ function qts_process_old_data( $old_data = null, $type = 'post' ) { global $wpdb, $qtranslate_slug; if ( is_null($old_data) || empty($old_data) ) return 0; foreach ($old_data as $row) { switch ($row->qts_type) { case 1: case 2: update_post_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); break; case 3: case 4: update_term_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); break; case 5: if ($type == 'post') update_post_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); if ($type == 'term') update_term_meta( $row->qts_id, $qtranslate_slug->get_meta_key($row->qts_lang), $row->qts_slug); break; }; } $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}qtranslate_slug"); return 1; } function qts_upgrade_response($type = 0, $slug = null) { switch ( $type ) { default: case 0: $response = array( 'status' => 0, 'message' => __('Sorry, some error happened. Refresh this page and try again please.', 'qts'), ); break; case 1: $response = array( 'status' => 1, 'message' => __('Congratulations, your data has been upgraded, you are up to date.', 'qts'), ); break; case 2: $response = array( 'status' => 2, 'message' => sprintf(__('One step more, select what type of slug is this: <strong>%s</strong>', 'qts'), $slug), 'options' => array( 'post' => __('Post, Page or Custom post type', 'qts'), 'term' => __('Category, tag or custom taxonomy', 'qts') ) ); break; } return $response; } /** * AJAX: upgrade old database to new system * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return JSON object */ function qts_upgrade_check() { global $qtranslate_slug; $old_data = $qtranslate_slug->check_old_data(); if ( wp_verify_nonce( $_POST['nonce'], 'qts-upgrade') ): // if data process to save... if ($old_data) { // if defined data type 5, process to upgrade if ( isset($_POST['type']) ): $res = qts_process_old_data($old_data, $_POST['type']); $response = qts_upgrade_response($res); else : // define wich type of data is 5 $array_of_5 = array(); foreach ( $old_data as $row ) if ( $row->qts_type == 5 ) $array_of_5[] = $row->qts_slug; if (!empty($array_of_5)) $response = qts_upgrade_response(2, implode(', ', $array_of_5)); // if no data type 5, process to upgrade if (!isset($response)) { $res = qts_process_old_data($old_data); $response = qts_upgrade_response($res); } endif; // if not continue } else { $response = qts_upgrade_response(); } else: $response = qts_upgrade_response(); endif; // response output header( "Content-Type: application/json" ); echo json_encode($response); exit; } add_action('wp_ajax_qts-upgrade-check', 'qts_upgrade_check'); /** * Helper function for defining variables for the current page * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return array */ function qts_get_settings() { $output = array(); // put together the output array $output['qts_option_name'] = QTS_OPTIONS_NAME; // the option name as used in the get_option() call. $output['qts_page_title'] = __('Qtranslate Slug options', 'qts'); // the settings page title $output['qts_page_sections'] = qts_options_page_sections(); // the settings sections $output['qts_page_fields'] = qts_options_page_fields(); // the settings fields $output['qts_page_styles'] = qts_options_page_styles(); // the settings for style $output['qts_contextual_help'] = qts_options_page_contextual_help(); // the contextual help return $output; } /** * Helper function for registering our form field settings * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * src: http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/ * @param (array) $args The array of arguments to be used in creating the field * @return function call */ function qts_create_settings_field( $args = array() ) { // default array to overwrite when calling the function $defaults = array( 'id' => 'default_field', // the ID of the setting in our options array, and the ID of the HTML form element 'title' => 'Default Field', // the label for the HTML form element 'desc' => 'This is a default description.', // the description displayed under the HTML form element 'std' => '', // the default value for this setting 'type' => 'text', // the HTML form element to use 'section' => 'main_section', // the section this setting belongs to must match the array key of a section in qts_options_page_sections() 'choices' => array(), // (optional): the values in radio buttons or a drop-down menu 'class' => '' // the HTML form element class. Is used for validation purposes and may be also use for styling if needed. ); // "extract" to be able to use the array keys as variables in our function output below extract( wp_parse_args( $args, $defaults ) ); // additional arguments for use in form field output in the function qts_show_form_field! $field_args = array( 'type' => $type, 'id' => $id, 'desc' => $desc, 'std' => $std, 'choices' => $choices, 'label_for' => $id, 'class' => $class ); add_settings_field( $id, $title, 'qts_show_form_field', __FILE__, $section, $field_args ); } /** * Register our setting, settings sections and settings fields * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * */ function qts_register_settings(){ // get the settings sections array $settings_output = qts_get_settings(); $qts_option_name = $settings_output['qts_option_name']; //setting register_setting($qts_option_name, $qts_option_name, 'qts_validate_options' ); //sections if(!empty($settings_output['qts_page_sections'])){ // call the "add_settings_section" for each! foreach ( $settings_output['qts_page_sections'] as $id => $title ) { add_settings_section( $id, $title, 'qts_section_fn', __FILE__); } } //fields if(!empty($settings_output['qts_page_fields'])){ // call the "add_settings_field" for each! foreach ($settings_output['qts_page_fields'] as $option) { qts_create_settings_field($option); } } //style if(!empty($settings_output['qts_page_styles'])){ // call the "add_settings_field" for each foreach ($settings_output['qts_page_styles'] as $styleoption) { qts_create_settings_field($styleoption); } } } add_action( 'admin_init', 'qts_register_settings' ); /** * Group scripts (js & css) * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * */ function qts_settings_scripts() { global $qtranslate_slug; wp_enqueue_style('qts_theme_settings_css', plugins_url( 'assets/css/qts-settings.css' , dirname(__FILE__) ) ); wp_enqueue_script( 'qts_theme_settings_js', plugins_url( 'assets/js/qts-settings.js' , dirname(__FILE__) ), array('jquery')); if ($qtranslate_slug->check_old_data()) { wp_enqueue_script('qts_theme_settings_upgrade_js', plugins_url( 'assets/js/qts-settings-upgrade.js' , dirname(__FILE__) ), array('jquery') ); } } /** * The Admin menu page * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * */ function qts_add_menu() { global $current_screen; $settings_output = qts_get_settings(); // collect our contextual help text $qts_contextual_help = $settings_output['qts_contextual_help']; // Display Settings Page link under the "Appearance" Admin Menu $qts_settings_page = add_options_page(__('Qtranslate Slug options', 'qts'), __('Slug options', 'qts'), 'manage_options', QTS_PAGE_BASENAME, 'qts_show_settings_page'); // contextual help /* if ($qts_settings_page) { $current_screen = get_current_screen(); //$current_screen->add_help_tab( array( $qts_settings_page, $qts_contextual_help )); } */ // css & js add_action( 'load-'. $qts_settings_page, 'qts_settings_scripts' ); } add_action( 'admin_menu', 'qts_add_menu' ); //////////////////////////////////////////////////////////////////////////////////////// // Callback functions /** * Section HTML, displayed before the first option * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return echoes output */ function qts_section_fn($page_section = false) { if ( !$page_section || !isset($page_section['id']) ) return; switch ($page_section['id']) { case 'post_types': echo "<p>" . __('For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as <code>http://example.org/es/libros/post-type-name/</code>. If you leave this blank will use the default option when you <a href="http://codex.wordpress.org/Function_Reference/register_post_type">registered</a> the post_type.', 'qts') . "</p>"; break; case 'taxonomies': echo "<p>" . __('For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave this blank will use the default option when you <a href="http://codex.wordpress.org/Function_Reference/register_taxonomy">registered</a> the taxonomy (if you previously setup a base permastruct for <u>categories</u> or <u>tags</u> in <a href="options-permalink.php">permalinks</a> page, these bases will be overwritten by the translated ones).', 'qts') . "</p>"; break; case 'styles': echo "<p>" . __('The default styles are very minimal, and you can include them or not.', 'qts') . "</p>\n"; break; } } /** * Form Fields HTML: all form field types share the same function * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return echoes output */ function qts_show_form_field($args = array()) { global $qtranslate_slug; extract( $args ); // get the settings sections array $settings_output = qts_get_settings(); $options = $qtranslate_slug->get_options(); // pass the standard value if the option is not yet set in the database if ( !isset( $options[$id] ) && 'type' != 'checkbox' ) { $options[$id] = $std; } // additional field class. output only if the class is defined in the create_setting arguments $field_class = ($class != '') ? ' ' . $class : ''; // switch html display based on the setting type. switch ( $type ) { case 'text': $options[$id] = stripslashes($options[$id]); $options[$id] = esc_attr( $options[$id]); echo "<input class='regular-text$field_class' type='text' id='$id' name='" . QTS_OPTIONS_NAME . "[$id]' value='$options[$id]' />"; echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; case "multi-text": foreach($choices as $item) { $item = explode("|",$item); // cat_name|cat_slug $item[0] = esc_html__($item[0], 'qts'); if (!empty($options[$id])) { foreach ($options[$id] as $option_key => $option_val){ if ($item[1] == $option_key) { $value = $option_val; } } } else { $value = ''; } echo "<span>$item[0]:</span> <input class='$field_class' type='text' id='$id|$item[1]' name='" . QTS_OPTIONS_NAME . "[$id|$item[1]]' value='$value' /><br/>"; } echo ($desc != '') ? "<span class='description'>$desc</span>" : ""; break; case 'textarea': $options[$id] = stripslashes($options[$id]); $options[$id] = esc_html( $options[$id]); echo "<textarea class='textarea$field_class' type='text' id='$id' name='" . QTS_OPTIONS_NAME . "[$id]' rows='5' cols='30'>$options[$id]</textarea>"; echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; case 'select': echo "<select id='$id' class='select$field_class' name='" . QTS_OPTIONS_NAME . "[$id]'>"; foreach($choices as $item) { $value = esc_attr($item, 'qts'); $item = esc_html($item, 'qts'); $selected = ($options[$id]==$value) ? 'selected="selected"' : ''; echo "<option value='$value' $selected>$item</option>"; } echo "</select>"; echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; case 'select2': echo "<select id='$id' class='select$field_class' name='" . QTS_OPTIONS_NAME . "[$id]'>"; foreach($choices as $item) { $item = explode("|",$item); $item[0] = esc_html($item[0], 'qts'); $selected = ($options[$id]==$item[1]) ? 'selected="selected"' : ''; echo "<option value='$item[1]' $selected>$item[0]</option>"; } echo "</select>"; echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; case 'checkbox': echo "<input class='checkbox$field_class' type='checkbox' id='$id' name='" . QTS_OPTIONS_NAME . "[$id]' value='1' " . checked( $options[$id], 1, false ) . " />"; echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; case "multi-checkbox": foreach($choices as $item) { $item = explode("|",$item); $item[0] = esc_html($item[0], 'qts'); $checked = ''; if ( isset($options[$id][$item[1]]) ) { if ( $options[$id][$item[1]] == 'true') { $checked = 'checked="checked"'; } } echo "<input class='checkbox$field_class' type='checkbox' id='$id|$item[1]' name='" . QTS_OPTIONS_NAME . "[$id|$item[1]]' value='1' $checked /> $item[0] <br/>"; } echo ($desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; case "multi-radio": foreach($choices as $index => $item) { $item = explode("|",$item); $item_key = (count($item) > 1) ? esc_html($item[0], 'qts') : esc_html(end($item), 'qts'); $item_value = (count($item) > 1) ? esc_html($item[1], 'qts') : esc_html(end($item), 'qts'); $checked = ''; if ( isset($options[$id]) && $options[$id] === $item_value) { $checked = 'checked="checked"'; } echo "<label for='$id|$item_value'><input class='radio$field_class' type='radio' id='$id|$item_value' name='" . QTS_OPTIONS_NAME . "[$id]' value='$item_value' $checked /> <strong>$item_key</strong>"; if (isset($desc[$index]) && !empty($desc[$index])) { echo ": " . $desc[$index]; } echo "</label>"; } echo (!is_array($desc) && $desc != '') ? "<br /><span class='description'>$desc</span>" : ""; break; } } /** * Validates base slugs per 'type' (post_type | taxonomy) and 'language' * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * */ function qts_sanitize_bases($base_slugs = false) { if ( !$base_slugs || empty($base_slugs) ) return; $base_slugs_processed = array(); $base_founded = array(); // changing array structure foreach ($base_slugs as $type => $base) { foreach ($base as $lang => $value) { if ($value != ""): $base_value = $value; $count = 2; while (in_array($value, $base_founded)) { $value = "$base_value-$count"; $count++; } $base_founded[] = $base_slugs[$type][$lang] = $value; endif; } } return $base_slugs; } /** * Admin Settings Page HTML * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return echoes output */ function qts_show_settings_page() { // get the settings sections array $settings_output = qts_get_settings(); ?> <div class="wrap"> <div class="icon32" id="icon-options-general"></div> <h2><?php echo $settings_output['qts_page_title']; ?></h2> <p><?php _e('If you activated previously the <a href="options-permalink.php">pretty permalinks</a>, in this section you can translate the <abbr title="en inglés, Universal Resource Locator">URLs</abbr> <strong>bases</strong> for <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">public</a> post_types, categories, tags and taxonomies.', 'qts'); ?> </p> <form action="options.php" method="post"> <?php // upgrade notify qts_upgrade(); // http://codex.wordpress.org/Function_Reference/settings_fields settings_fields($settings_output['qts_option_name']); // http://codex.wordpress.org/Function_Reference/do_settings_sections do_settings_sections(__FILE__); // rewrite rules flush_rewrite_rules(); ?> <?php $css_path = plugin_dir_url(dirname(__FILE__)).'/assets/css/qts-default.css'; $file_styles = file_get_contents($css_path); ?> <p><?php _e('If you selected "none", copy and use these styles as you see fit:','qts'); ?> </p> <textarea name="textarea" rows="10" cols="80"><?php echo $file_styles; ?></textarea>; <p class="submit"> <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes','qts'); ?>" /> </p> </form> </div><!-- wrap --> <?php } /** * Validate input * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return array */ function qts_validate_options($input) { // for enhanced security, create a new empty array $valid_input = array(); // collect only the values we expect and fill the new $valid_input array // i.e. whitelist our option IDs // get the settings sections array $settings_output = qts_get_settings(); $styleoptions = $settings_output['qts_page_styles']; $slugoptions = $settings_output['qts_page_fields']; $options = array_merge($styleoptions,$slugoptions); // run a foreach and switch on option type foreach ($options as $option): switch ( $option['type'] ): case 'text': //switch validation based on the class! switch ( $option['class'] ) { //for numeric case 'numeric': //accept the input only when numeric! $input[$option['id']] = trim($input[$option['id']]); // trim whitespace $valid_input[$option['id']] = (is_numeric($input[$option['id']])) ? $input[$option['id']] : 'Expecting a Numeric value!'; // register error if(is_numeric($input[$option['id']]) == FALSE) { add_settings_error( $option['id'], // setting title QTS_PREFIX . '_txt_numeric_error', // error ID __('Expecting a Numeric value! Please fix.', 'qts'), // error message 'error' // type of message ); } break; //for multi-numeric values (separated by a comma) case 'multinumeric': //accept the input only when the numeric values are comma separated $input[$option['id']] = trim($input[$option['id']]); // trim whitespace if($input[$option['id']] !=''){ // /^-?\d+(?:,\s?-?\d+)*$/ matches: -1 | 1 | -12,-23 | 12,23 | -123, -234 | 123, 234 | etc. $valid_input[$option['id']] = (preg_match('/^-?\d+(?:,\s?-?\d+)*$/', $input[$option['id']]) == 1) ? $input[$option['id']] : __('Expecting comma separated numeric values','qts'); }else{ $valid_input[$option['id']] = $input[$option['id']]; } // register error if($input[$option['id']] !='' && preg_match('/^-?\d+(?:,\s?-?\d+)*$/', $input[$option['id']]) != 1) { add_settings_error( $option['id'], // setting title QTS_PREFIX . '_txt_multinumeric_error', // error ID __('Expecting comma separated numeric values! Please fix.','qts'), // error message 'error' // type of message ); } break; //for no html case 'nohtml': //accept the input only after stripping out all html, extra white space etc! $input[$option['id']] = sanitize_text_field($input[$option['id']]); // need to add slashes still before sending to the database $valid_input[$option['id']] = addslashes($input[$option['id']]); break; //for url case 'url': //accept the input only when the url has been sanited for database usage with esc_url_raw() $input[$option['id']] = trim($input[$option['id']]); // trim whitespace $valid_input[$option['id']] = esc_url_raw($input[$option['id']]); break; //for email case 'email': //accept the input only after the email has been validated $input[$option['id']] = trim($input[$option['id']]); // trim whitespace if($input[$option['id']] != ''){ $valid_input[$option['id']] = (is_email($input[$option['id']])!== FALSE) ? $input[$option['id']] : __('Invalid email', 'qts'); }elseif($input[$option['id']] == ''){ $valid_input[$option['id']] = __('This setting field cannot be empty! Please enter a valid email address.', 'qts'); } // register error if(is_email($input[$option['id']])== FALSE || $input[$option['id']] == '') { add_settings_error( $option['id'], // setting title QTS_PREFIX . '_txt_email_error', // error ID __('Please enter a valid email address.', 'qts'), // error message 'error' // type of message ); } break; // a "cover-all" fall-back when the class argument is not set default: // accept only a few inline html elements $allowed_html = array( 'a' => array('href' => array (),'title' => array ()), 'b' => array(), 'em' => array (), 'i' => array (), 'strong' => array() ); // trim whitespace $input[$option['id']] = trim($input[$option['id']]); // find incorrectly nested or missing closing tags and fix markup $input[$option['id']] = force_balance_tags($input[$option['id']]); // need to add slashes still before sending to the database $input[$option['id']] = wp_kses( $input[$option['id']], $allowed_html); $valid_input[$option['id']] = addslashes($input[$option['id']]); break; } break; case "multi-text": // this will hold the text values as an array of 'key' => 'value' unset($textarray); $text_values = array(); foreach ($option['choices'] as $k => $v ) { // explode the connective $pieces = explode("|", $v); $text_values[] = $pieces[1]; } foreach ($text_values as $v ) { // Check that the option isn't empty if (!empty($input[$option['id'] . '|' . $v])) { // If it's not null, make sure it's sanitized, add it to an array switch ($option['class']) { // different sanitation actions based on the class create you own cases as you need them //for numeric input case 'numeric': //accept the input only if is numberic! $input[$option['id'] . '|' . $v]= trim($input[$option['id'] . '|' . $v]); // trim whitespace $input[$option['id'] . '|' . $v]= (is_numeric($input[$option['id'] . '|' . $v])) ? $input[$option['id'] . '|' . $v] : ''; break; case 'qts-slug': // strip all html tags and white-space. $exploded_types = explode('_', $option['id']); $type_ = end($exploded_types ); $input[$option['id'] . '|' . $v]= sanitize_title( sanitize_text_field( $input[$option['id'] . '|' . $v] ) ); $input[$option['id'] . '|' . $v]= addslashes($input[$option['id'] . '|' . $v]); break; // a "cover-all" fall-back when the class argument is not set default: // strip all html tags and white-space. $input[$option['id'] . '|' . $v]= sanitize_text_field($input[$option['id'] . '|' . $v]); // need to add slashes still before sending to the database $input[$option['id'] . '|' . $v]= addslashes($input[$option['id'] . '|' . $v]); break; } // pass the sanitized user input to our $textarray array $textarray[$v] = $input[$option['id'] . '|' . $v]; } else { $textarray[$v] = ''; } } // pass the non-empty $textarray to our $valid_input array if (!empty($textarray)) { $valid_input[$option['id']] = $textarray; } break; case 'textarea': //switch validation based on the class! switch ( $option['class'] ) { //for only inline html case 'inlinehtml': // accept only inline html // trim whitespace $input[$option['id']] = trim($input[$option['id']]); // find incorrectly nested or missing closing tags and fix markup $input[$option['id']] = force_balance_tags($input[$option['id']]); //wp_filter_kses expects content to be escaped! $input[$option['id']] = addslashes($input[$option['id']]); //calls stripslashes then addslashes $valid_input[$option['id']] = wp_filter_kses($input[$option['id']]); break; //for no html case 'nohtml': //accept the input only after stripping out all html, extra white space etc! // need to add slashes still before sending to the database $input[$option['id']] = sanitize_text_field($input[$option['id']]); $valid_input[$option['id']] = addslashes($input[$option['id']]); break; //for allowlinebreaks case 'allowlinebreaks': //accept the input only after stripping out all html, extra white space etc! // need to add slashes still before sending to the database $input[$option['id']] = wp_strip_all_tags($input[$option['id']]); $valid_input[$option['id']] = addslashes($input[$option['id']]); break; // a "cover-all" fall-back when the class argument is not set default: // accept only limited html //my allowed html $allowed_html = array( 'a' => array('href' => array (),'title' => array ()), 'b' => array(), 'blockquote' => array('cite' => array ()), 'br' => array(), 'dd' => array(), 'dl' => array(), 'dt' => array(), 'em' => array (), 'i' => array (), 'li' => array(), 'ol' => array(), 'p' => array(), 'q' => array('cite' => array ()), 'strong' => array(), 'ul' => array(), 'h1' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), 'h2' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), 'h3' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), 'h4' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), 'h5' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()), 'h6' => array('align' => array (),'class' => array (),'id' => array (), 'style' => array ()) ); $input[$option['id']] = trim($input[$option['id']]); // trim whitespace $input[$option['id']] = force_balance_tags($input[$option['id']]); // find incorrectly nested or missing closing tags and fix markup $input[$option['id']] = wp_kses( $input[$option['id']], $allowed_html); // need to add slashes still before sending to the database $valid_input[$option['id']] = addslashes($input[$option['id']]); break; } break; case 'select': // check to see if the selected value is in our approved array of values! $valid_input[$option['id']] = (in_array( $input[$option['id']], $option['choices']) ? $input[$option['id']] : '' ); break; case 'select2': // process $select_values $select_values = array(); foreach ($option['choices'] as $k => $v) { // explode the connective $pieces = explode("|", $v); $select_values[] = $pieces[1]; } // check to see if selected value is in our approved array of values! $valid_input[$option['id']] = (in_array( $input[$option['id']], $select_values) ? $input[$option['id']] : '' ); break; case 'checkbox': // if it's not set, default to null! if (!isset($input[$option['id']])) { $input[$option['id']] = null; } // Our checkbox value is either 0 or 1 $valid_input[$option['id']] = ( $input[$option['id']] == 1 ? 1 : 0 ); break; case 'multi-checkbox': unset($checkboxarray); $check_values = array(); foreach ($option['choices'] as $k => $v ) { // explode the connective $pieces = explode("|", $v); $check_values[] = $pieces[1]; } foreach ($check_values as $v ) { // Check that the option isn't null if (!empty($input[$option['id'] . '|' . $v])) { // If it's not null, make sure it's true, add it to an array $checkboxarray[$v] = 'true'; } else { $checkboxarray[$v] = 'false'; } } // Take all the items that were checked, and set them as the main option if (!empty($checkboxarray)) { $valid_input[$option['id']] = $checkboxarray; } break; case 'multi-radio': $valid_input[$option['id']] = (empty($input) || !isset($input[$option['id']])) ? $option['std'] : $input[$option['id']]; break; endswitch; if (!empty($valid_input) && $valid_input[$option['id']] === "qts-slug" ) { $valid_input = qts_sanitize_bases($valid_input); } else { $valid_input= $valid_input; } endforeach; return $valid_input; } /** * Helper function for creating admin messages * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * src: http://www.wprecipes.com/how-to-show-an-urgent-message-in-the-wordpress-admin-area * * @param (string) $message The message to echo * @param (string) $msgclass The message class * @return echoes the message */ function qts_show_msg($message, $msgclass = 'info') { echo "<div id='message' class='$msgclass'>$message</div>"; } /** * Callback function for displaying admin messages * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return calls qts_show_msg() */ function qts_admin_msgs() { global $current_screen; // check for our settings page - need this in conditional further down $qts_settings_pg = isset($_GET['page']) ? strpos($_GET['page'], QTS_PAGE_BASENAME) : ''; // collect setting errors/notices: // http://codex.wordpress.org/Function_Reference/get_settings_errors $set_errors = get_settings_errors(); // display admin message only for the admin to see, only on our settings page // and only when setting errors/notices are returned! if(current_user_can ('manage_options') && $qts_settings_pg !== false && !empty($set_errors)){ // have our settings succesfully been updated? if($set_errors[0]['code'] == 'settings_updated' && isset($_GET['settings-updated'])){ qts_show_msg("<p>" . $set_errors[0]['message'] . "</p>", 'updated'); // have errors been found? }else{ // there maybe more than one so run a foreach loop. foreach($set_errors as $set_error){ // set the title attribute to match the error "setting title" - need this in js file qts_show_msg("<p class='setting-error-message' title='" . $set_error['setting'] . "'>" . $set_error['message'] . "</p>", 'error'); } } } } add_action('admin_notices', 'qts_admin_msgs'); <?php /** * Install Term meta table - setup table, store db version for future updates */ if ( !function_exists('install_term_meta_table') ): function install_term_meta_table() { global $wpdb; $collate = ''; //if($wpdb->supports_collation())//deprecated, was a reason for activation admin notice if($wpdb->has_cap( 'collation' )) { if(!empty($wpdb->charset)) $collate = "DEFAULT CHARACTER SET $wpdb->charset"; if(!empty($wpdb->collate)) $collate .= " COLLATE $wpdb->collate"; } $sql = "CREATE TABLE IF NOT EXISTS ". $wpdb->prefix . "termmeta" ." ( `meta_id` bigint(20) NOT NULL AUTO_INCREMENT, `term_id` bigint(20) NOT NULL DEFAULT '0', `meta_key` varchar(255) NULL, `meta_value` longtext NULL, PRIMARY KEY id (`meta_id`)) $collate;"; $wpdb->query($sql); } endif; function simple_post_meta_define_table() { global $wpdb; $wpdb->termmeta = $wpdb->prefix . 'termmeta'; } add_action( 'init', 'simple_post_meta_define_table' ); /** * Updates metadata cache for list of term IDs. * * Performs SQL query to retrieve the metadata for the term IDs and updates the * metadata cache for the terms. Therefore, the functions, which call this * function, do not need to perform SQL queries on their own. * * @param array $term_ids List of post IDs. * @return bool|array Returns false if there is nothing to update or an array of metadata. */ if ( !function_exists('update_termmeta_cache') ): function update_termmeta_cache($term_ids) { return update_meta_cache('term', $term_ids); } endif; /** * Add meta data field to a term. * * @param int $term_id Term ID. * @param string $key Metadata name. * @param mixed $value Metadata value. * @param bool $unique Optional, default is false. Whether the same key should not be added. * @return bool False for failure. True for success. */ if ( !function_exists('add_term_meta') ): function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) { return add_metadata('term', $term_id, $meta_key, $meta_value, $unique); } endif; /** * Remove metadata matching criteria from a term. * * You can match based on the key, or key and value. Removing based on key and * value, will keep from removing duplicate metadata with the same key. It also * allows removing all metadata matching key, if needed. * * @param int $term_id Term ID * @param string $meta_key Metadata name. * @param mixed $meta_value Optional. Metadata value. * @return bool False for failure. True for success. */ if ( !function_exists('delete_term_meta') ): function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) { return delete_metadata('term', $term_id, $meta_key, $meta_value); } endif; /** * Retrieve term meta field for a term. * * @param int $term_id Term ID. * @param string $key The meta key to retrieve. * @param bool $single Whether to return a single value. * @return mixed Will be an array if $single is false. Will be value of meta data field if $single * is true. */ if ( !function_exists('get_term_meta') ): function get_term_meta( $term_id, $key, $single = false ) { return get_metadata('term', $term_id, $key, $single); } endif; /** * Update term meta field based on term ID. * * Use the $prev_value parameter to differentiate between meta fields with the * same key and term ID. * * If the meta field for the term does not exist, it will be added. * * @param int $term_id Term ID. * @param string $key Metadata key. * @param mixed $value Metadata value. * @param mixed $prev_value Optional. Previous value to check before removing. * @return bool False on failure, true if success. */ if ( !function_exists('update_term_meta') ): function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) { return update_metadata('term', $term_id, $meta_key, $meta_value, $prev_value); } endif; /** * Delete everything from term meta matching meta key. * * @param string $term_meta_key Key to search for when deleting. * @return bool Whether the term meta key was deleted from the database */ if ( !function_exists('delete_term_meta_by_key') ): function delete_term_meta_by_key($term_meta_key) { if ( !$term_meta_key ) return false; global $wpdb; $term_ids = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT term_id FROM $wpdb->termmeta WHERE meta_key = %s", $term_meta_key)); if ( $term_ids ) { $termmetaids = $wpdb->get_col( $wpdb->prepare( "SELECT meta_id FROM $wpdb->termmeta WHERE meta_key = %s", $term_meta_key ) ); $in = implode( ',', array_fill(1, count($termmetaids), '%d')); do_action( 'delete_termmeta', $termmetaids ); $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->termmeta WHERE meta_id IN($in)", $termmetaids )); do_action( 'deleted_termmeta', $termmetaids ); foreach ( $term_ids as $term_id ) wp_cache_delete($term_id, 'term_meta'); return true; } return false; } endif; /** * Retrieve term meta fields, based on term ID. * * The term meta fields are retrieved from the cache, so the function is * optimized to be called more than once. It also applies to the functions, that * use this function. * * @param int $term_id term ID * @return array */ if ( !function_exists('add_term_meta') ): function get_term_custom( $term_id ) { $term_id = (int) $term_id; if ( ! wp_cache_get($term_id, 'term_meta') ) update_termmeta_cache($term_id); return wp_cache_get($term_id, 'term_meta'); } endif; /** * Retrieve meta field names for a term. * * If there are no meta fields, then nothing (null) will be returned. * * @param int $term_id term ID * @return array|null Either array of the keys, or null if keys could not be retrieved. */ if ( !function_exists('get_term_custom_keys') ): function get_term_custom_keys( $term_id ) { $custom = get_term_custom( $term_id ); if ( !is_array($custom) ) return; if ( $keys = array_keys($custom) ) return $keys; } endif; /** * Retrieve values for a custom term field. * * The parameters must not be considered optional. All of the term meta fields * will be retrieved and only the meta field key values returned. * * @param string $key Meta field key. * @param int $term_id Term ID * @return array Meta field values. */ if ( !function_exists('get_term_custom_values') ): function get_term_custom_values( $key = '', $term_id ) { if ( !$key ) return null; $custom = get_term_custom($term_id); return isset($custom[$key]) ? $custom[$key] : null; } endif; # Copyright (C) 2012 qTranslate slug # This file is distributed under the same license as the qTranslate slug package. msgid "" msgstr "" "Project-Id-Version: qTranslate slug 1.0\n" "Report-Msgid-Bugs-To: http://wordpress.org/tag/qtranslate-slug\n" "POT-Creation-Date: 2012-05-27 20:27:55+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "PO-Revision-Date: 2012-06-17 03:37+0100\n" "Last-Translator: Carlos Sanz <carlos.sanz@gmail.com>\n" "Language-Team: Carlos Sanz Garcia <carlos.sanz@gmail.com>\n" # qtranslate-slug.php msgid "Language selector" msgstr "Selector de idioma" # qtranslate-slug.php msgid "Title:" msgstr "Título:" # qtranslate-slug.php msgid "<p style=\"color:red\">This plugin requires qTranslate to be installed and activated.</p>" msgstr "<p style=\"color:red\">Este plugin necesita qTranslate instalado y activado previamente.</p>" # qtranslate-slug.php msgid "Slug" msgstr "Enlace permanente" # qtranslate-slug.php msgid "Show short name (en):" msgstr "Mostrar nombre corto (en):" # qtranslate-slug-settings-options.php msgid "Post types" msgstr "Post types" # qtranslate-slug-settings-options.php msgid "Taxonomies" msgstr "Taxonomias" # qtranslate-slug-settings-options.php msgid "Slug (%s)" msgstr "URL (%s)" # qtranslate-slug-settings-options.php msgid "<code>http://example.org/<u>%s</u>/some-%s/</code>" msgstr "<code>http://ejemplo.org/<u>%s</u>/algun-%s/</code>" # qtranslate-slug-settings-options.php msgid "<code>http://example.org/<u>category</u>/some-category/</code>" msgstr "<code>http://ejemplo.org/<u>categoria</u>/alguna-categoria/</code>" # qtranslate-slug-settings-options.php msgid "<code>http://example.org/<u>tag</u>/some-tag/</code>" msgstr "<code>http://ejemplo.org/<u>etiqueta</u>/alguna-etiqueta/</code>" # qtranslate-slug-settings.php msgid "Qtranslate Slug options" msgstr "Opciones de Qtranslate Slug" # qtranslate-slug-settings.php msgid "Slug options" msgstr "Opciones de URL" # qtranslate-slug-settings.php msgid "Save Changes" msgstr "Guardar cambios" # qtranslate-slug-settings.php msgid "Expecting a Numeric value! Please fix." msgstr "Se espera un valor numérico! Por favor, corrígelo." # qtranslate-slug-settings.php msgid "Expecting comma separated numeric values! Please fix." msgstr "Se esperan valores numéricos separados por coma! Por favor, corrígelo." # qtranslate-slug-settings.php msgid "Invalid email" msgstr "E-mail incorrecto" # qtranslate-slug-settings.php msgid "This setting field cannot be empty! Please enter a valid email address." msgstr "Este campo no puede estar vacío! Por favor introduce una dirección de e-mail válida." # qtranslate-slug-settings.php msgid "Please enter a valid email address." msgstr "Por favor introduce una dirección de e-mail válida." # qtranslate-slug-settings.php msgid "upgrade now" msgstr "actualizar ahora" # qtranslate-slug.php msgid "Please update your old data to the new system." msgstr "Por favor actualiza tu antiguo sistema de datos al nuevo." # qtranslate-slug-settings.php msgid "Upgrade your data" msgstr "Actualiza tus datos" # qtranslate-slug-settings.php msgid "There are slugs stored with old data system. Please upgrade your data pressing upgrade button:" msgstr "Hay slugs almacenados en el antiguo sistema. Por favor actualiza tus datos aprentando el botón actualizar:" # qtranslate-slug-settings.php msgid "Sorry, some error happened. Refresh this page and try again please." msgstr "Lo sentimos, algún tipo de error ha ocurrido. Por favor recarga esta página y prueba otra vez." # qtranslate-slug-settings.php msgid "Congratulations, your data has been upgraded, you are up to date." msgstr "Felicidades, tus datos se han actualizado, ahora estás al día." # qtranslate-slug-settings.php msgid "One step more, select what type of slug is this: <strong>%s</strong>" msgstr "Un paso más, selecction qué tipo de slug es este: <strong>%s</strong>" # qtranslate-slug-settings.php msgid "Post, Page or Custom post type" msgstr "Entrada, Página o Custom post type" # qtranslate-slug-settings.php msgid "Category, tag or custom taxonomy" msgstr "Categoria, tag o taxonomía" # qtranslate-slug.php msgid "This plugin requires at least <strong>Wordpress 3.3</strong> and <strong>Qtranslate(2.5.8 or newer)</strong>" msgstr "Este plugin requiere al menos <strong>Wordpress 3.3</strong> y <strong>Qtranslate(2.5.8 o mayor)</strong>" # qtranslate-slug-settings.php msgid "If you activated previously the <a href=\"options-permalink.php\">pretty permalinks</a>, in this section you can translate the <abbr title=\"en inglés, Universal Resource Locator\">URLs</abbr> <strong>bases</strong> for <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments\">public</a> post_types, categories, tags and taxonomies." msgstr "Si has activado previamente los <a href=\"options-permalink.php\">enlaces permanentes</a>, en esta sección podrás traducir las <strong>bases</strong> de las <abbr title=\"en inglés, Universal Resource Locator\">URLs</abbr> para post_types, categorías, etiquetas y taxonomias <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments\">públicas</a>." # qtranslate-slug-settings.php msgid "For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as <code>http://example.org/es/libros/post-type-name/</code>. If you leave this blank will use the default option when you <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type\">registered</a> the post_type." msgstr "Por ejemplo, para el post_type <kbd>books</kbd> en Español se mostraría como <code>http://example.org/es/libros/post-type-name/</code>. Si dejas esto en blanco se usará la opción predeterminada cuando <a href=\"http://codex.wordpress.org/Function_Reference/register_post_type\">registraste</a> el post_type." # qtranslate-slug-settings.php msgid "For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave this blank will use the default option when you <a href=\"http://codex.wordpress.org/Function_Reference/register_taxonomy\">registered</a> the taxonomy (if you previously setup a base permastruct for <u>categories</u> or <u>tags</u> in <a href=\"options-permalink.php\">permalinks</a> page, these bases will be overwritten by the translated ones)." msgstr "Por ejemplo, la taxonomia <kbd>category</kbd>, en Español se mostraría como <code>http://example.org/es/categoria/taxonomy-name/</code>. Si dejas esto en blanco se usará la opción predeterminada cuando <a href=\"http://codex.wordpress.org/Function_Reference/register_taxonomy\">registraste</a> la texonomia (si previamente configuraste la base de las estructuraas de <u>categorías</u> o <u>tags</u> en la página <a href=\"options-permalink.php\">enlaces permanentes</a>, estas bases serán reemplazadas por las traducidas)." # Copyright (C) 2012 qTranslate slug # This file is distributed under the same license as the qTranslate slug package. msgid "" msgstr "" "Project-Id-Version: qTranslate slug\n" "Report-Msgid-Bugs-To: http://wordpress.org/tag/qtranslate-slug\n" "POT-Creation-Date: 2015-01-23 14:23-0000\n" "PO-Revision-Date: 2015-01-23 15:26-0000\n" "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n" "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n" "Language: pt_PT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.7.3\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext;_n;__ngettext_noop;_n_noop;_x;_nx;" "_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;esc_html_x;" "_c;_nc\n" "X-Poedit-Basepath: .\n" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPath-1: ..\n" #: ../includes/class-qtranslate-slug-widget.php:11 msgid "Allows your visitors to choose a Language." msgstr "Permite aos visitantes escolher o seu Idioma." #: ../includes/class-qtranslate-slug-widget.php:12 msgid "Language selector" msgstr "Selector de idioma" #: ../includes/class-qtranslate-slug-widget.php:19 msgid "Language" msgstr "Idioma" #: ../includes/class-qtranslate-slug-widget.php:51 msgid "Title:" msgstr "Título:" #: ../includes/class-qtranslate-slug-widget.php:52 msgid "Hide Title:" msgstr "Esconder título:" #: ../includes/class-qtranslate-slug-widget.php:53 msgid "Display:" msgstr "Mostrar:" #: ../includes/class-qtranslate-slug-widget.php:54 msgid "Text only" msgstr "Apenas texto" #: ../includes/class-qtranslate-slug-widget.php:55 msgid "Image only" msgstr "Apenas imagem" #: ../includes/class-qtranslate-slug-widget.php:56 msgid "Text and Image" msgstr "Texto e imagem" #: ../includes/class-qtranslate-slug-widget.php:57 msgid "Dropdown Box" msgstr "Caixa de selecção" #: ../includes/class-qtranslate-slug-widget.php:58 msgid "Show short name (en):" msgstr "Mostrar abreviatura (pt):" #: ../includes/class-qtranslate-slug.php:413 msgid "Please update your old data to the new system." msgstr "Por favor actualize os seus dados antigos para o novo sistema." #: ../includes/class-qtranslate-slug.php:413 #: ../includes/qtranslate-slug-settings.php:29 msgid "upgrade now" msgstr "actualizar agora" #: ../includes/class-qtranslate-slug.php:427 msgid "or newer" msgstr "ou mais recente" #: ../includes/class-qtranslate-slug.php:432 msgid "This plugin requires at least %s and either %s, or %s, or %s" msgstr "Este plugin requer no mínimo o %s e o %s, ou %s, ou %s" #: ../includes/class-qtranslate-slug.php:432 msgid "More information about" msgstr "Mais informações sobre" #: ../includes/class-qtranslate-slug.php:1612 msgid "View all posts in %s" msgstr "Ver todos os artigos em %s" #: ../includes/class-qtranslate-slug.php:1739 msgid "Empty Term" msgstr "Termo vazio" #: ../includes/class-qtranslate-slug.php:1999 #: ../includes/class-qtranslate-slug.php:2000 #: ../includes/class-qtranslate-slug.php:2003 #: ../includes/class-qtranslate-slug.php:2541 msgid "Slug" msgstr "URL" #: ../includes/class-qtranslate-slug.php:2214 #: ../includes/class-qtranslate-slug.php:2233 #: ../includes/qtranslate-slug-settings-options.php:39 msgid "Slug (%s)" msgstr "URL (%s)" #: ../includes/class-qtranslate-slug.php:2400 #: ../includes/class-qtranslate-slug.php:2404 msgid "Name" msgstr "Nome" #: ../includes/class-qtranslate-slug.php:2542 msgid "Posts" msgstr "Artigos" #: ../includes/class-qtranslate-slug.php:2634 msgid "Languages" msgstr "Idiomas" #: ../includes/class-qtranslate-slug.php:2657 msgid "All languages" msgstr "Todos os idiomas" #: ../includes/qtranslate-slug-settings-options.php:14 msgid "Post types" msgstr "Tipos de artigos" #: ../includes/qtranslate-slug-settings-options.php:15 msgid "Taxonomies" msgstr "Taxonomias" #: ../includes/qtranslate-slug-settings-options.php:16 msgid "Styles" msgstr "Estilos" #: ../includes/qtranslate-slug-settings-options.php:63 msgid "Change styles type" msgstr "Alterar o tipo de estilos" #: ../includes/qtranslate-slug-settings-options.php:65 msgid "adds a file (qts-default.css) to the theme's header." msgstr "adiciona um ficheiro (qts-default.css) ao cabeçalho do tema." #: ../includes/qtranslate-slug-settings-options.php:66 msgid "" "adds a minified ( slighlty faster) file (qts-default.min.css) to the theme's " "header." msgstr "" "adiciona um ficheiro minimizado (qts-default.min.css), ligeiramente mais " "rápido, ao cabeçalho do tema." #: ../includes/qtranslate-slug-settings-options.php:67 msgid "prints the styles directly into the theme's header." msgstr "exibe os estilos directamente no cabeçalho do tema." #: ../includes/qtranslate-slug-settings-options.php:68 msgid "neither include not print the default style." msgstr "nem incluir nem exibir o estilo padrão." #: ../includes/qtranslate-slug-settings-options.php:73 msgid "file" msgstr "ficheiro" #: ../includes/qtranslate-slug-settings-options.php:74 msgid "minified" msgstr "minimizado" #: ../includes/qtranslate-slug-settings-options.php:75 msgid "inline" msgstr "em linha" #: ../includes/qtranslate-slug-settings-options.php:76 msgid "none" msgstr "nenhum" #: ../includes/qtranslate-slug-settings-options.php:106 #: ../includes/qtranslate-slug-settings-options.php:148 msgid "<code>http://example.org/<u>%s</u>/some-%s/</code>" msgstr "<code>http://exemplo.org/<u>%s</u>/qualquer-%s/</code>" #: ../includes/qtranslate-slug-settings-options.php:119 msgid "Categories" msgstr "Categorias" #: ../includes/qtranslate-slug-settings-options.php:120 msgid "<code>http://example.org/<u>category</u>/some-category/</code>" msgstr "<code>http://exemplo.org/<u>categoria</u>/qualquer-categoria/</code>" #: ../includes/qtranslate-slug-settings-options.php:130 msgid "Tags" msgstr "Etiquetas" #: ../includes/qtranslate-slug-settings-options.php:131 msgid "<code>http://example.org/<u>tag</u>/some-tag/</code>" msgstr "<code>http://exemplo.org/<u>etiqueta</u>/qualquer-etiqueta/</code>" #: ../includes/qtranslate-slug-settings-options.php:175 msgid "Qtranslate Settings - Contextual Help" msgstr "Definições do Qtranslate - Ajuda contextual" #: ../includes/qtranslate-slug-settings-options.php:176 msgid "" "Contextual help goes here. You may want to use different html elements to " "format your text as you want." msgstr "" "Isto é a ajuda contextual. Poderá utilizar diferentes elementos html para " "formatar o seu texto como desejar." #: ../includes/qtranslate-slug-settings.php:23 msgid "Upgrade your data" msgstr "Actualize os seus dados" #: ../includes/qtranslate-slug-settings.php:24 msgid "" "There are slugs stored with old data system. Please upgrade your data pressing " "upgrade button:" msgstr "" "Existem URLs com sistema de dados antigo. Por favor actualize os seus dados " "através do botão actualizar:" #: ../includes/qtranslate-slug-settings.php:77 msgid "Sorry, some error happened. Refresh this page and try again please." msgstr "" "Lamentavelmente mas ocorreu um erro. Por favor refresque esta página e tente " "novamente." #: ../includes/qtranslate-slug-settings.php:84 msgid "Congratulations, your data has been upgraded, you are up to date." msgstr "" "Parabéns, os seus dados foram actualizados e o sistema está agora actual." #: ../includes/qtranslate-slug-settings.php:90 msgid "One step more, select what type of slug is this: <strong>%s</strong>" msgstr "Um passo mais, seleccione que tipo de URL é este: <strong>%s</strong>" #: ../includes/qtranslate-slug-settings.php:91 msgid "Post, Page or Custom post type" msgstr "Artigo, página ou tipo de artigo personalizado" #: ../includes/qtranslate-slug-settings.php:91 msgid "Category, tag or custom taxonomy" msgstr "Categoria, etiqueta ou taxonomia personalizada" #: ../includes/qtranslate-slug-settings.php:182 #: ../includes/qtranslate-slug-settings.php:322 msgid "Qtranslate Slug options" msgstr "Opções do Qtranslate Slug" #: ../includes/qtranslate-slug-settings.php:322 msgid "Slug options" msgstr "Opções do URL" #: ../includes/qtranslate-slug-settings.php:359 msgid "" "For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as " "<code>http://example.org/es/libros/post-type-name/</code>. If you leave this " "blank will use the default option when you <a href=\"http://codex.wordpress." "org/Function_Reference/register_post_type\">registered</a> the post_type." msgstr "" "Por exemplo, o tipo de artigo <kbd>livros</kbd>, em português seria mostrado " "como <code>http://exemplo.org/pt/livros/nome-de-tipo-de-artigo/</code>. Se " "deixar isto em branco, será usada a opção por omissão <a href=\"http://codex." "wordpress.org/Function_Reference/register_post_type\">registada</a> no tipo de " "artigo." #: ../includes/qtranslate-slug-settings.php:364 msgid "" "For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed " "as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave " "this blank will use the default option when you <a href=\"http://codex." "wordpress.org/Function_Reference/register_taxonomy\">registered</a> the " "taxonomy (if you previously setup a base permastruct for <u>categories</u> or " "<u>tags</u> in <a href=\"options-permalink.php\">permalinks</a> page, these " "bases will be overwritten by the translated ones)." msgstr "" "Por exemplo, a taxonomia <kbd>categoria</kbd>, em português seria mostrado " "como <code>http://exemplo.org/pt/categoria/nome-de-taxonomia/</code>. Se " "deixar isto em branco, será usada a opção por omissão <a href=\"http://codex." "wordpress.org/Function_Reference/register_taxonomy\">registada</a> na " "taxonomia (se previamente configurou a base das ligações permanentes para " "<u>categorias</u> ou <u>etiquetas</u> na página <a href=\"options-permalink.php" "\">ligações permanentes</a>, estas bases serão sobrepostas pelas traduzidas)." #: ../includes/qtranslate-slug-settings.php:368 msgid "The default styles are very minimal, and you can include them or not." msgstr "Os estilos padrão são mínimos, pode incluí-los ou não." #: ../includes/qtranslate-slug-settings.php:567 msgid "" "If you activated previously the <a href=\"options-permalink.php\">pretty " "permalinks</a>, in this section you can translate the <abbr title=\"en inglés, " "Universal Resource Locator\">URLs</abbr> <strong>bases</strong> for <a href=" "\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments" "\">public</a> post_types, categories, tags and taxonomies." msgstr "" "Se activou previamente as <a href=\"options-permalink.php\">ligações " "permanentes</a>, nesta secção poderá traduzir as <strong>bases</strong> das " "<abbr title=\"em inglês, Universal Resource Locator\">URLs</abbr> para tipos " "de artigo, categorias, etiquetas e taxonomias <a href=\"http://codex.wordpress." "org/Function_Reference/register_post_type#Arguments\">públicas</a>." #: ../includes/qtranslate-slug-settings.php:586 msgid "If you selected \"none\", copy and use these styles as you see fit:" msgstr "Se escolher \"nenhum\", copie e utilize estes estilos como entender:" #: ../includes/qtranslate-slug-settings.php:589 msgid "Save Changes" msgstr "Guardar alterações" #: ../includes/qtranslate-slug-settings.php:642 msgid "Expecting a Numeric value! Please fix." msgstr "É necessário um valor numérico! Por favor, corrija." #: ../includes/qtranslate-slug-settings.php:655 msgid "Expecting comma separated numeric values" msgstr "Valores numéricos separados por vírgulas" #: ../includes/qtranslate-slug-settings.php:665 msgid "Expecting comma separated numeric values! Please fix." msgstr "" "São necessários valores numéricos separados por vírgulas! Por favor, corrija." #: ../includes/qtranslate-slug-settings.php:690 msgid "Invalid email" msgstr "Email incorrecto" #: ../includes/qtranslate-slug-settings.php:692 msgid "This setting field cannot be empty! Please enter a valid email address." msgstr "" "Este campo não pode estar vazio! Por favor introduza um endereço de email " "válido." #: ../includes/qtranslate-slug-settings.php:700 msgid "Please enter a valid email address." msgstr "Por favor introduza um endereço de email válido." #: ../qtranslate-slug.php:150 msgid "Settings" msgstr "Definições" # Copyright (C) 2012 qTranslate slug # This file is distributed under the same license as the qTranslate slug package. msgid "" msgstr "" "Project-Id-Version: qTranslate slug 1.0\n" "Report-Msgid-Bugs-To: http://wordpress.org/tag/qtranslate-slug\n" "POT-Creation-Date: 2015-01-23 14:23-0000\n" "PO-Revision-Date: 2015-01-23 14:23-0000\n" "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n" "Language-Team: Carlos Sanz Garcia <carlos.sanz@gmail.com>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 1.7.3\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext;_n;__ngettext_noop;_n_noop;_x;_nx;" "_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;" "esc_html_x\n" "X-Poedit-Basepath: .\n" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPath-1: ..\n" #: ../includes/class-qtranslate-slug-widget.php:11 msgid "Allows your visitors to choose a Language." msgstr "" #: ../includes/class-qtranslate-slug-widget.php:12 msgid "Language selector" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:19 msgid "Language" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:51 msgid "Title:" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:52 msgid "Hide Title:" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:53 msgid "Display:" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:54 msgid "Text only" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:55 msgid "Image only" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:56 msgid "Text and Image" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:57 msgid "Dropdown Box" msgstr "" #: ../includes/class-qtranslate-slug-widget.php:58 msgid "Show short name (en):" msgstr "" #: ../includes/class-qtranslate-slug.php:413 msgid "Please update your old data to the new system." msgstr "" #: ../includes/class-qtranslate-slug.php:413 #: ../includes/qtranslate-slug-settings.php:29 msgid "upgrade now" msgstr "" #: ../includes/class-qtranslate-slug.php:427 msgid "or newer" msgstr "" #: ../includes/class-qtranslate-slug.php:432 msgid "This plugin requires at least %s and either %s, or %s, or %s" msgstr "" #: ../includes/class-qtranslate-slug.php:432 msgid "More information about" msgstr "" #: ../includes/class-qtranslate-slug.php:1612 msgid "View all posts in %s" msgstr "" #: ../includes/class-qtranslate-slug.php:1739 msgid "Empty Term" msgstr "" #: ../includes/class-qtranslate-slug.php:1999 #: ../includes/class-qtranslate-slug.php:2000 #: ../includes/class-qtranslate-slug.php:2003 #: ../includes/class-qtranslate-slug.php:2541 msgid "Slug" msgstr "" #: ../includes/class-qtranslate-slug.php:2214 #: ../includes/class-qtranslate-slug.php:2233 #: ../includes/qtranslate-slug-settings-options.php:39 msgid "Slug (%s)" msgstr "" #: ../includes/class-qtranslate-slug.php:2400 #: ../includes/class-qtranslate-slug.php:2404 msgid "Name" msgstr "" #: ../includes/class-qtranslate-slug.php:2542 msgid "Posts" msgstr "" #: ../includes/class-qtranslate-slug.php:2634 msgid "Languages" msgstr "" #: ../includes/class-qtranslate-slug.php:2657 msgid "All languages" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:14 msgid "Post types" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:15 msgid "Taxonomies" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:16 msgid "Styles" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:63 msgid "Change styles type" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:65 msgid "adds a file (qts-default.css) to the theme's header." msgstr "" #: ../includes/qtranslate-slug-settings-options.php:66 msgid "" "adds a minified ( slighlty faster) file (qts-default.min.css) to the theme's " "header." msgstr "" #: ../includes/qtranslate-slug-settings-options.php:67 msgid "prints the styles directly into the theme's header." msgstr "" #: ../includes/qtranslate-slug-settings-options.php:68 msgid "neither include not print the default style." msgstr "" #: ../includes/qtranslate-slug-settings-options.php:73 msgid "file" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:74 msgid "minified" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:75 msgid "inline" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:76 msgid "none" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:106 #: ../includes/qtranslate-slug-settings-options.php:148 msgid "<code>http://example.org/<u>%s</u>/some-%s/</code>" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:119 msgid "Categories" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:120 msgid "<code>http://example.org/<u>category</u>/some-category/</code>" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:130 msgid "Tags" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:131 msgid "<code>http://example.org/<u>tag</u>/some-tag/</code>" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:175 msgid "Qtranslate Settings - Contextual Help" msgstr "" #: ../includes/qtranslate-slug-settings-options.php:176 msgid "" "Contextual help goes here. You may want to use different html elements to " "format your text as you want." msgstr "" #: ../includes/qtranslate-slug-settings.php:23 msgid "Upgrade your data" msgstr "" #: ../includes/qtranslate-slug-settings.php:24 msgid "" "There are slugs stored with old data system. Please upgrade your data pressing " "upgrade button:" msgstr "" #: ../includes/qtranslate-slug-settings.php:77 msgid "Sorry, some error happened. Refresh this page and try again please." msgstr "" #: ../includes/qtranslate-slug-settings.php:84 msgid "Congratulations, your data has been upgraded, you are up to date." msgstr "" #: ../includes/qtranslate-slug-settings.php:90 msgid "One step more, select what type of slug is this: <strong>%s</strong>" msgstr "" #: ../includes/qtranslate-slug-settings.php:91 msgid "Post, Page or Custom post type" msgstr "" #: ../includes/qtranslate-slug-settings.php:91 msgid "Category, tag or custom taxonomy" msgstr "" #: ../includes/qtranslate-slug-settings.php:182 #: ../includes/qtranslate-slug-settings.php:322 msgid "Qtranslate Slug options" msgstr "" #: ../includes/qtranslate-slug-settings.php:322 msgid "Slug options" msgstr "" #: ../includes/qtranslate-slug-settings.php:359 msgid "" "For example, the post_type <kbd>books</kbd>, in Spanish would be displayed as " "<code>http://example.org/es/libros/post-type-name/</code>. If you leave this " "blank will use the default option when you <a href=\"http://codex.wordpress." "org/Function_Reference/register_post_type\">registered</a> the post_type." msgstr "" #: ../includes/qtranslate-slug-settings.php:364 msgid "" "For example, the taxonomy <kbd>category</kbd>, in Spanish would be displayed " "as <code>http://example.org/es/categoria/taxonomy-name/</code>. If you leave " "this blank will use the default option when you <a href=\"http://codex." "wordpress.org/Function_Reference/register_taxonomy\">registered</a> the " "taxonomy (if you previously setup a base permastruct for <u>categories</u> or " "<u>tags</u> in <a href=\"options-permalink.php\">permalinks</a> page, these " "bases will be overwritten by the translated ones)." msgstr "" #: ../includes/qtranslate-slug-settings.php:368 msgid "The default styles are very minimal, and you can include them or not." msgstr "" #: ../includes/qtranslate-slug-settings.php:567 msgid "" "If you activated previously the <a href=\"options-permalink.php\">pretty " "permalinks</a>, in this section you can translate the <abbr title=\"en inglés, " "Universal Resource Locator\">URLs</abbr> <strong>bases</strong> for <a href=" "\"http://codex.wordpress.org/Function_Reference/register_post_type#Arguments" "\">public</a> post_types, categories, tags and taxonomies." msgstr "" #: ../includes/qtranslate-slug-settings.php:586 msgid "If you selected \"none\", copy and use these styles as you see fit:" msgstr "" #: ../includes/qtranslate-slug-settings.php:589 msgid "Save Changes" msgstr "" #: ../includes/qtranslate-slug-settings.php:642 msgid "Expecting a Numeric value! Please fix." msgstr "" #: ../includes/qtranslate-slug-settings.php:655 msgid "Expecting comma separated numeric values" msgstr "" #: ../includes/qtranslate-slug-settings.php:665 msgid "Expecting comma separated numeric values! Please fix." msgstr "" #: ../includes/qtranslate-slug-settings.php:690 msgid "Invalid email" msgstr "" #: ../includes/qtranslate-slug-settings.php:692 msgid "This setting field cannot be empty! Please enter a valid email address." msgstr "" #: ../includes/qtranslate-slug-settings.php:700 msgid "Please enter a valid email address." msgstr "" #: ../qtranslate-slug.php:150 msgid "Settings" msgstr "" <?php /* Plugin Name: qTranslate slug Plugin URI: http://not-only-code.github.com/qtranslate-slug/ Description: Allows to define a slug for each language and some qTranslate bug fixes Version: 1.1.16 Author: Carlos Sanz Garcia, Pedro Carvalho Author URI: http://github.com/not-only-code */ //////////////////////////////////////////////////////////////////////////////////////// if ( !function_exists('_debug') ): function _debug( $message ) { if ( WP_DEBUG === true ): if ( is_array( $message ) || is_object( $message ) ) { error_log( print_r( $message, true ) ); } else { error_log( $message ); } endif; } endif; //////////////////////////////////////////////////////////////////////////////////////// /** * Includes * * @since 1.1.8 */ include_once(dirname(__FILE__).'/includes/class-qtranslate-slug-widget.php'); include_once(dirname(__FILE__).'/includes/class-qtranslate-slug.php'); //////////////////////////////////////////////////////////////////////////////////////// /** * Define Constants * * @since 1.0 */ if (!defined("QTS_VERSION")) define("QTS_VERSION", '1.1.12'); if (!defined("QTS_PREFIX")) define("QTS_PREFIX", '_qts_'); if (!defined("QTS_PAGE_BASENAME")) define('QTS_PAGE_BASENAME', 'qtranslate-slug-settings'); if (!defined("QTS_OPTIONS_NAME")) define("QTS_OPTIONS_NAME", 'qts_options'); if (!defined("PHP_EOL")) define("PHP_EOL", "\r\n"); //////////////////////////////////////////////////////////////////////////////////////// /** * Includes * * @since 1.0 */ if ( is_admin() && !QtranslateSlug::block_activate() ) { // setting options page include_once(dirname(__FILE__).'/includes/qtranslate-slug-settings.php'); } include_once(dirname(__FILE__).'/includes/termmeta-core.php'); // termmeta install and core functions //////////////////////////////////////////////////////////////////////////////////////// /** * Init the plugin * * @since 1.0 */ global $qtranslate_slug; $qtranslate_slug = new QtranslateSlug(); // plugin activation register_activation_hook( __FILE__, array($qtranslate_slug, 'install') ); // plugin deactivation register_deactivation_hook( __FILE__, array($qtranslate_slug, 'deactivate') ); // plugin uninstall register_uninstall_hook( __FILE__, 'qts_uninstall' ); // plugin init add_action('plugins_loaded', array($qtranslate_slug, 'init') ); //////////////////////////////////////////////////////////////////////////////////////// /** * Language Selector Code for templating * * @package Qtranslate Slug * @subpackage Core * @since 1.0 */ function qts_language_menu ($type = "text", $args = array()) { global $qtranslate_slug; $qtranslate_slug->language_menu($type, $args); } /** * Finds the translated slug of the given post by calling get_slug * @param int $id the post id * @param string $lang which language to look for * @since 1.1.13 */ function qts_get_slug( $id, $lang ) { global $qtranslate_slug; return $qtranslate_slug->get_slug($id, $lang); } /** * Adds support for old plugin function * * @package Qtranslate Slug * @subpackage Core * @since 1.1.5 */ function qTranslateSlug_getSelfUrl ($lang = false) { // bad naming, I'll keep just in case return qts_get_url($lang); } function qts_get_url($lang = false) { global $qtranslate_slug; return $qtranslate_slug->get_current_url($lang); } /** * Add a "Settings" link to the plugins.php page for Qtranslate Slug * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * * @return calls qts_show_msg() */ function qts_add_settings_link( $links, $file ) { if (QtranslateSlug::block_activate()) return $links; $this_plugin = plugin_basename( __FILE__ ); if( $file == $this_plugin ) { $settings_link = "<a href=\"options-general.php?page=" . QTS_PAGE_BASENAME . "\">" . __( 'Settings', 'qts' ) . '</a>'; array_unshift($links, $settings_link); } return $links; } add_filter( 'plugin_action_links', 'qts_add_settings_link', 10, 2 ); /** * Delete plugin stored data ( options, termmeta table and postmeta data ) * * @package Qtranslate Slug * @subpackage Settings * @version 1.0 * */ function qts_uninstall() { global $q_config, $wpdb; // options delete_option(QTS_OPTIONS_NAME); delete_option('qts_version'); // delete termmeta table $wpdb->query("DROP TABLE IF EXISTS $wpdb->termmeta"); // delete postmeta data $meta_keys = array(); foreach ($q_config['enabled_languages'] as $lang) $meta_keys[] = sprintf("_qts_slug_%s", $lang); $meta_keys = "'". implode( "','", $meta_keys ) . "'"; $wpdb->query("DELETE from $wpdb->postmeta WHERE meta_key IN ($meta_keys)"); } === Qtranslate Slug === Contributors: carlos_a_sanz, pedroghandi Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SYC46KSLRC4Q8 Tags: qtranslate, slug, multilanguage, widget Requires at least: 3.3 Tested up to: 4.2.4 Stable tag: 1.1.17 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Adds support for permalink translations to QTranslate-X since wordpress 3.0 == Description == [Qtranslate-X](http://wordpress.org/plugins/qtranslate-x/) is a nice plugin for Multilingual Websites. **Qtranslate Slug** is an addon to QTranslate, which adds support for permalinks translations. 1.1.17 fixes a dangerous Security Exploit. Please update right now! = Requirements: = * Wordpress 3.3 (PHP 5.4 and MySQL 5) * mQtranslate 2.6.2.4 or Qtranslate 2.5.8 or qtranslate-x ( 2.9.1 ) = New in 1.1.17 = * Hability to filter the position of the Metabox * Fixed dangerous security exploit! = New in 1.1.16 = Minor fix for the language menu using qtranslate's function = New in 1.1.15 = * Fixes the duplicated hreflang links in <head> = New in 1.1.14 = The menu widget didn't allow the visitors to change to the default language if qtranslate-x was being used. So, adjusted the Language Menu widget to play nice with qtranslate-x. Hope to bring some nice changes that were made in the github repository in the next version. For now, enjoy. = New in 1.1.13 = == Thanks to returning @pedro-mendonca for these commits: == * Cleaned duplicated label in widget * Bug fix in "Slug (%s)" string translation * Changed text strings with no text-domain and with text-domain 'qtranlate' to text-domain 'qts' * pot catalog updated with current strings, including last found is "More information about". == Thanks to @johnclause for these : == * Convenience links in notice_dependences * Menu compatibility with qTranslate-X * Fixed extra characters in widget ### Thanks to vbkun for casting the much wanted function to get a slug based on an id and language * Added a global qts_get_slug( $id, $lang) ### and sadly: * removed the menu admin box until better implementation See you next Version! **Advice: If you're using a multisite installation, you will must activate qtranslate plugins by separately on each site.** You can also check the [project website](http://not-only-code.github.com/qtranslate-slug/) hosted on [GitHub](http://not-only-code.github.com). Thanks for use this plugin! = Contributors = * [Pedro de Carvalho](https://github.com/LC43/) * [Risto Niinemets](https://github.com/RistoNiinemets) * [Pedro Mendonça](https://github.com/pedro-mendonca) * [codep0et](https://github.com/codep0et) * [Giraldi Maggio](https://github.com/bedex78) * [jinoOM](https://github.com/jinoOM) * [Juanfran](https://github.com/juanfran-granados) * [Arild](https://github.com/arildm) * [Rafa Aguilar](https://github.com/rafitaFCB) * [Bastian Heist](https://github.com/beheist) * [John Clause](https://github.com/johnclause) == Installation == **This plugins requires [Qtranslate](http://wordpress.org/extend/plugins/qtranslate/) or [mqTranslate](https://wordpress.org/plugins/mqtranslate/) installed previously, if not, it will not activate.** 1. Upload `qtranslate-slug` to the `/wp-content/plugins/` directory. 1. Activate the plugin through the 'Plugins' menu in WordPress. 1. That's all! = Changing base permastructs = 1. In admin: navigate to *Settings/Slug options*. 1. Set the base permastructs for **post types** and **taxonomies** (If you setup a base permastruct for *categories* or *tags* in *Settings/Permalinks*, these will be overwritten by the translated ones). 1. Save settings and that's all! == Frequently Asked Questions == = It works with posts and pages, but with other content type? = This plugin allows to translate slugs of: posts, pages, custom post types, categories, tags and custom taxonomies. = Do I have to configure anything? = If you want to translate also the base permastructs (ex. *category*, *tag*, etc). Visit the plugin settings page in the admin *Settings/Slug options* = How can i insert a language selector in my theme ? = You can choose to: * use **Qtranslate Slug Widget** in your sidebar. * place in your template `<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>`. Options are: `dropdown`, `text`, `image`, and `both`. = Appears an error 404, what can i do? = In the admin go to *Settings/Permalinks* or *Settings/Slug options* and save. = I can't manage translations in Nav Menus. = That's because language selector metabox is hidden, if you are in admin *nav menus* screen, press the button **Screen options** (on top and right) and after, check the option *Languages*. It will appear a **Language** meta box on top of the left sidebar. = How to get the current url in a specific language? = You can use `qts_get_url()` or the awkwardly named `qTranslateSlug_getSelfUrl()` which is an alias for the first one. == Screenshots == 1. Edit page for: post / page / post_type, you can see the meta box for translated slugs on top and right. 2. Add new taxonomy page 3. Edit taxonomy page 4. Qtranslate Slug options page for translate base permastructs of post_types and taxonomies. == Changelog == = New in Versions 1.1.12 = * fixed warnings in settings * replace qtranslate with our own for taxonomies = New in Versions 1.1.10 and 1.1.11 = * Fixing wrong commit to wp.org * Clean deleted files = New in Version 1.1.9 = Lots of bug fixes! Thanks again to everyone that contributed to this project, with commits, bug reports and suggestions. * Compatibility with qtranslate-X! ( thanks @beheist, pull #85, fixing most of #80 ) * More updates to the portuguese translation ( thanks pedro-mendonca, pull #86) * Corrected the link to language files ( thanks pedro-mendonca ) * Added translation for some hardcoded texts ( thanks pedro-mendonca ) * Corrected a link from 'qtranslate' to 'qts' language files ( thanks pedro-mendonca ) * Fixed taxonomies slugs ( thanks to [eirikv's bug report](https://wordpress.org/support/topic/categories-slug-dont-work) ) * Fixed many warnings ( thanks piffpaffpuff, issue #78 and to [pedrodu1](https://wordpress.org/support/topic/warnings-qtranslate-slugphp) ) * Changed the behaviour of "Quick Edit", from the wp forums [1](https://wordpress.org/support/topic/categories-tags-and-quick-edit-dont-show-in-admin) [2](https://wordpress.org/support/topic/quick-edit-inhibited-by-qtranslate-slug-with-wp-41-mqtranslate) ( thanks everyone!! ) * Fixed the menus! Now you can properly use one menu for every language. Use the dropdown section "Languages", and for each item, change the "Navigation Label" and "Title Attribute". Select "All languages", to make sure everything is awesome! All these features were a consequence of fixing all the warnings based on [Gery's bug report](https://wordpress.org/support/topic/qtranslate-slug-conflicting-with-ubermenu). * Minor fixes, etc. = New in Version 1.1.9 = Lots of bug fixes! Thanks again to everyone that contributed to this project, with commits, bug reports and suggestions. * Compatibility with qtranslate-X! ( thanks @beheist, pull #85, fixing most of #80 ) * More updates to the portuguese translation ( thanks pedro-mendonca, pull #86) * Corrected the link to language files ( thanks pedro-mendonca ) * Added translation for some hardcoded texts ( thanks pedro-mendonca ) * Corrected a link from 'qtranslate' to 'qts' language files ( thanks pedro-mendonca ) * Fixed taxonomies slugs ( thanks to [eirikv's bug report](https://wordpress.org/support/topic/categories-slug-dont-work) * Fixed many warnings ( thanks piffpaffpuff, issue #78 and to [pedrodu1](https://wordpress.org/support/topic/warnings-qtranslate-slugphp) ) * Changed the behaviour of "Quick Edit", from the wp forums [1](https://wordpress.org/support/topic/categories-tags-and-quick-edit-dont-show-in-admin) [2](https://wordpress.org/support/topic/quick-edit-inhibited-by-qtranslate-slug-with-wp-41-mqtranslate) ( thanks everyone!! ) * Fixed the menus! Now you can properly use one menu for every language. Use the dropdown section "Languages", and for each item, change the "Navigation Label" and "Title Attribute". Select "All languages", to make sure everything is awesome! All these features were a consequence of fixing all the warnings based on [Gery's bug report)[https://wordpress.org/support/topic/qtranslate-slug-conflicting-with-ubermenu). * Minor fixes, etc. See you next Version! = 1.1.8 = Many thanks to everyone that contributed to this update, for their commits, bug reports and for simply using it * Portuguese translation and fixed some translation bugs ( thanks pedro-mendonca ) * removed mqtranslate switcher widget hook * Updated the plugin structure and coding style * solve some conflicts with search and pagination queries * Settings php errors, syntax indent and fixed settings assets url * Change titles when there is a click on pagination on show all pages tab ( thanks juanfran-granados ) * Formatted dependency notice message ( thanks arildm ) * Updated the deprecated jquery 'live' function and solve php strict standards error ( thanks rafitaFCB ) * Fixed error showing if PHP was newer than 5.3 ( thanks rafitaFCB ) * Strict standard advise prevented ( thanks rafitaFCB ) * php notices are prevented in post edit, when using adding new translated tags ( thanks rafitaFCB ) * fixed the hreflang issue! 'bout time! * As discussed in issue #25, the flags are now img tags, intead of background-url. * Added another option to include the css style in a minified file. ( and also showing in the option screen the styles we would use.) = 1.1.7 = * removed styles from html elements and added options to use .css file or print inline styles * fixed tag creation on post edit. * fixed earlier bad post slug introduced in 1.1.6 = 1.1.6 = * compatible with mqtranslate * php5.4+ compatible = 1.1.5 = * bugfixes = 1.1 = * added multisite support * fixed some parse url bugs * fixed slug bases validation = 1.0 = * **works** with any permalink combination and qtranslate mode. * new branch, the plugin has been rewritten: now the code is commented and wrapped inside a class, much code has change and the performance has been increased (use caches). * data system changed, no ID for slug type, then it don't needs install `qtrasnlate_slug` table. That means slugs now are stored on meta tables and installation creates a termmeta table with some new *core functions* to access/save data, based on [simple term meta](http://wordpress.org/extend/plugins/simple-term-meta/). Upgrade process when the plugin updates from older versions. * the plugin generates translated slug automatically from title in empty cases. * the plugin checks if the slug already exists (per each language and `post_type`/`taxonomy`), and adds a progressive number in this case. Works on ajax requests for example when new taxonomies are created in edit post page. * possibility to translate the base of permastructs for *post_types* and *taxonomies*, uses [$wp_rewrite](http://codex.wordpress.org/Class_Reference/WP_Rewrite). New admin options page for save the base permastructs. * added some filters, see in [other notes](http://wordpress.org/extend/plugins/qtranslate-slug/other_notes/). * added plugin language textdomain (.pot file). * updated **Language selector Widget**, and some new conventions like accessible functions for templating. * some bug fixes. * some Qtranslate patches. = 0.9 = * some wordpress qTranslate bug fixes * adds a javascript solution for qTranslate Nav Menus = 0.8 = * added support por Categories * added support por Tags * added support por Taxonomies * added support por Custom Post Types = 0.7 = [Zapo](http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=4&t=1049&start=50#p7499) * added suport for qTranslate TLD domain mode (en: domain.com | fr: domain.fr) visit = 0.5 and 0.6 enhanched by Marco Del Percio = == Upgrade Notice == = 1.0 = Major version, the plugin has been rewritten. Better performance, and some enhancements. = 0.9 = This version fix some bugs and allow multilanguage in nav-menus. = 0.8 = A lot of slugs content allowed = 0.7 = This version allows TLD domain option for a different Qtranslate fork maded by Zappo == Other notes == Plugin filters reference: = qts_validate_post_slug = filter to process the post slug before is saved on the database. `args: $post (object), $slug (string), $lang (string)` = qts_validate_term_slug = filter to process the term slug before is saved on the database. `args: $term (object), $slug (string), $lang (string)` = qts_url_args = filter to process the entire url after it has been generated. `args: $url (string), $lang (string)` = qts_permastruct = filter to process the permastruct, used for change the base. `args: $permastruct (string), $name (string)` = Todo = * detect Slug for each language and redirect accordingly in parse_query. * expand qtranslate for translate attachment names and descriptions ( useful for galleries ) * translate other slugs like attachments. * qtranslate integration with other plugins like Jigoshop, e-commerce, etc. Addapt **$wp_rewrite**. = New in 1.1.17 = * Fixed dangerous security exploit! * Hability to filter the position of the Metabox = New in 1.1.16 = Minor fix for the language menu using qtranslate's function = New in 1.1.15 = * Fixes the duplicated hreflang links in <head> = New in 1.1.14 = The menu widget didn't allow the visitors to change to the default language if qtranslate-x was being used. So, adjusted the Language Menu widget to play nice with qtranslate-x. Hope to bring some nice changes that were made in the github repository in the next version. For now, enjoy. = 1.1.13 = == Thanks to returning @pedro-mendonca for these commits: == * Cleaned duplicated label in widget * Bug fix in "Slug (%s)" string translation * Changed text strings with no text-domain and with text-domain 'qtranlate' to text-domain 'qts' * pot catalog updated with current strings, including last found is "More information about". == Thanks to @johnclause for these : == * Convenience links in notice_dependences * Menu compatibility with qTranslate-X * Fixed extra characters in widget == Thanks to vbkun for casting this much wanted function == * Added a global qts_get_slug( $id, $lang) == and sadly: == * removed the menu admin box until better implementation = 1.1.12 = * fixed warnings in settings * replace qtranslate with our own for taxonomies = 1.1.10 and 1.1.11 = * Fixing wrong commit to wp.org * Clean deleted files = 1.1.9 = Lots of bug fixes! Thanks again to everyone that contributed to this project, with commits, bug reports and suggestions. * Compatibility with qtranslate-X! ( thanks @beheist, pull #85, fixing most of #80 ) * More updates to the portuguese translation ( thanks pedro-mendonca, pull #86) * Corrected the link to language files ( thanks pedro-mendonca ) * Added translation for some hardcoded texts ( thanks pedro-mendonca ) * Corrected a link from 'qtranslate' to 'qts' language files ( thanks pedro-mendonca ) * Fixed taxonomies slugs ( thanks to [eirikv's bug report](https://wordpress.org/support/topic/categories-slug-dont-work) ) * Fixed many warnings ( thanks piffpaffpuff, issue #78 and to [pedrodu1](https://wordpress.org/support/topic/warnings-qtranslate-slugphp) ) * Changed the behaviour of "Quick Edit", from the wp forums [1](https://wordpress.org/support/topic/categories-tags-and-quick-edit-dont-show-in-admin) [2](https://wordpress.org/support/topic/quick-edit-inhibited-by-qtranslate-slug-with-wp-41-mqtranslate) ( thanks everyone!! ) * Fixed the menus! Now you can properly use one menu for every language. Use the dropdown section "Languages", and for each item, change the "Navigation Label" and "Title Attribute". Select "All languages", to make sure everything is awesome! All these features were a consequence of fixing all the warnings based on [Gery's bug report](https://wordpress.org/support/topic/qtranslate-slug-conflicting-with-ubermenu). * Minor fixes, etc. See you next Version! = 1.1.8 = Many thanks to everyone that contributed to this update, both for their commits and bug reports ) * Portuguese translation and fixed some translation bugs ( thanks pedro-mendonca ) * removed mqtranslate switcher widget hook * Updated the plugin structure and coding style * solve some conflicts with search and pagination queries * Settings php errors, syntax indent and fixed settings assets url * Change titles when there is a click on pagination on show all pages tab ( thanks juanfran-granados ) * Formatted dependency notice message ( thanks arildm ) * Updated the deprecated jquery 'live' function and solve php strict standards error ( thanks rafitaFCB ) * Fixed error showing if PHP was newer than 5.3 ( thanks rafitaFCB ) * Strict standard advise prevented ( thanks rafitaFCB ) * php notices are prevented in post edit, when using adding new translated tags ( thanks rafitaFCB ) * fixed the hreflang issue! 'bout time! * As discussed in issue #25, the flags are now img tags, intead of background-url. * Added another option to include the css style in a minified file. ( and also showing in the option screen the styles we would use.) = 1.1.7 = * removed styles from html elements and added options to use .css file or print inline styles * fixed tag creation on post edit. * fixed earlier bad post slug introduced in 1.1.6 = 1.1.6 = * compatible with mqtranslate * php5.4+ compatible = 1.1.5 = * bugfixes = 1.1 = * added multisite support * fixed some parse url bugs * fixed slug bases validation = 1.0 = * new branch, the plugin has been rewrited: now the code is commented and wrapped inside a class, also all code has change and the performance has been increased. * structural changes: * no ID for slug type, then don't install qtrasnlate_slug table. * slugs now are stored on meta tables, installation creates a termmeta table with some new 'core functions' to access/save data, based on [simple term meta](http://wordpress.org/extend/plugins/simple-term-meta/). * some automation: * the plugin generates translated slug automatically from title in empty cases (like wordpress). * the plugin checks if the slug already exists (per each language and type / taxonomy), and adds a progressive number in this case (like wordpress). * works on ajax requests like creatig new taxonomies on edit post page. * possibility to translate the base of permastructs for 'post_types' and 'taxonomies' (uses $wp_rewrite). * added some filters: * 'qts_validate_post_slug' : args( $post (object), $slug (string), $lang (string) ) / filter to process the post slug before is saved on the database. * 'qts_validate_term_slug' : args( $term (object), $slug (string), $lang (string) ) / filter to process the term slug before is saved on the database. * 'qts_current_url' : args ( $url (string), $lang (string) ) / filter to process the entire url after it has been generated. * 'qts_permastruct' : args ( $permastruct (string), $name (string) ) / filter to process the permastruct, used for change the base. * added plugin language textdomain (.pot file) * new admin options page for save the base permastructs. * import process when the plugin updates older versions. * some bug fixes. * some Qtranslate patches. = 0.9 = * some wordpress qTranslate bug fixes * adds a javascript solution for qTranslate Nav Menus = 0.8 = * added support por Categories * added support por Tags * added support por Taxonomies * added support por Custom Post Types = 0.7 ( enhanced by Zapo (http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=4&t=1049&start=50#p7499) ) = * added suport for qTranslate TLD domain mode (en: domain.com | fr: domain.fr) visit = 0.5 and 0.6 enhanched by Marco Del Percio =
[ "sanitization" ]
CVE-2022-0159
4da927d39a49138527c30db09c962ff706f95202
https://github.com/orchardcms/orchardcore
[{'lang': 'en', 'value': "orchardcore is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]
3.5
5.4
2022-01-12T03:15Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix encoding issues (#11008)
2022-01-11 07:23:58 -0800
4da927d39
9,182
2
[ "src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs", "src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml", "src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml", "src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml", "src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml", "src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml", "src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml", "src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml", "src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml", "src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml", "src/OrchardCore.Modules/OrchardCore.Layers/Views/Admin/Index.cshtml", "src/OrchardCore.Modules/OrchardCore.Users/Views/RegistrationSettings.Edit.cshtml", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Content.UserTaskButton.cshtml" ]
Other
{"src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs": {"lines_added": 2, "lines_deleted": 2}, "src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Layers/Views/Admin/Index.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Users/Views/RegistrationSettings.Edit.cshtml": {"lines_added": 10, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Content.UserTaskButton.cshtml": {"lines_added": 4, "lines_deleted": 4}}
diff --git a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs index b0b98bd09..bc2c9c6e0 100644 --- a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs +++ b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs @@ -122,11 +122,11 @@ namespace OrchardCore.AdminDashboard.Controllers var contentItem = await _contentManager.NewAsync(ctd.Name); contentItem.Owner = User.FindFirstValue(ClaimTypes.NameIdentifier); var authorized = await _authorizationService.AuthorizeAsync(User, CommonPermissions.EditContent, contentItem); if (authorized) { - dashboardCreatable.Add(new SelectListItem(new LocalizedString(ctd.DisplayName, ctd.DisplayName).Value, ctd.Name)); + dashboardCreatable.Add(new SelectListItem(ctd.DisplayName, ctd.Name)); } } var widgets = await _adminDashboardService.GetWidgetsAsync(x => x.Latest); var wrappers = new List<DashboardWrapper>(); diff --git a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml index 29add904e..c87088d5f 100644 --- a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml @@ -30,11 +30,11 @@ @T["Add Widget"] </button> <div class="dropdown-menu dropdown-menu-right scrollable" aria-labelledby="bulk-action-menu-button"> @foreach (var item in Model.Creatable) { - <a class="dropdown-item add-list-widget btn-sm" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[item.Text]</a> + <a class="dropdown-item add-list-widget btn-sm" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[Html.Encode(item.Text)]</a> } </div> </div> } </div> diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs index 682ebe2e4..f158ed3fd 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs @@ -136,11 +136,11 @@ namespace OrchardCore.Contents.Controllers var contentItem = await _contentManager.NewAsync(contentTypeDefinition.Name); contentItem.Owner = context.User.FindFirstValue(ClaimTypes.NameIdentifier); if (await _authorizationService.AuthorizeAsync(context.User, CommonPermissions.EditContent, contentItem)) { - creatableList.Add(new SelectListItem(new LocalizedString(contentTypeDefinition.DisplayName, contentTypeDefinition.DisplayName).Value, contentTypeDefinition.Name)); + creatableList.Add(new SelectListItem(contentTypeDefinition.DisplayName, contentTypeDefinition.Name)); } } options.CreatableTypes = creatableList; } @@ -155,11 +155,11 @@ namespace OrchardCore.Contents.Controllers var contentItem = await _contentManager.NewAsync(contentTypeDefinition.Name); contentItem.Owner = context.User.FindFirstValue(ClaimTypes.NameIdentifier); if (await _authorizationService.AuthorizeAsync(context.User, CommonPermissions.EditContent, contentItem)) { - creatableList.Add(new SelectListItem(new LocalizedString(contentTypeDefinition.DisplayName, contentTypeDefinition.DisplayName).Value, contentTypeDefinition.Name)); + creatableList.Add(new SelectListItem(contentTypeDefinition.DisplayName, contentTypeDefinition.Name)); } } } options.CreatableTypes = creatableList; diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml index bc4fcaead..60d33d981 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml @@ -8,11 +8,11 @@ ContentItem contentItem = Model.ContentItem; var contentTypeDefinition = ContentDefinitionManager.GetTypeDefinition(contentItem.ContentType); var typeDisplayName = contentTypeDefinition?.DisplayName ?? contentItem.ContentType.CamelFriendly(); } -<zone Name="Title"><h1>@RenderTitleSegments(T["New {0}", Html.Raw(typeDisplayName)])</h1></zone> +<zone Name="Title"><h1>@RenderTitleSegments(T["New {0}", typeDisplayName])</h1></zone> <form asp-action="Create" asp-route-returnUrl="@Context.Request.Query["ReturnUrl"]" method="post" enctype="multipart/form-data" class="no-multisubmit"> @Html.ValidationSummary() @await DisplayAsync(Model) </form> diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml index 3f5d9b350..2d996fee5 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml @@ -8,11 +8,11 @@ ContentItem contentItem = Model.ContentItem; var contentTypeDefinition = ContentDefinitionManager.GetTypeDefinition(contentItem.ContentType); var typeDisplayName = contentTypeDefinition?.DisplayName ?? contentItem.ContentType.CamelFriendly(); } -<zone Name="Title"><h1>@RenderTitleSegments(T["Edit {0}", Html.Raw(typeDisplayName)])</h1></zone> +<zone Name="Title"><h1>@RenderTitleSegments(T["Edit {0}", typeDisplayName])</h1></zone> <form asp-action="Edit" asp-route-contentitemid="@contentItem.ContentItemId" asp-route-returnUrl="@Context.Request.Query["ReturnUrl"]" method="post" enctype="multipart/form-data" class="no-multisubmit"> @Html.ValidationSummary() @await DisplayAsync(Model) </form> diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml index 362a76f33..129d56e8f 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml @@ -14,11 +14,11 @@ @T["New"] </button> <div class="dropdown-menu dropdown-menu-right scrollable" aria-labelledby="bulk-action-menu-button"> @foreach (var item in Model.CreatableTypes) { - <a class="dropdown-item" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[item.Text]</a> + <a class="dropdown-item" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[Html.Encode(item.Text)]</a> } </div> </div> } } diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml index 4e8153227..38bb289ad 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml @@ -11,11 +11,11 @@ <style asp-name="codemirror"></style> <script asp-name="codemirror" depends-on="admin" at="Foot"></script> <script asp-name="codemirror-addon-display-autorefresh" at="Foot"></script> <script asp-name="codemirror-mode-javascript" at="Foot"></script> -<zone Name="Title"><h1>@RenderTitleSegments(T["View As JSON {0}", Html.Raw(typeDisplayName)])</h1></zone> +<zone Name="Title"><h1>@RenderTitleSegments(T["View As JSON {0}", typeDisplayName])</h1></zone> <form asp-action="Download" asp-route-contentItemId="@contentItem.ContentItemId" method="post" enctype="multipart/form-data" class="no-multisubmit"> <div class="form-group"> <div class="d-flex flex-row-reverse"> <div class="btn"> diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml index 253598250..0012ac4ac 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml @@ -27,10 +27,10 @@ </p> <p> Being an Admin Page my default path based route is automatically prefixed with the current 'AdminOptions.AdminUrlPrefix'. </p> <p> - @T[Model.Message] + @Model.Message </p> <p> Date using the DateTimeShape: @await DisplayAsync(await New.DateTime(Utc: null, Format: T["MMMM dd, yyyy"].Value)) </p> diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml index 470c894cb..3ae09239b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml @@ -20,10 +20,10 @@ @await Html.PartialAsync("Header", Model) <h2>Hello from @ViewContext.RouteData.Values["page"]</h2> <p> - @T[Model.Message] + @Model.Message </p> <p> Date using the DateTimeShape: @await DisplayAsync(await New.DateTime(Utc: null, Format: T["MMMM dd, yyyy"].Value)) </p> diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml index 15af3315e..cb7b762fd 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml @@ -29,10 +29,10 @@ </p> <p> Being an Admin Page my default path based route is automatically prefixed with the current 'AdminOptions.AdminUrlPrefix'. </p> <p> - @T[Model.Message] + @Model.Message </p> <p> Date using the DateTimeShape: @await DisplayAsync(await New.DateTime(Utc: null, Format: T["MMMM dd, yyyy"].Value)) </p> diff --git a/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml index 322a72fb8..338d8a1c1 100644 --- a/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml @@ -21,11 +21,11 @@ </div> </div> <div class="btn-group btn-group-sm" role="group"> <button type="button" class="btn btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> - @T[Model.Size + "%"] + @T[Html.Encode(Model.Size + "%")] @* Allows for custom string reprentations like half, quarter, ...*@ </button> <div class="dropdown-menu btn-group-toggle" data-toggle="buttons"> <label class="btn btn-secondary dropdown-item @(Model.Size == 25 ? "active" : null)"> <input asp-for="Size" id="@Html.IdFor(x => x.Size)_25" type="radio" autocomplete="off" value="25">@T["25%"] </label> diff --git a/src/OrchardCore.Modules/OrchardCore.Layers/Views/Admin/Index.cshtml b/src/OrchardCore.Modules/OrchardCore.Layers/Views/Admin/Index.cshtml index 65564eab4..275ed07d8 100644 --- a/src/OrchardCore.Modules/OrchardCore.Layers/Views/Admin/Index.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Layers/Views/Admin/Index.cshtml @@ -49,11 +49,11 @@ { <div class="form-group"> <ul class="list-group zones"> @foreach (var contentItemSummary in Model.Widgets[zone]) { - await contentItemSummary.Tags.AddAsync(Html.Raw("<span class=\"badge ta-badge font-weight-normal\"><i class=\"fa fa-bookmark-o text-info\" aria-hidden=\"true\"></i> " + contentItemSummary.ContentItem.Content.LayerMetadata.Layer + "</span>")); + await contentItemSummary.Tags.AddAsync(Html.Raw("<span class=\"badge ta-badge font-weight-normal\"><i class=\"fa fa-bookmark-o text-info\" aria-hidden=\"true\"></i> " + Html.Encode(contentItemSummary.ContentItem.Content.LayerMetadata.Layer) + "</span>")); maxPosition = Math.Max(maxPosition, (double)contentItemSummary.ContentItem.Content.LayerMetadata.Position); <text> <li class="list-group-item"> <div class="properties cursor-move"> diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Views/RegistrationSettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Users/Views/RegistrationSettings.Edit.cshtml index 0f191f441..1ddabab66 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Views/RegistrationSettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Users/Views/RegistrationSettings.Edit.cshtml @@ -12,11 +12,20 @@ <div class="form-group" asp-validation-class-for="UsersCanRegister"> <label asp-for="UsersCanRegister">@T["Configure users registration."]</label> <select asp-for="UsersCanRegister" class="form-control"> @foreach (UserRegistrationType option in Enum.GetValues(typeof(UserRegistrationType))) { - <option value="@option" selected="@(Model.UsersCanRegister == option)">@T[option.ToString()]</option> + <option value="@option" selected="@(Model.UsersCanRegister == option)"> + @{ + switch (option) + { + case UserRegistrationType.NoRegistration: @T["NoRegistration"]; break; + case UserRegistrationType.AllowRegistration: @T["AllowRegistration"]; break; + case UserRegistrationType.AllowOnlyExternalUsers: @T["AllowOnlyExternalUsers"]; break; + } + } + </option> } </select> <span asp-validation-for="UsersCanRegister"></span> <div class="hint"> diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Content.UserTaskButton.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Content.UserTaskButton.cshtml index 7b7c340cb..0b7abd43b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Content.UserTaskButton.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Content.UserTaskButton.cshtml @@ -6,16 +6,16 @@ @if (actions.Count <= 2) { @foreach (var action in actions) { <div class="btn-group" role="group"> - <button class="btn btn-warning" type="submit" name="submit.Save" value="user-task.@action">@T[action] @T["and Save"]</button> + <button class="btn btn-warning" type="submit" name="submit.Save" value="user-task.@action">@T[Html.Encode(action)] @T["and Save"]</button> <button type="button" class="btn btn-warning dropdown-toggle dropdown-toggle-split" data-reference="parent" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="sr-only">@T["Toggle Dropdown"]</span> </button> <div class="dropdown-menu" aria-labelledby="userActionsButtonGroup"> - <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[action] @T["and Publish"]</button> + <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[Html.Encode(action)] @T["and Publish"]</button> </div> </div> } } else @@ -25,11 +25,11 @@ else @T["User Actions"] </button> <div class="dropdown-menu" aria-labelledby="userActionsButtonGroup"> @foreach (var action in actions) { - <button type="submit" name="submit.Save" class="dropdown-item" value="user-task.@action">@T[action] @T["and Save"]</button> - <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[action] @T["and Publish"]</button> + <button type="submit" name="submit.Save" class="dropdown-item" value="user-task.@action">@T[Html.Encode(action)] @T["and Save"]</button> + <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[Html.Encode(action)] @T["and Publish"]</button> } </div> </div> }
dashboardCreatable.Add(new SelectListItem(new LocalizedString(ctd.DisplayName, ctd.DisplayName).Value, ctd.Name)); <a class="dropdown-item add-list-widget btn-sm" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[item.Text]</a> creatableList.Add(new SelectListItem(new LocalizedString(contentTypeDefinition.DisplayName, contentTypeDefinition.DisplayName).Value, contentTypeDefinition.Name)); creatableList.Add(new SelectListItem(new LocalizedString(contentTypeDefinition.DisplayName, contentTypeDefinition.DisplayName).Value, contentTypeDefinition.Name)); <zone Name="Title"><h1>@RenderTitleSegments(T["New {0}", Html.Raw(typeDisplayName)])</h1></zone> <zone Name="Title"><h1>@RenderTitleSegments(T["Edit {0}", Html.Raw(typeDisplayName)])</h1></zone> <a class="dropdown-item" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[item.Text]</a> <zone Name="Title"><h1>@RenderTitleSegments(T["View As JSON {0}", Html.Raw(typeDisplayName)])</h1></zone> @T[Model.Message] @T[Model.Message] @T[Model.Message] @T[Model.Size + "%"] await contentItemSummary.Tags.AddAsync(Html.Raw("<span class=\"badge ta-badge font-weight-normal\"><i class=\"fa fa-bookmark-o text-info\" aria-hidden=\"true\"></i> " + contentItemSummary.ContentItem.Content.LayerMetadata.Layer + "</span>")); <option value="@option" selected="@(Model.UsersCanRegister == option)">@T[option.ToString()]</option> <button class="btn btn-warning" type="submit" name="submit.Save" value="user-task.@action">@T[action] @T["and Save"]</button> <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[action] @T["and Publish"]</button> <button type="submit" name="submit.Save" class="dropdown-item" value="user-task.@action">@T[action] @T["and Save"]</button> <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[action] @T["and Publish"]</button>
dashboardCreatable.Add(new SelectListItem(ctd.DisplayName, ctd.Name)); <a class="dropdown-item add-list-widget btn-sm" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[Html.Encode(item.Text)]</a> creatableList.Add(new SelectListItem(contentTypeDefinition.DisplayName, contentTypeDefinition.Name)); creatableList.Add(new SelectListItem(contentTypeDefinition.DisplayName, contentTypeDefinition.Name)); <zone Name="Title"><h1>@RenderTitleSegments(T["New {0}", typeDisplayName])</h1></zone> <zone Name="Title"><h1>@RenderTitleSegments(T["Edit {0}", typeDisplayName])</h1></zone> <a class="dropdown-item" href="@Url.RouteUrl(new { area = "OrchardCore.Contents", controller = "Admin", action = "Create", id = @item.Value, returnUrl = FullRequestPath })">@T[Html.Encode(item.Text)]</a> <zone Name="Title"><h1>@RenderTitleSegments(T["View As JSON {0}", typeDisplayName])</h1></zone> @Model.Message @Model.Message @Model.Message @T[Html.Encode(Model.Size + "%")] @* Allows for custom string reprentations like half, quarter, ...*@ await contentItemSummary.Tags.AddAsync(Html.Raw("<span class=\"badge ta-badge font-weight-normal\"><i class=\"fa fa-bookmark-o text-info\" aria-hidden=\"true\"></i> " + Html.Encode(contentItemSummary.ContentItem.Content.LayerMetadata.Layer) + "</span>")); <option value="@option" selected="@(Model.UsersCanRegister == option)"> @{ switch (option) { case UserRegistrationType.NoRegistration: @T["NoRegistration"]; break; case UserRegistrationType.AllowRegistration: @T["AllowRegistration"]; break; case UserRegistrationType.AllowOnlyExternalUsers: @T["AllowOnlyExternalUsers"]; break; } } </option> <button class="btn btn-warning" type="submit" name="submit.Save" value="user-task.@action">@T[Html.Encode(action)] @T["and Save"]</button> <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[Html.Encode(action)] @T["and Publish"]</button> <button type="submit" name="submit.Save" class="dropdown-item" value="user-task.@action">@T[Html.Encode(action)] @T["and Save"]</button> <button type="submit" name="submit.Publish" class="dropdown-item" value="user-task.@action">@T[Html.Encode(action)] @T["and Publish"]</button>
[]
CVE-2022-0243
218f25ddfadb66a54de7a82dffe3ab2e4ab7c4b4
https://github.com/orchardcms/orchardcore
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in NuGet OrchardCore.Application.Cms.Targets prior to 1.2.2.'}]
3.5
5.4
2022-01-19T20:15Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix localization and sanitization usages (#11034)
2022-01-18 11:03:05 -0800
218f25ddf
9,182
2
[ "src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs", "src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs", "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs", "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs", "src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs", "src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml", "src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs" ]
C#
{"src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs": {"lines_added": 18, "lines_deleted": 4}, "src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs": {"lines_added": 4, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs": {"lines_added": 49, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs": {"lines_added": 57, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs": {"lines_added": 3, "lines_deleted": 4}, "src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs": {"lines_added": 2, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs": {"lines_added": 8, "lines_deleted": 8}}
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs index e31df434b..cf8e9d2cb 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs @@ -1,6 +1,7 @@ using System; +using System.Text.Encodings.Web; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.Extensions.Localization; using OrchardCore.ContentFields.Fields; @@ -9,28 +10,35 @@ using OrchardCore.ContentFields.ViewModels; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; using OrchardCore.ContentManagement.Metadata.Models; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; +using OrchardCore.Infrastructure.Html; using OrchardCore.Mvc.ModelBinding; namespace OrchardCore.ContentFields.Drivers { public class LinkFieldDisplayDriver : ContentFieldDisplayDriver<LinkField> { private readonly IUrlHelperFactory _urlHelperFactory; private readonly IActionContextAccessor _actionContextAccessor; private readonly IStringLocalizer S; + private readonly IHtmlSanitizerService _htmlSanitizerService; + private readonly HtmlEncoder _htmlencoder; public LinkFieldDisplayDriver( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, - IStringLocalizer<LinkFieldDisplayDriver> localizer) + IStringLocalizer<LinkFieldDisplayDriver> localizer, + IHtmlSanitizerService htmlSanitizerService, + HtmlEncoder htmlencoder) { _urlHelperFactory = urlHelperFactory; _actionContextAccessor = actionContextAccessor; S = localizer; + _htmlSanitizerService = htmlSanitizerService; + _htmlencoder = htmlencoder; } public override IDisplayResult Display(LinkField field, BuildFieldDisplayContext context) { return Initialize<DisplayLinkFieldViewModel>(GetDisplayShapeType(context), model => @@ -89,23 +97,29 @@ namespace OrchardCore.ContentFields.Drivers } else if (!String.IsNullOrWhiteSpace(field.Url) && !Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) { updater.ModelState.AddModelError(Prefix, nameof(field.Url), S["{0} is an invalid url.", field.Url]); } + else + { + var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; + + if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) + { + updater.ModelState.AddModelError(Prefix, nameof(field.Url), S["{0} is an invalid url.", field.Url]); + } + } // Validate Text if (settings.LinkTextMode == LinkTextMode.Required && String.IsNullOrWhiteSpace(field.Text)) { updater.ModelState.AddModelError(Prefix, nameof(field.Text), S["The link text is required for {0}.", context.PartFieldDefinition.DisplayName()]); } else if (settings.LinkTextMode == LinkTextMode.Static && String.IsNullOrWhiteSpace(settings.DefaultText)) { updater.ModelState.AddModelError(Prefix, nameof(field.Text), S["The text default value is required for {0}.", context.PartFieldDefinition.DisplayName()]); } - - // Run this through a sanitizer in case someone puts html in it. - // No settings. } return Edit(field, context); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs b/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs index 582f47b8e..88aff43c6 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs @@ -109,16 +109,19 @@ namespace OrchardCore.Contents.AuditTrail.Controllers { return Forbid(); } var result = await _contentManager.RestoreAsync(contentItem); + if (!result.Succeeded) { await _notifier.WarningAsync(H["'{0}' was not restored, the version is not valid.", contentItem.DisplayText]); + foreach (var error in result.Errors) { - await _notifier.WarningAsync(new LocalizedHtmlString(error.ErrorMessage, error.ErrorMessage)); + // Pass ErrorMessage as an argument to ensure it is encoded + await _notifier.WarningAsync(new LocalizedHtmlString(nameof(AuditTrailContentController.Restore), "{0}", false, error.ErrorMessage)); } return RedirectToAction("Index", "Admin", new { area = "OrchardCore.AuditTrail" }); } diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs index eb331b27f..f483404ac 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs @@ -1,6 +1,11 @@ +using System; +using System.Text.Encodings.Web; using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.Infrastructure; +using Microsoft.AspNetCore.Mvc.Routing; +using Microsoft.Extensions.Localization; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; using OrchardCore.Infrastructure.Html; @@ -10,15 +15,29 @@ using OrchardCore.Menu.ViewModels; namespace OrchardCore.Menu.Drivers { public class HtmlMenuItemPartDisplayDriver : ContentPartDisplayDriver<HtmlMenuItemPart> { + private readonly IUrlHelperFactory _urlHelperFactory; + private readonly IActionContextAccessor _actionContextAccessor; private readonly IHtmlSanitizerService _htmlSanitizerService; + private readonly HtmlEncoder _htmlencoder; + private readonly IStringLocalizer S; - public HtmlMenuItemPartDisplayDriver(IHtmlSanitizerService htmlSanitizerService) + public HtmlMenuItemPartDisplayDriver( + IUrlHelperFactory urlHelperFactory, + IActionContextAccessor actionContextAccessor, + IStringLocalizer<HtmlMenuItemPartDisplayDriver> localizer, + IHtmlSanitizerService htmlSanitizerService, + HtmlEncoder htmlencoder + ) { + _urlHelperFactory = urlHelperFactory; + _actionContextAccessor = actionContextAccessor; _htmlSanitizerService = htmlSanitizerService; + _htmlencoder = htmlencoder; + S = localizer; } public override IDisplayResult Display(HtmlMenuItemPart part, BuildPartDisplayContext context) { var settings = context.TypePartDefinition.GetSettings<HtmlMenuItemPartSettings>(); @@ -60,10 +79,39 @@ namespace OrchardCore.Menu.Drivers if (await updater.TryUpdateModelAsync(model, Prefix)) { part.ContentItem.DisplayText = model.Name; part.Html = settings.SanitizeHtml ? _htmlSanitizerService.Sanitize(model.Html) : model.Html; part.Url = model.Url; + + var urlToValidate = part.Url; + + if (!String.IsNullOrEmpty(urlToValidate)) + { + urlToValidate = urlToValidate.Split('#', 2)[0]; + + if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) + { + var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); + urlToValidate = urlHelper.Content(urlToValidate); + } + + urlToValidate = urlToValidate.ToUriComponents(); + + if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + else + { + var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; + + if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + } + } } return Edit(part, context); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs index 1fd1dfd47..f6c078cdb 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs @@ -1,17 +1,43 @@ +using System; +using System.Text.Encodings.Web; using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.Infrastructure; +using Microsoft.AspNetCore.Mvc.Routing; +using Microsoft.Extensions.Localization; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; +using OrchardCore.Infrastructure.Html; using OrchardCore.Menu.Models; using OrchardCore.Menu.ViewModels; namespace OrchardCore.Menu.Drivers { public class LinkMenuItemPartDisplayDriver : ContentPartDisplayDriver<LinkMenuItemPart> { + private readonly IUrlHelperFactory _urlHelperFactory; + private readonly IActionContextAccessor _actionContextAccessor; + private readonly IHtmlSanitizerService _htmlSanitizerService; + private readonly HtmlEncoder _htmlencoder; + private readonly IStringLocalizer S; + + public LinkMenuItemPartDisplayDriver( + IUrlHelperFactory urlHelperFactory, + IActionContextAccessor actionContextAccessor, + IStringLocalizer<LinkMenuItemPartDisplayDriver> localizer, + IHtmlSanitizerService htmlSanitizerService, + HtmlEncoder htmlencoder + ) + { + _urlHelperFactory = urlHelperFactory; + _actionContextAccessor = actionContextAccessor; + _htmlSanitizerService = htmlSanitizerService; + _htmlencoder = htmlencoder; + S = localizer; + } public override IDisplayResult Display(LinkMenuItemPart part, BuildPartDisplayContext context) { return Combine( Dynamic("LinkMenuItemPart_Admin", shape => @@ -43,14 +69,45 @@ namespace OrchardCore.Menu.Drivers if (await updater.TryUpdateModelAsync(model, Prefix)) { part.Url = model.Url; part.ContentItem.DisplayText = model.Name; + // This code can be removed in a later release. #pragma warning disable 0618 part.Name = model.Name; #pragma warning restore 0618 + + var urlToValidate = part.Url; + + if (!String.IsNullOrEmpty(urlToValidate)) + { + urlToValidate = urlToValidate.Split('#', 2)[0]; + + if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) + { + var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); + urlToValidate = urlHelper.Content(urlToValidate); + } + + urlToValidate = urlToValidate.ToUriComponents(); + + if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + else + { + var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; + + if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + } + } } + return Edit(part); } } } diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs b/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs index 0b1ff3222..39d0b7384 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs @@ -132,19 +132,18 @@ namespace OrchardCore.Users.Workflows.Activities "Registration", new { area = "OrchardCore.Users", userId = user.UserId, code }); workflowContext.Properties["EmailConfirmationUrl"] = uri; var subject = await _expressionEvaluator.EvaluateAsync(ConfirmationEmailSubject, workflowContext, null); - var localizedSubject = new LocalizedString(nameof(RegisterUserTask), subject); var body = await _expressionEvaluator.EvaluateAsync(ConfirmationEmailTemplate, workflowContext, _htmlEncoder); - var localizedBody = new LocalizedHtmlString(nameof(RegisterUserTask), body); + var message = new MailMessage() { To = email, - Subject = localizedSubject.ResourceNotFound ? subject : localizedSubject.Value, - Body = localizedBody.IsResourceNotFound ? body : localizedBody.Value, + Subject = subject, + Body = body, IsBodyHtml = true }; var smtpService = _httpContextAccessor.HttpContext.RequestServices.GetService<ISmtpService>(); if (smtpService == null) diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs b/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs index 412fe8b03..20e936fcf 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs @@ -53,10 +53,12 @@ namespace OrchardCore.Workflows.Activities } public override async Task<ActivityExecutionResult> ExecuteAsync(WorkflowExecutionContext workflowContext, ActivityContext activityContext) { var message = await _expressionEvaluator.EvaluateAsync(Message, workflowContext, _htmlEncoder); + + // The notification message can contain HTML by design await _notifier.AddAsync(NotificationType, new LocalizedHtmlString(nameof(NotifyTask), message)); return Outcomes("Done"); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml index e34b15913..41e929c00 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml @@ -6,11 +6,11 @@ </header> @if (Model.Activity.Actions.Any()) { <span>@T["Request any user action of <em>{0}</em>", string.Join(", ", Model.Activity.Actions)]</span><br /> - <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? new LocalizedHtmlString("RequiredRoles", string.Join(", ", Model.Activity.Roles)) : T["Any"]]</span> + <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? Html.Raw(Html.Encode(string.Join(", ", Model.Activity.Roles))) : T["Any"]]</span> } else { <span>@T["No user actions specified"]</span> } diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml index 32988dfe6..517b588ad 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml @@ -42,11 +42,11 @@ <label>@T["Created"]</label> <span>@await LocalClock.ConvertToLocalAsync(Model.Workflow.CreatedUtc)</span> </div> <div class="col"> <label>@T["Status"]</label> - <span>@Model.Workflow.Status.GetLocalizedStatus(T)</span> + <span>@T.GetLocalizedStatus(Model.Workflow.Status)</span> </div> @if (Model.Workflow.Status == WorkflowStatus.Faulted) { <div class="col"> <label>@T["Fault Message"]</label> diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml index 3d3ea9e15..7b5dd404c 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml @@ -102,11 +102,11 @@ <a asp-action="Details" asp-route-id="@entry.Workflow.Id">@entry.Workflow.WorkflowId</a> <div> <span class="hint">@T["Created {0}", (object)(await DisplayAsync(await New.TimeSpan(Utc: entry.Workflow.CreatedUtc)))]</span> <div class="info"> <span class="badge badge-@statusCss"> - @entry.Workflow.Status.GetLocalizedStatus(T) + @T.GetLocalizedStatus(entry.Workflow.Status) </span> </div> </div> </div> </li> diff --git a/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs b/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs index f471aeb36..7cfe4fa20 100644 --- a/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs +++ b/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs @@ -6,38 +6,38 @@ using OrchardCore.Workflows.Models; namespace OrchardCore.Workflows.Helpers { public static class ActivityExtensions { - private static IHtmlLocalizer H; - public static bool IsEvent(this IActivity activity) { return activity is IEvent; } public static LocalizedHtmlString GetTitleOrDefault(this IActivity activity, Func<LocalizedHtmlString> defaultTitle) { var title = activity.As<ActivityMetadata>().Title; - return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(title, title) : defaultTitle(); + + // A string used in LocalizedHtmlString won't be encoded so it needs to be pre-encoded. + // Passing the title as an argument so it uses the HtmlEncoder when rendered + // Another options would be to use new LocalizedHtmlString(Html.Encode(title)) but it's not available in the current context + + return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(nameof(ActivityExtensions.GetTitleOrDefault), "{0}", false, title) : defaultTitle(); } - public static LocalizedHtmlString GetLocalizedStatus(this WorkflowStatus status, IHtmlLocalizer localizer) + public static LocalizedHtmlString GetLocalizedStatus(this IHtmlLocalizer H, WorkflowStatus status) { - // Field for PoExtractor compatibility - H = localizer; - return status switch { WorkflowStatus.Aborted => H["Aborted"], WorkflowStatus.Executing => H["Executing"], WorkflowStatus.Faulted => H["Faulted"], WorkflowStatus.Finished => H["Finished"], WorkflowStatus.Halted => H["Halted"], WorkflowStatus.Idle => H["Idle"], WorkflowStatus.Resuming => H["Resuming"], WorkflowStatus.Starting => H["Starting"], - _ => new LocalizedHtmlString(status.ToString(), status.ToString()), + _ => throw new NotSupportedException(), }; } } }
IStringLocalizer<LinkFieldDisplayDriver> localizer) // Run this through a sanitizer in case someone puts html in it. // No settings. await _notifier.WarningAsync(new LocalizedHtmlString(error.ErrorMessage, error.ErrorMessage)); public HtmlMenuItemPartDisplayDriver(IHtmlSanitizerService htmlSanitizerService) var localizedSubject = new LocalizedString(nameof(RegisterUserTask), subject); var localizedBody = new LocalizedHtmlString(nameof(RegisterUserTask), body); Subject = localizedSubject.ResourceNotFound ? subject : localizedSubject.Value, Body = localizedBody.IsResourceNotFound ? body : localizedBody.Value, <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? new LocalizedHtmlString("RequiredRoles", string.Join(", ", Model.Activity.Roles)) : T["Any"]]</span> <span>@Model.Workflow.Status.GetLocalizedStatus(T)</span> @entry.Workflow.Status.GetLocalizedStatus(T) private static IHtmlLocalizer H; return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(title, title) : defaultTitle(); public static LocalizedHtmlString GetLocalizedStatus(this WorkflowStatus status, IHtmlLocalizer localizer) // Field for PoExtractor compatibility H = localizer; _ => new LocalizedHtmlString(status.ToString(), status.ToString()),
using System.Text.Encodings.Web; using OrchardCore.Infrastructure.Html; private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly HtmlEncoder _htmlencoder; IStringLocalizer<LinkFieldDisplayDriver> localizer, IHtmlSanitizerService htmlSanitizerService, HtmlEncoder htmlencoder) _htmlSanitizerService = htmlSanitizerService; _htmlencoder = htmlencoder; else { var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) { updater.ModelState.AddModelError(Prefix, nameof(field.Url), S["{0} is an invalid url.", field.Url]); } } // Pass ErrorMessage as an argument to ensure it is encoded await _notifier.WarningAsync(new LocalizedHtmlString(nameof(AuditTrailContentController.Restore), "{0}", false, error.ErrorMessage)); using System; using System.Text.Encodings.Web; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.Extensions.Localization; private readonly IUrlHelperFactory _urlHelperFactory; private readonly IActionContextAccessor _actionContextAccessor; private readonly HtmlEncoder _htmlencoder; private readonly IStringLocalizer S; public HtmlMenuItemPartDisplayDriver( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IStringLocalizer<HtmlMenuItemPartDisplayDriver> localizer, IHtmlSanitizerService htmlSanitizerService, HtmlEncoder htmlencoder ) _urlHelperFactory = urlHelperFactory; _actionContextAccessor = actionContextAccessor; _htmlencoder = htmlencoder; S = localizer; var urlToValidate = part.Url; if (!String.IsNullOrEmpty(urlToValidate)) { urlToValidate = urlToValidate.Split('#', 2)[0]; if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) { var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); urlToValidate = urlHelper.Content(urlToValidate); } urlToValidate = urlToValidate.ToUriComponents(); if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } else { var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } } } using System; using System.Text.Encodings.Web; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.Extensions.Localization; using OrchardCore.Infrastructure.Html; private readonly IUrlHelperFactory _urlHelperFactory; private readonly IActionContextAccessor _actionContextAccessor; private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly HtmlEncoder _htmlencoder; private readonly IStringLocalizer S; public LinkMenuItemPartDisplayDriver( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IStringLocalizer<LinkMenuItemPartDisplayDriver> localizer, IHtmlSanitizerService htmlSanitizerService, HtmlEncoder htmlencoder ) { _urlHelperFactory = urlHelperFactory; _actionContextAccessor = actionContextAccessor; _htmlSanitizerService = htmlSanitizerService; _htmlencoder = htmlencoder; S = localizer; } var urlToValidate = part.Url; if (!String.IsNullOrEmpty(urlToValidate)) { urlToValidate = urlToValidate.Split('#', 2)[0]; if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) { var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); urlToValidate = urlHelper.Content(urlToValidate); } urlToValidate = urlToValidate.ToUriComponents(); if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } else { var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } } } Subject = subject, Body = body, // The notification message can contain HTML by design <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? Html.Raw(Html.Encode(string.Join(", ", Model.Activity.Roles))) : T["Any"]]</span> <span>@T.GetLocalizedStatus(Model.Workflow.Status)</span> @T.GetLocalizedStatus(entry.Workflow.Status) // A string used in LocalizedHtmlString won't be encoded so it needs to be pre-encoded. // Passing the title as an argument so it uses the HtmlEncoder when rendered // Another options would be to use new LocalizedHtmlString(Html.Encode(title)) but it's not available in the current context return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(nameof(ActivityExtensions.GetTitleOrDefault), "{0}", false, title) : defaultTitle(); public static LocalizedHtmlString GetLocalizedStatus(this IHtmlLocalizer H, WorkflowStatus status) _ => throw new NotSupportedException(),
[]
CVE-2022-0274
218f25ddfadb66a54de7a82dffe3ab2e4ab7c4b4
https://github.com/orchardcms/orchardcore
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in NuGet OrchardCore.Application.Cms.Targets prior to 1.2.2.'}]
3.5
5.4
2022-01-19T18:15Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix localization and sanitization usages (#11034)
2022-01-18 11:03:05 -0800
218f25ddf
9,182
2
[ "src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs", "src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs", "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs", "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs", "src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs", "src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml", "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml", "src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs" ]
C#
{"src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs": {"lines_added": 18, "lines_deleted": 4}, "src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs": {"lines_added": 4, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs": {"lines_added": 49, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs": {"lines_added": 57, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs": {"lines_added": 3, "lines_deleted": 4}, "src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs": {"lines_added": 2, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml": {"lines_added": 1, "lines_deleted": 1}, "src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs": {"lines_added": 8, "lines_deleted": 8}}
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs index e31df434b..cf8e9d2cb 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Drivers/LinkFieldDisplayDriver.cs @@ -1,6 +1,7 @@ using System; +using System.Text.Encodings.Web; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.Extensions.Localization; using OrchardCore.ContentFields.Fields; @@ -9,28 +10,35 @@ using OrchardCore.ContentFields.ViewModels; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; using OrchardCore.ContentManagement.Metadata.Models; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; +using OrchardCore.Infrastructure.Html; using OrchardCore.Mvc.ModelBinding; namespace OrchardCore.ContentFields.Drivers { public class LinkFieldDisplayDriver : ContentFieldDisplayDriver<LinkField> { private readonly IUrlHelperFactory _urlHelperFactory; private readonly IActionContextAccessor _actionContextAccessor; private readonly IStringLocalizer S; + private readonly IHtmlSanitizerService _htmlSanitizerService; + private readonly HtmlEncoder _htmlencoder; public LinkFieldDisplayDriver( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, - IStringLocalizer<LinkFieldDisplayDriver> localizer) + IStringLocalizer<LinkFieldDisplayDriver> localizer, + IHtmlSanitizerService htmlSanitizerService, + HtmlEncoder htmlencoder) { _urlHelperFactory = urlHelperFactory; _actionContextAccessor = actionContextAccessor; S = localizer; + _htmlSanitizerService = htmlSanitizerService; + _htmlencoder = htmlencoder; } public override IDisplayResult Display(LinkField field, BuildFieldDisplayContext context) { return Initialize<DisplayLinkFieldViewModel>(GetDisplayShapeType(context), model => @@ -89,23 +97,29 @@ namespace OrchardCore.ContentFields.Drivers } else if (!String.IsNullOrWhiteSpace(field.Url) && !Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) { updater.ModelState.AddModelError(Prefix, nameof(field.Url), S["{0} is an invalid url.", field.Url]); } + else + { + var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; + + if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) + { + updater.ModelState.AddModelError(Prefix, nameof(field.Url), S["{0} is an invalid url.", field.Url]); + } + } // Validate Text if (settings.LinkTextMode == LinkTextMode.Required && String.IsNullOrWhiteSpace(field.Text)) { updater.ModelState.AddModelError(Prefix, nameof(field.Text), S["The link text is required for {0}.", context.PartFieldDefinition.DisplayName()]); } else if (settings.LinkTextMode == LinkTextMode.Static && String.IsNullOrWhiteSpace(settings.DefaultText)) { updater.ModelState.AddModelError(Prefix, nameof(field.Text), S["The text default value is required for {0}.", context.PartFieldDefinition.DisplayName()]); } - - // Run this through a sanitizer in case someone puts html in it. - // No settings. } return Edit(field, context); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs b/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs index 582f47b8e..88aff43c6 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/Controllers/AuditTrailContentController.cs @@ -109,16 +109,19 @@ namespace OrchardCore.Contents.AuditTrail.Controllers { return Forbid(); } var result = await _contentManager.RestoreAsync(contentItem); + if (!result.Succeeded) { await _notifier.WarningAsync(H["'{0}' was not restored, the version is not valid.", contentItem.DisplayText]); + foreach (var error in result.Errors) { - await _notifier.WarningAsync(new LocalizedHtmlString(error.ErrorMessage, error.ErrorMessage)); + // Pass ErrorMessage as an argument to ensure it is encoded + await _notifier.WarningAsync(new LocalizedHtmlString(nameof(AuditTrailContentController.Restore), "{0}", false, error.ErrorMessage)); } return RedirectToAction("Index", "Admin", new { area = "OrchardCore.AuditTrail" }); } diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs index eb331b27f..f483404ac 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/HtmlMenuItemPartDisplayDriver.cs @@ -1,6 +1,11 @@ +using System; +using System.Text.Encodings.Web; using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.Infrastructure; +using Microsoft.AspNetCore.Mvc.Routing; +using Microsoft.Extensions.Localization; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; using OrchardCore.Infrastructure.Html; @@ -10,15 +15,29 @@ using OrchardCore.Menu.ViewModels; namespace OrchardCore.Menu.Drivers { public class HtmlMenuItemPartDisplayDriver : ContentPartDisplayDriver<HtmlMenuItemPart> { + private readonly IUrlHelperFactory _urlHelperFactory; + private readonly IActionContextAccessor _actionContextAccessor; private readonly IHtmlSanitizerService _htmlSanitizerService; + private readonly HtmlEncoder _htmlencoder; + private readonly IStringLocalizer S; - public HtmlMenuItemPartDisplayDriver(IHtmlSanitizerService htmlSanitizerService) + public HtmlMenuItemPartDisplayDriver( + IUrlHelperFactory urlHelperFactory, + IActionContextAccessor actionContextAccessor, + IStringLocalizer<HtmlMenuItemPartDisplayDriver> localizer, + IHtmlSanitizerService htmlSanitizerService, + HtmlEncoder htmlencoder + ) { + _urlHelperFactory = urlHelperFactory; + _actionContextAccessor = actionContextAccessor; _htmlSanitizerService = htmlSanitizerService; + _htmlencoder = htmlencoder; + S = localizer; } public override IDisplayResult Display(HtmlMenuItemPart part, BuildPartDisplayContext context) { var settings = context.TypePartDefinition.GetSettings<HtmlMenuItemPartSettings>(); @@ -60,10 +79,39 @@ namespace OrchardCore.Menu.Drivers if (await updater.TryUpdateModelAsync(model, Prefix)) { part.ContentItem.DisplayText = model.Name; part.Html = settings.SanitizeHtml ? _htmlSanitizerService.Sanitize(model.Html) : model.Html; part.Url = model.Url; + + var urlToValidate = part.Url; + + if (!String.IsNullOrEmpty(urlToValidate)) + { + urlToValidate = urlToValidate.Split('#', 2)[0]; + + if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) + { + var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); + urlToValidate = urlHelper.Content(urlToValidate); + } + + urlToValidate = urlToValidate.ToUriComponents(); + + if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + else + { + var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; + + if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + } + } } return Edit(part, context); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs index 1fd1dfd47..f6c078cdb 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Menu/Drivers/LinkMenuItemPartDisplayDriver.cs @@ -1,17 +1,43 @@ +using System; +using System.Text.Encodings.Web; using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc.Infrastructure; +using Microsoft.AspNetCore.Mvc.Routing; +using Microsoft.Extensions.Localization; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; +using OrchardCore.Infrastructure.Html; using OrchardCore.Menu.Models; using OrchardCore.Menu.ViewModels; namespace OrchardCore.Menu.Drivers { public class LinkMenuItemPartDisplayDriver : ContentPartDisplayDriver<LinkMenuItemPart> { + private readonly IUrlHelperFactory _urlHelperFactory; + private readonly IActionContextAccessor _actionContextAccessor; + private readonly IHtmlSanitizerService _htmlSanitizerService; + private readonly HtmlEncoder _htmlencoder; + private readonly IStringLocalizer S; + + public LinkMenuItemPartDisplayDriver( + IUrlHelperFactory urlHelperFactory, + IActionContextAccessor actionContextAccessor, + IStringLocalizer<LinkMenuItemPartDisplayDriver> localizer, + IHtmlSanitizerService htmlSanitizerService, + HtmlEncoder htmlencoder + ) + { + _urlHelperFactory = urlHelperFactory; + _actionContextAccessor = actionContextAccessor; + _htmlSanitizerService = htmlSanitizerService; + _htmlencoder = htmlencoder; + S = localizer; + } public override IDisplayResult Display(LinkMenuItemPart part, BuildPartDisplayContext context) { return Combine( Dynamic("LinkMenuItemPart_Admin", shape => @@ -43,14 +69,45 @@ namespace OrchardCore.Menu.Drivers if (await updater.TryUpdateModelAsync(model, Prefix)) { part.Url = model.Url; part.ContentItem.DisplayText = model.Name; + // This code can be removed in a later release. #pragma warning disable 0618 part.Name = model.Name; #pragma warning restore 0618 + + var urlToValidate = part.Url; + + if (!String.IsNullOrEmpty(urlToValidate)) + { + urlToValidate = urlToValidate.Split('#', 2)[0]; + + if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) + { + var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); + urlToValidate = urlHelper.Content(urlToValidate); + } + + urlToValidate = urlToValidate.ToUriComponents(); + + if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + else + { + var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; + + if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) + { + updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); + } + } + } } + return Edit(part); } } } diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs b/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs index 0b1ff3222..39d0b7384 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/Workflows/Activities/RegisterUserTask.cs @@ -132,19 +132,18 @@ namespace OrchardCore.Users.Workflows.Activities "Registration", new { area = "OrchardCore.Users", userId = user.UserId, code }); workflowContext.Properties["EmailConfirmationUrl"] = uri; var subject = await _expressionEvaluator.EvaluateAsync(ConfirmationEmailSubject, workflowContext, null); - var localizedSubject = new LocalizedString(nameof(RegisterUserTask), subject); var body = await _expressionEvaluator.EvaluateAsync(ConfirmationEmailTemplate, workflowContext, _htmlEncoder); - var localizedBody = new LocalizedHtmlString(nameof(RegisterUserTask), body); + var message = new MailMessage() { To = email, - Subject = localizedSubject.ResourceNotFound ? subject : localizedSubject.Value, - Body = localizedBody.IsResourceNotFound ? body : localizedBody.Value, + Subject = subject, + Body = body, IsBodyHtml = true }; var smtpService = _httpContextAccessor.HttpContext.RequestServices.GetService<ISmtpService>(); if (smtpService == null) diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs b/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs index 412fe8b03..20e936fcf 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Activities/NotifyTask.cs @@ -53,10 +53,12 @@ namespace OrchardCore.Workflows.Activities } public override async Task<ActivityExecutionResult> ExecuteAsync(WorkflowExecutionContext workflowContext, ActivityContext activityContext) { var message = await _expressionEvaluator.EvaluateAsync(Message, workflowContext, _htmlEncoder); + + // The notification message can contain HTML by design await _notifier.AddAsync(NotificationType, new LocalizedHtmlString(nameof(NotifyTask), message)); return Outcomes("Done"); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml index e34b15913..41e929c00 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Items/UserTaskEvent.Fields.Design.cshtml @@ -6,11 +6,11 @@ </header> @if (Model.Activity.Actions.Any()) { <span>@T["Request any user action of <em>{0}</em>", string.Join(", ", Model.Activity.Actions)]</span><br /> - <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? new LocalizedHtmlString("RequiredRoles", string.Join(", ", Model.Activity.Roles)) : T["Any"]]</span> + <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? Html.Raw(Html.Encode(string.Join(", ", Model.Activity.Roles))) : T["Any"]]</span> } else { <span>@T["No user actions specified"]</span> } diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml index 32988dfe6..517b588ad 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Details.cshtml @@ -42,11 +42,11 @@ <label>@T["Created"]</label> <span>@await LocalClock.ConvertToLocalAsync(Model.Workflow.CreatedUtc)</span> </div> <div class="col"> <label>@T["Status"]</label> - <span>@Model.Workflow.Status.GetLocalizedStatus(T)</span> + <span>@T.GetLocalizedStatus(Model.Workflow.Status)</span> </div> @if (Model.Workflow.Status == WorkflowStatus.Faulted) { <div class="col"> <label>@T["Fault Message"]</label> diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml index 3d3ea9e15..7b5dd404c 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/Workflow/Index.cshtml @@ -102,11 +102,11 @@ <a asp-action="Details" asp-route-id="@entry.Workflow.Id">@entry.Workflow.WorkflowId</a> <div> <span class="hint">@T["Created {0}", (object)(await DisplayAsync(await New.TimeSpan(Utc: entry.Workflow.CreatedUtc)))]</span> <div class="info"> <span class="badge badge-@statusCss"> - @entry.Workflow.Status.GetLocalizedStatus(T) + @T.GetLocalizedStatus(entry.Workflow.Status) </span> </div> </div> </div> </li> diff --git a/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs b/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs index f471aeb36..7cfe4fa20 100644 --- a/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs +++ b/src/OrchardCore/OrchardCore.Workflows.Abstractions/Helpers/ActivityExtensions.cs @@ -6,38 +6,38 @@ using OrchardCore.Workflows.Models; namespace OrchardCore.Workflows.Helpers { public static class ActivityExtensions { - private static IHtmlLocalizer H; - public static bool IsEvent(this IActivity activity) { return activity is IEvent; } public static LocalizedHtmlString GetTitleOrDefault(this IActivity activity, Func<LocalizedHtmlString> defaultTitle) { var title = activity.As<ActivityMetadata>().Title; - return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(title, title) : defaultTitle(); + + // A string used in LocalizedHtmlString won't be encoded so it needs to be pre-encoded. + // Passing the title as an argument so it uses the HtmlEncoder when rendered + // Another options would be to use new LocalizedHtmlString(Html.Encode(title)) but it's not available in the current context + + return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(nameof(ActivityExtensions.GetTitleOrDefault), "{0}", false, title) : defaultTitle(); } - public static LocalizedHtmlString GetLocalizedStatus(this WorkflowStatus status, IHtmlLocalizer localizer) + public static LocalizedHtmlString GetLocalizedStatus(this IHtmlLocalizer H, WorkflowStatus status) { - // Field for PoExtractor compatibility - H = localizer; - return status switch { WorkflowStatus.Aborted => H["Aborted"], WorkflowStatus.Executing => H["Executing"], WorkflowStatus.Faulted => H["Faulted"], WorkflowStatus.Finished => H["Finished"], WorkflowStatus.Halted => H["Halted"], WorkflowStatus.Idle => H["Idle"], WorkflowStatus.Resuming => H["Resuming"], WorkflowStatus.Starting => H["Starting"], - _ => new LocalizedHtmlString(status.ToString(), status.ToString()), + _ => throw new NotSupportedException(), }; } } }
IStringLocalizer<LinkFieldDisplayDriver> localizer) // Run this through a sanitizer in case someone puts html in it. // No settings. await _notifier.WarningAsync(new LocalizedHtmlString(error.ErrorMessage, error.ErrorMessage)); public HtmlMenuItemPartDisplayDriver(IHtmlSanitizerService htmlSanitizerService) var localizedSubject = new LocalizedString(nameof(RegisterUserTask), subject); var localizedBody = new LocalizedHtmlString(nameof(RegisterUserTask), body); Subject = localizedSubject.ResourceNotFound ? subject : localizedSubject.Value, Body = localizedBody.IsResourceNotFound ? body : localizedBody.Value, <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? new LocalizedHtmlString("RequiredRoles", string.Join(", ", Model.Activity.Roles)) : T["Any"]]</span> <span>@Model.Workflow.Status.GetLocalizedStatus(T)</span> @entry.Workflow.Status.GetLocalizedStatus(T) private static IHtmlLocalizer H; return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(title, title) : defaultTitle(); public static LocalizedHtmlString GetLocalizedStatus(this WorkflowStatus status, IHtmlLocalizer localizer) // Field for PoExtractor compatibility H = localizer; _ => new LocalizedHtmlString(status.ToString(), status.ToString()),
using System.Text.Encodings.Web; using OrchardCore.Infrastructure.Html; private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly HtmlEncoder _htmlencoder; IStringLocalizer<LinkFieldDisplayDriver> localizer, IHtmlSanitizerService htmlSanitizerService, HtmlEncoder htmlencoder) _htmlSanitizerService = htmlSanitizerService; _htmlencoder = htmlencoder; else { var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) { updater.ModelState.AddModelError(Prefix, nameof(field.Url), S["{0} is an invalid url.", field.Url]); } } // Pass ErrorMessage as an argument to ensure it is encoded await _notifier.WarningAsync(new LocalizedHtmlString(nameof(AuditTrailContentController.Restore), "{0}", false, error.ErrorMessage)); using System; using System.Text.Encodings.Web; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.Extensions.Localization; private readonly IUrlHelperFactory _urlHelperFactory; private readonly IActionContextAccessor _actionContextAccessor; private readonly HtmlEncoder _htmlencoder; private readonly IStringLocalizer S; public HtmlMenuItemPartDisplayDriver( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IStringLocalizer<HtmlMenuItemPartDisplayDriver> localizer, IHtmlSanitizerService htmlSanitizerService, HtmlEncoder htmlencoder ) _urlHelperFactory = urlHelperFactory; _actionContextAccessor = actionContextAccessor; _htmlencoder = htmlencoder; S = localizer; var urlToValidate = part.Url; if (!String.IsNullOrEmpty(urlToValidate)) { urlToValidate = urlToValidate.Split('#', 2)[0]; if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) { var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); urlToValidate = urlHelper.Content(urlToValidate); } urlToValidate = urlToValidate.ToUriComponents(); if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } else { var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } } } using System; using System.Text.Encodings.Web; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.Extensions.Localization; using OrchardCore.Infrastructure.Html; private readonly IUrlHelperFactory _urlHelperFactory; private readonly IActionContextAccessor _actionContextAccessor; private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly HtmlEncoder _htmlencoder; private readonly IStringLocalizer S; public LinkMenuItemPartDisplayDriver( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IStringLocalizer<LinkMenuItemPartDisplayDriver> localizer, IHtmlSanitizerService htmlSanitizerService, HtmlEncoder htmlencoder ) { _urlHelperFactory = urlHelperFactory; _actionContextAccessor = actionContextAccessor; _htmlSanitizerService = htmlSanitizerService; _htmlencoder = htmlencoder; S = localizer; } var urlToValidate = part.Url; if (!String.IsNullOrEmpty(urlToValidate)) { urlToValidate = urlToValidate.Split('#', 2)[0]; if (urlToValidate.StartsWith("~/", StringComparison.Ordinal)) { var urlHelper = _urlHelperFactory.GetUrlHelper(_actionContextAccessor.ActionContext); urlToValidate = urlHelper.Content(urlToValidate); } urlToValidate = urlToValidate.ToUriComponents(); if (!Uri.IsWellFormedUriString(urlToValidate, UriKind.RelativeOrAbsolute)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } else { var link = $"<a href=\"{_htmlencoder.Encode(urlToValidate)}\"></a>"; if (!String.Equals(link, _htmlSanitizerService.Sanitize(link), StringComparison.OrdinalIgnoreCase)) { updater.ModelState.AddModelError(nameof(part.Url), S["{0} is an invalid url.", part.Url]); } } } Subject = subject, Body = body, // The notification message can contain HTML by design <span>@T["Required roles: <em>{0}</em>", Model.Activity.Roles.Any() ? Html.Raw(Html.Encode(string.Join(", ", Model.Activity.Roles))) : T["Any"]]</span> <span>@T.GetLocalizedStatus(Model.Workflow.Status)</span> @T.GetLocalizedStatus(entry.Workflow.Status) // A string used in LocalizedHtmlString won't be encoded so it needs to be pre-encoded. // Passing the title as an argument so it uses the HtmlEncoder when rendered // Another options would be to use new LocalizedHtmlString(Html.Encode(title)) but it's not available in the current context return !string.IsNullOrEmpty(title) ? new LocalizedHtmlString(nameof(ActivityExtensions.GetTitleOrDefault), "{0}", false, title) : defaultTitle(); public static LocalizedHtmlString GetLocalizedStatus(this IHtmlLocalizer H, WorkflowStatus status) _ => throw new NotSupportedException(),
[]
CVE-2022-0820
b7096af1028d8f909f63dd076d1bbd573913a92d
https://github.com/orchardcms/orchardcore
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository orchardcms/orchardcore prior to 1.3.0.'}]
4.3
6.1
2022-03-11T00:15Z
MEDIUM
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix missing permission checks and encoding. (#11344)
2022-03-10 10:03:52 -0800
b7096af102
9,182
2
[ "src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs", "src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs", "src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs", "src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs" ]
C#
{"src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs": {"lines_added": 18, "lines_deleted": 7}, "src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs": {"lines_added": 25, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs": {"lines_added": 10, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs": {"lines_added": 5, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs": {"lines_added": 51, "lines_deleted": 35}, "src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs": {"lines_added": 7, "lines_deleted": 3}, "src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs index f0a7ca5d11..3818679bd7 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs @@ -1,19 +1,22 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Admin; using OrchardCore.ContentFields.Settings; using OrchardCore.ContentFields.ViewModels; using OrchardCore.ContentLocalization; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Metadata; using OrchardCore.ContentManagement.Records; +using OrchardCore.Contents; using OrchardCore.Modules; using YesSql; using YesSql.Services; +using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; namespace OrchardCore.ContentFields.Controllers { [RequireFeatures("OrchardCore.ContentLocalization")] [Admin] @@ -21,22 +24,27 @@ namespace OrchardCore.ContentFields.Controllers { private readonly IContentDefinitionManager _contentDefinitionManager; private readonly IContentLocalizationManager _contentLocalizationManager; private readonly IContentManager _contentManager; private readonly ISession _session; + private readonly IAuthorizationService _authorizationService; + private readonly IHttpContextAccessor _httpContextAccessor; public LocalizationSetContentPickerAdminController( IContentDefinitionManager contentDefinitionManager, IContentLocalizationManager contentLocalizationManager, IContentManager contentManager, - ISession session - ) + ISession session, + IAuthorizationService authorizationService, + IHttpContextAccessor httpContextAccessor) { _contentDefinitionManager = contentDefinitionManager; _contentLocalizationManager = contentLocalizationManager; _contentManager = contentManager; _session = session; + _authorizationService = authorizationService; + _httpContextAccessor = httpContextAccessor; } [HttpGet] public async Task<IActionResult> SearchLocalizationSets(string part, string field, string query) { @@ -69,16 +77,19 @@ namespace OrchardCore.ContentFields.Controllers var results = new List<VueMultiselectItemViewModel>(); foreach (var contentItem in cleanedContentItems) { - results.Add(new VueMultiselectItemViewModel + if (await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) { - Id = contentItem.Key, //localization set - DisplayText = contentItem.Value.ToString(), - HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) - }); + results.Add(new VueMultiselectItemViewModel + { + Id = contentItem.Key, //localization set + DisplayText = contentItem.Value.ToString(), + HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) + }); + } } return new ObjectResult(results); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs b/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs index 047258b800..e82dfd0779 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs @@ -1,32 +1,41 @@ using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Admin; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display; +using OrchardCore.Contents; using OrchardCore.DisplayManagement.ModelBinding; using YesSql; +using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; namespace OrchardCore.Demo.Controllers { public class ContentController : Controller { private readonly IContentItemDisplayManager _contentDisplay; private readonly IContentManager _contentManager; private readonly ISession _session; private readonly IUpdateModelAccessor _updateModelAccessor; + private readonly IAuthorizationService _authorizationService; + private readonly IHttpContextAccessor _httpContextAccessor; public ContentController( IContentManager contentManager, IContentItemDisplayManager contentDisplay, ISession session, - IUpdateModelAccessor updateModelAccessor) + IUpdateModelAccessor updateModelAccessor, + IAuthorizationService authorizationService, + IHttpContextAccessor httpContextAccessor) { _contentManager = contentManager; _contentDisplay = contentDisplay; _session = session; _updateModelAccessor = updateModelAccessor; + _authorizationService = authorizationService; + _httpContextAccessor = httpContextAccessor; } public async Task<ActionResult> Display(string contentItemId) { var contentItem = await _contentManager.GetAsync(contentItemId); @@ -34,10 +43,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.BuildDisplayAsync(contentItem, _updateModelAccessor.ModelUpdater); return View(shape); } [Admin] @@ -48,10 +62,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.BuildEditorAsync(contentItem, _updateModelAccessor.ModelUpdater, false); return View(shape); } [Admin, HttpPost, ActionName("Edit")] @@ -62,10 +81,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.UpdateEditorAsync(contentItem, _updateModelAccessor.ModelUpdater, false); if (!ModelState.IsValid) { await _session.CancelAsync(); diff --git a/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs index 6b811e56da..96e1244588 100644 --- a/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs @@ -110,10 +110,15 @@ namespace OrchardCore.Features.Controllers } [HttpPost] public async Task<IActionResult> Disable(string id) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) + { + return Forbid(); + } + var feature = (await _shellFeaturesManager.GetAvailableFeaturesAsync()) .FirstOrDefault(f => !f.IsTheme() && f.Id == id); if (feature == null) { @@ -132,10 +137,15 @@ namespace OrchardCore.Features.Controllers } [HttpPost] public async Task<IActionResult> Enable(string id) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) + { + return Forbid(); + } + var feature = (await _shellFeaturesManager.GetAvailableFeaturesAsync()) .FirstOrDefault(f => !f.IsTheme() && f.Id == id); if (feature == null) { diff --git a/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs index aae4ee9e9b..ad15b14882 100644 --- a/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs @@ -83,10 +83,15 @@ namespace OrchardCore.Roles.Controllers } [HttpPost] public async Task<IActionResult> Create(CreateRoleViewModel model) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRoles)) + { + return Forbid(); + } + if (ModelState.IsValid) { model.RoleName = model.RoleName.Trim(); if (model.RoleName.Contains('/')) diff --git a/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs b/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs index 940ee1c869..7197d857d4 100644 --- a/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs @@ -1,6 +1,8 @@ using System; +using System.Text.Encodings.Web; +using System.Text.Json; using System.Threading.Tasks; using Microsoft.AspNetCore.Html; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Metadata.Settings; @@ -19,24 +21,27 @@ namespace OrchardCore.Seo.Drivers { private readonly IContentManager _contentManager; private readonly IPageTitleBuilder _pageTitleBuilder; private readonly IResourceManager _resourceManager; private readonly IShortcodeService _shortcodeService; + private readonly HtmlEncoder _htmlEncoder; private bool _primaryContentRendered { get; set; } public SeoContentDriver( IContentManager contentManager, IPageTitleBuilder pageTitleBuilder, IResourceManager resourceManager, - IShortcodeService shortcodeService + IShortcodeService shortcodeService, + HtmlEncoder htmlEncoder ) { _contentManager = contentManager; _pageTitleBuilder = pageTitleBuilder; _resourceManager = resourceManager; _shortcodeService = shortcodeService; + _htmlEncoder = htmlEncoder; } public override async Task<IDisplayResult> DisplayAsync(ContentItem contentItem, BuildDisplayContext context) { // We only apply this on the primary content item, which is considered the first call to BuildDisplay. @@ -58,30 +63,35 @@ namespace OrchardCore.Seo.Drivers if (!aspect.Render) { return null; } + var shortCodeContext = new Context + { + ["ContentItem"] = contentItem + }; + if (!String.IsNullOrEmpty(aspect.PageTitle)) { - _pageTitleBuilder.SetFixedTitle(new HtmlString(await RenderAsync(aspect.PageTitle, contentItem))); + _pageTitleBuilder.SetFixedTitle(new HtmlString(_htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.PageTitle, shortCodeContext)))); } if (!String.IsNullOrEmpty(aspect.MetaDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "description", - Content = await RenderAsync(aspect.MetaDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.MetaKeywords)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "keywords", - Content = await RenderAsync(aspect.MetaKeywords, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaKeywords, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.Canonical)) { @@ -95,191 +105,197 @@ namespace OrchardCore.Seo.Drivers if (!String.IsNullOrEmpty(aspect.MetaRobots)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "robots", - Content = await RenderAsync(aspect.MetaRobots, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaRobots, shortCodeContext)) }); } foreach (var customMetaTag in aspect.CustomMetaTags) { // Generate a new meta entry as the builder is preopulated. _resourceManager.RegisterMeta(new MetaEntry( - await RenderAsync(customMetaTag.Name, contentItem), - await RenderAsync(customMetaTag.Property, contentItem), - await RenderAsync(customMetaTag.Content, contentItem), - await RenderAsync(customMetaTag.HttpEquiv, contentItem), - await RenderAsync(customMetaTag.Charset, contentItem))); + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Name, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Property, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Content, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.HttpEquiv, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Charset, shortCodeContext)))); } // OpenGraph. if (!String.IsNullOrEmpty(aspect.OpenGraphType)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:type", - Content = await RenderAsync(aspect.OpenGraphType, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphType, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphTitle)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:title", - Content = await RenderAsync(aspect.OpenGraphTitle, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphTitle, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:description", - Content = await RenderAsync(aspect.OpenGraphDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphImage)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:image", - Content = await RenderAsync(aspect.OpenGraphImage, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImage, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphImageAlt)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:image:alt", - Content = await RenderAsync(aspect.OpenGraphImageAlt, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImageAlt, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphUrl)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:url", - Content = await RenderAsync(aspect.OpenGraphUrl, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphUrl, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphSiteName)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:site_name", - Content = await RenderAsync(aspect.OpenGraphSiteName, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphSiteName, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphAppId)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "fb:app_id", - Content = await RenderAsync(aspect.OpenGraphAppId, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphAppId, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphLocale)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:locale", - Content = await RenderAsync(aspect.OpenGraphLocale, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphLocale, shortCodeContext)) }); } // Twitter. if (!String.IsNullOrEmpty(aspect.TwitterCard)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "twitter:card", - Content = await RenderAsync(aspect.TwitterCard, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCard, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterSite)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "twitter:site", - Content = await RenderAsync(aspect.TwitterSite, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterSite, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterTitle)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:title", - Content = await RenderAsync(aspect.TwitterTitle, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterTitle, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:description", - Content = await RenderAsync(aspect.TwitterDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterImage)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:image", - Content = await RenderAsync(aspect.TwitterImage, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImage, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterImageAlt)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:image:alt", - Content = await RenderAsync(aspect.TwitterImageAlt, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImageAlt, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterCreator)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:creator", - Content = await RenderAsync(aspect.TwitterCreator, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCreator, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterUrl)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:url", - Content = await RenderAsync(aspect.TwitterUrl, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterUrl, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.GoogleSchema)) { - _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{aspect.GoogleSchema}\n</script>")); + var json = await _shortcodeService.ProcessAsync(aspect.GoogleSchema, shortCodeContext); + + try + { + // Validate json format + JsonDocument.Parse(json); + } + catch + { + json = "{ \"error\": \"Invalid JSON content in SEO settings\" }"; + } + + _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{json}\n</script>")); + } return null; } - - private ValueTask<string> RenderAsync(string template, ContentItem contentItem) - => _shortcodeService.ProcessAsync(template, - new Context - { - ["ContentItem"] = contentItem - }); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs index dc52159673..b72d6795bf 100644 --- a/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs @@ -9,10 +9,11 @@ using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Localization; using Newtonsoft.Json; using OrchardCore.DisplayManagement; using OrchardCore.DisplayManagement.Notify; +using OrchardCore.Infrastructure.Html; using OrchardCore.Liquid; using OrchardCore.Modules; using OrchardCore.Navigation; using OrchardCore.Routing; using OrchardCore.Settings; @@ -31,31 +32,34 @@ namespace OrchardCore.Shortcodes.Controllers private readonly ILiquidTemplateManager _liquidTemplateManager; private readonly ISiteService _siteService; private readonly INotifier _notifier; private readonly IStringLocalizer S; private readonly IHtmlLocalizer H; + private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly dynamic New; public AdminController( IAuthorizationService authorizationService, ShortcodeTemplatesManager shortcodeTemplatesManager, ILiquidTemplateManager liquidTemplateManager, ISiteService siteService, INotifier notifier, IShapeFactory shapeFactory, IStringLocalizer<AdminController> stringLocalizer, - IHtmlLocalizer<AdminController> htmlLocalizer + IHtmlLocalizer<AdminController> htmlLocalizer, + IHtmlSanitizerService htmlSanitizerService ) { _authorizationService = authorizationService; _shortcodeTemplatesManager = shortcodeTemplatesManager; _liquidTemplateManager = liquidTemplateManager; _siteService = siteService; _notifier = notifier; New = shapeFactory; S = stringLocalizer; H = htmlLocalizer; + _htmlSanitizerService = htmlSanitizerService; } public async Task<IActionResult> Index(ContentOptions options, PagerParameters pagerParameters) { if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageShortcodeTemplates)) @@ -157,11 +161,11 @@ namespace OrchardCore.Shortcodes.Controllers { var template = new ShortcodeTemplate { Content = model.Content, Hint = model.Hint, - Usage = model.Usage, + Usage = _htmlSanitizerService.Sanitize(model.Usage), DefaultValue = model.DefaultValue, Categories = JsonConvert.DeserializeObject<string[]>(model.SelectedCategories) }; await _shortcodeTemplatesManager.UpdateShortcodeTemplateAsync(model.Name, template); @@ -254,11 +258,11 @@ namespace OrchardCore.Shortcodes.Controllers { var template = new ShortcodeTemplate { Content = model.Content, Hint = model.Hint, - Usage = model.Usage, + Usage = _htmlSanitizerService.Sanitize(model.Usage), DefaultValue = model.DefaultValue, Categories = JsonConvert.DeserializeObject<string[]>(model.SelectedCategories) }; await _shortcodeTemplatesManager.RemoveShortcodeTemplateAsync(sourceName); diff --git a/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs b/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs index 147ff6c33e..c66e14cb2e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs @@ -38,12 +38,12 @@ namespace OrchardCore.Tenants.Controllers IAuthorizationService authorizationService, FeatureProfilesManager featueProfilesManager, ISiteService siteService, INotifier notifier, IShapeFactory shapeFactory, - IStringLocalizer<AdminController> stringLocalizer, - IHtmlLocalizer<AdminController> htmlLocalizer + IStringLocalizer<FeatureProfilesController> stringLocalizer, + IHtmlLocalizer<FeatureProfilesController> htmlLocalizer ) { _authorizationService = authorizationService; _featureProfilesManager = featueProfilesManager; _siteService = siteService;
ISession session ) results.Add(new VueMultiselectItemViewModel Id = contentItem.Key, //localization set DisplayText = contentItem.Value.ToString(), HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) }); IUpdateModelAccessor updateModelAccessor) IShortcodeService shortcodeService _pageTitleBuilder.SetFixedTitle(new HtmlString(await RenderAsync(aspect.PageTitle, contentItem))); Content = await RenderAsync(aspect.MetaDescription, contentItem) Content = await RenderAsync(aspect.MetaKeywords, contentItem) Content = await RenderAsync(aspect.MetaRobots, contentItem) await RenderAsync(customMetaTag.Name, contentItem), await RenderAsync(customMetaTag.Property, contentItem), await RenderAsync(customMetaTag.Content, contentItem), await RenderAsync(customMetaTag.HttpEquiv, contentItem), await RenderAsync(customMetaTag.Charset, contentItem))); Content = await RenderAsync(aspect.OpenGraphType, contentItem) Content = await RenderAsync(aspect.OpenGraphTitle, contentItem) Content = await RenderAsync(aspect.OpenGraphDescription, contentItem) Content = await RenderAsync(aspect.OpenGraphImage, contentItem) Content = await RenderAsync(aspect.OpenGraphImageAlt, contentItem) Content = await RenderAsync(aspect.OpenGraphUrl, contentItem) Content = await RenderAsync(aspect.OpenGraphSiteName, contentItem) Content = await RenderAsync(aspect.OpenGraphAppId, contentItem) Content = await RenderAsync(aspect.OpenGraphLocale, contentItem) Content = await RenderAsync(aspect.TwitterCard, contentItem) Content = await RenderAsync(aspect.TwitterSite, contentItem) Content = await RenderAsync(aspect.TwitterTitle, contentItem) Content = await RenderAsync(aspect.TwitterDescription, contentItem) Content = await RenderAsync(aspect.TwitterImage, contentItem) Content = await RenderAsync(aspect.TwitterImageAlt, contentItem) Content = await RenderAsync(aspect.TwitterCreator, contentItem) Content = await RenderAsync(aspect.TwitterUrl, contentItem) _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{aspect.GoogleSchema}\n</script>")); private ValueTask<string> RenderAsync(string template, ContentItem contentItem) => _shortcodeService.ProcessAsync(template, new Context { ["ContentItem"] = contentItem }); IHtmlLocalizer<AdminController> htmlLocalizer Usage = model.Usage, Usage = model.Usage, IStringLocalizer<AdminController> stringLocalizer, IHtmlLocalizer<AdminController> htmlLocalizer
using Microsoft.AspNetCore.Authorization; using OrchardCore.Contents; using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; private readonly IAuthorizationService _authorizationService; private readonly IHttpContextAccessor _httpContextAccessor; ISession session, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor) _authorizationService = authorizationService; _httpContextAccessor = httpContextAccessor; if (await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) results.Add(new VueMultiselectItemViewModel { Id = contentItem.Key, //localization set DisplayText = contentItem.Value.ToString(), HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) }); } using Microsoft.AspNetCore.Authorization; using OrchardCore.Contents; using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; private readonly IAuthorizationService _authorizationService; private readonly IHttpContextAccessor _httpContextAccessor; IUpdateModelAccessor updateModelAccessor, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor) _authorizationService = authorizationService; _httpContextAccessor = httpContextAccessor; if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRoles)) { return Forbid(); } using System.Text.Encodings.Web; using System.Text.Json; private readonly HtmlEncoder _htmlEncoder; IShortcodeService shortcodeService, HtmlEncoder htmlEncoder _htmlEncoder = htmlEncoder; var shortCodeContext = new Context { ["ContentItem"] = contentItem }; _pageTitleBuilder.SetFixedTitle(new HtmlString(_htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.PageTitle, shortCodeContext)))); Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaKeywords, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaRobots, shortCodeContext)) _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Name, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Property, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Content, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.HttpEquiv, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Charset, shortCodeContext)))); Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphType, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphTitle, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImage, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImageAlt, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphUrl, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphSiteName, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphAppId, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphLocale, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCard, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterSite, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterTitle, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImage, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImageAlt, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCreator, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterUrl, shortCodeContext)) var json = await _shortcodeService.ProcessAsync(aspect.GoogleSchema, shortCodeContext); try { // Validate json format JsonDocument.Parse(json); } catch { json = "{ \"error\": \"Invalid JSON content in SEO settings\" }"; } _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{json}\n</script>")); using OrchardCore.Infrastructure.Html; private readonly IHtmlSanitizerService _htmlSanitizerService; IHtmlLocalizer<AdminController> htmlLocalizer, IHtmlSanitizerService htmlSanitizerService _htmlSanitizerService = htmlSanitizerService; Usage = _htmlSanitizerService.Sanitize(model.Usage), Usage = _htmlSanitizerService.Sanitize(model.Usage), IStringLocalizer<FeatureProfilesController> stringLocalizer, IHtmlLocalizer<FeatureProfilesController> htmlLocalizer
[ "validation", "authorization" ]
CVE-2022-0821
b7096af1028d8f909f63dd076d1bbd573913a92d
https://github.com/orchardcms/orchardcore
[{'lang': 'en', 'value': 'Improper Authorization in GitHub repository orchardcms/orchardcore prior to 1.3.0.'}]
4
6.5
2022-03-11T00:15Z
MEDIUM
NVD-CWE-Other
Other
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.
Fix missing permission checks and encoding. (#11344)
2022-03-10 10:03:52 -0800
b7096af102
9,182
2
[ "src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs", "src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs", "src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs", "src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs" ]
C#
{"src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs": {"lines_added": 18, "lines_deleted": 7}, "src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs": {"lines_added": 25, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs": {"lines_added": 10, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs": {"lines_added": 5, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs": {"lines_added": 51, "lines_deleted": 35}, "src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs": {"lines_added": 7, "lines_deleted": 3}, "src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs index f0a7ca5d11..3818679bd7 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs @@ -1,19 +1,22 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Admin; using OrchardCore.ContentFields.Settings; using OrchardCore.ContentFields.ViewModels; using OrchardCore.ContentLocalization; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Metadata; using OrchardCore.ContentManagement.Records; +using OrchardCore.Contents; using OrchardCore.Modules; using YesSql; using YesSql.Services; +using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; namespace OrchardCore.ContentFields.Controllers { [RequireFeatures("OrchardCore.ContentLocalization")] [Admin] @@ -21,22 +24,27 @@ namespace OrchardCore.ContentFields.Controllers { private readonly IContentDefinitionManager _contentDefinitionManager; private readonly IContentLocalizationManager _contentLocalizationManager; private readonly IContentManager _contentManager; private readonly ISession _session; + private readonly IAuthorizationService _authorizationService; + private readonly IHttpContextAccessor _httpContextAccessor; public LocalizationSetContentPickerAdminController( IContentDefinitionManager contentDefinitionManager, IContentLocalizationManager contentLocalizationManager, IContentManager contentManager, - ISession session - ) + ISession session, + IAuthorizationService authorizationService, + IHttpContextAccessor httpContextAccessor) { _contentDefinitionManager = contentDefinitionManager; _contentLocalizationManager = contentLocalizationManager; _contentManager = contentManager; _session = session; + _authorizationService = authorizationService; + _httpContextAccessor = httpContextAccessor; } [HttpGet] public async Task<IActionResult> SearchLocalizationSets(string part, string field, string query) { @@ -69,16 +77,19 @@ namespace OrchardCore.ContentFields.Controllers var results = new List<VueMultiselectItemViewModel>(); foreach (var contentItem in cleanedContentItems) { - results.Add(new VueMultiselectItemViewModel + if (await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) { - Id = contentItem.Key, //localization set - DisplayText = contentItem.Value.ToString(), - HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) - }); + results.Add(new VueMultiselectItemViewModel + { + Id = contentItem.Key, //localization set + DisplayText = contentItem.Value.ToString(), + HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) + }); + } } return new ObjectResult(results); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs b/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs index 047258b800..e82dfd0779 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs @@ -1,32 +1,41 @@ using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Admin; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display; +using OrchardCore.Contents; using OrchardCore.DisplayManagement.ModelBinding; using YesSql; +using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; namespace OrchardCore.Demo.Controllers { public class ContentController : Controller { private readonly IContentItemDisplayManager _contentDisplay; private readonly IContentManager _contentManager; private readonly ISession _session; private readonly IUpdateModelAccessor _updateModelAccessor; + private readonly IAuthorizationService _authorizationService; + private readonly IHttpContextAccessor _httpContextAccessor; public ContentController( IContentManager contentManager, IContentItemDisplayManager contentDisplay, ISession session, - IUpdateModelAccessor updateModelAccessor) + IUpdateModelAccessor updateModelAccessor, + IAuthorizationService authorizationService, + IHttpContextAccessor httpContextAccessor) { _contentManager = contentManager; _contentDisplay = contentDisplay; _session = session; _updateModelAccessor = updateModelAccessor; + _authorizationService = authorizationService; + _httpContextAccessor = httpContextAccessor; } public async Task<ActionResult> Display(string contentItemId) { var contentItem = await _contentManager.GetAsync(contentItemId); @@ -34,10 +43,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.BuildDisplayAsync(contentItem, _updateModelAccessor.ModelUpdater); return View(shape); } [Admin] @@ -48,10 +62,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.BuildEditorAsync(contentItem, _updateModelAccessor.ModelUpdater, false); return View(shape); } [Admin, HttpPost, ActionName("Edit")] @@ -62,10 +81,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.UpdateEditorAsync(contentItem, _updateModelAccessor.ModelUpdater, false); if (!ModelState.IsValid) { await _session.CancelAsync(); diff --git a/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs index 6b811e56da..96e1244588 100644 --- a/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs @@ -110,10 +110,15 @@ namespace OrchardCore.Features.Controllers } [HttpPost] public async Task<IActionResult> Disable(string id) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) + { + return Forbid(); + } + var feature = (await _shellFeaturesManager.GetAvailableFeaturesAsync()) .FirstOrDefault(f => !f.IsTheme() && f.Id == id); if (feature == null) { @@ -132,10 +137,15 @@ namespace OrchardCore.Features.Controllers } [HttpPost] public async Task<IActionResult> Enable(string id) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) + { + return Forbid(); + } + var feature = (await _shellFeaturesManager.GetAvailableFeaturesAsync()) .FirstOrDefault(f => !f.IsTheme() && f.Id == id); if (feature == null) { diff --git a/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs index aae4ee9e9b..ad15b14882 100644 --- a/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs @@ -83,10 +83,15 @@ namespace OrchardCore.Roles.Controllers } [HttpPost] public async Task<IActionResult> Create(CreateRoleViewModel model) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRoles)) + { + return Forbid(); + } + if (ModelState.IsValid) { model.RoleName = model.RoleName.Trim(); if (model.RoleName.Contains('/')) diff --git a/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs b/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs index 940ee1c869..7197d857d4 100644 --- a/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs @@ -1,6 +1,8 @@ using System; +using System.Text.Encodings.Web; +using System.Text.Json; using System.Threading.Tasks; using Microsoft.AspNetCore.Html; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Metadata.Settings; @@ -19,24 +21,27 @@ namespace OrchardCore.Seo.Drivers { private readonly IContentManager _contentManager; private readonly IPageTitleBuilder _pageTitleBuilder; private readonly IResourceManager _resourceManager; private readonly IShortcodeService _shortcodeService; + private readonly HtmlEncoder _htmlEncoder; private bool _primaryContentRendered { get; set; } public SeoContentDriver( IContentManager contentManager, IPageTitleBuilder pageTitleBuilder, IResourceManager resourceManager, - IShortcodeService shortcodeService + IShortcodeService shortcodeService, + HtmlEncoder htmlEncoder ) { _contentManager = contentManager; _pageTitleBuilder = pageTitleBuilder; _resourceManager = resourceManager; _shortcodeService = shortcodeService; + _htmlEncoder = htmlEncoder; } public override async Task<IDisplayResult> DisplayAsync(ContentItem contentItem, BuildDisplayContext context) { // We only apply this on the primary content item, which is considered the first call to BuildDisplay. @@ -58,30 +63,35 @@ namespace OrchardCore.Seo.Drivers if (!aspect.Render) { return null; } + var shortCodeContext = new Context + { + ["ContentItem"] = contentItem + }; + if (!String.IsNullOrEmpty(aspect.PageTitle)) { - _pageTitleBuilder.SetFixedTitle(new HtmlString(await RenderAsync(aspect.PageTitle, contentItem))); + _pageTitleBuilder.SetFixedTitle(new HtmlString(_htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.PageTitle, shortCodeContext)))); } if (!String.IsNullOrEmpty(aspect.MetaDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "description", - Content = await RenderAsync(aspect.MetaDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.MetaKeywords)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "keywords", - Content = await RenderAsync(aspect.MetaKeywords, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaKeywords, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.Canonical)) { @@ -95,191 +105,197 @@ namespace OrchardCore.Seo.Drivers if (!String.IsNullOrEmpty(aspect.MetaRobots)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "robots", - Content = await RenderAsync(aspect.MetaRobots, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaRobots, shortCodeContext)) }); } foreach (var customMetaTag in aspect.CustomMetaTags) { // Generate a new meta entry as the builder is preopulated. _resourceManager.RegisterMeta(new MetaEntry( - await RenderAsync(customMetaTag.Name, contentItem), - await RenderAsync(customMetaTag.Property, contentItem), - await RenderAsync(customMetaTag.Content, contentItem), - await RenderAsync(customMetaTag.HttpEquiv, contentItem), - await RenderAsync(customMetaTag.Charset, contentItem))); + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Name, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Property, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Content, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.HttpEquiv, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Charset, shortCodeContext)))); } // OpenGraph. if (!String.IsNullOrEmpty(aspect.OpenGraphType)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:type", - Content = await RenderAsync(aspect.OpenGraphType, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphType, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphTitle)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:title", - Content = await RenderAsync(aspect.OpenGraphTitle, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphTitle, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:description", - Content = await RenderAsync(aspect.OpenGraphDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphImage)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:image", - Content = await RenderAsync(aspect.OpenGraphImage, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImage, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphImageAlt)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:image:alt", - Content = await RenderAsync(aspect.OpenGraphImageAlt, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImageAlt, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphUrl)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:url", - Content = await RenderAsync(aspect.OpenGraphUrl, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphUrl, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphSiteName)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:site_name", - Content = await RenderAsync(aspect.OpenGraphSiteName, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphSiteName, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphAppId)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "fb:app_id", - Content = await RenderAsync(aspect.OpenGraphAppId, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphAppId, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphLocale)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:locale", - Content = await RenderAsync(aspect.OpenGraphLocale, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphLocale, shortCodeContext)) }); } // Twitter. if (!String.IsNullOrEmpty(aspect.TwitterCard)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "twitter:card", - Content = await RenderAsync(aspect.TwitterCard, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCard, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterSite)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "twitter:site", - Content = await RenderAsync(aspect.TwitterSite, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterSite, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterTitle)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:title", - Content = await RenderAsync(aspect.TwitterTitle, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterTitle, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:description", - Content = await RenderAsync(aspect.TwitterDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterImage)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:image", - Content = await RenderAsync(aspect.TwitterImage, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImage, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterImageAlt)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:image:alt", - Content = await RenderAsync(aspect.TwitterImageAlt, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImageAlt, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterCreator)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:creator", - Content = await RenderAsync(aspect.TwitterCreator, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCreator, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterUrl)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:url", - Content = await RenderAsync(aspect.TwitterUrl, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterUrl, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.GoogleSchema)) { - _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{aspect.GoogleSchema}\n</script>")); + var json = await _shortcodeService.ProcessAsync(aspect.GoogleSchema, shortCodeContext); + + try + { + // Validate json format + JsonDocument.Parse(json); + } + catch + { + json = "{ \"error\": \"Invalid JSON content in SEO settings\" }"; + } + + _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{json}\n</script>")); + } return null; } - - private ValueTask<string> RenderAsync(string template, ContentItem contentItem) - => _shortcodeService.ProcessAsync(template, - new Context - { - ["ContentItem"] = contentItem - }); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs index dc52159673..b72d6795bf 100644 --- a/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs @@ -9,10 +9,11 @@ using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Localization; using Newtonsoft.Json; using OrchardCore.DisplayManagement; using OrchardCore.DisplayManagement.Notify; +using OrchardCore.Infrastructure.Html; using OrchardCore.Liquid; using OrchardCore.Modules; using OrchardCore.Navigation; using OrchardCore.Routing; using OrchardCore.Settings; @@ -31,31 +32,34 @@ namespace OrchardCore.Shortcodes.Controllers private readonly ILiquidTemplateManager _liquidTemplateManager; private readonly ISiteService _siteService; private readonly INotifier _notifier; private readonly IStringLocalizer S; private readonly IHtmlLocalizer H; + private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly dynamic New; public AdminController( IAuthorizationService authorizationService, ShortcodeTemplatesManager shortcodeTemplatesManager, ILiquidTemplateManager liquidTemplateManager, ISiteService siteService, INotifier notifier, IShapeFactory shapeFactory, IStringLocalizer<AdminController> stringLocalizer, - IHtmlLocalizer<AdminController> htmlLocalizer + IHtmlLocalizer<AdminController> htmlLocalizer, + IHtmlSanitizerService htmlSanitizerService ) { _authorizationService = authorizationService; _shortcodeTemplatesManager = shortcodeTemplatesManager; _liquidTemplateManager = liquidTemplateManager; _siteService = siteService; _notifier = notifier; New = shapeFactory; S = stringLocalizer; H = htmlLocalizer; + _htmlSanitizerService = htmlSanitizerService; } public async Task<IActionResult> Index(ContentOptions options, PagerParameters pagerParameters) { if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageShortcodeTemplates)) @@ -157,11 +161,11 @@ namespace OrchardCore.Shortcodes.Controllers { var template = new ShortcodeTemplate { Content = model.Content, Hint = model.Hint, - Usage = model.Usage, + Usage = _htmlSanitizerService.Sanitize(model.Usage), DefaultValue = model.DefaultValue, Categories = JsonConvert.DeserializeObject<string[]>(model.SelectedCategories) }; await _shortcodeTemplatesManager.UpdateShortcodeTemplateAsync(model.Name, template); @@ -254,11 +258,11 @@ namespace OrchardCore.Shortcodes.Controllers { var template = new ShortcodeTemplate { Content = model.Content, Hint = model.Hint, - Usage = model.Usage, + Usage = _htmlSanitizerService.Sanitize(model.Usage), DefaultValue = model.DefaultValue, Categories = JsonConvert.DeserializeObject<string[]>(model.SelectedCategories) }; await _shortcodeTemplatesManager.RemoveShortcodeTemplateAsync(sourceName); diff --git a/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs b/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs index 147ff6c33e..c66e14cb2e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs @@ -38,12 +38,12 @@ namespace OrchardCore.Tenants.Controllers IAuthorizationService authorizationService, FeatureProfilesManager featueProfilesManager, ISiteService siteService, INotifier notifier, IShapeFactory shapeFactory, - IStringLocalizer<AdminController> stringLocalizer, - IHtmlLocalizer<AdminController> htmlLocalizer + IStringLocalizer<FeatureProfilesController> stringLocalizer, + IHtmlLocalizer<FeatureProfilesController> htmlLocalizer ) { _authorizationService = authorizationService; _featureProfilesManager = featueProfilesManager; _siteService = siteService;
ISession session ) results.Add(new VueMultiselectItemViewModel Id = contentItem.Key, //localization set DisplayText = contentItem.Value.ToString(), HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) }); IUpdateModelAccessor updateModelAccessor) IShortcodeService shortcodeService _pageTitleBuilder.SetFixedTitle(new HtmlString(await RenderAsync(aspect.PageTitle, contentItem))); Content = await RenderAsync(aspect.MetaDescription, contentItem) Content = await RenderAsync(aspect.MetaKeywords, contentItem) Content = await RenderAsync(aspect.MetaRobots, contentItem) await RenderAsync(customMetaTag.Name, contentItem), await RenderAsync(customMetaTag.Property, contentItem), await RenderAsync(customMetaTag.Content, contentItem), await RenderAsync(customMetaTag.HttpEquiv, contentItem), await RenderAsync(customMetaTag.Charset, contentItem))); Content = await RenderAsync(aspect.OpenGraphType, contentItem) Content = await RenderAsync(aspect.OpenGraphTitle, contentItem) Content = await RenderAsync(aspect.OpenGraphDescription, contentItem) Content = await RenderAsync(aspect.OpenGraphImage, contentItem) Content = await RenderAsync(aspect.OpenGraphImageAlt, contentItem) Content = await RenderAsync(aspect.OpenGraphUrl, contentItem) Content = await RenderAsync(aspect.OpenGraphSiteName, contentItem) Content = await RenderAsync(aspect.OpenGraphAppId, contentItem) Content = await RenderAsync(aspect.OpenGraphLocale, contentItem) Content = await RenderAsync(aspect.TwitterCard, contentItem) Content = await RenderAsync(aspect.TwitterSite, contentItem) Content = await RenderAsync(aspect.TwitterTitle, contentItem) Content = await RenderAsync(aspect.TwitterDescription, contentItem) Content = await RenderAsync(aspect.TwitterImage, contentItem) Content = await RenderAsync(aspect.TwitterImageAlt, contentItem) Content = await RenderAsync(aspect.TwitterCreator, contentItem) Content = await RenderAsync(aspect.TwitterUrl, contentItem) _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{aspect.GoogleSchema}\n</script>")); private ValueTask<string> RenderAsync(string template, ContentItem contentItem) => _shortcodeService.ProcessAsync(template, new Context { ["ContentItem"] = contentItem }); IHtmlLocalizer<AdminController> htmlLocalizer Usage = model.Usage, Usage = model.Usage, IStringLocalizer<AdminController> stringLocalizer, IHtmlLocalizer<AdminController> htmlLocalizer
using Microsoft.AspNetCore.Authorization; using OrchardCore.Contents; using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; private readonly IAuthorizationService _authorizationService; private readonly IHttpContextAccessor _httpContextAccessor; ISession session, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor) _authorizationService = authorizationService; _httpContextAccessor = httpContextAccessor; if (await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) results.Add(new VueMultiselectItemViewModel { Id = contentItem.Key, //localization set DisplayText = contentItem.Value.ToString(), HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) }); } using Microsoft.AspNetCore.Authorization; using OrchardCore.Contents; using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; private readonly IAuthorizationService _authorizationService; private readonly IHttpContextAccessor _httpContextAccessor; IUpdateModelAccessor updateModelAccessor, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor) _authorizationService = authorizationService; _httpContextAccessor = httpContextAccessor; if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRoles)) { return Forbid(); } using System.Text.Encodings.Web; using System.Text.Json; private readonly HtmlEncoder _htmlEncoder; IShortcodeService shortcodeService, HtmlEncoder htmlEncoder _htmlEncoder = htmlEncoder; var shortCodeContext = new Context { ["ContentItem"] = contentItem }; _pageTitleBuilder.SetFixedTitle(new HtmlString(_htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.PageTitle, shortCodeContext)))); Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaKeywords, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaRobots, shortCodeContext)) _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Name, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Property, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Content, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.HttpEquiv, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Charset, shortCodeContext)))); Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphType, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphTitle, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImage, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImageAlt, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphUrl, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphSiteName, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphAppId, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphLocale, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCard, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterSite, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterTitle, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImage, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImageAlt, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCreator, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterUrl, shortCodeContext)) var json = await _shortcodeService.ProcessAsync(aspect.GoogleSchema, shortCodeContext); try { // Validate json format JsonDocument.Parse(json); } catch { json = "{ \"error\": \"Invalid JSON content in SEO settings\" }"; } _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{json}\n</script>")); using OrchardCore.Infrastructure.Html; private readonly IHtmlSanitizerService _htmlSanitizerService; IHtmlLocalizer<AdminController> htmlLocalizer, IHtmlSanitizerService htmlSanitizerService _htmlSanitizerService = htmlSanitizerService; Usage = _htmlSanitizerService.Sanitize(model.Usage), Usage = _htmlSanitizerService.Sanitize(model.Usage), IStringLocalizer<FeatureProfilesController> stringLocalizer, IHtmlLocalizer<FeatureProfilesController> htmlLocalizer
[ "validation", "authorization" ]
CVE-2022-0822
b7096af1028d8f909f63dd076d1bbd573913a92d
https://github.com/orchardcms/orchardcore
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Reflected in GitHub repository orchardcms/orchardcore prior to 1.3.0.'}]
3.5
5.4
2022-03-11T01:15Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix missing permission checks and encoding. (#11344)
2022-03-10 10:03:52 -0800
b7096af102
9,182
2
[ "src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs", "src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs", "src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs", "src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs", "src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs" ]
C#
{"src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs": {"lines_added": 18, "lines_deleted": 7}, "src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs": {"lines_added": 25, "lines_deleted": 1}, "src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs": {"lines_added": 10, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs": {"lines_added": 5, "lines_deleted": 0}, "src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs": {"lines_added": 51, "lines_deleted": 35}, "src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs": {"lines_added": 7, "lines_deleted": 3}, "src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs index f0a7ca5d11..3818679bd7 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Controllers/LocalizationSetContentPickerAdminController.cs @@ -1,19 +1,22 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Admin; using OrchardCore.ContentFields.Settings; using OrchardCore.ContentFields.ViewModels; using OrchardCore.ContentLocalization; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Metadata; using OrchardCore.ContentManagement.Records; +using OrchardCore.Contents; using OrchardCore.Modules; using YesSql; using YesSql.Services; +using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; namespace OrchardCore.ContentFields.Controllers { [RequireFeatures("OrchardCore.ContentLocalization")] [Admin] @@ -21,22 +24,27 @@ namespace OrchardCore.ContentFields.Controllers { private readonly IContentDefinitionManager _contentDefinitionManager; private readonly IContentLocalizationManager _contentLocalizationManager; private readonly IContentManager _contentManager; private readonly ISession _session; + private readonly IAuthorizationService _authorizationService; + private readonly IHttpContextAccessor _httpContextAccessor; public LocalizationSetContentPickerAdminController( IContentDefinitionManager contentDefinitionManager, IContentLocalizationManager contentLocalizationManager, IContentManager contentManager, - ISession session - ) + ISession session, + IAuthorizationService authorizationService, + IHttpContextAccessor httpContextAccessor) { _contentDefinitionManager = contentDefinitionManager; _contentLocalizationManager = contentLocalizationManager; _contentManager = contentManager; _session = session; + _authorizationService = authorizationService; + _httpContextAccessor = httpContextAccessor; } [HttpGet] public async Task<IActionResult> SearchLocalizationSets(string part, string field, string query) { @@ -69,16 +77,19 @@ namespace OrchardCore.ContentFields.Controllers var results = new List<VueMultiselectItemViewModel>(); foreach (var contentItem in cleanedContentItems) { - results.Add(new VueMultiselectItemViewModel + if (await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) { - Id = contentItem.Key, //localization set - DisplayText = contentItem.Value.ToString(), - HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) - }); + results.Add(new VueMultiselectItemViewModel + { + Id = contentItem.Key, //localization set + DisplayText = contentItem.Value.ToString(), + HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) + }); + } } return new ObjectResult(results); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs b/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs index 047258b800..e82dfd0779 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Controllers/ContentController.cs @@ -1,32 +1,41 @@ using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Admin; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display; +using OrchardCore.Contents; using OrchardCore.DisplayManagement.ModelBinding; using YesSql; +using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; namespace OrchardCore.Demo.Controllers { public class ContentController : Controller { private readonly IContentItemDisplayManager _contentDisplay; private readonly IContentManager _contentManager; private readonly ISession _session; private readonly IUpdateModelAccessor _updateModelAccessor; + private readonly IAuthorizationService _authorizationService; + private readonly IHttpContextAccessor _httpContextAccessor; public ContentController( IContentManager contentManager, IContentItemDisplayManager contentDisplay, ISession session, - IUpdateModelAccessor updateModelAccessor) + IUpdateModelAccessor updateModelAccessor, + IAuthorizationService authorizationService, + IHttpContextAccessor httpContextAccessor) { _contentManager = contentManager; _contentDisplay = contentDisplay; _session = session; _updateModelAccessor = updateModelAccessor; + _authorizationService = authorizationService; + _httpContextAccessor = httpContextAccessor; } public async Task<ActionResult> Display(string contentItemId) { var contentItem = await _contentManager.GetAsync(contentItemId); @@ -34,10 +43,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.BuildDisplayAsync(contentItem, _updateModelAccessor.ModelUpdater); return View(shape); } [Admin] @@ -48,10 +62,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.BuildEditorAsync(contentItem, _updateModelAccessor.ModelUpdater, false); return View(shape); } [Admin, HttpPost, ActionName("Edit")] @@ -62,10 +81,15 @@ namespace OrchardCore.Demo.Controllers if (contentItem == null) { return NotFound(); } + if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) + { + return Forbid(); + } + var shape = await _contentDisplay.UpdateEditorAsync(contentItem, _updateModelAccessor.ModelUpdater, false); if (!ModelState.IsValid) { await _session.CancelAsync(); diff --git a/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs index 6b811e56da..96e1244588 100644 --- a/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Features/Controllers/AdminController.cs @@ -110,10 +110,15 @@ namespace OrchardCore.Features.Controllers } [HttpPost] public async Task<IActionResult> Disable(string id) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) + { + return Forbid(); + } + var feature = (await _shellFeaturesManager.GetAvailableFeaturesAsync()) .FirstOrDefault(f => !f.IsTheme() && f.Id == id); if (feature == null) { @@ -132,10 +137,15 @@ namespace OrchardCore.Features.Controllers } [HttpPost] public async Task<IActionResult> Enable(string id) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) + { + return Forbid(); + } + var feature = (await _shellFeaturesManager.GetAvailableFeaturesAsync()) .FirstOrDefault(f => !f.IsTheme() && f.Id == id); if (feature == null) { diff --git a/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs index aae4ee9e9b..ad15b14882 100644 --- a/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Roles/Controllers/AdminController.cs @@ -83,10 +83,15 @@ namespace OrchardCore.Roles.Controllers } [HttpPost] public async Task<IActionResult> Create(CreateRoleViewModel model) { + if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRoles)) + { + return Forbid(); + } + if (ModelState.IsValid) { model.RoleName = model.RoleName.Trim(); if (model.RoleName.Contains('/')) diff --git a/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs b/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs index 940ee1c869..7197d857d4 100644 --- a/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.Seo/Drivers/SeoContentDriver.cs @@ -1,6 +1,8 @@ using System; +using System.Text.Encodings.Web; +using System.Text.Json; using System.Threading.Tasks; using Microsoft.AspNetCore.Html; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Metadata.Settings; @@ -19,24 +21,27 @@ namespace OrchardCore.Seo.Drivers { private readonly IContentManager _contentManager; private readonly IPageTitleBuilder _pageTitleBuilder; private readonly IResourceManager _resourceManager; private readonly IShortcodeService _shortcodeService; + private readonly HtmlEncoder _htmlEncoder; private bool _primaryContentRendered { get; set; } public SeoContentDriver( IContentManager contentManager, IPageTitleBuilder pageTitleBuilder, IResourceManager resourceManager, - IShortcodeService shortcodeService + IShortcodeService shortcodeService, + HtmlEncoder htmlEncoder ) { _contentManager = contentManager; _pageTitleBuilder = pageTitleBuilder; _resourceManager = resourceManager; _shortcodeService = shortcodeService; + _htmlEncoder = htmlEncoder; } public override async Task<IDisplayResult> DisplayAsync(ContentItem contentItem, BuildDisplayContext context) { // We only apply this on the primary content item, which is considered the first call to BuildDisplay. @@ -58,30 +63,35 @@ namespace OrchardCore.Seo.Drivers if (!aspect.Render) { return null; } + var shortCodeContext = new Context + { + ["ContentItem"] = contentItem + }; + if (!String.IsNullOrEmpty(aspect.PageTitle)) { - _pageTitleBuilder.SetFixedTitle(new HtmlString(await RenderAsync(aspect.PageTitle, contentItem))); + _pageTitleBuilder.SetFixedTitle(new HtmlString(_htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.PageTitle, shortCodeContext)))); } if (!String.IsNullOrEmpty(aspect.MetaDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "description", - Content = await RenderAsync(aspect.MetaDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.MetaKeywords)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "keywords", - Content = await RenderAsync(aspect.MetaKeywords, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaKeywords, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.Canonical)) { @@ -95,191 +105,197 @@ namespace OrchardCore.Seo.Drivers if (!String.IsNullOrEmpty(aspect.MetaRobots)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "robots", - Content = await RenderAsync(aspect.MetaRobots, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaRobots, shortCodeContext)) }); } foreach (var customMetaTag in aspect.CustomMetaTags) { // Generate a new meta entry as the builder is preopulated. _resourceManager.RegisterMeta(new MetaEntry( - await RenderAsync(customMetaTag.Name, contentItem), - await RenderAsync(customMetaTag.Property, contentItem), - await RenderAsync(customMetaTag.Content, contentItem), - await RenderAsync(customMetaTag.HttpEquiv, contentItem), - await RenderAsync(customMetaTag.Charset, contentItem))); + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Name, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Property, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Content, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.HttpEquiv, shortCodeContext)), + _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Charset, shortCodeContext)))); } // OpenGraph. if (!String.IsNullOrEmpty(aspect.OpenGraphType)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:type", - Content = await RenderAsync(aspect.OpenGraphType, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphType, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphTitle)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:title", - Content = await RenderAsync(aspect.OpenGraphTitle, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphTitle, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:description", - Content = await RenderAsync(aspect.OpenGraphDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphImage)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:image", - Content = await RenderAsync(aspect.OpenGraphImage, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImage, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphImageAlt)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:image:alt", - Content = await RenderAsync(aspect.OpenGraphImageAlt, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImageAlt, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphUrl)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:url", - Content = await RenderAsync(aspect.OpenGraphUrl, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphUrl, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphSiteName)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:site_name", - Content = await RenderAsync(aspect.OpenGraphSiteName, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphSiteName, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphAppId)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "fb:app_id", - Content = await RenderAsync(aspect.OpenGraphAppId, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphAppId, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.OpenGraphLocale)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "og:locale", - Content = await RenderAsync(aspect.OpenGraphLocale, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphLocale, shortCodeContext)) }); } // Twitter. if (!String.IsNullOrEmpty(aspect.TwitterCard)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "twitter:card", - Content = await RenderAsync(aspect.TwitterCard, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCard, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterSite)) { _resourceManager.RegisterMeta(new MetaEntry { Property = "twitter:site", - Content = await RenderAsync(aspect.TwitterSite, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterSite, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterTitle)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:title", - Content = await RenderAsync(aspect.TwitterTitle, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterTitle, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterDescription)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:description", - Content = await RenderAsync(aspect.TwitterDescription, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterDescription, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterImage)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:image", - Content = await RenderAsync(aspect.TwitterImage, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImage, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterImageAlt)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:image:alt", - Content = await RenderAsync(aspect.TwitterImageAlt, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImageAlt, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterCreator)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:creator", - Content = await RenderAsync(aspect.TwitterCreator, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCreator, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.TwitterUrl)) { _resourceManager.RegisterMeta(new MetaEntry { Name = "twitter:url", - Content = await RenderAsync(aspect.TwitterUrl, contentItem) + Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterUrl, shortCodeContext)) }); } if (!String.IsNullOrEmpty(aspect.GoogleSchema)) { - _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{aspect.GoogleSchema}\n</script>")); + var json = await _shortcodeService.ProcessAsync(aspect.GoogleSchema, shortCodeContext); + + try + { + // Validate json format + JsonDocument.Parse(json); + } + catch + { + json = "{ \"error\": \"Invalid JSON content in SEO settings\" }"; + } + + _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{json}\n</script>")); + } return null; } - - private ValueTask<string> RenderAsync(string template, ContentItem contentItem) - => _shortcodeService.ProcessAsync(template, - new Context - { - ["ContentItem"] = contentItem - }); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs index dc52159673..b72d6795bf 100644 --- a/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Controllers/AdminController.cs @@ -9,10 +9,11 @@ using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Localization; using Newtonsoft.Json; using OrchardCore.DisplayManagement; using OrchardCore.DisplayManagement.Notify; +using OrchardCore.Infrastructure.Html; using OrchardCore.Liquid; using OrchardCore.Modules; using OrchardCore.Navigation; using OrchardCore.Routing; using OrchardCore.Settings; @@ -31,31 +32,34 @@ namespace OrchardCore.Shortcodes.Controllers private readonly ILiquidTemplateManager _liquidTemplateManager; private readonly ISiteService _siteService; private readonly INotifier _notifier; private readonly IStringLocalizer S; private readonly IHtmlLocalizer H; + private readonly IHtmlSanitizerService _htmlSanitizerService; private readonly dynamic New; public AdminController( IAuthorizationService authorizationService, ShortcodeTemplatesManager shortcodeTemplatesManager, ILiquidTemplateManager liquidTemplateManager, ISiteService siteService, INotifier notifier, IShapeFactory shapeFactory, IStringLocalizer<AdminController> stringLocalizer, - IHtmlLocalizer<AdminController> htmlLocalizer + IHtmlLocalizer<AdminController> htmlLocalizer, + IHtmlSanitizerService htmlSanitizerService ) { _authorizationService = authorizationService; _shortcodeTemplatesManager = shortcodeTemplatesManager; _liquidTemplateManager = liquidTemplateManager; _siteService = siteService; _notifier = notifier; New = shapeFactory; S = stringLocalizer; H = htmlLocalizer; + _htmlSanitizerService = htmlSanitizerService; } public async Task<IActionResult> Index(ContentOptions options, PagerParameters pagerParameters) { if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageShortcodeTemplates)) @@ -157,11 +161,11 @@ namespace OrchardCore.Shortcodes.Controllers { var template = new ShortcodeTemplate { Content = model.Content, Hint = model.Hint, - Usage = model.Usage, + Usage = _htmlSanitizerService.Sanitize(model.Usage), DefaultValue = model.DefaultValue, Categories = JsonConvert.DeserializeObject<string[]>(model.SelectedCategories) }; await _shortcodeTemplatesManager.UpdateShortcodeTemplateAsync(model.Name, template); @@ -254,11 +258,11 @@ namespace OrchardCore.Shortcodes.Controllers { var template = new ShortcodeTemplate { Content = model.Content, Hint = model.Hint, - Usage = model.Usage, + Usage = _htmlSanitizerService.Sanitize(model.Usage), DefaultValue = model.DefaultValue, Categories = JsonConvert.DeserializeObject<string[]>(model.SelectedCategories) }; await _shortcodeTemplatesManager.RemoveShortcodeTemplateAsync(sourceName); diff --git a/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs b/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs index 147ff6c33e..c66e14cb2e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Tenants/Controllers/FeatureProfilesController.cs @@ -38,12 +38,12 @@ namespace OrchardCore.Tenants.Controllers IAuthorizationService authorizationService, FeatureProfilesManager featueProfilesManager, ISiteService siteService, INotifier notifier, IShapeFactory shapeFactory, - IStringLocalizer<AdminController> stringLocalizer, - IHtmlLocalizer<AdminController> htmlLocalizer + IStringLocalizer<FeatureProfilesController> stringLocalizer, + IHtmlLocalizer<FeatureProfilesController> htmlLocalizer ) { _authorizationService = authorizationService; _featureProfilesManager = featueProfilesManager; _siteService = siteService;
ISession session ) results.Add(new VueMultiselectItemViewModel Id = contentItem.Key, //localization set DisplayText = contentItem.Value.ToString(), HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) }); IUpdateModelAccessor updateModelAccessor) IShortcodeService shortcodeService _pageTitleBuilder.SetFixedTitle(new HtmlString(await RenderAsync(aspect.PageTitle, contentItem))); Content = await RenderAsync(aspect.MetaDescription, contentItem) Content = await RenderAsync(aspect.MetaKeywords, contentItem) Content = await RenderAsync(aspect.MetaRobots, contentItem) await RenderAsync(customMetaTag.Name, contentItem), await RenderAsync(customMetaTag.Property, contentItem), await RenderAsync(customMetaTag.Content, contentItem), await RenderAsync(customMetaTag.HttpEquiv, contentItem), await RenderAsync(customMetaTag.Charset, contentItem))); Content = await RenderAsync(aspect.OpenGraphType, contentItem) Content = await RenderAsync(aspect.OpenGraphTitle, contentItem) Content = await RenderAsync(aspect.OpenGraphDescription, contentItem) Content = await RenderAsync(aspect.OpenGraphImage, contentItem) Content = await RenderAsync(aspect.OpenGraphImageAlt, contentItem) Content = await RenderAsync(aspect.OpenGraphUrl, contentItem) Content = await RenderAsync(aspect.OpenGraphSiteName, contentItem) Content = await RenderAsync(aspect.OpenGraphAppId, contentItem) Content = await RenderAsync(aspect.OpenGraphLocale, contentItem) Content = await RenderAsync(aspect.TwitterCard, contentItem) Content = await RenderAsync(aspect.TwitterSite, contentItem) Content = await RenderAsync(aspect.TwitterTitle, contentItem) Content = await RenderAsync(aspect.TwitterDescription, contentItem) Content = await RenderAsync(aspect.TwitterImage, contentItem) Content = await RenderAsync(aspect.TwitterImageAlt, contentItem) Content = await RenderAsync(aspect.TwitterCreator, contentItem) Content = await RenderAsync(aspect.TwitterUrl, contentItem) _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{aspect.GoogleSchema}\n</script>")); private ValueTask<string> RenderAsync(string template, ContentItem contentItem) => _shortcodeService.ProcessAsync(template, new Context { ["ContentItem"] = contentItem }); IHtmlLocalizer<AdminController> htmlLocalizer Usage = model.Usage, Usage = model.Usage, IStringLocalizer<AdminController> stringLocalizer, IHtmlLocalizer<AdminController> htmlLocalizer
using Microsoft.AspNetCore.Authorization; using OrchardCore.Contents; using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; private readonly IAuthorizationService _authorizationService; private readonly IHttpContextAccessor _httpContextAccessor; ISession session, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor) _authorizationService = authorizationService; _httpContextAccessor = httpContextAccessor; if (await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) results.Add(new VueMultiselectItemViewModel { Id = contentItem.Key, //localization set DisplayText = contentItem.Value.ToString(), HasPublished = await _contentManager.HasPublishedVersionAsync(contentItem.Value) }); } using Microsoft.AspNetCore.Authorization; using OrchardCore.Contents; using IHttpContextAccessor = Microsoft.AspNetCore.Http.IHttpContextAccessor; private readonly IAuthorizationService _authorizationService; private readonly IHttpContextAccessor _httpContextAccessor; IUpdateModelAccessor updateModelAccessor, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor) _authorizationService = authorizationService; _httpContextAccessor = httpContextAccessor; if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.ViewContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext.User, CommonPermissions.EditContent, contentItem)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageFeatures)) { return Forbid(); } if (!await _authorizationService.AuthorizeAsync(User, Permissions.ManageRoles)) { return Forbid(); } using System.Text.Encodings.Web; using System.Text.Json; private readonly HtmlEncoder _htmlEncoder; IShortcodeService shortcodeService, HtmlEncoder htmlEncoder _htmlEncoder = htmlEncoder; var shortCodeContext = new Context { ["ContentItem"] = contentItem }; _pageTitleBuilder.SetFixedTitle(new HtmlString(_htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.PageTitle, shortCodeContext)))); Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaKeywords, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.MetaRobots, shortCodeContext)) _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Name, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Property, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Content, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.HttpEquiv, shortCodeContext)), _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(customMetaTag.Charset, shortCodeContext)))); Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphType, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphTitle, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImage, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphImageAlt, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphUrl, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphSiteName, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphAppId, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.OpenGraphLocale, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCard, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterSite, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterTitle, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterDescription, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImage, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterImageAlt, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterCreator, shortCodeContext)) Content = _htmlEncoder.Encode(await _shortcodeService.ProcessAsync(aspect.TwitterUrl, shortCodeContext)) var json = await _shortcodeService.ProcessAsync(aspect.GoogleSchema, shortCodeContext); try { // Validate json format JsonDocument.Parse(json); } catch { json = "{ \"error\": \"Invalid JSON content in SEO settings\" }"; } _resourceManager.RegisterHeadScript(new HtmlString($"<script type=\"application/ld+json\">\n{json}\n</script>")); using OrchardCore.Infrastructure.Html; private readonly IHtmlSanitizerService _htmlSanitizerService; IHtmlLocalizer<AdminController> htmlLocalizer, IHtmlSanitizerService htmlSanitizerService _htmlSanitizerService = htmlSanitizerService; Usage = _htmlSanitizerService.Sanitize(model.Usage), Usage = _htmlSanitizerService.Sanitize(model.Usage), IStringLocalizer<FeatureProfilesController> stringLocalizer, IHtmlLocalizer<FeatureProfilesController> htmlLocalizer
[ "validation", "authorization" ]
CVE-2022-0402
c19d65abbe43d9b6359c1bf3498dc697d0c19d02
https://github.com/RensTillmann/super-forms
[{'lang': 'en', 'value': 'The Super Forms - Drag & Drop Form Builder WordPress plugin before 6.0.4 does not escape the bob_czy_panstwa_sprawa_zostala_rozwiazana parameter before outputting it back in an attribute via the super_language_switcher AJAX action, leading to a Reflected Cross-Site Scripting. The action is also lacking CSRF, making the attack easier to perform against any user.'}]
null
6.1
2024-01-16T16:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
fix PHP parse error
2022-01-27 01:44:45 +0100
c19d65ab
2,427
2
[ "docs/changelog.md", "src/add-ons/super-forms-register-login/super-forms-register-login.php", "src/assets/css/frontend/elements.css", "src/assets/css/frontend/elements.css.map", "src/assets/css/frontend/elements.sass", "src/assets/js/common.js", "src/assets/js/frontend/elements.js", "src/docs/changelog.md", "src/includes/class-ajax.php", "src/includes/class-common.php", "src/includes/class-shortcodes.php", "src/includes/extensions/listings/listings.php", "src/includes/sessions/class-recursive-arrayaccess.php", "src/super-forms.php" ]
PHP
{"docs/changelog.md": {"lines_added": 7, "lines_deleted": 0}, "src/add-ons/super-forms-register-login/super-forms-register-login.php": {"lines_added": 1, "lines_deleted": 1}, "src/assets/css/frontend/elements.css": {"lines_added": 4, "lines_deleted": 0}, "src/assets/css/frontend/elements.css.map": {"lines_added": 1, "lines_deleted": 1}, "src/assets/css/frontend/elements.sass": {"lines_added": 4, "lines_deleted": 0}, "src/assets/js/common.js": {"lines_added": 14, "lines_deleted": 7}, "src/assets/js/frontend/elements.js": {"lines_added": 69, "lines_deleted": 39}, "src/docs/changelog.md": {"lines_added": 7, "lines_deleted": 0}, "src/includes/class-ajax.php": {"lines_added": 45, "lines_deleted": 21}, "src/includes/class-common.php": {"lines_added": 18, "lines_deleted": 0}, "src/includes/class-shortcodes.php": {"lines_added": 3, "lines_deleted": 4}, "src/includes/extensions/listings/listings.php": {"lines_added": 10, "lines_deleted": 0}, "src/includes/sessions/class-recursive-arrayaccess.php": {"lines_added": 7, "lines_deleted": 8}, "src/super-forms.php": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/docs/changelog.md b/docs/changelog.md index f4c54abf..1034e95f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,10 +6,17 @@ ## PDF Generator Add-on now available! More info here: - [PDF Generator Add-on](https://renstillmann.github.io/super-forms/#/pdf-generator-add-on) +## Jan 26, 2022 - Version 6.0.4 + +- **Fix:** When `editing` is enabled for a `Listings` (Listings Add-on) make sure the styles/scripts are loaded so that normal form functions and styles are applied +- **Fix:** Validate requests made to switch form language by using a custom nonce system +- **Fix:** PHP parse error when loading a php file used for PHP versions below v8 + + ## Jan 24, 2022 - Version 6.0.3 - **Fix:** Option `Delete files from server after the form was submitted` wasn't working properly when storing files outside site root (secure file uploads) - **Fix:** Back-end preview not generating the PDF due to fonts not being enqueued - **Fix:** Issue with files not being attached to E-mails when upload directory was setup to be outside the site root (secure file uploads) diff --git a/src/add-ons/super-forms-register-login/super-forms-register-login.php b/src/add-ons/super-forms-register-login/super-forms-register-login.php index ca33675b..8d5518cd 100644 --- a/src/add-ons/super-forms-register-login/super-forms-register-login.php +++ b/src/add-ons/super-forms-register-login/super-forms-register-login.php @@ -542,11 +542,11 @@ if( !class_exists('SUPER_Register_Login') ) : if( $return==true ) { $atts['name'] = 'activation_code'; $result = SUPER_Shortcodes::opening_tag( $tag, $atts ); $result .= SUPER_Shortcodes::opening_wrapper( $atts, $inner, $shortcodes, $settings ); $result .= '<input class="super-shortcode-field" type="text"'; - $result .= ' name="' . $atts['name'] . '" value="' . $code . '"'; + $result .= ' name="' . esc_attr($atts['name']) . '" value="' . esc_attr($code) . '"'; $result .= SUPER_Shortcodes::common_attributes( $atts, $tag ); $result .= ' />'; $result .= '</div>'; $result .= SUPER_Shortcodes::loop_conditions( $atts, $tag ); $result .= '</div>'; diff --git a/src/assets/css/frontend/elements.css b/src/assets/css/frontend/elements.css index 3409d664..c687af16 100644 --- a/src/assets/css/frontend/elements.css +++ b/src/assets/css/frontend/elements.css @@ -3463,14 +3463,18 @@ textarea.super-variable-conditions, textarea.super-conditional-logic, textarea.s display: flex; justify-content: center; align-items: center; pointer-events: none; z-index: 2; + overflow: initial; + margin: 0; } .super-form .super-adaptive-placeholder > span { margin-left: -5px; margin-top: -1px; + margin-top: 0; + margin-bottom: 0; padding: 0px 5px 0px 5px; line-height: normal; } .super-form .super-textarea .super-adaptive-placeholder { align-items: flex-start; diff --git a/src/assets/css/frontend/elements.css.map b/src/assets/css/frontend/elements.css.map index bb462535..4abee68b 100644 --- a/src/assets/css/frontend/elements.css.map +++ b/src/assets/css/frontend/elements.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["elements.sass"],"names":[],"mappings":";AAqFA;EACE;;;AAEF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAEA;AAAA;EAEE;;;AAEF;AAAA;EAEE;;AACF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAGJ;EACE;EACA;EACA;;;AAEA;EACE;;AACF;EACE;;AACF;EACE;;;AACJ;EACE;EACA;;;AAMM;AAAA;EACE;EACA;EACA;EACA;EACA;;;AAEV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA1IE,aANY;EAOZ,aAyJa;;;AAGb;EA7JA,aANY;EAOZ,aA6Je;;;AAEjB;EAhKE,aANY;EAOZ,aAgKa;;;AAEf;EACE;;;AAEF;EACE;EACA;EACA;;;AAGA;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;;;AAEJ;EAjLE,uBAkLY;EAjLZ,qBAiLY;EAhLZ,oBAgLY;EA/KZ,kBA+KY;EA9KZ,iBA8KY;EA7KZ,aA6KY;EA5KZ;;;AA+KA;EArLA,uBAsLc;EArLd,qBAqLc;EApLd,oBAoLc;EAnLd,kBAmLc;EAlLd,iBAkLc;EAjLd,aAiLc;EAhLd;;;AAkLF;AAAA;EAxLE,uBA0LY;EAzLZ,qBAyLY;EAxLZ,oBAwLY;EAvLZ,kBAuLY;EAtLZ,iBAsLY;EArLZ,aAqLY;EApLZ;;;AAsLF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACN;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAEJ;EACE;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;EACA;EACA;;;AAGF;EAEE;EACA;EACA;;AACF;EAEE;EACA;EACA;EACA;EACA;;AACF;EAEE;EACA;;AACF;EAEE;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACA;EACE;EACA;EACA;EACA;EA9QJ,oBA+Qe;EA9Qf,iBA8Qe;EA7Qf,gBA6Qe;EA5Qf,eA4Qe;EA3Qf,YA2Qe;;AACf;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAEN;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;EACA;EACA;EACA;EACA;EAuDA;;AAtDA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;;AAEE;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEN;EACE;;AAEF;EACE;;AAEA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;;AAIN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EAzdF,mBA0da;EAzdb,gBAyda;EAxdb,eAwda;EAvdb,cAuda;EAtdb,WAsda;;;AAEf;EACE;;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACA;EACE;;;AAEN;EACE;IAvfA,mBAwfa;IAvfb,gBAufa;IAtfb,eAsfa;IArfb,cAqfa;IApfb,WAofa;;EACb;IAzfA,mBA0fa;IAzfb,gBAyfa;IAxfb,eAwfa;IAvfb,cAufa;IAtfb,WAsfa;;;AAEf;EACE;IA7fA,mBA8fa;IA7fb,gBA6fa;IA5fb,eA4fa;IA3fb,cA2fa;IA1fb,WA0fa;;EACb;IA/fA,mBAggBa;IA/fb,gBA+fa;IA9fb,eA8fa;IA7fb,cA6fa;IA5fb,WA4fa;;;AAIX;EACE;;AACJ;EAlfA,iBAmfa;EAlfb,oBAkfa;EAjfb,YAifa;;AACb;EACE;EA5hBF;EACA;EACA;EACA;EACA;EA0hBE;;AACA;EACE;;AAGA;EACE;;AACA;EA/jBN,aANY;EAOZ,aA+jBqB;EACb;EAviBR;EACA;EACA;EACA;EACA;EAqiBQ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGN;EACE;;AACJ;EACE;;AAGE;EACE;;AACF;EACE;;AACF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;AAAA;AAAA;AAAA;AAAA;EAKE;;AACF;EACE;;;AAEJ;AACA;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AAEF;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;AAEA;EACE;;;AAGJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;;;AAEJ;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;;AACF;EACE;;;AAGF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;;AAEN;EACE;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EAjtBA;EACA;EACA;EACA;EACA;;;AAgtBF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AACF;EACE;;;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EA1sBF,iBA2sBa;EA1sBb,oBA0sBa;EAzsBb,YAysBa;EACX;EACA;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA3tBA,oBA4tBa;EA3tBb,iBA2tBa;EA1tBb,gBA0tBa;EAztBb,eAytBa;EAxtBb,YAwtBa;;AACb;AAAA;AAAA;AAAA;EA7tBA,oBA+tBa;EA9tBb,iBA8tBa;EA7tBb,gBA6tBa;EA5tBb,eA4tBa;EA3tBb,YA2tBa;EACX;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;;AAEA;EACE;;AACF;EACE;;;AAEN;AAAA;EAEE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;AAEE;EACE;;AAEF;EACE;EACA;EACA;;;AAIF;AAAA;AAAA;AAAA;EAEE;;;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;;AAEN;EACE;EACA;;AACA;EACE;EACA;;AACF;EACE;;;AAGF;AAAA;EA9yBA,uBAgzBgB;EA/yBhB,oBA+yBgB;EA9yBhB,eA8yBgB;EAhxBhB,iBAixBa;EAhxBb,oBAgxBa;EA/wBb,YA+wBa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EAEE;;;AAGF;EACE;;;AAEF;EACE;;;AAEJ;EACE;EACA;;;AAGA;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAIF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;;AACF;EACE;EA33BJ,uBA43BkB;EA33BlB,oBA23BkB;EA13BlB,eA03BkB;EACd;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EAp4BJ,uBAq4BkB;EAp4BlB,oBAo4BkB;EAn4BlB,eAm4BkB;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EA73BN,oBA83BiB;EA73BjB,iBA63BiB;EA53BjB,gBA43BiB;EA33BjB,eA23BiB;EA13BjB,YA03BiB;;AACb;EACE;EACA;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;;AAGF;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAIA;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AAEE;EACE;;AACF;EACE;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EA/hCN,aANY;EAOZ,aA+hCqB;EACb;EACA;;AACJ;EACE;;AACA;EACE;;AAKA;EACE;;AAIF;EACE;;AAGF;EACE;;AAGF;EACE;;;AAEZ;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AACF;EACE;;AACA;EACE;;;AACJ;EACE;EACA;;AACA;EACE;;AACF;EACE;EA9kCF,aANY;EAOZ,aA8kCe;;;AAEjB;EACE;EACA;;AAEE;EACE;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;;;AAGN;EACE;EACA;EACA;;AACA;EACE;EAvjCJ,oBAwjCe;EAvjCf,iBAujCe;EAtjCf,gBAsjCe;EArjCf,eAqjCe;EApjCf,YAojCe;EACX;EA5kCJ,uBA6kCkB;EA5kClB,oBA4kCkB;EA3kClB,eA2kCkB;;AAChB;EACE;EA5jCJ,oBA6jCe;EA5jCf,iBA4jCe;EA3jCf,gBA2jCe;EA1jCf,eA0jCe;EAzjCf,YAyjCe;EACX;;;AAEN;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAhkCA,iBAikCW;EAhkCX,oBAgkCW;EA/jCX,YA+jCW;;AACX;EACE;EAnmCF,uBAomCgB;EAnmChB,oBAmmCgB;EAlmChB,eAkmCgB;;AACd;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EA1nCJ,uBA2nCkB;EA1nClB,oBA0nCkB;EAznClB,eAynCkB;EACd;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAtqCJ,uBAuqCgB;EAtqChB,qBAsqCgB;EArqChB,oBAqqCgB;EApqChB,kBAoqCgB;EAnqChB,iBAmqCgB;EAlqChB,aAkqCgB;EAjqChB;;AAkqCE;EACE;;AACA;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAGE;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EAvrCR,uBAwrCsB;EAvrCtB,oBAurCsB;EAtrCtB,eAsrCsB;EAjtCtB,uBAktCoB;EAjtCpB,qBAitCoB;EAhtCpB,oBAgtCoB;EA/sCpB,kBA+sCoB;EA9sCpB,iBA8sCoB;EA7sCpB,aA6sCoB;EA5sCpB;;AA6sCQ;EACE;EACA;EACA;EACA;EACA;EAxtCV,uBAytCsB;EAxtCtB,qBAwtCsB;EAvtCtB,oBAutCsB;EAttCtB,kBAstCsB;EArtCtB,iBAqtCsB;EAptCtB,aAotCsB;EAntCtB;EAsCA,oBA8qCqB;EA7qCrB,iBA6qCqB;EA5qCrB,gBA4qCqB;EA3qCrB,eA2qCqB;EA1qCrB,YA0qCqB;;AAEX;EACE;EACA;EACA;;;AAIV;EACE;EACA;;AAEF;EACE;EACA;;;AAGF;EACE;EACA;;AAEF;EACE;EACA;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EACE;;;AAGJ;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;EACA;;;AAEN;EACE;IACE;;;AAEJ;EACE;;AACA;EACE;EACA;EACA;EACA;;;AACJ;EACE;EACA;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;;AAGA;EACE;EACA;EACA;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;;AAEF;EACE;;;AAKI;EACE;EACA;;AACF;EACE;EACA;;AACJ;EACE;;AACF;EACE;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAv1CR,uBAw1CsB;EAv1CtB,oBAu1CsB;EAt1CtB,eAs1CsB;EACd;EACA;EACA;;AACN;EAEE;EACA;EACA;;AACF;EACE;EACA;EACA;EA30CJ;EACA;EACA;EACA;EACA;EAy0CI;;AACJ;EACE;;;AAIA;EACE;;;AAIF;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;;;AAEJ;AAAA;AAAA;EAGE;;;AAEF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EA/6CJ,aANY;EAOZ,aA+6CmB;EACb;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;;;AAMF;EACE;EACA;EACA;EACA;EACA;;;AAKJ;EACE;;AACA;EACE;EACA;EACA;EACA;;AACR;EACE;EACA;;;AAEF;EACE;;AACA;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAEN;AAAA;EAEE;EA1gDF,aANY;EAOZ,aA0gDe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;;AAGJ;EACE;;AAEE;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AAEN;EACE;EACA;;;AAEA;EACE;;;AAEJ;EACE;EACA;EACA;EACA;;AACA;EACE;;AAEE;EA1jDJ,aANY;EAOZ,aA0jDmB;EACb;EACA;EACA;EACA;;;AAER;EA3hDE,6BA4hDoB;EA3hDpB,0BA2hDoB;EA1hDpB,yBA0hDoB;EAzhDpB,wBAyhDoB;EAxhDpB,qBAwhDoB;EArhDpB,mBAshDW;EArhDX,gBAqhDW;EAphDX,eAohDW;EAnhDX,cAmhDW;EAlhDX,WAkhDW;;;AACb;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EA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CA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAnuDF,uBAouDgB;EAnuDhB,oBAmuDgB;EAluDhB,eAkuDgB;EAjtDhB,oBAktDa;EAjtDb,iBAitDa;EAhtDb,gBAgtDa;EA/sDb,eA+sDa;EA9sDb,YA8sDa;;AACX;EAvwDF,aANY;EAOZ,aAuwDiB;EACb;EACA;EACA;EACA;EAlvDJ;EACA;EACA;EACA;EACA;;AAgvDE;EACE;EACA;EACA;EACA;;AACA;EAlwDJ,oBAmwDkB;EAlwDlB,iBAkwDkB;EAjwDlB,gBAiwDkB;EAhwDlB,eAgwDkB;EA/vDlB,YA+vDkB;EACZ;EACA;EACA;EACA;EACA;;AACN;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EArwDF,uBAswDgB;EArwDhB,oBAqwDgB;EApwDhB,eAowDgB;;AAChB;EACE;;AACF;EACE;EACA;EA5yDF,aANY;EAOZ,aA4yDe;EACb;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AAEF;EACE;EACA;;;AAIJ;EAGE;EACA;EACA;;AACA;EACI;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAOA;EACE;EACA;EACA;;AACA;EACE;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAQA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;AAAA;EAl4DF,uBAo4DkB;EAn4DlB,oBAm4DkB;EAl4DlB,eAk4DkB;;;AA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;EACE;;AACF;EACE;EACA;;;AAGJ;AAAA;EAEE;EACA;;AACF;EACE;EACA;;AACA;EACE;;;AAKF;AAAA;EACE;EACA;;AACF;AAAA;EACE;;;AAIJ;AAAA;EACE;EACA;;AACA;AAAA;EACE;;AACF;AAAA;EACE;EACA;EACA;EACA;;;AACR;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AACJ;EACI;;;AAEJ;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;EACA;EACA;;;AAEN;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;;AAGJ;EACE;;;AAIE;EACE;;AAGF;AAAA;EA93EF,oBA+3EgB;EA93EhB,iBA83EgB;EA73EhB,gBA63EgB;EA53EhB,eA43EgB;EA33EhB,YA23EgB;;;AAElB;EACE;EACA;EACA;EACA;;;AAGE;EAx4EF,oBAy4EgB;EAx4EhB,iBAw4EgB;EAv4EhB,gBAu4EgB;EAt4EhB,eAs4EgB;EAr4EhB,YAq4EgB;;;AAElB;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EAx6EF,oBAy6EgB;EAx6EhB,iBAw6EgB;EAv6EhB,gBAu6EgB;EAt6EhB,eAs6EgB;EAr6EhB,YAq6EgB;;;AAElB;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACJ;AAAA;EAEE;;;AAEJ;EACE;;AAEE;EACE;;AAEF;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACJ;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;;AAEN;AACA;EACE;;AAEE;EACE;;AACA;EACE;EACA;EACA;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AAER;AACE;AAKA;AAIA;AAGA;AAiIA;AA2KA;AAuBA;AAKA;AAOA;AASA;AASA;AAIA;AA4rBA;AAiBA;AAoRA;AAqRA;AAuIA;AAMA;AAMA;;AAzvDA;EACE;EACA;EACA;;AAGA;EACE;;AAEJ;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AACA;EACE;;AACN;EACE;EACA;EACA;;AACF;AAAA;AAAA;EAGE;EACA;EACA;;AACF;AAAA;EAEE;;AAEA;EACE;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGJ;AAAA;EACE;;AACA;AAAA;EACE;;AAEJ;EACE;;AAEA;EACE;;AAEF;EACE;;AAGF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAEN;EACE;;AAEE;EACE;;AACJ;EACI;;AAGJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AAGJ;EACE;EACA;;AAGN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EASE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;;AAEJ;AAAA;AAAA;EAGI;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;;AAGJ;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;;AAOA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;EACE;;AAGF;EACE;;AAEJ;EACE;;AAOM;EACE;EACA;EACA;EACA;;AAOA;EACE;;AAGd;EACE;EACA;EACA;;AACA;EACE;;AAEE;EACE;;AAEF;EACE;;AACJ;EACE;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AAGV;EACE;EACA;EACA;;AAEF;AAAA;EAEI;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGA;EACE;;AAOI;EAEE;;AAGV;EACE;;AAGF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;;AACF;EACE;;AAEN;EACE;;AACJ;EACE;;AAEA;EACE;;AACF;EACE;;AAEJ;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACA;EACE;;AAGF;AAAA;EACE;;AACF;AAAA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAIE;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAMF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAME;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAIF;EACE;;AAKF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKJ;EACE;;AACF;EACE;;AACN;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACA;EAEE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACJ;EACE;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;;AACF;AAAA;EAEE;;AAEA;EACE;;AACA;EACE;;AAEF;EACE;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;;AAGA;AAAA;EACE;EACA;;AAEF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AAKF;AAAA;AAAA;AAAA;EACG;;AAEH;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;AAGJ;AAAA;EACE;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACN;EACE;;AACF;EACE;;AAIE;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAIA;EACE;;AAMA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKA;EACE;;AAGJ;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;;AAKF;EACE;;AAKJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAKA;EACE;;AAIF;EACE;;AAEF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAMN;EACE;;AAKA;EACE;;AAGF;EACE;;AAKF;EACE;;AAGF;EACE;;AAGN;EACE;EACA;;AAGA;EACE;;AACA;EACE;;AAKF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAKJ;EACE;;AAGF;EACE;;AAIN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAIZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;EACA;;AACF;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;EACA;;AACJ;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AACF;EACE;;AAYA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAEJ;EACE;;AAEF;AAAA;EAEE;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;AAAA;AAAA;EAGE;;AAGJ;EACE;;AAEJ;EACE;;AACJ;AAAA;AAAA;EAGE;EACA;;AAEA;AAAA;AAAA;AAAA;EAIE;EACA;;AAEF;EACE;EACA;;AAKF;EACE;;AAKF;EACE;;AAKF;EACE;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAKF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAME;EACE;;AAGR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEF;EACE;;AACF;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAGN;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;;AAEF;AAAA;EAEE;;;AAIE;EACE;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;AACA;EACE;EACA;;;AAER;EACE;EACA;EA1kJF,aANY;EAOZ,aA0kJe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIE;EACE;;AAEF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAGV;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAIA;EACE;;;AAMJ;EACE;;AAGE;EACE;;AAOE;EACE;;AAGN;EACE;EACA;EACA;;AAKA;EACE;EACA;EACA;;AACV;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;;AACJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACA;EACE;;AACA;AAAA;EAEE;EACA;;AAOE;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAOR;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;;AAIhB;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;;AAGN;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AAIA;AAAA;EACE;;AACA;AAAA;EACE;;;AAIR;EACE;EACA;;AAGE;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;;AAGF;AAAA;EACE;;AAGA;EACE;;AACF;EACE;;AAKF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AAIE;AAAA;EACE;;AACA;AAAA;EACE;;AACR;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AAEA;EACE;;AACA;EACE;;AACN;AAAA;AAAA;AAAA;EAIE","file":"elements.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["elements.sass"],"names":[],"mappings":";AAqFA;EACE;;;AAEF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAEA;AAAA;EAEE;;;AAEF;AAAA;EAEE;;AACF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAGJ;EACE;EACA;EACA;;;AAEA;EACE;;AACF;EACE;;AACF;EACE;;;AACJ;EACE;EACA;;;AAMM;AAAA;EACE;EACA;EACA;EACA;EACA;;;AAEV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA1IE,aANY;EAOZ,aAyJa;;;AAGb;EA7JA,aANY;EAOZ,aA6Je;;;AAEjB;EAhKE,aANY;EAOZ,aAgKa;;;AAEf;EACE;;;AAEF;EACE;EACA;EACA;;;AAGA;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;;;AAEJ;EAjLE,uBAkLY;EAjLZ,qBAiLY;EAhLZ,oBAgLY;EA/KZ,kBA+KY;EA9KZ,iBA8KY;EA7KZ,aA6KY;EA5KZ;;;AA+KA;EArLA,uBAsLc;EArLd,qBAqLc;EApLd,oBAoLc;EAnLd,kBAmLc;EAlLd,iBAkLc;EAjLd,aAiLc;EAhLd;;;AAkLF;AAAA;EAxLE,uBA0LY;EAzLZ,qBAyLY;EAxLZ,oBAwLY;EAvLZ,kBAuLY;EAtLZ,iBAsLY;EArLZ,aAqLY;EApLZ;;;AAsLF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACN;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAEJ;EACE;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;EACA;EACA;;;AAGF;EAEE;EACA;EACA;;AACF;EAEE;EACA;EACA;EACA;EACA;;AACF;EAEE;EACA;;AACF;EAEE;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACA;EACE;EACA;EACA;EACA;EA9QJ,oBA+Qe;EA9Qf,iBA8Qe;EA7Qf,gBA6Qe;EA5Qf,eA4Qe;EA3Qf,YA2Qe;;AACf;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAEN;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;EACA;EACA;EACA;EACA;EAuDA;;AAtDA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;;AAEE;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEN;EACE;;AAEF;EACE;;AAEA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;;AAIN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EAzdF,mBA0da;EAzdb,gBAyda;EAxdb,eAwda;EAvdb,cAuda;EAtdb,WAsda;;;AAEf;EACE;;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACA;EACE;;;AAEN;EACE;IAvfA,mBAwfa;IAvfb,gBAufa;IAtfb,eAsfa;IArfb,cAqfa;IApfb,WAofa;;EACb;IAzfA,mBA0fa;IAzfb,gBAyfa;IAxfb,eAwfa;IAvfb,cAufa;IAtfb,WAsfa;;;AAEf;EACE;IA7fA,mBA8fa;IA7fb,gBA6fa;IA5fb,eA4fa;IA3fb,cA2fa;IA1fb,WA0fa;;EACb;IA/fA,mBAggBa;IA/fb,gBA+fa;IA9fb,eA8fa;IA7fb,cA6fa;IA5fb,WA4fa;;;AAIX;EACE;;AACJ;EAlfA,iBAmfa;EAlfb,oBAkfa;EAjfb,YAifa;;AACb;EACE;EA5hBF;EACA;EACA;EACA;EACA;EA0hBE;;AACA;EACE;;AAGA;EACE;;AACA;EA/jBN,aANY;EAOZ,aA+jBqB;EACb;EAviBR;EACA;EACA;EACA;EACA;EAqiBQ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGN;EACE;;AACJ;EACE;;AAGE;EACE;;AACF;EACE;;AACF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;AAAA;AAAA;AAAA;AAAA;EAKE;;AACF;EACE;;;AAEJ;AACA;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AAEF;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;AAEA;EACE;;;AAGJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;;;AAEJ;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;;AACF;EACE;;;AAGF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;;AAEN;EACE;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EAjtBA;EACA;EACA;EACA;EACA;;;AAgtBF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AACF;EACE;;;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EA1sBF,iBA2sBa;EA1sBb,oBA0sBa;EAzsBb,YAysBa;EACX;EACA;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA3tBA,oBA4tBa;EA3tBb,iBA2tBa;EA1tBb,gBA0tBa;EAztBb,eAytBa;EAxtBb,YAwtBa;;AACb;AAAA;AAAA;AAAA;EA7tBA,oBA+tBa;EA9tBb,iBA8tBa;EA7tBb,gBA6tBa;EA5tBb,eA4tBa;EA3tBb,YA2tBa;EACX;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;;AAEA;EACE;;AACF;EACE;;;AAEN;AAAA;EAEE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;AAEE;EACE;;AAEF;EACE;EACA;EACA;;;AAIF;AAAA;AAAA;AAAA;EAEE;;;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;;AAEN;EACE;EACA;;AACA;EACE;EACA;;AACF;EACE;;;AAGF;AAAA;EA9yBA,uBAgzBgB;EA/yBhB,oBA+yBgB;EA9yBhB,eA8yBgB;EAhxBhB,iBAixBa;EAhxBb,oBAgxBa;EA/wBb,YA+wBa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EAEE;;;AAGF;EACE;;;AAEF;EACE;;;AAEJ;EACE;EACA;;;AAGA;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAIF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;;AACF;EACE;EA33BJ,uBA43BkB;EA33BlB,oBA23BkB;EA13BlB,eA03BkB;EACd;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EAp4BJ,uBAq4BkB;EAp4BlB,oBAo4BkB;EAn4BlB,eAm4BkB;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EA73BN,oBA83BiB;EA73BjB,iBA63BiB;EA53BjB,gBA43BiB;EA33BjB,eA23BiB;EA13BjB,YA03BiB;;AACb;EACE;EACA;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;;AAGF;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAIA;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AAEE;EACE;;AACF;EACE;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EA/hCN,aANY;EAOZ,aA+hCqB;EACb;EACA;;AACJ;EACE;;AACA;EACE;;AAKA;EACE;;AAIF;EACE;;AAGF;EACE;;AAGF;EACE;;;AAEZ;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AACF;EACE;;AACA;EACE;;;AACJ;EACE;EACA;;AACA;EACE;;AACF;EACE;EA9kCF,aANY;EAOZ,aA8kCe;;;AAEjB;EACE;EACA;;AAEE;EACE;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;;;AAGN;EACE;EACA;EACA;;AACA;EACE;EAvjCJ,oBAwjCe;EAvjCf,iBAujCe;EAtjCf,gBAsjCe;EArjCf,eAqjCe;EApjCf,YAojCe;EACX;EA5kCJ,uBA6kCkB;EA5kClB,oBA4kCkB;EA3kClB,eA2kCkB;;AAChB;EACE;EA5jCJ,oBA6jCe;EA5jCf,iBA4jCe;EA3jCf,gBA2jCe;EA1jCf,eA0jCe;EAzjCf,YAyjCe;EACX;;;AAEN;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAhkCA,iBAikCW;EAhkCX,oBAgkCW;EA/jCX,YA+jCW;;AACX;EACE;EAnmCF,uBAomCgB;EAnmChB,oBAmmCgB;EAlmChB,eAkmCgB;;AACd;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EA1nCJ,uBA2nCkB;EA1nClB,oBA0nCkB;EAznClB,eAynCkB;EACd;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAtqCJ,uBAuqCgB;EAtqChB,qBAsqCgB;EArqChB,oBAqqCgB;EApqChB,kBAoqCgB;EAnqChB,iBAmqCgB;EAlqChB,aAkqCgB;EAjqChB;;AAkqCE;EACE;;AACA;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAGE;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EAvrCR,uBAwrCsB;EAvrCtB,oBAurCsB;EAtrCtB,eAsrCsB;EAjtCtB,uBAktCoB;EAjtCpB,qBAitCoB;EAhtCpB,oBAgtCoB;EA/sCpB,kBA+sCoB;EA9sCpB,iBA8sCoB;EA7sCpB,aA6sCoB;EA5sCpB;;AA6sCQ;EACE;EACA;EACA;EACA;EACA;EAxtCV,uBAytCsB;EAxtCtB,qBAwtCsB;EAvtCtB,oBAutCsB;EAttCtB,kBAstCsB;EArtCtB,iBAqtCsB;EAptCtB,aAotCsB;EAntCtB;EAsCA,oBA8qCqB;EA7qCrB,iBA6qCqB;EA5qCrB,gBA4qCqB;EA3qCrB,eA2qCqB;EA1qCrB,YA0qCqB;;AAEX;EACE;EACA;EACA;;;AAIV;EACE;EACA;;AAEF;EACE;EACA;;;AAGF;EACE;EACA;;AAEF;EACE;EACA;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EACE;;;AAGJ;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;EACA;;;AAEN;EACE;IACE;;;AAEJ;EACE;;AACA;EACE;EACA;EACA;EACA;;;AACJ;EACE;EACA;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;;AAGA;EACE;EACA;EACA;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;;AAEF;EACE;;;AAKI;EACE;EACA;;AACF;EACE;EACA;;AACJ;EACE;;AACF;EACE;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAv1CR,uBAw1CsB;EAv1CtB,oBAu1CsB;EAt1CtB,eAs1CsB;EACd;EACA;EACA;;AACN;EAEE;EACA;EACA;;AACF;EACE;EACA;EACA;EA30CJ;EACA;EACA;EACA;EACA;EAy0CI;;AACJ;EACE;;;AAIA;EACE;;;AAIF;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;;;AAEJ;AAAA;AAAA;EAGE;;;AAEF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EA/6CJ,aANY;EAOZ,aA+6CmB;EACb;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;;;AAMF;EACE;EACA;EACA;EACA;EACA;;;AAKJ;EACE;;AACA;EACE;EACA;EACA;EACA;;AACR;EACE;EACA;;;AAEF;EACE;;AACA;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAEN;AAAA;EAEE;EA1gDF,aANY;EAOZ,aA0gDe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;;AAGJ;EACE;;AAEE;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AAEN;EACE;EACA;;;AAEA;EACE;;;AAEJ;EACE;EACA;EACA;EACA;;AACA;EACE;;AAEE;EA1jDJ,aANY;EAOZ,aA0jDmB;EACb;EACA;EACA;EACA;;;AAER;EA3hDE,6BA4hDoB;EA3hDpB,0BA2hDoB;EA1hDpB,yBA0hDoB;EAzhDpB,wBAyhDoB;EAxhDpB,qBAwhDoB;EArhDpB,mBAshDW;EArhDX,gBAqhDW;EAphDX,eAohDW;EAnhDX,cAmhDW;EAlhDX,WAkhDW;;;AACb;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EA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CA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAnuDF,uBAouDgB;EAnuDhB,oBAmuDgB;EAluDhB,eAkuDgB;EAjtDhB,oBAktDa;EAjtDb,iBAitDa;EAhtDb,gBAgtDa;EA/sDb,eA+sDa;EA9sDb,YA8sDa;;AACX;EAvwDF,aANY;EAOZ,aAuwDiB;EACb;EACA;EACA;EACA;EAlvDJ;EACA;EACA;EACA;EACA;;AAgvDE;EACE;EACA;EACA;EACA;;AACA;EAlwDJ,oBAmwDkB;EAlwDlB,iBAkwDkB;EAjwDlB,gBAiwDkB;EAhwDlB,eAgwDkB;EA/vDlB,YA+vDkB;EACZ;EACA;EACA;EACA;EACA;;AACN;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EArwDF,uBAswDgB;EArwDhB,oBAqwDgB;EApwDhB,eAowDgB;;AAChB;EACE;;AACF;EACE;EACA;EA5yDF,aANY;EAOZ,aA4yDe;EACb;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AAEF;EACE;EACA;;;AAIJ;EAGE;EACA;EACA;;AACA;EACI;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAOA;EACE;EACA;EACA;;AACA;EACE;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAQA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;AAAA;EAl4DF,uBAo4DkB;EAn4DlB,oBAm4DkB;EAl4DlB,eAk4DkB;;;AA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;EACE;;AACF;EACE;EACA;;;AAGJ;AAAA;EAEE;EACA;;AACF;EACE;EACA;;AACA;EACE;;;AAKF;AAAA;EACE;EACA;;AACF;AAAA;EACE;;;AAIJ;AAAA;EACE;EACA;;AACA;AAAA;EACE;;AACF;AAAA;EACE;EACA;EACA;EACA;;;AACR;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AACJ;EACI;;;AAEJ;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;EACA;EACA;;;AAEN;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;;AAGJ;EACE;;;AAIE;EACE;;AAGF;AAAA;EA93EF,oBA+3EgB;EA93EhB,iBA83EgB;EA73EhB,gBA63EgB;EA53EhB,eA43EgB;EA33EhB,YA23EgB;;;AAElB;EACE;EACA;EACA;EACA;;;AAGE;EAx4EF,oBAy4EgB;EAx4EhB,iBAw4EgB;EAv4EhB,gBAu4EgB;EAt4EhB,eAs4EgB;EAr4EhB,YAq4EgB;;;AAElB;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EAx6EF,oBAy6EgB;EAx6EhB,iBAw6EgB;EAv6EhB,gBAu6EgB;EAt6EhB,eAs6EgB;EAr6EhB,YAq6EgB;;;AAElB;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACJ;AAAA;EAEE;;;AAEJ;EACE;;AAEE;EACE;;AAEF;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACJ;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;;AAEN;AACA;EACE;;AAEE;EACE;;AACA;EACE;EACA;EACA;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AAER;AACE;AAKA;AAIA;AAGA;AAqIA;AA2KA;AAuBA;AAKA;AAOA;AASA;AASA;AAIA;AA4rBA;AAiBA;AAoRA;AAqRA;AAuIA;AAMA;AAMA;;AA7vDA;EACE;EACA;EACA;;AAGA;EACE;;AAEJ;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AACA;EACE;;AACN;EACE;EACA;EACA;;AACF;AAAA;AAAA;EAGE;EACA;EACA;;AACF;AAAA;EAEE;;AAEA;EACE;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGJ;AAAA;EACE;;AACA;AAAA;EACE;;AAEJ;EACE;;AAEA;EACE;;AAEF;EACE;;AAGF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAEN;EACE;;AAEE;EACE;;AACJ;EACI;;AAGJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AAGJ;EACE;EACA;;AAGN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EASE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;;AAEJ;AAAA;AAAA;EAGI;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;;AAGJ;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;;AAOA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;EACE;;AAGF;EACE;;AAEJ;EACE;;AAOM;EACE;EACA;EACA;EACA;;AAOA;EACE;;AAGd;EACE;EACA;EACA;;AACA;EACE;;AAEE;EACE;;AAEF;EACE;;AACJ;EACE;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AAGV;EACE;EACA;EACA;;AAEF;AAAA;EAEI;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGA;EACE;;AAOI;EAEE;;AAGV;EACE;;AAGF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;;AACF;EACE;;AAEN;EACE;;AACJ;EACE;;AAEA;EACE;;AACF;EACE;;AAEJ;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACA;EACE;;AAGF;AAAA;EACE;;AACF;AAAA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAIE;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAMF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAME;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAIF;EACE;;AAKF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKJ;EACE;;AACF;EACE;;AACN;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACA;EAEE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACJ;EACE;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;;AACF;AAAA;EAEE;;AAEA;EACE;;AACA;EACE;;AAEF;EACE;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;;AAGA;AAAA;EACE;EACA;;AAEF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AAKF;AAAA;AAAA;AAAA;EACG;;AAEH;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;AAGJ;AAAA;EACE;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACN;EACE;;AACF;EACE;;AAIE;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAIA;EACE;;AAMA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKA;EACE;;AAGJ;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;;AAKF;EACE;;AAKJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAKA;EACE;;AAIF;EACE;;AAEF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAMN;EACE;;AAKA;EACE;;AAGF;EACE;;AAKF;EACE;;AAGF;EACE;;AAGN;EACE;EACA;;AAGA;EACE;;AACA;EACE;;AAKF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAKJ;EACE;;AAGF;EACE;;AAIN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAIZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;EACA;;AACF;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;EACA;;AACJ;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AACF;EACE;;AAYA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAEJ;EACE;;AAEF;AAAA;EAEE;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;AAAA;AAAA;EAGE;;AAGJ;EACE;;AAEJ;EACE;;AACJ;AAAA;AAAA;EAGE;EACA;;AAEA;AAAA;AAAA;AAAA;EAIE;EACA;;AAEF;EACE;EACA;;AAKF;EACE;;AAKF;EACE;;AAKF;EACE;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAKF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAME;EACE;;AAGR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEF;EACE;;AACF;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAGN;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;;AAEF;AAAA;EAEE;;;AAIE;EACE;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;AACA;EACE;EACA;;;AAER;EACE;EACA;EA9kJF,aANY;EAOZ,aA8kJe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIE;EACE;;AAEF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAGV;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAIA;EACE;;;AAMJ;EACE;;AAGE;EACE;;AAOE;EACE;;AAGN;EACE;EACA;EACA;;AAKA;EACE;EACA;EACA;;AACV;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;;AACJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACA;EACE;;AACA;AAAA;EAEE;EACA;;AAOE;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAOR;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;;AAIhB;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;;AAGN;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AAIA;AAAA;EACE;;AACA;AAAA;EACE;;;AAIR;EACE;EACA;;AAGE;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;;AAGF;AAAA;EACE;;AAGA;EACE;;AACF;EACE;;AAKF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AAIE;AAAA;EACE;;AACA;AAAA;EACE;;AACR;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AAEA;EACE;;AACA;EACE;;AACN;AAAA;AAAA;AAAA;EAIE","file":"elements.css"} \ No newline at end of file diff --git a/src/assets/css/frontend/elements.sass b/src/assets/css/frontend/elements.sass index 43598837..7672b984 100644 --- a/src/assets/css/frontend/elements.sass +++ b/src/assets/css/frontend/elements.sass @@ -2669,13 +2669,17 @@ textarea display: flex justify-content: center align-items: center pointer-events: none z-index: 2 + overflow: initial + margin: 0 > span margin-left: -5px margin-top: -1px + margin-top: 0 + margin-bottom: 0 padding: 0px 5px 0px 5px line-height: normal .super-textarea .super-adaptive-placeholder align-items: flex-start diff --git a/src/assets/js/common.js b/src/assets/js/common.js index 7ac48054..0bab21b4 100644 --- a/src/assets/js/common.js +++ b/src/assets/js/common.js @@ -180,13 +180,10 @@ function SUPERreCaptcha(){ args.data.super_hp = args.form.find('input[name="super_hp"]').val(); if(args.data.super_hp!==''){ return false; } - // @since 4.6.0 - Send ajax nonce - args.super_ajax_nonce = args.form.find('input[name="super_ajax_nonce"]').val(); - // @since 2.9.0 - json data POST json_data = JSON.stringify(args.data); args.form.find('textarea[name="json_data"]').val(json_data); if(typeof args.token === 'undefined'){ @@ -313,10 +310,11 @@ function SUPERreCaptcha(){ } args.formData.append('action', 'super_upload_files'); if(args.form_id) args.formData.append('form_id', args.form_id); if(args.entry_id) args.formData.append('entry_id', args.entry_id); if(args.list_id) args.formData.append('list_id', args.list_id); + if(args.sf_nonce) args.formData.append('sf_nonce', args.sf_nonce); $.ajax({ type: 'post', url: super_common_i18n.ajaxurl, data: args.formData, async: true, @@ -2855,11 +2853,10 @@ function SUPERreCaptcha(){ } node.parentNode.replaceChild(script, node); } }else{ // We do not want to display a thank you message, but might want to display a Download PDF button - if(args.generatePdf && args.pdfSettings.downloadBtn==='true'){ args.loadingOverlay.classList.add('super-success'); SUPER.show_pdf_download_btn(args); }else{ // Just close the overlay, no need to show download button and we do not have a message to display @@ -3391,10 +3388,11 @@ function SUPERreCaptcha(){ data: formData.data, form_id: formData.form_id, entry_id: formData.entry_id, list_id: formData.list_id, oldHtml: oldHtml, + sf_nonce: formData.sf_nonce }; args.callback = function(){ SUPER.complete_submit(args); }; SUPER.before_submit_hook(args); @@ -4136,13 +4134,18 @@ function SUPERreCaptcha(){ }; // When editing entry via Listings add-on if($form.find('input[name="hidden_list_id"]').length !== 0) { $list_id = $form.find('input[name="hidden_list_id"]').val(); - //SUPER.form_js[$form_id]._pdf.generate = 'false'; } - return {data:$data, form_id:$form_id, entry_id:$entry_id, list_id:$list_id}; + return { + data:$data, + form_id:$form_id, + entry_id:$entry_id, + list_id:$list_id, + sf_nonce: $form.find('input[name="sf_nonce"]').val() + }; }; // @since 1.3 SUPER.after_form_data_collected_hook = function(data){ var i, name, functions = super_common_i18n.dynamic_functions.after_form_data_collected_hook; @@ -8054,14 +8057,14 @@ function SUPERreCaptcha(){ SUPER.save_data = function(args){ if(args.progressBar) args.progressBar.style.width = 0+'%'; args.loadingOverlay.querySelector('.super-inner-text').innerHTML = '<span>'+super_common_i18n.loadingOverlay.processing+'</span>'; var formData = new FormData(); formData.append('action', 'super_submit_form'); - if(args.super_ajax_nonce) formData.append('super_ajax_nonce', args.super_ajax_nonce); if(args.form_id) formData.append('form_id', args.form_id); if(args.entry_id) formData.append('entry_id', args.entry_id); if(args.list_id) formData.append('list_id', args.list_id); + if(args.sf_nonce) formData.append('sf_nonce', args.sf_nonce); if(args.token) formData.append('token', args.token); if(args.version) formData.append('version', args.version); if(args.data) formData.append('data', JSON.stringify(args.data)); formData.append('i18n', args.form.data('i18n')); // @since 4.7.0 translation $.ajax({ @@ -8095,10 +8098,14 @@ function SUPERreCaptcha(){ result = JSON.parse(result); if(result.error===true){ // Display error message SUPER.form_submission_finished(args, result); }else{ + // Update new nonce + if(result.response_data && result.response_data.sf_nonce){ + $('input[name="sf_nonce"]').val(result.response_data.sf_nonce); + } // Clear form progression (if enabled) if( args.form[0].classList.contains('super-save-progress') ) { $.ajax({ url: super_common_i18n.ajaxurl, type: 'post', diff --git a/src/assets/js/frontend/elements.js b/src/assets/js/frontend/elements.js index ce385b4f..561b00ed 100644 --- a/src/assets/js/frontend/elements.js +++ b/src/assets/js/frontend/elements.js @@ -1272,11 +1272,11 @@ // Now replace {tags} inside conditional logic/variable logic // Update conditional logic names // Update validate condition names // Update variable condition names - var nodes = clone.querySelectorAll('.super-conditional-logic, .super-validate-conditions, .super-variable-conditions'); + nodes = clone.querySelectorAll('.super-conditional-logic, .super-validate-conditions, .super-variable-conditions'); for(i=0; i<nodes.length; ++i){ // Before we continue replace any foreach(file_upload_fieldname) var regex = /{([-_a-zA-Z0-9]{1,})(\[.*?\])?(_\d{1,})?(?:;([a-zA-Z0-9]{1,}))?}/g; var m; var conditions = nodes[i].value; @@ -1307,11 +1307,11 @@ suffix.push('['+currentParentIndex+']'); }); if(childParentIndex!==0){ delete suffix[0]; } - var levels = suffix.reverse().join(''); + levels = suffix.reverse().join(''); if(childParentIndex!==0){ replaceTagsWithValue[$o] = '{'+$n+levels+'_'+(childParentIndex+1)+$s+'}'; continue; } replaceTagsWithValue[$o] = '{'+$n+levels+$c+$s+'}'; @@ -2665,56 +2665,86 @@ if(input) input.value = values; } // Switch to different language when clicked if(field.closest('.super-i18n-switcher')){ - var $this = $(this), - $form = $this.closest('.super-form'), - $form_id = $form.find('input[name="hidden_form_id"]').val(), - $i18n = $this.attr('data-value'); - - $this.parent().children('.super-item').removeClass('super-active'); - $this.addClass('super-active'); - // Also move to placeholder - $this.parents('.super-dropdown').children('.super-dropdown-placeholder').html($this.html()); - + // Generate new nonce + var $this = $(this), $form = $this.closest('.super-form'); // Remove initialized class - $form.find('form').html(''); + $form.find('.super-button').remove(); $form.removeClass('super-initialized'); - - // Get URL parameters - var $queryString = window.location.search; - var $parameters = SUPER.getAllUrlParams($queryString); - $.ajax({ - url: super_elements_i18n.ajaxurl, - type: 'post', - data: { - action: 'super_language_switcher', - form_id: $form_id, - i18n: $i18n, - parameters: $parameters + $.ajax({ + url: super_elements_i18n.ajaxurl, + type: 'post', + data: { + action: 'super_create_nonce' }, - success: function (result) { - var data = JSON.parse(result); - if(data.rtl==true){ - $form.addClass('super-rtl'); - }else{ - $form.removeClass('super-rtl'); - } - $form.find('form').html(data.html); - $form.data('i18n', $i18n); + success: function (nonce) { + $form.find('input[name="sf_nonce"]').val(nonce); }, complete: function(){ - $form.removeClass('super-initialized'); - $form.removeClass('super-rendered'); - $form.find('.super-multipart-progress').remove(); - $form.find('.super-multipart-steps').remove(); + var $form_id = $form.find('input[name="hidden_form_id"]').val(), + $sf_nonce = $form.find('input[name="sf_nonce"]').val(), + $i18n = $this.attr('data-value'); + + $this.parent().children('.super-item').removeClass('super-active'); + $this.addClass('super-active'); + // Also move to placeholder + $this.parents('.super-dropdown').children('.super-dropdown-placeholder').html($this.html()); + + // Get URL parameters + var $queryString = window.location.search; + var $parameters = SUPER.getAllUrlParams($queryString); + $.ajax({ + url: super_elements_i18n.ajaxurl, + type: 'post', + data: { + action: 'super_language_switcher', + form_id: $form_id, + i18n: $i18n, + parameters: $parameters, + sf_nonce: $sf_nonce, + }, + success: function (result) { + var data = JSON.parse(result); + if(data.error && data.error===true){ + var i, nodes = document.querySelectorAll('.super-msg'); + for (i = 0; i < nodes.length; i++) { + nodes[i].remove(); + } + var $html = '<div class="super-msg super-error">'; + $html += data.msg; + $html += '<span class="super-close"></span>'; + $html += '</div>'; + $($html).prependTo($form); + }else{ + if(data.rtl==true){ + $form.addClass('super-rtl'); + }else{ + $form.removeClass('super-rtl'); + } + $form.find('form').html(data.html); + $form.data('i18n', $i18n); + } + }, + complete: function(){ + $form.removeClass('super-initialized'); + $form.removeClass('super-rendered'); + $form.find('.super-multipart-progress').remove(); + $form.find('.super-multipart-steps').remove(); + }, + error: function (xhr, ajaxOptions, thrownError) { + // eslint-disable-next-line no-console + console.log(xhr, ajaxOptions, thrownError); + alert(super_elements_i18n.failed_to_process_data); + } + }); }, error: function (xhr, ajaxOptions, thrownError) { // eslint-disable-next-line no-console console.log(xhr, ajaxOptions, thrownError); - alert(super_elements_i18n.failed_to_process_data); + alert('Failed to generate nonce!'); } }); return true; } diff --git a/src/docs/changelog.md b/src/docs/changelog.md index f4c54abf..1034e95f 100644 --- a/src/docs/changelog.md +++ b/src/docs/changelog.md @@ -6,10 +6,17 @@ ## PDF Generator Add-on now available! More info here: - [PDF Generator Add-on](https://renstillmann.github.io/super-forms/#/pdf-generator-add-on) +## Jan 26, 2022 - Version 6.0.4 + +- **Fix:** When `editing` is enabled for a `Listings` (Listings Add-on) make sure the styles/scripts are loaded so that normal form functions and styles are applied +- **Fix:** Validate requests made to switch form language by using a custom nonce system +- **Fix:** PHP parse error when loading a php file used for PHP versions below v8 + + ## Jan 24, 2022 - Version 6.0.3 - **Fix:** Option `Delete files from server after the form was submitted` wasn't working properly when storing files outside site root (secure file uploads) - **Fix:** Back-end preview not generating the PDF due to fonts not being enqueued - **Fix:** Issue with files not being attached to E-mails when upload directory was setup to be outside the site root (secure file uploads) diff --git a/src/includes/class-ajax.php b/src/includes/class-ajax.php index 7721c965..a1ebdd94 100644 --- a/src/includes/class-ajax.php +++ b/src/includes/class-ajax.php @@ -40,12 +40,13 @@ class SUPER_Ajax { 'save_form' => false, 'delete_form' => false, 'load_preview' => false, 'switch_language' => false, // @since 4.7.0 - 'upload_files' => true, - 'submit_form' => true, + 'create_nonce' => true, + 'upload_files' => true, + 'submit_form' => true, 'language_switcher' => true, // @since 4.7.0 'load_default_settings' => false, 'import_global_settings' => false, 'export_entries' => false, // @since 1.1.9 @@ -110,11 +111,14 @@ class SUPER_Ajax { if ( $nopriv ) { add_action( 'wp_ajax_nopriv_super_' . $ajax_event, array( __CLASS__, $ajax_event ) ); } } } - + public static function create_nonce(){ + echo SUPER_Common::generate_nonce(); + die(); + } public static function listings_view_entry(){ require_once( SUPER_PLUGIN_DIR . '/includes/class-common.php' ); require_once( SUPER_PLUGIN_DIR . '/includes/extensions/listings/form-blank-page-template.php' ); die(); } @@ -356,22 +360,42 @@ class SUPER_Ajax { * @since 4.7.0 */ public static function language_switcher() { $atts = array( 'id' => absint($_POST['form_id']), - 'i18n' => sanitize_text_field($_POST['i18n']), - 'parameters' => $_POST['parameters'] + 'i18n' => (isset($_POST['i18n']) ? sanitize_text_field($_POST['i18n']) : ''), + 'parameters' => (isset($_POST['parameters']) ? $_POST['parameters'] : array()), ); + // Check if languages are used + $verified = true; + $settings = SUPER_Common::get_form_settings($atts['id']); + if(empty($settings['i18n_switch'])) $settings['i18n_switch'] = 'false'; + if($settings['i18n_switch']!=='true'){ + // No need to do this, return message + $verified = false; + } + $translations = SUPER_Common::get_form_translations($atts['id']); + if( (!is_array($translations)) || ((is_array($translations)) && (count($translations)<2)) ) { + // No need to do this, return message + $verified = false; + } + $csrfValidation = SUPER_Common::verifyCSRF(); + if(!$csrfValidation){ + $verified = false; + } + if($verified===false){ + SUPER_Common::output_message( + $error = true, + esc_html__( 'Unable to switch language, session expired!', 'super-forms' ) + ); + } // @since 4.7.0 - translation RTL // check if the translation has enable RTL mode $rtl = false; - $translations = SUPER_Common::get_form_translations($atts['id']); - if(is_array($translations)){ - if( !empty($translations[$atts['i18n']]) && !empty($translations[$atts['i18n']]['rtl']) ){ - if($translations[$atts['i18n']]['rtl']=='true'){ - $rtl = true; - } + if(!empty($translations[$atts['i18n']]) && !empty($translations[$atts['i18n']]['rtl'])){ + if($translations[$atts['i18n']]['rtl']=='true'){ + $rtl = true; } } // This will grab only the elements of the form. We can then return it and add it inside the <form> tag $data = array( 'html' => SUPER_Shortcodes::super_form_func( $atts, true ), @@ -2406,20 +2430,10 @@ class SUPER_Ajax { // Before we continue we might want to manipulate the form settings $entry_id = (isset($_POST['entry_id']) ? absint($_POST['entry_id']) : ''); $list_id = (isset($_POST['list_id']) ? absint($_POST['list_id']) : ''); $settings = apply_filters( 'super_before_submit_form_settings_filter', $settings, array( 'data'=>$data, 'post'=>$_POST, 'entry_id'=>$entry_id, 'list_id'=>$list_id ) ); - // Temporarily deprecated till found a solution with caching plugins - // // @since 4.6.0 - Check if ajax request is valid based on nonce field - // if ( !wp_verify_nonce( $_POST['super_ajax_nonce'], 'super_submit_' . $form_id ) ) { - // SUPER_Common::output_message( - // $error = true, - // esc_html__( 'Failed to verify nonce! You either do not have permission to submit this form or caching is enabled. If caching is enabled make sure to exclude this page from being cached.', 'super-forms' ) - // ); - // } - // check_ajax_referer( 'super_submit_' . $form_id, 'super_ajax_nonce' ); - // @since 4.6.0 - verify reCAPTCHA token if(!empty($_POST['version'])){ $version = sanitize_text_field( $_POST['version'] ); $secret = $settings['form_recaptcha_secret']; if($version==='v3'){ @@ -2645,10 +2659,17 @@ class SUPER_Ajax { } echo json_encode($data); die(); } public static function submit_form( $settings=null ) { + $csrfValidation = SUPER_Common::verifyCSRF(); + if(!$csrfValidation){ + SUPER_Common::output_message( + $error = true, + esc_html__( 'Unable to submit form, session expired!', 'super-forms' ) + ); + } $atts = self::submit_form_checks($settings); $data = $atts['data']; $form_id = $atts['form_id']; $entry_id = $atts['entry_id']; $list_id = $atts['list_id']; @@ -3446,10 +3467,13 @@ class SUPER_Ajax { * * @since 4.3.0 */ $redirect = apply_filters( 'super_redirect_url_filter', $redirect, array( 'data'=>$data, 'settings'=>$settings ) ); + // Destroy nonce, and generate new one for next form + SUPER_Forms()->session->set( 'sf_nonce', false ); + $response_data['sf_nonce'] = SUPER_Common::generate_nonce(); SUPER_Common::output_message( $error=false, $msg = $msg, $redirect = $redirect, $fields=array(), diff --git a/src/includes/class-common.php b/src/includes/class-common.php index 5b83aea5..47397e06 100644 --- a/src/includes/class-common.php +++ b/src/includes/class-common.php @@ -17,10 +17,28 @@ if( !class_exists( 'SUPER_Common' ) ) : /** * SUPER_Common */ class SUPER_Common { + + public static function generate_nonce(){ + $sf_nonce = SUPER_Forms()->session->get( 'sf_nonce' ); + if( $sf_nonce===false ) { + $sf_nonce = md5(uniqid(mt_rand(), true)) . md5(uniqid(mt_rand(), true)) . md5(uniqid(mt_rand(), true)); + SUPER_Forms()->session->set( 'sf_nonce', $sf_nonce ); + } + return $sf_nonce; + } + + public static function verifyCSRF(){ + $sf_nonce = SUPER_Forms()->session->get( 'sf_nonce' ); + $v = filter_input(INPUT_POST, 'sf_nonce', FILTER_SANITIZE_STRING); + if(!$v || $v !== $sf_nonce){ + return false; // invalid + } + return true; // valid + } // @since 4.7.7 - US states (currently used by dropdown element only) public static function us_states(){ return array( 'Alabama'=>'AL', 'Alaska'=>'AK', 'Arizona'=>'AZ', 'Arkansas'=>'AR', 'California'=>'CA', 'Colorado'=>'CO', 'Connecticut'=>'CT', 'Delaware'=>'DE', 'District of Columbia'=>'DC', 'Florida'=>'FL', 'Georgia'=>'GA', 'Hawaii'=>'HI', 'Idaho'=>'ID', 'Illinois'=>'IL', 'Indiana'=>'IN', 'Iowa'=>'IA', 'Kansas'=>'KS', 'Kentucky'=>'KY', 'Louisiana'=>'LA', 'Maine'=>'ME', 'Maryland'=>'MD', 'Massachusetts'=>'MA', 'Michigan'=>'MI', 'Minnesota'=>'MN', 'Mississippi'=>'MS', 'Missouri'=>'MO', 'Montana'=>'MT', 'Nebraska'=>'NE', 'Nevada'=>'NV', 'New Hampshire'=>'NH', 'New Jersey'=>'NJ', 'New Mexico'=>'NM', 'New York'=>'NY', 'North Carolina'=>'NC', 'North Dakota'=>'ND', 'Ohio'=>'OH', 'Oklahoma'=>'OK', 'Oregon'=>'OR', 'Pennsylvania'=>'PA', 'Rhode Island'=>'RI', 'South Carolina'=>'SC', 'South Dakota'=>'SD', 'Tennessee'=>'TN', 'Texas'=>'TX', 'Utah'=>'UT', 'Vermont'=>'VT', 'Virginia'=>'VA', 'Washington'=>'WA', 'West Virginia'=>'WV', 'Wisconsin'=>'WI', 'Wyoming'=>'WY'); } diff --git a/src/includes/class-shortcodes.php b/src/includes/class-shortcodes.php index b951268a..f862aa91 100644 --- a/src/includes/class-shortcodes.php +++ b/src/includes/class-shortcodes.php @@ -5945,11 +5945,11 @@ class SUPER_Shortcodes { // @since 4.7.0 - translation langauge switcher if(empty($settings['i18n_switch'])) $settings['i18n_switch'] = 'false'; if($settings['i18n_switch']=='true'){ $translations = SUPER_Common::get_form_translations($form_id); - if(!empty($translations) && is_array($translations)){ + if(!empty($translations) && is_array($translations) && count($translations)>1 ){ wp_enqueue_style( 'super-flags', SUPER_PLUGIN_FILE . 'assets/css/frontend/flags.css', array(), SUPER_VERSION ); $default_language = current($translations); // Set default language to current language if not empty if(!empty($i18n)) $default_language = $translations[$i18n]; @@ -6146,13 +6146,12 @@ class SUPER_Shortcodes { $result .= '</div>'; } } // @since 4.6.0 - add nonce field - $super_ajax_nonce = wp_create_nonce( 'super_submit_' . $form_id ); - $result .= '<input type="hidden" name="super_ajax_nonce" value="' . esc_attr($super_ajax_nonce) . '" />'; - + $result .= '<input type="hidden" name="sf_nonce" value="' . SUPER_Common::generate_nonce() . '" />'; + // @since 3.2.0 - add honeypot captcha $result .= '<input type="text" name="super_hp" size="25" value="" />'; // @since 3.1.0 - filter to add any HTML before the first form element $result = apply_filters( 'super_form_before_first_form_element_filter', $result, array( 'id'=>$form_id, 'settings'=>$settings ) ); diff --git a/src/includes/extensions/listings/listings.php b/src/includes/extensions/listings/listings.php index cba33de2..70d8506a 100644 --- a/src/includes/extensions/listings/listings.php +++ b/src/includes/extensions/listings/listings.php @@ -1411,10 +1411,14 @@ if(!class_exists('SUPER_Listings')) : if($found===false){ // Form does not exists return '<strong>'.esc_html__('Error', 'super-forms' ).':</strong> '.sprintf(esc_html__('Super Forms could not find a listing with Form ID: %d', 'super-forms' ), $form_id); } $settings = SUPER_Common::get_form_settings($form_id); + + // Load styles and scripts + SUPER_Forms()->enqueue_element_styles(); + SUPER_Forms()->enqueue_element_scripts($settings, false, $form_id); // Enqueue scripts and styles $handle = 'super-common'; $name = str_replace( '-', '_', $handle ) . '_i18n'; wp_register_script( $handle, SUPER_PLUGIN_FILE . 'assets/js/common.js', array( 'jquery' ), SUPER_VERSION, false ); @@ -2397,10 +2401,16 @@ END AS paypalSubscriptionId $result .= '<option ' . ($limit==300 ? 'selected="selected" ' : '') . 'value="300">300</option>'; $result .= '</select>'; $result .= '</div>'; } $result .= '</div>'; + + $css = require( SUPER_PLUGIN_DIR . '/assets/css/frontend/themes/style-default.php' ); + $css .= require( SUPER_PLUGIN_DIR . '/assets/css/frontend/themes/fonts.php' ); + $css .= require( SUPER_PLUGIN_DIR . '/assets/css/frontend/themes/colors.php' ); + if( $css!='' ) $result .= '<style type="text/css">' . $css . '</style>'; + return $result; } public static function get_action_permissions($atts){ global $current_user; $list = $atts['list']; diff --git a/src/includes/sessions/class-recursive-arrayaccess.php b/src/includes/sessions/class-recursive-arrayaccess.php index 7bde4c9c..c2a96b3d 100644 --- a/src/includes/sessions/class-recursive-arrayaccess.php +++ b/src/includes/sessions/class-recursive-arrayaccess.php @@ -133,15 +133,15 @@ class Recursive_ArrayAccess implements ArrayAccess, Iterator, Countable { public function offsetUnset( $offset ){ unset( $this->container[ $offset ] ); $this->dirty = true; } + + - - /*****************************************************************/ /* Iterator Implementation */ /*****************************************************************/ /** @@ -164,30 +164,29 @@ class Recursive_ArrayAccess implements ArrayAccess, Iterator, Countable { */ public function key() { return key( $this->container ); } - /** * Move the internal point of the container array to the next item * * @link http://php.net/manual/en/iterator.next.php * * @return void */ - public function next(): void { + public function next() { next( $this->container ); } /** * Rewind the internal point of the container array. * * @link http://php.net/manual/en/iterator.rewind.php * * @return void */ - public function rewind(): void { + public function rewind() { reset( $this->container ); } /** * Is the current key valid? @@ -198,11 +197,11 @@ class Recursive_ArrayAccess implements ArrayAccess, Iterator, Countable { */ public function valid() { return $this->offsetExists( $this->key() ); } - + /*****************************************************************/ /* Countable Implementation */ /*****************************************************************/ /** @@ -210,9 +209,9 @@ class Recursive_ArrayAccess implements ArrayAccess, Iterator, Countable { * * @link http://php.net/manual/en/countable.count.php * * @return int */ - public function count(): int { + public function count() { return count( $this->container ); } -} +} \ No newline at end of file diff --git a/src/super-forms.php b/src/super-forms.php index 073c0b2b..0d842b92 100644 --- a/src/super-forms.php +++ b/src/super-forms.php @@ -9,11 +9,11 @@ * @license GPL-2.0-or-later * * @wordpress-plugin * Plugin Name: Super Forms - Drag & Drop Form Builder * Description: The most advanced, flexible and easy to use form builder for WordPress! - * Version: 6.0.3 + * Version: 6.0.4 * Plugin URI: http://f4d.nl/super-forms * Author URI: http://f4d.nl/super-forms * Author: feeling4design * Text Domain: super-forms * Domain Path: /i18n/languages/ @@ -41,11 +41,11 @@ if(!class_exists('SUPER_Forms')) : /** * @var string * * @since 1.0.0 */ - public $version = '6.0.3'; + public $version = '6.0.4'; public $slug = 'super-forms'; public $apiUrl = 'https://api.super-forms.com/'; public $apiVersion = 'v1'; /**
$result .= ' name="' . $atts['name'] . '" value="' . $code . '"'; {"version":3,"sourceRoot":"","sources":["elements.sass"],"names":[],"mappings":";AAqFA;EACE;;;AAEF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAEA;AAAA;EAEE;;;AAEF;AAAA;EAEE;;AACF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAGJ;EACE;EACA;EACA;;;AAEA;EACE;;AACF;EACE;;AACF;EACE;;;AACJ;EACE;EACA;;;AAMM;AAAA;EACE;EACA;EACA;EACA;EACA;;;AAEV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA1IE,aANY;EAOZ,aAyJa;;;AAGb;EA7JA,aANY;EAOZ,aA6Je;;;AAEjB;EAhKE,aANY;EAOZ,aAgKa;;;AAEf;EACE;;;AAEF;EACE;EACA;EACA;;;AAGA;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;;;AAEJ;EAjLE,uBAkLY;EAjLZ,qBAiLY;EAhLZ,oBAgLY;EA/KZ,kBA+KY;EA9KZ,iBA8KY;EA7KZ,aA6KY;EA5KZ;;;AA+KA;EArLA,uBAsLc;EArLd,qBAqLc;EApLd,oBAoLc;EAnLd,kBAmLc;EAlLd,iBAkLc;EAjLd,aAiLc;EAhLd;;;AAkLF;AAAA;EAxLE,uBA0LY;EAzLZ,qBAyLY;EAxLZ,oBAwLY;EAvLZ,kBAuLY;EAtLZ,iBAsLY;EArLZ,aAqLY;EApLZ;;;AAsLF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACN;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAEJ;EACE;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;EACA;EACA;;;AAGF;EAEE;EACA;EACA;;AACF;EAEE;EACA;EACA;EACA;EACA;;AACF;EAEE;EACA;;AACF;EAEE;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACA;EACE;EACA;EACA;EACA;EA9QJ,oBA+Qe;EA9Qf,iBA8Qe;EA7Qf,gBA6Qe;EA5Qf,eA4Qe;EA3Qf,YA2Qe;;AACf;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAEN;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;EACA;EACA;EACA;EACA;EAuDA;;AAtDA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;;AAEE;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEN;EACE;;AAEF;EACE;;AAEA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;;AAIN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EAzdF,mBA0da;EAzdb,gBAyda;EAxdb,eAwda;EAvdb,cAuda;EAtdb,WAsda;;;AAEf;EACE;;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACA;EACE;;;AAEN;EACE;IAvfA,mBAwfa;IAvfb,gBAufa;IAtfb,eAsfa;IArfb,cAqfa;IApfb,WAofa;;EACb;IAzfA,mBA0fa;IAzfb,gBAyfa;IAxfb,eAwfa;IAvfb,cAufa;IAtfb,WAsfa;;;AAEf;EACE;IA7fA,mBA8fa;IA7fb,gBA6fa;IA5fb,eA4fa;IA3fb,cA2fa;IA1fb,WA0fa;;EACb;IA/fA,mBAggBa;IA/fb,gBA+fa;IA9fb,eA8fa;IA7fb,cA6fa;IA5fb,WA4fa;;;AAIX;EACE;;AACJ;EAlfA,iBAmfa;EAlfb,oBAkfa;EAjfb,YAifa;;AACb;EACE;EA5hBF;EACA;EACA;EACA;EACA;EA0hBE;;AACA;EACE;;AAGA;EACE;;AACA;EA/jBN,aANY;EAOZ,aA+jBqB;EACb;EAviBR;EACA;EACA;EACA;EACA;EAqiBQ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGN;EACE;;AACJ;EACE;;AAGE;EACE;;AACF;EACE;;AACF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;AAAA;AAAA;AAAA;AAAA;EAKE;;AACF;EACE;;;AAEJ;AACA;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AAEF;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;AAEA;EACE;;;AAGJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;;;AAEJ;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;;AACF;EACE;;;AAGF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;;AAEN;EACE;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EAjtBA;EACA;EACA;EACA;EACA;;;AAgtBF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AACF;EACE;;;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EA1sBF,iBA2sBa;EA1sBb,oBA0sBa;EAzsBb,YAysBa;EACX;EACA;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA3tBA,oBA4tBa;EA3tBb,iBA2tBa;EA1tBb,gBA0tBa;EAztBb,eAytBa;EAxtBb,YAwtBa;;AACb;AAAA;AAAA;AAAA;EA7tBA,oBA+tBa;EA9tBb,iBA8tBa;EA7tBb,gBA6tBa;EA5tBb,eA4tBa;EA3tBb,YA2tBa;EACX;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;;AAEA;EACE;;AACF;EACE;;;AAEN;AAAA;EAEE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;AAEE;EACE;;AAEF;EACE;EACA;EACA;;;AAIF;AAAA;AAAA;AAAA;EAEE;;;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;;AAEN;EACE;EACA;;AACA;EACE;EACA;;AACF;EACE;;;AAGF;AAAA;EA9yBA,uBAgzBgB;EA/yBhB,oBA+yBgB;EA9yBhB,eA8yBgB;EAhxBhB,iBAixBa;EAhxBb,oBAgxBa;EA/wBb,YA+wBa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EAEE;;;AAGF;EACE;;;AAEF;EACE;;;AAEJ;EACE;EACA;;;AAGA;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAIF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;;AACF;EACE;EA33BJ,uBA43BkB;EA33BlB,oBA23BkB;EA13BlB,eA03BkB;EACd;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EAp4BJ,uBAq4BkB;EAp4BlB,oBAo4BkB;EAn4BlB,eAm4BkB;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EA73BN,oBA83BiB;EA73BjB,iBA63BiB;EA53BjB,gBA43BiB;EA33BjB,eA23BiB;EA13BjB,YA03BiB;;AACb;EACE;EACA;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;;AAGF;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAIA;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AAEE;EACE;;AACF;EACE;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EA/hCN,aANY;EAOZ,aA+hCqB;EACb;EACA;;AACJ;EACE;;AACA;EACE;;AAKA;EACE;;AAIF;EACE;;AAGF;EACE;;AAGF;EACE;;;AAEZ;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AACF;EACE;;AACA;EACE;;;AACJ;EACE;EACA;;AACA;EACE;;AACF;EACE;EA9kCF,aANY;EAOZ,aA8kCe;;;AAEjB;EACE;EACA;;AAEE;EACE;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;;;AAGN;EACE;EACA;EACA;;AACA;EACE;EAvjCJ,oBAwjCe;EAvjCf,iBAujCe;EAtjCf,gBAsjCe;EArjCf,eAqjCe;EApjCf,YAojCe;EACX;EA5kCJ,uBA6kCkB;EA5kClB,oBA4kCkB;EA3kClB,eA2kCkB;;AAChB;EACE;EA5jCJ,oBA6jCe;EA5jCf,iBA4jCe;EA3jCf,gBA2jCe;EA1jCf,eA0jCe;EAzjCf,YAyjCe;EACX;;;AAEN;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAhkCA,iBAikCW;EAhkCX,oBAgkCW;EA/jCX,YA+jCW;;AACX;EACE;EAnmCF,uBAomCgB;EAnmChB,oBAmmCgB;EAlmChB,eAkmCgB;;AACd;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EA1nCJ,uBA2nCkB;EA1nClB,oBA0nCkB;EAznClB,eAynCkB;EACd;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAtqCJ,uBAuqCgB;EAtqChB,qBAsqCgB;EArqChB,oBAqqCgB;EApqChB,kBAoqCgB;EAnqChB,iBAmqCgB;EAlqChB,aAkqCgB;EAjqChB;;AAkqCE;EACE;;AACA;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAGE;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EAvrCR,uBAwrCsB;EAvrCtB,oBAurCsB;EAtrCtB,eAsrCsB;EAjtCtB,uBAktCoB;EAjtCpB,qBAitCoB;EAhtCpB,oBAgtCoB;EA/sCpB,kBA+sCoB;EA9sCpB,iBA8sCoB;EA7sCpB,aA6sCoB;EA5sCpB;;AA6sCQ;EACE;EACA;EACA;EACA;EACA;EAxtCV,uBAytCsB;EAxtCtB,qBAwtCsB;EAvtCtB,oBAutCsB;EAttCtB,kBAstCsB;EArtCtB,iBAqtCsB;EAptCtB,aAotCsB;EAntCtB;EAsCA,oBA8qCqB;EA7qCrB,iBA6qCqB;EA5qCrB,gBA4qCqB;EA3qCrB,eA2qCqB;EA1qCrB,YA0qCqB;;AAEX;EACE;EACA;EACA;;;AAIV;EACE;EACA;;AAEF;EACE;EACA;;;AAGF;EACE;EACA;;AAEF;EACE;EACA;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EACE;;;AAGJ;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;EACA;;;AAEN;EACE;IACE;;;AAEJ;EACE;;AACA;EACE;EACA;EACA;EACA;;;AACJ;EACE;EACA;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;;AAGA;EACE;EACA;EACA;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;;AAEF;EACE;;;AAKI;EACE;EACA;;AACF;EACE;EACA;;AACJ;EACE;;AACF;EACE;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAv1CR,uBAw1CsB;EAv1CtB,oBAu1CsB;EAt1CtB,eAs1CsB;EACd;EACA;EACA;;AACN;EAEE;EACA;EACA;;AACF;EACE;EACA;EACA;EA30CJ;EACA;EACA;EACA;EACA;EAy0CI;;AACJ;EACE;;;AAIA;EACE;;;AAIF;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;;;AAEJ;AAAA;AAAA;EAGE;;;AAEF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EA/6CJ,aANY;EAOZ,aA+6CmB;EACb;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;;;AAMF;EACE;EACA;EACA;EACA;EACA;;;AAKJ;EACE;;AACA;EACE;EACA;EACA;EACA;;AACR;EACE;EACA;;;AAEF;EACE;;AACA;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAEN;AAAA;EAEE;EA1gDF,aANY;EAOZ,aA0gDe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;;AAGJ;EACE;;AAEE;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AAEN;EACE;EACA;;;AAEA;EACE;;;AAEJ;EACE;EACA;EACA;EACA;;AACA;EACE;;AAEE;EA1jDJ,aANY;EAOZ,aA0jDmB;EACb;EACA;EACA;EACA;;;AAER;EA3hDE,6BA4hDoB;EA3hDpB,0BA2hDoB;EA1hDpB,yBA0hDoB;EAzhDpB,wBAyhDoB;EAxhDpB,qBAwhDoB;EArhDpB,mBAshDW;EArhDX,gBAqhDW;EAphDX,eAohDW;EAnhDX,cAmhDW;EAlhDX,WAkhDW;;;AACb;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EA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CA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAnuDF,uBAouDgB;EAnuDhB,oBAmuDgB;EAluDhB,eAkuDgB;EAjtDhB,oBAktDa;EAjtDb,iBAitDa;EAhtDb,gBAgtDa;EA/sDb,eA+sDa;EA9sDb,YA8sDa;;AACX;EAvwDF,aANY;EAOZ,aAuwDiB;EACb;EACA;EACA;EACA;EAlvDJ;EACA;EACA;EACA;EACA;;AAgvDE;EACE;EACA;EACA;EACA;;AACA;EAlwDJ,oBAmwDkB;EAlwDlB,iBAkwDkB;EAjwDlB,gBAiwDkB;EAhwDlB,eAgwDkB;EA/vDlB,YA+vDkB;EACZ;EACA;EACA;EACA;EACA;;AACN;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EArwDF,uBAswDgB;EArwDhB,oBAqwDgB;EApwDhB,eAowDgB;;AAChB;EACE;;AACF;EACE;EACA;EA5yDF,aANY;EAOZ,aA4yDe;EACb;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AAEF;EACE;EACA;;;AAIJ;EAGE;EACA;EACA;;AACA;EACI;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAOA;EACE;EACA;EACA;;AACA;EACE;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAQA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;AAAA;EAl4DF,uBAo4DkB;EAn4DlB,oBAm4DkB;EAl4DlB,eAk4DkB;;;AA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;EACE;;AACF;EACE;EACA;;;AAGJ;AAAA;EAEE;EACA;;AACF;EACE;EACA;;AACA;EACE;;;AAKF;AAAA;EACE;EACA;;AACF;AAAA;EACE;;;AAIJ;AAAA;EACE;EACA;;AACA;AAAA;EACE;;AACF;AAAA;EACE;EACA;EACA;EACA;;;AACR;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AACJ;EACI;;;AAEJ;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;EACA;EACA;;;AAEN;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;;AAGJ;EACE;;;AAIE;EACE;;AAGF;AAAA;EA93EF,oBA+3EgB;EA93EhB,iBA83EgB;EA73EhB,gBA63EgB;EA53EhB,eA43EgB;EA33EhB,YA23EgB;;;AAElB;EACE;EACA;EACA;EACA;;;AAGE;EAx4EF,oBAy4EgB;EAx4EhB,iBAw4EgB;EAv4EhB,gBAu4EgB;EAt4EhB,eAs4EgB;EAr4EhB,YAq4EgB;;;AAElB;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EAx6EF,oBAy6EgB;EAx6EhB,iBAw6EgB;EAv6EhB,gBAu6EgB;EAt6EhB,eAs6EgB;EAr6EhB,YAq6EgB;;;AAElB;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACJ;AAAA;EAEE;;;AAEJ;EACE;;AAEE;EACE;;AAEF;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACJ;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;;AAEN;AACA;EACE;;AAEE;EACE;;AACA;EACE;EACA;EACA;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AAER;AACE;AAKA;AAIA;AAGA;AAiIA;AA2KA;AAuBA;AAKA;AAOA;AASA;AASA;AAIA;AA4rBA;AAiBA;AAoRA;AAqRA;AAuIA;AAMA;AAMA;;AAzvDA;EACE;EACA;EACA;;AAGA;EACE;;AAEJ;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AACA;EACE;;AACN;EACE;EACA;EACA;;AACF;AAAA;AAAA;EAGE;EACA;EACA;;AACF;AAAA;EAEE;;AAEA;EACE;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGJ;AAAA;EACE;;AACA;AAAA;EACE;;AAEJ;EACE;;AAEA;EACE;;AAEF;EACE;;AAGF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAEN;EACE;;AAEE;EACE;;AACJ;EACI;;AAGJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AAGJ;EACE;EACA;;AAGN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EASE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;;AAEJ;AAAA;AAAA;EAGI;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;;AAGJ;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;;AAOA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;EACE;;AAGF;EACE;;AAEJ;EACE;;AAOM;EACE;EACA;EACA;EACA;;AAOA;EACE;;AAGd;EACE;EACA;EACA;;AACA;EACE;;AAEE;EACE;;AAEF;EACE;;AACJ;EACE;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AAGV;EACE;EACA;EACA;;AAEF;AAAA;EAEI;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGA;EACE;;AAOI;EAEE;;AAGV;EACE;;AAGF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;;AACF;EACE;;AAEN;EACE;;AACJ;EACE;;AAEA;EACE;;AACF;EACE;;AAEJ;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACA;EACE;;AAGF;AAAA;EACE;;AACF;AAAA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAIE;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAMF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAME;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAIF;EACE;;AAKF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKJ;EACE;;AACF;EACE;;AACN;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACA;EAEE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACJ;EACE;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;;AACF;AAAA;EAEE;;AAEA;EACE;;AACA;EACE;;AAEF;EACE;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;;AAGA;AAAA;EACE;EACA;;AAEF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AAKF;AAAA;AAAA;AAAA;EACG;;AAEH;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;AAGJ;AAAA;EACE;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACN;EACE;;AACF;EACE;;AAIE;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAIA;EACE;;AAMA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKA;EACE;;AAGJ;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;;AAKF;EACE;;AAKJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAKA;EACE;;AAIF;EACE;;AAEF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAMN;EACE;;AAKA;EACE;;AAGF;EACE;;AAKF;EACE;;AAGF;EACE;;AAGN;EACE;EACA;;AAGA;EACE;;AACA;EACE;;AAKF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAKJ;EACE;;AAGF;EACE;;AAIN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAIZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;EACA;;AACF;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;EACA;;AACJ;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AACF;EACE;;AAYA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAEJ;EACE;;AAEF;AAAA;EAEE;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;AAAA;AAAA;EAGE;;AAGJ;EACE;;AAEJ;EACE;;AACJ;AAAA;AAAA;EAGE;EACA;;AAEA;AAAA;AAAA;AAAA;EAIE;EACA;;AAEF;EACE;EACA;;AAKF;EACE;;AAKF;EACE;;AAKF;EACE;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAKF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAME;EACE;;AAGR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEF;EACE;;AACF;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAGN;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;;AAEF;AAAA;EAEE;;;AAIE;EACE;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;AACA;EACE;EACA;;;AAER;EACE;EACA;EA1kJF,aANY;EAOZ,aA0kJe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIE;EACE;;AAEF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAGV;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAIA;EACE;;;AAMJ;EACE;;AAGE;EACE;;AAOE;EACE;;AAGN;EACE;EACA;EACA;;AAKA;EACE;EACA;EACA;;AACV;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;;AACJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACA;EACE;;AACA;AAAA;EAEE;EACA;;AAOE;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAOR;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;;AAIhB;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;;AAGN;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AAIA;AAAA;EACE;;AACA;AAAA;EACE;;;AAIR;EACE;EACA;;AAGE;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;;AAGF;AAAA;EACE;;AAGA;EACE;;AACF;EACE;;AAKF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AAIE;AAAA;EACE;;AACA;AAAA;EACE;;AACR;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AAEA;EACE;;AACA;EACE;;AACN;AAAA;AAAA;AAAA;EAIE","file":"elements.css"} // @since 4.6.0 - Send ajax nonce args.super_ajax_nonce = args.form.find('input[name="super_ajax_nonce"]').val(); //SUPER.form_js[$form_id]._pdf.generate = 'false'; return {data:$data, form_id:$form_id, entry_id:$entry_id, list_id:$list_id}; if(args.super_ajax_nonce) formData.append('super_ajax_nonce', args.super_ajax_nonce); var nodes = clone.querySelectorAll('.super-conditional-logic, .super-validate-conditions, .super-variable-conditions'); var levels = suffix.reverse().join(''); var $this = $(this), $form = $this.closest('.super-form'), $form_id = $form.find('input[name="hidden_form_id"]').val(), $i18n = $this.attr('data-value'); $this.parent().children('.super-item').removeClass('super-active'); $this.addClass('super-active'); // Also move to placeholder $this.parents('.super-dropdown').children('.super-dropdown-placeholder').html($this.html()); $form.find('form').html(''); // Get URL parameters var $queryString = window.location.search; var $parameters = SUPER.getAllUrlParams($queryString); $.ajax({ url: super_elements_i18n.ajaxurl, type: 'post', data: { action: 'super_language_switcher', form_id: $form_id, i18n: $i18n, parameters: $parameters success: function (result) { var data = JSON.parse(result); if(data.rtl==true){ $form.addClass('super-rtl'); }else{ $form.removeClass('super-rtl'); } $form.find('form').html(data.html); $form.data('i18n', $i18n); $form.removeClass('super-initialized'); $form.removeClass('super-rendered'); $form.find('.super-multipart-progress').remove(); $form.find('.super-multipart-steps').remove(); alert(super_elements_i18n.failed_to_process_data); 'upload_files' => true, 'submit_form' => true, 'i18n' => sanitize_text_field($_POST['i18n']), 'parameters' => $_POST['parameters'] $translations = SUPER_Common::get_form_translations($atts['id']); if(is_array($translations)){ if( !empty($translations[$atts['i18n']]) && !empty($translations[$atts['i18n']]['rtl']) ){ if($translations[$atts['i18n']]['rtl']=='true'){ $rtl = true; } // Temporarily deprecated till found a solution with caching plugins // // @since 4.6.0 - Check if ajax request is valid based on nonce field // if ( !wp_verify_nonce( $_POST['super_ajax_nonce'], 'super_submit_' . $form_id ) ) { // SUPER_Common::output_message( // $error = true, // esc_html__( 'Failed to verify nonce! You either do not have permission to submit this form or caching is enabled. If caching is enabled make sure to exclude this page from being cached.', 'super-forms' ) // ); // } // check_ajax_referer( 'super_submit_' . $form_id, 'super_ajax_nonce' ); if(!empty($translations) && is_array($translations)){ $super_ajax_nonce = wp_create_nonce( 'super_submit_' . $form_id ); $result .= '<input type="hidden" name="super_ajax_nonce" value="' . esc_attr($super_ajax_nonce) . '" />'; public function next(): void { public function rewind(): void { public function count(): int { } * Version: 6.0.3 public $version = '6.0.3';
## Jan 26, 2022 - Version 6.0.4 - **Fix:** When `editing` is enabled for a `Listings` (Listings Add-on) make sure the styles/scripts are loaded so that normal form functions and styles are applied - **Fix:** Validate requests made to switch form language by using a custom nonce system - **Fix:** PHP parse error when loading a php file used for PHP versions below v8 $result .= ' name="' . esc_attr($atts['name']) . '" value="' . esc_attr($code) . '"'; overflow: initial; margin: 0; margin-top: 0; margin-bottom: 0; {"version":3,"sourceRoot":"","sources":["elements.sass"],"names":[],"mappings":";AAqFA;EACE;;;AAEF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAEA;AAAA;EAEE;;;AAEF;AAAA;EAEE;;AACF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;;;AAGJ;EACE;EACA;EACA;;;AAEA;EACE;;AACF;EACE;;AACF;EACE;;;AACJ;EACE;EACA;;;AAMM;AAAA;EACE;EACA;EACA;EACA;EACA;;;AAEV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA1IE,aANY;EAOZ,aAyJa;;;AAGb;EA7JA,aANY;EAOZ,aA6Je;;;AAEjB;EAhKE,aANY;EAOZ,aAgKa;;;AAEf;EACE;;;AAEF;EACE;EACA;EACA;;;AAGA;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;;;AAEJ;EAjLE,uBAkLY;EAjLZ,qBAiLY;EAhLZ,oBAgLY;EA/KZ,kBA+KY;EA9KZ,iBA8KY;EA7KZ,aA6KY;EA5KZ;;;AA+KA;EArLA,uBAsLc;EArLd,qBAqLc;EApLd,oBAoLc;EAnLd,kBAmLc;EAlLd,iBAkLc;EAjLd,aAiLc;EAhLd;;;AAkLF;AAAA;EAxLE,uBA0LY;EAzLZ,qBAyLY;EAxLZ,oBAwLY;EAvLZ,kBAuLY;EAtLZ,iBAsLY;EArLZ,aAqLY;EApLZ;;;AAsLF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACN;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAEJ;EACE;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;EACA;EACA;;;AAGF;EAEE;EACA;EACA;;AACF;EAEE;EACA;EACA;EACA;EACA;;AACF;EAEE;EACA;;AACF;EAEE;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACA;EACE;EACA;EACA;EACA;EA9QJ,oBA+Qe;EA9Qf,iBA8Qe;EA7Qf,gBA6Qe;EA5Qf,eA4Qe;EA3Qf,YA2Qe;;AACf;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAEN;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;EACA;EACA;EACA;EACA;EAuDA;;AAtDA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;;AAEE;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEN;EACE;;AAEF;EACE;;AAEA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;AAGJ;EACE;;AACF;EAIE;EACA;;AAJA;EACE;EACA;;;AAIN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EAzdF,mBA0da;EAzdb,gBAyda;EAxdb,eAwda;EAvdb,cAuda;EAtdb,WAsda;;;AAEf;EACE;;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACA;EACE;;;AAEN;EACE;IAvfA,mBAwfa;IAvfb,gBAufa;IAtfb,eAsfa;IArfb,cAqfa;IApfb,WAofa;;EACb;IAzfA,mBA0fa;IAzfb,gBAyfa;IAxfb,eAwfa;IAvfb,cAufa;IAtfb,WAsfa;;;AAEf;EACE;IA7fA,mBA8fa;IA7fb,gBA6fa;IA5fb,eA4fa;IA3fb,cA2fa;IA1fb,WA0fa;;EACb;IA/fA,mBAggBa;IA/fb,gBA+fa;IA9fb,eA8fa;IA7fb,cA6fa;IA5fb,WA4fa;;;AAIX;EACE;;AACJ;EAlfA,iBAmfa;EAlfb,oBAkfa;EAjfb,YAifa;;AACb;EACE;EA5hBF;EACA;EACA;EACA;EACA;EA0hBE;;AACA;EACE;;AAGA;EACE;;AACA;EA/jBN,aANY;EAOZ,aA+jBqB;EACb;EAviBR;EACA;EACA;EACA;EACA;EAqiBQ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGN;EACE;;AACJ;EACE;;AAGE;EACE;;AACF;EACE;;AACF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;AAAA;AAAA;AAAA;AAAA;EAKE;;AACF;EACE;;;AAEJ;AACA;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AACF;EACE;EACA;;;AAEF;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;AACA;EACE;;AAEA;EACE;;;AAGJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;;;AAEJ;EACE;EACA;;;AAEF;EACE;;;AAGA;EACE;;AACF;EACE;;;AAGF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;;AAEN;EACE;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EAjtBA;EACA;EACA;EACA;EACA;;;AAgtBF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AACF;EACE;;;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EA1sBF,iBA2sBa;EA1sBb,oBA0sBa;EAzsBb,YAysBa;EACX;EACA;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EA3tBA,oBA4tBa;EA3tBb,iBA2tBa;EA1tBb,gBA0tBa;EAztBb,eAytBa;EAxtBb,YAwtBa;;AACb;AAAA;AAAA;AAAA;EA7tBA,oBA+tBa;EA9tBb,iBA8tBa;EA7tBb,gBA6tBa;EA5tBb,eA4tBa;EA3tBb,YA2tBa;EACX;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;;AAEA;EACE;;AACF;EACE;;;AAEN;AAAA;EAEE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;AAEE;EACE;;AAEF;EACE;EACA;EACA;;;AAIF;AAAA;AAAA;AAAA;EAEE;;;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;;AAEN;EACE;EACA;;AACA;EACE;EACA;;AACF;EACE;;;AAGF;AAAA;EA9yBA,uBAgzBgB;EA/yBhB,oBA+yBgB;EA9yBhB,eA8yBgB;EAhxBhB,iBAixBa;EAhxBb,oBAgxBa;EA/wBb,YA+wBa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EAEE;;;AAGF;EACE;;;AAEF;EACE;;;AAEJ;EACE;EACA;;;AAGA;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;;AAIF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;;AACF;EACE;EA33BJ,uBA43BkB;EA33BlB,oBA23BkB;EA13BlB,eA03BkB;EACd;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EAp4BJ,uBAq4BkB;EAp4BlB,oBAo4BkB;EAn4BlB,eAm4BkB;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EA73BN,oBA83BiB;EA73BjB,iBA63BiB;EA53BjB,gBA43BiB;EA33BjB,eA23BiB;EA13BjB,YA03BiB;;AACb;EACE;EACA;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;;AAGF;EACE;EACA;;AACF;EACE;;AACF;EACE;;;AAIA;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AAEE;EACE;;AACF;EACE;EACA;EACA;;;AAER;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EA/hCN,aANY;EAOZ,aA+hCqB;EACb;EACA;;AACJ;EACE;;AACA;EACE;;AAKA;EACE;;AAIF;EACE;;AAGF;EACE;;AAGF;EACE;;;AAEZ;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AACF;EACE;;AACA;EACE;;;AACJ;EACE;EACA;;AACA;EACE;;AACF;EACE;EA9kCF,aANY;EAOZ,aA8kCe;;;AAEjB;EACE;EACA;;AAEE;EACE;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;;;AAGN;EACE;EACA;EACA;;AACA;EACE;EAvjCJ,oBAwjCe;EAvjCf,iBAujCe;EAtjCf,gBAsjCe;EArjCf,eAqjCe;EApjCf,YAojCe;EACX;EA5kCJ,uBA6kCkB;EA5kClB,oBA4kCkB;EA3kClB,eA2kCkB;;AAChB;EACE;EA5jCJ,oBA6jCe;EA5jCf,iBA4jCe;EA3jCf,gBA2jCe;EA1jCf,eA0jCe;EAzjCf,YAyjCe;EACX;;;AAEN;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAhkCA,iBAikCW;EAhkCX,oBAgkCW;EA/jCX,YA+jCW;;AACX;EACE;EAnmCF,uBAomCgB;EAnmChB,oBAmmCgB;EAlmChB,eAkmCgB;;AACd;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EA1nCJ,uBA2nCkB;EA1nClB,oBA0nCkB;EAznClB,eAynCkB;EACd;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAtqCJ,uBAuqCgB;EAtqChB,qBAsqCgB;EArqChB,oBAqqCgB;EApqChB,kBAoqCgB;EAnqChB,iBAmqCgB;EAlqChB,aAkqCgB;EAjqChB;;AAkqCE;EACE;;AACA;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAGE;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EAvrCR,uBAwrCsB;EAvrCtB,oBAurCsB;EAtrCtB,eAsrCsB;EAjtCtB,uBAktCoB;EAjtCpB,qBAitCoB;EAhtCpB,oBAgtCoB;EA/sCpB,kBA+sCoB;EA9sCpB,iBA8sCoB;EA7sCpB,aA6sCoB;EA5sCpB;;AA6sCQ;EACE;EACA;EACA;EACA;EACA;EAxtCV,uBAytCsB;EAxtCtB,qBAwtCsB;EAvtCtB,oBAutCsB;EAttCtB,kBAstCsB;EArtCtB,iBAqtCsB;EAptCtB,aAotCsB;EAntCtB;EAsCA,oBA8qCqB;EA7qCrB,iBA6qCqB;EA5qCrB,gBA4qCqB;EA3qCrB,eA2qCqB;EA1qCrB,YA0qCqB;;AAEX;EACE;EACA;EACA;;;AAIV;EACE;EACA;;AAEF;EACE;EACA;;;AAGF;EACE;EACA;;AAEF;EACE;EACA;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EACE;;;AAGJ;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;EACA;;;AAEN;EACE;IACE;;;AAEJ;EACE;;AACA;EACE;EACA;EACA;EACA;;;AACJ;EACE;EACA;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;AACA;EACE;;;AACJ;EACE;EACA;EACA;;;AAGA;EACE;EACA;EACA;;;AAEJ;EACE;;AACA;EACE;;;AAEJ;EACE;;;AAEF;EACE;;;AAKI;EACE;EACA;;AACF;EACE;EACA;;AACJ;EACE;;AACF;EACE;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAv1CR,uBAw1CsB;EAv1CtB,oBAu1CsB;EAt1CtB,eAs1CsB;EACd;EACA;EACA;;AACN;EAEE;EACA;EACA;;AACF;EACE;EACA;EACA;EA30CJ;EACA;EACA;EACA;EACA;EAy0CI;;AACJ;EACE;;;AAIA;EACE;;;AAIF;EACE;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;;;AAEJ;AAAA;AAAA;EAGE;;;AAEF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACA;EA/6CJ,aANY;EAOZ,aA+6CmB;EACb;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;;;AAMF;EACE;EACA;EACA;EACA;EACA;;;AAKJ;EACE;;AACA;EACE;EACA;EACA;EACA;;AACR;EACE;EACA;;;AAEF;EACE;;AACA;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAEN;AAAA;EAEE;EA1gDF,aANY;EAOZ,aA0gDe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;;AAGJ;EACE;;AAEE;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AAEN;EACE;EACA;;;AAEA;EACE;;;AAEJ;EACE;EACA;EACA;EACA;;AACA;EACE;;AAEE;EA1jDJ,aANY;EAOZ,aA0jDmB;EACb;EACA;EACA;EACA;;;AAER;EA3hDE,6BA4hDoB;EA3hDpB,0BA2hDoB;EA1hDpB,yBA0hDoB;EAzhDpB,wBAyhDoB;EAxhDpB,qBAwhDoB;EArhDpB,mBAshDW;EArhDX,gBAqhDW;EAphDX,eAohDW;EAnhDX,cAmhDW;EAlhDX,WAkhDW;;;AACb;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EA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CA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAnuDF,uBAouDgB;EAnuDhB,oBAmuDgB;EAluDhB,eAkuDgB;EAjtDhB,oBAktDa;EAjtDb,iBAitDa;EAhtDb,gBAgtDa;EA/sDb,eA+sDa;EA9sDb,YA8sDa;;AACX;EAvwDF,aANY;EAOZ,aAuwDiB;EACb;EACA;EACA;EACA;EAlvDJ;EACA;EACA;EACA;EACA;;AAgvDE;EACE;EACA;EACA;EACA;;AACA;EAlwDJ,oBAmwDkB;EAlwDlB,iBAkwDkB;EAjwDlB,gBAiwDkB;EAhwDlB,eAgwDkB;EA/vDlB,YA+vDkB;EACZ;EACA;EACA;EACA;EACA;;AACN;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EArwDF,uBAswDgB;EArwDhB,oBAqwDgB;EApwDhB,eAowDgB;;AAChB;EACE;;AACF;EACE;EACA;EA5yDF,aANY;EAOZ,aA4yDe;EACb;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;;AAEF;EACE;EACA;;;AAIJ;EAGE;EACA;EACA;;AACA;EACI;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAOA;EACE;EACA;EACA;;AACA;EACE;;;AAEN;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAQA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;AAAA;EAl4DF,uBAo4DkB;EAn4DlB,oBAm4DkB;EAl4DlB,eAk4DkB;;;AA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;EACE;;AACF;EACE;EACA;;;AAGJ;AAAA;EAEE;EACA;;AACF;EACE;EACA;;AACA;EACE;;;AAKF;AAAA;EACE;EACA;;AACF;AAAA;EACE;;;AAIJ;AAAA;EACE;EACA;;AACA;AAAA;EACE;;AACF;AAAA;EACE;EACA;EACA;EACA;;;AACR;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;;AACJ;EACI;;;AAEJ;EACE;EACA;EACA;;AACA;EACE;;AACF;EACE;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;EACA;EACA;;;AAEN;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;;AAGJ;EACE;;;AAIE;EACE;;AAGF;AAAA;EA93EF,oBA+3EgB;EA93EhB,iBA83EgB;EA73EhB,gBA63EgB;EA53EhB,eA43EgB;EA33EhB,YA23EgB;;;AAElB;EACE;EACA;EACA;EACA;;;AAGE;EAx4EF,oBAy4EgB;EAx4EhB,iBAw4EgB;EAv4EhB,gBAu4EgB;EAt4EhB,eAs4EgB;EAr4EhB,YAq4EgB;;;AAElB;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGA;EAx6EF,oBAy6EgB;EAx6EhB,iBAw6EgB;EAv6EhB,gBAu6EgB;EAt6EhB,eAs6EgB;EAr6EhB,YAq6EgB;;;AAElB;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGA;EACE;;AACF;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;AACJ;AAAA;EAEE;;;AAEJ;EACE;;AAEE;EACE;;AAEF;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACJ;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;AAEF;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;;;AAEN;AACA;EACE;;AAEE;EACE;;AACA;EACE;EACA;EACA;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AACR;AACA;EACE;;AAEE;EACE;;AACA;EACE;;;AAER;AACE;AAKA;AAIA;AAGA;AAqIA;AA2KA;AAuBA;AAKA;AAOA;AASA;AASA;AAIA;AA4rBA;AAiBA;AAoRA;AAqRA;AAuIA;AAMA;AAMA;;AA7vDA;EACE;EACA;EACA;;AAGA;EACE;;AAEJ;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AACA;EACE;;AACN;EACE;EACA;EACA;;AACF;AAAA;AAAA;EAGE;EACA;EACA;;AACF;AAAA;EAEE;;AAEA;EACE;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;;AACA;EACE;;AAGJ;AAAA;EACE;;AACA;AAAA;EACE;;AAEJ;EACE;;AAEA;EACE;;AAEF;EACE;;AAGF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAEN;EACE;;AAEE;EACE;;AACJ;EACI;;AAGJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AAGJ;EACE;EACA;;AAGN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EASE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;EACA;EACA;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAEF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;AAAA;EACE;EACA;EACA;EACA;;AACF;AAAA;EACE;EACA;EACA;EACA;;AAEJ;EACE;;AACF;EACE;EACA;EACA;;AACA;EACE;;AACJ;EACE;EACA;;AAEJ;AAAA;AAAA;EAGI;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;;AAGJ;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;;AAOA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;EACE;;AAGF;EACE;;AAEJ;EACE;;AAOM;EACE;EACA;EACA;EACA;;AAOA;EACE;;AAGd;EACE;EACA;EACA;;AACA;EACE;;AAEE;EACE;;AAEF;EACE;;AACJ;EACE;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AAGV;EACE;EACA;EACA;;AAEF;AAAA;EAEI;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGA;EACE;;AAOI;EAEE;;AAGV;EACE;;AAGF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACJ;EACE;;AACF;EACE;;AAEN;EACE;;AACJ;EACE;;AAEA;EACE;;AACF;EACE;;AAEJ;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACA;EACE;;AAGF;AAAA;EACE;;AACF;AAAA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACF;EACE;;AACF;AAAA;EAEE;EACA;;AACF;EACE;;AAIE;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAMF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAME;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AAEJ;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAIF;EACE;;AAKF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKJ;EACE;;AACF;EACE;;AACN;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACA;EAEE;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACJ;EACE;;AACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;;AACF;AAAA;EAEE;;AAEA;EACE;;AACA;EACE;;AAEF;EACE;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;;AACN;EACE;;AAGA;AAAA;EACE;EACA;;AAEF;EACE;EACA;;AAEF;EACE;;AACF;EACE;;AAKF;AAAA;AAAA;AAAA;EACG;;AAEH;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;AAGJ;AAAA;EACE;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;;AACF;EACE;EACA;;AAEA;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACF;EACE;;AACF;EACE;EACA;;AACN;EACE;;AACF;EACE;;AAIE;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAIA;EACE;;AAMA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;EACA;;AAKA;EACE;;AAGJ;EACE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AACA;EACE;EACA;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;;AACF;EACE;;AAKF;EACE;;AAKJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;;AACJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;EACA;;AAGF;EACE;EACA;;AACN;EACE;EACA;;AAKA;EACE;;AAIF;EACE;;AAEF;EACE;;AACJ;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAGF;EACE;;AACN;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;;AAMN;EACE;;AAKA;EACE;;AAGF;EACE;;AAKF;EACE;;AAGF;EACE;;AAGN;EACE;EACA;;AAGA;EACE;;AACA;EACE;;AAKF;EACE;;AACA;EACE;;AAGJ;EACE;;AACA;EACE;;AAKJ;EACE;;AAGF;EACE;;AAIN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAIZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;;AAEA;EACE;EACA;;AAGA;EACE;;AACF;EACE;;AACN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;;AACJ;EACE;;AACF;AAAA;EAEE;;AACF;EACE;;AAEA;EACE;;AAEF;EACE;;AACF;EACE;;AACF;EACE;;AAGA;EACE;EACA;;AACF;AAAA;AAAA;EAGE;EACA;;AAEF;EACE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;EACA;;AAGJ;EACE;EACA;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EAEE;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;;AACF;EACE;;AAIA;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AACF;EACE;;AAGF;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGN;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;AAGE;EACE;EACA;;AACF;EACE;;AAEF;EACE;;AACF;EACE;EACA;;AAGJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACF;EACE;;AAEA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AAKZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAaE;EACA;;AACF;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;EACA;;AACJ;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AACF;EACE;;AAYA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAEJ;EACE;;AAEF;AAAA;EAEE;EACA;;AACJ;EACE;EACA;;AACF;EACE;EACA;;AACF;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;;AACA;AAAA;AAAA;EAGE;;AAGJ;EACE;;AAEJ;EACE;;AACJ;AAAA;AAAA;EAGE;EACA;;AAEA;AAAA;AAAA;AAAA;EAIE;EACA;;AAEF;EACE;EACA;;AAKF;EACE;;AAKF;EACE;;AAKF;EACE;;AAGJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAKF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAME;EACE;;AAGR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;;AACF;EACE;;AACF;AAAA;EAEE;;AACF;AAAA;EAEE;EACA;;AACF;AAAA;EAEE;EACA;;AAEA;EACE;;AACF;EACE;EACA;;AAGA;EACE;;AAGA;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;AAAA;EAEE;;AAEJ;EACE;;AAEA;EACE;;AACJ;EACE;;AACF;AAAA;AAAA;EAGE;;AACF;EACE;;AAIF;EACE;;AAEA;EACE;;AACJ;EACE;;AAEA;EACE;;AACJ;EACE;;AAEF;EACE;;AACF;EACE;;AAEA;EACE;;AAEN;EACE;;AACJ;EACE;;AAGN;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAEJ;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;;AAEF;AAAA;EAEE;;;AAIE;EACE;;AACA;EACE;EACA;EACA;EACA;;;AAIJ;EACE;;AACA;EACE;EACA;;;AAER;EACE;EACA;EA9kJF,aANY;EAOZ,aA8kJe;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIE;EACE;;AAEF;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAKN;EACE;;AAIA;EACE;;AAEN;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;EACA;;AAII;EACE;EACA;EACA;;AACA;EACE;;AAEV;EACE;EACA;;AAII;EACE;EACA;;AAER;EACE;EACA;;AAII;EACE;EACA;;;AAGV;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;;;AAIA;EACE;;;AAMJ;EACE;;AAGE;EACE;;AAOE;EACE;;AAGN;EACE;EACA;EACA;;AAKA;EACE;EACA;EACA;;AACV;EACE;EACA;;AAEE;EACE;EACA;EACA;;AACN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;;AACJ;EACE;;AACJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;;AAEF;EACE;EACA;;AACA;EACE;;AACA;EACE;EACA;EACA;;AACF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACN;EACE;EACA;;AACA;EACE;;AACA;AAAA;EAEE;EACA;;AAOE;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAOR;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQJ;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAQN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAMN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;AAGN;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;EACA;;;AAIhB;EACE;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;;AAGN;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AAIA;AAAA;EACE;;AACA;AAAA;EACE;;;AAIR;EACE;EACA;;AAGE;AAAA;EAEE;;AACA;AAAA;EACE;;AACF;AAAA;EACE;;AACF;AAAA;EACE;;AACJ;EACE;;AAEA;EACE;;AAGF;AAAA;EACE;;AAGA;EACE;;AACF;EACE;;AAKF;EACE;;AAEJ;EACE;;AACF;EACE;;AACJ;EACE;;AACF;EACE;;AACF;EACE;EACA;;AAIE;AAAA;EACE;;AACA;AAAA;EACE;;AACR;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AACF;EACE;;AAEA;EACE;;AACA;EACE;;AACN;AAAA;AAAA;AAAA;EAIE","file":"elements.css"} overflow: initial margin: 0 margin-top: 0 margin-bottom: 0 if(args.sf_nonce) args.formData.append('sf_nonce', args.sf_nonce); sf_nonce: formData.sf_nonce return { data:$data, form_id:$form_id, entry_id:$entry_id, list_id:$list_id, sf_nonce: $form.find('input[name="sf_nonce"]').val() }; if(args.sf_nonce) formData.append('sf_nonce', args.sf_nonce); // Update new nonce if(result.response_data && result.response_data.sf_nonce){ $('input[name="sf_nonce"]').val(result.response_data.sf_nonce); } nodes = clone.querySelectorAll('.super-conditional-logic, .super-validate-conditions, .super-variable-conditions'); levels = suffix.reverse().join(''); // Generate new nonce var $this = $(this), $form = $this.closest('.super-form'); $form.find('.super-button').remove(); $.ajax({ url: super_elements_i18n.ajaxurl, type: 'post', data: { action: 'super_create_nonce' success: function (nonce) { $form.find('input[name="sf_nonce"]').val(nonce); var $form_id = $form.find('input[name="hidden_form_id"]').val(), $sf_nonce = $form.find('input[name="sf_nonce"]').val(), $i18n = $this.attr('data-value'); $this.parent().children('.super-item').removeClass('super-active'); $this.addClass('super-active'); // Also move to placeholder $this.parents('.super-dropdown').children('.super-dropdown-placeholder').html($this.html()); // Get URL parameters var $queryString = window.location.search; var $parameters = SUPER.getAllUrlParams($queryString); $.ajax({ url: super_elements_i18n.ajaxurl, type: 'post', data: { action: 'super_language_switcher', form_id: $form_id, i18n: $i18n, parameters: $parameters, sf_nonce: $sf_nonce, }, success: function (result) { var data = JSON.parse(result); if(data.error && data.error===true){ var i, nodes = document.querySelectorAll('.super-msg'); for (i = 0; i < nodes.length; i++) { nodes[i].remove(); } var $html = '<div class="super-msg super-error">'; $html += data.msg; $html += '<span class="super-close"></span>'; $html += '</div>'; $($html).prependTo($form); }else{ if(data.rtl==true){ $form.addClass('super-rtl'); }else{ $form.removeClass('super-rtl'); } $form.find('form').html(data.html); $form.data('i18n', $i18n); } }, complete: function(){ $form.removeClass('super-initialized'); $form.removeClass('super-rendered'); $form.find('.super-multipart-progress').remove(); $form.find('.super-multipart-steps').remove(); }, error: function (xhr, ajaxOptions, thrownError) { // eslint-disable-next-line no-console console.log(xhr, ajaxOptions, thrownError); alert(super_elements_i18n.failed_to_process_data); } }); alert('Failed to generate nonce!'); ## Jan 26, 2022 - Version 6.0.4 - **Fix:** When `editing` is enabled for a `Listings` (Listings Add-on) make sure the styles/scripts are loaded so that normal form functions and styles are applied - **Fix:** Validate requests made to switch form language by using a custom nonce system - **Fix:** PHP parse error when loading a php file used for PHP versions below v8 'create_nonce' => true, 'upload_files' => true, 'submit_form' => true, public static function create_nonce(){ echo SUPER_Common::generate_nonce(); die(); } 'i18n' => (isset($_POST['i18n']) ? sanitize_text_field($_POST['i18n']) : ''), 'parameters' => (isset($_POST['parameters']) ? $_POST['parameters'] : array()), // Check if languages are used $verified = true; $settings = SUPER_Common::get_form_settings($atts['id']); if(empty($settings['i18n_switch'])) $settings['i18n_switch'] = 'false'; if($settings['i18n_switch']!=='true'){ // No need to do this, return message $verified = false; } $translations = SUPER_Common::get_form_translations($atts['id']); if( (!is_array($translations)) || ((is_array($translations)) && (count($translations)<2)) ) { // No need to do this, return message $verified = false; } $csrfValidation = SUPER_Common::verifyCSRF(); if(!$csrfValidation){ $verified = false; } if($verified===false){ SUPER_Common::output_message( $error = true, esc_html__( 'Unable to switch language, session expired!', 'super-forms' ) ); } if(!empty($translations[$atts['i18n']]) && !empty($translations[$atts['i18n']]['rtl'])){ if($translations[$atts['i18n']]['rtl']=='true'){ $rtl = true; $csrfValidation = SUPER_Common::verifyCSRF(); if(!$csrfValidation){ SUPER_Common::output_message( $error = true, esc_html__( 'Unable to submit form, session expired!', 'super-forms' ) ); } // Destroy nonce, and generate new one for next form SUPER_Forms()->session->set( 'sf_nonce', false ); $response_data['sf_nonce'] = SUPER_Common::generate_nonce(); public static function generate_nonce(){ $sf_nonce = SUPER_Forms()->session->get( 'sf_nonce' ); if( $sf_nonce===false ) { $sf_nonce = md5(uniqid(mt_rand(), true)) . md5(uniqid(mt_rand(), true)) . md5(uniqid(mt_rand(), true)); SUPER_Forms()->session->set( 'sf_nonce', $sf_nonce ); } return $sf_nonce; } public static function verifyCSRF(){ $sf_nonce = SUPER_Forms()->session->get( 'sf_nonce' ); $v = filter_input(INPUT_POST, 'sf_nonce', FILTER_SANITIZE_STRING); if(!$v || $v !== $sf_nonce){ return false; // invalid } return true; // valid } if(!empty($translations) && is_array($translations) && count($translations)>1 ){ $result .= '<input type="hidden" name="sf_nonce" value="' . SUPER_Common::generate_nonce() . '" />'; // Load styles and scripts SUPER_Forms()->enqueue_element_styles(); SUPER_Forms()->enqueue_element_scripts($settings, false, $form_id); $css = require( SUPER_PLUGIN_DIR . '/assets/css/frontend/themes/style-default.php' ); $css .= require( SUPER_PLUGIN_DIR . '/assets/css/frontend/themes/fonts.php' ); $css .= require( SUPER_PLUGIN_DIR . '/assets/css/frontend/themes/colors.php' ); if( $css!='' ) $result .= '<style type="text/css">' . $css . '</style>'; public function next() { public function rewind() { public function count() { } * Version: 6.0.4 public $version = '6.0.4';
[]
CVE-2014-0177
016ec99d25b1cb83cb4367e541177aa431beb600
https://github.com/github/hub
[{'lang': 'en', 'value': 'The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.'}]
3.6
null
2014-05-27T14:55Z
LOW
CWE-310
Cryptographic Issues
Weaknesses in this category are related to the design and implementation of data confidentiality and integrity. Frequently these deal with the use of encoding techniques, encryption libraries, and hashing algorithms. The weaknesses in this category could lead to a degradation of the quality data if they are not addressed.
Use non-predictable filename for downloaded patch file Since the /tmp directory is readable by everybody on Unix, and since the patch name could be public or easy to guess, a attacker could create a symlink to a file writable by the user running hub, which would be replaced by the patch. This has been assigned CVE-2014-0177
2014-04-15 19:04:30 +0200
016ec99
214
3
[ "lib/hub/commands.rb", "lib/hub/context.rb" ]
Ruby
{"lib/hub/commands.rb": {"lines_added": 1, "lines_deleted": 1}, "lib/hub/context.rb": {"lines_added": 0, "lines_deleted": 4}}
diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index f24e6f3..4b55529 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -517,11 +517,11 @@ module Hub else raise ArgumentError, url end end - patch_file = File.join(tmp_dir, patch_name) + patch_file = Tempfile.new('patch_name') File.open(patch_file, 'w') { |file| file.write(patch) } args[idx] = patch_file end end diff --git a/lib/hub/context.rb b/lib/hub/context.rb index a41fcbb..46c4c41 100644 --- a/lib/hub/context.rb +++ b/lib/hub/context.rb @@ -554,14 +554,10 @@ module Hub # Returns a Boolean. def command?(name) !which(name).nil? end - def tmp_dir - ENV['TMPDIR'] || ENV['TEMP'] || '/tmp' - end - def terminal_width if unix? width = %x{stty size 2>#{NULL}}.split[1].to_i width = %x{tput cols 2>#{NULL}}.to_i if width.zero? else
patch_file = File.join(tmp_dir, patch_name) def tmp_dir ENV['TMPDIR'] || ENV['TEMP'] || '/tmp' end
patch_file = Tempfile.new('patch_name')
[]
CVE-2024-3651
1d365e17e10d72d0b7876316fc7b9ca0eebdd38d
https://github.com/kjd/idna
[{'lang': 'en', 'value': "A vulnerability was identified in the kjd/idna library, specifically within the `idna.encode()` function, affecting version 3.6. The issue arises from the function's handling of crafted input strings, which can lead to quadratic complexity and consequently, a denial of service condition. This vulnerability is triggered by a crafted input that causes the `idna.encode()` function to process the input with considerable computational load, significantly increasing the processing time in a quadratic manner relative to the input size."}]
null
7.5
2024-07-07T18:15Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
Release v3.7
2024-04-10 20:30:58 -0700
1d365e1
27
3
[ "HISTORY.rst", "LICENSE.md", "idna/package_data.py" ]
Python
{"HISTORY.rst": {"lines_added": 8, "lines_deleted": 0}, "LICENSE.md": {"lines_added": 1, "lines_deleted": 1}, "idna/package_data.py": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/HISTORY.rst b/HISTORY.rst index eea8a70..76dc8bc 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,10 +1,18 @@ .. :changelog: History ------- +3.7 (2024-04-11) +++++++++++++++++ + +- Fix issue where specially crafted inputs to encode() could + take exceptionally long amount of time to process. [CVE-2024-3651] + +Thanks to Guido Vranken for reporting the issue. + 3.6 (2023-11-25) ++++++++++++++++ - Fix regression to include tests in source distribution. diff --git a/LICENSE.md b/LICENSE.md index ce36701..19b6b45 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,8 +1,8 @@ BSD 3-Clause License -Copyright (c) 2013-2023, Kim Davies and contributors. +Copyright (c) 2013-2024, Kim Davies and contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/idna/package_data.py b/idna/package_data.py index c5b7220..ed81113 100644 --- a/idna/package_data.py +++ b/idna/package_data.py @@ -1,2 +1,2 @@ -__version__ = '3.6' +__version__ = '3.7'
Copyright (c) 2013-2023, Kim Davies and contributors. __version__ = '3.6'
3.7 (2024-04-11) - Fix issue where specially crafted inputs to encode() could take exceptionally long amount of time to process. [CVE-2024-3651] Thanks to Guido Vranken for reporting the issue. Copyright (c) 2013-2024, Kim Davies and contributors. __version__ = '3.7'
[]
CVE-2021-32765
76a7b10005c70babee357a7d0f2becf28ec7ed1e
https://github.com/redis/hiredis
[{'lang': 'en', 'value': "Hiredis is a minimalistic C client library for the Redis database. In affected versions Hiredis is vulnurable to integer overflow if provided maliciously crafted or corrupted `RESP` `mult-bulk` protocol data. When parsing `multi-bulk` (array-like) replies, hiredis fails to check if `count * sizeof(redisReply*)` can be represented in `SIZE_MAX`. If it can not, and the `calloc()` call doesn't itself make this check, it would result in a short allocation and subsequent buffer overflow. Users of hiredis who are unable to update may set the [maxelements](https://github.com/redis/hiredis#reader-max-array-elements) context option to a value small enough that no overflow is possible."}]
6.5
8.8
2021-10-04T21:15Z
MEDIUM
CWE-190
Integer Overflow or Wraparound
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Fix for integer/buffer overflow CVE-2021-32765 This fix prevents hiredis from trying to allocate more than `SIZE_MAX` bytes, which would result in a buffer overrun. [Full Details](https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2)
2021-10-04 11:56:31 -0700
76a7b10
74
3
[ "hiredis.c", "test.c" ]
C
{"hiredis.c": {"lines_added": 1, "lines_deleted": 0}, "test.c": {"lines_added": 14, "lines_deleted": 0}}
diff --git a/hiredis.c b/hiredis.c index a7fbf48..ab0e398 100644 --- a/hiredis.c +++ b/hiredis.c @@ -172,10 +172,11 @@ static void *createArrayObject(const redisReadTask *task, size_t elements) { r = createReplyObject(task->type); if (r == NULL) return NULL; if (elements > 0) { + if (SIZE_MAX / sizeof(redisReply*) < elements) return NULL; /* Don't overflow */ r->element = hi_calloc(elements,sizeof(redisReply*)); if (r->element == NULL) { freeReplyObject(r); return NULL; } diff --git a/test.c b/test.c index c0eeca7..397f564 100644 --- a/test.c +++ b/test.c @@ -491,10 +491,24 @@ static void test_reply_reader(void) { test_cond(ret == REDIS_ERR && strcasecmp(reader->errstr, "Multi-bulk length out of range") == 0); freeReplyObject(reply); redisReaderFree(reader); + test("Multi-bulk never overflows regardless of maxelements: "); + size_t bad_mbulk_len = (SIZE_MAX / sizeof(void *)) + 3; + char bad_mbulk_reply[100]; + snprintf(bad_mbulk_reply, sizeof(bad_mbulk_reply), "*%llu\r\n+asdf\r\n", + (unsigned long long) bad_mbulk_len); + + reader = redisReaderCreate(); + reader->maxelements = 0; /* Don't rely on default limit */ + redisReaderFeed(reader, bad_mbulk_reply, strlen(bad_mbulk_reply)); + ret = redisReaderGetReply(reader,&reply); + test_cond(ret == REDIS_ERR && strcasecmp(reader->errstr, "Out of memory") == 0); + freeReplyObject(reply); + redisReaderFree(reader); + #if LLONG_MAX > SIZE_MAX test("Set error when array > SIZE_MAX: "); reader = redisReaderCreate(); redisReaderFeed(reader, "*9223372036854775807\r\n+asdf\r\n",29); ret = redisReaderGetReply(reader,&reply);
if (SIZE_MAX / sizeof(redisReply*) < elements) return NULL; /* Don't overflow */ test("Multi-bulk never overflows regardless of maxelements: "); size_t bad_mbulk_len = (SIZE_MAX / sizeof(void *)) + 3; char bad_mbulk_reply[100]; snprintf(bad_mbulk_reply, sizeof(bad_mbulk_reply), "*%llu\r\n+asdf\r\n", (unsigned long long) bad_mbulk_len); reader = redisReaderCreate(); reader->maxelements = 0; /* Don't rely on default limit */ redisReaderFeed(reader, bad_mbulk_reply, strlen(bad_mbulk_reply)); ret = redisReaderGetReply(reader,&reply); test_cond(ret == REDIS_ERR && strcasecmp(reader->errstr, "Out of memory") == 0); freeReplyObject(reply); redisReaderFree(reader);
[]
CVE-2024-28236
e1572743b008e4fbce31ebb1dcd23bf6a1a30297
https://github.com/go-vela/worker
[{'lang': 'en', 'value': 'Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang. Vela pipelines can use variable substitution combined with insensitive fields like `parameters`, `image` and `entrypoint` to inject secrets into a plugin/image and — by using common substitution string manipulation — can bypass log masking and expose secrets without the use of the commands block. This unexpected behavior primarily impacts secrets restricted by the "no commands" option. This can lead to unintended use of the secret value, and increased risk of exposing the secret during image execution bypassing log masking. **To exploit this** the pipeline author must be supplying the secrets to a plugin that is designed in such a way that will print those parameters in logs. Plugin parameters are not designed for sensitive values and are often intentionally printed throughout execution for informational/debugging purposes. Parameters should therefore be treated as insensitive. While Vela provides secrets masking, secrets exposure is not entirely solved by the masking process. A docker image (plugin) can easily expose secrets if they are not handled properly, or altered in some way. There is a responsibility on the end-user to understand how values injected into a plugin are used. This is a risk that exists for many CICD systems (like GitHub Actions) that handle sensitive runtime variables. Rather, the greater risk is that users who restrict a secret to the "no commands" option and use image restriction can still have their secret value exposed via substitution tinkering, which turns the image and command restrictions into a false sense of security. This issue has been addressed in version 0.23.2. Users are advised to upgrade. Users unable to upgrade should not provide sensitive values to plugins that can potentially expose them, especially in `parameters` that are not intended to be used for sensitive values, ensure plugins (especially those that utilize shared secrets) follow best practices to avoid logging parameters that are expected to be sensitive, minimize secrets with `pull_request` events enabled, as this allows users to change pipeline configurations and pull in secrets to steps not typically part of the CI process, make use of the build approval setting, restricting builds from untrusted users, and limit use of shared secrets, as they are less restrictive to access by nature.'}]
null
null
2024-03-12T21:15Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
Merge pull request from GHSA-pwx5-6wxg-px5h * fix(secrets): split env injection based on allow_substitution value * upgrade sdk server and types
2024-03-12 13:53:33 -0500
e157274
317
2
[ "executor/linux/build.go", "executor/linux/linux.go", "executor/linux/secret.go", "executor/linux/service.go", "executor/linux/step.go", "go.mod", "go.sum" ]
Go
{"executor/linux/build.go": {"lines_added": 20, "lines_deleted": 4}, "executor/linux/linux.go": {"lines_added": 11, "lines_deleted": 6}, "executor/linux/secret.go": {"lines_added": 7, "lines_deleted": 0}, "executor/linux/service.go": {"lines_added": 7, "lines_deleted": 0}, "executor/linux/step.go": {"lines_added": 7, "lines_deleted": 0}, "go.mod": {"lines_added": 3, "lines_deleted": 3}, "go.sum": {"lines_added": 6, "lines_deleted": 6}}
diff --git a/executor/linux/build.go b/executor/linux/build.go index 0fb2337..eca0623 100644 --- a/executor/linux/build.go +++ b/executor/linux/build.go @@ -197,12 +197,16 @@ func (c *client) PlanBuild(ctx context.Context) error { return fmt.Errorf("unable to decode secret: %w", err) } _log.AppendData(append(sRaw, "\n"...)) - // add secret to the map - c.Secrets[secret.Name] = s + // add secret to the appropriate map + if s.GetAllowSubstitution() { + c.Secrets[secret.Name] = s + } else { + c.NoSubSecrets[secret.Name] = s + } } // escape newlines in secrets loaded on build_start escapeNewlineSecrets(c.Secrets) @@ -697,10 +701,11 @@ func (c *client) StreamBuild(ctx context.Context) error { // during build planning. It is only available for the Docker runtime. func loadLazySecrets(c *client, _step *pipeline.Container) error { _log := new(library.Log) lazySecrets := make(map[string]*library.Secret) + lazyNoSubSecrets := make(map[string]*library.Secret) // this requires a small preface and brief description on // how normal secrets make it into a container: // // 1. pull secrets @@ -795,12 +800,16 @@ func loadLazySecrets(c *client, _step *pipeline.Container) error { _, err = c.Vela.Log.UpdateStep(c.repo.GetOrg(), c.repo.GetName(), c.build.GetNumber(), _step.Number, _log) if err != nil { return err } - // add secret to the temp map - lazySecrets[secret.Name] = s + // add secret to the appropriate temp map + if s.GetAllowSubstitution() { + lazySecrets[secret.Name] = s + } else { + lazyNoSubSecrets[secret.Name] = s + } } } // if we had lazy secrets, get them into the container if len(lazySecrets) > 0 { @@ -834,10 +843,17 @@ func loadLazySecrets(c *client, _step *pipeline.Container) error { err = tmpStep.Substitute() if err != nil { return err } + c.Logger.Debug("injecting no-sub lazy loaded secrets") + // inject secrets for container + err = injectSecrets(tmpStep, lazyNoSubSecrets) + if err != nil { + return err + } + c.Logger.Debug("merge lazy loaded secrets into container") // merge lazy load secrets into original container err = _step.MergeEnv(tmpStep.Environment) if err != nil { return fmt.Errorf("failed to merge environment") diff --git a/executor/linux/linux.go b/executor/linux/linux.go index 726c698..dac4ede 100644 --- a/executor/linux/linux.go +++ b/executor/linux/linux.go @@ -17,16 +17,17 @@ import ( type ( // client manages communication with the pipeline resources. client struct { // https://pkg.go.dev/github.com/sirupsen/logrus#Entry - Logger *logrus.Entry - Vela *vela.Client - Runtime runtime.Engine - Secrets map[string]*library.Secret - Hostname string - Version string + Logger *logrus.Entry + Vela *vela.Client + Runtime runtime.Engine + Secrets map[string]*library.Secret + NoSubSecrets map[string]*library.Secret + Hostname string + Version string // clients for build actions secret *secretSvc // private fields @@ -65,10 +66,11 @@ func Equal(a, b *client) bool { return reflect.DeepEqual(a.Logger, b.Logger) && reflect.DeepEqual(a.Vela, b.Vela) && reflect.DeepEqual(a.Runtime, b.Runtime) && reflect.DeepEqual(a.Secrets, b.Secrets) && + reflect.DeepEqual(a.NoSubSecrets, b.NoSubSecrets) && a.Hostname == b.Hostname && a.Version == b.Version && reflect.DeepEqual(a.init, b.init) && a.maxLogSize == b.maxLogSize && reflect.DeepEqual(a.privilegedImages, b.privilegedImages) && @@ -116,10 +118,13 @@ func New(opts ...Opt) (*client, error) { } // instantiate map for non-plugin secrets c.Secrets = make(map[string]*library.Secret) + // instantiate map for non-substituted secrets + c.NoSubSecrets = make(map[string]*library.Secret) + // instantiate all client services c.secret = &secretSvc{client: c} return c, nil } diff --git a/executor/linux/secret.go b/executor/linux/secret.go index f9874d3..17759d8 100644 --- a/executor/linux/secret.go +++ b/executor/linux/secret.go @@ -65,10 +65,17 @@ func (s *secretSvc) create(ctx context.Context, ctn *pipeline.Container) error { err = ctn.Substitute() if err != nil { return fmt.Errorf("unable to substitute container configuration") } + logger.Debug("injecting non-substituted secrets") + // inject no-substitution secrets for container + err = injectSecrets(ctn, s.client.NoSubSecrets) + if err != nil { + return err + } + return nil } // destroy cleans up secret plugin after execution. func (s *secretSvc) destroy(ctx context.Context, ctn *pipeline.Container) error { diff --git a/executor/linux/service.go b/executor/linux/service.go index 22ea926..7ba8246 100644 --- a/executor/linux/service.go +++ b/executor/linux/service.go @@ -53,10 +53,17 @@ func (c *client) CreateService(ctx context.Context, ctn *pipeline.Container) err err = ctn.Substitute() if err != nil { return fmt.Errorf("unable to substitute container configuration") } + logger.Debug("injecting non-substituted secrets") + // inject no-substitution secrets for container + err = injectSecrets(ctn, c.NoSubSecrets) + if err != nil { + return err + } + return nil } // PlanService prepares the service for execution. func (c *client) PlanService(ctx context.Context, ctn *pipeline.Container) error { diff --git a/executor/linux/step.go b/executor/linux/step.go index c34dbd8..a272784 100644 --- a/executor/linux/step.go +++ b/executor/linux/step.go @@ -63,10 +63,17 @@ func (c *client) CreateStep(ctx context.Context, ctn *pipeline.Container) error err = ctn.Substitute() if err != nil { return fmt.Errorf("unable to substitute container configuration") } + logger.Debug("injecting non-substituted secrets") + // inject no-substitution secrets for container + err = injectSecrets(ctn, c.NoSubSecrets) + if err != nil { + return err + } + return nil } // PlanStep prepares the step for execution. func (c *client) PlanStep(ctx context.Context, ctn *pipeline.Container) error { diff --git a/go.mod b/go.mod index 0c0de72..9ae8786 100644 --- a/go.mod +++ b/go.mod @@ -6,13 +6,13 @@ require ( github.com/Masterminds/semver/v3 v3.2.1 github.com/distribution/reference v0.5.0 github.com/docker/docker v24.0.9+incompatible github.com/docker/go-units v0.5.0 github.com/gin-gonic/gin v1.9.1 - github.com/go-vela/sdk-go v0.23.1 - github.com/go-vela/server v0.23.1 - github.com/go-vela/types v0.23.1 + github.com/go-vela/sdk-go v0.23.2-0.20240312184917-e3a34719badf + github.com/go-vela/server v0.23.2-0.20240312184244-a645c822da1d + github.com/go-vela/types v0.23.2-0.20240312183632-2e046fceb8fe github.com/golang-jwt/jwt/v5 v5.2.0 github.com/google/go-cmp v0.6.0 github.com/joho/godotenv v1.5.1 github.com/opencontainers/image-spec v1.1.0 github.com/prometheus/client_golang v1.18.0 diff --git a/go.sum b/go.sum index 43c234f..e00b6af 100644 --- a/go.sum +++ b/go.sum @@ -92,16 +92,16 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/go-vela/sdk-go v0.23.1 h1:4KxfAF1vR8DvtRraBoWQDIm8f8zxXP806lJR3MmTlC8= -github.com/go-vela/sdk-go v0.23.1/go.mod h1:zDsZIePtBdpCZwmwAWqGWuIch/oGliX1zd51PARTHBk= -github.com/go-vela/server v0.23.1 h1:Y+mGfB79RjIgQ3IEkPjGB6IneB2So3ZXE4XKY+Z02xc= -github.com/go-vela/server v0.23.1/go.mod h1:B+A5lRPOlAVYyXBMGCAJKhPQOlfJuWl3qaRcvhsUqSA= -github.com/go-vela/types v0.23.1 h1:st4BeDcYVyaaFqblU1YroztNvmYLBgmfZpWq0En0Sg0= -github.com/go-vela/types v0.23.1/go.mod h1:AAqgxIw1aRBgPkE/5juGuiwh/JZuOtL8fcPaEkjFWwQ= +github.com/go-vela/sdk-go v0.23.2-0.20240312184917-e3a34719badf h1:8Oka4tMHOdy/DsInyg7c/XPY5wqWWE7Yvzx/u67WBuw= +github.com/go-vela/sdk-go v0.23.2-0.20240312184917-e3a34719badf/go.mod h1:XjrVfIDw2SZDFBtJ5vqVse/GFj89MF542N20P8U5a3I= +github.com/go-vela/server v0.23.2-0.20240312184244-a645c822da1d h1:VynpkAIMt3KTh9BaICQdpu6c76/hHU3d4/Ab44bmFew= +github.com/go-vela/server v0.23.2-0.20240312184244-a645c822da1d/go.mod h1:EsDVTqQHQ9snXG2DhUl9uo4+Cf/b9nMiESCkxSjmP90= +github.com/go-vela/types v0.23.2-0.20240312183632-2e046fceb8fe h1:Fb28yre0nrX1GNeyPN8i8rruTlW8MnPVF3Fo5xTuOkg= +github.com/go-vela/types v0.23.2-0.20240312183632-2e046fceb8fe/go.mod h1:AAqgxIw1aRBgPkE/5juGuiwh/JZuOtL8fcPaEkjFWwQ= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw=
// add secret to the map c.Secrets[secret.Name] = s // add secret to the temp map lazySecrets[secret.Name] = s Logger *logrus.Entry Vela *vela.Client Runtime runtime.Engine Secrets map[string]*library.Secret Hostname string Version string github.com/go-vela/sdk-go v0.23.1 github.com/go-vela/server v0.23.1 github.com/go-vela/types v0.23.1 github.com/go-vela/sdk-go v0.23.1 h1:4KxfAF1vR8DvtRraBoWQDIm8f8zxXP806lJR3MmTlC8= github.com/go-vela/sdk-go v0.23.1/go.mod h1:zDsZIePtBdpCZwmwAWqGWuIch/oGliX1zd51PARTHBk= github.com/go-vela/server v0.23.1 h1:Y+mGfB79RjIgQ3IEkPjGB6IneB2So3ZXE4XKY+Z02xc= github.com/go-vela/server v0.23.1/go.mod h1:B+A5lRPOlAVYyXBMGCAJKhPQOlfJuWl3qaRcvhsUqSA= github.com/go-vela/types v0.23.1 h1:st4BeDcYVyaaFqblU1YroztNvmYLBgmfZpWq0En0Sg0= github.com/go-vela/types v0.23.1/go.mod h1:AAqgxIw1aRBgPkE/5juGuiwh/JZuOtL8fcPaEkjFWwQ=
// add secret to the appropriate map if s.GetAllowSubstitution() { c.Secrets[secret.Name] = s } else { c.NoSubSecrets[secret.Name] = s } lazyNoSubSecrets := make(map[string]*library.Secret) // add secret to the appropriate temp map if s.GetAllowSubstitution() { lazySecrets[secret.Name] = s } else { lazyNoSubSecrets[secret.Name] = s } c.Logger.Debug("injecting no-sub lazy loaded secrets") // inject secrets for container err = injectSecrets(tmpStep, lazyNoSubSecrets) if err != nil { return err } Logger *logrus.Entry Vela *vela.Client Runtime runtime.Engine Secrets map[string]*library.Secret NoSubSecrets map[string]*library.Secret Hostname string Version string reflect.DeepEqual(a.NoSubSecrets, b.NoSubSecrets) && // instantiate map for non-substituted secrets c.NoSubSecrets = make(map[string]*library.Secret) logger.Debug("injecting non-substituted secrets") // inject no-substitution secrets for container err = injectSecrets(ctn, s.client.NoSubSecrets) if err != nil { return err } logger.Debug("injecting non-substituted secrets") // inject no-substitution secrets for container err = injectSecrets(ctn, c.NoSubSecrets) if err != nil { return err } logger.Debug("injecting non-substituted secrets") // inject no-substitution secrets for container err = injectSecrets(ctn, c.NoSubSecrets) if err != nil { return err } github.com/go-vela/sdk-go v0.23.2-0.20240312184917-e3a34719badf github.com/go-vela/server v0.23.2-0.20240312184244-a645c822da1d github.com/go-vela/types v0.23.2-0.20240312183632-2e046fceb8fe github.com/go-vela/sdk-go v0.23.2-0.20240312184917-e3a34719badf h1:8Oka4tMHOdy/DsInyg7c/XPY5wqWWE7Yvzx/u67WBuw= github.com/go-vela/sdk-go v0.23.2-0.20240312184917-e3a34719badf/go.mod h1:XjrVfIDw2SZDFBtJ5vqVse/GFj89MF542N20P8U5a3I= github.com/go-vela/server v0.23.2-0.20240312184244-a645c822da1d h1:VynpkAIMt3KTh9BaICQdpu6c76/hHU3d4/Ab44bmFew= github.com/go-vela/server v0.23.2-0.20240312184244-a645c822da1d/go.mod h1:EsDVTqQHQ9snXG2DhUl9uo4+Cf/b9nMiESCkxSjmP90= github.com/go-vela/types v0.23.2-0.20240312183632-2e046fceb8fe h1:Fb28yre0nrX1GNeyPN8i8rruTlW8MnPVF3Fo5xTuOkg= github.com/go-vela/types v0.23.2-0.20240312183632-2e046fceb8fe/go.mod h1:AAqgxIw1aRBgPkE/5juGuiwh/JZuOtL8fcPaEkjFWwQ=
[]
CVE-2023-32070
c40e2f5f9482ec6c3e71dbf1fff5ba8a5e44cdc1
https://github.com/xwiki/xwiki-rendering
[{'lang': 'en', 'value': "XWiki Platform is a generic wiki platform. Prior to version 14.6-rc-1, HTML rendering didn't check for dangerous attributes/attribute values. This allowed cross-site scripting (XSS) attacks via attributes and link URLs, e.g., supported in XWiki syntax. This has been patched in XWiki 14.6-rc-1. There are no known workarounds apart from upgrading to a fixed version."}]
null
6.1
2023-05-10T18:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
XRENDERING-663: Restrict allowed attributes in HTML rendering * Change HTML renderers to only print allowed attributes and elements. * Add prefix to forbidden attributes to preserve them in XWiki syntax. * Adapt tests to expect that invalid attributes get a prefix.
2022-06-30 16:47:21 +0200
c40e2f5f
1,624
2
[ "xwiki-rendering-integration-tests/src/test/resources/simple/escape/escape15.test", "xwiki-rendering-integration-tests/src/test/resources/simple/group/group9.test", "xwiki-rendering-integration-tests/src/test/resources/simple/horizontalline/horizontalline5.test", "xwiki-rendering-integration-tests/src/test/resources/simple/italic/italic8.test", "xwiki-rendering-integration-tests/src/test/resources/simple/list/definitionlist7.test", "xwiki-rendering-integration-tests/src/test/resources/simple/list/list13.test", "xwiki-rendering-integration-tests/src/test/resources/simple/list/list8.test", "xwiki-rendering-integration-tests/src/test/resources/simple/macros/macro10.test", "xwiki-rendering-integration-tests/src/test/resources/simple/paragraph/paragraph6.test", "xwiki-rendering-integration-tests/src/test/resources/simple/quote/quote3.test", "xwiki-rendering-integration-tests/src/test/resources/simple/section/section6.test", "xwiki-rendering-integration-tests/src/test/resources/simple/strikedout/strikedout4.test", "xwiki-rendering-integration-tests/src/test/resources/simple/subscript/subscript2.test", "xwiki-rendering-integration-tests/src/test/resources/simple/superscript/superscript2.test", "xwiki-rendering-integration-tests/src/test/resources/simple/table/table3.test", "xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim6.test", "xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim7.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image1.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image12.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image8.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image9.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links14.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links15.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links19.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links2.test", "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links8.test", "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRenderer.java", "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedhtml5/HTMLMacroAnnotatedHTML5Renderer.java", "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedxhtml/HTMLMacroAnnotatedXHTMLRenderer.java", "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/html5/HTMLMacroHTML5Renderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5ChainingRenderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5Renderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/test/resources/annotatedhtml50/simple/monospace/monospace2.out.txt", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLChainingRenderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLRenderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5ChainingRenderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5Renderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/test/java/org/xwiki/rendering/internal/html5/HTML5ChainingRendererTest.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/parser/xhtml/wikimodel/XHTMLXWikiGeneratorListener.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLRenderer.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRendererTest.java", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/monospace/monospace2.inout.txt", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/bold/bold4.test", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/encoding/encoding1.test", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/group/group1.test", "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml5/src/test/resources/xhtml5/simple/monospace/monospace2.inout.txt", "xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java" ]
Other
{"xwiki-rendering-integration-tests/src/test/resources/simple/escape/escape15.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/simple/group/group9.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/horizontalline/horizontalline5.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/italic/italic8.test": {"lines_added": 1, "lines_deleted": 1}, "xwiki-rendering-integration-tests/src/test/resources/simple/list/definitionlist7.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/list/list13.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/list/list8.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/macros/macro10.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/simple/paragraph/paragraph6.test": {"lines_added": 1, "lines_deleted": 1}, "xwiki-rendering-integration-tests/src/test/resources/simple/quote/quote3.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/section/section6.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/strikedout/strikedout4.test": {"lines_added": 1, "lines_deleted": 1}, "xwiki-rendering-integration-tests/src/test/resources/simple/subscript/subscript2.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/superscript/superscript2.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/table/table3.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim6.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim7.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image1.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image12.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image8.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/wiki/image/image9.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links14.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links15.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links19.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links2.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-integration-tests/src/test/resources/wiki/link/links8.test": {"lines_added": 3, "lines_deleted": 3}, "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRenderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedhtml5/HTMLMacroAnnotatedHTML5Renderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedxhtml/HTMLMacroAnnotatedXHTMLRenderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/html5/HTMLMacroHTML5Renderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5ChainingRenderer.java": {"lines_added": 4, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5Renderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/test/resources/annotatedhtml50/simple/monospace/monospace2.out.txt": {"lines_added": 1, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLChainingRenderer.java": {"lines_added": 4, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLRenderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5ChainingRenderer.java": {"lines_added": 6, "lines_deleted": 4}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5Renderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/test/java/org/xwiki/rendering/internal/html5/HTML5ChainingRendererTest.java": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/parser/xhtml/wikimodel/XHTMLXWikiGeneratorListener.java": {"lines_added": 47, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java": {"lines_added": 18, "lines_deleted": 8}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLRenderer.java": {"lines_added": 6, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRendererTest.java": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/monospace/monospace2.inout.txt": {"lines_added": 1, "lines_deleted": 1}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/bold/bold4.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/encoding/encoding1.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/group/group1.test": {"lines_added": 2, "lines_deleted": 2}, "xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml5/src/test/resources/xhtml5/simple/monospace/monospace2.inout.txt": {"lines_added": 1, "lines_deleted": 1}, "xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java": {"lines_added": 132, "lines_deleted": 21}}
diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/escape/escape15.test b/xwiki-rendering-integration-tests/src/test/resources/simple/escape/escape15.test index be4017ec..3dc50f45 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/escape/escape15.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/escape/escape15.test @@ -18,18 +18,18 @@ endLink [Typed = [false] Type = [url] Reference = [refe||rence]] [false] [[param endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><span class="wikiexternallink"><a param="value" href="refe||rence">lab&gt;&gt;el~</a></span></p> +<p><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="refe||rence">lab&gt;&gt;el~</a></span></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> +<p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[lab~>~>el~~~~>>refe~|~|rence||param="value"]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> \ No newline at end of file +<p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/group/group9.test b/xwiki-rendering-integration-tests/src/test/resources/simple/group/group9.test index 4558bcc3..4f4a28bf 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/group/group9.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/group/group9.test @@ -27,11 +27,11 @@ endParagraph endGroup [[param]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<div param="value"><p>some text</p></div><div param="value"><p>some text</p></div> +<div data-xwiki-translated-attribute-param="value"><p>some text</p></div><div data-xwiki-translated-attribute-param="value"><p>some text</p></div> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) ((( @@ -43,6 +43,6 @@ some text some text ))) .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<div param="value"><p>some text</p></div><div param="value"><p>some text</p></div> \ No newline at end of file +<div data-xwiki-translated-attribute-param="value"><p>some text</p></div><div data-xwiki-translated-attribute-param="value"><p>some text</p></div> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/horizontalline/horizontalline5.test b/xwiki-rendering-integration-tests/src/test/resources/simple/horizontalline/horizontalline5.test index 4e961580..77926059 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/horizontalline/horizontalline5.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/horizontalline/horizontalline5.test @@ -10,15 +10,15 @@ beginDocument onHorizontalLine [[param]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<hr param="value"/> +<hr data-xwiki-translated-attribute-param="value"/> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) ---- .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<html><hr param="value"/></html> \ No newline at end of file +<html><hr data-xwiki-translated-attribute-param="value"/></html> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/italic/italic8.test b/xwiki-rendering-integration-tests/src/test/resources/simple/italic/italic8.test index ed9d6b98..c54995c5 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/italic/italic8.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/italic/italic8.test @@ -14,10 +14,10 @@ endFormat [ITALIC] [[a]=[b]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><em><span a="b">something</span></em></p> +<p><em><span data-xwiki-translated-attribute-a="b">something</span></em></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% a="b" %)//something// \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/list/definitionlist7.test b/xwiki-rendering-integration-tests/src/test/resources/simple/list/definitionlist7.test index 6a29ba11..49376267 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/list/definitionlist7.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/list/definitionlist7.test @@ -19,21 +19,21 @@ endDefinitionDescription endDefinitionList [[param]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<dl param="value"><dt>title</dt><dd>definition</dd></dl> +<dl data-xwiki-translated-attribute-param="value"><dt>title</dt><dd>definition</dd></dl> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) ; title : definition .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<dl param="value"><dt>title</dt><dd>definition</dd></dl> +<dl data-xwiki-translated-attribute-param="value"><dt>title</dt><dd>definition</dd></dl> .#----------------------------------------------------- .expect|plain/1.0 .#----------------------------------------------------- title definition \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/list/list13.test b/xwiki-rendering-integration-tests/src/test/resources/simple/list/list13.test index 0c6261ac..501c1a98 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/list/list13.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/list/list13.test @@ -40,11 +40,11 @@ endListItem endList [BULLETED] [[param]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<ul param="value"><li>item 1<ul param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> +<ul data-xwiki-translated-attribute-param="value"><li>item 1<ul data-xwiki-translated-attribute-param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) * item 1 @@ -52,6 +52,6 @@ endDocument ** item 1.1 *** item 1.1.1 .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<ul param="value"><li>item 1<ul param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> \ No newline at end of file +<ul data-xwiki-translated-attribute-param="value"><li>item 1<ul data-xwiki-translated-attribute-param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/list/list8.test b/xwiki-rendering-integration-tests/src/test/resources/simple/list/list8.test index 12ea8688..fbf15aa0 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/list/list8.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/list/list8.test @@ -14,15 +14,15 @@ endListItem endList [BULLETED] [[param1]=[value1][param2]=[value2]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<ul param1="value1" param2="value2"><li>item</li></ul> +<ul data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><li>item</li></ul> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param1="value1" param2="value2" %) * item .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<html><ul param1="value1" param2="value2"><li>item</li></ul></html> \ No newline at end of file +<html><ul data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><li>item</li></ul></html> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/macros/macro10.test b/xwiki-rendering-integration-tests/src/test/resources/simple/macros/macro10.test index e06d1aa7..dc6594bc 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/macros/macro10.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/macros/macro10.test @@ -42,14 +42,14 @@ endMacroMarkerInline [testformatmacro] [] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<span param="value">formatmacro2</span><p><span a="b"><span param="value">formatmacro3</span> text</span></p><p><span a="b">text</span><span param="value">formatmacro4</span></p> +<span data-xwiki-translated-attribute-param="value">formatmacro2</span><p><span data-xwiki-translated-attribute-a="b"><span data-xwiki-translated-attribute-param="value">formatmacro3</span> text</span></p><p><span data-xwiki-translated-attribute-a="b">text</span><span data-xwiki-translated-attribute-param="value">formatmacro4</span></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<!--startmacro:testformatmacro|-|--><span param="value">formatmacro2</span><!--stopmacro--><p><span a="b"><!--startmacro:testformatmacro|-|--><span param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span a="b">text</span><!--startmacro:testformatmacro|-|--><span param="value">formatmacro4</span><!--stopmacro--></p> +<!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro2</span><!--stopmacro--><p><span data-xwiki-translated-attribute-a="b"><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span data-xwiki-translated-attribute-a="b">text</span><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro4</span><!--stopmacro--></p> .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<!--startmacro:testformatmacro|-|--><span param="value">formatmacro2</span><!--stopmacro--><p><span a="b"><!--startmacro:testformatmacro|-|--><span param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span a="b">text</span><!--startmacro:testformatmacro|-|--><span param="value">formatmacro4</span><!--stopmacro--></p> \ No newline at end of file +<!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro2</span><!--stopmacro--><p><span data-xwiki-translated-attribute-a="b"><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span data-xwiki-translated-attribute-a="b">text</span><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro4</span><!--stopmacro--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/paragraph/paragraph6.test b/xwiki-rendering-integration-tests/src/test/resources/simple/paragraph/paragraph6.test index 4e40072a..e94b7a37 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/paragraph/paragraph6.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/paragraph/paragraph6.test @@ -103,11 +103,11 @@ endFormat [BOLD] [[param2]=[value2]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p param1="value1" param2="value2"><span param3="value3">hello</span> world</p><p><span param4="valueA">hello&nbsp;</span><span param4="valueB">world</span></p><p><strong><span param5="value4">hello</span></strong><span param5="value4">&nbsp;world</span></p><p><span param6="valueA">hello&nbsp;</span><span param7="valueB">world</span></p><p>before<span param="value">x</span><strong>y</strong>after</p><p>12<strong>34<span param="value">56</span>78</strong>90</p><p><span param="value">1<em>2</em></span><em>3</em></p><p><strong><span param1="value1">1</span></strong><strong><span param2="value2">2</span></strong></p> +<p data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><span data-xwiki-translated-attribute-param3="value3">hello</span> world</p><p><span data-xwiki-translated-attribute-param4="valueA">hello&nbsp;</span><span data-xwiki-translated-attribute-param4="valueB">world</span></p><p><strong><span data-xwiki-translated-attribute-param5="value4">hello</span></strong><span data-xwiki-translated-attribute-param5="value4">&nbsp;world</span></p><p><span data-xwiki-translated-attribute-param6="valueA">hello&nbsp;</span><span data-xwiki-translated-attribute-param7="valueB">world</span></p><p>before<span data-xwiki-translated-attribute-param="value">x</span><strong>y</strong>after</p><p>12<strong>34<span data-xwiki-translated-attribute-param="value">56</span>78</strong>90</p><p><span data-xwiki-translated-attribute-param="value">1<em>2</em></span><em>3</em></p><p><strong><span data-xwiki-translated-attribute-param1="value1">1</span></strong><strong><span data-xwiki-translated-attribute-param2="value2">2</span></strong></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param1="value1" param2="value2" %) (% param3="value3" %)hello(%%) world diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/quote/quote3.test b/xwiki-rendering-integration-tests/src/test/resources/simple/quote/quote3.test index e1e30972..813066e1 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/quote/quote3.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/quote/quote3.test @@ -14,15 +14,15 @@ endQuotationLine endQuotation [[param1]=[value1][param2]=[value2]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<blockquote param1="value1" param2="value2"><p>line</p></blockquote> +<blockquote data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><p>line</p></blockquote> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param1="value1" param2="value2" %) >line .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<blockquote param1="value1" param2="value2"><p>line</p></blockquote> \ No newline at end of file +<blockquote data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><p>line</p></blockquote> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/section/section6.test b/xwiki-rendering-integration-tests/src/test/resources/simple/section/section6.test index 68eb843c..322323d9 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/section/section6.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/section/section6.test @@ -15,15 +15,15 @@ endHeader [1, Hheader] [[param]=[value]] endSection endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<h1 id="Hheader" class="wikigeneratedid" param="value"><span>header</span></h1> +<h1 id="Hheader" class="wikigeneratedid" data-xwiki-translated-attribute-param="value"><span>header</span></h1> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) = header = .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<html><h1 id="Hheader" class="wikigeneratedid" param="value"><span>header</span></h1></html> \ No newline at end of file +<html><h1 id="Hheader" class="wikigeneratedid" data-xwiki-translated-attribute-param="value"><span>header</span></h1></html> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/strikedout/strikedout4.test b/xwiki-rendering-integration-tests/src/test/resources/simple/strikedout/strikedout4.test index f32eff38..5f0e7819 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/strikedout/strikedout4.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/strikedout/strikedout4.test @@ -14,10 +14,10 @@ endFormat [STRIKEDOUT] [[a]=[b]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><del><span a="b">something</span></del></p> +<p><del><span data-xwiki-translated-attribute-a="b">something</span></del></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% a="b" %)--something-- \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/subscript/subscript2.test b/xwiki-rendering-integration-tests/src/test/resources/simple/subscript/subscript2.test index 9793fd4e..32997b8c 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/subscript/subscript2.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/subscript/subscript2.test @@ -1,10 +1,10 @@ .#----------------------------------------------------- .input|xhtml/1.0 .# Verify that SUB tag parameters are recognized. .#----------------------------------------------------- -<html><p><sub a="b">something</sub></p></html> +<html><p><sub data-xwiki-translated-attribute-a="b">something</sub></p></html> .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginParagraph @@ -14,10 +14,10 @@ endFormat [SUBSCRIPT] [[a]=[b]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><sub><span a="b">something</span></sub></p> +<p><sub><span data-xwiki-translated-attribute-a="b">something</span></sub></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% a="b" %),,something,, \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/superscript/superscript2.test b/xwiki-rendering-integration-tests/src/test/resources/simple/superscript/superscript2.test index b22a5104..bac160af 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/superscript/superscript2.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/superscript/superscript2.test @@ -1,10 +1,10 @@ .#----------------------------------------------------- .input|xhtml/1.0 .# Verify that SUP tag parameters are recognized. .#----------------------------------------------------- -<html><p><sup a="b">something</sup></p></html> +<html><p><sup data-xwiki-translated-attribute-a="b">something</sup></p></html> .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginParagraph @@ -14,10 +14,10 @@ endFormat [SUPERSCRIPT] [[a]=[b]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><sup><span a="b">something</span></sup></p> +<p><sup><span data-xwiki-translated-attribute-a="b">something</span></sup></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% a="b" %)^^something^^ \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/table/table3.test b/xwiki-rendering-integration-tests/src/test/resources/simple/table/table3.test index 52864bde..e7093764 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/table/table3.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/table/table3.test @@ -41,11 +41,11 @@ endTableRow [[c]=[d]] endTable [[a]=[b]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table><table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table> +<table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table><table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% a="b" %) (% c="d" %)|=(% e="f" %)(% g="h" %)cell1|(% i="j" %)(% k="l" %)cell2 @@ -53,6 +53,6 @@ endDocument (% a="b" %) (% c="d" %)|=(% e="f" %)(% g="h" %)cell1|(% i="j" %)(% k="l" %)cell2 .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table><table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table> \ No newline at end of file +<table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table><table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim6.test b/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim6.test index d50322ec..936819a6 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim6.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim6.test @@ -10,15 +10,15 @@ beginDocument onVerbatim [abc] [false] [[param]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<pre param="value">abc</pre> +<pre data-xwiki-translated-attribute-param="value">abc</pre> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) {{{abc}}} .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<html><pre param="value">abc</pre></html> +<html><pre data-xwiki-translated-attribute-param="value">abc</pre></html> diff --git a/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim7.test b/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim7.test index 4256f509..356cbbdf 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim7.test +++ b/xwiki-rendering-integration-tests/src/test/resources/simple/verbatim/verbatim7.test @@ -14,15 +14,15 @@ endFormat [NONE] [[param2]=[value2]] endParagraph [[param]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p param="value"><span param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> +<p data-xwiki-translated-attribute-param="value"><span data-xwiki-translated-attribute-param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (% param="value" %) (% param2="value2" %){{{abc}}} .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p param="value"><span param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> \ No newline at end of file +<p data-xwiki-translated-attribute-param="value"><span data-xwiki-translated-attribute-param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image1.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image1.test index 29012830..c2d35111 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image1.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image1.test @@ -14,19 +14,19 @@ onImage [Typed = [false] Type = [attach] Reference = [Space.ExistingPage@my.png] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><br/><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> +<p><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><br/><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> +<p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[image:my.png||param1="value1" param2="value2"]] [[image:Space.ExistingPage@my.png]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> \ No newline at end of file +<p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image12.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image12.test index c5c46c7c..9757979c 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image12.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image12.test @@ -63,10 +63,10 @@ endFigureCaption endFigure [[class]=[image]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><div class="figcaption"><p>Image <strong>Caption</strong></p></div><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><div class="figcaption"><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></div> +<img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><div class="figcaption"><p>Image <strong>Caption</strong></p></div><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><div class="figcaption"><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></div> .#----------------------------------------------------- .expect|html/5.0 .#----------------------------------------------------- -<figure class="image"><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><figcaption><p>Image <strong>Caption</strong></p></figcaption></figure><figure class="image"><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><figcaption><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></figcaption></figure> \ No newline at end of file +<figure class="image"><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><figcaption><p>Image <strong>Caption</strong></p></figcaption></figure><figure class="image"><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><figcaption><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></figcaption></figure> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image8.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image8.test index 57810db8..ed5ac8e5 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image8.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image8.test @@ -13,18 +13,18 @@ onImage [Typed = [false] Type = [attach] Reference = [Space.ExistingPage@my.png? endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><img src="imageurl" param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/></p> +<p><img src="imageurl" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> +<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[image:Space.ExistingPage@my.png?param1=value1||param2="value2"]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> \ No newline at end of file +<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image9.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image9.test index d3525c0b..693fd233 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image9.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/image/image9.test @@ -13,18 +13,18 @@ onImage [Typed = [false] Type = [attach] Reference = [Space.ExistingPage@my.png] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><img src="imageurl?param1=value1" param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> +<p><img src="imageurl?param1=value1" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> +<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> .#----------------------------------------------------- .expect|xwiki/2.1 .#----------------------------------------------------- [[image:Space.ExistingPage@my.png||queryString="param1=value1" param2="value2"]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> \ No newline at end of file +<p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links14.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links14.test index 2a59e7a2..3a8b8b94 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links14.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links14.test @@ -14,18 +14,18 @@ endLink [Typed = [false] Type = [url] Reference = [http://xwiki.org]] [false] [[ endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><span class="wikiexternallink"><a param="value" href="http://xwiki.org"><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/></a></span></p> +<p><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="http://xwiki.org"><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/></a></span></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> +<p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[~[~[image:attach.png~|~|height="100" width="100"~]~]>>http://xwiki.org||param="value"]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> \ No newline at end of file +<p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links15.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links15.test index bded0253..24d00a90 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links15.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links15.test @@ -16,19 +16,19 @@ endLink [Typed = [true] Type = [attach] Reference = [Space.ExistingPage@my.png]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><span class="wikiattachmentlink"><a param1="value1" param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><br/><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span></p> +<p><span class="wikiattachmentlink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><br/><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a param1="value1" param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> +<p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[attach:my.png||param1="value1" param2="value2"]] [[attach:Space.ExistingPage@my.png]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a param1="value1" param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> \ No newline at end of file +<p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links19.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links19.test index bc4a356e..145c9224 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links19.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links19.test @@ -2,11 +2,11 @@ .input|xhtml/1.0 .# Verify that the XHTML parser can understand anchors without the special anchor comment format .# that the XHTML Renderer uses. Note that for now the HREF value is considered containing .# XWiki link syntax. .#---------------------------------------------------------------------------------------------- -<p><a href="http://reference" param1="value1">http://reference</a></p> +<p><a href="http://reference" data-xwiki-translated-attribute-param1="value1">http://reference</a></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- .#----------------------------------------------------- .expect|event/1.0 @@ -27,6 +27,6 @@ endDocument .#----------------------------------------------------- [[http:~~/~~/reference>>http://reference||param1="value1"]] .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><span class="wikiexternallink"><a param1="value1" href="http://reference">http://reference</a></span></p> \ No newline at end of file +<p><span class="wikiexternallink"><a data-xwiki-translated-attribute-param1="value1" href="http://reference">http://reference</a></span></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links2.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links2.test index 13ce8030..21f63c23 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links2.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links2.test @@ -19,15 +19,15 @@ endLink [Typed = [false] Type = [doc] Reference = [Space.ExistingPage] Parameter endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><span class="wikilink"><a param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span></p> +<p><span class="wikilink"><a data-xwiki-translated-attribute-param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> +<p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a data-xwiki-translated-attribute-param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[Space.ExistingPage#anchor?param1=value1||param2="value2"]] .#----------------------------------------------------- @@ -35,6 +35,6 @@ endDocument .#----------------------------------------------------- [[Space.ExistingPage||queryString="param1=value1" anchor="anchor" param2="value2"]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> \ No newline at end of file +<p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a data-xwiki-translated-attribute-param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> \ No newline at end of file diff --git a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links8.test b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links8.test index 638378cf..17ee7f72 100644 --- a/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links8.test +++ b/xwiki-rendering-integration-tests/src/test/resources/wiki/link/links8.test @@ -17,19 +17,19 @@ endLink [Typed = [false] Type = [doc] Reference = [Space.UnknownPage]] [false] [ endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><span class="wikilink"><a param1="value1" param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><br/><span class="wikicreatelink"><a param="value" href="editurl">label</a></span></p> +<p><span class="wikilink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><br/><span class="wikicreatelink"><a data-xwiki-translated-attribute-param="value" href="editurl">label</a></span></p> .#----------------------------------------------------- .expect|annotatedxhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a param1="value1" param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a param="value" href="editurl">label</a></span><!--stopwikilink--></p> +<p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a data-xwiki-translated-attribute-param="value" href="editurl">label</a></span><!--stopwikilink--></p> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- [[Space.ExistingPage||param1="value1" param2="value2"]] [[label>>Space.UnknownPage||param="value"]] .#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- -<p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a param1="value1" param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a param="value" href="editurl">label</a></span><!--stopwikilink--></p> \ No newline at end of file +<p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a data-xwiki-translated-attribute-param="value" href="editurl">label</a></span><!--stopwikilink--></p> \ No newline at end of file diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRenderer.java b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRenderer.java index 04d9e4c5..0b995480 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRenderer.java +++ b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRenderer.java @@ -27,10 +27,11 @@ import org.xwiki.component.descriptor.ComponentInstantiationStrategy; import org.xwiki.rendering.internal.renderer.xhtml.XHTMLChainingRenderer; import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Renderer that generates XHTML from a XDOM resulting from the parsing of text containing HTML mixed with wiki syntax. * * @version $Id$ @@ -55,11 +56,15 @@ public class HTMLMacroXHTMLRenderer extends AbstractHTMLMacroRenderer * attachments, we get its URL, etc. */ @Inject private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override protected AbstractChainingPrintRenderer getSyntaxRenderer() { - return new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); + return new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, + getListenerChain()); } } diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedhtml5/HTMLMacroAnnotatedHTML5Renderer.java b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedhtml5/HTMLMacroAnnotatedHTML5Renderer.java index b7d149a6..65f423a6 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedhtml5/HTMLMacroAnnotatedHTML5Renderer.java +++ b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedhtml5/HTMLMacroAnnotatedHTML5Renderer.java @@ -28,10 +28,11 @@ import org.xwiki.rendering.internal.macro.html.AbstractHTMLMacroRenderer; import org.xwiki.rendering.internal.renderer.html5.AnnotatedHTML5ChainingRenderer; import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Renderer that generates Annotated HTML5 from a XDOM resulting from the parsing of text containing HTML mixed with * wiki syntax. * @@ -57,11 +58,15 @@ public class HTMLMacroAnnotatedHTML5Renderer extends AbstractHTMLMacroRenderer * attachments, we get its URL, etc. */ @Inject private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override protected AbstractChainingPrintRenderer getSyntaxRenderer() { - return new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); + return new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, + getListenerChain()); } } diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedxhtml/HTMLMacroAnnotatedXHTMLRenderer.java b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedxhtml/HTMLMacroAnnotatedXHTMLRenderer.java index d8205803..e6897a4f 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedxhtml/HTMLMacroAnnotatedXHTMLRenderer.java +++ b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/annotatedxhtml/HTMLMacroAnnotatedXHTMLRenderer.java @@ -28,10 +28,11 @@ import org.xwiki.rendering.internal.macro.html.AbstractHTMLMacroRenderer; import org.xwiki.rendering.internal.renderer.xhtml.AnnotatedXHTMLChainingRenderer; import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Renderer that generates Annotated XHTML from a XDOM resulting from the parsing of text containing HTML mixed with * wiki syntax. * @@ -59,11 +60,15 @@ public class HTMLMacroAnnotatedXHTMLRenderer extends AbstractHTMLMacroRenderer */ @Inject @Named("annotated") private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override protected AbstractChainingPrintRenderer getSyntaxRenderer() { - return new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); + return new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, + getListenerChain()); } } diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/html5/HTMLMacroHTML5Renderer.java b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/html5/HTMLMacroHTML5Renderer.java index 132e3a05..4792d170 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/html5/HTMLMacroHTML5Renderer.java +++ b/xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/renderers/html5/HTMLMacroHTML5Renderer.java @@ -28,10 +28,11 @@ import org.xwiki.rendering.internal.macro.html.AbstractHTMLMacroRenderer; import org.xwiki.rendering.internal.renderer.html5.HTML5ChainingRenderer; import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Renderer that generates HTML5 from a XDOM resulting from the parsing of text containing HTML mixed with * wiki syntax. * @@ -57,11 +58,15 @@ public class HTMLMacroHTML5Renderer extends AbstractHTMLMacroRenderer * attachments, we get its URL, etc. */ @Inject private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override protected AbstractChainingPrintRenderer getSyntaxRenderer() { - return new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); + return new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, + getListenerChain()); } } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5ChainingRenderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5ChainingRenderer.java index ee6f818f..c37d941d 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5ChainingRenderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5ChainingRenderer.java @@ -26,10 +26,11 @@ import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.listener.MetaData; import org.xwiki.rendering.listener.chaining.BlockStateChainingListener; import org.xwiki.rendering.listener.chaining.ListenerChain; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Convert listener events to annotated HTML5. See {@link AnnotatedHTML5Renderer} for more details on what Annotated * HTML5 is. * @@ -53,16 +54,17 @@ public class AnnotatedHTML5ChainingRenderer extends HTML5ChainingRenderer * rendering depends on how the underlying system wants to handle it. For example for XWiki we check if * the document exists, we get the document URL, etc. * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable because * image rendering depends on how the underlying system wants to handle it. For example for XWiki we * check if the image exists as a document attachments, we get its URL, etc. + * @param htmlElementSanitizer the HTML element sanitizer to use * @param listenerChain the chain of listener filters used to compute various states */ public AnnotatedHTML5ChainingRenderer(XHTMLLinkRenderer linkRenderer, - XHTMLImageRenderer imageRenderer, ListenerChain listenerChain) + XHTMLImageRenderer imageRenderer, HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) { - super(linkRenderer, imageRenderer, listenerChain); + super(linkRenderer, imageRenderer, htmlElementSanitizer, listenerChain); this.macroRenderer = new XHTMLMacroRenderer(); this.metaDataRenderer = new XHTMLMetaDataRenderer(); } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5Renderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5Renderer.java index 750d08f5..43540bf1 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5Renderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/main/java/org/xwiki/rendering/internal/renderer/html5/AnnotatedHTML5Renderer.java @@ -32,10 +32,11 @@ import org.xwiki.rendering.listener.chaining.BlockStateChainingListener; import org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener; import org.xwiki.rendering.listener.chaining.ListenerChain; import org.xwiki.rendering.listener.chaining.MetaDataStateChainingListener; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Generates Annotated HTML5 (ie HTML5 containing metadata information, for example macro definition or * link definition) from a {@link org.xwiki.rendering.block.XDOM} object being traversed. * The annotations allow initial source content to be fully reconstructed from the generated HTML5. This is required @@ -65,10 +66,13 @@ public class AnnotatedHTML5Renderer extends AbstractChainingPrintRenderer implem */ @Inject @Named("annotated") private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override public void initialize() throws InitializationException { ListenerChain chain = new ListenerChain(); setListenerChain(chain); @@ -77,8 +81,9 @@ public void initialize() throws InitializationException // placed later in the chain. chain.addListener(this); chain.addListener(new BlockStateChainingListener(chain)); chain.addListener(new EmptyBlockChainingListener(chain)); chain.addListener(new MetaDataStateChainingListener(chain)); - chain.addListener(new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); + chain.addListener(new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, + this.htmlElementSanitizer, chain)); } } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/test/resources/annotatedhtml50/simple/monospace/monospace2.out.txt b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/test/resources/annotatedhtml50/simple/monospace/monospace2.out.txt index 03c918ef..cfa6a7cb 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/test/resources/annotatedhtml50/simple/monospace/monospace2.out.txt +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedhtml5/src/test/resources/annotatedhtml50/simple/monospace/monospace2.out.txt @@ -1 +1 @@ -<p><span a="b" class="monospace">monospace</span></p> \ No newline at end of file +<p><span data-xwiki-translated-attribute-a="b" class="monospace">monospace</span></p> \ No newline at end of file diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLChainingRenderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLChainingRenderer.java index 4dae991b..d3388b05 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLChainingRenderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLChainingRenderer.java @@ -23,10 +23,11 @@ import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.listener.MetaData; import org.xwiki.rendering.listener.chaining.ListenerChain; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Convert listener events to annotated XHTML. See {@link AnnotatedXHTMLChainingRenderer} for more details on * what Annotated XHTML is. * @@ -50,16 +51,17 @@ public class AnnotatedXHTMLChainingRenderer extends XHTMLChainingRenderer * rendering depends on how the underlying system wants to handle it. For example for XWiki we check if * the document exists, we get the document URL, etc. * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable because * image rendering depends on how the underlying system wants to handle it. For example for XWiki we * check if the image exists as a document attachments, we get its URL, etc. + * @param htmlElementSanitizer the sanitizer to use for sanitizing HTML elements and attributes * @param listenerChain the chain of listener filters used to compute various states */ public AnnotatedXHTMLChainingRenderer(XHTMLLinkRenderer linkRenderer, - XHTMLImageRenderer imageRenderer, ListenerChain listenerChain) + XHTMLImageRenderer imageRenderer, HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) { - super(linkRenderer, imageRenderer, listenerChain); + super(linkRenderer, imageRenderer, htmlElementSanitizer, listenerChain); this.macroRenderer = new XHTMLMacroRenderer(); this.metaDataRenderer = new XHTMLMetaDataRenderer(); } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLRenderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLRenderer.java index b182ac65..c41195ad 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLRenderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-annotatedxhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/AnnotatedXHTMLRenderer.java @@ -32,10 +32,11 @@ import org.xwiki.rendering.listener.chaining.BlockStateChainingListener; import org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener; import org.xwiki.rendering.listener.chaining.ListenerChain; import org.xwiki.rendering.listener.chaining.MetaDataStateChainingListener; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Generates Annotated XHTML (ie XHTML containing metadata information, for example macro definition or * link definition) from a {@link org.xwiki.rendering.block.XDOM} object being traversed. * The annotations allow initial source content to be fully reconstructed from the generated XHTML. This is required @@ -65,10 +66,13 @@ public class AnnotatedXHTMLRenderer extends AbstractChainingPrintRenderer implem */ @Inject @Named("annotated") private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override public void initialize() throws InitializationException { ListenerChain chain = new ListenerChain(); setListenerChain(chain); @@ -77,8 +81,9 @@ public void initialize() throws InitializationException // placed later in the chain. chain.addListener(this); chain.addListener(new BlockStateChainingListener(chain)); chain.addListener(new EmptyBlockChainingListener(chain)); chain.addListener(new MetaDataStateChainingListener(chain)); - chain.addListener(new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); + chain.addListener(new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, + this.htmlElementSanitizer, chain)); } } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5ChainingRenderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5ChainingRenderer.java index f9d8f0be..e818f161 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5ChainingRenderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5ChainingRenderer.java @@ -18,17 +18,19 @@ * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.internal.renderer.html5; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import org.xwiki.rendering.internal.renderer.xhtml.XHTMLChainingRenderer; import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; import org.xwiki.rendering.listener.Format; import org.xwiki.rendering.listener.chaining.ListenerChain; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Convert listener events to HTML5. * * @version $Id$ @@ -51,26 +53,26 @@ public class HTML5ChainingRenderer extends XHTMLChainingRenderer * rendering depends on how the underlying system wants to handle it. For example for XWiki we check if the document * exists, we get the document URL, etc. * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable because * image rendering depends on how the underlying system wants to handle it. For example for XWiki we check if the * image exists as a document attachments, we get its URL, etc. + * @param htmlElementSanitizer the sanitizer to use for sanitizing HTML elements and attributes * @param listenerChain the chain of listener filters used to compute various states */ public HTML5ChainingRenderer(XHTMLLinkRenderer linkRenderer, - XHTMLImageRenderer imageRenderer, + XHTMLImageRenderer imageRenderer, HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) { - super(linkRenderer, imageRenderer, listenerChain); + super(linkRenderer, imageRenderer, htmlElementSanitizer, listenerChain); } @Override public void beginFormat(Format format, Map<String, String> parameters) { // Right now, the only difference with the super class is about the "monospace" format if (format == Format.MONOSPACE) { - Map<String, String> attributes = new HashMap<>(); - attributes.putAll(parameters); + Map<String, String> attributes = new LinkedHashMap<>(parameters); String cssClass = "monospace"; // The element may already have a class if (attributes.containsKey(PROP_CLASS)) { cssClass = String.format("%s %s", cssClass, attributes.get(PROP_CLASS)); } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5Renderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5Renderer.java index f112c50f..43ddf624 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5Renderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/main/java/org/xwiki/rendering/internal/renderer/html5/HTML5Renderer.java @@ -32,10 +32,11 @@ import org.xwiki.rendering.listener.chaining.BlockStateChainingListener; import org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener; import org.xwiki.rendering.listener.chaining.ListenerChain; import org.xwiki.rendering.listener.chaining.MetaDataStateChainingListener; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Generates HTML5 from a {@link org.xwiki.rendering.block.XDOM} object being traversed. * * @version $Id$ @@ -60,10 +61,13 @@ public class HTML5Renderer extends AbstractChainingPrintRenderer implements Init * attachments, we get its URL, etc. */ @Inject private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override public void initialize() throws InitializationException { ListenerChain chain = new ListenerChain(); setListenerChain(chain); @@ -72,9 +76,10 @@ public void initialize() throws InitializationException // placed later in the chain. chain.addListener(this); chain.addListener(new BlockStateChainingListener(chain)); chain.addListener(new EmptyBlockChainingListener(chain)); chain.addListener(new MetaDataStateChainingListener(chain)); - chain.addListener(new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); + chain.addListener(new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, + chain)); } } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/test/java/org/xwiki/rendering/internal/html5/HTML5ChainingRendererTest.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/test/java/org/xwiki/rendering/internal/html5/HTML5ChainingRendererTest.java index 0d4cd31b..782e5daf 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/test/java/org/xwiki/rendering/internal/html5/HTML5ChainingRendererTest.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-html5/src/test/java/org/xwiki/rendering/internal/html5/HTML5ChainingRendererTest.java @@ -22,13 +22,13 @@ import java.util.HashMap; import java.util.Map; import org.junit.Before; import org.junit.Test; +import org.xwiki.rendering.internal.renderer.html5.HTML5ChainingRenderer; import org.xwiki.rendering.internal.renderer.xhtml.image.XHTMLImageRenderer; import org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkRenderer; -import org.xwiki.rendering.internal.renderer.html5.HTML5ChainingRenderer; import org.xwiki.rendering.listener.Format; import org.xwiki.rendering.listener.chaining.ListenerChain; import org.xwiki.rendering.renderer.printer.DefaultWikiPrinter; import static org.junit.Assert.assertEquals; @@ -56,11 +56,11 @@ public void setUp() throws Exception { linkRenderer = mock(XHTMLLinkRenderer.class); imageRenderer = mock(XHTMLImageRenderer.class); listenerChain = new ListenerChain(); - chainingRenderer = new HTML5ChainingRenderer(linkRenderer, imageRenderer, listenerChain); + chainingRenderer = new HTML5ChainingRenderer(linkRenderer, imageRenderer, null, listenerChain); printer = new DefaultWikiPrinter(); chainingRenderer.setPrinter(printer); } @Test diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/parser/xhtml/wikimodel/XHTMLXWikiGeneratorListener.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/parser/xhtml/wikimodel/XHTMLXWikiGeneratorListener.java index 8be3d814..688bde1c 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/parser/xhtml/wikimodel/XHTMLXWikiGeneratorListener.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/parser/xhtml/wikimodel/XHTMLXWikiGeneratorListener.java @@ -17,23 +17,26 @@ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.internal.parser.xhtml.wikimodel; +import java.util.LinkedHashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.apache.commons.lang3.tuple.ImmutablePair; import org.apache.commons.lang3.tuple.Pair; import org.xwiki.rendering.internal.parser.wikimodel.DefaultXWikiGeneratorListener; import org.xwiki.rendering.listener.Listener; import org.xwiki.rendering.listener.MetaData; import org.xwiki.rendering.listener.reference.ResourceReference; import org.xwiki.rendering.listener.reference.ResourceType; import org.xwiki.rendering.parser.ResourceReferenceParser; import org.xwiki.rendering.parser.StreamParser; import org.xwiki.rendering.renderer.PrintRendererFactory; +import org.xwiki.rendering.renderer.printer.XHTMLWikiPrinter; import org.xwiki.rendering.syntax.Syntax; import org.xwiki.rendering.util.IdGenerator; import org.xwiki.rendering.wikimodel.WikiFormat; import org.xwiki.rendering.wikimodel.WikiParameter; import org.xwiki.rendering.wikimodel.WikiParameters; @@ -202,11 +205,11 @@ private static WikiParameters cleanParametersFromMetadata(WikiParameters paramet WikiParameters wikiParameters = new WikiParameters(); for (WikiParameter parameter : parameters) { boolean acceptParameter = !(parameter.getKey().startsWith(METADATA_ATTRIBUTE_PREFIX) || ( - parameter.getKey().equals(CLASS_ATTRIBUTE) && parameter.getValue().equals(METADATA_CONTAINER_CLASS) + parameter.getKey().equals(CLASS_ATTRIBUTE) && parameter.getValue().equals(METADATA_CONTAINER_CLASS) )); if (acceptParameter) { wikiParameters = wikiParameters.addParameter(parameter.getKey(), parameter.getValue()); } } @@ -286,6 +289,49 @@ public void endFormat(WikiFormat format) } } else { super.endFormat(format); } } + + @Override + protected Map<String, String> convertParameters(WikiParameters params) + { + return maybeRemoveAttributePrefix(super.convertParameters(params)); + } + + @Override + protected Pair<Map<String, String>, Map<String, String>> convertAndSeparateParameters(WikiParameters params) + { + Pair<Map<String, String>, Map<String, String>> result = super.convertAndSeparateParameters(params); + Map<String, String> genericParameters = result.getRight(); + + if (!genericParameters.isEmpty()) { + genericParameters = maybeRemoveAttributePrefix(genericParameters); + } + + return new ImmutablePair<>(result.getLeft(), genericParameters); + } + + private Map<String, String> maybeRemoveAttributePrefix(Map<String, String> attributes) + { + Map<String, String> result; + + if (!attributes.isEmpty()) { + result = new LinkedHashMap<>(); + + for (Map.Entry<String, String> entry : attributes.entrySet()) { + String newKey; + if (entry.getKey().startsWith(XHTMLWikiPrinter.TRANSLATED_ATTRIBUTE_PREFIX)) { + newKey = entry.getKey().substring(XHTMLWikiPrinter.TRANSLATED_ATTRIBUTE_PREFIX.length()); + } else { + newKey = entry.getKey(); + } + + result.put(newKey, entry.getValue()); + } + } else { + result = attributes; + } + + return result; + } } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java index 4ed29bbc..58b61861 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java @@ -39,10 +39,11 @@ import org.xwiki.rendering.renderer.printer.WikiPrinter; import org.xwiki.rendering.renderer.printer.XHTMLWikiPrinter; import org.xwiki.rendering.syntax.Syntax; import org.xwiki.rendering.syntax.SyntaxType; import org.xwiki.xml.html.HTMLConstants; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Convert listener events to XHTML. * * @version $Id$ @@ -63,28 +64,32 @@ public class XHTMLChainingRenderer extends AbstractChainingPrintRenderer private XHTMLLinkRenderer linkRenderer; private XHTMLImageRenderer imageRenderer; + private final HTMLElementSanitizer htmlElementSanitizer; + private XHTMLWikiPrinter xhtmlWikiPrinter; /** - * @param linkRenderer the object to render link events into XHTML. This is done so that it's pluggable because link - * rendering depends on how the underlying system wants to handle it. For example for XWiki we check if - * the document exists, we get the document URL, etc. - * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable because - * image rendering depends on how the underlying system wants to handle it. For example for XWiki we - * check if the image exists as a document attachments, we get its URL, etc. + * @param linkRenderer the object to render link events into XHTML. This is done so that it's pluggable because + * link rendering depends on how the underlying system wants to handle it. For example for XWiki we check if the + * document exists, we get the document URL, etc. + * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable + * because image rendering depends on how the underlying system wants to handle it. For example for XWiki we + * check if the image exists as a document attachments, we get its URL, etc. + * @param htmlElementSanitizer the sanitizer for XHTML elements * @param listenerChain the chain of listener filters used to compute various states */ public XHTMLChainingRenderer(XHTMLLinkRenderer linkRenderer, XHTMLImageRenderer imageRenderer, - ListenerChain listenerChain) + HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) { setListenerChain(listenerChain); this.linkRenderer = linkRenderer; this.imageRenderer = imageRenderer; + this.htmlElementSanitizer = htmlElementSanitizer; } // State protected BlockStateChainingListener getBlockState() @@ -119,15 +124,20 @@ protected void popPrinter() } protected XHTMLWikiPrinter getXHTMLWikiPrinter() { if (this.xhtmlWikiPrinter == null) { - this.xhtmlWikiPrinter = new XHTMLWikiPrinter(getPrinter()); + this.xhtmlWikiPrinter = new XHTMLWikiPrinter(getPrinter(), getHtmlElementSanitizer()); } return this.xhtmlWikiPrinter; } + protected HTMLElementSanitizer getHtmlElementSanitizer() + { + return this.htmlElementSanitizer; + } + // Events @Override public void beginGroup(Map<String, String> parameters) { diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLRenderer.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLRenderer.java index 0fb9967d..def1f32a 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLRenderer.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLRenderer.java @@ -32,10 +32,11 @@ import org.xwiki.rendering.listener.chaining.BlockStateChainingListener; import org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener; import org.xwiki.rendering.listener.chaining.ListenerChain; import org.xwiki.rendering.listener.chaining.MetaDataStateChainingListener; import org.xwiki.rendering.renderer.AbstractChainingPrintRenderer; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Generates XHTML from a {@link org.xwiki.rendering.block.XDOM} object being traversed. * * @version $Id$ @@ -60,10 +61,13 @@ public class XHTMLRenderer extends AbstractChainingPrintRenderer implements Init * attachments, we get its URL, etc. */ @Inject private XHTMLImageRenderer imageRenderer; + @Inject + private HTMLElementSanitizer htmlElementSanitizer; + @Override public void initialize() throws InitializationException { ListenerChain chain = new ListenerChain(); setListenerChain(chain); @@ -72,8 +76,9 @@ public void initialize() throws InitializationException // placed later in the chain. chain.addListener(this); chain.addListener(new BlockStateChainingListener(chain)); chain.addListener(new EmptyBlockChainingListener(chain)); chain.addListener(new MetaDataStateChainingListener(chain)); - chain.addListener(new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); + chain.addListener(new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, + chain)); } } diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRendererTest.java b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRendererTest.java index 8fce2baa..cd96e9ef 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRendererTest.java +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRendererTest.java @@ -42,11 +42,11 @@ * Macro transformation applied). */ @Test void outputFigureCaptionEvents() { - XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, new ListenerChain()); + XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, null, new ListenerChain()); WikiPrinter wikiPrinter = new DefaultWikiPrinter(); renderer.setPrinter(wikiPrinter); renderer.beginFigureCaption(Collections.emptyMap()); renderer.onWord("caption"); renderer.endFigureCaption(Collections.emptyMap()); @@ -55,11 +55,11 @@ void outputFigureCaptionEvents() } @Test void onRawText() { - XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, new ListenerChain()); + XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, null, new ListenerChain()); WikiPrinter wikiPrinter = new DefaultWikiPrinter(); renderer.setPrinter(wikiPrinter); renderer.onRawText("xhtml/1.0", Syntax.XHTML_1_0); renderer.onRawText("html/4.01", Syntax.HTML_4_01); renderer.onRawText("html/5.0", Syntax.HTML_5_0); diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/monospace/monospace2.inout.txt b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/monospace/monospace2.inout.txt index bdd537d8..e637cfde 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/monospace/monospace2.inout.txt +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/monospace/monospace2.inout.txt @@ -1 +1 @@ -<p><tt><span a="b">monospace</span></tt></p> \ No newline at end of file +<p><tt><span data-xwiki-translated-attribute-a="b">monospace</span></tt></p> \ No newline at end of file diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/bold/bold4.test b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/bold/bold4.test index 440e92a9..156a5a64 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/bold/bold4.test +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/bold/bold4.test @@ -1,10 +1,10 @@ .#----------------------------------------------------- .input|xhtml/1.0 .# Verify that STRONG tag parameters are recognized. .#----------------------------------------------------- -<p><strong a="b" data-xwiki-parameter="value">something</strong></p> +<p><strong data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value">something</strong></p> .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginParagraph @@ -14,6 +14,6 @@ endFormat [BOLD] [[a]=[b][data-xwiki-parameter]=[value]] endParagraph endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p><strong><span a="b" data-xwiki-parameter="value">something</span></strong></p> \ No newline at end of file +<p><strong><span data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value">something</span></strong></p> \ No newline at end of file diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/encoding/encoding1.test b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/encoding/encoding1.test index ca70f251..b9b2b41c 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/encoding/encoding1.test +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/encoding/encoding1.test @@ -1,11 +1,11 @@ .#------------------------------------------------------------------------------------- .input|xhtml/1.0 .# Verify that HTML entities can be parsed by the XHTML parser and are encoded properly .# Note that &nbsp; is transformed into a space. .#------------------------------------------------------------------------------------- -<p>&nbsp;&tilde;&euro;</p><p param1="val&#252;e">&#160;&#732;&#8364;</p> +<p>&nbsp;&tilde;&euro;</p><p data-xwiki-translated-attribute-param1="val&#252;e">&#160;&#732;&#8364;</p> .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginParagraph @@ -18,6 +18,6 @@ onWord [(((732)))(((8364)))] endParagraph [[param1]=[val(((252)))e]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<p>&nbsp;˜€</p><p param1="valüe">&nbsp;˜€</p> \ No newline at end of file +<p>&nbsp;˜€</p><p data-xwiki-translated-attribute-param1="valüe">&nbsp;˜€</p> \ No newline at end of file diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/group/group1.test b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/group/group1.test index 99ad9ef8..3ad665ee 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/group/group1.test +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/specific/group/group1.test @@ -1,10 +1,10 @@ .#----------------------------------------------------- .input|xhtml/1.0 .# Verify that div tag parameters, also starting with data-xwiki-, are recognized. .#----------------------------------------------------- -<div a="b" data-xwiki-parameter="value">something</div> +<div data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value">something</div> .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginGroup [[a]=[b][data-xwiki-parameter]=[value]] @@ -14,6 +14,6 @@ endParagraph endGroup [[a]=[b][data-xwiki-parameter]=[value]] endDocument .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- -<div a="b" data-xwiki-parameter="value"><p>something</p></div> \ No newline at end of file +<div data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value"><p>something</p></div> \ No newline at end of file diff --git a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml5/src/test/resources/xhtml5/simple/monospace/monospace2.inout.txt b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml5/src/test/resources/xhtml5/simple/monospace/monospace2.inout.txt index 03c918ef..cfa6a7cb 100644 --- a/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml5/src/test/resources/xhtml5/simple/monospace/monospace2.inout.txt +++ b/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml5/src/test/resources/xhtml5/simple/monospace/monospace2.inout.txt @@ -1 +1 @@ -<p><span a="b" class="monospace">monospace</span></p> \ No newline at end of file +<p><span data-xwiki-translated-attribute-a="b" class="monospace">monospace</span></p> \ No newline at end of file diff --git a/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java b/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java index 867df085..28492300 100644 --- a/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java +++ b/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java @@ -17,14 +17,19 @@ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.renderer.printer; +import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.xml.sax.Attributes; +import org.xml.sax.helpers.AttributesImpl; +import org.xwiki.stability.Unstable; +import org.xwiki.xml.html.HTMLElementSanitizer; /** * Base toolkit class for all XHTML-based renderers. This printer handles whitespaces so that it prints "&nbsp;" when * needed (i.e. when the spaces are at the beginning or at the end of an element's content or when there are more than 1 * contiguous spaces, except for CDATA sections and inside PRE elements. It also knows how to handle XHTML comments). @@ -32,10 +37,25 @@ * @version $Id$ * @since 1.7M1 */ public class XHTMLWikiPrinter extends XMLWikiPrinter { + /** + * Prefix that is used for invalid/disallowed attributes. + * + * @since 14.6RC1 + */ + @Unstable + public static final String TRANSLATED_ATTRIBUTE_PREFIX = "data-xwiki-translated-attribute-"; + + /** + * The sanitizer used to restrict allowed elements and attributes, can be null (no restrictions). + * + * @since 14.6RC1 + */ + protected final HTMLElementSanitizer htmlElementSanitizer; + private int spaceCount; private boolean isInCData; private boolean isInPreserveElement; @@ -48,19 +68,29 @@ public class XHTMLWikiPrinter extends XMLWikiPrinter /** * @param printer the object to which to write the XHTML output to */ public XHTMLWikiPrinter(WikiPrinter printer) + { + this(printer, null); + } + + /** + * @param printer the object to which to write the XHTML output to + * @param htmlElementSanitizer the sanitizer to use for sanitizing elements and attributes + */ + public XHTMLWikiPrinter(WikiPrinter printer, HTMLElementSanitizer htmlElementSanitizer) { super(printer); + this.htmlElementSanitizer = htmlElementSanitizer; } /** - * Use it to specify that the current element to print is standalone. - * This value might be used to know if the first space should be printed with a simple space or a {@code &nbsp;} - * entity. Note that the standalone value is automatically reset after first printing of a space, or when a text - * is printed. + * Use it to specify that the current element to print is standalone. This value might be used to know if the first + * space should be printed with a simple space or a {@code &nbsp;} entity. Note that the standalone value is + * automatically reset after first printing of a space, or when a text is printed. + * * @since 12.2 */ public void setStandalone() { this.isStandalone = true; @@ -76,62 +106,78 @@ public void printXML(String str) } @Override public void printXMLElement(String name) { - handleSpaceWhenStartElement(); - super.printXMLElement(name); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLElement(name); + } } @Override public void printXMLElement(String name, String[][] attributes) { - handleSpaceWhenStartElement(); - super.printXMLElement(name, attributes); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLElement(name, cleanAttributes(name, attributes)); + } } @Override public void printXMLElement(String name, Map<String, String> attributes) { - handleSpaceWhenStartElement(); - super.printXMLElement(name, attributes); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLElement(name, cleanAttributes(name, attributes)); + } } @Override public void printXMLStartElement(String name) { - handleSpaceWhenStartElement(); - super.printXMLStartElement(name); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLStartElement(name); + } } @Override public void printXMLStartElement(String name, String[][] attributes) { - handleSpaceWhenStartElement(); - super.printXMLStartElement(name, attributes); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLStartElement(name, cleanAttributes(name, attributes)); + } } @Override public void printXMLStartElement(String name, Map<String, String> attributes) { - handleSpaceWhenStartElement(); - super.printXMLStartElement(name, attributes); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLStartElement(name, cleanAttributes(name, attributes)); + } } @Override public void printXMLStartElement(String name, Attributes attributes) { - handleSpaceWhenStartElement(); - super.printXMLStartElement(name, attributes); + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenStartElement(); + super.printXMLStartElement(name, cleanAttributes(name, attributes)); + } } @Override public void printXMLEndElement(String name) { - handleSpaceWhenEndlement(); - super.printXMLEndElement(name); - this.elementEnded = true; + if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { + handleSpaceWhenEndlement(); + super.printXMLEndElement(name); + this.elementEnded = true; + } } @Override public void printXMLComment(String content) { @@ -183,10 +229,75 @@ private void handleSpaceWhenInText() } else { handleSpaceWhenEndlement(); } } + private Map<String, String> cleanAttributes(String elementName, Map<String, String> attributes) + { + Map<String, String> cleanAttributes; + + if (this.htmlElementSanitizer == null || attributes == null) { + cleanAttributes = attributes; + } else { + cleanAttributes = new LinkedHashMap<>(); + for (Map.Entry<String, String> e : attributes.entrySet()) { + if (this.htmlElementSanitizer.isAttributeAllowed(elementName, e.getKey(), e.getValue())) { + cleanAttributes.put(e.getKey(), e.getValue()); + } else { + cleanAttributes.put(TRANSLATED_ATTRIBUTE_PREFIX + e.getKey(), e.getValue()); + } + } + } + + return cleanAttributes; + } + + private String[][] cleanAttributes(String elementName, String[][] attributes) + { + String[][] allowedAttributes; + if (this.htmlElementSanitizer == null || attributes == null) { + allowedAttributes = attributes; + } else { + allowedAttributes = Arrays.stream(attributes) + .map(entry -> { + if (this.htmlElementSanitizer.isAttributeAllowed(elementName, entry[0], entry[1])) { + return entry; + } else { + return new String[] { TRANSLATED_ATTRIBUTE_PREFIX + entry[0], entry[1] }; + } + }) + .toArray(String[][]::new); + } + + return allowedAttributes; + } + + private Attributes cleanAttributes(String elementName, Attributes attributes) + { + Attributes allowedAttribute; + + if (this.htmlElementSanitizer == null || attributes == null) { + allowedAttribute = attributes; + } else { + allowedAttribute = new AttributesImpl(); + + for (int i = 0; i < attributes.getLength(); ++i) { + if (this.htmlElementSanitizer.isAttributeAllowed(elementName, attributes.getQName(i), + attributes.getValue(i))) + { + ((AttributesImpl) allowedAttribute).addAttribute(null, null, attributes.getQName(i), + null, attributes.getValue(i)); + } else { + ((AttributesImpl) allowedAttribute).addAttribute(null, null, + TRANSLATED_ATTRIBUTE_PREFIX + attributes.getQName(i), null, attributes.getValue(i)); + } + } + } + + return allowedAttribute; + } + private void handleSpaceWhenStartElement() { // Use case: <tag1>something <tag2>... // Use case: <tag1>something <!--... if (this.spaceCount > 0) {
<p><span class="wikiexternallink"><a param="value" href="refe||rence">lab&gt;&gt;el~</a></span></p> <p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> <div param="value"><p>some text</p></div><div param="value"><p>some text</p></div> <div param="value"><p>some text</p></div><div param="value"><p>some text</p></div> <hr param="value"/> <html><hr param="value"/></html> <p><em><span a="b">something</span></em></p> <dl param="value"><dt>title</dt><dd>definition</dd></dl> <dl param="value"><dt>title</dt><dd>definition</dd></dl> <ul param="value"><li>item 1<ul param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> <ul param="value"><li>item 1<ul param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> <ul param1="value1" param2="value2"><li>item</li></ul> <html><ul param1="value1" param2="value2"><li>item</li></ul></html> <span param="value">formatmacro2</span><p><span a="b"><span param="value">formatmacro3</span> text</span></p><p><span a="b">text</span><span param="value">formatmacro4</span></p> <!--startmacro:testformatmacro|-|--><span param="value">formatmacro2</span><!--stopmacro--><p><span a="b"><!--startmacro:testformatmacro|-|--><span param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span a="b">text</span><!--startmacro:testformatmacro|-|--><span param="value">formatmacro4</span><!--stopmacro--></p> <!--startmacro:testformatmacro|-|--><span param="value">formatmacro2</span><!--stopmacro--><p><span a="b"><!--startmacro:testformatmacro|-|--><span param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span a="b">text</span><!--startmacro:testformatmacro|-|--><span param="value">formatmacro4</span><!--stopmacro--></p> <p param1="value1" param2="value2"><span param3="value3">hello</span> world</p><p><span param4="valueA">hello&nbsp;</span><span param4="valueB">world</span></p><p><strong><span param5="value4">hello</span></strong><span param5="value4">&nbsp;world</span></p><p><span param6="valueA">hello&nbsp;</span><span param7="valueB">world</span></p><p>before<span param="value">x</span><strong>y</strong>after</p><p>12<strong>34<span param="value">56</span>78</strong>90</p><p><span param="value">1<em>2</em></span><em>3</em></p><p><strong><span param1="value1">1</span></strong><strong><span param2="value2">2</span></strong></p> <blockquote param1="value1" param2="value2"><p>line</p></blockquote> <blockquote param1="value1" param2="value2"><p>line</p></blockquote> <h1 id="Hheader" class="wikigeneratedid" param="value"><span>header</span></h1> <html><h1 id="Hheader" class="wikigeneratedid" param="value"><span>header</span></h1></html> <p><del><span a="b">something</span></del></p> <html><p><sub a="b">something</sub></p></html> <p><sub><span a="b">something</span></sub></p> <html><p><sup a="b">something</sup></p></html> <p><sup><span a="b">something</span></sup></p> <table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table><table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table> <table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table><table a="b"><tr c="d"><th e="f" scope="col"><span g="h">cell1</span></th><td i="j"><span k="l">cell2</span></td></tr></table> <pre param="value">abc</pre> <html><pre param="value">abc</pre></html> <p param="value"><span param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> <p param="value"><span param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> <p><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><br/><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> <p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><div class="figcaption"><p>Image <strong>Caption</strong></p></div><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><div class="figcaption"><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></div> <figure class="image"><img src="imageurl" param1="value1" param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><figcaption><p>Image <strong>Caption</strong></p></figcaption></figure><figure class="image"><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><figcaption><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></figcaption></figure> <p><img src="imageurl" param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> <p><img src="imageurl?param1=value1" param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <p><span class="wikiexternallink"><a param="value" href="http://xwiki.org"><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/></a></span></p> <p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> <p><span class="wikiattachmentlink"><a param1="value1" param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><br/><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span></p> <p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a param1="value1" param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> <p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a param1="value1" param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> <p><a href="http://reference" param1="value1">http://reference</a></p> <p><span class="wikiexternallink"><a param1="value1" href="http://reference">http://reference</a></span></p> <p><span class="wikilink"><a param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> <p><span class="wikilink"><a param1="value1" param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><br/><span class="wikicreatelink"><a param="value" href="editurl">label</a></span></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a param1="value1" param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a param="value" href="editurl">label</a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a param1="value1" param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a param="value" href="editurl">label</a></span><!--stopwikilink--></p> return new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); return new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); return new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); return new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, getListenerChain()); XHTMLImageRenderer imageRenderer, ListenerChain listenerChain) super(linkRenderer, imageRenderer, listenerChain); chain.addListener(new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); <p><span a="b" class="monospace">monospace</span></p> XHTMLImageRenderer imageRenderer, ListenerChain listenerChain) super(linkRenderer, imageRenderer, listenerChain); chain.addListener(new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); XHTMLImageRenderer imageRenderer, super(linkRenderer, imageRenderer, listenerChain); Map<String, String> attributes = new HashMap<>(); attributes.putAll(parameters); chain.addListener(new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); import org.xwiki.rendering.internal.renderer.html5.HTML5ChainingRenderer; chainingRenderer = new HTML5ChainingRenderer(linkRenderer, imageRenderer, listenerChain); parameter.getKey().equals(CLASS_ATTRIBUTE) && parameter.getValue().equals(METADATA_CONTAINER_CLASS) * @param linkRenderer the object to render link events into XHTML. This is done so that it's pluggable because link * rendering depends on how the underlying system wants to handle it. For example for XWiki we check if * the document exists, we get the document URL, etc. * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable because * image rendering depends on how the underlying system wants to handle it. For example for XWiki we * check if the image exists as a document attachments, we get its URL, etc. ListenerChain listenerChain) this.xhtmlWikiPrinter = new XHTMLWikiPrinter(getPrinter()); chain.addListener(new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, chain)); XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, new ListenerChain()); XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, new ListenerChain()); <p><tt><span a="b">monospace</span></tt></p> <p><strong a="b" data-xwiki-parameter="value">something</strong></p> <p><strong><span a="b" data-xwiki-parameter="value">something</span></strong></p> <p>&nbsp;&tilde;&euro;</p><p param1="val&#252;e">&#160;&#732;&#8364;</p> <p>&nbsp;˜€</p><p param1="valüe">&nbsp;˜€</p> <div a="b" data-xwiki-parameter="value">something</div> <div a="b" data-xwiki-parameter="value"><p>something</p></div> <p><span a="b" class="monospace">monospace</span></p> * Use it to specify that the current element to print is standalone. * This value might be used to know if the first space should be printed with a simple space or a {@code &nbsp;} * entity. Note that the standalone value is automatically reset after first printing of a space, or when a text * is printed. handleSpaceWhenStartElement(); super.printXMLElement(name); handleSpaceWhenStartElement(); super.printXMLElement(name, attributes); handleSpaceWhenStartElement(); super.printXMLElement(name, attributes); handleSpaceWhenStartElement(); super.printXMLStartElement(name); handleSpaceWhenStartElement(); super.printXMLStartElement(name, attributes); handleSpaceWhenStartElement(); super.printXMLStartElement(name, attributes); handleSpaceWhenStartElement(); super.printXMLStartElement(name, attributes); handleSpaceWhenEndlement(); super.printXMLEndElement(name); this.elementEnded = true;
<p><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="refe||rence">lab&gt;&gt;el~</a></span></p> <p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|url|-|refe||rence--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="refe||rence">lab&gt;&gt;el~</a></span><!--stopwikilink--></p> <div data-xwiki-translated-attribute-param="value"><p>some text</p></div><div data-xwiki-translated-attribute-param="value"><p>some text</p></div> <div data-xwiki-translated-attribute-param="value"><p>some text</p></div><div data-xwiki-translated-attribute-param="value"><p>some text</p></div> <hr data-xwiki-translated-attribute-param="value"/> <html><hr data-xwiki-translated-attribute-param="value"/></html> <p><em><span data-xwiki-translated-attribute-a="b">something</span></em></p> <dl data-xwiki-translated-attribute-param="value"><dt>title</dt><dd>definition</dd></dl> <dl data-xwiki-translated-attribute-param="value"><dt>title</dt><dd>definition</dd></dl> <ul data-xwiki-translated-attribute-param="value"><li>item 1<ul data-xwiki-translated-attribute-param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> <ul data-xwiki-translated-attribute-param="value"><li>item 1<ul data-xwiki-translated-attribute-param2="value2"><li>item 1.1<ul><li>item 1.1.1</li></ul></li></ul></li></ul> <ul data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><li>item</li></ul> <html><ul data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><li>item</li></ul></html> <span data-xwiki-translated-attribute-param="value">formatmacro2</span><p><span data-xwiki-translated-attribute-a="b"><span data-xwiki-translated-attribute-param="value">formatmacro3</span> text</span></p><p><span data-xwiki-translated-attribute-a="b">text</span><span data-xwiki-translated-attribute-param="value">formatmacro4</span></p> <!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro2</span><!--stopmacro--><p><span data-xwiki-translated-attribute-a="b"><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span data-xwiki-translated-attribute-a="b">text</span><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro4</span><!--stopmacro--></p> <!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro2</span><!--stopmacro--><p><span data-xwiki-translated-attribute-a="b"><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro3</span><!--stopmacro--> text</span></p><p><span data-xwiki-translated-attribute-a="b">text</span><!--startmacro:testformatmacro|-|--><span data-xwiki-translated-attribute-param="value">formatmacro4</span><!--stopmacro--></p> <p data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><span data-xwiki-translated-attribute-param3="value3">hello</span> world</p><p><span data-xwiki-translated-attribute-param4="valueA">hello&nbsp;</span><span data-xwiki-translated-attribute-param4="valueB">world</span></p><p><strong><span data-xwiki-translated-attribute-param5="value4">hello</span></strong><span data-xwiki-translated-attribute-param5="value4">&nbsp;world</span></p><p><span data-xwiki-translated-attribute-param6="valueA">hello&nbsp;</span><span data-xwiki-translated-attribute-param7="valueB">world</span></p><p>before<span data-xwiki-translated-attribute-param="value">x</span><strong>y</strong>after</p><p>12<strong>34<span data-xwiki-translated-attribute-param="value">56</span>78</strong>90</p><p><span data-xwiki-translated-attribute-param="value">1<em>2</em></span><em>3</em></p><p><strong><span data-xwiki-translated-attribute-param1="value1">1</span></strong><strong><span data-xwiki-translated-attribute-param2="value2">2</span></strong></p> <blockquote data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><p>line</p></blockquote> <blockquote data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2"><p>line</p></blockquote> <h1 id="Hheader" class="wikigeneratedid" data-xwiki-translated-attribute-param="value"><span>header</span></h1> <html><h1 id="Hheader" class="wikigeneratedid" data-xwiki-translated-attribute-param="value"><span>header</span></h1></html> <p><del><span data-xwiki-translated-attribute-a="b">something</span></del></p> <html><p><sub data-xwiki-translated-attribute-a="b">something</sub></p></html> <p><sub><span data-xwiki-translated-attribute-a="b">something</span></sub></p> <html><p><sup data-xwiki-translated-attribute-a="b">something</sup></p></html> <p><sup><span data-xwiki-translated-attribute-a="b">something</span></sup></p> <table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table><table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table> <table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table><table data-xwiki-translated-attribute-a="b"><tr data-xwiki-translated-attribute-c="d"><th data-xwiki-translated-attribute-e="f" scope="col"><span data-xwiki-translated-attribute-g="h">cell1</span></th><td data-xwiki-translated-attribute-i="j"><span k="l">cell2</span></td></tr></table> <pre data-xwiki-translated-attribute-param="value">abc</pre> <html><pre data-xwiki-translated-attribute-param="value">abc</pre></html> <p data-xwiki-translated-attribute-param="value"><span data-xwiki-translated-attribute-param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> <p data-xwiki-translated-attribute-param="value"><span data-xwiki-translated-attribute-param2="value2"><tt class="wikimodel-verbatim">abc</tt></span></p> <p><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><br/><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> <p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <p><!--startimage:false|-|attach|-|my.png--><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><!--stopimage--><br/><!--startimage:false|-|attach|-|Space.ExistingPage@my.png--><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><div class="figcaption"><p>Image <strong>Caption</strong></p></div><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><div class="figcaption"><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></div> <figure class="image"><img src="imageurl" data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" id="Imy.png" class="wikigeneratedid" alt="my.png"/><figcaption><p>Image <strong>Caption</strong></p></figcaption></figure><figure class="image"><img src="imageurl" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><figcaption><p>Caption</p><ul><li>With</li><li>nested</li><li>list <span class="wikiexternallink"><a href="https://xwiki.org">and link</a></span> and [[fake link]].</li></ul></figcaption></figure> <p><img src="imageurl" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png?param1=value1--><img src="imageurl" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png3Fparam13Dvalue1" class="wikigeneratedid" alt="Space.ExistingPage@my.png?param1=value1"/><!--stopimage--></p> <p><img src="imageurl?param1=value1" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <p><!--startimage:false|-|attach|-|Space.ExistingPage@my.png|-|queryString="param1=value1"--><img src="imageurl?param1=value1" data-xwiki-translated-attribute-param2="value2" id="ISpace.ExistingPage40my.png" class="wikigeneratedid" alt="Space.ExistingPage@my.png"/><!--stopimage--></p> <p><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="http://xwiki.org"><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/></a></span></p> <p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|url|-|http://xwiki.org--><span class="wikiexternallink"><a data-xwiki-translated-attribute-param="value" href="http://xwiki.org"><!--startimage:false|-|attach|-|attach.png--><img src="imageurl" height="100" width="100" id="Iattach.png" class="wikigeneratedid" alt="attach.png"/><!--stopimage--></a></span><!--stopwikilink--></p> <p><span class="wikiattachmentlink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><br/><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span></p> <p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> <p><!--startwikilink:true|-|attach|-|my.png--><span class="wikiattachmentlink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="attachmenturl"><span class="wikigeneratedlinkcontent">my.png</span></a></span><!--stopwikilink--><br/><!--startwikilink:true|-|attach|-|Space.ExistingPage@my.png--><span class="wikiattachmentlink"><a href="attachmenturl"><span class="wikigeneratedlinkcontent">Space.ExistingPage@my.png</span></a></span><!--stopwikilink--></p> <p><a href="http://reference" data-xwiki-translated-attribute-param1="value1">http://reference</a></p> <p><span class="wikiexternallink"><a data-xwiki-translated-attribute-param1="value1" href="http://reference">http://reference</a></span></p> <p><span class="wikilink"><a data-xwiki-translated-attribute-param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a data-xwiki-translated-attribute-param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage|-|queryString="param1=value1" anchor="anchor"--><span class="wikilink"><a data-xwiki-translated-attribute-param2="value2" href="viewurl?param1=value1#anchor"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--></p> <p><span class="wikilink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><br/><span class="wikicreatelink"><a data-xwiki-translated-attribute-param="value" href="editurl">label</a></span></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a data-xwiki-translated-attribute-param="value" href="editurl">label</a></span><!--stopwikilink--></p> <p><!--startwikilink:false|-|doc|-|Space.ExistingPage--><span class="wikilink"><a data-xwiki-translated-attribute-param1="value1" data-xwiki-translated-attribute-param2="value2" href="viewurl"><span class="wikigeneratedlinkcontent">Space.ExistingPage</span></a></span><!--stopwikilink--><br/><!--startwikilink:false|-|doc|-|Space.UnknownPage--><span class="wikicreatelink"><a data-xwiki-translated-attribute-param="value" href="editurl">label</a></span><!--stopwikilink--></p> import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; return new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, getListenerChain()); import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; return new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, getListenerChain()); import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; return new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, getListenerChain()); import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; return new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, getListenerChain()); import org.xwiki.xml.html.HTMLElementSanitizer; * @param htmlElementSanitizer the HTML element sanitizer to use XHTMLImageRenderer imageRenderer, HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) super(linkRenderer, imageRenderer, htmlElementSanitizer, listenerChain); import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; chain.addListener(new AnnotatedHTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, chain)); <p><span data-xwiki-translated-attribute-a="b" class="monospace">monospace</span></p> import org.xwiki.xml.html.HTMLElementSanitizer; * @param htmlElementSanitizer the sanitizer to use for sanitizing HTML elements and attributes XHTMLImageRenderer imageRenderer, HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) super(linkRenderer, imageRenderer, htmlElementSanitizer, listenerChain); import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; chain.addListener(new AnnotatedXHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, chain)); import java.util.LinkedHashMap; import org.xwiki.xml.html.HTMLElementSanitizer; * @param htmlElementSanitizer the sanitizer to use for sanitizing HTML elements and attributes XHTMLImageRenderer imageRenderer, HTMLElementSanitizer htmlElementSanitizer, super(linkRenderer, imageRenderer, htmlElementSanitizer, listenerChain); Map<String, String> attributes = new LinkedHashMap<>(parameters); import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; chain.addListener(new HTML5ChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, chain)); import org.xwiki.rendering.internal.renderer.html5.HTML5ChainingRenderer; chainingRenderer = new HTML5ChainingRenderer(linkRenderer, imageRenderer, null, listenerChain); import java.util.LinkedHashMap; import org.apache.commons.lang3.tuple.ImmutablePair; import org.xwiki.rendering.renderer.printer.XHTMLWikiPrinter; parameter.getKey().equals(CLASS_ATTRIBUTE) && parameter.getValue().equals(METADATA_CONTAINER_CLASS) @Override protected Map<String, String> convertParameters(WikiParameters params) { return maybeRemoveAttributePrefix(super.convertParameters(params)); } @Override protected Pair<Map<String, String>, Map<String, String>> convertAndSeparateParameters(WikiParameters params) { Pair<Map<String, String>, Map<String, String>> result = super.convertAndSeparateParameters(params); Map<String, String> genericParameters = result.getRight(); if (!genericParameters.isEmpty()) { genericParameters = maybeRemoveAttributePrefix(genericParameters); } return new ImmutablePair<>(result.getLeft(), genericParameters); } private Map<String, String> maybeRemoveAttributePrefix(Map<String, String> attributes) { Map<String, String> result; if (!attributes.isEmpty()) { result = new LinkedHashMap<>(); for (Map.Entry<String, String> entry : attributes.entrySet()) { String newKey; if (entry.getKey().startsWith(XHTMLWikiPrinter.TRANSLATED_ATTRIBUTE_PREFIX)) { newKey = entry.getKey().substring(XHTMLWikiPrinter.TRANSLATED_ATTRIBUTE_PREFIX.length()); } else { newKey = entry.getKey(); } result.put(newKey, entry.getValue()); } } else { result = attributes; } return result; } import org.xwiki.xml.html.HTMLElementSanitizer; private final HTMLElementSanitizer htmlElementSanitizer; * @param linkRenderer the object to render link events into XHTML. This is done so that it's pluggable because * link rendering depends on how the underlying system wants to handle it. For example for XWiki we check if the * document exists, we get the document URL, etc. * @param imageRenderer the object to render image events into XHTML. This is done so that it's pluggable * because image rendering depends on how the underlying system wants to handle it. For example for XWiki we * check if the image exists as a document attachments, we get its URL, etc. * @param htmlElementSanitizer the sanitizer for XHTML elements HTMLElementSanitizer htmlElementSanitizer, ListenerChain listenerChain) this.htmlElementSanitizer = htmlElementSanitizer; this.xhtmlWikiPrinter = new XHTMLWikiPrinter(getPrinter(), getHtmlElementSanitizer()); protected HTMLElementSanitizer getHtmlElementSanitizer() { return this.htmlElementSanitizer; } import org.xwiki.xml.html.HTMLElementSanitizer; @Inject private HTMLElementSanitizer htmlElementSanitizer; chain.addListener(new XHTMLChainingRenderer(this.linkRenderer, this.imageRenderer, this.htmlElementSanitizer, chain)); XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, null, new ListenerChain()); XHTMLChainingRenderer renderer = new XHTMLChainingRenderer(null, null, null, new ListenerChain()); <p><tt><span data-xwiki-translated-attribute-a="b">monospace</span></tt></p> <p><strong data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value">something</strong></p> <p><strong><span data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value">something</span></strong></p> <p>&nbsp;&tilde;&euro;</p><p data-xwiki-translated-attribute-param1="val&#252;e">&#160;&#732;&#8364;</p> <p>&nbsp;˜€</p><p data-xwiki-translated-attribute-param1="valüe">&nbsp;˜€</p> <div data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value">something</div> <div data-xwiki-translated-attribute-a="b" data-xwiki-parameter="value"><p>something</p></div> <p><span data-xwiki-translated-attribute-a="b" class="monospace">monospace</span></p> import java.util.Arrays; import java.util.LinkedHashMap; import org.xml.sax.helpers.AttributesImpl; import org.xwiki.stability.Unstable; import org.xwiki.xml.html.HTMLElementSanitizer; /** * Prefix that is used for invalid/disallowed attributes. * * @since 14.6RC1 */ @Unstable public static final String TRANSLATED_ATTRIBUTE_PREFIX = "data-xwiki-translated-attribute-"; /** * The sanitizer used to restrict allowed elements and attributes, can be null (no restrictions). * * @since 14.6RC1 */ protected final HTMLElementSanitizer htmlElementSanitizer; { this(printer, null); } /** * @param printer the object to which to write the XHTML output to * @param htmlElementSanitizer the sanitizer to use for sanitizing elements and attributes */ public XHTMLWikiPrinter(WikiPrinter printer, HTMLElementSanitizer htmlElementSanitizer) this.htmlElementSanitizer = htmlElementSanitizer; * Use it to specify that the current element to print is standalone. This value might be used to know if the first * space should be printed with a simple space or a {@code &nbsp;} entity. Note that the standalone value is * automatically reset after first printing of a space, or when a text is printed. * if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLElement(name); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLElement(name, cleanAttributes(name, attributes)); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLElement(name, cleanAttributes(name, attributes)); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLStartElement(name); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLStartElement(name, cleanAttributes(name, attributes)); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLStartElement(name, cleanAttributes(name, attributes)); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenStartElement(); super.printXMLStartElement(name, cleanAttributes(name, attributes)); } if (this.htmlElementSanitizer == null || this.htmlElementSanitizer.isElementAllowed(name)) { handleSpaceWhenEndlement(); super.printXMLEndElement(name); this.elementEnded = true; } private Map<String, String> cleanAttributes(String elementName, Map<String, String> attributes) { Map<String, String> cleanAttributes; if (this.htmlElementSanitizer == null || attributes == null) { cleanAttributes = attributes; } else { cleanAttributes = new LinkedHashMap<>(); for (Map.Entry<String, String> e : attributes.entrySet()) { if (this.htmlElementSanitizer.isAttributeAllowed(elementName, e.getKey(), e.getValue())) { cleanAttributes.put(e.getKey(), e.getValue()); } else { cleanAttributes.put(TRANSLATED_ATTRIBUTE_PREFIX + e.getKey(), e.getValue()); } } } return cleanAttributes; } private String[][] cleanAttributes(String elementName, String[][] attributes) { String[][] allowedAttributes; if (this.htmlElementSanitizer == null || attributes == null) { allowedAttributes = attributes; } else { allowedAttributes = Arrays.stream(attributes) .map(entry -> { if (this.htmlElementSanitizer.isAttributeAllowed(elementName, entry[0], entry[1])) { return entry; } else { return new String[] { TRANSLATED_ATTRIBUTE_PREFIX + entry[0], entry[1] }; } }) .toArray(String[][]::new); } return allowedAttributes; } private Attributes cleanAttributes(String elementName, Attributes attributes) { Attributes allowedAttribute; if (this.htmlElementSanitizer == null || attributes == null) { allowedAttribute = attributes; } else { allowedAttribute = new AttributesImpl(); for (int i = 0; i < attributes.getLength(); ++i) { if (this.htmlElementSanitizer.isAttributeAllowed(elementName, attributes.getQName(i), attributes.getValue(i))) { ((AttributesImpl) allowedAttribute).addAttribute(null, null, attributes.getQName(i), null, attributes.getValue(i)); } else { ((AttributesImpl) allowedAttribute).addAttribute(null, null, TRANSLATED_ATTRIBUTE_PREFIX + attributes.getQName(i), null, attributes.getValue(i)); } } } return allowedAttribute; }
[]
CVE-2023-37908
f4d5acac451dccaf276e69f0b49b72221eef5d2f
https://github.com/xwiki/xwiki-rendering
[{'lang': 'en', 'value': 'XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. The cleaning of attributes during XHTML rendering, introduced in version 14.6-rc-1, allowed the injection of arbitrary HTML code and thus cross-site scripting via invalid attribute names. This can be exploited, e.g., via the link syntax in any content that supports XWiki syntax like comments in XWiki. When a user moves the mouse over a malicious link, the malicious JavaScript code is executed in the context of the user session. When this user is a privileged user who has programming rights, this allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. While this attribute was correctly recognized as not allowed, the attribute was still printed with a prefix `data-xwiki-translated-attribute-` without further cleaning or validation. This problem has been patched in XWiki 14.10.4 and 15.0 RC1 by removing characters not allowed in data attributes and then validating the cleaned attribute again. There are no known workarounds apart from upgrading to a version including the fix.'}]
null
9.6
2023-10-25T18:17Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
XRENDERING-697: XHTMLWikiPrinter doesn't validate generated data attributes * Strip invalid characters and make sure the data attribute is allowed. * Add tests.
2023-01-13 17:40:51 +0100
f4d5acac4
1,624
2
[ "xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java", "xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java" ]
Java
{"xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java": {"lines_added": 51, "lines_deleted": 4}, "xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java": {"lines_added": 81, "lines_deleted": 0}}
diff --git a/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java b/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java index 766250a17..83df754d1 100644 --- a/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java +++ b/xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java @@ -21,10 +21,12 @@ import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.regex.Pattern; import org.apache.commons.lang3.StringUtils; import org.xml.sax.Attributes; import org.xml.sax.helpers.AttributesImpl; import org.xwiki.stability.Unstable; @@ -46,10 +48,21 @@ public class XHTMLWikiPrinter extends XMLWikiPrinter * @since 14.6RC1 */ @Unstable public static final String TRANSLATED_ATTRIBUTE_PREFIX = "data-xwiki-translated-attribute-"; + /** + * Pattern for matching characters not allowed in data attributes. + * <p> + * This is the inverse of the definition of a name being + * <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible>XML-compatible</a>, + * i.e., matching the <a href="https://www.w3.org/TR/xml/#NT-Name">Name production</a> without ":". + */ + private static final Pattern DATA_REPLACEMENT_PATTERN = Pattern.compile("[^A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6" + + "\\u00F8-\\u02ff\\u0370-\\u037d\\u037f-\\u1fff\\u200c\\u200d\\u2070-\\u218f\\u2c00-\\u2fef\\u3001-\\ud7ff" + + "\\uf900-\\ufdcf\\ufdf0-\\ufffd\\x{10000}-\\x{EFFFF}\\-.0-9\\u00b7\\u0300-\\u036f\\u203f-\\u2040]"); + /** * The sanitizer used to restrict allowed elements and attributes, can be null (no restrictions). * * @since 14.6RC1 */ @@ -258,11 +271,17 @@ private Map<String, String> cleanAttributes(String elementName, Map<String, Stri cleanAttributes = new LinkedHashMap<>(); for (Map.Entry<String, String> e : attributes.entrySet()) { if (this.htmlElementSanitizer.isAttributeAllowed(elementName, e.getKey(), e.getValue())) { cleanAttributes.put(e.getKey(), e.getValue()); } else { - cleanAttributes.put(TRANSLATED_ATTRIBUTE_PREFIX + e.getKey(), e.getValue()); + // Keep but clean invalid attributes with a prefix (removed during parsing) to avoid loosing them + // through WYSIWYG editing. + String translatedName = + TRANSLATED_ATTRIBUTE_PREFIX + removeInvalidDataAttributeCharacters(e.getKey()); + if (this.htmlElementSanitizer.isAttributeAllowed(elementName, translatedName, e.getValue())) { + cleanAttributes.put(translatedName, e.getValue()); + } } } } return cleanAttributes; @@ -277,13 +296,22 @@ private String[][] cleanAttributes(String elementName, String[][] attributes) allowedAttributes = Arrays.stream(attributes) .map(entry -> { if (this.htmlElementSanitizer.isAttributeAllowed(elementName, entry[0], entry[1])) { return entry; } else { - return new String[] { TRANSLATED_ATTRIBUTE_PREFIX + entry[0], entry[1] }; + // Keep but clean invalid attributes with a prefix (removed during parsing) to avoid loosing + // them through WYSIWYG editing. + String translatedName = + TRANSLATED_ATTRIBUTE_PREFIX + removeInvalidDataAttributeCharacters(entry[0]); + if (this.htmlElementSanitizer.isAttributeAllowed(elementName, translatedName, entry[1])) { + return new String[] { translatedName, entry[1] }; + } else { + return null; + } } }) + .filter(Objects::nonNull) .toArray(String[][]::new); } return allowedAttributes; } @@ -302,19 +330,38 @@ private Attributes cleanAttributes(String elementName, Attributes attributes) attributes.getValue(i))) { ((AttributesImpl) allowedAttribute).addAttribute(null, null, attributes.getQName(i), null, attributes.getValue(i)); } else { - ((AttributesImpl) allowedAttribute).addAttribute(null, null, - TRANSLATED_ATTRIBUTE_PREFIX + attributes.getQName(i), null, attributes.getValue(i)); + // Keep but clean invalid attributes with a prefix (removed during parsing) to avoid loosing them + // through WYSIWYG editing. + String translatedName = + TRANSLATED_ATTRIBUTE_PREFIX + removeInvalidDataAttributeCharacters(attributes.getQName(i)); + if (this.htmlElementSanitizer.isAttributeAllowed(elementName, translatedName, + attributes.getValue(i))) + { + ((AttributesImpl) allowedAttribute).addAttribute(null, null, + translatedName, null, attributes.getValue(i)); + } } } } return allowedAttribute; } + /** + * Strips out invalid characters from names used for data attributes. + * + * @param name the data attribute name to clean + * @return valid name, to be prefixed with data- + */ + public static String removeInvalidDataAttributeCharacters(String name) + { + return DATA_REPLACEMENT_PATTERN.matcher(name).replaceAll(""); + } + private void handleSpaceWhenStartElement() { // Use case: <tag1>something <tag2>... // Use case: <tag1>something <!--... if (this.spaceCount > 0) { diff --git a/xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java b/xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java index 19785cd28..f2b778965 100644 --- a/xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java +++ b/xwiki-rendering-xml/src/test/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinterTest.java @@ -17,15 +17,25 @@ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.renderer.printer; +import java.util.Map; + import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; +import org.mockito.InOrder; +import org.mockito.Mockito; +import org.xml.sax.helpers.AttributesImpl; +import org.xwiki.xml.html.HTMLElementSanitizer; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.atLeast; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoMoreInteractions; +import static org.mockito.Mockito.when; /** * Unit tests for {@link XHTMLWikiPrinter}. * * @version $Id$ @@ -44,6 +54,77 @@ void testRawEscaping(String input, String expected) WikiPrinter mockPrinter = mock(WikiPrinter.class); XHTMLWikiPrinter xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter); xhtmlWikiPrinter.printRaw(input); verify(mockPrinter).print(expected); } + + @ParameterizedTest + @CsvSource({ + "invalid, value, data-xwiki-translated-attribute-invalid, value", + "valid, test&, valid, test&amp;", + "in/valid, value, data-xwiki-translated-attribute-invalid, value" + }) + void testParameterCleaning(String parameterName, String parameterValue, String expectedName, String expectedValue) + { + HTMLElementSanitizer mockSanitizer = mock(HTMLElementSanitizer.class); + when(mockSanitizer.isElementAllowed(anyString())).thenReturn(true); + when(mockSanitizer.isAttributeAllowed(anyString(), anyString(), anyString())).then(invocation -> + { + String attributeName = invocation.getArgument(1, String.class); + return "valid".equals(attributeName) || attributeName.startsWith("data-"); + }); + + // Test all possibilities of invoking the printer (with different kinds of arguments). + WikiPrinter mockPrinter = mock(WikiPrinter.class); + XHTMLWikiPrinter xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); + Map<String, String> mapParameters = Map.of(parameterName, parameterValue); + xhtmlWikiPrinter.printXMLStartElement("div", mapParameters); + verify(mockSanitizer, atLeast(1)).isElementAllowed("div"); + verify(mockSanitizer, atLeast(1)).isAttributeAllowed("div", parameterName, parameterValue); + verify(mockSanitizer, atLeast(1)).isAttributeAllowed("div", expectedName, parameterValue); + verifyPrinting(mockPrinter, expectedName, expectedValue, true); + + mockPrinter = mock(WikiPrinter.class); + xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); + xhtmlWikiPrinter.printXMLElement("div", mapParameters); + verifyPrinting(mockPrinter, expectedName, expectedValue, false); + + mockPrinter = mock(WikiPrinter.class); + xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); + String[][] arrayParameters = { { parameterName, parameterValue } }; + xhtmlWikiPrinter.printXMLStartElement("div", arrayParameters); + verifyPrinting(mockPrinter, expectedName, expectedValue, true); + + mockPrinter = mock(WikiPrinter.class); + xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); + xhtmlWikiPrinter.printXMLElement("div", arrayParameters); + verifyPrinting(mockPrinter, expectedName, expectedValue, false); + + mockPrinter = mock(WikiPrinter.class); + xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); + AttributesImpl attributes = new AttributesImpl(); + attributes.addAttribute(null, null, parameterName, null, parameterValue); + xhtmlWikiPrinter.printXMLStartElement("div", attributes); + verifyPrinting(mockPrinter, expectedName, expectedValue, true); + } + + private void verifyPrinting(WikiPrinter mockPrinter, String attributeName, + String attributeValue, boolean isStart) + { + InOrder inOrder = Mockito.inOrder(mockPrinter); + inOrder.verify(mockPrinter).print("<"); + inOrder.verify(mockPrinter).print("div"); + inOrder.verify(mockPrinter).print(" "); + inOrder.verify(mockPrinter).print(attributeName); + inOrder.verify(mockPrinter).print("="); + inOrder.verify(mockPrinter).print("\""); + inOrder.verify(mockPrinter).print(attributeValue); + inOrder.verify(mockPrinter).print("\""); + if (isStart) { + inOrder.verify(mockPrinter).print(">"); + } else { + inOrder.verify(mockPrinter).print("/>"); + } + verifyNoMoreInteractions(mockPrinter); + + } }
cleanAttributes.put(TRANSLATED_ATTRIBUTE_PREFIX + e.getKey(), e.getValue()); return new String[] { TRANSLATED_ATTRIBUTE_PREFIX + entry[0], entry[1] }; ((AttributesImpl) allowedAttribute).addAttribute(null, null, TRANSLATED_ATTRIBUTE_PREFIX + attributes.getQName(i), null, attributes.getValue(i));
import java.util.Objects; import java.util.regex.Pattern; /** * Pattern for matching characters not allowed in data attributes. * <p> * This is the inverse of the definition of a name being * <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible>XML-compatible</a>, * i.e., matching the <a href="https://www.w3.org/TR/xml/#NT-Name">Name production</a> without ":". */ private static final Pattern DATA_REPLACEMENT_PATTERN = Pattern.compile("[^A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6" + "\\u00F8-\\u02ff\\u0370-\\u037d\\u037f-\\u1fff\\u200c\\u200d\\u2070-\\u218f\\u2c00-\\u2fef\\u3001-\\ud7ff" + "\\uf900-\\ufdcf\\ufdf0-\\ufffd\\x{10000}-\\x{EFFFF}\\-.0-9\\u00b7\\u0300-\\u036f\\u203f-\\u2040]"); // Keep but clean invalid attributes with a prefix (removed during parsing) to avoid loosing them // through WYSIWYG editing. String translatedName = TRANSLATED_ATTRIBUTE_PREFIX + removeInvalidDataAttributeCharacters(e.getKey()); if (this.htmlElementSanitizer.isAttributeAllowed(elementName, translatedName, e.getValue())) { cleanAttributes.put(translatedName, e.getValue()); } // Keep but clean invalid attributes with a prefix (removed during parsing) to avoid loosing // them through WYSIWYG editing. String translatedName = TRANSLATED_ATTRIBUTE_PREFIX + removeInvalidDataAttributeCharacters(entry[0]); if (this.htmlElementSanitizer.isAttributeAllowed(elementName, translatedName, entry[1])) { return new String[] { translatedName, entry[1] }; } else { return null; } .filter(Objects::nonNull) // Keep but clean invalid attributes with a prefix (removed during parsing) to avoid loosing them // through WYSIWYG editing. String translatedName = TRANSLATED_ATTRIBUTE_PREFIX + removeInvalidDataAttributeCharacters(attributes.getQName(i)); if (this.htmlElementSanitizer.isAttributeAllowed(elementName, translatedName, attributes.getValue(i))) { ((AttributesImpl) allowedAttribute).addAttribute(null, null, translatedName, null, attributes.getValue(i)); } /** * Strips out invalid characters from names used for data attributes. * * @param name the data attribute name to clean * @return valid name, to be prefixed with data- */ public static String removeInvalidDataAttributeCharacters(String name) { return DATA_REPLACEMENT_PATTERN.matcher(name).replaceAll(""); } import java.util.Map; import org.mockito.InOrder; import org.mockito.Mockito; import org.xml.sax.helpers.AttributesImpl; import org.xwiki.xml.html.HTMLElementSanitizer; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.atLeast; import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.when; @ParameterizedTest @CsvSource({ "invalid, value, data-xwiki-translated-attribute-invalid, value", "valid, test&, valid, test&amp;", "in/valid, value, data-xwiki-translated-attribute-invalid, value" }) void testParameterCleaning(String parameterName, String parameterValue, String expectedName, String expectedValue) { HTMLElementSanitizer mockSanitizer = mock(HTMLElementSanitizer.class); when(mockSanitizer.isElementAllowed(anyString())).thenReturn(true); when(mockSanitizer.isAttributeAllowed(anyString(), anyString(), anyString())).then(invocation -> { String attributeName = invocation.getArgument(1, String.class); return "valid".equals(attributeName) || attributeName.startsWith("data-"); }); // Test all possibilities of invoking the printer (with different kinds of arguments). WikiPrinter mockPrinter = mock(WikiPrinter.class); XHTMLWikiPrinter xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); Map<String, String> mapParameters = Map.of(parameterName, parameterValue); xhtmlWikiPrinter.printXMLStartElement("div", mapParameters); verify(mockSanitizer, atLeast(1)).isElementAllowed("div"); verify(mockSanitizer, atLeast(1)).isAttributeAllowed("div", parameterName, parameterValue); verify(mockSanitizer, atLeast(1)).isAttributeAllowed("div", expectedName, parameterValue); verifyPrinting(mockPrinter, expectedName, expectedValue, true); mockPrinter = mock(WikiPrinter.class); xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); xhtmlWikiPrinter.printXMLElement("div", mapParameters); verifyPrinting(mockPrinter, expectedName, expectedValue, false); mockPrinter = mock(WikiPrinter.class); xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); String[][] arrayParameters = { { parameterName, parameterValue } }; xhtmlWikiPrinter.printXMLStartElement("div", arrayParameters); verifyPrinting(mockPrinter, expectedName, expectedValue, true); mockPrinter = mock(WikiPrinter.class); xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); xhtmlWikiPrinter.printXMLElement("div", arrayParameters); verifyPrinting(mockPrinter, expectedName, expectedValue, false); mockPrinter = mock(WikiPrinter.class); xhtmlWikiPrinter = new XHTMLWikiPrinter(mockPrinter, mockSanitizer); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(null, null, parameterName, null, parameterValue); xhtmlWikiPrinter.printXMLStartElement("div", attributes); verifyPrinting(mockPrinter, expectedName, expectedValue, true); } private void verifyPrinting(WikiPrinter mockPrinter, String attributeName, String attributeValue, boolean isStart) { InOrder inOrder = Mockito.inOrder(mockPrinter); inOrder.verify(mockPrinter).print("<"); inOrder.verify(mockPrinter).print("div"); inOrder.verify(mockPrinter).print(" "); inOrder.verify(mockPrinter).print(attributeName); inOrder.verify(mockPrinter).print("="); inOrder.verify(mockPrinter).print("\""); inOrder.verify(mockPrinter).print(attributeValue); inOrder.verify(mockPrinter).print("\""); if (isStart) { inOrder.verify(mockPrinter).print(">"); } else { inOrder.verify(mockPrinter).print("/>"); } verifyNoMoreInteractions(mockPrinter); }
[ "validation" ]
CVE-2023-37912
5f558b8fac8b716d19999225f38cb8ed0814116e
https://github.com/xwiki/xwiki-rendering
[{'lang': 'en', 'value': 'XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. Prior to version 14.10.6 of `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` and `org.xwiki.platform:xwiki-rendering-macro-footnotes` and prior to version 15.1-rc-1 of `org.xwiki.platform:xwiki-rendering-macro-footnotes`, the footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1. There is no workaround apart from upgrading to a fixed version of the footnote macro.'}]
null
8.8
2023-10-25T18:17Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
XRENDERING-688: Improve footnote rendering (#246) * Parse and execute the footnote's content directly instead of from the putFootnotes macro. * Use the id generator to generate unique ids. * Adapt the existing test to expect nested footnote support. * Add new tests to test some more corner cases. * Wrap the content of the footnote in a composite block to make it easier to handle. * Remove Checkstyle suppressions.
2023-02-16 13:46:00 +0100
5f558b8fa
1,624
2
[ "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/pom.xml", "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java", "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java", "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/java/org/xwiki/rendering/macro/footnote/ExecutedContentMacro.java", "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/META-INF/components.txt", "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote3.test", "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote6.test" ]
Java
{"xwiki-rendering-macros/xwiki-rendering-macro-footnotes/pom.xml": {"lines_added": 0, "lines_deleted": 2}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/checkstyle/checkstyle-suppressions.xml": {"lines_added": 0, "lines_deleted": 30}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java": {"lines_added": 10, "lines_deleted": 1}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java": {"lines_added": 173, "lines_deleted": 65}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/java/org/xwiki/rendering/macro/footnote/ExecutedContentMacro.java": {"lines_added": 75, "lines_deleted": 0}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/META-INF/components.txt": {"lines_added": 1, "lines_deleted": 0}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote3.test": {"lines_added": 20, "lines_deleted": 7}, "xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote6.test": {"lines_added": 138, "lines_deleted": 0}}
diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/pom.xml b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/pom.xml index a44e855ab..cf3e0ab0e 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/pom.xml +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/pom.xml @@ -32,12 +32,10 @@ <description>Adds a note of text placed (by default) at the bottom of the page</description> <properties> <xwiki.jacoco.instructionRatio>0.92</xwiki.jacoco.instructionRatio> <!-- Name to display by the Extension Manager --> <xwiki.extension.name>Footnote Macro</xwiki.extension.name> - <!-- {{putFootnotes}} is a complex macro that needs to instantiate several different XDOM classes --> - <checkstyle.suppressions.location>${basedir}/src/main/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location> </properties> <!-- Test dependencies --> <dependencies> <dependency> diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/checkstyle/checkstyle-suppressions.xml b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/checkstyle/checkstyle-suppressions.xml deleted file mode 100644 index 2e37132d4..000000000 --- a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/checkstyle/checkstyle-suppressions.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - * See the NOTICE file distributed with this work for additional - * information regarding copyright ownership. - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. ---> - -<!DOCTYPE suppressions PUBLIC - "-//Puppy Crawl//DTD Suppressions 1.0//EN" - "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> - -<suppressions> - <!-- {{putFootnotes}} is a complex macro that needs to instantiate several different XDOM classes --> - <suppress checks="ClassDataAbstractionCoupling" files="PutFootnotesMacro.java" /> -</suppressions> diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java index 90a1b49dd..3a58b737a 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java @@ -21,20 +21,22 @@ import java.util.Collections; import java.util.List; import java.util.Set; +import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import org.xwiki.component.annotation.Component; import org.xwiki.rendering.block.Block; import org.xwiki.rendering.block.MacroBlock; import org.xwiki.rendering.block.match.BlockMatcher; import org.xwiki.rendering.block.match.MacroBlockMatcher; import org.xwiki.rendering.block.match.MacroMarkerBlockMatcher; import org.xwiki.rendering.macro.AbstractMacro; +import org.xwiki.rendering.macro.MacroContentParser; import org.xwiki.rendering.macro.MacroExecutionException; import org.xwiki.rendering.macro.descriptor.DefaultContentDescriptor; import org.xwiki.rendering.macro.footnote.FootnoteMacroParameters; import org.xwiki.rendering.transformation.MacroTransformationContext; @@ -79,10 +81,16 @@ public class FootnoteMacro extends AbstractMacro<FootnoteMacroParameters> * Matches MacroMarkerBlocks having a macro id of {@link PutFootnotesMacro#MACRO_NAME}. */ private static final BlockMatcher PUTFOOTNOTE_MARKER_MATCHER = new MacroMarkerBlockMatcher(PutFootnotesMacro.MACRO_NAME); + /** + * Used to parse the content of the footnote. + */ + @Inject + private MacroContentParser contentParser; + /** * Create and initialize the descriptor of the macro. */ public FootnoteMacro() { @@ -114,8 +122,9 @@ public List<Block> execute(FootnoteMacroParameters parameters, String content, M if (context.getCurrentMacroBlock().getFirstBlock(PUTFOOTNOTE_MARKER_MATCHER, Block.Axes.ANCESTOR) == null) { Block putFootnotesMacro = new MacroBlock(PutFootnotesMacro.MACRO_NAME, Collections.emptyMap(), false); root.addChild(putFootnotesMacro); } } - return Collections.emptyList(); + + return this.contentParser.parse(content, context, true, true).getChildren(); } } diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java index 841f0b4f3..7d9ca5264 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java @@ -18,36 +18,41 @@ * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.internal.macro.footnote; import java.util.Collections; +import java.util.LinkedHashMap; import java.util.List; -import java.util.ListIterator; +import java.util.Map; +import java.util.Objects; import java.util.Set; +import java.util.concurrent.atomic.AtomicInteger; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; import org.xwiki.component.annotation.Component; import org.xwiki.rendering.block.Block; +import org.xwiki.rendering.block.CompositeBlock; import org.xwiki.rendering.block.FormatBlock; import org.xwiki.rendering.block.LinkBlock; import org.xwiki.rendering.block.ListItemBlock; import org.xwiki.rendering.block.MacroMarkerBlock; import org.xwiki.rendering.block.NumberedListBlock; import org.xwiki.rendering.block.SpaceBlock; import org.xwiki.rendering.block.WordBlock; -import org.xwiki.rendering.block.match.ClassBlockMatcher; +import org.xwiki.rendering.block.match.MacroMarkerBlockMatcher; import org.xwiki.rendering.listener.Format; import org.xwiki.rendering.listener.reference.DocumentResourceReference; +import org.xwiki.rendering.listener.reference.ResourceReference; import org.xwiki.rendering.macro.AbstractMacro; -import org.xwiki.rendering.macro.MacroContentParser; -import org.xwiki.rendering.macro.MacroExecutionException; import org.xwiki.rendering.macro.footnote.FootnoteMacroParameters; import org.xwiki.rendering.transformation.MacroTransformationContext; +import org.xwiki.rendering.util.IdGenerator; /** * List footnotes at the end of the page. * * @version $Id$ @@ -75,15 +80,72 @@ public class PutFootnotesMacro extends AbstractMacro<FootnoteMacroParameters> private static final String FOOTNOTE_ID_PREFIX = "x_footnote_"; /** Prefix for the ID of the footnote. */ private static final String FOOTNOTE_REFERENCE_ID_PREFIX = "x_footnote_ref_"; + /** Class name for the reference to the footnote. */ + private static final String FOOTNOTE_REF_CLASS_NAME = "footnoteRef"; + /** - * Used to parse the content of the macro. + * Internal data structure for representing a footnote. */ + private static class Footnote + { + /** + * The HTML id of the footnote. + */ + private String id; + + /** + * The HTML id of the reference to the footnote (for jumping back). + */ + private String referenceId; + + /** + * The macro marker block of the footnote macro. + */ + private final MacroMarkerBlock macroMarkerBlock; + + /** + * The content of the footnote. + */ + private CompositeBlock content; + + /** + * Create a new footnote for the given footnote macro marker block. + * <p> + * If the only child is a format block with a reference id, the ids are extracted from the format block and + * its link child, otherwise the content of the macro marker is set as content and ids should be set later. + * + * @param macroMarkerBlock the footnote macro marker block + */ + Footnote(MacroMarkerBlock macroMarkerBlock) + { + this.macroMarkerBlock = macroMarkerBlock; + + if (macroMarkerBlock.getChildren().size() == 1 + && macroMarkerBlock.getChildren().get(0) instanceof FormatBlock + && StringUtils.startsWith(macroMarkerBlock.getChildren().get(0).getParameter(ID_ATTRIBUTE_NAME), + FOOTNOTE_REFERENCE_ID_PREFIX)) + { + Block formatBlock = macroMarkerBlock.getChildren().get(0); + if (!formatBlock.getChildren().isEmpty() && formatBlock.getChildren().get(0) instanceof LinkBlock) { + LinkBlock linkBlock = (LinkBlock) formatBlock.getChildren().get(0); + ResourceReference reference = linkBlock.getReference(); + if (reference instanceof DocumentResourceReference) { + this.id = ((DocumentResourceReference) reference).getAnchor(); + } + } + this.referenceId = formatBlock.getParameter(ID_ATTRIBUTE_NAME); + } else { + this.content = new CompositeBlock(macroMarkerBlock.getChildren()); + } + } + } + @Inject - private MacroContentParser contentParser; + private Logger logger; /** * Create and initialize the descriptor of the macro. */ public PutFootnotesMacro() @@ -101,73 +163,125 @@ public boolean supportsInlineMode() return false; } @Override public List<Block> execute(FootnoteMacroParameters parameters, String content, MacroTransformationContext context) - throws MacroExecutionException { List<Block> result = Collections.emptyList(); - // Get the list of footnotes in the document Block root = context.getXDOM(); - List<MacroMarkerBlock> footnotes = - root.getBlocks(new ClassBlockMatcher(MacroMarkerBlock.class), Block.Axes.DESCENDANT); - for (ListIterator<MacroMarkerBlock> it = footnotes.listIterator(); it.hasNext();) { - MacroMarkerBlock macro = it.next(); - if (FootnoteMacro.MACRO_NAME.equals(macro.getId())) { - continue; - } else if (PutFootnotesMacro.MACRO_NAME.equals(macro.getId())) { - macro.getParent().replaceChild(Collections.<Block>emptyList(), macro); - } - it.remove(); + List<MacroMarkerBlock> macroMarkerBlocks = + root.getBlocks(new MacroMarkerBlockMatcher(PutFootnotesMacro.MACRO_NAME, FootnoteMacro.MACRO_NAME), + Block.Axes.DESCENDANT); + + Map<String, Footnote> footnotes = new LinkedHashMap<>(); + + // Give footnotes without id temporary, numeric ids, we don't need to retrieve them by id. + AtomicInteger temporaryId = new AtomicInteger(0); + // Get the list of footnotes in the document + macroMarkerBlocks.stream() + .filter(macro -> FootnoteMacro.MACRO_NAME.equals(macro.getId())) + .map(Footnote::new) + .forEach(footnote -> footnotes.put( + Objects.requireNonNullElseGet(footnote.id, () -> String.valueOf(temporaryId.getAndIncrement())), + footnote)); + + // Collect the footnote content from the existing footnote lists and remove them. + macroMarkerBlocks.stream() + .filter(macro -> PutFootnotesMacro.MACRO_NAME.equals(macro.getId())) + .forEach(macro -> collectFootnoteContents(macro, footnotes)); + + IdGenerator idGenerator = null; + if (context.getXDOM() != null) { + idGenerator = context.getXDOM().getIdGenerator(); } - if (footnotes.isEmpty()) { - return result; + + if (!footnotes.isEmpty()) { + NumberedListBlock container = new NumberedListBlock(Collections.emptyList()); + container.setParameter(CLASS_ATTRIBUTE_NAME, "footnotes"); + result = Collections.singletonList(container); + + int counter = 1; + for (Footnote footnote : footnotes.values()) { + if (footnote.content != null) { + Block footnoteResult = processFootnote(footnote, counter, idGenerator); + container.addChild(footnoteResult); + counter++; + } else { + this.logger.warn("No content for footnote [{}] found, ignoring it.", + footnote.macroMarkerBlock); + } + } } - NumberedListBlock container = new NumberedListBlock(Collections.<Block>emptyList()); - container.setParameter(CLASS_ATTRIBUTE_NAME, "footnotes"); - Block footnoteResult; + return result; + } - int counter = 1; - for (MacroMarkerBlock footnote : footnotes) { - footnoteResult = processFootnote(footnote, counter, context); - if (footnoteResult != null) { - container.addChild(footnoteResult); - counter++; + /** + * Collect and remove footnote contents from the given putFootnotes macro marker block. + * + * @param macro the putFootnotes macro marker block from which footnote contents shall be collected + * @param footnotes the footnotes where the content shall be collected + */ + private void collectFootnoteContents(MacroMarkerBlock macro, Map<String, Footnote> footnotes) + { + if (macro.getChildren().size() == 1 && macro.getChildren().get(0) instanceof NumberedListBlock) { + for (Block listItemBlock : macro.getChildren().get(0).getChildren()) { + if (listItemBlock.getChildren().size() == 3 + && listItemBlock.getChildren().get(2) instanceof CompositeBlock + && StringUtils.startsWith(listItemBlock.getChildren().get(0).getParameter(ID_ATTRIBUTE_NAME), + FOOTNOTE_ID_PREFIX)) + { + CompositeBlock footnoteContent = (CompositeBlock) listItemBlock.getChildren().get(2); + String id = listItemBlock.getChildren().get(0).getParameter(ID_ATTRIBUTE_NAME); + if (footnotes.containsKey(id)) { + footnotes.get(id).content = footnoteContent; + } else { + this.logger.warn("Could not find footnote marker for footnote [{}], ignoring it.", + footnoteContent); + } + } } } - return Collections.<Block>singletonList(container); + macro.getParent().removeBlock(macro); } /** - * Processes a {{footnote}} macro, by generating a footnote element to insert in the footnote list and a reference + * Processes a footnote macro, by generating a footnote element to insert in the footnote list and a reference * to it, which is placed instead of the macro call. * - * @param footnoteMacro the {{footnote}} macro element + * @param footnote the footnote * @param counter the current footnote counter - * @param context the execution context of the macro * @return the footnote element which should be inserted in the footnote list - * @throws MacroExecutionException if the footnote content cannot be further processed */ - private ListItemBlock processFootnote(MacroMarkerBlock footnoteMacro, int counter, - MacroTransformationContext context) throws MacroExecutionException + private ListItemBlock processFootnote(Footnote footnote, int counter, IdGenerator idGenerator) { - String content = footnoteMacro.getContent(); - if (StringUtils.isBlank(content)) { - content = " "; + if (footnote.referenceId == null) { + footnote.referenceId = generateId(counter, FOOTNOTE_REFERENCE_ID_PREFIX, idGenerator); } + + if (footnote.id == null) { + footnote.id = generateId(counter, FOOTNOTE_ID_PREFIX, idGenerator); + } + // Construct the footnote and reference blocks - Block referenceBlock = createFootnoteReferenceBlock(counter); - ListItemBlock footnoteBlock = createFootnoteBlock(content, counter, context); + Block referenceBlock = createFootnoteReferenceBlock(counter, footnote.id, footnote.referenceId); + ListItemBlock footnoteBlock = createFootnoteBlock(footnote.content, footnote.id, footnote.referenceId); // Insert the footnote and the reference in the document. - if (referenceBlock != null && footnoteBlock != null) { - addFootnoteRef(footnoteMacro, referenceBlock); - return footnoteBlock; + addFootnoteRef(footnote.macroMarkerBlock, referenceBlock); + return footnoteBlock; + } + + private String generateId(int counter, String idPrefix, IdGenerator idGenerator) + { + String footnoteId = idPrefix + counter; + if (idGenerator != null) { + footnoteId = idGenerator.generateUniqueId(footnoteId.substring(0, 1), footnoteId.substring(1)); } - return null; + + return footnoteId; } /** * Add a footnote to the list of document footnotes. If such a list doesn't exist yet, create it and append it to * the end of the document. @@ -184,50 +298,44 @@ private void addFootnoteRef(MacroMarkerBlock footnoteMacro, Block footnoteRef) /** * Generate the footnote reference (link) that should be inserted at the location of the macro, and should point to * the actual footnote at the end of the document. * * @param counter the current footnote counter + * @param footnoteId the id of the footnote + * @param referenceId the id of the reference * @return the generated reference element, displayed as {@code (superscript(link(footnote index)))} */ - private Block createFootnoteReferenceBlock(int counter) + private Block createFootnoteReferenceBlock(int counter, String footnoteId, String referenceId) { Block result = new WordBlock(String.valueOf(counter)); DocumentResourceReference reference = new DocumentResourceReference(null); - reference.setAnchor(FOOTNOTE_ID_PREFIX + counter); + reference.setAnchor(footnoteId); result = new LinkBlock(Collections.singletonList(result), reference, false); result = new FormatBlock(Collections.singletonList(result), Format.SUPERSCRIPT); - result.setParameter(ID_ATTRIBUTE_NAME, FOOTNOTE_REFERENCE_ID_PREFIX + counter); - result.setParameter(CLASS_ATTRIBUTE_NAME, "footnoteRef"); + result.setParameter(ID_ATTRIBUTE_NAME, referenceId); + result.setParameter(CLASS_ATTRIBUTE_NAME, FOOTNOTE_REF_CLASS_NAME); return result; } /** * Generate the footnote block, a numbered list item containing a backlink to the footnote's reference, and the - * actual footnote text, parsed into XDOM. + * actual footnote content. * - * @param content the string representation of the actual footnote text; the content of the macro - * @param counter the current footnote counter - * @param context the macro transformation context, used for obtaining the correct parser for parsing the content + * @param content the block with the actual footnote content + * @param footnoteId the id of the footnote + * @param referenceId the id of the reference * @return the generated footnote block - * @throws MacroExecutionException if parsing the content fails */ - private ListItemBlock createFootnoteBlock(String content, int counter, MacroTransformationContext context) - throws MacroExecutionException + private ListItemBlock createFootnoteBlock(CompositeBlock content, String footnoteId, String referenceId) { - List<Block> parsedContent; - try { - parsedContent = this.contentParser.parse(content, context, false, true).getChildren(); - } catch (MacroExecutionException e) { - parsedContent = Collections.<Block>singletonList(new WordBlock(content)); - } Block result = new WordBlock("^"); DocumentResourceReference reference = new DocumentResourceReference(null); - reference.setAnchor(FOOTNOTE_REFERENCE_ID_PREFIX + counter); + reference.setAnchor(referenceId); result = new LinkBlock(Collections.singletonList(result), reference, false); - result.setParameter(ID_ATTRIBUTE_NAME, FOOTNOTE_ID_PREFIX + counter); + result.setParameter(ID_ATTRIBUTE_NAME, footnoteId); result.setParameter(CLASS_ATTRIBUTE_NAME, "footnoteBackRef"); result = new ListItemBlock(Collections.singletonList(result)); result.addChild(new SpaceBlock()); - result.addChildren(parsedContent); + result.addChild(content); return (ListItemBlock) result; } } diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/java/org/xwiki/rendering/macro/footnote/ExecutedContentMacro.java b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/java/org/xwiki/rendering/macro/footnote/ExecutedContentMacro.java new file mode 100644 index 000000000..b2905f7e5 --- /dev/null +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/java/org/xwiki/rendering/macro/footnote/ExecutedContentMacro.java @@ -0,0 +1,75 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.xwiki.rendering.macro.footnote; + +import java.util.List; + +import javax.inject.Inject; +import javax.inject.Named; +import javax.inject.Singleton; + +import org.xwiki.component.annotation.Component; +import org.xwiki.rendering.block.Block; +import org.xwiki.rendering.macro.AbstractNoParameterMacro; +import org.xwiki.rendering.macro.MacroContentParser; +import org.xwiki.rendering.macro.MacroExecutionException; +import org.xwiki.rendering.macro.descriptor.DefaultContentDescriptor; +import org.xwiki.rendering.transformation.MacroTransformationContext; + +/** + * Executed content macro used in some {@code *.test} files. + * <p> + * This macro executes its content and thus allows putFootnotes macros to be executed early. + * + * @version $Id$ + */ +@Component +@Named("executedcontent") +@Singleton +public class ExecutedContentMacro extends AbstractNoParameterMacro +{ + /** + * The parser used to parse the content. + */ + @Inject + private MacroContentParser contentParser; + + /** + * Default constructor. + */ + public ExecutedContentMacro() + { + super("Executed Content Macro", "Executes its content.", + new DefaultContentDescriptor("Content", true, Block.LIST_BLOCK_TYPE)); + } + + @Override + public boolean supportsInlineMode() + { + return false; + } + + @Override + public List<Block> execute(Object parameters, String content, MacroTransformationContext context) + throws MacroExecutionException + { + return this.contentParser.parse(content, context, true, context.isInline()).getChildren(); + } +} diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/META-INF/components.txt b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/META-INF/components.txt new file mode 100644 index 000000000..11610f556 --- /dev/null +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/META-INF/components.txt @@ -0,0 +1 @@ +org.xwiki.rendering.macro.footnote.ExecutedContentMacro \ No newline at end of file diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote3.test b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote3.test index 6b86e6f2d..161c34fcd 100644 --- a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote3.test +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote3.test @@ -11,26 +11,39 @@ Nested {{footnote}}footnote{{footnote}} content beginDocument beginParagraph onWord [Nested] onSpace beginMacroMarkerInline [footnote] [] [footnote{{footnote}} content] -beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] -beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] onWord [1] -endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] -endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] endMacroMarkerInline [footnote] [] [footnote{{footnote}} content] endParagraph beginMacroMarkerStandalone [putFootnotes] [] beginList [NUMBERED] [[class]=[footnotes]] beginListItem -beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] onWord [^] -endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] onSpace onWord [footnote] beginMacroMarkerInline [footnote] [] [ content] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] +onWord [2] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] endMacroMarkerInline [footnote] [] [ content] endListItem +beginListItem +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] +onWord [^] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] +onSpace +onSpace +onWord [content] +endListItem endList [NUMBERED] [[class]=[footnotes]] endMacroMarkerStandalone [putFootnotes] [] -endDocument +endDocument \ No newline at end of file diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote6.test b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote6.test new file mode 100644 index 000000000..2b1d5ea02 --- /dev/null +++ b/xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote6.test @@ -0,0 +1,138 @@ +.runTransformations +.#----------------------------------------------------- +.input|xwiki/2.0 +.# Verify that several footnotes and putFootnotes markers work. +.#----------------------------------------------------- +Footnote{{footnote}}content 1{{/footnote}} {{footnote}}content 2{{/footnote}} + +{{putFootnotes/}} + +{{executedcontent}} +{{footnote}}Inner footnote{{/footnote}} +{{/executedcontent}} + +{{executedcontent}} +{{footnote}}Second inner footnote{{/footnote}} +{{/executedcontent}} + + +{{footnote}}These are the footnotes: + +{{putFootnotes/}} + +{{/footnote}} + +{{putFootnotes/}} +.#----------------------------------------------------- +.expect|event/1.0 +.#----------------------------------------------------- +beginDocument +beginParagraph +onWord [Footnote] +beginMacroMarkerInline [footnote] [] [content 1] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-2]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-2]]] [false] +onWord [1] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-2]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-2]] +endMacroMarkerInline [footnote] [] [content 1] +onSpace +beginMacroMarkerInline [footnote] [] [content 2] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_2]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_2]]] [false] +onWord [2] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_2]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_2]] +endMacroMarkerInline [footnote] [] [content 2] +endParagraph +beginMacroMarkerStandalone [executedcontent] [] [{{footnote}}Inner footnote{{/footnote}}] +beginMacroMarkerStandalone [footnote] [] [Inner footnote] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] +onWord [3] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] +endMacroMarkerStandalone [footnote] [] [Inner footnote] +endMacroMarkerStandalone [executedcontent] [] [{{footnote}}Inner footnote{{/footnote}}] +beginMacroMarkerStandalone [executedcontent] [] [{{footnote}}Second inner footnote{{/footnote}}] +beginMacroMarkerStandalone [footnote] [] [Second inner footnote] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] +onWord [4] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] +endMacroMarkerStandalone [footnote] [] [Second inner footnote] +endMacroMarkerStandalone [executedcontent] [] [{{footnote}}Second inner footnote{{/footnote}}] +onEmptyLines [1] +beginMacroMarkerStandalone [footnote] [] [These are the footnotes: + +{{putFootnotes/}} +] +beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_5]] +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_5]]] [false] +onWord [5] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_5]]] [false] +endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_5]] +endMacroMarkerStandalone [footnote] [] [These are the footnotes: + +{{putFootnotes/}} +] +beginMacroMarkerStandalone [putFootnotes] [] +beginList [NUMBERED] [[class]=[footnotes]] +beginListItem +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-2]] +onWord [^] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-2]] +onSpace +onWord [content] +onSpace +onWord [1] +endListItem +beginListItem +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_2]] +onWord [^] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_2]] +onSpace +onWord [content] +onSpace +onWord [2] +endListItem +beginListItem +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] +onWord [^] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] +onSpace +onWord [Inner] +onSpace +onWord [footnote] +endListItem +beginListItem +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] +onWord [^] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] +onSpace +onWord [Second] +onSpace +onWord [inner] +onSpace +onWord [footnote] +endListItem +beginListItem +beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_5]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_5]] +onWord [^] +endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_5]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_5]] +onSpace +beginParagraph +onWord [These] +onSpace +onWord [are] +onSpace +onWord [the] +onSpace +onWord [footnotes] +onSpecialSymbol [:] +endParagraph +endListItem +endList [NUMBERED] [[class]=[footnotes]] +endMacroMarkerStandalone [putFootnotes] [] +endDocument
<!-- {{putFootnotes}} is a complex macro that needs to instantiate several different XDOM classes --> <checkstyle.suppressions.location>${basedir}/src/main/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location> <?xml version="1.0" encoding="UTF-8"?> <!-- * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. <!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.0//EN" "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> <suppressions> <!-- {{putFootnotes}} is a complex macro that needs to instantiate several different XDOM classes --> <suppress checks="ClassDataAbstractionCoupling" files="PutFootnotesMacro.java" /> </suppressions> return Collections.emptyList(); import java.util.ListIterator; import org.xwiki.rendering.block.match.ClassBlockMatcher; import org.xwiki.rendering.macro.MacroContentParser; import org.xwiki.rendering.macro.MacroExecutionException; * Used to parse the content of the macro. private MacroContentParser contentParser; throws MacroExecutionException // Get the list of footnotes in the document List<MacroMarkerBlock> footnotes = root.getBlocks(new ClassBlockMatcher(MacroMarkerBlock.class), Block.Axes.DESCENDANT); for (ListIterator<MacroMarkerBlock> it = footnotes.listIterator(); it.hasNext();) { MacroMarkerBlock macro = it.next(); if (FootnoteMacro.MACRO_NAME.equals(macro.getId())) { continue; } else if (PutFootnotesMacro.MACRO_NAME.equals(macro.getId())) { macro.getParent().replaceChild(Collections.<Block>emptyList(), macro); } it.remove(); if (footnotes.isEmpty()) { return result; NumberedListBlock container = new NumberedListBlock(Collections.<Block>emptyList()); container.setParameter(CLASS_ATTRIBUTE_NAME, "footnotes"); Block footnoteResult; int counter = 1; for (MacroMarkerBlock footnote : footnotes) { footnoteResult = processFootnote(footnote, counter, context); if (footnoteResult != null) { container.addChild(footnoteResult); counter++; return Collections.<Block>singletonList(container); * Processes a {{footnote}} macro, by generating a footnote element to insert in the footnote list and a reference * @param footnoteMacro the {{footnote}} macro element * @param context the execution context of the macro * @throws MacroExecutionException if the footnote content cannot be further processed private ListItemBlock processFootnote(MacroMarkerBlock footnoteMacro, int counter, MacroTransformationContext context) throws MacroExecutionException String content = footnoteMacro.getContent(); if (StringUtils.isBlank(content)) { content = " "; Block referenceBlock = createFootnoteReferenceBlock(counter); ListItemBlock footnoteBlock = createFootnoteBlock(content, counter, context); if (referenceBlock != null && footnoteBlock != null) { addFootnoteRef(footnoteMacro, referenceBlock); return footnoteBlock; return null; private Block createFootnoteReferenceBlock(int counter) reference.setAnchor(FOOTNOTE_ID_PREFIX + counter); result.setParameter(ID_ATTRIBUTE_NAME, FOOTNOTE_REFERENCE_ID_PREFIX + counter); result.setParameter(CLASS_ATTRIBUTE_NAME, "footnoteRef"); * actual footnote text, parsed into XDOM. * @param content the string representation of the actual footnote text; the content of the macro * @param counter the current footnote counter * @param context the macro transformation context, used for obtaining the correct parser for parsing the content * @throws MacroExecutionException if parsing the content fails private ListItemBlock createFootnoteBlock(String content, int counter, MacroTransformationContext context) throws MacroExecutionException List<Block> parsedContent; try { parsedContent = this.contentParser.parse(content, context, false, true).getChildren(); } catch (MacroExecutionException e) { parsedContent = Collections.<Block>singletonList(new WordBlock(content)); } reference.setAnchor(FOOTNOTE_REFERENCE_ID_PREFIX + counter); result.setParameter(ID_ATTRIBUTE_NAME, FOOTNOTE_ID_PREFIX + counter); result.addChildren(parsedContent); beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] endDocument
import javax.inject.Inject; import org.xwiki.rendering.macro.MacroContentParser; /** * Used to parse the content of the footnote. */ @Inject private MacroContentParser contentParser; return this.contentParser.parse(content, context, true, true).getChildren(); import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.xwiki.rendering.block.CompositeBlock; import org.xwiki.rendering.block.match.MacroMarkerBlockMatcher; import org.xwiki.rendering.listener.reference.ResourceReference; import org.xwiki.rendering.util.IdGenerator; /** Class name for the reference to the footnote. */ private static final String FOOTNOTE_REF_CLASS_NAME = "footnoteRef"; * Internal data structure for representing a footnote. private static class Footnote { /** * The HTML id of the footnote. */ private String id; /** * The HTML id of the reference to the footnote (for jumping back). */ private String referenceId; /** * The macro marker block of the footnote macro. */ private final MacroMarkerBlock macroMarkerBlock; /** * The content of the footnote. */ private CompositeBlock content; /** * Create a new footnote for the given footnote macro marker block. * <p> * If the only child is a format block with a reference id, the ids are extracted from the format block and * its link child, otherwise the content of the macro marker is set as content and ids should be set later. * * @param macroMarkerBlock the footnote macro marker block */ Footnote(MacroMarkerBlock macroMarkerBlock) { this.macroMarkerBlock = macroMarkerBlock; if (macroMarkerBlock.getChildren().size() == 1 && macroMarkerBlock.getChildren().get(0) instanceof FormatBlock && StringUtils.startsWith(macroMarkerBlock.getChildren().get(0).getParameter(ID_ATTRIBUTE_NAME), FOOTNOTE_REFERENCE_ID_PREFIX)) { Block formatBlock = macroMarkerBlock.getChildren().get(0); if (!formatBlock.getChildren().isEmpty() && formatBlock.getChildren().get(0) instanceof LinkBlock) { LinkBlock linkBlock = (LinkBlock) formatBlock.getChildren().get(0); ResourceReference reference = linkBlock.getReference(); if (reference instanceof DocumentResourceReference) { this.id = ((DocumentResourceReference) reference).getAnchor(); } } this.referenceId = formatBlock.getParameter(ID_ATTRIBUTE_NAME); } else { this.content = new CompositeBlock(macroMarkerBlock.getChildren()); } } } private Logger logger; List<MacroMarkerBlock> macroMarkerBlocks = root.getBlocks(new MacroMarkerBlockMatcher(PutFootnotesMacro.MACRO_NAME, FootnoteMacro.MACRO_NAME), Block.Axes.DESCENDANT); Map<String, Footnote> footnotes = new LinkedHashMap<>(); // Give footnotes without id temporary, numeric ids, we don't need to retrieve them by id. AtomicInteger temporaryId = new AtomicInteger(0); // Get the list of footnotes in the document macroMarkerBlocks.stream() .filter(macro -> FootnoteMacro.MACRO_NAME.equals(macro.getId())) .map(Footnote::new) .forEach(footnote -> footnotes.put( Objects.requireNonNullElseGet(footnote.id, () -> String.valueOf(temporaryId.getAndIncrement())), footnote)); // Collect the footnote content from the existing footnote lists and remove them. macroMarkerBlocks.stream() .filter(macro -> PutFootnotesMacro.MACRO_NAME.equals(macro.getId())) .forEach(macro -> collectFootnoteContents(macro, footnotes)); IdGenerator idGenerator = null; if (context.getXDOM() != null) { idGenerator = context.getXDOM().getIdGenerator(); if (!footnotes.isEmpty()) { NumberedListBlock container = new NumberedListBlock(Collections.emptyList()); container.setParameter(CLASS_ATTRIBUTE_NAME, "footnotes"); result = Collections.singletonList(container); int counter = 1; for (Footnote footnote : footnotes.values()) { if (footnote.content != null) { Block footnoteResult = processFootnote(footnote, counter, idGenerator); container.addChild(footnoteResult); counter++; } else { this.logger.warn("No content for footnote [{}] found, ignoring it.", footnote.macroMarkerBlock); } } return result; } /** * Collect and remove footnote contents from the given putFootnotes macro marker block. * * @param macro the putFootnotes macro marker block from which footnote contents shall be collected * @param footnotes the footnotes where the content shall be collected */ private void collectFootnoteContents(MacroMarkerBlock macro, Map<String, Footnote> footnotes) { if (macro.getChildren().size() == 1 && macro.getChildren().get(0) instanceof NumberedListBlock) { for (Block listItemBlock : macro.getChildren().get(0).getChildren()) { if (listItemBlock.getChildren().size() == 3 && listItemBlock.getChildren().get(2) instanceof CompositeBlock && StringUtils.startsWith(listItemBlock.getChildren().get(0).getParameter(ID_ATTRIBUTE_NAME), FOOTNOTE_ID_PREFIX)) { CompositeBlock footnoteContent = (CompositeBlock) listItemBlock.getChildren().get(2); String id = listItemBlock.getChildren().get(0).getParameter(ID_ATTRIBUTE_NAME); if (footnotes.containsKey(id)) { footnotes.get(id).content = footnoteContent; } else { this.logger.warn("Could not find footnote marker for footnote [{}], ignoring it.", footnoteContent); } } macro.getParent().removeBlock(macro); * Processes a footnote macro, by generating a footnote element to insert in the footnote list and a reference * @param footnote the footnote private ListItemBlock processFootnote(Footnote footnote, int counter, IdGenerator idGenerator) if (footnote.referenceId == null) { footnote.referenceId = generateId(counter, FOOTNOTE_REFERENCE_ID_PREFIX, idGenerator); if (footnote.id == null) { footnote.id = generateId(counter, FOOTNOTE_ID_PREFIX, idGenerator); } Block referenceBlock = createFootnoteReferenceBlock(counter, footnote.id, footnote.referenceId); ListItemBlock footnoteBlock = createFootnoteBlock(footnote.content, footnote.id, footnote.referenceId); addFootnoteRef(footnote.macroMarkerBlock, referenceBlock); return footnoteBlock; } private String generateId(int counter, String idPrefix, IdGenerator idGenerator) { String footnoteId = idPrefix + counter; if (idGenerator != null) { footnoteId = idGenerator.generateUniqueId(footnoteId.substring(0, 1), footnoteId.substring(1)); return footnoteId; * @param footnoteId the id of the footnote * @param referenceId the id of the reference private Block createFootnoteReferenceBlock(int counter, String footnoteId, String referenceId) reference.setAnchor(footnoteId); result.setParameter(ID_ATTRIBUTE_NAME, referenceId); result.setParameter(CLASS_ATTRIBUTE_NAME, FOOTNOTE_REF_CLASS_NAME); * actual footnote content. * @param content the block with the actual footnote content * @param footnoteId the id of the footnote * @param referenceId the id of the reference private ListItemBlock createFootnoteBlock(CompositeBlock content, String footnoteId, String referenceId) reference.setAnchor(referenceId); result.setParameter(ID_ATTRIBUTE_NAME, footnoteId); result.addChild(content); /* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.rendering.macro.footnote; import java.util.List; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import org.xwiki.component.annotation.Component; import org.xwiki.rendering.block.Block; import org.xwiki.rendering.macro.AbstractNoParameterMacro; import org.xwiki.rendering.macro.MacroContentParser; import org.xwiki.rendering.macro.MacroExecutionException; import org.xwiki.rendering.macro.descriptor.DefaultContentDescriptor; import org.xwiki.rendering.transformation.MacroTransformationContext; /** * Executed content macro used in some {@code *.test} files. * <p> * This macro executes its content and thus allows putFootnotes macros to be executed early. * * @version $Id$ */ @Component @Named("executedcontent") @Singleton public class ExecutedContentMacro extends AbstractNoParameterMacro { /** * The parser used to parse the content. */ @Inject private MacroContentParser contentParser; /** * Default constructor. */ public ExecutedContentMacro() { super("Executed Content Macro", "Executes its content.", new DefaultContentDescriptor("Content", true, Block.LIST_BLOCK_TYPE)); } @Override public boolean supportsInlineMode() { return false; } @Override public List<Block> execute(Object parameters, String content, MacroTransformationContext context) throws MacroExecutionException { return this.contentParser.parse(content, context, true, context.isInline()).getChildren(); } } org.xwiki.rendering.macro.footnote.ExecutedContentMacro beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] onWord [2] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] beginListItem beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] onWord [^] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] onSpace onSpace onWord [content] endListItem endDocument .runTransformations .#----------------------------------------------------- .input|xwiki/2.0 .# Verify that several footnotes and putFootnotes markers work. .#----------------------------------------------------- Footnote{{footnote}}content 1{{/footnote}} {{footnote}}content 2{{/footnote}} {{putFootnotes/}} {{executedcontent}} {{footnote}}Inner footnote{{/footnote}} {{/executedcontent}} {{executedcontent}} {{footnote}}Second inner footnote{{/footnote}} {{/executedcontent}} {{footnote}}These are the footnotes: {{putFootnotes/}} {{/footnote}} {{putFootnotes/}} .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginParagraph onWord [Footnote] beginMacroMarkerInline [footnote] [] [content 1] beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-2]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-2]]] [false] onWord [1] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-2]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-2]] endMacroMarkerInline [footnote] [] [content 1] onSpace beginMacroMarkerInline [footnote] [] [content 2] beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_2]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_2]]] [false] onWord [2] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_2]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_2]] endMacroMarkerInline [footnote] [] [content 2] endParagraph beginMacroMarkerStandalone [executedcontent] [] [{{footnote}}Inner footnote{{/footnote}}] beginMacroMarkerStandalone [footnote] [] [Inner footnote] beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] onWord [3] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1]] endMacroMarkerStandalone [footnote] [] [Inner footnote] endMacroMarkerStandalone [executedcontent] [] [{{footnote}}Inner footnote{{/footnote}}] beginMacroMarkerStandalone [executedcontent] [] [{{footnote}}Second inner footnote{{/footnote}}] beginMacroMarkerStandalone [footnote] [] [Second inner footnote] beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] onWord [4] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_1-1]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_1-1]] endMacroMarkerStandalone [footnote] [] [Second inner footnote] endMacroMarkerStandalone [executedcontent] [] [{{footnote}}Second inner footnote{{/footnote}}] onEmptyLines [1] beginMacroMarkerStandalone [footnote] [] [These are the footnotes: {{putFootnotes/}} ] beginFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_5]] beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_5]]] [false] onWord [5] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_5]]] [false] endFormat [SUPERSCRIPT] [[class]=[footnoteRef][id]=[x_footnote_ref_5]] endMacroMarkerStandalone [footnote] [] [These are the footnotes: {{putFootnotes/}} ] beginMacroMarkerStandalone [putFootnotes] [] beginList [NUMBERED] [[class]=[footnotes]] beginListItem beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-2]] onWord [^] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-2]] onSpace onWord [content] onSpace onWord [1] endListItem beginListItem beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_2]] onWord [^] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_2]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_2]] onSpace onWord [content] onSpace onWord [2] endListItem beginListItem beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] onWord [^] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1]] onSpace onWord [Inner] onSpace onWord [footnote] endListItem beginListItem beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] onWord [^] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_1-1]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_1-1]] onSpace onWord [Second] onSpace onWord [inner] onSpace onWord [footnote] endListItem beginListItem beginLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_5]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_5]] onWord [^] endLink [Typed = [true] Type = [doc] Parameters = [[anchor] = [x_footnote_ref_5]]] [false] [[class]=[footnoteBackRef][id]=[x_footnote_5]] onSpace beginParagraph onWord [These] onSpace onWord [are] onSpace onWord [the] onSpace onWord [footnotes] onSpecialSymbol [:] endParagraph endListItem endList [NUMBERED] [[class]=[footnotes]] endMacroMarkerStandalone [putFootnotes] [] endDocument
[ "validation" ]
CVE-2024-29900
d421d4bd3ced889a4143c5c3ab6d95e3be249eee
https://github.com/electron/packager
[{'lang': 'en', 'value': 'Electron Packager bundles Electron-based application source code with a renamed Electron executable and supporting files into folders ready for distribution. A random segment of ~1-10kb of Node.js heap memory allocated either side of a known buffer will be leaked into the final executable. This memory _could_ contain sensitive information such as environment variables, secrets files, etc. This issue is patched in 18.3.1.\n'}]
null
null
2024-03-29T16:15Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
fix: do not deref the integrity buffer (#1699)
2024-03-28 09:26:41 -0700
d421d4b
154
2
[ "src/resedit.ts" ]
TypeScript
{"src/resedit.ts": {"lines_added": 8, "lines_deleted": 3}}
diff --git a/src/resedit.ts b/src/resedit.ts index aa9c503..b517da2 100644 --- a/src/resedit.ts +++ b/src/resedit.ts @@ -114,14 +114,19 @@ export async function resedit(exePath: string, options: ExeMetadata) { // Output version info versionInfo[0].outputToResourceEntries(res.entries); // Asar Integrity if (options.asarIntegrity) { + const integrityList = Object.keys(options.asarIntegrity).map((file) => ({ + file, + alg: options.asarIntegrity![file].algorithm, + value: options.asarIntegrity![file].hash, + })); res.entries.push({ - type: 'Integrity', - id: 'ElectronAsar', - bin: Buffer.from(JSON.stringify(options.asarIntegrity)).buffer, + type: 'INTEGRITY', + id: 'ELECTRONASAR', + bin: Buffer.from(JSON.stringify(integrityList), 'utf-8'), lang: languageInfo[0].lang, codepage: languageInfo[0].codepage, }); }
type: 'Integrity', id: 'ElectronAsar', bin: Buffer.from(JSON.stringify(options.asarIntegrity)).buffer,
const integrityList = Object.keys(options.asarIntegrity).map((file) => ({ file, alg: options.asarIntegrity![file].algorithm, value: options.asarIntegrity![file].hash, })); type: 'INTEGRITY', id: 'ELECTRONASAR', bin: Buffer.from(JSON.stringify(integrityList), 'utf-8'),
[]
CVE-2021-4431
3bd1709a8f7b1720529bf5dfc9855ad609f436cf
https://github.com/msyk/FMDataAPI
[{'lang': 'en', 'value': 'A vulnerability classified as problematic has been found in msyk FMDataAPI up to 22. Affected is an unknown function of the file FMDataAPI_Sample.php. The manipulation leads to cross site scripting. It is possible to launch the attack remotely. Upgrading to version 23 is able to address this issue. The patch is identified as 3bd1709a8f7b1720529bf5dfc9855ad609f436cf. It is recommended to upgrade the affected component. VDB-244494 is the identifier assigned to this vulnerability.'}]
null
6.1
2023-11-07T11:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix XSS in FMDataAPI_Sample.php
2021-08-27 23:21:27 +0900
3bd1709
34
3
[ "samples/FMDataAPI_Sample.php" ]
PHP
{"samples/FMDataAPI_Sample.php": {"lines_added": 53, "lines_deleted": 53}}
diff --git a/samples/FMDataAPI_Sample.php b/samples/FMDataAPI_Sample.php index 107c3ee..3bf14f4 100644 --- a/samples/FMDataAPI_Sample.php +++ b/samples/FMDataAPI_Sample.php @@ -40,80 +40,80 @@ try { // In case of self-signed one (usually default situation), you don't have to call this method. //$fmdb->setCertValidating(true); // Metadata API is the new feature of FMS18. $pInfo = var_export($fmdb->getProductInfo(), true); - echo "Product Info: {$pInfo}<hr>"; + echo htmlspecialchars("Product Info: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; $pInfo = var_export($fmdb->getDatabaseNames(), true); - echo "Database Names: {$pInfo}<hr>"; + echo htmlspecialchars("Database Names: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; $pInfo = var_export($fmdb->getLayoutNames(), true); - echo "Layout Names: {$pInfo}<hr>"; + echo htmlspecialchars("Layout Names: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; $pInfo = var_export($fmdb->getScriptNames(), true); - echo "Script Names: {$pInfo}<hr>"; + echo htmlspecialchars("Script Names: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; $result = $fmdb->person_layout->getMetadata(); $pInfo = var_export($result, true); - echo "Layout Metadata: {$pInfo}<hr>"; + echo htmlspecialchars("Layout Metadata: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; $result = $fmdb->person_layout->getMetadataOld(); $pInfo = var_export($result, true); - echo "Layout Metadata (Old): {$pInfo}<hr>"; + echo htmlspecialchars("Layout Metadata (Old): {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; // The FMDataAPI has the property as the same name of layout. This sample database has the 'person_layout' layout, // so '$fmdb->person_layout' refers FMLayout object fo the proxy of the layout. FMLayout class has the 'query' method // and returns FileMakerRelation class's object. The condition spefied in parameter is same as FileMaker's Find Record API. $result = $fmdb->person_layout->query(/*array(array("id" => ">1"))*/); // The 'httpStatus()' method returns the HTTP status code in the latest response. - echo "HTTP Status: {$fmdb->httpStatus()}<hr>"; + echo htmlspecialchars("HTTP Status: {$fmdb->httpStatus()}", ENT_QUOTES, "UTF-8") . "<hr>"; // The following two methods return the error code and message of the latest API call which is submitted in query() method. // You can check API calling succeed or fail if error code is or isn't 0 every after API calling methods. - echo "Error Code: {$fmdb->errorCode()}<hr>"; - echo "Error Message: {$fmdb->errorMessage()}<hr>"; + echo htmlspecialchars("Error Code: {$fmdb->errorCode()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Error Message: {$fmdb->errorMessage()}", ENT_QUOTES, "UTF-8") . "<hr>"; // If the query is succeed, the following information can be detected. - echo "Target Table: {$fmdb->getTargetTable()}<hr>"; - echo "Total Count: {$fmdb->getTotalCount()}<hr>"; - echo "Found Count: {$fmdb->getFoundCount()}<hr>"; - echo "Returned Count: {$fmdb->getReturnedCount()}<hr>"; + echo htmlspecialchars("Target Table: {$fmdb->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Total Count: {$fmdb->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Found Count: {$fmdb->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Returned Count: {$fmdb->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; // The FileMakerRelation class implements the Iterator interface and it can repeat with 'foreach.' // The $record also refers a FileMakerRelation object but it is for single record. // This layout has fields as like 'id', 'name', 'mail' and so on, and the field name can be handle // as a property name of the the record referring with $record. if (!is_null($result)) { // If the query is succeed, the following information can be detected. - echo "Target Table: {$result->getTargetTable()}<hr>"; - echo "Total Count: {$result->getTotalCount()}<hr>"; - echo "Found Count: {$result->getFoundCount()}<hr>"; - echo "Returned Count: {$result->getReturnedCount()}<hr>"; + echo htmlspecialchars("Target Table: {$result->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Total Count: {$result->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Found Count: {$result->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Returned Count: {$result->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; foreach ($result as $record) { - echo "id: {$record->id},"; - echo "name: {$record->name},"; - echo "mail: {$record->mail}<hr>"; + echo htmlspecialchars("id: {$record->id},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("name: {$record->name},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("mail: {$record->mail}", ENT_QUOTES, "UTF-8") . "<hr>"; // If you named field name as not variable friendly, you can use field('field_name') method or // set the name to any variable such as $fname = 'field_name'; echo $record->$fname;. // In case of a related field but outside of portal, the field method is available as below: // echo $record->field("summary", "contact_to"); // A portal name property returns records of portal as FileMakerRelation object. - $contacts = $record->contact_to; + $contacts = $record->Contact; // If the query is succeed, the following information can be detected. - echo "Target Table: {$contacts->getTargetTable()}<hr>"; - echo "Total Count: {$contacts->getTotalCount()}<hr>"; - echo "Found Count: {$contacts->getFoundCount()}<hr>"; - echo "Returned Count: {$contacts->getReturnedCount()}<hr>"; + echo htmlspecialchars("Target Table: {$contacts->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Total Count: {$contacts->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Found Count: {$contacts->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Returned Count: {$contacts->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; // You can repeat with foreach for the portal records. foreach ($contacts as $item) { // Technically portal field has to be refered as "contact_to::id" but it can be an indentifier in PHP. // In this case you can call field method as like 'field("summary", "contact_to").' // If the field belongs to the table occurrence for the portal, you can refer the field as like '$item->id.' // If the field belongs to another table occurrence, you have to call the 'field()' method. - echo "[PORTAL(contact_to)] id: {$item->field("id", "contact_to")},"; - echo "summary: {$item->field("summary", "contact_to")}<hr>"; + echo htmlspecialchars("[PORTAL(contact_to)] id: {$item->field("id", "contact_to")},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("summary: {$item->field("summary", "contact_to")}", ENT_QUOTES, "UTF-8") . "<hr>"; // If the object name of the portal is blank, it can be referred as the table occurrence name. // If the object name is specified, you have to access with the object name and it means you have to // call 'field()' method to get the value. } echo "<hr>"; @@ -125,18 +125,18 @@ try { // The FileMakerRelation object from 'query()' method can be accessed as like the 'cursor' style repeating. // The 'count()' method returns the number of records in response. The variable $result referes current // record and you can get the field value with the propaty having the same field name. // The portal can be done with same way. The 'next()' method steps forward the pointer of current record. for ($i = 0; $i < $result->count(); $i++) { - echo "id: {$result->id},"; - echo "name: {$result->name},"; - echo "mail: {$result->mail}<hr>"; - $contacts = $result->contact_to; + echo htmlspecialchars("id: {$result->id},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("name: {$result->name},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("mail: {$result->mail}", ENT_QUOTES, "UTF-8") . "<hr>"; + $contacts = $result->Contact; for ($j = 0; $j < $contacts->count(); $j++) { - echo "[PORTAL(contact_to)] id: {$contacts->field("id", "contact_to")},"; - echo "summary: {$contacts->field("summary", "contact_to")}<hr>"; + echo htmlspecialchars("[PORTAL(contact_to)] id: {$contacts->field("id", "contact_to")},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("summary: {$contacts->field("summary", "contact_to")}", ENT_QUOTES, "UTF-8") . "<hr>"; $contacts->next(); } $result->next(); } } @@ -147,52 +147,52 @@ try { // The 'getRecord()' method query the record with the recordId of the parameter. // It returns the FileMakerRelation object and you can handle it with the return value from 'query()' method. $result = $fmdb->postalcode->getRecord($recId); if (!is_null($result)) { foreach ($result as $record) { - echo "f3: {$record->f3},"; - echo "f7: {$record->f7},"; - echo "f8: {$record->f8}<hr>"; + echo htmlspecialchars("f3: {$record->f3},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("f7: {$record->f7},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("f8: {$record->f8}", ENT_QUOTES, "UTF-8") . "<hr>"; echo "<hr>"; } } // The 'update()' method modifies fields in a record. You have to set parameters as the recordId of target // record and associated array to specify the modified data. $fmdb->postalcode->update($recId, array("f3" => "field 3 modifed", "f8" => "field 8 update")); $result = $fmdb->postalcode->getRecord($recId); if (!is_null($result)) { foreach ($result as $record) { - echo "f3: {$record->f3},"; - echo "f7: {$record->f7},"; - echo "f8: {$record->f8}<hr>"; + echo htmlspecialchars("f3: {$record->f3},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("f7: {$record->f7},", ENT_QUOTES, "UTF-8"); + echo htmlspecialchars("f8: {$record->f8}", ENT_QUOTES, "UTF-8") . "<hr>"; echo "<hr>"; } } // The 'delete()' method deletes the record specified by the parameter. $fmdb->postalcode->delete($recId); // Call script $result = $fmdb->person_layout->query(null, null, -1, 1, null, ["script" => "TestScript", "script.param" => "ok"]); if (!is_null($result)) { - echo "Script Error: {$fmdb->person_layout->getScriptError()}<hr>"; - echo "Script Result: {$fmdb->person_layout->getScriptResult()}<hr>"; + echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptError()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResult()}", ENT_QUOTES, "UTF-8") . "<hr>"; } $result = $fmdb->person_layout->query(null, null, -1, 1, null, ["script.prerequest" => "TestScript", "script.prerequest.param" => "ok"]); if (!is_null($result)) { - echo "Script Error: {$fmdb->person_layout->getScriptErrorPrerequest()}<hr>"; - echo "Script Result: {$fmdb->person_layout->getScriptResultPrerequest()}<hr>"; + echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptErrorPrerequest()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResultPrerequest()}", ENT_QUOTES, "UTF-8") . "<hr>"; } $result = $fmdb->person_layout->query(null, null, -1, 1, null, ["script" => "TestScript", "script.param" => "not"]); if (!is_null($result)) { - echo "Script Error: {$fmdb->person_layout->getScriptError()}<hr>"; - echo "Script Result: {$fmdb->person_layout->getScriptResult()}<hr>"; + echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptError()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResult()}", ENT_QUOTES, "UTF-8") . "<hr>"; } $result = $fmdb->person_layout->query(null, null, -1, 1); if (!is_null($result)) { - echo "Script Error: {$fmdb->person_layout->getScriptError()}<hr>"; - echo "Script Result: {$fmdb->person_layout->getScriptResult()}<hr>"; + echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptError()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResult()}", ENT_QUOTES, "UTF-8") . "<hr>"; } // A new record is created in "testtable" table. $recId = $fmdb->testtable->create(); // The "testtable" table has a container filed "vc1". One image file is going to be uploaded to it. @@ -201,18 +201,18 @@ try { // What kind of data does the container field which inserted an image return? // For example, the returned value was like this: // https://localhost/Streaming_SSL/MainDB/6A4A253F7CE33465DCDFBFF0704B34C0993D54AD85702396920E85249BD0271A.jpg?RCType=EmbeddedRCFileProcessor // This url can get the content of the container field, and it means you can download with file_put_content() function and so on. $result = $fmdb->testtable->getRecord($recId); - echo "Target Table(getRecord): {$result->getTargetTable()}<hr>"; - echo "Total Count(getRecord): {$result->getTotalCount()}<hr>"; - echo "Found Count(getRecord): {$result->getFoundCount()}<hr>"; - echo "Returned Count(getRecord): {$result->getReturnedCount()}<hr>"; + echo htmlspecialchars("Target Table(getRecord): {$result->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Total Count(getRecord): {$result->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Found Count(getRecord): {$result->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; + echo htmlspecialchars("Returned Count(getRecord): {$result->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; if (!is_null($result)) { foreach ($result as $record) { - echo "vc1: {$record->vc1}<hr>"; + echo htmlspecialchars("vc1: {$record->vc1}", ENT_QUOTES, "UTF-8") . "<hr>"; echo "<p><img src='data:image/jpeg;base64," . $record->getContainerData('vc1') . "'></p>"; } } // If you call the 'startCommunication()' method, you can describe a series of database operation @@ -264,7 +264,7 @@ try { var_export($partialResult); echo "<hr>"; } } } catch (Exception $e) { - echo '<div><h3>例外発生</h3>', $e->getMessage(), "<div>"; + echo '<div><h3>例外発生</h3>', htmlspecialchars($e->getMessage(), ENT_QUOTES, "UTF-8"), "<div>"; }
echo "Product Info: {$pInfo}<hr>"; echo "Database Names: {$pInfo}<hr>"; echo "Layout Names: {$pInfo}<hr>"; echo "Script Names: {$pInfo}<hr>"; echo "Layout Metadata: {$pInfo}<hr>"; echo "Layout Metadata (Old): {$pInfo}<hr>"; echo "HTTP Status: {$fmdb->httpStatus()}<hr>"; echo "Error Code: {$fmdb->errorCode()}<hr>"; echo "Error Message: {$fmdb->errorMessage()}<hr>"; echo "Target Table: {$fmdb->getTargetTable()}<hr>"; echo "Total Count: {$fmdb->getTotalCount()}<hr>"; echo "Found Count: {$fmdb->getFoundCount()}<hr>"; echo "Returned Count: {$fmdb->getReturnedCount()}<hr>"; echo "Target Table: {$result->getTargetTable()}<hr>"; echo "Total Count: {$result->getTotalCount()}<hr>"; echo "Found Count: {$result->getFoundCount()}<hr>"; echo "Returned Count: {$result->getReturnedCount()}<hr>"; echo "id: {$record->id},"; echo "name: {$record->name},"; echo "mail: {$record->mail}<hr>"; $contacts = $record->contact_to; echo "Target Table: {$contacts->getTargetTable()}<hr>"; echo "Total Count: {$contacts->getTotalCount()}<hr>"; echo "Found Count: {$contacts->getFoundCount()}<hr>"; echo "Returned Count: {$contacts->getReturnedCount()}<hr>"; echo "[PORTAL(contact_to)] id: {$item->field("id", "contact_to")},"; echo "summary: {$item->field("summary", "contact_to")}<hr>"; echo "id: {$result->id},"; echo "name: {$result->name},"; echo "mail: {$result->mail}<hr>"; $contacts = $result->contact_to; echo "[PORTAL(contact_to)] id: {$contacts->field("id", "contact_to")},"; echo "summary: {$contacts->field("summary", "contact_to")}<hr>"; echo "f3: {$record->f3},"; echo "f7: {$record->f7},"; echo "f8: {$record->f8}<hr>"; echo "f3: {$record->f3},"; echo "f7: {$record->f7},"; echo "f8: {$record->f8}<hr>"; echo "Script Error: {$fmdb->person_layout->getScriptError()}<hr>"; echo "Script Result: {$fmdb->person_layout->getScriptResult()}<hr>"; echo "Script Error: {$fmdb->person_layout->getScriptErrorPrerequest()}<hr>"; echo "Script Result: {$fmdb->person_layout->getScriptResultPrerequest()}<hr>"; echo "Script Error: {$fmdb->person_layout->getScriptError()}<hr>"; echo "Script Result: {$fmdb->person_layout->getScriptResult()}<hr>"; echo "Script Error: {$fmdb->person_layout->getScriptError()}<hr>"; echo "Script Result: {$fmdb->person_layout->getScriptResult()}<hr>"; echo "Target Table(getRecord): {$result->getTargetTable()}<hr>"; echo "Total Count(getRecord): {$result->getTotalCount()}<hr>"; echo "Found Count(getRecord): {$result->getFoundCount()}<hr>"; echo "Returned Count(getRecord): {$result->getReturnedCount()}<hr>"; echo "vc1: {$record->vc1}<hr>"; echo '<div><h3>例外発生</h3>', $e->getMessage(), "<div>";
echo htmlspecialchars("Product Info: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Database Names: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Layout Names: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Names: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Layout Metadata: {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Layout Metadata (Old): {$pInfo}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("HTTP Status: {$fmdb->httpStatus()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Error Code: {$fmdb->errorCode()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Error Message: {$fmdb->errorMessage()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Target Table: {$fmdb->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Total Count: {$fmdb->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Found Count: {$fmdb->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Returned Count: {$fmdb->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Target Table: {$result->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Total Count: {$result->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Found Count: {$result->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Returned Count: {$result->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("id: {$record->id},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("name: {$record->name},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("mail: {$record->mail}", ENT_QUOTES, "UTF-8") . "<hr>"; $contacts = $record->Contact; echo htmlspecialchars("Target Table: {$contacts->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Total Count: {$contacts->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Found Count: {$contacts->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Returned Count: {$contacts->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("[PORTAL(contact_to)] id: {$item->field("id", "contact_to")},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("summary: {$item->field("summary", "contact_to")}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("id: {$result->id},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("name: {$result->name},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("mail: {$result->mail}", ENT_QUOTES, "UTF-8") . "<hr>"; $contacts = $result->Contact; echo htmlspecialchars("[PORTAL(contact_to)] id: {$contacts->field("id", "contact_to")},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("summary: {$contacts->field("summary", "contact_to")}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("f3: {$record->f3},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("f7: {$record->f7},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("f8: {$record->f8}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("f3: {$record->f3},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("f7: {$record->f7},", ENT_QUOTES, "UTF-8"); echo htmlspecialchars("f8: {$record->f8}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptError()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResult()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptErrorPrerequest()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResultPrerequest()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptError()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResult()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Error: {$fmdb->person_layout->getScriptError()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Script Result: {$fmdb->person_layout->getScriptResult()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Target Table(getRecord): {$result->getTargetTable()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Total Count(getRecord): {$result->getTotalCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Found Count(getRecord): {$result->getFoundCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("Returned Count(getRecord): {$result->getReturnedCount()}", ENT_QUOTES, "UTF-8") . "<hr>"; echo htmlspecialchars("vc1: {$record->vc1}", ENT_QUOTES, "UTF-8") . "<hr>"; echo '<div><h3>例外発生</h3>', htmlspecialchars($e->getMessage(), ENT_QUOTES, "UTF-8"), "<div>";
[]
CVE-2023-31470
56d0332bf91104cfc877635f6c82e9348587df04
https://github.com/pymumu/smartdns
[{'lang': 'en', 'value': 'SmartDNS through 41 before 56d0332 allows an out-of-bounds write because of a stack-based buffer overflow in the _dns_encode_domain function in the dns.c file, via a crafted DNS request.'}]
null
9.8
2023-04-28T21:15Z
nan
CWE-787
Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
dns: fix crash issue
2023-04-22 19:06:44 +0800
56d0332
428
2
[ "src/dns.c", "src/dns.h", "src/util.c" ]
C
{"src/dns.c": {"lines_added": 72, "lines_deleted": 17}, "src/dns.h": {"lines_added": 16, "lines_deleted": 7}, "src/util.c": {"lines_added": 20, "lines_deleted": 3}}
diff --git a/src/dns.c b/src/dns.c index c2b0700..42a3b20 100644 --- a/src/dns.c +++ b/src/dns.c @@ -272,10 +272,14 @@ static int _dns_encode_domain(struct dns_context *context, const char *domain) /*[len]string[len]string...[0]0 */ while (_dns_left_len(context) > 1 && *domain != 0) { total_len++; if (dict_offset >= 0) { int offset = 0xc000 | dict_offset; + if (_dns_left_len(context) < 2) { + return -1; + } + _dns_write_short(&ptr_num, offset); context->ptr++; ptr_num = NULL; return total_len; } @@ -293,10 +297,14 @@ static int _dns_encode_domain(struct dns_context *context, const char *domain) num++; context->ptr++; domain++; } + if (_dns_left_len(context) < 1) { + return -1; + } + *ptr_num = num; if (total_len > 1) { /* if domain is '\0', [domain] is '\0' */ *(context->ptr) = 0; @@ -573,11 +581,11 @@ struct dns_rr_nested *dns_add_rr_nested_start(struct dns_rr_nested *rr_nested_bu rr_nested_buffer->rr_head_len = len; return rr_nested_buffer; } -int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, void *data, int data_len) +int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, const void *data, int data_len) { if (rr_nested == NULL || data == NULL || data_len <= 0) { return -1; } @@ -601,10 +609,16 @@ int dns_add_rr_nested_end(struct dns_rr_nested *rr_nested, dns_type_t rtype) unsigned char *ptr = rr_nested->rr_len_ptr; if (ptr == NULL || _dns_left_len(&rr_nested->context) < 2) { return -1; } + /* NO SVC keys, reset ptr */ + if (len <= 14) { + rr_nested->context.ptr = rr_nested->rr_start; + return 0; + } + _dns_write_short(&ptr, len - rr_nested->rr_head_len); return _dns_rr_add_end(rr_nested->context.packet, rr_nested->type, rtype, len); } @@ -1074,11 +1088,16 @@ int dns_add_HTTPS_start(struct dns_rr_nested *svcparam_buffer, struct dns_packet svcparam_buffer = dns_add_rr_nested_start(svcparam_buffer, packet, type, DNS_T_HTTPS, domain, ttl); if (svcparam_buffer == NULL) { return -1; } - int target_len = strnlen(target, DNS_MAX_CNAME_LEN) + 1; + int target_len = 0; + if (target == NULL) { + target = ""; + } + + target_len = strnlen(target, DNS_MAX_CNAME_LEN) + 1; if (_dns_left_len(&svcparam_buffer->context) < 2 + target_len) { return -1; } /* add rr data */ @@ -1115,10 +1134,26 @@ int dns_HTTPS_add_port(struct dns_rr_nested *svcparam, unsigned short port) dns_add_rr_nested_memcpy(svcparam, &value, 2); return 0; } +int dns_HTTPS_add_alpn(struct dns_rr_nested *svcparam, const char *alpn, int alpn_len) +{ + if (_dns_left_len(&svcparam->context) < 2 + 2 + alpn_len) { + return -1; + } + + unsigned short value = DNS_HTTPS_T_ALPN; + dns_add_rr_nested_memcpy(svcparam, &value, 2); + + value = alpn_len; + dns_add_rr_nested_memcpy(svcparam, &value, 2); + dns_add_rr_nested_memcpy(svcparam, alpn, alpn_len); + + return 0; +} + int dns_HTTPS_add_ech(struct dns_rr_nested *svcparam, void *ech, int ech_len) { if (_dns_left_len(&svcparam->context) < 2 + 2 + ech_len) { return -1; } @@ -1131,11 +1166,11 @@ int dns_HTTPS_add_ech(struct dns_rr_nested *svcparam, void *ech, int ech_len) dns_add_rr_nested_memcpy(svcparam, ech, ech_len); return 0; } -int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_A_LEN], int addr_num) +int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num) { if (_dns_left_len(&svcparam->context) < 4 + addr_num * DNS_RR_A_LEN) { return -1; } @@ -1149,11 +1184,12 @@ int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char addr[][ dns_add_rr_nested_memcpy(svcparam, addr[i], DNS_RR_A_LEN); } return 0; } -int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_AAAA_LEN], int addr_num) + +int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num) { if (_dns_left_len(&svcparam->context) < 4 + addr_num * DNS_RR_AAAA_LEN) { return -1; } @@ -1173,45 +1209,52 @@ int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char addr[][ int dns_add_HTTPS_end(struct dns_rr_nested *svcparam) { return dns_add_rr_nested_end(svcparam, DNS_T_HTTPS); } -struct dns_https_param *dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, char *domain, int maxsize, int *ttl, - int *priority, char *target, int target_size) +int dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, struct dns_https_param **https_param, char *domain, int maxsize, + int *ttl, int *priority, char *target, int target_size) { int qtype = 0; unsigned char *data = NULL; int rr_len = 0; data = dns_get_rr_nested_start(rrs, domain, maxsize, &qtype, ttl, &rr_len); if (data == NULL) { - return NULL; + return -1; } if (qtype != DNS_T_HTTPS) { - return NULL; + return -1; } if (rr_len < 2) { - return NULL; + return -1; } *priority = _dns_read_short(&data); rr_len -= 2; if (rr_len <= 0) { - return NULL; + return -1; } int len = strnlen((char *)data, rr_len); safe_strncpy(target, (char *)data, target_size); data += len + 1; rr_len -= len + 1; - if (rr_len <= 0) { - return NULL; + if (rr_len < 0) { + return -1; + } + + if (rr_len == 0) { + *https_param = NULL; + return 0; } - return (struct dns_https_param *)data; + *https_param = (struct dns_https_param *)data; + + return 0; } struct dns_https_param *dns_get_HTTPS_svcparm_next(struct dns_rrs *rrs, struct dns_https_param *param) { return dns_get_rr_nested_next(rrs, param, sizeof(struct dns_https_param) + param->len); @@ -1923,16 +1966,20 @@ static int _dns_encode_HTTPS(struct dns_context *context, struct dns_rrs *rrs) unsigned char *rr_start = NULL; int ttl = 0; int priority = 0; struct dns_https_param *param = NULL; - param = dns_get_HTTPS_svcparm_start(rrs, domain, DNS_MAX_CNAME_LEN, &ttl, &priority, target, DNS_MAX_CNAME_LEN); - if (param == NULL) { - tlog(TLOG_ERROR, "get https param failed."); - return -1; + ret = + dns_get_HTTPS_svcparm_start(rrs, &param, domain, DNS_MAX_CNAME_LEN, &ttl, &priority, target, DNS_MAX_CNAME_LEN); + if (ret < 0) { + tlog(TLOG_DEBUG, "get https param failed."); + return 0; } + qtype = DNS_T_HTTPS; + qclass = DNS_C_IN; + ret = _dns_encode_rr_head(context, domain, qtype, qclass, ttl, 0, &rr_len_ptr); if (ret < 0) { return -1; } @@ -1952,10 +1999,14 @@ static int _dns_encode_HTTPS(struct dns_context *context, struct dns_rrs *rrs) for (; param != NULL; param = dns_get_HTTPS_svcparm_next(rrs, param)) { if (context->ptr - start > rrs->len || _dns_left_len(context) <= 0) { return -1; } + if (param->len + 4 > _dns_left_len(context)) { + return -1; + } + _dns_write_short(&context->ptr, param->key); _dns_write_short(&context->ptr, param->len); switch (param->key) { case DNS_HTTPS_T_MANDATORY: case DNS_HTTPS_T_NO_DEFAULT_ALPN: @@ -1972,10 +2023,14 @@ static int _dns_encode_HTTPS(struct dns_context *context, struct dns_rrs *rrs) context->ptr -= 4; break; } } + if (_dns_left_len(context) < 2) { + return -1; + } + _dns_write_short(&rr_len_ptr, context->ptr - rr_start); return 0; } diff --git a/src/dns.h b/src/dns.h index ad24a13..8bd9ee6 100644 --- a/src/dns.h +++ b/src/dns.h @@ -28,10 +28,12 @@ extern "C" { #define DNS_MAX_CNAME_LEN 256 #define DNS_MAX_OPT_LEN 256 #define DNS_IN_PACKSIZE (512 * 8) #define DNS_PACKSIZE (512 * 12) #define DNS_DEFAULT_PACKET_SIZE 512 +#define DNS_MAX_ALPN_LEN 32 +#define DNS_MAX_ECH_LEN 256 #define DNS_ADDR_FAMILY_IP 1 #define DNS_ADDR_FAMILY_IPV6 2 /* @@ -234,11 +236,11 @@ struct dns_rrs *dns_get_rrs_next(struct dns_packet *packet, struct dns_rrs *rrs) struct dns_rrs *dns_get_rrs_start(struct dns_packet *packet, dns_rr_type type, int *count); struct dns_rr_nested *dns_add_rr_nested_start(struct dns_rr_nested *rr_nested_buffer, struct dns_packet *packet, dns_rr_type type, dns_type_t rtype, const char *domain, int ttl); int dns_add_rr_nested_end(struct dns_rr_nested *rr_nested, dns_type_t rtype); -int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, void *data, int data_len); +int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, const void *data, int data_len); void *dns_get_rr_nested_start(struct dns_rrs *rrs, char *domain, int maxsize, int *qtype, int *ttl, int *rr_len); void *dns_get_rr_nested_next(struct dns_rrs *rrs, void *rr_nested, int rr_nested_len); /* @@ -278,23 +280,30 @@ int dns_get_OPT_ECS(struct dns_rrs *rrs, unsigned short *opt_code, unsigned shor int dns_add_OPT_TCP_KEEPALIVE(struct dns_packet *packet, unsigned short timeout); int dns_get_OPT_TCP_KEEPALIVE(struct dns_rrs *rrs, unsigned short *opt_code, unsigned short *opt_len, unsigned short *timeout); +/* the key must be added in orders, or dig will report FORMERR */ int dns_add_HTTPS_start(struct dns_rr_nested *svcparam_buffer, struct dns_packet *packet, dns_rr_type type, const char *domain, int ttl, int priority, const char *target); int dns_HTTPS_add_raw(struct dns_rr_nested *svcparam, unsigned short key, unsigned char *value, unsigned short len); -int dns_HTTPS_add_port(struct dns_rr_nested *svcparam, unsigned short port); -int dns_HTTPS_add_alpn(struct dns_rr_nested *svcparam, const char *alpn); +/* key 1, alph */ +int dns_HTTPS_add_alpn(struct dns_rr_nested *svcparam, const char *alpn, int alpn_len); +/* key 2, no default alph */ int dns_HTTPS_add_no_default_alpn(struct dns_rr_nested *svcparam); -int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_A_LEN], int addr_num); -int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_AAAA_LEN], int addr_num); +/* key 3, port */ +int dns_HTTPS_add_port(struct dns_rr_nested *svcparam, unsigned short port); +/* key 4, ipv4 */ +int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num); +/* key 5, ech */ int dns_HTTPS_add_ech(struct dns_rr_nested *svcparam, void *ech, int ech_len); +/* key 6, ipv6*/ +int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num); int dns_add_HTTPS_end(struct dns_rr_nested *svcparam); -struct dns_https_param *dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, char *domain, int maxsize, int *ttl, - int *priority, char *target, int target_size); +int dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, struct dns_https_param **https_param, char *domain, int maxsize, + int *ttl, int *priority, char *target, int target_size); struct dns_https_param *dns_get_HTTPS_svcparm_next(struct dns_rrs *rrs, struct dns_https_param *parm); /* * Packet operation */ diff --git a/src/util.c b/src/util.c index d7546e8..77c5ce0 100644 --- a/src/util.c +++ b/src/util.c @@ -1599,14 +1599,15 @@ static int _dns_debug_display(struct dns_packet *packet) case DNS_T_HTTPS: { char name[DNS_MAX_CNAME_LEN] = {0}; char target[DNS_MAX_CNAME_LEN] = {0}; struct dns_https_param *p = NULL; int priority = 0; + int ret = 0; - p = dns_get_HTTPS_svcparm_start(rrs, name, DNS_MAX_CNAME_LEN, &ttl, &priority, target, + ret = dns_get_HTTPS_svcparm_start(rrs, &p, name, DNS_MAX_CNAME_LEN, &ttl, &priority, target, DNS_MAX_CNAME_LEN); - if (p == NULL) { + if (ret != 0) { printf("get HTTPS svcparm failed\n"); break; } printf("domain: %s HTTPS: %s TTL: %d priority: %d\n", name, target, ttl, priority); @@ -1615,11 +1616,27 @@ static int _dns_debug_display(struct dns_packet *packet) switch (p->key) { case DNS_HTTPS_T_MANDATORY: { printf(" HTTPS: mandatory: %s\n", p->value); } break; case DNS_HTTPS_T_ALPN: { - printf(" HTTPS: alpn: %s\n", p->value); + char alph[64] = {0}; + int total_alph_len = 0; + char *ptr = (char *)p->value; + do { + int alphlen = *ptr; + memcpy(alph + total_alph_len, ptr + 1, alphlen); + total_alph_len += alphlen; + ptr += alphlen + 1; + alph[total_alph_len] = ','; + total_alph_len++; + alph[total_alph_len] = ' '; + total_alph_len++; + } while (ptr - (char *)p->value < p->len); + if (total_alph_len > 2) { + alph[total_alph_len - 2] = '\0'; + } + printf(" HTTPS: alpn: %s\n", alph); } break; case DNS_HTTPS_T_NO_DEFAULT_ALPN: { printf(" HTTPS: no_default_alpn: %s\n", p->value); } break; case DNS_HTTPS_T_PORT: {
int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, void *data, int data_len) int target_len = strnlen(target, DNS_MAX_CNAME_LEN) + 1; int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_A_LEN], int addr_num) int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_AAAA_LEN], int addr_num) struct dns_https_param *dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, char *domain, int maxsize, int *ttl, int *priority, char *target, int target_size) return NULL; return NULL; return NULL; return NULL; if (rr_len <= 0) { return NULL; return (struct dns_https_param *)data; param = dns_get_HTTPS_svcparm_start(rrs, domain, DNS_MAX_CNAME_LEN, &ttl, &priority, target, DNS_MAX_CNAME_LEN); if (param == NULL) { tlog(TLOG_ERROR, "get https param failed."); return -1; int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, void *data, int data_len); int dns_HTTPS_add_port(struct dns_rr_nested *svcparam, unsigned short port); int dns_HTTPS_add_alpn(struct dns_rr_nested *svcparam, const char *alpn); int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_A_LEN], int addr_num); int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char addr[][DNS_RR_AAAA_LEN], int addr_num); struct dns_https_param *dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, char *domain, int maxsize, int *ttl, int *priority, char *target, int target_size); p = dns_get_HTTPS_svcparm_start(rrs, name, DNS_MAX_CNAME_LEN, &ttl, &priority, target, if (p == NULL) { printf(" HTTPS: alpn: %s\n", p->value);
if (_dns_left_len(context) < 2) { return -1; } if (_dns_left_len(context) < 1) { return -1; } int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, const void *data, int data_len) /* NO SVC keys, reset ptr */ if (len <= 14) { rr_nested->context.ptr = rr_nested->rr_start; return 0; } int target_len = 0; if (target == NULL) { target = ""; } target_len = strnlen(target, DNS_MAX_CNAME_LEN) + 1; int dns_HTTPS_add_alpn(struct dns_rr_nested *svcparam, const char *alpn, int alpn_len) { if (_dns_left_len(&svcparam->context) < 2 + 2 + alpn_len) { return -1; } unsigned short value = DNS_HTTPS_T_ALPN; dns_add_rr_nested_memcpy(svcparam, &value, 2); value = alpn_len; dns_add_rr_nested_memcpy(svcparam, &value, 2); dns_add_rr_nested_memcpy(svcparam, alpn, alpn_len); return 0; } int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num) int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num) int dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, struct dns_https_param **https_param, char *domain, int maxsize, int *ttl, int *priority, char *target, int target_size) return -1; return -1; return -1; return -1; if (rr_len < 0) { return -1; } if (rr_len == 0) { *https_param = NULL; return 0; *https_param = (struct dns_https_param *)data; return 0; ret = dns_get_HTTPS_svcparm_start(rrs, &param, domain, DNS_MAX_CNAME_LEN, &ttl, &priority, target, DNS_MAX_CNAME_LEN); if (ret < 0) { tlog(TLOG_DEBUG, "get https param failed."); return 0; qtype = DNS_T_HTTPS; qclass = DNS_C_IN; if (param->len + 4 > _dns_left_len(context)) { return -1; } if (_dns_left_len(context) < 2) { return -1; } #define DNS_MAX_ALPN_LEN 32 #define DNS_MAX_ECH_LEN 256 int dns_add_rr_nested_memcpy(struct dns_rr_nested *rr_nested, const void *data, int data_len); /* the key must be added in orders, or dig will report FORMERR */ /* key 1, alph */ int dns_HTTPS_add_alpn(struct dns_rr_nested *svcparam, const char *alpn, int alpn_len); /* key 2, no default alph */ /* key 3, port */ int dns_HTTPS_add_port(struct dns_rr_nested *svcparam, unsigned short port); /* key 4, ipv4 */ int dns_HTTPS_add_ipv4hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num); /* key 5, ech */ /* key 6, ipv6*/ int dns_HTTPS_add_ipv6hint(struct dns_rr_nested *svcparam, unsigned char *addr[], int addr_num); int dns_get_HTTPS_svcparm_start(struct dns_rrs *rrs, struct dns_https_param **https_param, char *domain, int maxsize, int *ttl, int *priority, char *target, int target_size); int ret = 0; ret = dns_get_HTTPS_svcparm_start(rrs, &p, name, DNS_MAX_CNAME_LEN, &ttl, &priority, target, if (ret != 0) { char alph[64] = {0}; int total_alph_len = 0; char *ptr = (char *)p->value; do { int alphlen = *ptr; memcpy(alph + total_alph_len, ptr + 1, alphlen); total_alph_len += alphlen; ptr += alphlen + 1; alph[total_alph_len] = ','; total_alph_len++; alph[total_alph_len] = ' '; total_alph_len++; } while (ptr - (char *)p->value < p->len); if (total_alph_len > 2) { alph[total_alph_len - 2] = '\0'; } printf(" HTTPS: alpn: %s\n", alph);
[]
CVE-2023-28444
d701f51260637a84ede278e248934e0437a7ff86
https://github.com/kyubisation/angular-server-side-configuration
[{'lang': 'en', 'value': 'angular-server-side-configuration helps configure an angular application at runtime on the server or in a docker container via environment variables. angular-server-side-configuration detects used environment variables in TypeScript (.ts) files during build time of an Angular CLI project. The detected environment variables are written to a ngssc.json file in the output directory.\nDuring deployment of an Angular based app, the environment variables based on the variables from ngssc.json are inserted into the apps index.html (or defined index file). With version 15.0.0 the environment variable detection was widened to the entire project, relative to the angular.json file from the Angular CLI. In a monorepo setup, this could lead to environment variables intended for a backend/service to be detected and written to the ngssc.json, which would then be populated and exposed via index.html. This has NO IMPACT, in a plain Angular project that has no backend component. This vulnerability has been mitigated in version 15.1.0, by adding an option `searchPattern` which restricts the detection file range by default. As a workaround, manually edit or create ngssc.json or run script after ngssc.json generation.\n'}]
null
7.5
2023-03-24T20:15Z
nan
CWE-200
Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
feat: add searchPattern as an option and restrict default search pattern (#75) With version 15, the behavior of the environment variable lookup changed to try to find occurrences in the whole workspace. This could lead to a potential information disclosure vulnerability, by exposing environment variables meant for a backend/Node.js application. This PR mitigates this possibility, by restricting the lookup path of environment variables to `sourceRoot` of the related angular.json project and excluding files having `server` in their name (a common pattern for universal apps).
2023-03-22 17:36:12 +0100
d701f51
107
2
[ ".gitignore", ".nvmrc", "README.md", "package.json", "projects/angular-server-side-configuration/builders/browser/schema.json", "projects/angular-server-side-configuration/builders/dev-server/index.ts", "projects/angular-server-side-configuration/builders/dev-server/schema.json", "projects/angular-server-side-configuration/builders/ngsscbuild/index.spec.ts", "projects/angular-server-side-configuration/builders/ngsscbuild/index.ts", "projects/angular-server-side-configuration/builders/ngsscbuild/schema.json", "projects/angular-server-side-configuration/builders/ngsscbuild/schema.ts", "projects/angular-server-side-configuration/ng-package.json", "projects/angular-server-side-configuration/package.json", "projects/angular-server-side-configuration/schematics/ng-add/index.ts", "test/hello-world-app/.browserslistrc", "test/hello-world-app/.editorconfig", "test/hello-world-app/.gitignore", "test/hello-world-app/README.md", "test/hello-world-app/angular.json", "test/hello-world-app/karma.conf.js", "test/hello-world-app/protractor.conf.js", "test/hello-world-app/src/app/app.component.html", "test/hello-world-app/src/app/app.component.spec.ts", "test/hello-world-app/src/app/app.component.ts", "test/hello-world-app/src/app/app.module.ts", "test/hello-world-app/src/app/app.server.module.ts", "test/hello-world-app/src/index.html", "test/hello-world-app/src/main.server.ts", "test/hello-world-app/src/main.ts", "test/hello-world-app/src/polyfills.ts", "test/hello-world-app/src/src/locale/messages.xlf", "test/hello-world-app/src/styles.css", "test/hello-world-app/src/tsconfig.app.json", "test/hello-world-app/src/tsconfig.server.json", "test/hello-world-app/src/tsconfig.spec.json", "test/hello-world-app/src/typings.d.ts", "test/hello-world-app/tsconfig.json", "test/jasmine.js", "test/test-utils.ts", "yarn.lock" ]
TypeScript
{".gitignore": {"lines_added": 1, "lines_deleted": 0}, ".nvmrc": {"lines_added": 1, "lines_deleted": 0}, "README.md": {"lines_added": 27, "lines_deleted": 5}, "package.json": {"lines_added": 2, "lines_deleted": 0}, "projects/angular-server-side-configuration/builders/browser/schema.json": {"lines_added": 73, "lines_deleted": 15}, "projects/angular-server-side-configuration/builders/dev-server/index.ts": {"lines_added": 1, "lines_deleted": 1}, "projects/angular-server-side-configuration/builders/dev-server/schema.json": {"lines_added": 9, "lines_deleted": 2}, "projects/angular-server-side-configuration/builders/ngsscbuild/index.spec.ts": {"lines_added": 29, "lines_deleted": 100}, "projects/angular-server-side-configuration/builders/ngsscbuild/index.ts": {"lines_added": 22, "lines_deleted": 22}, "projects/angular-server-side-configuration/builders/ngsscbuild/schema.json": {"lines_added": 5, "lines_deleted": 0}, "projects/angular-server-side-configuration/builders/ngsscbuild/schema.ts": {"lines_added": 1, "lines_deleted": 0}, "projects/angular-server-side-configuration/ng-package.json": {"lines_added": 2, "lines_deleted": 1}, "projects/angular-server-side-configuration/package.json": {"lines_added": 2, "lines_deleted": 1}, "projects/angular-server-side-configuration/schematics/ng-add/index.ts": {"lines_added": 2, "lines_deleted": 0}, "test/hello-world-app/.browserslistrc": {"lines_added": 4, "lines_deleted": 0}, "test/hello-world-app/.editorconfig": {"lines_added": 13, "lines_deleted": 0}, "test/hello-world-app/.gitignore": {"lines_added": 3, "lines_deleted": 0}, "test/hello-world-app/README.md": {"lines_added": 27, "lines_deleted": 0}, "test/hello-world-app/angular.json": {"lines_added": 162, "lines_deleted": 0}, "test/hello-world-app/karma.conf.js": {"lines_added": 53, "lines_deleted": 0}, "test/hello-world-app/protractor.conf.js": {"lines_added": 43, "lines_deleted": 0}, "test/hello-world-app/src/app/app.component.css": {"lines_added": 0, "lines_deleted": 0}, "test/hello-world-app/src/app/app.component.html": {"lines_added": 22, "lines_deleted": 0}, "test/hello-world-app/src/app/app.component.spec.ts": {"lines_added": 33, "lines_deleted": 0}, "test/hello-world-app/src/app/app.component.ts": {"lines_added": 18, "lines_deleted": 0}, "test/hello-world-app/src/app/app.module.ts": {"lines_added": 26, "lines_deleted": 0}, "test/hello-world-app/src/app/app.server.module.ts": {"lines_added": 22, "lines_deleted": 0}, "test/hello-world-app/src/assets/.gitkeep": {"lines_added": 0, "lines_deleted": 0}, "test/hello-world-app/src/favicon.ico": {"lines_added": 0, "lines_deleted": 0}, "test/hello-world-app/src/index.html": {"lines_added": 14, "lines_deleted": 0}, "test/hello-world-app/src/main.server.ts": {"lines_added": 9, "lines_deleted": 0}, "test/hello-world-app/src/main.ts": {"lines_added": 15, "lines_deleted": 0}, "test/hello-world-app/src/polyfills.ts": {"lines_added": 70, "lines_deleted": 0}, "test/hello-world-app/src/spectrum.png": {"lines_added": 0, "lines_deleted": 0}, "test/hello-world-app/src/src/locale/messages.xlf": {"lines_added": 18, "lines_deleted": 0}, "test/hello-world-app/src/styles.css": {"lines_added": 1, "lines_deleted": 0}, "test/hello-world-app/src/tsconfig.app.json": {"lines_added": 14, "lines_deleted": 0}, "test/hello-world-app/src/tsconfig.server.json": {"lines_added": 11, "lines_deleted": 0}, "test/hello-world-app/src/tsconfig.spec.json": {"lines_added": 17, "lines_deleted": 0}, "test/hello-world-app/src/typings.d.ts": {"lines_added": 13, "lines_deleted": 0}, "test/hello-world-app/tsconfig.json": {"lines_added": 27, "lines_deleted": 0}, "test/jasmine.js": {"lines_added": 8, "lines_deleted": 1}, "test/test-utils.ts": {"lines_added": 59, "lines_deleted": 0}, "yarn.lock": {"lines_added": 35, "lines_deleted": 0}}
diff --git a/.gitignore b/.gitignore index 242e9b6..7720b6f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,11 @@ yarn-error.log* # Runtime data pids *.pid *.seed *.pid.lock +test/test-project-* # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..25bf17f --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18 \ No newline at end of file diff --git a/README.md b/README.md index da9c3cd..fbec853 100644 --- a/README.md +++ b/README.md @@ -18,17 +18,37 @@ on the host serving the bundled angular files. Starting with version 13, there are experimental builders for the `build` and `serve` commands. To install the experimental builders run `ng add angular-server-side-configuration` and answer `Would you like to use the experimental builders for build and serve?` with `y(es)`. +## Changes with version 15.1 + +With the change in version 15 to search all files for environment variables, a potential +information disclosure vulnerability was introduced, as unintended environment variables might +be exposed. + +You might be affected, if you use environment variables in your angular.json workspace that expose +application internals (like used services/tools) or secrets that are also available on the +deployed environment (e.g. a monorepo that also contains a Node.js backend, which is deployed in +the same system/container/pod as the frontend bundle). + +This should have little to no impact, if you only have a simple angular.json workspace without +a backend component. + +With 15.1 this risk is mitigated, as the lookup path is restricted by adding an option +`searchPattern` which defaults to `{sourceRoot}/**/!(*server*).ts` (only search `sourceRoot` +of the related angular.json project and exclude files with `server` in the name). + + ## Changes with version 15 With version 15 of the Angular CLI, environment files are no longer generated by default. In order to adapt, using `ng add angular-server-side-configuration` will try to add the import in -either `app.module.ts`, `app.components.ts` or `main.ts` depending on availability. The ngssc -builder will also now search all files for environment variable usages instead of just the -defined environment file. Due to this, the `ngsscEnvironmentFile` option can be removed. +either `environment.prod.ts`, `environment.ts`, `app.module.ts`, `app.components.ts` or `main.ts` +depending on availability. The ngssc builder will also now search all files for environment +variable usages instead of just the defined environment file. Due to this, the +`ngsscEnvironmentFile` option can be removed. ## Getting Started ``` ng add angular-server-side-configuration @@ -72,11 +92,13 @@ used environment variables and generate an [ngssc.json](#ngsscjson) in the defin "options": { "additionalEnvironmentVariables": ["MANUAL_ENTRIES"], "browserTarget": "your-project-name:build", // Optional // (Defaults to the basename of the index option of the browser target) - "filePattern": "index.html" + "filePattern": "index.html", + // (Defaults to {sourceRoot}/**/!(*server*).ts) + "searchPattern": "src/environments/environment*.ts" }, "configurations": { "production": { "browserTarget": "your-project-name:build:production" } @@ -91,11 +113,11 @@ used environment variables and generate an [ngssc.json](#ngsscjson) in the defin ... ``` To run the ngssc build, run the command `ng run your-project-name:ngsscbuild:production`. -### environment.prod.ts +### TypeScript files angular-server-side-configuration supports two variants for using environment variables: process.env._ or NG_ENV._ #### process.env.\* diff --git a/package.json b/package.json index 8d9d949..6b8a11f 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,11 @@ "build:ngssc": "ng run ngssc-app:ngsscbuild:production", "build:demo": "ng build ngssc-builders-app", "build:demo-i18n": "ng build ngssc-builders-app -c i18n", "build": "run-s build:*", "format": "prettier --write **/*.{js,ts,css,scss,json,md,html}", + "pretest:lib": "yarn -s build:lib", "test:lib": "node test/jasmine.js", "test:app": "ng test ngssc-app --configuration=ci", "test:cli": "cd cli && go test", "test:cli:coverage": "cd cli && go test -coverprofile=coverage.out && go tool cover -html=coverage.out", "test:container": "docker-compose up --build local-test", @@ -76,10 +77,11 @@ "@typescript-eslint/eslint-plugin": "^5.43.0", "@typescript-eslint/parser": "^5.43.0", "cross-env": "^7.0.3", "eslint": "^8.28.0", "eslint-plugin-import": "2.26.0", + "glob": "^9.3.1", "jasmine": "~4.5.0", "jasmine-core": "~4.5.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.2.0", diff --git a/projects/angular-server-side-configuration/builders/browser/schema.json b/projects/angular-server-side-configuration/builders/browser/schema.json index 8b4686f..05a9175 100644 --- a/projects/angular-server-side-configuration/builders/browser/schema.json +++ b/projects/angular-server-side-configuration/builders/browser/schema.json @@ -62,11 +62,13 @@ "description": "If the bundle will be referenced in the HTML file.", "default": true } }, "additionalProperties": false, - "required": ["input"] + "required": [ + "input" + ] }, { "type": "string", "description": "The file to include.", "pattern": "\\.[cm]?jsx?$" @@ -98,11 +100,13 @@ "description": "If the bundle will be referenced in the HTML file.", "default": true } }, "additionalProperties": false, - "required": ["input"] + "required": [ + "input" + ] }, { "type": "string", "description": "The file to include.", "pattern": "\\.(?:css|scss|sass|less)$" @@ -112,11 +116,16 @@ }, "inlineStyleLanguage": { "description": "The stylesheet language to use for the application's inline component styles.", "type": "string", "default": "css", - "enum": ["css", "less", "sass", "scss"] + "enum": [ + "css", + "less", + "sass", + "scss" + ] }, "stylePreprocessorOptions": { "description": "Options to pass to style preprocessors.", "type": "object", "properties": { @@ -284,17 +293,25 @@ "default": true }, "i18nMissingTranslation": { "type": "string", "description": "How to handle missing translations for i18n.", - "enum": ["warning", "error", "ignore"], + "enum": [ + "warning", + "error", + "ignore" + ], "default": "warning" }, "i18nDuplicateTranslation": { "type": "string", "description": "How to handle duplicate translations for i18n.", - "enum": ["warning", "error", "ignore"], + "enum": [ + "warning", + "error", + "ignore" + ], "default": "warning" }, "localize": { "description": "Translate the bundles in one or more locales.", "oneOf": [ @@ -320,11 +337,16 @@ }, "outputHashing": { "type": "string", "description": "Define the output filename cache-busting hashing mode.", "default": "none", - "enum": ["none", "all", "media", "bundles"] + "enum": [ + "none", + "all", + "media", + "bundles" + ] }, "poll": { "type": "number", "description": "Enable and define the file watching poll time period in milliseconds." }, @@ -387,11 +409,13 @@ "minLength": 1, "default": "index.html", "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path." } }, - "required": ["input"] + "required": [ + "input" + ] } ] }, "statsJson": { "type": "boolean", @@ -412,11 +436,15 @@ }, "crossOrigin": { "type": "string", "description": "Define the crossorigin attribute setting of elements that provide CORS support.", "default": "none", - "enum": ["none", "anonymous", "use-credentials"] + "enum": [ + "none", + "anonymous", + "use-credentials" + ] }, "allowedCommonJsDependencies": { "description": "A list of CommonJS packages that are allowed to be used without a build time warning.", "type": "array", "items": { @@ -430,14 +458,24 @@ }, "filePattern": { "type": "string", "description": "The file pattern, into which the environment variables should be inserted during ngssc insert (Defaults to index.html)", "default": "" + }, + "searchPattern": { + "type": "string", + "description": "The search pattern to use when searching for environment variable occurrences (Defaults to {sourceRoot}/**/!(*server*).ts)", + "default": "" } }, "additionalProperties": false, - "required": ["outputPath", "index", "main", "tsConfig"], + "required": [ + "outputPath", + "index", + "main", + "tsConfig" + ], "definitions": { "assetPattern": { "oneOf": [ { "type": "object", @@ -466,11 +504,15 @@ "type": "string", "description": "Absolute path within the output." } }, "additionalProperties": false, - "required": ["glob", "input", "output"] + "required": [ + "glob", + "input", + "output" + ] }, { "type": "string" } ] @@ -488,11 +530,14 @@ "type": "string", "pattern": "\\.(([cm]?j|t)sx?|json)$" } }, "additionalProperties": false, - "required": ["src", "replaceWith"] + "required": [ + "src", + "replaceWith" + ] }, { "type": "object", "properties": { "replace": { @@ -503,21 +548,32 @@ "type": "string", "pattern": "\\.(([cm]?j|t)sx?|json)$" } }, "additionalProperties": false, - "required": ["replace", "with"] + "required": [ + "replace", + "with" + ] } ] }, "budget": { "type": "object", "properties": { "type": { "type": "string", "description": "The type of budget.", - "enum": ["all", "allScript", "any", "anyScript", "anyComponentStyle", "bundle", "initial"] + "enum": [ + "all", + "allScript", + "any", + "anyScript", + "anyComponentStyle", + "bundle", + "initial" + ] }, "name": { "type": "string", "description": "The name of the bundle." }, @@ -549,9 +605,11 @@ "type": "string", "description": "The threshold for error relative to the baseline (min & max)." } }, "additionalProperties": false, - "required": ["type"] + "required": [ + "type" + ] } } -} +} \ No newline at end of file diff --git a/projects/angular-server-side-configuration/builders/dev-server/index.ts b/projects/angular-server-side-configuration/builders/dev-server/index.ts index 05d4521..3c0df5d 100644 --- a/projects/angular-server-side-configuration/builders/dev-server/index.ts +++ b/projects/angular-server-side-configuration/builders/dev-server/index.ts @@ -31,11 +31,11 @@ export function ngsscServeWebpackBrowser( logging?: WebpackLoggingCallback; indexHtml?: IndexHtmlTransform; } = {} ): Observable<DevServerBuilderOutput> { transforms.indexHtml = async (content: string) => { - const ngsscContext = await detectVariables(context); + const ngsscContext = await detectVariables(context, options.searchPattern); const ngssc = buildNgssc(ngsscContext, options); const populatedVariables = populateVariables(ngssc.environmentVariables); context.logger.info( `Populated environment variables (Variant: ${ngssc.variant})\n${Object.entries( populatedVariables diff --git a/projects/angular-server-side-configuration/builders/dev-server/schema.json b/projects/angular-server-side-configuration/builders/dev-server/schema.json index f0f8c55..4bca6ce 100644 --- a/projects/angular-server-side-configuration/builders/dev-server/schema.json +++ b/projects/angular-server-side-configuration/builders/dev-server/schema.json @@ -102,10 +102,17 @@ }, "filePattern": { "type": "string", "description": "The file pattern, into which the environment variables should be inserted during ngssc insert (Defaults to index.html)", "default": "" + }, + "searchPattern": { + "type": "string", + "description": "The search pattern to use when searching for environment variable occurrences (Defaults to {sourceRoot}/**/!(*server*).ts)", + "default": "" } }, "additionalProperties": false, - "required": ["browserTarget"] -} + "required": [ + "browserTarget" + ] +} \ No newline at end of file diff --git a/projects/angular-server-side-configuration/builders/ngsscbuild/index.spec.ts b/projects/angular-server-side-configuration/builders/ngsscbuild/index.spec.ts index 8a422d2..f98759e 100644 --- a/projects/angular-server-side-configuration/builders/ngsscbuild/index.spec.ts +++ b/projects/angular-server-side-configuration/builders/ngsscbuild/index.spec.ts @@ -1,69 +1,27 @@ -import { mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'fs'; -import { tmpdir } from 'os'; -import { join } from 'path'; import { Architect } from '@angular-devkit/architect'; -import { TestingArchitectHost } from '@angular-devkit/architect/testing'; -import { JsonObject, schema } from '@angular-devkit/core'; -import { Logger } from '@angular-devkit/core/src/logger'; +import { normalize, virtualFs } from '@angular-devkit/core'; import { Ngssc } from 'angular-server-side-configuration'; -import { Schema } from './schema'; +import { createArchitect, host } from '../../../../test/test-utils'; describe('Ngssc Builder', () => { - let tmpDir: string; - let distDir: string; - let architect: Architect; - let architectHost: TestingArchitectHost; - let logger: Logger; - let logs: string[]; - const buildConfig = { - fileReplacements: [{ replace: 'dummy', with: 'environment.prod.ts' }], - index: 'src/index.html', - outputPath: 'dist', - }; + const targetSpec = { project: 'app', target: 'ngsscbuild' }; + let architect: Architect | undefined; beforeEach(async () => { - const registry = new schema.CoreSchemaRegistry(); - registry.addPostTransform(schema.transforms.addUndefinedDefaults); - - tmpDir = mkdtempSync(join(tmpdir(), 'ngssc-')); - writeFileSync(join(tmpDir, 'environment.prod.ts'), envContent, 'utf8'); - distDir = join(tmpDir, 'dist'); - mkdirSync(distDir); - writeFileSync(join(distDir, 'main.js'), '', 'utf8'); - architectHost = new TestingArchitectHost(tmpDir, tmpDir); - architect = new Architect(architectHost, registry); - - // This will either take a Node package name, or a path to the directory - // for the package.json file. - await architectHost.addBuilderFromPackage( - '../../../../projects/angular-server-side-configuration' - ); - await architectHost.addBuilderFromPackage('..'); - - logs = []; - logger = new Logger('ngssc'); - logger.subscribe((m) => logs.push(m.message)); + architect = undefined; + await host.initialize().toPromise(); }); + afterEach(async () => host.restore().toPromise()); - function addDummyBuildTarget(config: any = buildConfig) { - architectHost.addTarget( - { project: 'dummy', target: 'build' }, - '@angular-devkit/architect:true', - config - ); - } + async function runNgsscbuild() { + architect = (await createArchitect(host.root())).architect; - async function runNgsscbuild(options: Schema & JsonObject) { // A "run" can have multiple outputs, and contains progress information. - const run = await architect.scheduleBuilder( - 'angular-server-side-configuration:ngsscbuild', - options, - { logger } - ); + const run = await architect.scheduleTarget(targetSpec); // The "result" member (of type BuilderOutput) is the next output. const output = await run.result; // Stop the builder from running. This stops Architect from keeping @@ -71,67 +29,38 @@ describe('Ngssc Builder', () => { // to be scheduled. await run.stop(); return output; } + function readNgsscJson(): Ngssc { + const content = virtualFs.fileBufferToString( + host.scopedSync().read(normalize('dist/ngssc.json')) + ); + + return JSON.parse(content); + } + it('should build with process variant', async () => { - addDummyBuildTarget(); - const output = await runNgsscbuild({ - additionalEnvironmentVariables: [], - aotSupport: false, - browserTarget: 'dummy:build', - filePattern: '', - }); + const output = await runNgsscbuild(); expect(output.success).toBe(true); - expect(logs.some((l) => l.includes('ngssc'))).toBeTruthy(); - const ngssc: Ngssc = JSON.parse(readFileSync(join(distDir, 'ngssc.json'), 'utf8')); + + const ngssc = readNgsscJson(); expect(ngssc.variant).toEqual('process'); expect(ngssc.filePattern).toEqual('index.html'); }); it('should aggregate environment variables', async () => { const expected = 'OTHER_VARIABLE'; - addDummyBuildTarget(); - const output = await runNgsscbuild({ - additionalEnvironmentVariables: [expected], - aotSupport: false, - browserTarget: 'dummy:build', - filePattern: '', - }); + host.replaceInFile( + 'angular.json', + '"additionalEnvironmentVariables": [],', + `"additionalEnvironmentVariables": ["${expected}"],` + ); + const output = await runNgsscbuild(); expect(output.success).toBe(true); - expect(logs.some((l) => l.includes('ngssc'))).toBeTruthy(); - const ngssc: Ngssc = JSON.parse(readFileSync(join(distDir, 'ngssc.json'), 'utf8')); + + const ngssc = readNgsscJson(); expect(ngssc.environmentVariables).toContain(expected); }); }); - -const envContent = ` -import 'angular-server-side-configuration/process'; - -/** - * How to use angular-server-side-configuration: - * - * Use process.env.NAME_OF_YOUR_ENVIRONMENT_VARIABLE - * - * export const environment = { - * stringValue: process.env.STRING_VALUE, - * stringValueWithDefault: process.env.STRING_VALUE || 'defaultValue', - * numberValue: Number(process.env.NUMBER_VALUE), - * numberValueWithDefault: Number(process.env.NUMBER_VALUE || 10), - * booleanValue: Boolean(process.env.BOOLEAN_VALUE), - * booleanValueInverted: process.env.BOOLEAN_VALUE_INVERTED !== 'false', - * }; - */ - -export const environment = { - production: process.env.PROD !== 'false', - apiBackend: process.env.API_BACKEND || 'http://example.com', - ternary: process.env.TERNARY ? 'asdf' : 'qwer', - simpleValue: process.env.SIMPLE_VALUE, - something: { - asdf: process.env.OMG || 'omg', - qwer: parseInt(process.env.NUMBER || ''), - } -}; -`; diff --git a/projects/angular-server-side-configuration/builders/ngsscbuild/index.ts b/projects/angular-server-side-configuration/builders/ngsscbuild/index.ts index b6f6c6d..4f0af16 100644 --- a/projects/angular-server-side-configuration/builders/ngsscbuild/index.ts +++ b/projects/angular-server-side-configuration/builders/ngsscbuild/index.ts @@ -1,11 +1,12 @@ -import { lstatSync, promises, readdirSync } from 'fs'; +import { promises } from 'fs'; import { basename, join } from 'path'; import { BuilderContext, createBuilder, targetFromTargetString } from '@angular-devkit/architect'; +import { BrowserBuilderOptions } from '@angular-devkit/build-angular'; import { json, JsonObject } from '@angular-devkit/core'; import { Ngssc } from 'angular-server-side-configuration'; -import { BrowserBuilderOptions } from '@angular-devkit/build-angular'; +import { glob } from 'glob'; import { Schema } from './schema'; import { VariableDetector } from './variable-detector'; import { NgsscContext } from './ngssc-context'; export type NgsscBuildSchema = Schema; @@ -31,19 +32,35 @@ export async function detectVariablesAndBuildNgsscJson( options: NgsscBuildSchema, browserOptions: BrowserBuilderOptions, context: BuilderContext, multiple: boolean = false ) { - const ngsscContext = await detectVariables(context); + const ngsscContext = await detectVariables(context, options.searchPattern); const outputPath = join(context.workspaceRoot, browserOptions.outputPath); const ngssc = buildNgssc(ngsscContext, options, browserOptions, multiple); await writeFileAsync(join(outputPath, 'ngssc.json'), JSON.stringify(ngssc, null, 2), 'utf8'); } -export async function detectVariables(context: BuilderContext): Promise<NgsscContext> { +export async function detectVariables( + context: BuilderContext, + searchPattern?: string | null +): Promise<NgsscContext> { + const projectName = context.target && context.target.project; + if (!projectName) { + throw new Error('The builder requires a target.'); + } + + const projectMetadata = await context.getProjectMetadata(projectName); + const sourceRoot = projectMetadata.sourceRoot as string | undefined; + const defaultSearchPattern = sourceRoot ? `${sourceRoot}/**/!(*server*).ts` : '**/!(*server*).ts'; + const detector = new VariableDetector(context.logger); - const typeScriptFiles = findTypeScriptFiles(context.workspaceRoot); + const typeScriptFiles = await glob(searchPattern || defaultSearchPattern, { + absolute: true, + cwd: context.workspaceRoot, + ignore: ['**/node_modules/**', '**/*.spec.ts', '**/*.d.ts'], + }); let ngsscContext: NgsscContext | null = null; for (const file of typeScriptFiles) { const fileContent = await readFileAsync(file, 'utf8'); const innerNgsscContext = detector.detect(fileContent); if (!innerNgsscContext.variables.length) { @@ -71,27 +88,10 @@ export async function detectVariables(context: BuilderContext): Promise<NgsscCon ); return ngsscContext; } -function findTypeScriptFiles(root: string): string[] { - const directory = root.replace(/\\/g, '/'); - return readdirSync(directory) - .map((f) => `${directory}/${f}`) - .map((f) => { - const stat = lstatSync(f); - if (stat.isDirectory()) { - return findTypeScriptFiles(f); - } else if (stat.isFile() && f.endsWith('.ts') && !f.endsWith('.spec.ts')) { - return [f]; - } else { - return []; - } - }) - .reduce((current, next) => current.concat(next), []); -} - export function buildNgssc( ngsscContext: NgsscContext, options: NgsscBuildSchema, browserOptions?: BrowserBuilderOptions, multiple: boolean = false diff --git a/projects/angular-server-side-configuration/builders/ngsscbuild/schema.json b/projects/angular-server-side-configuration/builders/ngsscbuild/schema.json index bd3b6eb..429a1ed 100644 --- a/projects/angular-server-side-configuration/builders/ngsscbuild/schema.json +++ b/projects/angular-server-side-configuration/builders/ngsscbuild/schema.json @@ -12,8 +12,13 @@ }, "filePattern": { "type": "string", "description": "The file pattern, into which the environment variables should be inserted during ngssc insert (Defaults to index.html)", "default": "" + }, + "searchPattern": { + "type": "string", + "description": "The search pattern to use when searching for environment variable occurrences (Defaults to {sourceRoot}/**/!(*server*).ts)", + "default": "" } } } diff --git a/projects/angular-server-side-configuration/builders/ngsscbuild/schema.ts b/projects/angular-server-side-configuration/builders/ngsscbuild/schema.ts index 1804325..f667b84 100644 --- a/projects/angular-server-side-configuration/builders/ngsscbuild/schema.ts +++ b/projects/angular-server-side-configuration/builders/ngsscbuild/schema.ts @@ -1,5 +1,6 @@ export interface Schema { additionalEnvironmentVariables: string[]; browserTarget: string; filePattern: string | null; + searchPattern?: string | null; } diff --git a/projects/angular-server-side-configuration/ng-package.json b/projects/angular-server-side-configuration/ng-package.json index 8a0f36b..cc00bf3 100644 --- a/projects/angular-server-side-configuration/ng-package.json +++ b/projects/angular-server-side-configuration/ng-package.json @@ -1,7 +1,8 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", "dest": "../../dist/angular-server-side-configuration", "lib": { "entryFile": "src/public-api.ts" - } + }, + "allowedNonPeerDependencies": ["glob"] } diff --git a/projects/angular-server-side-configuration/package.json b/projects/angular-server-side-configuration/package.json index 803dbee..f2708cb 100644 --- a/projects/angular-server-side-configuration/package.json +++ b/projects/angular-server-side-configuration/package.json @@ -29,8 +29,9 @@ "peerDependencies": { "@angular/common": "^15.0.0", "@angular/core": "^15.0.0" }, "dependencies": { - "tslib": "^2.3.0" + "tslib": "^2.3.0", + "glob": "^9.3.1" } } diff --git a/projects/angular-server-side-configuration/schematics/ng-add/index.ts b/projects/angular-server-side-configuration/schematics/ng-add/index.ts index 1389b9f..582d7d0 100644 --- a/projects/angular-server-side-configuration/schematics/ng-add/index.ts +++ b/projects/angular-server-side-configuration/schematics/ng-add/index.ts @@ -85,10 +85,12 @@ function addDescriptionToMainFile(options: Schema): Rule { context.logger.warn(noAppropriateInsertFileWarning); return; } const insertFile = [ + join(dirname(mainFile), 'environment.prod.ts'), + join(dirname(mainFile), 'environment.ts'), join(dirname(mainFile), 'app/app.module.ts'), join(dirname(mainFile), 'app/app.component.ts'), mainFile, ].find((f) => host.exists(f)); if (!insertFile) { diff --git a/test/hello-world-app/.browserslistrc b/test/hello-world-app/.browserslistrc new file mode 100644 index 0000000..7fd7c3b --- /dev/null +++ b/test/hello-world-app/.browserslistrc @@ -0,0 +1,4 @@ +# We want to run tests large with ever green browser so that +# we never trigger differential loading as this will slow down the tests. + +last 2 Chrome versions \ No newline at end of file diff --git a/test/hello-world-app/.editorconfig b/test/hello-world-app/.editorconfig new file mode 100644 index 0000000..e89330a --- /dev/null +++ b/test/hello-world-app/.editorconfig @@ -0,0 +1,13 @@ +# Editor configuration, see https://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/test/hello-world-app/.gitignore b/test/hello-world-app/.gitignore new file mode 100644 index 0000000..e3038ca --- /dev/null +++ b/test/hello-world-app/.gitignore @@ -0,0 +1,3 @@ +# Don't ignore node_modules, this project is not meant to be installed. +# Also, ~ import path in styles does only looks in the first node_modules found. +# /node_modules diff --git a/test/hello-world-app/README.md b/test/hello-world-app/README.md new file mode 100644 index 0000000..563afe4 --- /dev/null +++ b/test/hello-world-app/README.md @@ -0,0 +1,27 @@ +# HelloWorldApp + +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.0-beta.1. + +## Development server + +Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. + +## Code scaffolding + +Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. + +## Build + +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. + +## Running unit tests + +Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). + +## Running end-to-end tests + +Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). + +## Further help + +To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/main/README.md). diff --git a/test/hello-world-app/angular.json b/test/hello-world-app/angular.json new file mode 100644 index 0000000..359ac1b --- /dev/null +++ b/test/hello-world-app/angular.json @@ -0,0 +1,162 @@ +{ + "$schema": "../../../../packages/angular_devkit/core/src/workspace/workspace-schema.json", + "version": 1, + "newProjectRoot": "./projects", + "cli": { + "cache": { + "enabled": false + } + }, + "schematics": {}, + "projects": { + "app": { + "root": "src", + "sourceRoot": "src", + "projectType": "application", + "prefix": "app", + "schematics": {}, + "targets": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "src/tsconfig.app.json", + "progress": false, + "sourceMap": false, + "aot": false, + "vendorChunk": true, + "buildOptimizer": false, + "optimization": false, + "extractLicenses": false, + "namedChunks": true, + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + }, + "inline-critical-css": { + "optimization": { + "styles": { + "minify": true, + "inlineCritical": true + }, + "scripts": true, + "fonts": true + } + } + } + }, + "server": { + "builder": "@angular-devkit/build-angular:server", + "options": { + "outputPath": "dist-server", + "main": "src/main.server.ts", + "tsConfig": "src/tsconfig.server.json", + "progress": false, + "sourceMap": true, + "optimization": false, + "extractLicenses": false + } + }, + "app-shell": { + "builder": "@angular-devkit/build-angular:app-shell", + "options": { + "browserTarget": "app:build", + "serverTarget": "app:server" + }, + "configurations": { + "production": { + "browserTarget": "app:build:production" + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "app:build", + "watch": false + }, + "configurations": { + "production": { + "browserTarget": "app:build:production" + } + } + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "app:build", + "progress": false, + "outputPath": "src" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "polyfills": ["zone.js", "zone.js/testing"], + + "tsConfig": "src/tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "browsers": "ChromeHeadlessCI", + "progress": false, + "watch": false, + "styles": [ + { + "input": "src/styles.css" + } + ], + "scripts": [], + "assets": [ + "src/favicon.ico", + "src/assets" + ] + } + }, + "ngsscbuild": { + "builder": "angular-server-side-configuration:ngsscbuild", + "options": { + "additionalEnvironmentVariables": [], + "browserTarget": "app:build" + }, + "configurations": { + "production": { + "browserTarget": "app:build:production" + } + } + } + } + }, + "app-e2e": { + "root": "e2e", + "projectType": "application", + "targets": { + "e2e": { + "builder": "@angular-devkit/build-angular:protractor", + "options": { + "protractorConfig": "protractor.conf.js", + "devServerTarget": "app:serve", + "webdriverUpdate": false + } + } + } + } + } +} diff --git a/test/hello-world-app/karma.conf.js b/test/hello-world-app/karma.conf.js new file mode 100644 index 0000000..1fa1906 --- /dev/null +++ b/test/hello-world-app/karma.conf.js @@ -0,0 +1,53 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html + +const path = require('path'); +process.env.CHROME_BIN = require('puppeteer').executablePath(); + +module.exports = function(config) { + config.set({ + basePath: '', + frameworks: ['jasmine', '@angular-devkit/build-angular'], + plugins: [ + require('karma-jasmine'), + require('karma-chrome-launcher'), + require('karma-jasmine-html-reporter'), + require('karma-coverage'), + require('@angular-devkit/build-angular/plugins/karma'), + ], + client: { + clearContext: false, // leave Jasmine Spec Runner output visible in browser + }, + jasmineHtmlReporter: { + suppressAll: true // removes the duplicated traces + }, + coverageReporter: { + dir: path.join(__dirname, './coverage'), + subdir: '.', + reporters: [ + {type: 'lcov'}, + ], + }, + reporters: ['progress', 'kjhtml'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: true, + browsers: ['Chrome'], + customLaunchers: { + ChromeHeadlessCI: { + base: 'ChromeHeadless', + flags: ['--disable-gpu'], + }, + }, + singleRun: false, + }); +}; diff --git a/test/hello-world-app/protractor.conf.js b/test/hello-world-app/protractor.conf.js new file mode 100644 index 0000000..9b57663 --- /dev/null +++ b/test/hello-world-app/protractor.conf.js @@ -0,0 +1,43 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +// Protractor configuration file, see link for more information +// https://github.com/angular/protractor/blob/master/lib/config.ts + +const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); +const { resolve } = require('path'); + +exports.config = { + allScriptsTimeout: 11000, + specs: ['./e2e/**/*.e2e-spec.ts'], + capabilities: { + browserName: 'chrome', + chromeOptions: { + args: ['--headless', '--disable-gpu', '--window-size=800,600'], + binary: require('puppeteer').executablePath(), + }, + }, + directConnect: true, + baseUrl: 'http://localhost:4200/', + framework: 'jasmine', + jasmineNodeOpts: { + showColors: true, + defaultTimeoutInterval: 30000, + print: function() {}, + }, + onPrepare() { + require('ts-node').register({ + project: resolve(__dirname, './e2e/tsconfig.e2e.json'), + }); + jasmine.getEnv().addReporter(new SpecReporter({ + spec: { + displayStacktrace: StacktraceOption.PRETTY + } + })); + }, +}; diff --git a/test/hello-world-app/src/app/app.component.css b/test/hello-world-app/src/app/app.component.css new file mode 100644 index 0000000..e69de29 diff --git a/test/hello-world-app/src/app/app.component.html b/test/hello-world-app/src/app/app.component.html new file mode 100644 index 0000000..2486321 --- /dev/null +++ b/test/hello-world-app/src/app/app.component.html @@ -0,0 +1,22 @@ +<!--The content below is only a placeholder and can be replaced.--> +<div style="text-align:center"> + <h1> + Welcome to {{ title }}! + </h1> + <img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="> +</div> +<h2>Here are some links to help you start: </h2> +<ul> + <li> + <h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2> + </li> + <li> + <h2><a target="_blank" rel="noopener" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2> + </li> + <li> + <h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2> + </li> +</ul> + +<p i18n>i18n test</p> + diff --git a/test/hello-world-app/src/app/app.component.spec.ts b/test/hello-world-app/src/app/app.component.spec.ts new file mode 100644 index 0000000..56f6ecb --- /dev/null +++ b/test/hello-world-app/src/app/app.component.spec.ts @@ -0,0 +1,33 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { TestBed } from '@angular/core/testing'; +import { AppComponent } from './app.component'; +describe('AppComponent', () => { + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [AppComponent], + }).compileComponents(); + }); + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + }); + it(`should have as title 'app'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app.title).toEqual('app'); + }); + it('should render title in a h1 tag', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.debugElement.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); + }); +}); diff --git a/test/hello-world-app/src/app/app.component.ts b/test/hello-world-app/src/app/app.component.ts new file mode 100644 index 0000000..38141a7 --- /dev/null +++ b/test/hello-world-app/src/app/app.component.ts @@ -0,0 +1,18 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.css'], +}) +export class AppComponent { + title = process.env.TEST; +} diff --git a/test/hello-world-app/src/app/app.module.ts b/test/hello-world-app/src/app/app.module.ts new file mode 100644 index 0000000..09f4f6f --- /dev/null +++ b/test/hello-world-app/src/app/app.module.ts @@ -0,0 +1,26 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; + + +import { AppComponent } from './app.component'; + + +@NgModule({ + declarations: [ + AppComponent + ], + imports: [ + BrowserModule + ], + providers: [], + bootstrap: [AppComponent] +}) +export class AppModule { } diff --git a/test/hello-world-app/src/app/app.server.module.ts b/test/hello-world-app/src/app/app.server.module.ts new file mode 100644 index 0000000..cddaa2d --- /dev/null +++ b/test/hello-world-app/src/app/app.server.module.ts @@ -0,0 +1,22 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { NgModule } from '@angular/core'; +import { ServerModule } from '@angular/platform-server'; + +import { AppModule } from './app.module'; +import { AppComponent } from './app.component'; + +@NgModule({ + imports: [ + AppModule, + ServerModule, + ], + bootstrap: [AppComponent], +}) +export class AppServerModule {} diff --git a/test/hello-world-app/src/assets/.gitkeep b/test/hello-world-app/src/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/test/hello-world-app/src/favicon.ico b/test/hello-world-app/src/favicon.ico new file mode 100644 index 0000000..8081c7c Binary files /dev/null and b/test/hello-world-app/src/favicon.ico differ diff --git a/test/hello-world-app/src/index.html b/test/hello-world-app/src/index.html new file mode 100644 index 0000000..189ff56 --- /dev/null +++ b/test/hello-world-app/src/index.html @@ -0,0 +1,14 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>HelloWorldApp</title> + <base href="/"> + + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="icon" type="image/x-icon" href="favicon.ico"> +</head> +<body> + <app-root></app-root> +</body> +</html> diff --git a/test/hello-world-app/src/main.server.ts b/test/hello-world-app/src/main.server.ts new file mode 100644 index 0000000..4448f40 --- /dev/null +++ b/test/hello-world-app/src/main.server.ts @@ -0,0 +1,9 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +export { AppServerModule } from './app/app.server.module'; diff --git a/test/hello-world-app/src/main.ts b/test/hello-world-app/src/main.ts new file mode 100644 index 0000000..2a16fe2 --- /dev/null +++ b/test/hello-world-app/src/main.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; + +platformBrowserDynamic() + .bootstrapModule(AppModule) + .catch(err => console.log(err)); diff --git a/test/hello-world-app/src/polyfills.ts b/test/hello-world-app/src/polyfills.ts new file mode 100644 index 0000000..f530c61 --- /dev/null +++ b/test/hello-world-app/src/polyfills.ts @@ -0,0 +1,70 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** + * BROWSER POLYFILLS + */ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +// import 'classlist.js'; // Run `npm install --save classlist.js`. + +/** + * Web Animations `@angular/platform-browser/animations` + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). + */ +// import 'web-animations-js'; // Run `npm install --save web-animations-js`. + +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags.ts'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * + */ + +/*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ +import 'zone.js'; // Included with Angular CLI. + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ diff --git a/test/hello-world-app/src/spectrum.png b/test/hello-world-app/src/spectrum.png new file mode 100644 index 0000000..2a5f123 Binary files /dev/null and b/test/hello-world-app/src/spectrum.png differ diff --git a/test/hello-world-app/src/src/locale/messages.xlf b/test/hello-world-app/src/src/locale/messages.xlf new file mode 100644 index 0000000..5ba84a9 --- /dev/null +++ b/test/hello-world-app/src/src/locale/messages.xlf @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> + <file source-language="en" datatype="plaintext" original="ng2.template"> + <body> + <trans-unit id="8261100fbc1830397116d0a032e7c8f54af93c68" datatype="html"> + <source>i18n test</source> + <context-group purpose="location"> + <context context-type="sourcefile">app/app.component.ts</context> + <context context-type="linenumber">21</context> + </context-group> + <context-group purpose="location"> + <context context-type="sourcefile">app/app.component.ts</context> + <context context-type="linenumber">23</context> + </context-group> + </trans-unit> + </body> + </file> +</xliff> diff --git a/test/hello-world-app/src/styles.css b/test/hello-world-app/src/styles.css new file mode 100644 index 0000000..90d4ee0 --- /dev/null +++ b/test/hello-world-app/src/styles.css @@ -0,0 +1 @@ +/* You can add global styles to this file, and also import other style files */ diff --git a/test/hello-world-app/src/tsconfig.app.json b/test/hello-world-app/src/tsconfig.app.json new file mode 100644 index 0000000..c8fa0d6 --- /dev/null +++ b/test/hello-world-app/src/tsconfig.app.json @@ -0,0 +1,14 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/app", + "types": ["@angular/localize", "node"] + }, + "files": [ + "main.ts", + "polyfills.ts" + ], + "include": [ + "**/*.d.ts" + ] +} diff --git a/test/hello-world-app/src/tsconfig.server.json b/test/hello-world-app/src/tsconfig.server.json new file mode 100644 index 0000000..9a492c7 --- /dev/null +++ b/test/hello-world-app/src/tsconfig.server.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.app.json", + "compilerOptions": { + "outDir": "../dist-server", + "baseUrl": "./", + "types": ["@angular/localize", "node"] + }, + "files": [ + "main.server.ts" + ] +} diff --git a/test/hello-world-app/src/tsconfig.spec.json b/test/hello-world-app/src/tsconfig.spec.json new file mode 100644 index 0000000..a42459f --- /dev/null +++ b/test/hello-world-app/src/tsconfig.spec.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/spec", + "types": [ + "jasmine", + "@angular/localize" + ] + }, + "files": [ + "polyfills.ts" + ], + "include": [ + "**/*.spec.ts", + "**/*.d.ts" + ] +} diff --git a/test/hello-world-app/src/typings.d.ts b/test/hello-world-app/src/typings.d.ts new file mode 100644 index 0000000..9ba8f77 --- /dev/null +++ b/test/hello-world-app/src/typings.d.ts @@ -0,0 +1,13 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/test/hello-world-app/tsconfig.json b/test/hello-world-app/tsconfig.json new file mode 100644 index 0000000..26bec6b --- /dev/null +++ b/test/hello-world-app/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "target": "es2022", + "module": "es2022", + "useDefineForClassFields": false, + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2022", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true, + "disableTypeScriptVersionCheck": true, + "strictTemplates": true + } +} diff --git a/test/jasmine.js b/test/jasmine.js index 2efafff..687bda0 100644 --- a/test/jasmine.js +++ b/test/jasmine.js @@ -7,7 +7,14 @@ if (module === require.main) { require('ts-node').register(tsconfig); const jasmine = new Jasmine({ projectBaseDir: path.resolve() }); jasmine.exitOnCompletion = true; jasmine.addMatchingSpecFiles(['projects/angular-server-side-configuration/**/*.spec.ts']); - jasmine.execute(); + jasmine + .execute() + .then((result) => { + if (result.failedExpectations.length) { + console.error(result.failedExpectations); + } + }) + .catch((e) => console.error(e)); } diff --git a/test/test-utils.ts b/test/test-utils.ts new file mode 100644 index 0000000..78c4567 --- /dev/null +++ b/test/test-utils.ts @@ -0,0 +1,59 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { Architect, BuilderOutput } from '@angular-devkit/architect'; +import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; +import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing'; +import { Path, getSystemPath, join, normalize, schema, workspaces } from '@angular-devkit/core'; + +// Default timeout for large specs is 2.5 minutes. +jasmine.DEFAULT_TIMEOUT_INTERVAL = 150000; + +export const workspaceRoot = join(normalize(__dirname), `hello-world-app/`); +export const host = new TestProjectHost(workspaceRoot); +export const outputPath: Path = normalize('dist'); + +export const browserTargetSpec = { project: 'app', target: 'build' }; +export const devServerTargetSpec = { project: 'app', target: 'serve' }; +export const extractI18nTargetSpec = { project: 'app', target: 'extract-i18n' }; +export const karmaTargetSpec = { project: 'app', target: 'test' }; +export const tslintTargetSpec = { project: 'app', target: 'lint' }; +export const protractorTargetSpec = { project: 'app-e2e', target: 'e2e' }; + +export async function createArchitect(workspaceRoot: Path) { + const registry = new schema.CoreSchemaRegistry(); + registry.addPostTransform(schema.transforms.addUndefinedDefaults); + const workspaceSysPath = getSystemPath(workspaceRoot); + + const { workspace } = await workspaces.readWorkspace( + workspaceSysPath, + workspaces.createWorkspaceHost(host) + ); + const architectHost = new TestingArchitectHost( + workspaceSysPath, + workspaceSysPath, + new WorkspaceNodeModulesArchitectHost(workspace, workspaceSysPath) + ); + await architectHost.addBuilderFromPackage('..'); + //require('ts-node').register(require('../projects/angular-server-side-configuration/builders/tsconfig.json')); + await architectHost.addBuilderFromPackage( + '../../../../dist/angular-server-side-configuration' + ); + const architect = new Architect(architectHost, registry); + + return { + workspace, + architectHost, + architect, + }; +} + +export interface BrowserBuildOutput { + output: BuilderOutput; + files: { [file: string]: Promise<string> }; +} diff --git a/yarn.lock b/yarn.lock index 19c1c82..396eaac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4361,10 +4361,20 @@ glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7: inherits "2" minimatch "^3.1.1" once "^1.3.0" path-is-absolute "^1.0.0" +glob@^9.3.1: + version "9.3.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-9.3.1.tgz#4a15cf72479a440f77e97805b21e1b5b6e4fb18a" + integrity sha512-qERvJb7IGsnkx6YYmaaGvDpf77c951hICMdWaFXyH3PlVob8sbPJJyJX0kWkiCWyXUzoy9UOTNjGg0RbD8bYIw== + dependencies: + fs.realpath "^1.0.0" + minimatch "^7.4.1" + minipass "^4.2.4" + path-scurry "^1.6.1" + globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== @@ -5431,10 +5441,15 @@ lru-cache@^6.0.0: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== dependencies: yallist "^4.0.0" +lru-cache@^7.14.1: + version "7.18.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" + integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== + lru-cache@^7.4.4, lru-cache@^7.5.1, lru-cache@^7.7.1: version "7.14.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.14.1.tgz#8da8d2f5f59827edb388e63e459ac23d6d408fea" integrity sha512-ysxwsnTKdAx96aTRdhDOCQfDgbHnt8SK0KY8SEjO0wHinhWOFTESbjVCMPbU1uGXg/ch4lifqx0wfjOawU2+WA== @@ -5642,10 +5657,17 @@ minimatch@^5.0.1: resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.0.tgz#1717b464f4971b144f6aabe8f2d0b8e4511e09c7" integrity sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg== dependencies: brace-expansion "^2.0.1" +minimatch@^7.4.1: + version "7.4.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-7.4.2.tgz#157e847d79ca671054253b840656720cb733f10f" + integrity sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA== + dependencies: + brace-expansion "^2.0.1" + minimatch@~3.0.4: version "3.0.8" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1" integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q== dependencies: @@ -5728,10 +5750,15 @@ minipass@^3.0.0, minipass@^3.1.1, minipass@^3.1.6: resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.4.tgz#ca99f95dd77c43c7a76bf51e6d200025eee0ffae" integrity sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw== dependencies: yallist "^4.0.0" +minipass@^4.0.2, minipass@^4.2.4: + version "4.2.5" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.5.tgz#9e0e5256f1e3513f8c34691dd68549e85b2c8ceb" + integrity sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q== + minizlib@^2.1.1, minizlib@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== dependencies: @@ -6365,10 +6392,18 @@ path-key@^3.0.0, path-key@^3.1.0: path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-scurry@^1.6.1: + version "1.6.2" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.6.2.tgz#72783838113a4a0cec155323b2c01eb1b193396f" + integrity sha512-J6MQNh56h6eHFY3vsQ+Lq+zKPwn71POieutmVt2leU8W+zz8HVIdJyn3I3Zs6IKbIQtuKXirVjTBFNBcbFO44Q== + dependencies: + lru-cache "^7.14.1" + minipass "^4.0.2" + path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==
either `app.module.ts`, `app.components.ts` or `main.ts` depending on availability. The ngssc builder will also now search all files for environment variable usages instead of just the defined environment file. Due to this, the `ngsscEnvironmentFile` option can be removed. "filePattern": "index.html" ### environment.prod.ts "required": ["input"] "required": ["input"] "enum": ["css", "less", "sass", "scss"] "enum": ["warning", "error", "ignore"], "enum": ["warning", "error", "ignore"], "enum": ["none", "all", "media", "bundles"] "required": ["input"] "enum": ["none", "anonymous", "use-credentials"] "required": ["outputPath", "index", "main", "tsConfig"], "required": ["glob", "input", "output"] "required": ["src", "replaceWith"] "required": ["replace", "with"] "enum": ["all", "allScript", "any", "anyScript", "anyComponentStyle", "bundle", "initial"] "required": ["type"] } const ngsscContext = await detectVariables(context); "required": ["browserTarget"] } import { mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'fs'; import { tmpdir } from 'os'; import { join } from 'path'; import { TestingArchitectHost } from '@angular-devkit/architect/testing'; import { JsonObject, schema } from '@angular-devkit/core'; import { Logger } from '@angular-devkit/core/src/logger'; import { Schema } from './schema'; let tmpDir: string; let distDir: string; let architect: Architect; let architectHost: TestingArchitectHost; let logger: Logger; let logs: string[]; const buildConfig = { fileReplacements: [{ replace: 'dummy', with: 'environment.prod.ts' }], index: 'src/index.html', outputPath: 'dist', }; const registry = new schema.CoreSchemaRegistry(); registry.addPostTransform(schema.transforms.addUndefinedDefaults); tmpDir = mkdtempSync(join(tmpdir(), 'ngssc-')); writeFileSync(join(tmpDir, 'environment.prod.ts'), envContent, 'utf8'); distDir = join(tmpDir, 'dist'); mkdirSync(distDir); writeFileSync(join(distDir, 'main.js'), '', 'utf8'); architectHost = new TestingArchitectHost(tmpDir, tmpDir); architect = new Architect(architectHost, registry); // This will either take a Node package name, or a path to the directory // for the package.json file. await architectHost.addBuilderFromPackage( '../../../../projects/angular-server-side-configuration' ); await architectHost.addBuilderFromPackage('..'); logs = []; logger = new Logger('ngssc'); logger.subscribe((m) => logs.push(m.message)); function addDummyBuildTarget(config: any = buildConfig) { architectHost.addTarget( { project: 'dummy', target: 'build' }, '@angular-devkit/architect:true', config ); } async function runNgsscbuild(options: Schema & JsonObject) { const run = await architect.scheduleBuilder( 'angular-server-side-configuration:ngsscbuild', options, { logger } ); addDummyBuildTarget(); const output = await runNgsscbuild({ additionalEnvironmentVariables: [], aotSupport: false, browserTarget: 'dummy:build', filePattern: '', }); expect(logs.some((l) => l.includes('ngssc'))).toBeTruthy(); const ngssc: Ngssc = JSON.parse(readFileSync(join(distDir, 'ngssc.json'), 'utf8')); addDummyBuildTarget(); const output = await runNgsscbuild({ additionalEnvironmentVariables: [expected], aotSupport: false, browserTarget: 'dummy:build', filePattern: '', }); expect(logs.some((l) => l.includes('ngssc'))).toBeTruthy(); const ngssc: Ngssc = JSON.parse(readFileSync(join(distDir, 'ngssc.json'), 'utf8')); const envContent = ` import 'angular-server-side-configuration/process'; /** * How to use angular-server-side-configuration: * * Use process.env.NAME_OF_YOUR_ENVIRONMENT_VARIABLE * * export const environment = { * stringValue: process.env.STRING_VALUE, * stringValueWithDefault: process.env.STRING_VALUE || 'defaultValue', * numberValue: Number(process.env.NUMBER_VALUE), * numberValueWithDefault: Number(process.env.NUMBER_VALUE || 10), * booleanValue: Boolean(process.env.BOOLEAN_VALUE), * booleanValueInverted: process.env.BOOLEAN_VALUE_INVERTED !== 'false', * }; */ export const environment = { production: process.env.PROD !== 'false', apiBackend: process.env.API_BACKEND || 'http://example.com', ternary: process.env.TERNARY ? 'asdf' : 'qwer', simpleValue: process.env.SIMPLE_VALUE, something: { asdf: process.env.OMG || 'omg', qwer: parseInt(process.env.NUMBER || ''), } }; `; import { lstatSync, promises, readdirSync } from 'fs'; import { BrowserBuilderOptions } from '@angular-devkit/build-angular'; const ngsscContext = await detectVariables(context); export async function detectVariables(context: BuilderContext): Promise<NgsscContext> { const typeScriptFiles = findTypeScriptFiles(context.workspaceRoot); function findTypeScriptFiles(root: string): string[] { const directory = root.replace(/\\/g, '/'); return readdirSync(directory) .map((f) => `${directory}/${f}`) .map((f) => { const stat = lstatSync(f); if (stat.isDirectory()) { return findTypeScriptFiles(f); } else if (stat.isFile() && f.endsWith('.ts') && !f.endsWith('.spec.ts')) { return [f]; } else { return []; } }) .reduce((current, next) => current.concat(next), []); } } "tslib": "^2.3.0" jasmine.execute();
test/test-project-* 18 ## Changes with version 15.1 With the change in version 15 to search all files for environment variables, a potential information disclosure vulnerability was introduced, as unintended environment variables might be exposed. You might be affected, if you use environment variables in your angular.json workspace that expose application internals (like used services/tools) or secrets that are also available on the deployed environment (e.g. a monorepo that also contains a Node.js backend, which is deployed in the same system/container/pod as the frontend bundle). This should have little to no impact, if you only have a simple angular.json workspace without a backend component. With 15.1 this risk is mitigated, as the lookup path is restricted by adding an option `searchPattern` which defaults to `{sourceRoot}/**/!(*server*).ts` (only search `sourceRoot` of the related angular.json project and exclude files with `server` in the name). either `environment.prod.ts`, `environment.ts`, `app.module.ts`, `app.components.ts` or `main.ts` depending on availability. The ngssc builder will also now search all files for environment variable usages instead of just the defined environment file. Due to this, the `ngsscEnvironmentFile` option can be removed. "filePattern": "index.html", // (Defaults to {sourceRoot}/**/!(*server*).ts) "searchPattern": "src/environments/environment*.ts" ### TypeScript files "pretest:lib": "yarn -s build:lib", "glob": "^9.3.1", "required": [ "input" ] "required": [ "input" ] "enum": [ "css", "less", "sass", "scss" ] "enum": [ "warning", "error", "ignore" ], "enum": [ "warning", "error", "ignore" ], "enum": [ "none", "all", "media", "bundles" ] "required": [ "input" ] "enum": [ "none", "anonymous", "use-credentials" ] }, "searchPattern": { "type": "string", "description": "The search pattern to use when searching for environment variable occurrences (Defaults to {sourceRoot}/**/!(*server*).ts)", "default": "" "required": [ "outputPath", "index", "main", "tsConfig" ], "required": [ "glob", "input", "output" ] "required": [ "src", "replaceWith" ] "required": [ "replace", "with" ] "enum": [ "all", "allScript", "any", "anyScript", "anyComponentStyle", "bundle", "initial" ] "required": [ "type" ] } const ngsscContext = await detectVariables(context, options.searchPattern); }, "searchPattern": { "type": "string", "description": "The search pattern to use when searching for environment variable occurrences (Defaults to {sourceRoot}/**/!(*server*).ts)", "default": "" "required": [ "browserTarget" ] } import { normalize, virtualFs } from '@angular-devkit/core'; import { createArchitect, host } from '../../../../test/test-utils'; const targetSpec = { project: 'app', target: 'ngsscbuild' }; let architect: Architect | undefined; architect = undefined; await host.initialize().toPromise(); afterEach(async () => host.restore().toPromise()); async function runNgsscbuild() { architect = (await createArchitect(host.root())).architect; const run = await architect.scheduleTarget(targetSpec); function readNgsscJson(): Ngssc { const content = virtualFs.fileBufferToString( host.scopedSync().read(normalize('dist/ngssc.json')) ); return JSON.parse(content); } const output = await runNgsscbuild(); const ngssc = readNgsscJson(); host.replaceInFile( 'angular.json', '"additionalEnvironmentVariables": [],', `"additionalEnvironmentVariables": ["${expected}"],` ); const output = await runNgsscbuild(); const ngssc = readNgsscJson(); import { promises } from 'fs'; import { BrowserBuilderOptions } from '@angular-devkit/build-angular'; import { glob } from 'glob'; const ngsscContext = await detectVariables(context, options.searchPattern); export async function detectVariables( context: BuilderContext, searchPattern?: string | null ): Promise<NgsscContext> { const projectName = context.target && context.target.project; if (!projectName) { throw new Error('The builder requires a target.'); } const projectMetadata = await context.getProjectMetadata(projectName); const sourceRoot = projectMetadata.sourceRoot as string | undefined; const defaultSearchPattern = sourceRoot ? `${sourceRoot}/**/!(*server*).ts` : '**/!(*server*).ts'; const typeScriptFiles = await glob(searchPattern || defaultSearchPattern, { absolute: true, cwd: context.workspaceRoot, ignore: ['**/node_modules/**', '**/*.spec.ts', '**/*.d.ts'], }); }, "searchPattern": { "type": "string", "description": "The search pattern to use when searching for environment variable occurrences (Defaults to {sourceRoot}/**/!(*server*).ts)", "default": "" searchPattern?: string | null; }, "allowedNonPeerDependencies": ["glob"] "tslib": "^2.3.0", "glob": "^9.3.1" join(dirname(mainFile), 'environment.prod.ts'), join(dirname(mainFile), 'environment.ts'), # We want to run tests large with ever green browser so that # we never trigger differential loading as this will slow down the tests. last 2 Chrome versions # Editor configuration, see https://editorconfig.org root = true [*] charset = utf-8 indent_style = space indent_size = 2 insert_final_newline = true trim_trailing_whitespace = true [*.md] max_line_length = off trim_trailing_whitespace = false # Don't ignore node_modules, this project is not meant to be installed. # Also, ~ import path in styles does only looks in the first node_modules found. # /node_modules # HelloWorldApp This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.0-beta.1. ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. ## Code scaffolding Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. ## Build Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. ## Running unit tests Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). ## Running end-to-end tests Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/main/README.md). { "$schema": "../../../../packages/angular_devkit/core/src/workspace/workspace-schema.json", "version": 1, "newProjectRoot": "./projects", "cli": { "cache": { "enabled": false } }, "schematics": {}, "projects": { "app": { "root": "src", "sourceRoot": "src", "projectType": "application", "prefix": "app", "schematics": {}, "targets": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.app.json", "progress": false, "sourceMap": false, "aot": false, "vendorChunk": true, "buildOptimizer": false, "optimization": false, "extractLicenses": false, "namedChunks": true, "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css" ], "scripts": [] }, "configurations": { "production": { "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "inline-critical-css": { "optimization": { "styles": { "minify": true, "inlineCritical": true }, "scripts": true, "fonts": true } } } }, "server": { "builder": "@angular-devkit/build-angular:server", "options": { "outputPath": "dist-server", "main": "src/main.server.ts", "tsConfig": "src/tsconfig.server.json", "progress": false, "sourceMap": true, "optimization": false, "extractLicenses": false } }, "app-shell": { "builder": "@angular-devkit/build-angular:app-shell", "options": { "browserTarget": "app:build", "serverTarget": "app:server" }, "configurations": { "production": { "browserTarget": "app:build:production" } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "app:build", "watch": false }, "configurations": { "production": { "browserTarget": "app:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "app:build", "progress": false, "outputPath": "src" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "src/tsconfig.spec.json", "karmaConfig": "karma.conf.js", "browsers": "ChromeHeadlessCI", "progress": false, "watch": false, "styles": [ { "input": "src/styles.css" } ], "scripts": [], "assets": [ "src/favicon.ico", "src/assets" ] } }, "ngsscbuild": { "builder": "angular-server-side-configuration:ngsscbuild", "options": { "additionalEnvironmentVariables": [], "browserTarget": "app:build" }, "configurations": { "production": { "browserTarget": "app:build:production" } } } } }, "app-e2e": { "root": "e2e", "projectType": "application", "targets": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "protractor.conf.js", "devServerTarget": "app:serve", "webdriverUpdate": false } } } } } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html const path = require('path'); process.env.CHROME_BIN = require('puppeteer').executablePath(); module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage'), require('@angular-devkit/build-angular/plugins/karma'), ], client: { clearContext: false, // leave Jasmine Spec Runner output visible in browser }, jasmineHtmlReporter: { suppressAll: true // removes the duplicated traces }, coverageReporter: { dir: path.join(__dirname, './coverage'), subdir: '.', reporters: [ {type: 'lcov'}, ], }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], customLaunchers: { ChromeHeadlessCI: { base: 'ChromeHeadless', flags: ['--disable-gpu'], }, }, singleRun: false, }); }; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); const { resolve } = require('path'); exports.config = { allScriptsTimeout: 11000, specs: ['./e2e/**/*.e2e-spec.ts'], capabilities: { browserName: 'chrome', chromeOptions: { args: ['--headless', '--disable-gpu', '--window-size=800,600'], binary: require('puppeteer').executablePath(), }, }, directConnect: true, baseUrl: 'http://localhost:4200/', framework: 'jasmine', jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, print: function() {}, }, onPrepare() { require('ts-node').register({ project: resolve(__dirname, './e2e/tsconfig.e2e.json'), }); jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: StacktraceOption.PRETTY } })); }, }; <!--The content below is only a placeholder and can be replaced.--> <div style="text-align:center"> <h1> Welcome to {{ title }}! </h1> <img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="> </div> <h2>Here are some links to help you start: </h2> <ul> <li> <h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2> </li> <li> <h2><a target="_blank" rel="noopener" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2> </li> <li> <h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2> </li> </ul> <p i18n>i18n test</p> /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [AppComponent], }).compileComponents(); }); it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'app'`, () => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; expect(app.title).toEqual('app'); }); it('should render title in a h1 tag', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); }); }); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], }) export class AppComponent { title = process.env.TEST; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { NgModule } from '@angular/core'; import { ServerModule } from '@angular/platform-server'; import { AppModule } from './app.module'; import { AppComponent } from './app.component'; @NgModule({ imports: [ AppModule, ServerModule, ], bootstrap: [AppComponent], }) export class AppServerModule {} <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>HelloWorldApp</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> </head> <body> <app-root></app-root> </body> </html> /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export { AppServerModule } from './app/app.server.module'; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; platformBrowserDynamic() .bootstrapModule(AppModule) .catch(err => console.log(err)); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/guide/browser-support */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). */ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags * because those flags need to be set before `zone.js` being loaded, and webpack * will put import in the top of bundle, so user need to create a separate file * in this directory (for example: zone-flags.ts), and put the following flags * into that file, and then add the following code before importing zone.js. * import './zone-flags.ts'; * * The flags allowed in zone-flags.ts are listed here. * * The following flags will work for all browsers. * * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames * * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge * * (window as any).__Zone_enable_cross_context_check = true; * */ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ <?xml version="1.0" encoding="UTF-8" ?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> <file source-language="en" datatype="plaintext" original="ng2.template"> <body> <trans-unit id="8261100fbc1830397116d0a032e7c8f54af93c68" datatype="html"> <source>i18n test</source> <context-group purpose="location"> <context context-type="sourcefile">app/app.component.ts</context> <context context-type="linenumber">21</context> </context-group> <context-group purpose="location"> <context context-type="sourcefile">app/app.component.ts</context> <context context-type="linenumber">23</context> </context-group> </trans-unit> </body> </file> </xliff> /* You can add global styles to this file, and also import other style files */ { "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": ["@angular/localize", "node"] }, "files": [ "main.ts", "polyfills.ts" ], "include": [ "**/*.d.ts" ] } { "extends": "./tsconfig.app.json", "compilerOptions": { "outDir": "../dist-server", "baseUrl": "./", "types": ["@angular/localize", "node"] }, "files": [ "main.server.ts" ] } { "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/spec", "types": [ "jasmine", "@angular/localize" ] }, "files": [ "polyfills.ts" ], "include": [ "**/*.spec.ts", "**/*.d.ts" ] } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /* SystemJS module definition */ declare var module: NodeModule; interface NodeModule { id: string; } { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "module": "es2022", "useDefineForClassFields": false, "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ] }, "angularCompilerOptions": { "enableIvy": true, "disableTypeScriptVersionCheck": true, "strictTemplates": true } } jasmine .execute() .then((result) => { if (result.failedExpectations.length) { console.error(result.failedExpectations); } }) .catch((e) => console.error(e)); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Architect, BuilderOutput } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing'; import { Path, getSystemPath, join, normalize, schema, workspaces } from '@angular-devkit/core'; // Default timeout for large specs is 2.5 minutes. jasmine.DEFAULT_TIMEOUT_INTERVAL = 150000; export const workspaceRoot = join(normalize(__dirname), `hello-world-app/`); export const host = new TestProjectHost(workspaceRoot); export const outputPath: Path = normalize('dist'); export const browserTargetSpec = { project: 'app', target: 'build' }; export const devServerTargetSpec = { project: 'app', target: 'serve' }; export const extractI18nTargetSpec = { project: 'app', target: 'extract-i18n' }; export const karmaTargetSpec = { project: 'app', target: 'test' }; export const tslintTargetSpec = { project: 'app', target: 'lint' }; export const protractorTargetSpec = { project: 'app-e2e', target: 'e2e' }; export async function createArchitect(workspaceRoot: Path) { const registry = new schema.CoreSchemaRegistry(); registry.addPostTransform(schema.transforms.addUndefinedDefaults); const workspaceSysPath = getSystemPath(workspaceRoot); const { workspace } = await workspaces.readWorkspace( workspaceSysPath, workspaces.createWorkspaceHost(host) ); const architectHost = new TestingArchitectHost( workspaceSysPath, workspaceSysPath, new WorkspaceNodeModulesArchitectHost(workspace, workspaceSysPath) ); await architectHost.addBuilderFromPackage('..'); //require('ts-node').register(require('../projects/angular-server-side-configuration/builders/tsconfig.json')); await architectHost.addBuilderFromPackage( '../../../../dist/angular-server-side-configuration' ); const architect = new Architect(architectHost, registry); return { workspace, architectHost, architect, }; } export interface BrowserBuildOutput { output: BuilderOutput; files: { [file: string]: Promise<string> }; } glob@^9.3.1: version "9.3.1" resolved "https://registry.yarnpkg.com/glob/-/glob-9.3.1.tgz#4a15cf72479a440f77e97805b21e1b5b6e4fb18a" integrity sha512-qERvJb7IGsnkx6YYmaaGvDpf77c951hICMdWaFXyH3PlVob8sbPJJyJX0kWkiCWyXUzoy9UOTNjGg0RbD8bYIw== dependencies: fs.realpath "^1.0.0" minimatch "^7.4.1" minipass "^4.2.4" path-scurry "^1.6.1" lru-cache@^7.14.1: version "7.18.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== minimatch@^7.4.1: version "7.4.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-7.4.2.tgz#157e847d79ca671054253b840656720cb733f10f" integrity sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA== dependencies: brace-expansion "^2.0.1" minipass@^4.0.2, minipass@^4.2.4: version "4.2.5" resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.5.tgz#9e0e5256f1e3513f8c34691dd68549e85b2c8ceb" integrity sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q== path-scurry@^1.6.1: version "1.6.2" resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.6.2.tgz#72783838113a4a0cec155323b2c01eb1b193396f" integrity sha512-J6MQNh56h6eHFY3vsQ+Lq+zKPwn71POieutmVt2leU8W+zz8HVIdJyn3I3Zs6IKbIQtuKXirVjTBFNBcbFO44Q== dependencies: lru-cache "^7.14.1" minipass "^4.0.2"
[]
CVE-2014-8351
489b6050f6c53fe7b24c4bed3eeb9c25543960e2
https://github.com/LaboCNIL/CookieViz
[{'lang': 'en', 'value': 'SQL injection vulnerability in info.php in French National Commission on Informatics and Liberty (aka CNIL) CookieViz before 1.0.1 allows remote web servers to execute arbitrary SQL commands via the domain parameter.'}]
7.5
null
2014-11-06T15:55Z
HIGH
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Patch vulnerabilities Patch vulnerabilities : CVE-2014-8352 CVE-2014-8351
2014-11-04 11:30:34 +0100
489b605
80
2
[ "cookieviz/info.php", "cookieviz/json.php" ]
PHP
{"cookieviz/info.php": {"lines_added": 8, "lines_deleted": 2}, "cookieviz/json.php": {"lines_added": 6, "lines_deleted": 2}}
diff --git a/cookieviz/info.php b/cookieviz/info.php index 9344255..84cffba 100755 --- a/cookieviz/info.php +++ b/cookieviz/info.php @@ -1,6 +1,6 @@ -<?php +<?php /*Copyright (c) 2013, Stéphane Petitcolas This file is part of CookieViz CookieViz is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,12 +18,18 @@ along with CookieViz. If not, see <http://www.gnu.org/licenses/>. require "connect.php"; if(isset($_GET["domain"])) { - $domain = $_GET["domain"]; + $domain = mysql_real_escape_string($_GET["domain"]); + } +else +{ + exit; +} + echo '<table id="infos">'; echo "<thead>"; echo "<tr>"; echo "<th>From</th>"; echo "<th>To</th>"; diff --git a/cookieviz/json.php b/cookieviz/json.php index d9b9147..7b5d5e2 100755 --- a/cookieviz/json.php +++ b/cookieviz/json.php @@ -21,16 +21,20 @@ require "load_point.php"; $domain=""; $init_max_date=0; if(isset($_GET["max_date"])) { - $init_max_date = $_GET["max_date"]; + $init_max_date = mysql_real_escape_string($_GET["max_date"]); + if (!is_numeric($init_max_date)) + { + $init_max_date=""; + } } if(isset($_GET["domain"])) { - $domain = $_GET["domain"]; + $domain = mysql_real_escape_string($_GET["domain"]); } $max_date = $init_max_date; $point_map = new point_map($domain); $map = $point_map->get_map();
<?php $domain = $_GET["domain"]; $init_max_date = $_GET["max_date"]; $domain = $_GET["domain"];
<?php $domain = mysql_real_escape_string($_GET["domain"]); else { exit; } $init_max_date = mysql_real_escape_string($_GET["max_date"]); if (!is_numeric($init_max_date)) { $init_max_date=""; } $domain = mysql_real_escape_string($_GET["domain"]);
[]
CVE-2014-8352
489b6050f6c53fe7b24c4bed3eeb9c25543960e2
https://github.com/LaboCNIL/CookieViz
[{'lang': 'en', 'value': 'Cross-site scripting (XSS) vulnerability in json.php in French National Commission on Informatics and Liberty (aka CNIL) CookieViz allows remote we servers to inject arbitrary web script or HTML via the max_date parameter.'}]
4.3
null
2014-11-06T15:55Z
MEDIUM
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Patch vulnerabilities Patch vulnerabilities : CVE-2014-8352 CVE-2014-8351
2014-11-04 11:30:34 +0100
489b605
80
2
[ "cookieviz/info.php", "cookieviz/json.php" ]
PHP
{"cookieviz/info.php": {"lines_added": 8, "lines_deleted": 2}, "cookieviz/json.php": {"lines_added": 6, "lines_deleted": 2}}
diff --git a/cookieviz/info.php b/cookieviz/info.php index 9344255..84cffba 100755 --- a/cookieviz/info.php +++ b/cookieviz/info.php @@ -1,6 +1,6 @@ -<?php +<?php /*Copyright (c) 2013, Stéphane Petitcolas This file is part of CookieViz CookieViz is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,12 +18,18 @@ along with CookieViz. If not, see <http://www.gnu.org/licenses/>. require "connect.php"; if(isset($_GET["domain"])) { - $domain = $_GET["domain"]; + $domain = mysql_real_escape_string($_GET["domain"]); + } +else +{ + exit; +} + echo '<table id="infos">'; echo "<thead>"; echo "<tr>"; echo "<th>From</th>"; echo "<th>To</th>"; diff --git a/cookieviz/json.php b/cookieviz/json.php index d9b9147..7b5d5e2 100755 --- a/cookieviz/json.php +++ b/cookieviz/json.php @@ -21,16 +21,20 @@ require "load_point.php"; $domain=""; $init_max_date=0; if(isset($_GET["max_date"])) { - $init_max_date = $_GET["max_date"]; + $init_max_date = mysql_real_escape_string($_GET["max_date"]); + if (!is_numeric($init_max_date)) + { + $init_max_date=""; + } } if(isset($_GET["domain"])) { - $domain = $_GET["domain"]; + $domain = mysql_real_escape_string($_GET["domain"]); } $max_date = $init_max_date; $point_map = new point_map($domain); $map = $point_map->get_map();
<?php $domain = $_GET["domain"]; $init_max_date = $_GET["max_date"]; $domain = $_GET["domain"];
<?php $domain = mysql_real_escape_string($_GET["domain"]); else { exit; } $init_max_date = mysql_real_escape_string($_GET["max_date"]); if (!is_numeric($init_max_date)) { $init_max_date=""; } $domain = mysql_real_escape_string($_GET["domain"]);
[]
CVE-2023-1070
0af3574caba27a61b16dc25c94fa51ae12d2d967
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'External Control of File Name or Path in GitHub repository nilsteampassnet/teampass prior to 3.0.0.22.'}]
null
7.1
2023-02-27T16:15Z
nan
CWE-73
External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
3.0.0.23 Fix for #3520 Fix vulnerability related to teampass-seckey.txt file
2023-02-14 08:01:35 +0100
0af3574c
8,325
3
[ "api/Model/ItemModel.php", "includes/config/include.php", "includes/core/load.js.php", "includes/core/login.js.php", "includes/core/login.php", "includes/core/logout.php", "includes/core/otv.php", "includes/language/arabic.php", "includes/language/bulgarian.php", "includes/language/catalan.php", "includes/language/chinese.php", "includes/language/czech.php", "includes/language/dutch.php", "includes/language/english.php", "includes/language/estonian.php", "includes/language/french.php", "includes/language/german.php", "includes/language/greek.php", "includes/language/hungarian.php", "includes/language/italian.php", "includes/language/japanese.php", "includes/language/norwegian.php", "includes/language/polish.php", "includes/language/portuguese.php", "includes/language/portuguese_br.php", "includes/language/romanian.php", "includes/language/russian.php", "includes/language/spanish.php", "includes/language/swedish.php", "includes/language/turkish.php", "includes/language/ukrainian.php", "includes/language/vietnamese.php", "index.php", "install/install.php", "install/install.queries.php", "install/migrate_users_to_v3.php", "install/tp.functions.php", "install/upgrade.php", "install/upgrade_ajax.php", "install/upgrade_run_3.0.0.php", "install/upgrade_run_3.0.0_fields.php", "install/upgrade_run_3.0.0_files.php", "install/upgrade_run_3.0.0_logs.php", "install/upgrade_run_3.0.0_passwords.php", "install/upgrade_run_3.0.0_suggestions.php", "install/upgrade_run_3.0.0_users.php", "install/upgrade_scripts_manager.php", "pages/2fa.js.php", "pages/2fa.php", "pages/actions.js.php", "pages/actions.php", "pages/admin.js.php", "pages/admin.php", "pages/api.js.php", "pages/api.php", "pages/backups.js.php", "pages/backups.php", "pages/emails.js.php", "pages/emails.php", "pages/export.js.php", "pages/export.php", "pages/favorites.js.php", "pages/favourites.php", "pages/fields.js.php", "pages/fields.php", "pages/folders.js.php", "pages/folders.php", "pages/import.js.php", "pages/import.php", "pages/items.js.php", "pages/items.php", "pages/kb.php", "pages/ldap.js.php", "pages/ldap.php", "pages/offline.js.php", "pages/offline.php", "pages/options.js.php", "pages/options.php", "pages/profile.js.php", "pages/profile.php", "pages/roles.js.php", "pages/roles.php", "pages/search.js.php", "pages/search.php", "pages/special.php", "pages/statistics.js.php", "pages/statistics.php", "pages/suggestion.php", "pages/tasks.js.php", "pages/tasks.php", "pages/uploads.js.php", "pages/uploads.php", "pages/users.js.php", "pages/users.php", "pages/utilities.database.js.php", "pages/utilities.database.php", "pages/utilities.deletion.js.php", "pages/utilities.deletion.php", "pages/utilities.logs.js.php", "pages/utilities.logs.php", "pages/utilities.php", "pages/utilities.renewal.js.php", "pages/utilities.renewal.php", "sources/admin.queries.php", "sources/aes.functions.php", "sources/background.php", "sources/backups.queries.php", "sources/checks.php", "sources/core.php", "sources/downloadFile.php", "sources/expired.datatables.php", "sources/export.queries.php", "sources/favourites.queries.php", "sources/fields.queries.php", "sources/find.queries.php", "sources/folders.datatable.php", "sources/folders.queries.php", "sources/identify.php", "sources/import.queries.php", "sources/items.logs.php", "sources/items.queries.php", "sources/ldap.queries.php", "sources/logs.datatables.php", "sources/main.functions.php", "sources/main.queries.php", "sources/roles.queries.php", "sources/scheduler.php", "sources/tree.php", "sources/upload.attachments.php", "sources/upload.files.php", "sources/user.logs.datatables.php", "sources/users.datatable.php", "sources/users.queries.php", "sources/utilities.queries.php", "sources/utils.queries.php" ]
PHP
{"api/Model/ItemModel.php": {"lines_added": 1, "lines_deleted": 1}, "includes/config/include.php": {"lines_added": 2, "lines_deleted": 2}, "includes/core/load.js.php": {"lines_added": 1, "lines_deleted": 1}, "includes/core/login.js.php": {"lines_added": 1, "lines_deleted": 1}, "includes/core/login.php": {"lines_added": 1, "lines_deleted": 1}, "includes/core/logout.php": {"lines_added": 1, "lines_deleted": 1}, "includes/core/otv.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/arabic.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/bulgarian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/catalan.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/chinese.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/czech.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/dutch.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/english.php": {"lines_added": 2, "lines_deleted": 2}, "includes/language/estonian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/french.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/german.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/greek.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/hungarian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/italian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/japanese.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/norwegian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/polish.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/portuguese.php": {"lines_added": 25, "lines_deleted": 25}, "includes/language/portuguese_br.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/romanian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/russian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/spanish.php": {"lines_added": 2, "lines_deleted": 2}, "includes/language/swedish.php": {"lines_added": 2, "lines_deleted": 2}, "includes/language/turkish.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/ukrainian.php": {"lines_added": 1, "lines_deleted": 1}, "includes/language/vietnamese.php": {"lines_added": 1, "lines_deleted": 1}, "index.php": {"lines_added": 1, "lines_deleted": 1}, "install/install.php": {"lines_added": 2, "lines_deleted": 2}, "install/install.queries.php": {"lines_added": 4, "lines_deleted": 2}, "install/migrate_users_to_v3.php": {"lines_added": 1, "lines_deleted": 1}, "install/tp.functions.php": {"lines_added": 88, "lines_deleted": 1}, "install/upgrade.php": {"lines_added": 1, "lines_deleted": 1}, "install/upgrade_ajax.php": {"lines_added": 3, "lines_deleted": 12}, "install/upgrade_run_3.0.0.php": {"lines_added": 12, "lines_deleted": 1}, "install/upgrade_run_3.0.0_fields.php": {"lines_added": 1, "lines_deleted": 1}, "install/upgrade_run_3.0.0_files.php": {"lines_added": 2, "lines_deleted": 13}, "install/upgrade_run_3.0.0_logs.php": {"lines_added": 1, "lines_deleted": 1}, "install/upgrade_run_3.0.0_passwords.php": {"lines_added": 1, "lines_deleted": 1}, "install/upgrade_run_3.0.0_suggestions.php": {"lines_added": 1, "lines_deleted": 1}, "install/upgrade_run_3.0.0_users.php": {"lines_added": 1, "lines_deleted": 1}, "install/upgrade_scripts_manager.php": {"lines_added": 1, "lines_deleted": 1}, "pages/2fa.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/2fa.php": {"lines_added": 1, "lines_deleted": 1}, "pages/actions.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/actions.php": {"lines_added": 1, "lines_deleted": 1}, "pages/admin.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/admin.php": {"lines_added": 1, "lines_deleted": 1}, "pages/api.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/api.php": {"lines_added": 1, "lines_deleted": 1}, "pages/backups.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/backups.php": {"lines_added": 1, "lines_deleted": 1}, "pages/emails.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/emails.php": {"lines_added": 1, "lines_deleted": 1}, "pages/export.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/export.php": {"lines_added": 1, "lines_deleted": 1}, "pages/favorites.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/favourites.php": {"lines_added": 1, "lines_deleted": 1}, "pages/fields.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/fields.php": {"lines_added": 1, "lines_deleted": 1}, "pages/folders.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/folders.php": {"lines_added": 1, "lines_deleted": 1}, "pages/import.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/import.php": {"lines_added": 1, "lines_deleted": 1}, "pages/items.js.php": {"lines_added": 52, "lines_deleted": 9}, "pages/items.php": {"lines_added": 1, "lines_deleted": 1}, "pages/kb.php": {"lines_added": 1, "lines_deleted": 1}, "pages/ldap.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/ldap.php": {"lines_added": 1, "lines_deleted": 1}, "pages/offline.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/offline.php": {"lines_added": 1, "lines_deleted": 1}, "pages/options.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/options.php": {"lines_added": 1, "lines_deleted": 1}, "pages/profile.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/profile.php": {"lines_added": 1, "lines_deleted": 1}, "pages/roles.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/roles.php": {"lines_added": 1, "lines_deleted": 1}, "pages/search.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/search.php": {"lines_added": 1, "lines_deleted": 1}, "pages/special.php": {"lines_added": 1, "lines_deleted": 1}, "pages/statistics.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/statistics.php": {"lines_added": 1, "lines_deleted": 1}, "pages/suggestion.php": {"lines_added": 1, "lines_deleted": 1}, "pages/tasks.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/tasks.php": {"lines_added": 1, "lines_deleted": 1}, "pages/uploads.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/uploads.php": {"lines_added": 1, "lines_deleted": 1}, "pages/users.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/users.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.database.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.database.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.deletion.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.deletion.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.logs.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.logs.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.renewal.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/utilities.renewal.php": {"lines_added": 1, "lines_deleted": 1}, "sources/admin.queries.php": {"lines_added": 14, "lines_deleted": 14}, "sources/aes.functions.php": {"lines_added": 1, "lines_deleted": 1}, "sources/background.php": {"lines_added": 1, "lines_deleted": 1}, "sources/backups.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/checks.php": {"lines_added": 1, "lines_deleted": 1}, "sources/core.php": {"lines_added": 1, "lines_deleted": 1}, "sources/downloadFile.php": {"lines_added": 1, "lines_deleted": 1}, "sources/expired.datatables.php": {"lines_added": 1, "lines_deleted": 1}, "sources/export.queries.php": {"lines_added": 2, "lines_deleted": 2}, "sources/favourites.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/fields.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/find.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/folders.datatable.php": {"lines_added": 1, "lines_deleted": 1}, "sources/folders.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/identify.php": {"lines_added": 1, "lines_deleted": 1}, "sources/import.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/items.logs.php": {"lines_added": 1, "lines_deleted": 1}, "sources/items.queries.php": {"lines_added": 68, "lines_deleted": 1}, "sources/ldap.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/logs.datatables.php": {"lines_added": 1, "lines_deleted": 1}, "sources/main.functions.php": {"lines_added": 7, "lines_deleted": 7}, "sources/main.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/roles.queries.php": {"lines_added": 35, "lines_deleted": 1}, "sources/scheduler.php": {"lines_added": 1, "lines_deleted": 1}, "sources/tree.php": {"lines_added": 12, "lines_deleted": 3}, "sources/upload.attachments.php": {"lines_added": 1, "lines_deleted": 1}, "sources/upload.files.php": {"lines_added": 1, "lines_deleted": 1}, "sources/user.logs.datatables.php": {"lines_added": 1, "lines_deleted": 1}, "sources/users.datatable.php": {"lines_added": 1, "lines_deleted": 1}, "sources/users.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/utilities.queries.php": {"lines_added": 1, "lines_deleted": 1}, "sources/utils.queries.php": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/api/Model/ItemModel.php b/api/Model/ItemModel.php index a27cb749..75c2a821 100755 --- a/api/Model/ItemModel.php +++ b/api/Model/ItemModel.php @@ -75,11 +75,11 @@ class ItemModel extends Database $path = ''; foreach ($arbo as $elem) { if (empty($path) === true) { $path = htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); } else { - $path .= '>' . htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); + $path .= '/' . htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); } } array_push( $ret, diff --git a/includes/config/include.php b/includes/config/include.php index bb864273..279fbeea 100755 --- a/includes/config/include.php +++ b/includes/config/include.php @@ -10,16 +10,16 @@ * * @author Nils Laumaillé <nils@teampass.net> * @copyright 2009-2022 Nils Laumaillé * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 * - * @version 3.0.0.22 + * @version 3.0.0.23 * * @see http://www.teampass.net */ define('TP_VERSION', '3.0.0'); -define('TP_VERSION_FULL', TP_VERSION.'.22'); +define('TP_VERSION_FULL', TP_VERSION.'.23'); define('TP_TOOL_NAME', 'Teampass'); define('TP_ONE_DAY_SECONDS', 86400); define('TP_ONE_WEEK_SECONDS', 604800); define('TP_ONE_MONTH_SECONDS', 2592000); define('TP_IMAGE_FILE_EXT', array('jpg', 'gif', 'png', 'jpeg', 'tiff', 'bmp')); diff --git a/includes/core/load.js.php b/includes/core/load.js.php index 411b35be..62627c37 100755 --- a/includes/core/load.js.php +++ b/includes/core/load.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file load.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/includes/core/login.js.php b/includes/core/login.js.php index e5200efd..e55f5dbb 100755 --- a/includes/core/login.js.php +++ b/includes/core/login.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file login.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/includes/core/login.php b/includes/core/login.php index cb2cbd36..b686cad9 100755 --- a/includes/core/login.php +++ b/includes/core/login.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file login.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/includes/core/logout.php b/includes/core/logout.php index 2a22a329..a68b1821 100755 --- a/includes/core/logout.php +++ b/includes/core/logout.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file logout.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/includes/core/otv.php b/includes/core/otv.php index 7aac8719..1db3f186 100755 --- a/includes/core/otv.php +++ b/includes/core/otv.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file otv.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/includes/language/arabic.php b/includes/language/arabic.php index 61ab01e7..988b9b42 100755 --- a/includes/language/arabic.php +++ b/includes/language/arabic.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file arabic.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009 - 2022 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/bulgarian.php b/includes/language/bulgarian.php index f83818d2..ebfc106c 100755 --- a/includes/language/bulgarian.php +++ b/includes/language/bulgarian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file bulgarian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/catalan.php b/includes/language/catalan.php index d6bbfc6d..543e305e 100755 --- a/includes/language/catalan.php +++ b/includes/language/catalan.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file catalan.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/chinese.php b/includes/language/chinese.php index 118ae26c..ea20ac1e 100755 --- a/includes/language/chinese.php +++ b/includes/language/chinese.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file chinese.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/czech.php b/includes/language/czech.php index 8f129f86..b16a1227 100755 --- a/includes/language/czech.php +++ b/includes/language/czech.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file czech.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/dutch.php b/includes/language/dutch.php index a74fcda0..0fcb1450 100755 --- a/includes/language/dutch.php +++ b/includes/language/dutch.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file dutch.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/english.php b/includes/language/english.php index a3ecb131..f931586d 100755 --- a/includes/language/english.php +++ b/includes/language/english.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file english.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009 - 2022 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -515,11 +515,11 @@ return array( 'admin_ga_website_name' => 'Name displayed in Google 2-step Verification for Teampass', 'admin_ga_website_name_tip' => 'This name is used for the identification code account in Google 2-step Verification.', 'api_whitelist_ips' => 'API IPs Whitelist', 'api_whitelist_ips_tip' => 'If no API client IP addresses are explicitly listed here, then any IP address is authorized.', 'email_share_item_subject' => 'A password item was shared with you', - 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href=\'#tp_link#\'>Click this link</a> to access the item.<br><br><br>Greetings', + 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href="#tp_link#">Click this link</a> to access the item.<br><br><br>Greetings', 'index_maintenance_mode_admin' => 'Maintenance mode is enabled. Users cannot sign in.', '2fa_authentication_selector' => 'Select a 2 factor authentication method', 'upload_empty_file' => 'Upload empty file', 'upload_any_extension_file' => 'Upload any extension file', 'upload_any_extension_file_tip' => 'When enabled, this option will allow users to upload any kind of files.', diff --git a/includes/language/estonian.php b/includes/language/estonian.php index d18c347f..03f63b6a 100755 --- a/includes/language/estonian.php +++ b/includes/language/estonian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file estonian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/french.php b/includes/language/french.php index 80f40c6a..88c18377 100755 --- a/includes/language/french.php +++ b/includes/language/french.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file french.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/german.php b/includes/language/german.php index 5137fd62..b7716bb2 100755 --- a/includes/language/german.php +++ b/includes/language/german.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file german.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/greek.php b/includes/language/greek.php index 17115e3e..b4cb1bf6 100755 --- a/includes/language/greek.php +++ b/includes/language/greek.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file greek.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/hungarian.php b/includes/language/hungarian.php index c6034ec6..febe08b4 100755 --- a/includes/language/hungarian.php +++ b/includes/language/hungarian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file hungarian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/italian.php b/includes/language/italian.php index e6cecb54..17c90e7b 100755 --- a/includes/language/italian.php +++ b/includes/language/italian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file italian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/japanese.php b/includes/language/japanese.php index 52402c81..2511964a 100755 --- a/includes/language/japanese.php +++ b/includes/language/japanese.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file japanese.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/norwegian.php b/includes/language/norwegian.php index df2c2aaa..a294588a 100755 --- a/includes/language/norwegian.php +++ b/includes/language/norwegian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file norwegian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/polish.php b/includes/language/polish.php index f1f4b3f9..740c82b7 100755 --- a/includes/language/polish.php +++ b/includes/language/polish.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file polish.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/portuguese.php b/includes/language/portuguese.php index 8416aebe..d5b89c25 100755 --- a/includes/language/portuguese.php +++ b/includes/language/portuguese.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file portuguese.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -63,35 +63,35 @@ return array( 'error' => 'Error caught', 'hosts' => 'Hosts', 'settings_ldap_hosts_tip' => 'The hosts option is an array of IP addresses or host names located on your network that serve an LDAP directory (seprated by a comma). You insert as many servers or as little as you would like depending on your forest (with the minimum of one of course).', 'base_distiguished_name' => 'Base DN', 'settings_ldap_bdn_tip' => 'The root distinguished name (DN) to use when running queries against the directory server. Examples: o=example,c=com ; cn=users,dc=ad,dc=example,dc=com', - 'username' => 'Username', + 'username' => 'Utilizador', 'settings_ldap_username_tip' => 'The distinguished name of the user that the application will use when connecting to the directory server. Examples: cn=administrator,cn=users,dc=ad,dc=example,dc=com ; cn=user,dc=domain,dc=name', - 'settings_ldap_password_tip' => 'The password of the user specified above.', + 'settings_ldap_password_tip' => 'A palavra-passe do utilizador especificado acima.', 'settings_ldap_port_tip' => 'Default non secure LDAP port: 389, default secure LDAP port: 636', - 'undefined' => 'Undefined', - 'error_cannot_open_file' => 'File cannot be opened', + 'undefined' => 'Indefinido', + 'error_cannot_open_file' => 'O ficheiro não pode ser aberto', 'provide_current_psk_and_click_launch' => 'When ready, click button Launch', - 'start' => 'Start', + 'start' => 'Iniciar', 'data_inconsistency' => 'Data inconsistency found. Please reload the page!', 'one_time_code_expected' => 'One-Time-Code expected', 'data_are_missing' => 'Expected data are missing', 'one_time_code' => 'One-Time-Code', 'provide_personal_one_time_code' => 'Please provide the One-Time-Code you received by email', 'change_authentification_type_to_ldap' => 'Change authentication type to LDAP', 'change_authentification_type_to_local' => 'Change authentication type to Teampass local database', 'ldap_user_password_is_used_for_authentication' => 'User password in LDAP is used for authentication', 'local_user_password_is_used_for_authentication' => 'User password in Teampass is used for authentication', 'provide_your_current_password' => 'Provide your current password', - 'current_password' => 'Current password', - 'password_is_not_correct' => 'This password is not correct', + 'current_password' => 'Palavra-passe atual', + 'password_is_not_correct' => 'Esta palavra-passe não é a correta', 'ldap_password_change_warning' => 'Your login password has changed since last connection. It is requested to re-encrypt all the keys using this new password. For this operation, please fill in the next field with your previous ldap password. The operation can take several minutes.', - 'personal_items' => 'Personal items', + 'personal_items' => 'Itens pessoais', 'logout_on_going' => 'You will now be logout. Use your new password for being connected from now.', 'fill_in_fields_and_hit_launch' => 'Provide expected data and hit Launch button', - 'please_select_a_folder' => 'Please select a folder', + 'please_select_a_folder' => 'Por favor seleccione uma pasta', 'user_must_have_login_and_email' => 'User must have a login and an email', 'user_has_this_role_in_teampass' => 'O utilizador tem esta função no Teampass', 'select_role_to_create' => 'Seleccione função a criar', 'adding_ldap_role_to_teampass' => 'Pode decidir criar uma função no Teampass a partir da Active Directory. Isto vai permitir associar o utilizador a esta função no Teampass.', 'add_user_to_role' => 'Adicione esta função ao utilizador no Teampass', @@ -99,18 +99,18 @@ return array( 'synchronized' => 'Synchronized', 'output' => 'Output', 'remove_install_folder' => 'Install folder has to be removed', 'list_users' => 'List users', 'ldap_synchronization' => 'LDAP synchronization', - 'in_progress' => 'In progress', + 'in_progress' => 'Em progresso', 'clipboard_password_life_duration' => 'Delay before the clipboard is cleared (in seconds)', 'clipboard_password_life_duration_tip' => 'Permits to define a delay in seconds before which the password copied in clipboard will be cleared from the browser clipboard. Set to 0 to disable.', 'clipboard_will_be_cleared' => 'Password is now in clipboard. It will soon be cleared...', 'file_folder_not_accessible' => 'Files folder is not accessible', 'error_missing_id' => 'An error occurred. Missing ID ... ?', 'error_folder_not_allowed' => 'Selected folder is not allowed', - 'all_fields_mandatory' => 'All fields are mandatory', + 'all_fields_mandatory' => 'Todos os campos são obrigatórios', 'history_insert_entry' => 'Insert in History', 'clear_form' => 'Clear form', 'info_about_history_insertion' => 'Caution - This feature permits you to insert manually an event in the item history log. Once added it will not be possible to remove it. Also notice that your account id will be associated to this new entry.', 'select_all' => 'Selecionar todos', 'unselect_all' => 'Unselect all', @@ -124,18 +124,18 @@ return array( 'loading_data' => 'Loading data', 'password_overview_delay' => 'Delay for password overview', 'password_overview_delay_tip' => 'This setting permits to define the number of seconds the clear password will be displayed to the user.', 'select_date_showing_items_expiration' => 'List the expired items at date', 'renewal_page_info' => 'This page permits to identify the items currently expired or expiring in next period.', - 'filename' => 'Filename', - 'exported_to_file' => 'Exported to file', - 'operation_progress' => 'Operation is in progress', - 'exporting_items' => 'Exporting items', - 'select_folders_to_export' => 'Select folders to export', - 'export_format_type' => 'Select the export format type', - 'export_items' => 'Export items', - 'loading_item' => 'Loading item', + 'filename' => 'Nome do ficheiro', + 'exported_to_file' => 'Exportado para ficheiro', + 'operation_progress' => 'A operação está em progresso', + 'exporting_items' => 'A exportar itens', + 'select_folders_to_export' => 'Seleccione pastas para exportar', + 'export_format_type' => 'Seleccione o formato de exportação', + 'export_items' => 'Exportar itens', + 'loading_item' => 'A carregar item', 'otv_message' => 'You can share this item with someone without a Teampass account. One-Time-View permits your guest to access basic fields of this item only once without being authenticated in Teampass. Please notice that this link is valid for a period of ##otv_expiration_period## days. Copy and share the link below.', 'no_sharekey_found' => 'No key found for this file and your account', 'otv_link' => 'One-time-view link', 'one_time_view' => 'One-time-view', 'move_right_columns_separator' => 'Move columns separator Right', @@ -497,11 +497,11 @@ return array( 'settings_item_extra_fields_tip' => 'Enables another tab when creating password items, which contains custom fields for other types of data. An administrator must first create categories and the custom field labels to be displayed in those categories. This feature consumes more server resources.', 'settings_ldap_type' => 'LDAP server type', 'server_time' => 'Server time', 'settings_tree_counters' => 'Show more counters in folder tree', 'settings_tree_counters_tip' => 'Enabling shows three numbers next to each folder: number of items in base folder; number of items including subfolders; number of subfolders. Enabling this feature may slow loading of the folder tree pane.', - 'admin_action_check_pf' => 'Criar pastas pessoas para todos os utilizadores que não têm', + 'admin_action_check_pf' => 'Criar pastas pessoas para todos os utilizadores que não as têm', 'enable_personal_folder_feature_tip' => 'Personal folders are a private location for individual user passwords. Password items are encrypted by a user\'s salt key (more secure) or by their password (easier). Enabling this feature does not create the actual folders for existing users - you must also run the create personal folders task.', 'administrators_only' => 'Administrators only', 'managers_of' => 'Gestores da função', 'managed_by' => 'Managed by', 'settings_enable_sts' => 'HTTPS Strict Transport Security (HSTS) <strong>Warning</strong>: read tooltip!', @@ -722,11 +722,11 @@ return array( 'last_items_title' => 'Ultimo item visto', 'ldap_extension_not_loaded' => 'A extensão LDAP não esta ativado no servidor', 'level' => 'Nivel', 'login' => 'Login (se necessário)', 'mask_pw' => 'Oculta/Mostra a senha', - 'max_last_items' => 'Maximo de últimos itens visto por um usuários (Padrão é 10)', + 'max_last_items' => 'Tamanho da lista dos últimos itens vistos (padrão é 10)', 'minutes' => 'minutos', 'name' => 'Nome', 'nb_false_login_attempts' => 'Número de tentativas de login sem sucesso para bloquear a conta (0 é desativado)', 'nb_folders' => 'Número da pastas', 'nb_items' => 'Número de itens', @@ -735,18 +735,18 @@ return array( 'none' => 'Nenhum', 'none_selected_text' => 'Nenhum selecionado', 'not_allowed_to_see_pw' => 'Você não esta autorizado a ver este item!', 'not_allowed_to_see_pw_is_expired' => 'Este item esta expirado', 'not_defined' => 'Não definido', - 'number_of_used_pw' => 'Número de novas senhas que o usuário precisa ingressar antes de usar uma senha antiga', + 'number_of_used_pw' => 'Número de palavras-passe antigas guardadas para evitar reutilização (0 para desativar)', 'pages' => 'Paginas', 'pdf_download' => 'Dowload do arquivo', 'personal_salt_key' => 'Sua senha pessoal \'SALT KEY\'', 'pw' => 'Senha', 'pw_generate' => 'Gera', 'pw_is_expired_-_update_it' => 'Este item expirou! Precisa alterar a senha.', - 'pw_life_duration' => 'Vida útil da senha de um usuário para expirar (em dia, 0 para desativar)', + 'pw_life_duration' => 'Palavras-passe de sessão expiram ao fim de xx dias (0 para desativar)', 'readme_open' => 'Abrir o arquivo README completo', 'read_only_account' => 'Somente Leitura', 'restore' => 'Recuperar', 'restricted_to' => 'Restrito para', 'restricted_to_roles' => 'Ativa itens restritos para funções e utilizadores', @@ -765,11 +765,11 @@ return array( 'settings_ldap_mode' => 'Ativa autenticação dos utilizadores por LDAP', 'settings_ldap_mode_tip' => 'Ativar apenas se quiser usar um servidor LDAP em vez da base de dados interna do Teampass.', 'settings_ldap_ssl' => 'Usar SSL (LDAPS)', 'settings_ldap_tls' => 'Use LDAP a traves de TLS', 'settings_log_accessed' => 'Ativa registros de quem acessou aos itens', - 'settings_log_connections' => 'Guarda todos os inícios de sessão', + 'settings_log_connections' => 'Guarda registo de todos os inícios de sessão', 'settings_maintenance_mode' => 'Coloca TeamPass em modo de manutenção', 'settings_manager_edit' => 'Os Gerenciadores podem editar e apagar itens que estão autorizados a ver', 'settings_printing' => 'Habilita a opção de imprimir arquivos PDF', 'settings_printing_tip' => 'Quando ativado, um botão será adicionado à página home do usuário que permita que ele / ela escrever uma lista de itens para um arquivo PDF ele / ela pode ver. Observe que as senhas serão listados DESCRIPTOGRAFADAS. (não é seguro ativar)', 'settings_restricted_to' => 'Habilita funções restritas para os itens', diff --git a/includes/language/portuguese_br.php b/includes/language/portuguese_br.php index 184540e3..a4af6eaf 100755 --- a/includes/language/portuguese_br.php +++ b/includes/language/portuguese_br.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file portuguese_br.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/romanian.php b/includes/language/romanian.php index c407889b..b546895e 100755 --- a/includes/language/romanian.php +++ b/includes/language/romanian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file romanian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/russian.php b/includes/language/russian.php index f6a2df46..c294ee60 100755 --- a/includes/language/russian.php +++ b/includes/language/russian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file russian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/spanish.php b/includes/language/spanish.php index e7f05a5b..9a708015 100755 --- a/includes/language/spanish.php +++ b/includes/language/spanish.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file spanish.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -445,11 +445,11 @@ return array( 'admin_ga_website_name' => 'Nombre mostrado en Google Authenticator para Teampass', 'admin_ga_website_name_tip' => 'Este nombre se utiliza para la cuenta de código de identificación en Google Authenticator.', 'api_whitelist_ips' => 'Lista blanca de IPs de la API', 'api_whitelist_ips_tip' => 'Si no hay direcciones IP de clientes de la API enumeradas explícitamente aquí, cualquier dirección IP está autorizada.', 'email_share_item_subject' => '[TeamPass] Un elemento ha sido compartido con usted', - 'email_share_item_mail' => 'Hola,&lt;br&gt;&lt;br&gt;&lt;u&gt;#tp_user#&lt;/u&gt; ha compartido con usted el elemento &lt;b&gt;#tp_item#&lt;/b&gt;&lt;br&gt;Pulse &lt;a href=\'#tp_link#\'&gt;aquí&lt;/a&gt; para acceder.&lt;br&gt;&lt;br&gt;Saludos.', + 'email_share_item_mail' => 'Hola,&lt;br&gt;&lt;br&gt;&lt;u&gt;#tp_user#&lt;/u&gt; ha compartido con usted el elemento &lt;b&gt;#tp_item#&lt;/b&gt;&lt;br&gt;Pulse &lt;a href="#tp_link#"&gt;aquí&lt;/a&gt; para acceder.&lt;br&gt;&lt;br&gt;Saludos.', 'index_maintenance_mode_admin' => 'Modo de mantenimiento activado. En este momento los usuarios no pueden acceder a TeamPass.', '2fa_authentication_selector' => 'Select a 2 factor authenticator method', 'upload_empty_file' => 'Upload empty file', 'upload_any_extension_file' => 'Upload any extension file', 'upload_any_extension_file_tip' => 'When enabled, this option will allow users to upload any kind of files.', diff --git a/includes/language/swedish.php b/includes/language/swedish.php index 4b6dfea4..35628e1e 100755 --- a/includes/language/swedish.php +++ b/includes/language/swedish.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file swedish.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -445,11 +445,11 @@ return array( 'admin_ga_website_name' => 'Name displayed in Google 2-step Verification for Teampass', 'admin_ga_website_name_tip' => 'This name is used for the identification code account in Google 2-step Verification.', 'api_whitelist_ips' => 'API IPs Whitelist', 'api_whitelist_ips_tip' => 'If no API client IP addresses are explicitly listed here, then any IP address is authorized.', 'email_share_item_subject' => 'A password item was shared with you', - 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href=\'#tp_link#\'>Click this link</a> to access the item.<br><br><br>Greetings', + 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href="#tp_link#">Click this link</a> to access the item.<br><br><br>Greetings', 'index_maintenance_mode_admin' => 'Maintenance mode is enabled. Users cannot sign in.', '2fa_authentication_selector' => 'Select a 2 factor authentication method', 'upload_empty_file' => 'Upload empty file', 'upload_any_extension_file' => 'Upload any extension file', 'upload_any_extension_file_tip' => 'When enabled, this option will allow users to upload any kind of files.', diff --git a/includes/language/turkish.php b/includes/language/turkish.php index 140e4e57..eb41100e 100755 --- a/includes/language/turkish.php +++ b/includes/language/turkish.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file turkish.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/ukrainian.php b/includes/language/ukrainian.php index 88944356..11a7208d 100755 --- a/includes/language/ukrainian.php +++ b/includes/language/ukrainian.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file ukrainian.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/includes/language/vietnamese.php b/includes/language/vietnamese.php index bbec2416..0470d9bf 100755 --- a/includes/language/vietnamese.php +++ b/includes/language/vietnamese.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file vietnamese.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/index.php b/index.php index ac9d1377..537437f5 100755 --- a/index.php +++ b/index.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file index.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/install/install.php b/install/install.php index 45b79406..f1a361fb 100755 --- a/install/install.php +++ b/install/install.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file install.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -285,11 +285,11 @@ define('MIN_PHP_VERSION', 7.4); <div class="form-group"> <label>Absolute path to SaltKey</label> <input type="text" class="form-control" name="sk_path" id="sk_path" class="ui-widget" value=""><span id="res4_check2"></span> <small class="form-text text-muted"> - The SaltKey is stored in a file called teampass-seckey.txt. For security reasons, this file should be stored in a folder outside the WWW folder of your server (example: /var/teampass/). This key will be used to encrypt data when sharing information with users without any Teampass account. If this field remains empty, this file will be stored in folder <path to Teampass>/includes/. + The SaltKey is stored in a file called teampass-seckey.txt and hashed for security purpose. For security reasons, this file should be stored in a folder outside the WWW folder of your server (example: /var/teampass/). This key will be used to encrypt data when sharing information with users without any Teampass account. If this field remains empty, this file will be stored in folder <path to Teampass>/includes/. </small> </div> <div class="form-group"> <label>Teampass Administrator password</label> diff --git a/install/install.queries.php b/install/install.queries.php index 968d0b72..1635aca9 100755 --- a/install/install.queries.php +++ b/install/install.queries.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file install.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -1348,11 +1348,12 @@ $SETTINGS = array ('; if ($activity === 'file') { if ($task === 'settings.php') { // first is to create teampass-seckey.txt // 0- check if exists - $filename_seckey = $securePath . '/teampass-seckey.txt'; + define('SECUREFILE', generateRandomKey(25)); + $filename_seckey = $securePath . '/' . SECUREFILE; if (file_exists($filename_seckey)) { if (!copy($filename_seckey, $filename_seckey . '.' . date('Y_m_d', mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y'))))) { echo '[{"error" : "File `$filename_seckey` already exists and cannot be renamed. Please do it by yourself and click on button Launch.", "result":"", "index" : "' . $post_index . '", "multiple" : "' . $post_multiple . '"}]'; break; @@ -1422,10 +1423,11 @@ define("DB_SSL", array( )); define("DB_CONNECT_OPTIONS", array( MYSQLI_OPT_CONNECT_TIMEOUT => 10 )); define("SECUREPATH", "' . $securePath . '"); +define("SECUREFILE", "' . SECUREFILE. '"); if (isset($_SESSION[\'settings\'][\'timezone\']) === true) { date_default_timezone_set($_SESSION[\'settings\'][\'timezone\']); } ' diff --git a/install/migrate_users_to_v3.php b/install/migrate_users_to_v3.php index fa534e6c..49d85f1c 100755 --- a/install/migrate_users_to_v3.php +++ b/install/migrate_users_to_v3.php @@ -6,11 +6,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file migrate_users_to_v3.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/tp.functions.php b/install/tp.functions.php old mode 100755 new mode 100644 index a8b28f8b..b32de31c --- a/install/tp.functions.php +++ b/install/tp.functions.php @@ -1,7 +1,93 @@ <?php +// new SECUREFILE - 3.0.0.23 +function handleSecurefileConstant() +{ + if (defined('SECUREFILE') === false) { + define('SECUREFILE', generateRandomKey(25)); + + // manage the file itself by renaming it + if (rename(SECUREPATH.'/teampass-seckey.txt', SECUREPATH.'/'.SECUREFILE) === false) { + echo '[{ + "error" : "File `'.SECUREPATH.'/teampass-seckey.txt` could not be renamed. Please do it by yourself and click on button Launch.", + "index" : "" + }]'; + exit; + } + + // Ensure DB is read as UTF8 + if (defined('DB_ENCODING') === false) { + define('DB_ENCODING', "utf8"); + } + + // Now create new file + $file_handled = fopen('../includes/config/settings.php', 'w'); + + $settingsTxt = '<?php +// DATABASE connexion parameters +define("DB_HOST", "' . DB_HOST . '"); +define("DB_USER", "' . DB_USER . '"); +define("DB_PASSWD", "' . DB_PASSWD . '"); +define("DB_NAME", "' . DB_NAME . '"); +define("DB_PREFIX", "' . DB_PREFIX . '"); +define("DB_PORT", "' . DB_PORT . '"); +define("DB_ENCODING", "' . DB_ENCODING . '"); +define("DB_SSL", array( + "key" => "'.DB_SSL['key'].'", + "cert" => "'.DB_SSL['cert'].'", + "ca_cert" => ""'.DB_SSL['ca_cert'].', + "ca_path" => "'.DB_SSL['ca_path'].'", + "cipher" => "'.DB_SSL['cipher'].'" +)); +define("DB_CONNECT_OPTIONS", array( + MYSQLI_OPT_CONNECT_TIMEOUT => 10 +)); +define("SECUREPATH", "' . str_replace('\\', '\\\\', SECUREPATH) . '"); +define("SECUREFILE", "' . SECUREFILE. '");'; + + if (defined('IKEY') === true) $settingsTxt .= ' +define("IKEY", "' . IKEY . '");'; + else $settingsTxt .= ' +define("IKEY", "");'; + if (defined('SKEY') === true) $settingsTxt .= ' +define("SKEY", "' . SKEY . '");'; + else $settingsTxt .= ' +define("SKEY", "");'; + if (defined('HOST') === true) $settingsTxt .= ' +define("HOST", "' . HOST . '");'; + else $settingsTxt .= ' +define("HOST", "");'; + + + $settingsTxt .= ' + +if (isset($_SESSION[\'settings\'][\'timezone\']) === true) { + date_default_timezone_set($_SESSION[\'settings\'][\'timezone\']); +} +'; + + $fileCreation = fwrite( + $file_handled, + utf8_encode($settingsTxt) + ); + + fclose($file_handled); + sleep(3); + if ($fileCreation === false) { + return [ + 'error' => true, + 'message' => 'Setting.php file could not be created in /includes/config/ folder. Please check the path and the rights.', + ]; + } + + return [ + 'error' => false, + 'message' => '' + ]; + } +} /** * Undocumented function * * @param string $message Message @@ -35,11 +121,12 @@ function defuseCryption($message, $ascii_key, $type) include_once '../includes/config/settings.php'; // init $err = ''; if (empty($ascii_key) === true) { - $ascii_key = file_get_contents(SECUREPATH.'/teampass-seckey.txt'); + // new check - 3.0.0.23 + $ascii_key = file_get_contents(SECUREPATH.'/'.SECUREFILE); } // convert KEY $key = \Defuse\Crypto\Key::loadFromAsciiSafeString($ascii_key); diff --git a/install/upgrade.php b/install/upgrade.php index e785673b..b0796495 100755 --- a/install/upgrade.php +++ b/install/upgrade.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/upgrade_ajax.php b/install/upgrade_ajax.php old mode 100755 new mode 100644 index 13f37c0d..613bf51e --- a/install/upgrade_ajax.php +++ b/install/upgrade_ajax.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_ajax.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -173,10 +173,11 @@ define("DB_SSL", array( )); define("DB_CONNECT_OPTIONS", array( MYSQLI_OPT_CONNECT_TIMEOUT => 10 )); define("SECUREPATH", "' . str_replace('\\', '\\\\', SECUREPATH) . '");'; +define("SECUREFILE", "' . SECUREFILE. '"); if (defined('IKEY') === true) $settingsTxt .= ' define("IKEY", "' . IKEY . '");'; else $settingsTxt .= ' define("IKEY", "");'; @@ -219,10 +220,11 @@ if (isset($_SESSION[\'settings\'][\'timezone\']) === true) { define("DB_PORT", "' . $port . '"); define("DB_ENCODING", "' . $encoding . '"); } } + // Test DB connexion $pass = defuse_return_decrypted(DB_PASSWD); $server = DB_HOST; $pre = DB_PREFIX; $database = DB_NAME; @@ -850,21 +852,10 @@ if (isset($post_type)) { )); } // Manage saltkey.txt file if (empty($post_sk_path) === false || defined('SECUREPATH') === true) { - /* - $filename = (empty($post_sk_path) === false ? $post_sk_path : SECUREPATH).'/teampass-seckey.txt'; - if (file_exists($filename)) { - $newfile = str_replace('teampass-seckey.txt', time()); - rename($filename, $newfile); - unlink($filename); - echo '$("#step5_saltkeyFile").html("<i class=\"fa-solid fa-circle-check fa-lg text-success ml-2 mr-2\"></i><span class=\"text-info font-italic\">You can remove file '.$newfile.'</span>");'; - } else { - echo '$("#step5_saltkeyFile").html("<i class=\"fa-solid fa-circle-check fa-lg text-success ml-2 mr-2\"></i><span class=\"text-info font-italic\">Nothing done</span>");'; - } - */ array_push( $returnStatus, array( 'id' => 'step5_saltkeyFile', 'html' => '<i class="fa-solid fa-circle-check fa-lg text-success ml-2 mr-2"></i><span class="text-info font-italic">Nothing done</span>', diff --git a/install/upgrade_run_3.0.0.php b/install/upgrade_run_3.0.0.php old mode 100755 new mode 100644 index 586e3be7..04f51ea2 --- a/install/upgrade_run_3.0.0.php +++ b/install/upgrade_run_3.0.0.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -33,10 +33,19 @@ require_once '../includes/config/settings.php'; require_once '../sources/main.functions.php'; require_once '../includes/libraries/Tree/NestedTree/NestedTree.php'; require_once 'tp.functions.php'; require_once 'libs/aesctr.php'; require_once '../includes/config/tp.config.php'; + +// 3.0.0.23 +$ret = handleSecurefileConstant(); +if ($ret['error'] === true) { + echo '[{"finish":"1", "msg":"", "error":"'.$ret['message'].'"}]'; + exit(); +} + +// Get the encrypted password define('DB_PASSWD_CLEAR', defuse_return_decrypted(DB_PASSWD)); //Build tree $tree = new Tree\NestedTree\NestedTree( $pre . 'nested_tree', @@ -74,10 +83,12 @@ if (mysqli_connect( mysqli_close($db_link); exit(); } + + // Load libraries require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; $superGlobal = new protect\SuperGlobal\SuperGlobal(); // Set Session diff --git a/install/upgrade_run_3.0.0_fields.php b/install/upgrade_run_3.0.0_fields.php index 8440887b..3788c0cb 100755 --- a/install/upgrade_run_3.0.0_fields.php +++ b/install/upgrade_run_3.0.0_fields.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0_fields.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/upgrade_run_3.0.0_files.php b/install/upgrade_run_3.0.0_files.php index 3f83d8db..328a2094 100755 --- a/install/upgrade_run_3.0.0_files.php +++ b/install/upgrade_run_3.0.0_files.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0_files.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -147,23 +147,12 @@ while ($file_info = mysqli_fetch_array($rows)) { // Check if is file if (is_file($SETTINGS['path_to_upload_folder'].'/'.$file_info['file']) === true) { // Is this file encrypted? // Force all files to be encrypted if ($file_info['status'] === 'encrypted') { - // load PhpEncryption library - /*include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Crypto.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Encoding.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'DerivedKeys.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Key.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'KeyOrPassword.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'File.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'RuntimeTests.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'KeyProtectedByPassword.php'; - include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Core.php';*/ - // get KEY - $ascii_key = file_get_contents(SECUREPATH.'/teampass-seckey.txt'); + $ascii_key = file_get_contents(SECUREPATH.'/'.SECUREFILE); // Now decrypt the file $err = ''; try { \Defuse\Crypto\File::decryptFile( diff --git a/install/upgrade_run_3.0.0_logs.php b/install/upgrade_run_3.0.0_logs.php index e1a8b760..230b4247 100755 --- a/install/upgrade_run_3.0.0_logs.php +++ b/install/upgrade_run_3.0.0_logs.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0_logs.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/upgrade_run_3.0.0_passwords.php b/install/upgrade_run_3.0.0_passwords.php index e56691a9..92bd65c2 100755 --- a/install/upgrade_run_3.0.0_passwords.php +++ b/install/upgrade_run_3.0.0_passwords.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0_passwords.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/upgrade_run_3.0.0_suggestions.php b/install/upgrade_run_3.0.0_suggestions.php index e34dd277..f21a989e 100755 --- a/install/upgrade_run_3.0.0_suggestions.php +++ b/install/upgrade_run_3.0.0_suggestions.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0_suggestions.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/upgrade_run_3.0.0_users.php b/install/upgrade_run_3.0.0_users.php index d647e7c1..29e06a76 100755 --- a/install/upgrade_run_3.0.0_users.php +++ b/install/upgrade_run_3.0.0_users.php @@ -6,11 +6,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_run_3.0.0_users.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/install/upgrade_scripts_manager.php b/install/upgrade_scripts_manager.php index 3aed077a..b4dd1987 100755 --- a/install/upgrade_scripts_manager.php +++ b/install/upgrade_scripts_manager.php @@ -5,11 +5,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upgrade_scripts_manager.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/pages/2fa.js.php b/pages/2fa.js.php index 493d84ee..36f97273 100755 --- a/pages/2fa.js.php +++ b/pages/2fa.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file 2fa.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/2fa.php b/pages/2fa.php index a01d5898..fb5d29a7 100755 --- a/pages/2fa.php +++ b/pages/2fa.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file 2fa.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/actions.js.php b/pages/actions.js.php index f89b127f..04645bbc 100755 --- a/pages/actions.js.php +++ b/pages/actions.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file actions.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/actions.php b/pages/actions.php index d5a3320c..2b10ac30 100755 --- a/pages/actions.php +++ b/pages/actions.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file actions.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/admin.js.php b/pages/admin.js.php index 6dae8e98..e55a6fda 100755 --- a/pages/admin.js.php +++ b/pages/admin.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file admin.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/admin.php b/pages/admin.php index 39d90fcb..75a6756d 100755 --- a/pages/admin.php +++ b/pages/admin.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file admin.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/api.js.php b/pages/api.js.php index a1098fa9..50ca683e 100755 --- a/pages/api.js.php +++ b/pages/api.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file api.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/api.php b/pages/api.php index 9e96788a..8efd8edc 100755 --- a/pages/api.php +++ b/pages/api.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file api.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/backups.js.php b/pages/backups.js.php index f73efd1c..7f8f71f4 100755 --- a/pages/backups.js.php +++ b/pages/backups.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file backups.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/backups.php b/pages/backups.php index 7b215022..d38ac00b 100755 --- a/pages/backups.php +++ b/pages/backups.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file backups.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/emails.js.php b/pages/emails.js.php index 1d4a599f..463a5747 100755 --- a/pages/emails.js.php +++ b/pages/emails.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file emails.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/emails.php b/pages/emails.php index 25096331..98884865 100755 --- a/pages/emails.php +++ b/pages/emails.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file emails.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/export.js.php b/pages/export.js.php index 86765860..b665744c 100755 --- a/pages/export.js.php +++ b/pages/export.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file export.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/export.php b/pages/export.php index 60ed3588..ae5dc327 100755 --- a/pages/export.php +++ b/pages/export.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file export.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/favorites.js.php b/pages/favorites.js.php index 711a2033..1d33c912 100755 --- a/pages/favorites.js.php +++ b/pages/favorites.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file favorites.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/favourites.php b/pages/favourites.php index 014e597c..487fcb51 100755 --- a/pages/favourites.php +++ b/pages/favourites.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file favourites.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/fields.js.php b/pages/fields.js.php index a252b542..12e16885 100755 --- a/pages/fields.js.php +++ b/pages/fields.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file fields.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/fields.php b/pages/fields.php index 5c32057e..0b8e3ed4 100755 --- a/pages/fields.php +++ b/pages/fields.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file fields.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/folders.js.php b/pages/folders.js.php index 43e2586d..f86bb7af 100755 --- a/pages/folders.js.php +++ b/pages/folders.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file folders.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/folders.php b/pages/folders.php index d00e9e1c..4ab32164 100755 --- a/pages/folders.php +++ b/pages/folders.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file folders.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/import.js.php b/pages/import.js.php index 5f7e2e57..338a2c55 100755 --- a/pages/import.js.php +++ b/pages/import.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file import.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/import.php b/pages/import.php index 79783bdd..f8c7b7e8 100755 --- a/pages/import.php +++ b/pages/import.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file import.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/items.js.php b/pages/items.js.php index f5550650..d878e21e 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file items.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * @@ -4114,26 +4114,47 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- prepareFolderDragNDrop(); } } + function checkAccess(itemId, treeId, userId) + { + var data = { + 'itemId': parseInt(itemId), + 'treeId': parseInt(treeId), + 'userId': parseInt(userId), + }; + + //Send query + $.post( + 'sources/items.queries.php', { + type: 'check_current_access_rights', + data: prepareExchangedData(JSON.stringify(data), 'encode', '<?php echo $_SESSION['key']; ?>'), + key: '<?php echo $_SESSION['key']; ?>' + }, + function(data) { + //decrypt data + data = decodeQueryReturn(data, '<?php echo $_SESSION['key']; ?>', 'items.queries.php', 'show_details_item'); + requestRunning = true; + if (debugJavascript === true) { + console.log("DEBUG: checkAccess"); + console.log(data); + } + + + return false; + } + ); + } /** * */ function Details(itemDefinition, actionType, hotlink = false) { if (debugJavascript === true) console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- ') - // Store current view - savePreviousView(); - - if (debugJavascript === true) console.log("Request is running: " + requestRunning) - - // Store status query running - requestRunning = true; - // Init if (hotlink === false) { var itemId = parseInt($(itemDefinition).data('item-id')) || ''; var itemTreeId = parseInt($(itemDefinition).data('item-tree-id')) || ''; var itemSk = parseInt($(itemDefinition).data('item-sk')) || 0; @@ -4153,10 +4174,32 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- var itemOpenEdit = 0; var itemReload = 0; var itemRights = parseInt($(itemDefinition).data('item-rights')) || 10; } + // check if user still has access + if (checkAccess(itemId, itemTreeId, <?php echo $_SESSION['user_id']; ?>) === false) { + toastr.remove(); + toastr.warning( + '<?php echo langHdl('no_item_to_display'); ?>', + '', { + timeOut: 5000, + progressBar: true + } + ); + + // Finished + return false; + } + + // Store current view + savePreviousView(); + + if (debugJavascript === true) console.log("Request is running: " + requestRunning) + + // Store status query running + requestRunning = true; userDidAChange = false; // Select tab#1 $('#form-item-nav-pills li:first-child a').tab('show'); diff --git a/pages/items.php b/pages/items.php index 03f6a469..aafb7603 100755 --- a/pages/items.php +++ b/pages/items.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file items.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/kb.php b/pages/kb.php index 49ca141d..49b43af6 100755 --- a/pages/kb.php +++ b/pages/kb.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file kb.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/ldap.js.php b/pages/ldap.js.php index 3f8f4495..a5b21387 100755 --- a/pages/ldap.js.php +++ b/pages/ldap.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file ldap.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/ldap.php b/pages/ldap.php index 8848af5c..64bdf211 100755 --- a/pages/ldap.php +++ b/pages/ldap.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file ldap.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/offline.js.php b/pages/offline.js.php index e9b52c8d..555463ab 100755 --- a/pages/offline.js.php +++ b/pages/offline.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file offline.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/offline.php b/pages/offline.php index 571cd1aa..3c1da73a 100755 --- a/pages/offline.php +++ b/pages/offline.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file offline.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/options.js.php b/pages/options.js.php index 437b80ea..f5f0c9d5 100755 --- a/pages/options.js.php +++ b/pages/options.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file options.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/options.php b/pages/options.php index dd8ae759..162c287e 100755 --- a/pages/options.php +++ b/pages/options.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file options.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/profile.js.php b/pages/profile.js.php index c65c3baf..a37c3324 100755 --- a/pages/profile.js.php +++ b/pages/profile.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file profile.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/profile.php b/pages/profile.php index 13a3f4ea..ecab712d 100755 --- a/pages/profile.php +++ b/pages/profile.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file profile.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/roles.js.php b/pages/roles.js.php index d625fc43..ac6e42e3 100755 --- a/pages/roles.js.php +++ b/pages/roles.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file roles.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/roles.php b/pages/roles.php index 20413c8b..f4aaaf10 100755 --- a/pages/roles.php +++ b/pages/roles.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file roles.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/search.js.php b/pages/search.js.php index 3956c114..d4ca87a8 100755 --- a/pages/search.js.php +++ b/pages/search.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * * @file search.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) diff --git a/pages/search.php b/pages/search.php index 637e2e65..01139a6f 100755 --- a/pages/search.php +++ b/pages/search.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file search.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/special.php b/pages/special.php index 24f2656e..10a2acb9 100755 --- a/pages/special.php +++ b/pages/special.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file special.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/statistics.js.php b/pages/statistics.js.php index bdb2277b..eb7876d5 100755 --- a/pages/statistics.js.php +++ b/pages/statistics.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file statistics.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/statistics.php b/pages/statistics.php index a0badbbd..31c00f45 100755 --- a/pages/statistics.php +++ b/pages/statistics.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file statistics.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/suggestion.php b/pages/suggestion.php index f0b6cc24..8fd51170 100755 --- a/pages/suggestion.php +++ b/pages/suggestion.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file suggestion.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/tasks.js.php b/pages/tasks.js.php index 1c872497..63d1a403 100755 --- a/pages/tasks.js.php +++ b/pages/tasks.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file tasks.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/tasks.php b/pages/tasks.php index 373baceb..30899c01 100755 --- a/pages/tasks.php +++ b/pages/tasks.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file tasks.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/uploads.js.php b/pages/uploads.js.php index fa933d97..2380c7f5 100755 --- a/pages/uploads.js.php +++ b/pages/uploads.js.php @@ -6,11 +6,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file uploads.js.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/pages/uploads.php b/pages/uploads.php index f509d627..c5922bc3 100755 --- a/pages/uploads.php +++ b/pages/uploads.php @@ -6,11 +6,11 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file uploads.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/pages/users.js.php b/pages/users.js.php index bc33c1f2..e3281f72 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file users.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/users.php b/pages/users.php index ffde7895..8450d5d5 100755 --- a/pages/users.php +++ b/pages/users.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file users.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.database.js.php b/pages/utilities.database.js.php index d40f6422..7f170720 100755 --- a/pages/utilities.database.js.php +++ b/pages/utilities.database.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.database.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.database.php b/pages/utilities.database.php index 18277532..e6110633 100755 --- a/pages/utilities.database.php +++ b/pages/utilities.database.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.database.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.deletion.js.php b/pages/utilities.deletion.js.php index d95b9001..a98986f0 100755 --- a/pages/utilities.deletion.js.php +++ b/pages/utilities.deletion.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.deletion.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.deletion.php b/pages/utilities.deletion.php index db1a73ec..2c083f91 100755 --- a/pages/utilities.deletion.php +++ b/pages/utilities.deletion.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.deletion.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.logs.js.php b/pages/utilities.logs.js.php index fed8fee1..276de04c 100755 --- a/pages/utilities.logs.js.php +++ b/pages/utilities.logs.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.logs.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.logs.php b/pages/utilities.logs.php index 1efc8a13..03a9eb16 100755 --- a/pages/utilities.logs.php +++ b/pages/utilities.logs.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.logs.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.php b/pages/utilities.php index 11356c8d..7a404d73 100755 --- a/pages/utilities.php +++ b/pages/utilities.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.renewal.js.php b/pages/utilities.renewal.js.php index 057f1c8e..841c43ef 100755 --- a/pages/utilities.renewal.js.php +++ b/pages/utilities.renewal.js.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.renewal.js.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/pages/utilities.renewal.php b/pages/utilities.renewal.php index bfdb17d1..a474b32f 100755 --- a/pages/utilities.renewal.php +++ b/pages/utilities.renewal.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.renewal.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/admin.queries.php b/sources/admin.queries.php index 4c520c7b..74a70b35 100755 --- a/sources/admin.queries.php +++ b/sources/admin.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file admin.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -1046,11 +1046,11 @@ switch ($post_type) { */ case 'admin_action_change_salt_key___start': // Check KEY if ($post_key !== $_SESSION['key']) { echo prepareExchangedData( - $SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => true, 'message' => langHdl('key_is_not_correct'), ), 'encode' @@ -1058,11 +1058,11 @@ switch ($post_type) { break; } // Is admin? if ($_SESSION['is_admin'] === true) { echo prepareExchangedData( - $SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => true, 'message' => langHdl('error_not_allowed_to'), ), 'encode' @@ -1072,26 +1072,26 @@ switch ($post_type) { $error = ''; require_once 'main.functions.php'; // store old sk - $_SESSION['reencrypt_old_salt'] = file_get_contents(SECUREPATH . '/teampass-seckey.txt'); + $_SESSION['reencrypt_old_salt'] = file_get_contents(SECUREPATH.'/'.SECUREFILE); // generate new saltkey - $old_sk_filename = SECUREPATH . '/teampass-seckey.txt.' . date('Y_m_d', mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y'))) . '.' . time(); + $old_sk_filename = SECUREPATH.'/'.SECUREFILE . date('Y_m_d', mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y'))) . '.' . time(); copy( - SECUREPATH . '/teampass-seckey.txt', + SECUREPATH.'/'.SECUREFILE, $old_sk_filename ); $new_key = defuse_generate_key(); file_put_contents( - SECUREPATH . '/teampass-seckey.txt', + SECUREPATH.'/'.SECUREFILE, $new_key ); // store new sk - $_SESSION['reencrypt_new_salt'] = file_get_contents(SECUREPATH . '/teampass-seckey.txt'); + $_SESSION['reencrypt_new_salt'] = file_get_contents(SECUREPATH.'/'.SECUREFILE); //put tool in maintenance. DB::update( prefixTable('misc'), array( @@ -1590,11 +1590,11 @@ switch ($post_type) { 'admin' ); // Send back echo prepareExchangedData( - $SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => false, 'message' => '', 'nextAction' => 'done', ), @@ -1607,11 +1607,11 @@ switch ($post_type) { */ case 'admin_action_change_salt_key___restore_backup': // Check KEY if ($post_key !== $_SESSION['key']) { echo prepareExchangedData( - $SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => true, 'message' => langHdl('key_is_not_correct'), ), 'encode' @@ -1619,11 +1619,11 @@ switch ($post_type) { break; } // Is admin? if ($_SESSION['is_admin'] === true) { echo prepareExchangedData( - $SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => true, 'message' => langHdl('error_not_allowed_to'), ), 'encode' @@ -1658,23 +1658,23 @@ switch ($post_type) { } } // restore saltkey file if (file_exists($previous_saltkey_filename)) { - unlink(SECUREPATH . '/teampass-seckey.txt'); + unlink(SECUREPATH.'/'.SECUREFILE); rename( $previous_saltkey_filename, - SECUREPATH . '/teampass-seckey.txt' + SECUREPATH.'/'.SECUREFILE ); } // drop table DB::query('DROP TABLE IF EXISTS ' . prefixTable('sk_reencrypt_backup')); // Send back echo prepareExchangedData( - $SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => false, 'message' => '', ), 'encode' diff --git a/sources/aes.functions.php b/sources/aes.functions.php index f97665e0..0bdd722a 100755 --- a/sources/aes.functions.php +++ b/sources/aes.functions.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file aes.functions.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/background.php b/sources/background.php index 7114c619..bf8e729a 100755 --- a/sources/background.php +++ b/sources/background.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file users.background.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/backups.queries.php b/sources/backups.queries.php index c35ffc2c..ccf79ec6 100755 --- a/sources/backups.queries.php +++ b/sources/backups.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file backups.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/checks.php b/sources/checks.php index 2977b131..a46c7f13 100755 --- a/sources/checks.php +++ b/sources/checks.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file checks.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/core.php b/sources/core.php index f2efb7e4..9fcfa051 100755 --- a/sources/core.php +++ b/sources/core.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file core.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/downloadFile.php b/sources/downloadFile.php index 8688cf8c..13b0ab82 100755 --- a/sources/downloadFile.php +++ b/sources/downloadFile.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file downloadFile.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/expired.datatables.php b/sources/expired.datatables.php index ac918b81..d9239b01 100755 --- a/sources/expired.datatables.php +++ b/sources/expired.datatables.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file expired.datatables.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/export.queries.php b/sources/export.queries.php index f419a57a..16a768a4 100755 --- a/sources/export.queries.php +++ b/sources/export.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file export.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -249,11 +249,11 @@ if (null !== $post_type) { 'perso' => $record['perso'] === '0' ? 'False' : 'True', 'url' => $record['url'] !== 'none' && is_null($record['url']) === false && empty($record['url']) === false ? htmlspecialchars_decode($record['url']) : '', 'email' => $record['email'] !== 'none' ? (is_null($record['email']) === false ? cleanStringForExport($record['email']) : '') : '', 'kbs' => implode(' | ', $arr_kbs), 'tags' => implode(' ', $arr_tags), - 'folder' => implode(' > ', $arr_trees), + 'folder' => implode('/', $arr_trees), ); ++$i; // log logItems( diff --git a/sources/favourites.queries.php b/sources/favourites.queries.php index 5bab1dde..681b15ac 100755 --- a/sources/favourites.queries.php +++ b/sources/favourites.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file favourites.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/fields.queries.php b/sources/fields.queries.php index 35c1dfb9..3ee1151e 100755 --- a/sources/fields.queries.php +++ b/sources/fields.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file fields.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/find.queries.php b/sources/find.queries.php index 7c0b9357..5db827f3 100755 --- a/sources/find.queries.php +++ b/sources/find.queries.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file find.queries.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/folders.datatable.php b/sources/folders.datatable.php index ad839e86..cb4bed68 100755 --- a/sources/folders.datatable.php +++ b/sources/folders.datatable.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file folders.datatable.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/folders.queries.php b/sources/folders.queries.php index 66da9c4d..c7b9e588 100755 --- a/sources/folders.queries.php +++ b/sources/folders.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file folders.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/identify.php b/sources/identify.php index c0d4bed3..b18b070b 100755 --- a/sources/identify.php +++ b/sources/identify.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file identify.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/import.queries.php b/sources/import.queries.php index 9ef08a40..25eac4ae 100755 --- a/sources/import.queries.php +++ b/sources/import.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file import.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/items.logs.php b/sources/items.logs.php index 46cdacc7..7cd4a590 100755 --- a/sources/items.logs.php +++ b/sources/items.logs.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file items.logs.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/items.queries.php b/sources/items.queries.php index 1100ac45..91221f12 100755 --- a/sources/items.queries.php +++ b/sources/items.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file items.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -6003,10 +6003,11 @@ if (is_null($inputData['type']) === false) { 'encode' ); break; } $arr_data = []; + $arr_folders = []; // decrypt and retreive data in JSON format $dataReceived = prepareExchangedData( $SETTINGS['cpassman_dir'], $inputData['data'], @@ -6123,10 +6124,11 @@ if (is_null($inputData['type']) === false) { $arr_data['folders'][$inc]['level'] = (int) $folder->nlevel; $arr_data['folders'][$inc]['title'] = ((int) $folder->title === (int) $_SESSION['user_id'] && (int) $folder->nlevel === 1) ? htmlspecialchars_decode($_SESSION['login']) : htmlspecialchars_decode($folder->title, ENT_QUOTES); $arr_data['folders'][$inc]['disabled'] = $disabled; $arr_data['folders'][$inc]['parent_id'] = (int) $folder->parent_id; $arr_data['folders'][$inc]['perso'] = (int) $folder->personal_folder; + //array_push($arr_folders, (int) $folder->id); // Is this folder an active folders? (where user can do something) $is_visible_active = 0; if ( isset($_SESSION['read_only_folders']) === true @@ -6138,19 +6140,29 @@ if (is_null($inputData['type']) === false) { ++$inc; } } } + /* if (isset($arr_data['folders']) === true) { // save to cache_tree cacheTreeUserHandler( (int) $_SESSION['user_id'], json_encode($arr_data['folders']), $SETTINGS, 'visible_folders', ); + + // save to cache_tree + cacheTreeUserHandler( + (int) $_SESSION['user_id'], + json_encode($arr_folders), + $SETTINGS, + 'folders', + ); } + */ // send data echo (string) prepareExchangedData( $SETTINGS['cpassman_dir'], [ @@ -6786,10 +6798,65 @@ if (is_null($inputData['type']) === false) { $SETTINGS['cpassman_dir'], $data, 'encode' ); + break; + + /* + * CASE + * check_current_access_rights + */ + case 'check_current_access_rights': + // Check KEY + if ($inputData['key'] !== $_SESSION['key']) { + echo (string) prepareExchangedData( + $SETTINGS['cpassman_dir'], + array( + 'error' => 'key_not_conform', + 'message' => langHdl('key_is_not_correct'), + ), + 'encode' + ); + break; + } + // decrypt and retrieve data in JSON format + $dataReceived = prepareExchangedData( + $SETTINGS['cpassman_dir'], + $inputData['data'], + 'decode' + ); + + // prepare variables + $inputData['userId'] = (int) filter_var($dataReceived['userId'], FILTER_SANITIZE_NUMBER_INT); + $inputData['itemId'] = (int) filter_var($dataReceived['itemId'], FILTER_SANITIZE_NUMBER_INT); + $inputData['treeId'] = (int) filter_var($dataReceived['treeId'], FILTER_SANITIZE_NUMBER_INT); + + $data = DB::queryFirstRow( + 'SELECT visible_folders + FROM ' . prefixTable('cache_tree') . ' WHERE user_id = %i', + $inputData['userId'] + ); + // Check if tree ID is in visible folders. + if (null !== $data['visible_folders']) { + $arr = json_decode($data['visible_folders'], true); + $ids = array_column($arr, 'id'); + } + + + $data = array( + 'error' => false, + 'access' => isset($inputData['treeId']) === true && in_array($inputData['treeId'], $ids) === true ? true : false, + ); + + // send data + echo (string) prepareExchangedData( + $SETTINGS['cpassman_dir'], + $data, + 'encode' + ); + break; } } // Build the QUERY in case of GET if (isset($inputData['getType'])) { diff --git a/sources/ldap.queries.php b/sources/ldap.queries.php index 5e0175b4..50bcde1b 100755 --- a/sources/ldap.queries.php +++ b/sources/ldap.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file ldap.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/logs.datatables.php b/sources/logs.datatables.php index 21909186..83fff736 100755 --- a/sources/logs.datatables.php +++ b/sources/logs.datatables.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file logs.datatables.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/main.functions.php b/sources/main.functions.php index 0b06d53a..a16e07ea 100755 --- a/sources/main.functions.php +++ b/sources/main.functions.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file main.functions.php * --- * * @author Nils Laumaillé (nils@teampass.net) * @@ -123,11 +123,11 @@ function bCrypt( * * @return array */ function cryption(string $message, string $ascii_key, string $type, ?array $SETTINGS = []): array { - $ascii_key = empty($ascii_key) === true ? file_get_contents(SECUREPATH . '/teampass-seckey.txt') : $ascii_key; + $ascii_key = empty($ascii_key) === true ? file_get_contents(SECUREPATH.'/'.SECUREFILE) : $ascii_key; $err = false; $path = __DIR__.'/../includes/libraries/Encryption/Encryption/'; include_once $path . 'Exception/CryptoException.php'; @@ -635,11 +635,11 @@ function identUser( ); $inc = 0; foreach ($rows as $record) { //if (isset($record['id_tree'])) { $foldersLimited[$record['id_tree']][$inc] = $record['item_id']; - array_push($foldersLimitedFull, $record['item_id']); + array_push($foldersLimitedFull, $record['id_tree']); ++$inc; //} } // Get list of Personal Folders @@ -649,11 +649,11 @@ function identUser( $globalsUserId, $personalFolders, $noAccessPersonalFolders, $foldersLimitedFull, $allowedFoldersByRoles, - $restrictedFoldersForItems, + array_keys($restrictedFoldersForItems), $readOnlyFolders, $noAccessFolders, isset($SETTINGS['enable_pf_feature']) === true ? $SETTINGS['enable_pf_feature'] : 0, $tree ); @@ -1291,11 +1291,11 @@ function prepareSendingEmail( 'arguments' => json_encode([ 'subject' => $subject, 'receivers' => $email, 'body' => $body, 'receiver_name' => $receiverName, - ]), + ], JSON_HEX_QUOT | JSON_HEX_TAG), 'updated_at' => '', 'finished_at' => '', 'output' => '', ) ); @@ -1431,11 +1431,11 @@ function buildEmail( $mail->FromName = $SETTINGS['email_from_name']; // Prepare for each person foreach (array_filter(explode(',', $email)) as $dest) { $mail->addAddress($dest); } - + // Prepare HTML $text_html = emailBody($textMail); $mail->WordWrap = 80; // set word wrap $mail->isHtml(true); @@ -2299,11 +2299,11 @@ function prepareFileWithDefuse( // Sanitize $source_file = $antiXss->xss_clean($source_file); $target_file = $antiXss->xss_clean($target_file); if (empty($password) === true || is_null($password) === true) { // get KEY to define password - $ascii_key = file_get_contents(SECUREPATH . '/teampass-seckey.txt'); + $ascii_key = file_get_contents(SECUREPATH.'/'.SECUREFILE); $password = \Defuse\Crypto\Key::loadFromAsciiSafeString($ascii_key); } $err = ''; if ($type === 'decrypt') { diff --git a/sources/main.queries.php b/sources/main.queries.php index 89bb6acb..a26026e3 100755 --- a/sources/main.queries.php +++ b/sources/main.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file main.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/roles.queries.php b/sources/roles.queries.php index 004af882..e5c702f1 100755 --- a/sources/roles.queries.php +++ b/sources/roles.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file roles.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -249,10 +249,44 @@ if (null !== $post_type) { ); } } } + /* + // update folders rights for users in cache_tree + // Requested for real-time changes + $rows = DB::query( + 'SELECT increment_id, folders + FROM ' . prefixTable('cache_tree'), + ); + + foreach($rows as $row) { + if ($row['folders'] === '' || $post_selectedFolders === null) { + continue; + } + // get visible folders + $arr = json_decode($row['folders'], true); + + foreach($arr as $folder) { + if (in_array($folder, $post_selectedFolders) === true) { + unset($arr[$folder]); + } + } + print_r($arr); + + // update + /*DB::update( + prefixTable('cache_tree'), + array( + 'folders' => json_encode($arr), + ), + 'increment_id = %i', + $row['increment_id'] + );*/ + } + */ + echo prepareExchangedData( $SETTINGS['cpassman_dir'], array( 'error' => false, 'message' => '', diff --git a/sources/scheduler.php b/sources/scheduler.php index 81154738..ac74ddcb 100755 --- a/sources/scheduler.php +++ b/sources/scheduler.php @@ -6,11 +6,11 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file scheduler.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/tree.php b/sources/tree.php index 263712ad..1361efbc 100755 --- a/sources/tree.php +++ b/sources/tree.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file tree.php * * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 @@ -249,12 +249,21 @@ function showFolderToUser( array $session_groupes_visibles, array $listFoldersLimitedKeys, array $listRestrictedFoldersForItemsKeys ): bool { - $big_array = array_diff(array_unique(array_merge($session_groupes_visibles, $listFoldersLimitedKeys, $listRestrictedFoldersForItemsKeys), SORT_NUMERIC), $session_forbiden_pfs); - //print_r($session_groupes_visibles); + $big_array = array_diff( + array_unique( + array_merge( + $session_groupes_visibles, + $listFoldersLimitedKeys, + $listRestrictedFoldersForItemsKeys + ), + SORT_NUMERIC + ), + $session_forbiden_pfs + ); if ($nodeId === 0 || in_array($nodeId, $big_array) === true) { return true; } return false; } diff --git a/sources/upload.attachments.php b/sources/upload.attachments.php index dc79d525..ae255ba4 100755 --- a/sources/upload.attachments.php +++ b/sources/upload.attachments.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upload.attachments.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/upload.files.php b/sources/upload.files.php index 21bde8be..e1e84d2c 100755 --- a/sources/upload.files.php +++ b/sources/upload.files.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file upload.files.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/user.logs.datatables.php b/sources/user.logs.datatables.php index 261450c7..c0ef94d7 100755 --- a/sources/user.logs.datatables.php +++ b/sources/user.logs.datatables.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file user.logs.datatables.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/users.datatable.php b/sources/users.datatable.php index 2583a306..b9536fc9 100755 --- a/sources/users.datatable.php +++ b/sources/users.datatable.php @@ -9,11 +9,11 @@ declare(strict_types=1); * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file users.datatable.php * --- * * @author Nils Laumaillé (nils@teampass.net) * diff --git a/sources/users.queries.php b/sources/users.queries.php index c1a6620f..3e41cdba 100755 --- a/sources/users.queries.php +++ b/sources/users.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file users.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/utilities.queries.php b/sources/utilities.queries.php index 0c15d2ee..fb512f9d 100755 --- a/sources/utilities.queries.php +++ b/sources/utilities.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utilities.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 diff --git a/sources/utils.queries.php b/sources/utils.queries.php index d0163c7c..3128049d 100755 --- a/sources/utils.queries.php +++ b/sources/utils.queries.php @@ -8,11 +8,11 @@ declare(strict_types=1); * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @version 3.0.0.22 + * @version 3.0.0.23 * @file utils.queries.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0
$path .= '>' . htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); * @version 3.0.0.22 define('TP_VERSION_FULL', TP_VERSION.'.22'); * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href=\'#tp_link#\'>Click this link</a> to access the item.<br><br><br>Greetings', * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 'username' => 'Username', 'settings_ldap_password_tip' => 'The password of the user specified above.', 'undefined' => 'Undefined', 'error_cannot_open_file' => 'File cannot be opened', 'start' => 'Start', 'current_password' => 'Current password', 'password_is_not_correct' => 'This password is not correct', 'personal_items' => 'Personal items', 'please_select_a_folder' => 'Please select a folder', 'in_progress' => 'In progress', 'all_fields_mandatory' => 'All fields are mandatory', 'filename' => 'Filename', 'exported_to_file' => 'Exported to file', 'operation_progress' => 'Operation is in progress', 'exporting_items' => 'Exporting items', 'select_folders_to_export' => 'Select folders to export', 'export_format_type' => 'Select the export format type', 'export_items' => 'Export items', 'loading_item' => 'Loading item', 'admin_action_check_pf' => 'Criar pastas pessoas para todos os utilizadores que não têm', 'max_last_items' => 'Maximo de últimos itens visto por um usuários (Padrão é 10)', 'number_of_used_pw' => 'Número de novas senhas que o usuário precisa ingressar antes de usar uma senha antiga', 'pw_life_duration' => 'Vida útil da senha de um usuário para expirar (em dia, 0 para desativar)', 'settings_log_connections' => 'Guarda todos os inícios de sessão', * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 'email_share_item_mail' => 'Hola,&lt;br&gt;&lt;br&gt;&lt;u&gt;#tp_user#&lt;/u&gt; ha compartido con usted el elemento &lt;b&gt;#tp_item#&lt;/b&gt;&lt;br&gt;Pulse &lt;a href=\'#tp_link#\'&gt;aquí&lt;/a&gt; para acceder.&lt;br&gt;&lt;br&gt;Saludos.', * @version 3.0.0.22 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href=\'#tp_link#\'>Click this link</a> to access the item.<br><br><br>Greetings', * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 The SaltKey is stored in a file called teampass-seckey.txt. For security reasons, this file should be stored in a folder outside the WWW folder of your server (example: /var/teampass/). This key will be used to encrypt data when sharing information with users without any Teampass account. If this field remains empty, this file will be stored in folder <path to Teampass>/includes/. * @version 3.0.0.22 $filename_seckey = $securePath . '/teampass-seckey.txt'; * @version 3.0.0.22 $ascii_key = file_get_contents(SECUREPATH.'/teampass-seckey.txt'); * @version 3.0.0.22 * @version 3.0.0.22 /* $filename = (empty($post_sk_path) === false ? $post_sk_path : SECUREPATH).'/teampass-seckey.txt'; if (file_exists($filename)) { $newfile = str_replace('teampass-seckey.txt', time()); rename($filename, $newfile); unlink($filename); echo '$("#step5_saltkeyFile").html("<i class=\"fa-solid fa-circle-check fa-lg text-success ml-2 mr-2\"></i><span class=\"text-info font-italic\">You can remove file '.$newfile.'</span>");'; } else { echo '$("#step5_saltkeyFile").html("<i class=\"fa-solid fa-circle-check fa-lg text-success ml-2 mr-2\"></i><span class=\"text-info font-italic\">Nothing done</span>");'; } */ * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 // load PhpEncryption library /*include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Crypto.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Encoding.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'DerivedKeys.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Key.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'KeyOrPassword.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'File.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'RuntimeTests.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'KeyProtectedByPassword.php'; include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Encryption/Encryption/'.'Core.php';*/ $ascii_key = file_get_contents(SECUREPATH.'/teampass-seckey.txt'); * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 // Store current view savePreviousView(); if (debugJavascript === true) console.log("Request is running: " + requestRunning) // Store status query running requestRunning = true; * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 $SETTINGS['cpassman_dir'], $SETTINGS['cpassman_dir'], $_SESSION['reencrypt_old_salt'] = file_get_contents(SECUREPATH . '/teampass-seckey.txt'); $old_sk_filename = SECUREPATH . '/teampass-seckey.txt.' . date('Y_m_d', mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y'))) . '.' . time(); SECUREPATH . '/teampass-seckey.txt', SECUREPATH . '/teampass-seckey.txt', $_SESSION['reencrypt_new_salt'] = file_get_contents(SECUREPATH . '/teampass-seckey.txt'); $SETTINGS['cpassman_dir'], $SETTINGS['cpassman_dir'], $SETTINGS['cpassman_dir'], unlink(SECUREPATH . '/teampass-seckey.txt'); SECUREPATH . '/teampass-seckey.txt' $SETTINGS['cpassman_dir'], * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 'folder' => implode(' > ', $arr_trees), * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 $ascii_key = empty($ascii_key) === true ? file_get_contents(SECUREPATH . '/teampass-seckey.txt') : $ascii_key; array_push($foldersLimitedFull, $record['item_id']); $restrictedFoldersForItems, ]), $ascii_key = file_get_contents(SECUREPATH . '/teampass-seckey.txt'); * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 $big_array = array_diff(array_unique(array_merge($session_groupes_visibles, $listFoldersLimitedKeys, $listRestrictedFoldersForItemsKeys), SORT_NUMERIC), $session_forbiden_pfs); //print_r($session_groupes_visibles); * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22 * @version 3.0.0.22
$path .= '/' . htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); * @version 3.0.0.23 define('TP_VERSION_FULL', TP_VERSION.'.23'); * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href="#tp_link#">Click this link</a> to access the item.<br><br><br>Greetings', * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 'username' => 'Utilizador', 'settings_ldap_password_tip' => 'A palavra-passe do utilizador especificado acima.', 'undefined' => 'Indefinido', 'error_cannot_open_file' => 'O ficheiro não pode ser aberto', 'start' => 'Iniciar', 'current_password' => 'Palavra-passe atual', 'password_is_not_correct' => 'Esta palavra-passe não é a correta', 'personal_items' => 'Itens pessoais', 'please_select_a_folder' => 'Por favor seleccione uma pasta', 'in_progress' => 'Em progresso', 'all_fields_mandatory' => 'Todos os campos são obrigatórios', 'filename' => 'Nome do ficheiro', 'exported_to_file' => 'Exportado para ficheiro', 'operation_progress' => 'A operação está em progresso', 'exporting_items' => 'A exportar itens', 'select_folders_to_export' => 'Seleccione pastas para exportar', 'export_format_type' => 'Seleccione o formato de exportação', 'export_items' => 'Exportar itens', 'loading_item' => 'A carregar item', 'admin_action_check_pf' => 'Criar pastas pessoas para todos os utilizadores que não as têm', 'max_last_items' => 'Tamanho da lista dos últimos itens vistos (padrão é 10)', 'number_of_used_pw' => 'Número de palavras-passe antigas guardadas para evitar reutilização (0 para desativar)', 'pw_life_duration' => 'Palavras-passe de sessão expiram ao fim de xx dias (0 para desativar)', 'settings_log_connections' => 'Guarda registo de todos os inícios de sessão', * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 'email_share_item_mail' => 'Hola,&lt;br&gt;&lt;br&gt;&lt;u&gt;#tp_user#&lt;/u&gt; ha compartido con usted el elemento &lt;b&gt;#tp_item#&lt;/b&gt;&lt;br&gt;Pulse &lt;a href="#tp_link#"&gt;aquí&lt;/a&gt; para acceder.&lt;br&gt;&lt;br&gt;Saludos.', * @version 3.0.0.23 'email_share_item_mail' => 'Hello,<br><br>This is a generated email from Teampass passwords manager.<br><br>#tp_user# has shared with you the password item #tp_item#.<br><br><a href="#tp_link#">Click this link</a> to access the item.<br><br><br>Greetings', * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 The SaltKey is stored in a file called teampass-seckey.txt and hashed for security purpose. For security reasons, this file should be stored in a folder outside the WWW folder of your server (example: /var/teampass/). This key will be used to encrypt data when sharing information with users without any Teampass account. If this field remains empty, this file will be stored in folder <path to Teampass>/includes/. * @version 3.0.0.23 define('SECUREFILE', generateRandomKey(25)); $filename_seckey = $securePath . '/' . SECUREFILE; define("SECUREFILE", "' . SECUREFILE. '"); * @version 3.0.0.23 // new SECUREFILE - 3.0.0.23 function handleSecurefileConstant() { if (defined('SECUREFILE') === false) { define('SECUREFILE', generateRandomKey(25)); // manage the file itself by renaming it if (rename(SECUREPATH.'/teampass-seckey.txt', SECUREPATH.'/'.SECUREFILE) === false) { echo '[{ "error" : "File `'.SECUREPATH.'/teampass-seckey.txt` could not be renamed. Please do it by yourself and click on button Launch.", "index" : "" }]'; exit; } // Ensure DB is read as UTF8 if (defined('DB_ENCODING') === false) { define('DB_ENCODING', "utf8"); } // Now create new file $file_handled = fopen('../includes/config/settings.php', 'w'); $settingsTxt = '<?php // DATABASE connexion parameters define("DB_HOST", "' . DB_HOST . '"); define("DB_USER", "' . DB_USER . '"); define("DB_PASSWD", "' . DB_PASSWD . '"); define("DB_NAME", "' . DB_NAME . '"); define("DB_PREFIX", "' . DB_PREFIX . '"); define("DB_PORT", "' . DB_PORT . '"); define("DB_ENCODING", "' . DB_ENCODING . '"); define("DB_SSL", array( "key" => "'.DB_SSL['key'].'", "cert" => "'.DB_SSL['cert'].'", "ca_cert" => ""'.DB_SSL['ca_cert'].', "ca_path" => "'.DB_SSL['ca_path'].'", "cipher" => "'.DB_SSL['cipher'].'" )); define("DB_CONNECT_OPTIONS", array( MYSQLI_OPT_CONNECT_TIMEOUT => 10 )); define("SECUREPATH", "' . str_replace('\\', '\\\\', SECUREPATH) . '"); define("SECUREFILE", "' . SECUREFILE. '");'; if (defined('IKEY') === true) $settingsTxt .= ' define("IKEY", "' . IKEY . '");'; else $settingsTxt .= ' define("IKEY", "");'; if (defined('SKEY') === true) $settingsTxt .= ' define("SKEY", "' . SKEY . '");'; else $settingsTxt .= ' define("SKEY", "");'; if (defined('HOST') === true) $settingsTxt .= ' define("HOST", "' . HOST . '");'; else $settingsTxt .= ' define("HOST", "");'; $settingsTxt .= ' if (isset($_SESSION[\'settings\'][\'timezone\']) === true) { date_default_timezone_set($_SESSION[\'settings\'][\'timezone\']); } '; $fileCreation = fwrite( $file_handled, utf8_encode($settingsTxt) ); fclose($file_handled); sleep(3); if ($fileCreation === false) { return [ 'error' => true, 'message' => 'Setting.php file could not be created in /includes/config/ folder. Please check the path and the rights.', ]; } return [ 'error' => false, 'message' => '' ]; } } // new check - 3.0.0.23 $ascii_key = file_get_contents(SECUREPATH.'/'.SECUREFILE); * @version 3.0.0.23 * @version 3.0.0.23 define("SECUREFILE", "' . SECUREFILE. '"); * @version 3.0.0.23 // 3.0.0.23 $ret = handleSecurefileConstant(); if ($ret['error'] === true) { echo '[{"finish":"1", "msg":"", "error":"'.$ret['message'].'"}]'; exit(); } // Get the encrypted password * @version 3.0.0.23 * @version 3.0.0.23 $ascii_key = file_get_contents(SECUREPATH.'/'.SECUREFILE); * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 function checkAccess(itemId, treeId, userId) { var data = { 'itemId': parseInt(itemId), 'treeId': parseInt(treeId), 'userId': parseInt(userId), }; //Send query $.post( 'sources/items.queries.php', { type: 'check_current_access_rights', data: prepareExchangedData(JSON.stringify(data), 'encode', '<?php echo $_SESSION['key']; ?>'), key: '<?php echo $_SESSION['key']; ?>' }, function(data) { //decrypt data data = decodeQueryReturn(data, '<?php echo $_SESSION['key']; ?>', 'items.queries.php', 'show_details_item'); requestRunning = true; if (debugJavascript === true) { console.log("DEBUG: checkAccess"); console.log(data); } return false; } ); } // check if user still has access if (checkAccess(itemId, itemTreeId, <?php echo $_SESSION['user_id']; ?>) === false) { toastr.remove(); toastr.warning( '<?php echo langHdl('no_item_to_display'); ?>', '', { timeOut: 5000, progressBar: true } ); // Finished return false; } // Store current view savePreviousView(); if (debugJavascript === true) console.log("Request is running: " + requestRunning) // Store status query running requestRunning = true; * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 $SETTINGS['cpassman_dir'], $SETTINGS['cpassman_dir'], $_SESSION['reencrypt_old_salt'] = file_get_contents(SECUREPATH.'/'.SECUREFILE); $old_sk_filename = SECUREPATH.'/'.SECUREFILE . date('Y_m_d', mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('y'))) . '.' . time(); SECUREPATH.'/'.SECUREFILE, SECUREPATH.'/'.SECUREFILE, $_SESSION['reencrypt_new_salt'] = file_get_contents(SECUREPATH.'/'.SECUREFILE); $SETTINGS['cpassman_dir'], $SETTINGS['cpassman_dir'], $SETTINGS['cpassman_dir'], unlink(SECUREPATH.'/'.SECUREFILE); SECUREPATH.'/'.SECUREFILE $SETTINGS['cpassman_dir'], * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 'folder' => implode('/', $arr_trees), * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 $arr_folders = []; //array_push($arr_folders, (int) $folder->id); /* // save to cache_tree cacheTreeUserHandler( (int) $_SESSION['user_id'], json_encode($arr_folders), $SETTINGS, 'folders', ); */ break; /* * CASE * check_current_access_rights */ case 'check_current_access_rights': // Check KEY if ($inputData['key'] !== $_SESSION['key']) { echo (string) prepareExchangedData( $SETTINGS['cpassman_dir'], array( 'error' => 'key_not_conform', 'message' => langHdl('key_is_not_correct'), ), 'encode' ); break; } // decrypt and retrieve data in JSON format $dataReceived = prepareExchangedData( $SETTINGS['cpassman_dir'], $inputData['data'], 'decode' ); // prepare variables $inputData['userId'] = (int) filter_var($dataReceived['userId'], FILTER_SANITIZE_NUMBER_INT); $inputData['itemId'] = (int) filter_var($dataReceived['itemId'], FILTER_SANITIZE_NUMBER_INT); $inputData['treeId'] = (int) filter_var($dataReceived['treeId'], FILTER_SANITIZE_NUMBER_INT); $data = DB::queryFirstRow( 'SELECT visible_folders FROM ' . prefixTable('cache_tree') . ' WHERE user_id = %i', $inputData['userId'] ); // Check if tree ID is in visible folders. if (null !== $data['visible_folders']) { $arr = json_decode($data['visible_folders'], true); $ids = array_column($arr, 'id'); } $data = array( 'error' => false, 'access' => isset($inputData['treeId']) === true && in_array($inputData['treeId'], $ids) === true ? true : false, ); // send data echo (string) prepareExchangedData( $SETTINGS['cpassman_dir'], $data, 'encode' ); * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 $ascii_key = empty($ascii_key) === true ? file_get_contents(SECUREPATH.'/'.SECUREFILE) : $ascii_key; array_push($foldersLimitedFull, $record['id_tree']); array_keys($restrictedFoldersForItems), ], JSON_HEX_QUOT | JSON_HEX_TAG), $ascii_key = file_get_contents(SECUREPATH.'/'.SECUREFILE); * @version 3.0.0.23 * @version 3.0.0.23 /* // update folders rights for users in cache_tree // Requested for real-time changes $rows = DB::query( 'SELECT increment_id, folders FROM ' . prefixTable('cache_tree'), ); foreach($rows as $row) { if ($row['folders'] === '' || $post_selectedFolders === null) { continue; } // get visible folders $arr = json_decode($row['folders'], true); foreach($arr as $folder) { if (in_array($folder, $post_selectedFolders) === true) { unset($arr[$folder]); } } print_r($arr); // update /*DB::update( prefixTable('cache_tree'), array( 'folders' => json_encode($arr), ), 'increment_id = %i', $row['increment_id'] );*/ } */ * @version 3.0.0.23 * @version 3.0.0.23 $big_array = array_diff( array_unique( array_merge( $session_groupes_visibles, $listFoldersLimitedKeys, $listRestrictedFoldersForItemsKeys ), SORT_NUMERIC ), $session_forbiden_pfs ); * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23 * @version 3.0.0.23
[]
CVE-2023-1463
4e06fbaf2b78c3615d0599855a72ba7e31157516
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Authorization Bypass Through User-Controlled Key in GitHub repository nilsteampassnet/teampass prior to 3.0.0.23.'}]
null
5.4
2023-03-17T12:15Z
nan
CWE-639
Authorization Bypass Through User-Controlled Key
The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
3.0.0.23 Fix for identified CWE-285: Improper Authorization
2023-03-17 11:40:49 +0100
4e06fbaf2
8,325
3
[ "error.php", "includes/core/load.js.php", "includes/core/logout.php", "install/css/install.css", "install/upgrade.php" ]
PHP
{"error.php": {"lines_added": 1, "lines_deleted": 1}, "includes/core/load.js.php": {"lines_added": 2, "lines_deleted": 2}, "includes/core/logout.php": {"lines_added": 6, "lines_deleted": 4}, "install/css/install.css": {"lines_added": 0, "lines_deleted": 8}, "install/upgrade.php": {"lines_added": 30, "lines_deleted": 1}}
diff --git a/error.php b/error.php index b5e44337c..76f55ed1b 100755 --- a/error.php +++ b/error.php @@ -101,11 +101,11 @@ if ( <div class="error-content"> <h3><i class="fa fa-warning text-danger"></i> Oops! <?php echo $errorCode; ?>.</h3> <p> - For security reason, you have been disconnected. Click to <a href="./includes/core/logout.php?user_id=" + <?php echo isset($_SESSION['user_id']) === true ? $_SESSION['user_id'] : ''; ?>>log in</a>. + For security reason, you have been disconnected. Click to <a href="./includes/core/logout.php?token=" + <?php echo isset($_SESSION['key']) === true ? $_SESSION['key'] : ''; ?>>log in</a>. </p> </div> <!-- /.error-content --> </div> diff --git a/includes/core/load.js.php b/includes/core/load.js.php index c22b0a691..5905f481c 100755 --- a/includes/core/load.js.php +++ b/includes/core/load.js.php @@ -480,11 +480,11 @@ if ( } else if ($(this).data('name') === 'profile') { // Show profile page document.location.href = "index.php?page=profile"; } else if ($(this).data('name') === 'logout') { // Logout directly to login form - window.location.href = "./includes/core/logout.php?user_id=" + <?php echo $_SESSION['user_id']; ?> + window.location.href = "./includes/core/logout.php?token=<?php echo $_SESSION['key']; ?>"; } } }); $('.close-element').click(function() { @@ -1672,11 +1672,11 @@ if ( '', { timeOut: 4000 } ); - window.location.href = "./includes/core/logout.php?user_id=" + <?php echo $_SESSION['user_id']; ?> + window.location.href = "./includes/core/logout.php?token=" + <?php echo $_SESSION['key']; ?> } else if (store.get('teampassUser').admin_user_password) { // now select if sending by email $('#dialog-admin-change-user-password-info').html('<i class="fas fa-envelope-open-text fa-lg warning mr-2"></i><?php echo langHdl('information'); ?><br><br>'+ '<i class="fas fa-info-circle mr-2"></i><?php echo langHdl('send_user_password_by_email'); ?>'+ '<div class="row">'+ diff --git a/includes/core/logout.php b/includes/core/logout.php index a68b1821c..99a2f31fd 100755 --- a/includes/core/logout.php +++ b/includes/core/logout.php @@ -36,14 +36,15 @@ $get = []; $get['user_id'] = $superGlobal->get('user_id', 'GET'); // Update table by deleting ID if (isset($_SESSION['user_id']) === true && empty($_SESSION['user_id']) === false) { $user_id = $_SESSION['user_id']; -} elseif (isset($get['user_id']) === true && empty($get['user_id']) === false) { - $user_id = $get['user_id']; +} elseif (isset($get['token']) === true && empty($get['token']) === false) { + $user_token = $get['token']; } else { $user_id = ''; + $user_token = ''; } if (empty($user_id) === false && isset($_SESSION['CPM']) === true) { // connect to the server include_once '../../sources/main.functions.php'; @@ -63,12 +64,13 @@ if (empty($user_id) === false && isset($_SESSION['CPM']) === true) { [ 'key_tempo' => '', 'timestamp' => '', 'session_end' => '', ], - 'id=%i', - $user_id + 'id=%i || key_tempo=%s', + $user_id, + $user_token ); //Log into DB the user's disconnection if (isset($SETTINGS['log_connections']) === true && (int) $SETTINGS['log_connections'] === 1 ) { diff --git a/install/css/install.css b/install/css/install.css index 8ba5a27f9..3b50c52f2 100755 --- a/install/css/install.css +++ b/install/css/install.css @@ -119,13 +119,5 @@ h5 { } .hidden { display: none; } - -.center-screen { - position:absolute; - top:50%; - left: 50%; - margin-right: -50%; - transform: translate(-50%, -50%); -} \ No newline at end of file diff --git a/install/upgrade.php b/install/upgrade.php index b07964958..54b7265e1 100755 --- a/install/upgrade.php +++ b/install/upgrade.php @@ -274,11 +274,40 @@ if (!isset($_GET['step']) && !isset($post_step)) { <div class="col-12"> <div class="card card-',$dbSettings === true ? 'primary' : 'warning','"> <div class="card-header"> <h5>DataBase Informations</h5> </div> - <div class="card-body">'; + <div class="card-body"> + <!--<div class="form-group"> + <label>Host</label> + <input type="text" class="form-control" name="db_host" id="db_host" class="ui-widget" value="'.DB_HOST.'"> + </div> + + <div class="form-group"> + <label>Database name</label> + <input type="text" class="form-control" name="db_name" id="db_name" class="ui-widget" value="'.DB_NAME.'"> + </div> + + <div class="form-group"> + <label>Login</label> + <input type="text" class="form-control" name="db_user" id="db_user" class="ui-widget" value="'.DB_USER.'"> + </div> + + <div class="form-group"> + <label>Password</label> + <input type="text" class="form-control" name="db_pw" id="db_pw" class="ui-widget" value="'.$visible_pwd.'"> + </div> + + <div class="form-group"> + <label>Prefix</label> + <input type="text" class="form-control" name="db_prefix" id="db_prefix" class="ui-widget" value="'.DB_PREFIX.'"> + </div> + + <div class="form-group"> + <label>Port</label> + <input type="text" class="form-control" name="db_port" id="db_port" class="ui-widget" value="'.DB_PORT.'"> + </div>-->'; // check if all database info are available if ($dbSettings === true) { echo ' <div>
For security reason, you have been disconnected. Click to <a href="./includes/core/logout.php?user_id=" + <?php echo isset($_SESSION['user_id']) === true ? $_SESSION['user_id'] : ''; ?>>log in</a>. window.location.href = "./includes/core/logout.php?user_id=" + <?php echo $_SESSION['user_id']; ?> window.location.href = "./includes/core/logout.php?user_id=" + <?php echo $_SESSION['user_id']; ?> } elseif (isset($get['user_id']) === true && empty($get['user_id']) === false) { $user_id = $get['user_id']; 'id=%i', $user_id .center-screen { position:absolute; top:50%; left: 50%; margin-right: -50%; transform: translate(-50%, -50%); } <div class="card-body">';
For security reason, you have been disconnected. Click to <a href="./includes/core/logout.php?token=" + <?php echo isset($_SESSION['key']) === true ? $_SESSION['key'] : ''; ?>>log in</a>. window.location.href = "./includes/core/logout.php?token=<?php echo $_SESSION['key']; ?>"; window.location.href = "./includes/core/logout.php?token=" + <?php echo $_SESSION['key']; ?> } elseif (isset($get['token']) === true && empty($get['token']) === false) { $user_token = $get['token']; $user_token = ''; 'id=%i || key_tempo=%s', $user_id, $user_token <div class="card-body"> <!--<div class="form-group"> <label>Host</label> <input type="text" class="form-control" name="db_host" id="db_host" class="ui-widget" value="'.DB_HOST.'"> </div> <div class="form-group"> <label>Database name</label> <input type="text" class="form-control" name="db_name" id="db_name" class="ui-widget" value="'.DB_NAME.'"> </div> <div class="form-group"> <label>Login</label> <input type="text" class="form-control" name="db_user" id="db_user" class="ui-widget" value="'.DB_USER.'"> </div> <div class="form-group"> <label>Password</label> <input type="text" class="form-control" name="db_pw" id="db_pw" class="ui-widget" value="'.$visible_pwd.'"> </div> <div class="form-group"> <label>Prefix</label> <input type="text" class="form-control" name="db_prefix" id="db_prefix" class="ui-widget" value="'.DB_PREFIX.'"> </div> <div class="form-group"> <label>Port</label> <input type="text" class="form-control" name="db_port" id="db_port" class="ui-widget" value="'.DB_PORT.'"> </div>-->';
[ "authentication" ]
CVE-2023-1545
4780252fdb600ef2ec2758f17a37d738570cbe66
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'SQL Injection in GitHub repository nilsteampassnet/teampass prior to 3.0.0.23.'}]
null
7.5
2023-03-21T11:15Z
nan
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
3.0.0.22 Fix CWE-89: SQL Injection in API (Sonia Zorba)
2023-02-09 18:46:52 +0100
4780252fd
8,325
3
[ "api/Model/AuthModel.php" ]
PHP
{"api/Model/AuthModel.php": {"lines_added": 49, "lines_deleted": 20}}
diff --git a/api/Model/AuthModel.php b/api/Model/AuthModel.php index dcc37ec8a..6d97c0e25 100755 --- a/api/Model/AuthModel.php +++ b/api/Model/AuthModel.php @@ -39,46 +39,75 @@ class AuthModel extends Database * @param string $apikey * @return array */ public function getUserAuth(string $login, string $password, string $apikey): array { - // Check if user exists - $userInfoRes = $this->select("SELECT id, pw, public_key, private_key, personal_folder, fonction_id, groupes_visibles, groupes_interdits, user_api_key FROM " . prefixTable('users') . " WHERE login='".$login."'"); - $userInfoRes[0]['special'] = ''; - $userInfo = $userInfoRes[0]; + // Sanitize + include_once API_ROOT_PATH . '/../sources/main.functions.php'; + $inputData = dataSanitizer( + [ + 'login' => isset($login) === true ? $login : '', + 'password' => isset($password) === true ? $password : '', + 'apikey' => isset($apikey) === true ? $apikey : '', + ], + [ + 'login' => 'trim|escape', + 'password' => 'trim|escape', + 'apikey' => 'trim|escape', + ], + API_ROOT_PATH . '/..' + ); + if (empty($inputData['login']) === true || empty($inputData['apikey']) === true) { + return ["error" => "Login failed."]; + } - // Check password - include_once API_ROOT_PATH . '/../sources/SplClassLoader.php'; - $pwdlib = new SplClassLoader('PasswordLib', API_ROOT_PATH . '/../includes/libraries'); - $pwdlib->register(); - $pwdlib = new PasswordLib\PasswordLib(); - if ($pwdlib->verifyPasswordHash($password, $userInfo['pw']) === true) { - // Correct credentials - // Now check apikey - // We check if it is the correct user api or if it is a generic api key - $apiInfo = $this->select("SELECT count(*) FROM " . prefixTable('api') . " WHERE value='".$apikey."'"); - if ($apikey === $userInfo['user_api_key'] || (int) $apiInfo[0]['count(*)'] === 1) { + // Check apikey + if (empty($inputData['password']) === true) { + // case where it is a generic key + $apiInfo = $this->select("SELECT count(*) FROM " . prefixTable('api') . " WHERE value='".$inputData['apikey']."' AND label='".$inputData['login']."'"); + if ((int) $apiInfo[0]['count(*)'] === 0) { + return ["error" => "Login failed.", "apikey" => "Not valid"]; + } + + return ["error" => "Not managed."]; + } else { + // case where it is a user api key + $apiInfo = $this->select("SELECT count(*) FROM " . prefixTable('users') . " WHERE user_api_key='".$inputData['apikey']."' AND login='".$inputData['login']."'"); + if ((int) $apiInfo[0]['count(*)'] === 0) { + return ["error" => "Login failed.", "apikey" => "Not valid"]; + } + + // Check if user exists + $userInfoRes = $this->select("SELECT id, pw, public_key, private_key, personal_folder, fonction_id, groupes_visibles, groupes_interdits, user_api_key FROM " . prefixTable('users') . " WHERE login='".$inputData['login']."'"); + $userInfoRes[0]['special'] = ''; + $userInfo = $userInfoRes[0]; + + // Check password + include_once API_ROOT_PATH . '/../sources/SplClassLoader.php'; + $pwdlib = new SplClassLoader('PasswordLib', API_ROOT_PATH . '/../includes/libraries'); + $pwdlib->register(); + $pwdlib = new PasswordLib\PasswordLib(); + if ($pwdlib->verifyPasswordHash($inputData['password'], $userInfo['pw']) === true) { + // Correct credentials // get user keys - $privateKeyClear = decryptPrivateKey($password, (string) $userInfo['private_key']); //prepareUserEncryptionKeys($userInfo, $password); + $privateKeyClear = decryptPrivateKey($inputData['password'], (string) $userInfo['private_key']); // get user folders list $folders = $this->buildUserFoldersList($userInfo); // create JWT return $this->createUserJWT( $userInfo['id'], - $login, + $inputData['login'], $userInfo['personal_folder'], $userInfo['public_key'], $privateKeyClear, implode(",", $folders) ); } else { - return ["error" => "Login failed.", "apikey" => "Not valid"]; + return ["error" => "Login failed.", "password" => "Not valid"]; } - } else { - return ["error" => "Login failed.", "password" => $password]; } } //end getUserAuth /**
// Check if user exists $userInfoRes = $this->select("SELECT id, pw, public_key, private_key, personal_folder, fonction_id, groupes_visibles, groupes_interdits, user_api_key FROM " . prefixTable('users') . " WHERE login='".$login."'"); $userInfoRes[0]['special'] = ''; $userInfo = $userInfoRes[0]; // Check password include_once API_ROOT_PATH . '/../sources/SplClassLoader.php'; $pwdlib = new SplClassLoader('PasswordLib', API_ROOT_PATH . '/../includes/libraries'); $pwdlib->register(); $pwdlib = new PasswordLib\PasswordLib(); if ($pwdlib->verifyPasswordHash($password, $userInfo['pw']) === true) { // Correct credentials // Now check apikey // We check if it is the correct user api or if it is a generic api key $apiInfo = $this->select("SELECT count(*) FROM " . prefixTable('api') . " WHERE value='".$apikey."'"); if ($apikey === $userInfo['user_api_key'] || (int) $apiInfo[0]['count(*)'] === 1) { $privateKeyClear = decryptPrivateKey($password, (string) $userInfo['private_key']); //prepareUserEncryptionKeys($userInfo, $password); $login, return ["error" => "Login failed.", "apikey" => "Not valid"]; } else { return ["error" => "Login failed.", "password" => $password];
// Sanitize include_once API_ROOT_PATH . '/../sources/main.functions.php'; $inputData = dataSanitizer( [ 'login' => isset($login) === true ? $login : '', 'password' => isset($password) === true ? $password : '', 'apikey' => isset($apikey) === true ? $apikey : '', ], [ 'login' => 'trim|escape', 'password' => 'trim|escape', 'apikey' => 'trim|escape', ], API_ROOT_PATH . '/..' ); if (empty($inputData['login']) === true || empty($inputData['apikey']) === true) { return ["error" => "Login failed."]; } // Check apikey if (empty($inputData['password']) === true) { // case where it is a generic key $apiInfo = $this->select("SELECT count(*) FROM " . prefixTable('api') . " WHERE value='".$inputData['apikey']."' AND label='".$inputData['login']."'"); if ((int) $apiInfo[0]['count(*)'] === 0) { return ["error" => "Login failed.", "apikey" => "Not valid"]; } return ["error" => "Not managed."]; } else { // case where it is a user api key $apiInfo = $this->select("SELECT count(*) FROM " . prefixTable('users') . " WHERE user_api_key='".$inputData['apikey']."' AND login='".$inputData['login']."'"); if ((int) $apiInfo[0]['count(*)'] === 0) { return ["error" => "Login failed.", "apikey" => "Not valid"]; } // Check if user exists $userInfoRes = $this->select("SELECT id, pw, public_key, private_key, personal_folder, fonction_id, groupes_visibles, groupes_interdits, user_api_key FROM " . prefixTable('users') . " WHERE login='".$inputData['login']."'"); $userInfoRes[0]['special'] = ''; $userInfo = $userInfoRes[0]; // Check password include_once API_ROOT_PATH . '/../sources/SplClassLoader.php'; $pwdlib = new SplClassLoader('PasswordLib', API_ROOT_PATH . '/../includes/libraries'); $pwdlib->register(); $pwdlib = new PasswordLib\PasswordLib(); if ($pwdlib->verifyPasswordHash($inputData['password'], $userInfo['pw']) === true) { // Correct credentials $privateKeyClear = decryptPrivateKey($inputData['password'], (string) $userInfo['private_key']); $inputData['login'], return ["error" => "Login failed.", "password" => "Not valid"];
[]
CVE-2023-2021
77c541a0151841d1f4ceb0a84ca391e1b526d58d
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.3.'}]
null
5.4
2023-04-13T12:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.3 Fix potential XSS in item description field
2023-04-09 14:54:25 +0200
77c541a01
8,325
3
[ "includes/libraries/anti-xss-master/src/voku/helper/ASCII.php", "includes/libraries/anti-xss-master/src/voku/helper/UTF8.php", "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_by_languages.php", "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_extras_by_languages.php", "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_language_max_key.php", "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_ord.php", "includes/libraries/anti-xss-master/src/voku/helper/data/caseFolding_full.php", "includes/libraries/anti-xss-master/src/voku/helper/data/chr.php", "includes/libraries/anti-xss-master/src/voku/helper/data/emoji.php", "includes/libraries/anti-xss-master/src/voku/helper/data/encodings.php", "includes/libraries/anti-xss-master/src/voku/helper/data/ord.php", "includes/libraries/anti-xss-master/src/voku/helper/data/transliterator_list.php", "includes/libraries/anti-xss-master/src/voku/helper/data/utf8_fix.php", "includes/libraries/anti-xss-master/src/voku/helper/data/win1252_to_utf8.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x000.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x001.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x002.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x003.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x004.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x005.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x006.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x007.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x009.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x00a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x00b.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x00c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x00d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x00e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x00f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x010.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x011.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x012.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x013.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x014.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x015.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x016.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x017.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x018.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x01d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x01e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x01f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x020.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x021.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x022.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x023.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x024.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x025.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x026.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x027.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x028.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x029.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x02a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x02c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x02e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x02f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x030.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x031.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x032.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x033.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x04d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x04e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x04f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x050.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x051.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x052.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x053.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x054.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x055.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x056.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x057.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x058.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x059.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x05a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x05b.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x05c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x05d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x05e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x05f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x060.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x061.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x062.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x063.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x064.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x065.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x066.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x067.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x068.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x069.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x06a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x06b.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x06c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x06d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x06e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x06f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x070.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x071.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x072.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x073.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x074.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x075.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x076.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x077.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x078.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x079.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x07a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x07b.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x07c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x07d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x07e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x07f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x080.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x081.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x082.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x083.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x084.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x085.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x086.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x087.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x088.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x089.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x08a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x08b.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x08c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x08d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x08e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x08f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x090.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x091.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x092.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x093.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x094.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x095.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x096.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x097.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x098.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x099.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x09a.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x09b.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x09c.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x09d.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x09e.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x09f.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0a0.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0a1.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0a2.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0a3.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0a4.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ac.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ad.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ae.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0af.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b0.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b1.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b2.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b3.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b4.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b5.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b6.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b7.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b8.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0b9.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ba.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0bb.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0bc.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0bd.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0be.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0bf.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c0.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c1.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c2.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c3.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c4.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c5.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c6.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c7.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c8.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0c9.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ca.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0cb.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0cc.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0cd.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ce.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0cf.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d0.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d1.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d2.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d3.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d4.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d5.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d6.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0d7.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0f9.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0fa.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0fb.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0fc.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0fd.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0fe.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x0ff.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x1d4.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x1d5.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x1d6.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x1d7.php", "includes/libraries/anti-xss-master/src/voku/helper/data/x1f1.php", "sources/core.php", "sources/identify.php", "sources/items.queries.php" ]
PHP
{"includes/libraries/anti-xss-master/src/voku/helper/ASCII.php": {"lines_added": 1501, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/UTF8.php": {"lines_added": 14100, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_by_languages.php": {"lines_added": 2950, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_extras_by_languages.php": {"lines_added": 759, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_language_max_key.php": {"lines_added": 65, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/ascii_ord.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/caseFolding_full.php": {"lines_added": 218, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/chr.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/emoji.php": {"lines_added": 7, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/encodings.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/ord.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/transliterator_list.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/utf8_fix.php": {"lines_added": 152, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/win1252_to_utf8.php": {"lines_added": 126, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x000.php": {"lines_added": 16, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x001.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x002.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x003.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x004.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x005.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x006.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x007.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x009.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x00a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x00b.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x00c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x00d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x00e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x00f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x010.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x011.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x012.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x013.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x014.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x015.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x016.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x017.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x018.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x01d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x01e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x01f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x020.php": {"lines_added": 4, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x021.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x022.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x023.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x024.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x025.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x026.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x027.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x028.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x029.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x02a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x02c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x02e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x02f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x030.php": {"lines_added": 9, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x031.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x032.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x033.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x04d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x04e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x04f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x050.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x051.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x052.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x053.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x054.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x055.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x056.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x057.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x058.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x059.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x05a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x05b.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x05c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x05d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x05e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x05f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x060.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x061.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x062.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x063.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x064.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x065.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x066.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x067.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x068.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x069.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x06a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x06b.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x06c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x06d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x06e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x06f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x070.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x071.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x072.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x073.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x074.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x075.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x076.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x077.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x078.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x079.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x07a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x07b.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x07c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x07d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x07e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x07f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x080.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x081.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x082.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x083.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x084.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x085.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x086.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x087.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x088.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x089.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x08a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x08b.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x08c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x08d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x08e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x08f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x090.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x091.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x092.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x093.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x094.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x095.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x096.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x097.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x098.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x099.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x09a.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x09b.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x09c.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x09d.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x09e.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x09f.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0a0.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0a1.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0a2.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0a3.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0a4.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ac.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ad.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ae.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0af.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b0.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b1.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b2.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b3.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b4.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b5.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b6.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b7.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b8.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0b9.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ba.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0bb.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0bc.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0bd.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0be.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0bf.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c0.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c1.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c2.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c3.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c4.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c5.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c6.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c7.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c8.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0c9.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ca.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0cb.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0cc.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0cd.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ce.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0cf.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d0.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d1.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d2.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d3.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d4.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d5.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d6.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0d7.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0f9.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0fa.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0fb.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0fc.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0fd.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0fe.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x0ff.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x1d4.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x1d5.php": {"lines_added": 4, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x1d6.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x1d7.php": {"lines_added": 1, "lines_deleted": 0}, "includes/libraries/anti-xss-master/src/voku/helper/data/x1f1.php": {"lines_added": 2, "lines_deleted": 0}, "sources/core.php": {"lines_added": 2, "lines_deleted": 0}, "sources/identify.php": {"lines_added": 2, "lines_deleted": 0}, "sources/items.queries.php": {"lines_added": 8, "lines_deleted": 2}}
diff --git a/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php b/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php new file mode 100644 index 000000000..6688c27ef --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php @@ -0,0 +1,1501 @@ +<?php + +declare(strict_types=1); + +namespace voku\helper; + +/** + * ## 🇷🇺 Русским гражданам + * В Украине сейчас идет война. Силами РФ наносятся удары по гражданской инфраструктуре в [Харькове][1], [Киеве][2], [Чернигове][3], [Сумах][4], [Ирпене][5] и десятках других городов. Гибнут люди - и гражданское население, и военные, в том числе российские призывники, которых бросили воевать. Чтобы лишить собственный народ доступа к информации, правительство РФ запретило называть войну войной, закрыло независимые СМИ и принимает сейчас ряд диктаторских законов. Эти законы призваны заткнуть рот всем, кто против войны. За обычный призыв к миру сейчас можно получить несколько лет тюрьмы. + * Не молчите! Молчание - знак вашего согласия с политикой российского правительства. + * **Вы можете сделать выбор НЕ МОЛЧАТЬ.** + * --- + * ## 🇺🇸 To people of Russia + * There is a war in Ukraine right now. The forces of the Russian Federation are attacking civilian infrastructure in [Kharkiv][1], [Kyiv][2], [Chernihiv][3], [Sumy][4], [Irpin][5] and dozens of other cities. People are dying – both civilians and military servicemen, including Russian conscripts who were thrown into the fighting. In order to deprive its own people of access to information, the government of the Russian Federation has forbidden calling a war a war, shut down independent media and is passing a number of dictatorial laws. These laws are meant to silence all those who are against war. You can be jailed for multiple years for simply calling for peace. + * Do not be silent! Silence is a sign that you accept the Russian government's policy. + * **You can choose NOT TO BE SILENT.** + * --- + * - [1] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/P7K2MSZDGFMIJPDD7CI2GIROJI.jpg "Kharkiv under attack" + * - [2] https://gdb.voanews.com/01bd0000-0aff-0242-fad0-08d9fc92c5b3_cx0_cy5_cw0_w1023_r1_s.jpg "Kyiv under attack" + * - [3] https://ichef.bbci.co.uk/news/976/cpsprodpb/163DD/production/_123510119_hi074310744.jpg "Chernihiv under attack" + * - [4] https://www.youtube.com/watch?v=8K-bkqKKf2A "Sumy under attack" + * - [5] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/K4MTMLEHTRKGFK3GSKAT4GR3NE.jpg "Irpin under attack" + * + * @psalm-immutable + */ +final class ASCII +{ + // + // INFO: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes + // + + const UZBEK_LANGUAGE_CODE = 'uz'; + + const TURKMEN_LANGUAGE_CODE = 'tk'; + + const THAI_LANGUAGE_CODE = 'th'; + + const PASHTO_LANGUAGE_CODE = 'ps'; + + const ORIYA_LANGUAGE_CODE = 'or'; + + const MONGOLIAN_LANGUAGE_CODE = 'mn'; + + const KOREAN_LANGUAGE_CODE = 'ko'; + + const KIRGHIZ_LANGUAGE_CODE = 'ky'; + + const ARMENIAN_LANGUAGE_CODE = 'hy'; + + const BENGALI_LANGUAGE_CODE = 'bn'; + + const BELARUSIAN_LANGUAGE_CODE = 'be'; + + const AMHARIC_LANGUAGE_CODE = 'am'; + + const JAPANESE_LANGUAGE_CODE = 'ja'; + + const CHINESE_LANGUAGE_CODE = 'zh'; + + const DUTCH_LANGUAGE_CODE = 'nl'; + + const ITALIAN_LANGUAGE_CODE = 'it'; + + const MACEDONIAN_LANGUAGE_CODE = 'mk'; + + const PORTUGUESE_LANGUAGE_CODE = 'pt'; + + const GREEKLISH_LANGUAGE_CODE = 'el__greeklish'; + + const GREEK_LANGUAGE_CODE = 'el'; + + const HINDI_LANGUAGE_CODE = 'hi'; + + const SWEDISH_LANGUAGE_CODE = 'sv'; + + const TURKISH_LANGUAGE_CODE = 'tr'; + + const BULGARIAN_LANGUAGE_CODE = 'bg'; + + const HUNGARIAN_LANGUAGE_CODE = 'hu'; + + const MYANMAR_LANGUAGE_CODE = 'my'; + + const CROATIAN_LANGUAGE_CODE = 'hr'; + + const FINNISH_LANGUAGE_CODE = 'fi'; + + const GEORGIAN_LANGUAGE_CODE = 'ka'; + + const RUSSIAN_LANGUAGE_CODE = 'ru'; + + const RUSSIAN_PASSPORT_2013_LANGUAGE_CODE = 'ru__passport_2013'; + + const RUSSIAN_GOST_2000_B_LANGUAGE_CODE = 'ru__gost_2000_b'; + + const UKRAINIAN_LANGUAGE_CODE = 'uk'; + + const KAZAKH_LANGUAGE_CODE = 'kk'; + + const CZECH_LANGUAGE_CODE = 'cs'; + + const DANISH_LANGUAGE_CODE = 'da'; + + const POLISH_LANGUAGE_CODE = 'pl'; + + const ROMANIAN_LANGUAGE_CODE = 'ro'; + + const ESPERANTO_LANGUAGE_CODE = 'eo'; + + const ESTONIAN_LANGUAGE_CODE = 'et'; + + const LATVIAN_LANGUAGE_CODE = 'lv'; + + const LITHUANIAN_LANGUAGE_CODE = 'lt'; + + const NORWEGIAN_LANGUAGE_CODE = 'no'; + + const VIETNAMESE_LANGUAGE_CODE = 'vi'; + + const ARABIC_LANGUAGE_CODE = 'ar'; + + const PERSIAN_LANGUAGE_CODE = 'fa'; + + const SERBIAN_LANGUAGE_CODE = 'sr'; + + const SERBIAN_CYRILLIC_LANGUAGE_CODE = 'sr__cyr'; + + const SERBIAN_LATIN_LANGUAGE_CODE = 'sr__lat'; + + const AZERBAIJANI_LANGUAGE_CODE = 'az'; + + const SLOVAK_LANGUAGE_CODE = 'sk'; + + const FRENCH_LANGUAGE_CODE = 'fr'; + + const FRENCH_AUSTRIAN_LANGUAGE_CODE = 'fr_at'; + + const FRENCH_SWITZERLAND_LANGUAGE_CODE = 'fr_ch'; + + const GERMAN_LANGUAGE_CODE = 'de'; + + const GERMAN_AUSTRIAN_LANGUAGE_CODE = 'de_at'; + + const GERMAN_SWITZERLAND_LANGUAGE_CODE = 'de_ch'; + + const ENGLISH_LANGUAGE_CODE = 'en'; + + const EXTRA_LATIN_CHARS_LANGUAGE_CODE = 'latin'; + + const EXTRA_WHITESPACE_CHARS_LANGUAGE_CODE = ' '; + + const EXTRA_MSWORD_CHARS_LANGUAGE_CODE = 'msword'; + + /** + * @var array<string, array<string, string>>|null + */ + private static $ASCII_MAPS; + + /** + * @var array<string, array<string, string>>|null + */ + private static $ASCII_MAPS_AND_EXTRAS; + + /** + * @var array<string, array<string, string>>|null + */ + private static $ASCII_EXTRAS; + + /** + * @var array<string, int>|null + */ + private static $ORD; + + /** + * @var array<string, int>|null + */ + private static $LANGUAGE_MAX_KEY; + + /** + * url: https://en.wikipedia.org/wiki/Wikipedia:ASCII#ASCII_printable_characters + * + * @var string + */ + private static $REGEX_ASCII = "[^\x09\x10\x13\x0A\x0D\x20-\x7E]"; + + /** + * bidirectional text chars + * + * url: https://www.w3.org/International/questions/qa-bidi-unicode-controls + * + * @var array<int, string> + */ + private static $BIDI_UNI_CODE_CONTROLS_TABLE = [ + // LEFT-TO-RIGHT EMBEDDING (use -> dir = "ltr") + 8234 => "\xE2\x80\xAA", + // RIGHT-TO-LEFT EMBEDDING (use -> dir = "rtl") + 8235 => "\xE2\x80\xAB", + // POP DIRECTIONAL FORMATTING // (use -> </bdo>) + 8236 => "\xE2\x80\xAC", + // LEFT-TO-RIGHT OVERRIDE // (use -> <bdo dir = "ltr">) + 8237 => "\xE2\x80\xAD", + // RIGHT-TO-LEFT OVERRIDE // (use -> <bdo dir = "rtl">) + 8238 => "\xE2\x80\xAE", + // LEFT-TO-RIGHT ISOLATE // (use -> dir = "ltr") + 8294 => "\xE2\x81\xA6", + // RIGHT-TO-LEFT ISOLATE // (use -> dir = "rtl") + 8295 => "\xE2\x81\xA7", + // FIRST STRONG ISOLATE // (use -> dir = "auto") + 8296 => "\xE2\x81\xA8", + // POP DIRECTIONAL ISOLATE + 8297 => "\xE2\x81\xA9", + ]; + + /** + * Get all languages from the constants "ASCII::.*LANGUAGE_CODE". + * + * @return string[] + * + * @phpstan-return array<string, string> + */ + public static function getAllLanguages(): array + { + // init + static $LANGUAGES = []; + + if ($LANGUAGES !== []) { + return $LANGUAGES; + } + + foreach ((new \ReflectionClass(__CLASS__))->getConstants() as $constant => $lang) { + if (\strpos($constant, 'EXTRA') !== false) { + $LANGUAGES[\strtolower($constant)] = $lang; + } else { + $LANGUAGES[\strtolower(\str_replace('_LANGUAGE_CODE', '', $constant))] = $lang; + } + } + + return $LANGUAGES; + } + + /** + * Returns an replacement array for ASCII methods. + * + * EXAMPLE: <code> + * $array = ASCII::charsArray(); + * var_dump($array['ru']['б']); // 'b' + * </code> + * + * @psalm-suppress InvalidNullableReturnType - we use the prepare* methods here, so we don't get NULL here + * + * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> + * + * @psalm-pure + * + * @return array + * + * @phpstan-return array<string, array<string , string>> + */ + public static function charsArray(bool $replace_extra_symbols = false): array + { + if ($replace_extra_symbols) { + self::prepareAsciiAndExtrasMaps(); + + return self::$ASCII_MAPS_AND_EXTRAS ?? []; + } + + self::prepareAsciiMaps(); + + return self::$ASCII_MAPS ?? []; + } + + /** + * Returns an replacement array for ASCII methods with a mix of multiple languages. + * + * EXAMPLE: <code> + * $array = ASCII::charsArrayWithMultiLanguageValues(); + * var_dump($array['b']); // ['β', 'б', 'ဗ', 'ბ', 'ب'] + * </code> + * + * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> + * + * @psalm-pure + * + * @return array + * <p>An array of replacements.</p> + * + * @phpstan-return array<string, array<int, string>> + */ + public static function charsArrayWithMultiLanguageValues(bool $replace_extra_symbols = false): array + { + /** @var array<string, array<string, array<int, string>>> */ + static $CHARS_ARRAY = []; + $cacheKey = '' . $replace_extra_symbols; + + if (isset($CHARS_ARRAY[$cacheKey])) { + return $CHARS_ARRAY[$cacheKey]; + } + + // init + $return = []; + $language_all_chars = self::charsArrayWithSingleLanguageValues( + $replace_extra_symbols, + false + ); + + /** @noinspection PhpSillyAssignmentInspection - hack for phpstan */ + /** @var array<string, string> $language_all_chars */ + $language_all_chars = $language_all_chars; + + /** @noinspection AlterInForeachInspection */ + foreach ($language_all_chars as $key => &$value) { + $return[$value][] = $key; + } + + $CHARS_ARRAY[$cacheKey] = $return; + + /** @var array<string, array<int, string>> $return - hack for phpstan */ + return $return; + } + + /** + * Returns an replacement array for ASCII methods with one language. + * + * For example, German will map 'ä' to 'ae', while other languages + * will simply return e.g. 'a'. + * + * EXAMPLE: <code> + * $array = ASCII::charsArrayWithOneLanguage('ru'); + * $tmpKey = \array_search('yo', $array['replace']); + * echo $array['orig'][$tmpKey]; // 'ё' + * </code> + * + * @psalm-suppress InvalidNullableReturnType - we use the prepare* methods here, so we don't get NULL here + * + * @param string $language [optional] <p>Language of the source string e.g.: en, de_at, or de-ch. + * (default is 'en') | ASCII::*_LANGUAGE_CODE</p> + * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> + * @param bool $asOrigReplaceArray [optional] <p>TRUE === return {orig: string[], replace: string[]} + * array</p> + * + * @psalm-pure + * + * @return array + * <p>An array of replacements.</p> + * + * @phpstan-param ASCII::*_LANGUAGE_CODE $language + * @phpstan-return array{orig: string[], replace: string[]}|array<string, string> + */ + public static function charsArrayWithOneLanguage( + string $language = self::ENGLISH_LANGUAGE_CODE, + bool $replace_extra_symbols = false, + bool $asOrigReplaceArray = true + ): array { + $language = self::get_language($language); + + // init + /** @var array<string, array<string, array<string, string>|array{orig: string[], replace: string[]}>> */ + static $CHARS_ARRAY = []; + $cacheKey = '' . $replace_extra_symbols . '-' . $asOrigReplaceArray; + + // check static cache + if (isset($CHARS_ARRAY[$cacheKey][$language])) { + return $CHARS_ARRAY[$cacheKey][$language]; + } + + if ($replace_extra_symbols) { + self::prepareAsciiAndExtrasMaps(); + + /** @noinspection DuplicatedCode */ + if (isset(self::$ASCII_MAPS_AND_EXTRAS[$language])) { + $tmpArray = self::$ASCII_MAPS_AND_EXTRAS[$language]; + + if ($asOrigReplaceArray) { + $CHARS_ARRAY[$cacheKey][$language] = [ + 'orig' => \array_keys($tmpArray), + 'replace' => \array_values($tmpArray), + ]; + } else { + $CHARS_ARRAY[$cacheKey][$language] = $tmpArray; + } + } else { + /** @noinspection NestedPositiveIfStatementsInspection */ + if ($asOrigReplaceArray) { + $CHARS_ARRAY[$cacheKey][$language] = [ + 'orig' => [], + 'replace' => [], + ]; + } else { + $CHARS_ARRAY[$cacheKey][$language] = []; + } + } + } else { + self::prepareAsciiMaps(); + + /** @noinspection DuplicatedCode */ + if (isset(self::$ASCII_MAPS[$language])) { + $tmpArray = self::$ASCII_MAPS[$language]; + + if ($asOrigReplaceArray) { + $CHARS_ARRAY[$cacheKey][$language] = [ + 'orig' => \array_keys($tmpArray), + 'replace' => \array_values($tmpArray), + ]; + } else { + $CHARS_ARRAY[$cacheKey][$language] = $tmpArray; + } + } else { + /** @noinspection NestedPositiveIfStatementsInspection */ + if ($asOrigReplaceArray) { + $CHARS_ARRAY[$cacheKey][$language] = [ + 'orig' => [], + 'replace' => [], + ]; + } else { + $CHARS_ARRAY[$cacheKey][$language] = []; + } + } + } + + return $CHARS_ARRAY[$cacheKey][$language] ?? ['orig' => [], 'replace' => []]; + } + + /** + * Returns an replacement array for ASCII methods with multiple languages. + * + * EXAMPLE: <code> + * $array = ASCII::charsArrayWithSingleLanguageValues(); + * $tmpKey = \array_search('hnaik', $array['replace']); + * echo $array['orig'][$tmpKey]; // '၌' + * </code> + * + * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> + * @param bool $asOrigReplaceArray [optional] <p>TRUE === return {orig: string[], replace: string[]} + * array</p> + * + * @psalm-pure + * + * @return array + * <p>An array of replacements.</p> + * + * @phpstan-return array{orig: string[], replace: string[]}|array<string, string> + */ + public static function charsArrayWithSingleLanguageValues( + bool $replace_extra_symbols = false, + bool $asOrigReplaceArray = true + ): array { + // init + /** @var array<string, array<string, string>|array{orig: string[], replace: string[]}> */ + static $CHARS_ARRAY = []; + $cacheKey = '' . $replace_extra_symbols . '-' . $asOrigReplaceArray; + + if (isset($CHARS_ARRAY[$cacheKey])) { + return $CHARS_ARRAY[$cacheKey]; + } + + if ($replace_extra_symbols) { + self::prepareAsciiAndExtrasMaps(); + + /** @noinspection AlterInForeachInspection */ + /** @psalm-suppress PossiblyNullIterator - we use the prepare* methods here, so we don't get NULL here */ + foreach (self::$ASCII_MAPS_AND_EXTRAS ?? [] as &$map) { + $CHARS_ARRAY[$cacheKey][] = $map; + } + } else { + self::prepareAsciiMaps(); + + /** @noinspection AlterInForeachInspection */ + /** @psalm-suppress PossiblyNullIterator - we use the prepare* methods here, so we don't get NULL here */ + foreach (self::$ASCII_MAPS ?? [] as &$map) { + $CHARS_ARRAY[$cacheKey][] = $map; + } + } + + /** @phpstan-ignore-next-line - ... error? */ + $CHARS_ARRAY[$cacheKey] = \array_merge([], ...$CHARS_ARRAY[$cacheKey]); + + if ($asOrigReplaceArray) { + $CHARS_ARRAY[$cacheKey] = [ + 'orig' => \array_keys($CHARS_ARRAY[$cacheKey]), + 'replace' => \array_values($CHARS_ARRAY[$cacheKey]), + ]; + } + + return $CHARS_ARRAY[$cacheKey]; + } + + /** + * Accepts a string and removes all non-UTF-8 characters from it + extras if needed. + * + * @param string $str <p>The string to be sanitized.</p> + * @param bool $normalize_whitespace [optional] <p>Set to true, if you need to normalize the + * whitespace.</p> + * @param bool $normalize_msword [optional] <p>Set to true, if you need to normalize MS Word chars + * e.g.: "…" + * => "..."</p> + * @param bool $keep_non_breaking_space [optional] <p>Set to true, to keep non-breaking-spaces, in + * combination with + * $normalize_whitespace</p> + * @param bool $remove_invisible_characters [optional] <p>Set to false, if you not want to remove invisible + * characters e.g.: "\0"</p> + * + * @psalm-pure + * + * @return string + * <p>A clean UTF-8 string.</p> + */ + public static function clean( + string $str, + bool $normalize_whitespace = true, + bool $keep_non_breaking_space = false, + bool $normalize_msword = true, + bool $remove_invisible_characters = true + ): string { + // http://stackoverflow.com/questions/1401317/remove-non-utf8-characters-from-string + // caused connection reset problem on larger strings + + $regex = '/ + ( + (?: [\x00-\x7F] # single-byte sequences 0xxxxxxx + | [\xC0-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx + | [\xE0-\xEF][\x80-\xBF]{2} # triple-byte sequences 1110xxxx 10xxxxxx * 2 + | [\xF0-\xF7][\x80-\xBF]{3} # quadruple-byte sequence 11110xxx 10xxxxxx * 3 + ){1,100} # ...one or more times + ) + | ( [\x80-\xBF] ) # invalid byte in range 10000000 - 10111111 + | ( [\xC0-\xFF] ) # invalid byte in range 11000000 - 11111111 + /x'; + $str = (string) \preg_replace($regex, '$1', $str); + + if ($normalize_whitespace) { + $str = self::normalize_whitespace($str, $keep_non_breaking_space); + } + + if ($normalize_msword) { + $str = self::normalize_msword($str); + } + + if ($remove_invisible_characters) { + $str = self::remove_invisible_characters($str); + } + + return $str; + } + + /** + * Checks if a string is 7 bit ASCII. + * + * EXAMPLE: <code> + * ASCII::is_ascii('白'); // false + * </code> + * + * @param string $str <p>The string to check.</p> + * + * @psalm-pure + * + * @return bool + * <p> + * <strong>true</strong> if it is ASCII<br> + * <strong>false</strong> otherwise + * </p> + */ + public static function is_ascii(string $str): bool + { + if ($str === '') { + return true; + } + + return !\preg_match('/' . self::$REGEX_ASCII . '/', $str); + } + + /** + * Returns a string with smart quotes, ellipsis characters, and dashes from + * Windows-1252 (commonly used in Word documents) replaced by their ASCII + * equivalents. + * + * EXAMPLE: <code> + * ASCII::normalize_msword('„Abcdef…”'); // '"Abcdef..."' + * </code> + * + * @param string $str <p>The string to be normalized.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with normalized characters for commonly used chars in Word documents.</p> + */ + public static function normalize_msword(string $str): string + { + if ($str === '') { + return ''; + } + + /** @var array{orig: string[], replace: string[]} */ + static $MSWORD_CACHE = ['orig' => [], 'replace' => []]; + + if (empty($MSWORD_CACHE['orig'])) { + self::prepareAsciiMaps(); + + /** @var array<string, string> */ + $map = self::$ASCII_MAPS[self::EXTRA_MSWORD_CHARS_LANGUAGE_CODE] ?? []; + + $MSWORD_CACHE = [ + 'orig' => \array_keys($map), + 'replace' => \array_values($map), + ]; + } + + return \str_replace($MSWORD_CACHE['orig'], $MSWORD_CACHE['replace'], $str); + } + + /** + * Normalize the whitespace. + * + * EXAMPLE: <code> + * ASCII::normalize_whitespace("abc-\xc2\xa0-öäü-\xe2\x80\xaf-\xE2\x80\xAC", true); // "abc-\xc2\xa0-öäü- -" + * </code> + * + * @param string $str <p>The string to be normalized.</p> + * @param bool $keepNonBreakingSpace [optional] <p>Set to true, to keep non-breaking-spaces.</p> + * @param bool $keepBidiUnicodeControls [optional] <p>Set to true, to keep non-printable (for the web) + * bidirectional text chars.</p> + * @param bool $normalize_control_characters [optional] <p>Set to true, to convert e.g. LINE-, PARAGRAPH-SEPARATOR with "\n" and LINE TABULATION with "\t".</p> + * + * @psalm-pure + * + * @return string + * <p>A string with normalized whitespace.</p> + */ + public static function normalize_whitespace( + string $str, + bool $keepNonBreakingSpace = false, + bool $keepBidiUnicodeControls = false, + bool $normalize_control_characters = false + ): string { + if ($str === '') { + return ''; + } + + /** @var array<int,array<string,string>> */ + static $WHITESPACE_CACHE = []; + $cacheKey = (int) $keepNonBreakingSpace; + + if ($normalize_control_characters) { + $str = \str_replace( + [ + "\x0d\x0c", // 'END OF LINE' + "\xe2\x80\xa8", // 'LINE SEPARATOR' + "\xe2\x80\xa9", // 'PARAGRAPH SEPARATOR' + "\x0c", // 'FORM FEED' // "\f" + "\x0b", // 'VERTICAL TAB' // "\v" + ], + [ + "\n", + "\n", + "\n", + "\n", + "\t", + ], + $str + ); + } + + if (!isset($WHITESPACE_CACHE[$cacheKey])) { + self::prepareAsciiMaps(); + + $WHITESPACE_CACHE[$cacheKey] = self::$ASCII_MAPS[self::EXTRA_WHITESPACE_CHARS_LANGUAGE_CODE] ?? []; + + if ($keepNonBreakingSpace) { + unset($WHITESPACE_CACHE[$cacheKey]["\xc2\xa0"]); + } + + $WHITESPACE_CACHE[$cacheKey] = array_keys($WHITESPACE_CACHE[$cacheKey]); + } + + if (!$keepBidiUnicodeControls) { + /** @var array<int,string>|null */ + static $BIDI_UNICODE_CONTROLS_CACHE = null; + + if ($BIDI_UNICODE_CONTROLS_CACHE === null) { + $BIDI_UNICODE_CONTROLS_CACHE = self::$BIDI_UNI_CODE_CONTROLS_TABLE; + } + + $str = \str_replace($BIDI_UNICODE_CONTROLS_CACHE, '', $str); + } + + return \str_replace($WHITESPACE_CACHE[$cacheKey], ' ', $str); + } + + /** + * Remove invisible characters from a string. + * + * e.g.: This prevents sandwiching null characters between ascii characters, like Java\0script. + * + * copy&past from https://github.com/bcit-ci/CodeIgniter/blob/develop/system/core/Common.php + * + * @param string $str + * @param bool $url_encoded + * @param string $replacement + * @param bool $keep_basic_control_characters + * + * @psalm-pure + * + * @return string + */ + public static function remove_invisible_characters( + string $str, + bool $url_encoded = false, + string $replacement = '', + bool $keep_basic_control_characters = true + ): string { + // init + $non_displayables = []; + + // every control character except: + // - newline (dec 10), + // - carriage return (dec 13), + // - horizontal tab (dec 09) + if ($url_encoded) { + $non_displayables[] = '/%0[0-8bcefBCEF]/'; // url encoded 00-08, 11, 12, 14, 15 + $non_displayables[] = '/%1[0-9a-fA-F]/'; // url encoded 16-31 + } + + if ($keep_basic_control_characters) { + $non_displayables[] = '/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'; // 00-08, 11, 12, 14-31, 127 + } else { + $str = self::normalize_whitespace($str, false, false, true); + $non_displayables[] = '/[^\P{C}\s]/u'; + } + + do { + $str = (string) \preg_replace($non_displayables, $replacement, $str, -1, $count); + } while ($count !== 0); + + return $str; + } + + /** + * WARNING: This method will return broken characters and is only for special cases. + * + * Convert two UTF-8 encoded string to a single-byte strings suitable for + * functions that need the same string length after the conversion. + * + * The function simply uses (and updates) a tailored dynamic encoding + * (in/out map parameter) where non-ascii characters are remapped to + * the range [128-255] in order of appearance. + * + * @param string $str1 + * @param string $str2 + * + * @return string[] + * + * @phpstan-return array{0: string, 1: string} + */ + public static function to_ascii_remap(string $str1, string $str2): array + { + $charMap = []; + $str1 = self::to_ascii_remap_intern($str1, $charMap); + $str2 = self::to_ascii_remap_intern($str2, $charMap); + + return [$str1, $str2]; + } + + /** + * Returns an ASCII version of the string. A set of non-ASCII characters are + * replaced with their closest ASCII counterparts, and the rest are removed + * by default. The language or locale of the source string can be supplied + * for language-specific transliteration in any of the following formats: + * en, en_GB, or en-GB. For example, passing "de" results in "äöü" mapping + * to "aeoeue" rather than "aou" as in other languages. + * + * EXAMPLE: <code> + * ASCII::to_ascii('�Düsseldorf�', 'en'); // Dusseldorf + * </code> + * + * @param string $str <p>The input string.</p> + * @param string $language [optional] <p>Language of the source string. + * (default is 'en') | ASCII::*_LANGUAGE_CODE</p> + * @param bool $remove_unsupported_chars [optional] <p>Whether or not to remove the + * unsupported characters.</p> + * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound + * ".</p> + * @param bool $use_transliterate [optional] <p>Use ASCII::to_transliterate() for unknown chars.</p> + * @param bool|null $replace_single_chars_only [optional] <p>Single char replacement is better for the + * performance, but some languages need to replace more then one char + * at the same time. | NULL === auto-setting, depended on the + * language</p> + * + * @psalm-pure + * + * @return string + * <p>A string that contains only ASCII characters.</p> + * + * @phpstan-param ASCII::*_LANGUAGE_CODE $language + */ + public static function to_ascii( + string $str, + string $language = self::ENGLISH_LANGUAGE_CODE, + bool $remove_unsupported_chars = true, + bool $replace_extra_symbols = false, + bool $use_transliterate = false, + bool $replace_single_chars_only = null + ): string { + if ($str === '') { + return ''; + } + + /** @phpstan-var ASCII::*_LANGUAGE_CODE - hack for phpstan */ + $language = self::get_language($language); + + static $EXTRA_SYMBOLS_CACHE = null; + + /** @var array<string,array<string,string>> */ + static $REPLACE_HELPER_CACHE = []; + $cacheKey = $language . '-' . $replace_extra_symbols; + + if (!isset($REPLACE_HELPER_CACHE[$cacheKey])) { + $langAll = self::charsArrayWithSingleLanguageValues($replace_extra_symbols, false); + + $langSpecific = self::charsArrayWithOneLanguage($language, $replace_extra_symbols, false); + + if ($langSpecific === []) { + $REPLACE_HELPER_CACHE[$cacheKey] = $langAll; + } else { + $REPLACE_HELPER_CACHE[$cacheKey] = \array_merge([], $langAll, $langSpecific); + } + } + + if ( + $replace_extra_symbols + && + $EXTRA_SYMBOLS_CACHE === null + ) { + $EXTRA_SYMBOLS_CACHE = []; + foreach (self::$ASCII_EXTRAS ?? [] as $extrasDataTmp) { + foreach ($extrasDataTmp as $extrasDataKeyTmp => $extrasDataValueTmp) { + $EXTRA_SYMBOLS_CACHE[$extrasDataKeyTmp] = $extrasDataKeyTmp; + } + } + $EXTRA_SYMBOLS_CACHE = \implode('', $EXTRA_SYMBOLS_CACHE); + } + + $charDone = []; + if (\preg_match_all('/' . self::$REGEX_ASCII . ($replace_extra_symbols ? '|[' . $EXTRA_SYMBOLS_CACHE . ']' : '') . '/u', $str, $matches)) { + if (!$replace_single_chars_only) { + if (self::$LANGUAGE_MAX_KEY === null) { + self::$LANGUAGE_MAX_KEY = self::getData('ascii_language_max_key'); + } + + $maxKeyLength = self::$LANGUAGE_MAX_KEY[$language] ?? 0; + + if ($maxKeyLength >= 5) { + foreach ($matches[0] as $keyTmp => $char) { + if (isset($matches[0][$keyTmp + 4])) { + $fiveChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1] . $matches[0][$keyTmp + 2] . $matches[0][$keyTmp + 3] . $matches[0][$keyTmp + 4]; + } else { + $fiveChars = null; + } + if ( + $fiveChars + && + !isset($charDone[$fiveChars]) + && + isset($REPLACE_HELPER_CACHE[$cacheKey][$fiveChars]) + && + \strpos($str, $fiveChars) !== false + ) { + // DEBUG + //\var_dump($str, $fiveChars, $REPLACE_HELPER_CACHE[$cacheKey][$fiveChars]); + + $charDone[$fiveChars] = true; + $str = \str_replace($fiveChars, $REPLACE_HELPER_CACHE[$cacheKey][$fiveChars], $str); + + // DEBUG + //\var_dump($str, "\n"); + } + } + } + + if ($maxKeyLength >= 4) { + foreach ($matches[0] as $keyTmp => $char) { + if (isset($matches[0][$keyTmp + 3])) { + $fourChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1] . $matches[0][$keyTmp + 2] . $matches[0][$keyTmp + 3]; + } else { + $fourChars = null; + } + if ( + $fourChars + && + !isset($charDone[$fourChars]) + && + isset($REPLACE_HELPER_CACHE[$cacheKey][$fourChars]) + && + \strpos($str, $fourChars) !== false + ) { + // DEBUG + //\var_dump($str, $fourChars, $REPLACE_HELPER_CACHE[$cacheKey][$fourChars]); + + $charDone[$fourChars] = true; + $str = \str_replace($fourChars, $REPLACE_HELPER_CACHE[$cacheKey][$fourChars], $str); + + // DEBUG + //\var_dump($str, "\n"); + } + } + } + + foreach ($matches[0] as $keyTmp => $char) { + if (isset($matches[0][$keyTmp + 2])) { + $threeChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1] . $matches[0][$keyTmp + 2]; + } else { + $threeChars = null; + } + if ( + $threeChars + && + !isset($charDone[$threeChars]) + && + isset($REPLACE_HELPER_CACHE[$cacheKey][$threeChars]) + && + \strpos($str, $threeChars) !== false + ) { + // DEBUG + //\var_dump($str, $threeChars, $REPLACE_HELPER_CACHE[$cacheKey][$threeChars]); + + $charDone[$threeChars] = true; + $str = \str_replace($threeChars, $REPLACE_HELPER_CACHE[$cacheKey][$threeChars], $str); + + // DEBUG + //\var_dump($str, "\n"); + } + } + + foreach ($matches[0] as $keyTmp => $char) { + if (isset($matches[0][$keyTmp + 1])) { + $twoChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1]; + } else { + $twoChars = null; + } + if ( + $twoChars + && + !isset($charDone[$twoChars]) + && + isset($REPLACE_HELPER_CACHE[$cacheKey][$twoChars]) + && + \strpos($str, $twoChars) !== false + ) { + // DEBUG + //\var_dump($str, $twoChars, $REPLACE_HELPER_CACHE[$cacheKey][$twoChars]); + + $charDone[$twoChars] = true; + $str = \str_replace($twoChars, $REPLACE_HELPER_CACHE[$cacheKey][$twoChars], $str); + + // DEBUG + //\var_dump($str, "\n"); + } + } + } + + foreach ($matches[0] as $char) { + if ( + !isset($charDone[$char]) + && + isset($REPLACE_HELPER_CACHE[$cacheKey][$char]) + && + \strpos($str, $char) !== false + ) { + // DEBUG + //\var_dump($str, $char, $REPLACE_HELPER_CACHE[$cacheKey][$char]); + + $charDone[$char] = true; + $str = \str_replace($char, $REPLACE_HELPER_CACHE[$cacheKey][$char], $str); + + // DEBUG + //\var_dump($str, "\n"); + } + } + } + + /** @psalm-suppress PossiblyNullOperand - we use the prepare* methods here, so we don't get NULL here */ + if (!isset(self::$ASCII_MAPS[$language])) { + $use_transliterate = true; + } + + if ($use_transliterate) { + $str = self::to_transliterate($str, null, false); + } + + if ($remove_unsupported_chars) { + $str = (string) \str_replace(["\n\r", "\n", "\r", "\t"], ' ', $str); + $str = (string) \preg_replace('/' . self::$REGEX_ASCII . '/', '', $str); + } + + return $str; + } + + /** + * Convert given string to safe filename (and keep string case). + * + * EXAMPLE: <code> + * ASCII::to_filename('שדגשדג.png', true)); // 'shdgshdg.png' + * </code> + * + * @param string $str + * @param bool $use_transliterate <p>ASCII::to_transliterate() is used by default - unsafe characters are + * simply replaced with hyphen otherwise.</p> + * @param string $fallback_char + * + * @psalm-pure + * + * @return string + * <p>A string that contains only safe characters for a filename.</p> + */ + public static function to_filename( + string $str, + bool $use_transliterate = true, + string $fallback_char = '-' + ): string { + if ($use_transliterate) { + $str = self::to_transliterate($str, $fallback_char); + } + + $fallback_char_escaped = \preg_quote($fallback_char, '/'); + + $str = (string) \preg_replace( + [ + '/[^' . $fallback_char_escaped . '.\\-a-zA-Z\d\\s]/', // 1) remove un-needed chars + '/\s+/u', // 2) convert spaces to $fallback_char + '/[' . $fallback_char_escaped . ']+/u', // 3) remove double $fallback_char's + ], + [ + '', + $fallback_char, + $fallback_char, + ], + $str + ); + + return \trim($str, $fallback_char); + } + + /** + * Converts the string into an URL slug. This includes replacing non-ASCII + * characters with their closest ASCII equivalents, removing remaining + * non-ASCII and non-alphanumeric characters, and replacing whitespace with + * $separator. The separator defaults to a single dash, and the string + * is also converted to lowercase. The language of the source string can + * also be supplied for language-specific transliteration. + * + * @param string $str + * @param string $separator [optional] <p>The string used to replace whitespace.</p> + * @param string $language [optional] <p>Language of the source string. + * (default is 'en') | ASCII::*_LANGUAGE_CODE</p> + * @param array<string, string> $replacements [optional] <p>A map of replaceable strings.</p> + * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " + * pound ".</p> + * @param bool $use_str_to_lower [optional] <p>Use "string to lower" for the input.</p> + * @param bool $use_transliterate [optional] <p>Use ASCII::to_transliterate() for unknown + * chars.</p> + * @psalm-pure + * + * @return string + * <p>A string that has been converted to an URL slug.</p> + * + * @phpstan-param ASCII::*_LANGUAGE_CODE $language + */ + public static function to_slugify( + string $str, + string $separator = '-', + string $language = self::ENGLISH_LANGUAGE_CODE, + array $replacements = [], + bool $replace_extra_symbols = false, + bool $use_str_to_lower = true, + bool $use_transliterate = false + ): string { + if ($str === '') { + return ''; + } + + foreach ($replacements as $from => $to) { + $str = \str_replace($from, $to, $str); + } + + $str = self::to_ascii( + $str, + $language, + false, + $replace_extra_symbols, + $use_transliterate + ); + + $str = \str_replace('@', $separator, $str); + + $str = (string) \preg_replace( + '/[^a-zA-Z\\d\\s\\-_' . \preg_quote($separator, '/') . ']/', + '', + $str + ); + + if ($use_str_to_lower) { + $str = \strtolower($str); + } + + $str = (string) \preg_replace('/^[\'\\s]+|[\'\\s]+$/', '', $str); + $str = (string) \preg_replace('/\\B([A-Z])/', '-\1', $str); + $str = (string) \preg_replace('/[\\-_\\s]+/', $separator, $str); + + $l = \strlen($separator); + if ($l && \strpos($str, $separator) === 0) { + $str = (string) \substr($str, $l); + } + + if (\substr($str, -$l) === $separator) { + $str = (string) \substr($str, 0, \strlen($str) - $l); + } + + return $str; + } + + /** + * Returns an ASCII version of the string. A set of non-ASCII characters are + * replaced with their closest ASCII counterparts, and the rest are removed + * unless instructed otherwise. + * + * EXAMPLE: <code> + * ASCII::to_transliterate('déjà σσς iıii'); // 'deja sss iiii' + * </code> + * + * @param string $str <p>The input string.</p> + * @param string|null $unknown [optional] <p>Character use if character unknown. (default is '?') + * But you can also use NULL to keep the unknown chars.</p> + * @param bool $strict [optional] <p>Use "transliterator_transliterate()" from PHP-Intl + * + * @psalm-pure + * + * @return string + * <p>A String that contains only ASCII characters.</p> + * + * @noinspection ParameterDefaultValueIsNotNullInspection + */ + public static function to_transliterate( + string $str, + $unknown = '?', + bool $strict = false + ): string { + /** @var array<int,string>|null */ + static $UTF8_TO_TRANSLIT = null; + + /** null|\Transliterator */ + static $TRANSLITERATOR = null; + + /** @var bool|null */ + static $SUPPORT_INTL = null; + + if ($str === '') { + return ''; + } + + if ($SUPPORT_INTL === null) { + $SUPPORT_INTL = \extension_loaded('intl'); + } + + // check if we only have ASCII, first (better performance) + $str_tmp = $str; + if (self::is_ascii($str)) { + return $str; + } + + $str = self::clean($str); + + // check again, if we only have ASCII, now ... + if ( + $str_tmp !== $str + && + self::is_ascii($str) + ) { + return $str; + } + + if ( + $strict + && + $SUPPORT_INTL === true + ) { + if (!isset($TRANSLITERATOR)) { + // INFO: see "*-Latin" rules via "transliterator_list_ids()" + /** @var \Transliterator */ + $TRANSLITERATOR = \transliterator_create('NFKC; [:Nonspacing Mark:] Remove; NFKC; Any-Latin; Latin-ASCII;'); + } + + // INFO: https://unicode.org/cldr/utility/character.jsp + $str_tmp = \transliterator_transliterate($TRANSLITERATOR, $str); + + if ($str_tmp !== false) { + + // check again, if we only have ASCII, now ... + if ( + $str_tmp !== $str + && + self::is_ascii($str_tmp) + ) { + return $str_tmp; + } + + $str = $str_tmp; + } + } + + if (self::$ORD === null) { + self::$ORD = self::getData('ascii_ord'); + } + + \preg_match_all('/.|[^\x00]$/us', $str, $array_tmp); + $chars = $array_tmp[0]; + $ord = null; + $str_tmp = ''; + foreach ($chars as &$c) { + $ordC0 = self::$ORD[$c[0]]; + + if ($ordC0 >= 0 && $ordC0 <= 127) { + $str_tmp .= $c; + + continue; + } + + $ordC1 = self::$ORD[$c[1]]; + + // ASCII - next please + if ($ordC0 >= 192 && $ordC0 <= 223) { + $ord = ($ordC0 - 192) * 64 + ($ordC1 - 128); + } + + if ($ordC0 >= 224) { + $ordC2 = self::$ORD[$c[2]]; + + if ($ordC0 <= 239) { + $ord = ($ordC0 - 224) * 4096 + ($ordC1 - 128) * 64 + ($ordC2 - 128); + } + + if ($ordC0 >= 240) { + $ordC3 = self::$ORD[$c[3]]; + + if ($ordC0 <= 247) { + $ord = ($ordC0 - 240) * 262144 + ($ordC1 - 128) * 4096 + ($ordC2 - 128) * 64 + ($ordC3 - 128); + } + + // We only process valid UTF-8 chars (<= 4 byte), so we don't need this code here ... + /* + if ($ordC0 >= 248) { + $ordC4 = self::$ORD[$c[4]]; + + if ($ordC0 <= 251) { + $ord = ($ordC0 - 248) * 16777216 + ($ordC1 - 128) * 262144 + ($ordC2 - 128) * 4096 + ($ordC3 - 128) * 64 + ($ordC4 - 128); + } + + if ($ordC0 >= 252) { + $ordC5 = self::$ORD[$c[5]]; + + if ($ordC0 <= 253) { + $ord = ($ordC0 - 252) * 1073741824 + ($ordC1 - 128) * 16777216 + ($ordC2 - 128) * 262144 + ($ordC3 - 128) * 4096 + ($ordC4 - 128) * 64 + ($ordC5 - 128); + } + } + } + */ + } + } + + if ( + $ordC0 === 254 + || + $ordC0 === 255 + || + $ord === null + ) { + $str_tmp .= $unknown ?? $c; + + continue; + } + + $bank = $ord >> 8; + if (!isset($UTF8_TO_TRANSLIT[$bank])) { + $UTF8_TO_TRANSLIT[$bank] = self::getDataIfExists(\sprintf('x%03x', $bank)); + } + + $new_char = $ord & 255; + + if (isset($UTF8_TO_TRANSLIT[$bank][$new_char])) { + + // keep for debugging + /* + echo "file: " . sprintf('x%02x', $bank) . "\n"; + echo "char: " . $c . "\n"; + echo "ord: " . $ord . "\n"; + echo "new_char: " . $new_char . "\n"; + echo "new_char: " . mb_chr($new_char) . "\n"; + echo "ascii: " . $UTF8_TO_TRANSLIT[$bank][$new_char] . "\n"; + echo "bank:" . $bank . "\n\n"; + */ + + $new_char = $UTF8_TO_TRANSLIT[$bank][$new_char]; + + /** @noinspection MissingOrEmptyGroupStatementInspection */ + /** @noinspection PhpStatementHasEmptyBodyInspection */ + if ($unknown === null && $new_char === '') { + // nothing + } elseif ( + $new_char === '[?]' + || + $new_char === '[?] ' + ) { + $c = $unknown ?? $c; + } else { + $c = $new_char; + } + } else { + + // keep for debugging missing chars + /* + echo "file: " . sprintf('x%02x', $bank) . "\n"; + echo "char: " . $c . "\n"; + echo "ord: " . $ord . "\n"; + echo "new_char: " . $new_char . "\n"; + echo "new_char: " . mb_chr($new_char) . "\n"; + echo "bank:" . $bank . "\n\n"; + */ + + $c = $unknown ?? $c; + } + + $str_tmp .= $c; + } + + return $str_tmp; + } + + /** + * WARNING: This method will return broken characters and is only for special cases. + * + * Convert a UTF-8 encoded string to a single-byte string suitable for + * functions that need the same string length after the conversion. + * + * The function simply uses (and updates) a tailored dynamic encoding + * (in/out map parameter) where non-ascii characters are remapped to + * the range [128-255] in order of appearance. + * + * Thus, it supports up to 128 different multibyte code points max over + * the whole set of strings sharing this encoding. + * + * Source: https://github.com/KEINOS/mb_levenshtein + * + * @param string $str <p>UTF-8 string to be converted to extended ASCII.</p> + * @param array $map <p>Internal-Map of code points to ASCII characters.</p> + * + * @return string + * <p>Mapped borken string.</p> + * + * @phpstan-param array<string, string> $map + */ + private static function to_ascii_remap_intern(string $str, array &$map): string + { + // find all utf-8 characters + $matches = []; + if (!\preg_match_all('/[\xC0-\xF7][\x80-\xBF]+/', $str, $matches)) { + return $str; // plain ascii string + } + + // update the encoding map with the characters not already met + $mapCount = \count($map); + foreach ($matches[0] as $mbc) { + if (!isset($map[$mbc])) { + $map[$mbc] = \chr(128 + $mapCount); + ++$mapCount; + } + } + + // finally, remap non-ascii characters + return \strtr($str, $map); + } + + /** + * Get the language from a string. + * + * e.g.: de_at -> de_at + * de_DE -> de + * DE_DE -> de + * de-de -> de + * + * @noinspection ReturnTypeCanBeDeclaredInspection + * + * @param string $language + * + * @psalm-pure + * + * @return string + */ + private static function get_language(string $language) + { + if ($language === '') { + return ''; + } + + if ( + \strpos($language, '_') === false + && + \strpos($language, '-') === false + ) { + return \strtolower($language); + } + + $language = \str_replace('-', '_', \strtolower($language)); + + $regex = '/(?<first>[a-z]+)_\g{first}/'; + + return (string) \preg_replace($regex, '$1', $language); + } + + /** + * Get data from "/data/*.php". + * + * @noinspection ReturnTypeCanBeDeclaredInspection + * + * @param string $file + * + * @psalm-pure + * + * @return array<mixed> + */ + private static function getData(string $file) + { + /** @noinspection PhpIncludeInspection */ + /** @noinspection UsingInclusionReturnValueInspection */ + /** @psalm-suppress UnresolvableInclude */ + return include __DIR__ . '/data/' . $file . '.php'; + } + + /** + * Get data from "/data/*.php". + * + * @param string $file + * + * @psalm-pure + * + * @return array<mixed> + */ + private static function getDataIfExists(string $file): array + { + $file = __DIR__ . '/data/' . $file . '.php'; + /** @psalm-suppress ImpureFunctionCall */ + if (\is_file($file)) { + /** @noinspection PhpIncludeInspection */ + /** @noinspection UsingInclusionReturnValueInspection */ + /** @psalm-suppress UnresolvableInclude */ + return include $file; + } + + return []; + } + + /** + * @psalm-pure + * + * @return void + */ + private static function prepareAsciiAndExtrasMaps() + { + if (self::$ASCII_MAPS_AND_EXTRAS === null) { + self::prepareAsciiMaps(); + self::prepareAsciiExtras(); + + /** @psalm-suppress PossiblyNullArgument - we use the prepare* methods here, so we don't get NULL here */ + self::$ASCII_MAPS_AND_EXTRAS = \array_merge_recursive( + self::$ASCII_MAPS ?? [], + self::$ASCII_EXTRAS ?? [] + ); + } + } + + /** + * @psalm-pure + * + * @return void + */ + private static function prepareAsciiMaps() + { + if (self::$ASCII_MAPS === null) { + self::$ASCII_MAPS = self::getData('ascii_by_languages'); + } + } + + /** + * @psalm-pure + * + * @return void + */ + private static function prepareAsciiExtras() + { + if (self::$ASCII_EXTRAS === null) { + self::$ASCII_EXTRAS = self::getData('ascii_extras_by_languages'); + } + } +} \ No newline at end of file diff --git a/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php b/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php new file mode 100644 index 000000000..658b11ab6 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php @@ -0,0 +1,14100 @@ +<?php + +declare(strict_types=1); + +namespace voku\helper; + +/** + * ## 🇷🇺 Русским гражданам + * В Украине сейчас идет война. Силами РФ наносятся удары по гражданской инфраструктуре в [Харькове][1], [Киеве][2], [Чернигове][3], [Сумах][4], [Ирпене][5] и десятках других городов. Гибнут люди - и гражданское население, и военные, в том числе российские призывники, которых бросили воевать. Чтобы лишить собственный народ доступа к информации, правительство РФ запретило называть войну войной, закрыло независимые СМИ и принимает сейчас ряд диктаторских законов. Эти законы призваны заткнуть рот всем, кто против войны. За обычный призыв к миру сейчас можно получить несколько лет тюрьмы. + * Не молчите! Молчание - знак вашего согласия с политикой российского правительства. + * **Вы можете сделать выбор НЕ МОЛЧАТЬ.** + * --- + * ## 🇺🇸 To people of Russia + * There is a war in Ukraine right now. The forces of the Russian Federation are attacking civilian infrastructure in [Kharkiv][1], [Kyiv][2], [Chernihiv][3], [Sumy][4], [Irpin][5] and dozens of other cities. People are dying – both civilians and military servicemen, including Russian conscripts who were thrown into the fighting. In order to deprive its own people of access to information, the government of the Russian Federation has forbidden calling a war a war, shut down independent media and is passing a number of dictatorial laws. These laws are meant to silence all those who are against war. You can be jailed for multiple years for simply calling for peace. + * Do not be silent! Silence is a sign that you accept the Russian government's policy. + * **You can choose NOT TO BE SILENT.** + * --- + * - [1] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/P7K2MSZDGFMIJPDD7CI2GIROJI.jpg "Kharkiv under attack" + * - [2] https://gdb.voanews.com/01bd0000-0aff-0242-fad0-08d9fc92c5b3_cx0_cy5_cw0_w1023_r1_s.jpg "Kyiv under attack" + * - [3] https://ichef.bbci.co.uk/news/976/cpsprodpb/163DD/production/_123510119_hi074310744.jpg "Chernihiv under attack" + * - [4] https://www.youtube.com/watch?v=8K-bkqKKf2A "Sumy under attack" + * - [5] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/K4MTMLEHTRKGFK3GSKAT4GR3NE.jpg "Irpin under attack" + * + * @immutable + */ +final class UTF8 +{ + /** + * Bom => Byte-Length + * + * INFO: https://en.wikipedia.org/wiki/Byte_order_mark + * + * @var array<string, int> + */ + private static $BOM = [ + "\xef\xbb\xbf" => 3, // UTF-8 BOM + '' => 6, // UTF-8 BOM as "WINDOWS-1252" (one char has [maybe] more then one byte ...) + "\x00\x00\xfe\xff" => 4, // UTF-32 (BE) BOM + ' þÿ' => 6, // UTF-32 (BE) BOM as "WINDOWS-1252" + "\xff\xfe\x00\x00" => 4, // UTF-32 (LE) BOM + 'ÿþ ' => 6, // UTF-32 (LE) BOM as "WINDOWS-1252" + "\xfe\xff" => 2, // UTF-16 (BE) BOM + 'þÿ' => 4, // UTF-16 (BE) BOM as "WINDOWS-1252" + "\xff\xfe" => 2, // UTF-16 (LE) BOM + 'ÿþ' => 4, // UTF-16 (LE) BOM as "WINDOWS-1252" + ]; + + /** + * Numeric code point => UTF-8 Character + * + * url: http://www.w3schools.com/charsets/ref_utf_punctuation.asp + * + * @var array<int, string> + */ + private static $WHITESPACE = [ + // NULL Byte + 0 => "\x0", + // Tab + 9 => "\x9", + // New Line + 10 => "\xa", + // Vertical Tab + 11 => "\xb", + // Carriage Return + 13 => "\xd", + // Ordinary Space + 32 => "\x20", + // NO-BREAK SPACE + 160 => "\xc2\xa0", + // OGHAM SPACE MARK + 5760 => "\xe1\x9a\x80", + // MONGOLIAN VOWEL SEPARATOR + 6158 => "\xe1\xa0\x8e", + // EN QUAD + 8192 => "\xe2\x80\x80", + // EM QUAD + 8193 => "\xe2\x80\x81", + // EN SPACE + 8194 => "\xe2\x80\x82", + // EM SPACE + 8195 => "\xe2\x80\x83", + // THREE-PER-EM SPACE + 8196 => "\xe2\x80\x84", + // FOUR-PER-EM SPACE + 8197 => "\xe2\x80\x85", + // SIX-PER-EM SPACE + 8198 => "\xe2\x80\x86", + // FIGURE SPACE + 8199 => "\xe2\x80\x87", + // PUNCTUATION SPACE + 8200 => "\xe2\x80\x88", + // THIN SPACE + 8201 => "\xe2\x80\x89", + // HAIR SPACE + 8202 => "\xe2\x80\x8a", + // LINE SEPARATOR + 8232 => "\xe2\x80\xa8", + // PARAGRAPH SEPARATOR + 8233 => "\xe2\x80\xa9", + // NARROW NO-BREAK SPACE + 8239 => "\xe2\x80\xaf", + // MEDIUM MATHEMATICAL SPACE + 8287 => "\xe2\x81\x9f", + // HALFWIDTH HANGUL FILLER + 65440 => "\xef\xbe\xa0", + // IDEOGRAPHIC SPACE + 12288 => "\xe3\x80\x80", + ]; + + /** + * @var array<string, string> + */ + private static $WHITESPACE_TABLE = [ + 'SPACE' => "\x20", + 'NO-BREAK SPACE' => "\xc2\xa0", + 'OGHAM SPACE MARK' => "\xe1\x9a\x80", + 'EN QUAD' => "\xe2\x80\x80", + 'EM QUAD' => "\xe2\x80\x81", + 'EN SPACE' => "\xe2\x80\x82", + 'EM SPACE' => "\xe2\x80\x83", + 'THREE-PER-EM SPACE' => "\xe2\x80\x84", + 'FOUR-PER-EM SPACE' => "\xe2\x80\x85", + 'SIX-PER-EM SPACE' => "\xe2\x80\x86", + 'FIGURE SPACE' => "\xe2\x80\x87", + 'PUNCTUATION SPACE' => "\xe2\x80\x88", + 'THIN SPACE' => "\xe2\x80\x89", + 'HAIR SPACE' => "\xe2\x80\x8a", + 'LINE SEPARATOR' => "\xe2\x80\xa8", + 'PARAGRAPH SEPARATOR' => "\xe2\x80\xa9", + 'ZERO WIDTH SPACE' => "\xe2\x80\x8b", + 'NARROW NO-BREAK SPACE' => "\xe2\x80\xaf", + 'MEDIUM MATHEMATICAL SPACE' => "\xe2\x81\x9f", + 'IDEOGRAPHIC SPACE' => "\xe3\x80\x80", + 'HALFWIDTH HANGUL FILLER' => "\xef\xbe\xa0", + ]; + + /** + * @var array + * + * @phpstan-var array{upper: string[], lower: string[]} + */ + private static $COMMON_CASE_FOLD = [ + 'upper' => [ + 'µ', + 'ſ', + "\xCD\x85", + 'ς', + 'ẞ', + "\xCF\x90", + "\xCF\x91", + "\xCF\x95", + "\xCF\x96", + "\xCF\xB0", + "\xCF\xB1", + "\xCF\xB5", + "\xE1\xBA\x9B", + "\xE1\xBE\xBE", + ], + 'lower' => [ + 'μ', + 's', + 'ι', + 'σ', + 'ß', + 'β', + 'θ', + 'φ', + 'π', + 'κ', + 'ρ', + 'ε', + "\xE1\xB9\xA1", + 'ι', + ], + ]; + + /** + * @var array + * + * @phpstan-var array<string, mixed> + */ + private static $SUPPORT = []; + + /** + * @var string[]|null + * + * @phpstan-var array<string, string>|null + */ + private static $BROKEN_UTF8_FIX; + + /** + * @var string[]|null + * + * @phpstan-var array<int, string>|null + */ + private static $WIN1252_TO_UTF8; + + /** + * @var string[]|null + * + * @phpstan-var array<int ,string>|null + */ + private static $INTL_TRANSLITERATOR_LIST; + + /** + * @var string[]|null + * + * @phpstan-var array<string>|null + */ + private static $ENCODINGS; + + /** + * @var int[]|null + * + * @phpstan-var array<string ,int>|null + */ + private static $ORD; + + /** + * @var string[]|null + * + * @phpstan-var array<string, string>|null + */ + private static $EMOJI; + + /** + * @var string[]|null + * + * @phpstan-var array<string>|null + */ + private static $EMOJI_VALUES_CACHE; + + /** + * @var string[]|null + * + * @phpstan-var array<string>|null + */ + private static $EMOJI_KEYS_CACHE; + + /** + * @var string[]|null + * + * @phpstan-var array<string>|null + */ + private static $EMOJI_KEYS_REVERSIBLE_CACHE; + + /** + * @var string[]|null + * + * @phpstan-var array<int, string>|null + */ + private static $CHR; + + /** + * __construct() + */ + public function __construct() + { + } + + /** + * Return the character at the specified position: $str[1] like functionality. + * + * EXAMPLE: <code>UTF8::access('fòô', 1); // 'ò'</code> + * + * @param string $str <p>A UTF-8 string.</p> + * @param int $pos <p>The position of character to return.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>Single multi-byte character.</p> + */ + public static function access(string $str, int $pos, string $encoding = 'UTF-8'): string + { + if ($str === '' || $pos < 0) { + return ''; + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr($str, $pos, 1); + } + + return (string) self::substr($str, $pos, 1, $encoding); + } + + /** + * Prepends UTF-8 BOM character to the string and returns the whole string. + * + * INFO: If BOM already existed there, the Input string is returned. + * + * EXAMPLE: <code>UTF8::add_bom_to_string('fòô'); // "\xEF\xBB\xBF" . 'fòô'</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return non-empty-string + * <p>The output string that contains BOM.</p> + */ + public static function add_bom_to_string(string $str): string + { + if (!self::string_has_bom($str)) { + $str = self::bom() . $str; + } + + \assert($str !== ''); + + return $str; + } + + /** + * Changes all keys in an array. + * + * @param array<string, mixed> $array <p>The array to work on</p> + * @param int $case [optional] <p> Either <strong>CASE_UPPER</strong><br> + * or <strong>CASE_LOWER</strong> (default)</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string[] + * <p>An array with its keys lower- or uppercased.</p> + */ + public static function array_change_key_case( + array $array, + int $case = \CASE_LOWER, + string $encoding = 'UTF-8' + ): array { + if ( + $case !== \CASE_LOWER + && + $case !== \CASE_UPPER + ) { + $case = \CASE_LOWER; + } + + $return = []; + foreach ($array as $key => &$value) { + $key = $case === \CASE_LOWER + ? self::strtolower($key, $encoding) + : self::strtoupper($key, $encoding); + + $return[$key] = $value; + } + + return $return; + } + + /** + * Returns the substring between $start and $end, if found, or an empty + * string. An optional offset may be supplied from which to begin the + * search for the start string. + * + * @param string $str + * @param string $start <p>Delimiter marking the start of the substring.</p> + * @param string $end <p>Delimiter marking the end of the substring.</p> + * @param int $offset [optional] <p>Index from which to begin the search. Default: 0</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function between( + string $str, + string $start, + string $end, + int $offset = 0, + string $encoding = 'UTF-8' + ): string { + if ($encoding === 'UTF-8') { + $start_position = \mb_strpos($str, $start, $offset); + if ($start_position === false) { + return ''; + } + + $substr_index = $start_position + (int) \mb_strlen($start); + $end_position = \mb_strpos($str, $end, $substr_index); + if ( + $end_position === false + || + $end_position === $substr_index + ) { + return ''; + } + + return (string) \mb_substr($str, $substr_index, $end_position - $substr_index); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $start_position = self::strpos($str, $start, $offset, $encoding); + if ($start_position === false) { + return ''; + } + + $substr_index = $start_position + (int) self::strlen($start, $encoding); + $end_position = self::strpos($str, $end, $substr_index, $encoding); + if ( + $end_position === false + || + $end_position === $substr_index + ) { + return ''; + } + + return (string) self::substr( + $str, + $substr_index, + $end_position - $substr_index, + $encoding + ); + } + + /** + * Convert binary into a string. + * + * INFO: opposite to UTF8::str_to_binary() + * + * EXAMPLE: <code>UTF8::binary_to_str('11110000100111111001100010000011'); // '😃'</code> + * + * @param string $bin 1|0 + * + * @psalm-pure + * + * @return string + */ + public static function binary_to_str($bin): string + { + if (!isset($bin[0])) { + return ''; + } + + $convert = \base_convert($bin, 2, 16); + if ($convert === '0') { + return ''; + } + + return \pack('H*', $convert); + } + + /** + * Returns the UTF-8 Byte Order Mark Character. + * + * INFO: take a look at UTF8::$bom for e.g. UTF-16 and UTF-32 BOM values + * + * EXAMPLE: <code>UTF8::bom(); // "\xEF\xBB\xBF"</code> + * + * @psalm-pure + * + * @return non-empty-string + * <p>UTF-8 Byte Order Mark.</p> + */ + public static function bom(): string + { + return "\xef\xbb\xbf"; + } + + /** + * @alias of UTF8::chr_map() + * + * @param callable(string): string $callback + * @param string $str + * + * @psalm-pure + * + * @return string[] + * + * @see UTF8::chr_map() + */ + public static function callback($callback, string $str): array + { + return self::chr_map($callback, $str); + } + + /** + * Returns the character at $index, with indexes starting at 0. + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $index <p>Position of the character.</p> + * @param string $encoding [optional] <p>Default is UTF-8</p> + * + * @psalm-pure + * + * @return string + * <p>The character at $index.</p> + */ + public static function char_at(string $str, int $index, string $encoding = 'UTF-8'): string + { + if ($encoding === 'UTF-8') { + return (string) \mb_substr($str, $index, 1); + } + + return (string) self::substr($str, $index, 1, $encoding); + } + + /** + * Returns an array consisting of the characters in the string. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return string[] + * <p>An array of chars.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-list<string> : list<string>) + */ + public static function chars(string $str): array + { + return self::str_split($str); + } + + /** + * This method will auto-detect your server environment for UTF-8 support. + * + * @return true|null + * + * @internal <p>You don't need to run it manually, it will be triggered if it's needed.</p> + */ + public static function checkForSupport() + { + if (!isset(self::$SUPPORT['already_checked_via_portable_utf8'])) { + self::$SUPPORT['already_checked_via_portable_utf8'] = true; + + // http://php.net/manual/en/book.mbstring.php + self::$SUPPORT['mbstring'] = self::mbstring_loaded(); + + self::$SUPPORT['mbstring_func_overload'] = self::mbstring_overloaded(); + if (self::$SUPPORT['mbstring'] === true) { + \mb_internal_encoding('UTF-8'); + \mb_regex_encoding('UTF-8'); + self::$SUPPORT['mbstring_internal_encoding'] = 'UTF-8'; + } + + // http://php.net/manual/en/book.iconv.php + self::$SUPPORT['iconv'] = self::iconv_loaded(); + + // http://php.net/manual/en/book.intl.php + self::$SUPPORT['intl'] = self::intl_loaded(); + + // http://php.net/manual/en/class.intlchar.php + self::$SUPPORT['intlChar'] = self::intlChar_loaded(); + + // http://php.net/manual/en/book.ctype.php + self::$SUPPORT['ctype'] = self::ctype_loaded(); + + // http://php.net/manual/en/class.finfo.php + self::$SUPPORT['finfo'] = self::finfo_loaded(); + + // http://php.net/manual/en/book.json.php + self::$SUPPORT['json'] = self::json_loaded(); + + // http://php.net/manual/en/book.pcre.php + self::$SUPPORT['pcre_utf8'] = self::pcre_utf8_support(); + + self::$SUPPORT['symfony_polyfill_used'] = self::symfony_polyfill_used(); + if (self::$SUPPORT['symfony_polyfill_used'] === true) { + \mb_internal_encoding('UTF-8'); + self::$SUPPORT['mbstring_internal_encoding'] = 'UTF-8'; + } + + return true; + } + + return null; + } + + /** + * Generates a UTF-8 encoded character from the given code point. + * + * INFO: opposite to UTF8::ord() + * + * EXAMPLE: <code>UTF8::chr(0x2603); // '☃'</code> + * + * @param int $code_point <p>The code point for which to generate a character.</p> + * @param string $encoding [optional] <p>Default is UTF-8</p> + * + * @psalm-pure + * + * @return string|null + * <p>Multi-byte character, returns null on failure or empty input.</p> + */ + public static function chr($code_point, string $encoding = 'UTF-8') + { + // init + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<string,string> + */ + static $CHAR_CACHE = []; + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ( + $encoding !== 'UTF-8' + && + $encoding !== 'ISO-8859-1' + && + $encoding !== 'WINDOWS-1252' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::chr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + if ( + !\is_int($code_point) /* @phpstan-ignore-line | hack for bad inputs */ + || + $code_point <= 0 + ) { + return null; + } + + $cache_key = $code_point . '_' . $encoding; + if (isset($CHAR_CACHE[$cache_key])) { + return $CHAR_CACHE[$cache_key]; + } + + if ($code_point <= 0x80) { // only for "simple"-chars + + if (self::$CHR === null) { + self::$CHR = self::getData('chr'); + } + + /** + * @psalm-suppress PossiblyNullArrayAccess + */ + $chr = self::$CHR[$code_point]; + + if ($encoding !== 'UTF-8') { + $chr = self::encode($encoding, $chr); + } + + return $CHAR_CACHE[$cache_key] = $chr; + } + + // + // fallback via "IntlChar" + // + + if (self::$SUPPORT['intlChar'] === true) { + $chr = \IntlChar::chr($code_point); + + if ($encoding !== 'UTF-8') { + $chr = self::encode($encoding, $chr); + } + + return $CHAR_CACHE[$cache_key] = $chr; + } + + // + // fallback via vanilla php + // + + if (self::$CHR === null) { + self::$CHR = self::getData('chr'); + } + + $code_point = (int) $code_point; + if ($code_point <= 0x7FF) { + /** + * @psalm-suppress PossiblyNullArrayAccess + */ + $chr = self::$CHR[($code_point >> 6) + 0xC0] . + self::$CHR[($code_point & 0x3F) + 0x80]; + } elseif ($code_point <= 0xFFFF) { + /** + * @psalm-suppress PossiblyNullArrayAccess + */ + $chr = self::$CHR[($code_point >> 12) + 0xE0] . + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . + self::$CHR[($code_point & 0x3F) + 0x80]; + } else { + /** + * @psalm-suppress PossiblyNullArrayAccess + */ + $chr = self::$CHR[($code_point >> 18) + 0xF0] . + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . + self::$CHR[($code_point & 0x3F) + 0x80]; + } + + if ($encoding !== 'UTF-8') { + $chr = self::encode($encoding, $chr); + } + + return $CHAR_CACHE[$cache_key] = $chr; + } + + /** + * Applies callback to all characters of a string. + * + * EXAMPLE: <code>UTF8::chr_map([UTF8::class, 'strtolower'], 'Κόσμε'); // ['κ','ό', 'σ', 'μ', 'ε']</code> + * + * @param callable(string): string $callback <p>The callback function.</p> + * @param string $str <p>UTF-8 string to run callback on.</p> + * + * @psalm-pure + * + * @return string[] + * <p>The outcome of the callback, as array.</p> + */ + public static function chr_map($callback, string $str): array + { + return \array_map( + $callback, + self::str_split($str) + ); + } + + /** + * Generates an array of byte length of each character of a Unicode string. + * + * 1 byte => U+0000 - U+007F + * 2 byte => U+0080 - U+07FF + * 3 byte => U+0800 - U+FFFF + * 4 byte => U+10000 - U+10FFFF + * + * EXAMPLE: <code>UTF8::chr_size_list('中文空白-test'); // [3, 3, 3, 3, 1, 1, 1, 1, 1]</code> + * + * @param string $str <p>The original unicode string.</p> + * + * @psalm-pure + * + * @return int[] + * <p>An array of byte lengths of each character.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-list<1|2|3|4> : list<1|2|3|4>) + */ + public static function chr_size_list(string $str): array + { + if ($str === '') { + return []; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + /* @phpstan-ignore-next-line | str_split only give one char, so that we only got int<1,4> */ + return \array_map( + static function (string $data): int { + // "mb_" is available if overload is used, so use it ... + return \mb_strlen($data, 'CP850'); // 8-BIT + }, + self::str_split($str) + ); + } + + /* @phpstan-ignore-next-line | str_split only give one char, so that we only got int<1,4> */ + return \array_map('\strlen', self::str_split($str)); + } + + /** + * Get a decimal code representation of a specific character. + * + * INFO: opposite to UTF8::decimal_to_chr() + * + * EXAMPLE: <code>UTF8::chr_to_decimal('§'); // 0xa7</code> + * + * @param string $char <p>The input character.</p> + * + * @psalm-pure + * + * @return int + */ + public static function chr_to_decimal(string $char): int + { + if (self::$SUPPORT['iconv'] === true) { + $chr_tmp = \iconv('UTF-8', 'UCS-4LE', $char); + if ($chr_tmp !== false) { + /** @phpstan-ignore-next-line - "unpack": only false if the format string contains errors */ + return \unpack('V', $chr_tmp)[1]; + } + } + + $code = self::ord($char[0]); + $bytes = 1; + + if (!($code & 0x80)) { + // 0xxxxxxx + return $code; + } + + if (($code & 0xe0) === 0xc0) { + // 110xxxxx + $bytes = 2; + $code &= ~0xc0; + } elseif (($code & 0xf0) === 0xe0) { + // 1110xxxx + $bytes = 3; + $code &= ~0xe0; + } elseif (($code & 0xf8) === 0xf0) { + // 11110xxx + $bytes = 4; + $code &= ~0xf0; + } + + for ($i = 2; $i <= $bytes; ++$i) { + // 10xxxxxx + $code = ($code << 6) + (self::ord($char[$i - 1]) & ~0x80); + } + + return $code; + } + + /** + * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character. + * + * EXAMPLE: <code>UTF8::chr_to_hex('§'); // U+00a7</code> + * + * @param int|string $char <p>The input character</p> + * @param string $prefix [optional] + * + * @psalm-pure + * + * @return string + * <p>The code point encoded as U+xxxx.</p> + */ + public static function chr_to_hex($char, string $prefix = 'U+'): string + { + if ($char === '') { + return ''; + } + + if ($char === '&#0;') { + $char = ''; + } + + return self::int_to_hex(self::ord((string) $char), $prefix); + } + + /** + * Splits a string into smaller chunks and multiple lines, using the specified line ending character. + * + * EXAMPLE: <code>UTF8::chunk_split('ABC-ÖÄÜ-中文空白-κόσμε', 3); // "ABC\r\n-ÖÄ\r\nÜ-中\r\n文空白\r\n-κό\r\nσμε"</code> + * + * @param string $str <p>The original string to be split.</p> + * @param int<1, max> $chunk_length [optional] <p>The maximum character length of a chunk.</p> + * @param string $end [optional] <p>The character(s) to be inserted at the end of each chunk.</p> + * + * @psalm-pure + * + * @return string + * <p>The chunked string.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function chunk_split(string $str, int $chunk_length = 76, string $end = "\r\n"): string + { + return \implode($end, self::str_split($str, $chunk_length)); + } + + /** + * Accepts a string and removes all non-UTF-8 characters from it + extras if needed. + * + * EXAMPLE: <code>UTF8::clean("\xEF\xBB\xBF„Abcdef\xc2\xa0\x20…” — 😃 - Düsseldorf", true, true); // '„Abcdef …” — 😃 - Düsseldorf'</code> + * + * @param string $str <p>The string to be sanitized.</p> + * @param bool $remove_bom [optional] <p>Set to true, if you need to remove + * UTF-BOM.</p> + * @param bool $normalize_whitespace [optional] <p>Set to true, if you need to normalize the + * whitespace.</p> + * @param bool $normalize_msword [optional] <p>Set to true, if you need to normalize MS + * Word chars e.g.: "…" + * => "..."</p> + * @param bool $keep_non_breaking_space [optional] <p>Set to true, to keep non-breaking-spaces, + * in + * combination with + * $normalize_whitespace</p> + * @param bool $replace_diamond_question_mark [optional] <p>Set to true, if you need to remove diamond + * question mark e.g.: "�"</p> + * @param bool $remove_invisible_characters [optional] <p>Set to false, if you not want to remove + * invisible characters e.g.: "\0"</p> + * @param bool $remove_invisible_characters_url_encoded [optional] <p>Set to true, if you not want to remove + * invisible url encoded characters e.g.: "%0B"<br> WARNING: + * maybe contains false-positives e.g. aa%0Baa -> aaaa. + * </p> + * + * @psalm-pure + * + * @return string + * <p>An clean UTF-8 encoded string.</p> + */ + public static function clean( + string $str, + bool $remove_bom = false, + bool $normalize_whitespace = false, + bool $normalize_msword = false, + bool $keep_non_breaking_space = false, + bool $replace_diamond_question_mark = false, + bool $remove_invisible_characters = true, + bool $remove_invisible_characters_url_encoded = false + ): string { + // http://stackoverflow.com/questions/1401317/remove-non-utf8-characters-from-string + // caused connection reset problem on larger strings + + $regex = '/ + ( + (?: [\x00-\x7F] # single-byte sequences 0xxxxxxx + | [\xC0-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx + | [\xE0-\xEF][\x80-\xBF]{2} # triple-byte sequences 1110xxxx 10xxxxxx * 2 + | [\xF0-\xF7][\x80-\xBF]{3} # quadruple-byte sequence 11110xxx 10xxxxxx * 3 + ){1,100} # ...one or more times + ) + | ( [\x80-\xBF] ) # invalid byte in range 10000000 - 10111111 + | ( [\xC0-\xFF] ) # invalid byte in range 11000000 - 11111111 + /x'; + $str = (string) \preg_replace($regex, '$1', $str); + + if ($replace_diamond_question_mark) { + $str = self::replace_diamond_question_mark($str); + } + + if ($remove_invisible_characters) { + $str = self::remove_invisible_characters($str, $remove_invisible_characters_url_encoded); + } + + if ($normalize_whitespace) { + $str = self::normalize_whitespace($str, $keep_non_breaking_space); + } + + if ($normalize_msword) { + $str = self::normalize_msword($str); + } + + if ($remove_bom) { + $str = self::remove_bom($str); + } + + return $str; + } + + /** + * Clean-up a string and show only printable UTF-8 chars at the end + fix UTF-8 encoding. + * + * EXAMPLE: <code>UTF8::cleanup("\xEF\xBB\xBF„Abcdef\xc2\xa0\x20…” — 😃 - Düsseldorf", true, true); // '„Abcdef …” — 😃 - Düsseldorf'</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return string + */ + public static function cleanup($str): string + { + // init + $str = (string) $str; + + if ($str === '') { + return ''; + } + + // fixed ISO <-> UTF-8 Errors + $str = self::fix_simple_utf8($str); + + // remove all none UTF-8 symbols + // && remove diamond question mark (�) + // && remove remove invisible characters (e.g. "\0") + // && remove BOM + // && normalize whitespace chars (but keep non-breaking-spaces) + return self::clean( + $str, + true, + true, + false, + true, + true + ); + } + + /** + * Accepts a string or an array of chars and returns an array of Unicode code points. + * + * INFO: opposite to UTF8::string() + * + * EXAMPLE: <code> + * UTF8::codepoints('κöñ'); // array(954, 246, 241) + * // ... OR ... + * UTF8::codepoints('κöñ', true); // array('U+03ba', 'U+00f6', 'U+00f1') + * </code> + * + * @param string|string[] $arg <p>A UTF-8 encoded string or an array of such chars.</p> + * @param bool $use_u_style <p>If True, will return code points in U+xxxx format, + * default, code points will be returned as integers.</p> + * + * @psalm-pure + * + * @return int[]|string[] + * <p> + * The array of code points:<br> + * int[] for $u_style === false<br> + * string[] for $u_style === true<br> + * </p> + * + * @template T as string|string[] + * @phpstan-param T $arg + * @phpstan-return (T is non-empty-string ? ($use_u_style is true ? non-empty-list<string> : non-empty-list<int>) : ($use_u_style is true ? list<string> : list<int>)) + */ + public static function codepoints($arg, bool $use_u_style = false): array + { + if (\is_string($arg)) { + $arg = self::str_split($arg); + } + + /** + * @psalm-suppress DocblockTypeContradiction + * @phpstan-ignore-next-line hack for bad inputs + */ + if (!\is_array($arg)) { + return []; + } + + if ($arg === []) { + return []; + } + + $arg = \array_map( + [ + self::class, + 'ord', + ], + $arg + ); + + if ($use_u_style) { + $arg = \array_map( + [ + self::class, + 'int_to_hex', + ], + $arg + ); + } + + /* @phpstan-ignore-next-line | FP? */ + return $arg; + } + + /** + * Trims the string and replaces consecutive whitespace characters with a + * single space. This includes tabs and newline characters, as well as + * multibyte whitespace such as the thin space and ideographic space. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with trimmed $str and condensed whitespace.</p> + */ + public static function collapse_whitespace(string $str): string + { + if (self::$SUPPORT['mbstring'] === true) { + return \trim((string) \mb_ereg_replace('[[:space:]]+', ' ', $str)); + } + + return \trim(self::regex_replace($str, '[[:space:]]+', ' ')); + } + + /** + * Returns count of characters used in a string. + * + * EXAMPLE: <code>UTF8::count_chars('κaκbκc'); // array('κ' => 3, 'a' => 1, 'b' => 1, 'c' => 1)</code> + * + * @param string $str <p>The input string.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param bool $try_to_use_mb_functions [optional] <p>Set to false, if you don't want to use + * + * @psalm-pure + * + * @return int[] + * <p>An associative array of Character as keys and + * their count as values.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-array<string, int> : array<string, int>) + */ + public static function count_chars( + string $str, + bool $clean_utf8 = false, + bool $try_to_use_mb_functions = true + ): array { + return \array_count_values( + self::str_split( + $str, + 1, + $clean_utf8, + $try_to_use_mb_functions + ) + ); + } + + /** + * Create a valid CSS identifier for e.g. "class"- or "id"-attributes. + * + * EXAMPLE: <code>UTF8::css_identifier('123foo/bar!!!'); // _23foo-bar</code> + * + * copy&past from https://github.com/drupal/core/blob/8.8.x/lib/Drupal/Component/Utility/Html.php#L95 + * + * @param string $str <p>INFO: if no identifier is given e.g. " " or "", we will create a unique string automatically</p> + * @param string[] $filter + * @param bool $strip_tags + * @param bool $strtolower + * + * @psalm-pure + * + * @return string + * + * @phpstan-param array<string,string> $filter + */ + public static function css_identifier( + string $str = '', + array $filter = [ + ' ' => '-', + '/' => '-', + '[' => '', + ']' => '', + ], + bool $strip_tags = false, + bool $strtolower = true + ): string { + // We could also use strtr() here but its much slower than str_replace(). In + // order to keep '__' to stay '__' we first replace it with a different + // placeholder after checking that it is not defined as a filter. + $double_underscore_replacements = 0; + + $str = \trim($str); + if ($str) { + $str = self::clean($str, true); + } + + if ($strip_tags) { + $str = \strip_tags($str); + } + + $str = \trim($str); + // fallback (1) + if (!$str) { + $str = \uniqid('auto-generated-css-class', true); + } + + if ($strtolower) { + $str = \strtolower($str); + } + + if (!isset($filter['__'])) { + $str = \str_replace('__', '##', $str, $double_underscore_replacements); + } + + $str = \str_replace(\array_keys($filter), \array_values($filter), $str); + // Replace temporary placeholder '##' with '__' only if the original + // $identifier contained '__'. + if ($double_underscore_replacements > 0) { + $str = \str_replace('##', '__', $str); + } + + // Valid characters in a CSS identifier are: + // - the hyphen (U+002D) + // - a-z (U+0030 - U+0039) + // - A-Z (U+0041 - U+005A) + // - the underscore (U+005F) + // - 0-9 (U+0061 - U+007A) + // - ISO 10646 characters U+00A1 and higher + // We strip out any character not in the above list. + $str = (string) \preg_replace('/[^\x{002D}\x{0030}-\x{0039}\x{0041}-\x{005A}\x{005F}\x{0061}-\x{007A}\x{00A1}-\x{FFFF}]/u', '', $str); + // Identifiers cannot start with a digit, two hyphens, or a hyphen followed by a digit. + $str = (string) \preg_replace(['/^[0-9]/', '/^(-[0-9])|^(--)/'], ['_', '__'], $str); + + return \trim($str, '-'); + } + + /** + * Remove css media-queries. + * + * @param string $str + * + * @psalm-pure + * + * @return string + */ + public static function css_stripe_media_queries(string $str): string + { + return (string) \preg_replace( + '#@media\\s+(?:only\\s)?(?:[\\s{(]|screen|all)\\s?[^{]+{.*}\\s*}\\s*#isumU', + '', + $str + ); + } + + /** + * Checks whether ctype is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function ctype_loaded(): bool + { + return \extension_loaded('ctype'); + } + + /** + * Converts an int value into a UTF-8 character. + * + * INFO: opposite to UTF8::string() + * + * EXAMPLE: <code>UTF8::decimal_to_chr(931); // 'Σ'</code> + * + * @param int|string $int + * + * @phpstan-param int|numeric-string $int + * + * @psalm-pure + * + * @return string + */ + public static function decimal_to_chr($int): string + { + // We cannot use html_entity_decode() here, as it will not return + // characters for many values < 160. + return \mb_convert_encoding('&#' . $int . ';', 'UTF-8', 'HTML-ENTITIES'); + } + + /** + * Decodes a MIME header field + * + * @param string $str + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return false|string + * <p>A decoded MIME field on success, + * or false if an error occurs during the decoding.</p> + */ + public static function decode_mimeheader($str, string $encoding = 'UTF-8') + { + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // always fallback via symfony polyfill + return \iconv_mime_decode($str, \ICONV_MIME_DECODE_CONTINUE_ON_ERROR, $encoding); + } + + /** + * Convert any two-letter country code (ISO 3166-1) to the corresponding Emoji. + * + * @see https://en.wikipedia.org/wiki/ISO_3166-1 + * + * @param string $country_code_iso_3166_1 <p>e.g. DE</p> + * + * @return string + * <p>Emoji or empty string on error.</p> + */ + public static function emoji_from_country_code(string $country_code_iso_3166_1): string + { + if ($country_code_iso_3166_1 === '') { + return ''; + } + + if (self::strlen($country_code_iso_3166_1) !== 2) { + return ''; + } + + $country_code_iso_3166_1 = \strtoupper($country_code_iso_3166_1); + + $flagOffset = 0x1F1E6; + $asciiOffset = 0x41; + + return (self::chr((self::ord($country_code_iso_3166_1[0]) - $asciiOffset + $flagOffset)) ?? '') . + (self::chr((self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset)) ?? ''); + } + + /** + * Decodes a string which was encoded by "UTF8::emoji_encode()". + * + * INFO: opposite to UTF8::emoji_encode() + * + * EXAMPLE: <code> + * UTF8::emoji_decode('foo CHARACTER_OGRE', false); // 'foo 👹' + * // + * UTF8::emoji_decode('foo _-_PORTABLE_UTF8_-_308095726_-_627590803_-_8FTU_ELBATROP_-_', true); // 'foo 👹' + * </code> + * + * @param string $str <p>The input string.</p> + * @param bool $use_reversible_string_mappings [optional] <p> + * When <b>TRUE</b>, we se a reversible string mapping + * between "emoji_encode" and "emoji_decode".</p> + * + * @psalm-pure + * + * @return string + */ + public static function emoji_decode( + string $str, + bool $use_reversible_string_mappings = false + ): string { + if (self::$EMOJI_KEYS_CACHE === null) { + /** @phpstan-ignore-next-line - we need to load the data first */ + self::initEmojiData(); + } + + if ($use_reversible_string_mappings) { + return (string) \str_replace( + (array) self::$EMOJI_KEYS_REVERSIBLE_CACHE, + (array) self::$EMOJI_VALUES_CACHE, + $str + ); + } + + return (string) \str_replace( + (array) self::$EMOJI_KEYS_CACHE, + (array) self::$EMOJI_VALUES_CACHE, + $str + ); + } + + /** + * Encode a string with emoji chars into a non-emoji string. + * + * INFO: opposite to UTF8::emoji_decode() + * + * EXAMPLE: <code> + * UTF8::emoji_encode('foo 👹', false)); // 'foo CHARACTER_OGRE' + * // + * UTF8::emoji_encode('foo 👹', true)); // 'foo _-_PORTABLE_UTF8_-_308095726_-_627590803_-_8FTU_ELBATROP_-_' + * </code> + * + * @param string $str <p>The input string</p> + * @param bool $use_reversible_string_mappings [optional] <p> + * when <b>TRUE</b>, we use a reversible string mapping + * between "emoji_encode" and "emoji_decode"</p> + * + * @psalm-pure + * + * @return string + */ + public static function emoji_encode( + string $str, + bool $use_reversible_string_mappings = false + ): string { + if (self::$EMOJI_KEYS_CACHE === null) { + /** @phpstan-ignore-next-line - we need to load the data first */ + self::initEmojiData(); + } + + if ($use_reversible_string_mappings) { + return (string) \str_replace( + (array) self::$EMOJI_VALUES_CACHE, + (array) self::$EMOJI_KEYS_REVERSIBLE_CACHE, + $str + ); + } + + return (string) \str_replace( + (array) self::$EMOJI_VALUES_CACHE, + (array) self::$EMOJI_KEYS_CACHE, + $str + ); + } + + /** + * Encode a string with a new charset-encoding. + * + * INFO: This function will also try to fix broken / double encoding, + * so you can call this function also on a UTF-8 string and you don't mess up the string. + * + * EXAMPLE: <code> + * UTF8::encode('ISO-8859-1', '-ABC-中文空白-'); // '-ABC-????-' + * // + * UTF8::encode('UTF-8', '-ABC-中文空白-'); // '-ABC-中文空白-' + * // + * UTF8::encode('HTML', '-ABC-中文空白-'); // '-ABC-&#20013;&#25991;&#31354;&#30333;-' + * // + * UTF8::encode('BASE64', '-ABC-中文空白-'); // 'LUFCQy3kuK3mlofnqbrnmb0t' + * </code> + * + * @param string $to_encoding <p>e.g. 'UTF-16', 'UTF-8', 'ISO-8859-1', etc.</p> + * @param string $str <p>The input string</p> + * @param bool $auto_detect_the_from_encoding [optional] <p>Force the new encoding (we try to fix broken / double + * encoding for UTF-8)<br> otherwise we auto-detect the current + * string-encoding</p> + * @param string $from_encoding [optional] <p>e.g. 'UTF-16', 'UTF-8', 'ISO-8859-1', etc.<br> + * A empty string will trigger the autodetect anyway.</p> + * + * @psalm-pure + * + * @return string + * + * @psalm-suppress InvalidReturnStatement + */ + public static function encode( + string $to_encoding, + string $str, + bool $auto_detect_the_from_encoding = true, + string $from_encoding = '' + ): string { + if ($str === '' || $to_encoding === '') { + return $str; + } + + if ($to_encoding !== 'UTF-8' && $to_encoding !== 'CP850') { + $to_encoding = self::normalize_encoding($to_encoding, 'UTF-8'); + } + + if ($from_encoding && $from_encoding !== 'UTF-8' && $from_encoding !== 'CP850') { + $from_encoding = self::normalize_encoding($from_encoding); + } + + if ( + $to_encoding + && + $from_encoding + && + $from_encoding === $to_encoding + ) { + return $str; + } + + if ($from_encoding === 'JSON') { + $str = self::json_decode($str); + $from_encoding = ''; + } + + if ($from_encoding === 'BASE64') { + $str = \base64_decode($str, true); + $from_encoding = ''; + } + + if ($from_encoding === 'HTML-ENTITIES') { + /* @phpstan-ignore-next-line | $str has manybe changed */ + $str = self::html_entity_decode($str, \ENT_COMPAT); + $from_encoding = ''; + } + + if ($to_encoding === 'JSON') { + $return = self::json_encode($str); + if ($return === false) { + throw new \InvalidArgumentException('The input string [' . $str . '] can not be used for json_encode().'); + } + + return $return; + } + + if ($to_encoding === 'BASE64') { + return \base64_encode($str); + } + + if ($to_encoding === 'HTML-ENTITIES') { + /* @phpstan-ignore-next-line | $str has manybe changed */ + return self::html_encode($str, true); + } + + if ( + $auto_detect_the_from_encoding + || + !$from_encoding + ) { + $from_encoding_auto_detected = self::str_detect_encoding($str); + } else { + $from_encoding_auto_detected = false; + } + + // DEBUG + //var_dump($to_encoding, $from_encoding, $from_encoding_auto_detected, $str, "\n\n"); + + if ($from_encoding_auto_detected !== false) { + $from_encoding = $from_encoding_auto_detected; + } elseif ($auto_detect_the_from_encoding) { + // fallback for the "autodetect"-mode + /* @phpstan-ignore-next-line | $str has manybe changed */ + return self::to_utf8($str); + } + + if ( + !$from_encoding + || + $from_encoding === $to_encoding + ) { + return $str; + } + + if ( + $to_encoding === 'UTF-8' + && + ( + $from_encoding === 'WINDOWS-1252' + || + $from_encoding === 'ISO-8859-1' + ) + ) { + /* @phpstan-ignore-next-line | $str has manybe changed */ + return self::to_utf8($str); + } + + if ( + $to_encoding === 'ISO-8859-1' + && + ( + $from_encoding === 'WINDOWS-1252' + || + $from_encoding === 'UTF-8' + ) + ) { + /* @phpstan-ignore-next-line | $str has manybe changed */ + return self::to_iso8859($str); + } + + if ( + $to_encoding !== 'UTF-8' + && + $to_encoding !== 'ISO-8859-1' + && + $to_encoding !== 'WINDOWS-1252' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::encode() without mbstring cannot handle "' . $to_encoding . '" encoding', \E_USER_WARNING); + } + + if (self::$SUPPORT['mbstring'] === true) { + $str_encoded = \mb_convert_encoding( + $str, + $to_encoding, + $from_encoding + ); + + if ($str_encoded) { + \assert(\is_string($str_encoded)); + + return $str_encoded; + } + } + + /** @noinspection PhpUsageOfSilenceOperatorInspection - Detected an incomplete multibyte character in input string */ + $return = @\iconv($from_encoding, $to_encoding, $str); + if ($return !== false) { + return $return; + } + + return $str; + } + + /** + * @param string $str + * @param string $from_charset [optional] <p>Set the input charset.</p> + * @param string $to_charset [optional] <p>Set the output charset.</p> + * @param string $transfer_encoding [optional] <p>Set the transfer encoding.</p> + * @param string $linefeed [optional] <p>Set the used linefeed.</p> + * @param int<1, max> $indent [optional] <p>Set the max length indent.</p> + * + * @psalm-pure + * + * @return false|string + * <p>An encoded MIME field on success, + * or false if an error occurs during the encoding.</p> + */ + public static function encode_mimeheader( + string $str, + string $from_charset = 'UTF-8', + string $to_charset = 'UTF-8', + string $transfer_encoding = 'Q', + string $linefeed = "\r\n", + int $indent = 76 + ) { + if ($from_charset !== 'UTF-8' && $from_charset !== 'CP850') { + $from_charset = self::normalize_encoding($from_charset, 'UTF-8'); + } + + if ($to_charset !== 'UTF-8' && $to_charset !== 'CP850') { + $to_charset = self::normalize_encoding($to_charset, 'UTF-8'); + } + + // always fallback via symfony polyfill + return \iconv_mime_encode( + '', + $str, + [ + 'scheme' => $transfer_encoding, + 'line-length' => $indent, + 'input-charset' => $from_charset, + 'output-charset' => $to_charset, + 'line-break-chars' => $linefeed, + ] + ); + } + + /** + * Create an extract from a sentence, so if the search-string was found, it tries to center in the output. + * + * @param string $str <p>The input string.</p> + * @param string $search <p>The searched string.</p> + * @param int|null $length [optional] <p>Default: null === text->length / 2</p> + * @param string $replacer_for_skipped_text [optional] <p>Default: …</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function extract_text( + string $str, + string $search = '', + int $length = null, + string $replacer_for_skipped_text = '…', + string $encoding = 'UTF-8' + ): string { + if ($str === '') { + return ''; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + $trim_chars = "\t\r\n -_()!~?=+/*\\,.:;\"'[]{}`&"; + + if ($length === null) { + $length = (int) \round((int) self::strlen($str, $encoding) / 2); + } + + if ($search === '') { + if ($encoding === 'UTF-8') { + if ($length > 0) { + $string_length = (int) \mb_strlen($str); + $end = ($length - 1) > $string_length ? $string_length : ($length - 1); + } else { + $end = 0; + } + + $pos = (int) \min( + \mb_strpos($str, ' ', $end), + \mb_strpos($str, '.', $end) + ); + } else { + if ($length > 0) { + $string_length = (int) self::strlen($str, $encoding); + $end = ($length - 1) > $string_length ? $string_length : ($length - 1); + } else { + $end = 0; + } + + $pos = (int) \min( + self::strpos($str, ' ', $end, $encoding), + self::strpos($str, '.', $end, $encoding) + ); + } + + if ($pos) { + if ($encoding === 'UTF-8') { + $str_sub = \mb_substr($str, 0, $pos); + } else { + $str_sub = self::substr($str, 0, $pos, $encoding); + } + + if ($str_sub === false) { + return ''; + } + + return \rtrim($str_sub, $trim_chars) . $replacer_for_skipped_text; + } + + return $str; + } + + if ($encoding === 'UTF-8') { + $word_position = (int) \mb_stripos($str, $search); + $half_side = (int) ($word_position - $length / 2 + (int) \mb_strlen($search) / 2); + } else { + $word_position = (int) self::stripos($str, $search, 0, $encoding); + $half_side = (int) ($word_position - $length / 2 + (int) self::strlen($search, $encoding) / 2); + } + + $pos_start = 0; + if ($half_side > 0) { + if ($encoding === 'UTF-8') { + $half_text = \mb_substr($str, 0, $half_side); + } else { + $half_text = self::substr($str, 0, $half_side, $encoding); + } + if ($half_text !== false) { + if ($encoding === 'UTF-8') { + $pos_start = (int) \max( + \mb_strrpos($half_text, ' '), + \mb_strrpos($half_text, '.') + ); + } else { + $pos_start = (int) \max( + self::strrpos($half_text, ' ', 0, $encoding), + self::strrpos($half_text, '.', 0, $encoding) + ); + } + } + } + + if ($word_position && $half_side > 0) { + $offset = $pos_start + $length - 1; + $real_length = (int) self::strlen($str, $encoding); + + if ($offset > $real_length) { + $offset = $real_length; + } + + if ($encoding === 'UTF-8') { + $pos_end = (int) \min( + \mb_strpos($str, ' ', $offset), + \mb_strpos($str, '.', $offset) + ) - $pos_start; + } else { + $pos_end = (int) \min( + self::strpos($str, ' ', $offset, $encoding), + self::strpos($str, '.', $offset, $encoding) + ) - $pos_start; + } + + if (!$pos_end || $pos_end <= 0) { + if ($encoding === 'UTF-8') { + $str_sub = \mb_substr($str, $pos_start, (int) \mb_strlen($str)); + } else { + $str_sub = self::substr($str, $pos_start, (int) self::strlen($str, $encoding), $encoding); + } + if ($str_sub !== false) { + $extract = $replacer_for_skipped_text . \ltrim($str_sub, $trim_chars); + } else { + $extract = ''; + } + } else { + if ($encoding === 'UTF-8') { + $str_sub = \mb_substr($str, $pos_start, $pos_end); + } else { + $str_sub = self::substr($str, $pos_start, $pos_end, $encoding); + } + if ($str_sub !== false) { + $extract = $replacer_for_skipped_text . \trim($str_sub, $trim_chars) . $replacer_for_skipped_text; + } else { + $extract = ''; + } + } + } else { + $offset = $length - 1; + $true_length = (int) self::strlen($str, $encoding); + + if ($offset > $true_length) { + $offset = $true_length; + } + + if ($encoding === 'UTF-8') { + $pos_end = (int) \min( + \mb_strpos($str, ' ', $offset), + \mb_strpos($str, '.', $offset) + ); + } else { + $pos_end = (int) \min( + self::strpos($str, ' ', $offset, $encoding), + self::strpos($str, '.', $offset, $encoding) + ); + } + + if ($pos_end) { + if ($encoding === 'UTF-8') { + $str_sub = \mb_substr($str, 0, $pos_end); + } else { + $str_sub = self::substr($str, 0, $pos_end, $encoding); + } + if ($str_sub !== false) { + $extract = \rtrim($str_sub, $trim_chars) . $replacer_for_skipped_text; + } else { + $extract = ''; + } + } else { + $extract = $str; + } + } + + return $extract; + } + + /** + * Reads entire file into a string. + * + * EXAMPLE: <code>UTF8::file_get_contents('utf16le.txt'); // ...</code> + * + * WARNING: Do not use UTF-8 Option ($convert_to_utf8) for binary files (e.g.: images) !!! + * + * @see http://php.net/manual/en/function.file-get-contents.php + * + * @param string $filename <p> + * Name of the file to read. + * </p> + * @param bool $use_include_path [optional] <p> + * Prior to PHP 5, this parameter is called + * use_include_path and is a bool. + * As of PHP 5 the FILE_USE_INCLUDE_PATH can be used + * to trigger include path + * search. + * </p> + * @param resource|null $context [optional] <p> + * A valid context resource created with + * stream_context_create. If you don't need to use a + * custom context, you can skip this parameter by &null;. + * </p> + * @param int|null $offset [optional] <p> + * The offset where the reading starts. + * </p> + * @param int<0, max>|null $max_length [optional] <p> + * Maximum length of data read. The default is to read until end + * of file is reached. + * </p> + * @param int $timeout <p>The time in seconds for the timeout.</p> + * @param bool $convert_to_utf8 <strong>WARNING!!!</strong> <p>Maybe you can't use this option for + * some files, because they used non default utf-8 chars. Binary files + * like images or pdf will not be converted.</p> + * @param string $from_encoding [optional] <p>e.g. 'UTF-16', 'UTF-8', 'ISO-8859-1', etc.<br> + * A empty string will trigger the autodetect anyway.</p> + * + * @psalm-pure + * + * @return false|string + * <p>The function returns the read data as string or <b>false</b> on failure.</p> + */ + public static function file_get_contents( + string $filename, + bool $use_include_path = false, + $context = null, + int $offset = null, + int $max_length = null, + int $timeout = 10, + bool $convert_to_utf8 = true, + string $from_encoding = '' + ) { + // init + /** @noinspection CallableParameterUseCaseInTypeContextInspection - is ok here */ + $filename = Bootup::filter_sanitize_string_polyfill($filename); + if ($filename === false) { + return false; + } + + if ($timeout && $context === null) { + $context = \stream_context_create( + [ + 'http' => [ + 'timeout' => $timeout, + ], + ] + ); + } + + if ($offset === null) { + $offset = 0; + } + + if (\is_int($max_length)) { + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + if ($max_length < 0) { + $max_length = 0; + } + + $data = \file_get_contents($filename, $use_include_path, $context, $offset, $max_length); + } else { + $data = \file_get_contents($filename, $use_include_path, $context, $offset); + } + + // return false on error + if ($data === false) { + return false; + } + + if ( + $convert_to_utf8 + && + ( + !self::is_binary($data, true) + || + self::is_utf16($data, false) !== false + || + self::is_utf32($data, false) !== false + ) + ) { + $data = self::encode('UTF-8', $data, false, $from_encoding); + $data = self::cleanup($data); + } + + return $data; + } + + /** + * Checks if a file starts with BOM (Byte Order Mark) character. + * + * EXAMPLE: <code>UTF8::file_has_bom('utf8_with_bom.txt'); // true</code> + * + * @param string $file_path <p>Path to a valid file.</p> + * + * @throws \RuntimeException if file_get_contents() returned false + * + * @return bool + * <p><strong>true</strong> if the file has BOM at the start, <strong>false</strong> otherwise</p> + * + * @psalm-pure + */ + public static function file_has_bom(string $file_path): bool + { + $file_content = \file_get_contents($file_path); + if ($file_content === false) { + throw new \RuntimeException('file_get_contents() returned false for:' . $file_path); + } + + return self::string_has_bom($file_content); + } + + /** + * Normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. + * + * EXAMPLE: <code>UTF8::filter(array("\xE9", 'à', 'a')); // array('é', 'à', 'a')</code> + * + * @param array|object|string $var + * @param int $normalization_form + * @param string $leading_combining + * + * @psalm-pure + * + * @return mixed + * + * @template TFilter + * @phpstan-param TFilter $var + * @phpstan-return TFilter + */ + public static function filter( + $var, + int $normalization_form = \Normalizer::NFC, + string $leading_combining = '◌' + ) { + switch (\gettype($var)) { + case 'object': + case 'array': + /* @phpstan-ignore-next-line | object & array are both iterable */ + foreach ($var as &$v) { + $v = self::filter($v, $normalization_form, $leading_combining); + } + unset($v); + + break; + case 'string': + + if (\strpos($var, "\r") !== false) { + $var = self::normalize_line_ending($var); + } + + if (!ASCII::is_ascii($var)) { + if (\Normalizer::isNormalized($var, $normalization_form)) { + $n = '-'; + } else { + $n = \Normalizer::normalize($var, $normalization_form); + + if ($n && isset($n[0])) { + $var = $n; + } else { + $var = self::encode('UTF-8', $var); + } + } + + \assert(\is_string($var)); + if ( + $n + && + $var[0] >= "\x80" + && + isset($n[0], $leading_combining[0]) + && + \preg_match('/^\\p{Mn}/u', $var) + ) { + // Prevent leading combining chars + // for NFC-safe concatenations. + $var = $leading_combining . $var; + } + } + + break; + default: + // nothing + } + + /** @noinspection PhpSillyAssignmentInspection */ + /** @phpstan-var TFilter $var */ + $var = $var; + + return $var; + } + + /** + * "filter_input()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. + * + * Gets a specific external variable by name and optionally filters it. + * + * EXAMPLE: <code> + * // _GET['foo'] = 'bar'; + * UTF8::filter_input(INPUT_GET, 'foo', FILTER_UNSAFE_RAW)); // 'bar' + * </code> + * + * @see http://php.net/manual/en/function.filter-input.php + * + * @param int $type <p> + * One of <b>INPUT_GET</b>, <b>INPUT_POST</b>, + * <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or + * <b>INPUT_ENV</b>. + * </p> + * @param string $variable_name <p> + * Name of a variable to get. + * </p> + * @param int $filter [optional] <p> + * The ID of the filter to apply. The + * manual page lists the available filters. + * </p> + * @param int|int[]|null $options [optional] <p> + * Associative array of options or bitwise disjunction of flags. If filter + * accepts options, flags can be provided in "flags" field of array. + * </p> + * + * @psalm-pure + * + * @return mixed + * <p> + * Value of the requested variable on success, <b>FALSE</b> if the filter fails, or <b>NULL</b> if the + * <i>variable_name</i> variable is not set. If the flag <b>FILTER_NULL_ON_FAILURE</b> is used, it + * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. + * </p> + */ + public static function filter_input( + int $type, + string $variable_name, + int $filter = \FILTER_DEFAULT, + $options = null + ) { + /** + * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here + */ + if ($options === null || \func_num_args() < 4) { + $var = \filter_input($type, $variable_name, $filter); + } else { + $var = \filter_input($type, $variable_name, $filter, $options); + } + + return self::filter($var); + } + + /** + * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. + * + * Gets external variables and optionally filters them. + * + * EXAMPLE: <code> + * // _GET['foo'] = 'bar'; + * UTF8::filter_input_array(INPUT_GET, array('foo' => 'FILTER_UNSAFE_RAW')); // array('bar') + * </code> + * + * @see http://php.net/manual/en/function.filter-input-array.php + * + * @param int $type <p> + * One of <b>INPUT_GET</b>, <b>INPUT_POST</b>, + * <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or + * <b>INPUT_ENV</b>. + * </p> + * @param array<string, mixed>|null $definition [optional] <p> + * An array defining the arguments. A valid key is a string + * containing a variable name and a valid value is either a filter type, or an array + * optionally specifying the filter, flags and options. If the value is an + * array, valid keys are filter which specifies the + * filter type, + * flags which specifies any flags that apply to the + * filter, and options which specifies any options that + * apply to the filter. See the example below for a better understanding. + * </p> + * <p> + * This parameter can be also an integer holding a filter constant. Then all values in the + * input array are filtered by this filter. + * </p> + * @param bool $add_empty [optional] <p> + * Add missing keys as <b>NULL</b> to the return value. + * </p> + * + * @psalm-pure + * + * @return array<string, mixed>|false|null + * <p> + * An array containing the values of the requested variables on success, or <b>FALSE</b> on failure. + * An array value will be <b>FALSE</b> if the filter fails, or <b>NULL</b> if the variable is not + * set. Or if the flag <b>FILTER_NULL_ON_FAILURE</b> is used, it returns <b>FALSE</b> if the variable + * is not set and <b>NULL</b> if the filter fails. + * </p> + */ + public static function filter_input_array( + int $type, + $definition = null, + bool $add_empty = true + ) { + /** + * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here + */ + if ($definition === null || \func_num_args() < 2) { + $a = \filter_input_array($type); + } else { + $a = \filter_input_array($type, $definition, $add_empty); + } + + /* @phpstan-ignore-next-line | magic frm self::filter :/ */ + return self::filter($a); + } + + /** + * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. + * + * Filters a variable with a specified filter. + * + * EXAMPLE: <code>UTF8::filter_var('-ABC-中文空白-', FILTER_VALIDATE_URL); // false</code> + * + * @see http://php.net/manual/en/function.filter-var.php + * + * @param float|int|string|null $variable <p> + * Value to filter. + * </p> + * @param int $filter [optional] <p> + * The ID of the filter to apply. The + * manual page lists the available filters. + * </p> + * @param int|int[] $options [optional] <p> + * Associative array of options or bitwise disjunction of flags. If filter + * accepts options, flags can be provided in "flags" field of array. For + * the "callback" filter, callable type should be passed. The + * callback must accept one argument, the value to be filtered, and return + * the value after filtering/sanitizing it. + * </p> + * <p> + * <code> + * // for filters that accept options, use this format + * $options = array( + * 'options' => array( + * 'default' => 3, // value to return if the filter fails + * // other options here + * 'min_range' => 0 + * ), + * 'flags' => FILTER_FLAG_ALLOW_OCTAL, + * ); + * $var = filter_var('0755', FILTER_VALIDATE_INT, $options); + * // for filter that only accept flags, you can pass them directly + * $var = filter_var('oops', FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); + * // for filter that only accept flags, you can also pass as an array + * $var = filter_var('oops', FILTER_VALIDATE_BOOLEAN, + * array('flags' => FILTER_NULL_ON_FAILURE)); + * // callback validate filter + * function foo($value) + * { + * // Expected format: Surname, GivenNames + * if (strpos($value, ", ") === false) return false; + * list($surname, $givennames) = explode(", ", $value, 2); + * $empty = (empty($surname) || empty($givennames)); + * $notstrings = (!is_string($surname) || !is_string($givennames)); + * if ($empty || $notstrings) { + * return false; + * } else { + * return $value; + * } + * } + * $var = filter_var('Doe, Jane Sue', FILTER_CALLBACK, array('options' => 'foo')); + * </code> + * </p> + * + * @psalm-pure + * + * @return mixed + * <p>The filtered data, or <b>FALSE</b> if the filter fails.</p> + */ + public static function filter_var( + $variable, + int $filter = \FILTER_DEFAULT, + $options = 0 + ) { + /** + * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here + */ + if (\func_num_args() < 3) { + $variable = \filter_var($variable, $filter); + } else { + $variable = \filter_var($variable, $filter, $options); + } + + return self::filter($variable); + } + + /** + * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. + * + * Gets multiple variables and optionally filters them. + * + * EXAMPLE: <code> + * $filters = [ + * 'name' => ['filter' => FILTER_CALLBACK, 'options' => [UTF8::class, 'ucwords']], + * 'age' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 1, 'max_range' => 120]], + * 'email' => FILTER_VALIDATE_EMAIL, + * ]; + * + * $data = [ + * 'name' => 'κόσμε', + * 'age' => '18', + * 'email' => 'foo@bar.de' + * ]; + * + * UTF8::filter_var_array($data, $filters, true); // ['name' => 'Κόσμε', 'age' => 18, 'email' => 'foo@bar.de'] + * </code> + * + * @see http://php.net/manual/en/function.filter-var-array.php + * + * @param array<string, mixed> $data <p> + * An array with string keys containing the data to filter. + * </p> + * @param array<string, mixed>|int $definition [optional] <p> + * An array defining the arguments. A valid key is a string + * containing a variable name and a valid value is either a + * filter type, or an + * array optionally specifying the filter, flags and options. + * If the value is an array, valid keys are filter + * which specifies the filter type, + * flags which specifies any flags that apply to the + * filter, and options which specifies any options that + * apply to the filter. See the example below for a better understanding. + * </p> + * <p> + * This parameter can be also an integer holding a filter constant. Then all values + * in the input array are filtered by this filter. + * </p> + * @param bool $add_empty [optional] <p> + * Add missing keys as <b>NULL</b> to the return value. + * </p> + * + * @psalm-pure + * + * @return array<string, mixed>|false|null + * <p> + * An array containing the values of the requested variables on success, or <b>FALSE</b> on failure. + * An array value will be <b>FALSE</b> if the filter fails, or <b>NULL</b> if the variable is not + * set. + * </p> + */ + public static function filter_var_array( + array $data, + $definition = 0, + bool $add_empty = true + ) { + /** + * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here + */ + if (\func_num_args() < 2) { + $a = \filter_var_array($data); + } else { + $a = \filter_var_array($data, $definition, $add_empty); + } + + /* @phpstan-ignore-next-line | magic frm self::filter :/ */ + return self::filter($a); + } + + /** + * Checks whether finfo is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function finfo_loaded(): bool + { + return \class_exists('finfo'); + } + + /** + * Returns the first $n characters of the string. + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $n <p>Number of characters to retrieve from the start.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function first_char( + string $str, + int $n = 1, + string $encoding = 'UTF-8' + ): string { + if ( + $str === '' + || + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + $n <= 0 + ) { + return ''; + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr($str, 0, $n); + } + + return (string) self::substr($str, 0, $n, $encoding); + } + + /** + * Check if the number of Unicode characters isn't greater than the specified integer. + * + * EXAMPLE: <code>UTF8::fits_inside('κόσμε', 6); // false</code> + * + * @param string $str the original string to be checked + * @param int $box_size the size in number of chars to be checked against string + * + * @psalm-pure + * + * @return bool + * <p><strong>TRUE</strong> if string is less than or equal to $box_size, <strong>FALSE</strong> otherwise.</p> + */ + public static function fits_inside(string $str, int $box_size): bool + { + return (int) self::strlen($str) <= $box_size; + } + + /** + * Try to fix simple broken UTF-8 strings. + * + * INFO: Take a look at "UTF8::fix_utf8()" if you need a more advanced fix for broken UTF-8 strings. + * + * EXAMPLE: <code>UTF8::fix_simple_utf8('Düsseldorf'); // 'Düsseldorf'</code> + * + * If you received an UTF-8 string that was converted from Windows-1252 as it was ISO-8859-1 + * (ignoring Windows-1252 chars from 80 to 9F) use this function to fix it. + * See: http://en.wikipedia.org/wiki/Windows-1252 + * + * @param string $str <p>The input string</p> + * + * @psalm-pure + * + * @return string + */ + public static function fix_simple_utf8(string $str): string + { + if ($str === '') { + return ''; + } + + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<mixed>|null + */ + static $BROKEN_UTF8_TO_UTF8_KEYS_CACHE = null; + + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<mixed>|null + */ + static $BROKEN_UTF8_TO_UTF8_VALUES_CACHE = null; + + if ($BROKEN_UTF8_TO_UTF8_KEYS_CACHE === null) { + if (self::$BROKEN_UTF8_FIX === null) { + self::$BROKEN_UTF8_FIX = self::getData('utf8_fix'); + } + + $BROKEN_UTF8_TO_UTF8_KEYS_CACHE = \array_keys(self::$BROKEN_UTF8_FIX ?: []); + $BROKEN_UTF8_TO_UTF8_VALUES_CACHE = self::$BROKEN_UTF8_FIX; + } + + \assert(\is_array($BROKEN_UTF8_TO_UTF8_VALUES_CACHE)); + + return \str_replace($BROKEN_UTF8_TO_UTF8_KEYS_CACHE, $BROKEN_UTF8_TO_UTF8_VALUES_CACHE, $str); + } + + /** + * Fix a double (or multiple) encoded UTF8 string. + * + * EXAMPLE: <code>UTF8::fix_utf8('Fédération'); // 'Fédération'</code> + * + * @param string|string[] $str you can use a string or an array of strings + * + * @psalm-pure + * + * @return string|string[] + * <p>Will return the fixed input-"array" or + * the fixed input-"string".</p> + * + * @template TFixUtf8 as string|string[] + * @phpstan-param TFixUtf8 $str + * @phpstan-return TFixUtf8 + */ + public static function fix_utf8($str) + { + if (\is_array($str)) { + foreach ($str as &$v) { + $v = self::fix_utf8($v); + } + unset($v); + + /** + * @psalm-suppress InvalidReturnStatement + */ + return $str; + } + + $str = (string) $str; /* @phpstan-ignore-line | TFixUtf8 is string here */ + $last = ''; + while ($last !== $str) { + $last = $str; + /** + * @psalm-suppress PossiblyInvalidArgument + */ + $str = self::to_utf8( + self::utf8_decode($str, true) + ); + } + + /** + * @psalm-suppress InvalidReturnStatement + */ + return $str; + } + + /** + * Get character of a specific character. + * + * EXAMPLE: <code>UTF8::getCharDirection('ا'); // 'RTL'</code> + * + * @param string $char + * + * @psalm-pure + * + * @return string + * <p>'RTL' or 'LTR'.</p> + */ + public static function getCharDirection(string $char): string + { + if (self::$SUPPORT['intlChar'] === true) { + $tmp_return = \IntlChar::charDirection($char); + + // from "IntlChar"-Class + $char_direction = [ + 'RTL' => [1, 13, 14, 15, 21], + 'LTR' => [0, 11, 12, 20], + ]; + + if (\in_array($tmp_return, $char_direction['LTR'], true)) { + return 'LTR'; + } + + if (\in_array($tmp_return, $char_direction['RTL'], true)) { + return 'RTL'; + } + } + + $c = static::chr_to_decimal($char); + + if (!($c >= 0x5be && $c <= 0x10b7f)) { + return 'LTR'; + } + + if ($c <= 0x85e) { + if ($c === 0x5be || + $c === 0x5c0 || + $c === 0x5c3 || + $c === 0x5c6 || + ($c >= 0x5d0 && $c <= 0x5ea) || + ($c >= 0x5f0 && $c <= 0x5f4) || + $c === 0x608 || + $c === 0x60b || + $c === 0x60d || + $c === 0x61b || + ($c >= 0x61e && $c <= 0x64a) || + ($c >= 0x66d && $c <= 0x66f) || + ($c >= 0x671 && $c <= 0x6d5) || + ($c >= 0x6e5 && $c <= 0x6e6) || + ($c >= 0x6ee && $c <= 0x6ef) || + ($c >= 0x6fa && $c <= 0x70d) || + $c === 0x710 || + ($c >= 0x712 && $c <= 0x72f) || + ($c >= 0x74d && $c <= 0x7a5) || + $c === 0x7b1 || + ($c >= 0x7c0 && $c <= 0x7ea) || + ($c >= 0x7f4 && $c <= 0x7f5) || + $c === 0x7fa || + ($c >= 0x800 && $c <= 0x815) || + $c === 0x81a || + $c === 0x824 || + $c === 0x828 || + ($c >= 0x830 && $c <= 0x83e) || + ($c >= 0x840 && $c <= 0x858) || + $c === 0x85e + ) { + return 'RTL'; + } + } elseif ($c === 0x200f) { + return 'RTL'; + } elseif ($c >= 0xfb1d) { + if ($c === 0xfb1d || + ($c >= 0xfb1f && $c <= 0xfb28) || + ($c >= 0xfb2a && $c <= 0xfb36) || + ($c >= 0xfb38 && $c <= 0xfb3c) || + $c === 0xfb3e || + ($c >= 0xfb40 && $c <= 0xfb41) || + ($c >= 0xfb43 && $c <= 0xfb44) || + ($c >= 0xfb46 && $c <= 0xfbc1) || + ($c >= 0xfbd3 && $c <= 0xfd3d) || + ($c >= 0xfd50 && $c <= 0xfd8f) || + ($c >= 0xfd92 && $c <= 0xfdc7) || + ($c >= 0xfdf0 && $c <= 0xfdfc) || + ($c >= 0xfe70 && $c <= 0xfe74) || + ($c >= 0xfe76 && $c <= 0xfefc) || + ($c >= 0x10800 && $c <= 0x10805) || + $c === 0x10808 || + ($c >= 0x1080a && $c <= 0x10835) || + ($c >= 0x10837 && $c <= 0x10838) || + $c === 0x1083c || + ($c >= 0x1083f && $c <= 0x10855) || + ($c >= 0x10857 && $c <= 0x1085f) || + ($c >= 0x10900 && $c <= 0x1091b) || + ($c >= 0x10920 && $c <= 0x10939) || + $c === 0x1093f || + $c === 0x10a00 || + ($c >= 0x10a10 && $c <= 0x10a13) || + ($c >= 0x10a15 && $c <= 0x10a17) || + ($c >= 0x10a19 && $c <= 0x10a33) || + ($c >= 0x10a40 && $c <= 0x10a47) || + ($c >= 0x10a50 && $c <= 0x10a58) || + ($c >= 0x10a60 && $c <= 0x10a7f) || + ($c >= 0x10b00 && $c <= 0x10b35) || + ($c >= 0x10b40 && $c <= 0x10b55) || + ($c >= 0x10b58 && $c <= 0x10b72) || + ($c >= 0x10b78) + ) { + return 'RTL'; + } + } + + return 'LTR'; + } + + /** + * Check for php-support. + * + * @param string|null $key + * + * @psalm-pure + * + * @return mixed + * Return the full support-"array", if $key === null<br> + * return bool-value, if $key is used and available<br> + * otherwise return <strong>null</strong> + */ + public static function getSupportInfo(string $key = null) + { + if ($key === null) { + return self::$SUPPORT; + } + + if (self::$INTL_TRANSLITERATOR_LIST === null) { + self::$INTL_TRANSLITERATOR_LIST = self::getData('transliterator_list'); + } + // compatibility fix for old versions + self::$SUPPORT['intl__transliterator_list_ids'] = self::$INTL_TRANSLITERATOR_LIST; + + return self::$SUPPORT[$key] ?? null; + } + + /** + * Warning: this method only works for some file-types (png, jpg) + * if you need more supported types, please use e.g. "finfo" + * + * @param string $str + * @param array{ext: null|string, mime: null|string, type: null|string} $fallback + * + * @return array{ext: null|string, mime: null|string, type: null|string} + * + * @psalm-pure + */ + public static function get_file_type( + string $str, + array $fallback = [ + 'ext' => null, + 'mime' => 'application/octet-stream', + 'type' => null, + ] + ): array { + if ($str === '') { + return $fallback; + } + + /** @var false|string $str_info - needed for PhpStan (stubs error) */ + $str_info = \substr($str, 0, 2); + if ($str_info === false || \strlen($str_info) !== 2) { + return $fallback; + } + + // DEBUG + //var_dump($str_info); + + $str_info = \unpack('C2chars', $str_info); + + if ($str_info === false) { + return $fallback; + } + $type_code = (int) ($str_info['chars1'] . $str_info['chars2']); + + // DEBUG + //var_dump($type_code); + + // + // info: https://en.wikipedia.org/wiki/Magic_number_%28programming%29#Format_indicator + // + switch ($type_code) { + // WARNING: do not add too simple comparisons, because of false-positive results: + // + // 3780 => 'pdf', 7790 => 'exe', 7784 => 'midi', 8075 => 'zip', + // 8297 => 'rar', 7173 => 'gif', 7373 => 'tiff' 6677 => 'bmp', ... + // + case 255216: + $ext = 'jpg'; + $mime = 'image/jpeg'; + $type = 'binary'; + + break; + case 13780: + $ext = 'png'; + $mime = 'image/png'; + $type = 'binary'; + + break; + default: + return $fallback; + } + + return [ + 'ext' => $ext, + 'mime' => $mime, + 'type' => $type, + ]; + } + + /** + * @param int<1, max> $length <p>Length of the random string.</p> + * @param string $possible_chars [optional] <p>Characters string for the random selection.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @return string + * + * @template T as string + * @phpstan-param T $possible_chars + * @phpstan-return (T is non-empty-string ? non-empty-string : '') + */ + public static function get_random_string( + int $length, + string $possible_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', + string $encoding = 'UTF-8' + ): string { + // init + $i = 0; + $str = ''; + + // + // add random chars + // + + if ($encoding === 'UTF-8') { + $max_length = (int) \mb_strlen($possible_chars); + if ($max_length === 0) { + return ''; + } + + while ($i < $length) { + try { + $rand_int = \random_int(0, $max_length - 1); + } catch (\Exception $e) { + $rand_int = \mt_rand(0, $max_length - 1); + } + $char = \mb_substr($possible_chars, $rand_int, 1); + /* @phpstan-ignore-next-line | "false" was at least the return type in the past, or? */ + if ($char !== false) { + $str .= $char; + ++$i; + } + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $max_length = (int) self::strlen($possible_chars, $encoding); + if ($max_length === 0) { + return ''; + } + + while ($i < $length) { + try { + $rand_int = \random_int(0, $max_length - 1); + } catch (\Exception $e) { + $rand_int = \mt_rand(0, $max_length - 1); + } + $char = self::substr($possible_chars, $rand_int, 1, $encoding); + if ($char !== false) { + $str .= $char; + ++$i; + } + } + } + + return $str; + } + + /** + * @param int|string $extra_entropy [optional] <p>Extra entropy via a string or int value.</p> + * @param bool $use_md5 [optional] <p>Return the unique identifier as md5-hash? Default: true</p> + * + * @return non-empty-string + */ + public static function get_unique_string($extra_entropy = '', bool $use_md5 = true): string + { + try { + $rand_int = \random_int(0, \mt_getrandmax()); + } catch (\Exception $e) { + $rand_int = \mt_rand(0, \mt_getrandmax()); + } + + $unique_helper = $rand_int . + \session_id() . + ($_SERVER['REMOTE_ADDR'] ?? '') . + ($_SERVER['SERVER_ADDR'] ?? '') . + $extra_entropy; + + $unique_string = \uniqid($unique_helper, true); + + if ($use_md5) { + $unique_string = \md5($unique_string . $unique_helper); + } + + return $unique_string; + } + + /** + * Returns true if the string contains a lower case char, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not the string contains a lower case character.</p> + */ + public static function has_lowercase(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('.*[[:lower:]]', $str); + } + + return self::str_matches_pattern($str, '.*[[:lower:]]'); + } + + /** + * Returns true if the string contains whitespace, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not the string contains whitespace.</p> + */ + public static function has_whitespace(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('.*[[:space:]]', $str); + } + + return self::str_matches_pattern($str, '.*[[:space:]]'); + } + + /** + * Returns true if the string contains an upper case char, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not the string contains an upper case character.</p> + */ + public static function has_uppercase(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('.*[[:upper:]]', $str); + } + + return self::str_matches_pattern($str, '.*[[:upper:]]'); + } + + /** + * Converts a hexadecimal value into a UTF-8 character. + * + * INFO: opposite to UTF8::chr_to_hex() + * + * EXAMPLE: <code>UTF8::hex_to_chr('U+00a7'); // '§'</code> + * + * @param string $hexdec <p>The hexadecimal value.</p> + * + * @psalm-pure + * + * @return string + * <p>One single UTF-8 character.</p> + */ + public static function hex_to_chr(string $hexdec) + { + /** @noinspection PhpUsageOfSilenceOperatorInspection - Invalid characters passed for attempted conversion, these have been ignored */ + return self::decimal_to_chr((int) @\hexdec($hexdec)); + } + + /** + * Converts hexadecimal U+xxxx code point representation to integer. + * + * INFO: opposite to UTF8::int_to_hex() + * + * EXAMPLE: <code>UTF8::hex_to_int('U+00f1'); // 241</code> + * + * @param string $hexdec <p>The hexadecimal code point representation.</p> + * + * @psalm-pure + * + * @return false|int + * <p>The code point, or false on failure.</p> + */ + public static function hex_to_int($hexdec) + { + // init + $hexdec = (string) $hexdec; + + if ($hexdec === '') { + return false; + } + + if (\preg_match('/^(?:\\\u|U\+|)([a-zA-Z0-9]{4,6})$/', $hexdec, $match)) { + return \intval($match[1], 16); + } + + return false; + } + + /** + * Converts a UTF-8 string to a series of HTML numbered entities. + * + * INFO: opposite to UTF8::html_decode() + * + * EXAMPLE: <code>UTF8::html_encode('中文空白'); // '&#20013;&#25991;&#31354;&#30333;'</code> + * + * @param string $str <p>The Unicode string to be encoded as numbered entities.</p> + * @param bool $keep_ascii_chars [optional] <p>Keep ASCII chars.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>HTML numbered entities.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function html_encode( + string $str, + bool $keep_ascii_chars = false, + string $encoding = 'UTF-8' + ): string { + if ($str === '') { + return ''; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // INFO: http://stackoverflow.com/questions/35854535/better-explanation-of-convmap-in-mb-encode-numericentity + if (self::$SUPPORT['mbstring'] === true) { + if ($keep_ascii_chars) { + $start_code = 0x80; + } else { + $start_code = 0x00; + } + + if ($encoding === 'UTF-8') { + /** @var false|string|null $return - needed for PhpStan (stubs error) */ + $return = \mb_encode_numericentity( + $str, + [$start_code, 0xfffff, 0, 0xfffff] + ); + if ($return !== null && $return !== false) { + return $return; + } + } + + /** @var false|string|null $return - needed for PhpStan (stubs error) */ + $return = \mb_encode_numericentity( + $str, + [$start_code, 0xfffff, 0, 0xfffff], + $encoding + ); + if ($return !== null && $return !== false) { + return $return; + } + } + + // + // fallback via vanilla php + // + + return \implode( + '', + \array_map( + static function (string $chr) use ($keep_ascii_chars, $encoding): string { + return self::single_chr_html_encode($chr, $keep_ascii_chars, $encoding); + }, + self::str_split($str) + ) + ); + } + + /** + * UTF-8 version of html_entity_decode() + * + * The reason we are not using html_entity_decode() by itself is because + * while it is not technically correct to leave out the semicolon + * at the end of an entity most browsers will still interpret the entity + * correctly. html_entity_decode() does not convert entities without + * semicolons, so we are left with our own little solution here. Bummer. + * + * Convert all HTML entities to their applicable characters. + * + * INFO: opposite to UTF8::html_encode() + * + * EXAMPLE: <code>UTF8::html_entity_decode('&#20013;&#25991;&#31354;&#30333;'); // '中文空白'</code> + * + * @see http://php.net/manual/en/function.html-entity-decode.php + * + * @param string $str <p> + * The input string. + * </p> + * @param int|null $flags [optional] <p> + * A bitmask of one or more of the following flags, which specify how to handle quotes + * and which document type to use. The default is ENT_COMPAT | ENT_HTML401. + * <table> + * Available <i>flags</i> constants + * <tr valign="top"> + * <td>Constant Name</td> + * <td>Description</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_COMPAT</b></td> + * <td>Will convert double-quotes and leave single-quotes alone.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_QUOTES</b></td> + * <td>Will convert both double and single quotes.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_NOQUOTES</b></td> + * <td>Will leave both double and single quotes unconverted.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_HTML401</b></td> + * <td> + * Handle code as HTML 4.01. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_XML1</b></td> + * <td> + * Handle code as XML 1. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_XHTML</b></td> + * <td> + * Handle code as XHTML. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_HTML5</b></td> + * <td> + * Handle code as HTML 5. + * </td> + * </tr> + * </table> + * </p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The decoded string.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function html_entity_decode( + string $str, + int $flags = null, + string $encoding = 'UTF-8' + ): string { + if ( + !isset($str[3]) // examples: &; || &x; + || + \strpos($str, '&') === false // no "&" + ) { + return $str; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($flags === null) { + $flags = \ENT_QUOTES | \ENT_HTML5; + } + + if ( + $encoding !== 'UTF-8' + && + $encoding !== 'ISO-8859-1' + && + $encoding !== 'WINDOWS-1252' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::html_entity_decode() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + do { + $str_compare = $str; + + if (\strpos($str, '&') !== false) { + if (\strpos($str, '&#') !== false) { + // decode also numeric & UTF16 two byte entities + $str = (string) \preg_replace( + '/(&#(?:x0*[0-9a-fA-F]{2,6}(?![0-9a-fA-F;])|(?:0*\d{2,6}(?![0-9;]))))/S', + '$1;', + $str + ); + } + + $str = \html_entity_decode( + $str, + $flags, + $encoding + ); + } + } while ($str_compare !== $str); + + return $str; + } + + /** + * Create a escape html version of the string via "UTF8::htmlspecialchars()". + * + * @param string $str + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function html_escape(string $str, string $encoding = 'UTF-8'): string + { + return self::htmlspecialchars( + $str, + \ENT_QUOTES | \ENT_SUBSTITUTE, + $encoding + ); + } + + /** + * Remove empty html-tag. + * + * e.g.: <pre><tag></tag></pre> + * + * @param string $str + * + * @psalm-pure + * + * @return string + */ + public static function html_stripe_empty_tags(string $str): string + { + return (string) \preg_replace( + '/<[^\\/>]*?>\\s*?<\\/[^>]*?>/u', + '', + $str + ); + } + + /** + * Convert all applicable characters to HTML entities: UTF-8 version of htmlentities(). + * + * EXAMPLE: <code>UTF8::htmlentities('<白-öäü>'); // '&lt;&#30333;-&ouml;&auml;&uuml;&gt;'</code> + * + * @see http://php.net/manual/en/function.htmlentities.php + * + * @param string $str <p> + * The input string. + * </p> + * @param int $flags [optional] <p> + * A bitmask of one or more of the following flags, which specify how to handle + * quotes, invalid code unit sequences and the used document type. The default is + * ENT_COMPAT | ENT_HTML401. + * <table> + * Available <i>flags</i> constants + * <tr valign="top"> + * <td>Constant Name</td> + * <td>Description</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_COMPAT</b></td> + * <td>Will convert double-quotes and leave single-quotes alone.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_QUOTES</b></td> + * <td>Will convert both double and single quotes.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_NOQUOTES</b></td> + * <td>Will leave both double and single quotes unconverted.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_IGNORE</b></td> + * <td> + * Silently discard invalid code unit sequences instead of returning + * an empty string. Using this flag is discouraged as it + * may have security implications. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_SUBSTITUTE</b></td> + * <td> + * Replace invalid code unit sequences with a Unicode Replacement Character + * U+FFFD (UTF-8) or &#38;#38;#FFFD; (otherwise) instead of returning an empty + * string. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_DISALLOWED</b></td> + * <td> + * Replace invalid code points for the given document type with a + * Unicode Replacement Character U+FFFD (UTF-8) or &#38;#38;#FFFD; + * (otherwise) instead of leaving them as is. This may be useful, for + * instance, to ensure the well-formedness of XML documents with + * embedded external content. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_HTML401</b></td> + * <td> + * Handle code as HTML 4.01. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_XML1</b></td> + * <td> + * Handle code as XML 1. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_XHTML</b></td> + * <td> + * Handle code as XHTML. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_HTML5</b></td> + * <td> + * Handle code as HTML 5. + * </td> + * </tr> + * </table> + * </p> + * @param string $encoding [optional] <p> + * Like <b>htmlspecialchars</b>, + * <b>htmlentities</b> takes an optional third argument + * <i>encoding</i> which defines encoding used in + * conversion. + * Although this argument is technically optional, you are highly + * encouraged to specify the correct value for your code. + * </p> + * @param bool $double_encode [optional] <p> + * When <i>double_encode</i> is turned off PHP will not + * encode existing html entities. The default is to convert everything. + * </p> + * + * @psalm-pure + * + * @return string + * <p> + * The encoded string. + * <br><br> + * If the input <i>string</i> contains an invalid code unit + * sequence within the given <i>encoding</i> an empty string + * will be returned, unless either the <b>ENT_IGNORE</b> or + * <b>ENT_SUBSTITUTE</b> flags are set. + * </p> + */ + public static function htmlentities( + string $str, + int $flags = \ENT_COMPAT, + string $encoding = 'UTF-8', + bool $double_encode = true + ): string { + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + $str = \htmlentities( + $str, + $flags, + $encoding, + $double_encode + ); + + /** + * PHP doesn't replace a backslash to its html entity since this is something + * that's mostly used to escape characters when inserting in a database. Since + * we're using a decent database layer, we don't need this shit and we're replacing + * the double backslashes by its' html entity equivalent. + * + * https://github.com/forkcms/library/blob/master/spoon/filter/filter.php#L303 + */ + $str = \str_replace('\\', '&#92;', $str); + + return self::html_encode($str, true, $encoding); + } + + /** + * Convert only special characters to HTML entities: UTF-8 version of htmlspecialchars() + * + * INFO: Take a look at "UTF8::htmlentities()" + * + * EXAMPLE: <code>UTF8::htmlspecialchars('<白-öäü>'); // '&lt;白-öäü&gt;'</code> + * + * @see http://php.net/manual/en/function.htmlspecialchars.php + * + * @param string $str <p> + * The string being converted. + * </p> + * @param int $flags [optional] <p> + * A bitmask of one or more of the following flags, which specify how to handle + * quotes, invalid code unit sequences and the used document type. The default is + * ENT_COMPAT | ENT_HTML401. + * <table> + * Available <i>flags</i> constants + * <tr valign="top"> + * <td>Constant Name</td> + * <td>Description</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_COMPAT</b></td> + * <td>Will convert double-quotes and leave single-quotes alone.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_QUOTES</b></td> + * <td>Will convert both double and single quotes.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_NOQUOTES</b></td> + * <td>Will leave both double and single quotes unconverted.</td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_IGNORE</b></td> + * <td> + * Silently discard invalid code unit sequences instead of returning + * an empty string. Using this flag is discouraged as it + * may have security implications. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_SUBSTITUTE</b></td> + * <td> + * Replace invalid code unit sequences with a Unicode Replacement Character + * U+FFFD (UTF-8) or &#38;#38;#FFFD; (otherwise) instead of returning an empty + * string. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_DISALLOWED</b></td> + * <td> + * Replace invalid code points for the given document type with a + * Unicode Replacement Character U+FFFD (UTF-8) or &#38;#38;#FFFD; + * (otherwise) instead of leaving them as is. This may be useful, for + * instance, to ensure the well-formedness of XML documents with + * embedded external content. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_HTML401</b></td> + * <td> + * Handle code as HTML 4.01. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_XML1</b></td> + * <td> + * Handle code as XML 1. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_XHTML</b></td> + * <td> + * Handle code as XHTML. + * </td> + * </tr> + * <tr valign="top"> + * <td><b>ENT_HTML5</b></td> + * <td> + * Handle code as HTML 5. + * </td> + * </tr> + * </table> + * </p> + * @param string $encoding [optional] <p> + * Defines encoding used in conversion. + * </p> + * <p> + * For the purposes of this function, the encodings + * ISO-8859-1, ISO-8859-15, + * UTF-8, cp866, + * cp1251, cp1252, and + * KOI8-R are effectively equivalent, provided the + * <i>string</i> itself is valid for the encoding, as + * the characters affected by <b>htmlspecialchars</b> occupy + * the same positions in all of these encodings. + * </p> + * @param bool $double_encode [optional] <p> + * When <i>double_encode</i> is turned off PHP will not + * encode existing html entities, the default is to convert everything. + * </p> + * + * @psalm-pure + * + * @return string + * <p>The converted string.</p> + * <p> + * If the input <i>string</i> contains an invalid code unit + * sequence within the given <i>encoding</i> an empty string + * will be returned, unless either the <b>ENT_IGNORE</b> or + * <b>ENT_SUBSTITUTE</b> flags are set.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function htmlspecialchars( + string $str, + int $flags = \ENT_COMPAT, + string $encoding = 'UTF-8', + bool $double_encode = true + ): string { + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + return \htmlspecialchars( + $str, + $flags, + $encoding, + $double_encode + ); + } + + /** + * Checks whether iconv is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function iconv_loaded(): bool + { + return \extension_loaded('iconv'); + } + + /** + * Converts Integer to hexadecimal U+xxxx code point representation. + * + * INFO: opposite to UTF8::hex_to_int() + * + * EXAMPLE: <code>UTF8::int_to_hex(241); // 'U+00f1'</code> + * + * @param int $int <p>The integer to be converted to hexadecimal code point.</p> + * @param string $prefix [optional] + * + * @psalm-pure + * + * @return string the code point, or empty string on failure + */ + public static function int_to_hex(int $int, string $prefix = 'U+'): string + { + $hex = \dechex($int); + + $hex = (\strlen($hex) < 4 ? \substr('0000' . $hex, -4) : $hex); + + return $prefix . $hex . ''; + } + + /** + * Checks whether intl-char is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function intlChar_loaded(): bool + { + return \class_exists('IntlChar'); + } + + /** + * Checks whether intl is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function intl_loaded(): bool + { + return \extension_loaded('intl'); + } + + /** + * Returns true if the string contains only alphabetic chars, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only alphabetic chars.</p> + */ + public static function is_alpha(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('^[[:alpha:]]*$', $str); + } + + return self::str_matches_pattern($str, '^[[:alpha:]]*$'); + } + + /** + * Returns true if the string contains only alphabetic and numeric chars, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only alphanumeric chars.</p> + */ + public static function is_alphanumeric(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('^[[:alnum:]]*$', $str); + } + + return self::str_matches_pattern($str, '^[[:alnum:]]*$'); + } + + /** + * Returns true if the string contains only punctuation chars, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only punctuation chars.</p> + */ + public static function is_punctuation(string $str): bool + { + return self::str_matches_pattern($str, '^[[:punct:]]*$'); + } + + /** + * Returns true if the string contains only printable (non-invisible) chars, false otherwise. + * + * @param string $str <p>The input string.</p> + * @param bool $ignore_control_characters [optional] <p>Ignore control characters like [LRM] or [LSEP].</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only printable (non-invisible) chars.</p> + */ + public static function is_printable(string $str, bool $ignore_control_characters = false): bool + { + return self::remove_invisible_characters($str, false, '', $ignore_control_characters) === $str; + } + + /** + * Checks if a string is 7 bit ASCII. + * + * EXAMPLE: <code>UTF8::is_ascii('白'); // false</code> + * + * @param string $str <p>The string to check.</p> + * + * @psalm-pure + * + * @return bool + * <p> + * <strong>true</strong> if it is ASCII<br> + * <strong>false</strong> otherwise + * </p> + */ + public static function is_ascii(string $str): bool + { + return ASCII::is_ascii($str); + } + + /** + * Returns true if the string is base64 encoded, false otherwise. + * + * EXAMPLE: <code>UTF8::is_base64('4KSu4KWL4KSo4KS/4KSa'); // true</code> + * + * @param string|null $str <p>The input string.</p> + * @param bool $empty_string_is_valid [optional] <p>Is an empty string valid base64 or not?</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str is base64 encoded.</p> + */ + public static function is_base64($str, bool $empty_string_is_valid = false): bool + { + if ( + !$empty_string_is_valid + && + $str === '' + ) { + return false; + } + + if (!\is_string($str)) { + return false; + } + + $base64String = \base64_decode($str, true); + + return $base64String !== false && \base64_encode($base64String) === $str; + } + + /** + * Check if the input is binary... (is look like a hack). + * + * EXAMPLE: <code>UTF8::is_binary(01); // true</code> + * + * @param int|string $input + * @param bool $strict + * + * @psalm-pure + * + * @return bool + */ + public static function is_binary($input, bool $strict = false): bool + { + $input = (string) $input; + if ($input === '') { + return false; + } + + if (\preg_match('~^[01]+$~', $input)) { + return true; + } + + $ext = self::get_file_type($input); + if ($ext['type'] === 'binary') { + return true; + } + + if (!$strict) { + $test_length = \strlen($input); + $test_null_counting = \substr_count($input, "\x0", 0, $test_length); + if (($test_null_counting / $test_length) > 0.25) { + return true; + } + } + + if ($strict) { + if (self::$SUPPORT['finfo'] === false) { + throw new \RuntimeException('ext-fileinfo: is not installed'); + } + + /** + * @psalm-suppress ImpureMethodCall - it will return the same result for the same file ... + */ + $finfo_encoding = (new \finfo(\FILEINFO_MIME_ENCODING))->buffer($input); + if ($finfo_encoding && $finfo_encoding === 'binary') { + return true; + } + } + + return false; + } + + /** + * Check if the file is binary. + * + * EXAMPLE: <code>UTF8::is_binary('./utf32.txt'); // true</code> + * + * @param string $file + * + * @return bool + */ + public static function is_binary_file($file): bool + { + // init + $block = ''; + + $fp = \fopen($file, 'rb'); + if (\is_resource($fp)) { + $block = \fread($fp, 512); + \fclose($fp); + } + + if ($block === '' || $block === false) { + return false; + } + + return self::is_binary($block, true); + } + + /** + * Returns true if the string contains only whitespace chars, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only whitespace characters.</p> + */ + public static function is_blank(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('^[[:space:]]*$', $str); + } + + return self::str_matches_pattern($str, '^[[:space:]]*$'); + } + + /** + * Checks if the given string is equal to any "Byte Order Mark". + * + * WARNING: Use "UTF8::string_has_bom()" if you will check BOM in a string. + * + * EXAMPLE: <code>UTF8::is_bom("\xef\xbb\xbf"); // true</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if the $utf8_chr is Byte Order Mark, <strong>false</strong> otherwise.</p> + */ + public static function is_bom($str): bool + { + /** @noinspection PhpUnusedLocalVariableInspection */ + foreach (self::$BOM as $bom_string => &$bom_byte_length) { + if ($str === $bom_string) { + return true; + } + } + + return false; + } + + /** + * Determine whether the string is considered to be empty. + * + * A variable is considered empty if it does not exist or if its value equals FALSE. + * empty() does not generate a warning if the variable does not exist. + * + * @param array<array-key, mixed>|float|int|string $str + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str is empty().</p> + */ + public static function is_empty($str): bool + { + return empty($str); + } + + /** + * Returns true if the string contains only hexadecimal chars, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only hexadecimal chars.</p> + */ + public static function is_hexadecimal(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('^[[:xdigit:]]*$', $str); + } + + return self::str_matches_pattern($str, '^[[:xdigit:]]*$'); + } + + /** + * Check if the string contains any HTML tags. + * + * EXAMPLE: <code>UTF8::is_html('<b>lall</b>'); // true</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains html elements.</p> + */ + public static function is_html(string $str): bool + { + if ($str === '') { + return false; + } + + // init + $matches = []; + + $str = self::emoji_encode($str); // hack for emoji support :/ + + \preg_match("/<\\/?\\w+(?:(?:\\s+\\w+(?:\\s*=\\s*(?:\".*?\"|'.*?'|[^'\">\\s]+))?)*\\s*|\\s*)\\/?>/u", $str, $matches); + + return $matches !== []; + } + + /** + * Check if $url is an correct url. + * + * @param string $url + * @param bool $disallow_localhost + * + * @psalm-pure + * + * @return bool + */ + public static function is_url(string $url, bool $disallow_localhost = false): bool + { + if ($url === '') { + return false; + } + + // WARNING: keep this as hack protection + if (!self::str_istarts_with_any($url, ['http://', 'https://'])) { + return false; + } + + // e.g. -> the server itself connect to "https://foo.localhost/phpmyadmin/... + if ($disallow_localhost) { + if (self::str_istarts_with_any( + $url, + [ + 'http://localhost', + 'https://localhost', + 'http://127.0.0.1', + 'https://127.0.0.1', + 'http://::1', + 'https://::1', + ] + )) { + return false; + } + + $regex = '/^(?:http(?:s)?:\/\/).*?(?:\.localhost)/iu'; + if (\preg_match($regex, $url)) { + return false; + } + } + + // INFO: this is needed for e.g. "http://müller.de/" (internationalized domain names) and non ASCII-parameters + $regex = '/^(?:http(?:s)?:\\/\\/)(?:[\p{L}0-9][\p{L}0-9_-]*(?:\\.[\p{L}0-9][\p{L}0-9_-]*))(?:\\d+)?(?:\\/\\.*)?/iu'; + if (\preg_match($regex, $url)) { + return true; + } + + return \filter_var($url, \FILTER_VALIDATE_URL) !== false; + } + + /** + * Try to check if "$str" is a JSON-string. + * + * EXAMPLE: <code>UTF8::is_json('{"array":[1,"¥","ä"]}'); // true</code> + * + * @param string $str <p>The input string.</p> + * @param bool $only_array_or_object_results_are_valid [optional] <p>Only array and objects are valid json + * results.</p> + * + * @return bool + * <p>Whether or not the $str is in JSON format.</p> + */ + public static function is_json(string $str, bool $only_array_or_object_results_are_valid = true): bool + { + if ($str === '') { + return false; + } + + if (self::$SUPPORT['json'] === false) { + throw new \RuntimeException('ext-json: is not installed'); + } + + $jsonOrNull = self::json_decode($str); + if ($jsonOrNull === null && \strtoupper($str) !== 'NULL') { + return false; + } + + if ( + $only_array_or_object_results_are_valid + && + !\is_object($jsonOrNull) + && + !\is_array($jsonOrNull) + ) { + return false; + } + + return \json_last_error() === \JSON_ERROR_NONE; + } + + /** + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only lowercase chars.</p> + */ + public static function is_lowercase(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('^[[:lower:]]*$', $str); + } + + return self::str_matches_pattern($str, '^[[:lower:]]*$'); + } + + /** + * Returns true if the string is serialized, false otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str is serialized.</p> + */ + public static function is_serialized(string $str): bool + { + if ($str === '') { + return false; + } + + /** @noinspection PhpUsageOfSilenceOperatorInspection */ + /** @noinspection UnserializeExploitsInspection */ + return $str === 'b:0;' + || + @\unserialize($str, []) !== false; + } + + /** + * Returns true if the string contains only lower case chars, false + * otherwise. + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains only lower case characters.</p> + */ + public static function is_uppercase(string $str): bool + { + if (self::$SUPPORT['mbstring'] === true) { + return \mb_ereg_match('^[[:upper:]]*$', $str); + } + + return self::str_matches_pattern($str, '^[[:upper:]]*$'); + } + + /** + * Check if the string is UTF-16. + * + * EXAMPLE: <code> + * UTF8::is_utf16(file_get_contents('utf-16-le.txt')); // 1 + * // + * UTF8::is_utf16(file_get_contents('utf-16-be.txt')); // 2 + * // + * UTF8::is_utf16(file_get_contents('utf-8.txt')); // false + * </code> + * + * @param string $str <p>The input string.</p> + * @param bool $check_if_string_is_binary + * + * @psalm-pure + * + * @return false|int + * <strong>false</strong> if is't not UTF-16,<br> + * <strong>1</strong> for UTF-16LE,<br> + * <strong>2</strong> for UTF-16BE + */ + public static function is_utf16($str, bool $check_if_string_is_binary = true) + { + // init + $str = (string) $str; + $str_chars = []; + + // fix for the "binary"-check + if ($check_if_string_is_binary !== false && self::string_has_bom($str)) { + $check_if_string_is_binary = false; + } + + if ( + $check_if_string_is_binary + && + !self::is_binary($str, true) + ) { + return false; + } + + if (self::$SUPPORT['mbstring'] === false) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::is_utf16() without mbstring may did not work correctly', \E_USER_WARNING); + } + + $str = self::remove_bom($str); + + $maybe_utf16le = 0; + $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-16LE'); + if ($test) { + $test2 = \mb_convert_encoding($test, 'UTF-16LE', 'UTF-8'); + $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-16LE'); + if ($test3 === $test) { + $str_chars = self::count_chars($str, true, false); + foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { + if (\in_array($test3char, $str_chars, true)) { + ++$maybe_utf16le; + } + } + unset($test3charEmpty); + } + } + + $maybe_utf16be = 0; + $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-16BE'); + if ($test) { + $test2 = \mb_convert_encoding($test, 'UTF-16BE', 'UTF-8'); + $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-16BE'); + if ($test3 === $test) { + if ($str_chars === []) { + $str_chars = self::count_chars($str, true, false); + } + foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { + if (\in_array($test3char, $str_chars, true)) { + ++$maybe_utf16be; + } + } + unset($test3charEmpty); + } + } + + if ($maybe_utf16be !== $maybe_utf16le) { + if ($maybe_utf16le > $maybe_utf16be) { + return 1; + } + + return 2; + } + + return false; + } + + /** + * Check if the string is UTF-32. + * + * EXAMPLE: <code> + * UTF8::is_utf32(file_get_contents('utf-32-le.txt')); // 1 + * // + * UTF8::is_utf32(file_get_contents('utf-32-be.txt')); // 2 + * // + * UTF8::is_utf32(file_get_contents('utf-8.txt')); // false + * </code> + * + * @param string $str <p>The input string.</p> + * @param bool $check_if_string_is_binary + * + * @psalm-pure + * + * @return false|int + * <strong>false</strong> if is't not UTF-32,<br> + * <strong>1</strong> for UTF-32LE,<br> + * <strong>2</strong> for UTF-32BE + */ + public static function is_utf32($str, bool $check_if_string_is_binary = true) + { + // init + $str = (string) $str; + $str_chars = []; + + // fix for the "binary"-check + if ($check_if_string_is_binary !== false && self::string_has_bom($str)) { + $check_if_string_is_binary = false; + } + + if ( + $check_if_string_is_binary + && + !self::is_binary($str, true) + ) { + return false; + } + + if (self::$SUPPORT['mbstring'] === false) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::is_utf32() without mbstring may did not work correctly', \E_USER_WARNING); + } + + $str = self::remove_bom($str); + + $maybe_utf32le = 0; + $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-32LE'); + if ($test) { + $test2 = \mb_convert_encoding($test, 'UTF-32LE', 'UTF-8'); + $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-32LE'); + if ($test3 === $test) { + $str_chars = self::count_chars($str, true, false); + foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { + if (\in_array($test3char, $str_chars, true)) { + ++$maybe_utf32le; + } + } + unset($test3charEmpty); + } + } + + $maybe_utf32be = 0; + $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-32BE'); + if ($test) { + $test2 = \mb_convert_encoding($test, 'UTF-32BE', 'UTF-8'); + $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-32BE'); + if ($test3 === $test) { + if ($str_chars === []) { + $str_chars = self::count_chars($str, true, false); + } + foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { + if (\in_array($test3char, $str_chars, true)) { + ++$maybe_utf32be; + } + } + unset($test3charEmpty); + } + } + + if ($maybe_utf32be !== $maybe_utf32le) { + if ($maybe_utf32le > $maybe_utf32be) { + return 1; + } + + return 2; + } + + return false; + } + + /** + * Checks whether the passed input contains only byte sequences that appear valid UTF-8. + * + * EXAMPLE: <code> + * UTF8::is_utf8(['Iñtërnâtiônàlizætiøn', 'foo']); // true + * // + * UTF8::is_utf8(["Iñtërnâtiônàlizætiøn\xA0\xA1", 'bar']); // false + * </code> + * + * @param int|string|string[]|null $str <p>The input to be checked.</p> + * @param bool $strict <p>Check also if the string is not UTF-16 or UTF-32.</p> + * + * @psalm-pure + * + * @return bool + */ + public static function is_utf8($str, bool $strict = false): bool + { + if (\is_array($str)) { + foreach ($str as &$v) { + if (!self::is_utf8($v, $strict)) { + return false; + } + } + + return true; + } + + return self::is_utf8_string((string) $str, $strict); + } + + /** + * (PHP 5 &gt;= 5.2.0, PECL json &gt;= 1.2.0)<br/> + * Decodes a JSON string + * + * EXAMPLE: <code>UTF8::json_decode('[1,"\u00a5","\u00e4"]'); // array(1, '¥', 'ä')</code> + * + * @see http://php.net/manual/en/function.json-decode.php + * + * @param string $json <p> + * The <i>json</i> string being decoded. + * </p> + * <p> + * This function only works with UTF-8 encoded strings. + * </p> + * <p>PHP implements a superset of + * JSON - it will also encode and decode scalar types and <b>NULL</b>. The JSON standard + * only supports these values when they are nested inside an array or an object. + * </p> + * @param bool $assoc [optional] <p> + * When <b>TRUE</b>, returned objects will be converted into + * associative arrays. + * </p> + * @param int $depth [optional] <p> + * User specified recursion depth. + * </p> + * @param int $options [optional] <p> + * Bitmask of JSON decode options. Currently only + * <b>JSON_BIGINT_AS_STRING</b> + * is supported (default is to cast large integers as floats) + * </p> + * + * @psalm-pure + * + * @return mixed + * <p>The value encoded in <i>json</i> in appropriate PHP type. Values true, false and + * null (case-insensitive) are returned as <b>TRUE</b>, <b>FALSE</b> and <b>NULL</b> respectively. + * <b>NULL</b> is returned if the <i>json</i> cannot be decoded or if the encoded data + * is deeper than the recursion limit.</p> + */ + public static function json_decode( + string $json, + bool $assoc = false, + int $depth = 512, + int $options = 0 + ) { + $json = self::filter($json); + + if (self::$SUPPORT['json'] === false) { + throw new \RuntimeException('ext-json: is not installed'); + } + + if ($depth < 1) { + $depth = 1; + } + + return \json_decode($json, $assoc, $depth, $options); + } + + /** + * (PHP 5 &gt;= 5.2.0, PECL json &gt;= 1.2.0)<br/> + * Returns the JSON representation of a value. + * + * EXAMPLE: <code>UTF8::json_encode(array(1, '¥', 'ä')); // '[1,"\u00a5","\u00e4"]'</code> + * + * @see http://php.net/manual/en/function.json-encode.php + * + * @param mixed $value <p> + * The <i>value</i> being encoded. Can be any type except + * a resource. + * </p> + * <p> + * All string data must be UTF-8 encoded. + * </p> + * <p>PHP implements a superset of + * JSON - it will also encode and decode scalar types and <b>NULL</b>. The JSON standard + * only supports these values when they are nested inside an array or an object. + * </p> + * @param int $options [optional] <p> + * Bitmask consisting of <b>JSON_HEX_QUOT</b>, + * <b>JSON_HEX_TAG</b>, + * <b>JSON_HEX_AMP</b>, + * <b>JSON_HEX_APOS</b>, + * <b>JSON_NUMERIC_CHECK</b>, + * <b>JSON_PRETTY_PRINT</b>, + * <b>JSON_UNESCAPED_SLASHES</b>, + * <b>JSON_FORCE_OBJECT</b>, + * <b>JSON_UNESCAPED_UNICODE</b>. The behaviour of these + * constants is described on + * the JSON constants page. + * </p> + * @param int $depth [optional] <p> + * Set the maximum depth. Must be greater than zero. + * </p> + * + * @psalm-pure + * + * @return false|string + * <p>A JSON encoded <strong>string</strong> on success or<br> + * <strong>FALSE</strong> on failure.</p> + */ + public static function json_encode($value, int $options = 0, int $depth = 512) + { + $value = self::filter($value); + + if (self::$SUPPORT['json'] === false) { + throw new \RuntimeException('ext-json: is not installed'); + } + + if ($depth < 1) { + $depth = 1; + } + + return \json_encode($value, $options, $depth); + } + + /** + * Checks whether JSON is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function json_loaded(): bool + { + return \function_exists('json_decode'); + } + + /** + * Makes string's first char lowercase. + * + * EXAMPLE: <code>UTF8::lcfirst('ÑTËRNÂTIÔNÀLIZÆTIØN'); // ñTËRNÂTIÔNÀLIZÆTIØN</code> + * + * @param string $str <p>The input string</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + * <p>The resulting string.</p> + */ + public static function lcfirst( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + if ($clean_utf8) { + $str = self::clean($str); + } + + $use_mb_functions = ($lang === null && !$try_to_keep_the_string_length); + + if ($encoding === 'UTF-8') { + $str_part_two = (string) \mb_substr($str, 1); + + if ($use_mb_functions) { + $str_part_one = \mb_strtolower( + (string) \mb_substr($str, 0, 1) + ); + } else { + $str_part_one = self::strtolower( + (string) \mb_substr($str, 0, 1), + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ); + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $str_part_two = (string) self::substr($str, 1, null, $encoding); + + $str_part_one = self::strtolower( + (string) self::substr($str, 0, 1, $encoding), + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ); + } + + return $str_part_one . $str_part_two; + } + + /** + * Lowercase for all words in the string. + * + * @param string $str <p>The input string.</p> + * @param string[] $exceptions [optional] <p>Exclusion for some words.</p> + * @param string $char_list [optional] <p>Additional chars that contains to words and do + * not start a new word.</p> + * @param string $encoding [optional] <p>Set the charset.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + */ + public static function lcwords( + string $str, + array $exceptions = [], + string $char_list = '', + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + if (!$str) { + return ''; + } + + $words = self::str_to_words($str, $char_list); + $use_exceptions = $exceptions !== []; + + $words_str = ''; + foreach ($words as &$word) { + if (!$word) { + continue; + } + + if ( + !$use_exceptions + || + !\in_array($word, $exceptions, true) + ) { + $words_str .= self::lcfirst($word, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); + } else { + $words_str .= $word; + } + } + + return $words_str; + } + + /** + * Calculate Levenshtein distance between two strings. + * + * For better performance, in a real application with a single input string + * matched against many strings from a database, you will probably want to pre- + * encode the input only once and use \levenshtein(). + * + * Source: https://github.com/KEINOS/mb_levenshtein + * + * @see https://www.php.net/manual/en/function.levenshtein + * + * @param string $str1 <p>One of the strings being evaluated for Levenshtein distance.</p> + * @param string $str2 <p>One of the strings being evaluated for Levenshtein distance.</p> + * @param int $insertionCost [optional] <p>Defines the cost of insertion.</p> + * @param int $replacementCost [optional] <p>Defines the cost of replacement.</p> + * @param int $deletionCost [optional] <p>Defines the cost of deletion.</p> + * + * @return int + */ + public static function levenshtein( + string $str1, + string $str2, + int $insertionCost = 1, + int $replacementCost = 1, + int $deletionCost = 1 + ): int { + $result = ASCII::to_ascii_remap($str1, $str2); + + return \levenshtein($result[0], $result[1], $insertionCost, $replacementCost, $deletionCost); + } + + /** + * Strip whitespace or other characters from the beginning of a UTF-8 string. + * + * EXAMPLE: <code>UTF8::ltrim(' 中文空白  '); // '中文空白  '</code> + * + * @param string $str <p>The string to be trimmed</p> + * @param string|null $chars <p>Optional characters to be stripped</p> + * + * @psalm-pure + * + * @return string the string with unwanted characters stripped from the left + */ + public static function ltrim(string $str = '', string $chars = null): string + { + if ($str === '') { + return ''; + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($chars !== null) { + /** @noinspection PregQuoteUsageInspection */ + $chars = \preg_quote($chars); + $pattern = "^[{$chars}]+"; + } else { + $pattern = '^[\\s]+'; + } + + return (string) \mb_ereg_replace($pattern, '', $str); + } + + if ($chars !== null) { + $chars = \preg_quote($chars, '/'); + $pattern = "^[{$chars}]+"; + } else { + $pattern = '^[\\s]+'; + } + + return self::regex_replace($str, $pattern, ''); + } + + /** + * Returns the UTF-8 character with the maximum code point in the given data. + * + * EXAMPLE: <code>UTF8::max('abc-äöü-中文空白'); // 'ø'</code> + * + * @param string|string[] $arg <p>A UTF-8 encoded string or an array of such strings.</p> + * + * @psalm-pure + * + * @return string|null the character with the highest code point than others, returns null on failure or empty input + */ + public static function max($arg) + { + if (\is_array($arg)) { + $arg = \implode('', $arg); + } + + $codepoints = self::codepoints($arg); + if ($codepoints === []) { + return null; + } + + $codepoint_max = \max($codepoints); + + return self::chr((int) $codepoint_max); + } + + /** + * Calculates and returns the maximum number of bytes taken by any + * UTF-8 encoded character in the given string. + * + * EXAMPLE: <code>UTF8::max_chr_width('Intërnâtiônàlizætiøn'); // 2</code> + * + * @param string $str <p>The original Unicode string.</p> + * + * @psalm-pure + * + * @return int + * <p>Max byte lengths of the given chars.</p> + * + * @phpstan-return 0|1|2|3|4 + */ + public static function max_chr_width(string $str): int + { + $bytes = self::chr_size_list($str); + if ($bytes !== []) { + return (int) \max($bytes); + } + + return 0; + } + + /** + * Checks whether mbstring is available on the server. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function mbstring_loaded(): bool + { + return \extension_loaded('mbstring'); + } + + /** + * Returns the UTF-8 character with the minimum code point in the given data. + * + * EXAMPLE: <code>UTF8::min('abc-äöü-中文空白'); // '-'</code> + * + * @param string|string[] $arg <strong>A UTF-8 encoded string or an array of such strings.</strong> + * + * @psalm-pure + * + * @return string|null + * <p>The character with the lowest code point than others, returns null on failure or empty input.</p> + */ + public static function min($arg) + { + if (\is_array($arg)) { + $arg = \implode('', $arg); + } + + $codepoints = self::codepoints($arg); + if ($codepoints === []) { + return null; + } + + $codepoint_min = \min($codepoints); + + return self::chr((int) $codepoint_min); + } + + /** + * Normalize the encoding-"name" input. + * + * EXAMPLE: <code>UTF8::normalize_encoding('UTF8'); // 'UTF-8'</code> + * + * @param mixed $encoding <p>e.g.: ISO, UTF8, WINDOWS-1251 etc.</p> + * @param mixed $fallback <p>e.g.: UTF-8</p> + * + * @psalm-pure + * + * @return mixed|string + * <p>e.g.: ISO-8859-1, UTF-8, WINDOWS-1251 etc.<br>Will return a empty string as fallback (by default)</p> + * + * @template TNormalizeEncodingFallback + * @phpstan-param string|TNormalizeEncodingFallback $fallback + * @phpstan-return string|TNormalizeEncodingFallback + */ + public static function normalize_encoding($encoding, $fallback = '') + { + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<string,string> + */ + static $STATIC_NORMALIZE_ENCODING_CACHE = []; + + // init + $encoding = (string) $encoding; + + if (!$encoding) { + return $fallback; + } + + if ( + $encoding === 'UTF-8' + || + $encoding === 'UTF8' + ) { + return 'UTF-8'; + } + + if ( + $encoding === '8BIT' + || + $encoding === 'BINARY' + ) { + return 'CP850'; + } + + if ( + $encoding === 'HTML' + || + $encoding === 'HTML-ENTITIES' + ) { + return 'HTML-ENTITIES'; + } + + if ( + $encoding === 'ISO' + || + $encoding === 'ISO-8859-1' + ) { + return 'ISO-8859-1'; + } + + // only a fallback, for non "strict_types" usage ... + if ($encoding === '1') { + return $fallback; + } + + if (isset($STATIC_NORMALIZE_ENCODING_CACHE[$encoding])) { + return $STATIC_NORMALIZE_ENCODING_CACHE[$encoding]; + } + + if (self::$ENCODINGS === null) { + self::$ENCODINGS = self::getData('encodings'); + } + + if (\in_array($encoding, self::$ENCODINGS, true)) { + $STATIC_NORMALIZE_ENCODING_CACHE[$encoding] = $encoding; + + return $encoding; + } + + $encoding_original = $encoding; + $encoding = \strtoupper($encoding); + $encoding_upper_helper = (string) \preg_replace('/[^a-zA-Z0-9]/u', '', $encoding); + + $equivalences = [ + 'ISO8859' => 'ISO-8859-1', + 'ISO88591' => 'ISO-8859-1', + 'ISO' => 'ISO-8859-1', + 'LATIN' => 'ISO-8859-1', + 'LATIN1' => 'ISO-8859-1', // Western European + 'ISO88592' => 'ISO-8859-2', + 'LATIN2' => 'ISO-8859-2', // Central European + 'ISO88593' => 'ISO-8859-3', + 'LATIN3' => 'ISO-8859-3', // Southern European + 'ISO88594' => 'ISO-8859-4', + 'LATIN4' => 'ISO-8859-4', // Northern European + 'ISO88595' => 'ISO-8859-5', + 'ISO88596' => 'ISO-8859-6', // Greek + 'ISO88597' => 'ISO-8859-7', + 'ISO88598' => 'ISO-8859-8', // Hebrew + 'ISO88599' => 'ISO-8859-9', + 'LATIN5' => 'ISO-8859-9', // Turkish + 'ISO885911' => 'ISO-8859-11', + 'TIS620' => 'ISO-8859-11', // Thai + 'ISO885910' => 'ISO-8859-10', + 'LATIN6' => 'ISO-8859-10', // Nordic + 'ISO885913' => 'ISO-8859-13', + 'LATIN7' => 'ISO-8859-13', // Baltic + 'ISO885914' => 'ISO-8859-14', + 'LATIN8' => 'ISO-8859-14', // Celtic + 'ISO885915' => 'ISO-8859-15', + 'LATIN9' => 'ISO-8859-15', // Western European (with some extra chars e.g. €) + 'ISO885916' => 'ISO-8859-16', + 'LATIN10' => 'ISO-8859-16', // Southeast European + 'CP1250' => 'WINDOWS-1250', + 'WIN1250' => 'WINDOWS-1250', + 'WINDOWS1250' => 'WINDOWS-1250', + 'CP1251' => 'WINDOWS-1251', + 'WIN1251' => 'WINDOWS-1251', + 'WINDOWS1251' => 'WINDOWS-1251', + 'CP1252' => 'WINDOWS-1252', + 'WIN1252' => 'WINDOWS-1252', + 'WINDOWS1252' => 'WINDOWS-1252', + 'CP1253' => 'WINDOWS-1253', + 'WIN1253' => 'WINDOWS-1253', + 'WINDOWS1253' => 'WINDOWS-1253', + 'CP1254' => 'WINDOWS-1254', + 'WIN1254' => 'WINDOWS-1254', + 'WINDOWS1254' => 'WINDOWS-1254', + 'CP1255' => 'WINDOWS-1255', + 'WIN1255' => 'WINDOWS-1255', + 'WINDOWS1255' => 'WINDOWS-1255', + 'CP1256' => 'WINDOWS-1256', + 'WIN1256' => 'WINDOWS-1256', + 'WINDOWS1256' => 'WINDOWS-1256', + 'CP1257' => 'WINDOWS-1257', + 'WIN1257' => 'WINDOWS-1257', + 'WINDOWS1257' => 'WINDOWS-1257', + 'CP1258' => 'WINDOWS-1258', + 'WIN1258' => 'WINDOWS-1258', + 'WINDOWS1258' => 'WINDOWS-1258', + 'UTF16' => 'UTF-16', + 'UTF32' => 'UTF-32', + 'UTF8' => 'UTF-8', + 'UTF' => 'UTF-8', + 'UTF7' => 'UTF-7', + '8BIT' => 'CP850', + 'BINARY' => 'CP850', + ]; + + if (!empty($equivalences[$encoding_upper_helper])) { + $encoding = $equivalences[$encoding_upper_helper]; + } + + $STATIC_NORMALIZE_ENCODING_CACHE[$encoding_original] = $encoding; + + return $encoding; + } + + /** + * Standardize line ending to unix-like. + * + * @param string $str <p>The input string.</p> + * @param string|string[] $replacer <p>The replacer char e.g. "\n" (Linux) or "\r\n" (Windows). You can also use \PHP_EOL + * here.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with normalized line ending.</p> + */ + public static function normalize_line_ending(string $str, $replacer = "\n"): string + { + return \str_replace(["\r\n", "\r", "\n"], $replacer, $str); + } + + /** + * Normalize some MS Word special characters. + * + * EXAMPLE: <code>UTF8::normalize_msword('„Abcdef…”'); // '"Abcdef..."'</code> + * + * @param string $str <p>The string to be normalized.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with normalized characters for commonly used chars in Word documents.</p> + */ + public static function normalize_msword(string $str): string + { + return ASCII::normalize_msword($str); + } + + /** + * Normalize the whitespace. + * + * EXAMPLE: <code>UTF8::normalize_whitespace("abc-\xc2\xa0-öäü-\xe2\x80\xaf-\xE2\x80\xAC", true); // "abc-\xc2\xa0-öäü- -"</code> + * + * @param string $str <p>The string to be normalized.</p> + * @param bool $keep_non_breaking_space [optional] <p>Set to true, to keep non-breaking-spaces.</p> + * @param bool $keep_bidi_unicode_controls [optional] <p>Set to true, to keep non-printable (for the web) + * bidirectional text chars.</p> + * @param bool $normalize_control_characters [optional] <p>Set to true, to convert e.g. LINE-, PARAGRAPH-SEPARATOR with "\n" and LINE TABULATION with "\t".</p> + * + * @psalm-pure + * + * @return string + * <p>A string with normalized whitespace.</p> + */ + public static function normalize_whitespace( + string $str, + bool $keep_non_breaking_space = false, + bool $keep_bidi_unicode_controls = false, + bool $normalize_control_characters = false + ): string { + return ASCII::normalize_whitespace( + $str, + $keep_non_breaking_space, + $keep_bidi_unicode_controls, + $normalize_control_characters + ); + } + + /** + * Calculates Unicode code point of the given UTF-8 encoded character. + * + * INFO: opposite to UTF8::chr() + * + * EXAMPLE: <code>UTF8::ord('☃'); // 0x2603</code> + * + * @param string $chr <p>The character of which to calculate code point.<p/> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * <p>Unicode code point of the given character,<br> + * 0 on invalid UTF-8 byte sequence</p> + */ + public static function ord($chr, string $encoding = 'UTF-8'): int + { + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<string,int> + */ + static $CHAR_CACHE = []; + + // init + $chr = (string) $chr; + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + $cache_key = $chr . '_' . $encoding; + if (isset($CHAR_CACHE[$cache_key])) { + return $CHAR_CACHE[$cache_key]; + } + + // check again, if it's still not UTF-8 + if ($encoding !== 'UTF-8') { + $chr = self::encode($encoding, $chr); + } + + if (self::$ORD === null) { + self::$ORD = self::getData('ord'); + } + + if (isset(self::$ORD[$chr])) { + return $CHAR_CACHE[$cache_key] = self::$ORD[$chr]; + } + + // + // fallback via "IntlChar" + // + + if (self::$SUPPORT['intlChar'] === true) { + $code = \IntlChar::ord($chr); + if ($code) { + return $CHAR_CACHE[$cache_key] = $code; + } + } + + // + // fallback via vanilla php + // + + $chr = \unpack('C*', (string) \substr($chr, 0, 4)); + /** @noinspection PhpSillyAssignmentInspection - hack for phpstan */ + /** @var int[] $chr - "unpack": only false if the format string contains errors */ + $chr = $chr; + $code = $chr ? $chr[1] : 0; + + if ($code >= 0xF0 && isset($chr[4])) { + return $CHAR_CACHE[$cache_key] = ((($code - 0xF0) << 18) + (($chr[2] - 0x80) << 12) + (($chr[3] - 0x80) << 6) + $chr[4] - 0x80); + } + + if ($code >= 0xE0 && isset($chr[3])) { + return $CHAR_CACHE[$cache_key] = ((($code - 0xE0) << 12) + (($chr[2] - 0x80) << 6) + $chr[3] - 0x80); + } + + if ($code >= 0xC0 && isset($chr[2])) { + return $CHAR_CACHE[$cache_key] = ((($code - 0xC0) << 6) + $chr[2] - 0x80); + } + + return $CHAR_CACHE[$cache_key] = $code; + } + + /** + * Parses the string into an array (into the the second parameter). + * + * WARNING: Unlike "parse_str()", this method does not (re-)place variables in the current scope, + * if the second parameter is not set! + * + * EXAMPLE: <code> + * UTF8::parse_str('Iñtërnâtiônéàlizætiøn=測試&arr[]=foo+測試&arr[]=ການທົດສອບ', $array); + * echo $array['Iñtërnâtiônéàlizætiøn']; // '測試' + * </code> + * + * @see http://php.net/manual/en/function.parse-str.php + * + * @param string $str <p>The input string.</p> + * @param array<string, mixed> $result <p>The result will be returned into this reference parameter.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return bool + * <p>Will return <strong>false</strong> if php can't parse the string and we haven't any $result.</p> + */ + public static function parse_str(string $str, &$result, bool $clean_utf8 = false): bool + { + if ($clean_utf8) { + $str = self::clean($str); + } + + if (self::$SUPPORT['mbstring'] === true) { + $return = \mb_parse_str($str, $result); + + return $return !== false && $result !== []; + } + + /** + * @psalm-suppress ImpureFunctionCall - we use the second parameter, so we don't change variables by magic + */ + \parse_str($str, $result); + + return $result !== []; + } + + /** + * Checks if \u modifier is available that enables Unicode support in PCRE. + * + * @psalm-pure + * + * @return bool + * <p> + * <strong>true</strong> if support is available,<br> + * <strong>false</strong> otherwise + * </p> + */ + public static function pcre_utf8_support(): bool + { + /** @noinspection PhpUsageOfSilenceOperatorInspection */ + return (bool) @\preg_match('//u', ''); + } + + /** + * Create an array containing a range of UTF-8 characters. + * + * EXAMPLE: <code>UTF8::range('κ', 'ζ'); // array('κ', 'ι', 'θ', 'η', 'ζ',)</code> + * + * @param int|string $var1 <p>Numeric or hexadecimal code points, or a UTF-8 character to start from.</p> + * @param int|string $var2 <p>Numeric or hexadecimal code points, or a UTF-8 character to end at.</p> + * @param bool $use_ctype <p>use ctype to detect numeric and hexadecimal, otherwise we will use a simple + * "is_numeric"</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param float|int $step [optional] <p> + * If a step value is given, it will be used as the + * increment between elements in the sequence. step + * should be given as a positive number. If not specified, + * step will default to 1. + * </p> + * + * @psalm-pure + * + * @return list<string> + */ + public static function range( + $var1, + $var2, + bool $use_ctype = true, + string $encoding = 'UTF-8', + $step = 1 + ): array { + if (!$var1 || !$var2) { + return []; + } + + if ($step !== 1) { + /** + * @psalm-suppress RedundantConditionGivenDocblockType + * @psalm-suppress DocblockTypeContradiction + * @phpstan-ignore-next-line | ignore wrong inputs + */ + if (!\is_numeric($step)) { + throw new \InvalidArgumentException('$step need to be a number, type given: ' . \gettype($step)); + } + + /** + * @psalm-suppress RedundantConditionGivenDocblockType - false-positive from psalm? + */ + if ($step <= 0) { + throw new \InvalidArgumentException('$step need to be a positive number, given: ' . $step); + } + } + + if ($use_ctype && self::$SUPPORT['ctype'] === false) { + throw new \RuntimeException('ext-ctype: is not installed'); + } + + $is_digit = false; + $is_xdigit = false; + + if ($use_ctype && \ctype_digit((string) $var1) && \ctype_digit((string) $var2)) { + $is_digit = true; + $start = (int) $var1; + } elseif ($use_ctype && \ctype_xdigit($var1) && \ctype_xdigit($var2)) { + $is_xdigit = true; + $start = (int) self::hex_to_int((string) $var1); + } elseif (!$use_ctype && \is_numeric($var1)) { + $start = (int) $var1; + } else { + $start = self::ord((string) $var1); + } + + if (!$start) { + return []; + } + + if ($is_digit) { + $end = (int) $var2; + } elseif ($is_xdigit) { + $end = (int) self::hex_to_int((string) $var2); + } elseif (!$use_ctype && \is_numeric($var2)) { + $end = (int) $var2; + } else { + $end = self::ord((string) $var2); + } + + if (!$end) { + return []; + } + + $array = []; + foreach (\range($start, $end, $step) as $i) { + $array[] = (string) self::chr((int) $i, $encoding); + } + + return $array; + } + + /** + * Get data from an array via array like string. + * + * EXAMPLE: <code>$array['foo'][123] = 'lall'; UTF8::getUrlParamFromArray('foo[123]', $array); // 'lall'</code> + * + * @param array<array-key, mixed> $data + * + * @return mixed + */ + public static function getUrlParamFromArray(string $param, array $data) + { + /** + * @param array<array-key, mixed> $searchArray + * @param array<array-key, mixed> $array + * + * @return mixed + */ + $getUrlArgFromArrayHelper = static function (array $searchArray, array $array) use (&$getUrlArgFromArrayHelper) { + foreach ($searchArray as $key => $value) { + if (isset($array[$key])) { + if (\is_array($value) && \is_array($array[$key])) { + return $getUrlArgFromArrayHelper($value, $array[$key]); + } + + return $array[$key]; + } + } + + return null; + }; + + /** + * @param string $string + * @return array|null + */ + $getUrlKeyArgsFromString = static function (string $string) { + if (!self::str_contains($string, '?')) { + $string = '?' . $string; + } + + $args = parse_url($string, PHP_URL_QUERY); + if ($args) { + $query = []; + parse_str($args, $query); + + return $query; + } + + return null; + }; + + if (isset($data[$param])) { + return $data[$param]; + } + + $paramKeys = $getUrlKeyArgsFromString($param); + if ($paramKeys !== null) { + return $getUrlArgFromArrayHelper($paramKeys, $data); + } + + return null; + } + + /** + * Multi decode HTML entity + fix urlencoded-win1252-chars. + * + * EXAMPLE: <code>UTF8::rawurldecode('tes%20öäü%20\u00edtest+test'); // 'tes öäü ítest+test'</code> + * + * e.g: + * 'test+test' => 'test+test' + * 'D&#252;sseldorf' => 'Düsseldorf' + * 'D%FCsseldorf' => 'Düsseldorf' + * 'D&#xFC;sseldorf' => 'Düsseldorf' + * 'D%26%23xFC%3Bsseldorf' => 'Düsseldorf' + * 'Düsseldorf' => 'Düsseldorf' + * 'D%C3%BCsseldorf' => 'Düsseldorf' + * 'D%C3%83%C2%BCsseldorf' => 'Düsseldorf' + * 'D%25C3%2583%25C2%25BCsseldorf' => 'Düsseldorf' + * + * @param string $str <p>The input string.</p> + * @param bool $multi_decode <p>Decode as often as possible.</p> + * + * @psalm-pure + * + * @return string + * <p>The decoded URL, as a string.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function rawurldecode(string $str, bool $multi_decode = true): string + { + if ($str === '') { + return ''; + } + + $str = self::urldecode_unicode_helper($str); + + if ($multi_decode) { + do { + $str_compare = $str; + + /** + * @psalm-suppress PossiblyInvalidArgument + */ + $str = \rawurldecode( + self::html_entity_decode( + self::to_utf8($str), + \ENT_QUOTES | \ENT_HTML5 + ) + ); + } while ($str_compare !== $str); + } else { + /** + * @psalm-suppress PossiblyInvalidArgument + */ + $str = \rawurldecode( + self::html_entity_decode( + self::to_utf8($str), + \ENT_QUOTES | \ENT_HTML5 + ) + ); + } + + return self::fix_simple_utf8($str); + } + + /** + * Replaces all occurrences of $pattern in $str by $replacement. + * + * @param string $str <p>The input string.</p> + * @param string $pattern <p>The regular expression pattern.</p> + * @param string $replacement <p>The string to replace with.</p> + * @param string $options [optional] <p>Matching conditions to be used.</p> + * @param string $delimiter [optional] <p>Delimiter the the regex. Default: '/'</p> + * + * @psalm-pure + * + * @return string + */ + public static function regex_replace( + string $str, + string $pattern, + string $replacement, + string $options = '', + string $delimiter = '/' + ): string { + if ($options === 'msr') { + $options = 'ms'; + } + + // fallback + if (!$delimiter) { + $delimiter = '/'; + } + + return (string) \preg_replace( + $delimiter . $pattern . $delimiter . 'u' . $options, + $replacement, + $str + ); + } + + /** + * Remove the BOM from UTF-8 / UTF-16 / UTF-32 strings. + * + * EXAMPLE: <code>UTF8::remove_bom("\xEF\xBB\xBFΜπορώ να"); // 'Μπορώ να'</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return string + * <p>A string without UTF-BOM.</p> + */ + public static function remove_bom(string $str): string + { + if ($str === '') { + return ''; + } + + $str_length = \strlen($str); + foreach (self::$BOM as $bom_string => $bom_byte_length) { + if (\strncmp($str, $bom_string, $bom_byte_length) === 0) { + /** @var false|string $str_tmp - needed for PhpStan (stubs error) */ + $str_tmp = \substr($str, $bom_byte_length, $str_length); + if ($str_tmp === false) { + return ''; + } + + $str_length -= $bom_byte_length; + + $str = (string) $str_tmp; + } + } + + return $str; + } + + /** + * Removes duplicate occurrences of a string in another string. + * + * EXAMPLE: <code>UTF8::remove_duplicates('öäü-κόσμεκόσμε-äöü', 'κόσμε'); // 'öäü-κόσμε-äöü'</code> + * + * @param string $str <p>The base string.</p> + * @param string|string[] $what <p>String to search for in the base string.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with removed duplicates.</p> + */ + public static function remove_duplicates(string $str, $what = ' '): string + { + if (\is_string($what)) { + $what = [$what]; + } + + /** + * @psalm-suppress RedundantConditionGivenDocblockType + * @phpstan-ignore-next-line | ignore wrong inputs + */ + if (\is_array($what)) { + foreach ($what as $item) { + $str = (string) \preg_replace('/(' . \preg_quote($item, '/') . ')+/u', $item, $str); + } + } + + return $str; + } + + /** + * Remove html via "strip_tags()" from the string. + * + * @param string $str <p>The input string.</p> + * @param string $allowable_tags [optional] <p>You can use the optional second parameter to specify tags which + * should not be stripped. Default: null + * </p> + * + * @psalm-pure + * + * @return string + * <p>A string with without html tags.</p> + */ + public static function remove_html(string $str, string $allowable_tags = ''): string + { + return \strip_tags($str, $allowable_tags); + } + + /** + * Remove all breaks [<br> | \r\n | \r | \n | ...] from the string. + * + * @param string $str <p>The input string.</p> + * @param string $replacement [optional] <p>Default is a empty string.</p> + * + * @psalm-pure + * + * @return string + * <p>A string without breaks.</p> + */ + public static function remove_html_breaks(string $str, string $replacement = ''): string + { + return (string) \preg_replace("#/\r\n|\r|\n|<br.*/?>#isU", $replacement, $str); + } + + /** + * Remove invisible characters from a string. + * + * e.g.: This prevents sandwiching null characters between ascii characters, like Java\0script. + * + * EXAMPLE: <code>UTF8::remove_invisible_characters("κόσ\0με"); // 'κόσμε'</code> + * + * copy&past from https://github.com/bcit-ci/CodeIgniter/blob/develop/system/core/Common.php + * + * @param string $str <p>The input string.</p> + * @param bool $url_encoded [optional] <p> + * Try to remove url encoded control character. + * WARNING: maybe contains false-positives e.g. aa%0Baa -> aaaa. + * <br> + * Default: false + * </p> + * @param string $replacement [optional] <p>The replacement character.</p> + * @param bool $keep_basic_control_characters [optional] <p>Keep control characters like [LRM] or [LSEP].</p> + * + * @psalm-pure + * + * @return string + * <p>A string without invisible chars.</p> + */ + public static function remove_invisible_characters( + string $str, + bool $url_encoded = false, + string $replacement = '', + bool $keep_basic_control_characters = true + ): string { + return ASCII::remove_invisible_characters( + $str, + $url_encoded, + $replacement, + $keep_basic_control_characters + ); + } + + /** + * Returns a new string with the prefix $substring removed, if present. + * + * @param string $str <p>The input string.</p> + * @param string $substring <p>The prefix to remove.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + * <p>A string without the prefix $substring.</p> + */ + public static function remove_left( + string $str, + string $substring, + string $encoding = 'UTF-8' + ): string { + if ( + $substring + && + \strpos($str, $substring) === 0 + ) { + if ($encoding === 'UTF-8') { + return (string) \mb_substr( + $str, + (int) \mb_strlen($substring) + ); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return (string) self::substr( + $str, + (int) self::strlen($substring, $encoding), + null, + $encoding + ); + } + + return $str; + } + + /** + * Returns a new string with the suffix $substring removed, if present. + * + * @param string $str + * @param string $substring <p>The suffix to remove.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + * <p>A string having a $str without the suffix $substring.</p> + */ + public static function remove_right( + string $str, + string $substring, + string $encoding = 'UTF-8' + ): string { + if ($substring && \substr($str, -\strlen($substring)) === $substring) { + if ($encoding === 'UTF-8') { + return (string) \mb_substr( + $str, + 0, + (int) \mb_strlen($str) - (int) \mb_strlen($substring) + ); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return (string) self::substr( + $str, + 0, + (int) self::strlen($str, $encoding) - (int) self::strlen($substring, $encoding), + $encoding + ); + } + + return $str; + } + + /** + * Returns a new string with the suffix $substring removed, if present and case-insensitive. + * + * @param string $str + * @param string $substring <p>The suffix to remove.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + * <p>A string having a $str without the suffix $substring.</p> + */ + public static function remove_iright( + string $str, + string $substring, + string $encoding = 'UTF-8' + ): string { + if ($substring && self::strtoupper(\substr($str, -\strlen($substring)), $encoding) === self::strtoupper($substring, $encoding)) { + if ($encoding === 'UTF-8') { + return (string) \mb_substr( + $str, + 0, + (int) \mb_strlen($str) - (int) \mb_strlen($substring) + ); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return (string) self::substr( + $str, + 0, + (int) self::strlen($str, $encoding) - (int) self::strlen($substring, $encoding), + $encoding + ); + } + + return $str; + } + + /** + * Returns a new string with the prefix $substring removed, if present and case-insensitive. + * + * @param string $str <p>The input string.</p> + * @param string $substring <p>The prefix to remove.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + * <p>A string without the prefix $substring.</p> + */ + public static function remove_ileft( + string $str, + string $substring, + string $encoding = 'UTF-8' + ): string { + if ( + $substring + && + \strpos(self::strtoupper($str, $encoding), self::strtoupper($substring, $encoding)) === 0 + ) { + if ($encoding === 'UTF-8') { + return (string) \mb_substr( + $str, + (int) \mb_strlen($substring) + ); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return (string) self::substr( + $str, + (int) self::strlen($substring, $encoding), + null, + $encoding + ); + } + + return $str; + } + + /** + * Replaces all occurrences of $search in $str by $replacement. + * + * @param string $str <p>The input string.</p> + * @param string $search <p>The needle to search for.</p> + * @param string $replacement <p>The string to replace with.</p> + * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> + * + * @psalm-pure + * + * @return string + * <p>A string with replaced parts.</p> + */ + public static function replace( + string $str, + string $search, + string $replacement, + bool $case_sensitive = true + ): string { + if ($case_sensitive) { + return \str_replace($search, $replacement, $str); + } + + return self::str_ireplace($search, $replacement, $str); + } + + /** + * Replaces all occurrences of $search in $str by $replacement. + * + * @param string $str <p>The input string.</p> + * @param string[] $search <p>The elements to search for.</p> + * @param string|string[] $replacement <p>The string to replace with.</p> + * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> + * + * @psalm-pure + * + * @return string + * <p>A string with replaced parts.</p> + */ + public static function replace_all( + string $str, + array $search, + $replacement, + bool $case_sensitive = true + ): string { + if ($case_sensitive) { + return \str_replace($search, $replacement, $str); + } + + return self::str_ireplace($search, $replacement, $str); + } + + /** + * Replace the diamond question mark (�) and invalid-UTF8 chars with the replacement. + * + * EXAMPLE: <code>UTF8::replace_diamond_question_mark('中文空白�', ''); // '中文空白'</code> + * + * @param string $str <p>The input string</p> + * @param string $replacement_char <p>The replacement character.</p> + * @param bool $process_invalid_utf8_chars <p>Convert invalid UTF-8 chars </p> + * + * @psalm-pure + * + * @return string + * <p>A string without diamond question marks (�).</p> + */ + public static function replace_diamond_question_mark( + string $str, + string $replacement_char = '', + bool $process_invalid_utf8_chars = true + ): string { + if ($str === '') { + return ''; + } + + if ($process_invalid_utf8_chars) { + if ($replacement_char === '') { + $replacement_char_helper = 'none'; + } else { + $replacement_char_helper = \ord($replacement_char); + } + + if (self::$SUPPORT['mbstring'] === false) { + // if there is no native support for "mbstring", + // then we need to clean the string before ... + $str = self::clean($str); + } + + /** + * @psalm-suppress ImpureFunctionCall - we will reset the value in the next step + */ + $save = \mb_substitute_character(); + /** @noinspection PhpUsageOfSilenceOperatorInspection - ignore "Unknown character" warnings, it's working anyway */ + @\mb_substitute_character($replacement_char_helper); + // the polyfill maybe return false, so cast to string + $str = (string) \mb_convert_encoding($str, 'UTF-8', 'UTF-8'); + \mb_substitute_character($save); + } + + return \str_replace( + [ + "\xEF\xBF\xBD", + '�', + ], + [ + $replacement_char, + $replacement_char, + ], + $str + ); + } + + /** + * Strip whitespace or other characters from the end of a UTF-8 string. + * + * EXAMPLE: <code>UTF8::rtrim('-ABC-中文空白- '); // '-ABC-中文空白-'</code> + * + * @param string $str <p>The string to be trimmed.</p> + * @param string|null $chars <p>Optional characters to be stripped.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with unwanted characters stripped from the right.</p> + */ + public static function rtrim(string $str = '', string $chars = null): string + { + if ($str === '') { + return ''; + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($chars !== null) { + /** @noinspection PregQuoteUsageInspection */ + $chars = \preg_quote($chars); + $pattern = "[{$chars}]+$"; + } else { + $pattern = '[\\s]+$'; + } + + return (string) \mb_ereg_replace($pattern, '', $str); + } + + if ($chars !== null) { + $chars = \preg_quote($chars, '/'); + $pattern = "[{$chars}]+$"; + } else { + $pattern = '[\\s]+$'; + } + + return self::regex_replace($str, $pattern, ''); + } + + /** + * WARNING: Print native UTF-8 support (libs) by default, e.g. for debugging. + * + * @param bool $useEcho + * + * @psalm-pure + * + * @return string|void + * + * @phpstan-return ($useEcho is true ? void : string) + */ + public static function showSupport(bool $useEcho = true) + { + // init + $html = ''; + + $html .= '<pre>'; + foreach (self::$SUPPORT as $key => &$value) { + $html .= $key . ' - ' . \print_r($value, true) . "\n<br>"; + } + $html .= '</pre>'; + + if ($useEcho) { + echo $html; + } + + return $html; + } + + /** + * Converts a UTF-8 character to HTML Numbered Entity like "&#123;". + * + * EXAMPLE: <code>UTF8::single_chr_html_encode('κ'); // '&#954;'</code> + * + * @param string $char <p>The Unicode character to be encoded as numbered entity.</p> + * @param bool $keep_ascii_chars <p>Set to <strong>true</strong> to keep ASCII chars.</> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The HTML numbered entity for the given character.</p> + * + * @template T as string + * @phpstan-param T $char + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function single_chr_html_encode( + string $char, + bool $keep_ascii_chars = false, + string $encoding = 'UTF-8' + ): string { + if ($char === '') { + return ''; + } + + if ( + $keep_ascii_chars + && + ASCII::is_ascii($char) + ) { + return $char; + } + + return '&#' . self::ord($char, $encoding) . ';'; + } + + /** + * @param string $str + * @param int<1, max> $tab_length + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function spaces_to_tabs(string $str, int $tab_length = 4): string + { + if ($tab_length === 4) { + $tab = ' '; + } elseif ($tab_length === 2) { + $tab = ' '; + } else { + $tab = \str_repeat(' ', $tab_length); + } + + return \str_replace($tab, "\t", $str); + } + + /** + * Returns a camelCase version of the string. Trims surrounding spaces, + * capitalizes letters following digits, spaces, dashes and underscores, + * and removes spaces, dashes, as well as underscores. + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_camelize( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + if ($clean_utf8) { + $str = self::clean($str); + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + $str = self::lcfirst( + \trim($str), + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ); + $str = (string) \preg_replace('/^[-_]+/', '', $str); + + $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; + + $str = (string) \preg_replace_callback( + '/[-_\\s]+(.)?/u', + /** + * @param array $match + * + * @psalm-pure + * + * @return string + */ + static function (array $match) use ($use_mb_functions, $encoding, $lang, $try_to_keep_the_string_length): string { + if (isset($match[1])) { + if ($use_mb_functions) { + if ($encoding === 'UTF-8') { + return \mb_strtoupper($match[1]); + } + + return \mb_strtoupper($match[1], $encoding); + } + + return self::strtoupper($match[1], $encoding, false, $lang, $try_to_keep_the_string_length); + } + + return ''; + }, + $str + ); + + return (string) \preg_replace_callback( + '/[\\p{N}]+(.)?/u', + /** + * @param array $match + * + * @psalm-pure + * + * @return string + */ + static function (array $match) use ($use_mb_functions, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length): string { + if ($use_mb_functions) { + if ($encoding === 'UTF-8') { + return \mb_strtoupper($match[0]); + } + + return \mb_strtoupper($match[0], $encoding); + } + + return self::strtoupper($match[0], $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); + }, + $str + ); + } + + /** + * Returns the string with the first letter of each word capitalized, + * except for when the word is a name which shouldn't be capitalized. + * + * @param string $str + * + * @psalm-pure + * + * @return string + * <p>A string with $str capitalized.</p> + */ + public static function str_capitalize_name(string $str): string + { + return self::str_capitalize_name_helper( + self::str_capitalize_name_helper( + self::collapse_whitespace($str), + ' ' + ), + '-' + ); + } + + /** + * Returns true if the string contains $needle, false otherwise. By default + * the comparison is case-sensitive, but can be made insensitive by setting + * $case_sensitive to false. + * + * @param string $haystack <p>The input string.</p> + * @param string $needle <p>Substring to look for.</p> + * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $haystack contains $needle.</p> + */ + public static function str_contains( + string $haystack, + string $needle, + bool $case_sensitive = true + ): bool { + if ($case_sensitive) { + if (\PHP_VERSION_ID >= 80000) { + /** @phpstan-ignore-next-line - only for PHP8 */ + return \str_contains($haystack, $needle); + } + + return \strpos($haystack, $needle) !== false; + } + + return \mb_stripos($haystack, $needle) !== false; + } + + /** + * Returns true if the string contains all $needles, false otherwise. By + * default, the comparison is case-sensitive, but can be made insensitive by + * setting $case_sensitive to false. + * + * @param string $haystack <p>The input string.</p> + * @param scalar[] $needles <p>SubStrings to look for.</p> + * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $haystack contains $needle.</p> + */ + public static function str_contains_all( + string $haystack, + array $needles, + bool $case_sensitive = true + ): bool { + if ($haystack === '' || $needles === []) { + return false; + } + + foreach ($needles as &$needle) { + if ( + $case_sensitive + && + (!$needle || \strpos($haystack, (string)$needle) === false) + ) { + return false; + } + + if (!$needle || \mb_stripos($haystack, (string) $needle) === false) { + return false; + } + } + + return true; + } + + /** + * Returns true if the string contains any $needles, false otherwise. By + * default the comparison is case-sensitive, but can be made insensitive by + * setting $case_sensitive to false. + * + * @param string $haystack <p>The input string.</p> + * @param scalar[] $needles <p>SubStrings to look for.</p> + * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str contains $needle.</p> + */ + public static function str_contains_any( + string $haystack, + array $needles, + bool $case_sensitive = true + ): bool { + if ($haystack === '' || $needles === []) { + return false; + } + + foreach ($needles as &$needle) { + if (!$needle) { + continue; + } + + if ($case_sensitive) { + if (\strpos($haystack, (string) $needle) !== false) { + return true; + } + + continue; + } + + if (\mb_stripos($haystack, (string) $needle) !== false) { + return true; + } + } + + return false; + } + + /** + * Returns a lowercase and trimmed string separated by dashes. Dashes are + * inserted before uppercase characters (with the exception of the first + * character of the string), and in place of spaces as well as underscores. + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_dasherize(string $str, string $encoding = 'UTF-8'): string + { + return self::str_delimit($str, '-', $encoding); + } + + /** + * Returns a lowercase and trimmed string separated by the given delimiter. + * + * Delimiters are inserted before uppercase characters (with the exception + * of the first character of the string), and in place of spaces, dashes, + * and underscores. Alpha delimiters are not converted to lowercase. + * + * EXAMPLE: <code> + * UTF8::str_delimit('test case, '#'); // 'test#case' + * UTF8::str_delimit('test -case', '**'); // 'test**case' + * </code> + * + * @param string $str <p>The input string.</p> + * @param string $delimiter <p>Sequence used to separate parts of the string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ -> + * ß</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function str_delimit( + string $str, + string $delimiter, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + if (self::$SUPPORT['mbstring'] === true) { + $str = (string) \mb_ereg_replace('\\B(\\p{Lu})', '-\1', \trim($str)); + + $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; + if ($use_mb_functions && $encoding === 'UTF-8') { + $str = \mb_strtolower($str); + } else { + $str = self::strtolower($str, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); + } + + return (string) \mb_ereg_replace('[\\-_\\s]+', $delimiter, $str); + } + + $str = (string) \preg_replace('/\\B(\\p{Lu})/u', '-\1', \trim($str)); + + $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; + if ($use_mb_functions && $encoding === 'UTF-8') { + $str = \mb_strtolower($str); + } else { + $str = self::strtolower($str, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); + } + + return (string) \preg_replace('/[\\-_\\s]+/u', $delimiter, $str); + } + + /** + * Optimized "mb_detect_encoding()"-function -> with support for UTF-16 and UTF-32. + * + * EXAMPLE: <code> + * UTF8::str_detect_encoding('中文空白'); // 'UTF-8' + * UTF8::str_detect_encoding('Abc'); // 'ASCII' + * </code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return false|string + * <p> + * The detected string-encoding e.g. UTF-8 or UTF-16BE,<br> + * otherwise it will return false e.g. for BINARY or not detected encoding. + * </p> + */ + public static function str_detect_encoding($str) + { + // init + $str = (string) $str; + + // + // 1.) check binary strings (010001001...) like UTF-16 / UTF-32 / PDF / Images / ... + // + + if (self::is_binary($str, self::string_has_bom($str) ? false : true)) { + $is_utf32 = self::is_utf32($str, false); + if ($is_utf32 === 1) { + return 'UTF-32LE'; + } + if ($is_utf32 === 2) { + return 'UTF-32BE'; + } + + $is_utf16 = self::is_utf16($str, false); + if ($is_utf16 === 1) { + return 'UTF-16LE'; + } + if ($is_utf16 === 2) { + return 'UTF-16BE'; + } + + // is binary but not "UTF-16" or "UTF-32" + return false; + } + + // + // 2.) simple check for ASCII chars + // + + if (ASCII::is_ascii($str)) { + return 'ASCII'; + } + + // + // 3.) simple check for UTF-8 chars + // + + if (self::is_utf8_string($str)) { + return 'UTF-8'; + } + + // + // 4.) check via "mb_detect_encoding()" + // + // INFO: UTF-16, UTF-32, UCS2 and UCS4, encoding detection will fail always with "mb_detect_encoding()" + + $encoding_detecting_order = [ + 'ISO-8859-1', + 'ISO-8859-2', + 'ISO-8859-3', + 'ISO-8859-4', + 'ISO-8859-5', + 'ISO-8859-6', + 'ISO-8859-7', + 'ISO-8859-8', + 'ISO-8859-9', + 'ISO-8859-10', + 'ISO-8859-13', + 'ISO-8859-14', + 'ISO-8859-15', + 'ISO-8859-16', + 'WINDOWS-1251', + 'WINDOWS-1252', + 'WINDOWS-1254', + 'CP932', + 'CP936', + 'CP950', + 'CP866', + 'CP850', + 'CP51932', + 'CP50220', + 'CP50221', + 'CP50222', + 'ISO-2022-JP', + 'ISO-2022-KR', + 'JIS', + 'JIS-ms', + 'EUC-CN', + 'EUC-JP', + ]; + + if (self::$SUPPORT['mbstring'] === true) { + // info: do not use the symfony polyfill here + $encoding = \mb_detect_encoding($str, $encoding_detecting_order, true); + if ($encoding) { + return $encoding; + } + } + + // + // 5.) check via "iconv()" + // + + if (self::$ENCODINGS === null) { + self::$ENCODINGS = self::getData('encodings'); + } + + foreach (self::$ENCODINGS as $encoding_tmp) { + // INFO: //IGNORE but still throw notice + /** @noinspection PhpUsageOfSilenceOperatorInspection */ + if ((string) @\iconv($encoding_tmp, $encoding_tmp . '//IGNORE', $str) === $str) { + return $encoding_tmp; + } + } + + return false; + } + + /** + * Check if the string ends with the given substring. + * + * EXAMPLE: <code> + * UTF8::str_ends_with('BeginMiddleΚόσμε', 'Κόσμε'); // true + * UTF8::str_ends_with('BeginMiddleΚόσμε', 'κόσμε'); // false + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return bool + */ + public static function str_ends_with(string $haystack, string $needle): bool + { + if ($needle === '') { + return true; + } + + if ($haystack === '') { + return false; + } + + if (\PHP_VERSION_ID >= 80000) { + /** @phpstan-ignore-next-line - only for PHP8 */ + return \str_ends_with($haystack, $needle); + } + + return \substr($haystack, -\strlen($needle)) === $needle; + } + + /** + * Returns true if the string ends with any of $substrings, false otherwise. + * + * - case-sensitive + * + * @param string $str <p>The input string.</p> + * @param string[] $substrings <p>Substrings to look for.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str ends with $substring.</p> + */ + public static function str_ends_with_any(string $str, array $substrings): bool + { + if ($substrings === []) { + return false; + } + + foreach ($substrings as &$substring) { + if (\substr($str, -\strlen($substring)) === $substring) { + return true; + } + } + + return false; + } + + /** + * Ensures that the string begins with $substring. If it doesn't, it's + * prepended. + * + * @param string $str <p>The input string.</p> + * @param string $substring <p>The substring to add if not present.</p> + * + * @psalm-pure + * + * @template T as string + * @template TSub as string + * @phpstan-param T $str + * @phpstan-param TSub $substring + * @phpstan-return (TSub is non-empty-string ? non-empty-string : (T is non-empty-string ? non-empty-string : string)) + */ + public static function str_ensure_left(string $str, string $substring): string + { + if ( + $substring !== '' + && + \strpos($str, $substring) === 0 + ) { + return $str; + } + + return $substring . $str; + } + + /** + * Ensures that the string ends with $substring. If it doesn't, it's appended. + * + * @param string $str <p>The input string.</p> + * @param string $substring <p>The substring to add if not present.</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @template TSub as string + * @phpstan-param T $str + * @phpstan-param TSub $substring + * @phpstan-return (TSub is non-empty-string ? non-empty-string : (T is non-empty-string ? non-empty-string : string)) + */ + public static function str_ensure_right(string $str, string $substring): string + { + if ( + $str === '' + || + $substring === '' + || + \substr($str, -\strlen($substring)) !== $substring + ) { + $str .= $substring; + } + + return $str; + } + + /** + * Capitalizes the first word of the string, replaces underscores with + * spaces, and strips '_id'. + * + * @param string $str + * + * @psalm-pure + * + * @return string + */ + public static function str_humanize($str): string + { + $str = \str_replace( + [ + '_id', + '_', + ], + [ + '', + ' ', + ], + $str + ); + + return self::ucfirst(\trim($str)); + } + + /** + * Check if the string ends with the given substring, case-insensitive. + * + * EXAMPLE: <code> + * UTF8::str_iends_with('BeginMiddleΚόσμε', 'Κόσμε'); // true + * UTF8::str_iends_with('BeginMiddleΚόσμε', 'κόσμε'); // true + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return bool + */ + public static function str_iends_with(string $haystack, string $needle): bool + { + if ($needle === '') { + return true; + } + + if ($haystack === '') { + return false; + } + + return self::strcasecmp(\substr($haystack, -\strlen($needle)), $needle) === 0; + } + + /** + * Returns true if the string ends with any of $substrings, false otherwise. + * + * - case-insensitive + * + * @param string $str <p>The input string.</p> + * @param string[] $substrings <p>Substrings to look for.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str ends with $substring.</p> + */ + public static function str_iends_with_any(string $str, array $substrings): bool + { + if ($substrings === []) { + return false; + } + + foreach ($substrings as &$substring) { + if (self::str_iends_with($str, $substring)) { + return true; + } + } + + return false; + } + + /** + * Inserts $substring into the string at the $index provided. + * + * @param string $str <p>The input string.</p> + * @param string $substring <p>String to be inserted.</p> + * @param int $index <p>The index at which to insert the substring.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_insert( + string $str, + string $substring, + int $index, + string $encoding = 'UTF-8' + ): string { + if ($encoding === 'UTF-8') { + $len = (int) \mb_strlen($str); + if ($index > $len) { + return $str; + } + + /** @noinspection UnnecessaryCastingInspection */ + return (string) \mb_substr($str, 0, $index) . + $substring . + (string) \mb_substr($str, $index, $len); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $len = (int) self::strlen($str, $encoding); + if ($index > $len) { + return $str; + } + + return ((string) self::substr($str, 0, $index, $encoding)) . + $substring . + ((string) self::substr($str, $index, $len, $encoding)); + } + + /** + * Case-insensitive and UTF-8 safe version of <function>str_replace</function>. + * + * EXAMPLE: <code> + * UTF8::str_ireplace('lIzÆ', 'lise', 'Iñtërnâtiônàlizætiøn'); // 'Iñtërnâtiônàlisetiøn' + * </code> + * + * @see http://php.net/manual/en/function.str-ireplace.php + * + * @param string|string[] $search <p> + * Every replacement with search array is + * performed on the result of previous replacement. + * </p> + * @param string|string[] $replacement <p>The replacement.</p> + * @param string|string[] $subject <p> + * If subject is an array, then the search and + * replace is performed with every entry of + * subject, and the return value is an array as + * well. + * </p> + * @param int $count [optional] <p> + * The number of matched and replaced needles will + * be returned in count which is passed by + * reference. + * </p> + * + * @psalm-pure + * + * @return string|string[] + * <p>A string or an array of replacements.</p> + * + * @template TStrIReplaceSubject + * @phpstan-param TStrIReplaceSubject $subject + * @phpstan-return TStrIReplaceSubject + */ + public static function str_ireplace($search, $replacement, $subject, &$count = null) + { + $search = (array) $search; + + /** @noinspection AlterInForeachInspection */ + foreach ($search as &$s) { + $s = (string) $s; + if ($s === '') { + $s = '/^(?<=.)$/'; + } else { + $s = '/' . \preg_quote($s, '/') . '/ui'; + } + } + + // fallback + /** @phpstan-ignore-next-line - only a fallback for PHP8 */ + if ($replacement === null) { + $replacement = ''; + } + /** @phpstan-ignore-next-line - only a fallback for PHP8 */ + if ($subject === null) { + $subject = ''; + } + + /** + * @psalm-suppress PossiblyNullArgument + * @phpstan-var TStrIReplaceSubject $subject + */ + $subject = \preg_replace($search, $replacement, $subject, -1, $count); + + return $subject; + } + + /** + * Replaces $search from the beginning of string with $replacement. + * + * @param string $str <p>The input string.</p> + * @param string $search <p>The string to search for.</p> + * @param string $replacement <p>The replacement.</p> + * + * @psalm-pure + * + * @return string + * <p>The string after the replacement.</p> + */ + public static function str_ireplace_beginning(string $str, string $search, string $replacement): string + { + if ($str === '') { + if ($replacement === '') { + return ''; + } + + if ($search === '') { + return $replacement; + } + } + + if ($search === '') { + return $str . $replacement; + } + + $searchLength = \strlen($search); + if (\strncasecmp($str, $search, $searchLength) === 0) { + return $replacement . \substr($str, $searchLength); + } + + return $str; + } + + /** + * Replaces $search from the ending of string with $replacement. + * + * @param string $str <p>The input string.</p> + * @param string $search <p>The string to search for.</p> + * @param string $replacement <p>The replacement.</p> + * + * @psalm-pure + * + * @return string + * <p>The string after the replacement.</p> + */ + public static function str_ireplace_ending(string $str, string $search, string $replacement): string + { + if ($str === '') { + if ($replacement === '') { + return ''; + } + + if ($search === '') { + return $replacement; + } + } + + if ($search === '') { + return $str . $replacement; + } + + if (\stripos($str, $search, \strlen($str) - \strlen($search)) !== false) { + $str = \substr($str, 0, -\strlen($search)) . $replacement; + } + + return $str; + } + + /** + * Check if the string starts with the given substring, case-insensitive. + * + * EXAMPLE: <code> + * UTF8::str_istarts_with('ΚόσμεMiddleEnd', 'Κόσμε'); // true + * UTF8::str_istarts_with('ΚόσμεMiddleEnd', 'κόσμε'); // true + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return bool + */ + public static function str_istarts_with(string $haystack, string $needle): bool + { + if ($needle === '') { + return true; + } + + if ($haystack === '') { + return false; + } + + return self::stripos($haystack, $needle) === 0; + } + + /** + * Returns true if the string begins with any of $substrings, false otherwise. + * + * - case-insensitive + * + * @param string $str <p>The input string.</p> + * @param scalar[] $substrings <p>Substrings to look for.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str starts with $substring.</p> + */ + public static function str_istarts_with_any(string $str, array $substrings): bool + { + if ($str === '') { + return false; + } + + if ($substrings === []) { + return false; + } + + foreach ($substrings as &$substring) { + if (self::str_istarts_with($str, (string) $substring)) { + return true; + } + } + + return false; + } + + /** + * Gets the substring after the first occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_isubstr_after_first_separator( + string $str, + string $separator, + string $encoding = 'UTF-8' + ): string { + if ($separator === '' || $str === '') { + return ''; + } + + $offset = self::stripos($str, $separator); + if ($offset === false) { + return ''; + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr( + $str, + $offset + (int) \mb_strlen($separator) + ); + } + + return (string) self::substr( + $str, + $offset + (int) self::strlen($separator, $encoding), + null, + $encoding + ); + } + + /** + * Gets the substring after the last occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_isubstr_after_last_separator( + string $str, + string $separator, + string $encoding = 'UTF-8' + ): string { + if ($separator === '' || $str === '') { + return ''; + } + + $offset = self::strripos($str, $separator); + if ($offset === false) { + return ''; + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr( + $str, + $offset + (int) self::strlen($separator) + ); + } + + return (string) self::substr( + $str, + $offset + (int) self::strlen($separator, $encoding), + null, + $encoding + ); + } + + /** + * Gets the substring before the first occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_isubstr_before_first_separator( + string $str, + string $separator, + string $encoding = 'UTF-8' + ): string { + if ($separator === '' || $str === '') { + return ''; + } + + $offset = self::stripos($str, $separator); + if ($offset === false) { + return ''; + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr($str, 0, $offset); + } + + return (string) self::substr($str, 0, $offset, $encoding); + } + + /** + * Gets the substring before the last occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_isubstr_before_last_separator( + string $str, + string $separator, + string $encoding = 'UTF-8' + ): string { + if ($separator === '' || $str === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + $offset = \mb_strripos($str, $separator); + if ($offset === false) { + return ''; + } + + return (string) \mb_substr($str, 0, $offset); + } + + $offset = self::strripos($str, $separator, 0, $encoding); + if ($offset === false) { + return ''; + } + + return (string) self::substr($str, 0, $offset, $encoding); + } + + /** + * Gets the substring after (or before via "$before_needle") the first occurrence of the "$needle". + * + * @param string $str <p>The input string.</p> + * @param string $needle <p>The string to look for.</p> + * @param bool $before_needle [optional] <p>Default: false</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_isubstr_first( + string $str, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8' + ): string { + if ( + $needle === '' + || + $str === '' + ) { + return ''; + } + + $part = self::stristr( + $str, + $needle, + $before_needle, + $encoding + ); + if ($part === false) { + return ''; + } + + return $part; + } + + /** + * Gets the substring after (or before via "$before_needle") the last occurrence of the "$needle". + * + * @param string $str <p>The input string.</p> + * @param string $needle <p>The string to look for.</p> + * @param bool $before_needle [optional] <p>Default: false</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_isubstr_last( + string $str, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8' + ): string { + if ( + $needle === '' + || + $str === '' + ) { + return ''; + } + + $part = self::strrichr( + $str, + $needle, + $before_needle, + $encoding + ); + if ($part === false) { + return ''; + } + + return $part; + } + + /** + * Returns the last $n characters of the string. + * + * @param string $str <p>The input string.</p> + * @param int $n <p>Number of characters to retrieve from the end.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_last_char( + string $str, + int $n = 1, + string $encoding = 'UTF-8' + ): string { + if ($str === '' || $n <= 0) { + return ''; + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr($str, -$n); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return (string) self::substr($str, -$n, null, $encoding); + } + + /** + * Limit the number of characters in a string. + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $length [optional] <p>Default: 100</p> + * @param string $str_add_on [optional] <p>Default: …</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function str_limit( + string $str, + int $length = 100, + string $str_add_on = '…', + string $encoding = 'UTF-8' + ): string { + if ( + $str === '' + || + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + $length <= 0 + ) { + return ''; + } + + if ($encoding === 'UTF-8') { + if ((int) \mb_strlen($str) <= $length) { + return $str; + } + + /** @noinspection UnnecessaryCastingInspection */ + return (string) \mb_substr($str, 0, $length - (int) self::strlen($str_add_on)) . $str_add_on; + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ((int) self::strlen($str, $encoding) <= $length) { + return $str; + } + + return ((string) self::substr($str, 0, $length - (int) self::strlen($str_add_on), $encoding)) . $str_add_on; + } + + /** + * Limit the number of characters in a string in bytes. + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $length [optional] <p>Default: 100</p> + * @param string $str_add_on [optional] <p>Default: ...</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function str_limit_in_byte( + string $str, + int $length = 100, + string $str_add_on = '...', + string $encoding = 'UTF-8' + ): string { + if ( + $str === '' + || + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + $length <= 0 + ) { + return ''; + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ((int) self::strlen_in_byte($str, $encoding) <= $length) { + return $str; + } + + return ((string) self::substr_in_byte($str, 0, $length - (int) self::strlen_in_byte($str_add_on), $encoding)) . $str_add_on; + } + + /** + * Limit the number of characters in a string, but also after the next word. + * + * EXAMPLE: <code>UTF8::str_limit_after_word('fòô bàř fòô', 8, ''); // 'fòô bàř'</code> + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $length [optional] <p>Default: 100</p> + * @param string $str_add_on [optional] <p>Default: …</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function str_limit_after_word( + string $str, + int $length = 100, + string $str_add_on = '…', + string $encoding = 'UTF-8' + ): string { + if ( + $str === '' + || + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + $length <= 0 + ) { + return ''; + } + + if ($encoding === 'UTF-8') { + if ((int) \mb_strlen($str) <= $length) { + return $str; + } + + if (\mb_substr($str, $length - 1, 1) === ' ') { + return ((string) \mb_substr($str, 0, $length - 1)) . $str_add_on; + } + + $str = \mb_substr($str, 0, $length); + + $array = \explode(' ', $str, -1); + $new_str = \implode(' ', $array); + + if ($new_str === '') { + return ((string) \mb_substr($str, 0, $length - 1)) . $str_add_on; + } + } else { + if ((int) self::strlen($str, $encoding) <= $length) { + return $str; + } + + if (self::substr($str, $length - 1, 1, $encoding) === ' ') { + return ((string) self::substr($str, 0, $length - 1, $encoding)) . $str_add_on; + } + + /** @noinspection CallableParameterUseCaseInTypeContextInspection - FP */ + $str = self::substr($str, 0, $length, $encoding); + if ($str === false) { + return '' . $str_add_on; + } + + $array = \explode(' ', $str, -1); + $new_str = \implode(' ', $array); + + if ($new_str === '') { + return ((string) self::substr($str, 0, $length - 1, $encoding)) . $str_add_on; + } + } + + return $new_str . $str_add_on; + } + + /** + * Returns the longest common prefix between the $str1 and $str2. + * + * @param string $str1 <p>The input sting.</p> + * @param string $str2 <p>Second string for comparison.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_longest_common_prefix( + string $str1, + string $str2, + string $encoding = 'UTF-8' + ): string { + // init + $longest_common_prefix = ''; + + if ($encoding === 'UTF-8') { + $max_length = (int) \min( + \mb_strlen($str1), + \mb_strlen($str2) + ); + + for ($i = 0; $i < $max_length; ++$i) { + $char = \mb_substr($str1, $i, 1); + + if ( + $char !== false /* @phpstan-ignore-line | old polyfill will return false, or? */ + && + $char === \mb_substr($str2, $i, 1) + ) { + $longest_common_prefix .= $char; + } else { + break; + } + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $max_length = (int) \min( + self::strlen($str1, $encoding), + self::strlen($str2, $encoding) + ); + + for ($i = 0; $i < $max_length; ++$i) { + $char = self::substr($str1, $i, 1, $encoding); + + if ( + $char !== false + && + $char === self::substr($str2, $i, 1, $encoding) + ) { + $longest_common_prefix .= $char; + } else { + break; + } + } + } + + return $longest_common_prefix; + } + + /** + * Returns the longest common substring between the $str1 and $str2. + * In the case of ties, it returns that which occurs first. + * + * @param string $str1 + * @param string $str2 <p>Second string for comparison.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>A string with its $str being the longest common substring.</p> + */ + public static function str_longest_common_substring( + string $str1, + string $str2, + string $encoding = 'UTF-8' + ): string { + if ($str1 === '' || $str2 === '') { + return ''; + } + + // Uses dynamic programming to solve + // http://en.wikipedia.org/wiki/Longest_common_substring_problem + + if ($encoding === 'UTF-8') { + $str_length = (int) \mb_strlen($str1); + $other_length = (int) \mb_strlen($str2); + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $str_length = (int) self::strlen($str1, $encoding); + $other_length = (int) self::strlen($str2, $encoding); + } + + // Return if either string is empty + if ($str_length === 0 || $other_length === 0) { + return ''; + } + + $len = 0; + $end = 0; + $table = \array_fill( + 0, + $str_length + 1, + \array_fill(0, $other_length + 1, 0) + ); + + if ($encoding === 'UTF-8') { + for ($i = 1; $i <= $str_length; ++$i) { + for ($j = 1; $j <= $other_length; ++$j) { + $str_char = \mb_substr($str1, $i - 1, 1); + $other_char = \mb_substr($str2, $j - 1, 1); + + if ($str_char === $other_char) { + $table[$i][$j] = $table[$i - 1][$j - 1] + 1; + if ($table[$i][$j] > $len) { + $len = $table[$i][$j]; + $end = $i; + } + } else { + $table[$i][$j] = 0; + } + } + } + } else { + for ($i = 1; $i <= $str_length; ++$i) { + for ($j = 1; $j <= $other_length; ++$j) { + $str_char = self::substr($str1, $i - 1, 1, $encoding); + $other_char = self::substr($str2, $j - 1, 1, $encoding); + + if ($str_char === $other_char) { + $table[$i][$j] = $table[$i - 1][$j - 1] + 1; + if ($table[$i][$j] > $len) { + $len = $table[$i][$j]; + $end = $i; + } + } else { + $table[$i][$j] = 0; + } + } + } + } + + if ($encoding === 'UTF-8') { + return (string) \mb_substr($str1, $end - $len, $len); + } + + return (string) self::substr($str1, $end - $len, $len, $encoding); + } + + /** + * Returns the longest common suffix between the $str1 and $str2. + * + * @param string $str1 + * @param string $str2 <p>Second string for comparison.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_longest_common_suffix( + string $str1, + string $str2, + string $encoding = 'UTF-8' + ): string { + if ($str1 === '' || $str2 === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + $max_length = (int) \min( + \mb_strlen($str1, $encoding), + \mb_strlen($str2, $encoding) + ); + + $longest_common_suffix = ''; + for ($i = 1; $i <= $max_length; ++$i) { + $char = \mb_substr($str1, -$i, 1); + + if ( + $char !== false /* @phpstan-ignore-line | old polyfill will return false, or? */ + && + $char === \mb_substr($str2, -$i, 1) + ) { + $longest_common_suffix = $char . $longest_common_suffix; + } else { + break; + } + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $max_length = (int) \min( + self::strlen($str1, $encoding), + self::strlen($str2, $encoding) + ); + + $longest_common_suffix = ''; + for ($i = 1; $i <= $max_length; ++$i) { + $char = self::substr($str1, -$i, 1, $encoding); + + if ( + $char !== false + && + $char === self::substr($str2, -$i, 1, $encoding) + ) { + $longest_common_suffix = $char . $longest_common_suffix; + } else { + break; + } + } + } + + return $longest_common_suffix; + } + + /** + * Returns true if $str matches the supplied pattern, false otherwise. + * + * @param string $str <p>The input string.</p> + * @param string $pattern <p>Regex pattern to match against.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str matches the pattern.</p> + */ + public static function str_matches_pattern(string $str, string $pattern): bool + { + return (bool) \preg_match('/' . $pattern . '/u', $str); + } + + /** + * Returns whether or not a character exists at an index. Offsets may be + * negative to count from the last character in the string. Implements + * part of the ArrayAccess interface. + * + * @param string $str <p>The input string.</p> + * @param int $offset <p>The index to check.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not the index exists.</p> + */ + public static function str_offset_exists(string $str, int $offset, string $encoding = 'UTF-8'): bool + { + // init + $length = (int) self::strlen($str, $encoding); + + if ($offset >= 0) { + return $length > $offset; + } + + return $length >= \abs($offset); + } + + /** + * Returns the character at the given index. Offsets may be negative to + * count from the last character in the string. Implements part of the + * ArrayAccess interface, and throws an OutOfBoundsException if the index + * does not exist. + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $index <p>The <strong>index</strong> from which to retrieve the char.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @throws \OutOfBoundsException if the positive or negative offset does not exist + * + * @return string + * <p>The character at the specified index.</p> + * + * @psalm-pure + */ + public static function str_offset_get(string $str, int $index, string $encoding = 'UTF-8'): string + { + // init + $length = (int) self::strlen($str); + + if ( + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + ($index >= 0 && $length <= $index) + || + $length < \abs($index) + ) { + throw new \OutOfBoundsException('No character exists at the index'); + } + + return self::char_at($str, $index, $encoding); + } + + /** + * Pad a UTF-8 string to a given length with another string. + * + * EXAMPLE: <code>UTF8::str_pad('中文空白', 10, '_', STR_PAD_BOTH); // '___中文空白___'</code> + * + * @param string $str <p>The input string.</p> + * @param int $pad_length <p>The length of return string.</p> + * @param string $pad_string [optional] <p>String to use for padding the input string.</p> + * @param int|string $pad_type [optional] <p> + * Can be <strong>STR_PAD_RIGHT</strong> (default), [or string "right"]<br> + * <strong>STR_PAD_LEFT</strong> [or string "left"] or<br> + * <strong>STR_PAD_BOTH</strong> [or string "both"] + * </p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + * <p>Returns the padded string.</p> + */ + public static function str_pad( + string $str, + int $pad_length, + string $pad_string = ' ', + $pad_type = \STR_PAD_RIGHT, + string $encoding = 'UTF-8' + ): string { + if ($pad_length === 0 || $pad_string === '') { + return $str; + } + + if ($pad_type !== (int) $pad_type) { + if ($pad_type === 'left') { + $pad_type = \STR_PAD_LEFT; + } elseif ($pad_type === 'right') { + $pad_type = \STR_PAD_RIGHT; + } elseif ($pad_type === 'both') { + $pad_type = \STR_PAD_BOTH; + } else { + throw new \InvalidArgumentException( + 'Pad expects $pad_type to be "STR_PAD_*" or ' . "to be one of 'left', 'right' or 'both'" + ); + } + } + + if ($encoding === 'UTF-8') { + $str_length = (int) \mb_strlen($str); + + if ($pad_length >= $str_length) { + switch ($pad_type) { + case \STR_PAD_LEFT: + $ps_length = (int) \mb_strlen($pad_string); + + $diff = ($pad_length - $str_length); + + $pre = (string) \mb_substr( + \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), + 0, + $diff + ); + $post = ''; + + break; + + case \STR_PAD_BOTH: + $diff = ($pad_length - $str_length); + + $ps_length_left = (int) \floor($diff / 2); + + $ps_length_right = (int) \ceil($diff / 2); + + $pre = (string) \mb_substr( + \str_repeat($pad_string, $ps_length_left), + 0, + $ps_length_left + ); + $post = (string) \mb_substr( + \str_repeat($pad_string, $ps_length_right), + 0, + $ps_length_right + ); + + break; + + case \STR_PAD_RIGHT: + default: + $ps_length = (int) \mb_strlen($pad_string); + + $diff = ($pad_length - $str_length); + + $post = (string) \mb_substr( + \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), + 0, + $diff + ); + $pre = ''; + } + + return $pre . $str . $post; + } + + return $str; + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $str_length = (int) self::strlen($str, $encoding); + + if ($pad_length >= $str_length) { + switch ($pad_type) { + case \STR_PAD_LEFT: + $ps_length = (int) self::strlen($pad_string, $encoding); + + $diff = ($pad_length - $str_length); + + $pre = (string) self::substr( + \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), + 0, + $diff, + $encoding + ); + $post = ''; + + break; + + case \STR_PAD_BOTH: + $diff = ($pad_length - $str_length); + + $ps_length_left = (int) \floor($diff / 2); + + $ps_length_right = (int) \ceil($diff / 2); + + $pre = (string) self::substr( + \str_repeat($pad_string, $ps_length_left), + 0, + $ps_length_left, + $encoding + ); + $post = (string) self::substr( + \str_repeat($pad_string, $ps_length_right), + 0, + $ps_length_right, + $encoding + ); + + break; + + case \STR_PAD_RIGHT: + default: + $ps_length = (int) self::strlen($pad_string, $encoding); + + $diff = ($pad_length - $str_length); + + $post = (string) self::substr( + \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), + 0, + $diff, + $encoding + ); + $pre = ''; + } + + return $pre . $str . $post; + } + + return $str; + } + + /** + * Returns a new string of a given length such that both sides of the + * string are padded. Alias for "UTF8::str_pad()" with a $pad_type of 'both'. + * + * @param string $str + * @param int $length <p>Desired string length after padding.</p> + * @param string $pad_str [optional] <p>String used to pad, defaults to space. Default: ' '</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The string with padding applied.</p> + */ + public static function str_pad_both( + string $str, + int $length, + string $pad_str = ' ', + string $encoding = 'UTF-8' + ): string { + return self::str_pad( + $str, + $length, + $pad_str, + \STR_PAD_BOTH, + $encoding + ); + } + + /** + * Returns a new string of a given length such that the beginning of the + * string is padded. Alias for "UTF8::str_pad()" with a $pad_type of 'left'. + * + * @param string $str + * @param int $length <p>Desired string length after padding.</p> + * @param string $pad_str [optional] <p>String used to pad, defaults to space. Default: ' '</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The string with left padding.</p> + */ + public static function str_pad_left( + string $str, + int $length, + string $pad_str = ' ', + string $encoding = 'UTF-8' + ): string { + return self::str_pad( + $str, + $length, + $pad_str, + \STR_PAD_LEFT, + $encoding + ); + } + + /** + * Returns a new string of a given length such that the end of the string + * is padded. Alias for "UTF8::str_pad()" with a $pad_type of 'right'. + * + * @param string $str + * @param int $length <p>Desired string length after padding.</p> + * @param string $pad_str [optional] <p>String used to pad, defaults to space. Default: ' '</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The string with right padding.</p> + */ + public static function str_pad_right( + string $str, + int $length, + string $pad_str = ' ', + string $encoding = 'UTF-8' + ): string { + return self::str_pad( + $str, + $length, + $pad_str, + \STR_PAD_RIGHT, + $encoding + ); + } + + /** + * Repeat a string. + * + * EXAMPLE: <code>UTF8::str_repeat("°~\xf0\x90\x28\xbc", 2); // '°~ð(¼°~ð(¼'</code> + * + * @param string $str <p> + * The string to be repeated. + * </p> + * @param int<1, max> $multiplier <p> + * Number of time the input string should be + * repeated. + * </p> + * <p> + * multiplier has to be greater than or equal to 0. + * If the multiplier is set to 0, the function + * will return an empty string. + * </p> + * + * @psalm-pure + * + * @return string + * <p>The repeated string.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function str_repeat(string $str, int $multiplier): string + { + $str = self::filter($str); + + return \str_repeat($str, $multiplier); + } + + /** + * INFO: This is only a wrapper for "str_replace()" -> the original functions is already UTF-8 safe. + * + * Replace all occurrences of the search string with the replacement string + * + * @see http://php.net/manual/en/function.str-replace.php + * + * @param string|string[] $search <p> + * The value being searched for, otherwise known as the needle. + * An array may be used to designate multiple needles. + * </p> + * @param string|string[] $replace <p> + * The replacement value that replaces found search + * values. An array may be used to designate multiple replacements. + * </p> + * @param string|string[] $subject <p> + * The string or array of strings being searched and replaced on, + * otherwise known as the haystack. + * </p> + * <p> + * If subject is an array, then the search and + * replace is performed with every entry of + * subject, and the return value is an array as + * well. + * </p> + * @param int|null $count [optional] <p> + * If passed, this will hold the number of matched and replaced needles. + * </p> + * + * @psalm-pure + * + * @return string|string[] + * <p>This function returns a string or an array with the replaced values.</p> + * + * @template TStrReplaceSubject + * @phpstan-param TStrReplaceSubject $subject + * @phpstan-return TStrReplaceSubject + * + * @deprecated please use \str_replace() instead + */ + public static function str_replace( + $search, + $replace, + $subject, + int &$count = null + ) { + /** + * @psalm-suppress PossiblyNullArgument + * @phpstan-var TStrReplaceSubject $return; + */ + $return = \str_replace( + $search, + $replace, + $subject, + $count + ); + + return $return; + } + + /** + * Replaces $search from the beginning of string with $replacement. + * + * @param string $str <p>The input string.</p> + * @param string $search <p>The string to search for.</p> + * @param string $replacement <p>The replacement.</p> + * + * @psalm-pure + * + * @return string + * <p>A string after the replacements.</p> + */ + public static function str_replace_beginning( + string $str, + string $search, + string $replacement + ): string { + if ($str === '') { + if ($replacement === '') { + return ''; + } + + if ($search === '') { + return $replacement; + } + } + + if ($search === '') { + return $str . $replacement; + } + + $searchLength = \strlen($search); + if (\strncmp($str, $search, $searchLength) === 0) { + return $replacement . \substr($str, $searchLength); + } + + return $str; + } + + /** + * Replaces $search from the ending of string with $replacement. + * + * @param string $str <p>The input string.</p> + * @param string $search <p>The string to search for.</p> + * @param string $replacement <p>The replacement.</p> + * + * @psalm-pure + * + * @return string + * <p>A string after the replacements.</p> + */ + public static function str_replace_ending( + string $str, + string $search, + string $replacement + ): string { + if ($str === '') { + if ($replacement === '') { + return ''; + } + + if ($search === '') { + return $replacement; + } + } + + if ($search === '') { + return $str . $replacement; + } + + if (\strpos($str, $search, \strlen($str) - \strlen($search)) !== false) { + $str = \substr($str, 0, -\strlen($search)) . $replacement; + } + + return $str; + } + + /** + * Replace the first "$search"-term with the "$replace"-term. + * + * @param string $search + * @param string $replace + * @param string $subject + * + * @psalm-pure + * + * @return string + * + * @psalm-suppress InvalidReturnType + */ + public static function str_replace_first( + string $search, + string $replace, + string $subject + ): string { + $pos = self::strpos($subject, $search); + + if ($pos !== false) { + /** + * @psalm-suppress InvalidReturnStatement + */ + return self::substr_replace( + $subject, + $replace, + $pos, + (int) self::strlen($search) + ); + } + + return $subject; + } + + /** + * Replace the last "$search"-term with the "$replace"-term. + * + * @param string $search + * @param string $replace + * @param string $subject + * + * @psalm-pure + * + * @return string + * + * @psalm-suppress InvalidReturnType + */ + public static function str_replace_last( + string $search, + string $replace, + string $subject + ): string { + $pos = self::strrpos($subject, $search); + if ($pos !== false) { + /** + * @psalm-suppress InvalidReturnStatement + */ + return self::substr_replace( + $subject, + $replace, + $pos, + (int) self::strlen($search) + ); + } + + return $subject; + } + + /** + * Shuffles all the characters in the string. + * + * INFO: uses random algorithm which is weak for cryptography purposes + * + * EXAMPLE: <code>UTF8::str_shuffle('fòô bàř fòô'); // 'àòôřb ffòô '</code> + * + * @param string $str <p>The input string</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @return string + * <p>The shuffled string.</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function str_shuffle(string $str, string $encoding = 'UTF-8'): string + { + if ($encoding === 'UTF-8') { + $indexes = \range(0, (int) \mb_strlen($str) - 1); + \shuffle($indexes); + + // init + $shuffled_str = ''; + + foreach ($indexes as &$i) { + $tmp_sub_str = \mb_substr($str, $i, 1); + if ($tmp_sub_str !== false) { /* @phpstan-ignore-line | old polyfill will return false, or? */ + $shuffled_str .= $tmp_sub_str; + } + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $indexes = \range(0, (int) self::strlen($str, $encoding) - 1); + \shuffle($indexes); + + // init + $shuffled_str = ''; + + foreach ($indexes as &$i) { + $tmp_sub_str = self::substr($str, $i, 1, $encoding); + if ($tmp_sub_str !== false) { + $shuffled_str .= $tmp_sub_str; + } + } + } + + return $shuffled_str; + } + + /** + * Returns the substring beginning at $start, and up to, but not including + * the index specified by $end. If $end is omitted, the function extracts + * the remaining string. If $end is negative, it is computed from the end + * of the string. + * + * @param string $str + * @param int $start <p>Initial index from which to begin extraction.</p> + * @param int|null $end [optional] <p>Index at which to end extraction. Default: null</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return false|string + * <p>The extracted substring.</p><p>If <i>str</i> is shorter than <i>start</i> + * characters long, <b>FALSE</b> will be returned. + */ + public static function str_slice( + string $str, + int $start, + int $end = null, + string $encoding = 'UTF-8' + ) { + if ($encoding === 'UTF-8') { + if ($end === null) { + $length = (int) \mb_strlen($str); + } elseif ($end >= 0 && $end <= $start) { + return ''; + } elseif ($end < 0) { + $length = (int) \mb_strlen($str) + $end - $start; + } else { + $length = $end - $start; + } + + return \mb_substr($str, $start, $length); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ($end === null) { + $length = (int) self::strlen($str, $encoding); + } elseif ($end >= 0 && $end <= $start) { + return ''; + } elseif ($end < 0) { + $length = (int) self::strlen($str, $encoding) + $end - $start; + } else { + $length = $end - $start; + } + + return self::substr($str, $start, $length, $encoding); + } + + /** + * Convert a string to e.g.: "snake_case" + * + * @param string $str + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>A string in snake_case.</p> + */ + public static function str_snakeize(string $str, string $encoding = 'UTF-8'): string + { + if ($str === '') { + return ''; + } + + $str = \str_replace( + '-', + '_', + self::normalize_whitespace($str) + ); + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + $str = (string) \preg_replace_callback( + '/([\\p{N}|\\p{Lu}])/u', + /** + * @param string[] $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches) use ($encoding): string { + $match = $matches[1]; + $match_int = (int) $match; + + if ((string) $match_int === $match) { + return '_' . $match . '_'; + } + + if ($encoding === 'UTF-8') { + return '_' . \mb_strtolower($match); + } + + return '_' . self::strtolower($match, $encoding); + }, + $str + ); + + $str = (string) \preg_replace( + [ + '/\\s+/u', // convert spaces to "_" + '/^\\s+|\\s+$/u', // trim leading & trailing spaces + '/_+/', // remove double "_" + ], + [ + '_', + '', + '_', + ], + $str + ); + + return \trim(\trim($str, '_')); // trim leading & trailing "_" + whitespace + } + + /** + * Sort all characters according to code points. + * + * EXAMPLE: <code>UTF8::str_sort(' -ABC-中文空白- '); // ' ---ABC中文白空'</code> + * + * @param string $str <p>A UTF-8 string.</p> + * @param bool $unique <p>Sort unique. If <strong>true</strong>, repeated characters are ignored.</p> + * @param bool $desc <p>If <strong>true</strong>, will sort characters in reverse code point order.</p> + * + * @psalm-pure + * + * @return string + * <p>A string of sorted characters.</p> + */ + public static function str_sort(string $str, bool $unique = false, bool $desc = false): string + { + /** @var int[] $array */ + $array = self::codepoints($str); + + if ($unique) { + $array = \array_flip(\array_flip($array)); + } + + if ($desc) { + \arsort($array); + } else { + \asort($array); + } + + return self::string($array); + } + + /** + * Convert a string to an array of Unicode characters. + * + * EXAMPLE: <code> + * UTF8::str_split_array(['中文空白', 'test'], 2); // [['中文', '空白'], ['te', 'st']] + * </code> + * + * @param int[]|string[] $input <p>The string[] or int[] to split into array.</p> + * @param int<1, max> $length [optional] <p>Max character length of each array + * element.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the + * string.</p> + * @param bool $try_to_use_mb_functions [optional] <p>Set to false, if you don't want to use + * "mb_substr"</p> + * + * @psalm-pure + * + * @return list<list<string>> + * <p>An array containing chunks of the input.</p> + */ + public static function str_split_array( + array $input, + int $length = 1, + bool $clean_utf8 = false, + bool $try_to_use_mb_functions = true + ): array { + foreach ($input as &$v) { + $v = self::str_split( + $v, + $length, + $clean_utf8, + $try_to_use_mb_functions + ); + } + + /** @var list<list<string>> $input */ + return $input; + } + + /** + * Convert a string to an array of unicode characters. + * + * EXAMPLE: <code>UTF8::str_split('中文空白'); // array('中', '文', '空', '白')</code> + * + * @param int|string $str <p>The string or int to split into array.</p> + * @param int<1, max> $length [optional] <p>Max character length of each array + * element.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the + * string.</p> + * @param bool $try_to_use_mb_functions [optional] <p>Set to false, if you don't want to use + * "mb_substr"</p> + * + * @psalm-pure + * + * @return list<string> + * <p>An array containing chunks of chars from the input.</p> + */ + public static function str_split( + $str, + int $length = 1, + bool $clean_utf8 = false, + bool $try_to_use_mb_functions = true + ): array { + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + if ($length <= 0) { + return []; + } + + // this is only an old fallback + /** @noinspection PhpSillyAssignmentInspection - hack for phpstan */ + /** @var int|int[]|string|string[] $str */ + $str = $str; + if (\is_array($str)) { + /** @psalm-suppress InvalidReturnStatement */ + /** @phpstan-ignore-next-line - old code :/ */ + return self::str_split_array( + $str, + $length, + $clean_utf8, + $try_to_use_mb_functions + ); + } + + // init + $str = (string) $str; + + if ($str === '') { + return []; + } + + if ($clean_utf8) { + $str = self::clean($str); + } + + if ( + $try_to_use_mb_functions + && + self::$SUPPORT['mbstring'] === true + ) { + if (\function_exists('mb_str_split')) { + try { + /** + * @psalm-suppress ImpureFunctionCall - why? + */ + $return = \mb_str_split($str, $length); + } catch (\Error $e) { + // PHP >= 8.0 : mb_str_split() will now throw ValueError on error. Previously, mb_str_split() returned false instead. + $return = false; + } + if ($return !== false) { + return $return; + } + } + + $i_max = \mb_strlen($str); + if ($i_max <= 127) { + $ret = []; + for ($i = 0; $i < $i_max; ++$i) { + $ret[] = \mb_substr($str, $i, 1); + } + } else { + $return_array = []; + \preg_match_all('/./us', $str, $return_array); + $ret = $return_array[0] ?? []; + } + } elseif (self::$SUPPORT['pcre_utf8'] === true) { + $return_array = []; + \preg_match_all('/./us', $str, $return_array); + $ret = $return_array[0] ?? []; + } else { + + // fallback + + $ret = []; + $len = \strlen($str); + + for ($i = 0; $i < $len; ++$i) { + if (($str[$i] & "\x80") === "\x00") { + $ret[] = $str[$i]; + } elseif ( + isset($str[$i + 1]) + && + ($str[$i] & "\xE0") === "\xC0" + ) { + if (($str[$i + 1] & "\xC0") === "\x80") { + $ret[] = $str[$i] . $str[$i + 1]; + + ++$i; + } + } elseif ( + isset($str[$i + 2]) + && + ($str[$i] & "\xF0") === "\xE0" + ) { + if ( + ($str[$i + 1] & "\xC0") === "\x80" + && + ($str[$i + 2] & "\xC0") === "\x80" + ) { + $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2]; + + $i += 2; + } + } elseif ( + isset($str[$i + 3]) + && + ($str[$i] & "\xF8") === "\xF0" + ) { + if ( + ($str[$i + 1] & "\xC0") === "\x80" + && + ($str[$i + 2] & "\xC0") === "\x80" + && + ($str[$i + 3] & "\xC0") === "\x80" + ) { + $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3]; + + $i += 3; + } + } + } + } + + if ($length > 1) { + return \array_map( + static function (array $item): string { + /* @phpstan-ignore-next-line | "array_map + array_chunk" is not supported by phpstan?! */ + return \implode('', $item); + }, + \array_chunk($ret, $length) + ); + } + + if (isset($ret[0]) && $ret[0] === '') { + return []; + } + + return $ret; + } + + /** + * Splits the string with the provided regular expression, returning an + * array of strings. An optional integer $limit will truncate the + * results. + * + * @param string $str + * @param string $pattern <p>The regex with which to split the string.</p> + * @param int $limit [optional] <p>Maximum number of results to return. Default: -1 === no limit</p> + * + * @psalm-pure + * + * @return string[] + * <p>An array of strings.</p> + */ + public static function str_split_pattern(string $str, string $pattern, int $limit = -1): array + { + if ($limit === 0) { + return []; + } + + if ($pattern === '') { + return [$str]; + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($limit >= 0) { + $result_tmp = \mb_split($pattern, $str); + if ($result_tmp === false) { + return []; + } + + $result = []; + foreach ($result_tmp as $item_tmp) { + if ($limit === 0) { + break; + } + --$limit; + + $result[] = $item_tmp; + } + + return $result; + } + + $result = \mb_split($pattern, $str); + if ($result === false) { + return []; + } + + return $result; + } + + if ($limit > 0) { + ++$limit; + } else { + $limit = -1; + } + + $array = \preg_split('/' . \preg_quote($pattern, '/') . '/u', $str, $limit); + if ($array === false) { + return []; + } + + if ($limit > 0 && \count($array) === $limit) { + \array_pop($array); + } + + return $array; + } + + /** + * Check if the string starts with the given substring. + * + * EXAMPLE: <code> + * UTF8::str_starts_with('ΚόσμεMiddleEnd', 'Κόσμε'); // true + * UTF8::str_starts_with('ΚόσμεMiddleEnd', 'κόσμε'); // false + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return bool + */ + public static function str_starts_with(string $haystack, string $needle): bool + { + if ($needle === '') { + return true; + } + + if ($haystack === '') { + return false; + } + + if (\PHP_VERSION_ID >= 80000) { + /** @phpstan-ignore-next-line - only for PHP8 */ + return \str_starts_with($haystack, $needle); + } + + return \strncmp($haystack, $needle, \strlen($needle)) === 0; + } + + /** + * Returns true if the string begins with any of $substrings, false otherwise. + * + * - case-sensitive + * + * @param string $str <p>The input string.</p> + * @param scalar[] $substrings <p>Substrings to look for.</p> + * + * @psalm-pure + * + * @return bool + * <p>Whether or not $str starts with $substring.</p> + */ + public static function str_starts_with_any(string $str, array $substrings): bool + { + if ($str === '') { + return false; + } + + if ($substrings === []) { + return false; + } + + foreach ($substrings as &$substring) { + if (self::str_starts_with($str, (string) $substring)) { + return true; + } + } + + return false; + } + + /** + * Gets the substring after the first occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_substr_after_first_separator(string $str, string $separator, string $encoding = 'UTF-8'): string + { + if ($separator === '' || $str === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + $offset = \mb_strpos($str, $separator); + if ($offset === false) { + return ''; + } + + return (string) \mb_substr( + $str, + $offset + (int) \mb_strlen($separator) + ); + } + + $offset = self::strpos($str, $separator, 0, $encoding); + if ($offset === false) { + return ''; + } + + return (string) \mb_substr( + $str, + $offset + (int) self::strlen($separator, $encoding), + null, + $encoding + ); + } + + /** + * Gets the substring after the last occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_substr_after_last_separator( + string $str, + string $separator, + string $encoding = 'UTF-8' + ): string { + if ($separator === '' || $str === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + $offset = \mb_strrpos($str, $separator); + if ($offset === false) { + return ''; + } + + return (string) \mb_substr( + $str, + $offset + (int) \mb_strlen($separator) + ); + } + + $offset = self::strrpos($str, $separator, 0, $encoding); + if ($offset === false) { + return ''; + } + + return (string) self::substr( + $str, + $offset + (int) self::strlen($separator, $encoding), + null, + $encoding + ); + } + + /** + * Gets the substring before the first occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_substr_before_first_separator( + string $str, + string $separator, + string $encoding = 'UTF-8' + ): string { + if ($separator === '' || $str === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + $offset = \mb_strpos($str, $separator); + if ($offset === false) { + return ''; + } + + return (string) \mb_substr( + $str, + 0, + $offset + ); + } + + $offset = self::strpos($str, $separator, 0, $encoding); + if ($offset === false) { + return ''; + } + + return (string) self::substr( + $str, + 0, + $offset, + $encoding + ); + } + + /** + * Gets the substring before the last occurrence of a separator. + * + * @param string $str <p>The input string.</p> + * @param string $separator <p>The string separator.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_substr_before_last_separator(string $str, string $separator, string $encoding = 'UTF-8'): string + { + if ($separator === '' || $str === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + $offset = \mb_strrpos($str, $separator); + if ($offset === false) { + return ''; + } + + return (string) \mb_substr( + $str, + 0, + $offset + ); + } + + $offset = self::strrpos($str, $separator, 0, $encoding); + if ($offset === false) { + return ''; + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return (string) self::substr( + $str, + 0, + $offset, + $encoding + ); + } + + /** + * Gets the substring after (or before via "$before_needle") the first occurrence of the "$needle". + * + * @param string $str <p>The input string.</p> + * @param string $needle <p>The string to look for.</p> + * @param bool $before_needle [optional] <p>Default: false</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_substr_first( + string $str, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8' + ): string { + if ($str === '' || $needle === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + if ($before_needle) { + $part = \mb_strstr( + $str, + $needle, + $before_needle + ); + } else { + $part = \mb_strstr( + $str, + $needle + ); + } + } else { + $part = self::strstr( + $str, + $needle, + $before_needle, + $encoding + ); + } + + return $part === false ? '' : $part; + } + + /** + * Gets the substring after (or before via "$before_needle") the last occurrence of the "$needle". + * + * @param string $str <p>The input string.</p> + * @param string $needle <p>The string to look for.</p> + * @param bool $before_needle [optional] <p>Default: false</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + */ + public static function str_substr_last( + string $str, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8' + ): string { + if ($str === '' || $needle === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + if ($before_needle) { + $part = \mb_strrchr( + $str, + $needle, + $before_needle + ); + } else { + $part = \mb_strrchr( + $str, + $needle + ); + } + } else { + $part = self::strrchr( + $str, + $needle, + $before_needle, + $encoding + ); + } + + return $part === false ? '' : $part; + } + + /** + * Surrounds $str with the given substring. + * + * @param string $str + * @param string $substring <p>The substring to add to both sides.</p> + * + * @psalm-pure + * + * @return string + * <p>A string with the substring both prepended and appended.</p> + * + * @template T as string + * @template TSub as string + * @phpstan-param T $str + * @phpstan-param TSub $substring + * @phpstan-return (T is non-empty-string ? non-empty-string : (TSub is non-empty-string ? non-empty-string : string)) + */ + public static function str_surround(string $str, string $substring): string + { + return $substring . $str . $substring; + } + + /** + * Returns a trimmed string with the first letter of each word capitalized. + * Also accepts an array, $ignore, allowing you to list words not to be + * capitalized. + * + * @param string $str + * @param string[]|null $ignore [optional] <p>An array of words not to capitalize or + * null. Default: null</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the + * string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, + * el, lt, tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: + * e.g. ẞ -> ß</p> + * @param bool $use_trim_first [optional] <p>true === trim the input string, + * first</p> + * @param string|null $word_define_chars [optional] <p>An string of chars that will be used as + * whitespace separator === words.</p> + * + * @psalm-pure + * + * @return string + * <p>The titleized string.</p> + */ + public static function str_titleize( + string $str, + array $ignore = null, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false, + bool $use_trim_first = true, + string $word_define_chars = null + ): string { + if ($str === '') { + return ''; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($use_trim_first) { + $str = \trim($str); + } + + if ($clean_utf8) { + $str = self::clean($str); + } + + $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; + + if ($word_define_chars) { + $word_define_chars = \preg_quote($word_define_chars, '/'); + } else { + $word_define_chars = ''; + } + + $str = (string) \preg_replace_callback( + '/([^\\s' . $word_define_chars . ']+)/u', + static function (array $match) use ($try_to_keep_the_string_length, $lang, $ignore, $use_mb_functions, $encoding): string { + if ($ignore !== null && \in_array($match[0], $ignore, true)) { + return $match[0]; + } + + if ($use_mb_functions) { + if ($encoding === 'UTF-8') { + return \mb_strtoupper(\mb_substr($match[0], 0, 1)) + . \mb_strtolower(\mb_substr($match[0], 1)); + } + + return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) + . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); + } + + return self::ucfirst( + self::strtolower( + $match[0], + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ), + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ); + }, + $str + ); + + return $str; + } + + /** + * Convert a string into a obfuscate string. + * + * EXAMPLE: <code> + * + * UTF8::str_obfuscate('lars@moelleken.org', 0.5, '*', ['@', '.']); // e.g. "l***@m**lleke*.*r*" + * </code> + * + * @param string $str + * @param float $percent + * @param string $obfuscateChar + * @param string[] $keepChars + * + * @psalm-pure + * + * @return string + * <p>The obfuscate string.</p> + */ + public static function str_obfuscate( + string $str, + float $percent = 0.5, + string $obfuscateChar = '*', + array $keepChars = [] + ): string { + $obfuscateCharHelper = "\u{2603}"; + $str = \str_replace($obfuscateChar, $obfuscateCharHelper, $str); + + $chars = self::chars($str); + $charsMax = \count($chars); + $charsMaxChange = \round($charsMax * $percent); + $charsCounter = 0; + $charKeyDone = []; + + while ($charsCounter < $charsMaxChange) { + foreach ($chars as $charKey => $char) { + if (isset($charKeyDone[$charKey])) { + continue; + } + + if (\random_int(0, 100) > 50) { + continue; + } + + if ($char === $obfuscateChar) { + continue; + } + + ++$charsCounter; + $charKeyDone[$charKey] = true; + + if ($charsCounter > $charsMaxChange) { + break; + } + + if (\in_array($char, $keepChars, true)) { + continue; + } + + $chars[$charKey] = $obfuscateChar; + } + } + + $str = \implode('', $chars); + + return \str_replace($obfuscateCharHelper, $obfuscateChar, $str); + } + + /** + * Returns a trimmed string in proper title case. + * + * Also accepts an array, $ignore, allowing you to list words not to be + * capitalized. + * + * Adapted from John Gruber's script. + * + * @see https://gist.github.com/gruber/9f9e8650d68b13ce4d78 + * + * @param string $str + * @param string[] $ignore <p>An array of words not to capitalize.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The titleized string.</p> + */ + public static function str_titleize_for_humans( + string $str, + array $ignore = [], + string $encoding = 'UTF-8' + ): string { + if ($str === '') { + return ''; + } + + $small_words = [ + '(?<!q&)a', + 'an', + 'and', + 'as', + 'at(?!&t)', + 'but', + 'by', + 'en', + 'for', + 'if', + 'in', + 'of', + 'on', + 'or', + 'the', + 'to', + 'v[.]?', + 'via', + 'vs[.]?', + ]; + + if ($ignore !== []) { + $small_words = \array_merge($small_words, $ignore); + } + + $small_words_rx = \implode('|', $small_words); + $apostrophe_rx = '(?x: [\'’] [[:lower:]]* )?'; + + $str = \trim($str); + + if (!self::has_lowercase($str)) { + $str = self::strtolower($str, $encoding); + } + + // the main substitutions + $str = (string) \preg_replace_callback( + '~\\b (_*) (?: # 1. Leading underscore and + ( (?<=[ ][/\\\\]) [[:alpha:]]+ [-_[:alpha:]/\\\\]+ | # 2. file path or + [-_[:alpha:]]+ [@.:] [-_[:alpha:]@.:/]+ ' . $apostrophe_rx . ' ) # URL, domain, or email + | # + ( (?i: ' . $small_words_rx . ' ) ' . $apostrophe_rx . ' ) # 3. or small word (case-insensitive) + | # + ( [[:alpha:]] [[:lower:]\'’()\[\]{}]* ' . $apostrophe_rx . ' ) # 4. or word w/o internal caps + | # + ( [[:alpha:]] [[:alpha:]\'’()\[\]{}]* ' . $apostrophe_rx . ' ) # 5. or some other word + ) (_*) \\b # 6. With trailing underscore + ~ux', + /** + * @param string[] $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches) use ($encoding): string { + // preserve leading underscore + $str = $matches[1]; + if ($matches[2]) { + // preserve URLs, domains, emails and file paths + $str .= $matches[2]; + } elseif ($matches[3]) { + // lower-case small words + $str .= self::strtolower($matches[3], $encoding); + } elseif ($matches[4]) { + // capitalize word w/o internal caps + $str .= static::ucfirst($matches[4], $encoding); + } else { + // preserve other kinds of word (iPhone) + $str .= $matches[5]; + } + // preserve trailing underscore + $str .= $matches[6]; + + return $str; + }, + $str + ); + + // Exceptions for small words: capitalize at start of title... + $str = (string) \preg_replace_callback( + '~( \\A [[:punct:]]* # start of title... + | [:.;?!][ ]+ # or of subsentence... + | [ ][\'"“‘(\[][ ]* ) # or of inserted subphrase... + ( ' . $small_words_rx . ' ) \\b # ...followed by small word + ~uxi', + /** + * @param string[] $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches) use ($encoding): string { + return $matches[1] . static::ucfirst($matches[2], $encoding); + }, + $str + ); + + // ...and end of title + $str = (string) \preg_replace_callback( + '~\\b ( ' . $small_words_rx . ' ) # small word... + (?= [[:punct:]]* \Z # ...at the end of the title... + | [\'"’”)\]] [ ] ) # ...or of an inserted subphrase? + ~uxi', + /** + * @param string[] $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches) use ($encoding): string { + return static::ucfirst($matches[1], $encoding); + }, + $str + ); + + // Exceptions for small words in hyphenated compound words. + // e.g. "in-flight" -> In-Flight + $str = (string) \preg_replace_callback( + '~\\b + (?<! -) # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (in-flight) + ( ' . $small_words_rx . ' ) + (?= -[[:alpha:]]+) # lookahead for "-someword" + ~uxi', + /** + * @param string[] $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches) use ($encoding): string { + return static::ucfirst($matches[1], $encoding); + }, + $str + ); + + // e.g. "Stand-in" -> "Stand-In" (Stand is already capped at this point) + $str = (string) \preg_replace_callback( + '~\\b + (?<!…) # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (stand-in) + ( [[:alpha:]]+- ) # $1 = first word and hyphen, should already be properly capped + ( ' . $small_words_rx . ' ) # ...followed by small word + (?! - ) # Negative lookahead for another - + ~uxi', + /** + * @param string[] $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches) use ($encoding): string { + return $matches[1] . static::ucfirst($matches[2], $encoding); + }, + $str + ); + + return $str; + } + + /** + * Get a binary representation of a specific string. + * + * EXAPLE: <code>UTF8::str_to_binary('😃'); // '11110000100111111001100010000011'</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return false|string + * <p>false on error</p> + */ + public static function str_to_binary(string $str) + { + $value = \unpack('H*', $str); + if ($value === false) { + return false; + } + + return \base_convert($value[1], 16, 2); + } + + /** + * @param string $str + * @param bool $remove_empty_values <p>Remove empty values.</p> + * @param int|null $remove_short_values <p>The min. string length or null to disable</p> + * + * @psalm-pure + * + * @return string[] + */ + public static function str_to_lines(string $str, bool $remove_empty_values = false, int $remove_short_values = null): array + { + if ($str === '') { + return $remove_empty_values ? [] : ['']; + } + + if (self::$SUPPORT['mbstring'] === true) { + $return = \mb_split("[\r\n]{1,2}", $str); + } else { + $return = \preg_split("/[\r\n]{1,2}/u", $str); + } + + if ($return === false) { + return $remove_empty_values ? [] : ['']; + } + + if ( + $remove_short_values === null + && + !$remove_empty_values + ) { + return $return; + } + + return self::reduce_string_array( + $return, + $remove_empty_values, + $remove_short_values + ); + } + + /** + * Convert a string into an array of words. + * + * EXAMPLE: <code>UTF8::str_to_words('中文空白 oöäü#s', '#') // array('', '中文空白', ' ', 'oöäü#s', '')</code> + * + * @param string $str + * @param string $char_list <p>Additional chars for the definition of "words".</p> + * @param bool $remove_empty_values <p>Remove empty values.</p> + * @param int|null $remove_short_values <p>The min. string length or null to disable</p> + * + * @psalm-pure + * + * @return list<string> + * + * @phpstan-return ($remove_empty_values is true ? list<string> : non-empty-list<string>) + */ + public static function str_to_words( + string $str, + string $char_list = '', + bool $remove_empty_values = false, + int $remove_short_values = null + ): array { + if ($str === '') { + return $remove_empty_values ? [] : ['']; + } + + $char_list = self::rxClass($char_list, '\pL'); + + $return = \preg_split("/({$char_list}+(?:[\p{Pd}’']{$char_list}+)*)/u", $str, -1, \PREG_SPLIT_DELIM_CAPTURE); + if ($return === false) { + return $remove_empty_values ? [] : ['']; + } + + if ( + $remove_short_values === null + && + !$remove_empty_values + ) { + return $return; + } + + $tmp_return = self::reduce_string_array( + $return, + $remove_empty_values, + $remove_short_values + ); + + foreach ($tmp_return as &$item) { + $item = (string) $item; + } + + return $tmp_return; + } + + /** + * Truncates the string to a given length. If $substring is provided, and + * truncating occurs, the string is further truncated so that the substring + * may be appended without exceeding the desired length. + * + * @param string $str + * @param int $length <p>Desired length of the truncated string.</p> + * @param string $substring [optional] <p>The substring to append if it can fit. Default: ''</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * + * @psalm-pure + * + * @return string + * <p>A string after truncating.</p> + */ + public static function str_truncate( + string $str, + int $length, + string $substring = '', + string $encoding = 'UTF-8' + ): string { + if ($str === '') { + return ''; + } + + if ($encoding === 'UTF-8') { + if ($length >= (int) \mb_strlen($str)) { + return $str; + } + + if ($substring !== '') { + $length -= (int) \mb_strlen($substring); + + /** @noinspection UnnecessaryCastingInspection */ + return (string) \mb_substr($str, 0, $length) . $substring; + } + + return (string) \mb_substr($str, 0, $length); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ($length >= (int) self::strlen($str, $encoding)) { + return $str; + } + + if ($substring !== '') { + $length -= (int) self::strlen($substring, $encoding); + } + + return ( + (string) self::substr( + $str, + 0, + $length, + $encoding + ) + ) . $substring; + } + + /** + * Truncates the string to a given length, while ensuring that it does not + * split words. If $substring is provided, and truncating occurs, the + * string is further truncated so that the substring may be appended without + * exceeding the desired length. + * + * @param string $str + * @param int $length <p>Desired length of the truncated string.</p> + * @param string $substring [optional] <p>The substring to append if it can fit. + * Default: + * ''</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * @param bool $ignore_do_not_split_words_for_one_word [optional] <p>Default: false</p> + * + * @psalm-pure + * + * @return string + * <p>A string after truncating.</p> + */ + public static function str_truncate_safe( + string $str, + int $length, + string $substring = '', + string $encoding = 'UTF-8', + bool $ignore_do_not_split_words_for_one_word = false + ): string { + if ($str === '' || $length <= 0) { + return $substring; + } + + if ($encoding === 'UTF-8') { + if ($length >= (int) \mb_strlen($str)) { + return $str; + } + + // need to further trim the string so we can append the substring + $length -= (int) \mb_strlen($substring); + if ($length <= 0) { + return $substring; + } + + /** @var false|string $truncated - needed for PhpStan (stubs error) */ + $truncated = \mb_substr($str, 0, $length); + if ($truncated === false) { + return ''; + } + + // if the last word was truncated + $space_position = \mb_strpos($str, ' ', $length - 1); + if ($space_position !== $length) { + // find pos of the last occurrence of a space, get up to that + $last_position = \mb_strrpos($truncated, ' ', 0); + + if ( + $last_position !== false + || + ( + $space_position !== false + && + !$ignore_do_not_split_words_for_one_word + ) + ) { + $truncated = (string) \mb_substr($truncated, 0, (int) $last_position); + } + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ($length >= (int) self::strlen($str, $encoding)) { + return $str; + } + + // need to further trim the string so we can append the substring + $length -= (int) self::strlen($substring, $encoding); + if ($length <= 0) { + return $substring; + } + + $truncated = self::substr($str, 0, $length, $encoding); + + if ($truncated === false) { + return ''; + } + + // if the last word was truncated + $space_position = self::strpos($str, ' ', $length - 1, $encoding); + if ($space_position !== $length) { + // find pos of the last occurrence of a space, get up to that + $last_position = self::strrpos($truncated, ' ', 0, $encoding); + + if ( + $last_position !== false + || + ( + $space_position !== false + && + !$ignore_do_not_split_words_for_one_word + ) + ) { + $truncated = (string) self::substr($truncated, 0, (int) $last_position, $encoding); + } + } + } + + return $truncated . $substring; + } + + /** + * Returns a lowercase and trimmed string separated by underscores. + * Underscores are inserted before uppercase characters (with the exception + * of the first character of the string), and in place of spaces as well as + * dashes. + * + * @param string $str + * + * @psalm-pure + * + * @return string + * <p>The underscored string.</p> + */ + public static function str_underscored(string $str): string + { + return self::str_delimit($str, '_'); + } + + /** + * Returns an UpperCamelCase version of the supplied string. It trims + * surrounding spaces, capitalizes letters following digits, spaces, dashes + * and underscores, and removes spaces, dashes, underscores. + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Default: 'UTF-8'</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + * <p>A string in UpperCamelCase.</p> + */ + public static function str_upper_camelize( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + return self::ucfirst(self::str_camelize($str, $encoding), $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); + } + + /** + * Get the number of words in a specific string. + * + * EXAMPLES: <code> + * // format: 0 -> return only word count (int) + * // + * UTF8::str_word_count('中文空白 öäü abc#c'); // 4 + * UTF8::str_word_count('中文空白 öäü abc#c', 0, '#'); // 3 + * + * // format: 1 -> return words (array) + * // + * UTF8::str_word_count('中文空白 öäü abc#c', 1); // array('中文空白', 'öäü', 'abc', 'c') + * UTF8::str_word_count('中文空白 öäü abc#c', 1, '#'); // array('中文空白', 'öäü', 'abc#c') + * + * // format: 2 -> return words with offset (array) + * // + * UTF8::str_word_count('中文空白 öäü ab#c', 2); // array(0 => '中文空白', 5 => 'öäü', 9 => 'abc', 13 => 'c') + * UTF8::str_word_count('中文空白 öäü ab#c', 2, '#'); // array(0 => '中文空白', 5 => 'öäü', 9 => 'abc#c') + * </code> + * + * @param string $str <p>The input string.</p> + * @param int $format [optional] <p> + * <strong>0</strong> => return a number of words (default)<br> + * <strong>1</strong> => return an array of words<br> + * <strong>2</strong> => return an array of words with word-offset as key + * </p> + * @param string $char_list [optional] <p>Additional chars that contains to words and do not start a new word.</p> + * + * @psalm-pure + * + * @return int|string[] + * <p>The number of words in the string.</p> + * + * @phpstan-param 0|1|2 $format + * @phpstan-return ($format is 2 ? array<int, string> : ($format is 1 ? list<string> : 0|positive-int)) + */ + public static function str_word_count(string $str, int $format = 0, string $char_list = '') + { + $str_parts = self::str_to_words($str, $char_list); + + $len = \count($str_parts); + + if ($format === 1) { + $number_of_words = []; + for ($i = 1; $i < $len; $i += 2) { + $number_of_words[] = $str_parts[$i]; + } + + return $number_of_words; + } + + if ($format === 2) { + $number_of_words = []; + $offset = (int) self::strlen($str_parts[0]); + for ($i = 1; $i < $len; $i += 2) { + $number_of_words[$offset] = $str_parts[$i]; + $offset += (int) self::strlen($str_parts[$i]) + (int) self::strlen($str_parts[$i + 1]); + } + + return $number_of_words; + } + + $number_of_words = (int) (($len - 1) / 2); + + /* @phpstan-ignore-next-line | it should be 0|positive-int, maybe nested "phpstan-return" is not working? */ + return $number_of_words; + } + + /** + * Case-insensitive string comparison. + * + * INFO: Case-insensitive version of UTF8::strcmp() + * + * EXAMPLE: <code>UTF8::strcasecmp("iñtërnâtiôn\nàlizætiøn", "Iñtërnâtiôn\nàlizætiøn"); // 0</code> + * + * @param string $str1 <p>The first string.</p> + * @param string $str2 <p>The second string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if str1 is less than str2;<br> + * <strong>&gt; 0</strong> if str1 is greater than str2,<br> + * <strong>0</strong> if they are equal + */ + public static function strcasecmp( + string $str1, + string $str2, + string $encoding = 'UTF-8' + ): int { + return self::strcmp( + self::strtocasefold( + $str1, + true, + false, + $encoding, + null, + false + ), + self::strtocasefold( + $str2, + true, + false, + $encoding, + null, + false + ) + ); + } + + /** + * Case-sensitive string comparison. + * + * EXAMPLE: <code>UTF8::strcmp("iñtërnâtiôn\nàlizætiøn", "iñtërnâtiôn\nàlizætiøn"); // 0</code> + * + * @param string $str1 <p>The first string.</p> + * @param string $str2 <p>The second string.</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if str1 is less than str2<br> + * <strong>&gt; 0</strong> if str1 is greater than str2<br> + * <strong>0</strong> if they are equal + */ + public static function strcmp(string $str1, string $str2): int + { + if ($str1 === $str2) { + return 0; + } + + return \strcmp( + \Normalizer::normalize($str1, \Normalizer::NFD), + \Normalizer::normalize($str2, \Normalizer::NFD) + ); + } + + /** + * Find length of initial segment not matching mask. + * + * @param string $str + * @param string $char_list + * @param int $offset + * @param int|null $length + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * + * @phpstan-return 0|positive-int + */ + public static function strcspn( + string $str, + string $char_list, + int $offset = 0, + int $length = null, + string $encoding = 'UTF-8' + ): int { + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($char_list === '') { + return (int) self::strlen($str, $encoding); + } + + if ($offset || $length !== null) { + if ($encoding === 'UTF-8') { + if ($length === null) { + $str_tmp = \mb_substr($str, $offset); + } else { + $str_tmp = \mb_substr($str, $offset, $length); + } + } else { + $str_tmp = self::substr($str, $offset, $length, $encoding); + } + + if ($str_tmp === false) { + return 0; + } + + $str = $str_tmp; + } + + if ($str === '') { + return 0; + } + + $matches = []; + if (\preg_match('/^(.*?)' . self::rxClass($char_list) . '/us', $str, $matches)) { + $return = self::strlen($matches[1], $encoding); + if ($return === false) { + return 0; + } + + return $return; + } + + return (int) self::strlen($str, $encoding); + } + + /** + * Create a UTF-8 string from code points. + * + * INFO: opposite to UTF8::codepoints() + * + * EXAMPLE: <code>UTF8::string(array(246, 228, 252)); // 'öäü'</code> + * + * @param int|int[]|string|string[] $intOrHex <p>Integer or Hexadecimal codepoints.</p> + * + * @phpstan-param int[]|numeric-string[]|int|numeric-string $intOrHex + * + * @psalm-pure + * + * @return string + * <p>A UTF-8 encoded string.</p> + */ + public static function string($intOrHex): string + { + if ($intOrHex === []) { + return ''; + } + + if (!\is_array($intOrHex)) { + $intOrHex = [$intOrHex]; + } + + $str = ''; + foreach ($intOrHex as $strPart) { + $str .= '&#' . (int) $strPart . ';'; + } + + // We cannot use html_entity_decode() here, as it will not return + // characters for many values < 160. + return mb_convert_encoding($str, 'UTF-8', 'HTML-ENTITIES'); + } + + /** + * Checks if string starts with "BOM" (Byte Order Mark Character) character. + * + * EXAMPLE: <code>UTF8::string_has_bom("\xef\xbb\xbf foobar"); // true</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return bool + * <p> + * <strong>true</strong> if the string has BOM at the start,<br> + * <strong>false</strong> otherwise + * </p> + */ + public static function string_has_bom(string $str): bool + { + foreach (self::$BOM as $bom_string => &$bom_byte_length) { + if (\strncmp($str, $bom_string, $bom_byte_length) === 0) { + return true; + } + } + + return false; + } + + /** + * Strip HTML and PHP tags from a string + clean invalid UTF-8. + * + * EXAMPLE: <code>UTF8::strip_tags("<span>κόσμε\xa0\xa1</span>"); // 'κόσμε'</code> + * + * @see http://php.net/manual/en/function.strip-tags.php + * + * @param string $str <p> + * The input string. + * </p> + * @param string|null $allowable_tags [optional] <p> + * You can use the optional second parameter to specify tags which should + * not be stripped. + * </p> + * <p> + * HTML comments and PHP tags are also stripped. This is hardcoded and + * can not be changed with allowable_tags. + * </p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return string + * <p>The stripped string.</p> + */ + public static function strip_tags( + string $str, + string $allowable_tags = null, + bool $clean_utf8 = false + ): string { + if ($str === '') { + return ''; + } + + if ($clean_utf8) { + $str = self::clean($str); + } + + if ($allowable_tags === null) { + return \strip_tags($str); + } + + return \strip_tags($str, $allowable_tags); + } + + /** + * Strip all whitespace characters. This includes tabs and newline + * characters, as well as multibyte whitespace such as the thin space + * and ideographic space. + * + * EXAMPLE: <code>UTF8::strip_whitespace(' Ο συγγραφέας '); // 'Οσυγγραφέας'</code> + * + * @param string $str + * + * @psalm-pure + * + * @return string + */ + public static function strip_whitespace(string $str): string + { + if ($str === '') { + return ''; + } + + return (string) \preg_replace('/[[:space:]]+/u', '', $str); + } + + /** + * Find the position of the first occurrence of a substring in a string, case-insensitive. + * + * INFO: use UTF8::stripos_in_byte() for the byte-length + * + * EXAMPLE: <code>UTF8::stripos('aσσb', 'ΣΣ'); // 1</code> (σσ == ΣΣ) + * + * @see http://php.net/manual/en/function.mb-stripos.php + * + * @param string $haystack <p>The string from which to get the position of the first occurrence of needle.</p> + * @param string $needle <p>The string to find in haystack.</p> + * @param int $offset [optional] <p>The position in haystack to start searching.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|int + * Return the <strong>(int)</strong> numeric position of the first occurrence of needle in the + * haystack string,<br> or <strong>false</strong> if needle is not found + * + * @phpstan-return false|0|positive-int + */ + public static function stripos( + string $haystack, + string $needle, + int $offset = 0, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000 && $needle === '') { + return 0; + } + + return false; + } + + if ($needle === '' && \PHP_VERSION_ID < 80000) { + return false; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $haystack = self::clean($haystack); + $needle = self::clean($needle); + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_stripos($haystack, $needle, $offset); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return \mb_stripos($haystack, $needle, $offset, $encoding); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings + && + $offset >= 0 // grapheme_stripos() can't handle negative offset + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_stripos($haystack, $needle, $offset); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($haystack . $needle)) { + return \stripos($haystack, $needle, $offset); + } + + // + // fallback via vanilla php + // + + $haystack = self::strtocasefold($haystack, true, false, $encoding, null, false); + $needle = self::strtocasefold($needle, true, false, $encoding, null, false); + + return self::strpos($haystack, $needle, $offset, $encoding); + } + + /** + * Returns all of haystack starting from and including the first occurrence of needle to the end. + * + * EXAMPLE: <code> + * $str = 'iñtërnâtiônàlizætiøn'; + * $search = 'NÂT'; + * + * UTF8::stristr($str, $search)); // 'nâtiônàlizætiøn' + * UTF8::stristr($str, $search, true)); // 'iñtër' + * </code> + * + * @param string $haystack <p>The input string. Must be valid UTF-8.</p> + * @param string $needle <p>The string to look for. Must be valid UTF-8.</p> + * @param bool $before_needle [optional] <p> + * If <b>TRUE</b>, it returns the part of the + * haystack before the first occurrence of the needle (excluding the needle). + * </p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|string + * <p>A sub-string,<br>or <strong>false</strong> if needle is not found.</p> + */ + public static function stristr( + string $haystack, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000 && $needle === '') { + return ''; + } + + return false; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + if ($needle === '') { + if (\PHP_VERSION_ID >= 80000) { + return $haystack; + } + + return false; + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_stristr($haystack, $needle, $before_needle); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return \mb_stristr($haystack, $needle, $before_needle, $encoding); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::stristr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_stristr()" can't handle other encodings + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_stristr($haystack, $needle, $before_needle); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + if (ASCII::is_ascii($needle . $haystack)) { + return \stristr($haystack, $needle, $before_needle); + } + + \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/usi', $haystack, $match); + + if (!isset($match[1])) { + return false; + } + + if ($before_needle) { + return $match[1]; + } + + return self::substr($haystack, (int) self::strlen($match[1], $encoding), null, $encoding); + } + + /** + * Get the string length, not the byte-length! + * + * INFO: use UTF8::strwidth() for the char-length + * + * EXAMPLE: <code>UTF8::strlen("Iñtërnâtiôn\xE9àlizætiøn")); // 20</code> + * + * @see http://php.net/manual/en/function.mb-strlen.php + * + * @param string $str <p>The string being checked for length.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|int + * <p> + * The number <strong>(int)</strong> of characters in the string $str having character encoding + * $encoding. + * (One multi-byte character counted as +1). + * <br> + * Can return <strong>false</strong>, if e.g. mbstring is not installed and we process invalid + * chars. + * </p> + * + * @phpstan-return false|0|positive-int + */ + public static function strlen( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($str === '') { + return 0; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($clean_utf8) { + // "mb_strlen" and "\iconv_strlen" returns wrong length, + // if invalid characters are found in $str + $str = self::clean($str); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + /** @noinspection PhpUsageOfSilenceOperatorInspection - ignore warnings, it's working anyway */ + return @\mb_strlen($str); + } + + /** @noinspection PhpUsageOfSilenceOperatorInspection - ignore warnings, it's working anyway */ + return @\mb_strlen($str, $encoding); + } + + // + // fallback for binary || ascii only + // + + if ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) { + return \strlen($str); + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + && + self::$SUPPORT['iconv'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via iconv + // + + if (self::$SUPPORT['iconv'] === true) { + $return_tmp = \iconv_strlen($str, $encoding); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback via intl + // + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_strlen()" can't handle other encodings + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_strlen($str); + /* @phpstan-ignore-next-line | "grapheme_strlen" will maybe return "null" for empty-strings and "false" on error */ + if ($return_tmp !== false && $return_tmp !== null) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($str)) { + return \strlen($str); + } + + // + // fallback via vanilla php + // + + \preg_match_all('/./us', $str, $parts); + + $return_tmp = \count($parts[0]); + if ($return_tmp === 0) { + return false; + } + + return $return_tmp; + } + + /** + * Get string length in byte. + * + * @param string $str + * + * @psalm-pure + * + * @return int + * + * @phpstan-return 0|positive-int + */ + public static function strlen_in_byte(string $str): int + { + if ($str === '') { + return 0; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_strlen($str, 'CP850'); // 8-BIT + } + + return \strlen($str); + } + + /** + * Case-insensitive string comparisons using a "natural order" algorithm. + * + * INFO: natural order version of UTF8::strcasecmp() + * + * EXAMPLES: <code> + * UTF8::strnatcasecmp('2', '10Hello WORLD 中文空白!'); // -1 + * UTF8::strcasecmp('2Hello world 中文空白!', '10Hello WORLD 中文空白!'); // 1 + * + * UTF8::strnatcasecmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // 1 + * UTF8::strcasecmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // -1 + * </code> + * + * @param string $str1 <p>The first string.</p> + * @param string $str2 <p>The second string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if str1 is less than str2<br> + * <strong>&gt; 0</strong> if str1 is greater than str2<br> + * <strong>0</strong> if they are equal + */ + public static function strnatcasecmp(string $str1, string $str2, string $encoding = 'UTF-8'): int + { + return self::strnatcmp( + self::strtocasefold($str1, true, false, $encoding, null, false), + self::strtocasefold($str2, true, false, $encoding, null, false) + ); + } + + /** + * String comparisons using a "natural order" algorithm + * + * INFO: natural order version of UTF8::strcmp() + * + * EXAMPLES: <code> + * UTF8::strnatcmp('2Hello world 中文空白!', '10Hello WORLD 中文空白!'); // -1 + * UTF8::strcmp('2Hello world 中文空白!', '10Hello WORLD 中文空白!'); // 1 + * + * UTF8::strnatcmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // 1 + * UTF8::strcmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // -1 + * </code> + * + * @see http://php.net/manual/en/function.strnatcmp.php + * + * @param string $str1 <p>The first string.</p> + * @param string $str2 <p>The second string.</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if str1 is less than str2;<br> + * <strong>&gt; 0</strong> if str1 is greater than str2;<br> + * <strong>0</strong> if they are equal + */ + public static function strnatcmp(string $str1, string $str2): int + { + if ($str1 === $str2) { + return 0; + } + + return \strnatcmp( + (string) self::strtonatfold($str1), + (string) self::strtonatfold($str2) + ); + } + + /** + * Case-insensitive string comparison of the first n characters. + * + * EXAMPLE: <code> + * UTF8::strcasecmp("iñtërnâtiôn\nàlizætiøn321", "iñtërnâtiôn\nàlizætiøn123", 5); // 0 + * </code> + * + * @see http://php.net/manual/en/function.strncasecmp.php + * + * @param string $str1 <p>The first string.</p> + * @param string $str2 <p>The second string.</p> + * @param int $len <p>The length of strings to be used in the comparison.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if <i>str1</i> is less than <i>str2</i>;<br> + * <strong>&gt; 0</strong> if <i>str1</i> is greater than <i>str2</i>;<br> + * <strong>0</strong> if they are equal + */ + public static function strncasecmp( + string $str1, + string $str2, + int $len, + string $encoding = 'UTF-8' + ): int { + return self::strncmp( + self::strtocasefold($str1, true, false, $encoding, null, false), + self::strtocasefold($str2, true, false, $encoding, null, false), + $len + ); + } + + /** + * String comparison of the first n characters. + * + * EXAMPLE: <code> + * UTF8::strncmp("Iñtërnâtiôn\nàlizætiøn321", "Iñtërnâtiôn\nàlizætiøn123", 5); // 0 + * </code> + * + * @see http://php.net/manual/en/function.strncmp.php + * + * @param string $str1 <p>The first string.</p> + * @param string $str2 <p>The second string.</p> + * @param int $len <p>Number of characters to use in the comparison.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if <i>str1</i> is less than <i>str2</i>;<br> + * <strong>&gt; 0</strong> if <i>str1</i> is greater than <i>str2</i>;<br> + * <strong>0</strong> if they are equal + */ + public static function strncmp( + string $str1, + string $str2, + int $len, + string $encoding = 'UTF-8' + ): int { + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($encoding === 'UTF-8') { + $str1 = (string) \mb_substr($str1, 0, $len); + $str2 = (string) \mb_substr($str2, 0, $len); + } else { + $str1 = (string) self::substr($str1, 0, $len, $encoding); + $str2 = (string) self::substr($str2, 0, $len, $encoding); + } + + return self::strcmp($str1, $str2); + } + + /** + * Search a string for any of a set of characters. + * + * EXAMPLE: <code>UTF8::strpbrk('-中文空白-', '白'); // '白-'</code> + * + * @see http://php.net/manual/en/function.strpbrk.php + * + * @param string $haystack <p>The string where char_list is looked for.</p> + * @param string $char_list <p>This parameter is case-sensitive.</p> + * + * @psalm-pure + * + * @return false|string + * <p>The string starting from the character found, or false if it is not found.</p> + */ + public static function strpbrk(string $haystack, string $char_list) + { + if ($haystack === '' || $char_list === '') { + return false; + } + + if (\preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) { + return \substr($haystack, (int) \strpos($haystack, $m[0])); + } + + return false; + } + + /** + * Find the position of the first occurrence of a substring in a string. + * + * INFO: use UTF8::strpos_in_byte() for the byte-length + * + * EXAMPLE: <code>UTF8::strpos('ABC-ÖÄÜ-中文空白-中文空白', '中'); // 8</code> + * + * @see http://php.net/manual/en/function.mb-strpos.php + * + * @param string $haystack <p>The string from which to get the position of the first occurrence of needle.</p> + * @param int|string $needle <p>The string to find in haystack.<br>Or a code point as int.</p> + * @param int $offset [optional] <p>The search offset. If it is not specified, 0 is used.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|int + * The <strong>(int)</strong> numeric position of the first occurrence of needle in the haystack + * string.<br> If needle is not found it returns false. + * + * @phpstan-return false|0|positive-int + */ + public static function strpos( + string $haystack, + $needle, + int $offset = 0, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000) { + if ($needle === '') { + return 0; + } + } else { + return false; + } + } + + // iconv and mbstring do not support integer $needle + if ((int) $needle === $needle) { + $needle = (string) self::chr($needle); + } + $needle = (string) $needle; + + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000 && $needle === '') { + return 0; + } + + return false; + } + + if ($needle === '' && \PHP_VERSION_ID < 80000) { + return false; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + /** @noinspection PhpUsageOfSilenceOperatorInspection - Offset not contained in string */ + return @\mb_strpos($haystack, $needle, $offset); + } + + /** @noinspection PhpUsageOfSilenceOperatorInspection - Offset not contained in string */ + return @\mb_strpos($haystack, $needle, $offset, $encoding); + } + + // + // fallback for binary || ascii only + // + if ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) { + return \strpos($haystack, $needle, $offset); + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['iconv'] === false + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via intl + // + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_strpos()" can't handle other encodings + && + $offset >= 0 // grapheme_strpos() can't handle negative offset + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_strpos($haystack, $needle, $offset); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback via iconv + // + + if ( + $offset >= 0 // iconv_strpos() can't handle negative offset + && + self::$SUPPORT['iconv'] === true + ) { + // ignore invalid negative offset to keep compatibility + // with php < 5.5.35, < 5.6.21, < 7.0.6 + $return_tmp = \iconv_strpos($haystack, $needle, $offset > 0 ? $offset : 0, $encoding); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($haystack . $needle)) { + /** @noinspection PhpUsageOfSilenceOperatorInspection - Offset not contained in string */ + return @\strpos($haystack, $needle, $offset); + } + + // + // fallback via vanilla php + // + + $haystack_tmp = self::substr($haystack, $offset, null, $encoding); + if ($haystack_tmp === false) { + $haystack_tmp = ''; + } + $haystack = (string) $haystack_tmp; + + if ($offset < 0) { + $offset = 0; + } + + $pos = \strpos($haystack, $needle); + if ($pos === false) { + return false; + } + + if ($pos) { + return $offset + (int) self::strlen(\substr($haystack, 0, $pos), $encoding); + } + + return $offset + 0; + } + + /** + * Find the position of the first occurrence of a substring in a string. + * + * @param string $haystack <p> + * The string being checked. + * </p> + * @param string $needle <p> + * The position counted from the beginning of haystack. + * </p> + * @param int $offset [optional] <p> + * The search offset. If it is not specified, 0 is used. + * </p> + * + * @psalm-pure + * + * @return false|int + * <p>The numeric position of the first occurrence of needle in the + * haystack string. If needle is not found, it returns false.</p> + * + * @phpstan-return false|0|positive-int + */ + public static function strpos_in_byte(string $haystack, string $needle, int $offset = 0) + { + if ($haystack === '' || $needle === '') { + return false; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_strpos($haystack, $needle, $offset, 'CP850'); // 8-BIT + } + + return \strpos($haystack, $needle, $offset); + } + + /** + * Find the position of the first occurrence of a substring in a string, case-insensitive. + * + * @param string $haystack <p> + * The string being checked. + * </p> + * @param string $needle <p> + * The position counted from the beginning of haystack. + * </p> + * @param int $offset [optional] <p> + * The search offset. If it is not specified, 0 is used. + * </p> + * + * @psalm-pure + * + * @return false|int + * <p>The numeric position of the first occurrence of needle in the + * haystack string. If needle is not found, it returns false.</p> + * + * @phpstan-return false|0|positive-int + */ + public static function stripos_in_byte(string $haystack, string $needle, int $offset = 0) + { + if ($haystack === '' || $needle === '') { + return false; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_stripos($haystack, $needle, $offset, 'CP850'); // 8-BIT + } + + return \stripos($haystack, $needle, $offset); + } + + /** + * Find the last occurrence of a character in a string within another. + * + * EXAMPLE: <code>UTF8::strrchr('κόσμεκόσμε-äöü', 'κόσμε'); // 'κόσμε-äöü'</code> + * + * @see http://php.net/manual/en/function.mb-strrchr.php + * + * @param string $haystack <p>The string from which to get the last occurrence of needle.</p> + * @param string $needle <p>The string to find in haystack</p> + * @param bool $before_needle [optional] <p> + * Determines which portion of haystack + * this function returns. + * If set to true, it returns all of haystack + * from the beginning to the last occurrence of needle. + * If set to false, it returns all of haystack + * from the last occurrence of needle to the end, + * </p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|string + * <p>The portion of haystack or false if needle is not found.</p> + */ + public static function strrchr( + string $haystack, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '' || $needle === '') { + return false; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_strrchr($haystack, $needle, $before_needle); + } + + return \mb_strrchr($haystack, $needle, $before_needle, $encoding); + } + + // + // fallback for binary || ascii only + // + + if ( + !$before_needle + && + ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) + ) { + return \strrchr($haystack, $needle); + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strrchr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via iconv + // + + if (self::$SUPPORT['iconv'] === true) { + $needle_tmp = self::substr($needle, 0, 1, $encoding); + if ($needle_tmp === false) { + return false; + } + $needle = $needle_tmp; + + $pos = \iconv_strrpos($haystack, $needle, $encoding); + if ($pos === false) { + return false; + } + + if ($before_needle) { + return self::substr($haystack, 0, $pos, $encoding); + } + + return self::substr($haystack, $pos, null, $encoding); + } + + // + // fallback via vanilla php + // + + $needle_tmp = self::substr($needle, 0, 1, $encoding); + if ($needle_tmp === false) { + return false; + } + $needle = $needle_tmp; + + $pos = self::strrpos($haystack, $needle, 0, $encoding); + if ($pos === false) { + return false; + } + + if ($before_needle) { + return self::substr($haystack, 0, $pos, $encoding); + } + + return self::substr($haystack, $pos, null, $encoding); + } + + /** + * Reverses characters order in the string. + * + * EXAMPLE: <code>UTF8::strrev('κ-öäü'); // 'üäö-κ'</code> + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>The string with characters in the reverse sequence.</p> + */ + public static function strrev(string $str, string $encoding = 'UTF-8'): string + { + if ($str === '') { + return ''; + } + + // init + $reversed = ''; + + $str = self::emoji_encode($str, true); + + if ($encoding === 'UTF-8') { + if (self::$SUPPORT['intl'] === true) { + // try "grapheme" first: https://stackoverflow.com/questions/17496493/strrev-dosent-support-utf-8 + $i = (int) \grapheme_strlen($str); + while ($i--) { + $reversed_tmp = \grapheme_substr($str, $i, 1); + if ($reversed_tmp !== false) { + $reversed .= $reversed_tmp; + } + } + } else { + $i = (int) \mb_strlen($str); + while ($i--) { + $reversed_tmp = \mb_substr($str, $i, 1); + if ($reversed_tmp !== false) { /* @phpstan-ignore-line | old polyfill will return false, or? */ + $reversed .= $reversed_tmp; + } + } + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $i = (int) self::strlen($str, $encoding); + while ($i--) { + $reversed_tmp = self::substr($str, $i, 1, $encoding); + if ($reversed_tmp !== false) { + $reversed .= $reversed_tmp; + } + } + } + + return self::emoji_decode($reversed, true); + } + + /** + * Find the last occurrence of a character in a string within another, case-insensitive. + * + * EXAMPLE: <code>UTF8::strrichr('Aκόσμεκόσμε-äöü', 'aκόσμε'); // 'Aκόσμεκόσμε-äöü'</code> + * + * @see http://php.net/manual/en/function.mb-strrichr.php + * + * @param string $haystack <p>The string from which to get the last occurrence of needle.</p> + * @param string $needle <p>The string to find in haystack.</p> + * @param bool $before_needle [optional] <p> + * Determines which portion of haystack + * this function returns. + * If set to true, it returns all of haystack + * from the beginning to the last occurrence of needle. + * If set to false, it returns all of haystack + * from the last occurrence of needle to the end, + * </p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|string + * <p>The portion of haystack or<br>false if needle is not found.</p> + */ + public static function strrichr( + string $haystack, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '' || $needle === '') { + return false; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_strrichr($haystack, $needle, $before_needle); + } + + return \mb_strrichr($haystack, $needle, $before_needle, $encoding); + } + + // + // fallback via vanilla php + // + + $needle_tmp = self::substr($needle, 0, 1, $encoding); + if ($needle_tmp === false) { + return false; + } + $needle = $needle_tmp; + + $pos = self::strripos($haystack, $needle, 0, $encoding); + if ($pos === false) { + return false; + } + + if ($before_needle) { + return self::substr($haystack, 0, $pos, $encoding); + } + + return self::substr($haystack, $pos, null, $encoding); + } + + /** + * Find the position of the last occurrence of a substring in a string, case-insensitive. + * + * EXAMPLE: <code>UTF8::strripos('ABC-ÖÄÜ-中文空白-中文空白', '中'); // 13</code> + * + * @param string $haystack <p>The string to look in.</p> + * @param int|string $needle <p>The string to look for.</p> + * @param int $offset [optional] <p>Number of characters to ignore in the beginning or end.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|int + * <p>The <strong>(int)</strong> numeric position of the last occurrence of needle in the haystack + * string.<br>If needle is not found, it returns false.</p> + */ + public static function strripos( + string $haystack, + $needle, + int $offset = 0, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000) { + if ($needle === '') { + return 0; + } + } else { + return false; + } + } + + // iconv and mbstring do not support integer $needle + if ((int) $needle === $needle && $needle >= 0) { + $needle = (string) self::chr($needle); + } + $needle = (string) $needle; + + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000 && $needle === '') { + return 0; + } + + return false; + } + + if ($needle === '' && \PHP_VERSION_ID < 80000) { + return false; + } + + if ($clean_utf8) { + // mb_strripos() && iconv_strripos() is not tolerant to invalid characters + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // + // fallback via mbstrig + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_strripos($haystack, $needle, $offset); + } + + return \mb_strripos($haystack, $needle, $offset, $encoding); + } + + // + // fallback for binary || ascii only + // + + if ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) { + return \strripos($haystack, $needle, $offset); + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strripos() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via intl + // + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_strripos()" can't handle other encodings + && + $offset >= 0 // grapheme_strripos() can't handle negative offset + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_strripos($haystack, $needle, $offset); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($haystack . $needle)) { + return \strripos($haystack, $needle, $offset); + } + + // + // fallback via vanilla php + // + + $haystack = self::strtocasefold($haystack, true, false, $encoding); + $needle = self::strtocasefold($needle, true, false, $encoding); + + return self::strrpos($haystack, $needle, $offset, $encoding, $clean_utf8); + } + + /** + * Finds position of last occurrence of a string within another, case-insensitive. + * + * @param string $haystack <p> + * The string from which to get the position of the last occurrence + * of needle. + * </p> + * @param string $needle <p> + * The string to find in haystack. + * </p> + * @param int $offset [optional] <p> + * The position in haystack + * to start searching. + * </p> + * + * @psalm-pure + * + * @return false|int + * <p>eturn the numeric position of the last occurrence of needle in the + * haystack string, or false if needle is not found.</p> + */ + public static function strripos_in_byte(string $haystack, string $needle, int $offset = 0) + { + if ($haystack === '' || $needle === '') { + return false; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_strripos($haystack, $needle, $offset, 'CP850'); // 8-BIT + } + + return \strripos($haystack, $needle, $offset); + } + + /** + * Find the position of the last occurrence of a substring in a string. + * + * EXAMPLE: <code>UTF8::strrpos('ABC-ÖÄÜ-中文空白-中文空白', '中'); // 13</code> + * + * @see http://php.net/manual/en/function.mb-strrpos.php + * + * @param string $haystack <p>The string being checked, for the last occurrence of needle</p> + * @param int|string $needle <p>The string to find in haystack.<br>Or a code point as int.</p> + * @param int $offset [optional] <p>May be specified to begin searching an arbitrary number of characters + * into the string. Negative values will stop searching at an arbitrary point prior to + * the end of the string. + * </p> + * @param string $encoding [optional] <p>Set the charset.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|int + * <p>The <strong>(int)</strong> numeric position of the last occurrence of needle in the haystack + * string.<br>If needle is not found, it returns false.</p> + */ + public static function strrpos( + string $haystack, + $needle, + int $offset = 0, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000) { + if ($needle === '') { + return 0; + } + } else { + return false; + } + } + + // iconv and mbstring do not support integer $needle + if ((int) $needle === $needle && $needle >= 0) { + $needle = (string) self::chr($needle); + } + $needle = (string) $needle; + + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000 && $needle === '') { + return 0; + } + + return false; + } + + if ($needle === '' && \PHP_VERSION_ID < 80000) { + return false; + } + + if ($clean_utf8) { + // mb_strrpos && iconv_strrpos is not tolerant to invalid characters + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_strrpos($haystack, $needle, $offset); + } + + return \mb_strrpos($haystack, $needle, $offset, $encoding); + } + + // + // fallback for binary || ascii only + // + + if ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) { + return \strrpos($haystack, $needle, $offset); + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strrpos() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via intl + // + + if ( + $offset >= 0 // grapheme_strrpos() can't handle negative offset + && + $encoding === 'UTF-8' // INFO: "grapheme_strrpos()" can't handle other encodings + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_strrpos($haystack, $needle, $offset); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($haystack . $needle)) { + return \strrpos($haystack, $needle, $offset); + } + + // + // fallback via vanilla php + // + + $haystack_tmp = null; + if ($offset > 0) { + $haystack_tmp = self::substr($haystack, $offset); + } elseif ($offset < 0) { + $haystack_tmp = self::substr($haystack, 0, $offset); + $offset = 0; + } + + if ($haystack_tmp !== null) { + if ($haystack_tmp === false) { + $haystack_tmp = ''; + } + $haystack = (string) $haystack_tmp; + } + + $pos = \strrpos($haystack, $needle); + if ($pos === false) { + return false; + } + + /** @var false|string $str_tmp - needed for PhpStan (stubs error) */ + $str_tmp = \substr($haystack, 0, $pos); + if ($str_tmp === false) { + return false; + } + + return $offset + (int) self::strlen($str_tmp); + } + + /** + * Find the position of the last occurrence of a substring in a string. + * + * @param string $haystack <p> + * The string being checked, for the last occurrence + * of needle. + * </p> + * @param string $needle <p> + * The string to find in haystack. + * </p> + * @param int $offset [optional] <p>May be specified to begin searching an arbitrary number of characters into + * the string. Negative values will stop searching at an arbitrary point + * prior to the end of the string. + * </p> + * + * @psalm-pure + * + * @return false|int + * <p>The numeric position of the last occurrence of needle in the + * haystack string. If needle is not found, it returns false.</p> + */ + public static function strrpos_in_byte(string $haystack, string $needle, int $offset = 0) + { + if ($haystack === '' || $needle === '') { + return false; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_strrpos($haystack, $needle, $offset, 'CP850'); // 8-BIT + } + + return \strrpos($haystack, $needle, $offset); + } + + /** + * Finds the length of the initial segment of a string consisting entirely of characters contained within a given + * mask. + * + * EXAMPLE: <code>UTF8::strspn('iñtërnâtiônàlizætiøn', 'itñ'); // '3'</code> + * + * @param string $str <p>The input string.</p> + * @param string $mask <p>The mask of chars</p> + * @param int $offset [optional] + * @param int|null $length [optional] + * @param string $encoding [optional] <p>Set the charset.</p> + * + * @psalm-pure + * + * @return false|int + */ + public static function strspn( + string $str, + string $mask, + int $offset = 0, + int $length = null, + string $encoding = 'UTF-8' + ) { + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($offset || $length !== null) { + if ($encoding === 'UTF-8') { + if ($length === null) { + $str = (string) \mb_substr($str, $offset); + } else { + $str = (string) \mb_substr($str, $offset, $length); + } + } else { + $str = (string) self::substr($str, $offset, $length, $encoding); + } + } + + if ($str === '' || $mask === '') { + return 0; + } + + $matches = []; + + return \preg_match('/^' . self::rxClass($mask) . '+/u', $str, $matches) ? (int) self::strlen($matches[0], $encoding) : 0; + } + + /** + * Returns part of haystack string from the first occurrence of needle to the end of haystack. + * + * EXAMPLE: <code> + * $str = 'iñtërnâtiônàlizætiøn'; + * $search = 'nât'; + * + * UTF8::strstr($str, $search)); // 'nâtiônàlizætiøn' + * UTF8::strstr($str, $search, true)); // 'iñtër' + * </code> + * + * @param string $haystack <p>The input string. Must be valid UTF-8.</p> + * @param string $needle <p>The string to look for. Must be valid UTF-8.</p> + * @param bool $before_needle [optional] <p> + * If <b>TRUE</b>, strstr() returns the part of the + * haystack before the first occurrence of the needle (excluding the needle). + * </p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|string + * <p>A sub-string,<br>or <strong>false</strong> if needle is not found.</p> + */ + public static function strstr( + string $haystack, + string $needle, + bool $before_needle = false, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($haystack === '') { + if (\PHP_VERSION_ID >= 80000 && $needle === '') { + return ''; + } + + return false; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + if ($needle === '') { + if (\PHP_VERSION_ID >= 80000) { + return $haystack; + } + + return false; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_strstr($haystack, $needle, $before_needle); + } + + return \mb_strstr($haystack, $needle, $before_needle, $encoding); + } + + // + // fallback for binary || ascii only + // + + if ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) { + return \strstr($haystack, $needle, $before_needle); + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strstr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via intl + // + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_strstr()" can't handle other encodings + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_strstr($haystack, $needle, $before_needle); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($haystack . $needle)) { + return \strstr($haystack, $needle, $before_needle); + } + + // + // fallback via vanilla php + // + + \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/us', $haystack, $match); + + if (!isset($match[1])) { + return false; + } + + if ($before_needle) { + return $match[1]; + } + + return self::substr($haystack, (int) self::strlen($match[1])); + } + + /** + * Finds first occurrence of a string within another. + * + * @param string $haystack <p> + * The string from which to get the first occurrence + * of needle. + * </p> + * @param string $needle <p> + * The string to find in haystack. + * </p> + * @param bool $before_needle [optional] <p> + * Determines which portion of haystack + * this function returns. + * If set to true, it returns all of haystack + * from the beginning to the first occurrence of needle. + * If set to false, it returns all of haystack + * from the first occurrence of needle to the end, + * </p> + * + * @psalm-pure + * + * @return false|string + * <p>The portion of haystack, + * or false if needle is not found.</p> + */ + public static function strstr_in_byte( + string $haystack, + string $needle, + bool $before_needle = false + ) { + if ($haystack === '' || $needle === '') { + return false; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_strstr($haystack, $needle, $before_needle, 'CP850'); // 8-BIT + } + + return \strstr($haystack, $needle, $before_needle); + } + + /** + * Unicode transformation for case-less matching. + * + * EXAMPLE: <code>UTF8::strtocasefold('ǰ◌̱'); // 'ǰ◌̱'</code> + * + * @see http://unicode.org/reports/tr21/tr21-5.html + * + * @param string $str <p>The input string.</p> + * @param bool $full [optional] <p> + * <b>true</b>, replace full case folding chars (default)<br> + * <b>false</b>, use only limited static array [UTF8::$COMMON_CASE_FOLD] + * </p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string $encoding [optional] <p>Set the charset.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, tr</p> + * @param bool $lower [optional] <p>Use lowercase string, otherwise use uppercase string. PS: uppercase + * is for some languages better ...</p> + * + * @psalm-pure + * + * @return string + */ + public static function strtocasefold( + string $str, + bool $full = true, + bool $clean_utf8 = false, + string $encoding = 'UTF-8', + string $lang = null, + bool $lower = true + ): string { + if ($str === '') { + return ''; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + $str = self::fixStrCaseHelper($str, $lower, $full); + + if ($lang === null && $encoding === 'UTF-8') { + if ($lower) { + return \mb_strtolower($str); + } + + return \mb_strtoupper($str); + } + + if ($lower) { + return self::strtolower($str, $encoding, false, $lang); + } + + return self::strtoupper($str, $encoding, false, $lang); + } + + /** + * Make a string lowercase. + * + * EXAMPLE: <code>UTF8::strtolower('DÉJÀ Σσς Iıİi'); // 'déjà σσς iıii'</code> + * + * @see http://php.net/manual/en/function.mb-strtolower.php + * + * @param string $str <p>The string being lowercased.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + * <p>String with all alphabetic characters converted to lowercase.</p> + */ + public static function strtolower( + $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + // init + $str = (string) $str; + + if ($str === '') { + return ''; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + // hack for old php version or for the polyfill ... + if ($try_to_keep_the_string_length) { + $str = self::fixStrCaseHelper($str, true); + } + + if ($lang === null && $encoding === 'UTF-8') { + return \mb_strtolower($str); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ($lang !== null) { + if (self::$SUPPORT['intl'] === true) { + if (self::$INTL_TRANSLITERATOR_LIST === null) { + self::$INTL_TRANSLITERATOR_LIST = self::getData('transliterator_list'); + } + + $language_code = $lang . '-Lower'; + if (!\in_array($language_code, self::$INTL_TRANSLITERATOR_LIST, true)) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strtolower() cannot handle special language: ' . $lang . ' | supported: ' . \print_r(self::$INTL_TRANSLITERATOR_LIST, true), \E_USER_WARNING); + + $language_code = 'Any-Lower'; + } + + return (string) \transliterator_transliterate($language_code, $str); + } + + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strtolower() without intl cannot handle the "lang" parameter: ' . $lang, \E_USER_WARNING); + } + + // always fallback via symfony polyfill + return \mb_strtolower($str, $encoding); + } + + /** + * Make a string uppercase. + * + * EXAMPLE: <code>UTF8::strtoupper('Déjà Σσς Iıİi'); // 'DÉJÀ ΣΣΣ IIİI'</code> + * + * @see http://php.net/manual/en/function.mb-strtoupper.php + * + * @param string $str <p>The string being uppercased.</p> + * @param string $encoding [optional] <p>Set the charset.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + * <p>String with all alphabetic characters converted to uppercase.</p> + */ + public static function strtoupper( + $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + // init + $str = (string) $str; + + if ($str === '') { + return ''; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + // hack for old php version or for the polyfill ... + if ($try_to_keep_the_string_length) { + $str = self::fixStrCaseHelper($str); + } + + if ($lang === null && $encoding === 'UTF-8') { + return \mb_strtoupper($str); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ($lang !== null) { + if (self::$SUPPORT['intl'] === true) { + if (self::$INTL_TRANSLITERATOR_LIST === null) { + self::$INTL_TRANSLITERATOR_LIST = self::getData('transliterator_list'); + } + + $language_code = $lang . '-Upper'; + if (!\in_array($language_code, self::$INTL_TRANSLITERATOR_LIST, true)) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strtoupper() without intl for special language: ' . $lang, \E_USER_WARNING); + + $language_code = 'Any-Upper'; + } + + return (string) \transliterator_transliterate($language_code, $str); + } + + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::strtolower() without intl cannot handle the "lang"-parameter: ' . $lang, \E_USER_WARNING); + } + + // always fallback via symfony polyfill + return \mb_strtoupper($str, $encoding); + } + + /** + * Translate characters or replace sub-strings. + * + * EXAMPLE: + * <code> + * $array = [ + * 'Hello' => '○●◎', + * '中文空白' => 'earth', + * ]; + * UTF8::strtr('Hello 中文空白', $array); // '○●◎ earth' + * </code> + * + * @see http://php.net/manual/en/function.strtr.php + * + * @param string $str <p>The string being translated.</p> + * @param string|string[] $from <p>The string replacing from.</p> + * @param string|string[] $to [optional] <p>The string being translated to to.</p> + * + * @psalm-pure + * + * @return string + * <p>This function returns a copy of str, translating all occurrences of each character in "from" + * to the corresponding character in "to".</p> + */ + public static function strtr(string $str, $from, $to = ''): string + { + if ($str === '') { + return ''; + } + + if ($from === $to) { + return $str; + } + + if ($to !== '') { + if (!\is_array($from)) { + $from = self::str_split($from); + } + + if (!\is_array($to)) { + $to = self::str_split($to); + } + + $count_from = \count($from); + $count_to = \count($to); + + if ($count_from !== $count_to) { + if ($count_from > $count_to) { + $from = \array_slice($from, 0, $count_to); + } elseif ($count_from < $count_to) { + $to = \array_slice($to, 0, $count_from); + } + } + + try { + $from = \array_combine($from, $to); + } catch (\Error $e) { + // PHP >= 8.0 : array_combine() will now throw a ValueError if the number of elements for each array is not equal; previously this function returned false instead. + $from = false; + } + if ($from === false) { + throw new \InvalidArgumentException('The number of elements for each array isn\'t equal or the arrays are empty: (from: ' . \print_r($from, true) . ' | to: ' . \print_r($to, true) . ')'); + } + } + + if (\is_string($from)) { + return \str_replace($from, $to, $str); + } + + return \strtr($str, $from); + } + + /** + * Return the width of a string. + * + * INFO: use UTF8::strlen() for the byte-length + * + * EXAMPLE: <code>UTF8::strwidth("Iñtërnâtiôn\xE9àlizætiøn")); // 21</code> + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return int + * + * @phpstan-return 0|positive-int + */ + public static function strwidth( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ): int { + if ($str === '') { + return 0; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($clean_utf8) { + // iconv and mbstring are not tolerant to invalid encoding + // further, their behaviour is inconsistent with that of PHP's substr + $str = self::clean($str); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_strwidth($str); + } + + return \mb_strwidth($str, $encoding); + } + + // + // fallback via vanilla php + // + + if ($encoding !== 'UTF-8') { + $str = self::encode('UTF-8', $str, false, $encoding); + } + + $wide = 0; + $str = (string) \preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $str, -1, $wide); + + /* @phpstan-ignore-next-line | should return 0|positive-int */ + return ($wide << 1) + (int) self::strlen($str); + } + + /** + * Get part of a string. + * + * EXAMPLE: <code>UTF8::substr('中文空白', 1, 2); // '文空'</code> + * + * @see http://php.net/manual/en/function.mb-substr.php + * + * @param string $str <p>The string being checked.</p> + * @param int $offset <p>The first position used in str.</p> + * @param int|null $length [optional] <p>The maximum length of the returned string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|string + * The portion of <i>str</i> specified by the <i>offset</i> and + * <i>length</i> parameters.</p><p>If <i>str</i> is shorter than <i>offset</i> + * characters long, <b>FALSE</b> will be returned. + */ + public static function substr( + string $str, + int $offset = 0, + int $length = null, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + // empty string + if ($str === '' || $length === 0) { + return ''; + } + + if ($clean_utf8) { + // iconv and mbstring are not tolerant to invalid encoding + // further, their behaviour is inconsistent with that of PHP's substr + $str = self::clean($str); + } + + // whole string + if (!$offset && $length === null) { + return $str; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + // + // fallback via mbstring + // + + if (self::$SUPPORT['mbstring'] === true && $encoding === 'UTF-8') { + if ($length === null) { + return \mb_substr($str, $offset); + } + + return \mb_substr($str, $offset, $length); + } + + // + // fallback for binary || ascii only + // + + if ( + $encoding === 'CP850' + || + $encoding === 'ASCII' + ) { + if ($length === null) { + return \substr($str, $offset); + } + + return \substr($str, $offset, $length); + } + + // otherwise we need the string-length + $str_length = 0; + if ( + $offset + || + $length === null /* @phpstan-ignore-line | can be NULL here?! */ + ) { + $str_length = self::strlen($str, $encoding); + } + + // e.g.: invalid chars + mbstring not installed + if ($str_length === false) { + return false; + } + + // empty string + if ($offset === $str_length && !$length) { + return ''; + } + + // impossible + if ($offset && $offset > $str_length) { + return ''; + } + + $length = $length ?? $str_length; + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::substr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + // + // fallback via intl + // + + if ( + $encoding === 'UTF-8' // INFO: "grapheme_substr()" can't handle other encodings + && + $offset >= 0 // grapheme_substr() can't handle negative offset + && + self::$SUPPORT['intl'] === true + ) { + $return_tmp = \grapheme_substr($str, $offset, $length); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback via iconv + // + + if ( + $length >= 0 // "iconv_substr()" can't handle negative length + && + self::$SUPPORT['iconv'] === true + ) { + $return_tmp = \iconv_substr($str, $offset, $length); + if ($return_tmp !== false) { + return $return_tmp; + } + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($str)) { + return \substr($str, $offset, $length); + } + + // + // fallback via vanilla php + // + + // split to array, and remove invalid characters + // && + // extract relevant part, and join to make sting again + return \implode('', \array_slice(self::str_split($str), $offset, $length)); + } + + /** + * Binary-safe comparison of two strings from an offset, up to a length of characters. + * + * EXAMPLE: <code> + * UTF8::substr_compare("○●◎\r", '●◎', 0, 2); // -1 + * UTF8::substr_compare("○●◎\r", '◎●', 1, 2); // 1 + * UTF8::substr_compare("○●◎\r", '●◎', 1, 2); // 0 + * </code> + * + * @param string $str1 <p>The main string being compared.</p> + * @param string $str2 <p>The secondary string being compared.</p> + * @param int $offset [optional] <p>The start position for the comparison. If negative, it starts + * counting from the end of the string.</p> + * @param int|null $length [optional] <p>The length of the comparison. The default value is the largest + * of the length of the str compared to the length of main_str less the + * offset.</p> + * @param bool $case_insensitivity [optional] <p>If case_insensitivity is TRUE, comparison is case + * insensitive.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * <strong>&lt; 0</strong> if str1 is less than str2;<br> + * <strong>&gt; 0</strong> if str1 is greater than str2,<br> + * <strong>0</strong> if they are equal + */ + public static function substr_compare( + string $str1, + string $str2, + int $offset = 0, + int $length = null, + bool $case_insensitivity = false, + string $encoding = 'UTF-8' + ): int { + if ( + $offset !== 0 + || + $length !== null + ) { + if ($encoding === 'UTF-8') { + if ($length === null) { + $str1 = (string) \mb_substr($str1, $offset); + } else { + $str1 = (string) \mb_substr($str1, $offset, $length); + } + $str2 = (string) \mb_substr($str2, 0, (int) self::strlen($str1)); + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $str1 = (string) self::substr($str1, $offset, $length, $encoding); + $str2 = (string) self::substr($str2, 0, (int) self::strlen($str1), $encoding); + } + } + + if ($case_insensitivity) { + return self::strcasecmp($str1, $str2, $encoding); + } + + return self::strcmp($str1, $str2); + } + + /** + * Count the number of substring occurrences. + * + * EXAMPLE: <code>UTF8::substr_count('中文空白', '文空', 1, 2); // 1</code> + * + * @see http://php.net/manual/en/function.substr-count.php + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * @param int $offset [optional] <p>The offset where to start counting.</p> + * @param int|null $length [optional] <p> + * The maximum length after the specified offset to search for the + * substring. It outputs a warning if the offset plus the length is + * greater than the haystack length. + * </p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return false|int + * <p>This functions returns an integer or false if there isn't a string.</p> + */ + public static function substr_count( + string $haystack, + string $needle, + int $offset = 0, + int $length = null, + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ) { + if ($needle === '') { + return false; + } + + if ($haystack === '' || $length === 0) { + return 0; + } + + if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $needle = self::clean($needle); + $haystack = self::clean($haystack); + } + + if ($offset || $length > 0) { + if ($length === null) { + $length_tmp = self::strlen($haystack, $encoding); + if ($length_tmp === false) { + return false; + } + $length = $length_tmp; + } + + if ($encoding === 'UTF-8') { + $haystack = (string) \mb_substr($haystack, $offset, $length); + } else { + $haystack = (string) \mb_substr($haystack, $offset, $length, $encoding); + } + } + + if ( + $encoding !== 'UTF-8' + && + self::$SUPPORT['mbstring'] === false + ) { + /** + * @psalm-suppress ImpureFunctionCall - this is only a warning + */ + \trigger_error('UTF8::substr_count() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($encoding === 'UTF-8') { + return \mb_substr_count($haystack, $needle); + } + + return \mb_substr_count($haystack, $needle, $encoding); + } + + \preg_match_all('/' . \preg_quote($needle, '/') . '/us', $haystack, $matches, \PREG_SET_ORDER); + + return \count($matches); + } + + /** + * Count the number of substring occurrences. + * + * @param string $haystack <p> + * The string being checked. + * </p> + * @param string $needle <p> + * The string being found. + * </p> + * @param int $offset [optional] <p> + * The offset where to start counting + * </p> + * @param int|null $length [optional] <p> + * The maximum length after the specified offset to search for the + * substring. It outputs a warning if the offset plus the length is + * greater than the haystack length. + * </p> + * + * @psalm-pure + * + * @return false|int + * <p>The number of times the + * needle substring occurs in the + * haystack string.</p> + */ + public static function substr_count_in_byte( + string $haystack, + string $needle, + int $offset = 0, + int $length = null + ) { + if ($haystack === '' || $needle === '') { + return 0; + } + + if ( + ($offset || $length !== null) + && + self::$SUPPORT['mbstring_func_overload'] === true + ) { + if ($length === null) { + $length_tmp = self::strlen($haystack); + if ($length_tmp === false) { + return false; + } + $length = $length_tmp; + } + + if ( + ( + $length !== 0 + && + $offset !== 0 + ) + && + ($length + $offset) <= 0 + && + \PHP_VERSION_ID < 71000 // output from "substr_count()" have changed in PHP 7.1 + ) { + return false; + } + + /** @var false|string $haystack_tmp - needed for PhpStan (stubs error) */ + $haystack_tmp = \substr($haystack, $offset, $length); + if ($haystack_tmp === false) { + $haystack_tmp = ''; + } + $haystack = (string) $haystack_tmp; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_substr_count($haystack, $needle, 'CP850'); // 8-BIT + } + + if ($length === null) { + return \substr_count($haystack, $needle, $offset); + } + + return \substr_count($haystack, $needle, $offset, $length); + } + + /** + * Returns the number of occurrences of $substring in the given string. + * By default, the comparison is case-sensitive, but can be made insensitive + * by setting $case_sensitive to false. + * + * @param string $str <p>The input string.</p> + * @param string $substring <p>The substring to search for.</p> + * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return int + * + * @phpstan-return 0|positive-int + */ + public static function substr_count_simple( + string $str, + string $substring, + bool $case_sensitive = true, + string $encoding = 'UTF-8' + ): int { + if ($str === '' || $substring === '') { + return 0; + } + + if ($encoding === 'UTF-8') { + if ($case_sensitive) { + return (int) \mb_substr_count($str, $substring); + } + + return (int) \mb_substr_count( + \mb_strtoupper($str), + \mb_strtoupper($substring) + ); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + if ($case_sensitive) { + return (int) \mb_substr_count($str, $substring, $encoding); + } + + return (int) \mb_substr_count( + self::strtocasefold($str, true, false, $encoding, null, false), + self::strtocasefold($substring, true, false, $encoding, null, false), + $encoding + ); + } + + /** + * Removes a prefix ($needle) from the beginning of the string ($haystack), case-insensitive. + * + * EXMAPLE: <code> + * UTF8::substr_ileft('ΚόσμεMiddleEnd', 'Κόσμε'); // 'MiddleEnd' + * UTF8::substr_ileft('ΚόσμεMiddleEnd', 'κόσμε'); // 'MiddleEnd' + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return string + * <p>Return the sub-string.</p> + */ + public static function substr_ileft(string $haystack, string $needle): string + { + if ($haystack === '') { + return ''; + } + + if ($needle === '') { + return $haystack; + } + + if (self::str_istarts_with($haystack, $needle)) { + $haystack = (string) \mb_substr($haystack, (int) self::strlen($needle)); + } + + return $haystack; + } + + /** + * Get part of a string process in bytes. + * + * @param string $str <p>The string being checked.</p> + * @param int $offset <p>The first position used in str.</p> + * @param int|null $length [optional] <p>The maximum length of the returned string.</p> + * + * @psalm-pure + * + * @return false|string + * <p>The portion of <i>str</i> specified by the <i>offset</i> and + * <i>length</i> parameters.</p><p>If <i>str</i> is shorter than <i>offset</i> + * characters long, <b>FALSE</b> will be returned.</p> + */ + public static function substr_in_byte(string $str, int $offset = 0, int $length = null) + { + // empty string + if ($str === '' || $length === 0) { + return ''; + } + + // whole string + if (!$offset && $length === null) { + return $str; + } + + if (self::$SUPPORT['mbstring_func_overload'] === true) { + // "mb_" is available if overload is used, so use it ... + return \mb_substr($str, $offset, $length, 'CP850'); // 8-BIT + } + + return \substr($str, $offset, $length ?? 2147483647); + } + + /** + * Removes a suffix ($needle) from the end of the string ($haystack), case-insensitive. + * + * EXAMPLE: <code> + * UTF8::substr_iright('BeginMiddleΚόσμε', 'Κόσμε'); // 'BeginMiddle' + * UTF8::substr_iright('BeginMiddleΚόσμε', 'κόσμε'); // 'BeginMiddle' + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return string + * <p>Return the sub-string.<p> + */ + public static function substr_iright(string $haystack, string $needle): string + { + if ($haystack === '') { + return ''; + } + + if ($needle === '') { + return $haystack; + } + + if (self::str_iends_with($haystack, $needle)) { + $haystack = (string) \mb_substr($haystack, 0, (int) self::strlen($haystack) - (int) self::strlen($needle)); + } + + return $haystack; + } + + /** + * Removes a prefix ($needle) from the beginning of the string ($haystack). + * + * EXAMPLE: <code> + * UTF8::substr_left('ΚόσμεMiddleEnd', 'Κόσμε'); // 'MiddleEnd' + * UTF8::substr_left('ΚόσμεMiddleEnd', 'κόσμε'); // 'ΚόσμεMiddleEnd' + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * + * @psalm-pure + * + * @return string + * <p>Return the sub-string.</p> + */ + public static function substr_left(string $haystack, string $needle): string + { + if ($haystack === '') { + return ''; + } + + if ($needle === '') { + return $haystack; + } + + if (self::str_starts_with($haystack, $needle)) { + $haystack = (string) \mb_substr($haystack, (int) self::strlen($needle)); + } + + return $haystack; + } + + /** + * Replace text within a portion of a string. + * + * EXAMPLE: <code>UTF8::substr_replace(array('Iñtërnâtiônàlizætiøn', 'foo'), 'æ', 1); // array('Iæñtërnâtiônàlizætiøn', 'fæoo')</code> + * + * source: https://gist.github.com/stemar/8287074 + * + * @param string|string[] $str <p>The input string or an array of stings.</p> + * @param string|string[] $replacement <p>The replacement string or an array of stings.</p> + * @param int|int[] $offset <p> + * If start is positive, the replacing will begin at the start'th offset + * into string. + * <br><br> + * If start is negative, the replacing will begin at the start'th character + * from the end of string. + * </p> + * @param int|int[]|null $length [optional] <p>If given and is positive, it represents the length of the + * portion of string which is to be replaced. If it is negative, it + * represents the number of characters from the end of string at which to + * stop replacing. If it is not given, then it will default to strlen( + * string ); i.e. end the replacing at the end of string. Of course, if + * length is zero then this function will have the effect of inserting + * replacement into string at the given start offset.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string|string[] + * <p>The result string is returned. If string is an array then array is returned.</p> + * + * @template TSubstrReplace string|string[] + * @phpstan-param TSubstrReplace $str + * @phpstan-return TSubstrReplace + */ + public static function substr_replace( + $str, + $replacement, + $offset, + $length = null, + string $encoding = 'UTF-8' + ) { + if (\is_array($str)) { + $num = \count($str); + + // the replacement + if (\is_array($replacement)) { + $replacement = \array_slice($replacement, 0, $num); + } else { + $replacement = \array_pad([$replacement], $num, $replacement); + } + + // the offset + if (\is_array($offset)) { + $offset = \array_slice($offset, 0, $num); + foreach ($offset as &$value_tmp) { + $value_tmp = (int) $value_tmp === $value_tmp ? $value_tmp : 0; + } + unset($value_tmp); + } else { + $offset = \array_pad([$offset], $num, $offset); + } + + // the length + if ($length === null) { + $length = \array_fill(0, $num, 0); + } elseif (\is_array($length)) { + $length = \array_slice($length, 0, $num); + foreach ($length as &$value_tmp_V2) { + $value_tmp_V2 = (int) $value_tmp_V2 === $value_tmp_V2 ? $value_tmp_V2 : $num; + } + unset($value_tmp_V2); + } else { + $length = \array_pad([$length], $num, $length); + } + + // recursive call + /** @phpstan-ignore-next-line - phpstan currently can't handle recursive calls */ + return \array_map([self::class, 'substr_replace'], $str, $replacement, $offset, $length); + } + + if (\is_array($replacement)) { + if ($replacement !== []) { + $replacement = $replacement[0]; + } else { + $replacement = ''; + } + } + + // init + $str = (string) $str; + $replacement = (string) $replacement; + + if (\is_array($length)) { + throw new \InvalidArgumentException('Parameter "$length" can only be an array, if "$str" is also an array.'); + } + + if (\is_array($offset)) { + throw new \InvalidArgumentException('Parameter "$offset" can only be an array, if "$str" is also an array.'); + } + + if ($str === '') { + return $replacement; + } + + if (self::$SUPPORT['mbstring'] === true) { + $string_length = (int) self::strlen($str, $encoding); + + if ($offset < 0) { + $offset = (int) \max(0, $string_length + $offset); + } elseif ($offset > $string_length) { + $offset = $string_length; + } + + if ($length !== null && $length < 0) { + $length = (int) \max(0, $string_length - $offset + $length); + } elseif ($length === null || $length > $string_length) { + $length = $string_length; + } + + if (($offset + $length) > $string_length) { + $length = $string_length - $offset; + } + + return ((string) \mb_substr($str, 0, $offset, $encoding)) . + $replacement . + ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); + } + + // + // fallback for ascii only + // + + if (ASCII::is_ascii($str)) { + return ($length === null) ? + \substr_replace($str, $replacement, $offset) : + \substr_replace($str, $replacement, $offset, $length); + } + + // + // fallback via vanilla php + // + + \preg_match_all('/./us', $str, $str_matches); + \preg_match_all('/./us', $replacement, $replacement_matches); + + if ($length === null) { + $length_tmp = self::strlen($str, $encoding); + if ($length_tmp === false) { + // e.g.: non mbstring support + invalid chars + return ''; + } + $length = $length_tmp; + } + + \array_splice($str_matches[0], $offset, $length, $replacement_matches[0]); + + return \implode('', $str_matches[0]); + } + + /** + * Removes a suffix ($needle) from the end of the string ($haystack). + * + * EXAMPLE: <code> + * UTF8::substr_right('BeginMiddleΚόσμε', 'Κόσμε'); // 'BeginMiddle' + * UTF8::substr_right('BeginMiddleΚόσμε', 'κόσμε'); // 'BeginMiddleΚόσμε' + * </code> + * + * @param string $haystack <p>The string to search in.</p> + * @param string $needle <p>The substring to search for.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * + * @psalm-pure + * + * @return string + * <p>Return the sub-string.</p> + */ + public static function substr_right( + string $haystack, + string $needle, + string $encoding = 'UTF-8' + ): string { + if ($haystack === '') { + return ''; + } + + if ($needle === '') { + return $haystack; + } + + if ( + $encoding === 'UTF-8' + && + \substr($haystack, -\strlen($needle)) === $needle + ) { + return (string) \mb_substr($haystack, 0, (int) \mb_strlen($haystack) - (int) \mb_strlen($needle)); + } + + if (\substr($haystack, -\strlen($needle)) === $needle) { + return (string) self::substr( + $haystack, + 0, + (int) self::strlen($haystack, $encoding) - (int) self::strlen($needle, $encoding), + $encoding + ); + } + + return $haystack; + } + + /** + * Returns a case swapped version of the string. + * + * EXAMPLE: <code>UTF8::swapCase('déJÀ σσς iıII'); // 'DÉjà ΣΣΣ IIii'</code> + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return string + * <p>Each character's case swapped.</p> + */ + public static function swapCase(string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false): string + { + if ($str === '') { + return ''; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + if ($encoding === 'UTF-8') { + return (string) (\mb_strtolower($str) ^ \mb_strtoupper($str) ^ $str); + } + + return (string) (self::strtolower($str, $encoding) ^ self::strtoupper($str, $encoding) ^ $str); + } + + /** + * Checks whether symfony-polyfills are used. + * + * @psalm-pure + * + * @return bool + * <p><strong>true</strong> if in use, <strong>false</strong> otherwise</p> + * + * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> + */ + public static function symfony_polyfill_used(): bool + { + // init + $return = false; + + $return_tmp = \extension_loaded('mbstring'); + if (!$return_tmp && \function_exists('mb_strlen')) { + $return = true; + } + + $return_tmp = \extension_loaded('iconv'); + if (!$return_tmp && \function_exists('iconv')) { + $return = true; + } + + return $return; + } + + /** + * @param string $str + * @param int $tab_length + * + * @psalm-pure + * + * @return string + */ + public static function tabs_to_spaces(string $str, int $tab_length = 4): string + { + if ($tab_length === 4) { + $spaces = ' '; + } elseif ($tab_length === 2) { + $spaces = ' '; + } else { + $spaces = \str_repeat(' ', $tab_length); + } + + return \str_replace("\t", $spaces, $str); + } + + /** + * Converts the first character of each word in the string to uppercase + * and all other chars to lowercase. + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + * <p>A string with all characters of $str being title-cased.</p> + */ + public static function titlecase( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + if ( + $lang === null + && + !$try_to_keep_the_string_length + ) { + if ($encoding === 'UTF-8') { + return \mb_convert_case($str, \MB_CASE_TITLE); + } + + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + return \mb_convert_case($str, \MB_CASE_TITLE, $encoding); + } + + return self::str_titleize( + $str, + null, + $encoding, + false, + $lang, + $try_to_keep_the_string_length, + false + ); + } + + /** + * Convert a string into ASCII. + * + * EXAMPLE: <code>UTF8::to_ascii('déjà σσς iıii'); // 'deja sss iiii'</code> + * + * @param string $str <p>The input string.</p> + * @param string $unknown [optional] <p>Character use if character unknown. (default is ?)</p> + * @param bool $strict [optional] <p>Use "transliterator_transliterate()" from PHP-Intl | WARNING: bad + * performance</p> + * + * @psalm-pure + * + * @return string + */ + public static function to_ascii( + string $str, + string $unknown = '?', + bool $strict = false + ): string { + return ASCII::to_transliterate($str, $unknown, $strict); + } + + /** + * @param bool|float|int|string $str + * + * @psalm-pure + * + * @return bool + */ + public static function to_boolean($str): bool + { + // init + $str = (string) $str; + + if ($str === '') { + return false; + } + + // Info: http://php.net/manual/en/filter.filters.validate.php + $map = [ + 'true' => true, + '1' => true, + 'on' => true, + 'yes' => true, + 'false' => false, + '0' => false, + 'off' => false, + 'no' => false, + ]; + + if (isset($map[$str])) { + return $map[$str]; + } + + $key = \strtolower($str); + if (isset($map[$key])) { + return $map[$key]; + } + + if (\is_numeric($str)) { + return ((float) $str) > 0; + } + + return (bool) \trim($str); + } + + /** + * Convert given string to safe filename (and keep string case). + * + * @param string $str + * @param bool $use_transliterate No transliteration, conversion etc. is done by default - unsafe characters are + * simply replaced with hyphen. + * @param string $fallback_char + * + * @psalm-pure + * + * @return string + */ + public static function to_filename( + string $str, + bool $use_transliterate = false, + string $fallback_char = '-' + ): string { + return ASCII::to_filename( + $str, + $use_transliterate, + $fallback_char + ); + } + + /** + * Convert a string into "ISO-8859"-encoding (Latin-1). + * + * EXAMPLE: <code>UTF8::to_utf8(UTF8::to_iso8859(' -ABC-中文空白- ')); // ' -ABC-????- '</code> + * + * @param string|string[] $str + * + * @psalm-pure + * + * @return string|string[] + * + * @template TToIso8859 as string|string[] + * @phpstan-param TToIso8859 $str + * @phpstan-return (TToIso8859 is string ? string : string[]) + */ + public static function to_iso8859($str) + { + if (\is_array($str)) { + foreach ($str as &$v) { + $v = self::to_iso8859($v); + } + + return $str; + } + + /* @phpstan-ignore-next-line | FP? -> "Cannot cast TToIso8859 of array<string>|string to string." it's a string here */ + $str = (string) $str; + if ($str === '') { + return ''; + } + + return self::utf8_decode($str); + } + + /** + * This function leaves UTF-8 characters alone, while converting almost all non-UTF8 to UTF8. + * + * <ul> + * <li>It decode UTF-8 codepoints and Unicode escape sequences.</li> + * <li>It assumes that the encoding of the original string is either WINDOWS-1252 or ISO-8859.</li> + * <li>WARNING: It does not remove invalid UTF-8 characters, so you maybe need to use "UTF8::clean()" for this + * case.</li> + * </ul> + * + * EXAMPLE: <code>UTF8::to_utf8(["\u0063\u0061\u0074"]); // array('cat')</code> + * + * @param string|string[] $str <p>Any string or array of strings.</p> + * @param bool $decode_html_entity_to_utf8 <p>Set to true, if you need to decode html-entities.</p> + * + * @psalm-pure + * + * @return string|string[] + * <p>The UTF-8 encoded string</p> + * + * @template TToUtf8 as string|string[] + * @phpstan-param TToUtf8 $str + * @phpstan-return (TToUtf8 is string ? string : string[]) + */ + public static function to_utf8($str, bool $decode_html_entity_to_utf8 = false) + { + if (\is_array($str)) { + foreach ($str as &$v) { + $v = self::to_utf8_string($v, $decode_html_entity_to_utf8); + } + + /** @phpstan-var TToUtf8 $str */ + return $str; + } + + \assert(\is_string($str)); + + $str = self::to_utf8_string($str, $decode_html_entity_to_utf8); + + /** @phpstan-var TToUtf8 $str */ + return $str; + } + + /** + * This function leaves UTF-8 characters alone, while converting almost all non-UTF8 to UTF8. + * + * <ul> + * <li>It decode UTF-8 codepoints and Unicode escape sequences.</li> + * <li>It assumes that the encoding of the original string is either WINDOWS-1252 or ISO-8859.</li> + * <li>WARNING: It does not remove invalid UTF-8 characters, so you maybe need to use "UTF8::clean()" for this + * case.</li> + * </ul> + * + * EXAMPLE: <code>UTF8::to_utf8_string("\u0063\u0061\u0074"); // 'cat'</code> + * + * @param string $str <p>Any string.</p> + * @param bool $decode_html_entity_to_utf8 <p>Set to true, if you need to decode html-entities.</p> + * + * @psalm-pure + * + * @return string + * <p>The UTF-8 encoded string</p> + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function to_utf8_string(string $str, bool $decode_html_entity_to_utf8 = false): string + { + if ($str === '') { + return $str; + } + + $max = \strlen($str); + $buf = ''; + + for ($i = 0; $i < $max; ++$i) { + $c1 = $str[$i]; + + if ($c1 >= "\xC0") { // should be converted to UTF8, if it's not UTF8 already + + if ($c1 <= "\xDF") { // looks like 2 bytes UTF8 + + $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1]; + + if ($c2 >= "\x80" && $c2 <= "\xBF") { // yeah, almost sure it's UTF8 already + $buf .= $c1 . $c2; + ++$i; + } else { // not valid UTF8 - convert it + $buf .= self::to_utf8_convert_helper($c1); + } + } elseif ($c1 >= "\xE0" && $c1 <= "\xEF") { // looks like 3 bytes UTF8 + + $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1]; + $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2]; + + if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF") { // yeah, almost sure it's UTF8 already + $buf .= $c1 . $c2 . $c3; + $i += 2; + } else { // not valid UTF8 - convert it + $buf .= self::to_utf8_convert_helper($c1); + } + } elseif ($c1 >= "\xF0" && $c1 <= "\xF7") { // looks like 4 bytes UTF8 + + $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1]; + $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2]; + $c4 = $i + 3 >= $max ? "\x00" : $str[$i + 3]; + + if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF" && $c4 >= "\x80" && $c4 <= "\xBF") { // yeah, almost sure it's UTF8 already + $buf .= $c1 . $c2 . $c3 . $c4; + $i += 3; + } else { // not valid UTF8 - convert it + $buf .= self::to_utf8_convert_helper($c1); + } + } else { // doesn't look like UTF8, but should be converted + + $buf .= self::to_utf8_convert_helper($c1); + } + } elseif (($c1 & "\xC0") === "\x80") { // needs conversion + + $buf .= self::to_utf8_convert_helper($c1); + } else { // it doesn't need conversion + + $buf .= $c1; + } + } + + // decode unicode escape sequences + unicode surrogate pairs + $buf = \preg_replace_callback( + '/\\\\u([dD][89abAB][0-9a-fA-F]{2})\\\\u([dD][cdefCDEF][\da-fA-F]{2})|\\\\u([0-9a-fA-F]{4})/', + /** + * @param array $matches + * + * @psalm-pure + * + * @return string + */ + static function (array $matches): string { + if (isset($matches[3])) { + $cp = (int) \hexdec($matches[3]); + } else { + // http://unicode.org/faq/utf_bom.html#utf16-4 + $cp = ((int) \hexdec($matches[1]) << 10) + + (int) \hexdec($matches[2]) + + 0x10000 + - (0xD800 << 10) + - 0xDC00; + } + + // https://github.com/php/php-src/blob/php-7.3.2/ext/standard/html.c#L471 + // + // php_utf32_utf8(unsigned char *buf, unsigned k) + + if ($cp < 0x80) { + return (string) self::chr($cp); + } + + if ($cp < 0xA0) { + /** @noinspection UnnecessaryCastingInspection */ + return (string) self::chr(0xC0 | $cp >> 6) . (string) self::chr(0x80 | $cp & 0x3F); + } + + return self::decimal_to_chr($cp); + }, + $buf + ); + + if ($buf === null) { + return ''; + } + + // decode UTF-8 codepoints + if ($decode_html_entity_to_utf8) { + $buf = self::html_entity_decode($buf); + } + + return $buf; + } + + /** + * Returns the given string as an integer, or null if the string isn't numeric. + * + * @param string $str + * + * @psalm-pure + * + * @return int|null + * <p>null if the string isn't numeric</p> + */ + public static function to_int(string $str) + { + if (\is_numeric($str)) { + return (int) $str; + } + + return null; + } + + /** + * Returns the given input as string, or null if the input isn't int|float|string + * and do not implement the "__toString()" method. + * + * @param float|int|object|string|null $input + * + * @psalm-pure + * + * @return string|null + * <p>null if the input isn't int|float|string and has no "__toString()" method</p> + */ + public static function to_string($input) + { + if ($input === null) { + return null; + } + + $input_type = \gettype($input); + + if ( + $input_type === 'string' + || + $input_type === 'integer' + || + $input_type === 'float' + || + $input_type === 'double' + ) { + /* @phpstan-ignore-next-line | "gettype" is not supported by phpstan?! */ + return (string) $input; + } + + /** @phpstan-ignore-next-line - "gettype": FP? */ + if ($input_type === 'object' && \method_exists($input, '__toString')) { + return (string) $input; + } + + return null; + } + + /** + * Strip whitespace or other characters from the beginning and end of a UTF-8 string. + * + * INFO: This is slower then "trim()" + * + * We can only use the original-function, if we use <= 7-Bit in the string / chars + * but the check for ASCII (7-Bit) cost more time, then we can safe here. + * + * EXAMPLE: <code>UTF8::trim(' -ABC-中文空白- '); // '-ABC-中文空白-'</code> + * + * @param string $str <p>The string to be trimmed</p> + * @param string|null $chars [optional] <p>Optional characters to be stripped</p> + * + * @psalm-pure + * + * @return string + * <p>The trimmed string.</p> + */ + public static function trim(string $str = '', string $chars = null): string + { + if ($str === '') { + return ''; + } + + if (self::$SUPPORT['mbstring'] === true) { + if ($chars !== null) { + /** @noinspection PregQuoteUsageInspection */ + $chars = \preg_quote($chars); + $pattern = "^[{$chars}]+|[{$chars}]+\$"; + } else { + $pattern = '^[\\s]+|[\\s]+$'; + } + + return (string) \mb_ereg_replace($pattern, '', $str); + } + + if ($chars !== null) { + $chars = \preg_quote($chars, '/'); + $pattern = "^[{$chars}]+|[{$chars}]+\$"; + } else { + $pattern = '^[\\s]+|[\\s]+$'; + } + + return self::regex_replace($str, $pattern, ''); + } + + /** + * Makes string's first char uppercase. + * + * EXAMPLE: <code>UTF8::ucfirst('ñtërnâtiônàlizætiøn foo'); // 'Ñtërnâtiônàlizætiøn foo'</code> + * + * @param string $str <p>The input string.</p> + * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, + * tr</p> + * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ + * -> ß</p> + * + * @psalm-pure + * + * @return string + * <p>The resulting string with with char uppercase.</p> + */ + public static function ucfirst( + string $str, + string $encoding = 'UTF-8', + bool $clean_utf8 = false, + string $lang = null, + bool $try_to_keep_the_string_length = false + ): string { + if ($str === '') { + return ''; + } + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; + + if ($encoding === 'UTF-8') { + $str_part_two = (string) \mb_substr($str, 1); + + if ($use_mb_functions) { + $str_part_one = \mb_strtoupper( + (string) \mb_substr($str, 0, 1) + ); + } else { + $str_part_one = self::strtoupper( + (string) \mb_substr($str, 0, 1), + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ); + } + } else { + $encoding = self::normalize_encoding($encoding, 'UTF-8'); + + $str_part_two = (string) self::substr($str, 1, null, $encoding); + + if ($use_mb_functions) { + $str_part_one = \mb_strtoupper( + (string) \mb_substr($str, 0, 1, $encoding), + $encoding + ); + } else { + $str_part_one = self::strtoupper( + (string) self::substr($str, 0, 1, $encoding), + $encoding, + false, + $lang, + $try_to_keep_the_string_length + ); + } + } + + return $str_part_one . $str_part_two; + } + + /** + * Uppercase for all words in the string. + * + * EXAMPLE: <code>UTF8::ucwords('iñt ërn âTi ônà liz æti øn'); // 'Iñt Ërn ÂTi Ônà Liz Æti Øn'</code> + * + * @param string $str <p>The input string.</p> + * @param string[] $exceptions [optional] <p>Exclusion for some words.</p> + * @param string $char_list [optional] <p>Additional chars that contains to words and do not start a new + * word.</p> + * @param string $encoding [optional] <p>Set the charset.</p> + * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> + * + * @psalm-pure + * + * @return string + */ + public static function ucwords( + string $str, + array $exceptions = [], + string $char_list = '', + string $encoding = 'UTF-8', + bool $clean_utf8 = false + ): string { + if (!$str) { + return ''; + } + + // INFO: mb_convert_case($str, MB_CASE_TITLE); + // -> MB_CASE_TITLE didn't only uppercase the first letter, it also lowercase all other letters + + if ($clean_utf8) { + // "mb_strpos()" and "iconv_strpos()" returns wrong position, + // if invalid characters are found in $haystack before $needle + $str = self::clean($str); + } + + $use_php_default_functions = !(bool) ($char_list . \implode('', $exceptions)); + + if ( + $use_php_default_functions + && + ASCII::is_ascii($str) + ) { + return \ucwords($str); + } + + $words = self::str_to_words($str, $char_list); + $use_exceptions = $exceptions !== []; + + $words_str = ''; + foreach ($words as &$word) { + if (!$word) { + continue; + } + + if ( + !$use_exceptions + || + !\in_array($word, $exceptions, true) + ) { + $words_str .= self::ucfirst($word, $encoding); + } else { + $words_str .= $word; + } + } + + return $words_str; + } + + /** + * Multi decode HTML entity + fix urlencoded-win1252-chars. + * + * EXAMPLE: <code>UTF8::urldecode('tes%20öäü%20\u00edtest+test'); // 'tes öäü ítest test'</code> + * + * e.g: + * 'test+test' => 'test test' + * 'D&#252;sseldorf' => 'Düsseldorf' + * 'D%FCsseldorf' => 'Düsseldorf' + * 'D&#xFC;sseldorf' => 'Düsseldorf' + * 'D%26%23xFC%3Bsseldorf' => 'Düsseldorf' + * 'Düsseldorf' => 'Düsseldorf' + * 'D%C3%BCsseldorf' => 'Düsseldorf' + * 'D%C3%83%C2%BCsseldorf' => 'Düsseldorf' + * 'D%25C3%2583%25C2%25BCsseldorf' => 'Düsseldorf' + * + * @param string $str <p>The input string.</p> + * @param bool $multi_decode <p>Decode as often as possible.</p> + * + * @psalm-pure + * + * @return string + * + * @template T as string + * @phpstan-param T $str + * @phpstan-return (T is non-empty-string ? non-empty-string : string) + */ + public static function urldecode(string $str, bool $multi_decode = true): string + { + if ($str === '') { + return ''; + } + + $str = self::urldecode_unicode_helper($str); + + if ($multi_decode) { + do { + $str_compare = $str; + + /** + * @psalm-suppress PossiblyInvalidArgument + */ + $str = \urldecode( + self::html_entity_decode( + self::to_utf8($str), + \ENT_QUOTES | \ENT_HTML5 + ) + ); + } while ($str_compare !== $str); + } else { + /** + * @psalm-suppress PossiblyInvalidArgument + */ + $str = \urldecode( + self::html_entity_decode( + self::to_utf8($str), + \ENT_QUOTES | \ENT_HTML5 + ) + ); + } + + return self::fix_simple_utf8($str); + } + + /** + * Decodes a UTF-8 string to ISO-8859-1. + * + * EXAMPLE: <code>UTF8::encode('UTF-8', UTF8::utf8_decode('-ABC-中文空白-')); // '-ABC-????-'</code> + * + * @param string $str <p>The input string.</p> + * @param bool $keep_utf8_chars + * + * @psalm-pure + * + * @return string + */ + public static function utf8_decode(string $str, bool $keep_utf8_chars = false): string + { + if ($str === '') { + return ''; + } + + // save for later comparision + $str_backup = $str; + $len = \strlen($str); + + if (self::$ORD === null) { + self::$ORD = self::getData('ord'); + } + + if (self::$CHR === null) { + self::$CHR = self::getData('chr'); + } + + $no_char_found = '?'; + for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) { + switch ($str[$i] & "\xF0") { + case "\xC0": + case "\xD0": + $c = (self::$ORD[$str[$i] & "\x1F"] << 6) | self::$ORD[$str[++$i] & "\x3F"]; + $str[$j] = $c < 256 ? self::$CHR[$c] : $no_char_found; + + break; + + case "\xF0": + ++$i; + + // no break + + case "\xE0": + $str[$j] = $no_char_found; + $i += 2; + + break; + + default: + $str[$j] = $str[$i]; + } + } + + /** @var false|string $return - needed for PhpStan (stubs error) */ + $return = \substr($str, 0, $j); + if ($return === false) { + $return = ''; + } + + if ( + $keep_utf8_chars + && + (int) self::strlen($return) >= (int) self::strlen($str_backup) + ) { + return $str_backup; + } + + return $return; + } + + /** + * Encodes an ISO-8859-1 string to UTF-8. + * + * EXAMPLE: <code>UTF8::utf8_decode(UTF8::utf8_encode('-ABC-中文空白-')); // '-ABC-中文空白-'</code> + * + * @param string $str <p>The input string.</p> + * + * @psalm-pure + * + * @return string + */ + public static function utf8_encode(string $str): string + { + if ($str === '') { + return ''; + } + + /** @noinspection PhpUsageOfSilenceOperatorInspection | TODO for PHP > 8.2: find a replacement for this */ + /** @var false|string $str - the polyfill maybe return false */ + $str = @\utf8_encode($str); + + if ($str === false) { + return ''; + } + + return $str; + } + + /** + * Returns an array with all utf8 whitespace characters. + * + * @see http://www.bogofilter.org/pipermail/bogofilter/2003-March/001889.html + * + * @psalm-pure + * + * @return string[] + * An array with all known whitespace characters as values and the type of whitespace as keys + * as defined in above URL + */ + public static function whitespace_table(): array + { + return self::$WHITESPACE_TABLE; + } + + /** + * Limit the number of words in a string. + * + * EXAMPLE: <code>UTF8::words_limit('fòô bàř fòô', 2, ''); // 'fòô bàř'</code> + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $limit <p>The limit of words as integer.</p> + * @param string $str_add_on <p>Replacement for the striped string.</p> + * + * @psalm-pure + * + * @return string + */ + public static function words_limit( + string $str, + int $limit = 100, + string $str_add_on = '…' + ): string { + if ( + $str === '' + || + /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ + $limit <= 0 + ) { + return ''; + } + + \preg_match('/^\\s*+(?:[^\\s]++\\s*+){1,' . $limit . '}/u', $str, $matches); + + if ( + !isset($matches[0]) + || + \mb_strlen($str) === (int) \mb_strlen($matches[0]) + ) { + return $str; + } + + return \rtrim($matches[0]) . $str_add_on; + } + + /** + * Wraps a string to a given number of characters + * + * EXAMPLE: <code>UTF8::wordwrap('Iñtërnâtiônàlizætiøn', 2, '<br>', true)); // 'Iñ<br>të<br>rn<br>ât<br>iô<br>nà<br>li<br>zæ<br>ti<br>øn'</code> + * + * @see http://php.net/manual/en/function.wordwrap.php + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $width [optional] <p>The column width.</p> + * @param string $break [optional] <p>The line is broken using the optional break parameter.</p> + * @param bool $cut [optional] <p> + * If the cut is set to true, the string is + * always wrapped at or before the specified width. So if you have + * a word that is larger than the given width, it is broken apart. + * </p> + * + * @psalm-pure + * + * @return string + * <p>The given string wrapped at the specified column.</p> + */ + public static function wordwrap( + string $str, + int $width = 75, + string $break = "\n", + bool $cut = false + ): string { + if ($str === '' || $break === '') { + return ''; + } + + $str_split = \explode($break, $str); + + /** @var string[] $charsArray */ + $charsArray = []; + $word_split = ''; + foreach ($str_split as $i => $i_value) { + if ($i) { + $charsArray[] = $break; + $word_split .= '#'; + } + + foreach (self::str_split($i_value) as $c) { + $charsArray[] = $c; + if ($c === ' ') { + $word_split .= ' '; + } else { + $word_split .= '?'; + } + } + } + + $str_return = ''; + $j = 0; + $b = -1; + $i = -1; + $word_split = \wordwrap($word_split, $width, '#', $cut); + + $max = \mb_strlen($word_split); + /** @noinspection PhpAssignmentInConditionInspection - is ok here */ + while (($b = \mb_strpos($word_split, '#', $b + 1)) !== false) { + for (++$i; $i < $b; ++$i) { + if (isset($charsArray[$j])) { + $str_return .= $charsArray[$j]; + unset($charsArray[$j]); + } + ++$j; + + // prevent endless loop, e.g. if there is a error in the "mb_*" polyfill + if ($i > $max) { + break 2; + } + } + + if ( + $break === $charsArray[$j] + || + $charsArray[$j] === ' ' + ) { + unset($charsArray[$j++]); + } + + $str_return .= $break; + + // prevent endless loop, e.g. if there is a error in the "mb_*" polyfill + if ($b > $max) { + break; + } + } + + return $str_return . \implode('', $charsArray); + } + + /** + * Line-Wrap the string after $limit, but split the string by "$delimiter" before ... + * ... so that we wrap the per line. + * + * @param string $str <p>The input string.</p> + * @param int<1, max> $width [optional] <p>The column width.</p> + * @param string $break [optional] <p>The line is broken using the optional break parameter.</p> + * @param bool $cut [optional] <p> + * If the cut is set to true, the string is + * always wrapped at or before the specified width. So if you have + * a word that is larger than the given width, it is broken apart. + * </p> + * @param bool $add_final_break [optional] <p> + * If this flag is true, then the method will add a $break at the end + * of the result string. + * </p> + * @param non-empty-string|null $delimiter [optional] <p> + * You can change the default behavior, where we split the string by newline. + * </p> + * + * @psalm-pure + * + * @return string + */ + public static function wordwrap_per_line( + string $str, + int $width = 75, + string $break = "\n", + bool $cut = false, + bool $add_final_break = true, + string $delimiter = null + ): string { + if ($delimiter === null) { + $strings = \preg_split('/\\r\\n|\\r|\\n/', $str); + } else { + $strings = \explode($delimiter, $str); + } + + $string_helper_array = []; + if ($strings !== false) { + foreach ($strings as $value) { + $string_helper_array[] = self::wordwrap($value, $width, $break, $cut); + } + } + + if ($add_final_break) { + $final_break = $break; + } else { + $final_break = ''; + } + + return \implode($delimiter ?? "\n", $string_helper_array) . $final_break; + } + + /** + * Returns an array of Unicode White Space characters. + * + * @psalm-pure + * + * @return string[] + * <p>An array with numeric code point as key and White Space Character as value.</p> + */ + public static function ws(): array + { + return self::$WHITESPACE; + } + + /** + * Checks whether the passed string contains only byte sequences that are valid UTF-8 characters. + * + * EXAMPLE: <code> + * UTF8::is_utf8_string('Iñtërnâtiônàlizætiøn']); // true + * // + * UTF8::is_utf8_string("Iñtërnâtiônàlizætiøn\xA0\xA1"); // false + * </code> + * + * @see http://hsivonen.iki.fi/php-utf8/ + * + * @param string $str <p>The string to be checked.</p> + * @param bool $strict <p>Check also if the string is not UTF-16 or UTF-32.</p> + * + * @psalm-pure + * + * @return bool + */ + private static function is_utf8_string(string $str, bool $strict = false) + { + if ($str === '') { + return true; + } + + if ($strict) { + $is_binary = self::is_binary($str, true); + + if ($is_binary && self::is_utf16($str, false) !== false) { + return false; + } + + if ($is_binary && self::is_utf32($str, false) !== false) { + return false; + } + } + + if (self::$SUPPORT['pcre_utf8']) { + // If even just the first character can be matched, when the /u + // modifier is used, then it's valid UTF-8. If the UTF-8 is somehow + // invalid, nothing at all will match, even if the string contains + // some valid sequences + return \preg_match('/^./us', $str) === 1; + } + + $mState = 0; // cached expected number of octets after the current octet + // until the beginning of the next UTF8 character sequence + $mUcs4 = 0; // cached Unicode character + $mBytes = 1; // cached expected number of octets in the current sequence + + if (self::$ORD === null) { + self::$ORD = self::getData('ord'); + } + + $len = \strlen($str); + for ($i = 0; $i < $len; ++$i) { + $in = self::$ORD[$str[$i]]; + + if ($mState === 0) { + // When mState is zero we expect either a US-ASCII character or a + // multi-octet sequence. + if ((0x80 & $in) === 0) { + // US-ASCII, pass straight through. + $mBytes = 1; + } elseif ((0xE0 & $in) === 0xC0) { + // First octet of 2 octet sequence. + $mUcs4 = $in; + $mUcs4 = ($mUcs4 & 0x1F) << 6; + $mState = 1; + $mBytes = 2; + } elseif ((0xF0 & $in) === 0xE0) { + // First octet of 3 octet sequence. + $mUcs4 = $in; + $mUcs4 = ($mUcs4 & 0x0F) << 12; + $mState = 2; + $mBytes = 3; + } elseif ((0xF8 & $in) === 0xF0) { + // First octet of 4 octet sequence. + $mUcs4 = $in; + $mUcs4 = ($mUcs4 & 0x07) << 18; + $mState = 3; + $mBytes = 4; + } elseif ((0xFC & $in) === 0xF8) { + /* First octet of 5 octet sequence. + * + * This is illegal because the encoded codepoint must be either + * (a) not the shortest form or + * (b) outside the Unicode range of 0-0x10FFFF. + * Rather than trying to resynchronize, we will carry on until the end + * of the sequence and let the later error handling code catch it. + */ + $mUcs4 = $in; + $mUcs4 = ($mUcs4 & 0x03) << 24; + $mState = 4; + $mBytes = 5; + } elseif ((0xFE & $in) === 0xFC) { + // First octet of 6 octet sequence, see comments for 5 octet sequence. + $mUcs4 = $in; + $mUcs4 = ($mUcs4 & 1) << 30; + $mState = 5; + $mBytes = 6; + } else { + // Current octet is neither in the US-ASCII range nor a legal first + // octet of a multi-octet sequence. + return false; + } + } elseif ((0xC0 & $in) === 0x80) { + + // When mState is non-zero, we expect a continuation of the multi-octet + // sequence + + // Legal continuation. + $shift = ($mState - 1) * 6; + $tmp = $in; + $tmp = ($tmp & 0x0000003F) << $shift; + $mUcs4 |= $tmp; + // Prefix: End of the multi-octet sequence. mUcs4 now contains the final + // Unicode code point to be output. + if (--$mState === 0) { + // Check for illegal sequences and code points. + // + // From Unicode 3.1, non-shortest form is illegal + if ( + ($mBytes === 2 && $mUcs4 < 0x0080) + || + ($mBytes === 3 && $mUcs4 < 0x0800) + || + ($mBytes === 4 && $mUcs4 < 0x10000) + || + ($mBytes > 4) + || + // From Unicode 3.2, surrogate characters are illegal. + (($mUcs4 & 0xFFFFF800) === 0xD800) + || + // Code points outside the Unicode range are illegal. + ($mUcs4 > 0x10FFFF) + ) { + return false; + } + // initialize UTF8 cache + $mState = 0; + $mUcs4 = 0; + $mBytes = 1; + } + } else { + // ((0xC0 & (*in) != 0x80) && (mState != 0)) + // Incomplete multi-octet sequence. + return false; + } + } + + return $mState === 0; + } + + /** + * @param string $str + * @param bool $use_lowercase <p>Use uppercase by default, otherwise use lowercase.</p> + * @param bool $use_full_case_fold <p>Convert not only common cases.</p> + * + * @psalm-pure + * + * @return string + */ + private static function fixStrCaseHelper( + string $str, + bool $use_lowercase = false, + bool $use_full_case_fold = false + ) { + $upper = self::$COMMON_CASE_FOLD['upper']; + $lower = self::$COMMON_CASE_FOLD['lower']; + + if ($use_lowercase) { + $str = \str_replace( + $upper, + $lower, + $str + ); + } else { + $str = \str_replace( + $lower, + $upper, + $str + ); + } + + if ($use_full_case_fold) { + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<mixed>|null + */ + static $FULL_CASE_FOLD = null; + if ($FULL_CASE_FOLD === null) { + $FULL_CASE_FOLD = self::getData('caseFolding_full'); + } + + if ($use_lowercase) { + $str = \str_replace($FULL_CASE_FOLD[0], $FULL_CASE_FOLD[1], $str); + } else { + $str = \str_replace($FULL_CASE_FOLD[1], $FULL_CASE_FOLD[0], $str); + } + } + + return $str; + } + + /** + * get data from "/data/*.php" + * + * @param string $file + * + * @psalm-pure + * + * @return array<array-key, mixed> + */ + private static function getData(string $file) + { + /** @noinspection PhpIncludeInspection */ + /** @noinspection UsingInclusionReturnValueInspection */ + /** @psalm-suppress UnresolvableInclude */ + return include __DIR__ . '/data/' . $file . '.php'; + } + + /** + * @psalm-pure + * + * @return true|null + */ + private static function initEmojiData() + { + if (self::$EMOJI_KEYS_CACHE === null) { + if (self::$EMOJI === null) { + self::$EMOJI = self::getData('emoji'); + } + + /** + * @psalm-suppress ImpureFunctionCall - static sort function is used + */ + \uksort( + self::$EMOJI, + static function (string $a, string $b): int { + return \strlen($b) <=> \strlen($a); + } + ); + + self::$EMOJI_KEYS_CACHE = \array_keys(self::$EMOJI); + self::$EMOJI_VALUES_CACHE = self::$EMOJI; + + foreach (self::$EMOJI_KEYS_CACHE as $key) { + $tmp_key = \crc32($key); + self::$EMOJI_KEYS_REVERSIBLE_CACHE[] = '_-_PORTABLE_UTF8_-_' . $tmp_key . '_-_' . \strrev((string) $tmp_key) . '_-_8FTU_ELBATROP_-_'; + } + + return true; + } + + return null; + } + + /** + * Checks whether mbstring "overloaded" is active on the server. + * + * @psalm-pure + * + * @return bool + */ + private static function mbstring_overloaded(): bool + { + /** + * INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 + */ + + /** @noinspection PhpComposerExtensionStubsInspection */ + /** @noinspection PhpUsageOfSilenceOperatorInspection */ + /** @noinspection DeprecatedIniOptionsInspection */ + return \defined('MB_OVERLOAD_STRING') + && + ((int) @\ini_get('mbstring.func_overload') & \MB_OVERLOAD_STRING); + } + + /** + * @param string[] $strings + * @param bool $remove_empty_values + * @param int|null $remove_short_values + * + * @psalm-pure + * + * @return list<string> + */ + private static function reduce_string_array( + array $strings, + bool $remove_empty_values, + int $remove_short_values = null + ) { + // init + $return = []; + + foreach ($strings as &$str) { + if ( + $remove_short_values !== null + && + \mb_strlen($str) <= $remove_short_values + ) { + continue; + } + + if ( + $remove_empty_values + && + \trim($str) === '' + ) { + continue; + } + + $return[] = $str; + } + + return $return; + } + + /** + * rxClass + * + * @param string $s + * @param string $class + * + * @return string + * + * @psalm-pure + */ + private static function rxClass(string $s, string $class = '') + { + /** + * @psalm-suppress ImpureStaticVariable + * + * @var array<string,string> + */ + static $RX_CLASS_CACHE = []; + + $cache_key = $s . '_' . $class; + + if (isset($RX_CLASS_CACHE[$cache_key])) { + return $RX_CLASS_CACHE[$cache_key]; + } + + $class_array = []; + $class_array[] = $class; + + /** @noinspection SuspiciousLoopInspection */ + /** @noinspection AlterInForeachInspection */ + foreach (self::str_split($s) as &$s) { + if ($s === '-') { + $class_array[0] = '-' . $class_array[0]; + } elseif (!isset($s[2])) { + $class_array[0] .= \preg_quote($s, '/'); + } elseif (self::strlen($s) === 1) { + $class_array[0] .= $s; + } else { + $class_array[] = $s; + } + } + + if ($class_array[0]) { + $class_array[0] = '[' . $class_array[0] . ']'; + } + + if (\count($class_array) === 1) { + $return = $class_array[0]; + } else { + $return = '(?:' . \implode('|', $class_array) . ')'; + } + + $RX_CLASS_CACHE[$cache_key] = $return; + + return $return; + } + + /** + * Personal names such as "Marcus Aurelius" are sometimes typed incorrectly using lowercase ("marcus aurelius"). + * + * @param string $names + * @param string $delimiter + * @param string $encoding + * + * @phpstan-param non-empty-string $delimiter + * + * @psalm-pure + * + * @return string + */ + private static function str_capitalize_name_helper( + string $names, + string $delimiter, + string $encoding = 'UTF-8' + ) { + // init + try { + $name_helper_array = \explode($delimiter, $names); + } catch (\Error $e) { + // PHP >= 8.0 : explode() will now throw ValueError when separator parameter is given an empty string (""). Previously, explode() returned false instead. + $name_helper_array = false; + } + if ($name_helper_array === false) { + return ''; + } + + $special_cases = [ + 'names' => [ + 'ab', + 'af', + 'al', + 'and', + 'ap', + 'bint', + 'binte', + 'da', + 'de', + 'del', + 'den', + 'der', + 'di', + 'dit', + 'ibn', + 'la', + 'mac', + 'nic', + 'of', + 'ter', + 'the', + 'und', + 'van', + 'von', + 'y', + 'zu', + ], + 'prefixes' => [ + 'al-', + "d'", + 'ff', + "l'", + 'mac', + 'mc', + 'nic', + ], + ]; + + foreach ($name_helper_array as &$name) { + if (\in_array($name, $special_cases['names'], true)) { + continue; + } + + $continue = false; + + if ($delimiter === '-') { + foreach ((array) $special_cases['names'] as &$beginning) { + if (\strncmp($name, $beginning, \strlen($beginning)) === 0) { + $continue = true; + + break; + } + } + unset($beginning); + } + + foreach ((array) $special_cases['prefixes'] as &$beginning) { + if (\strncmp($name, $beginning, \strlen($beginning)) === 0) { + $continue = true; + + break; + } + } + unset($beginning); + + if ($continue) { + continue; + } + + $name = self::ucfirst($name, $encoding); + } + + return \implode($delimiter, $name_helper_array); + } + + /** + * Generic case-sensitive transformation for collation matching. + * + * @param string $str <p>The input string</p> + * + * @psalm-pure + * + * @return string|null + */ + private static function strtonatfold(string $str) + { + $str = \Normalizer::normalize($str, \Normalizer::NFD); + if ($str === false) { + return ''; + } + + return \preg_replace( + '/\p{Mn}+/u', + '', + $str + ); + } + + /** + * @param int|string $input + * + * @psalm-pure + * + * @return string + */ + private static function to_utf8_convert_helper($input) + { + // init + $buf = ''; + + if (self::$ORD === null) { + self::$ORD = self::getData('ord'); + } + + if (self::$CHR === null) { + self::$CHR = self::getData('chr'); + } + + if (self::$WIN1252_TO_UTF8 === null) { + self::$WIN1252_TO_UTF8 = self::getData('win1252_to_utf8'); + } + + $ordC1 = self::$ORD[$input]; + if (isset(self::$WIN1252_TO_UTF8[$ordC1])) { // found in Windows-1252 special cases + $buf .= self::$WIN1252_TO_UTF8[$ordC1]; + } else { + $cc1 = self::$CHR[$ordC1 / 64] | "\xC0"; + $cc2 = ((string) $input & "\x3F") | "\x80"; + $buf .= $cc1 . $cc2; + } + + return $buf; + } + + /** + * @param string $str + * + * @psalm-pure + * + * @return string + */ + private static function urldecode_unicode_helper(string $str) + { + if (\strpos($str, '%u') === false) { + return $str; + } + + $pattern = '/%u([0-9a-fA-F]{3,4})/'; + if (\preg_match($pattern, $str)) { + $str = (string) \preg_replace($pattern, '&#x\\1;', $str); + } + + return $str; + } +} \ No newline at end of file diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_by_languages.php b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_by_languages.php new file mode 100644 index 000000000..68c3f9d25 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_by_languages.php @@ -0,0 +1,2950 @@ +<?php + +// https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes + +return [ + // Dutch (Flemish) + 'nl' => [ + 'Á' => 'A', + 'á' => 'a', + 'Ä' => 'A', + 'ä' => 'a', + 'À' => 'A', + 'à' => 'a', + 'Â' => 'A', + 'â' => 'a', + 'É' => 'E', + 'é' => 'e', + 'Ë' => 'E', + 'ë' => 'e', + 'È' => 'E', + 'è' => 'e', + 'Ê' => 'E', + 'ê' => 'e', + 'Í' => 'I', + 'í' => 'i', + 'Ï' => 'I', + 'ï' => 'i', + 'Ì' => 'I', + 'ì' => 'i', + 'Î' => 'I', + 'î' => 'i', + 'Ó' => 'O', + 'ó' => 'o', + 'Ö' => 'O', + 'ö' => 'o', + 'Ò' => 'O', + 'ò' => 'o', + 'Ô' => 'O', + 'ô' => 'o', + 'Ú' => 'U', + 'ú' => 'u', + 'Ü' => 'U', + 'ü' => 'u', + 'Ù' => 'U', + 'ù' => 'u', + 'Û' => 'U', + 'û' => 'u', + 'Ý' => 'Y', + 'ý' => 'y', + 'Ÿ' => 'Y', + ], + // Italian + 'it' => [ + 'à' => 'a', + 'À' => 'A', + 'é' => 'e', + 'É' => 'E', + 'è' => 'e', + 'È' => 'E', + 'ì' => 'i', + 'Ì' => 'I', + 'Ò' => 'O', + 'ò' => 'o', + 'ù' => 'u', + 'Ù' => 'U', + ], + // Macedonian + 'mk' => [ + 'А' => 'A', + 'Б' => 'B', + 'В' => 'V', + 'Г' => 'G', + 'Д' => 'D', + 'Ѓ' => 'Gj', + 'Е' => 'E', + 'Ж' => 'Zh', + 'З' => 'Z', + 'Ѕ' => 'Dz', + 'И' => 'I', + 'Ј' => 'J', + 'К' => 'K', + 'Л' => 'L', + 'Љ' => 'Lj', + 'М' => 'M', + 'Н' => 'N', + 'Њ' => 'Nj', + 'О' => 'O', + 'П' => 'P', + 'Р' => 'R', + 'С' => 'S', + 'Т' => 'T', + 'Ќ' => 'Kj', + 'У' => 'U', + 'Ф' => 'F', + 'Х' => 'H', + 'Ц' => 'C', + 'Ч' => 'Ch', + 'Џ' => 'Dj', + 'Ш' => 'Sh', + 'а' => 'a', + 'б' => 'b', + 'в' => 'v', + 'г' => 'g', + 'д' => 'd', + 'ѓ' => 'gj', + 'е' => 'e', + 'ж' => 'zh', + 'з' => 'z', + 'ѕ' => 'dz', + 'и' => 'i', + 'ј' => 'j', + 'к' => 'k', + 'л' => 'l', + 'љ' => 'lj', + 'м' => 'm', + 'н' => 'n', + 'њ' => 'nj', + 'о' => 'o', + 'п' => 'p', + 'р' => 'r', + 'с' => 's', + 'т' => 't', + 'ќ' => 'kj', + 'у' => 'u', + 'ф' => 'f', + 'х' => 'h', + 'ц' => 'c', + 'ч' => 'ch', + 'џ' => 'dj', + 'ш' => 'sh', + ], + // Portuguese (Brazil) + 'pt' => [ + 'æ' => 'ae', + 'ǽ' => 'ae', + 'À' => 'A', + 'Á' => 'A', + 'Â' => 'A', + 'Ã' => 'A', + 'Å' => 'AA', + 'Ǻ' => 'A', + 'Ă' => 'A', + 'Ǎ' => 'A', + 'Æ' => 'AE', + 'Ǽ' => 'AE', + 'à' => 'a', + 'á' => 'a', + 'â' => 'a', + 'ã' => 'a', + 'å' => 'aa', + 'ǻ' => 'a', + 'ă' => 'a', + 'ǎ' => 'a', + 'ª' => 'a', + 'Ĉ' => 'C', + 'Ċ' => 'C', + 'Ç' => 'C', + 'ç' => 'c', + 'ĉ' => 'c', + 'ċ' => 'c', + 'Ð' => 'Dj', + 'Đ' => 'D', + 'ð' => 'dj', + 'đ' => 'd', + 'È' => 'E', + 'É' => 'E', + 'Ê' => 'E', + 'Ë' => 'E', + 'Ĕ' => 'E', + 'Ė' => 'E', + 'è' => 'e', + 'é' => 'e', + 'ê' => 'e', + 'ë' => 'e', + 'ĕ' => 'e', + 'ė' => 'e', + 'ƒ' => 'f', + 'Ĝ' => 'G', + 'Ġ' => 'G', + 'ĝ' => 'g', + 'ġ' => 'g', + 'Ĥ' => 'H', + 'Ħ' => 'H', + 'ĥ' => 'h', + 'ħ' => 'h', + 'Ì' => 'I', + 'Í' => 'I', + 'Î' => 'I', + 'Ï' => 'I', + 'Ĩ' => 'I', + 'Ĭ' => 'I', + 'Ǐ' => 'I', + 'Į' => 'I', + 'IJ' => 'IJ', + 'ì' => 'i', + 'í' => 'i', + 'î' => 'i', + 'ï' => 'i', + 'ĩ' => 'i', + 'ĭ' => 'i', + 'ǐ' => 'i', + 'į' => 'i', + 'ij' => 'ij', + 'Ĵ' => 'J', + 'ĵ' => 'j', + 'Ĺ' => 'L', + 'Ľ' => 'L', + 'Ŀ' => 'L', + 'ĺ' => 'l', + 'ľ' => 'l', + 'ŀ' => 'l', + 'Ñ' => 'N', + 'ñ' => 'n', + 'ʼn' => 'n', + 'Ò' => 'O', + 'Ó' => 'O', + 'Ô' => 'O', + 'Õ' => 'O', + 'Ō' => 'O', + 'Ŏ' => 'O', + 'Ǒ' => 'O', + 'Ő' => 'O', + 'Ơ' => 'O', + 'Ø' => 'OE', + 'Ǿ' => 'O', + 'Œ' => 'OE', + 'ò' => 'o', + 'ó' => 'o', + 'ô' => 'o', + 'õ' => 'o', + 'ō' => 'o', + 'ŏ' => 'o', + 'ǒ' => 'o', + 'ő' => 'o', + 'ơ' => 'o', + 'ø' => 'oe', + 'ǿ' => 'o', + 'º' => 'o', + 'œ' => 'oe', + 'Ŕ' => 'R', + 'Ŗ' => 'R', + 'ŕ' => 'r', + 'ŗ' => 'r', + 'Ŝ' => 'S', + 'Ș' => 'S', + 'ŝ' => 's', + 'ș' => 's', + 'ſ' => 's', + 'Ţ' => 'T', + 'Ț' => 'T', + 'Ŧ' => 'T', + 'Þ' => 'TH', + 'ţ' => 't', + 'ț' => 't', + 'ŧ' => 't', + 'þ' => 'th', + 'Ù' => 'U', + 'Ú' => 'U', + 'Û' => 'U', + 'Ü' => 'U', + 'Ũ' => 'U', + 'Ŭ' => 'U', + 'Ű' => 'U', + 'Ų' => 'U', + 'Ư' => 'U', + 'Ǔ' => 'U', + 'Ǖ' => 'U', + 'Ǘ' => 'U', + 'Ǚ' => 'U', + 'Ǜ' => 'U', + 'ù' => 'u', + 'ú' => 'u', + 'û' => 'u', + 'ü' => 'u', + 'ũ' => 'u', + 'ŭ' => 'u', + 'ű' => 'u', + 'ų' => 'u', + 'ư' => 'u', + 'ǔ' => 'u', + 'ǖ' => 'u', + 'ǘ' => 'u', + 'ǚ' => 'u', + 'ǜ' => 'u', + 'Ŵ' => 'W', + 'ŵ' => 'w', + 'Ý' => 'Y', + 'Ÿ' => 'Y', + 'Ŷ' => 'Y', + 'ý' => 'y', + 'ÿ' => 'y', + 'ŷ' => 'y', + ], + // Greek(lish) (Elláda) + 'el__greeklish' => [ + 'ΑΥ' => 'AU', + 'ΑΎ' => 'AU', + 'Αυ' => 'Au', + 'Αύ' => 'Au', + 'ΕΊ' => 'EI', + 'ΕΙ' => 'EI', + 'Ει' => 'EI', + 'ΕΥ' => 'EU', + 'ΕΎ' => 'EU', + 'Εί' => 'Ei', + 'Ευ' => 'Eu', + 'Εύ' => 'Eu', + 'ΟΙ' => 'OI', + 'ΟΊ' => 'OI', + 'ΟΥ' => 'OU', + 'ΟΎ' => 'OU', + 'Οι' => 'Oi', + 'Οί' => 'Oi', + 'Ου' => 'Ou', + 'Ού' => 'Ou', + 'ΥΙ' => 'YI', + 'ΎΙ' => 'YI', + 'Υι' => 'Yi', + 'Ύι' => 'Yi', + 'ΥΊ' => 'Yi', + 'Υί' => 'Yi', + 'αυ' => 'au', + 'αύ' => 'au', + 'εί' => 'ei', + 'ει' => 'ei', + 'ευ' => 'eu', + 'εύ' => 'eu', + 'οι' => 'oi', + 'οί' => 'oi', + 'ου' => 'ou', + 'ού' => 'ou', + 'υι' => 'yi', + 'ύι' => 'yi', + 'υί' => 'yi', + 'Α' => 'A', + 'Ά' => 'A', + 'Β' => 'B', + 'Δ' => 'D', + 'Ε' => 'E', + 'Έ' => 'E', + 'Φ' => 'F', + 'Γ' => 'G', + 'Η' => 'H', + 'Ή' => 'H', + 'Ι' => 'I', + 'Ί' => 'I', + 'Ϊ' => 'I', + 'Κ' => 'K', + 'Ξ' => 'Ks', + 'Λ' => 'L', + 'Μ' => 'M', + 'Ν' => 'N', + 'Π' => 'N', + 'Ο' => 'O', + 'Ό' => 'O', + 'Ψ' => 'Ps', + 'Ρ' => 'R', + 'Σ' => 'S', + 'Τ' => 'T', + 'Θ' => 'Th', + 'Ω' => 'W', + 'Ώ' => 'W', + 'Χ' => 'X', + 'ϒ' => 'Y', + 'Υ' => 'Y', + 'Ύ' => 'Y', + 'Ϋ' => 'Y', + 'Ζ' => 'Z', + 'α' => 'a', + 'ά' => 'a', + 'β' => 'b', + 'δ' => 'd', + 'ε' => 'e', + 'έ' => 'e', + 'φ' => 'f', + 'γ' => 'g', + 'η' => 'h', + 'ή' => 'h', + 'ι' => 'i', + 'ί' => 'i', + 'ϊ' => 'i', + 'ΐ' => 'i', + 'κ' => 'k', + 'ξ' => 'ks', + 'λ' => 'l', + 'μ' => 'm', + 'ν' => 'n', + 'ο' => 'o', + 'ό' => 'o', + 'π' => 'p', + 'ψ' => 'ps', + 'ρ' => 'r', + 'σ' => 's', + 'ς' => 's', + 'τ' => 't', + 'ϑ' => 'th', + 'θ' => 'th', + 'ϐ' => 'v', + 'ω' => 'w', + 'ώ' => 'w', + 'χ' => 'x', + 'υ' => 'y', + 'ύ' => 'y', + 'ΰ' => 'y', + 'ϋ' => 'y', + 'ζ' => 'z', + ], + // Greek (Elláda) + 'el' => [ + 'ΑΥ' => 'AU', + 'Αυ' => 'Au', + 'ΟΥ' => 'U', + 'Ου' => 'u', + 'ΕΥ' => 'EF', + 'Ευ' => 'Ef', + 'ΕΙ' => 'I', + 'Ει' => 'I', + 'ΟΙ' => 'I', + 'Οι' => 'I', + 'ΥΙ' => 'I', + 'Υι' => 'I', + 'ΑΎ' => 'AU', + 'Αύ' => 'Au', + 'ΟΎ' => 'OU', + 'Ού' => 'Ou', + 'ΕΎ' => 'EU', + 'Εύ' => 'Eu', + 'ΕΊ' => 'I', + 'Εί' => 'I', + 'ΟΊ' => 'I', + 'Οί' => 'I', + 'ΎΙ' => 'I', + 'Ύι' => 'I', + 'ΥΊ' => 'I', + 'Υί' => 'I', + 'αυ' => 'au', + 'ου' => 'u', + 'ευ' => 'ef', + 'ει' => 'i', + 'οι' => 'i', + 'υι' => 'i', + 'αύ' => 'au', + 'ού' => 'ou', + 'εύ' => 'eu', + 'εί' => 'i', + 'οί' => 'i', + 'ύι' => 'i', + 'υί' => 'i', + 'α' => 'a', + 'β' => 'v', + 'γ' => 'gh', + 'δ' => 'd', + 'ε' => 'e', + 'ζ' => 'z', + 'η' => 'i', + 'θ' => 'th', + 'ι' => 'i', + 'κ' => 'k', + 'λ' => 'l', + 'μ' => 'm', + 'ν' => 'n', + 'ξ' => 'ks', + 'ο' => 'o', + 'π' => 'p', + 'ρ' => 'r', + 'σ' => 's', + 'τ' => 't', + 'υ' => 'i', + 'φ' => 'f', + 'χ' => 'kh', + 'ψ' => 'ps', + 'ω' => 'o', + 'ά' => 'a', + 'έ' => 'e', + 'ί' => 'i', + 'ό' => 'o', + 'ϒ' => 'Y', + 'ύ' => 'y', + 'ή' => 'i', + 'ώ' => 'w', + 'ς' => 's', + 'ϊ' => 'i', + 'ΰ' => 'y', + 'ϋ' => 'y', + 'ΐ' => 'i', + 'Α' => 'A', + 'Β' => 'B', + 'Γ' => 'G', + 'Δ' => 'D', + 'Ε' => 'E', + 'Ζ' => 'Z', + 'Η' => 'H', + 'Θ' => 'Th', + 'Ι' => 'I', + 'Κ' => 'K', + 'Λ' => 'L', + 'Μ' => 'M', + 'Ν' => 'N', + 'Ξ' => 'Ks', + 'Ο' => 'O', + 'Π' => 'P', + 'Ρ' => 'R', + 'Σ' => 'S', + 'Τ' => 'T', + 'Υ' => 'Y', + 'Φ' => 'F', + 'Χ' => 'X', + 'Ψ' => 'Ps', + 'Ω' => 'O', + 'Ά' => 'A', + 'Έ' => 'E', + 'Ί' => 'I', + 'Ό' => 'O', + 'Ύ' => 'Y', + 'Ή' => 'I', + 'Ώ' => 'W', + 'Ϊ' => 'I', + 'Ϋ' => 'Y', + 'ϐ' => 'v', + 'ϑ' => 'th', + ], + // Hindi + 'hi' => [ + 'अ' => 'a', + 'आ' => 'aa', + 'ए' => 'e', + 'ई' => 'ii', + 'ऍ' => 'ei', + 'ऎ' => 'ae', + 'ऐ' => 'ai', + 'इ' => 'i', + 'ओ' => 'o', + 'ऑ' => 'oi', + 'ऒ' => 'oii', + 'ऊ' => 'uu', + 'औ' => 'ou', + 'उ' => 'u', + 'ब' => 'B', + 'भ' => 'Bha', + 'च' => 'Ca', + 'छ' => 'Chha', + 'ड' => 'Da', + 'ढ' => 'Dha', + 'फ' => 'Fa', + 'फ़' => 'Fi', + 'ग' => 'Ga', + 'घ' => 'Gha', + 'ग़' => 'Ghi', + 'ह' => 'Ha', + 'ज' => 'Ja', + 'झ' => 'Jha', + 'क' => 'Ka', + 'ख' => 'Kha', + 'ख़' => 'Khi', + 'ल' => 'L', + 'ळ' => 'Li', + 'ऌ' => 'Li', + 'ऴ' => 'Lii', + 'ॡ' => 'Lii', + 'म' => 'Ma', + 'न' => 'Na', + 'ङ' => 'Na', + 'ञ' => 'Nia', + 'ण' => 'Nae', + 'ऩ' => 'Ni', + 'ॐ' => 'oms', + 'प' => 'Pa', + 'क़' => 'Qi', + 'र' => 'Ra', + 'ऋ' => 'Ri', + 'ॠ' => 'Ri', + 'ऱ' => 'Ri', + 'स' => 'Sa', + 'श' => 'Sha', + 'ष' => 'Shha', + 'ट' => 'Ta', + 'त' => 'Ta', + 'ठ' => 'Tha', + 'द' => 'Tha', + 'थ' => 'Tha', + 'ध' => 'Thha', + 'ड़' => 'ugDha', + 'ढ़' => 'ugDhha', + 'व' => 'Va', + 'य' => 'Ya', + 'य़' => 'Yi', + 'ज़' => 'Za', + ], + // Armenian + 'hy' => [ + 'Ա' => 'A', + 'Բ' => 'B', + 'Գ' => 'G', + 'Դ' => 'D', + 'Ե' => 'E', + 'Զ' => 'Z', + 'Է' => 'E', + 'Ը' => 'Y', + 'Թ' => 'Th', + 'Ժ' => 'Zh', + 'Ի' => 'I', + 'Լ' => 'L', + 'Խ' => 'Kh', + 'Ծ' => 'Ts', + 'Կ' => 'K', + 'Հ' => 'H', + 'Ձ' => 'Dz', + 'Ղ' => 'Gh', + 'Ճ' => 'Tch', + 'Մ' => 'M', + 'Յ' => 'Y', + 'Ն' => 'N', + 'Շ' => 'Sh', + 'Ո' => 'Vo', + 'Չ' => 'Ch', + 'Պ' => 'P', + 'Ջ' => 'J', + 'Ռ' => 'R', + 'Ս' => 'S', + 'Վ' => 'V', + 'Տ' => 'T', + 'Ր' => 'R', + 'Ց' => 'C', + 'Ւ' => 'u', + 'Փ' => 'Ph', + 'Ք' => 'Q', + 'և' => 'ev', + 'Օ' => 'O', + 'Ֆ' => 'F', + 'ա' => 'a', + 'բ' => 'b', + 'գ' => 'g', + 'դ' => 'd', + 'ե' => 'e', + 'զ' => 'z', + 'է' => 'e', + 'ը' => 'y', + 'թ' => 'th', + 'ժ' => 'zh', + 'ի' => 'i', + 'լ' => 'l', + 'խ' => 'kh', + 'ծ' => 'ts', + 'կ' => 'k', + 'հ' => 'h', + 'ձ' => 'dz', + 'ղ' => 'gh', + 'ճ' => 'tch', + 'մ' => 'm', + 'յ' => 'y', + 'ն' => 'n', + 'շ' => 'sh', + 'ո' => 'vo', + 'չ' => 'ch', + 'պ' => 'p', + 'ջ' => 'j', + 'ռ' => 'r', + 'ս' => 's', + 'վ' => 'v', + 'տ' => 't', + 'ր' => 'r', + 'ց' => 'c', + 'ւ' => 'u', + 'փ' => 'ph', + 'ք' => 'q', + 'օ' => 'o', + 'ֆ' => 'f', + ], + // Swedish + 'sv' => [ + 'Ä' => 'A', + 'ä' => 'a', + 'Å' => 'A', + 'å' => 'a', + 'Ö' => 'O', + 'ö' => 'o', + ], + // Turkmen + 'tk' => [ + 'Ç' => 'C', + 'Ä' => 'A', + 'Ž' => 'Z', + 'Ň' => 'N', + 'Ö' => 'O', + 'Ş' => 'S', + 'Ü' => 'U', + 'Ý' => 'Y', + 'ç' => 'c', + 'ä' => 'a', + 'ž' => 'z', + 'ň' => 'n', + 'ö' => 'o', + 'ş' => 's', + 'ü' => 'u', + 'ý' => 'y', + ], + // Turkish + 'tr' => [ + 'ň' => 'n', + 'Ň' => 'N', + 'ş' => 's', + 'Ş' => 'S', + 'ı' => 'i', + 'İ' => 'I', + 'ç' => 'c', + 'Ç' => 'C', + 'ä' => 'a', + 'Ä' => 'A', + 'ü' => 'u', + 'Ü' => 'U', + 'ö' => 'o', + 'Ö' => 'O', + 'ğ' => 'g', + 'Ğ' => 'G', + 'ý' => 'y', + 'Ý' => 'Y', + 'ž' => 'z', + 'Ž' => 'Z', + ], + // Bulgarian + 'bg' => [ + 'ьо' => 'yo', + 'А' => 'A', + 'Б' => 'B', + 'В' => 'V', + 'Г' => 'G', + 'Д' => 'D', + 'Е' => 'E', + 'Ж' => 'Zh', + 'З' => 'Z', + 'И' => 'I', + 'Й' => 'Y', + 'К' => 'K', + 'Л' => 'L', + 'М' => 'M', + 'Н' => 'N', + 'О' => 'O', + 'П' => 'P', + 'Р' => 'R', + 'С' => 'S', + 'Т' => 'T', + 'У' => 'U', + 'Ф' => 'F', + 'Х' => 'H', + 'Ц' => 'C', + 'Ч' => 'Ch', + 'Ш' => 'Sh', + 'Щ' => 'Sht', + 'Ъ' => 'A', + 'Ь' => '', + 'Ю' => 'Yu', + 'Я' => 'Ya', + 'а' => 'a', + 'б' => 'b', + 'в' => 'v', + 'г' => 'g', + 'д' => 'd', + 'е' => 'e', + 'ж' => 'zh', + 'з' => 'z', + 'и' => 'i', + 'й' => 'y', + 'к' => 'k', + 'л' => 'l', + 'м' => 'm', + 'н' => 'n', + 'о' => 'o', + 'п' => 'p', + 'р' => 'r', + 'с' => 's', + 'т' => 't', + 'у' => 'u', + 'ф' => 'f', + 'х' => 'h', + 'ц' => 'c', + 'ч' => 'ch', + 'ш' => 'sh', + 'щ' => 'sht', + 'ъ' => 'a', + 'ь' => '', + 'ю' => 'yu', + 'я' => 'ya', + ], + // Hungarian + 'hu' => [ + 'Á' => 'A', + 'Ē' => 'E', + 'É' => 'E', + 'Í' => 'I', + 'Ó' => 'O', + 'Ö' => 'O', + 'Ő' => 'O', + 'Ú' => 'U', + 'Ü' => 'U', + 'Ű' => 'U', + 'á' => 'a', + 'ē' => 'e', + 'é' => 'e', + 'í' => 'i', + 'ó' => 'o', + 'ö' => 'o', + 'ő' => 'o', + 'ú' => 'u', + 'ü' => 'u', + 'ű' => 'u', + ], + // Myanmar (Burmese) + 'my' => [ + 'န်ုပ်' => 'nub', + 'ောင်' => 'aung', + 'ိုက်' => 'aik', + 'ိုဒ်' => 'ok', + 'ိုင်' => 'aing', + 'ိုလ်' => 'ol', + 'ေါင်' => 'aung', + 'သြော' => 'aw', + 'ောက်' => 'auk', + 'ိတ်' => 'eik', + 'ုတ်' => 'ok', + 'ုန်' => 'on', + 'ေတ်' => 'it', + 'ုဒ်' => 'ait', + 'ာန်' => 'an', + 'ိန်' => 'ein', + 'ွတ်' => 'ut', + 'ေါ်' => 'aw', + 'ွန်' => 'un', + 'ိပ်' => 'eik', + 'ုပ်' => 'ok', + 'ွပ်' => 'ut', + 'ိမ်' => 'ein', + 'ုမ်' => 'on', + 'ော်' => 'aw', + 'ွမ်' => 'un', + 'က်' => 'et', + 'ေါ' => 'aw', + 'ော' => 'aw', + 'ျွ' => 'ywa', + 'ြွ' => 'yw', + 'ို' => 'o', + 'ုံ' => 'on', + 'တ်' => 'at', + 'င်' => 'in', + 'ည်' => 'i', + 'ဒ်' => 'd', + 'န်' => 'an', + 'ပ်' => 'at', + 'မ်' => 'an', + 'စျ' => 'za', + 'ယ်' => 'e', + 'ဉ်' => 'in', + 'စ်' => 'it', + 'ိံ' => 'ein', + 'ဲ' => 'e', + 'း' => '', + 'ာ' => 'a', + 'ါ' => 'a', + 'ေ' => 'e', + 'ံ' => 'an', + 'ိ' => 'i', + 'ီ' => 'i', + 'ု' => 'u', + 'ူ' => 'u', + '်' => 'at', + '္' => '', + '့' => '', + 'က' => 'k', + '၉' => '9', + 'တ' => 't', + 'ရ' => 'ya', + 'ယ' => 'y', + 'မ' => 'm', + 'ဘ' => 'ba', + 'ဗ' => 'b', + 'ဖ' => 'pa', + 'ပ' => 'p', + 'န' => 'n', + 'ဓ' => 'da', + 'ဒ' => 'd', + 'ထ' => 'ta', + 'ဏ' => 'na', + 'ဝ' => 'w', + 'ဎ' => 'da', + 'ဍ' => 'd', + 'ဌ' => 'ta', + 'ဋ' => 't', + 'ည' => 'ny', + 'ဇ' => 'z', + 'ဆ' => 'sa', + 'စ' => 's', + 'င' => 'ng', + 'ဃ' => 'ga', + 'ဂ' => 'g', + 'လ' => 'l', + 'သ' => 'th', + '၈' => '8', + 'ဩ' => 'aw', + 'ခ' => 'kh', + '၆' => '6', + '၅' => '5', + '၄' => '4', + '၃' => '3', + '၂' => '2', + '၁' => '1', + '၀' => '0', + '၌' => 'hnaik', + '၍' => 'ywae', + 'ဪ' => 'aw', + 'ဦ' => '-u', + 'ဟ' => 'h', + 'ဉ' => 'u', + 'ဤ' => '-i', + 'ဣ' => 'i', + '၏' => '-e', + 'ဧ' => 'e', + 'ှ' => 'h', + 'ွ' => 'w', + 'ျ' => 'ya', + 'ြ' => 'y', + 'အ' => 'a', + 'ဠ' => 'la', + '၇' => '7', + ], + // Croatian (Hrvatska) + 'hr' => [ + 'DŽ' => 'DZ', + 'Dž' => 'Dz', + 'dž' => 'dz', + 'DZ' => 'DZ', + 'Dz' => 'Dz', + 'dz' => 'dz', + 'IJ' => 'IJ', + 'ij' => 'ij', + 'LJ' => 'LJ', + 'Lj' => 'Lj', + 'lj' => 'lj', + 'NJ' => 'NJ', + 'Nj' => 'Nj', + 'nj' => 'nj', + 'ž' => 'z', + 'Ž' => 'Z', + 'đ' => 'dj', + 'Đ' => 'Dj', + 'č' => 'c', + 'Č' => 'C', + 'ć' => 'c', + 'Ć' => 'C', + 'š' => 's', + 'Š' => 'S', + ], + // Finnish + 'fi' => [ + 'Ä' => 'A', + 'Ö' => 'O', + 'ä' => 'a', + 'ö' => 'o', + ], + // Georgian (Kartvelian) + 'ka' => [ + 'ა' => 'a', + 'ბ' => 'b', + 'გ' => 'g', + 'დ' => 'd', + 'ე' => 'e', + 'ვ' => 'v', + 'ზ' => 'z', + 'თ' => 't', + 'ი' => 'i', + 'კ' => 'k', + 'ლ' => 'l', + 'მ' => 'm', + 'ნ' => 'n', + 'ო' => 'o', + 'პ' => 'p', + 'ჟ' => 'zh', + 'რ' => 'r', + 'ს' => 's', + 'ტ' => 't', + 'უ' => 'u', + 'ფ' => 'f', + 'ქ' => 'q', + 'ღ' => 'gh', + 'ყ' => 'y', + 'შ' => 'sh', + 'ჩ' => 'ch', + 'ც' => 'ts', + 'ძ' => 'dz', + 'წ' => 'ts', + 'ჭ' => 'ch', + 'ხ' => 'kh', + 'ჯ' => 'j', + 'ჰ' => 'h', + ], + // Russian + 'ru' => [ + 'А' => 'A', + 'а' => 'a', + 'Б' => 'B', + 'б' => 'b', + 'В' => 'V', + 'в' => 'v', + 'Г' => 'G', + 'г' => 'g', + 'Д' => 'D', + 'д' => 'd', + 'Е' => 'E', + 'е' => 'e', + 'Ё' => 'Yo', + 'ё' => 'yo', + 'Ж' => 'Zh', + 'ж' => 'zh', + 'З' => 'Z', + 'з' => 'z', + 'И' => 'I', + 'и' => 'i', + 'Й' => 'Y', + 'й' => 'y', + 'К' => 'K', + 'к' => 'k', + 'Л' => 'L', + 'л' => 'l', + 'М' => 'M', + 'м' => 'm', + 'Н' => 'N', + 'н' => 'n', + 'О' => 'O', + 'о' => 'o', + 'П' => 'P', + 'п' => 'p', + 'Р' => 'R', + 'р' => 'r', + 'С' => 'S', + 'с' => 's', + 'Т' => 'T', + 'т' => 't', + 'У' => 'U', + 'у' => 'u', + 'Ф' => 'F', + 'ф' => 'f', + 'Х' => 'H', + 'х' => 'h', + 'Ц' => 'Ts', + 'ц' => 'ts', + 'Ч' => 'Ch', + 'ч' => 'ch', + 'ш' => 'sh', + 'Ш' => 'Sh', + 'Щ' => 'Sch', + 'щ' => 'sch', + 'Ъ' => '', + 'ъ' => '', + 'Ы' => 'Y', + 'ы' => 'y', + 'Ь' => '', + 'ь' => '', + 'Э' => 'E', + 'э' => 'e', + 'Ю' => 'Yu', + 'ю' => 'yu', + 'Я' => 'Ya', + 'я' => 'ya', + ], + // Russian - GOST 7.79-2000(B) + // -> https://en.m.wikipedia.org/wiki/Romanization_of_Russian#content-collapsible-block-1 + 'ru__gost_2000_b' => [ + 'А' => 'A', + 'а' => 'a', + 'Б' => 'B', + 'б' => 'b', + 'В' => 'V', + 'в' => 'v', + 'Г' => 'G', + 'г' => 'g', + 'Д' => 'D', + 'д' => 'd', + 'Е' => 'E', + 'е' => 'e', + 'Ё' => 'Yo', + 'ё' => 'yo', + 'Ж' => 'Zh', + 'ж' => 'zh', + 'З' => 'Z', + 'з' => 'z', + 'И' => 'i', + 'и' => 'i', + 'Й' => 'i', + 'й' => 'i', + 'К' => 'K', + 'к' => 'k', + 'Л' => 'L', + 'л' => 'l', + 'М' => 'M', + 'м' => 'm', + 'Н' => 'N', + 'н' => 'n', + 'О' => 'O', + 'о' => 'o', + 'П' => 'P', + 'п' => 'p', + 'Р' => 'R', + 'р' => 'r', + 'С' => 'S', + 'с' => 's', + 'Т' => 'T', + 'т' => 't', + 'У' => 'U', + 'у' => 'u', + 'Ф' => 'F', + 'ф' => 'f', + 'Х' => 'X', + 'х' => 'x', + 'Ц' => 'Cz', + 'ц' => 'cz', + 'Ч' => 'Ch', + 'ч' => 'ch', + 'ш' => 'sh', + 'Ш' => 'Sh', + 'Щ' => 'Shh', + 'щ' => 'shh', + 'Ъ' => '', + 'ъ' => '', + 'Ы' => 'Y\'', + 'ы' => 'y\'', + 'Ь' => '', + 'ь' => '', + 'Э' => 'E\'', + 'э' => 'e\'', + 'Ю' => 'Yu', + 'ю' => 'yu', + 'Я' => 'Ya', + 'я' => 'ya', + 'І' => 'I', + 'і' => 'i', + 'Ѳ' => 'Fh', + 'ѳ' => 'fh', + 'Ѣ' => 'Ye', + 'ѣ' => 'ye', + 'Ѵ' => 'Yh', + 'ѵ' => 'yh', + 'Є' => '', + 'є' => '', + 'Ѥ' => '', + 'ѥ' => '', + 'Ѕ' => 'Js', + 'ѕ' => 'js', + 'Ꙋ' => '', + 'ꙋ' => '', + 'Ѡ' => '', + 'ѡ' => '', + 'Ѿ' => '', + 'ѿ' => '', + 'Ѫ' => '', + 'ѫ' => '', + 'Ѧ' => '', + 'ѧ' => '', + 'Ѭ' => '', + 'ѭ' => '', + 'Ѩ' => '', + 'ѩ' => '', + 'Ѯ' => '', + 'ѯ' => '', + 'Ѱ' => '', + 'ѱ' => '', + ], + // Russian - Passport (2013), ICAO + // -> https://en.m.wikipedia.org/wiki/Romanization_of_Russian#content-collapsible-block-1 + 'ru__passport_2013' => [ + 'А' => 'A', + 'а' => 'a', + 'Б' => 'B', + 'б' => 'b', + 'В' => 'V', + 'в' => 'v', + 'Г' => 'G', + 'г' => 'g', + 'Д' => 'D', + 'д' => 'd', + 'Е' => 'E', + 'е' => 'e', + 'Ё' => 'E', + 'ё' => 'e', + 'Ж' => 'Zh', + 'ж' => 'zh', + 'З' => 'Z', + 'з' => 'z', + 'И' => 'i', + 'и' => 'i', + 'Й' => 'i', + 'й' => 'i', + 'К' => 'K', + 'к' => 'k', + 'Л' => 'L', + 'л' => 'l', + 'М' => 'M', + 'м' => 'm', + 'Н' => 'N', + 'н' => 'n', + 'О' => 'O', + 'о' => 'o', + 'П' => 'P', + 'п' => 'p', + 'Р' => 'R', + 'р' => 'r', + 'С' => 'S', + 'с' => 's', + 'Т' => 'T', + 'т' => 't', + 'У' => 'U', + 'у' => 'u', + 'Ф' => 'F', + 'ф' => 'f', + 'Х' => 'Kh', + 'х' => 'kh', + 'Ц' => 'Ts', + 'ц' => 'ts', + 'Ч' => 'Ch', + 'ч' => 'ch', + 'ш' => 'sh', + 'Ш' => 'Sh', + 'Щ' => 'Shch', + 'щ' => 'shch', + 'Ъ' => 'Ie', + 'ъ' => 'ie', + 'Ы' => 'Y', + 'ы' => 'y', + 'Ь' => '', + 'ь' => '', + 'Э' => 'E', + 'э' => 'e', + 'Ю' => 'Iu', + 'ю' => 'iu', + 'Я' => 'Ia', + 'я' => 'ia', + 'І' => '', + 'і' => '', + 'Ѳ' => '', + 'ѳ' => '', + 'Ѣ' => '', + 'ѣ' => '', + 'Ѵ' => '', + 'ѵ' => '', + 'Є' => '', + 'є' => '', + 'Ѥ' => '', + 'ѥ' => '', + 'Ѕ' => '', + 'ѕ' => '', + 'Ꙋ' => '', + 'ꙋ' => '', + 'Ѡ' => '', + 'ѡ' => '', + 'Ѿ' => '', + 'ѿ' => '', + 'Ѫ' => '', + 'ѫ' => '', + 'Ѧ' => '', + 'ѧ' => '', + 'Ѭ' => '', + 'ѭ' => '', + 'Ѩ' => '', + 'ѩ' => '', + 'Ѯ' => '', + 'ѯ' => '', + 'Ѱ' => '', + 'ѱ' => '', + ], + // Ukrainian + // -> https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF?lang=en + 'uk' => [ + 'Г' => 'H', + 'г' => 'h', + 'Ґ' => 'G', + 'ґ' => 'g', + 'Є' => 'Ye', + 'є' => 'ye', + 'И' => 'Y', + 'и' => 'y', + 'І' => 'I', + 'і' => 'i', + 'Ї' => 'Yi', + 'ї' => 'yi', + 'Й' => 'Y', + 'й' => 'y', + 'Х' => 'Kh', + 'х' => 'kh', + 'Ц' => 'Ts', + 'ц' => 'ts', + 'Ч' => 'Ch', + 'ч' => 'ch', + 'Ш' => 'Sh', + 'ш' => 'sh', + 'Щ' => 'Shch', + 'щ' => 'shch', + ], + // Kazakh + 'kk' => [ + 'Ә' => 'A', + 'Ғ' => 'G', + 'Қ' => 'Q', + 'Ң' => 'N', + 'Ө' => 'O', + 'Ұ' => 'U', + 'Ү' => 'U', + 'Һ' => 'H', + 'ә' => 'a', + 'ғ' => 'g', + 'қ' => 'q', + 'ң' => 'n', + 'ө' => 'o', + 'ұ' => 'u', + 'ү' => 'u', + 'һ' => 'h', + ], + // Czech + 'cs' => [ + 'á' => 'a', + 'Á' => 'A', + 'č' => 'c', + 'Č' => 'C', + 'ď' => 'd', + 'Ď' => 'D', + 'é' => 'e', + 'É' => 'E', + 'ě' => 'e', + 'Ě' => 'E', + 'í' => 'i', + 'Í' => 'I', + 'ň' => 'n', + 'Ň' => 'N', + 'ó' => 'o', + 'Ó' => 'O', + 'ř' => 'r', + 'Ř' => 'R', + 'š' => 's', + 'Š' => 'S', + 'ť' => 't', + 'Ť' => 'T', + 'ú' => 'u', + 'Ú' => 'U', + 'ů' => 'u', + 'Ů' => 'U', + 'ý' => 'y', + 'Ý' => 'Y', + 'ž' => 'z', + 'Ž' => 'Z', + ], + // Danish + 'da' => [ + 'Æ' => 'Ae', + 'æ' => 'ae', + 'Ø' => 'Oe', + 'ø' => 'oe', + 'Å' => 'Aa', + 'å' => 'aa', + 'É' => 'E', + 'é' => 'e', + ], + // Polish + 'pl' => [ + 'ą' => 'a', + 'ć' => 'c', + 'ę' => 'e', + 'ł' => 'l', + 'ń' => 'n', + 'ó' => 'o', + 'ś' => 's', + 'ź' => 'z', + 'ż' => 'z', + 'Ą' => 'A', + 'Ć' => 'C', + 'Ę' => 'E', + 'Ł' => 'L', + 'Ń' => 'N', + 'Ó' => 'O', + 'Ś' => 'S', + 'Ź' => 'Z', + 'Ż' => 'Z', + ], + // Romanian + 'ro' => [ + 'ă' => 'a', + 'â' => 'a', + 'Ă' => 'A', + 'Â' => 'A', + 'î' => 'i', + 'Î' => 'I', + 'ș' => 's', + 'ş' => 's', + 'Ş' => 'S', + 'Ș' => 'S', + 'ț' => 't', + 'ţ' => 't', + 'Ţ' => 'T', + 'Ț' => 'T', + ], + // Esperanto + 'eo' => [ + 'ĉ' => 'cx', + 'ĝ' => 'gx', + 'ĥ' => 'hx', + 'ĵ' => 'jx', + 'ŝ' => 'sx', + 'ŭ' => 'ux', + 'Ĉ' => 'CX', + 'Ĝ' => 'GX', + 'Ĥ' => 'HX', + 'Ĵ' => 'JX', + 'Ŝ' => 'SX', + 'Ŭ' => 'UX', + ], + // Estonian + 'et' => [ + 'Š' => 'S', + 'Ž' => 'Z', + 'Õ' => 'O', + 'Ä' => 'A', + 'Ö' => 'O', + 'Ü' => 'U', + 'š' => 's', + 'ž' => 'z', + 'õ' => 'o', + 'ä' => 'a', + 'ö' => 'o', + 'ü' => 'u', + ], + // Latvian + 'lv' => [ + 'ā' => 'a', + 'č' => 'c', + 'ē' => 'e', + 'ģ' => 'g', + 'ī' => 'i', + 'ķ' => 'k', + 'ļ' => 'l', + 'ņ' => 'n', + 'š' => 's', + 'ū' => 'u', + 'ž' => 'z', + 'Ā' => 'A', + 'Č' => 'C', + 'Ē' => 'E', + 'Ģ' => 'G', + 'Ī' => 'i', + 'Ķ' => 'k', + 'Ļ' => 'L', + 'Ņ' => 'N', + 'Š' => 'S', + 'Ū' => 'u', + 'Ž' => 'Z', + ], + // Lithuanian + 'lt' => [ + 'ą' => 'a', + 'č' => 'c', + 'ę' => 'e', + 'ė' => 'e', + 'į' => 'i', + 'š' => 's', + 'ų' => 'u', + 'ū' => 'u', + 'ž' => 'z', + 'Ą' => 'A', + 'Č' => 'C', + 'Ę' => 'E', + 'Ė' => 'E', + 'Į' => 'I', + 'Š' => 'S', + 'Ų' => 'U', + 'Ū' => 'U', + 'Ž' => 'Z', + ], + // Norwegian + 'no' => [ + 'Æ' => 'AE', + 'æ' => 'ae', + 'Ø' => 'OE', + 'ø' => 'oe', + 'Å' => 'AA', + 'å' => 'aa', + ], + // Vietnamese + 'vi' => [ + 'Á' => 'A', + 'À' => 'A', + 'Ả' => 'A', + 'Ã' => 'A', + 'Ạ' => 'A', + 'Ă' => 'A', + 'Ắ' => 'A', + 'Ằ' => 'A', + 'Ẳ' => 'A', + 'Ẵ' => 'A', + 'Ặ' => 'A', + 'Â' => 'A', + 'Ấ' => 'A', + 'Ầ' => 'A', + 'Ẩ' => 'A', + 'Ẫ' => 'A', + 'Ậ' => 'A', + 'á' => 'a', + 'à' => 'a', + 'ả' => 'a', + 'ã' => 'a', + 'ạ' => 'a', + 'ă' => 'a', + 'ắ' => 'a', + 'ằ' => 'a', + 'ẳ' => 'a', + 'ẵ' => 'a', + 'ặ' => 'a', + 'â' => 'a', + 'ấ' => 'a', + 'ầ' => 'a', + 'ẩ' => 'a', + 'ẫ' => 'a', + 'ậ' => 'a', + 'É' => 'E', + 'È' => 'E', + 'Ẻ' => 'E', + 'Ẽ' => 'E', + 'Ẹ' => 'E', + 'Ê' => 'E', + 'Ế' => 'E', + 'Ề' => 'E', + 'Ể' => 'E', + 'Ễ' => 'E', + 'Ệ' => 'E', + 'é' => 'e', + 'è' => 'e', + 'ẻ' => 'e', + 'ẽ' => 'e', + 'ẹ' => 'e', + 'ê' => 'e', + 'ế' => 'e', + 'ề' => 'e', + 'ể' => 'e', + 'ễ' => 'e', + 'ệ' => 'e', + 'Í' => 'I', + 'Ì' => 'I', + 'Ỉ' => 'I', + 'Ĩ' => 'I', + 'Ị' => 'I', + 'í' => 'i', + 'ì' => 'i', + 'ỉ' => 'i', + 'ĩ' => 'i', + 'ị' => 'i', + 'Ó' => 'O', + 'Ò' => 'O', + 'Ỏ' => 'O', + 'Õ' => 'O', + 'Ọ' => 'O', + 'Ô' => 'O', + 'Ố' => 'O', + 'Ồ' => 'O', + 'Ổ' => 'O', + 'Ỗ' => 'O', + 'Ộ' => 'O', + 'Ơ' => 'O', + 'Ớ' => 'O', + 'Ờ' => 'O', + 'Ở' => 'O', + 'Ỡ' => 'O', + 'Ợ' => 'O', + 'ó' => 'o', + 'ò' => 'o', + 'ỏ' => 'o', + 'õ' => 'o', + 'ọ' => 'o', + 'ô' => 'o', + 'ố' => 'o', + 'ồ' => 'o', + 'ổ' => 'o', + 'ỗ' => 'o', + 'ộ' => 'o', + 'ơ' => 'o', + 'ớ' => 'o', + 'ờ' => 'o', + 'ở' => 'o', + 'ỡ' => 'o', + 'ợ' => 'o', + 'Ú' => 'U', + 'Ù' => 'U', + 'Ủ' => 'U', + 'Ũ' => 'U', + 'Ụ' => 'U', + 'Ư' => 'U', + 'Ứ' => 'U', + 'Ừ' => 'U', + 'Ử' => 'U', + 'Ữ' => 'U', + 'Ự' => 'U', + 'ú' => 'u', + 'ù' => 'u', + 'ủ' => 'u', + 'ũ' => 'u', + 'ụ' => 'u', + 'ư' => 'u', + 'ứ' => 'u', + 'ừ' => 'u', + 'ử' => 'u', + 'ữ' => 'u', + 'ự' => 'u', + 'Ý' => 'Y', + 'Ỳ' => 'Y', + 'Ỷ' => 'Y', + 'Ỹ' => 'Y', + 'Ỵ' => 'Y', + 'ý' => 'y', + 'ỳ' => 'y', + 'ỷ' => 'y', + 'ỹ' => 'y', + 'ỵ' => 'y', + 'Đ' => 'D', + 'đ' => 'd', + ], + // Persian (Farsi) + 'fa' => [ + 'ا' => 'a', + 'ب' => 'b', + 'پ' => 'p', + 'ت' => 't', + 'ث' => 's', + 'ج' => 'j', + 'چ' => 'ch', + 'ح' => 'h', + 'خ' => 'kh', + 'د' => 'd', + 'ذ' => 'z', + 'ر' => 'r', + 'ز' => 'z', + 'س' => 's', + 'ش' => 'sh', + 'ص' => 's', + 'ض' => 'z', + 'ط' => 't', + 'ظ' => 'z', + 'ع' => 'a', + 'غ' => 'gh', + 'ف' => 'f', + 'ق' => 'gh', + 'ک' => 'k', + 'گ' => 'g', + 'ل' => 'l', + 'ژ' => 'zh', + 'ك' => 'k', + 'م' => 'm', + 'ن' => 'n', + 'ه' => 'h', + 'و' => 'o', + 'ی' => 'y', + 'آ' => 'a', + '٠' => '0', + '١' => '1', + '٢' => '2', + '٣' => '3', + '٤' => '4', + '٥' => '5', + '٦' => '6', + '٧' => '7', + '٨' => '8', + '٩' => '9', + ], + // Arabic + 'ar' => [ + 'أ' => 'a', + 'ب' => 'b', + 'ت' => 't', + 'ث' => 'th', + 'ج' => 'g', + 'ح' => 'h', + 'خ' => 'kh', + 'د' => 'd', + 'ذ' => 'th', + 'ر' => 'r', + 'ز' => 'z', + 'س' => 's', + 'ش' => 'sh', + 'ص' => 's', + 'ض' => 'd', + 'ط' => 't', + 'ظ' => 'th', + 'ع' => 'aa', + 'غ' => 'gh', + 'ف' => 'f', + 'ق' => 'k', + 'ك' => 'k', + 'ل' => 'l', + 'م' => 'm', + 'ن' => 'n', + 'ه' => 'h', + 'و' => 'o', + 'ي' => 'y', + 'ا' => 'a', + 'إ' => 'a', + 'آ' => 'a', + 'ؤ' => 'o', + 'ئ' => 'y', + 'ء' => 'aa', + '٠' => '0', + '١' => '1', + '٢' => '2', + '٣' => '3', + '٤' => '4', + '٥' => '5', + '٦' => '6', + '٧' => '7', + '٨' => '8', + '٩' => '9', + ], + // Serbian + 'sr' => [ + 'đ' => 'dj', + 'ž' => 'z', + 'ć' => 'c', + 'č' => 'c', + 'š' => 's', + 'Đ' => 'Dj', + 'Ž' => 'Z', + 'Ć' => 'C', + 'Č' => 'C', + 'Š' => 'S', + 'а' => 'a', + 'б' => 'b', + 'в' => 'v', + 'г' => 'g', + 'д' => 'd', + 'ђ' => 'dj', + 'е' => 'e', + 'ж' => 'z', + 'з' => 'z', + 'и' => 'i', + 'ј' => 'j', + 'к' => 'k', + 'л' => 'l', + 'љ' => 'lj', + 'м' => 'm', + 'н' => 'n', + 'њ' => 'nj', + 'о' => 'o', + 'п' => 'p', + 'р' => 'r', + 'с' => 's', + 'т' => 't', + 'ћ' => 'c', + 'у' => 'u', + 'ф' => 'f', + 'х' => 'h', + 'ц' => 'c', + 'ч' => 'c', + 'џ' => 'dz', + 'ш' => 's', + 'А' => 'A', + 'Б' => 'B', + 'В' => 'V', + 'Г' => 'G', + 'Д' => 'D', + 'Ђ' => 'Dj', + 'Е' => 'E', + 'Ж' => 'Z', + 'З' => 'Z', + 'И' => 'I', + 'Ј' => 'j', + 'К' => 'K', + 'Л' => 'L', + 'Љ' => 'Lj', + 'М' => 'M', + 'Н' => 'N', + 'Њ' => 'Nj', + 'О' => 'O', + 'П' => 'P', + 'Р' => 'R', + 'С' => 'S', + 'Т' => 'T', + 'Ћ' => 'C', + 'У' => 'U', + 'Ф' => 'F', + 'Х' => 'H', + 'Ц' => 'C', + 'Ч' => 'C', + 'Џ' => 'Dz', + 'Ш' => 'S', + ], + // Serbian - Cyrillic + 'sr__cyr' => [ + 'а' => 'a', + 'б' => 'b', + 'в' => 'v', + 'г' => 'g', + 'д' => 'd', + 'ђ' => 'dj', + 'е' => 'e', + 'ж' => 'z', + 'з' => 'z', + 'и' => 'i', + 'ј' => 'j', + 'к' => 'k', + 'л' => 'l', + 'љ' => 'lj', + 'м' => 'm', + 'н' => 'n', + 'њ' => 'nj', + 'о' => 'o', + 'п' => 'p', + 'р' => 'r', + 'с' => 's', + 'т' => 't', + 'ћ' => 'c', + 'у' => 'u', + 'ф' => 'f', + 'х' => 'h', + 'ц' => 'c', + 'ч' => 'c', + 'џ' => 'dz', + 'ш' => 's', + 'А' => 'A', + 'Б' => 'B', + 'В' => 'V', + 'Г' => 'G', + 'Д' => 'D', + 'Ђ' => 'Dj', + 'Е' => 'E', + 'Ж' => 'Z', + 'З' => 'Z', + 'И' => 'I', + 'Ј' => 'j', + 'К' => 'K', + 'Л' => 'L', + 'Љ' => 'Lj', + 'М' => 'M', + 'Н' => 'N', + 'Њ' => 'Nj', + 'О' => 'O', + 'П' => 'P', + 'Р' => 'R', + 'С' => 'S', + 'Т' => 'T', + 'Ћ' => 'C', + 'У' => 'U', + 'Ф' => 'F', + 'Х' => 'H', + 'Ц' => 'C', + 'Ч' => 'C', + 'Џ' => 'Dz', + 'Ш' => 'S', + ], + // Serbian - Latin + 'sr__lat' => [ + 'đ' => 'dj', + 'ž' => 'z', + 'ć' => 'c', + 'č' => 'c', + 'š' => 's', + 'Đ' => 'Dj', + 'Ž' => 'Z', + 'Ć' => 'C', + 'Č' => 'C', + 'Š' => 'S', + ], + // Azerbaijani + 'az' => [ + 'ç' => 'c', + 'ə' => 'e', + 'ğ' => 'g', + 'ı' => 'i', + 'ö' => 'o', + 'ş' => 's', + 'ü' => 'u', + 'Ç' => 'C', + 'Ə' => 'E', + 'Ğ' => 'G', + 'İ' => 'I', + 'Ö' => 'O', + 'Ş' => 'S', + 'Ü' => 'U', + ], + // Slovak + 'sk' => [ + 'á' => 'a', + 'ä' => 'a', + 'č' => 'c', + 'ď' => 'd', + 'é' => 'e', + 'í' => 'i', + 'ľ' => 'l', + 'ĺ' => 'l', + 'ň' => 'n', + 'ó' => 'o', + 'ô' => 'o', + 'ŕ' => 'r', + 'š' => 's', + 'ť' => 't', + 'ú' => 'u', + 'ý' => 'y', + 'ž' => 'z', + 'Á' => 'A', + 'Ä' => 'A', + 'Č' => 'C', + 'Ď' => 'D', + 'É' => 'E', + 'Í' => 'I', + 'Ľ' => 'L', + 'Ĺ' => 'L', + 'Ň' => 'N', + 'Ó' => 'O', + 'Ô' => 'O', + 'Ŕ' => 'R', + 'Š' => 'S', + 'Ť' => 'T', + 'Ú' => 'U', + 'Ý' => 'Y', + 'Ž' => 'Z', + ], + // French + 'fr' => [ + 'Æ' => 'AE', + 'æ' => 'ae', + 'Œ' => 'OE', + 'œ' => 'oe', + 'â' => 'a', + 'Â' => 'A', + 'à' => 'a', + 'À' => 'A', + 'ä' => 'a', + 'Ä' => 'A', + 'ç' => 'c', + 'Ç' => 'C', + 'é' => 'e', + 'É' => 'E', + 'ê' => 'e', + 'Ê' => 'E', + 'ë' => 'e', + 'Ë' => 'E', + 'è' => 'e', + 'È' => 'E', + 'ï' => 'i', + 'î' => 'i', + 'Ï' => 'I', + 'Î' => 'I', + 'ÿ' => 'y', + 'Ÿ' => 'Y', + 'ô' => 'o', + 'Ô' => 'O', + 'ö' => 'o', + 'Ö' => 'O', + 'û' => 'u', + 'Û' => 'U', + 'ù' => 'u', + 'Ù' => 'U', + 'ü' => 'u', + 'Ü' => 'U', + ], + // Austrian (French) + 'fr_at' => [ + 'ß' => 'sz', + 'ẞ' => 'SZ', + 'Æ' => 'AE', + 'æ' => 'ae', + 'Œ' => 'OE', + 'œ' => 'oe', + 'â' => 'a', + 'Â' => 'A', + 'à' => 'a', + 'À' => 'A', + 'ä' => 'a', + 'Ä' => 'A', + 'ç' => 'c', + 'Ç' => 'C', + 'é' => 'e', + 'É' => 'E', + 'ê' => 'e', + 'Ê' => 'E', + 'ë' => 'e', + 'Ë' => 'E', + 'è' => 'e', + 'È' => 'E', + 'ï' => 'i', + 'î' => 'i', + 'Ï' => 'I', + 'Î' => 'I', + 'ÿ' => 'y', + 'Ÿ' => 'Y', + 'ô' => 'o', + 'Ô' => 'O', + 'ö' => 'o', + 'Ö' => 'O', + 'û' => 'u', + 'Û' => 'U', + 'ù' => 'u', + 'Ù' => 'U', + 'ü' => 'u', + 'Ü' => 'U', + ], + // Switzerland (French) + 'fr_ch' => [ + 'ß' => 'ss', + 'ẞ' => 'SS', + 'Æ' => 'AE', + 'æ' => 'ae', + 'Œ' => 'OE', + 'œ' => 'oe', + 'â' => 'a', + 'Â' => 'A', + 'à' => 'a', + 'À' => 'A', + 'ä' => 'a', + 'Ä' => 'A', + 'ç' => 'c', + 'Ç' => 'C', + 'é' => 'e', + 'É' => 'E', + 'ê' => 'e', + 'Ê' => 'E', + 'ë' => 'e', + 'Ë' => 'E', + 'è' => 'e', + 'È' => 'E', + 'ï' => 'i', + 'î' => 'i', + 'Ï' => 'I', + 'Î' => 'I', + 'ÿ' => 'y', + 'Ÿ' => 'Y', + 'ô' => 'o', + 'Ô' => 'O', + 'ö' => 'o', + 'Ö' => 'O', + 'û' => 'u', + 'Û' => 'U', + 'ù' => 'u', + 'Ù' => 'U', + 'ü' => 'u', + 'Ü' => 'U', + ], + // German + 'de' => [ + 'Ä' => 'Ae', + 'Ö' => 'Oe', + 'Ü' => 'Ue', + 'ä' => 'ae', + 'ö' => 'oe', + 'ü' => 'ue', + 'ß' => 'ss', + 'ẞ' => 'SS', + ], + // Austrian (German) + 'de_at' => [ + 'Ä' => 'Ae', + 'Ö' => 'Oe', + 'Ü' => 'Ue', + 'ä' => 'ae', + 'ö' => 'oe', + 'ü' => 'ue', + 'ß' => 'sz', + 'ẞ' => 'SZ', + ], + // Switzerland (German) + 'de_ch' => [ + 'Ä' => 'Ae', + 'Ö' => 'Oe', + 'Ü' => 'Ue', + 'ä' => 'ae', + 'ö' => 'oe', + 'ü' => 'ue', + 'ß' => 'ss', + 'ẞ' => 'SS', + ], + // Bengali (Bangla) + 'bn' => [ + 'ভ্ল' => 'vl', + 'পশ' => 'psh', + 'ব্ধ' => 'bdh', + 'ব্জ' => 'bj', + 'ব্দ' => 'bd', + 'ব্ব' => 'bb', + 'ব্ল' => 'bl', + 'ভ' => 'v', + 'ব' => 'b', + 'চ্ঞ' => 'cNG', + 'চ্ছ' => 'cch', + 'চ্চ' => 'cc', + 'ছ' => 'ch', + 'চ' => 'c', + 'ধ্ন' => 'dhn', + 'ধ্ম' => 'dhm', + 'দ্ঘ' => 'dgh', + 'দ্ধ' => 'ddh', + 'দ্ভ' => 'dv', + 'দ্ম' => 'dm', + 'ড্ড' => 'DD', + 'ঢ' => 'Dh', + 'ধ' => 'dh', + 'দ্গ' => 'dg', + 'দ্দ' => 'dd', + 'ড' => 'D', + 'দ' => 'd', + '।' => '.', + 'ঘ্ন' => 'Ghn', + 'গ্ধ' => 'Gdh', + 'গ্ণ' => 'GN', + 'গ্ন' => 'Gn', + 'গ্ম' => 'Gm', + 'গ্ল' => 'Gl', + 'জ্ঞ' => 'jNG', + 'ঘ' => 'Gh', + 'গ' => 'g', + 'হ্ণ' => 'hN', + 'হ্ন' => 'hn', + 'হ্ম' => 'hm', + 'হ্ল' => 'hl', + 'হ' => 'h', + 'জ্ঝ' => 'jjh', + 'ঝ' => 'jh', + 'জ্জ' => 'jj', + 'জ' => 'j', + 'ক্ষ্ণ' => 'kxN', + 'ক্ষ্ম' => 'kxm', + 'ক্ষ' => 'ksh', + 'কশ' => 'ksh', + 'ক্ক' => 'kk', + 'ক্ট' => 'kT', + 'ক্ত' => 'kt', + 'ক্ল' => 'kl', + 'ক্স' => 'ks', + 'খ' => 'kh', + 'ক' => 'k', + 'ল্ভ' => 'lv', + 'ল্ধ' => 'ldh', + 'লখ' => 'lkh', + 'লঘ' => 'lgh', + 'লফ' => 'lph', + 'ল্ক' => 'lk', + 'ল্গ' => 'lg', + 'ল্ট' => 'lT', + 'ল্ড' => 'lD', + 'ল্প' => 'lp', + 'ল্ম' => 'lm', + 'ল্ল' => 'll', + 'ল্ব' => 'lb', + 'ল' => 'l', + 'ম্থ' => 'mth', + 'ম্ফ' => 'mf', + 'ম্ভ' => 'mv', + 'মপ্ল' => 'mpl', + 'ম্ন' => 'mn', + 'ম্প' => 'mp', + 'ম্ম' => 'mm', + 'ম্ল' => 'ml', + 'ম্ব' => 'mb', + 'ম' => 'm', + '০' => '0', + '১' => '1', + '২' => '2', + '৩' => '3', + '৪' => '4', + '৫' => '5', + '৬' => '6', + '৭' => '7', + '৮' => '8', + '৯' => '9', + 'ঙ্ক্ষ' => 'Ngkx', + 'ঞ্ছ' => 'nch', + 'ঙ্ঘ' => 'ngh', + 'ঙ্খ' => 'nkh', + 'ঞ্ঝ' => 'njh', + 'ঙ্গৌ' => 'ngOU', + 'ঙ্গৈ' => 'ngOI', + 'ঞ্চ' => 'nc', + 'ঙ্ক' => 'nk', + 'ঙ্ষ' => 'Ngx', + 'ঙ্গ' => 'ngo', + 'ঙ্ম' => 'Ngm', + 'ঞ্জ' => 'nj', + 'ন্ধ' => 'ndh', + 'ন্ঠ' => 'nTh', + 'ণ্ঠ' => 'NTh', + 'ন্থ' => 'nth', + 'ঙ্গা' => 'nga', + 'ঙ্গি' => 'ngi', + 'ঙ্গী' => 'ngI', + 'ঙ্গু' => 'ngu', + 'ঙ্গূ' => 'ngU', + 'ঙ্গে' => 'nge', + 'ঙ্গো' => 'ngO', + 'ণ্ঢ' => 'NDh', + 'নশ' => 'nsh', + 'ঙর' => 'Ngr', + 'ঞর' => 'NGr', + 'ংর' => 'ngr', + 'ঙ' => 'Ng', + 'ঞ' => 'NG', + 'ং' => 'ng', + 'ন্ন' => 'nn', + 'ণ্ণ' => 'NN', + 'ণ্ন' => 'Nn', + 'ন্ম' => 'nm', + 'ণ্ম' => 'Nm', + 'ন্দ' => 'nd', + 'ন্ট' => 'nT', + 'ণ্ট' => 'NT', + 'ন্ড' => 'nD', + 'ণ্ড' => 'ND', + 'ন্ত' => 'nt', + 'ন্স' => 'ns', + 'ন' => 'n', + 'ণ' => 'N', + 'ৈ' => 'OI', + 'ৌ' => 'OU', + 'ো' => 'O', + 'ঐ' => 'OI', + 'ঔ' => 'OU', + 'অ' => 'o', + 'ও' => 'oo', + 'ফ্ল' => 'fl', + 'প্ট' => 'pT', + 'প্ত' => 'pt', + 'প্ন' => 'pn', + 'প্প' => 'pp', + 'প্ল' => 'pl', + 'প্স' => 'ps', + 'ফ' => 'f', + 'প' => 'p', + 'ৃ' => 'rri', + 'ঋ' => 'rri', + 'রর‍্য' => 'rry', + '্র্য' => 'ry', + '্রর' => 'rr', + 'ড়্গ' => 'Rg', + 'ঢ়' => 'Rh', + 'ড়' => 'R', + 'র' => 'r', + '্র' => 'r', + 'শ্ছ' => 'Sch', + 'ষ্ঠ' => 'ShTh', + 'ষ্ফ' => 'Shf', + 'স্ক্ল' => 'skl', + 'স্খ' => 'skh', + 'স্থ' => 'sth', + 'স্ফ' => 'sf', + 'শ্চ' => 'Sc', + 'শ্ত' => 'St', + 'শ্ন' => 'Sn', + 'শ্ম' => 'Sm', + 'শ্ল' => 'Sl', + 'ষ্ক' => 'Shk', + 'ষ্ট' => 'ShT', + 'ষ্ণ' => 'ShN', + 'ষ্প' => 'Shp', + 'ষ্ম' => 'Shm', + 'স্প্ল' => 'spl', + 'স্ক' => 'sk', + 'স্ট' => 'sT', + 'স্ত' => 'st', + 'স্ন' => 'sn', + 'স্প' => 'sp', + 'স্ম' => 'sm', + 'স্ল' => 'sl', + 'শ' => 'S', + 'ষ' => 'Sh', + 'স' => 's', + 'ু' => 'u', + 'উ' => 'u', + 'অ্য' => 'oZ', + 'ত্থ' => 'tth', + 'ৎ' => 'tt', + 'ট্ট' => 'TT', + 'ট্ম' => 'Tm', + 'ঠ' => 'Th', + 'ত্ন' => 'tn', + 'ত্ম' => 'tm', + 'থ' => 'th', + 'ত্ত' => 'tt', + 'ট' => 'T', + 'ত' => 't', + 'অ্যা' => 'AZ', + 'া' => 'a', + 'আ' => 'a', + 'য়া' => 'ya', + 'য়' => 'y', + 'ি' => 'i', + 'ই' => 'i', + 'ী' => 'ee', + 'ঈ' => 'ee', + 'ূ' => 'uu', + 'ঊ' => 'uu', + 'ে' => 'e', + 'এ' => 'e', + 'য' => 'z', + '্য' => 'Z', + 'ইয়' => 'y', + 'ওয়' => 'w', + '্ব' => 'w', + 'এক্স' => 'x', + 'ঃ' => ':', + 'ঁ' => 'nn', + '্‌' => '', + ], + // English + 'en' => [ + ], + // Latin (+ Cyrillic ?) chars + // + // -> Mix of languages, but we need to keep this here, so that different languages can handle there own behavior. + 'latin' => [ + '˚' => '0', + '¹' => '1', + '²' => '2', + '³' => '3', + '⁴' => '4', + '⁵' => '5', + '⁶' => '6', + '⁷' => '7', + '⁸' => '8', + '⁹' => '9', + '₀' => '0', + '₁' => '1', + '₂' => '2', + '₃' => '3', + '₄' => '4', + '₅' => '5', + '₆' => '6', + '₇' => '7', + '₈' => '8', + '₉' => '9', + '௦' => '0', + '௧' => '1', + '௨' => '2', + '௩' => '3', + '௪' => '4', + '௫' => '5', + '௬' => '6', + '௭' => '7', + '௮' => '8', + '௯' => '9', + '௰' => '10', + '௱' => '100', + '௲' => '1000', + 'Ꜳ' => 'AA', + 'ꜳ' => 'aa', + 'Æ' => 'AE', + 'æ' => 'ae', + 'Ǽ' => 'AE', + 'ǽ' => 'ae', + 'Ꜵ' => 'AO', + 'ꜵ' => 'ao', + 'Ꜷ' => 'AU', + 'ꜷ' => 'au', + 'Ꜹ' => 'AV', + 'ꜹ' => 'av', + 'Ꜻ' => 'av', + 'ꜻ' => 'av', + 'Ꜽ' => 'AY', + 'ꜽ' => 'ay', + 'ȸ' => 'db', + 'ʣ' => 'dz', + 'ʥ' => 'dz', + 'ʤ' => 'dezh', + '🙰' => 'et', + 'ff' => 'ff', + 'ffi' => 'ffi', + 'ffl' => 'ffl', + 'fi' => 'fi', + 'fl' => 'fl', + 'ʩ' => 'feng', + 'IJ' => 'IJ', + 'ij' => 'ij', + 'ʪ' => 'ls', + 'ʫ' => 'lz', + 'ɮ' => 'lezh', + 'ȹ' => 'qp', + 'ʨ' => 'tc', + 'ʦ' => 'ts', + 'ʧ' => 'tesh', + 'Œ' => 'OE', + 'œ' => 'oe', + 'Ꝏ' => 'OO', + 'ꝏ' => 'oo', + 'ẞ' => 'SS', + 'ß' => 'ss', + 'st' => 'st', + 'ſt' => 'st', + 'Ꜩ' => 'TZ', + 'ꜩ' => 'tz', + 'ᵫ' => 'ue', + 'Aι' => 'Ai', + 'αι' => 'ai', + 'Ει' => 'Ei', + 'ει' => 'ei', + 'Οι' => 'Oi', + 'οι' => 'oi', + 'Ου' => 'Oy', + 'ου' => 'oy', + 'Υι' => 'Yi', + 'υι' => 'yi', + 'ἀ' => 'a', + 'ἁ' => 'a', + 'ἂ' => 'a', + 'ἃ' => 'a', + 'ἄ' => 'a', + 'ἅ' => 'a', + 'ἆ' => 'a', + 'ἇ' => 'a', + 'Ἀ' => 'A', + 'Ἁ' => 'A', + 'Ἂ' => 'A', + 'Ἃ' => 'A', + 'Ἄ' => 'A', + 'Ἅ' => 'A', + 'Ἆ' => 'A', + 'Ἇ' => 'A', + 'ᾰ' => 'a', + 'ᾱ' => 'a', + 'ᾲ' => 'a', + 'ᾳ' => 'a', + 'ᾴ' => 'a', + 'ᾶ' => 'a', + 'ᾷ' => 'a', + 'Ᾰ' => 'A', + 'Ᾱ' => 'A', + 'Ὰ' => 'A', + 'Ά' => 'A', + 'ᾼ' => 'A', + 'Ä' => 'A', + 'ä' => 'a', + 'À' => 'A', + 'à' => 'a', + 'Á' => 'A', + 'á' => 'a', + 'Â' => 'A', + 'â' => 'a', + 'Ã' => 'A', + 'ã' => 'a', + 'A̧' => 'A', + 'a̧' => 'a', + 'Ą' => 'A', + 'ą' => 'a', + 'Ⱥ' => 'A', + 'ⱥ' => 'a', + 'Å' => 'A', + 'å' => 'a', + 'Ǻ' => 'A', + 'ǻ' => 'a', + 'Ă' => 'A', + 'ă' => 'a', + 'Ǎ' => 'A', + 'ǎ' => 'a', + 'Ȧ' => 'A', + 'ȧ' => 'a', + 'Ạ' => 'A', + 'ạ' => 'a', + 'Ā' => 'A', + 'ā' => 'a', + 'ª' => 'a', + 'Ɓ' => 'B', + 'Ѣ' => 'E', + 'ѣ' => 'e', + 'Ç' => 'C', + 'ç' => 'c', + 'Ĉ' => 'C', + 'ĉ' => 'c', + 'C̈' => 'C', + 'c̈' => 'c', + 'C̨' => 'C', + 'c̨' => 'c', + 'Ȼ' => 'C', + 'ȼ' => 'c', + 'Č' => 'C', + 'č' => 'c', + 'Ć' => 'C', + 'ć' => 'c', + 'C̀' => 'C', + 'c̀' => 'c', + 'Ċ' => 'C', + 'ċ' => 'c', + 'C̣' => 'C', + 'c̣' => 'c', + 'C̄' => 'C', + 'c̄' => 'c', + 'C̃' => 'C', + 'c̃' => 'c', + 'Ð' => 'D', + 'Đ' => 'D', + 'ð' => 'd', + 'đ' => 'd', + 'È' => 'E', + 'É' => 'E', + 'Ê' => 'E', + 'Ë' => 'E', + 'Ĕ' => 'E', + 'Ė' => 'E', + 'Ȩ' => 'E', + 'ȩ' => 'e', + 'Ę' => 'E', + 'ę' => 'e', + 'Ɇ' => 'E', + 'ɇ' => 'e', + 'Ě' => 'E', + 'ě' => 'e', + 'Ẹ' => 'E', + 'ẹ' => 'e', + 'Ē' => 'E', + 'ē' => 'e', + 'Ẽ' => 'E', + 'ẽ' => 'e', + 'è' => 'e', + 'é' => 'e', + 'ê' => 'e', + 'ë' => 'e', + 'ĕ' => 'e', + 'ė' => 'e', + 'ƒ' => 'f', + 'Ѳ' => 'F', + 'ѳ' => 'f', + 'Ĝ' => 'G', + 'Ġ' => 'G', + 'ĝ' => 'g', + 'ġ' => 'g', + 'Ĥ' => 'H', + 'Ħ' => 'H', + 'ĥ' => 'h', + 'ħ' => 'h', + 'Ì' => 'I', + 'Í' => 'I', + 'Î' => 'I', + 'Ï' => 'I', + 'Ĩ' => 'I', + 'Ĭ' => 'I', + 'Ǐ' => 'I', + 'Į' => 'I', + 'ì' => 'i', + 'í' => 'i', + 'î' => 'i', + 'ï' => 'i', + 'ĩ' => 'i', + 'ĭ' => 'i', + 'ǐ' => 'i', + 'į' => 'i', + 'І' => 'I', + 'і' => 'i', + 'I̧' => 'I', + 'i̧' => 'i', + 'Ɨ' => 'I', + 'ɨ' => 'i', + 'İ' => 'I', + 'i' => 'i', + 'Ị' => 'I', + 'ị' => 'i', + 'Ī' => 'I', + 'ī' => 'i', + 'Ĵ' => 'J', + 'ĵ' => 'j', + 'J́́' => 'J', + 'j́' => 'j', + 'J̀̀' => 'J', + 'j̀' => 'j', + 'J̈' => 'J', + 'j̈' => 'j', + 'J̧' => 'J', + 'j̧' => 'j', + 'J̨' => 'J', + 'j̨' => 'j', + 'Ɉ' => 'J', + 'ɉ' => 'j', + 'J̌' => 'J', + 'ǰ' => 'j', + 'J̇' => 'J', + 'j' => 'j', + 'J̣' => 'J', + 'j̣' => 'j', + 'J̄' => 'J', + 'j̄' => 'j', + 'J̃' => 'J', + 'j̃' => 'j', + 'Й' => 'i', + 'й' => 'i', + 'ĸ' => 'k', + 'Ĺ' => 'L', + 'Ľ' => 'L', + 'Ŀ' => 'L', + 'ĺ' => 'l', + 'ľ' => 'l', + 'ŀ' => 'l', + 'L̀' => 'L', + 'l̀' => 'l', + 'L̂' => 'L', + 'l̂' => 'l', + 'L̈' => 'L', + 'l̈' => 'l', + 'Ļ' => 'L', + 'ļ' => 'l', + 'L̨' => 'L', + 'l̨' => 'l', + 'Ł' => 'L', + 'ł' => 'l', + 'Ƚ' => 'L', + 'ƚ' => 'l', + 'L̇' => 'L', + 'l̇' => 'l', + 'Ḷ' => 'L', + 'ḷ' => 'l', + 'L̄' => 'L', + 'l̄' => 'l', + 'L̃' => 'L', + 'l̃' => 'l', + 'Ñ' => 'N', + 'ñ' => 'n', + 'Ŋ' => 'N', + 'ŋ' => 'n', + 'ʼn' => 'n', + 'Ń' => 'N', + 'ń' => 'n', + 'Ǹ' => 'N', + 'ǹ' => 'n', + 'N̂' => 'N', + 'n̂' => 'n', + 'N̈' => 'N', + 'n̈' => 'n', + 'Ņ' => 'N', + 'ņ' => 'n', + 'N̨' => 'N', + 'n̨' => 'n', + 'Ꞥ' => 'N', + 'ꞥ' => 'n', + 'Ň' => 'N', + 'ň' => 'n', + 'Ṅ' => 'N', + 'ṅ' => 'n', + 'Ṇ' => 'N', + 'ṇ' => 'n', + 'N̄' => 'N', + 'n̄' => 'n', + 'Ö' => 'O', + 'Ò' => 'O', + 'Ó' => 'O', + 'Ô' => 'O', + 'Õ' => 'O', + 'Ō' => 'O', + 'Ŏ' => 'O', + 'Ǒ' => 'O', + 'Ő' => 'O', + 'Ơ' => 'O', + 'Ø' => 'O', + 'Ǿ' => 'O', + 'ö' => 'o', + 'ò' => 'o', + 'ó' => 'o', + 'ô' => 'o', + 'õ' => 'o', + 'ō' => 'o', + 'ŏ' => 'o', + 'ǒ' => 'o', + 'ő' => 'o', + 'ơ' => 'o', + 'ø' => 'o', + 'ǿ' => 'o', + 'º' => 'o', + 'O̧' => 'O', + 'o̧' => 'o', + 'Ǫ' => 'O', + 'ǫ' => 'o', + 'Ɵ' => 'O', + 'ɵ' => 'o', + 'Ȯ' => 'O', + 'ȯ' => 'o', + 'Ọ' => 'O', + 'ọ' => 'o', + 'Ŕ' => 'R', + 'Ŗ' => 'R', + 'ŕ' => 'r', + 'ŗ' => 'r', + 'Ŝ' => 'S', + 'Ș' => 'S', + 'ș' => 's', + 'Ś' => 'S', + 'ś' => 's', + 'S̀' => 'S', + 's̀' => 's', + 'Ŝ̀' => 'S', + 'ŝ' => 's', + 'S̈' => 'S', + 's̈' => 's', + 'Ş' => 'S', + 'ş' => 's', + 'S̨' => 'S', + 's̨' => 's', + 'Ꞩ' => 'S', + 'ꞩ' => 's', + 'Š' => 'S', + 'š' => 's', + 'Ṡ' => 'S', + 'ṡ' => 's', + 'Ṣ' => 'S', + 'ṣ' => 's', + 'S̄' => 'S', + 's̄' => 's', + 'S̃' => 'S', + 's̃' => 's', + 'ſ' => 's', + 'Ţ' => 'T', + 'Ț' => 'T', + 'Ŧ' => 'T', + 'Þ' => 'TH', + 'ţ' => 't', + 'ț' => 't', + 'ŧ' => 't', + 'þ' => 'th', + 'T́' => 'T', + 't́' => 't', + 'T̀' => 'T', + 't̀' => 't', + 'T̂' => 'T', + 't̂' => 't', + 'T̈' => 'T', + 'ẗ' => 't', + 'T̨' => 'T', + 't̨' => 't', + 'Ⱦ' => 'T', + 'ⱦ' => 't', + 'Ť' => 'T', + 'ť' => 't', + 'Ṫ' => 'T', + 'ṫ' => 't', + 'Ṭ' => 'T', + 'ṭ' => 't', + 'T̄' => 'T', + 't̄' => 't', + 'T̃' => 'T', + 't̃' => 't', + 'Ü' => 'U', + 'Ù' => 'U', + 'Ú' => 'U', + 'Û' => 'U', + 'Ũ' => 'U', + 'Ŭ' => 'U', + 'Ű' => 'U', + 'Ų' => 'U', + 'Ư' => 'U', + 'Ǔ' => 'U', + 'Ǖ' => 'U', + 'Ǘ' => 'U', + 'Ǚ' => 'U', + 'Ǜ' => 'U', + 'ü' => 'u', + 'ù' => 'u', + 'ú' => 'u', + 'û' => 'u', + 'ũ' => 'u', + 'ŭ' => 'u', + 'ű' => 'u', + 'ų' => 'u', + 'ư' => 'u', + 'ǔ' => 'u', + 'ǖ' => 'u', + 'ǘ' => 'u', + 'ǚ' => 'u', + 'ǜ' => 'u', + 'U̧' => 'U', + 'u̧' => 'u', + 'Ʉ' => 'U', + 'ʉ' => 'u', + 'U̇' => 'U', + 'u̇' => 'u', + 'Ụ' => 'U', + 'ụ' => 'u', + 'Ū' => 'U', + 'ū' => 'u', + 'Ʊ' => 'U', + 'ʊ' => 'u', + 'Ŵ' => 'W', + 'ŵ' => 'w', + 'Ẁ' => 'W', + 'ẁ' => 'w', + 'Ẃ' => 'W', + 'ẃ' => 'w', + 'Ẅ' => 'W', + 'ẅ' => 'w', + 'Ѵ' => 'I', + 'ѵ' => 'i', + 'Ꙗ' => 'Ja', + 'ꙗ' => 'ja', + 'Є' => 'Je', + 'є' => 'je', + 'Ѥ' => 'Je', + 'ѥ' => 'je', + 'Ѕ' => 'Dz', + 'ѕ' => 'dz', + 'Ꙋ' => 'U', + 'ꙋ' => 'u', + 'Ѡ' => 'O', + 'ѡ' => 'o', + 'Ѿ' => 'Ot', + 'ѿ' => 'ot', + 'Ѫ' => 'U', + 'ѫ' => 'u', + 'Ѧ' => 'Ja', + 'ѧ' => 'ja', + 'Ѭ' => 'Ju', + 'ѭ' => 'ju', + 'Ѩ' => 'Ja', + 'ѩ' => 'Ja', + 'Ѯ' => 'Ks', + 'ѯ' => 'ks', + 'Ѱ' => 'Ps', + 'ѱ' => 'ps', + 'Х' => 'X', + 'х' => 'x', + 'Ý' => 'Y', + 'Ÿ' => 'Y', + 'Ŷ' => 'Y', + 'ý' => 'y', + 'ÿ' => 'y', + 'ŷ' => 'y', + 'Ỳ' => 'Y', + 'ỳ' => 'y', + 'Y̧' => 'Y', + 'y̧' => 'y', + 'Y̨' => 'Y', + 'y̨' => 'y', + 'Ɏ' => 'Y', + 'ɏ' => 'y', + 'Y̌' => 'Y', + 'y̌' => 'y', + 'Ẏ' => 'Y', + 'ẏ' => 'y', + 'Ỵ' => 'Y', + 'ỵ' => 'y', + 'Ȳ' => 'Y', + 'ȳ' => 'y', + 'Ỹ' => 'Y', + 'ỹ' => 'y', + 'Щ' => 'Shh', + 'щ' => 'shh', + 'Ź' => 'Z', + 'ź' => 'z', + 'Z̀' => 'Z', + 'z̀' => 'z', + 'Ẑ' => 'Z', + 'ẑ' => 'z', + 'Z̈' => 'Z', + 'z̈' => 'z', + 'Z̧' => 'Z', + 'z̧' => 'z', + 'Z̨' => 'Z', + 'z̨' => 'z', + 'Ƶ' => 'Z', + 'ƶ' => 'z', + 'Ž' => 'Z', + 'ž' => 'z', + 'Ż' => 'Z', + 'ż' => 'z', + 'Ẓ' => 'Z', + 'ẓ' => 'z', + 'Z̄' => 'Z', + 'z̄' => 'z', + 'Z̃' => 'Z', + 'z̃' => 'z', + ], + // whitespace chars + ' ' => [ + "\xc2\xa0" => ' ', // 'NO-BREAK SPACE' + "\xe1\x9a\x80" => ' ', // 'OGHAM SPACE MARK' + "\xe2\x80\x80" => ' ', // 'EN QUAD' + "\xe2\x80\x81" => ' ', // 'EM QUAD' + "\xe2\x80\x82" => ' ', // 'EN SPACE' + "\xe2\x80\x83" => ' ', // 'EM SPACE' + "\xe2\x80\x84" => ' ', // 'THREE-PER-EM SPACE' + "\xe2\x80\x85" => ' ', // 'FOUR-PER-EM SPACE' + "\xe2\x80\x86" => ' ', // 'SIX-PER-EM SPACE' + "\xe2\x80\x87" => ' ', // 'FIGURE SPACE' + "\xe2\x80\x88" => ' ', // 'PUNCTUATION SPACE' + "\xe2\x80\x89" => ' ', // 'THIN SPACE' + "\xe2\x80\x8a" => ' ', // 'HAIR SPACE' + "\xe2\x80\xa8" => ' ', // 'LINE SEPARATOR' + "\xe2\x80\xa9" => ' ', // 'PARAGRAPH SEPARATOR' + "\xe2\x80\x8b" => ' ', // 'ZERO WIDTH SPACE' + "\xe2\x80\xaf" => ' ', // 'NARROW NO-BREAK SPACE' + "\xe2\x81\x9f" => ' ', // 'MEDIUM MATHEMATICAL SPACE' + "\xe3\x80\x80" => ' ', // 'IDEOGRAPHIC SPACE' + "\xef\xbe\xa0" => ' ', // 'HALFWIDTH HANGUL FILLER' + ], + // commonly used in Word documents + 'msword' => [ + "\xc2\xab" => '<<', // « (U+00AB) in UTF-8 + "\xc2\xbb" => '>>', // » (U+00BB) in UTF-8 + "\xe2\x80\x98" => "'", // ‘ (U+2018) in UTF-8 + "\xe2\x80\x99" => "'", // ’ (U+2019) in UTF-8 + "\xe2\x80\x9a" => "'", // ‚ (U+201A) in UTF-8 + "\xe2\x80\x9b" => "'", // ‛ (U+201B) in UTF-8 + "\xe2\x80\x9c" => '"', // “ (U+201C) in UTF-8 + "\xe2\x80\x9d" => '"', // ” (U+201D) in UTF-8 + "\xe2\x80\x9e" => '"', // „ (U+201E) in UTF-8 + "\xe2\x80\x9f" => '"', // ‟ (U+201F) in UTF-8 + "\xe2\x80\xb9" => "'", // ‹ (U+2039) in UTF-8 + "\xe2\x80\xba" => "'", // › (U+203A) in UTF-8 + "\xe2\x80\x93" => '-', // – (U+2013) in UTF-8 + "\xe2\x80\x94" => '-', // — (U+2014) in UTF-8 + "\xe2\x80\xa6" => '...', // … (U+2026) in UTF-8 + ], + // Currency + // + // url => https://en.wikipedia.org/wiki/Currency_symbol + 'currency_short' => [ + '€' => 'EUR', + '$' => '$', + '₢' => 'Cr', + '₣' => 'Fr.', + '£' => 'PS', + '₤' => 'L.', + 'ℳ' => 'M', + '₥' => 'mil', + '₦' => 'N', + '₧' => 'Pts', + '₨' => 'Rs', + 'රු' => 'LKR', + 'ரூ' => 'LKR', + '௹' => 'Rs', + 'रू' => 'NPR', + '₹' => 'Rs', + '૱' => 'Rs', + '₩' => 'W', + '₪' => 'NS', + '₸' => 'KZT', + '₫' => 'D', + '֏' => 'AMD', + '₭' => 'K', + '₺' => 'TL', + '₼' => 'AZN', + '₮' => 'T', + '₯' => 'Dr', + '₲' => 'PYG', + '₾' => 'GEL', + '₳' => 'ARA', + '₴' => 'UAH', + '₽' => 'RUB', + '₵' => 'GHS', + '₡' => 'CL', + '¢' => 'c', + '¥' => 'YEN', + '円' => 'JPY', + '৳' => 'BDT', + '元' => 'CNY', + '﷼' => 'SAR', + '៛' => 'KR', + '₠' => 'ECU', + '¤' => '$?', + '฿' => 'THB', + '؋' => 'AFN', + ], +]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_extras_by_languages.php b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_extras_by_languages.php new file mode 100644 index 000000000..afe31ae2c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_extras_by_languages.php @@ -0,0 +1,759 @@ +<?php + +return [ + // Dutch (Flemish) + 'nl' => [ + '=' => ' gelijk ', + '%' => ' procent ', + '∑' => ' som ', + '∆' => ' delta ', + '∞' => ' oneindig ', + '♥' => ' love ', + '&' => ' en ', + '+' => ' plus ', + ], + // Italian + 'it' => [ + '=' => ' uguale ', + '%' => ' percent ', + '∑' => ' somma ', + '∆' => ' delta ', + '∞' => ' infinito ', + '♥' => ' amore ', + '&' => ' e ', + '+' => ' piu ', + ], + // Macedonian + 'mk' => [ + '=' => ' ednakva ', + '%' => ' procenti ', + '∑' => ' zbir ', + '∆' => ' delta ', + '∞' => ' beskonecnost ', + '♥' => ' loveubov ', + '&' => ' i ', + '+' => ' plus ', + ], + // Portuguese (Brazil) + 'pt' => [ + '=' => ' igual ', + '%' => ' por cento ', + '∑' => ' soma ', + '∆' => ' delta ', + '∞' => ' infinito ', + '♥' => ' amor ', + '&' => ' e ', + '+' => ' mais ', + ], + // Greek(lish) (Elláda) + 'el__greeklish' => [ + '=' => ' isos ', + '%' => ' tois ekato ', + '∑' => ' athroisma ', + '∆' => ' delta ', + '∞' => ' apeiro ', + '♥' => ' agape ', + '&' => ' kai ', + '+' => ' syn ', + ], + // Greek (Elláda) + 'el' => [ + '=' => ' isos ', + '%' => ' tois ekato ', + '∑' => ' athroisma ', + '∆' => ' delta ', + '∞' => ' apeiro ', + '♥' => ' agape ', + '&' => ' kai ', + '+' => ' syn ', + ], + // Hindi + 'hi' => [ + '=' => ' samana ', + '%' => ' paratisata ', + '∑' => ' yoga ', + '∆' => ' dalata ', + '∞' => ' anata ', + '♥' => ' payara ', + '&' => ' aura ', + '+' => ' palasa ', + ], + // Armenian + 'hy' => [ + '=' => ' havasar ', + '%' => ' tvokvos ', + '∑' => ' gvoumar ', + '∆' => ' delta ', + '∞' => ' ansahmanvouthyvoun ', + '♥' => ' ser ', + '&' => ' ev ', + '+' => ' gvoumarats ', + ], + // Swedish + 'sv' => [ + '=' => ' lika ', + '%' => ' procent ', + '∑' => ' summa ', + '∆' => ' delta ', + '∞' => ' oandlighet ', + '♥' => ' alskar ', + '&' => ' och ', + '+' => ' plus ', + ], + // Turkmen + 'tk' => [ + '=' => ' den ', + '%' => ' yuzde ', + '∑' => ' jem ', + '∆' => ' delta ', + '∞' => ' mudimilik ', + '♥' => ' soygi ', + '&' => ' we ', + '+' => ' yzy ', + ], + // Turkish + 'tr' => [ + '=' => ' esit ', + '%' => ' yuzde ', + '∑' => ' Toplam ', + '∆' => ' delta ', + '∞' => ' sonsuzluk ', + '♥' => ' ask ', + '&' => ' ve ', + '+' => ' arti ', + ], + // Bulgarian + 'bg' => [ + '=' => ' raven ', + '%' => ' na sto ', + '∑' => ' suma ', + '∆' => ' delta ', + '∞' => ' bezkrajnost ', + '♥' => ' obicam ', + '&' => ' i ', + '+' => ' plus ', + ], + // Hungarian + 'hu' => [ + '=' => ' Egyenlo ', + '%' => ' Szazalek ', + '∑' => ' osszeg ', + '∆' => ' delta ', + '∞' => ' vegtelenitett ', + '♥' => ' love ', + '&' => ' Es ', + '+' => ' Plusz ', + ], + // Myanmar (Burmese) + 'my' => [ + '=' => ' ttn:ttnnym? ', + '%' => ' raakhngnn:k ', + '∑' => ' ld ', + '∆' => ' m?cwk?n:pe? ', + '∞' => ' ach:m ', + '♥' => ' mettttaa ', + '&' => ' n ', + '+' => ' ape?ng: ', + ], + // Croatian (Hrvatska) + 'hr' => [ + '=' => ' Jednaki ', + '%' => ' Posto ', + '∑' => ' zbroj ', + '∆' => ' Delta ', + '∞' => ' beskonacno ', + '♥' => ' ljubav ', + '&' => ' I ', + '+' => ' Plus ', + ], + // Finnish + 'fi' => [ + '=' => ' Sama ', + '%' => ' Prosenttia ', + '∑' => ' sum ', + '∆' => ' delta ', + '∞' => ' aareton ', + '♥' => ' rakkautta ', + '&' => ' Ja ', + '+' => ' Plus ', + ], + // Georgian (Kartvelian) + 'ka' => [ + '=' => ' tanasts\'ori ', + '%' => ' p\'rotsent\'i ', + '∑' => ' tankha ', + '∆' => ' delt\'a ', + '∞' => ' usasrulo ', + '♥' => ' siq\'varuli ', + '&' => ' da ', + '+' => ' p\'lus ', + ], + // Russian + 'ru' => [ + '=' => ' ravnyj ', + '%' => ' procent ', + '∑' => ' summa ', + '∆' => ' del\'ta ', + '∞' => ' beskonecnost\' ', + '♥' => ' lublu ', + '&' => ' i ', + '+' => ' plus ', + ], + // Russian - GOST 7.79-2000(B) + 'ru__gost_2000_b' => [ + '=' => ' ravnyj ', + '%' => ' procent ', + '∑' => ' summa ', + '∆' => ' del\'ta ', + '∞' => ' beskonecnost\' ', + '♥' => ' lublu ', + '&' => ' i ', + '+' => ' plus ', + ], + // Russian - Passport (2013), ICAO + 'ru__passport_2013' => [ + '=' => ' ravnyj ', + '%' => ' procent ', + '∑' => ' summa ', + '∆' => ' del\'ta ', + '∞' => ' beskonecnost\' ', + '♥' => ' lublu ', + '&' => ' i ', + '+' => ' plus ', + ], + // Ukrainian + 'uk' => [ + '=' => ' rivnij ', + '%' => ' vidsotkiv ', + '∑' => ' suma ', + '∆' => ' del\'ta ', + '∞' => ' neskincennist\' ', + '♥' => ' lubov ', + '&' => ' i ', + '+' => ' plus ', + ], + // Kazakh + 'kk' => [ + '=' => ' ten\' ', + '%' => ' Pajyzdar ', + '∑' => ' zalpy ', + '∆' => ' ajyrmasylyk, ', + '∞' => ' seksiz ', + '♥' => ' mahabbat ', + '&' => ' z@ne ', + '+' => ' plus ', + ], + // Czech + 'cs' => [ + '=' => ' rovnat se ', + '%' => ' procento ', + '∑' => ' soucet ', + '∆' => ' delta ', + '∞' => ' nekonecno ', + '♥' => ' laska ', + '&' => ' a ', + '+' => ' plus ', + ], + // Danish + 'da' => [ + '=' => ' Lige ', + '%' => ' Prozent ', + '∑' => ' sum ', + '∆' => ' delta ', + '∞' => ' uendelig ', + '♥' => ' kaerlighed ', + '&' => ' Og ', + '+' => ' Plus ', + ], + // Polish + 'pl' => [ + '=' => ' rowny ', + '%' => ' procent ', + '∑' => ' suma ', + '∆' => ' delta ', + '∞' => ' nieskonczonosc ', + '♥' => ' milosc ', + '&' => ' i ', + '+' => ' plus ', + ], + // Romanian + 'ro' => [ + '=' => ' egal ', + '%' => ' la suta ', + '∑' => ' suma ', + '∆' => ' delta ', + '∞' => ' infinit ', + '♥' => ' dragoste ', + '&' => ' si ', + '+' => ' la care se adauga ', + ], + // Esperanto + 'eo' => [ + '=' => ' Egalaj ', + '%' => ' Procento ', + '∑' => ' sumo ', + '∆' => ' delto ', + '∞' => ' senfina ', + '♥' => ' amo ', + '&' => ' Kaj ', + '+' => ' Pli ', + ], + // Estonian + 'et' => [ + '=' => ' Vordsed ', + '%' => ' Protsenti ', + '∑' => ' summa ', + '∆' => ' o ', + '∞' => ' loputut ', + '♥' => ' armastus ', + '&' => ' Ja ', + '+' => ' Pluss ', + ], + // Latvian + 'lv' => [ + '=' => ' vienads ', + '%' => ' procents ', + '∑' => ' summa ', + '∆' => ' delta ', + '∞' => ' bezgaliba ', + '♥' => ' milestiba ', + '&' => ' un ', + '+' => ' pluss ', + ], + // Lithuanian + 'lt' => [ + '=' => ' lygus ', + '%' => ' procentu ', + '∑' => ' suma ', + '∆' => ' delta ', + '∞' => ' begalybe ', + '♥' => ' meile ', + '&' => ' ir ', + '+' => ' plius ', + ], + // Norwegian + 'no' => [ + '=' => ' Lik ', + '%' => ' Prosent ', + '∑' => ' sum ', + '∆' => ' delta ', + '∞' => ' uendelig ', + '♥' => ' kjaerlighet ', + '&' => ' Og ', + '+' => ' Pluss ', + ], + // Vietnamese + 'vi' => [ + '=' => ' cong bang ', + '%' => ' phan tram ', + '∑' => ' tong so ', + '∆' => ' dong bang ', + '∞' => ' vo cuc ', + '♥' => ' Yeu ', + '&' => ' va ', + '+' => ' them ', + ], + // Arabic + 'ar' => [ + '=' => ' mtsawy ', + '%' => ' nsbh mywyh ', + '∑' => ' mjmw\' ', + '∆' => ' dlta ', + '∞' => ' ma la nhayt ', + '♥' => ' hb ', + '&' => ' w ', + '+' => ' zayd ', + ], + // Persian (Farsi) + 'fa' => [ + '=' => ' brabr ', + '%' => ' dr sd ', + '∑' => ' mjmw\' ', + '∆' => ' dlta ', + '∞' => ' by nhayt ', + '♥' => ' \'shq ', + '&' => ' w ', + '+' => ' bh \'lawh ', + ], + // Serbian + 'sr' => [ + '=' => ' jednak ', + '%' => ' procenat ', + '∑' => ' zbir ', + '∆' => ' delta ', + '∞' => ' beskraj ', + '♥' => ' lubav ', + '&' => ' i ', + '+' => ' vise ', + ], + // Serbian - Cyrillic + 'sr__cyr' => [ + '=' => ' jednak ', + '%' => ' procenat ', + '∑' => ' zbir ', + '∆' => ' delta ', + '∞' => ' beskraj ', + '♥' => ' lubav ', + '&' => ' i ', + '+' => ' vise ', + ], + // Serbian - Latin + 'sr__lat' => [ + '=' => ' jednak ', + '%' => ' procenat ', + '∑' => ' zbir ', + '∆' => ' delta ', + '∞' => ' beskraj ', + '♥' => ' lubav ', + '&' => ' i ', + '+' => ' vise ', + ], + // Azerbaijani + 'az' => [ + '=' => ' b@rab@r ', + '%' => ' faiz ', + '∑' => ' m@bl@g ', + '∆' => ' delta ', + '∞' => ' sonsuzluq ', + '♥' => ' sevgi ', + '&' => ' v@ ', + '+' => ' plus ', + ], + // Slovak + 'sk' => [ + '=' => ' rovny ', + '%' => ' percento ', + '∑' => ' sucet ', + '∆' => ' delta ', + '∞' => ' infinity ', + '♥' => ' milovat ', + '&' => ' a ', + '+' => ' viac ', + ], + // French + 'fr' => [ + '=' => ' Egal ', + '%' => ' Pourcentage ', + '∑' => ' somme ', + '∆' => ' delta ', + '∞' => ' infini ', + '♥' => ' amour ', + '&' => ' Et ', + '+' => ' Plus ', + ], + // Austrian (French) + 'fr_at' => [ + '=' => ' Egal ', + '%' => ' Pourcentage ', + '∑' => ' somme ', + '∆' => ' delta ', + '∞' => ' infini ', + '♥' => ' amour ', + '&' => ' Et ', + '+' => ' Plus ', + ], + // Switzerland (French) + 'fr_ch' => [ + '=' => ' Egal ', + '%' => ' Pourcentage ', + '∑' => ' somme ', + '∆' => ' delta ', + '∞' => ' infini ', + '♥' => ' amour ', + '&' => ' Et ', + '+' => ' Plus ', + ], + // German + 'de' => [ + '=' => ' gleich ', + '%' => ' Prozent ', + '∑' => ' gesamt ', + '∆' => ' Unterschied ', + '∞' => ' undendlich ', + '♥' => ' liebe ', + '&' => ' und ', + '+' => ' plus ', + ], + // Austrian (German) + 'de_at' => [ + '=' => ' gleich ', + '%' => ' Prozent ', + '∑' => ' gesamt ', + '∆' => ' Unterschied ', + '∞' => ' undendlich ', + '♥' => ' liebe ', + '&' => ' und ', + '+' => ' plus ', + ], + // Switzerland (German) + 'de_ch' => [ + '=' => ' gleich ', + '%' => ' Prozent ', + '∑' => ' gesamt ', + '∆' => ' Unterschied ', + '∞' => ' undendlich ', + '♥' => ' liebe ', + '&' => ' und ', + '+' => ' plus ', + ], + // Bengali (Bangla) + 'bn' => [ + '=' => ' Saman ', + '%' => ' Satakora ', + '∑' => ' Samasti ', + '∆' => ' Badhip ', + '∞' => ' Ananta ', + '♥' => ' Valobasa ', + '&' => ' Abong ', + '+' => ' Songzojon ', + ], + // English + 'en' => [ + '=' => ' equal ', + '%' => ' percent ', + '∑' => ' sum ', + '∆' => ' delta ', + '∞' => ' infinity ', + '♥' => ' love ', + '&' => ' and ', + '+' => ' plus ', + ], + // Currency + // + // url: https://en.wikipedia.org/wiki/Currency_symbol + 'currency' => [ + '€' => ' Euro ', + '$' => ' Dollar ', + '₢' => ' cruzeiro ', + '₣' => ' French franc ', + '£' => ' pound ', + '₤' => ' lira ', // Italian + '₶' => ' livre tournois ', + 'ℳ' => ' mark ', + '₥' => ' mill ', + '₦' => ' naira ', + '₧' => ' peseta ', + '₨' => ' rupee ', + 'රු' => ' rupee ', // Sri Lankan + 'ரூ' => ' rupee ', // Sri Lankan + '௹' => ' rupee ', // Tamil + 'रू' => ' rupee ', // Nepalese + '₹' => ' rupee ', // Indian + '૱' => ' rupee ', // Gujarat + '₩' => ' won ', + '₪' => ' new shequel ', + '₸' => ' tenge ', + '₫' => ' dong ', + '֏' => ' dram ', + '₭' => ' kip ', + '₺' => ' lira ', // Turkish + '₼' => ' manat ', + '₮' => ' tugrik ', + '₯' => ' drachma ', + '₰' => ' pfennig ', + '₷' => ' spesmilo ', + '₱' => ' peso ', // Philippine + '﷼‎' => ' riyal ', + '₲' => ' guarani ', + '₾' => ' lari ', + '₳' => ' austral ', + '₴' => ' hryvnia ', + '₽' => ' ruble ', + '₵' => ' cedi ', + '₡' => ' colon ', + '¢' => ' cent ', + '¥' => ' yen ', + '円' => ' yen ', + '৳' => ' taka ', + '元' => ' yuan ', + '﷼' => ' riyal ', + '៛' => ' riel ', + '₠' => ' European Currency ', + '¤' => ' currency ', + '฿' => ' baht ', + '؋' => ' afghani ', + ], + // Temperature + // + // url: https://en.wikipedia.org/wiki/Conversion_of_units_of_temperature + 'temperature' => [ + '°De' => ' Delisle ', + '°Re' => ' Reaumur ', // Réaumur + '°Ro' => ' Romer ', // Rømer + '°R' => ' Rankine ', + '°C' => ' Celsius ', + '°F' => ' Fahrenheit ', + '°N' => ' Newton ', + ], + 'latin_symbols' => [ + '=' => '=', + '%' => '%', + '∑' => '∑', + '∆' => '∆', + '∞' => '∞', + '♥' => '♥', + '&' => '&', + '+' => '+', + // --- + '©' => ' (c) ', + '®' => ' (r) ', + '@' => ' (at) ', + '№' => ' No. ', + '℞' => ' Rx ', + '[' => '[', + '\' => '\\', + ']' => ']', + '^' => '^', + '_' => '_', + '`' => '`', + '‐' => '-', + '‑' => '-', + '‒' => '-', + '–' => '-', + '−' => '-', + '—' => '-', + '―' => '-', + '﹘' => '-', + '│' => '|', + '∖' => '\\', + '∕' => '/', + '⁄' => '/', + '←' => '<-', + '→' => '->', + '↑' => '|', + '↓' => '|', + '⁅' => '[', + '⁆' => ']', + '⁎' => '*', + '、' => ',', + '。' => '.', + '〈' => '<', + '〉' => '>', + '《' => '<<', + '》' => '>>', + '〔' => '[', + '〕' => ']', + '〘' => '[', + '〙' => ']', + '〚' => '[', + '〛' => ']', + '﹝' => '[', + '﹞' => ']', + '︹' => '[', + '︺' => ']', + '﹇' => '[', + '﹈' => ']', + '︐' => ',', + '︑' => ',', + '︒' => '.', + '︓' => ':', + '︔' => ';', + '︕' => '!', + '︖' => '?', + '︙' => '...', + '︰' => '..', + '︵' => '(', + '︶' => ')', + '﹙' => '(', + '﹚' => ')', + '︷' => '{', + '︸' => '}', + '﹛' => '{', + '﹜' => '}', + '︽' => '<<', + '︾' => '>>', + '︿' => '<', + '﹀' => '>', + '×' => '*', + '÷' => '/', + '≪' => '<<', + '≫' => '>>', + '⦅' => '((', + '⦆' => '))', + '〇' => '0', + '′' => '\'', + '〝' => '"', + '〞' => '"', + '«' => '<<', + '»' => '>>', + '‘' => "'", + '’' => "'", + '‚' => ',', + '‛' => "'", + '“' => '"', + '”' => '"', + '„' => '"', + '‟' => '"', + '‹' => '<', + '›' => '>', + '․' => '.', + '‥' => '..', + '…' => '...', + '″' => '"', + '‴' => '\'\'\'', + '‶' => '``', + '‷' => '```', + '‼' => '!!', + '⁇' => '??', + '⁈' => '?!', + '⁉' => '!?', + '⁗' => '````', + '⩴' => '::=', + '⩵' => '==', + '⩶' => '===', + '﹔' => ';', + '﹕' => ':', + '﹖' => '?', + '﹗' => '!', + '﹍' => '_', + '﹎' => '_', + '﹏' => '_', + '﹐' => ',', + '﹑' => ',', + '﹒' => '.', + '﹟' => '#', + '﹠' => '&', + '﹡' => '*', + '﹢' => '+', + '﹣' => '-', + '﹤' => '<', + '﹥' => '>', + '﹦' => '=', + '﹨' => '\\', + '﹩' => '$', + '﹪' => '%', + '﹫' => '@', + '!' => '!', + '"' => '"', + '#' => '#', + '$' => '$', + '%' => '%', + '&' => '&', + ''' => '\'', + '(' => '(', + ')' => ')', + '*' => '*', + '+' => '+', + ',' => ',', + '-' => '-', + '.' => '.', + '/' => '/', + ':' => ':', + ';' => ';', + '<' => '<', + '=' => '=', + '>' => '>', + '?' => '?', + '@' => '@', + '{' => '{', + '|' => '|', + '}' => '}', + '~' => '~', + '⦅' => '((', + '⦆' => '))', + '¬' => '!', + ' ̄' => '-', + '¦' => '|', + '■' => '#', + ], +]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_language_max_key.php b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_language_max_key.php new file mode 100644 index 000000000..da81ae236 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_language_max_key.php @@ -0,0 +1,65 @@ +<?php + +return [ + 'uz' => 0, + 'tk' => 1, + 'th' => 0, + 'ps' => 0, + 'or' => 0, + 'mn' => 0, + 'ko' => 0, + 'ky' => 0, + 'hy' => 1, + 'bn' => 5, + 'be' => 0, + 'am' => 0, + 'ja' => 0, + 'zh' => 0, + 'nl' => 1, + 'it' => 1, + 'mk' => 1, + 'pt' => 1, + 'el__greeklish' => 2, + 'el' => 2, + 'hi' => 2, + 'sv' => 1, + 'tr' => 1, + 'bg' => 2, + 'hu' => 1, + 'my' => 5, + 'hr' => 2, + 'fi' => 1, + 'ka' => 1, + 'ru' => 1, + 'ru__gost_2000_b' => 1, + 'ru__passport_2013' => 1, + 'uk' => 1, + 'kk' => 1, + 'cs' => 1, + 'da' => 1, + 'pl' => 1, + 'ro' => 1, + 'eo' => 1, + 'et' => 1, + 'lv' => 1, + 'lt' => 1, + 'no' => 1, + 'vi' => 1, + 'ar' => 1, + 'fa' => 1, + 'sr' => 1, + 'sr__cyr' => 1, + 'sr__lat' => 1, + 'az' => 1, + 'sk' => 1, + 'fr' => 1, + 'fr_at' => 1, + 'fr_ch' => 1, + 'de' => 1, + 'de_at' => 1, + 'de_ch' => 1, + 'en' => 0, + 'latin' => 3, + ' ' => 1, + 'msword' => 1, +]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_ord.php b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_ord.php new file mode 100644 index 000000000..142318c33 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/ascii_ord.php @@ -0,0 +1 @@ +<?php return ['' => 0, "\x00" => 0, "\x01" => 1, "\x02" => 2, "\x03" => 3, "\x04" => 4, "\x05" => 5, "\x06" => 6, "\x07" => 7, "\x08" => 8, "\x09" => 9, "\x0A" => 10, "\x0B" => 11, "\x0C" => 12, "\x0D" => 13, "\x0E" => 14, "\x0F" => 15, "\x10" => 16, "\x11" => 17, "\x12" => 18, "\x13" => 19, "\x14" => 20, "\x15" => 21, "\x16" => 22, "\x17" => 23, "\x18" => 24, "\x19" => 25, "\x1A" => 26, "\x1B" => 27, "\x1C" => 28, "\x1D" => 29, "\x1E" => 30, "\x1F" => 31, "\x20" => 32, "\x21" => 33, "\x22" => 34, "\x23" => 35, "\x24" => 36, "\x25" => 37, "\x26" => 38, "\x27" => 39, "\x28" => 40, "\x29" => 41, "\x2A" => 42, "\x2B" => 43, "\x2C" => 44, "\x2D" => 45, "\x2E" => 46, "\x2F" => 47, "\x30" => 48, "\x31" => 49, "\x32" => 50, "\x33" => 51, "\x34" => 52, "\x35" => 53, "\x36" => 54, "\x37" => 55, "\x38" => 56, "\x39" => 57, "\x3A" => 58, "\x3B" => 59, "\x3C" => 60, "\x3D" => 61, "\x3E" => 62, "\x3F" => 63, "\x40" => 64, "\x41" => 65, "\x42" => 66, "\x43" => 67, "\x44" => 68, "\x45" => 69, "\x46" => 70, "\x47" => 71, "\x48" => 72, "\x49" => 73, "\x4A" => 74, "\x4B" => 75, "\x4C" => 76, "\x4D" => 77, "\x4E" => 78, "\x4F" => 79, "\x50" => 80, "\x51" => 81, "\x52" => 82, "\x53" => 83, "\x54" => 84, "\x55" => 85, "\x56" => 86, "\x57" => 87, "\x58" => 88, "\x59" => 89, "\x5A" => 90, "\x5B" => 91, "\x5C" => 92, "\x5D" => 93, "\x5E" => 94, "\x5F" => 95, "\x60" => 96, "\x61" => 97, "\x62" => 98, "\x63" => 99, "\x64" => 100, "\x65" => 101, "\x66" => 102, "\x67" => 103, "\x68" => 104, "\x69" => 105, "\x6A" => 106, "\x6B" => 107, "\x6C" => 108, "\x6D" => 109, "\x6E" => 110, "\x6F" => 111, "\x70" => 112, "\x71" => 113, "\x72" => 114, "\x73" => 115, "\x74" => 116, "\x75" => 117, "\x76" => 118, "\x77" => 119, "\x78" => 120, "\x79" => 121, "\x7A" => 122, "\x7B" => 123, "\x7C" => 124, "\x7D" => 125, "\x7E" => 126, "\x7F" => 127, "\x80" => 128, "\x81" => 129, "\x82" => 130, "\x83" => 131, "\x84" => 132, "\x85" => 133, "\x86" => 134, "\x87" => 135, "\x88" => 136, "\x89" => 137, "\x8A" => 138, "\x8B" => 139, "\x8C" => 140, "\x8D" => 141, "\x8E" => 142, "\x8F" => 143, "\x90" => 144, "\x91" => 145, "\x92" => 146, "\x93" => 147, "\x94" => 148, "\x95" => 149, "\x96" => 150, "\x97" => 151, "\x98" => 152, "\x99" => 153, "\x9A" => 154, "\x9B" => 155, "\x9C" => 156, "\x9D" => 157, "\x9E" => 158, "\x9F" => 159, "\xA0" => 160, "\xA1" => 161, "\xA2" => 162, "\xA3" => 163, "\xA4" => 164, "\xA5" => 165, "\xA6" => 166, "\xA7" => 167, "\xA8" => 168, "\xA9" => 169, "\xAA" => 170, "\xAB" => 171, "\xAC" => 172, "\xAD" => 173, "\xAE" => 174, "\xAF" => 175, "\xB0" => 176, "\xB1" => 177, "\xB2" => 178, "\xB3" => 179, "\xB4" => 180, "\xB5" => 181, "\xB6" => 182, "\xB7" => 183, "\xB8" => 184, "\xB9" => 185, "\xBA" => 186, "\xBB" => 187, "\xBC" => 188, "\xBD" => 189, "\xBE" => 190, "\xBF" => 191, "\xC0" => 192, "\xC1" => 193, "\xC2" => 194, "\xC3" => 195, "\xC4" => 196, "\xC5" => 197, "\xC6" => 198, "\xC7" => 199, "\xC8" => 200, "\xC9" => 201, "\xCA" => 202, "\xCB" => 203, "\xCC" => 204, "\xCD" => 205, "\xCE" => 206, "\xCF" => 207, "\xD0" => 208, "\xD1" => 209, "\xD2" => 210, "\xD3" => 211, "\xD4" => 212, "\xD5" => 213, "\xD6" => 214, "\xD7" => 215, "\xD8" => 216, "\xD9" => 217, "\xDA" => 218, "\xDB" => 219, "\xDC" => 220, "\xDD" => 221, "\xDE" => 222, "\xDF" => 223, "\xE0" => 224, "\xE1" => 225, "\xE2" => 226, "\xE3" => 227, "\xE4" => 228, "\xE5" => 229, "\xE6" => 230, "\xE7" => 231, "\xE8" => 232, "\xE9" => 233, "\xEA" => 234, "\xEB" => 235, "\xEC" => 236, "\xED" => 237, "\xEE" => 238, "\xEF" => 239, "\xF0" => 240, "\xF1" => 241, "\xF2" => 242, "\xF3" => 243, "\xF4" => 244, "\xF5" => 245, "\xF6" => 246, "\xF7" => 247, "\xF8" => 248, "\xF9" => 249, "\xFA" => 250, "\xFB" => 251, "\xFC" => 252, "\xFD" => 253, "\xFE" => 254, "\xFF" => 255]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/caseFolding_full.php b/includes/libraries/anti-xss-master/src/voku/helper/data/caseFolding_full.php new file mode 100644 index 000000000..258104597 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/caseFolding_full.php @@ -0,0 +1,218 @@ +<?php + +return [ + 0 => [ + 0 => 'ß', + 1 => 'İ', + 2 => 'ʼn', + 3 => 'ǰ', + 4 => 'ΐ', + 5 => 'ΰ', + 6 => 'և', + 7 => 'ẖ', + 8 => 'ẗ', + 9 => 'ẘ', + 10 => 'ẙ', + 11 => 'ẚ', + 12 => 'ẞ', + 13 => 'ὐ', + 14 => 'ὒ', + 15 => 'ὔ', + 16 => 'ὖ', + 17 => 'ᾀ', + 18 => 'ᾁ', + 19 => 'ᾂ', + 20 => 'ᾃ', + 21 => 'ᾄ', + 22 => 'ᾅ', + 23 => 'ᾆ', + 24 => 'ᾇ', + 25 => 'ᾈ', + 26 => 'ᾉ', + 27 => 'ᾊ', + 28 => 'ᾋ', + 29 => 'ᾌ', + 30 => 'ᾍ', + 31 => 'ᾎ', + 32 => 'ᾏ', + 33 => 'ᾐ', + 34 => 'ᾑ', + 35 => 'ᾒ', + 36 => 'ᾓ', + 37 => 'ᾔ', + 38 => 'ᾕ', + 39 => 'ᾖ', + 40 => 'ᾗ', + 41 => 'ᾘ', + 42 => 'ᾙ', + 43 => 'ᾚ', + 44 => 'ᾛ', + 45 => 'ᾜ', + 46 => 'ᾝ', + 47 => 'ᾞ', + 48 => 'ᾟ', + 49 => 'ᾠ', + 50 => 'ᾡ', + 51 => 'ᾢ', + 52 => 'ᾣ', + 53 => 'ᾤ', + 54 => 'ᾥ', + 55 => 'ᾦ', + 56 => 'ᾧ', + 57 => 'ᾨ', + 58 => 'ᾩ', + 59 => 'ᾪ', + 60 => 'ᾫ', + 61 => 'ᾬ', + 62 => 'ᾭ', + 63 => 'ᾮ', + 64 => 'ᾯ', + 65 => 'ᾲ', + 66 => 'ᾳ', + 67 => 'ᾴ', + 68 => 'ᾶ', + 69 => 'ᾷ', + 70 => 'ᾼ', + 71 => 'ῂ', + 72 => 'ῃ', + 73 => 'ῄ', + 74 => 'ῆ', + 75 => 'ῇ', + 76 => 'ῌ', + 77 => 'ῒ', + 78 => 'ΐ', + 79 => 'ῖ', + 80 => 'ῗ', + 81 => 'ῢ', + 82 => 'ΰ', + 83 => 'ῤ', + 84 => 'ῦ', + 85 => 'ῧ', + 86 => 'ῲ', + 87 => 'ῳ', + 88 => 'ῴ', + 89 => 'ῶ', + 90 => 'ῷ', + 91 => 'ῼ', + 92 => 'ff', + 93 => 'fi', + 94 => 'fl', + 95 => 'ffi', + 96 => 'ffl', + 97 => 'ſt', + 98 => 'st', + 99 => 'ﬓ', + 100 => 'ﬔ', + 101 => 'ﬕ', + 102 => 'ﬖ', + 103 => 'ﬗ', + 104 => 'J̌̌', + ], + 1 => [ + 0 => 'ss', + 1 => 'i̇', + 2 => 'ʼn', + 3 => 'ǰ', + 4 => 'ΐ', + 5 => 'ΰ', + 6 => 'եւ', + 7 => 'ẖ', + 8 => 'ẗ', + 9 => 'ẘ', + 10 => 'ẙ', + 11 => 'aʾ', + 12 => 'ss', + 13 => 'ὐ', + 14 => 'ὒ', + 15 => 'ὔ', + 16 => 'ὖ', + 17 => 'ἀι', + 18 => 'ἁι', + 19 => 'ἂι', + 20 => 'ἃι', + 21 => 'ἄι', + 22 => 'ἅι', + 23 => 'ἆι', + 24 => 'ἇι', + 25 => 'ἀι', + 26 => 'ἁι', + 27 => 'ἂι', + 28 => 'ἃι', + 29 => 'ἄι', + 30 => 'ἅι', + 31 => 'ἆι', + 32 => 'ἇι', + 33 => 'ἠι', + 34 => 'ἡι', + 35 => 'ἢι', + 36 => 'ἣι', + 37 => 'ἤι', + 38 => 'ἥι', + 39 => 'ἦι', + 40 => 'ἧι', + 41 => 'ἠι', + 42 => 'ἡι', + 43 => 'ἢι', + 44 => 'ἣι', + 45 => 'ἤι', + 46 => 'ἥι', + 47 => 'ἦι', + 48 => 'ἧι', + 49 => 'ὠι', + 50 => 'ὡι', + 51 => 'ὢι', + 52 => 'ὣι', + 53 => 'ὤι', + 54 => 'ὥι', + 55 => 'ὦι', + 56 => 'ὧι', + 57 => 'ὠι', + 58 => 'ὡι', + 59 => 'ὢι', + 60 => 'ὣι', + 61 => 'ὤι', + 62 => 'ὥι', + 63 => 'ὦι', + 64 => 'ὧι', + 65 => 'ὰι', + 66 => 'αι', + 67 => 'άι', + 68 => 'ᾶ', + 69 => 'ᾶι', + 70 => 'αι', + 71 => 'ὴι', + 72 => 'ηι', + 73 => 'ήι', + 74 => 'ῆ', + 75 => 'ῆι', + 76 => 'ηι', + 77 => 'ῒ', + 78 => 'ΐ', + 79 => 'ῖ', + 80 => 'ῗ', + 81 => 'ῢ', + 82 => 'ΰ', + 83 => 'ῤ', + 84 => 'ῦ', + 85 => 'ῧ', + 86 => 'ὼι', + 87 => 'ωι', + 88 => 'ώι', + 89 => 'ῶ', + 90 => 'ῶι', + 91 => 'ωι', + 92 => 'ff', + 93 => 'fi', + 94 => 'fl', + 95 => 'ffi', + 96 => 'ffl', + 97 => 'st', + 98 => 'st', + 99 => 'մն', + 100 => 'մե', + 101 => 'մի', + 102 => 'վն', + 103 => 'մխ', + 104 => 'ǰ', + ], +]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/chr.php b/includes/libraries/anti-xss-master/src/voku/helper/data/chr.php new file mode 100644 index 000000000..e20ffa647 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/chr.php @@ -0,0 +1 @@ +<?php return [0 => "\x00", 1 => "\x01", 2 => "\x02", 3 => "\x03", 4 => "\x04", 5 => "\x05", 6 => "\x06", 7 => "\x07", 8 => "\x08", 9 => "\x09", 10 => "\x0A", 11 => "\x0B", 12 => "\x0C", 13 => "\x0D", 14 => "\x0E", 15 => "\x0F", 16 => "\x10", 17 => "\x11", 18 => "\x12", 19 => "\x13", 20 => "\x14", 21 => "\x15", 22 => "\x16", 23 => "\x17", 24 => "\x18", 25 => "\x19", 26 => "\x1A", 27 => "\x1B", 28 => "\x1C", 29 => "\x1D", 30 => "\x1E", 31 => "\x1F", 32 => "\x20", 33 => "\x21", 34 => "\x22", 35 => "\x23", 36 => "\x24", 37 => "\x25", 38 => "\x26", 39 => "\x27", 40 => "\x28", 41 => "\x29", 42 => "\x2A", 43 => "\x2B", 44 => "\x2C", 45 => "\x2D", 46 => "\x2E", 47 => "\x2F", 48 => "\x30", 49 => "\x31", 50 => "\x32", 51 => "\x33", 52 => "\x34", 53 => "\x35", 54 => "\x36", 55 => "\x37", 56 => "\x38", 57 => "\x39", 58 => "\x3A", 59 => "\x3B", 60 => "\x3C", 61 => "\x3D", 62 => "\x3E", 63 => "\x3F", 64 => "\x40", 65 => "\x41", 66 => "\x42", 67 => "\x43", 68 => "\x44", 69 => "\x45", 70 => "\x46", 71 => "\x47", 72 => "\x48", 73 => "\x49", 74 => "\x4A", 75 => "\x4B", 76 => "\x4C", 77 => "\x4D", 78 => "\x4E", 79 => "\x4F", 80 => "\x50", 81 => "\x51", 82 => "\x52", 83 => "\x53", 84 => "\x54", 85 => "\x55", 86 => "\x56", 87 => "\x57", 88 => "\x58", 89 => "\x59", 90 => "\x5A", 91 => "\x5B", 92 => "\x5C", 93 => "\x5D", 94 => "\x5E", 95 => "\x5F", 96 => "\x60", 97 => "\x61", 98 => "\x62", 99 => "\x63", 100 => "\x64", 101 => "\x65", 102 => "\x66", 103 => "\x67", 104 => "\x68", 105 => "\x69", 106 => "\x6A", 107 => "\x6B", 108 => "\x6C", 109 => "\x6D", 110 => "\x6E", 111 => "\x6F", 112 => "\x70", 113 => "\x71", 114 => "\x72", 115 => "\x73", 116 => "\x74", 117 => "\x75", 118 => "\x76", 119 => "\x77", 120 => "\x78", 121 => "\x79", 122 => "\x7A", 123 => "\x7B", 124 => "\x7C", 125 => "\x7D", 126 => "\x7E", 127 => "\x7F", 128 => "\x80", 129 => "\x81", 130 => "\x82", 131 => "\x83", 132 => "\x84", 133 => "\x85", 134 => "\x86", 135 => "\x87", 136 => "\x88", 137 => "\x89", 138 => "\x8A", 139 => "\x8B", 140 => "\x8C", 141 => "\x8D", 142 => "\x8E", 143 => "\x8F", 144 => "\x90", 145 => "\x91", 146 => "\x92", 147 => "\x93", 148 => "\x94", 149 => "\x95", 150 => "\x96", 151 => "\x97", 152 => "\x98", 153 => "\x99", 154 => "\x9A", 155 => "\x9B", 156 => "\x9C", 157 => "\x9D", 158 => "\x9E", 159 => "\x9F", 160 => "\xA0", 161 => "\xA1", 162 => "\xA2", 163 => "\xA3", 164 => "\xA4", 165 => "\xA5", 166 => "\xA6", 167 => "\xA7", 168 => "\xA8", 169 => "\xA9", 170 => "\xAA", 171 => "\xAB", 172 => "\xAC", 173 => "\xAD", 174 => "\xAE", 175 => "\xAF", 176 => "\xB0", 177 => "\xB1", 178 => "\xB2", 179 => "\xB3", 180 => "\xB4", 181 => "\xB5", 182 => "\xB6", 183 => "\xB7", 184 => "\xB8", 185 => "\xB9", 186 => "\xBA", 187 => "\xBB", 188 => "\xBC", 189 => "\xBD", 190 => "\xBE", 191 => "\xBF", 192 => "\xC0", 193 => "\xC1", 194 => "\xC2", 195 => "\xC3", 196 => "\xC4", 197 => "\xC5", 198 => "\xC6", 199 => "\xC7", 200 => "\xC8", 201 => "\xC9", 202 => "\xCA", 203 => "\xCB", 204 => "\xCC", 205 => "\xCD", 206 => "\xCE", 207 => "\xCF", 208 => "\xD0", 209 => "\xD1", 210 => "\xD2", 211 => "\xD3", 212 => "\xD4", 213 => "\xD5", 214 => "\xD6", 215 => "\xD7", 216 => "\xD8", 217 => "\xD9", 218 => "\xDA", 219 => "\xDB", 220 => "\xDC", 221 => "\xDD", 222 => "\xDE", 223 => "\xDF", 224 => "\xE0", 225 => "\xE1", 226 => "\xE2", 227 => "\xE3", 228 => "\xE4", 229 => "\xE5", 230 => "\xE6", 231 => "\xE7", 232 => "\xE8", 233 => "\xE9", 234 => "\xEA", 235 => "\xEB", 236 => "\xEC", 237 => "\xED", 238 => "\xEE", 239 => "\xEF", 240 => "\xF0", 241 => "\xF1", 242 => "\xF2", 243 => "\xF3", 244 => "\xF4", 245 => "\xF5", 246 => "\xF6", 247 => "\xF7", 248 => "\xF8", 249 => "\xF9", 250 => "\xFA", 251 => "\xFB", 252 => "\xFC", 253 => "\xFD", 254 => "\xFE", 255 => "\xFF"]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/emoji.php b/includes/libraries/anti-xss-master/src/voku/helper/data/emoji.php new file mode 100644 index 000000000..ae10b33ef --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/emoji.php @@ -0,0 +1,7 @@ +<?php + +// ########## Unicode Emoji v11.0 ########## +// ##### Emoji group: Smileys & People ##### +// ##### Emoji subgroup: Face-positive ##### + +return ['CHARACTER_GRINNING_FACE' => "\u{1F600}", 'CHARACTER_BEAMING_FACE_WITH_SMILING_EYES' => "\u{1F601}", 'CHARACTER_FACE_WITH_TEARS_OF_JOY' => "\u{1F602}", 'CHARACTER_ROLLING_ON_THE_FLOOR_LAUGHING' => "\u{1F923}", 'CHARACTER_GRINNING_FACE_WITH_BIG_EYES' => "\u{1F603}", 'CHARACTER_GRINNING_FACE_WITH_SMILING_EYES' => "\u{1F604}", 'CHARACTER_GRINNING_FACE_WITH_SWEAT' => "\u{1F605}", 'CHARACTER_GRINNING_SQUINTING_FACE' => "\u{1F606}", 'CHARACTER_WINKING_FACE' => "\u{1F609}", 'CHARACTER_SMILING_FACE_WITH_SMILING_EYES' => "\u{1F60A}", 'CHARACTER_FACE_SAVORING_FOOD' => "\u{1F60B}", 'CHARACTER_SMILING_FACE_WITH_SUNGLASSES' => "\u{1F60E}", 'CHARACTER_SMILING_FACE_WITH_HEART_EYES' => "\u{1F60D}", 'CHARACTER_FACE_BLOWING_A_KISS' => "\u{1F618}", 'CHARACTER_SMILING_FACE_WITH_3_HEARTS' => "\u{1F970}", 'CHARACTER_KISSING_FACE' => "\u{1F617}", 'CHARACTER_KISSING_FACE_WITH_SMILING_EYES' => "\u{1F619}", 'CHARACTER_KISSING_FACE_WITH_CLOSED_EYES' => "\u{1F61A}", 'CHARACTER_SMILING_FACE' => "\u{263A}\u{FE0F}", 'CHARACTER_SLIGHTLY_SMILING_FACE' => "\u{1F642}", 'CHARACTER_HUGGING_FACE' => "\u{1F917}", 'CHARACTER_STAR_STRUCK' => "\u{1F929}", 'CHARACTER_THINKING_FACE' => "\u{1F914}", 'CHARACTER_FACE_WITH_RAISED_EYEBROW' => "\u{1F928}", 'CHARACTER_NEUTRAL_FACE' => "\u{1F610}", 'CHARACTER_EXPRESSIONLESS_FACE' => "\u{1F611}", 'CHARACTER_FACE_WITHOUT_MOUTH' => "\u{1F636}", 'CHARACTER_FACE_WITH_ROLLING_EYES' => "\u{1F644}", 'CHARACTER_SMIRKING_FACE' => "\u{1F60F}", 'CHARACTER_PERSEVERING_FACE' => "\u{1F623}", 'CHARACTER_SAD_BUT_RELIEVED_FACE' => "\u{1F625}", 'CHARACTER_FACE_WITH_OPEN_MOUTH' => "\u{1F62E}", 'CHARACTER_ZIPPER_MOUTH_FACE' => "\u{1F910}", 'CHARACTER_HUSHED_FACE' => "\u{1F62F}", 'CHARACTER_SLEEPY_FACE' => "\u{1F62A}", 'CHARACTER_TIRED_FACE' => "\u{1F62B}", 'CHARACTER_SLEEPING_FACE' => "\u{1F634}", 'CHARACTER_RELIEVED_FACE' => "\u{1F60C}", 'CHARACTER_FACE_WITH_TONGUE' => "\u{1F61B}", 'CHARACTER_WINKING_FACE_WITH_TONGUE' => "\u{1F61C}", 'CHARACTER_SQUINTING_FACE_WITH_TONGUE' => "\u{1F61D}", 'CHARACTER_DROOLING_FACE' => "\u{1F924}", 'CHARACTER_UNAMUSED_FACE' => "\u{1F612}", 'CHARACTER_DOWNCAST_FACE_WITH_SWEAT' => "\u{1F613}", 'CHARACTER_PENSIVE_FACE' => "\u{1F614}", 'CHARACTER_CONFUSED_FACE' => "\u{1F615}", 'CHARACTER_UPSIDE_DOWN_FACE' => "\u{1F643}", 'CHARACTER_MONEY_MOUTH_FACE' => "\u{1F911}", 'CHARACTER_ASTONISHED_FACE' => "\u{1F632}", 'CHARACTER_FROWNING_FACE' => "\u{2639}\u{FE0F}", 'CHARACTER_SLIGHTLY_FROWNING_FACE' => "\u{1F641}", 'CHARACTER_CONFOUNDED_FACE' => "\u{1F616}", 'CHARACTER_DISAPPOINTED_FACE' => "\u{1F61E}", 'CHARACTER_WORRIED_FACE' => "\u{1F61F}", 'CHARACTER_FACE_WITH_STEAM_FROM_NOSE' => "\u{1F624}", 'CHARACTER_CRYING_FACE' => "\u{1F622}", 'CHARACTER_LOUDLY_CRYING_FACE' => "\u{1F62D}", 'CHARACTER_FROWNING_FACE_WITH_OPEN_MOUTH' => "\u{1F626}", 'CHARACTER_ANGUISHED_FACE' => "\u{1F627}", 'CHARACTER_FEARFUL_FACE' => "\u{1F628}", 'CHARACTER_WEARY_FACE' => "\u{1F629}", 'CHARACTER_EXPLODING_HEAD' => "\u{1F92F}", 'CHARACTER_GRIMACING_FACE' => "\u{1F62C}", 'CHARACTER_ANXIOUS_FACE_WITH_SWEAT' => "\u{1F630}", 'CHARACTER_FACE_SCREAMING_IN_FEAR' => "\u{1F631}", 'CHARACTER_HOT_FACE' => "\u{1F975}", 'CHARACTER_COLD_FACE' => "\u{1F976}", 'CHARACTER_FLUSHED_FACE' => "\u{1F633}", 'CHARACTER_ZANY_FACE' => "\u{1F92A}", 'CHARACTER_DIZZY_FACE' => "\u{1F635}", 'CHARACTER_POUTING_FACE' => "\u{1F621}", 'CHARACTER_ANGRY_FACE' => "\u{1F620}", 'CHARACTER_FACE_WITH_SYMBOLS_ON_MOUTH' => "\u{1F92C}", 'CHARACTER_FACE_WITH_MEDICAL_MASK' => "\u{1F637}", 'CHARACTER_FACE_WITH_THERMOMETER' => "\u{1F912}", 'CHARACTER_FACE_WITH_HEAD_BANDAGE' => "\u{1F915}", 'CHARACTER_NAUSEATED_FACE' => "\u{1F922}", 'CHARACTER_FACE_VOMITING' => "\u{1F92E}", 'CHARACTER_SNEEZING_FACE' => "\u{1F927}", 'CHARACTER_SMILING_FACE_WITH_HALO' => "\u{1F607}", 'CHARACTER_COWBOY_HAT_FACE' => "\u{1F920}", 'CHARACTER_PARTYING_FACE' => "\u{1F973}", 'CHARACTER_WOOZY_FACE' => "\u{1F974}", 'CHARACTER_PLEADING_FACE' => "\u{1F97A}", 'CHARACTER_LYING_FACE' => "\u{1F925}", 'CHARACTER_SHUSHING_FACE' => "\u{1F92B}", 'CHARACTER_FACE_WITH_HAND_OVER_MOUTH' => "\u{1F92D}", 'CHARACTER_FACE_WITH_MONOCLE' => "\u{1F9D0}", 'CHARACTER_NERD_FACE' => "\u{1F913}", 'CHARACTER_SMILING_FACE_WITH_HORNS' => "\u{1F608}", 'CHARACTER_ANGRY_FACE_WITH_HORNS' => "\u{1F47F}", 'CHARACTER_CLOWN_FACE' => "\u{1F921}", 'CHARACTER_OGRE' => "\u{1F479}", 'CHARACTER_GOBLIN' => "\u{1F47A}", 'CHARACTER_SKULL' => "\u{1F480}", 'CHARACTER_SKULL_AND_CROSSBONES' => "\u{2620}\u{FE0F}", 'CHARACTER_GHOST' => "\u{1F47B}", 'CHARACTER_ALIEN' => "\u{1F47D}", 'CHARACTER_ALIEN_MONSTER' => "\u{1F47E}", 'CHARACTER_ROBOT_FACE' => "\u{1F916}", 'CHARACTER_PILE_OF_POO' => "\u{1F4A9}", 'CHARACTER_GRINNING_CAT_FACE' => "\u{1F63A}", 'CHARACTER_GRINNING_CAT_FACE_WITH_SMILING_EYES' => "\u{1F638}", 'CHARACTER_CAT_FACE_WITH_TEARS_OF_JOY' => "\u{1F639}", 'CHARACTER_SMILING_CAT_FACE_WITH_HEART_EYES' => "\u{1F63B}", 'CHARACTER_CAT_FACE_WITH_WRY_SMILE' => "\u{1F63C}", 'CHARACTER_KISSING_CAT_FACE' => "\u{1F63D}", 'CHARACTER_WEARY_CAT_FACE' => "\u{1F640}", 'CHARACTER_CRYING_CAT_FACE' => "\u{1F63F}", 'CHARACTER_POUTING_CAT_FACE' => "\u{1F63E}", 'CHARACTER_SEE_NO_EVIL_MONKEY' => "\u{1F648}", 'CHARACTER_HEAR_NO_EVIL_MONKEY' => "\u{1F649}", 'CHARACTER_SPEAK_NO_EVIL_MONKEY' => "\u{1F64A}", 'CHARACTER_LIGHT_SKIN_TONE' => "\u{1F3FB}", 'CHARACTER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3FC}", 'CHARACTER_MEDIUM_SKIN_TONE' => "\u{1F3FD}", 'CHARACTER_MEDIUM_DARK_SKIN_TONE' => "\u{1F3FE}", 'CHARACTER_DARK_SKIN_TONE' => "\u{1F3FF}", 'CHARACTER_BABY' => "\u{1F476}", 'CHARACTER_BABY_LIGHT_SKIN_TONE' => "\u{1F476}\u{1F3FB}", 'CHARACTER_BABY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F476}\u{1F3FC}", 'CHARACTER_BABY_MEDIUM_SKIN_TONE' => "\u{1F476}\u{1F3FD}", 'CHARACTER_BABY_MEDIUM_DARK_SKIN_TONE' => "\u{1F476}\u{1F3FE}", 'CHARACTER_BABY_DARK_SKIN_TONE' => "\u{1F476}\u{1F3FF}", 'CHARACTER_CHILD' => "\u{1F9D2}", 'CHARACTER_CHILD_LIGHT_SKIN_TONE' => "\u{1F9D2}\u{1F3FB}", 'CHARACTER_CHILD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D2}\u{1F3FC}", 'CHARACTER_CHILD_MEDIUM_SKIN_TONE' => "\u{1F9D2}\u{1F3FD}", 'CHARACTER_CHILD_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D2}\u{1F3FE}", 'CHARACTER_CHILD_DARK_SKIN_TONE' => "\u{1F9D2}\u{1F3FF}", 'CHARACTER_BOY' => "\u{1F466}", 'CHARACTER_BOY_LIGHT_SKIN_TONE' => "\u{1F466}\u{1F3FB}", 'CHARACTER_BOY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F466}\u{1F3FC}", 'CHARACTER_BOY_MEDIUM_SKIN_TONE' => "\u{1F466}\u{1F3FD}", 'CHARACTER_BOY_MEDIUM_DARK_SKIN_TONE' => "\u{1F466}\u{1F3FE}", 'CHARACTER_BOY_DARK_SKIN_TONE' => "\u{1F466}\u{1F3FF}", 'CHARACTER_GIRL' => "\u{1F467}", 'CHARACTER_GIRL_LIGHT_SKIN_TONE' => "\u{1F467}\u{1F3FB}", 'CHARACTER_GIRL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F467}\u{1F3FC}", 'CHARACTER_GIRL_MEDIUM_SKIN_TONE' => "\u{1F467}\u{1F3FD}", 'CHARACTER_GIRL_MEDIUM_DARK_SKIN_TONE' => "\u{1F467}\u{1F3FE}", 'CHARACTER_GIRL_DARK_SKIN_TONE' => "\u{1F467}\u{1F3FF}", 'CHARACTER_ADULT' => "\u{1F9D1}", 'CHARACTER_ADULT_LIGHT_SKIN_TONE' => "\u{1F9D1}\u{1F3FB}", 'CHARACTER_ADULT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D1}\u{1F3FC}", 'CHARACTER_ADULT_MEDIUM_SKIN_TONE' => "\u{1F9D1}\u{1F3FD}", 'CHARACTER_ADULT_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D1}\u{1F3FE}", 'CHARACTER_ADULT_DARK_SKIN_TONE' => "\u{1F9D1}\u{1F3FF}", 'CHARACTER_MAN' => "\u{1F468}", 'CHARACTER_MAN_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}", 'CHARACTER_MAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}", 'CHARACTER_MAN_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}", 'CHARACTER_MAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}", 'CHARACTER_MAN_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}", 'CHARACTER_WOMAN' => "\u{1F469}", 'CHARACTER_WOMAN_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}", 'CHARACTER_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}", 'CHARACTER_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}", 'CHARACTER_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}", 'CHARACTER_WOMAN_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}", 'CHARACTER_OLDER_ADULT' => "\u{1F9D3}", 'CHARACTER_OLDER_ADULT_LIGHT_SKIN_TONE' => "\u{1F9D3}\u{1F3FB}", 'CHARACTER_OLDER_ADULT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D3}\u{1F3FC}", 'CHARACTER_OLDER_ADULT_MEDIUM_SKIN_TONE' => "\u{1F9D3}\u{1F3FD}", 'CHARACTER_OLDER_ADULT_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D3}\u{1F3FE}", 'CHARACTER_OLDER_ADULT_DARK_SKIN_TONE' => "\u{1F9D3}\u{1F3FF}", 'CHARACTER_OLD_MAN' => "\u{1F474}", 'CHARACTER_OLD_MAN_LIGHT_SKIN_TONE' => "\u{1F474}\u{1F3FB}", 'CHARACTER_OLD_MAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F474}\u{1F3FC}", 'CHARACTER_OLD_MAN_MEDIUM_SKIN_TONE' => "\u{1F474}\u{1F3FD}", 'CHARACTER_OLD_MAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F474}\u{1F3FE}", 'CHARACTER_OLD_MAN_DARK_SKIN_TONE' => "\u{1F474}\u{1F3FF}", 'CHARACTER_OLD_WOMAN' => "\u{1F475}", 'CHARACTER_OLD_WOMAN_LIGHT_SKIN_TONE' => "\u{1F475}\u{1F3FB}", 'CHARACTER_OLD_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F475}\u{1F3FC}", 'CHARACTER_OLD_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F475}\u{1F3FD}", 'CHARACTER_OLD_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F475}\u{1F3FE}", 'CHARACTER_OLD_WOMAN_DARK_SKIN_TONE' => "\u{1F475}\u{1F3FF}", 'CHARACTER_MAN_HEALTH_WORKER' => "\u{1F468}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER' => "\u{1F469}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_STUDENT' => "\u{1F468}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT' => "\u{1F469}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F393}", 'CHARACTER_MAN_TEACHER' => "\u{1F468}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER' => "\u{1F469}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_JUDGE' => "\u{1F468}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE' => "\u{1F469}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_FARMER' => "\u{1F468}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER' => "\u{1F469}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F33E}", 'CHARACTER_MAN_COOK' => "\u{1F468}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK' => "\u{1F469}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F373}", 'CHARACTER_MAN_MECHANIC' => "\u{1F468}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC' => "\u{1F469}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F527}", 'CHARACTER_MAN_FACTORY_WORKER' => "\u{1F468}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER' => "\u{1F469}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_OFFICE_WORKER' => "\u{1F468}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER' => "\u{1F469}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_SCIENTIST' => "\u{1F468}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST' => "\u{1F469}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F52C}", 'CHARACTER_MAN_TECHNOLOGIST' => "\u{1F468}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST' => "\u{1F469}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_SINGER' => "\u{1F468}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER' => "\u{1F469}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_ARTIST' => "\u{1F468}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST' => "\u{1F469}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_PILOT' => "\u{1F468}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT' => "\u{1F469}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_ASTRONAUT' => "\u{1F468}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT' => "\u{1F469}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F680}", 'CHARACTER_MAN_FIREFIGHTER' => "\u{1F468}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER' => "\u{1F469}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F692}", 'CHARACTER_POLICE_OFFICER' => "\u{1F46E}", 'CHARACTER_POLICE_OFFICER_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FB}", 'CHARACTER_POLICE_OFFICER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FC}", 'CHARACTER_POLICE_OFFICER_MEDIUM_SKIN_TONE' => "\u{1F46E}\u{1F3FD}", 'CHARACTER_POLICE_OFFICER_MEDIUM_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FE}", 'CHARACTER_POLICE_OFFICER_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FF}", 'CHARACTER_MAN_POLICE_OFFICER' => "\u{1F46E}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_MEDIUM_SKIN_TONE' => "\u{1F46E}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_MEDIUM_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER' => "\u{1F46E}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_MEDIUM_SKIN_TONE' => "\u{1F46E}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_MEDIUM_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_DETECTIVE' => "\u{1F575}\u{FE0F}", 'CHARACTER_DETECTIVE_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FB}", 'CHARACTER_DETECTIVE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FC}", 'CHARACTER_DETECTIVE_MEDIUM_SKIN_TONE' => "\u{1F575}\u{1F3FD}", 'CHARACTER_DETECTIVE_MEDIUM_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FE}", 'CHARACTER_DETECTIVE_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FF}", 'CHARACTER_MAN_DETECTIVE' => "\u{1F575}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_MEDIUM_SKIN_TONE' => "\u{1F575}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_MEDIUM_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE' => "\u{1F575}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_MEDIUM_SKIN_TONE' => "\u{1F575}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_MEDIUM_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_GUARD' => "\u{1F482}", 'CHARACTER_GUARD_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FB}", 'CHARACTER_GUARD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FC}", 'CHARACTER_GUARD_MEDIUM_SKIN_TONE' => "\u{1F482}\u{1F3FD}", 'CHARACTER_GUARD_MEDIUM_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FE}", 'CHARACTER_GUARD_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FF}", 'CHARACTER_MAN_GUARD' => "\u{1F482}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_MEDIUM_SKIN_TONE' => "\u{1F482}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_MEDIUM_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GUARD' => "\u{1F482}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_MEDIUM_SKIN_TONE' => "\u{1F482}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_MEDIUM_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_CONSTRUCTION_WORKER' => "\u{1F477}", 'CHARACTER_CONSTRUCTION_WORKER_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FB}", 'CHARACTER_CONSTRUCTION_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FC}", 'CHARACTER_CONSTRUCTION_WORKER_MEDIUM_SKIN_TONE' => "\u{1F477}\u{1F3FD}", 'CHARACTER_CONSTRUCTION_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FE}", 'CHARACTER_CONSTRUCTION_WORKER_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FF}", 'CHARACTER_MAN_CONSTRUCTION_WORKER' => "\u{1F477}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_MEDIUM_SKIN_TONE' => "\u{1F477}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER' => "\u{1F477}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_MEDIUM_SKIN_TONE' => "\u{1F477}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PRINCE' => "\u{1F934}", 'CHARACTER_PRINCE_LIGHT_SKIN_TONE' => "\u{1F934}\u{1F3FB}", 'CHARACTER_PRINCE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F934}\u{1F3FC}", 'CHARACTER_PRINCE_MEDIUM_SKIN_TONE' => "\u{1F934}\u{1F3FD}", 'CHARACTER_PRINCE_MEDIUM_DARK_SKIN_TONE' => "\u{1F934}\u{1F3FE}", 'CHARACTER_PRINCE_DARK_SKIN_TONE' => "\u{1F934}\u{1F3FF}", 'CHARACTER_PRINCESS' => "\u{1F478}", 'CHARACTER_PRINCESS_LIGHT_SKIN_TONE' => "\u{1F478}\u{1F3FB}", 'CHARACTER_PRINCESS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F478}\u{1F3FC}", 'CHARACTER_PRINCESS_MEDIUM_SKIN_TONE' => "\u{1F478}\u{1F3FD}", 'CHARACTER_PRINCESS_MEDIUM_DARK_SKIN_TONE' => "\u{1F478}\u{1F3FE}", 'CHARACTER_PRINCESS_DARK_SKIN_TONE' => "\u{1F478}\u{1F3FF}", 'CHARACTER_PERSON_WEARING_TURBAN' => "\u{1F473}", 'CHARACTER_PERSON_WEARING_TURBAN_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FB}", 'CHARACTER_PERSON_WEARING_TURBAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FC}", 'CHARACTER_PERSON_WEARING_TURBAN_MEDIUM_SKIN_TONE' => "\u{1F473}\u{1F3FD}", 'CHARACTER_PERSON_WEARING_TURBAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FE}", 'CHARACTER_PERSON_WEARING_TURBAN_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FF}", 'CHARACTER_MAN_WEARING_TURBAN' => "\u{1F473}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_MEDIUM_SKIN_TONE' => "\u{1F473}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN' => "\u{1F473}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_MEDIUM_SKIN_TONE' => "\u{1F473}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_WITH_CHINESE_CAP' => "\u{1F472}", 'CHARACTER_MAN_WITH_CHINESE_CAP_LIGHT_SKIN_TONE' => "\u{1F472}\u{1F3FB}", 'CHARACTER_MAN_WITH_CHINESE_CAP_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F472}\u{1F3FC}", 'CHARACTER_MAN_WITH_CHINESE_CAP_MEDIUM_SKIN_TONE' => "\u{1F472}\u{1F3FD}", 'CHARACTER_MAN_WITH_CHINESE_CAP_MEDIUM_DARK_SKIN_TONE' => "\u{1F472}\u{1F3FE}", 'CHARACTER_MAN_WITH_CHINESE_CAP_DARK_SKIN_TONE' => "\u{1F472}\u{1F3FF}", 'CHARACTER_WOMAN_WITH_HEADSCARF' => "\u{1F9D5}", 'CHARACTER_WOMAN_WITH_HEADSCARF_LIGHT_SKIN_TONE' => "\u{1F9D5}\u{1F3FB}", 'CHARACTER_WOMAN_WITH_HEADSCARF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D5}\u{1F3FC}", 'CHARACTER_WOMAN_WITH_HEADSCARF_MEDIUM_SKIN_TONE' => "\u{1F9D5}\u{1F3FD}", 'CHARACTER_WOMAN_WITH_HEADSCARF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D5}\u{1F3FE}", 'CHARACTER_WOMAN_WITH_HEADSCARF_DARK_SKIN_TONE' => "\u{1F9D5}\u{1F3FF}", 'CHARACTER_BEARDED_PERSON' => "\u{1F9D4}", 'CHARACTER_BEARDED_PERSON_LIGHT_SKIN_TONE' => "\u{1F9D4}\u{1F3FB}", 'CHARACTER_BEARDED_PERSON_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D4}\u{1F3FC}", 'CHARACTER_BEARDED_PERSON_MEDIUM_SKIN_TONE' => "\u{1F9D4}\u{1F3FD}", 'CHARACTER_BEARDED_PERSON_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D4}\u{1F3FE}", 'CHARACTER_BEARDED_PERSON_DARK_SKIN_TONE' => "\u{1F9D4}\u{1F3FF}", 'CHARACTER_BLOND_HAIRED_PERSON' => "\u{1F471}", 'CHARACTER_BLOND_HAIRED_PERSON_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FB}", 'CHARACTER_BLOND_HAIRED_PERSON_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FC}", 'CHARACTER_BLOND_HAIRED_PERSON_MEDIUM_SKIN_TONE' => "\u{1F471}\u{1F3FD}", 'CHARACTER_BLOND_HAIRED_PERSON_MEDIUM_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FE}", 'CHARACTER_BLOND_HAIRED_PERSON_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FF}", 'CHARACTER_BLOND_HAIRED_MAN' => "\u{1F471}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_MEDIUM_SKIN_TONE' => "\u{1F471}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN' => "\u{1F471}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F471}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_RED_HAIRED' => "\u{1F468}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED' => "\u{1F469}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_CURLY_HAIRED' => "\u{1F468}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED' => "\u{1F469}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_BALD' => "\u{1F468}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD' => "\u{1F469}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_WHITE_HAIRED' => "\u{1F468}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED' => "\u{1F469}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_IN_TUXEDO' => "\u{1F935}", 'CHARACTER_MAN_IN_TUXEDO_LIGHT_SKIN_TONE' => "\u{1F935}\u{1F3FB}", 'CHARACTER_MAN_IN_TUXEDO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F935}\u{1F3FC}", 'CHARACTER_MAN_IN_TUXEDO_MEDIUM_SKIN_TONE' => "\u{1F935}\u{1F3FD}", 'CHARACTER_MAN_IN_TUXEDO_MEDIUM_DARK_SKIN_TONE' => "\u{1F935}\u{1F3FE}", 'CHARACTER_MAN_IN_TUXEDO_DARK_SKIN_TONE' => "\u{1F935}\u{1F3FF}", 'CHARACTER_BRIDE_WITH_VEIL' => "\u{1F470}", 'CHARACTER_BRIDE_WITH_VEIL_LIGHT_SKIN_TONE' => "\u{1F470}\u{1F3FB}", 'CHARACTER_BRIDE_WITH_VEIL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F470}\u{1F3FC}", 'CHARACTER_BRIDE_WITH_VEIL_MEDIUM_SKIN_TONE' => "\u{1F470}\u{1F3FD}", 'CHARACTER_BRIDE_WITH_VEIL_MEDIUM_DARK_SKIN_TONE' => "\u{1F470}\u{1F3FE}", 'CHARACTER_BRIDE_WITH_VEIL_DARK_SKIN_TONE' => "\u{1F470}\u{1F3FF}", 'CHARACTER_PREGNANT_WOMAN' => "\u{1F930}", 'CHARACTER_PREGNANT_WOMAN_LIGHT_SKIN_TONE' => "\u{1F930}\u{1F3FB}", 'CHARACTER_PREGNANT_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F930}\u{1F3FC}", 'CHARACTER_PREGNANT_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F930}\u{1F3FD}", 'CHARACTER_PREGNANT_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F930}\u{1F3FE}", 'CHARACTER_PREGNANT_WOMAN_DARK_SKIN_TONE' => "\u{1F930}\u{1F3FF}", 'CHARACTER_BREAST_FEEDING' => "\u{1F931}", 'CHARACTER_BREAST_FEEDING_LIGHT_SKIN_TONE' => "\u{1F931}\u{1F3FB}", 'CHARACTER_BREAST_FEEDING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F931}\u{1F3FC}", 'CHARACTER_BREAST_FEEDING_MEDIUM_SKIN_TONE' => "\u{1F931}\u{1F3FD}", 'CHARACTER_BREAST_FEEDING_MEDIUM_DARK_SKIN_TONE' => "\u{1F931}\u{1F3FE}", 'CHARACTER_BREAST_FEEDING_DARK_SKIN_TONE' => "\u{1F931}\u{1F3FF}", 'CHARACTER_BABY_ANGEL' => "\u{1F47C}", 'CHARACTER_BABY_ANGEL_LIGHT_SKIN_TONE' => "\u{1F47C}\u{1F3FB}", 'CHARACTER_BABY_ANGEL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F47C}\u{1F3FC}", 'CHARACTER_BABY_ANGEL_MEDIUM_SKIN_TONE' => "\u{1F47C}\u{1F3FD}", 'CHARACTER_BABY_ANGEL_MEDIUM_DARK_SKIN_TONE' => "\u{1F47C}\u{1F3FE}", 'CHARACTER_BABY_ANGEL_DARK_SKIN_TONE' => "\u{1F47C}\u{1F3FF}", 'CHARACTER_SANTA_CLAUS' => "\u{1F385}", 'CHARACTER_SANTA_CLAUS_LIGHT_SKIN_TONE' => "\u{1F385}\u{1F3FB}", 'CHARACTER_SANTA_CLAUS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F385}\u{1F3FC}", 'CHARACTER_SANTA_CLAUS_MEDIUM_SKIN_TONE' => "\u{1F385}\u{1F3FD}", 'CHARACTER_SANTA_CLAUS_MEDIUM_DARK_SKIN_TONE' => "\u{1F385}\u{1F3FE}", 'CHARACTER_SANTA_CLAUS_DARK_SKIN_TONE' => "\u{1F385}\u{1F3FF}", 'CHARACTER_MRS_CLAUS' => "\u{1F936}", 'CHARACTER_MRS_CLAUS_LIGHT_SKIN_TONE' => "\u{1F936}\u{1F3FB}", 'CHARACTER_MRS_CLAUS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F936}\u{1F3FC}", 'CHARACTER_MRS_CLAUS_MEDIUM_SKIN_TONE' => "\u{1F936}\u{1F3FD}", 'CHARACTER_MRS_CLAUS_MEDIUM_DARK_SKIN_TONE' => "\u{1F936}\u{1F3FE}", 'CHARACTER_MRS_CLAUS_DARK_SKIN_TONE' => "\u{1F936}\u{1F3FF}", 'CHARACTER_SUPERHERO' => "\u{1F9B8}", 'CHARACTER_SUPERHERO_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FB}", 'CHARACTER_SUPERHERO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FC}", 'CHARACTER_SUPERHERO_MEDIUM_SKIN_TONE' => "\u{1F9B8}\u{1F3FD}", 'CHARACTER_SUPERHERO_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FE}", 'CHARACTER_SUPERHERO_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FF}", 'CHARACTER_WOMAN_SUPERHERO' => "\u{1F9B8}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_MEDIUM_SKIN_TONE' => "\u{1F9B8}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO' => "\u{1F9B8}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_MEDIUM_SKIN_TONE' => "\u{1F9B8}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_SUPERVILLAIN' => "\u{1F9B9}", 'CHARACTER_SUPERVILLAIN_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FB}", 'CHARACTER_SUPERVILLAIN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FC}", 'CHARACTER_SUPERVILLAIN_MEDIUM_SKIN_TONE' => "\u{1F9B9}\u{1F3FD}", 'CHARACTER_SUPERVILLAIN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FE}", 'CHARACTER_SUPERVILLAIN_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FF}", 'CHARACTER_WOMAN_SUPERVILLAIN' => "\u{1F9B9}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_MEDIUM_SKIN_TONE' => "\u{1F9B9}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN' => "\u{1F9B9}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_MEDIUM_SKIN_TONE' => "\u{1F9B9}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAGE' => "\u{1F9D9}", 'CHARACTER_MAGE_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FB}", 'CHARACTER_MAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FC}", 'CHARACTER_MAGE_MEDIUM_SKIN_TONE' => "\u{1F9D9}\u{1F3FD}", 'CHARACTER_MAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FE}", 'CHARACTER_MAGE_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FF}", 'CHARACTER_WOMAN_MAGE' => "\u{1F9D9}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_MEDIUM_SKIN_TONE' => "\u{1F9D9}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_MAGE' => "\u{1F9D9}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_MEDIUM_SKIN_TONE' => "\u{1F9D9}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_FAIRY' => "\u{1F9DA}", 'CHARACTER_FAIRY_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FB}", 'CHARACTER_FAIRY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FC}", 'CHARACTER_FAIRY_MEDIUM_SKIN_TONE' => "\u{1F9DA}\u{1F3FD}", 'CHARACTER_FAIRY_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FE}", 'CHARACTER_FAIRY_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FF}", 'CHARACTER_WOMAN_FAIRY' => "\u{1F9DA}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_MEDIUM_SKIN_TONE' => "\u{1F9DA}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_FAIRY' => "\u{1F9DA}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_MEDIUM_SKIN_TONE' => "\u{1F9DA}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_VAMPIRE' => "\u{1F9DB}", 'CHARACTER_VAMPIRE_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FB}", 'CHARACTER_VAMPIRE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FC}", 'CHARACTER_VAMPIRE_MEDIUM_SKIN_TONE' => "\u{1F9DB}\u{1F3FD}", 'CHARACTER_VAMPIRE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FE}", 'CHARACTER_VAMPIRE_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FF}", 'CHARACTER_WOMAN_VAMPIRE' => "\u{1F9DB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_MEDIUM_SKIN_TONE' => "\u{1F9DB}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE' => "\u{1F9DB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_MEDIUM_SKIN_TONE' => "\u{1F9DB}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERPERSON' => "\u{1F9DC}", 'CHARACTER_MERPERSON_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FB}", 'CHARACTER_MERPERSON_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FC}", 'CHARACTER_MERPERSON_MEDIUM_SKIN_TONE' => "\u{1F9DC}\u{1F3FD}", 'CHARACTER_MERPERSON_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FE}", 'CHARACTER_MERPERSON_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FF}", 'CHARACTER_MERMAID' => "\u{1F9DC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_MEDIUM_SKIN_TONE' => "\u{1F9DC}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAN' => "\u{1F9DC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_MEDIUM_SKIN_TONE' => "\u{1F9DC}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_ELF' => "\u{1F9DD}", 'CHARACTER_ELF_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FB}", 'CHARACTER_ELF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FC}", 'CHARACTER_ELF_MEDIUM_SKIN_TONE' => "\u{1F9DD}\u{1F3FD}", 'CHARACTER_ELF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FE}", 'CHARACTER_ELF_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FF}", 'CHARACTER_WOMAN_ELF' => "\u{1F9DD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_MEDIUM_SKIN_TONE' => "\u{1F9DD}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_ELF' => "\u{1F9DD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_MEDIUM_SKIN_TONE' => "\u{1F9DD}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_GENIE' => "\u{1F9DE}", 'CHARACTER_WOMAN_GENIE' => "\u{1F9DE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_GENIE' => "\u{1F9DE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_ZOMBIE' => "\u{1F9DF}", 'CHARACTER_WOMAN_ZOMBIE' => "\u{1F9DF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_ZOMBIE' => "\u{1F9DF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_FROWNING' => "\u{1F64D}", 'CHARACTER_PERSON_FROWNING_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FB}", 'CHARACTER_PERSON_FROWNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FC}", 'CHARACTER_PERSON_FROWNING_MEDIUM_SKIN_TONE' => "\u{1F64D}\u{1F3FD}", 'CHARACTER_PERSON_FROWNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FE}", 'CHARACTER_PERSON_FROWNING_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FF}", 'CHARACTER_MAN_FROWNING' => "\u{1F64D}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_MEDIUM_SKIN_TONE' => "\u{1F64D}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING' => "\u{1F64D}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_MEDIUM_SKIN_TONE' => "\u{1F64D}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_POUTING' => "\u{1F64E}", 'CHARACTER_PERSON_POUTING_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FB}", 'CHARACTER_PERSON_POUTING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FC}", 'CHARACTER_PERSON_POUTING_MEDIUM_SKIN_TONE' => "\u{1F64E}\u{1F3FD}", 'CHARACTER_PERSON_POUTING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FE}", 'CHARACTER_PERSON_POUTING_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FF}", 'CHARACTER_MAN_POUTING' => "\u{1F64E}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_MEDIUM_SKIN_TONE' => "\u{1F64E}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_POUTING' => "\u{1F64E}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_MEDIUM_SKIN_TONE' => "\u{1F64E}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GESTURING_NO' => "\u{1F645}", 'CHARACTER_PERSON_GESTURING_NO_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FB}", 'CHARACTER_PERSON_GESTURING_NO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FC}", 'CHARACTER_PERSON_GESTURING_NO_MEDIUM_SKIN_TONE' => "\u{1F645}\u{1F3FD}", 'CHARACTER_PERSON_GESTURING_NO_MEDIUM_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FE}", 'CHARACTER_PERSON_GESTURING_NO_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FF}", 'CHARACTER_MAN_GESTURING_NO' => "\u{1F645}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_MEDIUM_SKIN_TONE' => "\u{1F645}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_MEDIUM_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO' => "\u{1F645}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_MEDIUM_SKIN_TONE' => "\u{1F645}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_MEDIUM_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GESTURING_OK' => "\u{1F646}", 'CHARACTER_PERSON_GESTURING_OK_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FB}", 'CHARACTER_PERSON_GESTURING_OK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FC}", 'CHARACTER_PERSON_GESTURING_OK_MEDIUM_SKIN_TONE' => "\u{1F646}\u{1F3FD}", 'CHARACTER_PERSON_GESTURING_OK_MEDIUM_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FE}", 'CHARACTER_PERSON_GESTURING_OK_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FF}", 'CHARACTER_MAN_GESTURING_OK' => "\u{1F646}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_MEDIUM_SKIN_TONE' => "\u{1F646}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_MEDIUM_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK' => "\u{1F646}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_MEDIUM_SKIN_TONE' => "\u{1F646}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_MEDIUM_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_TIPPING_HAND' => "\u{1F481}", 'CHARACTER_PERSON_TIPPING_HAND_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FB}", 'CHARACTER_PERSON_TIPPING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FC}", 'CHARACTER_PERSON_TIPPING_HAND_MEDIUM_SKIN_TONE' => "\u{1F481}\u{1F3FD}", 'CHARACTER_PERSON_TIPPING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FE}", 'CHARACTER_PERSON_TIPPING_HAND_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FF}", 'CHARACTER_MAN_TIPPING_HAND' => "\u{1F481}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_MEDIUM_SKIN_TONE' => "\u{1F481}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND' => "\u{1F481}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_MEDIUM_SKIN_TONE' => "\u{1F481}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_RAISING_HAND' => "\u{1F64B}", 'CHARACTER_PERSON_RAISING_HAND_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FB}", 'CHARACTER_PERSON_RAISING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FC}", 'CHARACTER_PERSON_RAISING_HAND_MEDIUM_SKIN_TONE' => "\u{1F64B}\u{1F3FD}", 'CHARACTER_PERSON_RAISING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FE}", 'CHARACTER_PERSON_RAISING_HAND_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FF}", 'CHARACTER_MAN_RAISING_HAND' => "\u{1F64B}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_MEDIUM_SKIN_TONE' => "\u{1F64B}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND' => "\u{1F64B}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_MEDIUM_SKIN_TONE' => "\u{1F64B}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_BOWING' => "\u{1F647}", 'CHARACTER_PERSON_BOWING_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FB}", 'CHARACTER_PERSON_BOWING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FC}", 'CHARACTER_PERSON_BOWING_MEDIUM_SKIN_TONE' => "\u{1F647}\u{1F3FD}", 'CHARACTER_PERSON_BOWING_MEDIUM_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FE}", 'CHARACTER_PERSON_BOWING_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FF}", 'CHARACTER_MAN_BOWING' => "\u{1F647}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_MEDIUM_SKIN_TONE' => "\u{1F647}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_MEDIUM_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_BOWING' => "\u{1F647}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_MEDIUM_SKIN_TONE' => "\u{1F647}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_MEDIUM_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_FACEPALMING' => "\u{1F926}", 'CHARACTER_PERSON_FACEPALMING_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FB}", 'CHARACTER_PERSON_FACEPALMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FC}", 'CHARACTER_PERSON_FACEPALMING_MEDIUM_SKIN_TONE' => "\u{1F926}\u{1F3FD}", 'CHARACTER_PERSON_FACEPALMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FE}", 'CHARACTER_PERSON_FACEPALMING_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FF}", 'CHARACTER_MAN_FACEPALMING' => "\u{1F926}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_MEDIUM_SKIN_TONE' => "\u{1F926}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING' => "\u{1F926}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_MEDIUM_SKIN_TONE' => "\u{1F926}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_SHRUGGING' => "\u{1F937}", 'CHARACTER_PERSON_SHRUGGING_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FB}", 'CHARACTER_PERSON_SHRUGGING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FC}", 'CHARACTER_PERSON_SHRUGGING_MEDIUM_SKIN_TONE' => "\u{1F937}\u{1F3FD}", 'CHARACTER_PERSON_SHRUGGING_MEDIUM_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FE}", 'CHARACTER_PERSON_SHRUGGING_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FF}", 'CHARACTER_MAN_SHRUGGING' => "\u{1F937}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_MEDIUM_SKIN_TONE' => "\u{1F937}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_MEDIUM_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING' => "\u{1F937}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_MEDIUM_SKIN_TONE' => "\u{1F937}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_MEDIUM_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GETTING_MASSAGE' => "\u{1F486}", 'CHARACTER_PERSON_GETTING_MASSAGE_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FB}", 'CHARACTER_PERSON_GETTING_MASSAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FC}", 'CHARACTER_PERSON_GETTING_MASSAGE_MEDIUM_SKIN_TONE' => "\u{1F486}\u{1F3FD}", 'CHARACTER_PERSON_GETTING_MASSAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FE}", 'CHARACTER_PERSON_GETTING_MASSAGE_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FF}", 'CHARACTER_MAN_GETTING_MASSAGE' => "\u{1F486}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_MEDIUM_SKIN_TONE' => "\u{1F486}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE' => "\u{1F486}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_MEDIUM_SKIN_TONE' => "\u{1F486}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GETTING_HAIRCUT' => "\u{1F487}", 'CHARACTER_PERSON_GETTING_HAIRCUT_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FB}", 'CHARACTER_PERSON_GETTING_HAIRCUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FC}", 'CHARACTER_PERSON_GETTING_HAIRCUT_MEDIUM_SKIN_TONE' => "\u{1F487}\u{1F3FD}", 'CHARACTER_PERSON_GETTING_HAIRCUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FE}", 'CHARACTER_PERSON_GETTING_HAIRCUT_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FF}", 'CHARACTER_MAN_GETTING_HAIRCUT' => "\u{1F487}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_MEDIUM_SKIN_TONE' => "\u{1F487}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT' => "\u{1F487}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_MEDIUM_SKIN_TONE' => "\u{1F487}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_WALKING' => "\u{1F6B6}", 'CHARACTER_PERSON_WALKING_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FB}", 'CHARACTER_PERSON_WALKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FC}", 'CHARACTER_PERSON_WALKING_MEDIUM_SKIN_TONE' => "\u{1F6B6}\u{1F3FD}", 'CHARACTER_PERSON_WALKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FE}", 'CHARACTER_PERSON_WALKING_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FF}", 'CHARACTER_MAN_WALKING' => "\u{1F6B6}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_MEDIUM_SKIN_TONE' => "\u{1F6B6}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_WALKING' => "\u{1F6B6}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_MEDIUM_SKIN_TONE' => "\u{1F6B6}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_RUNNING' => "\u{1F3C3}", 'CHARACTER_PERSON_RUNNING_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FB}", 'CHARACTER_PERSON_RUNNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FC}", 'CHARACTER_PERSON_RUNNING_MEDIUM_SKIN_TONE' => "\u{1F3C3}\u{1F3FD}", 'CHARACTER_PERSON_RUNNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FE}", 'CHARACTER_PERSON_RUNNING_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FF}", 'CHARACTER_MAN_RUNNING' => "\u{1F3C3}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_MEDIUM_SKIN_TONE' => "\u{1F3C3}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING' => "\u{1F3C3}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_MEDIUM_SKIN_TONE' => "\u{1F3C3}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DANCING' => "\u{1F483}", 'CHARACTER_WOMAN_DANCING_LIGHT_SKIN_TONE' => "\u{1F483}\u{1F3FB}", 'CHARACTER_WOMAN_DANCING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F483}\u{1F3FC}", 'CHARACTER_WOMAN_DANCING_MEDIUM_SKIN_TONE' => "\u{1F483}\u{1F3FD}", 'CHARACTER_WOMAN_DANCING_MEDIUM_DARK_SKIN_TONE' => "\u{1F483}\u{1F3FE}", 'CHARACTER_WOMAN_DANCING_DARK_SKIN_TONE' => "\u{1F483}\u{1F3FF}", 'CHARACTER_MAN_DANCING' => "\u{1F57A}", 'CHARACTER_MAN_DANCING_LIGHT_SKIN_TONE' => "\u{1F57A}\u{1F3FB}", 'CHARACTER_MAN_DANCING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F57A}\u{1F3FC}", 'CHARACTER_MAN_DANCING_MEDIUM_SKIN_TONE' => "\u{1F57A}\u{1F3FD}", 'CHARACTER_MAN_DANCING_MEDIUM_DARK_SKIN_TONE' => "\u{1F57A}\u{1F3FE}", 'CHARACTER_MAN_DANCING_DARK_SKIN_TONE' => "\u{1F57A}\u{1F3FF}", 'CHARACTER_PEOPLE_WITH_BUNNY_EARS' => "\u{1F46F}", 'CHARACTER_MEN_WITH_BUNNY_EARS' => "\u{1F46F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMEN_WITH_BUNNY_EARS' => "\u{1F46F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_IN_STEAMY_ROOM' => "\u{1F9D6}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FB}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FC}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_MEDIUM_SKIN_TONE' => "\u{1F9D6}\u{1F3FD}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FE}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FF}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM' => "\u{1F9D6}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_MEDIUM_SKIN_TONE' => "\u{1F9D6}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM' => "\u{1F9D6}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_MEDIUM_SKIN_TONE' => "\u{1F9D6}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_CLIMBING' => "\u{1F9D7}", 'CHARACTER_PERSON_CLIMBING_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FB}", 'CHARACTER_PERSON_CLIMBING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FC}", 'CHARACTER_PERSON_CLIMBING_MEDIUM_SKIN_TONE' => "\u{1F9D7}\u{1F3FD}", 'CHARACTER_PERSON_CLIMBING_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FE}", 'CHARACTER_PERSON_CLIMBING_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FF}", 'CHARACTER_WOMAN_CLIMBING' => "\u{1F9D7}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_MEDIUM_SKIN_TONE' => "\u{1F9D7}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_CLIMBING' => "\u{1F9D7}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_MEDIUM_SKIN_TONE' => "\u{1F9D7}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_IN_LOTUS_POSITION' => "\u{1F9D8}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FB}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FC}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_MEDIUM_SKIN_TONE' => "\u{1F9D8}\u{1F3FD}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FE}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FF}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION' => "\u{1F9D8}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_MEDIUM_SKIN_TONE' => "\u{1F9D8}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION' => "\u{1F9D8}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_MEDIUM_SKIN_TONE' => "\u{1F9D8}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_TAKING_BATH' => "\u{1F6C0}", 'CHARACTER_PERSON_TAKING_BATH_LIGHT_SKIN_TONE' => "\u{1F6C0}\u{1F3FB}", 'CHARACTER_PERSON_TAKING_BATH_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6C0}\u{1F3FC}", 'CHARACTER_PERSON_TAKING_BATH_MEDIUM_SKIN_TONE' => "\u{1F6C0}\u{1F3FD}", 'CHARACTER_PERSON_TAKING_BATH_MEDIUM_DARK_SKIN_TONE' => "\u{1F6C0}\u{1F3FE}", 'CHARACTER_PERSON_TAKING_BATH_DARK_SKIN_TONE' => "\u{1F6C0}\u{1F3FF}", 'CHARACTER_PERSON_IN_BED' => "\u{1F6CC}", 'CHARACTER_PERSON_IN_BED_LIGHT_SKIN_TONE' => "\u{1F6CC}\u{1F3FB}", 'CHARACTER_PERSON_IN_BED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6CC}\u{1F3FC}", 'CHARACTER_PERSON_IN_BED_MEDIUM_SKIN_TONE' => "\u{1F6CC}\u{1F3FD}", 'CHARACTER_PERSON_IN_BED_MEDIUM_DARK_SKIN_TONE' => "\u{1F6CC}\u{1F3FE}", 'CHARACTER_PERSON_IN_BED_DARK_SKIN_TONE' => "\u{1F6CC}\u{1F3FF}", 'CHARACTER_MAN_IN_SUIT_LEVITATING' => "\u{1F574}\u{FE0F}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_LIGHT_SKIN_TONE' => "\u{1F574}\u{1F3FB}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F574}\u{1F3FC}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_MEDIUM_SKIN_TONE' => "\u{1F574}\u{1F3FD}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_MEDIUM_DARK_SKIN_TONE' => "\u{1F574}\u{1F3FE}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_DARK_SKIN_TONE' => "\u{1F574}\u{1F3FF}", 'CHARACTER_SPEAKING_HEAD' => "\u{1F5E3}\u{FE0F}", 'CHARACTER_BUST_IN_SILHOUETTE' => "\u{1F464}", 'CHARACTER_BUSTS_IN_SILHOUETTE' => "\u{1F465}", 'CHARACTER_PERSON_FENCING' => "\u{1F93A}", 'CHARACTER_HORSE_RACING' => "\u{1F3C7}", 'CHARACTER_HORSE_RACING_LIGHT_SKIN_TONE' => "\u{1F3C7}\u{1F3FB}", 'CHARACTER_HORSE_RACING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C7}\u{1F3FC}", 'CHARACTER_HORSE_RACING_MEDIUM_SKIN_TONE' => "\u{1F3C7}\u{1F3FD}", 'CHARACTER_HORSE_RACING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C7}\u{1F3FE}", 'CHARACTER_HORSE_RACING_DARK_SKIN_TONE' => "\u{1F3C7}\u{1F3FF}", 'CHARACTER_SKIER' => "\u{26F7}\u{FE0F}", 'CHARACTER_SNOWBOARDER' => "\u{1F3C2}", 'CHARACTER_SNOWBOARDER_LIGHT_SKIN_TONE' => "\u{1F3C2}\u{1F3FB}", 'CHARACTER_SNOWBOARDER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C2}\u{1F3FC}", 'CHARACTER_SNOWBOARDER_MEDIUM_SKIN_TONE' => "\u{1F3C2}\u{1F3FD}", 'CHARACTER_SNOWBOARDER_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C2}\u{1F3FE}", 'CHARACTER_SNOWBOARDER_DARK_SKIN_TONE' => "\u{1F3C2}\u{1F3FF}", 'CHARACTER_PERSON_GOLFING' => "\u{1F3CC}\u{FE0F}", 'CHARACTER_PERSON_GOLFING_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FB}", 'CHARACTER_PERSON_GOLFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FC}", 'CHARACTER_PERSON_GOLFING_MEDIUM_SKIN_TONE' => "\u{1F3CC}\u{1F3FD}", 'CHARACTER_PERSON_GOLFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FE}", 'CHARACTER_PERSON_GOLFING_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FF}", 'CHARACTER_MAN_GOLFING' => "\u{1F3CC}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_MEDIUM_SKIN_TONE' => "\u{1F3CC}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING' => "\u{1F3CC}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_MEDIUM_SKIN_TONE' => "\u{1F3CC}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_SURFING' => "\u{1F3C4}", 'CHARACTER_PERSON_SURFING_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FB}", 'CHARACTER_PERSON_SURFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FC}", 'CHARACTER_PERSON_SURFING_MEDIUM_SKIN_TONE' => "\u{1F3C4}\u{1F3FD}", 'CHARACTER_PERSON_SURFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FE}", 'CHARACTER_PERSON_SURFING_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FF}", 'CHARACTER_MAN_SURFING' => "\u{1F3C4}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_MEDIUM_SKIN_TONE' => "\u{1F3C4}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_SURFING' => "\u{1F3C4}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_MEDIUM_SKIN_TONE' => "\u{1F3C4}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_ROWING_BOAT' => "\u{1F6A3}", 'CHARACTER_PERSON_ROWING_BOAT_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FB}", 'CHARACTER_PERSON_ROWING_BOAT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FC}", 'CHARACTER_PERSON_ROWING_BOAT_MEDIUM_SKIN_TONE' => "\u{1F6A3}\u{1F3FD}", 'CHARACTER_PERSON_ROWING_BOAT_MEDIUM_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FE}", 'CHARACTER_PERSON_ROWING_BOAT_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FF}", 'CHARACTER_MAN_ROWING_BOAT' => "\u{1F6A3}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_MEDIUM_SKIN_TONE' => "\u{1F6A3}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_MEDIUM_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT' => "\u{1F6A3}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_MEDIUM_SKIN_TONE' => "\u{1F6A3}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_MEDIUM_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_SWIMMING' => "\u{1F3CA}", 'CHARACTER_PERSON_SWIMMING_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FB}", 'CHARACTER_PERSON_SWIMMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FC}", 'CHARACTER_PERSON_SWIMMING_MEDIUM_SKIN_TONE' => "\u{1F3CA}\u{1F3FD}", 'CHARACTER_PERSON_SWIMMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FE}", 'CHARACTER_PERSON_SWIMMING_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FF}", 'CHARACTER_MAN_SWIMMING' => "\u{1F3CA}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_MEDIUM_SKIN_TONE' => "\u{1F3CA}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING' => "\u{1F3CA}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_MEDIUM_SKIN_TONE' => "\u{1F3CA}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_BOUNCING_BALL' => "\u{26F9}\u{FE0F}", 'CHARACTER_PERSON_BOUNCING_BALL_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FB}", 'CHARACTER_PERSON_BOUNCING_BALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FC}", 'CHARACTER_PERSON_BOUNCING_BALL_MEDIUM_SKIN_TONE' => "\u{26F9}\u{1F3FD}", 'CHARACTER_PERSON_BOUNCING_BALL_MEDIUM_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FE}", 'CHARACTER_PERSON_BOUNCING_BALL_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FF}", 'CHARACTER_MAN_BOUNCING_BALL' => "\u{26F9}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_MEDIUM_SKIN_TONE' => "\u{26F9}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_MEDIUM_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL' => "\u{26F9}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_MEDIUM_SKIN_TONE' => "\u{26F9}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_MEDIUM_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_LIFTING_WEIGHTS' => "\u{1F3CB}\u{FE0F}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FB}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FC}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_MEDIUM_SKIN_TONE' => "\u{1F3CB}\u{1F3FD}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FE}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FF}", 'CHARACTER_MAN_LIFTING_WEIGHTS' => "\u{1F3CB}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_MEDIUM_SKIN_TONE' => "\u{1F3CB}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS' => "\u{1F3CB}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_MEDIUM_SKIN_TONE' => "\u{1F3CB}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_BIKING' => "\u{1F6B4}", 'CHARACTER_PERSON_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FB}", 'CHARACTER_PERSON_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FC}", 'CHARACTER_PERSON_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B4}\u{1F3FD}", 'CHARACTER_PERSON_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FE}", 'CHARACTER_PERSON_BIKING_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FF}", 'CHARACTER_MAN_BIKING' => "\u{1F6B4}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B4}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_BIKING' => "\u{1F6B4}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B4}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_MOUNTAIN_BIKING' => "\u{1F6B5}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FB}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FC}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B5}\u{1F3FD}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FE}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FF}", 'CHARACTER_MAN_MOUNTAIN_BIKING' => "\u{1F6B5}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B5}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING' => "\u{1F6B5}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B5}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_RACING_CAR' => "\u{1F3CE}\u{FE0F}", 'CHARACTER_MOTORCYCLE' => "\u{1F3CD}\u{FE0F}", 'CHARACTER_PERSON_CARTWHEELING' => "\u{1F938}", 'CHARACTER_PERSON_CARTWHEELING_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FB}", 'CHARACTER_PERSON_CARTWHEELING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FC}", 'CHARACTER_PERSON_CARTWHEELING_MEDIUM_SKIN_TONE' => "\u{1F938}\u{1F3FD}", 'CHARACTER_PERSON_CARTWHEELING_MEDIUM_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FE}", 'CHARACTER_PERSON_CARTWHEELING_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FF}", 'CHARACTER_MAN_CARTWHEELING' => "\u{1F938}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_MEDIUM_SKIN_TONE' => "\u{1F938}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_MEDIUM_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING' => "\u{1F938}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_MEDIUM_SKIN_TONE' => "\u{1F938}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_MEDIUM_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PEOPLE_WRESTLING' => "\u{1F93C}", 'CHARACTER_MEN_WRESTLING' => "\u{1F93C}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMEN_WRESTLING' => "\u{1F93C}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_PLAYING_WATER_POLO' => "\u{1F93D}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FB}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FC}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_MEDIUM_SKIN_TONE' => "\u{1F93D}\u{1F3FD}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_MEDIUM_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FE}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FF}", 'CHARACTER_MAN_PLAYING_WATER_POLO' => "\u{1F93D}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_MEDIUM_SKIN_TONE' => "\u{1F93D}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_MEDIUM_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO' => "\u{1F93D}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_MEDIUM_SKIN_TONE' => "\u{1F93D}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_MEDIUM_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_PLAYING_HANDBALL' => "\u{1F93E}", 'CHARACTER_PERSON_PLAYING_HANDBALL_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FB}", 'CHARACTER_PERSON_PLAYING_HANDBALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FC}", 'CHARACTER_PERSON_PLAYING_HANDBALL_MEDIUM_SKIN_TONE' => "\u{1F93E}\u{1F3FD}", 'CHARACTER_PERSON_PLAYING_HANDBALL_MEDIUM_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FE}", 'CHARACTER_PERSON_PLAYING_HANDBALL_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FF}", 'CHARACTER_MAN_PLAYING_HANDBALL' => "\u{1F93E}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_MEDIUM_SKIN_TONE' => "\u{1F93E}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_MEDIUM_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL' => "\u{1F93E}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_MEDIUM_SKIN_TONE' => "\u{1F93E}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_MEDIUM_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_JUGGLING' => "\u{1F939}", 'CHARACTER_PERSON_JUGGLING_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FB}", 'CHARACTER_PERSON_JUGGLING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FC}", 'CHARACTER_PERSON_JUGGLING_MEDIUM_SKIN_TONE' => "\u{1F939}\u{1F3FD}", 'CHARACTER_PERSON_JUGGLING_MEDIUM_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FE}", 'CHARACTER_PERSON_JUGGLING_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FF}", 'CHARACTER_MAN_JUGGLING' => "\u{1F939}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_MEDIUM_SKIN_TONE' => "\u{1F939}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_MEDIUM_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING' => "\u{1F939}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_MEDIUM_SKIN_TONE' => "\u{1F939}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_MEDIUM_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_AND_WOMAN_HOLDING_HANDS' => "\u{1F46B}", 'CHARACTER_TWO_MEN_HOLDING_HANDS' => "\u{1F46C}", 'CHARACTER_TWO_WOMEN_HOLDING_HANDS' => "\u{1F46D}", 'CHARACTER_KISS' => "\u{1F48F}", 'CHARACTER_KISS_WOMAN_MAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F48B}\u{200D}\u{1F468}", 'CHARACTER_KISS_MAN_MAN' => "\u{1F468}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F48B}\u{200D}\u{1F468}", 'CHARACTER_KISS_WOMAN_WOMAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F48B}\u{200D}\u{1F469}", 'CHARACTER_COUPLE_WITH_HEART' => "\u{1F491}", 'CHARACTER_COUPLE_WITH_HEART_WOMAN_MAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F468}", 'CHARACTER_COUPLE_WITH_HEART_MAN_MAN' => "\u{1F468}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F468}", 'CHARACTER_COUPLE_WITH_HEART_WOMAN_WOMAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F469}", 'CHARACTER_FAMILY' => "\u{1F46A}", 'CHARACTER_FAMILY_MAN_WOMAN_BOY' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_WOMAN_GIRL' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_WOMAN_GIRL_BOY' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_WOMAN_BOY_BOY' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_WOMAN_GIRL_GIRL' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_MAN_BOY' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_MAN_GIRL' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_MAN_GIRL_BOY' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_MAN_BOY_BOY' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_MAN_GIRL_GIRL' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_WOMAN_BOY' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_WOMAN_GIRL' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_WOMAN_GIRL_BOY' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_WOMAN_BOY_BOY' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_WOMAN_GIRL_GIRL' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_BOY' => "\u{1F468}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_BOY_BOY' => "\u{1F468}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_GIRL' => "\u{1F468}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_GIRL_BOY' => "\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_GIRL_GIRL' => "\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_BOY' => "\u{1F469}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_BOY_BOY' => "\u{1F469}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_GIRL' => "\u{1F469}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_GIRL_BOY' => "\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_GIRL_GIRL' => "\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_SELFIE' => "\u{1F933}", 'CHARACTER_SELFIE_LIGHT_SKIN_TONE' => "\u{1F933}\u{1F3FB}", 'CHARACTER_SELFIE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F933}\u{1F3FC}", 'CHARACTER_SELFIE_MEDIUM_SKIN_TONE' => "\u{1F933}\u{1F3FD}", 'CHARACTER_SELFIE_MEDIUM_DARK_SKIN_TONE' => "\u{1F933}\u{1F3FE}", 'CHARACTER_SELFIE_DARK_SKIN_TONE' => "\u{1F933}\u{1F3FF}", 'CHARACTER_FLEXED_BICEPS' => "\u{1F4AA}", 'CHARACTER_FLEXED_BICEPS_LIGHT_SKIN_TONE' => "\u{1F4AA}\u{1F3FB}", 'CHARACTER_FLEXED_BICEPS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F4AA}\u{1F3FC}", 'CHARACTER_FLEXED_BICEPS_MEDIUM_SKIN_TONE' => "\u{1F4AA}\u{1F3FD}", 'CHARACTER_FLEXED_BICEPS_MEDIUM_DARK_SKIN_TONE' => "\u{1F4AA}\u{1F3FE}", 'CHARACTER_FLEXED_BICEPS_DARK_SKIN_TONE' => "\u{1F4AA}\u{1F3FF}", 'CHARACTER_LEG' => "\u{1F9B5}", 'CHARACTER_LEG_LIGHT_SKIN_TONE' => "\u{1F9B5}\u{1F3FB}", 'CHARACTER_LEG_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B5}\u{1F3FC}", 'CHARACTER_LEG_MEDIUM_SKIN_TONE' => "\u{1F9B5}\u{1F3FD}", 'CHARACTER_LEG_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B5}\u{1F3FE}", 'CHARACTER_LEG_DARK_SKIN_TONE' => "\u{1F9B5}\u{1F3FF}", 'CHARACTER_FOOT' => "\u{1F9B6}", 'CHARACTER_FOOT_LIGHT_SKIN_TONE' => "\u{1F9B6}\u{1F3FB}", 'CHARACTER_FOOT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B6}\u{1F3FC}", 'CHARACTER_FOOT_MEDIUM_SKIN_TONE' => "\u{1F9B6}\u{1F3FD}", 'CHARACTER_FOOT_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B6}\u{1F3FE}", 'CHARACTER_FOOT_DARK_SKIN_TONE' => "\u{1F9B6}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT' => "\u{1F448}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_LIGHT_SKIN_TONE' => "\u{1F448}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F448}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_MEDIUM_SKIN_TONE' => "\u{1F448}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_MEDIUM_DARK_SKIN_TONE' => "\u{1F448}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_DARK_SKIN_TONE' => "\u{1F448}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT' => "\u{1F449}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_LIGHT_SKIN_TONE' => "\u{1F449}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F449}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_MEDIUM_SKIN_TONE' => "\u{1F449}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_MEDIUM_DARK_SKIN_TONE' => "\u{1F449}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_DARK_SKIN_TONE' => "\u{1F449}\u{1F3FF}", 'CHARACTER_INDEX_POINTING_UP' => "\u{261D}\u{FE0F}", 'CHARACTER_INDEX_POINTING_UP_LIGHT_SKIN_TONE' => "\u{261D}\u{1F3FB}", 'CHARACTER_INDEX_POINTING_UP_MEDIUM_LIGHT_SKIN_TONE' => "\u{261D}\u{1F3FC}", 'CHARACTER_INDEX_POINTING_UP_MEDIUM_SKIN_TONE' => "\u{261D}\u{1F3FD}", 'CHARACTER_INDEX_POINTING_UP_MEDIUM_DARK_SKIN_TONE' => "\u{261D}\u{1F3FE}", 'CHARACTER_INDEX_POINTING_UP_DARK_SKIN_TONE' => "\u{261D}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP' => "\u{1F446}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_LIGHT_SKIN_TONE' => "\u{1F446}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F446}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_MEDIUM_SKIN_TONE' => "\u{1F446}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_MEDIUM_DARK_SKIN_TONE' => "\u{1F446}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_DARK_SKIN_TONE' => "\u{1F446}\u{1F3FF}", 'CHARACTER_MIDDLE_FINGER' => "\u{1F595}", 'CHARACTER_MIDDLE_FINGER_LIGHT_SKIN_TONE' => "\u{1F595}\u{1F3FB}", 'CHARACTER_MIDDLE_FINGER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F595}\u{1F3FC}", 'CHARACTER_MIDDLE_FINGER_MEDIUM_SKIN_TONE' => "\u{1F595}\u{1F3FD}", 'CHARACTER_MIDDLE_FINGER_MEDIUM_DARK_SKIN_TONE' => "\u{1F595}\u{1F3FE}", 'CHARACTER_MIDDLE_FINGER_DARK_SKIN_TONE' => "\u{1F595}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN' => "\u{1F447}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_LIGHT_SKIN_TONE' => "\u{1F447}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F447}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_MEDIUM_SKIN_TONE' => "\u{1F447}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_MEDIUM_DARK_SKIN_TONE' => "\u{1F447}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_DARK_SKIN_TONE' => "\u{1F447}\u{1F3FF}", 'CHARACTER_VICTORY_HAND' => "\u{270C}\u{FE0F}", 'CHARACTER_VICTORY_HAND_LIGHT_SKIN_TONE' => "\u{270C}\u{1F3FB}", 'CHARACTER_VICTORY_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{270C}\u{1F3FC}", 'CHARACTER_VICTORY_HAND_MEDIUM_SKIN_TONE' => "\u{270C}\u{1F3FD}", 'CHARACTER_VICTORY_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{270C}\u{1F3FE}", 'CHARACTER_VICTORY_HAND_DARK_SKIN_TONE' => "\u{270C}\u{1F3FF}", 'CHARACTER_CROSSED_FINGERS' => "\u{1F91E}", 'CHARACTER_CROSSED_FINGERS_LIGHT_SKIN_TONE' => "\u{1F91E}\u{1F3FB}", 'CHARACTER_CROSSED_FINGERS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91E}\u{1F3FC}", 'CHARACTER_CROSSED_FINGERS_MEDIUM_SKIN_TONE' => "\u{1F91E}\u{1F3FD}", 'CHARACTER_CROSSED_FINGERS_MEDIUM_DARK_SKIN_TONE' => "\u{1F91E}\u{1F3FE}", 'CHARACTER_CROSSED_FINGERS_DARK_SKIN_TONE' => "\u{1F91E}\u{1F3FF}", 'CHARACTER_VULCAN_SALUTE' => "\u{1F596}", 'CHARACTER_VULCAN_SALUTE_LIGHT_SKIN_TONE' => "\u{1F596}\u{1F3FB}", 'CHARACTER_VULCAN_SALUTE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F596}\u{1F3FC}", 'CHARACTER_VULCAN_SALUTE_MEDIUM_SKIN_TONE' => "\u{1F596}\u{1F3FD}", 'CHARACTER_VULCAN_SALUTE_MEDIUM_DARK_SKIN_TONE' => "\u{1F596}\u{1F3FE}", 'CHARACTER_VULCAN_SALUTE_DARK_SKIN_TONE' => "\u{1F596}\u{1F3FF}", 'CHARACTER_SIGN_OF_THE_HORNS' => "\u{1F918}", 'CHARACTER_SIGN_OF_THE_HORNS_LIGHT_SKIN_TONE' => "\u{1F918}\u{1F3FB}", 'CHARACTER_SIGN_OF_THE_HORNS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F918}\u{1F3FC}", 'CHARACTER_SIGN_OF_THE_HORNS_MEDIUM_SKIN_TONE' => "\u{1F918}\u{1F3FD}", 'CHARACTER_SIGN_OF_THE_HORNS_MEDIUM_DARK_SKIN_TONE' => "\u{1F918}\u{1F3FE}", 'CHARACTER_SIGN_OF_THE_HORNS_DARK_SKIN_TONE' => "\u{1F918}\u{1F3FF}", 'CHARACTER_CALL_ME_HAND' => "\u{1F919}", 'CHARACTER_CALL_ME_HAND_LIGHT_SKIN_TONE' => "\u{1F919}\u{1F3FB}", 'CHARACTER_CALL_ME_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F919}\u{1F3FC}", 'CHARACTER_CALL_ME_HAND_MEDIUM_SKIN_TONE' => "\u{1F919}\u{1F3FD}", 'CHARACTER_CALL_ME_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F919}\u{1F3FE}", 'CHARACTER_CALL_ME_HAND_DARK_SKIN_TONE' => "\u{1F919}\u{1F3FF}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED' => "\u{1F590}\u{FE0F}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_LIGHT_SKIN_TONE' => "\u{1F590}\u{1F3FB}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F590}\u{1F3FC}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_MEDIUM_SKIN_TONE' => "\u{1F590}\u{1F3FD}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_MEDIUM_DARK_SKIN_TONE' => "\u{1F590}\u{1F3FE}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_DARK_SKIN_TONE' => "\u{1F590}\u{1F3FF}", 'CHARACTER_RAISED_HAND' => "\u{270B}", 'CHARACTER_RAISED_HAND_LIGHT_SKIN_TONE' => "\u{270B}\u{1F3FB}", 'CHARACTER_RAISED_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{270B}\u{1F3FC}", 'CHARACTER_RAISED_HAND_MEDIUM_SKIN_TONE' => "\u{270B}\u{1F3FD}", 'CHARACTER_RAISED_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{270B}\u{1F3FE}", 'CHARACTER_RAISED_HAND_DARK_SKIN_TONE' => "\u{270B}\u{1F3FF}", 'CHARACTER_OK_HAND' => "\u{1F44C}", 'CHARACTER_OK_HAND_LIGHT_SKIN_TONE' => "\u{1F44C}\u{1F3FB}", 'CHARACTER_OK_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44C}\u{1F3FC}", 'CHARACTER_OK_HAND_MEDIUM_SKIN_TONE' => "\u{1F44C}\u{1F3FD}", 'CHARACTER_OK_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F44C}\u{1F3FE}", 'CHARACTER_OK_HAND_DARK_SKIN_TONE' => "\u{1F44C}\u{1F3FF}", 'CHARACTER_THUMBS_UP' => "\u{1F44D}", 'CHARACTER_THUMBS_UP_LIGHT_SKIN_TONE' => "\u{1F44D}\u{1F3FB}", 'CHARACTER_THUMBS_UP_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44D}\u{1F3FC}", 'CHARACTER_THUMBS_UP_MEDIUM_SKIN_TONE' => "\u{1F44D}\u{1F3FD}", 'CHARACTER_THUMBS_UP_MEDIUM_DARK_SKIN_TONE' => "\u{1F44D}\u{1F3FE}", 'CHARACTER_THUMBS_UP_DARK_SKIN_TONE' => "\u{1F44D}\u{1F3FF}", 'CHARACTER_THUMBS_DOWN' => "\u{1F44E}", 'CHARACTER_THUMBS_DOWN_LIGHT_SKIN_TONE' => "\u{1F44E}\u{1F3FB}", 'CHARACTER_THUMBS_DOWN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44E}\u{1F3FC}", 'CHARACTER_THUMBS_DOWN_MEDIUM_SKIN_TONE' => "\u{1F44E}\u{1F3FD}", 'CHARACTER_THUMBS_DOWN_MEDIUM_DARK_SKIN_TONE' => "\u{1F44E}\u{1F3FE}", 'CHARACTER_THUMBS_DOWN_DARK_SKIN_TONE' => "\u{1F44E}\u{1F3FF}", 'CHARACTER_RAISED_FIST' => "\u{270A}", 'CHARACTER_RAISED_FIST_LIGHT_SKIN_TONE' => "\u{270A}\u{1F3FB}", 'CHARACTER_RAISED_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{270A}\u{1F3FC}", 'CHARACTER_RAISED_FIST_MEDIUM_SKIN_TONE' => "\u{270A}\u{1F3FD}", 'CHARACTER_RAISED_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{270A}\u{1F3FE}", 'CHARACTER_RAISED_FIST_DARK_SKIN_TONE' => "\u{270A}\u{1F3FF}", 'CHARACTER_ONCOMING_FIST' => "\u{1F44A}", 'CHARACTER_ONCOMING_FIST_LIGHT_SKIN_TONE' => "\u{1F44A}\u{1F3FB}", 'CHARACTER_ONCOMING_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44A}\u{1F3FC}", 'CHARACTER_ONCOMING_FIST_MEDIUM_SKIN_TONE' => "\u{1F44A}\u{1F3FD}", 'CHARACTER_ONCOMING_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F44A}\u{1F3FE}", 'CHARACTER_ONCOMING_FIST_DARK_SKIN_TONE' => "\u{1F44A}\u{1F3FF}", 'CHARACTER_LEFT_FACING_FIST' => "\u{1F91B}", 'CHARACTER_LEFT_FACING_FIST_LIGHT_SKIN_TONE' => "\u{1F91B}\u{1F3FB}", 'CHARACTER_LEFT_FACING_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91B}\u{1F3FC}", 'CHARACTER_LEFT_FACING_FIST_MEDIUM_SKIN_TONE' => "\u{1F91B}\u{1F3FD}", 'CHARACTER_LEFT_FACING_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F91B}\u{1F3FE}", 'CHARACTER_LEFT_FACING_FIST_DARK_SKIN_TONE' => "\u{1F91B}\u{1F3FF}", 'CHARACTER_RIGHT_FACING_FIST' => "\u{1F91C}", 'CHARACTER_RIGHT_FACING_FIST_LIGHT_SKIN_TONE' => "\u{1F91C}\u{1F3FB}", 'CHARACTER_RIGHT_FACING_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91C}\u{1F3FC}", 'CHARACTER_RIGHT_FACING_FIST_MEDIUM_SKIN_TONE' => "\u{1F91C}\u{1F3FD}", 'CHARACTER_RIGHT_FACING_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F91C}\u{1F3FE}", 'CHARACTER_RIGHT_FACING_FIST_DARK_SKIN_TONE' => "\u{1F91C}\u{1F3FF}", 'CHARACTER_RAISED_BACK_OF_HAND' => "\u{1F91A}", 'CHARACTER_RAISED_BACK_OF_HAND_LIGHT_SKIN_TONE' => "\u{1F91A}\u{1F3FB}", 'CHARACTER_RAISED_BACK_OF_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91A}\u{1F3FC}", 'CHARACTER_RAISED_BACK_OF_HAND_MEDIUM_SKIN_TONE' => "\u{1F91A}\u{1F3FD}", 'CHARACTER_RAISED_BACK_OF_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F91A}\u{1F3FE}", 'CHARACTER_RAISED_BACK_OF_HAND_DARK_SKIN_TONE' => "\u{1F91A}\u{1F3FF}", 'CHARACTER_WAVING_HAND' => "\u{1F44B}", 'CHARACTER_WAVING_HAND_LIGHT_SKIN_TONE' => "\u{1F44B}\u{1F3FB}", 'CHARACTER_WAVING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44B}\u{1F3FC}", 'CHARACTER_WAVING_HAND_MEDIUM_SKIN_TONE' => "\u{1F44B}\u{1F3FD}", 'CHARACTER_WAVING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F44B}\u{1F3FE}", 'CHARACTER_WAVING_HAND_DARK_SKIN_TONE' => "\u{1F44B}\u{1F3FF}", 'CHARACTER_LOVE_YOU_GESTURE' => "\u{1F91F}", 'CHARACTER_LOVE_YOU_GESTURE_LIGHT_SKIN_TONE' => "\u{1F91F}\u{1F3FB}", 'CHARACTER_LOVE_YOU_GESTURE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91F}\u{1F3FC}", 'CHARACTER_LOVE_YOU_GESTURE_MEDIUM_SKIN_TONE' => "\u{1F91F}\u{1F3FD}", 'CHARACTER_LOVE_YOU_GESTURE_MEDIUM_DARK_SKIN_TONE' => "\u{1F91F}\u{1F3FE}", 'CHARACTER_LOVE_YOU_GESTURE_DARK_SKIN_TONE' => "\u{1F91F}\u{1F3FF}", 'CHARACTER_WRITING_HAND' => "\u{270D}\u{FE0F}", 'CHARACTER_WRITING_HAND_LIGHT_SKIN_TONE' => "\u{270D}\u{1F3FB}", 'CHARACTER_WRITING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{270D}\u{1F3FC}", 'CHARACTER_WRITING_HAND_MEDIUM_SKIN_TONE' => "\u{270D}\u{1F3FD}", 'CHARACTER_WRITING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{270D}\u{1F3FE}", 'CHARACTER_WRITING_HAND_DARK_SKIN_TONE' => "\u{270D}\u{1F3FF}", 'CHARACTER_CLAPPING_HANDS' => "\u{1F44F}", 'CHARACTER_CLAPPING_HANDS_LIGHT_SKIN_TONE' => "\u{1F44F}\u{1F3FB}", 'CHARACTER_CLAPPING_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44F}\u{1F3FC}", 'CHARACTER_CLAPPING_HANDS_MEDIUM_SKIN_TONE' => "\u{1F44F}\u{1F3FD}", 'CHARACTER_CLAPPING_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F44F}\u{1F3FE}", 'CHARACTER_CLAPPING_HANDS_DARK_SKIN_TONE' => "\u{1F44F}\u{1F3FF}", 'CHARACTER_OPEN_HANDS' => "\u{1F450}", 'CHARACTER_OPEN_HANDS_LIGHT_SKIN_TONE' => "\u{1F450}\u{1F3FB}", 'CHARACTER_OPEN_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F450}\u{1F3FC}", 'CHARACTER_OPEN_HANDS_MEDIUM_SKIN_TONE' => "\u{1F450}\u{1F3FD}", 'CHARACTER_OPEN_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F450}\u{1F3FE}", 'CHARACTER_OPEN_HANDS_DARK_SKIN_TONE' => "\u{1F450}\u{1F3FF}", 'CHARACTER_RAISING_HANDS' => "\u{1F64C}", 'CHARACTER_RAISING_HANDS_LIGHT_SKIN_TONE' => "\u{1F64C}\u{1F3FB}", 'CHARACTER_RAISING_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64C}\u{1F3FC}", 'CHARACTER_RAISING_HANDS_MEDIUM_SKIN_TONE' => "\u{1F64C}\u{1F3FD}", 'CHARACTER_RAISING_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F64C}\u{1F3FE}", 'CHARACTER_RAISING_HANDS_DARK_SKIN_TONE' => "\u{1F64C}\u{1F3FF}", 'CHARACTER_PALMS_UP_TOGETHER' => "\u{1F932}", 'CHARACTER_PALMS_UP_TOGETHER_LIGHT_SKIN_TONE' => "\u{1F932}\u{1F3FB}", 'CHARACTER_PALMS_UP_TOGETHER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F932}\u{1F3FC}", 'CHARACTER_PALMS_UP_TOGETHER_MEDIUM_SKIN_TONE' => "\u{1F932}\u{1F3FD}", 'CHARACTER_PALMS_UP_TOGETHER_MEDIUM_DARK_SKIN_TONE' => "\u{1F932}\u{1F3FE}", 'CHARACTER_PALMS_UP_TOGETHER_DARK_SKIN_TONE' => "\u{1F932}\u{1F3FF}", 'CHARACTER_FOLDED_HANDS' => "\u{1F64F}", 'CHARACTER_FOLDED_HANDS_LIGHT_SKIN_TONE' => "\u{1F64F}\u{1F3FB}", 'CHARACTER_FOLDED_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64F}\u{1F3FC}", 'CHARACTER_FOLDED_HANDS_MEDIUM_SKIN_TONE' => "\u{1F64F}\u{1F3FD}", 'CHARACTER_FOLDED_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F64F}\u{1F3FE}", 'CHARACTER_FOLDED_HANDS_DARK_SKIN_TONE' => "\u{1F64F}\u{1F3FF}", 'CHARACTER_HANDSHAKE' => "\u{1F91D}", 'CHARACTER_NAIL_POLISH' => "\u{1F485}", 'CHARACTER_NAIL_POLISH_LIGHT_SKIN_TONE' => "\u{1F485}\u{1F3FB}", 'CHARACTER_NAIL_POLISH_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F485}\u{1F3FC}", 'CHARACTER_NAIL_POLISH_MEDIUM_SKIN_TONE' => "\u{1F485}\u{1F3FD}", 'CHARACTER_NAIL_POLISH_MEDIUM_DARK_SKIN_TONE' => "\u{1F485}\u{1F3FE}", 'CHARACTER_NAIL_POLISH_DARK_SKIN_TONE' => "\u{1F485}\u{1F3FF}", 'CHARACTER_EAR' => "\u{1F442}", 'CHARACTER_EAR_LIGHT_SKIN_TONE' => "\u{1F442}\u{1F3FB}", 'CHARACTER_EAR_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F442}\u{1F3FC}", 'CHARACTER_EAR_MEDIUM_SKIN_TONE' => "\u{1F442}\u{1F3FD}", 'CHARACTER_EAR_MEDIUM_DARK_SKIN_TONE' => "\u{1F442}\u{1F3FE}", 'CHARACTER_EAR_DARK_SKIN_TONE' => "\u{1F442}\u{1F3FF}", 'CHARACTER_NOSE' => "\u{1F443}", 'CHARACTER_NOSE_LIGHT_SKIN_TONE' => "\u{1F443}\u{1F3FB}", 'CHARACTER_NOSE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F443}\u{1F3FC}", 'CHARACTER_NOSE_MEDIUM_SKIN_TONE' => "\u{1F443}\u{1F3FD}", 'CHARACTER_NOSE_MEDIUM_DARK_SKIN_TONE' => "\u{1F443}\u{1F3FE}", 'CHARACTER_NOSE_DARK_SKIN_TONE' => "\u{1F443}\u{1F3FF}", 'CHARACTER_RED_HAIRED' => "\u{1F9B0}", 'CHARACTER_CURLY_HAIRED' => "\u{1F9B1}", 'CHARACTER_BALD' => "\u{1F9B2}", 'CHARACTER_WHITE_HAIRED' => "\u{1F9B3}", 'CHARACTER_FOOTPRINTS' => "\u{1F463}", 'CHARACTER_EYES' => "\u{1F440}", 'CHARACTER_EYE' => "\u{1F441}\u{FE0F}", 'CHARACTER_EYE_IN_SPEECH_BUBBLE' => "\u{1F441}\u{FE0F}\u{200D}\u{1F5E8}\u{FE0F}", 'CHARACTER_BRAIN' => "\u{1F9E0}", 'CHARACTER_BONE' => "\u{1F9B4}", 'CHARACTER_TOOTH' => "\u{1F9B7}", 'CHARACTER_TONGUE' => "\u{1F445}", 'CHARACTER_MOUTH' => "\u{1F444}", 'CHARACTER_KISS_MARK' => "\u{1F48B}", 'CHARACTER_HEART_WITH_ARROW' => "\u{1F498}", 'CHARACTER_RED_HEART' => "\u{2764}\u{FE0F}", 'CHARACTER_BEATING_HEART' => "\u{1F493}", 'CHARACTER_BROKEN_HEART' => "\u{1F494}", 'CHARACTER_TWO_HEARTS' => "\u{1F495}", 'CHARACTER_SPARKLING_HEART' => "\u{1F496}", 'CHARACTER_GROWING_HEART' => "\u{1F497}", 'CHARACTER_BLUE_HEART' => "\u{1F499}", 'CHARACTER_GREEN_HEART' => "\u{1F49A}", 'CHARACTER_YELLOW_HEART' => "\u{1F49B}", 'CHARACTER_ORANGE_HEART' => "\u{1F9E1}", 'CHARACTER_PURPLE_HEART' => "\u{1F49C}", 'CHARACTER_BLACK_HEART' => "\u{1F5A4}", 'CHARACTER_HEART_WITH_RIBBON' => "\u{1F49D}", 'CHARACTER_REVOLVING_HEARTS' => "\u{1F49E}", 'CHARACTER_HEART_DECORATION' => "\u{1F49F}", 'CHARACTER_HEAVY_HEART_EXCLAMATION' => "\u{2763}\u{FE0F}", 'CHARACTER_LOVE_LETTER' => "\u{1F48C}", 'CHARACTER_ZZZ' => "\u{1F4A4}", 'CHARACTER_ANGER_SYMBOL' => "\u{1F4A2}", 'CHARACTER_BOMB' => "\u{1F4A3}", 'CHARACTER_COLLISION' => "\u{1F4A5}", 'CHARACTER_SWEAT_DROPLETS' => "\u{1F4A6}", 'CHARACTER_DASHING_AWAY' => "\u{1F4A8}", 'CHARACTER_DIZZY' => "\u{1F4AB}", 'CHARACTER_SPEECH_BALLOON' => "\u{1F4AC}", 'CHARACTER_LEFT_SPEECH_BUBBLE' => "\u{1F5E8}\u{FE0F}", 'CHARACTER_RIGHT_ANGER_BUBBLE' => "\u{1F5EF}\u{FE0F}", 'CHARACTER_THOUGHT_BALLOON' => "\u{1F4AD}", 'CHARACTER_HOLE' => "\u{1F573}\u{FE0F}", 'CHARACTER_GLASSES' => "\u{1F453}", 'CHARACTER_SUNGLASSES' => "\u{1F576}\u{FE0F}", 'CHARACTER_GOGGLES' => "\u{1F97D}", 'CHARACTER_LAB_COAT' => "\u{1F97C}", 'CHARACTER_NECKTIE' => "\u{1F454}", 'CHARACTER_T_SHIRT' => "\u{1F455}", 'CHARACTER_JEANS' => "\u{1F456}", 'CHARACTER_SCARF' => "\u{1F9E3}", 'CHARACTER_GLOVES' => "\u{1F9E4}", 'CHARACTER_COAT' => "\u{1F9E5}", 'CHARACTER_SOCKS' => "\u{1F9E6}", 'CHARACTER_DRESS' => "\u{1F457}", 'CHARACTER_KIMONO' => "\u{1F458}", 'CHARACTER_BIKINI' => "\u{1F459}", 'CHARACTER_WOMAN_S_CLOTHES' => "\u{1F45A}", 'CHARACTER_PURSE' => "\u{1F45B}", 'CHARACTER_HANDBAG' => "\u{1F45C}", 'CHARACTER_CLUTCH_BAG' => "\u{1F45D}", 'CHARACTER_SHOPPING_BAGS' => "\u{1F6CD}\u{FE0F}", 'CHARACTER_SCHOOL_BACKPACK' => "\u{1F392}", 'CHARACTER_MAN_S_SHOE' => "\u{1F45E}", 'CHARACTER_RUNNING_SHOE' => "\u{1F45F}", 'CHARACTER_HIKING_BOOT' => "\u{1F97E}", 'CHARACTER_WOMAN_S_FLAT_SHOE' => "\u{1F97F}", 'CHARACTER_HIGH_HEELED_SHOE' => "\u{1F460}", 'CHARACTER_WOMAN_S_SANDAL' => "\u{1F461}", 'CHARACTER_WOMAN_S_BOOT' => "\u{1F462}", 'CHARACTER_CROWN' => "\u{1F451}", 'CHARACTER_WOMAN_S_HAT' => "\u{1F452}", 'CHARACTER_TOP_HAT' => "\u{1F3A9}", 'CHARACTER_GRADUATION_CAP' => "\u{1F393}", 'CHARACTER_BILLED_CAP' => "\u{1F9E2}", 'CHARACTER_RESCUE_WORKER_S_HELMET' => "\u{26D1}\u{FE0F}", 'CHARACTER_PRAYER_BEADS' => "\u{1F4FF}", 'CHARACTER_LIPSTICK' => "\u{1F484}", 'CHARACTER_RING' => "\u{1F48D}", 'CHARACTER_GEM_STONE' => "\u{1F48E}", 'CHARACTER_MONKEY_FACE' => "\u{1F435}", 'CHARACTER_MONKEY' => "\u{1F412}", 'CHARACTER_GORILLA' => "\u{1F98D}", 'CHARACTER_DOG_FACE' => "\u{1F436}", 'CHARACTER_DOG' => "\u{1F415}", 'CHARACTER_POODLE' => "\u{1F429}", 'CHARACTER_WOLF_FACE' => "\u{1F43A}", 'CHARACTER_FOX_FACE' => "\u{1F98A}", 'CHARACTER_RACCOON' => "\u{1F99D}", 'CHARACTER_CAT_FACE' => "\u{1F431}", 'CHARACTER_CAT' => "\u{1F408}", 'CHARACTER_LION_FACE' => "\u{1F981}", 'CHARACTER_TIGER_FACE' => "\u{1F42F}", 'CHARACTER_TIGER' => "\u{1F405}", 'CHARACTER_LEOPARD' => "\u{1F406}", 'CHARACTER_HORSE_FACE' => "\u{1F434}", 'CHARACTER_HORSE' => "\u{1F40E}", 'CHARACTER_UNICORN_FACE' => "\u{1F984}", 'CHARACTER_ZEBRA' => "\u{1F993}", 'CHARACTER_DEER' => "\u{1F98C}", 'CHARACTER_COW_FACE' => "\u{1F42E}", 'CHARACTER_OX' => "\u{1F402}", 'CHARACTER_WATER_BUFFALO' => "\u{1F403}", 'CHARACTER_COW' => "\u{1F404}", 'CHARACTER_PIG_FACE' => "\u{1F437}", 'CHARACTER_PIG' => "\u{1F416}", 'CHARACTER_BOAR' => "\u{1F417}", 'CHARACTER_PIG_NOSE' => "\u{1F43D}", 'CHARACTER_RAM' => "\u{1F40F}", 'CHARACTER_EWE' => "\u{1F411}", 'CHARACTER_GOAT' => "\u{1F410}", 'CHARACTER_CAMEL' => "\u{1F42A}", 'CHARACTER_TWO_HUMP_CAMEL' => "\u{1F42B}", 'CHARACTER_LLAMA' => "\u{1F999}", 'CHARACTER_GIRAFFE' => "\u{1F992}", 'CHARACTER_ELEPHANT' => "\u{1F418}", 'CHARACTER_RHINOCEROS' => "\u{1F98F}", 'CHARACTER_HIPPOPOTAMUS' => "\u{1F99B}", 'CHARACTER_MOUSE_FACE' => "\u{1F42D}", 'CHARACTER_MOUSE' => "\u{1F401}", 'CHARACTER_RAT' => "\u{1F400}", 'CHARACTER_HAMSTER_FACE' => "\u{1F439}", 'CHARACTER_RABBIT_FACE' => "\u{1F430}", 'CHARACTER_RABBIT' => "\u{1F407}", 'CHARACTER_CHIPMUNK' => "\u{1F43F}\u{FE0F}", 'CHARACTER_HEDGEHOG' => "\u{1F994}", 'CHARACTER_BAT' => "\u{1F987}", 'CHARACTER_BEAR_FACE' => "\u{1F43B}", 'CHARACTER_KOALA' => "\u{1F428}", 'CHARACTER_PANDA_FACE' => "\u{1F43C}", 'CHARACTER_KANGAROO' => "\u{1F998}", 'CHARACTER_BADGER' => "\u{1F9A1}", 'CHARACTER_PAW_PRINTS' => "\u{1F43E}", 'CHARACTER_TURKEY' => "\u{1F983}", 'CHARACTER_CHICKEN' => "\u{1F414}", 'CHARACTER_ROOSTER' => "\u{1F413}", 'CHARACTER_HATCHING_CHICK' => "\u{1F423}", 'CHARACTER_BABY_CHICK' => "\u{1F424}", 'CHARACTER_FRONT_FACING_BABY_CHICK' => "\u{1F425}", 'CHARACTER_BIRD' => "\u{1F426}", 'CHARACTER_PENGUIN' => "\u{1F427}", 'CHARACTER_DOVE' => "\u{1F54A}\u{FE0F}", 'CHARACTER_EAGLE' => "\u{1F985}", 'CHARACTER_DUCK' => "\u{1F986}", 'CHARACTER_SWAN' => "\u{1F9A2}", 'CHARACTER_OWL' => "\u{1F989}", 'CHARACTER_PEACOCK' => "\u{1F99A}", 'CHARACTER_PARROT' => "\u{1F99C}", 'CHARACTER_FROG_FACE' => "\u{1F438}", 'CHARACTER_CROCODILE' => "\u{1F40A}", 'CHARACTER_TURTLE' => "\u{1F422}", 'CHARACTER_LIZARD' => "\u{1F98E}", 'CHARACTER_SNAKE' => "\u{1F40D}", 'CHARACTER_DRAGON_FACE' => "\u{1F432}", 'CHARACTER_DRAGON' => "\u{1F409}", 'CHARACTER_SAUROPOD' => "\u{1F995}", 'CHARACTER_T_REX' => "\u{1F996}", 'CHARACTER_SPOUTING_WHALE' => "\u{1F433}", 'CHARACTER_WHALE' => "\u{1F40B}", 'CHARACTER_DOLPHIN' => "\u{1F42C}", 'CHARACTER_FISH' => "\u{1F41F}", 'CHARACTER_TROPICAL_FISH' => "\u{1F420}", 'CHARACTER_BLOWFISH' => "\u{1F421}", 'CHARACTER_SHARK' => "\u{1F988}", 'CHARACTER_OCTOPUS' => "\u{1F419}", 'CHARACTER_SPIRAL_SHELL' => "\u{1F41A}", 'CHARACTER_CRAB' => "\u{1F980}", 'CHARACTER_LOBSTER' => "\u{1F99E}", 'CHARACTER_SHRIMP' => "\u{1F990}", 'CHARACTER_SQUID' => "\u{1F991}", 'CHARACTER_SNAIL' => "\u{1F40C}", 'CHARACTER_BUTTERFLY' => "\u{1F98B}", 'CHARACTER_BUG' => "\u{1F41B}", 'CHARACTER_ANT' => "\u{1F41C}", 'CHARACTER_HONEYBEE' => "\u{1F41D}", 'CHARACTER_LADY_BEETLE' => "\u{1F41E}", 'CHARACTER_CRICKET' => "\u{1F997}", 'CHARACTER_SPIDER' => "\u{1F577}\u{FE0F}", 'CHARACTER_SPIDER_WEB' => "\u{1F578}\u{FE0F}", 'CHARACTER_SCORPION' => "\u{1F982}", 'CHARACTER_MOSQUITO' => "\u{1F99F}", 'CHARACTER_MICROBE' => "\u{1F9A0}", 'CHARACTER_BOUQUET' => "\u{1F490}", 'CHARACTER_CHERRY_BLOSSOM' => "\u{1F338}", 'CHARACTER_WHITE_FLOWER' => "\u{1F4AE}", 'CHARACTER_ROSETTE' => "\u{1F3F5}\u{FE0F}", 'CHARACTER_ROSE' => "\u{1F339}", 'CHARACTER_WILTED_FLOWER' => "\u{1F940}", 'CHARACTER_HIBISCUS' => "\u{1F33A}", 'CHARACTER_SUNFLOWER' => "\u{1F33B}", 'CHARACTER_BLOSSOM' => "\u{1F33C}", 'CHARACTER_TULIP' => "\u{1F337}", 'CHARACTER_SEEDLING' => "\u{1F331}", 'CHARACTER_EVERGREEN_TREE' => "\u{1F332}", 'CHARACTER_DECIDUOUS_TREE' => "\u{1F333}", 'CHARACTER_PALM_TREE' => "\u{1F334}", 'CHARACTER_CACTUS' => "\u{1F335}", 'CHARACTER_SHEAF_OF_RICE' => "\u{1F33E}", 'CHARACTER_HERB' => "\u{1F33F}", 'CHARACTER_SHAMROCK' => "\u{2618}\u{FE0F}", 'CHARACTER_FOUR_LEAF_CLOVER' => "\u{1F340}", 'CHARACTER_MAPLE_LEAF' => "\u{1F341}", 'CHARACTER_FALLEN_LEAF' => "\u{1F342}", 'CHARACTER_LEAF_FLUTTERING_IN_WIND' => "\u{1F343}", 'CHARACTER_GRAPES' => "\u{1F347}", 'CHARACTER_MELON' => "\u{1F348}", 'CHARACTER_WATERMELON' => "\u{1F349}", 'CHARACTER_TANGERINE' => "\u{1F34A}", 'CHARACTER_LEMON' => "\u{1F34B}", 'CHARACTER_BANANA' => "\u{1F34C}", 'CHARACTER_PINEAPPLE' => "\u{1F34D}", 'CHARACTER_MANGO' => "\u{1F96D}", 'CHARACTER_RED_APPLE' => "\u{1F34E}", 'CHARACTER_GREEN_APPLE' => "\u{1F34F}", 'CHARACTER_PEAR' => "\u{1F350}", 'CHARACTER_PEACH' => "\u{1F351}", 'CHARACTER_CHERRIES' => "\u{1F352}", 'CHARACTER_STRAWBERRY' => "\u{1F353}", 'CHARACTER_KIWI_FRUIT' => "\u{1F95D}", 'CHARACTER_TOMATO' => "\u{1F345}", 'CHARACTER_COCONUT' => "\u{1F965}", 'CHARACTER_AVOCADO' => "\u{1F951}", 'CHARACTER_EGGPLANT' => "\u{1F346}", 'CHARACTER_POTATO' => "\u{1F954}", 'CHARACTER_CARROT' => "\u{1F955}", 'CHARACTER_EAR_OF_CORN' => "\u{1F33D}", 'CHARACTER_HOT_PEPPER' => "\u{1F336}\u{FE0F}", 'CHARACTER_CUCUMBER' => "\u{1F952}", 'CHARACTER_LEAFY_GREEN' => "\u{1F96C}", 'CHARACTER_BROCCOLI' => "\u{1F966}", 'CHARACTER_MUSHROOM' => "\u{1F344}", 'CHARACTER_PEANUTS' => "\u{1F95C}", 'CHARACTER_CHESTNUT' => "\u{1F330}", 'CHARACTER_BREAD' => "\u{1F35E}", 'CHARACTER_CROISSANT' => "\u{1F950}", 'CHARACTER_BAGUETTE_BREAD' => "\u{1F956}", 'CHARACTER_PRETZEL' => "\u{1F968}", 'CHARACTER_BAGEL' => "\u{1F96F}", 'CHARACTER_PANCAKES' => "\u{1F95E}", 'CHARACTER_CHEESE_WEDGE' => "\u{1F9C0}", 'CHARACTER_MEAT_ON_BONE' => "\u{1F356}", 'CHARACTER_POULTRY_LEG' => "\u{1F357}", 'CHARACTER_CUT_OF_MEAT' => "\u{1F969}", 'CHARACTER_BACON' => "\u{1F953}", 'CHARACTER_HAMBURGER' => "\u{1F354}", 'CHARACTER_FRENCH_FRIES' => "\u{1F35F}", 'CHARACTER_PIZZA' => "\u{1F355}", 'CHARACTER_HOT_DOG' => "\u{1F32D}", 'CHARACTER_SANDWICH' => "\u{1F96A}", 'CHARACTER_TACO' => "\u{1F32E}", 'CHARACTER_BURRITO' => "\u{1F32F}", 'CHARACTER_STUFFED_FLATBREAD' => "\u{1F959}", 'CHARACTER_EGG' => "\u{1F95A}", 'CHARACTER_COOKING' => "\u{1F373}", 'CHARACTER_SHALLOW_PAN_OF_FOOD' => "\u{1F958}", 'CHARACTER_POT_OF_FOOD' => "\u{1F372}", 'CHARACTER_BOWL_WITH_SPOON' => "\u{1F963}", 'CHARACTER_GREEN_SALAD' => "\u{1F957}", 'CHARACTER_POPCORN' => "\u{1F37F}", 'CHARACTER_SALT' => "\u{1F9C2}", 'CHARACTER_CANNED_FOOD' => "\u{1F96B}", 'CHARACTER_BENTO_BOX' => "\u{1F371}", 'CHARACTER_RICE_CRACKER' => "\u{1F358}", 'CHARACTER_RICE_BALL' => "\u{1F359}", 'CHARACTER_COOKED_RICE' => "\u{1F35A}", 'CHARACTER_CURRY_RICE' => "\u{1F35B}", 'CHARACTER_STEAMING_BOWL' => "\u{1F35C}", 'CHARACTER_SPAGHETTI' => "\u{1F35D}", 'CHARACTER_ROASTED_SWEET_POTATO' => "\u{1F360}", 'CHARACTER_ODEN' => "\u{1F362}", 'CHARACTER_SUSHI' => "\u{1F363}", 'CHARACTER_FRIED_SHRIMP' => "\u{1F364}", 'CHARACTER_FISH_CAKE_WITH_SWIRL' => "\u{1F365}", 'CHARACTER_MOON_CAKE' => "\u{1F96E}", 'CHARACTER_DANGO' => "\u{1F361}", 'CHARACTER_DUMPLING' => "\u{1F95F}", 'CHARACTER_FORTUNE_COOKIE' => "\u{1F960}", 'CHARACTER_TAKEOUT_BOX' => "\u{1F961}", 'CHARACTER_SOFT_ICE_CREAM' => "\u{1F366}", 'CHARACTER_SHAVED_ICE' => "\u{1F367}", 'CHARACTER_ICE_CREAM' => "\u{1F368}", 'CHARACTER_DOUGHNUT' => "\u{1F369}", 'CHARACTER_COOKIE' => "\u{1F36A}", 'CHARACTER_BIRTHDAY_CAKE' => "\u{1F382}", 'CHARACTER_SHORTCAKE' => "\u{1F370}", 'CHARACTER_CUPCAKE' => "\u{1F9C1}", 'CHARACTER_PIE' => "\u{1F967}", 'CHARACTER_CHOCOLATE_BAR' => "\u{1F36B}", 'CHARACTER_CANDY' => "\u{1F36C}", 'CHARACTER_LOLLIPOP' => "\u{1F36D}", 'CHARACTER_CUSTARD' => "\u{1F36E}", 'CHARACTER_HONEY_POT' => "\u{1F36F}", 'CHARACTER_BABY_BOTTLE' => "\u{1F37C}", 'CHARACTER_GLASS_OF_MILK' => "\u{1F95B}", 'CHARACTER_HOT_BEVERAGE' => "\u{2615}", 'CHARACTER_TEACUP_WITHOUT_HANDLE' => "\u{1F375}", 'CHARACTER_SAKE' => "\u{1F376}", 'CHARACTER_BOTTLE_WITH_POPPING_CORK' => "\u{1F37E}", 'CHARACTER_WINE_GLASS' => "\u{1F377}", 'CHARACTER_COCKTAIL_GLASS' => "\u{1F378}", 'CHARACTER_TROPICAL_DRINK' => "\u{1F379}", 'CHARACTER_BEER_MUG' => "\u{1F37A}", 'CHARACTER_CLINKING_BEER_MUGS' => "\u{1F37B}", 'CHARACTER_CLINKING_GLASSES' => "\u{1F942}", 'CHARACTER_TUMBLER_GLASS' => "\u{1F943}", 'CHARACTER_CUP_WITH_STRAW' => "\u{1F964}", 'CHARACTER_CHOPSTICKS' => "\u{1F962}", 'CHARACTER_FORK_AND_KNIFE_WITH_PLATE' => "\u{1F37D}\u{FE0F}", 'CHARACTER_FORK_AND_KNIFE' => "\u{1F374}", 'CHARACTER_SPOON' => "\u{1F944}", 'CHARACTER_KITCHEN_KNIFE' => "\u{1F52A}", 'CHARACTER_AMPHORA' => "\u{1F3FA}", 'CHARACTER_GLOBE_SHOWING_EUROPE_AFRICA' => "\u{1F30D}", 'CHARACTER_GLOBE_SHOWING_AMERICAS' => "\u{1F30E}", 'CHARACTER_GLOBE_SHOWING_ASIA_AUSTRALIA' => "\u{1F30F}", 'CHARACTER_GLOBE_WITH_MERIDIANS' => "\u{1F310}", 'CHARACTER_WORLD_MAP' => "\u{1F5FA}\u{FE0F}", 'CHARACTER_MAP_OF_JAPAN' => "\u{1F5FE}", 'CHARACTER_COMPASS' => "\u{1F9ED}", 'CHARACTER_SNOW_CAPPED_MOUNTAIN' => "\u{1F3D4}\u{FE0F}", 'CHARACTER_MOUNTAIN' => "\u{26F0}\u{FE0F}", 'CHARACTER_VOLCANO' => "\u{1F30B}", 'CHARACTER_MOUNT_FUJI' => "\u{1F5FB}", 'CHARACTER_CAMPING' => "\u{1F3D5}\u{FE0F}", 'CHARACTER_BEACH_WITH_UMBRELLA' => "\u{1F3D6}\u{FE0F}", 'CHARACTER_DESERT' => "\u{1F3DC}\u{FE0F}", 'CHARACTER_DESERT_ISLAND' => "\u{1F3DD}\u{FE0F}", 'CHARACTER_NATIONAL_PARK' => "\u{1F3DE}\u{FE0F}", 'CHARACTER_STADIUM' => "\u{1F3DF}\u{FE0F}", 'CHARACTER_CLASSICAL_BUILDING' => "\u{1F3DB}\u{FE0F}", 'CHARACTER_BUILDING_CONSTRUCTION' => "\u{1F3D7}\u{FE0F}", 'CHARACTER_BRICKS' => "\u{1F9F1}", 'CHARACTER_HOUSES' => "\u{1F3D8}\u{FE0F}", 'CHARACTER_DERELICT_HOUSE' => "\u{1F3DA}\u{FE0F}", 'CHARACTER_HOUSE' => "\u{1F3E0}", 'CHARACTER_HOUSE_WITH_GARDEN' => "\u{1F3E1}", 'CHARACTER_OFFICE_BUILDING' => "\u{1F3E2}", 'CHARACTER_JAPANESE_POST_OFFICE' => "\u{1F3E3}", 'CHARACTER_POST_OFFICE' => "\u{1F3E4}", 'CHARACTER_HOSPITAL' => "\u{1F3E5}", 'CHARACTER_BANK' => "\u{1F3E6}", 'CHARACTER_HOTEL' => "\u{1F3E8}", 'CHARACTER_LOVE_HOTEL' => "\u{1F3E9}", 'CHARACTER_CONVENIENCE_STORE' => "\u{1F3EA}", 'CHARACTER_SCHOOL' => "\u{1F3EB}", 'CHARACTER_DEPARTMENT_STORE' => "\u{1F3EC}", 'CHARACTER_FACTORY' => "\u{1F3ED}", 'CHARACTER_JAPANESE_CASTLE' => "\u{1F3EF}", 'CHARACTER_CASTLE' => "\u{1F3F0}", 'CHARACTER_WEDDING' => "\u{1F492}", 'CHARACTER_TOKYO_TOWER' => "\u{1F5FC}", 'CHARACTER_STATUE_OF_LIBERTY' => "\u{1F5FD}", 'CHARACTER_CHURCH' => "\u{26EA}", 'CHARACTER_MOSQUE' => "\u{1F54C}", 'CHARACTER_SYNAGOGUE' => "\u{1F54D}", 'CHARACTER_SHINTO_SHRINE' => "\u{26E9}\u{FE0F}", 'CHARACTER_KAABA' => "\u{1F54B}", 'CHARACTER_FOUNTAIN' => "\u{26F2}", 'CHARACTER_TENT' => "\u{26FA}", 'CHARACTER_FOGGY' => "\u{1F301}", 'CHARACTER_NIGHT_WITH_STARS' => "\u{1F303}", 'CHARACTER_CITYSCAPE' => "\u{1F3D9}\u{FE0F}", 'CHARACTER_SUNRISE_OVER_MOUNTAINS' => "\u{1F304}", 'CHARACTER_SUNRISE' => "\u{1F305}", 'CHARACTER_CITYSCAPE_AT_DUSK' => "\u{1F306}", 'CHARACTER_SUNSET' => "\u{1F307}", 'CHARACTER_BRIDGE_AT_NIGHT' => "\u{1F309}", 'CHARACTER_HOT_SPRINGS' => "\u{2668}\u{FE0F}", 'CHARACTER_MILKY_WAY' => "\u{1F30C}", 'CHARACTER_CAROUSEL_HORSE' => "\u{1F3A0}", 'CHARACTER_FERRIS_WHEEL' => "\u{1F3A1}", 'CHARACTER_ROLLER_COASTER' => "\u{1F3A2}", 'CHARACTER_BARBER_POLE' => "\u{1F488}", 'CHARACTER_CIRCUS_TENT' => "\u{1F3AA}", 'CHARACTER_LOCOMOTIVE' => "\u{1F682}", 'CHARACTER_RAILWAY_CAR' => "\u{1F683}", 'CHARACTER_HIGH_SPEED_TRAIN' => "\u{1F684}", 'CHARACTER_BULLET_TRAIN' => "\u{1F685}", 'CHARACTER_TRAIN' => "\u{1F686}", 'CHARACTER_METRO' => "\u{1F687}", 'CHARACTER_LIGHT_RAIL' => "\u{1F688}", 'CHARACTER_STATION' => "\u{1F689}", 'CHARACTER_TRAM' => "\u{1F68A}", 'CHARACTER_MONORAIL' => "\u{1F69D}", 'CHARACTER_MOUNTAIN_RAILWAY' => "\u{1F69E}", 'CHARACTER_TRAM_CAR' => "\u{1F68B}", 'CHARACTER_BUS' => "\u{1F68C}", 'CHARACTER_ONCOMING_BUS' => "\u{1F68D}", 'CHARACTER_TROLLEYBUS' => "\u{1F68E}", 'CHARACTER_MINIBUS' => "\u{1F690}", 'CHARACTER_AMBULANCE' => "\u{1F691}", 'CHARACTER_FIRE_ENGINE' => "\u{1F692}", 'CHARACTER_POLICE_CAR' => "\u{1F693}", 'CHARACTER_ONCOMING_POLICE_CAR' => "\u{1F694}", 'CHARACTER_TAXI' => "\u{1F695}", 'CHARACTER_ONCOMING_TAXI' => "\u{1F696}", 'CHARACTER_AUTOMOBILE' => "\u{1F697}", 'CHARACTER_ONCOMING_AUTOMOBILE' => "\u{1F698}", 'CHARACTER_SPORT_UTILITY_VEHICLE' => "\u{1F699}", 'CHARACTER_DELIVERY_TRUCK' => "\u{1F69A}", 'CHARACTER_ARTICULATED_LORRY' => "\u{1F69B}", 'CHARACTER_TRACTOR' => "\u{1F69C}", 'CHARACTER_BICYCLE' => "\u{1F6B2}", 'CHARACTER_KICK_SCOOTER' => "\u{1F6F4}", 'CHARACTER_SKATEBOARD' => "\u{1F6F9}", 'CHARACTER_MOTOR_SCOOTER' => "\u{1F6F5}", 'CHARACTER_BUS_STOP' => "\u{1F68F}", 'CHARACTER_MOTORWAY' => "\u{1F6E3}\u{FE0F}", 'CHARACTER_RAILWAY_TRACK' => "\u{1F6E4}\u{FE0F}", 'CHARACTER_OIL_DRUM' => "\u{1F6E2}\u{FE0F}", 'CHARACTER_FUEL_PUMP' => "\u{26FD}", 'CHARACTER_POLICE_CAR_LIGHT' => "\u{1F6A8}", 'CHARACTER_HORIZONTAL_TRAFFIC_LIGHT' => "\u{1F6A5}", 'CHARACTER_VERTICAL_TRAFFIC_LIGHT' => "\u{1F6A6}", 'CHARACTER_STOP_SIGN' => "\u{1F6D1}", 'CHARACTER_CONSTRUCTION' => "\u{1F6A7}", 'CHARACTER_ANCHOR' => "\u{2693}", 'CHARACTER_SAILBOAT' => "\u{26F5}", 'CHARACTER_CANOE' => "\u{1F6F6}", 'CHARACTER_SPEEDBOAT' => "\u{1F6A4}", 'CHARACTER_PASSENGER_SHIP' => "\u{1F6F3}\u{FE0F}", 'CHARACTER_FERRY' => "\u{26F4}\u{FE0F}", 'CHARACTER_MOTOR_BOAT' => "\u{1F6E5}\u{FE0F}", 'CHARACTER_SHIP' => "\u{1F6A2}", 'CHARACTER_AIRPLANE' => "\u{2708}\u{FE0F}", 'CHARACTER_SMALL_AIRPLANE' => "\u{1F6E9}\u{FE0F}", 'CHARACTER_AIRPLANE_DEPARTURE' => "\u{1F6EB}", 'CHARACTER_AIRPLANE_ARRIVAL' => "\u{1F6EC}", 'CHARACTER_SEAT' => "\u{1F4BA}", 'CHARACTER_HELICOPTER' => "\u{1F681}", 'CHARACTER_SUSPENSION_RAILWAY' => "\u{1F69F}", 'CHARACTER_MOUNTAIN_CABLEWAY' => "\u{1F6A0}", 'CHARACTER_AERIAL_TRAMWAY' => "\u{1F6A1}", 'CHARACTER_SATELLITE' => "\u{1F6F0}\u{FE0F}", 'CHARACTER_ROCKET' => "\u{1F680}", 'CHARACTER_FLYING_SAUCER' => "\u{1F6F8}", 'CHARACTER_BELLHOP_BELL' => "\u{1F6CE}\u{FE0F}", 'CHARACTER_LUGGAGE' => "\u{1F9F3}", 'CHARACTER_HOURGLASS_DONE' => "\u{231B}", 'CHARACTER_HOURGLASS_NOT_DONE' => "\u{23F3}", 'CHARACTER_WATCH' => "\u{231A}", 'CHARACTER_ALARM_CLOCK' => "\u{23F0}", 'CHARACTER_STOPWATCH' => "\u{23F1}\u{FE0F}", 'CHARACTER_TIMER_CLOCK' => "\u{23F2}\u{FE0F}", 'CHARACTER_MANTELPIECE_CLOCK' => "\u{1F570}\u{FE0F}", 'CHARACTER_TWELVE_O_CLOCK' => "\u{1F55B}", 'CHARACTER_TWELVE_THIRTY' => "\u{1F567}", 'CHARACTER_ONE_O_CLOCK' => "\u{1F550}", 'CHARACTER_ONE_THIRTY' => "\u{1F55C}", 'CHARACTER_TWO_O_CLOCK' => "\u{1F551}", 'CHARACTER_TWO_THIRTY' => "\u{1F55D}", 'CHARACTER_THREE_O_CLOCK' => "\u{1F552}", 'CHARACTER_THREE_THIRTY' => "\u{1F55E}", 'CHARACTER_FOUR_O_CLOCK' => "\u{1F553}", 'CHARACTER_FOUR_THIRTY' => "\u{1F55F}", 'CHARACTER_FIVE_O_CLOCK' => "\u{1F554}", 'CHARACTER_FIVE_THIRTY' => "\u{1F560}", 'CHARACTER_SIX_O_CLOCK' => "\u{1F555}", 'CHARACTER_SIX_THIRTY' => "\u{1F561}", 'CHARACTER_SEVEN_O_CLOCK' => "\u{1F556}", 'CHARACTER_SEVEN_THIRTY' => "\u{1F562}", 'CHARACTER_EIGHT_O_CLOCK' => "\u{1F557}", 'CHARACTER_EIGHT_THIRTY' => "\u{1F563}", 'CHARACTER_NINE_O_CLOCK' => "\u{1F558}", 'CHARACTER_NINE_THIRTY' => "\u{1F564}", 'CHARACTER_TEN_O_CLOCK' => "\u{1F559}", 'CHARACTER_TEN_THIRTY' => "\u{1F565}", 'CHARACTER_ELEVEN_O_CLOCK' => "\u{1F55A}", 'CHARACTER_ELEVEN_THIRTY' => "\u{1F566}", 'CHARACTER_NEW_MOON' => "\u{1F311}", 'CHARACTER_WAXING_CRESCENT_MOON' => "\u{1F312}", 'CHARACTER_FIRST_QUARTER_MOON' => "\u{1F313}", 'CHARACTER_WAXING_GIBBOUS_MOON' => "\u{1F314}", 'CHARACTER_FULL_MOON' => "\u{1F315}", 'CHARACTER_WANING_GIBBOUS_MOON' => "\u{1F316}", 'CHARACTER_LAST_QUARTER_MOON' => "\u{1F317}", 'CHARACTER_WANING_CRESCENT_MOON' => "\u{1F318}", 'CHARACTER_CRESCENT_MOON' => "\u{1F319}", 'CHARACTER_NEW_MOON_FACE' => "\u{1F31A}", 'CHARACTER_FIRST_QUARTER_MOON_FACE' => "\u{1F31B}", 'CHARACTER_LAST_QUARTER_MOON_FACE' => "\u{1F31C}", 'CHARACTER_THERMOMETER' => "\u{1F321}\u{FE0F}", 'CHARACTER_SUN' => "\u{2600}\u{FE0F}", 'CHARACTER_FULL_MOON_FACE' => "\u{1F31D}", 'CHARACTER_SUN_WITH_FACE' => "\u{1F31E}", 'CHARACTER_STAR' => "\u{2B50}", 'CHARACTER_GLOWING_STAR' => "\u{1F31F}", 'CHARACTER_SHOOTING_STAR' => "\u{1F320}", 'CHARACTER_CLOUD' => "\u{2601}\u{FE0F}", 'CHARACTER_SUN_BEHIND_CLOUD' => "\u{26C5}", 'CHARACTER_CLOUD_WITH_LIGHTNING_AND_RAIN' => "\u{26C8}\u{FE0F}", 'CHARACTER_SUN_BEHIND_SMALL_CLOUD' => "\u{1F324}\u{FE0F}", 'CHARACTER_SUN_BEHIND_LARGE_CLOUD' => "\u{1F325}\u{FE0F}", 'CHARACTER_SUN_BEHIND_RAIN_CLOUD' => "\u{1F326}\u{FE0F}", 'CHARACTER_CLOUD_WITH_RAIN' => "\u{1F327}\u{FE0F}", 'CHARACTER_CLOUD_WITH_SNOW' => "\u{1F328}\u{FE0F}", 'CHARACTER_CLOUD_WITH_LIGHTNING' => "\u{1F329}\u{FE0F}", 'CHARACTER_TORNADO' => "\u{1F32A}\u{FE0F}", 'CHARACTER_FOG' => "\u{1F32B}\u{FE0F}", 'CHARACTER_WIND_FACE' => "\u{1F32C}\u{FE0F}", 'CHARACTER_CYCLONE' => "\u{1F300}", 'CHARACTER_RAINBOW' => "\u{1F308}", 'CHARACTER_CLOSED_UMBRELLA' => "\u{1F302}", 'CHARACTER_UMBRELLA' => "\u{2602}\u{FE0F}", 'CHARACTER_UMBRELLA_WITH_RAIN_DROPS' => "\u{2614}", 'CHARACTER_UMBRELLA_ON_GROUND' => "\u{26F1}\u{FE0F}", 'CHARACTER_HIGH_VOLTAGE' => "\u{26A1}", 'CHARACTER_SNOWFLAKE' => "\u{2744}\u{FE0F}", 'CHARACTER_SNOWMAN' => "\u{2603}\u{FE0F}", 'CHARACTER_SNOWMAN_WITHOUT_SNOW' => "\u{26C4}", 'CHARACTER_COMET' => "\u{2604}\u{FE0F}", 'CHARACTER_FIRE' => "\u{1F525}", 'CHARACTER_DROPLET' => "\u{1F4A7}", 'CHARACTER_WATER_WAVE' => "\u{1F30A}", 'CHARACTER_JACK_O_LANTERN' => "\u{1F383}", 'CHARACTER_CHRISTMAS_TREE' => "\u{1F384}", 'CHARACTER_FIREWORKS' => "\u{1F386}", 'CHARACTER_SPARKLER' => "\u{1F387}", 'CHARACTER_FIRECRACKER' => "\u{1F9E8}", 'CHARACTER_SPARKLES' => "\u{2728}", 'CHARACTER_BALLOON' => "\u{1F388}", 'CHARACTER_PARTY_POPPER' => "\u{1F389}", 'CHARACTER_CONFETTI_BALL' => "\u{1F38A}", 'CHARACTER_TANABATA_TREE' => "\u{1F38B}", 'CHARACTER_PINE_DECORATION' => "\u{1F38D}", 'CHARACTER_JAPANESE_DOLLS' => "\u{1F38E}", 'CHARACTER_CARP_STREAMER' => "\u{1F38F}", 'CHARACTER_WIND_CHIME' => "\u{1F390}", 'CHARACTER_MOON_VIEWING_CEREMONY' => "\u{1F391}", 'CHARACTER_RED_ENVELOPE' => "\u{1F9E7}", 'CHARACTER_RIBBON' => "\u{1F380}", 'CHARACTER_WRAPPED_GIFT' => "\u{1F381}", 'CHARACTER_REMINDER_RIBBON' => "\u{1F397}\u{FE0F}", 'CHARACTER_ADMISSION_TICKETS' => "\u{1F39F}\u{FE0F}", 'CHARACTER_TICKET' => "\u{1F3AB}", 'CHARACTER_MILITARY_MEDAL' => "\u{1F396}\u{FE0F}", 'CHARACTER_TROPHY' => "\u{1F3C6}", 'CHARACTER_SPORTS_MEDAL' => "\u{1F3C5}", 'CHARACTER_1ST_PLACE_MEDAL' => "\u{1F947}", 'CHARACTER_2ND_PLACE_MEDAL' => "\u{1F948}", 'CHARACTER_3RD_PLACE_MEDAL' => "\u{1F949}", 'CHARACTER_SOCCER_BALL' => "\u{26BD}", 'CHARACTER_BASEBALL' => "\u{26BE}", 'CHARACTER_SOFTBALL' => "\u{1F94E}", 'CHARACTER_BASKETBALL' => "\u{1F3C0}", 'CHARACTER_VOLLEYBALL' => "\u{1F3D0}", 'CHARACTER_AMERICAN_FOOTBALL' => "\u{1F3C8}", 'CHARACTER_RUGBY_FOOTBALL' => "\u{1F3C9}", 'CHARACTER_TENNIS' => "\u{1F3BE}", 'CHARACTER_FLYING_DISC' => "\u{1F94F}", 'CHARACTER_BOWLING' => "\u{1F3B3}", 'CHARACTER_CRICKET_GAME' => "\u{1F3CF}", 'CHARACTER_FIELD_HOCKEY' => "\u{1F3D1}", 'CHARACTER_ICE_HOCKEY' => "\u{1F3D2}", 'CHARACTER_LACROSSE' => "\u{1F94D}", 'CHARACTER_PING_PONG' => "\u{1F3D3}", 'CHARACTER_BADMINTON' => "\u{1F3F8}", 'CHARACTER_BOXING_GLOVE' => "\u{1F94A}", 'CHARACTER_MARTIAL_ARTS_UNIFORM' => "\u{1F94B}", 'CHARACTER_GOAL_NET' => "\u{1F945}", 'CHARACTER_FLAG_IN_HOLE' => "\u{26F3}", 'CHARACTER_ICE_SKATE' => "\u{26F8}\u{FE0F}", 'CHARACTER_FISHING_POLE' => "\u{1F3A3}", 'CHARACTER_RUNNING_SHIRT' => "\u{1F3BD}", 'CHARACTER_SKIS' => "\u{1F3BF}", 'CHARACTER_SLED' => "\u{1F6F7}", 'CHARACTER_CURLING_STONE' => "\u{1F94C}", 'CHARACTER_DIRECT_HIT' => "\u{1F3AF}", 'CHARACTER_POOL_8_BALL' => "\u{1F3B1}", 'CHARACTER_CRYSTAL_BALL' => "\u{1F52E}", 'CHARACTER_NAZAR_AMULET' => "\u{1F9FF}", 'CHARACTER_VIDEO_GAME' => "\u{1F3AE}", 'CHARACTER_JOYSTICK' => "\u{1F579}\u{FE0F}", 'CHARACTER_SLOT_MACHINE' => "\u{1F3B0}", 'CHARACTER_GAME_DIE' => "\u{1F3B2}", 'CHARACTER_JIGSAW' => "\u{1F9E9}", 'CHARACTER_TEDDY_BEAR' => "\u{1F9F8}", 'CHARACTER_SPADE_SUIT' => "\u{2660}\u{FE0F}", 'CHARACTER_HEART_SUIT' => "\u{2665}\u{FE0F}", 'CHARACTER_DIAMOND_SUIT' => "\u{2666}\u{FE0F}", 'CHARACTER_CLUB_SUIT' => "\u{2663}\u{FE0F}", 'CHARACTER_CHESS_PAWN' => "\u{265F}\u{FE0F}", 'CHARACTER_JOKER' => "\u{1F0CF}", 'CHARACTER_MAHJONG_RED_DRAGON' => "\u{1F004}", 'CHARACTER_FLOWER_PLAYING_CARDS' => "\u{1F3B4}", 'CHARACTER_PERFORMING_ARTS' => "\u{1F3AD}", 'CHARACTER_FRAMED_PICTURE' => "\u{1F5BC}\u{FE0F}", 'CHARACTER_ARTIST_PALETTE' => "\u{1F3A8}", 'CHARACTER_THREAD' => "\u{1F9F5}", 'CHARACTER_YARN' => "\u{1F9F6}", 'CHARACTER_MUTED_SPEAKER' => "\u{1F507}", 'CHARACTER_SPEAKER_LOW_VOLUME' => "\u{1F508}", 'CHARACTER_SPEAKER_MEDIUM_VOLUME' => "\u{1F509}", 'CHARACTER_SPEAKER_HIGH_VOLUME' => "\u{1F50A}", 'CHARACTER_LOUDSPEAKER' => "\u{1F4E2}", 'CHARACTER_MEGAPHONE' => "\u{1F4E3}", 'CHARACTER_POSTAL_HORN' => "\u{1F4EF}", 'CHARACTER_BELL' => "\u{1F514}", 'CHARACTER_BELL_WITH_SLASH' => "\u{1F515}", 'CHARACTER_MUSICAL_SCORE' => "\u{1F3BC}", 'CHARACTER_MUSICAL_NOTE' => "\u{1F3B5}", 'CHARACTER_MUSICAL_NOTES' => "\u{1F3B6}", 'CHARACTER_STUDIO_MICROPHONE' => "\u{1F399}\u{FE0F}", 'CHARACTER_LEVEL_SLIDER' => "\u{1F39A}\u{FE0F}", 'CHARACTER_CONTROL_KNOBS' => "\u{1F39B}\u{FE0F}", 'CHARACTER_MICROPHONE' => "\u{1F3A4}", 'CHARACTER_HEADPHONE' => "\u{1F3A7}", 'CHARACTER_RADIO' => "\u{1F4FB}", 'CHARACTER_SAXOPHONE' => "\u{1F3B7}", 'CHARACTER_GUITAR' => "\u{1F3B8}", 'CHARACTER_MUSICAL_KEYBOARD' => "\u{1F3B9}", 'CHARACTER_TRUMPET' => "\u{1F3BA}", 'CHARACTER_VIOLIN' => "\u{1F3BB}", 'CHARACTER_DRUM' => "\u{1F941}", 'CHARACTER_MOBILE_PHONE' => "\u{1F4F1}", 'CHARACTER_MOBILE_PHONE_WITH_ARROW' => "\u{1F4F2}", 'CHARACTER_TELEPHONE' => "\u{260E}\u{FE0F}", 'CHARACTER_TELEPHONE_RECEIVER' => "\u{1F4DE}", 'CHARACTER_PAGER' => "\u{1F4DF}", 'CHARACTER_FAX_MACHINE' => "\u{1F4E0}", 'CHARACTER_BATTERY' => "\u{1F50B}", 'CHARACTER_ELECTRIC_PLUG' => "\u{1F50C}", 'CHARACTER_LAPTOP_COMPUTER' => "\u{1F4BB}", 'CHARACTER_DESKTOP_COMPUTER' => "\u{1F5A5}\u{FE0F}", 'CHARACTER_PRINTER' => "\u{1F5A8}\u{FE0F}", 'CHARACTER_KEYBOARD' => "\u{2328}\u{FE0F}", 'CHARACTER_COMPUTER_MOUSE' => "\u{1F5B1}\u{FE0F}", 'CHARACTER_TRACKBALL' => "\u{1F5B2}\u{FE0F}", 'CHARACTER_COMPUTER_DISK' => "\u{1F4BD}", 'CHARACTER_FLOPPY_DISK' => "\u{1F4BE}", 'CHARACTER_OPTICAL_DISK' => "\u{1F4BF}", 'CHARACTER_DVD' => "\u{1F4C0}", 'CHARACTER_ABACUS' => "\u{1F9EE}", 'CHARACTER_MOVIE_CAMERA' => "\u{1F3A5}", 'CHARACTER_FILM_FRAMES' => "\u{1F39E}\u{FE0F}", 'CHARACTER_FILM_PROJECTOR' => "\u{1F4FD}\u{FE0F}", 'CHARACTER_CLAPPER_BOARD' => "\u{1F3AC}", 'CHARACTER_TELEVISION' => "\u{1F4FA}", 'CHARACTER_CAMERA' => "\u{1F4F7}", 'CHARACTER_CAMERA_WITH_FLASH' => "\u{1F4F8}", 'CHARACTER_VIDEO_CAMERA' => "\u{1F4F9}", 'CHARACTER_VIDEOCASSETTE' => "\u{1F4FC}", 'CHARACTER_MAGNIFYING_GLASS_TILTED_LEFT' => "\u{1F50D}", 'CHARACTER_MAGNIFYING_GLASS_TILTED_RIGHT' => "\u{1F50E}", 'CHARACTER_CANDLE' => "\u{1F56F}\u{FE0F}", 'CHARACTER_LIGHT_BULB' => "\u{1F4A1}", 'CHARACTER_FLASHLIGHT' => "\u{1F526}", 'CHARACTER_RED_PAPER_LANTERN' => "\u{1F3EE}", 'CHARACTER_NOTEBOOK_WITH_DECORATIVE_COVER' => "\u{1F4D4}", 'CHARACTER_CLOSED_BOOK' => "\u{1F4D5}", 'CHARACTER_OPEN_BOOK' => "\u{1F4D6}", 'CHARACTER_GREEN_BOOK' => "\u{1F4D7}", 'CHARACTER_BLUE_BOOK' => "\u{1F4D8}", 'CHARACTER_ORANGE_BOOK' => "\u{1F4D9}", 'CHARACTER_BOOKS' => "\u{1F4DA}", 'CHARACTER_NOTEBOOK' => "\u{1F4D3}", 'CHARACTER_LEDGER' => "\u{1F4D2}", 'CHARACTER_PAGE_WITH_CURL' => "\u{1F4C3}", 'CHARACTER_SCROLL' => "\u{1F4DC}", 'CHARACTER_PAGE_FACING_UP' => "\u{1F4C4}", 'CHARACTER_NEWSPAPER' => "\u{1F4F0}", 'CHARACTER_ROLLED_UP_NEWSPAPER' => "\u{1F5DE}\u{FE0F}", 'CHARACTER_BOOKMARK_TABS' => "\u{1F4D1}", 'CHARACTER_BOOKMARK' => "\u{1F516}", 'CHARACTER_LABEL' => "\u{1F3F7}\u{FE0F}", 'CHARACTER_MONEY_BAG' => "\u{1F4B0}", 'CHARACTER_YEN_BANKNOTE' => "\u{1F4B4}", 'CHARACTER_DOLLAR_BANKNOTE' => "\u{1F4B5}", 'CHARACTER_EURO_BANKNOTE' => "\u{1F4B6}", 'CHARACTER_POUND_BANKNOTE' => "\u{1F4B7}", 'CHARACTER_MONEY_WITH_WINGS' => "\u{1F4B8}", 'CHARACTER_CREDIT_CARD' => "\u{1F4B3}", 'CHARACTER_RECEIPT' => "\u{1F9FE}", 'CHARACTER_CHART_INCREASING_WITH_YEN' => "\u{1F4B9}", 'CHARACTER_CURRENCY_EXCHANGE' => "\u{1F4B1}", 'CHARACTER_HEAVY_DOLLAR_SIGN' => "\u{1F4B2}", 'CHARACTER_ENVELOPE' => "\u{2709}\u{FE0F}", 'CHARACTER_E_MAIL' => "\u{1F4E7}", 'CHARACTER_INCOMING_ENVELOPE' => "\u{1F4E8}", 'CHARACTER_ENVELOPE_WITH_ARROW' => "\u{1F4E9}", 'CHARACTER_OUTBOX_TRAY' => "\u{1F4E4}", 'CHARACTER_INBOX_TRAY' => "\u{1F4E5}", 'CHARACTER_PACKAGE' => "\u{1F4E6}", 'CHARACTER_CLOSED_MAILBOX_WITH_RAISED_FLAG' => "\u{1F4EB}", 'CHARACTER_CLOSED_MAILBOX_WITH_LOWERED_FLAG' => "\u{1F4EA}", 'CHARACTER_OPEN_MAILBOX_WITH_RAISED_FLAG' => "\u{1F4EC}", 'CHARACTER_OPEN_MAILBOX_WITH_LOWERED_FLAG' => "\u{1F4ED}", 'CHARACTER_POSTBOX' => "\u{1F4EE}", 'CHARACTER_BALLOT_BOX_WITH_BALLOT' => "\u{1F5F3}\u{FE0F}", 'CHARACTER_PENCIL' => "\u{270F}\u{FE0F}", 'CHARACTER_BLACK_NIB' => "\u{2712}\u{FE0F}", 'CHARACTER_FOUNTAIN_PEN' => "\u{1F58B}\u{FE0F}", 'CHARACTER_PEN' => "\u{1F58A}\u{FE0F}", 'CHARACTER_PAINTBRUSH' => "\u{1F58C}\u{FE0F}", 'CHARACTER_CRAYON' => "\u{1F58D}\u{FE0F}", 'CHARACTER_MEMO' => "\u{1F4DD}", 'CHARACTER_BRIEFCASE' => "\u{1F4BC}", 'CHARACTER_FILE_FOLDER' => "\u{1F4C1}", 'CHARACTER_OPEN_FILE_FOLDER' => "\u{1F4C2}", 'CHARACTER_CARD_INDEX_DIVIDERS' => "\u{1F5C2}\u{FE0F}", 'CHARACTER_CALENDAR' => "\u{1F4C5}", 'CHARACTER_TEAR_OFF_CALENDAR' => "\u{1F4C6}", 'CHARACTER_SPIRAL_NOTEPAD' => "\u{1F5D2}\u{FE0F}", 'CHARACTER_SPIRAL_CALENDAR' => "\u{1F5D3}\u{FE0F}", 'CHARACTER_CARD_INDEX' => "\u{1F4C7}", 'CHARACTER_CHART_INCREASING' => "\u{1F4C8}", 'CHARACTER_CHART_DECREASING' => "\u{1F4C9}", 'CHARACTER_BAR_CHART' => "\u{1F4CA}", 'CHARACTER_CLIPBOARD' => "\u{1F4CB}", 'CHARACTER_PUSHPIN' => "\u{1F4CC}", 'CHARACTER_ROUND_PUSHPIN' => "\u{1F4CD}", 'CHARACTER_PAPERCLIP' => "\u{1F4CE}", 'CHARACTER_LINKED_PAPERCLIPS' => "\u{1F587}\u{FE0F}", 'CHARACTER_STRAIGHT_RULER' => "\u{1F4CF}", 'CHARACTER_TRIANGULAR_RULER' => "\u{1F4D0}", 'CHARACTER_SCISSORS' => "\u{2702}\u{FE0F}", 'CHARACTER_CARD_FILE_BOX' => "\u{1F5C3}\u{FE0F}", 'CHARACTER_FILE_CABINET' => "\u{1F5C4}\u{FE0F}", 'CHARACTER_WASTEBASKET' => "\u{1F5D1}\u{FE0F}", 'CHARACTER_LOCKED' => "\u{1F512}", 'CHARACTER_UNLOCKED' => "\u{1F513}", 'CHARACTER_LOCKED_WITH_PEN' => "\u{1F50F}", 'CHARACTER_LOCKED_WITH_KEY' => "\u{1F510}", 'CHARACTER_KEY' => "\u{1F511}", 'CHARACTER_OLD_KEY' => "\u{1F5DD}\u{FE0F}", 'CHARACTER_HAMMER' => "\u{1F528}", 'CHARACTER_PICK' => "\u{26CF}\u{FE0F}", 'CHARACTER_HAMMER_AND_PICK' => "\u{2692}\u{FE0F}", 'CHARACTER_HAMMER_AND_WRENCH' => "\u{1F6E0}\u{FE0F}", 'CHARACTER_DAGGER' => "\u{1F5E1}\u{FE0F}", 'CHARACTER_CROSSED_SWORDS' => "\u{2694}\u{FE0F}", 'CHARACTER_PISTOL' => "\u{1F52B}", 'CHARACTER_BOW_AND_ARROW' => "\u{1F3F9}", 'CHARACTER_SHIELD' => "\u{1F6E1}\u{FE0F}", 'CHARACTER_WRENCH' => "\u{1F527}", 'CHARACTER_NUT_AND_BOLT' => "\u{1F529}", 'CHARACTER_GEAR' => "\u{2699}\u{FE0F}", 'CHARACTER_CLAMP' => "\u{1F5DC}\u{FE0F}", 'CHARACTER_BALANCE_SCALE' => "\u{2696}\u{FE0F}", 'CHARACTER_LINK' => "\u{1F517}", 'CHARACTER_CHAINS' => "\u{26D3}\u{FE0F}", 'CHARACTER_TOOLBOX' => "\u{1F9F0}", 'CHARACTER_MAGNET' => "\u{1F9F2}", 'CHARACTER_ALEMBIC' => "\u{2697}\u{FE0F}", 'CHARACTER_TEST_TUBE' => "\u{1F9EA}", 'CHARACTER_PETRI_DISH' => "\u{1F9EB}", 'CHARACTER_DNA' => "\u{1F9EC}", 'CHARACTER_MICROSCOPE' => "\u{1F52C}", 'CHARACTER_TELESCOPE' => "\u{1F52D}", 'CHARACTER_SATELLITE_ANTENNA' => "\u{1F4E1}", 'CHARACTER_SYRINGE' => "\u{1F489}", 'CHARACTER_PILL' => "\u{1F48A}", 'CHARACTER_DOOR' => "\u{1F6AA}", 'CHARACTER_BED' => "\u{1F6CF}\u{FE0F}", 'CHARACTER_COUCH_AND_LAMP' => "\u{1F6CB}\u{FE0F}", 'CHARACTER_TOILET' => "\u{1F6BD}", 'CHARACTER_SHOWER' => "\u{1F6BF}", 'CHARACTER_BATHTUB' => "\u{1F6C1}", 'CHARACTER_LOTION_BOTTLE' => "\u{1F9F4}", 'CHARACTER_SAFETY_PIN' => "\u{1F9F7}", 'CHARACTER_BROOM' => "\u{1F9F9}", 'CHARACTER_BASKET' => "\u{1F9FA}", 'CHARACTER_ROLL_OF_PAPER' => "\u{1F9FB}", 'CHARACTER_SOAP' => "\u{1F9FC}", 'CHARACTER_SPONGE' => "\u{1F9FD}", 'CHARACTER_FIRE_EXTINGUISHER' => "\u{1F9EF}", 'CHARACTER_SHOPPING_CART' => "\u{1F6D2}", 'CHARACTER_CIGARETTE' => "\u{1F6AC}", 'CHARACTER_COFFIN' => "\u{26B0}\u{FE0F}", 'CHARACTER_FUNERAL_URN' => "\u{26B1}\u{FE0F}", 'CHARACTER_MOAI' => "\u{1F5FF}", 'CHARACTER_ATM_SIGN' => "\u{1F3E7}", 'CHARACTER_LITTER_IN_BIN_SIGN' => "\u{1F6AE}", 'CHARACTER_POTABLE_WATER' => "\u{1F6B0}", 'CHARACTER_WHEELCHAIR_SYMBOL' => "\u{267F}", 'CHARACTER_MEN_S_ROOM' => "\u{1F6B9}", 'CHARACTER_WOMEN_S_ROOM' => "\u{1F6BA}", 'CHARACTER_RESTROOM' => "\u{1F6BB}", 'CHARACTER_BABY_SYMBOL' => "\u{1F6BC}", 'CHARACTER_WATER_CLOSET' => "\u{1F6BE}", 'CHARACTER_PASSPORT_CONTROL' => "\u{1F6C2}", 'CHARACTER_CUSTOMS' => "\u{1F6C3}", 'CHARACTER_BAGGAGE_CLAIM' => "\u{1F6C4}", 'CHARACTER_LEFT_LUGGAGE' => "\u{1F6C5}", 'CHARACTER_WARNING' => "\u{26A0}\u{FE0F}", 'CHARACTER_CHILDREN_CROSSING' => "\u{1F6B8}", 'CHARACTER_NO_ENTRY' => "\u{26D4}", 'CHARACTER_PROHIBITED' => "\u{1F6AB}", 'CHARACTER_NO_BICYCLES' => "\u{1F6B3}", 'CHARACTER_NO_SMOKING' => "\u{1F6AD}", 'CHARACTER_NO_LITTERING' => "\u{1F6AF}", 'CHARACTER_NON_POTABLE_WATER' => "\u{1F6B1}", 'CHARACTER_NO_PEDESTRIANS' => "\u{1F6B7}", 'CHARACTER_NO_MOBILE_PHONES' => "\u{1F4F5}", 'CHARACTER_NO_ONE_UNDER_EIGHTEEN' => "\u{1F51E}", 'CHARACTER_RADIOACTIVE' => "\u{2622}\u{FE0F}", 'CHARACTER_BIOHAZARD' => "\u{2623}\u{FE0F}", 'CHARACTER_UP_ARROW' => "\u{2B06}\u{FE0F}", 'CHARACTER_UP_RIGHT_ARROW' => "\u{2197}\u{FE0F}", 'CHARACTER_RIGHT_ARROW' => "\u{27A1}\u{FE0F}", 'CHARACTER_DOWN_RIGHT_ARROW' => "\u{2198}\u{FE0F}", 'CHARACTER_DOWN_ARROW' => "\u{2B07}\u{FE0F}", 'CHARACTER_DOWN_LEFT_ARROW' => "\u{2199}\u{FE0F}", 'CHARACTER_LEFT_ARROW' => "\u{2B05}\u{FE0F}", 'CHARACTER_UP_LEFT_ARROW' => "\u{2196}\u{FE0F}", 'CHARACTER_UP_DOWN_ARROW' => "\u{2195}\u{FE0F}", 'CHARACTER_LEFT_RIGHT_ARROW' => "\u{2194}\u{FE0F}", 'CHARACTER_RIGHT_ARROW_CURVING_LEFT' => "\u{21A9}\u{FE0F}", 'CHARACTER_LEFT_ARROW_CURVING_RIGHT' => "\u{21AA}\u{FE0F}", 'CHARACTER_RIGHT_ARROW_CURVING_UP' => "\u{2934}\u{FE0F}", 'CHARACTER_RIGHT_ARROW_CURVING_DOWN' => "\u{2935}\u{FE0F}", 'CHARACTER_CLOCKWISE_VERTICAL_ARROWS' => "\u{1F503}", 'CHARACTER_COUNTERCLOCKWISE_ARROWS_BUTTON' => "\u{1F504}", 'CHARACTER_BACK_ARROW' => "\u{1F519}", 'CHARACTER_END_ARROW' => "\u{1F51A}", 'CHARACTER_ON_ARROW' => "\u{1F51B}", 'CHARACTER_SOON_ARROW' => "\u{1F51C}", 'CHARACTER_TOP_ARROW' => "\u{1F51D}", 'CHARACTER_PLACE_OF_WORSHIP' => "\u{1F6D0}", 'CHARACTER_ATOM_SYMBOL' => "\u{269B}\u{FE0F}", 'CHARACTER_OM' => "\u{1F549}\u{FE0F}", 'CHARACTER_STAR_OF_DAVID' => "\u{2721}\u{FE0F}", 'CHARACTER_WHEEL_OF_DHARMA' => "\u{2638}\u{FE0F}", 'CHARACTER_YIN_YANG' => "\u{262F}\u{FE0F}", 'CHARACTER_LATIN_CROSS' => "\u{271D}\u{FE0F}", 'CHARACTER_ORTHODOX_CROSS' => "\u{2626}\u{FE0F}", 'CHARACTER_STAR_AND_CRESCENT' => "\u{262A}\u{FE0F}", 'CHARACTER_PEACE_SYMBOL' => "\u{262E}\u{FE0F}", 'CHARACTER_MENORAH' => "\u{1F54E}", 'CHARACTER_DOTTED_SIX_POINTED_STAR' => "\u{1F52F}", 'CHARACTER_ARIES' => "\u{2648}", 'CHARACTER_TAURUS' => "\u{2649}", 'CHARACTER_GEMINI' => "\u{264A}", 'CHARACTER_CANCER' => "\u{264B}", 'CHARACTER_LEO' => "\u{264C}", 'CHARACTER_VIRGO' => "\u{264D}", 'CHARACTER_LIBRA' => "\u{264E}", 'CHARACTER_SCORPIO' => "\u{264F}", 'CHARACTER_SAGITTARIUS' => "\u{2650}", 'CHARACTER_CAPRICORN' => "\u{2651}", 'CHARACTER_AQUARIUS' => "\u{2652}", 'CHARACTER_PISCES' => "\u{2653}", 'CHARACTER_OPHIUCHUS' => "\u{26CE}", 'CHARACTER_SHUFFLE_TRACKS_BUTTON' => "\u{1F500}", 'CHARACTER_REPEAT_BUTTON' => "\u{1F501}", 'CHARACTER_REPEAT_SINGLE_BUTTON' => "\u{1F502}", 'CHARACTER_PLAY_BUTTON' => "\u{25B6}\u{FE0F}", 'CHARACTER_FAST_FORWARD_BUTTON' => "\u{23E9}", 'CHARACTER_NEXT_TRACK_BUTTON' => "\u{23ED}\u{FE0F}", 'CHARACTER_PLAY_OR_PAUSE_BUTTON' => "\u{23EF}\u{FE0F}", 'CHARACTER_REVERSE_BUTTON' => "\u{25C0}\u{FE0F}", 'CHARACTER_FAST_REVERSE_BUTTON' => "\u{23EA}", 'CHARACTER_LAST_TRACK_BUTTON' => "\u{23EE}\u{FE0F}", 'CHARACTER_UPWARDS_BUTTON' => "\u{1F53C}", 'CHARACTER_FAST_UP_BUTTON' => "\u{23EB}", 'CHARACTER_DOWNWARDS_BUTTON' => "\u{1F53D}", 'CHARACTER_FAST_DOWN_BUTTON' => "\u{23EC}", 'CHARACTER_PAUSE_BUTTON' => "\u{23F8}\u{FE0F}", 'CHARACTER_STOP_BUTTON' => "\u{23F9}\u{FE0F}", 'CHARACTER_RECORD_BUTTON' => "\u{23FA}\u{FE0F}", 'CHARACTER_EJECT_BUTTON' => "\u{23CF}\u{FE0F}", 'CHARACTER_CINEMA' => "\u{1F3A6}", 'CHARACTER_DIM_BUTTON' => "\u{1F505}", 'CHARACTER_BRIGHT_BUTTON' => "\u{1F506}", 'CHARACTER_ANTENNA_BARS' => "\u{1F4F6}", 'CHARACTER_VIBRATION_MODE' => "\u{1F4F3}", 'CHARACTER_MOBILE_PHONE_OFF' => "\u{1F4F4}", 'CHARACTER_FEMALE_SIGN' => "\u{2640}\u{FE0F}", 'CHARACTER_MALE_SIGN' => "\u{2642}\u{FE0F}", 'CHARACTER_MEDICAL_SYMBOL' => "\u{2695}\u{FE0F}", 'CHARACTER_INFINITY' => "\u{267E}\u{FE0F}", 'CHARACTER_RECYCLING_SYMBOL' => "\u{267B}\u{FE0F}", 'CHARACTER_FLEUR_DE_LIS' => "\u{269C}\u{FE0F}", 'CHARACTER_TRIDENT_EMBLEM' => "\u{1F531}", 'CHARACTER_NAME_BADGE' => "\u{1F4DB}", 'CHARACTER_JAPANESE_SYMBOL_FOR_BEGINNER' => "\u{1F530}", 'CHARACTER_HEAVY_LARGE_CIRCLE' => "\u{2B55}", 'CHARACTER_WHITE_HEAVY_CHECK_MARK' => "\u{2705}", 'CHARACTER_BALLOT_BOX_WITH_CHECK' => "\u{2611}\u{FE0F}", 'CHARACTER_HEAVY_CHECK_MARK' => "\u{2714}\u{FE0F}", 'CHARACTER_HEAVY_MULTIPLICATION_X' => "\u{2716}\u{FE0F}", 'CHARACTER_CROSS_MARK' => "\u{274C}", 'CHARACTER_CROSS_MARK_BUTTON' => "\u{274E}", 'CHARACTER_HEAVY_PLUS_SIGN' => "\u{2795}", 'CHARACTER_HEAVY_MINUS_SIGN' => "\u{2796}", 'CHARACTER_HEAVY_DIVISION_SIGN' => "\u{2797}", 'CHARACTER_CURLY_LOOP' => "\u{27B0}", 'CHARACTER_DOUBLE_CURLY_LOOP' => "\u{27BF}", 'CHARACTER_PART_ALTERNATION_MARK' => "\u{303D}\u{FE0F}", 'CHARACTER_EIGHT_SPOKED_ASTERISK' => "\u{2733}\u{FE0F}", 'CHARACTER_EIGHT_POINTED_STAR' => "\u{2734}\u{FE0F}", 'CHARACTER_SPARKLE' => "\u{2747}\u{FE0F}", 'CHARACTER_DOUBLE_EXCLAMATION_MARK' => "\u{203C}\u{FE0F}", 'CHARACTER_EXCLAMATION_QUESTION_MARK' => "\u{2049}\u{FE0F}", 'CHARACTER_QUESTION_MARK' => "\u{2753}", 'CHARACTER_WHITE_QUESTION_MARK' => "\u{2754}", 'CHARACTER_WHITE_EXCLAMATION_MARK' => "\u{2755}", 'CHARACTER_EXCLAMATION_MARK' => "\u{2757}", 'CHARACTER_WAVY_DASH' => "\u{3030}\u{FE0F}", 'CHARACTER_COPYRIGHT' => "\u{00A9}\u{FE0F}", 'CHARACTER_REGISTERED' => "\u{00AE}\u{FE0F}", 'CHARACTER_TRADE_MARK' => "\u{2122}\u{FE0F}", 'CHARACTER_KEYCAP_HASH' => "\u{0023}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_ASTERISK' => "\u{002A}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_0' => "\u{0030}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_1' => "\u{0031}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_2' => "\u{0032}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_3' => "\u{0033}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_4' => "\u{0034}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_5' => "\u{0035}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_6' => "\u{0036}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_7' => "\u{0037}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_8' => "\u{0038}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_9' => "\u{0039}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_10' => "\u{1F51F}", 'CHARACTER_HUNDRED_POINTS' => "\u{1F4AF}", 'CHARACTER_INPUT_LATIN_UPPERCASE' => "\u{1F520}", 'CHARACTER_INPUT_LATIN_LOWERCASE' => "\u{1F521}", 'CHARACTER_INPUT_NUMBERS' => "\u{1F522}", 'CHARACTER_INPUT_SYMBOLS' => "\u{1F523}", 'CHARACTER_INPUT_LATIN_LETTERS' => "\u{1F524}", 'CHARACTER_A_BUTTON_BLOOD_TYPE' => "\u{1F170}\u{FE0F}", 'CHARACTER_AB_BUTTON_BLOOD_TYPE' => "\u{1F18E}", 'CHARACTER_B_BUTTON_BLOOD_TYPE' => "\u{1F171}\u{FE0F}", 'CHARACTER_CL_BUTTON' => "\u{1F191}", 'CHARACTER_COOL_BUTTON' => "\u{1F192}", 'CHARACTER_FREE_BUTTON' => "\u{1F193}", 'CHARACTER_INFORMATION' => "\u{2139}\u{FE0F}", 'CHARACTER_ID_BUTTON' => "\u{1F194}", 'CHARACTER_CIRCLED_M' => "\u{24C2}\u{FE0F}", 'CHARACTER_NEW_BUTTON' => "\u{1F195}", 'CHARACTER_NG_BUTTON' => "\u{1F196}", 'CHARACTER_O_BUTTON_BLOOD_TYPE' => "\u{1F17E}\u{FE0F}", 'CHARACTER_OK_BUTTON' => "\u{1F197}", 'CHARACTER_P_BUTTON' => "\u{1F17F}\u{FE0F}", 'CHARACTER_SOS_BUTTON' => "\u{1F198}", 'CHARACTER_UP_BUTTON' => "\u{1F199}", 'CHARACTER_VS_BUTTON' => "\u{1F19A}", 'CHARACTER_JAPANESE_HERE_BUTTON' => "\u{1F201}", 'CHARACTER_JAPANESE_SERVICE_CHARGE_BUTTON' => "\u{1F202}\u{FE0F}", 'CHARACTER_JAPANESE_MONTHLY_AMOUNT_BUTTON' => "\u{1F237}\u{FE0F}", 'CHARACTER_JAPANESE_NOT_FREE_OF_CHARGE_BUTTON' => "\u{1F236}", 'CHARACTER_JAPANESE_RESERVED_BUTTON' => "\u{1F22F}", 'CHARACTER_JAPANESE_BARGAIN_BUTTON' => "\u{1F250}", 'CHARACTER_JAPANESE_DISCOUNT_BUTTON' => "\u{1F239}", 'CHARACTER_JAPANESE_FREE_OF_CHARGE_BUTTON' => "\u{1F21A}", 'CHARACTER_JAPANESE_PROHIBITED_BUTTON' => "\u{1F232}", 'CHARACTER_JAPANESE_ACCEPTABLE_BUTTON' => "\u{1F251}", 'CHARACTER_JAPANESE_APPLICATION_BUTTON' => "\u{1F238}", 'CHARACTER_JAPANESE_PASSING_GRADE_BUTTON' => "\u{1F234}", 'CHARACTER_JAPANESE_VACANCY_BUTTON' => "\u{1F233}", 'CHARACTER_JAPANESE_CONGRATULATIONS_BUTTON' => "\u{3297}\u{FE0F}", 'CHARACTER_JAPANESE_SECRET_BUTTON' => "\u{3299}\u{FE0F}", 'CHARACTER_JAPANESE_OPEN_FOR_BUSINESS_BUTTON' => "\u{1F23A}", 'CHARACTER_JAPANESE_NO_VACANCY_BUTTON' => "\u{1F235}", 'CHARACTER_BLACK_SMALL_SQUARE' => "\u{25AA}\u{FE0F}", 'CHARACTER_WHITE_SMALL_SQUARE' => "\u{25AB}\u{FE0F}", 'CHARACTER_WHITE_MEDIUM_SQUARE' => "\u{25FB}\u{FE0F}", 'CHARACTER_BLACK_MEDIUM_SQUARE' => "\u{25FC}\u{FE0F}", 'CHARACTER_WHITE_MEDIUM_SMALL_SQUARE' => "\u{25FD}", 'CHARACTER_BLACK_MEDIUM_SMALL_SQUARE' => "\u{25FE}", 'CHARACTER_BLACK_LARGE_SQUARE' => "\u{2B1B}", 'CHARACTER_WHITE_LARGE_SQUARE' => "\u{2B1C}", 'CHARACTER_LARGE_ORANGE_DIAMOND' => "\u{1F536}", 'CHARACTER_LARGE_BLUE_DIAMOND' => "\u{1F537}", 'CHARACTER_SMALL_ORANGE_DIAMOND' => "\u{1F538}", 'CHARACTER_SMALL_BLUE_DIAMOND' => "\u{1F539}", 'CHARACTER_RED_TRIANGLE_POINTED_UP' => "\u{1F53A}", 'CHARACTER_RED_TRIANGLE_POINTED_DOWN' => "\u{1F53B}", 'CHARACTER_DIAMOND_WITH_A_DOT' => "\u{1F4A0}", 'CHARACTER_RADIO_BUTTON' => "\u{1F518}", 'CHARACTER_BLACK_SQUARE_BUTTON' => "\u{1F532}", 'CHARACTER_WHITE_SQUARE_BUTTON' => "\u{1F533}", 'CHARACTER_WHITE_CIRCLE' => "\u{26AA}", 'CHARACTER_BLACK_CIRCLE' => "\u{26AB}", 'CHARACTER_RED_CIRCLE' => "\u{1F534}", 'CHARACTER_BLUE_CIRCLE' => "\u{1F535}", 'CHARACTER_CHEQUERED_FLAG' => "\u{1F3C1}", 'CHARACTER_TRIANGULAR_FLAG' => "\u{1F6A9}", 'CHARACTER_CROSSED_FLAGS' => "\u{1F38C}", 'CHARACTER_BLACK_FLAG' => "\u{1F3F4}", 'CHARACTER_WHITE_FLAG' => "\u{1F3F3}\u{FE0F}", 'CHARACTER_RAINBOW_FLAG' => "\u{1F3F3}\u{FE0F}\u{200D}\u{1F308}", 'CHARACTER_PIRATE_FLAG' => "\u{1F3F4}\u{200D}\u{2620}\u{FE0F}", 'CHARACTER_FLAGS_FOR_ASCENSION_ISLAND' => "\u{1F1E6}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_ANDORRA' => "\u{1F1E6}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_UNITED_ARAB_EMIRATES' => "\u{1F1E6}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_AFGHANISTAN' => "\u{1F1E6}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_ANTIGUA_AND_BARBUDA' => "\u{1F1E6}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_ANGUILLA' => "\u{1F1E6}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_ALBANIA' => "\u{1F1E6}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_ARMENIA' => "\u{1F1E6}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_ANGOLA' => "\u{1F1E6}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_ANTARCTICA' => "\u{1F1E6}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_ARGENTINA' => "\u{1F1E6}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_AMERICAN_SAMOA' => "\u{1F1E6}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_AUSTRIA' => "\u{1F1E6}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_AUSTRALIA' => "\u{1F1E6}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_ARUBA' => "\u{1F1E6}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_ALAND_ISLANDS' => "\u{1F1E6}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_AZERBAIJAN' => "\u{1F1E6}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_BOSNIA_AND_HERZEGOVINA' => "\u{1F1E7}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_BARBADOS' => "\u{1F1E7}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_BANGLADESH' => "\u{1F1E7}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_BELGIUM' => "\u{1F1E7}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_BURKINA_FASO' => "\u{1F1E7}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_BULGARIA' => "\u{1F1E7}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_BAHRAIN' => "\u{1F1E7}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_BURUNDI' => "\u{1F1E7}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_BENIN' => "\u{1F1E7}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_ST_BARTHELEMY' => "\u{1F1E7}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_BERMUDA' => "\u{1F1E7}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_BRUNEI' => "\u{1F1E7}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_BOLIVIA' => "\u{1F1E7}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_CARIBBEAN_NETHERLANDS' => "\u{1F1E7}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_BRAZIL' => "\u{1F1E7}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_BAHAMAS' => "\u{1F1E7}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_BHUTAN' => "\u{1F1E7}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_BOUVET_ISLAND' => "\u{1F1E7}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_BOTSWANA' => "\u{1F1E7}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_BELARUS' => "\u{1F1E7}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_BELIZE' => "\u{1F1E7}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_CANADA' => "\u{1F1E8}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_COCOS_KEELING_ISLANDS' => "\u{1F1E8}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_CONGO_KINSHASA' => "\u{1F1E8}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_CENTRAL_AFRICAN_REPUBLIC' => "\u{1F1E8}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_CONGO_BRAZZAVILLE' => "\u{1F1E8}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_SWITZERLAND' => "\u{1F1E8}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_COTE_D_IVOIRE' => "\u{1F1E8}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_COOK_ISLANDS' => "\u{1F1E8}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_CHILE' => "\u{1F1E8}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_CAMEROON' => "\u{1F1E8}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_CHINA' => "\u{1F1E8}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_COLOMBIA' => "\u{1F1E8}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_CLIPPERTON_ISLAND' => "\u{1F1E8}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_COSTA_RICA' => "\u{1F1E8}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_CUBA' => "\u{1F1E8}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_CAPE_VERDE' => "\u{1F1E8}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_CURACAO' => "\u{1F1E8}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_CHRISTMAS_ISLAND' => "\u{1F1E8}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_CYPRUS' => "\u{1F1E8}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_CZECHIA' => "\u{1F1E8}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_GERMANY' => "\u{1F1E9}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_DIEGO_GARCIA' => "\u{1F1E9}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_DJIBOUTI' => "\u{1F1E9}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_DENMARK' => "\u{1F1E9}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_DOMINICA' => "\u{1F1E9}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_DOMINICAN_REPUBLIC' => "\u{1F1E9}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_ALGERIA' => "\u{1F1E9}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_CEUTA_AND_MELILLA' => "\u{1F1EA}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_ECUADOR' => "\u{1F1EA}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_ESTONIA' => "\u{1F1EA}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_EGYPT' => "\u{1F1EA}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_WESTERN_SAHARA' => "\u{1F1EA}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_ERITREA' => "\u{1F1EA}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_SPAIN' => "\u{1F1EA}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_ETHIOPIA' => "\u{1F1EA}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_EUROPEAN_UNION' => "\u{1F1EA}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_FINLAND' => "\u{1F1EB}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_FIJI' => "\u{1F1EB}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_FALKLAND_ISLANDS' => "\u{1F1EB}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_MICRONESIA' => "\u{1F1EB}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_FAROE_ISLANDS' => "\u{1F1EB}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_FRANCE' => "\u{1F1EB}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_GABON' => "\u{1F1EC}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_UNITED_KINGDOM' => "\u{1F1EC}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_GRENADA' => "\u{1F1EC}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_GEORGIA' => "\u{1F1EC}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_FRENCH_GUIANA' => "\u{1F1EC}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_GUERNSEY' => "\u{1F1EC}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_GHANA' => "\u{1F1EC}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_GIBRALTAR' => "\u{1F1EC}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_GREENLAND' => "\u{1F1EC}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_GAMBIA' => "\u{1F1EC}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_GUINEA' => "\u{1F1EC}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_GUADELOUPE' => "\u{1F1EC}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_EQUATORIAL_GUINEA' => "\u{1F1EC}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_GREECE' => "\u{1F1EC}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_SOUTH_GEORGIA_AND_SOUTH_SANDWICH_ISLANDS' => "\u{1F1EC}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_GUATEMALA' => "\u{1F1EC}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_GUAM' => "\u{1F1EC}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_GUINEA_BISSAU' => "\u{1F1EC}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_GUYANA' => "\u{1F1EC}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_HONG_KONG_SAR_CHINA' => "\u{1F1ED}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_HEARD_AND_MCDONALD_ISLANDS' => "\u{1F1ED}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_HONDURAS' => "\u{1F1ED}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_CROATIA' => "\u{1F1ED}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_HAITI' => "\u{1F1ED}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_HUNGARY' => "\u{1F1ED}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_CANARY_ISLANDS' => "\u{1F1EE}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_INDONESIA' => "\u{1F1EE}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_IRELAND' => "\u{1F1EE}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_ISRAEL' => "\u{1F1EE}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_ISLE_OF_MAN' => "\u{1F1EE}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_INDIA' => "\u{1F1EE}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_BRITISH_INDIAN_OCEAN_TERRITORY' => "\u{1F1EE}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_IRAQ' => "\u{1F1EE}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_IRAN' => "\u{1F1EE}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_ICELAND' => "\u{1F1EE}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_ITALY' => "\u{1F1EE}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_JERSEY' => "\u{1F1EF}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_JAMAICA' => "\u{1F1EF}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_JORDAN' => "\u{1F1EF}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_JAPAN' => "\u{1F1EF}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_KENYA' => "\u{1F1F0}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_KYRGYZSTAN' => "\u{1F1F0}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_CAMBODIA' => "\u{1F1F0}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_KIRIBATI' => "\u{1F1F0}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_COMOROS' => "\u{1F1F0}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_ST_KITTS_AND_NEVIS' => "\u{1F1F0}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_NORTH_KOREA' => "\u{1F1F0}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_SOUTH_KOREA' => "\u{1F1F0}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_KUWAIT' => "\u{1F1F0}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_CAYMAN_ISLANDS' => "\u{1F1F0}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_KAZAKHSTAN' => "\u{1F1F0}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_LAOS' => "\u{1F1F1}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_LEBANON' => "\u{1F1F1}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_ST_LUCIA' => "\u{1F1F1}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_LIECHTENSTEIN' => "\u{1F1F1}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_SRI_LANKA' => "\u{1F1F1}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_LIBERIA' => "\u{1F1F1}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_LESOTHO' => "\u{1F1F1}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_LITHUANIA' => "\u{1F1F1}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_LUXEMBOURG' => "\u{1F1F1}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_LATVIA' => "\u{1F1F1}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_LIBYA' => "\u{1F1F1}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_MOROCCO' => "\u{1F1F2}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_MONACO' => "\u{1F1F2}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_MOLDOVA' => "\u{1F1F2}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_MONTENEGRO' => "\u{1F1F2}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_ST_MARTIN' => "\u{1F1F2}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_MADAGASCAR' => "\u{1F1F2}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_MARSHALL_ISLANDS' => "\u{1F1F2}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_MACEDONIA' => "\u{1F1F2}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_MALI' => "\u{1F1F2}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_MYANMAR_BURMA' => "\u{1F1F2}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_MONGOLIA' => "\u{1F1F2}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_MACAU_SAR_CHINA' => "\u{1F1F2}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_NORTHERN_MARIANA_ISLANDS' => "\u{1F1F2}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_MARTINIQUE' => "\u{1F1F2}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_MAURITANIA' => "\u{1F1F2}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_MONTSERRAT' => "\u{1F1F2}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_MALTA' => "\u{1F1F2}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_MAURITIUS' => "\u{1F1F2}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_MALDIVES' => "\u{1F1F2}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_MALAWI' => "\u{1F1F2}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_MEXICO' => "\u{1F1F2}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_MALAYSIA' => "\u{1F1F2}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_MOZAMBIQUE' => "\u{1F1F2}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_NAMIBIA' => "\u{1F1F3}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_NEW_CALEDONIA' => "\u{1F1F3}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_NIGER' => "\u{1F1F3}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_NORFOLK_ISLAND' => "\u{1F1F3}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_NIGERIA' => "\u{1F1F3}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_NICARAGUA' => "\u{1F1F3}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_NETHERLANDS' => "\u{1F1F3}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_NORWAY' => "\u{1F1F3}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_NEPAL' => "\u{1F1F3}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_NAURU' => "\u{1F1F3}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_NIUE' => "\u{1F1F3}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_NEW_ZEALAND' => "\u{1F1F3}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_OMAN' => "\u{1F1F4}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_PANAMA' => "\u{1F1F5}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_PERU' => "\u{1F1F5}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_FRENCH_POLYNESIA' => "\u{1F1F5}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_PAPUA_NEW_GUINEA' => "\u{1F1F5}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_PHILIPPINES' => "\u{1F1F5}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_PAKISTAN' => "\u{1F1F5}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_POLAND' => "\u{1F1F5}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_ST_PIERRE_AND_MIQUELON' => "\u{1F1F5}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_PITCAIRN_ISLANDS' => "\u{1F1F5}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_PUERTO_RICO' => "\u{1F1F5}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_PALESTINIAN_TERRITORIES' => "\u{1F1F5}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_PORTUGAL' => "\u{1F1F5}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_PALAU' => "\u{1F1F5}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_PARAGUAY' => "\u{1F1F5}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_QATAR' => "\u{1F1F6}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_REUNION' => "\u{1F1F7}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_ROMANIA' => "\u{1F1F7}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_SERBIA' => "\u{1F1F7}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_RUSSIA' => "\u{1F1F7}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_RWANDA' => "\u{1F1F7}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_SAUDI_ARABIA' => "\u{1F1F8}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_SOLOMON_ISLANDS' => "\u{1F1F8}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_SEYCHELLES' => "\u{1F1F8}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_SUDAN' => "\u{1F1F8}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_SWEDEN' => "\u{1F1F8}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_SINGAPORE' => "\u{1F1F8}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_ST_HELENA' => "\u{1F1F8}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_SLOVENIA' => "\u{1F1F8}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_SVALBARD_AND_JAN_MAYEN' => "\u{1F1F8}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_SLOVAKIA' => "\u{1F1F8}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_SIERRA_LEONE' => "\u{1F1F8}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_SAN_MARINO' => "\u{1F1F8}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_SENEGAL' => "\u{1F1F8}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_SOMALIA' => "\u{1F1F8}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_SURINAME' => "\u{1F1F8}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_SOUTH_SUDAN' => "\u{1F1F8}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_SAO_TOME_AND_PRINCIPE' => "\u{1F1F8}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_EL_SALVADOR' => "\u{1F1F8}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_SINT_MAARTEN' => "\u{1F1F8}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_SYRIA' => "\u{1F1F8}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_SWAZILAND' => "\u{1F1F8}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_TRISTAN_DA_CUNHA' => "\u{1F1F9}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_TURKS_AND_CAICOS_ISLANDS' => "\u{1F1F9}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_CHAD' => "\u{1F1F9}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_FRENCH_SOUTHERN_TERRITORIES' => "\u{1F1F9}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_TOGO' => "\u{1F1F9}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_THAILAND' => "\u{1F1F9}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_TAJIKISTAN' => "\u{1F1F9}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_TOKELAU' => "\u{1F1F9}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_TIMOR_LESTE' => "\u{1F1F9}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_TURKMENISTAN' => "\u{1F1F9}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_TUNISIA' => "\u{1F1F9}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_TONGA' => "\u{1F1F9}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_TURKEY' => "\u{1F1F9}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_TRINIDAD_AND_TOBAGO' => "\u{1F1F9}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_TUVALU' => "\u{1F1F9}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_TAIWAN' => "\u{1F1F9}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_TANZANIA' => "\u{1F1F9}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_UKRAINE' => "\u{1F1FA}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_UGANDA' => "\u{1F1FA}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_US_OUTLYING_ISLANDS' => "\u{1F1FA}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_UNITED_NATIONS' => "\u{1F1FA}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_UNITED_STATES' => "\u{1F1FA}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_URUGUAY' => "\u{1F1FA}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_UZBEKISTAN' => "\u{1F1FA}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_VATICAN_CITY' => "\u{1F1FB}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_ST_VINCENT_AND_GRENADINES' => "\u{1F1FB}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_VENEZUELA' => "\u{1F1FB}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_BRITISH_VIRGIN_ISLANDS' => "\u{1F1FB}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_US_VIRGIN_ISLANDS' => "\u{1F1FB}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_VIETNAM' => "\u{1F1FB}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_VANUATU' => "\u{1F1FB}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_WALLIS_AND_FUTUNA' => "\u{1F1FC}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_SAMOA' => "\u{1F1FC}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_KOSOVO' => "\u{1F1FD}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_YEMEN' => "\u{1F1FE}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_MAYOTTE' => "\u{1F1FE}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_SOUTH_AFRICA' => "\u{1F1FF}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_ZAMBIA' => "\u{1F1FF}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_ZIMBABWE' => "\u{1F1FF}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_ENGLAND' => "\u{1F3F4}\u{E0067}\u{E0062}\u{E0065}\u{E006E}\u{E0067}\u{E007F}", 'CHARACTER_FLAGS_FOR_SCOTLAND' => "\u{1F3F4}\u{E0067}\u{E0062}\u{E0073}\u{E0063}\u{E0074}\u{E007F}", 'CHARACTER_FLAGS_FOR_WALES' => "\u{1F3F4}\u{E0067}\u{E0062}\u{E0077}\u{E006C}\u{E0073}\u{E007F}"]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/encodings.php b/includes/libraries/anti-xss-master/src/voku/helper/data/encodings.php new file mode 100644 index 000000000..87d907048 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/encodings.php @@ -0,0 +1 @@ +<?php return ['ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', 'WINDOWS-1251', 'WINDOWS-1252', 'WINDOWS-1254', 'CP932', 'CP936', 'CP950', 'CP866', 'CP850', 'CP51932', 'CP50220', 'CP50221', 'CP50222', 'ISO-2022-JP', 'ISO-2022-KR', 'JIS', 'JIS-ms', 'EUC-CN', 'EUC-JP', 'ANSI_X3.4-1968', 'ANSI_X3.4-1986', 'ASCII', 'CP367', 'IBM367', 'ISO-IR-6', 'ISO646-US', 'ISO_646.IRV:1991', 'US', 'US-ASCII', 'CSASCII', 'UTF-8', 'ISO-10646-UCS-2', 'UCS-2', 'CSUNICODE', 'UCS-2BE', 'UNICODE-1-1', 'UNICODEBIG', 'CSUNICODE11', 'UCS-2LE', 'UNICODELITTLE', 'ISO-10646-UCS-4', 'UCS-4', 'CSUCS4', 'UCS-4BE', 'UCS-4LE', 'UTF-16', 'UTF-16BE', 'UTF-16LE', 'UTF-32', 'UTF-32BE', 'UTF-32LE', 'UNICODE-1-1-UTF-7', 'UTF-7', 'CSUNICODE11UTF7', 'UCS-2-INTERNAL', 'UCS-2-SWAPPED', 'UCS-4-INTERNAL', 'UCS-4-SWAPPED', 'C99', 'JAVA', 'CP819', 'IBM819', 'ISO-IR-100', 'ISO8859-1', 'ISO_8859-1', 'ISO_8859-1:1987', 'L1', 'LATIN1', 'CSISOLATIN1', 'ISO-IR-101', 'ISO8859-2', 'ISO_8859-2', 'ISO_8859-2:1987', 'L2', 'LATIN2', 'CSISOLATIN2', 'ISO-IR-109', 'ISO8859-3', 'ISO_8859-3', 'ISO_8859-3:1988', 'L3', 'LATIN3', 'CSISOLATIN3', 'ISO-IR-110', 'ISO8859-4', 'ISO_8859-4', 'ISO_8859-4:1988', 'L4', 'LATIN4', 'CSISOLATIN4', 'CYRILLIC', 'ISO-IR-144', 'ISO8859-5', 'ISO_8859-5', 'ISO_8859-5:1988', 'CSISOLATINCYRILLIC', 'ARABIC', 'ASMO-708', 'ECMA-114', 'ISO-IR-127', 'ISO8859-6', 'ISO_8859-6', 'ISO_8859-6:1987', 'CSISOLATINARABIC', 'ECMA-118', 'ELOT_928', 'GREEK', 'GREEK8', 'ISO-IR-126', 'ISO8859-7', 'ISO_8859-7', 'ISO_8859-7:1987', 'ISO_8859-7:2003', 'CSISOLATINGREEK', 'HEBREW', 'ISO-IR-138', 'ISO8859-8', 'ISO_8859-8', 'ISO_8859-8:1988', 'CSISOLATINHEBREW', 'ISO-IR-148', 'ISO8859-9', 'ISO_8859-9', 'ISO_8859-9:1989', 'L5', 'LATIN5', 'CSISOLATIN5', 'ISO-IR-157', 'ISO8859-10', 'ISO_8859-10', 'ISO_8859-10:1992', 'L6', 'LATIN6', 'CSISOLATIN6', 'ISO-8859-11', 'ISO8859-11', 'ISO_8859-11', 'ISO-IR-179', 'ISO8859-13', 'ISO_8859-13', 'L7', 'LATIN7', 'ISO-CELTIC', 'ISO-IR-199', 'ISO8859-14', 'ISO_8859-14', 'ISO_8859-14:1998', 'L8', 'LATIN8', 'ISO-IR-203', 'ISO8859-15', 'ISO_8859-15', 'ISO_8859-15:1998', 'LATIN-9', 'ISO-IR-226', 'ISO8859-16', 'ISO_8859-16', 'ISO_8859-16:2001', 'L10', 'LATIN10', 'KOI8-R', 'CSKOI8R', 'KOI8-U', 'KOI8-RU', 'CP1250', 'MS-EE', 'WINDOWS-1250', 'CP1251', 'MS-CYRL', 'CP1252', 'MS-ANSI', 'CP1253', 'MS-GREEK', 'WINDOWS-1253', 'CP1254', 'MS-TURK', 'CP1255', 'MS-HEBR', 'WINDOWS-1255', 'CP1256', 'MS-ARAB', 'WINDOWS-1256', 'CP1257', 'WINBALTRIM', 'WINDOWS-1257', 'CP1258', 'WINDOWS-1258', '850', 'IBM850', 'CSPC850MULTILINGUAL', '862', 'CP862', 'IBM862', 'CSPC862LATINHEBREW', '866', 'IBM866', 'CSIBM866', 'MAC', 'MACINTOSH', 'MACROMAN', 'CSMACINTOSH', 'MACCENTRALEUROPE', 'MACICELAND', 'MACCROATIAN', 'MACROMANIA', 'MACCYRILLIC', 'MACUKRAINE', 'MACGREEK', 'MACTURKISH', 'MACHEBREW', 'MACARABIC', 'MACTHAI', 'HP-ROMAN8', 'R8', 'ROMAN8', 'CSHPROMAN8', 'NEXTSTEP', 'ARMSCII-8', 'GEORGIAN-ACADEMY', 'GEORGIAN-PS', 'KOI8-T', 'CP154', 'CYRILLIC-ASIAN', 'PT154', 'PTCP154', 'CSPTCP154', 'KZ-1048', 'RK1048', 'STRK1048-2002', 'CSKZ1048', 'MULELAO-1', 'CP1133', 'IBM-CP1133', 'ISO-IR-166', 'TIS-620', 'TIS620', 'TIS620-0', 'TIS620.2529-1', 'TIS620.2533-0', 'TIS620.2533-1', 'CP874', 'WINDOWS-874', 'VISCII', 'VISCII1.1-1', 'CSVISCII', 'TCVN', 'TCVN-5712', 'TCVN5712-1', 'TCVN5712-1:1993', 'ISO-IR-14', 'ISO646-JP', 'JIS_C6220-1969-RO', 'JP', 'CSISO14JISC6220RO', 'JISX0201-1976', 'JIS_X0201', 'X0201', 'CSHALFWIDTHKATAKANA', 'ISO-IR-87', 'JIS0208', 'JIS_C6226-1983', 'JIS_X0208', 'JIS_X0208-1983', 'JIS_X0208-1990', 'X0208', 'CSISO87JISX0208', 'ISO-IR-159', 'JIS_X0212', 'JIS_X0212-1990', 'JIS_X0212.1990-0', 'X0212', 'CSISO159JISX02121990', 'CN', 'GB_1988-80', 'ISO-IR-57', 'ISO646-CN', 'CSISO57GB1988', 'CHINESE', 'GB_2312-80', 'ISO-IR-58', 'CSISO58GB231280', 'CN-GB-ISOIR165', 'ISO-IR-165', 'ISO-IR-149', 'KOREAN', 'KSC_5601', 'KS_C_5601-1987', 'KS_C_5601-1989', 'CSKSC56011987', 'EUCJP', 'EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE', 'CSEUCPKDFMTJAPANESE', 'MS_KANJI', 'SHIFT-JIS', 'SHIFT_JIS', 'SJIS', 'CSSHIFTJIS', 'CSISO2022JP', 'ISO-2022-JP-1', 'ISO-2022-JP-2', 'CSISO2022JP2', 'CN-GB', 'EUCCN', 'GB2312', 'CSGB2312', 'GBK', 'MS936', 'WINDOWS-936', 'GB18030', 'ISO-2022-CN', 'CSISO2022CN', 'ISO-2022-CN-EXT', 'HZ', 'HZ-GB-2312', 'EUC-TW', 'EUCTW', 'CSEUCTW', 'BIG-5', 'BIG-FIVE', 'BIG5', 'BIGFIVE', 'CN-BIG5', 'CSBIG5', 'BIG5-HKSCS:1999', 'BIG5-HKSCS:2001', 'BIG5-HKSCS', 'BIG5-HKSCS:2004', 'BIG5HKSCS', 'EUC-KR', 'EUCKR', 'CSEUCKR', 'CP949', 'UHC', 'CP1361', 'JOHAB', 'CSISO2022KR', 'CP856', 'CP922', 'CP943', 'CP1046', 'CP1124', 'CP1129', 'CP1161', 'IBM-1161', 'IBM1161', 'CSIBM1161', 'CP1162', 'IBM-1162', 'IBM1162', 'CSIBM1162', 'CP1163', 'IBM-1163', 'IBM1163', 'CSIBM1163', 'DEC-KANJI', 'DEC-HANYU', '437', 'CP437', 'IBM437', 'CSPC8CODEPAGE437', 'CP737', 'CP775', 'IBM775', 'CSPC775BALTIC', '852', 'CP852', 'IBM852', 'CSPCP852', 'CP853', '855', 'CP855', 'IBM855', 'CSIBM855', '857', 'CP857', 'IBM857', 'CSIBM857', 'CP858', '860', 'CP860', 'IBM860', 'CSIBM860', '861', 'CP-IS', 'CP861', 'IBM861', 'CSIBM861', '863', 'CP863', 'IBM863', 'CSIBM863', 'CP864', 'IBM864', 'CSIBM864', '865', 'CP865', 'IBM865', 'CSIBM865', '869', 'CP-GR', 'CP869', 'IBM869', 'CSIBM869', 'CP1125', 'EUC-JISX0213', 'SHIFT_JISX0213', 'ISO-2022-JP-3', 'BIG5-2003', 'ISO-IR-230', 'TDS565', 'ATARI', 'ATARIST', 'RISCOS-LATIN1']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/ord.php b/includes/libraries/anti-xss-master/src/voku/helper/data/ord.php new file mode 100644 index 000000000..8f8f19a7a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/ord.php @@ -0,0 +1 @@ +<?php return ['' => 0, "\x00" => 0, "\x01" => 1, "\x02" => 2, "\x03" => 3, "\x04" => 4, "\x05" => 5, "\x06" => 6, "\x07" => 7, "\x08" => 8, "\x09" => 9, "\x0A" => 10, "\x0B" => 11, "\x0C" => 12, "\x0D" => 13, "\x0E" => 14, "\x0F" => 15, "\x10" => 16, "\x11" => 17, "\x12" => 18, "\x13" => 19, "\x14" => 20, "\x15" => 21, "\x16" => 22, "\x17" => 23, "\x18" => 24, "\x19" => 25, "\x1A" => 26, "\x1B" => 27, "\x1C" => 28, "\x1D" => 29, "\x1E" => 30, "\x1F" => 31, "\x20" => 32, "\x21" => 33, "\x22" => 34, "\x23" => 35, "\x24" => 36, "\x25" => 37, "\x26" => 38, "\x27" => 39, "\x28" => 40, "\x29" => 41, "\x2A" => 42, "\x2B" => 43, "\x2C" => 44, "\x2D" => 45, "\x2E" => 46, "\x2F" => 47, "\x30" => 48, "\x31" => 49, "\x32" => 50, "\x33" => 51, "\x34" => 52, "\x35" => 53, "\x36" => 54, "\x37" => 55, "\x38" => 56, "\x39" => 57, "\x3A" => 58, "\x3B" => 59, "\x3C" => 60, "\x3D" => 61, "\x3E" => 62, "\x3F" => 63, "\x40" => 64, "\x41" => 65, "\x42" => 66, "\x43" => 67, "\x44" => 68, "\x45" => 69, "\x46" => 70, "\x47" => 71, "\x48" => 72, "\x49" => 73, "\x4A" => 74, "\x4B" => 75, "\x4C" => 76, "\x4D" => 77, "\x4E" => 78, "\x4F" => 79, "\x50" => 80, "\x51" => 81, "\x52" => 82, "\x53" => 83, "\x54" => 84, "\x55" => 85, "\x56" => 86, "\x57" => 87, "\x58" => 88, "\x59" => 89, "\x5A" => 90, "\x5B" => 91, "\x5C" => 92, "\x5D" => 93, "\x5E" => 94, "\x5F" => 95, "\x60" => 96, "\x61" => 97, "\x62" => 98, "\x63" => 99, "\x64" => 100, "\x65" => 101, "\x66" => 102, "\x67" => 103, "\x68" => 104, "\x69" => 105, "\x6A" => 106, "\x6B" => 107, "\x6C" => 108, "\x6D" => 109, "\x6E" => 110, "\x6F" => 111, "\x70" => 112, "\x71" => 113, "\x72" => 114, "\x73" => 115, "\x74" => 116, "\x75" => 117, "\x76" => 118, "\x77" => 119, "\x78" => 120, "\x79" => 121, "\x7A" => 122, "\x7B" => 123, "\x7C" => 124, "\x7D" => 125, "\x7E" => 126, "\x7F" => 127, "\x80" => 128, "\x81" => 129, "\x82" => 130, "\x83" => 131, "\x84" => 132, "\x85" => 133, "\x86" => 134, "\x87" => 135, "\x88" => 136, "\x89" => 137, "\x8A" => 138, "\x8B" => 139, "\x8C" => 140, "\x8D" => 141, "\x8E" => 142, "\x8F" => 143, "\x90" => 144, "\x91" => 145, "\x92" => 146, "\x93" => 147, "\x94" => 148, "\x95" => 149, "\x96" => 150, "\x97" => 151, "\x98" => 152, "\x99" => 153, "\x9A" => 154, "\x9B" => 155, "\x9C" => 156, "\x9D" => 157, "\x9E" => 158, "\x9F" => 159, "\xA0" => 160, "\xA1" => 161, "\xA2" => 162, "\xA3" => 163, "\xA4" => 164, "\xA5" => 165, "\xA6" => 166, "\xA7" => 167, "\xA8" => 168, "\xA9" => 169, "\xAA" => 170, "\xAB" => 171, "\xAC" => 172, "\xAD" => 173, "\xAE" => 174, "\xAF" => 175, "\xB0" => 176, "\xB1" => 177, "\xB2" => 178, "\xB3" => 179, "\xB4" => 180, "\xB5" => 181, "\xB6" => 182, "\xB7" => 183, "\xB8" => 184, "\xB9" => 185, "\xBA" => 186, "\xBB" => 187, "\xBC" => 188, "\xBD" => 189, "\xBE" => 190, "\xBF" => 191, "\xC0" => 192, "\xC1" => 193, "\xC2" => 194, "\xC3" => 195, "\xC4" => 196, "\xC5" => 197, "\xC6" => 198, "\xC7" => 199, "\xC8" => 200, "\xC9" => 201, "\xCA" => 202, "\xCB" => 203, "\xCC" => 204, "\xCD" => 205, "\xCE" => 206, "\xCF" => 207, "\xD0" => 208, "\xD1" => 209, "\xD2" => 210, "\xD3" => 211, "\xD4" => 212, "\xD5" => 213, "\xD6" => 214, "\xD7" => 215, "\xD8" => 216, "\xD9" => 217, "\xDA" => 218, "\xDB" => 219, "\xDC" => 220, "\xDD" => 221, "\xDE" => 222, "\xDF" => 223, "\xE0" => 224, "\xE1" => 225, "\xE2" => 226, "\xE3" => 227, "\xE4" => 228, "\xE5" => 229, "\xE6" => 230, "\xE7" => 231, "\xE8" => 232, "\xE9" => 233, "\xEA" => 234, "\xEB" => 235, "\xEC" => 236, "\xED" => 237, "\xEE" => 238, "\xEF" => 239, "\xF0" => 240, "\xF1" => 241, "\xF2" => 242, "\xF3" => 243, "\xF4" => 244, "\xF5" => 245, "\xF6" => 246, "\xF7" => 247, "\xF8" => 248, "\xF9" => 249, "\xFA" => 250, "\xFB" => 251, "\xFC" => 252, "\xFD" => 253, "\xFE" => 254, "\xFF" => 255]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/transliterator_list.php b/includes/libraries/anti-xss-master/src/voku/helper/data/transliterator_list.php new file mode 100644 index 000000000..91ddf13c6 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/transliterator_list.php @@ -0,0 +1 @@ +<?php return [0 => 'ASCII-Latin', 1 => 'Accents-Any', 2 => 'Amharic-Latin/BGN', 3 => 'Any-Accents', 4 => 'Any-Publishing', 5 => 'Arab-Latn', 6 => 'Arabic-Latin', 7 => 'Arabic-Latin/BGN', 8 => 'Armenian-Latin', 9 => 'Armenian-Latin/BGN', 10 => 'Armn-Latn', 11 => 'Azerbaijani-Latin/BGN', 12 => 'Belarusian-Latin/BGN', 13 => 'Beng-Arab', 14 => 'Beng-Deva', 15 => 'Beng-Gujr', 16 => 'Beng-Guru', 17 => 'Beng-Knda', 18 => 'Beng-Latn', 19 => 'Beng-Mlym', 20 => 'Beng-Orya', 21 => 'Beng-Taml', 22 => 'Beng-Telu', 23 => 'Beng-ur', 24 => 'Bengali-Arabic', 25 => 'Bengali-Devanagari', 26 => 'Bengali-Gujarati', 27 => 'Bengali-Gurmukhi', 28 => 'Bengali-Kannada', 29 => 'Bengali-Latin', 30 => 'Bengali-Malayalam', 31 => 'Bengali-Oriya', 32 => 'Bengali-Tamil', 33 => 'Bengali-Telugu', 34 => 'Bopo-Latn', 35 => 'Bopomofo-Latin', 36 => 'Bulgarian-Latin/BGN', 37 => 'Cyrillic-Latin', 38 => 'Cyrl-Latn', 39 => 'Deva-Arab', 40 => 'Deva-Beng', 41 => 'Deva-Gujr', 42 => 'Deva-Guru', 43 => 'Deva-Knda', 44 => 'Deva-Latn', 45 => 'Deva-Mlym', 46 => 'Deva-Orya', 47 => 'Deva-Taml', 48 => 'Deva-Telu', 49 => 'Deva-ur', 50 => 'Devanagari-Arabic', 51 => 'Devanagari-Bengali', 52 => 'Devanagari-Gujarati', 53 => 'Devanagari-Gurmukhi', 54 => 'Devanagari-Kannada', 55 => 'Devanagari-Latin', 56 => 'Devanagari-Malayalam', 57 => 'Devanagari-Oriya', 58 => 'Devanagari-Tamil', 59 => 'Devanagari-Telugu', 60 => 'Digit-Tone', 61 => 'Fullwidth-Halfwidth', 62 => 'Geor-Latn', 63 => 'Georgian-Latin', 64 => 'Georgian-Latin/BGN', 65 => 'Greek-Latin', 66 => 'Greek-Latin/BGN', 67 => 'Greek-Latin/UNGEGN', 68 => 'Grek-Latn', 69 => 'Grek-Latn/UNGEGN', 70 => 'Gujarati-Arabic', 71 => 'Gujarati-Bengali', 72 => 'Gujarati-Devanagari', 73 => 'Gujarati-Gurmukhi', 74 => 'Gujarati-Kannada', 75 => 'Gujarati-Latin', 76 => 'Gujarati-Malayalam', 77 => 'Gujarati-Oriya', 78 => 'Gujarati-Tamil', 79 => 'Gujarati-Telugu', 80 => 'Gujr-Arab', 81 => 'Gujr-Beng', 82 => 'Gujr-Deva', 83 => 'Gujr-Guru', 84 => 'Gujr-Knda', 85 => 'Gujr-Latn', 86 => 'Gujr-Mlym', 87 => 'Gujr-Orya', 88 => 'Gujr-Taml', 89 => 'Gujr-Telu', 90 => 'Gujr-ur', 91 => 'Gurmukhi-Arabic', 92 => 'Gurmukhi-Bengali', 93 => 'Gurmukhi-Devanagari', 94 => 'Gurmukhi-Gujarati', 95 => 'Gurmukhi-Kannada', 96 => 'Gurmukhi-Latin', 97 => 'Gurmukhi-Malayalam', 98 => 'Gurmukhi-Oriya', 99 => 'Gurmukhi-Tamil', 100 => 'Gurmukhi-Telugu', 101 => 'Guru-Arab', 102 => 'Guru-Beng', 103 => 'Guru-Deva', 104 => 'Guru-Gujr', 105 => 'Guru-Knda', 106 => 'Guru-Latn', 107 => 'Guru-Mlym', 108 => 'Guru-Orya', 109 => 'Guru-Taml', 110 => 'Guru-Telu', 111 => 'Guru-ur', 112 => 'Halfwidth-Fullwidth', 113 => 'Han-Latin', 114 => 'Han-Latin/Names', 115 => 'Hang-Latn', 116 => 'Hangul-Latin', 117 => 'Hani-Latn', 118 => 'Hans-Hant', 119 => 'Hant-Hans', 120 => 'Hebr-Latn', 121 => 'Hebrew-Latin', 122 => 'Hebrew-Latin/BGN', 123 => 'Hira-Kana', 124 => 'Hira-Latn', 125 => 'Hiragana-Katakana', 126 => 'Hiragana-Latin', 127 => 'IPA-XSampa', 128 => 'Jamo-Latin', 129 => 'Jamo-Latn', 130 => 'Kana-Hira', 131 => 'Kana-Latn', 132 => 'Kannada-Arabic', 133 => 'Kannada-Bengali', 134 => 'Kannada-Devanagari', 135 => 'Kannada-Gujarati', 136 => 'Kannada-Gurmukhi', 137 => 'Kannada-Latin', 138 => 'Kannada-Malayalam', 139 => 'Kannada-Oriya', 140 => 'Kannada-Tamil', 141 => 'Kannada-Telugu', 142 => 'Katakana-Hiragana', 143 => 'Katakana-Latin', 144 => 'Katakana-Latin/BGN', 145 => 'Kazakh-Latin/BGN', 146 => 'Kirghiz-Latin/BGN', 147 => 'Knda-Arab', 148 => 'Knda-Beng', 149 => 'Knda-Deva', 150 => 'Knda-Gujr', 151 => 'Knda-Guru', 152 => 'Knda-Latn', 153 => 'Knda-Mlym', 154 => 'Knda-Orya', 155 => 'Knda-Taml', 156 => 'Knda-Telu', 157 => 'Knda-ur', 158 => 'Korean-Latin/BGN', 159 => 'Latin-ASCII', 160 => 'Latin-Arabic', 161 => 'Latin-Armenian', 162 => 'Latin-Bengali', 163 => 'Latin-Bopomofo', 164 => 'Latin-Cyrillic', 165 => 'Latin-Devanagari', 166 => 'Latin-Georgian', 167 => 'Latin-Greek', 168 => 'Latin-Greek/UNGEGN', 169 => 'Latin-Gujarati', 170 => 'Latin-Gurmukhi', 171 => 'Latin-Hangul', 172 => 'Latin-Hebrew', 173 => 'Latin-Hiragana', 174 => 'Latin-Jamo', 175 => 'Latin-Kannada', 176 => 'Latin-Katakana', 177 => 'Latin-Malayalam', 178 => 'Latin-NumericPinyin', 179 => 'Latin-Oriya', 180 => 'Latin-Russian/BGN', 181 => 'Latin-Syriac', 182 => 'Latin-Tamil', 183 => 'Latin-Telugu', 184 => 'Latin-Thaana', 185 => 'Latin-Thai', 186 => 'Latn-Arab', 187 => 'Latn-Armn', 188 => 'Latn-Beng', 189 => 'Latn-Bopo', 190 => 'Latn-Cyrl', 191 => 'Latn-Deva', 192 => 'Latn-Geor', 193 => 'Latn-Grek', 194 => 'Latn-Grek/UNGEGN', 195 => 'Latn-Gujr', 196 => 'Latn-Guru', 197 => 'Latn-Hang', 198 => 'Latn-Hebr', 199 => 'Latn-Hira', 200 => 'Latn-Jamo', 201 => 'Latn-Kana', 202 => 'Latn-Knda', 203 => 'Latn-Mlym', 204 => 'Latn-Orya', 205 => 'Latn-Syrc', 206 => 'Latn-Taml', 207 => 'Latn-Telu', 208 => 'Latn-Thaa', 209 => 'Latn-Thai', 210 => 'Macedonian-Latin/BGN', 211 => 'Malayalam-Arabic', 212 => 'Malayalam-Bengali', 213 => 'Malayalam-Devanagari', 214 => 'Malayalam-Gujarati', 215 => 'Malayalam-Gurmukhi', 216 => 'Malayalam-Kannada', 217 => 'Malayalam-Latin', 218 => 'Malayalam-Oriya', 219 => 'Malayalam-Tamil', 220 => 'Malayalam-Telugu', 221 => 'Maldivian-Latin/BGN', 222 => 'Mlym-Arab', 223 => 'Mlym-Beng', 224 => 'Mlym-Deva', 225 => 'Mlym-Gujr', 226 => 'Mlym-Guru', 227 => 'Mlym-Knda', 228 => 'Mlym-Latn', 229 => 'Mlym-Orya', 230 => 'Mlym-Taml', 231 => 'Mlym-Telu', 232 => 'Mlym-ur', 233 => 'Mongolian-Latin/BGN', 234 => 'NumericPinyin-Latin', 235 => 'NumericPinyin-Pinyin', 236 => 'Oriya-Arabic', 237 => 'Oriya-Bengali', 238 => 'Oriya-Devanagari', 239 => 'Oriya-Gujarati', 240 => 'Oriya-Gurmukhi', 241 => 'Oriya-Kannada', 242 => 'Oriya-Latin', 243 => 'Oriya-Malayalam', 244 => 'Oriya-Tamil', 245 => 'Oriya-Telugu', 246 => 'Orya-Arab', 247 => 'Orya-Beng', 248 => 'Orya-Deva', 249 => 'Orya-Gujr', 250 => 'Orya-Guru', 251 => 'Orya-Knda', 252 => 'Orya-Latn', 253 => 'Orya-Mlym', 254 => 'Orya-Taml', 255 => 'Orya-Telu', 256 => 'Orya-ur', 257 => 'Pashto-Latin/BGN', 258 => 'Persian-Latin/BGN', 259 => 'Pinyin-NumericPinyin', 260 => 'Publishing-Any', 261 => 'Russian-Latin/BGN', 262 => 'Serbian-Latin/BGN', 263 => 'Simplified-Traditional', 264 => 'Syrc-Latn', 265 => 'Syriac-Latin', 266 => 'Tamil-Arabic', 267 => 'Tamil-Bengali', 268 => 'Tamil-Devanagari', 269 => 'Tamil-Gujarati', 270 => 'Tamil-Gurmukhi', 271 => 'Tamil-Kannada', 272 => 'Tamil-Latin', 273 => 'Tamil-Malayalam', 274 => 'Tamil-Oriya', 275 => 'Tamil-Telugu', 276 => 'Taml-Arab', 277 => 'Taml-Beng', 278 => 'Taml-Deva', 279 => 'Taml-Gujr', 280 => 'Taml-Guru', 281 => 'Taml-Knda', 282 => 'Taml-Latn', 283 => 'Taml-Mlym', 284 => 'Taml-Orya', 285 => 'Taml-Telu', 286 => 'Taml-ur', 287 => 'Telu-Arab', 288 => 'Telu-Beng', 289 => 'Telu-Deva', 290 => 'Telu-Gujr', 291 => 'Telu-Guru', 292 => 'Telu-Knda', 293 => 'Telu-Latn', 294 => 'Telu-Mlym', 295 => 'Telu-Orya', 296 => 'Telu-Taml', 297 => 'Telu-ur', 298 => 'Telugu-Arabic', 299 => 'Telugu-Bengali', 300 => 'Telugu-Devanagari', 301 => 'Telugu-Gujarati', 302 => 'Telugu-Gurmukhi', 303 => 'Telugu-Kannada', 304 => 'Telugu-Latin', 305 => 'Telugu-Malayalam', 306 => 'Telugu-Oriya', 307 => 'Telugu-Tamil', 308 => 'Thaa-Latn', 309 => 'Thaana-Latin', 310 => 'Thai-Latin', 311 => 'Thai-Latn', 312 => 'Tone-Digit', 313 => 'Traditional-Simplified', 314 => 'Turkmen-Latin/BGN', 315 => 'Ukrainian-Latin/BGN', 316 => 'Uzbek-Latin/BGN', 317 => 'XSampa-IPA', 318 => 'Zawgyi-my', 319 => 'am-am_FONIPA', 320 => 'am-am_Latn/BGN', 321 => 'am-ar', 322 => 'am-chr', 323 => 'am-fa', 324 => 'am_FONIPA-am', 325 => 'ar-ar_Latn/BGN', 326 => 'az-Lower', 327 => 'az-Title', 328 => 'az-Upper', 329 => 'az_Cyrl-az/BGN', 330 => 'be-be_Latn/BGN', 331 => 'bg-bg_Latn/BGN', 332 => 'blt-blt_FONIPA', 333 => 'ch-am', 334 => 'ch-ar', 335 => 'ch-ch_FONIPA', 336 => 'ch-chr', 337 => 'ch-fa', 338 => 'chr-chr_FONIPA', 339 => 'cs-am', 340 => 'cs-ar', 341 => 'cs-chr', 342 => 'cs-cs_FONIPA', 343 => 'cs-fa', 344 => 'cs-ja', 345 => 'cs-ko', 346 => 'cs_FONIPA-ja', 347 => 'cs_FONIPA-ko', 348 => 'cy-cy_FONIPA', 349 => 'de-ASCII', 350 => 'dsb-dsb_FONIPA', 351 => 'dv-dv_Latn/BGN', 352 => 'el-Lower', 353 => 'el-Title', 354 => 'el-Upper', 355 => 'el-el_Latn/BGN', 356 => 'eo-am', 357 => 'eo-ar', 358 => 'eo-chr', 359 => 'eo-eo_FONIPA', 360 => 'eo-fa', 361 => 'es-am', 362 => 'es-ar', 363 => 'es-chr', 364 => 'es-es_FONIPA', 365 => 'es-fa', 366 => 'es-ja', 367 => 'es-zh', 368 => 'es_419-am', 369 => 'es_419-ar', 370 => 'es_419-chr', 371 => 'es_419-fa', 372 => 'es_419-ja', 373 => 'es_419-zh', 374 => 'es_FONIPA-am', 375 => 'es_FONIPA-es_419_FONIPA', 376 => 'es_FONIPA-ja', 377 => 'es_FONIPA-zh', 378 => 'fa-fa_FONIPA', 379 => 'fa-fa_Latn/BGN', 380 => 'ha-ha_NE', 381 => 'he-he_Latn/BGN', 382 => 'hy-am', 383 => 'hy-ar', 384 => 'hy-chr', 385 => 'hy-fa', 386 => 'hy-hy_FONIPA', 387 => 'hy-hy_Latn/BGN', 388 => 'hy_AREVMDA-am', 389 => 'hy_AREVMDA-ar', 390 => 'hy_AREVMDA-chr', 391 => 'hy_AREVMDA-fa', 392 => 'hy_AREVMDA-hy_AREVMDA_FONIPA', 393 => 'ia-am', 394 => 'ia-ar', 395 => 'ia-chr', 396 => 'ia-fa', 397 => 'ia-ia_FONIPA', 398 => 'it-am', 399 => 'it-ja', 400 => 'ja_Hrkt-ja_Latn/BGN', 401 => 'ja_Latn-ko', 402 => 'ja_Latn-ru', 403 => 'ka-ka_Latn/BGN', 404 => 'ka-ka_Latn/BGN_1981', 405 => 'kk-am', 406 => 'kk-ar', 407 => 'kk-chr', 408 => 'kk-fa', 409 => 'kk-kk_FONIPA', 410 => 'kk-kk_Latn/BGN', 411 => 'ko-ko_Latn/BGN', 412 => 'ky-am', 413 => 'ky-ar', 414 => 'ky-chr', 415 => 'ky-fa', 416 => 'ky-ky_FONIPA', 417 => 'ky-ky_Latn/BGN', 418 => 'la-la_FONIPA', 419 => 'lt-Lower', 420 => 'lt-Title', 421 => 'lt-Upper', 422 => 'mk-mk_Latn/BGN', 423 => 'mn-mn_Latn/BGN', 424 => 'mn-mn_Latn/MNS', 425 => 'my-Zawgyi', 426 => 'my-am', 427 => 'my-ar', 428 => 'my-chr', 429 => 'my-fa', 430 => 'my-my_FONIPA', 431 => 'nl-Title', 432 => 'nv-nv_FONIPA', 433 => 'pl-am', 434 => 'pl-ar', 435 => 'pl-chr', 436 => 'pl-fa', 437 => 'pl-ja', 438 => 'pl-pl_FONIPA', 439 => 'pl_FONIPA-ja', 440 => 'ps-ps_Latn/BGN', 441 => 'rm_SURSILV-am', 442 => 'rm_SURSILV-ar', 443 => 'rm_SURSILV-chr', 444 => 'rm_SURSILV-fa', 445 => 'rm_SURSILV-rm_FONIPA_SURSILV', 446 => 'ro-am', 447 => 'ro-ar', 448 => 'ro-chr', 449 => 'ro-fa', 450 => 'ro-ja', 451 => 'ro-ro_FONIPA', 452 => 'ro_FONIPA-ja', 453 => 'ru-ja', 454 => 'ru-ru_Latn/BGN', 455 => 'ru-zh', 456 => 'ru_Latn-ru/BGN', 457 => 'sat-am', 458 => 'sat-ar', 459 => 'sat-chr', 460 => 'sat-fa', 461 => 'sat_Olck-sat_FONIPA', 462 => 'si-am', 463 => 'si-ar', 464 => 'si-chr', 465 => 'si-fa', 466 => 'si-si_FONIPA', 467 => 'si-si_Latn', 468 => 'sk-am', 469 => 'sk-ar', 470 => 'sk-chr', 471 => 'sk-fa', 472 => 'sk-ja', 473 => 'sk-sk_FONIPA', 474 => 'sk_FONIPA-ja', 475 => 'sr-sr_Latn/BGN', 476 => 'ta-ta_FONIPA', 477 => 'tk_Cyrl-tk/BGN', 478 => 'tlh-am', 479 => 'tlh-ar', 480 => 'tlh-chr', 481 => 'tlh-fa', 482 => 'tlh-tlh_FONIPA', 483 => 'tr-Lower', 484 => 'tr-Title', 485 => 'tr-Upper', 486 => 'ug-ug_FONIPA', 487 => 'uk-uk_Latn/BGN', 488 => 'und_FONIPA-ar', 489 => 'und_FONIPA-chr', 490 => 'und_FONIPA-fa', 491 => 'und_FONIPA-und_FONXSAMP', 492 => 'und_FONXSAMP-und_FONIPA', 493 => 'uz_Cyrl-uz/BGN', 494 => 'uz_Cyrl-uz_Latn', 495 => 'uz_Latn-uz_Cyrl', 496 => 'vec-vec_FONIPA', 497 => 'xh-am', 498 => 'xh-ar', 499 => 'xh-chr', 500 => 'xh-fa', 501 => 'xh-xh_FONIPA', 502 => 'yo-yo_BJ', 503 => 'zh_Latn_PINYIN-ru', 504 => 'zu-am', 505 => 'zu-ar', 506 => 'zu-chr', 507 => 'zu-fa', 508 => 'zu-zu_FONIPA', 509 => 'Any-Null', 510 => 'Any-Lower', 511 => 'Any-Upper', 512 => 'Any-Title', 513 => 'Any-Name', 514 => 'Name-Any', 515 => 'Any-Remove', 516 => 'Any-Hex/Unicode', 517 => 'Any-Hex/Java', 518 => 'Any-Hex/C', 519 => 'Any-Hex/XML', 520 => 'Any-Hex/XML10', 521 => 'Any-Hex/Perl', 522 => 'Any-Hex', 523 => 'Hex-Any/Unicode', 524 => 'Hex-Any/Java', 525 => 'Hex-Any/C', 526 => 'Hex-Any/XML', 527 => 'Hex-Any/XML10', 528 => 'Hex-Any/Perl', 529 => 'Hex-Any', 530 => 'Any-NFC', 531 => 'Any-NFKC', 532 => 'Any-NFD', 533 => 'Any-NFKD', 534 => 'Any-FCD', 535 => 'Any-FCC', 536 => 'Any-fa', 537 => 'Any-ar', 538 => 'Any-chr', 539 => 'Any-rm_FONIPA_SURSILV', 540 => 'Any-am', 541 => 'Any-Latn', 542 => 'Any-dv_Latn/BGN', 543 => 'Any-ro_FONIPA', 544 => 'Any-dsb_FONIPA', 545 => 'Any-Latin', 546 => 'Any-he_Latn/BGN', 547 => 'Any-el_Latn/BGN', 548 => 'Any-eo_FONIPA', 549 => 'Any-si_Latn', 550 => 'Any-si_FONIPA', 551 => 'Any-zh', 552 => 'Any-es_FONIPA', 553 => 'Any-sk_FONIPA', 554 => 'Any-und_FONIPA', 555 => 'Any-und_FONXSAMP', 556 => 'Any-az/BGN', 557 => 'Any-Deva', 558 => 'Any-Arab', 559 => 'Any-Telu', 560 => 'Any-Beng', 561 => 'Any-ur', 562 => 'Any-Orya', 563 => 'Any-Guru', 564 => 'Any-Taml', 565 => 'Any-Gujr', 566 => 'Any-Knda', 567 => 'Any-Armenian', 568 => 'Any-Thaana', 569 => 'Any-Hiragana', 570 => 'Any-Syriac', 571 => 'Any-Jamo', 572 => 'Any-Hangul', 573 => 'Any-Kannada', 574 => 'Any-Georgian', 575 => 'Any-Telugu', 576 => 'Any-Cyrillic', 577 => 'Any-Thai', 578 => 'Any-Oriya', 579 => 'Any-Bopomofo', 580 => 'Any-Malayalam', 581 => 'Any-Gurmukhi', 582 => 'Any-Gujarati', 583 => 'Any-Tamil', 584 => 'Any-Katakana', 585 => 'Any-Hebrew', 586 => 'Any-Bengali', 587 => 'Any-Arabic', 588 => 'Any-Greek', 589 => 'Any-Greek/UNGEGN', 590 => 'Any-Devanagari', 591 => 'Any-fa_FONIPA', 592 => 'Any-fa_Latn/BGN', 593 => 'Any-ta_FONIPA', 594 => 'Any-Mlym', 595 => 'Any-Any', 596 => 'Any-Hant', 597 => 'Any-Hans', 598 => 'Any-uz_Cyrl', 599 => 'Any-blt_FONIPA', 600 => 'Any-ug_FONIPA', 601 => 'Any-uk_Latn/BGN', 602 => 'Any-ha_NE', 603 => 'Any-hy_AREVMDA_FONIPA', 604 => 'Any-hy_FONIPA', 605 => 'Any-hy_Latn/BGN', 606 => 'Any-ia_FONIPA', 607 => 'Any-uz/BGN', 608 => 'Any-uz_Latn', 609 => 'Any-vec_FONIPA', 610 => 'Any-xh_FONIPA', 611 => 'Any-ka_Latn/BGN', 612 => 'Any-ka_Latn/BGN_1981', 613 => 'Any-kk_FONIPA', 614 => 'Any-kk_Latn/BGN', 615 => 'Any-yo_BJ', 616 => 'Any-ky_FONIPA', 617 => 'Any-ky_Latn/BGN', 618 => 'Any-la_FONIPA', 619 => 'Any-ru_Latn/BGN', 620 => 'Any-chr_FONIPA', 621 => 'Any-zu_FONIPA', 622 => 'Any-ru', 623 => 'Any-Geor', 624 => 'Any-Cyrl', 625 => 'Any-Armn', 626 => 'Any-Thaa', 627 => 'Any-Hebr', 628 => 'Any-Grek', 629 => 'Any-Grek/UNGEGN', 630 => 'Any-Syrc', 631 => 'Any-Hira', 632 => 'Any-Hang', 633 => 'Any-Kana', 634 => 'Any-Bopo', 635 => 'Any-mn_Latn/BGN', 636 => 'Any-mn_Latn/MNS', 637 => 'Any-my_FONIPA', 638 => 'Any-sr_Latn/BGN', 639 => 'Any-nv_FONIPA', 640 => 'Any-sat_FONIPA', 641 => 'Any-my', 642 => 'Any-am_FONIPA', 643 => 'Any-am_Latn/BGN', 644 => 'Any-ar_Latn/BGN', 645 => 'Any-mk_Latn/BGN', 646 => 'Any-be_Latn/BGN', 647 => 'Any-bg_Latn/BGN', 648 => 'Any-es_419_FONIPA', 649 => 'Any-pl_FONIPA', 650 => 'Any-ps_Latn/BGN', 651 => 'Any-tk/BGN', 652 => 'Any-ch_FONIPA', 653 => 'Any-cs_FONIPA', 654 => 'Any-cy_FONIPA']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/utf8_fix.php b/includes/libraries/anti-xss-master/src/voku/helper/data/utf8_fix.php new file mode 100644 index 000000000..e61623f29 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/utf8_fix.php @@ -0,0 +1,152 @@ +<?php + +// code source: https://github.com/devgeniem/wp-sanitize-accented-uploads/blob/master/plugin.php#L152 +// table source: http://www.i18nqa.com/debug/utf8-debug.html + +return [ + // 3 char errors + '‚' => '‚', + '„' => '„', + '…' => '…', + '‡' => '‡', + '‰' => '‰', + '‹' => '‹', + '‘' => '‘', + '’' => '’', + '“' => '“', + '•' => '•', + '–' => '–', + '—' => '—', + 'â„¢' => '™', + '›' => '›', + '€' => '€', + // 2 char errors + "\xc2\x80" => "\xe2\x82\xac", // EURO SIGN + "\xc2\x82" => "\xe2\x80\x9a", // SINGLE LOW-9 QUOTATION MARK + "\xc2\x83" => "\xc6\x92", // LATIN SMALL LETTER F WITH HOOK + "\xc2\x84" => "\xe2\x80\x9e", // DOUBLE LOW-9 QUOTATION MARK + "\xc2\x85" => "\xe2\x80\xa6", // HORIZONTAL ELLIPSIS + "\xc2\x86" => "\xe2\x80\xa0", // DAGGER + "\xc2\x87" => "\xe2\x80\xa1", // DOUBLE DAGGER + "\xc2\x88" => "\xcb\x86", // MODIFIER LETTER CIRCUMFLEX ACCENT + "\xc2\x89" => "\xe2\x80\xb0", // PER MILLE SIGN + "\xc2\x8a" => "\xc5\xa0", // LATIN CAPITAL LETTER S WITH CARON + "\xc2\x8b" => "\xe2\x80\xb9", // SINGLE LEFT-POINTING ANGLE QUOTE + "\xc2\x8c" => "\xc5\x92", // LATIN CAPITAL LIGATURE OE + "\xc2\x8e" => "\xc5\xbd", // LATIN CAPITAL LETTER Z WITH CARON + "\xc2\x91" => "\xe2\x80\x98", // LEFT SINGLE QUOTATION MARK + "\xc2\x92" => "\xe2\x80\x99", // RIGHT SINGLE QUOTATION MARK + "\xc2\x93" => "\xe2\x80\x9c", // LEFT DOUBLE QUOTATION MARK + "\xc2\x94" => "\xe2\x80\x9d", // RIGHT DOUBLE QUOTATION MARK + "\xc2\x95" => "\xe2\x80\xa2", // BULLET + "\xc2\x96" => "\xe2\x80\x93", // EN DASH + "\xc2\x97" => "\xe2\x80\x94", // EM DASH + "\xc2\x98" => "\xcb\x9c", // SMALL TILDE + 'Â' => 'Â', + 'Æ’' => 'ƒ', + 'Ã' => 'Ã', + 'Ä' => 'Ä', + 'Ã…' => 'Å', + //'â€' => '†', // duplicate key + 'Æ' => 'Æ', + 'Ç' => 'Ç', + 'ˆ' => 'ˆ', + 'È' => 'È', + 'É' => 'É', + 'Ê' => 'Ê', + 'Ë' => 'Ë', + 'Å’' => 'Œ', + 'ÃŒ' => 'Ì', + 'Ž' => 'Ž', + 'ÃŽ' => 'Î', + 'Ñ' => 'Ñ', + 'Ã’' => 'Ò', + 'Ó' => 'Ó', + 'â€' => '”', + 'Ô' => 'Ô', + 'Õ' => 'Õ', + 'Ö' => 'Ö', + '×' => '×', + 'Ëœ' => '˜', + 'Ø' => 'Ø', + 'Ù' => 'Ù', + 'Å¡' => 'š', + 'Ú' => 'Ú', + 'Û' => 'Û', + 'Å“' => 'œ', + 'Ü' => 'Ü', + 'ž' => 'ž', + 'Þ' => 'Þ', + 'Ÿ' => 'Ÿ', + 'ß' => 'ß', + '¡' => '¡', + 'á' => 'á', + '¢' => '¢', + 'â' => 'â', + '£' => '£', + 'ã' => 'ã', + '¤' => '¤', + 'ä' => 'ä', + 'Â¥' => '¥', + 'Ã¥' => 'å', + '¦' => '¦', + 'æ' => 'æ', + '§' => '§', + 'ç' => 'ç', + '¨' => '¨', + 'è' => 'è', + '©' => '©', + 'é' => 'é', + 'ª' => 'ª', + 'ê' => 'ê', + '«' => '«', + 'ë' => 'ë', + '¬' => '¬', + 'ì' => 'ì', + '®' => '®', + 'î' => 'î', + '¯' => '¯', + 'ï' => 'ï', + '°' => '°', + 'ð' => 'ð', + '±' => '±', + 'ñ' => 'ñ', + '²' => '²', + 'ò' => 'ò', + '³' => '³', + 'ó' => 'ó', + '´' => '´', + 'ô' => 'ô', + 'µ' => 'µ', + 'õ' => 'õ', + '¶' => '¶', + 'ö' => 'ö', + '·' => '·', + '÷' => '÷', + '¸' => '¸', + 'ø' => 'ø', + '¹' => '¹', + 'ù' => 'ù', + 'º' => 'º', + 'ú' => 'ú', + '»' => '»', + 'û' => 'û', + '¼' => '¼', + 'ü' => 'ü', + '½' => '½', + 'ý' => 'ý', + '¾' => '¾', + 'þ' => 'þ', + '¿' => '¿', + 'ÿ' => 'ÿ', + 'À' => 'À', + // 1 char errors last (don't use them, because of false-positives) + //'Ã' => 'Á', + //'Å' => 'Š', + //'Ã' => 'Í', + //'Ã' => 'Ï', + //'Ã' => 'Ð', + //'Ã' => 'Ý', + //'Ã' => 'à', + //'Ã' => 'í', +]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/win1252_to_utf8.php b/includes/libraries/anti-xss-master/src/voku/helper/data/win1252_to_utf8.php new file mode 100644 index 000000000..46ad53c6c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/win1252_to_utf8.php @@ -0,0 +1,126 @@ +<?php + +return [ + 0x80 => "\xe2\x82\xac", // € + 0x82 => "\xe2\x80\x9a", // ‚ + 0x83 => "\xc6\x92", // ƒ + 0x84 => "\xe2\x80\x9e", // „ + 0x85 => "\xe2\x80\xa6", // … + 0x86 => "\xe2\x80\xa0", // † + 0x87 => "\xe2\x80\xa1", // ‡ + 0x88 => "\xcb\x86", // ˆ + 0x89 => "\xe2\x80\xb0", // ‰ + 0x8a => "\xc5\xa0", // Š + 0x8b => "\xe2\x80\xb9", // ‹ + 0x8c => "\xc5\x92", // Œ + 0x8e => "\xc5\xbd", // Ž + 0x91 => "\xe2\x80\x98", // ‘ + 0x92 => "\xe2\x80\x99", // ’ + 0x93 => "\xe2\x80\x9c", // “ + 0x94 => "\xe2\x80\x9d", // ” + 0x95 => "\xe2\x80\xa2", // • + 0x96 => "\xe2\x80\x93", // – + 0x97 => "\xe2\x80\x94", // — + 0x98 => "\xcb\x9c", // ˜ + 0x99 => "\xe2\x84\xa2", // ™ + 0x9a => "\xc5\xa1", // š + 0x9b => "\xe2\x80\xba", // › + 0x9c => "\xc5\x93", // œ + 0x9e => "\xc5\xbe", // ž + 0x9f => "\xc5\xb8", // Ÿ + 0xa0 => "\xc2\xa0", + 0xa1 => "\xc2\xa1", // ¡ + 0xa2 => "\xc2\xa2", // ¢ + 0xa3 => "\xc2\xa3", // £ + 0xa4 => "\xc2\xa4", // ¤ + 0xa5 => "\xc2\xa5", // ¥ + 0xa6 => "\xc2\xa6", // ¦ + 0xa7 => "\xc2\xa7", // § + 0xa8 => "\xc2\xa8", // ¨ + 0xa9 => "\xc2\xa9", // © + 0xaa => "\xc2\xaa", // ª + 0xab => "\xc2\xab", // « + 0xac => "\xc2\xac", // ¬ + 0xad => "\xc2\xad", // ­ + 0xae => "\xc2\xae", // ® + 0xaf => "\xc2\xaf", // ¯ + 0xb0 => "\xc2\xb0", // ° + 0xb1 => "\xc2\xb1", // ± + 0xb2 => "\xc2\xb2", // ² + 0xb3 => "\xc2\xb3", // ³ + 0xb4 => "\xc2\xb4", // ´ + 0xb5 => "\xc2\xb5", // µ + 0xb6 => "\xc2\xb6", // ¶ + 0xb7 => "\xc2\xb7", // · + 0xb8 => "\xc2\xb8", // ¸ + 0xb9 => "\xc2\xb9", // ¹ + 0xba => "\xc2\xba", // º + 0xbb => "\xc2\xbb", // » + 0xbc => "\xc2\xbc", // ¼ + 0xbd => "\xc2\xbd", // ½ + 0xbe => "\xc2\xbe", // ¾ + 0xbf => "\xc2\xbf", // ¿ + 0xc0 => "\xc3\x80", // À + 0xc1 => "\xc3\x81", // Á + 0xc2 => "\xc3\x82", //  + 0xc3 => "\xc3\x83", // à + 0xc4 => "\xc3\x84", // Ä + 0xc5 => "\xc3\x85", // Å + 0xc6 => "\xc3\x86", // Æ + 0xc7 => "\xc3\x87", // Ç + 0xc8 => "\xc3\x88", // È + 0xc9 => "\xc3\x89", // É + 0xca => "\xc3\x8a", // Ê + 0xcb => "\xc3\x8b", // Ë + 0xcc => "\xc3\x8c", // Ì + 0xcd => "\xc3\x8d", // Í + 0xce => "\xc3\x8e", // Î + 0xcf => "\xc3\x8f", // Ï + 0xd0 => "\xc3\x90", // Ð + 0xd1 => "\xc3\x91", // Ñ + 0xd2 => "\xc3\x92", // Ò + 0xd3 => "\xc3\x93", // Ó + 0xd4 => "\xc3\x94", // Ô + 0xd5 => "\xc3\x95", // Õ + 0xd6 => "\xc3\x96", // Ö + 0xd7 => "\xc3\x97", // × + 0xd8 => "\xc3\x98", // Ø + 0xd9 => "\xc3\x99", // Ù + 0xda => "\xc3\x9a", // Ú + 0xdb => "\xc3\x9b", // Û + 0xdc => "\xc3\x9c", // Ü + 0xdd => "\xc3\x9d", // Ý + 0xde => "\xc3\x9e", // Þ + 0xdf => "\xc3\x9f", // ß + 0xe0 => "\xc3\xa0", // à + 0xe1 => "\xc3\xa1", // á + 0xe2 => "\xc3\xa2", // â + 0xe3 => "\xc3\xa3", // ã + 0xe4 => "\xc3\xa4", // ä + 0xe5 => "\xc3\xa5", // å + 0xe6 => "\xc3\xa6", // æ + 0xe7 => "\xc3\xa7", // ç + 0xe8 => "\xc3\xa8", // è + 0xe9 => "\xc3\xa9", // é + 0xea => "\xc3\xaa", // ê + 0xeb => "\xc3\xab", // ë + 0xec => "\xc3\xac", // ì + 0xed => "\xc3\xad", // í + 0xee => "\xc3\xae", // î + 0xef => "\xc3\xaf", // ï + 0xf0 => "\xc3\xb0", // ð + 0xf1 => "\xc3\xb1", // ñ + 0xf2 => "\xc3\xb2", // ò + 0xf3 => "\xc3\xb3", // ó + 0xf4 => "\xc3\xb4", // ô + 0xf5 => "\xc3\xb5", // õ + 0xf6 => "\xc3\xb6", // ö + 0xf7 => "\xc3\xb7", // ÷ + 0xf8 => "\xc3\xb8", // ø + 0xf9 => "\xc3\xb9", // ù + 0xfa => "\xc3\xba", // ú + 0xfb => "\xc3\xbb", // û + 0xfc => "\xc3\xbc", // ü + 0xfd => "\xc3\xbd", // ý + 0xfe => "\xc3\xbe", // þ +]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x000.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x000.php new file mode 100644 index 000000000..6c9d81f9d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x000.php @@ -0,0 +1,16 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '', 'EUR', // "\xc2\x80" => "\xe2\x82\xac" => EURO SIGN + '', ',', 'f', ',,', // "\xc2\x84" => "\xe2\x80\x9e" => DOUBLE LOW-9 QUOTATION MARK + '...', // "\xc2\x85" => "\xe2\x80\xa6" => HORIZONTAL ELLIPSIS + '+', '++', // "\xc2\x87" => "\xe2\x80\xa1" => DOUBLE DAGGER + '^', '%0', // "\xc2\x89" => "\xe2\x80\xb0" => PER MILLE SIGN + 'S', '<', 'OE', // "\xc2\x8c" => "\xc5\x92" => LATIN CAPITAL LIGATURE OE + '', 'Z', '', '', '\'', // "\xc2\x91" => "\xe2\x80\x98" => LEFT SINGLE QUOTATION MARK + '\'', // "\xc2\x92" => "\xe2\x80\x99" => RIGHT SINGLE QUOTATION MARK + '"', '"', '*', '-', '--', // "\xc2\x97" => "\xe2\x80\x94" => EM DASH + '~', 'tm', 's', '>', 'oe', '', 'z', 'Y', ' ', '!', 'C/', 'PS', '$?', 'Y=', '|', 'SS', '"', '(c)', 'a', '<<', '!', '', '(r)', '-', 'deg', '+-', '2', '3', '\'', 'u', 'P', '*', ',', '1', 'o', '>>', '1/4', '1/2', '3/4', '?', 'A', 'A', 'A', 'A', // Not "AE" - used in languages other than German + 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I', 'D', 'N', 'O', 'O', 'O', 'O', // Not "OE" - used in languages other than German + 'O', 'x', 'O', 'U', 'U', 'U', // Not "UE" - used in languages other than German + 'U', 'Y', 'Th', 'ss', 'a', 'a', 'a', 'a', // Not "ae" - used in languages other than German + 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'd', 'n', 'o', 'o', 'o', 'o', // Not "oe" - used in languages other than German + 'o', '/', 'o', 'u', 'u', 'u', // Not "ue" - used in languages other than German + 'u', 'y', 'th', 'y', ]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x001.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x001.php new file mode 100644 index 000000000..87fb12fb9 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x001.php @@ -0,0 +1 @@ +<?php return ['A', 'a', 'A', 'a', 'A', 'a', 'C', 'c', 'C', 'c', 'C', 'c', 'C', 'c', 'D', 'd', 'D', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'G', 'g', 'G', 'g', 'G', 'g', 'G', 'g', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'IJ', 'ij', 'J', 'j', 'K', 'k', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'N', 'n', 'N', 'n', 'N', 'n', '\'n', 'ng', 'NG', 'O', 'o', 'O', 'o', 'O', 'o', 'OE', 'oe', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'W', 'w', 'Y', 'y', 'Y', 'Z', 'z', 'Z', 'z', 'Z', 'z', 's', 'b', 'B', 'B', 'b', '6', '6', 'O', 'C', 'c', 'D', 'D', 'D', 'd', 'd', '3', '@', 'E', 'F', 'f', 'G', 'G', 'hv', 'I', 'I', 'K', 'k', 'l', 'l', 'W', 'N', 'n', 'O', 'O', 'o', 'OI', 'oi', 'P', 'p', 'YR', '2', '2', 'SH', 'sh', 't', 'T', 't', 'T', 'U', 'u', 'Y', 'V', 'Y', 'y', 'Z', 'z', 'ZH', 'ZH', 'zh', 'zh', '2', '5', '5', 'ts', 'w', '|', '||', '|=', '!', 'DZ', 'Dz', 'dz', 'LJ', 'Lj', 'lj', 'NJ', 'Nj', 'nj', 'A', 'a', 'I', 'i', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', '@', 'A', 'a', 'A', 'a', 'AE', 'ae', 'G', 'g', 'G', 'g', 'K', 'k', 'O', 'o', 'O', 'o', 'ZH', 'zh', 'j', 'DZ', 'Dz', 'dz', 'G', 'g', 'HV', 'W', 'N', 'n', 'A', 'a', 'AE', 'ae', 'O', 'o']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x002.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x002.php new file mode 100644 index 000000000..680e8690e --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x002.php @@ -0,0 +1 @@ +<?php return ['A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'O', 'o', 'O', 'o', 'R', 'r', 'R', 'r', 'U', 'u', 'U', 'u', 'S', 's', 'T', 't', 'Y', 'y', 'H', 'h', 'N', 'd', 'OU', 'ou', 'Z', 'z', 'A', 'a', 'E', 'e', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'Y', 'y', 'l', 'n', 't', 'j', 'db', 'qp', 'A', 'C', 'c', 'L', 'T', 's', 'z', '[?]', '[?]', 'B', 'U', '^', 'E', 'e', 'J', 'j', 'q', 'q', 'R', 'r', 'Y', 'y', 'a', 'a', 'a', 'b', 'o', 'c', 'd', 'd', 'e', '@', '@', 'e', 'e', 'e', 'e', 'j', 'g', 'g', 'g', 'g', 'u', 'Y', 'h', 'h', 'i', 'i', 'I', 'l', 'l', 'l', 'lZ', 'W', 'W', 'm', 'n', 'n', 'n', 'o', 'OE', 'O', 'F', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'R', 'R', 's', 'S', 'j', 'S', 'S', 't', 't', 'u', 'U', 'v', '^', 'w', 'y', 'Y', 'z', 'z', 'Z', 'Z', '?', '?', '?', 'C', '@', 'B', 'E', 'G', 'H', 'j', 'k', 'L', 'q', '?', '?', 'dz', 'dZ', 'dz', 'ts', 'tS', 'tC', 'fN', 'ls', 'lz', 'WW', ']]', 'h', 'h', 'h', 'h', 'j', 'r', 'r', 'r', 'r', 'w', 'y', '\'', '"', '`', '\'', '`', '`', '\'', '?', '?', '<', '>', '^', 'V', '^', 'V', '\'', '-', '/', '\\', ',', '_', '\\', '/', ':', '.', '`', '\'', '^', 'V', '+', '-', 'V', '.', '@', ',', '~', '"', 'R', 'X', 'G', 'l', 's', 'x', '?', '', '', '', '', '', '', '', 'V', '=', '"', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x003.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x003.php new file mode 100644 index 000000000..3d02b86e2 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x003.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', 'a', 'e', 'i', 'o', 'u', 'c', 'd', 'h', 'm', 'r', 't', 'v', 'x', '[?]', '[?]', '[?]', '[?]', '\'', ',', '[?]', '[?]', '[?]', '[?]', '', '[?]', '[?]', '[?]', '?', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', 'A', ';', 'E', 'E', 'I', '[?]', 'O', '[?]', 'U', 'O', 'I', 'A', 'B', 'G', 'D', 'E', 'Z', 'E', 'Th', 'I', 'K', 'L', 'M', 'N', 'Ks', 'O', 'P', 'R', '[?]', 'S', 'T', 'U', 'Ph', 'Kh', 'Ps', 'O', 'I', 'U', 'a', 'e', 'e', 'i', 'u', 'a', 'b', 'g', 'd', 'e', 'z', 'e', 'th', 'i', 'k', 'l', 'm', 'n', 'x', 'o', 'p', 'r', 's', 's', 't', 'u', 'ph', 'kh', 'ps', 'o', 'i', 'u', 'o', 'u', 'o', '[?]', 'b', 'th', 'U', 'U', 'U', 'ph', 'p', '&', '[?]', '[?]', 'St', 'st', 'W', 'w', 'Q', 'q', 'Sp', 'sp', 'Sh', 'sh', 'F', 'f', 'Kh', 'kh', 'H', 'h', 'G', 'g', 'CH', 'ch', 'Ti', 'ti', 'k', 'r', 'c', 'j', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x004.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x004.php new file mode 100644 index 000000000..ee92a0ca7 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x004.php @@ -0,0 +1 @@ +<?php return ['Ie', 'Io', 'Dj', 'Gj', 'Ie', 'Dz', 'I', 'Yi', 'J', 'Lj', 'Nj', 'Tsh', 'Kj', 'I', 'U', 'Dzh', 'A', 'B', 'V', 'G', 'D', 'E', 'Zh', 'Z', 'I', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'F', 'Kh', 'Ts', 'Ch', 'Sh', 'Shch', '\'', 'Y', '\'', 'E', 'Iu', 'Ia', 'a', 'b', 'v', 'g', 'd', 'e', 'zh', 'z', 'i', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'kh', 'ts', 'ch', 'sh', 'shch', '\'', 'y', '\'', 'e', 'iu', 'ia', 'ie', 'io', 'dj', 'gj', 'ie', 'dz', 'i', 'yi', 'j', 'lj', 'nj', 'tsh', 'kj', 'i', 'u', 'dzh', 'O', 'o', 'E', 'e', 'Ie', 'ie', 'E', 'e', 'Ie', 'ie', 'O', 'o', 'Io', 'io', 'Ks', 'ks', 'Ps', 'ps', 'F', 'f', 'Y', 'y', 'Y', 'y', 'u', 'u', 'O', 'o', 'O', 'o', 'Ot', 'ot', 'Q', 'q', '*1000*', '', '', '', '', '[?]', '*100.000*', '*1.000.000*', '[?]', '[?]', '"', '"', 'R\'', 'r\'', 'G\'', 'g\'', 'G\'', 'g\'', 'G\'', 'g\'', 'Zh\'', 'zh\'', 'Z\'', 'z\'', 'K\'', 'k\'', 'K\'', 'k\'', 'K\'', 'k\'', 'K\'', 'k\'', 'N\'', 'n\'', 'Ng', 'ng', 'P\'', 'p\'', 'Kh', 'kh', 'S\'', 's\'', 'T\'', 't\'', 'U', 'u', 'U\'', 'u\'', 'Kh\'', 'kh\'', 'Tts', 'tts', 'Ch\'', 'ch\'', 'Ch\'', 'ch\'', 'H', 'h', 'Ch', 'ch', 'Ch\'', 'ch\'', '`', 'Zh', 'zh', 'K\'', 'k\'', '[?]', '[?]', 'N\'', 'n\'', '[?]', '[?]', 'Ch', 'ch', '[?]', '[?]', '[?]', 'a', 'a', 'A', 'a', 'Ae', 'ae', 'Ie', 'ie', '@', '@', '@', '@', 'Zh', 'zh', 'Z', 'z', 'Dz', 'dz', 'I', 'i', 'I', 'i', 'O', 'o', 'O', 'o', 'O', 'o', 'E', 'e', 'U', 'u', 'U', 'u', 'U', 'u', 'Ch', 'ch', '[?]', '[?]', 'Y', 'y', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x005.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x005.php new file mode 100644 index 000000000..2a2ccdf8c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x005.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'A', 'B', 'G', 'D', 'E', 'Z', 'E', 'E', 'T`', 'Zh', 'I', 'L', 'Kh', 'Ts', 'K', 'H', 'Dz', 'Gh', 'Ch', 'M', 'Y', 'N', 'Sh', 'O', 'Ch`', 'P', 'J', 'Rh', 'S', 'V', 'T', 'R', 'Ts`', 'W', 'P`', 'K`', 'O', 'F', '[?]', '[?]', '<', '\'', '/', '!', ',', '?', '.', '[?]', 'a', 'b', 'g', 'd', 'e', 'z', 'e', 'e', 't`', 'zh', 'i', 'l', 'kh', 'ts', 'k', 'h', 'dz', 'gh', 'ch', 'm', 'y', 'n', 'sh', 'o', 'ch`', 'p', 'j', 'rh', 's', 'v', 't', 'r', 'ts`', 'w', 'p`', 'k`', 'o', 'f', 'ew', '[?]', ':', '-', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '@', 'e', 'a', 'o', 'i', 'e', 'e', 'a', 'a', 'o', 'o', 'u', '\'', '', '-', '-', '|', '', '', ':', '', '', 'n', 'o', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'A', 'b', 'g', 'd', 'h', 'v', 'z', 'KH', 't', 'y', 'k', 'k', 'l', 'm', 'm', 'n', 'n', 's', '`', 'p', 'p', 'TS', 'TS', 'q', 'r', 'SH', 't', '[?]', '[?]', '[?]', '[?]', '[?]', 'V', 'OY', 'i', '\'', '"', 'v', 'n', 'q', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x006.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x006.php new file mode 100644 index 000000000..a49ed21f1 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x006.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ',', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ';', '[?]', '[?]', '[?]', '?', '[?]', '', 'a', 'a', 'w\'', '', 'y\'', '', 'b', '@', 't', 'th', 'j', 'H', 'kh', 'd', 'dh', 'r', 'z', 's', 'sh', 'S', 'D', 'T', 'Z', '`', 'G', '[?]', '[?]', '[?]', '[?]', '[?]', '', 'f', 'q', 'k', 'l', 'm', 'n', 'h', 'w', '~', 'y', 'an', 'un', 'in', 'a', 'u', 'i', 'W', '', '', '\'', '\'', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '%', '.', ',', '*', '[?]', '[?]', '', '\'', '\'', '\'', '', '\'', '\'w', '\'u', '\'y', 'tt', 'tth', 'b', 't', 'T', 'p', 'th', 'bh', '\'h', 'H', 'ny', 'dy', 'H', 'ch', 'cch', 'dd', 'D', 'D', 'Dt', 'dh', 'ddh', 'd', 'D', 'D', 'rr', 'R', 'R', 'R', 'R', 'R', 'R', 'j', 'R', 'S', 'S', 'S', 'S', 'S', 'T', 'GH', 'F', 'F', 'F', 'v', 'f', 'ph', 'Q', 'Q', 'kh', 'k', 'K', 'K', 'ng', 'K', 'g', 'G', 'N', 'G', 'G', 'G', 'L', 'L', 'L', 'L', 'N', 'N', 'N', 'N', 'N', 'h', 'Ch', 'hy', 'h', 'H', '@', 'W', 'oe', 'oe', 'u', 'yu', 'yu', 'W', 'v', 'y', 'Y', 'Y', 'W', '', '', 'y', 'y\'', '.', 'ae', '', '', '', '', '', '', '', '@', '#', '', '', '', '', '', '', '', '', '', '', '^', '', '', '', '', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'Sh', 'D', 'Gh', '&', '+m', 'h']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x007.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x007.php new file mode 100644 index 000000000..7e6f3df45 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x007.php @@ -0,0 +1 @@ +<?php return ['//', '/', ',', '!', '!', '-', ',', ',', ';', '?', '~', '{', '}', '*', '[?]', '', '\'', '', 'b', 'g', 'g', 'd', 'd', 'h', 'w', 'z', 'H', 't', 't', 'y', 'yh', 'k', 'l', 'm', 'n', 's', 's', '`', 'p', 'p', 'S', 'q', 'r', 'sh', 't', '[?]', '[?]', '[?]', 'a', 'a', 'a', 'A', 'A', 'A', 'e', 'e', 'e', 'E', 'i', 'i', 'u', 'u', 'u', 'o', '', '`', '\'', '', '', 'X', 'Q', '@', '@', '|', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'h', 'sh', 'n', 'r', 'b', 'L', 'k', '\'', 'v', 'm', 'f', 'dh', 'th', 'l', 'g', 'ny', 's', 'd', 'z', 't', 'y', 'p', 'j', 'ch', 'tt', 'hh', 'kh', 'th', 'z', 'sh', 's', 'd', 't', 'z', '`', 'gh', 'q', 'w', 'a', 'aa', 'i', 'ee', 'u', 'oo', 'e', 'ey', 'o', 'oa', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x009.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x009.php new file mode 100644 index 000000000..47a9c49e9 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x009.php @@ -0,0 +1 @@ +<?php return ['[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', 'eN', 'e', 'e', 'ai', 'oN', 'o', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'nnn', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'l', 'lll', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '\'', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'eN', 'e', 'e', 'ai', 'oN', 'o', 'o', 'au', '', '[?]', '[?]', 'AUM', '\'', '\'', '`', '\'', '[?]', '[?]', '[?]', 'q', 'khh', 'ghh', 'z', 'dddh', 'rh', 'f', 'yy', 'RR', 'LL', 'L', 'LL', ' / ', ' // ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', '[?]', 'l', '[?]', '[?]', '[?]', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '[?]', '[?]', '[?]', '[?]', 'rr', 'rh', '[?]', 'yy', 'RR', 'LL', 'L', 'LL', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'r\'', 'r`', 'Rs', 'Rs', '1/', '2/', '3/', '4/', ' 1 - 1/', '/16', '', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x00a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x00a.php new file mode 100644 index 000000000..ed73cc63a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x00a.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', 'N', '[?]', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', '[?]', 'ee', 'ai', '[?]', '[?]', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bb', 'm', 'y', 'r', '[?]', 'l', 'll', '[?]', 'v', 'sh', '[?]', 's', 'h', '[?]', '[?]', '\'', '[?]', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', '[?]', 'ee', 'ai', '[?]', '[?]', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'khh', 'ghh', 'z', 'rr', '[?]', 'f', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'N', 'H', '', '', 'G.E.O.', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', '[?]', 'eN', '[?]', 'e', 'ai', 'oN', '[?]', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'ya', 'r', '[?]', 'l', 'll', '[?]', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '\'', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'eN', '[?]', 'e', 'ai', 'oN', '[?]', 'o', 'au', '', '[?]', '[?]', 'AUM', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x00b.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x00b.php new file mode 100644 index 000000000..68d1ab70b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x00b.php @@ -0,0 +1 @@ +<?php return ['[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', '[?]', 'l', 'll', '[?]', '', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '\'', 'aa', 'i', 'ii', 'u', 'uu', 'R', '[?]', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '+', '[?]', '[?]', '[?]', '[?]', 'rr', 'rh', '[?]', 'yy', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', '[?]', '[?]', '[?]', 'ng', 'c', '[?]', 'j', '[?]', 'ny', 'tt', '[?]', '[?]', '[?]', 'nn', 't', '[?]', '[?]', '[?]', 'n', 'nnn', 'p', '[?]', '[?]', '[?]', 'm', 'y', 'r', 'rr', 'l', 'll', 'lll', 'v', '[?]', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+10+', '+100+', '+1000+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x00c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x00c.php new file mode 100644 index 000000000..96b0d1faf --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x00c.php @@ -0,0 +1 @@ +<?php return ['[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'll', '[?]', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'll', '[?]', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'lll', '[?]', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x00d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x00d.php new file mode 100644 index 000000000..a8722bbbd --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x00d.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'll', 'lll', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', '[?]', '[?]', 'e', 'ee', 'ai', '', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'ae', 'aae', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'L', 'LL', 'e', 'ee', 'ai', 'o', 'oo', 'au', '[?]', '[?]', '[?]', 'k', 'kh', 'g', 'gh', 'ng', 'nng', 'c', 'ch', 'j', 'jh', 'ny', 'jny', 'nyj', 'tt', 'tth', 'dd', 'ddh', 'nn', 'nndd', 't', 'th', 'd', 'dh', 'n', '[?]', 'nd', 'p', 'ph', 'b', 'bh', 'm', 'mb', 'y', 'r', '[?]', 'l', '[?]', '[?]', 'v', 'sh', 'ss', 's', 'h', 'll', 'f', '[?]', '[?]', '[?]', '', '[?]', '[?]', '[?]', '[?]', 'aa', 'ae', 'aae', 'i', 'ii', 'u', '[?]', 'uu', '[?]', 'R', 'e', 'ee', 'ai', 'o', 'oo', 'au', 'L', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', 'LL', ' . ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x00e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x00e.php new file mode 100644 index 000000000..d48ef5ee2 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x00e.php @@ -0,0 +1 @@ +<?php return ['[?]', 'k', 'kh', 'kh', 'kh', 'kh', 'kh', 'ng', 'cch', 'ch', 'ch', 'ch', 'ch', 'y', 'd', 't', 'th', 'th', 'th', 'n', 'd', 't', 'th', 'th', 'th', 'n', 'b', 'p', 'ph', 'f', 'ph', 'f', 'ph', 'm', 'y', 'r', 'R', 'l', 'L', 'w', 's', 's', 's', 'h', 'l', '`', 'h', '~', 'a', 'a', 'aa', 'am', 'i', 'ii', 'ue', 'uue', 'u', 'uu', '\'', '[?]', '[?]', '[?]', '[?]', 'Bh.', 'e', 'ae', 'o', 'ai', 'ai', 'ao', '+', '', '', '', '', '', '', 'M', '', ' * ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' // ', ' /// ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'k', 'kh', '[?]', 'kh', '[?]', '[?]', 'ng', 'ch', '[?]', 's', '[?]', '[?]', 'ny', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'd', 'h', 'th', 'th', '[?]', 'n', 'b', 'p', 'ph', 'f', 'ph', 'f', '[?]', 'm', 'y', 'r', '[?]', 'l', '[?]', 'w', '[?]', '[?]', 's', 'h', '[?]', '`', '', '~', 'a', '', 'aa', 'am', 'i', 'ii', 'y', 'yy', 'u', 'uu', '[?]', 'o', 'l', 'ny', '[?]', '[?]', 'e', 'ei', 'o', 'ay', 'ai', '[?]', '+', '[?]', '', '', '', '', '', 'M', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', 'hn', 'hm', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x00f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x00f.php new file mode 100644 index 000000000..1b16ca78d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x00f.php @@ -0,0 +1 @@ +<?php return ['AUM', '', '', '', '', '', '', '', ' // ', ' * ', '', '-', ' / ', ' / ', ' // ', ' -/ ', ' +/ ', ' X/ ', ' /XX/ ', ' /X/ ', ', ', '', '', '', '', '', '', '', '', '', '', '', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.5', '1.5', '2.5', '3.5', '4.5', '5.5', '6.5', '7.5', '8.5', '-.5', '+', '*', '^', '_', '', '~', '[?]', ']', '[[', ']]', '', '', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', '[?]', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'ts', 'tsh', 'dz', 'dzh', 'w', 'zh', 'z', '\'', 'y', 'r', 'l', 'sh', 'ssh', 's', 'h', 'a', 'kss', 'r', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'L', 'LL', 'e', 'ee', 'o', 'oo', 'M', 'H', 'i', 'ii', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', '[?]', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'ts', 'tsh', 'dz', 'dzh', 'w', 'zh', 'z', '\'', 'y', 'r', 'l', 'sh', 'ss', 's', 'h', 'a', 'kss', 'w', 'y', 'r', '[?]', 'X', ' :X: ', ' /O/ ', ' /o/ ', ' \\o\\ ', ' (O) ', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x010.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x010.php new file mode 100644 index 000000000..b9c3a65b1 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x010.php @@ -0,0 +1 @@ +<?php return ['k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'nny', 'tt', 'tth', 'dd', 'ddh', 'nn', 'tt', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'l', 'w', 's', 'h', 'll', 'a', '[?]', 'i', 'ii', 'u', 'uu', 'e', '[?]', 'o', 'au', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'e', 'ai', '[?]', '[?]', '[?]', 'N', '\'', ':', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' / ', ' // ', 'n*', 'r*', 'l*', 'e*', 'sh', 'ss', 'R', 'RR', 'L', 'LL', 'R', 'RR', 'L', 'LL', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'A', 'B', 'G', 'D', 'E', 'V', 'Z', 'T`', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'Zh', 'R', 'S', 'T', 'U', 'P`', 'K`', 'G\'', 'Q', 'Sh', 'Ch`', 'C`', 'Z\'', 'C', 'Ch', 'X', 'J', 'H', 'E', 'Y', 'W', 'Xh', 'OE', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'a', 'b', 'g', 'd', 'e', 'v', 'z', 't`', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'zh', 'r', 's', 't', 'u', 'p`', 'k`', 'g\'', 'q', 'sh', 'ch`', 'c`', 'z\'', 'c', 'ch', 'x', 'j', 'h', 'e', 'y', 'w', 'xh', 'oe', 'f', '[?]', '[?]', '[?]', '[?]', ' // ', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x011.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x011.php new file mode 100644 index 000000000..32bdb8cdb --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x011.php @@ -0,0 +1 @@ +<?php return ['g', 'gg', 'n', 'd', 'dd', 'r', 'm', 'b', 'bb', 's', 'ss', '', 'j', 'jj', 'c', 'k', 't', 'p', 'h', 'ng', 'nn', 'nd', 'nb', 'dg', 'rn', 'rr', 'rh', 'rN', 'mb', 'mN', 'bg', 'bn', '', 'bs', 'bsg', 'bst', 'bsb', 'bss', 'bsj', 'bj', 'bc', 'bt', 'bp', 'bN', 'bbN', 'sg', 'sn', 'sd', 'sr', 'sm', 'sb', 'sbg', 'sss', 's', 'sj', 'sc', 'sk', 'st', 'sp', 'sh', '', '', '', '', 'Z', 'g', 'd', 'm', 'b', 's', 'Z', '', 'j', 'c', 't', 'p', 'N', 'j', '', '', '', '', 'ck', 'ch', '', '', 'pb', 'pN', 'hh', 'Q', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', 'a', 'ae', 'ya', 'yae', 'eo', 'e', 'yeo', 'ye', 'o', 'wa', 'wae', 'oe', 'yo', 'u', 'weo', 'we', 'wi', 'yu', 'eu', 'yi', 'i', 'a-o', 'a-u', 'ya-o', 'ya-yo', 'eo-o', 'eo-u', 'eo-eu', 'yeo-o', 'yeo-u', 'o-eo', 'o-e', 'o-ye', 'o-o', 'o-u', 'yo-ya', 'yo-yae', 'yo-yeo', 'yo-o', 'yo-i', 'u-a', 'u-ae', 'u-eo-eu', 'u-ye', 'u-u', 'yu-a', 'yu-eo', 'yu-e', 'yu-yeo', 'yu-ye', 'yu-u', 'yu-i', 'eu-u', 'eu-eu', 'yi-u', 'i-a', 'i-ya', 'i-o', 'i-u', 'i-eu', 'i-U', 'U', 'U-eo', 'U-u', 'U-i', 'UU', '[?]', '[?]', '[?]', '[?]', '[?]', 'g', 'gg', 'gs', 'n', 'nj', 'nh', 'd', 'l', 'lg', 'lm', 'lb', 'ls', 'lt', 'lp', 'lh', 'm', 'b', 'bs', 's', 'ss', 'ng', 'j', 'c', 'k', 't', 'p', 'h', 'gl', 'gsg', 'ng', 'nd', 'ns', 'nZ', 'nt', 'dg', 'tl', 'lgs', 'ln', 'ld', 'lth', 'll', 'lmg', 'lms', 'lbs', 'lbh', 'rNp', 'lss', 'lZ', 'lk', 'lQ', 'mg', 'ml', 'mb', 'ms', 'mss', 'mZ', 'mc', 'mh', 'mN', 'bl', 'bp', 'ph', 'pN', 'sg', 'sd', 'sl', 'sb', 'Z', 'g', 'ss', '', 'kh', 'N', 'Ns', 'NZ', 'pb', 'pN', 'hn', 'hl', 'hm', 'hb', 'Q', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x012.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x012.php new file mode 100644 index 000000000..3eeb30aa5 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x012.php @@ -0,0 +1 @@ +<?php return ['ha', 'hu', 'hi', 'haa', 'hee', 'he', 'ho', '[?]', 'la', 'lu', 'li', 'laa', 'lee', 'le', 'lo', 'lwa', 'hha', 'hhu', 'hhi', 'hhaa', 'hhee', 'hhe', 'hho', 'hhwa', 'ma', 'mu', 'mi', 'maa', 'mee', 'me', 'mo', 'mwa', 'sza', 'szu', 'szi', 'szaa', 'szee', 'sze', 'szo', 'szwa', 'ra', 'ru', 'ri', 'raa', 'ree', 're', 'ro', 'rwa', 'sa', 'su', 'si', 'saa', 'see', 'se', 'so', 'swa', 'sha', 'shu', 'shi', 'shaa', 'shee', 'she', 'sho', 'shwa', 'qa', 'qu', 'qi', 'qaa', 'qee', 'qe', 'qo', '[?]', 'qwa', '[?]', 'qwi', 'qwaa', 'qwee', 'qwe', '[?]', '[?]', 'qha', 'qhu', 'qhi', 'qhaa', 'qhee', 'qhe', 'qho', '[?]', 'qhwa', '[?]', 'qhwi', 'qhwaa', 'qhwee', 'qhwe', '[?]', '[?]', 'ba', 'bu', 'bi', 'baa', 'bee', 'be', 'bo', 'bwa', 'va', 'vu', 'vi', 'vaa', 'vee', 've', 'vo', 'vwa', 'ta', 'tu', 'ti', 'taa', 'tee', 'te', 'to', 'twa', 'ca', 'cu', 'ci', 'caa', 'cee', 'ce', 'co', 'cwa', 'xa', 'xu', 'xi', 'xaa', 'xee', 'xe', 'xo', '[?]', 'xwa', '[?]', 'xwi', 'xwaa', 'xwee', 'xwe', '[?]', '[?]', 'na', 'nu', 'ni', 'naa', 'nee', 'ne', 'no', 'nwa', 'nya', 'nyu', 'nyi', 'nyaa', 'nyee', 'nye', 'nyo', 'nywa', '\'a', '\'u', '[?]', '\'aa', '\'ee', '\'e', '\'o', '\'wa', 'ka', 'ku', 'ki', 'kaa', 'kee', 'ke', 'ko', '[?]', 'kwa', '[?]', 'kwi', 'kwaa', 'kwee', 'kwe', '[?]', '[?]', 'kxa', 'kxu', 'kxi', 'kxaa', 'kxee', 'kxe', 'kxo', '[?]', 'kxwa', '[?]', 'kxwi', 'kxwaa', 'kxwee', 'kxwe', '[?]', '[?]', 'wa', 'wu', 'wi', 'waa', 'wee', 'we', 'wo', '[?]', '`a', '`u', '`i', '`aa', '`ee', '`e', '`o', '[?]', 'za', 'zu', 'zi', 'zaa', 'zee', 'ze', 'zo', 'zwa', 'zha', 'zhu', 'zhi', 'zhaa', 'zhee', 'zhe', 'zho', 'zhwa', 'ya', 'yu', 'yi', 'yaa', 'yee', 'ye', 'yo', '[?]', 'da', 'du', 'di', 'daa', 'dee', 'de', 'do', 'dwa', 'dda', 'ddu', 'ddi', 'ddaa', 'ddee', 'dde', 'ddo', 'ddwa']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x013.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x013.php new file mode 100644 index 000000000..67d59528d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x013.php @@ -0,0 +1 @@ +<?php return ['ja', 'ju', 'ji', 'jaa', 'jee', 'je', 'jo', 'jwa', 'ga', 'gu', 'gi', 'gaa', 'gee', 'ge', 'go', '[?]', 'gwa', '[?]', 'gwi', 'gwaa', 'gwee', 'gwe', '[?]', '[?]', 'gga', 'ggu', 'ggi', 'ggaa', 'ggee', 'gge', 'ggo', '[?]', 'tha', 'thu', 'thi', 'thaa', 'thee', 'the', 'tho', 'thwa', 'cha', 'chu', 'chi', 'chaa', 'chee', 'che', 'cho', 'chwa', 'pha', 'phu', 'phi', 'phaa', 'phee', 'phe', 'pho', 'phwa', 'tsa', 'tsu', 'tsi', 'tsaa', 'tsee', 'tse', 'tso', 'tswa', 'tza', 'tzu', 'tzi', 'tzaa', 'tzee', 'tze', 'tzo', '[?]', 'fa', 'fu', 'fi', 'faa', 'fee', 'fe', 'fo', 'fwa', 'pa', 'pu', 'pi', 'paa', 'pee', 'pe', 'po', 'pwa', 'rya', 'mya', 'fya', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', '.', ',', ';', ':', ':: ', '?', '//', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10+', '20+', '30+', '40+', '50+', '60+', '70+', '80+', '90+', '100+', '10,000+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'a', 'e', 'i', 'o', 'u', 'v', 'ga', 'ka', 'ge', 'gi', 'go', 'gu', 'gv', 'ha', 'he', 'hi', 'ho', 'hu', 'hv', 'la', 'le', 'li', 'lo', 'lu', 'lv', 'ma', 'me', 'mi', 'mo', 'mu', 'na', 'hna', 'nah', 'ne', 'ni', 'no', 'nu', 'nv', 'qua', 'que', 'qui', 'quo', 'quu', 'quv', 'sa', 's', 'se', 'si', 'so', 'su', 'sv', 'da', 'ta', 'de', 'te', 'di', 'ti', 'do', 'du', 'dv', 'dla', 'tla', 'tle', 'tli', 'tlo', 'tlu', 'tlv', 'tsa', 'tse', 'tsi', 'tso', 'tsu', 'tsv', 'wa', 'we', 'wi', 'wo', 'wu', 'wv', 'ya', 'ye', 'yi', 'yo', 'yu', 'yv', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x014.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x014.php new file mode 100644 index 000000000..6a9c8862a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x014.php @@ -0,0 +1 @@ +<?php return ['[?]', 'e', 'aai', 'i', 'ii', 'o', 'oo', 'oo', 'ee', 'i', 'a', 'aa', 'we', 'we', 'wi', 'wi', 'wii', 'wii', 'wo', 'wo', 'woo', 'woo', 'woo', 'wa', 'wa', 'waa', 'waa', 'waa', 'ai', 'w', '\'', 't', 'k', 'sh', 's', 'n', 'w', 'n', '[?]', 'w', 'c', '?', 'l', 'en', 'in', 'on', 'an', 'pe', 'paai', 'pi', 'pii', 'po', 'poo', 'poo', 'hee', 'hi', 'pa', 'paa', 'pwe', 'pwe', 'pwi', 'pwi', 'pwii', 'pwii', 'pwo', 'pwo', 'pwoo', 'pwoo', 'pwa', 'pwa', 'pwaa', 'pwaa', 'pwaa', 'p', 'p', 'h', 'te', 'taai', 'ti', 'tii', 'to', 'too', 'too', 'dee', 'di', 'ta', 'taa', 'twe', 'twe', 'twi', 'twi', 'twii', 'twii', 'two', 'two', 'twoo', 'twoo', 'twa', 'twa', 'twaa', 'twaa', 'twaa', 't', 'tte', 'tti', 'tto', 'tta', 'ke', 'kaai', 'ki', 'kii', 'ko', 'koo', 'koo', 'ka', 'kaa', 'kwe', 'kwe', 'kwi', 'kwi', 'kwii', 'kwii', 'kwo', 'kwo', 'kwoo', 'kwoo', 'kwa', 'kwa', 'kwaa', 'kwaa', 'kwaa', 'k', 'kw', 'keh', 'kih', 'koh', 'kah', 'ce', 'caai', 'ci', 'cii', 'co', 'coo', 'coo', 'ca', 'caa', 'cwe', 'cwe', 'cwi', 'cwi', 'cwii', 'cwii', 'cwo', 'cwo', 'cwoo', 'cwoo', 'cwa', 'cwa', 'cwaa', 'cwaa', 'cwaa', 'c', 'th', 'me', 'maai', 'mi', 'mii', 'mo', 'moo', 'moo', 'ma', 'maa', 'mwe', 'mwe', 'mwi', 'mwi', 'mwii', 'mwii', 'mwo', 'mwo', 'mwoo', 'mwoo', 'mwa', 'mwa', 'mwaa', 'mwaa', 'mwaa', 'm', 'm', 'mh', 'm', 'm', 'ne', 'naai', 'ni', 'nii', 'no', 'noo', 'noo', 'na', 'naa', 'nwe', 'nwe', 'nwa', 'nwa', 'nwaa', 'nwaa', 'nwaa', 'n', 'ng', 'nh', 'le', 'laai', 'li', 'lii', 'lo', 'loo', 'loo', 'la', 'laa', 'lwe', 'lwe', 'lwi', 'lwi', 'lwii', 'lwii', 'lwo', 'lwo', 'lwoo', 'lwoo', 'lwa', 'lwa', 'lwaa', 'lwaa', 'l', 'l', 'l', 'se', 'saai', 'si', 'sii', 'so', 'soo', 'soo', 'sa', 'saa', 'swe', 'swe', 'swi', 'swi', 'swii', 'swii', 'swo', 'swo', 'swoo', 'swoo']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x015.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x015.php new file mode 100644 index 000000000..5a9b0bf12 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x015.php @@ -0,0 +1 @@ +<?php return ['swa', 'swa', 'swaa', 'swaa', 'swaa', 's', 's', 'sw', 's', 'sk', 'skw', 'sW', 'spwa', 'stwa', 'skwa', 'scwa', 'she', 'shi', 'shii', 'sho', 'shoo', 'sha', 'shaa', 'shwe', 'shwe', 'shwi', 'shwi', 'shwii', 'shwii', 'shwo', 'shwo', 'shwoo', 'shwoo', 'shwa', 'shwa', 'shwaa', 'shwaa', 'sh', 'ye', 'yaai', 'yi', 'yii', 'yo', 'yoo', 'yoo', 'ya', 'yaa', 'ywe', 'ywe', 'ywi', 'ywi', 'ywii', 'ywii', 'ywo', 'ywo', 'ywoo', 'ywoo', 'ywa', 'ywa', 'ywaa', 'ywaa', 'ywaa', 'y', 'y', 'y', 'yi', 're', 're', 'le', 'raai', 'ri', 'rii', 'ro', 'roo', 'lo', 'ra', 'raa', 'la', 'rwaa', 'rwaa', 'r', 'r', 'r', 'fe', 'faai', 'fi', 'fii', 'fo', 'foo', 'fa', 'faa', 'fwaa', 'fwaa', 'f', 'the', 'the', 'thi', 'thi', 'thii', 'thii', 'tho', 'thoo', 'tha', 'thaa', 'thwaa', 'thwaa', 'th', 'tthe', 'tthi', 'ttho', 'ttha', 'tth', 'tye', 'tyi', 'tyo', 'tya', 'he', 'hi', 'hii', 'ho', 'hoo', 'ha', 'haa', 'h', 'h', 'hk', 'qaai', 'qi', 'qii', 'qo', 'qoo', 'qa', 'qaa', 'q', 'tlhe', 'tlhi', 'tlho', 'tlha', 're', 'ri', 'ro', 'ra', 'ngaai', 'ngi', 'ngii', 'ngo', 'ngoo', 'nga', 'ngaa', 'ng', 'nng', 'she', 'shi', 'sho', 'sha', 'the', 'thi', 'tho', 'tha', 'th', 'lhi', 'lhii', 'lho', 'lhoo', 'lha', 'lhaa', 'lh', 'the', 'thi', 'thii', 'tho', 'thoo', 'tha', 'thaa', 'th', 'b', 'e', 'i', 'o', 'a', 'we', 'wi', 'wo', 'wa', 'ne', 'ni', 'no', 'na', 'ke', 'ki', 'ko', 'ka', 'he', 'hi', 'ho', 'ha', 'ghu', 'gho', 'ghe', 'ghee', 'ghi', 'gha', 'ru', 'ro', 're', 'ree', 'ri', 'ra', 'wu', 'wo', 'we', 'wee', 'wi', 'wa', 'hwu', 'hwo', 'hwe', 'hwee', 'hwi', 'hwa', 'thu', 'tho', 'the', 'thee', 'thi', 'tha', 'ttu', 'tto', 'tte', 'ttee', 'tti', 'tta', 'pu', 'po', 'pe', 'pee', 'pi', 'pa', 'p', 'gu', 'go', 'ge', 'gee', 'gi', 'ga', 'khu', 'kho', 'khe', 'khee', 'khi', 'kha', 'kku', 'kko', 'kke', 'kkee', 'kki']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x016.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x016.php new file mode 100644 index 000000000..49b4b937e --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x016.php @@ -0,0 +1 @@ +<?php return ['kka', 'kk', 'nu', 'no', 'ne', 'nee', 'ni', 'na', 'mu', 'mo', 'me', 'mee', 'mi', 'ma', 'yu', 'yo', 'ye', 'yee', 'yi', 'ya', 'ju', 'ju', 'jo', 'je', 'jee', 'ji', 'ji', 'ja', 'jju', 'jjo', 'jje', 'jjee', 'jji', 'jja', 'lu', 'lo', 'le', 'lee', 'li', 'la', 'dlu', 'dlo', 'dle', 'dlee', 'dli', 'dla', 'lhu', 'lho', 'lhe', 'lhee', 'lhi', 'lha', 'tlhu', 'tlho', 'tlhe', 'tlhee', 'tlhi', 'tlha', 'tlu', 'tlo', 'tle', 'tlee', 'tli', 'tla', 'zu', 'zo', 'ze', 'zee', 'zi', 'za', 'z', 'z', 'dzu', 'dzo', 'dze', 'dzee', 'dzi', 'dza', 'su', 'so', 'se', 'see', 'si', 'sa', 'shu', 'sho', 'she', 'shee', 'shi', 'sha', 'sh', 'tsu', 'tso', 'tse', 'tsee', 'tsi', 'tsa', 'chu', 'cho', 'che', 'chee', 'chi', 'cha', 'ttsu', 'ttso', 'ttse', 'ttsee', 'ttsi', 'ttsa', 'X', '.', 'qai', 'ngai', 'nngi', 'nngii', 'nngo', 'nngoo', 'nnga', 'nngaa', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', 'b', 'l', 'f', 's', 'n', 'h', 'd', 't', 'c', 'q', 'm', 'g', 'ng', 'z', 'r', 'a', 'o', 'u', 'e', 'i', 'ch', 'th', 'ph', 'p', 'x', 'p', '<', '>', '[?]', '[?]', '[?]', 'f', 'v', 'u', 'yr', 'y', 'w', 'th', 'th', 'a', 'o', 'ac', 'ae', 'o', 'o', 'o', 'oe', 'on', 'r', 'k', 'c', 'k', 'g', 'ng', 'g', 'g', 'w', 'h', 'h', 'h', 'h', 'n', 'n', 'n', 'i', 'e', 'j', 'g', 'ae', 'a', 'eo', 'p', 'z', 's', 's', 's', 'c', 'z', 't', 't', 'd', 'b', 'b', 'p', 'p', 'e', 'm', 'm', 'm', 'l', 'l', 'ng', 'ng', 'd', 'o', 'ear', 'ior', 'qu', 'qu', 'qu', 's', 'yr', 'yr', 'yr', 'q', 'x', '.', ':', '+', '17', '18', '19', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x017.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x017.php new file mode 100644 index 000000000..8f2a7cac1 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x017.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 't', 'tth', 'd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'l', 'v', 'sh', 'ss', 's', 'h', 'l', 'q', 'a', 'aa', 'i', 'ii', 'u', 'uk', 'uu', 'uuv', 'ry', 'ryy', 'ly', 'lyy', 'e', 'ai', 'oo', 'oo', 'au', 'a', 'aa', 'aa', 'i', 'ii', 'y', 'yy', 'u', 'uu', 'ua', 'oe', 'ya', 'ie', 'e', 'ae', 'ai', 'oo', 'au', 'M', 'H', 'a`', '', '', '', 'r', '', '!', '', '', '', '', '', '.', ' // ', ':', '+', '++', ' * ', ' /// ', 'KR', '\'', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x018.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x018.php new file mode 100644 index 000000000..d4a1350f5 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x018.php @@ -0,0 +1 @@ +<?php return [' @ ', ' ... ', ', ', '. ', ': ', ' // ', '', '-', ', ', '. ', '', '', '', '', '', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'a', 'e', 'i', 'o', 'u', 'O', 'U', 'ee', 'n', 'ng', 'b', 'p', 'q', 'g', 'm', 'l', 's', 'sh', 't', 'd', 'ch', 'j', 'y', 'r', 'w', 'f', 'k', 'kha', 'ts', 'z', 'h', 'zr', 'lh', 'zh', 'ch', '-', 'e', 'i', 'o', 'u', 'O', 'U', 'ng', 'b', 'p', 'q', 'g', 'm', 't', 'd', 'ch', 'j', 'ts', 'y', 'w', 'k', 'g', 'h', 'jy', 'ny', 'dz', 'e', 'i', 'iy', 'U', 'u', 'ng', 'k', 'g', 'h', 'p', 'sh', 't', 'd', 'j', 'f', 'g', 'h', 'ts', 'z', 'r', 'ch', 'zh', 'i', 'k', 'r', 'f', 'zh', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'H', 'X', 'W', 'M', ' 3 ', ' 333 ', 'a', 'i', 'k', 'ng', 'c', 'tt', 'tth', 'dd', 'nn', 't', 'd', 'p', 'ph', 'ss', 'zh', 'z', 'a', 't', 'zh', 'gh', 'ng', 'c', 'jh', 'tta', 'ddh', 't', 'dh', 'ss', 'cy', 'zh', 'z', 'u', 'y', 'bh', '\'', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x01d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x01d.php new file mode 100644 index 000000000..2842a4d64 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x01d.php @@ -0,0 +1 @@ +<?php return ['A', 'AE', 'ae', 'B', 'C', 'D', 'D', 'E', 'e', 'i', 'J', 'K', 'L', 'M', 'N', 'O', '', 'O', '', 'O', 'Oe', 'Ou', '', '', 'P', 'R', 'R', 'T', 'U', 'u', 'u', 'm', 'V', 'W', 'Z', '', '', '', '', '', '', '', '', '', 'A', 'AE', 'B', 'B', 'D', 'E', 'E', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'N', 'O', 'Ou', 'P', 'R', 'T', 'U', 'W', 'a', 'a', 'a', 'ae', 'b', 'd', 'e', '', 'e', 'e', 'g', 'i', 'k', 'm', '', 'o', '', '', '', 'p', 't', 'u', 'u', 'm', 'v', '', 'b', 'g', 'd', 'f', '', 'i', 'r', 'u', 'v', 'b', 'g', 'r', 'f', '', '', 'b', 'd', 'f', 'm', 'n', 'p', 'r', 'r', 's', 't', 'z', 'g', '', '', '', '', '', 'p', '', '', 'b', 'd', 'f', 'g', 'k', 'l', 'm', 'n', 'p', 'r', 's', '', 'v', 'x', 'z', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x01e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x01e.php new file mode 100644 index 000000000..24ca9f470 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x01e.php @@ -0,0 +1 @@ +<?php return ['A', 'a', 'B', 'b', 'B', 'b', 'B', 'b', 'C', 'c', 'D', 'd', 'D', 'd', 'D', 'd', 'D', 'd', 'D', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'H', 'h', 'H', 'h', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'K', 'k', 'K', 'k', 'K', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'M', 'm', 'M', 'm', 'M', 'm', 'N', 'n', 'N', 'n', 'N', 'n', 'N', 'n', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'P', 'p', 'P', 'p', 'R', 'r', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'T', 't', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'V', 'v', 'V', 'v', 'W', 'w', 'W', 'w', 'W', 'w', 'W', 'w', 'W', 'w', 'X', 'x', 'X', 'x', 'Y', 'y', 'Z', 'z', 'Z', 'z', 'Z', 'z', 'h', 't', 'w', 'y', 'a', 's', 's', 's', 'Ss', 'd', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'Y', 'y', 'Y', 'y', 'Y', 'y', 'Y', 'y', 'LL', 'll', 'V', 'v', 'Y', 'y']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x01f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x01f.php new file mode 100644 index 000000000..490dd5d9e --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x01f.php @@ -0,0 +1 @@ +<?php return ['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'e', 'e', 'e', 'e', 'e', 'e', '[?]', '[?]', 'E', 'E', 'E', 'E', 'E', 'E', '[?]', '[?]', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'I', 'I', 'I', 'I', 'I', 'I', 'I', 'I', 'o', 'o', 'o', 'o', 'o', 'o', '[?]', '[?]', 'O', 'O', 'O', 'O', 'O', 'O', '[?]', '[?]', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', '[?]', 'U', '[?]', 'U', '[?]', 'U', '[?]', 'U', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'a', 'a', 'e', 'e', 'e', 'e', 'i', 'i', 'o', 'o', 'u', 'u', 'o', 'o', '[?]', '[?]', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'a', 'a', 'a', 'a', 'a', '[?]', 'a', 'a', 'A', 'A', 'A', 'A', 'A', '\'', 'i', '\'', '~', '"~', 'e', 'e', 'e', '[?]', 'e', 'e', 'E', 'E', 'E', 'E', 'E', '\'`', '\'\'', '\'~', 'i', 'i', 'i', 'i', '[?]', '[?]', 'i', 'i', 'I', 'I', 'I', 'I', '[?]', '`\'', '`\'', '`~', 'u', 'u', 'u', 'u', 'R', 'R', 'u', 'u', 'U', 'U', 'U', 'U', 'R', '"`', '"\'', '`', '[?]', '[?]', 'o', 'o', 'o', '[?]', 'o', 'o', 'O', 'O', 'O', 'O', 'O', '\'', '`', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x020.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x020.php new file mode 100644 index 000000000..3e8495145 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x020.php @@ -0,0 +1,4 @@ +<?php return [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', '', '', '-', '-', '-', '-', '--', '--', '||', '_', '\'', '\'', ',', '\'', '"', '"', ',,', '"', '+', '++', '*', '*>', '.', '..', '...', '.', "\n", + "\n\n", + '', '', '', '', '', ' ', '%0', '%00', '\'', '\'\'', '\'\'\'', '`', '``', '```', '^', '<', '>', '*', '!!', '!?', '-', '_', '-', '^', '***', '--', '/', '-[', ']-', '??', '?!', '!?', '7', 'PP', '(]', '[)', '*', '[?]', '[?]', '[?]', '%', '~', '[?]', '[?]', '[?]', "''''", // 0x57 + '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '0', 'i', '', '', '4', '5', '6', '7', '8', '9', '+', '-', '=', '(', ')', 'n', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '-', '=', '(', ')', '[?]', 'a', 'e', 'o', 'x', '[?]', 'h', 'k', 'l', 'm', 'n', 'p', 's', 't', '[?]', '[?]', '[?]', 'ECU', 'CL', 'Cr', 'Fr.', 'L.', 'mil', 'N', 'Pts', 'Rs', 'W', 'NS', 'D', 'EUR', 'K', 'T', 'Dr', 'Pf', 'P', 'G', 'A', 'UAH', 'C|', 'L', 'Sm', 'T', 'Rs', 'L', 'M', 'm', 'R', 'l', 'BTC', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x021.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x021.php new file mode 100644 index 000000000..1643d67dc --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x021.php @@ -0,0 +1 @@ +<?php return [' a/c ', ' a/s ', 'C', '', '', ' c/o ', ' c/u ', '', '', '', 'g', 'H', 'H', 'H', 'h', '', 'I', 'I', 'L', 'l', '', 'N', 'No. ', '', '', 'P', 'Q', 'R', 'R', 'R', '', '', '(sm)', 'TEL', '(tm)', '', 'Z', '', '', '', 'Z', '', 'K', 'A', 'B', 'C', 'e', 'e', 'E', 'F', 'F', 'M', 'o', '', '', '', '', 'i', '', 'FAX', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', 'D', 'd', 'e', 'i', 'j', '[?]', '[?]', '[?]', '[?]', 'F', '[?]', ' 1/7 ', ' 1/9 ', ' 1/10 ', ' 1/3 ', ' 2/3 ', ' 1/5 ', ' 2/5 ', ' 3/5 ', ' 4/5 ', ' 1/6 ', ' 5/6 ', ' 1/8 ', ' 3/8 ', ' 5/8 ', ' 7/8 ', ' 1/', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'L', 'C', 'D', 'M', 'i', 'ii', 'iii', 'iv', 'v', 'vi', 'vii', 'viii', 'ix', 'x', 'xi', 'xii', 'l', 'c', 'd', 'm', '(D', 'D)', '((|))', ')', '[?]', '[?]', '[?]', '[?]', '[?]', ' 0/3 ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '-', '|', '-', '|', '-', '|', '\\', '/', '\\', '/', '-', '-', '~', '~', '-', '|', '-', '|', '-', '-', '-', '|', '-', '|', '|', '-', '-', '-', '-', '-', '-', '|', '|', '|', '|', '|', '|', '|', '^', 'V', '\\', '=', 'V', '^', '-', '-', '|', '|', '-', '-', '|', '|', '=', '|', '=', '=', '|', '=', '|', '=', '=', '=', '=', '=', '=', '|', '=', '|', '=', '|', '\\', '/', '\\', '/', '=', '=', '~', '~', '|', '|', '-', '|', '-', '|', '-', '-', '-', '|', '-', '|', '|', '|', '|', '|', '|', '|', '-', '\\', '\\', '|', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x022.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x022.php new file mode 100644 index 000000000..4a6763e79 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x022.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '-', '[?]', '[?]', '/', '\\', '*', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '|', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ':', '[?]', '[?]', '[?]', '[?]', '[?]', '~', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '<=', '>=', '<=', '>=', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x023.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x023.php new file mode 100644 index 000000000..b8f4ca0d2 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x023.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '^', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '<', '> ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x024.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x024.php new file mode 100644 index 000000000..26abcc69a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x024.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '(1)', '(2)', '(3)', '(4)', '(5)', '(6)', '(7)', '(8)', '(9)', '(10)', '(11)', '(12)', '(13)', '(14)', '(15)', '(16)', '(17)', '(18)', '(19)', '(20)', '1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.', '13.', '14.', '15.', '16.', '17.', '18.', '19.', '20.', '(a)', '(b)', '(c)', '(d)', '(e)', '(f)', '(g)', '(h)', '(i)', '(j)', '(k)', '(l)', '(m)', '(n)', '(o)', '(p)', '(q)', '(r)', '(s)', '(t)', '(u)', '(v)', '(w)', '(x)', '(y)', '(z)', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '0']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x025.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x025.php new file mode 100644 index 000000000..7826f84e7 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x025.php @@ -0,0 +1 @@ +<?php return ['-', '-', '|', '|', '-', '-', '|', '|', '-', '-', '|', '|', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '-', '-', '|', '|', '-', '|', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '/', '\\', 'X', '-', '|', '-', '|', '-', '|', '-', '|', '-', '|', '-', '|', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '-', '|', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '^', '^', '^', '^', '>', '>', '>', '>', '>', '>', 'V', 'V', 'V', 'V', '<', '<', '<', '<', '<', '<', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '#', '#', '#', '#', '#', '^', '^', '^', 'O', '#', '#', '#', '#', 'O', 'O', 'O', 'O', '/', '\\\\', '\\\\', '#', '#', '#', '#', '/']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x026.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x026.php new file mode 100644 index 000000000..0c97de3f8 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x026.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '#', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x027.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x027.php new file mode 100644 index 000000000..d24e4401a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x027.php @@ -0,0 +1 @@ +<?php return ['[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '*', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '|', '', '', '', '', '', '', '[?]', '[?]', '', '!', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[', '[?]', '<', '> ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x028.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x028.php new file mode 100644 index 000000000..9585d9149 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x028.php @@ -0,0 +1 @@ +<?php return [' ', 'a', '1', 'b', '\'', 'k', '2', 'l', '@', 'c', 'i', 'f', '/', 'm', 's', 'p', '"', 'e', '3', 'h', '9', 'o', '6', 'r', '^', 'd', 'j', 'g', '>', 'n', 't', 'q', ',', '*', '5', '<', '-', 'u', '8', 'v', '.', '%', '[', '$', '+', 'x', '!', '&', ';', ':', '4', '\\', '0', 'z', '7', '(', '_', '?', 'w', ']', '#', 'y', ')', '=', '[d7]', '[d17]', '[d27]', '[d127]', '[d37]', '[d137]', '[d237]', '[d1237]', '[d47]', '[d147]', '[d247]', '[d1247]', '[d347]', '[d1347]', '[d2347]', '[d12347]', '[d57]', '[d157]', '[d257]', '[d1257]', '[d357]', '[d1357]', '[d2357]', '[d12357]', '[d457]', '[d1457]', '[d2457]', '[d12457]', '[d3457]', '[d13457]', '[d23457]', '[d123457]', '[d67]', '[d167]', '[d267]', '[d1267]', '[d367]', '[d1367]', '[d2367]', '[d12367]', '[d467]', '[d1467]', '[d2467]', '[d12467]', '[d3467]', '[d13467]', '[d23467]', '[d123467]', '[d567]', '[d1567]', '[d2567]', '[d12567]', '[d3567]', '[d13567]', '[d23567]', '[d123567]', '[d4567]', '[d14567]', '[d24567]', '[d124567]', '[d34567]', '[d134567]', '[d234567]', '[d1234567]', '[d8]', '[d18]', '[d28]', '[d128]', '[d38]', '[d138]', '[d238]', '[d1238]', '[d48]', '[d148]', '[d248]', '[d1248]', '[d348]', '[d1348]', '[d2348]', '[d12348]', '[d58]', '[d158]', '[d258]', '[d1258]', '[d358]', '[d1358]', '[d2358]', '[d12358]', '[d458]', '[d1458]', '[d2458]', '[d12458]', '[d3458]', '[d13458]', '[d23458]', '[d123458]', '[d68]', '[d168]', '[d268]', '[d1268]', '[d368]', '[d1368]', '[d2368]', '[d12368]', '[d468]', '[d1468]', '[d2468]', '[d12468]', '[d3468]', '[d13468]', '[d23468]', '[d123468]', '[d568]', '[d1568]', '[d2568]', '[d12568]', '[d3568]', '[d13568]', '[d23568]', '[d123568]', '[d4568]', '[d14568]', '[d24568]', '[d124568]', '[d34568]', '[d134568]', '[d234568]', '[d1234568]', '[d78]', '[d178]', '[d278]', '[d1278]', '[d378]', '[d1378]', '[d2378]', '[d12378]', '[d478]', '[d1478]', '[d2478]', '[d12478]', '[d3478]', '[d13478]', '[d23478]', '[d123478]', '[d578]', '[d1578]', '[d2578]', '[d12578]', '[d3578]', '[d13578]', '[d23578]', '[d123578]', '[d4578]', '[d14578]', '[d24578]', '[d124578]', '[d34578]', '[d134578]', '[d234578]', '[d1234578]', '[d678]', '[d1678]', '[d2678]', '[d12678]', '[d3678]', '[d13678]', '[d23678]', '[d123678]', '[d4678]', '[d14678]', '[d24678]', '[d124678]', '[d34678]', '[d134678]', '[d234678]', '[d1234678]', '[d5678]', '[d15678]', '[d25678]', '[d125678]', '[d35678]', '[d135678]', '[d235678]', '[d1235678]', '[d45678]', '[d145678]', '[d245678]', '[d1245678]', '[d345678]', '[d1345678]', '[d2345678]', '[d12345678]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x029.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x029.php new file mode 100644 index 000000000..5162de386 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x029.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '{', '} ', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x02a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x02a.php new file mode 100644 index 000000000..e3ca5520b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x02a.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '::=', '==', '===', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x02c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x02c.php new file mode 100644 index 000000000..31f84d814 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x02c.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'L', 'l', 'L', 'P', 'R', 'a', 't', 'H', 'h', 'K', 'k', 'Z', 'z', '', 'M', 'A', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x02e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x02e.php new file mode 100644 index 000000000..b45c47093 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x02e.php @@ -0,0 +1 @@ +<?php return ['r', 'r.', '[?]', '[?]', '[?]', '[?]', 'T', 'T.', '[?]', 's', '[?]', '[]', '\\', '/', '[?]', '__', '[?]', '[?]', '>', '%', '[?]', '[?]', '>', '=', '[?]', '/', '-', '~', '\\', '/', '~', '~', '|-', '-|', '[?]', '[?]', '[?]', '[?]', '<=', '=>', '((', '))', '[?]', '[?]', '::', '[?]', '?', '\'', 'o', '.', ',', '.', ',', ';', '[?]', '[?]', '[?]', '[?]', '----', '------', 'x', '|', '[?]', '[?]', '=', ',', '"', '`--', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x02f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x02f.php new file mode 100644 index 000000000..5147b5740 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x02f.php @@ -0,0 +1 @@ +<?php return ['[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x030.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x030.php new file mode 100644 index 000000000..5880d768b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x030.php @@ -0,0 +1,9 @@ +<?php return [' ', ', ', '. ', '"', '[JIS]', '"', '/', '0', '<', '> ', '<<', '>> ', '[', '] ', '{', '} ', '[(', ')] ', '@', 'X ', '[', '] ', '[[', ']] ', '((', ')) ', '[[', ']] ', '~ ', '``', '\'\'', ',,', '@', '1', '2', '3', '4', '5', '6', '7', '8', '9', '', '', '', '', '', '', '~', '+', '+', '+', '+', '', '@', ' // ', '+10+', '+20+', '+30+', '[?]', '[?]', '[?]', '', '', '[?]', 'a', 'a', 'i', 'i', 'u', 'u', 'e', 'e', 'o', 'o', 'ka', 'ga', 'ki', 'gi', 'ku', 'gu', 'ke', 'ge', 'ko', 'go', 'sa', 'za', 'shi', // 0x57 + 'zi', 'su', 'zu', 'se', 'ze', 'so', 'zo', 'ta', 'da', 'chi', // 0x61 + 'di', 'tsu', // 0x63 + 'tsu', // 0x64 + 'du', 'te', 'de', 'to', 'do', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'ba', 'pa', 'hi', 'bi', 'pi', 'hu', 'bu', 'pu', 'he', 'be', 'pe', 'ho', 'bo', 'po', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'ya', 'yu', 'yu', 'yo', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'wa', 'wi', 'we', 'wo', 'n', 'vu', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '"', '"', '[?]', '[?]', 'a', 'a', 'i', 'i', 'u', 'u', 'e', 'e', 'o', 'o', 'ka', 'ga', 'ki', 'gi', 'ku', 'gu', 'ke', 'ge', 'ko', 'go', 'sa', 'za', 'shi', // 0xb7 + 'zi', 'su', 'zu', 'se', 'ze', 'so', 'zo', 'ta', 'da', 'chi', // 0xc1 + 'di', 'tsu', // 0xc3 + 'tsu', // 0xc4 + 'du', 'te', 'de', 'to', 'do', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'ba', 'pa', 'hi', 'bi', 'pi', 'hu', 'bu', 'pu', 'he', 'be', 'pe', 'ho', 'bo', 'po', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'ya', 'yu', 'yu', 'yo', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'wa', 'wi', 'we', 'wo', 'n', 'vu', 'ka', 'ke', 'va', 'vi', 've', 'vo', '', '', '"', '"', ]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x031.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x031.php new file mode 100644 index 000000000..72c0260cf --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x031.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '[?]', '[?]', 'B', 'P', 'M', 'F', 'D', 'T', 'N', 'L', 'G', 'K', 'H', 'J', 'Q', 'X', 'ZH', 'CH', 'SH', 'R', 'Z', 'C', 'S', 'A', 'O', 'E', 'EH', 'AI', 'EI', 'AU', 'OU', 'AN', 'EN', 'ANG', 'ENG', 'ER', 'I', 'U', 'IU', 'V', 'NG', 'GN', '[?]', '[?]', '[?]', '[?]', 'g', 'gg', 'gs', 'n', 'nj', 'nh', 'd', 'dd', 'r', 'lg', 'lm', 'lb', 'ls', 'lt', 'lp', 'rh', 'm', 'b', 'bb', 'bs', 's', 'ss', '', 'j', 'jj', 'c', 'k', 't', 'p', 'h', 'a', 'ae', 'ya', 'yae', 'eo', 'e', 'yeo', 'ye', 'o', 'wa', 'wae', 'oe', 'yo', 'u', 'weo', 'we', 'wi', 'yu', 'eu', 'yi', 'i', '', 'nn', 'nd', 'ns', 'nZ', 'lgs', 'ld', 'lbs', 'lZ', 'lQ', 'mb', 'ms', 'mZ', 'mN', 'bg', '', 'bsg', 'bst', 'bj', 'bt', 'bN', 'bbN', 'sg', 'sn', 'sd', 'sb', 'sj', 'Z', '', 'N', 'Ns', 'NZ', 'pN', 'hh', 'Q', 'yo-ya', 'yo-yae', 'yo-i', 'yu-yeo', 'yu-ye', 'yu-i', 'U', 'U-i', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'BU', 'ZI', 'JI', 'GU', 'EE', 'ENN', 'OO', 'ONN', 'IR', 'ANN', 'INN', 'UNN', 'IM', 'NGG', 'AINN', 'AUNN', 'AM', 'OM', 'ONG', 'INNN', 'P', 'T', 'K', 'H', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x032.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x032.php new file mode 100644 index 000000000..f5df8c8b2 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x032.php @@ -0,0 +1 @@ +<?php return ['(g)', '(n)', '(d)', '(r)', '(m)', '(b)', '(s)', '()', '(j)', '(c)', '(k)', '(t)', '(p)', '(h)', '(ga)', '(na)', '(da)', '(ra)', '(ma)', '(ba)', '(sa)', '(a)', '(ja)', '(ca)', '(ka)', '(ta)', '(pa)', '(ha)', '(ju)', '[?]', '[?]', '[?]', '(1) ', '(2) ', '(3) ', '(4) ', '(5) ', '(6) ', '(7) ', '(8) ', '(9) ', '(10) ', '(Yue) ', '(Huo) ', '(Shui) ', '(Mu) ', '(Jin) ', '(Tu) ', '(Ri) ', '(Zhu) ', '(You) ', '(She) ', '(Ming) ', '(Te) ', '(Cai) ', '(Zhu) ', '(Lao) ', '(Dai) ', '(Hu) ', '(Xue) ', '(Jian) ', '(Qi) ', '(Zi) ', '(Xie) ', '(Ji) ', '(Xiu) ', '<<', '>>', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '(g)', '(n)', '(d)', '(r)', '(m)', '(b)', '(s)', '()', '(j)', '(c)', '(k)', '(t)', '(p)', '(h)', '(ga)', '(na)', '(da)', '(ra)', '(ma)', '(ba)', '(sa)', '(a)', '(ja)', '(ca)', '(ka)', '(ta)', '(pa)', '(ha)', '[?]', '[?]', '[?]', 'KIS ', '(1) ', '(2) ', '(3) ', '(4) ', '(5) ', '(6) ', '(7) ', '(8) ', '(9) ', '(10) ', '(Yue) ', '(Huo) ', '(Shui) ', '(Mu) ', '(Jin) ', '(Tu) ', '(Ri) ', '(Zhu) ', '(You) ', '(She) ', '(Ming) ', '(Te) ', '(Cai) ', '(Zhu) ', '(Lao) ', '(Mi) ', '(Nan) ', '(Nu) ', '(Shi) ', '(You) ', '(Yin) ', '(Zhu) ', '(Xiang) ', '(Xiu) ', '(Xie) ', '(Zheng) ', '(Shang) ', '(Zhong) ', '(Xia) ', '(Zuo) ', '(You) ', '(Yi) ', '(Zong) ', '(Xue) ', '(Jian) ', '(Qi) ', '(Zi) ', '(Xie) ', '(Ye) ', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '1M', '2M', '3M', '4M', '5M', '6M', '7M', '8M', '9M', '10M', '11M', '12M', 'Hg', 'erg', 'eV', 'LTD', 'a', 'i', 'u', 'u', 'o', 'ka', 'ki', 'ku', 'ke', 'ko', 'sa', 'si', 'su', 'se', 'so', 'ta', 'ti', 'tu', 'te', 'to', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'hi', 'hu', 'he', 'ho', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'yu', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'wi', 'we', 'wo']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x033.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x033.php new file mode 100644 index 000000000..8505337e3 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x033.php @@ -0,0 +1 @@ +<?php return ['apartment', 'alpha', 'ampere', 'are', 'inning', 'inch', 'won', 'escudo', 'acre', 'ounce', 'ohm', 'kai-ri', 'carat', 'calorie', 'gallon', 'gamma', 'giga', 'guinea', 'curie', 'guilder', 'kilo', 'kilogram', 'kilometer', 'kilowatt', 'gram', 'gram ton', 'cruzeiro', 'krone', 'case', 'koruna', 'co-op', 'cycle', 'centime', 'shilling', 'centi', 'cent', 'dozen', 'desi', 'dollar', 'ton', 'nano', 'knot', 'heights', 'percent', 'parts', 'barrel', 'piaster', 'picul', 'pico', 'building', 'farad', 'feet', 'bushel', 'franc', 'hectare', 'peso', 'pfennig', 'hertz', 'pence', 'page', 'beta', 'point', 'volt', 'hon', 'pound', 'hall', 'horn', 'micro', 'mile', 'mach', 'mark', 'mansion', 'micron', 'milli', 'millibar', 'mega', 'megaton', 'meter', 'yard', 'yard', 'yuan', 'liter', 'lira', 'rupee', 'ruble', 'rem', 'roentgen', 'watt', '0h', '1h', '2h', '3h', '4h', '5h', '6h', '7h', '8h', '9h', '10h', '11h', '12h', '13h', '14h', '15h', '16h', '17h', '18h', '19h', '20h', '21h', '22h', '23h', '24h', 'hPa', 'da', 'AU', 'bar', 'oV', 'pc', 'dm', 'dm^2', 'dm^3', 'IU', 'Heisei', 'Syouwa', 'Taisyou', 'Meiji', 'Inc.', 'pA', 'nA', 'microamp', 'mA', 'kA', 'kB', 'MB', 'GB', 'cal', 'kcal', 'pF', 'nF', 'microFarad', 'microgram', 'mg', 'kg', 'Hz', 'kHz', 'MHz', 'GHz', 'THz', 'microliter', 'ml', 'dl', 'kl', 'fm', 'nm', 'micrometer', 'mm', 'cm', 'km', 'mm^2', 'cm^2', 'm^2', 'km^2', 'mm^3', 'cm^3', 'm^3', 'km^3', 'm/s', 'm/s^2', 'Pa', 'kPa', 'MPa', 'GPa', 'rad', 'rad/s', 'rad/s^2', 'ps', 'ns', 'microsecond', 'ms', 'pV', 'nV', 'microvolt', 'mV', 'kV', 'MV', 'pW', 'nW', 'microwatt', 'mW', 'kW', 'MW', 'kOhm', 'MOhm', 'a.m.', 'Bq', 'cc', 'cd', 'C/kg', 'Co.', 'dB', 'Gy', 'ha', 'HP', 'in', 'K.K.', 'KM', 'kt', 'lm', 'ln', 'log', 'lx', 'mb', 'mil', 'mol', 'pH', 'p.m.', 'PPM', 'PR', 'sr', 'Sv', 'Wb', '[?]', '[?]', '1d', '2d', '3d', '4d', '5d', '6d', '7d', '8d', '9d', '10d', '11d', '12d', '13d', '14d', '15d', '16d', '17d', '18d', '19d', '20d', '21d', '22d', '23d', '24d', '25d', '26d', '27d', '28d', '29d', '30d', '31d', 'gal']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x04d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x04d.php new file mode 100644 index 000000000..59b23f524 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x04d.php @@ -0,0 +1 @@ +<?php return ['[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x04e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x04e.php new file mode 100644 index 000000000..ae51afcca --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x04e.php @@ -0,0 +1 @@ +<?php return ['Yi ', 'Ding ', 'Kao ', 'Qi ', 'Shang ', 'Xia ', '[?] ', 'Mo ', 'Zhang ', 'San ', 'Shang ', 'Xia ', 'Ji ', 'Bu ', 'Yu ', 'Mian ', 'Gai ', 'Chou ', 'Chou ', 'Zhuan ', 'Qie ', 'Pi ', 'Shi ', 'Shi ', 'Qiu ', 'Bing ', 'Ye ', 'Cong ', 'Dong ', 'Si ', 'Cheng ', 'Diu ', 'Qiu ', 'Liang ', 'Diu ', 'You ', 'Liang ', 'Yan ', 'Bing ', 'Sang ', 'Gun ', 'Jiu ', 'Ge ', 'Ya ', 'Qiang ', 'Zhong ', 'Ji ', 'Jie ', 'Feng ', 'Guan ', 'Chuan ', 'Chan ', 'Lin ', 'Zhuo ', 'Zhu ', 'Ha ', 'Wan ', 'Dan ', 'Wei ', 'Zhu ', 'Jing ', 'Li ', 'Ju ', 'Pie ', 'Fu ', 'Yi ', 'Yi ', 'Nai ', 'Shime ', 'Jiu ', 'Jiu ', 'Zhe ', 'Yao ', 'Yi ', '[?] ', 'Zhi ', 'Wu ', 'Zha ', 'Hu ', 'Fa ', 'Le ', 'Zhong ', 'Ping ', 'Pang ', 'Qiao ', 'Hu ', 'Guai ', 'Cheng ', 'Cheng ', 'Yi ', 'Yin ', '[?] ', 'Mie ', 'Jiu ', 'Qi ', 'Ye ', 'Xi ', 'Xiang ', 'Gai ', 'Diu ', 'Hal ', '[?] ', 'Shu ', 'Twul ', 'Shi ', 'Ji ', 'Nang ', 'Jia ', 'Kel ', 'Shi ', '[?] ', 'Ol ', 'Mai ', 'Luan ', 'Cal ', 'Ru ', 'Xue ', 'Yan ', 'Fu ', 'Sha ', 'Na ', 'Gan ', 'Sol ', 'El ', 'Cwul ', '[?] ', 'Gan ', 'Chi ', 'Gui ', 'Gan ', 'Luan ', 'Lin ', 'Yi ', 'Jue ', 'Liao ', 'Ma ', 'Yu ', 'Zheng ', 'Shi ', 'Shi ', 'Er ', 'Chu ', 'Yu ', 'Yu ', 'Yu ', 'Yun ', 'Hu ', 'Qi ', 'Wu ', 'Jing ', 'Si ', 'Sui ', 'Gen ', 'Gen ', 'Ya ', 'Xie ', 'Ya ', 'Qi ', 'Ya ', 'Ji ', 'Tou ', 'Wang ', 'Kang ', 'Ta ', 'Jiao ', 'Hai ', 'Yi ', 'Chan ', 'Heng ', 'Mu ', '[?] ', 'Xiang ', 'Jing ', 'Ting ', 'Liang ', 'Xiang ', 'Jing ', 'Ye ', 'Qin ', 'Bo ', 'You ', 'Xie ', 'Dan ', 'Lian ', 'Duo ', 'Wei ', 'Ren ', 'Ren ', 'Ji ', 'La ', 'Wang ', 'Yi ', 'Shi ', 'Ren ', 'Le ', 'Ding ', 'Ze ', 'Jin ', 'Pu ', 'Chou ', 'Ba ', 'Zhang ', 'Jin ', 'Jie ', 'Bing ', 'Reng ', 'Cong ', 'Fo ', 'San ', 'Lun ', 'Sya ', 'Cang ', 'Zi ', 'Shi ', 'Ta ', 'Zhang ', 'Fu ', 'Xian ', 'Xian ', 'Tuo ', 'Hong ', 'Tong ', 'Ren ', 'Qian ', 'Gan ', 'Yi ', 'Di ', 'Dai ', 'Ling ', 'Yi ', 'Chao ', 'Chang ', 'Sa ', '[?] ', 'Yi ', 'Mu ', 'Men ', 'Ren ', 'Jia ', 'Chao ', 'Yang ', 'Qian ', 'Zhong ', 'Pi ', 'Wan ', 'Wu ', 'Jian ', 'Jie ', 'Yao ', 'Feng ', 'Cang ', 'Ren ', 'Wang ', 'Fen ', 'Di ', 'Fang ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x04f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x04f.php new file mode 100644 index 000000000..a42bb3e74 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x04f.php @@ -0,0 +1 @@ +<?php return ['Zhong ', 'Qi ', 'Pei ', 'Yu ', 'Diao ', 'Dun ', 'Wen ', 'Yi ', 'Xin ', 'Kang ', 'Yi ', 'Ji ', 'Ai ', 'Wu ', 'Ji ', 'Fu ', 'Fa ', 'Xiu ', 'Jin ', 'Bei ', 'Dan ', 'Fu ', 'Tang ', 'Zhong ', 'You ', 'Huo ', 'Hui ', 'Yu ', 'Cui ', 'Chuan ', 'San ', 'Wei ', 'Chuan ', 'Che ', 'Ya ', 'Xian ', 'Shang ', 'Chang ', 'Lun ', 'Cang ', 'Xun ', 'Xin ', 'Wei ', 'Zhu ', '[?] ', 'Xuan ', 'Nu ', 'Bo ', 'Gu ', 'Ni ', 'Ni ', 'Xie ', 'Ban ', 'Xu ', 'Ling ', 'Zhou ', 'Shen ', 'Qu ', 'Si ', 'Beng ', 'Si ', 'Jia ', 'Pi ', 'Yi ', 'Si ', 'Ai ', 'Zheng ', 'Dian ', 'Han ', 'Mai ', 'Dan ', 'Zhu ', 'Bu ', 'Qu ', 'Bi ', 'Shao ', 'Ci ', 'Wei ', 'Di ', 'Zhu ', 'Zuo ', 'You ', 'Yang ', 'Ti ', 'Zhan ', 'He ', 'Bi ', 'Tuo ', 'She ', 'Yu ', 'Yi ', 'Fo ', 'Zuo ', 'Kou ', 'Ning ', 'Tong ', 'Ni ', 'Xuan ', 'Qu ', 'Yong ', 'Wa ', 'Qian ', '[?] ', 'Ka ', '[?] ', 'Pei ', 'Huai ', 'He ', 'Lao ', 'Xiang ', 'Ge ', 'Yang ', 'Bai ', 'Fa ', 'Ming ', 'Jia ', 'Er ', 'Bing ', 'Ji ', 'Hen ', 'Huo ', 'Gui ', 'Quan ', 'Tiao ', 'Jiao ', 'Ci ', 'Yi ', 'Shi ', 'Xing ', 'Shen ', 'Tuo ', 'Kan ', 'Zhi ', 'Gai ', 'Lai ', 'Yi ', 'Chi ', 'Kua ', 'Guang ', 'Li ', 'Yin ', 'Shi ', 'Mi ', 'Zhu ', 'Xu ', 'You ', 'An ', 'Lu ', 'Mou ', 'Er ', 'Lun ', 'Tong ', 'Cha ', 'Chi ', 'Xun ', 'Gong ', 'Zhou ', 'Yi ', 'Ru ', 'Jian ', 'Xia ', 'Jia ', 'Zai ', 'Lu ', 'Ko ', 'Jiao ', 'Zhen ', 'Ce ', 'Qiao ', 'Kuai ', 'Chai ', 'Ning ', 'Nong ', 'Jin ', 'Wu ', 'Hou ', 'Jiong ', 'Cheng ', 'Zhen ', 'Zuo ', 'Chou ', 'Qin ', 'Lu ', 'Ju ', 'Shu ', 'Ting ', 'Shen ', 'Tuo ', 'Bo ', 'Nan ', 'Hao ', 'Bian ', 'Tui ', 'Yu ', 'Xi ', 'Cu ', 'E ', 'Qiu ', 'Xu ', 'Kuang ', 'Ku ', 'Wu ', 'Jun ', 'Yi ', 'Fu ', 'Lang ', 'Zu ', 'Qiao ', 'Li ', 'Yong ', 'Hun ', 'Jing ', 'Xian ', 'San ', 'Pai ', 'Su ', 'Fu ', 'Xi ', 'Li ', 'Fu ', 'Ping ', 'Bao ', 'Yu ', 'Si ', 'Xia ', 'Xin ', 'Xiu ', 'Yu ', 'Ti ', 'Che ', 'Chou ', '[?] ', 'Yan ', 'Lia ', 'Li ', 'Lai ', '[?] ', 'Jian ', 'Xiu ', 'Fu ', 'He ', 'Ju ', 'Xiao ', 'Pai ', 'Jian ', 'Biao ', 'Chu ', 'Fei ', 'Feng ', 'Ya ', 'An ', 'Bei ', 'Yu ', 'Xin ', 'Bi ', 'Jian ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x050.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x050.php new file mode 100644 index 000000000..14db069b3 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x050.php @@ -0,0 +1 @@ +<?php return ['Chang ', 'Chi ', 'Bing ', 'Zan ', 'Yao ', 'Cui ', 'Lia ', 'Wan ', 'Lai ', 'Cang ', 'Zong ', 'Ge ', 'Guan ', 'Bei ', 'Tian ', 'Shu ', 'Shu ', 'Men ', 'Dao ', 'Tan ', 'Jue ', 'Chui ', 'Xing ', 'Peng ', 'Tang ', 'Hou ', 'Yi ', 'Qi ', 'Ti ', 'Gan ', 'Jing ', 'Jie ', 'Sui ', 'Chang ', 'Jie ', 'Fang ', 'Zhi ', 'Kong ', 'Juan ', 'Zong ', 'Ju ', 'Qian ', 'Ni ', 'Lun ', 'Zhuo ', 'Wei ', 'Luo ', 'Song ', 'Leng ', 'Hun ', 'Dong ', 'Zi ', 'Ben ', 'Wu ', 'Ju ', 'Nai ', 'Cai ', 'Jian ', 'Zhai ', 'Ye ', 'Zhi ', 'Sha ', 'Qing ', '[?] ', 'Ying ', 'Cheng ', 'Jian ', 'Yan ', 'Nuan ', 'Zhong ', 'Chun ', 'Jia ', 'Jie ', 'Wei ', 'Yu ', 'Bing ', 'Ruo ', 'Ti ', 'Wei ', 'Pian ', 'Yan ', 'Feng ', 'Tang ', 'Wo ', 'E ', 'Xie ', 'Che ', 'Sheng ', 'Kan ', 'Di ', 'Zuo ', 'Cha ', 'Ting ', 'Bei ', 'Ye ', 'Huang ', 'Yao ', 'Zhan ', 'Chou ', 'Yan ', 'You ', 'Jian ', 'Xu ', 'Zha ', 'Ci ', 'Fu ', 'Bi ', 'Zhi ', 'Zong ', 'Mian ', 'Ji ', 'Yi ', 'Xie ', 'Xun ', 'Si ', 'Duan ', 'Ce ', 'Zhen ', 'Ou ', 'Tou ', 'Tou ', 'Bei ', 'Za ', 'Lu ', 'Jie ', 'Wei ', 'Fen ', 'Chang ', 'Gui ', 'Sou ', 'Zhi ', 'Su ', 'Xia ', 'Fu ', 'Yuan ', 'Rong ', 'Li ', 'Ru ', 'Yun ', 'Gou ', 'Ma ', 'Bang ', 'Dian ', 'Tang ', 'Hao ', 'Jie ', 'Xi ', 'Shan ', 'Qian ', 'Jue ', 'Cang ', 'Chu ', 'San ', 'Bei ', 'Xiao ', 'Yong ', 'Yao ', 'Tan ', 'Suo ', 'Yang ', 'Fa ', 'Bing ', 'Jia ', 'Dai ', 'Zai ', 'Tang ', '[?] ', 'Bin ', 'Chu ', 'Nuo ', 'Can ', 'Lei ', 'Cui ', 'Yong ', 'Zao ', 'Zong ', 'Peng ', 'Song ', 'Ao ', 'Chuan ', 'Yu ', 'Zhai ', 'Cou ', 'Shang ', 'Qiang ', 'Jing ', 'Chi ', 'Sha ', 'Han ', 'Zhang ', 'Qing ', 'Yan ', 'Di ', 'Xi ', 'Lu ', 'Bei ', 'Piao ', 'Jin ', 'Lian ', 'Lu ', 'Man ', 'Qian ', 'Xian ', 'Tan ', 'Ying ', 'Dong ', 'Zhuan ', 'Xiang ', 'Shan ', 'Qiao ', 'Jiong ', 'Tui ', 'Zun ', 'Pu ', 'Xi ', 'Lao ', 'Chang ', 'Guang ', 'Liao ', 'Qi ', 'Deng ', 'Chan ', 'Wei ', 'Ji ', 'Fan ', 'Hui ', 'Chuan ', 'Jian ', 'Dan ', 'Jiao ', 'Jiu ', 'Seng ', 'Fen ', 'Xian ', 'Jue ', 'E ', 'Jiao ', 'Jian ', 'Tong ', 'Lin ', 'Bo ', 'Gu ', '[?] ', 'Su ', 'Xian ', 'Jiang ', 'Min ', 'Ye ', 'Jin ', 'Jia ', 'Qiao ', 'Pi ', 'Feng ', 'Zhou ', 'Ai ', 'Sai ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x051.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x051.php new file mode 100644 index 000000000..a5dec8103 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x051.php @@ -0,0 +1 @@ +<?php return ['Yi ', 'Jun ', 'Nong ', 'Chan ', 'Yi ', 'Dang ', 'Jing ', 'Xuan ', 'Kuai ', 'Jian ', 'Chu ', 'Dan ', 'Jiao ', 'Sha ', 'Zai ', '[?] ', 'Bin ', 'An ', 'Ru ', 'Tai ', 'Chou ', 'Chai ', 'Lan ', 'Ni ', 'Jin ', 'Qian ', 'Meng ', 'Wu ', 'Ning ', 'Qiong ', 'Ni ', 'Chang ', 'Lie ', 'Lei ', 'Lu ', 'Kuang ', 'Bao ', 'Du ', 'Biao ', 'Zan ', 'Zhi ', 'Si ', 'You ', 'Hao ', 'Chen ', 'Chen ', 'Li ', 'Teng ', 'Wei ', 'Long ', 'Chu ', 'Chan ', 'Rang ', 'Shu ', 'Hui ', 'Li ', 'Luo ', 'Zan ', 'Nuo ', 'Tang ', 'Yan ', 'Lei ', 'Nang ', 'Er ', 'Wu ', 'Yun ', 'Zan ', 'Yuan ', 'Xiong ', 'Chong ', 'Zhao ', 'Xiong ', 'Xian ', 'Guang ', 'Dui ', 'Ke ', 'Dui ', 'Mian ', 'Tu ', 'Chang ', 'Er ', 'Dui ', 'Er ', 'Xin ', 'Tu ', 'Si ', 'Yan ', 'Yan ', 'Shi ', 'Shi ', 'Dang ', 'Qian ', 'Dou ', 'Fen ', 'Mao ', 'Shen ', 'Dou ', 'Bai ', 'Jing ', 'Li ', 'Huang ', 'Ru ', 'Wang ', 'Nei ', 'Quan ', 'Liang ', 'Yu ', 'Ba ', 'Gong ', 'Liu ', 'Xi ', '[?] ', 'Lan ', 'Gong ', 'Tian ', 'Guan ', 'Xing ', 'Bing ', 'Qi ', 'Ju ', 'Dian ', 'Zi ', 'Ppwun ', 'Yang ', 'Jian ', 'Shou ', 'Ji ', 'Yi ', 'Ji ', 'Chan ', 'Jiong ', 'Mao ', 'Ran ', 'Nei ', 'Yuan ', 'Mao ', 'Gang ', 'Ran ', 'Ce ', 'Jiong ', 'Ce ', 'Zai ', 'Gua ', 'Jiong ', 'Mao ', 'Zhou ', 'Mou ', 'Gou ', 'Xu ', 'Mian ', 'Mi ', 'Rong ', 'Yin ', 'Xie ', 'Kan ', 'Jun ', 'Nong ', 'Yi ', 'Mi ', 'Shi ', 'Guan ', 'Meng ', 'Zhong ', 'Ju ', 'Yuan ', 'Ming ', 'Kou ', 'Lam ', 'Fu ', 'Xie ', 'Mi ', 'Bing ', 'Dong ', 'Tai ', 'Gang ', 'Feng ', 'Bing ', 'Hu ', 'Chong ', 'Jue ', 'Hu ', 'Kuang ', 'Ye ', 'Leng ', 'Pan ', 'Fu ', 'Min ', 'Dong ', 'Xian ', 'Lie ', 'Xia ', 'Jian ', 'Jing ', 'Shu ', 'Mei ', 'Tu ', 'Qi ', 'Gu ', 'Zhun ', 'Song ', 'Jing ', 'Liang ', 'Qing ', 'Diao ', 'Ling ', 'Dong ', 'Gan ', 'Jian ', 'Yin ', 'Cou ', 'Yi ', 'Li ', 'Cang ', 'Ming ', 'Zhuen ', 'Cui ', 'Si ', 'Duo ', 'Jin ', 'Lin ', 'Lin ', 'Ning ', 'Xi ', 'Du ', 'Ji ', 'Fan ', 'Fan ', 'Fan ', 'Feng ', 'Ju ', 'Chu ', 'Tako ', 'Feng ', 'Mok ', 'Ci ', 'Fu ', 'Feng ', 'Ping ', 'Feng ', 'Kai ', 'Huang ', 'Kai ', 'Gan ', 'Deng ', 'Ping ', 'Qu ', 'Xiong ', 'Kuai ', 'Tu ', 'Ao ', 'Chu ', 'Ji ', 'Dang ', 'Han ', 'Han ', 'Zao ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x052.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x052.php new file mode 100644 index 000000000..91d904530 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x052.php @@ -0,0 +1 @@ +<?php return ['Dao ', 'Diao ', 'Dao ', 'Ren ', 'Ren ', 'Chuang ', 'Fen ', 'Qie ', 'Yi ', 'Ji ', 'Kan ', 'Qian ', 'Cun ', 'Chu ', 'Wen ', 'Ji ', 'Dan ', 'Xing ', 'Hua ', 'Wan ', 'Jue ', 'Li ', 'Yue ', 'Lie ', 'Liu ', 'Ze ', 'Gang ', 'Chuang ', 'Fu ', 'Chu ', 'Qu ', 'Ju ', 'Shan ', 'Min ', 'Ling ', 'Zhong ', 'Pan ', 'Bie ', 'Jie ', 'Jie ', 'Bao ', 'Li ', 'Shan ', 'Bie ', 'Chan ', 'Jing ', 'Gua ', 'Gen ', 'Dao ', 'Chuang ', 'Kui ', 'Ku ', 'Duo ', 'Er ', 'Zhi ', 'Shua ', 'Quan ', 'Cha ', 'Ci ', 'Ke ', 'Jie ', 'Gui ', 'Ci ', 'Gui ', 'Kai ', 'Duo ', 'Ji ', 'Ti ', 'Jing ', 'Lou ', 'Gen ', 'Ze ', 'Yuan ', 'Cuo ', 'Xue ', 'Ke ', 'La ', 'Qian ', 'Cha ', 'Chuang ', 'Gua ', 'Jian ', 'Cuo ', 'Li ', 'Ti ', 'Fei ', 'Pou ', 'Chan ', 'Qi ', 'Chuang ', 'Zi ', 'Gang ', 'Wan ', 'Bo ', 'Ji ', 'Duo ', 'Qing ', 'Yan ', 'Zhuo ', 'Jian ', 'Ji ', 'Bo ', 'Yan ', 'Ju ', 'Huo ', 'Sheng ', 'Jian ', 'Duo ', 'Duan ', 'Wu ', 'Gua ', 'Fu ', 'Sheng ', 'Jian ', 'Ge ', 'Zha ', 'Kai ', 'Chuang ', 'Juan ', 'Chan ', 'Tuan ', 'Lu ', 'Li ', 'Fou ', 'Shan ', 'Piao ', 'Kou ', 'Jiao ', 'Gua ', 'Qiao ', 'Jue ', 'Hua ', 'Zha ', 'Zhuo ', 'Lian ', 'Ju ', 'Pi ', 'Liu ', 'Gui ', 'Jiao ', 'Gui ', 'Jian ', 'Jian ', 'Tang ', 'Huo ', 'Ji ', 'Jian ', 'Yi ', 'Jian ', 'Zhi ', 'Chan ', 'Cuan ', 'Mo ', 'Li ', 'Zhu ', 'Li ', 'Ya ', 'Quan ', 'Ban ', 'Gong ', 'Jia ', 'Wu ', 'Mai ', 'Lie ', 'Jin ', 'Keng ', 'Xie ', 'Zhi ', 'Dong ', 'Zhu ', 'Nu ', 'Jie ', 'Qu ', 'Shao ', 'Yi ', 'Zhu ', 'Miao ', 'Li ', 'Jing ', 'Lao ', 'Lao ', 'Juan ', 'Kou ', 'Yang ', 'Wa ', 'Xiao ', 'Mou ', 'Kuang ', 'Jie ', 'Lie ', 'He ', 'Shi ', 'Ke ', 'Jing ', 'Hao ', 'Bo ', 'Min ', 'Chi ', 'Lang ', 'Yong ', 'Yong ', 'Mian ', 'Ke ', 'Xun ', 'Juan ', 'Qing ', 'Lu ', 'Pou ', 'Meng ', 'Lai ', 'Le ', 'Kai ', 'Mian ', 'Dong ', 'Xu ', 'Xu ', 'Kan ', 'Wu ', 'Yi ', 'Xun ', 'Weng ', 'Sheng ', 'Lao ', 'Mu ', 'Lu ', 'Piao ', 'Shi ', 'Ji ', 'Qin ', 'Qiang ', 'Jiao ', 'Quan ', 'Yang ', 'Yi ', 'Jue ', 'Fan ', 'Juan ', 'Tong ', 'Ju ', 'Dan ', 'Xie ', 'Mai ', 'Xun ', 'Xun ', 'Lu ', 'Li ', 'Che ', 'Rang ', 'Quan ', 'Bao ', 'Shao ', 'Yun ', 'Jiu ', 'Bao ', 'Gou ', 'Wu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x053.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x053.php new file mode 100644 index 000000000..ffb671fc4 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x053.php @@ -0,0 +1 @@ +<?php return ['Yun ', 'Mwun ', 'Nay ', 'Gai ', 'Gai ', 'Bao ', 'Cong ', '[?] ', 'Xiong ', 'Peng ', 'Ju ', 'Tao ', 'Ge ', 'Pu ', 'An ', 'Pao ', 'Fu ', 'Gong ', 'Da ', 'Jiu ', 'Qiong ', 'Bi ', 'Hua ', 'Bei ', 'Nao ', 'Chi ', 'Fang ', 'Jiu ', 'Yi ', 'Za ', 'Jiang ', 'Kang ', 'Jiang ', 'Kuang ', 'Hu ', 'Xia ', 'Qu ', 'Bian ', 'Gui ', 'Qie ', 'Zang ', 'Kuang ', 'Fei ', 'Hu ', 'Tou ', 'Gui ', 'Gui ', 'Hui ', 'Dan ', 'Gui ', 'Lian ', 'Lian ', 'Suan ', 'Du ', 'Jiu ', 'Qu ', 'Xi ', 'Pi ', 'Qu ', 'Yi ', 'Qia ', 'Yan ', 'Bian ', 'Ni ', 'Qu ', 'Shi ', 'Xin ', 'Qian ', 'Nian ', 'Sa ', 'Zu ', 'Sheng ', 'Wu ', 'Hui ', 'Ban ', 'Shi ', 'Xi ', 'Wan ', 'Hua ', 'Xie ', 'Wan ', 'Bei ', 'Zu ', 'Zhuo ', 'Xie ', 'Dan ', 'Mai ', 'Nan ', 'Dan ', 'Ji ', 'Bo ', 'Shuai ', 'Bu ', 'Kuang ', 'Bian ', 'Bu ', 'Zhan ', 'Qia ', 'Lu ', 'You ', 'Lu ', 'Xi ', 'Gua ', 'Wo ', 'Xie ', 'Jie ', 'Jie ', 'Wei ', 'Ang ', 'Qiong ', 'Zhi ', 'Mao ', 'Yin ', 'Wei ', 'Shao ', 'Ji ', 'Que ', 'Luan ', 'Shi ', 'Juan ', 'Xie ', 'Xu ', 'Jin ', 'Que ', 'Wu ', 'Ji ', 'E ', 'Qing ', 'Xi ', '[?] ', 'Han ', 'Zhan ', 'E ', 'Ting ', 'Li ', 'Zhe ', 'Han ', 'Li ', 'Ya ', 'Ya ', 'Yan ', 'She ', 'Zhi ', 'Zha ', 'Pang ', '[?] ', 'He ', 'Ya ', 'Zhi ', 'Ce ', 'Pang ', 'Ti ', 'Li ', 'She ', 'Hou ', 'Ting ', 'Zui ', 'Cuo ', 'Fei ', 'Yuan ', 'Ce ', 'Yuan ', 'Xiang ', 'Yan ', 'Li ', 'Jue ', 'Sha ', 'Dian ', 'Chu ', 'Jiu ', 'Qin ', 'Ao ', 'Gui ', 'Yan ', 'Si ', 'Li ', 'Chang ', 'Lan ', 'Li ', 'Yan ', 'Yan ', 'Yuan ', 'Si ', 'Gong ', 'Lin ', 'Qiu ', 'Qu ', 'Qu ', 'Uk ', 'Lei ', 'Du ', 'Xian ', 'Zhuan ', 'San ', 'Can ', 'Can ', 'Can ', 'Can ', 'Ai ', 'Dai ', 'You ', 'Cha ', 'Ji ', 'You ', 'Shuang ', 'Fan ', 'Shou ', 'Guai ', 'Ba ', 'Fa ', 'Ruo ', 'Shi ', 'Shu ', 'Zhuo ', 'Qu ', 'Shou ', 'Bian ', 'Xu ', 'Jia ', 'Pan ', 'Sou ', 'Gao ', 'Wei ', 'Sou ', 'Die ', 'Rui ', 'Cong ', 'Kou ', 'Gu ', 'Ju ', 'Ling ', 'Gua ', 'Tao ', 'Kou ', 'Zhi ', 'Jiao ', 'Zhao ', 'Ba ', 'Ding ', 'Ke ', 'Tai ', 'Chi ', 'Shi ', 'You ', 'Qiu ', 'Po ', 'Xie ', 'Hao ', 'Si ', 'Tan ', 'Chi ', 'Le ', 'Diao ', 'Ji ', '[?] ', 'Hong ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x054.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x054.php new file mode 100644 index 000000000..c90148fe5 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x054.php @@ -0,0 +1 @@ +<?php return ['Mie ', 'Xu ', 'Mang ', 'Chi ', 'Ge ', 'Xuan ', 'Yao ', 'Zi ', 'He ', 'Ji ', 'Diao ', 'Cun ', 'Tong ', 'Ming ', 'Hou ', 'Li ', 'Tu ', 'Xiang ', 'Zha ', 'Xia ', 'Ye ', 'Lu ', 'A ', 'Ma ', 'Ou ', 'Xue ', 'Yi ', 'Jun ', 'Chou ', 'Lin ', 'Tun ', 'Yin ', 'Fei ', 'Bi ', 'Qin ', 'Qin ', 'Jie ', 'Bu ', 'Fou ', 'Ba ', 'Dun ', 'Fen ', 'E ', 'Han ', 'Ting ', 'Hang ', 'Shun ', 'Qi ', 'Hong ', 'Zhi ', 'Shen ', 'Wu ', 'Wu ', 'Chao ', 'Ne ', 'Xue ', 'Xi ', 'Chui ', 'Dou ', 'Wen ', 'Hou ', 'Ou ', 'Wu ', 'Gao ', 'Ya ', 'Jun ', 'Lu ', 'E ', 'Ge ', 'Mei ', 'Ai ', 'Qi ', 'Cheng ', 'Wu ', 'Gao ', 'Fu ', 'Jiao ', 'Hong ', 'Chi ', 'Sheng ', 'Ne ', 'Tun ', 'Fu ', 'Yi ', 'Dai ', 'Ou ', 'Li ', 'Bai ', 'Yuan ', 'Kuai ', '[?] ', 'Qiang ', 'Wu ', 'E ', 'Shi ', 'Quan ', 'Pen ', 'Wen ', 'Ni ', 'M ', 'Ling ', 'Ran ', 'You ', 'Di ', 'Zhou ', 'Shi ', 'Zhou ', 'Tie ', 'Xi ', 'Yi ', 'Qi ', 'Ping ', 'Zi ', 'Gu ', 'Zi ', 'Wei ', 'Xu ', 'He ', 'Nao ', 'Xia ', 'Pei ', 'Yi ', 'Xiao ', 'Shen ', 'Hu ', 'Ming ', 'Da ', 'Qu ', 'Ju ', 'Gem ', 'Za ', 'Tuo ', 'Duo ', 'Pou ', 'Pao ', 'Bi ', 'Fu ', 'Yang ', 'He ', 'Zha ', 'He ', 'Hai ', 'Jiu ', 'Yong ', 'Fu ', 'Que ', 'Zhou ', 'Wa ', 'Ka ', 'Gu ', 'Ka ', 'Zuo ', 'Bu ', 'Long ', 'Dong ', 'Ning ', 'Tha ', 'Si ', 'Xian ', 'Huo ', 'Qi ', 'Er ', 'E ', 'Guang ', 'Zha ', 'Xi ', 'Yi ', 'Lie ', 'Zi ', 'Mie ', 'Mi ', 'Zhi ', 'Yao ', 'Ji ', 'Zhou ', 'Ge ', 'Shuai ', 'Zan ', 'Xiao ', 'Ke ', 'Hui ', 'Kua ', 'Huai ', 'Tao ', 'Xian ', 'E ', 'Xuan ', 'Xiu ', 'Wai ', 'Yan ', 'Lao ', 'Yi ', 'Ai ', 'Pin ', 'Shen ', 'Tong ', 'Hong ', 'Xiong ', 'Chi ', 'Wa ', 'Ha ', 'Zai ', 'Yu ', 'Di ', 'Pai ', 'Xiang ', 'Ai ', 'Hen ', 'Kuang ', 'Ya ', 'Da ', 'Xiao ', 'Bi ', 'Yue ', '[?] ', 'Hua ', 'Sasou ', 'Kuai ', 'Duo ', '[?] ', 'Ji ', 'Nong ', 'Mou ', 'Yo ', 'Hao ', 'Yuan ', 'Long ', 'Pou ', 'Mang ', 'Ge ', 'E ', 'Chi ', 'Shao ', 'Li ', 'Na ', 'Zu ', 'He ', 'Ku ', 'Xiao ', 'Xian ', 'Lao ', 'Bo ', 'Zhe ', 'Zha ', 'Liang ', 'Ba ', 'Mie ', 'Le ', 'Sui ', 'Fou ', 'Bu ', 'Han ', 'Heng ', 'Geng ', 'Shuo ', 'Ge ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x055.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x055.php new file mode 100644 index 000000000..0aa75ca60 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x055.php @@ -0,0 +1 @@ +<?php return ['You ', 'Yan ', 'Gu ', 'Gu ', 'Bai ', 'Han ', 'Suo ', 'Chun ', 'Yi ', 'Ai ', 'Jia ', 'Tu ', 'Xian ', 'Huan ', 'Li ', 'Xi ', 'Tang ', 'Zuo ', 'Qiu ', 'Che ', 'Wu ', 'Zao ', 'Ya ', 'Dou ', 'Qi ', 'Di ', 'Qin ', 'Ma ', 'Mal ', 'Hong ', 'Dou ', 'Kes ', 'Lao ', 'Liang ', 'Suo ', 'Zao ', 'Huan ', 'Lang ', 'Sha ', 'Ji ', 'Zuo ', 'Wo ', 'Feng ', 'Yin ', 'Hu ', 'Qi ', 'Shou ', 'Wei ', 'Shua ', 'Chang ', 'Er ', 'Li ', 'Qiang ', 'An ', 'Jie ', 'Yo ', 'Nian ', 'Yu ', 'Tian ', 'Lai ', 'Sha ', 'Xi ', 'Tuo ', 'Hu ', 'Ai ', 'Zhou ', 'Nou ', 'Ken ', 'Zhuo ', 'Zhuo ', 'Shang ', 'Di ', 'Heng ', 'Lan ', 'A ', 'Xiao ', 'Xiang ', 'Tun ', 'Wu ', 'Wen ', 'Cui ', 'Sha ', 'Hu ', 'Qi ', 'Qi ', 'Tao ', 'Dan ', 'Dan ', 'Ye ', 'Zi ', 'Bi ', 'Cui ', 'Chuo ', 'He ', 'Ya ', 'Qi ', 'Zhe ', 'Pei ', 'Liang ', 'Xian ', 'Pi ', 'Sha ', 'La ', 'Ze ', 'Qing ', 'Gua ', 'Pa ', 'Zhe ', 'Se ', 'Zhuan ', 'Nie ', 'Guo ', 'Luo ', 'Yan ', 'Di ', 'Quan ', 'Tan ', 'Bo ', 'Ding ', 'Lang ', 'Xiao ', '[?] ', 'Tang ', 'Chi ', 'Ti ', 'An ', 'Jiu ', 'Dan ', 'Ke ', 'Yong ', 'Wei ', 'Nan ', 'Shan ', 'Yu ', 'Zhe ', 'La ', 'Jie ', 'Hou ', 'Han ', 'Die ', 'Zhou ', 'Chai ', 'Wai ', 'Re ', 'Yu ', 'Yin ', 'Zan ', 'Yao ', 'Wo ', 'Mian ', 'Hu ', 'Yun ', 'Chuan ', 'Hui ', 'Huan ', 'Huan ', 'Xi ', 'He ', 'Ji ', 'Kui ', 'Zhong ', 'Wei ', 'Sha ', 'Xu ', 'Huang ', 'Du ', 'Nie ', 'Xuan ', 'Liang ', 'Yu ', 'Sang ', 'Chi ', 'Qiao ', 'Yan ', 'Dan ', 'Pen ', 'Can ', 'Li ', 'Yo ', 'Zha ', 'Wei ', 'Miao ', 'Ying ', 'Pen ', 'Phos ', 'Kui ', 'Xi ', 'Yu ', 'Jie ', 'Lou ', 'Ku ', 'Sao ', 'Huo ', 'Ti ', 'Yao ', 'He ', 'A ', 'Xiu ', 'Qiang ', 'Se ', 'Yong ', 'Su ', 'Hong ', 'Xie ', 'Yi ', 'Suo ', 'Ma ', 'Cha ', 'Hai ', 'Ke ', 'Ta ', 'Sang ', 'Tian ', 'Ru ', 'Sou ', 'Wa ', 'Ji ', 'Pang ', 'Wu ', 'Xian ', 'Shi ', 'Ge ', 'Zi ', 'Jie ', 'Luo ', 'Weng ', 'Wa ', 'Si ', 'Chi ', 'Hao ', 'Suo ', 'Jia ', 'Hai ', 'Suo ', 'Qin ', 'Nie ', 'He ', 'Cis ', 'Sai ', 'Ng ', 'Ge ', 'Na ', 'Dia ', 'Ai ', '[?] ', 'Tong ', 'Bi ', 'Ao ', 'Ao ', 'Lian ', 'Cui ', 'Zhe ', 'Mo ', 'Sou ', 'Sou ', 'Tan ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x056.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x056.php new file mode 100644 index 000000000..157e4a0ce --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x056.php @@ -0,0 +1 @@ +<?php return ['Di ', 'Qi ', 'Jiao ', 'Chong ', 'Jiao ', 'Kai ', 'Tan ', 'San ', 'Cao ', 'Jia ', 'Ai ', 'Xiao ', 'Piao ', 'Lou ', 'Ga ', 'Gu ', 'Xiao ', 'Hu ', 'Hui ', 'Guo ', 'Ou ', 'Xian ', 'Ze ', 'Chang ', 'Xu ', 'Po ', 'De ', 'Ma ', 'Ma ', 'Hu ', 'Lei ', 'Du ', 'Ga ', 'Tang ', 'Ye ', 'Beng ', 'Ying ', 'Saai ', 'Jiao ', 'Mi ', 'Xiao ', 'Hua ', 'Mai ', 'Ran ', 'Zuo ', 'Peng ', 'Lao ', 'Xiao ', 'Ji ', 'Zhu ', 'Chao ', 'Kui ', 'Zui ', 'Xiao ', 'Si ', 'Hao ', 'Fu ', 'Liao ', 'Qiao ', 'Xi ', 'Xiu ', 'Tan ', 'Tan ', 'Mo ', 'Xun ', 'E ', 'Zun ', 'Fan ', 'Chi ', 'Hui ', 'Zan ', 'Chuang ', 'Cu ', 'Dan ', 'Yu ', 'Tun ', 'Cheng ', 'Jiao ', 'Ye ', 'Xi ', 'Qi ', 'Hao ', 'Lian ', 'Xu ', 'Deng ', 'Hui ', 'Yin ', 'Pu ', 'Jue ', 'Qin ', 'Xun ', 'Nie ', 'Lu ', 'Si ', 'Yan ', 'Ying ', 'Da ', 'Dan ', 'Yu ', 'Zhou ', 'Jin ', 'Nong ', 'Yue ', 'Hui ', 'Qi ', 'E ', 'Zao ', 'Yi ', 'Shi ', 'Jiao ', 'Yuan ', 'Ai ', 'Yong ', 'Jue ', 'Kuai ', 'Yu ', 'Pen ', 'Dao ', 'Ge ', 'Xin ', 'Dun ', 'Dang ', 'Sin ', 'Sai ', 'Pi ', 'Pi ', 'Yin ', 'Zui ', 'Ning ', 'Di ', 'Lan ', 'Ta ', 'Huo ', 'Ru ', 'Hao ', 'Xia ', 'Ya ', 'Duo ', 'Xi ', 'Chou ', 'Ji ', 'Jin ', 'Hao ', 'Ti ', 'Chang ', '[?] ', '[?] ', 'Ca ', 'Ti ', 'Lu ', 'Hui ', 'Bo ', 'You ', 'Nie ', 'Yin ', 'Hu ', 'Mo ', 'Huang ', 'Zhe ', 'Li ', 'Liu ', 'Haai ', 'Nang ', 'Xiao ', 'Mo ', 'Yan ', 'Li ', 'Lu ', 'Long ', 'Fu ', 'Dan ', 'Chen ', 'Pin ', 'Pi ', 'Xiang ', 'Huo ', 'Mo ', 'Xi ', 'Duo ', 'Ku ', 'Yan ', 'Chan ', 'Ying ', 'Rang ', 'Dian ', 'La ', 'Ta ', 'Xiao ', 'Jiao ', 'Chuo ', 'Huan ', 'Huo ', 'Zhuan ', 'Nie ', 'Xiao ', 'Ca ', 'Li ', 'Chan ', 'Chai ', 'Li ', 'Yi ', 'Luo ', 'Nang ', 'Zan ', 'Su ', 'Xi ', 'So ', 'Jian ', 'Za ', 'Zhu ', 'Lan ', 'Nie ', 'Nang ', '[?] ', '[?] ', 'Wei ', 'Hui ', 'Yin ', 'Qiu ', 'Si ', 'Nin ', 'Jian ', 'Hui ', 'Xin ', 'Yin ', 'Nan ', 'Tuan ', 'Tuan ', 'Dun ', 'Kang ', 'Yuan ', 'Jiong ', 'Pian ', 'Yun ', 'Cong ', 'Hu ', 'Hui ', 'Yuan ', 'You ', 'Guo ', 'Kun ', 'Cong ', 'Wei ', 'Tu ', 'Wei ', 'Lun ', 'Guo ', 'Qun ', 'Ri ', 'Ling ', 'Gu ', 'Guo ', 'Tai ', 'Guo ', 'Tu ', 'You ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x057.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x057.php new file mode 100644 index 000000000..ead2e2b48 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x057.php @@ -0,0 +1 @@ +<?php return ['Guo ', 'Yin ', 'Hun ', 'Pu ', 'Yu ', 'Han ', 'Yuan ', 'Lun ', 'Quan ', 'Yu ', 'Qing ', 'Guo ', 'Chuan ', 'Wei ', 'Yuan ', 'Quan ', 'Ku ', 'Fu ', 'Yuan ', 'Yuan ', 'E ', 'Tu ', 'Tu ', 'Tu ', 'Tuan ', 'Lue ', 'Hui ', 'Yi ', 'Yuan ', 'Luan ', 'Luan ', 'Tu ', 'Ya ', 'Tu ', 'Ting ', 'Sheng ', 'Pu ', 'Lu ', 'Iri ', 'Ya ', 'Zai ', 'Wei ', 'Ge ', 'Yu ', 'Wu ', 'Gui ', 'Pi ', 'Yi ', 'Di ', 'Qian ', 'Qian ', 'Zhen ', 'Zhuo ', 'Dang ', 'Qia ', 'Akutsu ', 'Yama ', 'Kuang ', 'Chang ', 'Qi ', 'Nie ', 'Mo ', 'Ji ', 'Jia ', 'Zhi ', 'Zhi ', 'Ban ', 'Xun ', 'Tou ', 'Qin ', 'Fen ', 'Jun ', 'Keng ', 'Tun ', 'Fang ', 'Fen ', 'Ben ', 'Tan ', 'Kan ', 'Pi ', 'Zuo ', 'Keng ', 'Bi ', 'Xing ', 'Di ', 'Jing ', 'Ji ', 'Kuai ', 'Di ', 'Jing ', 'Jian ', 'Tan ', 'Li ', 'Ba ', 'Wu ', 'Fen ', 'Zhui ', 'Po ', 'Pan ', 'Tang ', 'Kun ', 'Qu ', 'Tan ', 'Zhi ', 'Tuo ', 'Gan ', 'Ping ', 'Dian ', 'Gua ', 'Ni ', 'Tai ', 'Pi ', 'Jiong ', 'Yang ', 'Fo ', 'Ao ', 'Liu ', 'Qiu ', 'Mu ', 'Ke ', 'Gou ', 'Xue ', 'Ba ', 'Chi ', 'Che ', 'Ling ', 'Zhu ', 'Fu ', 'Hu ', 'Zhi ', 'Chui ', 'La ', 'Long ', 'Long ', 'Lu ', 'Ao ', 'Tay ', 'Pao ', '[?] ', 'Xing ', 'Dong ', 'Ji ', 'Ke ', 'Lu ', 'Ci ', 'Chi ', 'Lei ', 'Gai ', 'Yin ', 'Hou ', 'Dui ', 'Zhao ', 'Fu ', 'Guang ', 'Yao ', 'Duo ', 'Duo ', 'Gui ', 'Cha ', 'Yang ', 'Yin ', 'Fa ', 'Gou ', 'Yuan ', 'Die ', 'Xie ', 'Ken ', 'Jiong ', 'Shou ', 'E ', 'Ha ', 'Dian ', 'Hong ', 'Wu ', 'Kua ', '[?] ', 'Tao ', 'Dang ', 'Kai ', 'Gake ', 'Nao ', 'An ', 'Xing ', 'Xian ', 'Huan ', 'Bang ', 'Pei ', 'Ba ', 'Yi ', 'Yin ', 'Han ', 'Xu ', 'Chui ', 'Cen ', 'Geng ', 'Ai ', 'Peng ', 'Fang ', 'Que ', 'Yong ', 'Xun ', 'Jia ', 'Di ', 'Mai ', 'Lang ', 'Xuan ', 'Cheng ', 'Yan ', 'Jin ', 'Zhe ', 'Lei ', 'Lie ', 'Bu ', 'Cheng ', 'Gomi ', 'Bu ', 'Shi ', 'Xun ', 'Guo ', 'Jiong ', 'Ye ', 'Nian ', 'Di ', 'Yu ', 'Bu ', 'Ya ', 'Juan ', 'Sui ', 'Pi ', 'Cheng ', 'Wan ', 'Ju ', 'Lun ', 'Zheng ', 'Kong ', 'Chong ', 'Dong ', 'Dai ', 'Tan ', 'An ', 'Cai ', 'Shu ', 'Beng ', 'Kan ', 'Zhi ', 'Duo ', 'Yi ', 'Zhi ', 'Yi ', 'Pei ', 'Ji ', 'Zhun ', 'Qi ', 'Sao ', 'Ju ', 'Ni ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x058.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x058.php new file mode 100644 index 000000000..00f2ac4e7 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x058.php @@ -0,0 +1 @@ +<?php return ['Ku ', 'Ke ', 'Tang ', 'Kun ', 'Ni ', 'Jian ', 'Dui ', 'Jin ', 'Gang ', 'Yu ', 'E ', 'Peng ', 'Gu ', 'Tu ', 'Leng ', '[?] ', 'Ya ', 'Qian ', '[?] ', 'An ', '[?] ', 'Duo ', 'Nao ', 'Tu ', 'Cheng ', 'Yin ', 'Hun ', 'Bi ', 'Lian ', 'Guo ', 'Die ', 'Zhuan ', 'Hou ', 'Bao ', 'Bao ', 'Yu ', 'Di ', 'Mao ', 'Jie ', 'Ruan ', 'E ', 'Geng ', 'Kan ', 'Zong ', 'Yu ', 'Huang ', 'E ', 'Yao ', 'Yan ', 'Bao ', 'Ji ', 'Mei ', 'Chang ', 'Du ', 'Tuo ', 'Yin ', 'Feng ', 'Zhong ', 'Jie ', 'Zhen ', 'Feng ', 'Gang ', 'Chuan ', 'Jian ', 'Pyeng ', 'Toride ', 'Xiang ', 'Huang ', 'Leng ', 'Duan ', '[?] ', 'Xuan ', 'Ji ', 'Ji ', 'Kuai ', 'Ying ', 'Ta ', 'Cheng ', 'Yong ', 'Kai ', 'Su ', 'Su ', 'Shi ', 'Mi ', 'Ta ', 'Weng ', 'Cheng ', 'Tu ', 'Tang ', 'Que ', 'Zhong ', 'Li ', 'Peng ', 'Bang ', 'Sai ', 'Zang ', 'Dui ', 'Tian ', 'Wu ', 'Cheng ', 'Xun ', 'Ge ', 'Zhen ', 'Ai ', 'Gong ', 'Yan ', 'Kan ', 'Tian ', 'Yuan ', 'Wen ', 'Xie ', 'Liu ', 'Ama ', 'Lang ', 'Chang ', 'Peng ', 'Beng ', 'Chen ', 'Cu ', 'Lu ', 'Ou ', 'Qian ', 'Mei ', 'Mo ', 'Zhuan ', 'Shuang ', 'Shu ', 'Lou ', 'Chi ', 'Man ', 'Biao ', 'Jing ', 'Qi ', 'Shu ', 'Di ', 'Zhang ', 'Kan ', 'Yong ', 'Dian ', 'Chen ', 'Zhi ', 'Xi ', 'Guo ', 'Qiang ', 'Jin ', 'Di ', 'Shang ', 'Mu ', 'Cui ', 'Yan ', 'Ta ', 'Zeng ', 'Qi ', 'Qiang ', 'Liang ', '[?] ', 'Zhui ', 'Qiao ', 'Zeng ', 'Xu ', 'Shan ', 'Shan ', 'Ba ', 'Pu ', 'Kuai ', 'Dong ', 'Fan ', 'Que ', 'Mo ', 'Dun ', 'Dun ', 'Dun ', 'Di ', 'Sheng ', 'Duo ', 'Duo ', 'Tan ', 'Deng ', 'Wu ', 'Fen ', 'Huang ', 'Tan ', 'Da ', 'Ye ', 'Sho ', 'Mama ', 'Yu ', 'Qiang ', 'Ji ', 'Qiao ', 'Ken ', 'Yi ', 'Pi ', 'Bi ', 'Dian ', 'Jiang ', 'Ye ', 'Yong ', 'Bo ', 'Tan ', 'Lan ', 'Ju ', 'Huai ', 'Dang ', 'Rang ', 'Qian ', 'Xun ', 'Lan ', 'Xi ', 'He ', 'Ai ', 'Ya ', 'Dao ', 'Hao ', 'Ruan ', 'Mama ', 'Lei ', 'Kuang ', 'Lu ', 'Yan ', 'Tan ', 'Wei ', 'Huai ', 'Long ', 'Long ', 'Rui ', 'Li ', 'Lin ', 'Rang ', 'Ten ', 'Xun ', 'Yan ', 'Lei ', 'Ba ', '[?] ', 'Shi ', 'Ren ', '[?] ', 'Zhuang ', 'Zhuang ', 'Sheng ', 'Yi ', 'Mai ', 'Ke ', 'Zhu ', 'Zhuang ', 'Hu ', 'Hu ', 'Kun ', 'Yi ', 'Hu ', 'Xu ', 'Kun ', 'Shou ', 'Mang ', 'Zun ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x059.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x059.php new file mode 100644 index 000000000..f093af0e2 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x059.php @@ -0,0 +1 @@ +<?php return ['Shou ', 'Yi ', 'Zhi ', 'Gu ', 'Chu ', 'Jiang ', 'Feng ', 'Bei ', 'Cay ', 'Bian ', 'Sui ', 'Qun ', 'Ling ', 'Fu ', 'Zuo ', 'Xia ', 'Xiong ', '[?] ', 'Nao ', 'Xia ', 'Kui ', 'Xi ', 'Wai ', 'Yuan ', 'Mao ', 'Su ', 'Duo ', 'Duo ', 'Ye ', 'Qing ', 'Uys ', 'Gou ', 'Gou ', 'Qi ', 'Meng ', 'Meng ', 'Yin ', 'Huo ', 'Chen ', 'Da ', 'Ze ', 'Tian ', 'Tai ', 'Fu ', 'Guai ', 'Yao ', 'Yang ', 'Hang ', 'Gao ', 'Shi ', 'Ben ', 'Tai ', 'Tou ', 'Yan ', 'Bi ', 'Yi ', 'Kua ', 'Jia ', 'Duo ', 'Kwu ', 'Kuang ', 'Yun ', 'Jia ', 'Pa ', 'En ', 'Lian ', 'Huan ', 'Di ', 'Yan ', 'Pao ', 'Quan ', 'Qi ', 'Nai ', 'Feng ', 'Xie ', 'Fen ', 'Dian ', '[?] ', 'Kui ', 'Zou ', 'Huan ', 'Qi ', 'Kai ', 'Zha ', 'Ben ', 'Yi ', 'Jiang ', 'Tao ', 'Zang ', 'Ben ', 'Xi ', 'Xiang ', 'Fei ', 'Diao ', 'Xun ', 'Keng ', 'Dian ', 'Ao ', 'She ', 'Weng ', 'Pan ', 'Ao ', 'Wu ', 'Ao ', 'Jiang ', 'Lian ', 'Duo ', 'Yun ', 'Jiang ', 'Shi ', 'Fen ', 'Huo ', 'Bi ', 'Lian ', 'Duo ', 'Nu ', 'Nu ', 'Ding ', 'Nai ', 'Qian ', 'Jian ', 'Ta ', 'Jiu ', 'Nan ', 'Cha ', 'Hao ', 'Xian ', 'Fan ', 'Ji ', 'Shuo ', 'Ru ', 'Fei ', 'Wang ', 'Hong ', 'Zhuang ', 'Fu ', 'Ma ', 'Dan ', 'Ren ', 'Fu ', 'Jing ', 'Yan ', 'Xie ', 'Wen ', 'Zhong ', 'Pa ', 'Du ', 'Ji ', 'Keng ', 'Zhong ', 'Yao ', 'Jin ', 'Yun ', 'Miao ', 'Pei ', 'Shi ', 'Yue ', 'Zhuang ', 'Niu ', 'Yan ', 'Na ', 'Xin ', 'Fen ', 'Bi ', 'Yu ', 'Tuo ', 'Feng ', 'Yuan ', 'Fang ', 'Wu ', 'Yu ', 'Gui ', 'Du ', 'Ba ', 'Ni ', 'Zhou ', 'Zhuo ', 'Zhao ', 'Da ', 'Nai ', 'Yuan ', 'Tou ', 'Xuan ', 'Zhi ', 'E ', 'Mei ', 'Mo ', 'Qi ', 'Bi ', 'Shen ', 'Qie ', 'E ', 'He ', 'Xu ', 'Fa ', 'Zheng ', 'Min ', 'Ban ', 'Mu ', 'Fu ', 'Ling ', 'Zi ', 'Zi ', 'Shi ', 'Ran ', 'Shan ', 'Yang ', 'Man ', 'Jie ', 'Gu ', 'Si ', 'Xing ', 'Wei ', 'Zi ', 'Ju ', 'Shan ', 'Pin ', 'Ren ', 'Yao ', 'Tong ', 'Jiang ', 'Shu ', 'Ji ', 'Gai ', 'Shang ', 'Kuo ', 'Juan ', 'Jiao ', 'Gou ', 'Mu ', 'Jian ', 'Jian ', 'Yi ', 'Nian ', 'Zhi ', 'Ji ', 'Ji ', 'Xian ', 'Heng ', 'Guang ', 'Jun ', 'Kua ', 'Yan ', 'Ming ', 'Lie ', 'Pei ', 'Yan ', 'You ', 'Yan ', 'Cha ', 'Shen ', 'Yin ', 'Chi ', 'Gui ', 'Quan ', 'Zi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x05a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x05a.php new file mode 100644 index 000000000..565202141 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x05a.php @@ -0,0 +1 @@ +<?php return ['Song ', 'Wei ', 'Hong ', 'Wa ', 'Lou ', 'Ya ', 'Rao ', 'Jiao ', 'Luan ', 'Ping ', 'Xian ', 'Shao ', 'Li ', 'Cheng ', 'Xiao ', 'Mang ', 'Fu ', 'Suo ', 'Wu ', 'Wei ', 'Ke ', 'Lai ', 'Chuo ', 'Ding ', 'Niang ', 'Xing ', 'Nan ', 'Yu ', 'Nuo ', 'Pei ', 'Nei ', 'Juan ', 'Shen ', 'Zhi ', 'Han ', 'Di ', 'Zhuang ', 'E ', 'Pin ', 'Tui ', 'Han ', 'Mian ', 'Wu ', 'Yan ', 'Wu ', 'Xi ', 'Yan ', 'Yu ', 'Si ', 'Yu ', 'Wa ', '[?] ', 'Xian ', 'Ju ', 'Qu ', 'Shui ', 'Qi ', 'Xian ', 'Zhui ', 'Dong ', 'Chang ', 'Lu ', 'Ai ', 'E ', 'E ', 'Lou ', 'Mian ', 'Cong ', 'Pou ', 'Ju ', 'Po ', 'Cai ', 'Ding ', 'Wan ', 'Biao ', 'Xiao ', 'Shu ', 'Qi ', 'Hui ', 'Fu ', 'E ', 'Wo ', 'Tan ', 'Fei ', 'Wei ', 'Jie ', 'Tian ', 'Ni ', 'Quan ', 'Jing ', 'Hun ', 'Jing ', 'Qian ', 'Dian ', 'Xing ', 'Hu ', 'Wa ', 'Lai ', 'Bi ', 'Yin ', 'Chou ', 'Chuo ', 'Fu ', 'Jing ', 'Lun ', 'Yan ', 'Lan ', 'Kun ', 'Yin ', 'Ya ', 'Ju ', 'Li ', 'Dian ', 'Xian ', 'Hwa ', 'Hua ', 'Ying ', 'Chan ', 'Shen ', 'Ting ', 'Dang ', 'Yao ', 'Wu ', 'Nan ', 'Ruo ', 'Jia ', 'Tou ', 'Xu ', 'Yu ', 'Wei ', 'Ti ', 'Rou ', 'Mei ', 'Dan ', 'Ruan ', 'Qin ', 'Hui ', 'Wu ', 'Qian ', 'Chun ', 'Mao ', 'Fu ', 'Jie ', 'Duan ', 'Xi ', 'Zhong ', 'Mei ', 'Huang ', 'Mian ', 'An ', 'Ying ', 'Xuan ', 'Jie ', 'Wei ', 'Mei ', 'Yuan ', 'Zhen ', 'Qiu ', 'Ti ', 'Xie ', 'Tuo ', 'Lian ', 'Mao ', 'Ran ', 'Si ', 'Pian ', 'Wei ', 'Wa ', 'Jiu ', 'Hu ', 'Ao ', '[?] ', 'Bou ', 'Xu ', 'Tou ', 'Gui ', 'Zou ', 'Yao ', 'Pi ', 'Xi ', 'Yuan ', 'Ying ', 'Rong ', 'Ru ', 'Chi ', 'Liu ', 'Mei ', 'Pan ', 'Ao ', 'Ma ', 'Gou ', 'Kui ', 'Qin ', 'Jia ', 'Sao ', 'Zhen ', 'Yuan ', 'Cha ', 'Yong ', 'Ming ', 'Ying ', 'Ji ', 'Su ', 'Niao ', 'Xian ', 'Tao ', 'Pang ', 'Lang ', 'Nao ', 'Bao ', 'Ai ', 'Pi ', 'Pin ', 'Yi ', 'Piao ', 'Yu ', 'Lei ', 'Xuan ', 'Man ', 'Yi ', 'Zhang ', 'Kang ', 'Yong ', 'Ni ', 'Li ', 'Di ', 'Gui ', 'Yan ', 'Jin ', 'Zhuan ', 'Chang ', 'Ce ', 'Han ', 'Nen ', 'Lao ', 'Mo ', 'Zhe ', 'Hu ', 'Hu ', 'Ao ', 'Nen ', 'Qiang ', 'Ma ', 'Pie ', 'Gu ', 'Wu ', 'Jiao ', 'Tuo ', 'Zhan ', 'Mao ', 'Xian ', 'Xian ', 'Mo ', 'Liao ', 'Lian ', 'Hua ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x05b.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x05b.php new file mode 100644 index 000000000..6d59d163d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x05b.php @@ -0,0 +1 @@ +<?php return ['Gui ', 'Deng ', 'Zhi ', 'Xu ', 'Yi ', 'Hua ', 'Xi ', 'Hui ', 'Rao ', 'Xi ', 'Yan ', 'Chan ', 'Jiao ', 'Mei ', 'Fan ', 'Fan ', 'Xian ', 'Yi ', 'Wei ', 'Jiao ', 'Fu ', 'Shi ', 'Bi ', 'Shan ', 'Sui ', 'Qiang ', 'Lian ', 'Huan ', 'Xin ', 'Niao ', 'Dong ', 'Yi ', 'Can ', 'Ai ', 'Niang ', 'Neng ', 'Ma ', 'Tiao ', 'Chou ', 'Jin ', 'Ci ', 'Yu ', 'Pin ', 'Yong ', 'Xu ', 'Nai ', 'Yan ', 'Tai ', 'Ying ', 'Can ', 'Niao ', 'Wo ', 'Ying ', 'Mian ', 'Kaka ', 'Ma ', 'Shen ', 'Xing ', 'Ni ', 'Du ', 'Liu ', 'Yuan ', 'Lan ', 'Yan ', 'Shuang ', 'Ling ', 'Jiao ', 'Niang ', 'Lan ', 'Xian ', 'Ying ', 'Shuang ', 'Shuai ', 'Quan ', 'Mi ', 'Li ', 'Luan ', 'Yan ', 'Zhu ', 'Lan ', 'Zi ', 'Jie ', 'Jue ', 'Jue ', 'Kong ', 'Yun ', 'Zi ', 'Zi ', 'Cun ', 'Sun ', 'Fu ', 'Bei ', 'Zi ', 'Xiao ', 'Xin ', 'Meng ', 'Si ', 'Tai ', 'Bao ', 'Ji ', 'Gu ', 'Nu ', 'Xue ', '[?] ', 'Zhuan ', 'Hai ', 'Luan ', 'Sun ', 'Huai ', 'Mie ', 'Cong ', 'Qian ', 'Shu ', 'Chan ', 'Ya ', 'Zi ', 'Ni ', 'Fu ', 'Zi ', 'Li ', 'Xue ', 'Bo ', 'Ru ', 'Lai ', 'Nie ', 'Nie ', 'Ying ', 'Luan ', 'Mian ', 'Zhu ', 'Rong ', 'Ta ', 'Gui ', 'Zhai ', 'Qiong ', 'Yu ', 'Shou ', 'An ', 'Tu ', 'Song ', 'Wan ', 'Rou ', 'Yao ', 'Hong ', 'Yi ', 'Jing ', 'Zhun ', 'Mi ', 'Zhu ', 'Dang ', 'Hong ', 'Zong ', 'Guan ', 'Zhou ', 'Ding ', 'Wan ', 'Yi ', 'Bao ', 'Shi ', 'Shi ', 'Chong ', 'Shen ', 'Ke ', 'Xuan ', 'Shi ', 'You ', 'Huan ', 'Yi ', 'Tiao ', 'Shi ', 'Xian ', 'Gong ', 'Cheng ', 'Qun ', 'Gong ', 'Xiao ', 'Zai ', 'Zha ', 'Bao ', 'Hai ', 'Yan ', 'Xiao ', 'Jia ', 'Shen ', 'Chen ', 'Rong ', 'Huang ', 'Mi ', 'Kou ', 'Kuan ', 'Bin ', 'Su ', 'Cai ', 'Zan ', 'Ji ', 'Yuan ', 'Ji ', 'Yin ', 'Mi ', 'Kou ', 'Qing ', 'Que ', 'Zhen ', 'Jian ', 'Fu ', 'Ning ', 'Bing ', 'Huan ', 'Mei ', 'Qin ', 'Han ', 'Yu ', 'Shi ', 'Ning ', 'Qin ', 'Ning ', 'Zhi ', 'Yu ', 'Bao ', 'Kuan ', 'Ning ', 'Qin ', 'Mo ', 'Cha ', 'Ju ', 'Gua ', 'Qin ', 'Hu ', 'Wu ', 'Liao ', 'Shi ', 'Zhu ', 'Zhai ', 'Shen ', 'Wei ', 'Xie ', 'Kuan ', 'Hui ', 'Liao ', 'Jun ', 'Huan ', 'Yi ', 'Yi ', 'Bao ', 'Qin ', 'Chong ', 'Bao ', 'Feng ', 'Cun ', 'Dui ', 'Si ', 'Xun ', 'Dao ', 'Lu ', 'Dui ', 'Shou ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x05c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x05c.php new file mode 100644 index 000000000..f66996280 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x05c.php @@ -0,0 +1 @@ +<?php return ['Po ', 'Feng ', 'Zhuan ', 'Fu ', 'She ', 'Ke ', 'Jiang ', 'Jiang ', 'Zhuan ', 'Wei ', 'Zun ', 'Xun ', 'Shu ', 'Dui ', 'Dao ', 'Xiao ', 'Ji ', 'Shao ', 'Er ', 'Er ', 'Er ', 'Ga ', 'Jian ', 'Shu ', 'Chen ', 'Shang ', 'Shang ', 'Mo ', 'Ga ', 'Chang ', 'Liao ', 'Xian ', 'Xian ', '[?] ', 'Wang ', 'Wang ', 'You ', 'Liao ', 'Liao ', 'Yao ', 'Mang ', 'Wang ', 'Wang ', 'Wang ', 'Ga ', 'Yao ', 'Duo ', 'Kui ', 'Zhong ', 'Jiu ', 'Gan ', 'Gu ', 'Gan ', 'Tui ', 'Gan ', 'Gan ', 'Shi ', 'Yin ', 'Chi ', 'Kao ', 'Ni ', 'Jin ', 'Wei ', 'Niao ', 'Ju ', 'Pi ', 'Ceng ', 'Xi ', 'Bi ', 'Ju ', 'Jie ', 'Tian ', 'Qu ', 'Ti ', 'Jie ', 'Wu ', 'Diao ', 'Shi ', 'Shi ', 'Ping ', 'Ji ', 'Xie ', 'Chen ', 'Xi ', 'Ni ', 'Zhan ', 'Xi ', '[?] ', 'Man ', 'E ', 'Lou ', 'Ping ', 'Ti ', 'Fei ', 'Shu ', 'Xie ', 'Tu ', 'Lu ', 'Lu ', 'Xi ', 'Ceng ', 'Lu ', 'Ju ', 'Xie ', 'Ju ', 'Jue ', 'Liao ', 'Jue ', 'Shu ', 'Xi ', 'Che ', 'Tun ', 'Ni ', 'Shan ', '[?] ', 'Xian ', 'Li ', 'Xue ', 'Nata ', '[?] ', 'Long ', 'Yi ', 'Qi ', 'Ren ', 'Wu ', 'Han ', 'Shen ', 'Yu ', 'Chu ', 'Sui ', 'Qi ', '[?] ', 'Yue ', 'Ban ', 'Yao ', 'Ang ', 'Ya ', 'Wu ', 'Jie ', 'E ', 'Ji ', 'Qian ', 'Fen ', 'Yuan ', 'Qi ', 'Cen ', 'Qian ', 'Qi ', 'Cha ', 'Jie ', 'Qu ', 'Gang ', 'Xian ', 'Ao ', 'Lan ', 'Dao ', 'Ba ', 'Zuo ', 'Zuo ', 'Yang ', 'Ju ', 'Gang ', 'Ke ', 'Gou ', 'Xue ', 'Bei ', 'Li ', 'Tiao ', 'Ju ', 'Yan ', 'Fu ', 'Xiu ', 'Jia ', 'Ling ', 'Tuo ', 'Pei ', 'You ', 'Dai ', 'Kuang ', 'Yue ', 'Qu ', 'Hu ', 'Po ', 'Min ', 'An ', 'Tiao ', 'Ling ', 'Chi ', 'Yuri ', 'Dong ', 'Cem ', 'Kui ', 'Xiu ', 'Mao ', 'Tong ', 'Xue ', 'Yi ', 'Kura ', 'He ', 'Ke ', 'Luo ', 'E ', 'Fu ', 'Xun ', 'Die ', 'Lu ', 'An ', 'Er ', 'Gai ', 'Quan ', 'Tong ', 'Yi ', 'Mu ', 'Shi ', 'An ', 'Wei ', 'Hu ', 'Zhi ', 'Mi ', 'Li ', 'Ji ', 'Tong ', 'Wei ', 'You ', 'Sang ', 'Xia ', 'Li ', 'Yao ', 'Jiao ', 'Zheng ', 'Luan ', 'Jiao ', 'E ', 'E ', 'Yu ', 'Ye ', 'Bu ', 'Qiao ', 'Qun ', 'Feng ', 'Feng ', 'Nao ', 'Li ', 'You ', 'Xian ', 'Hong ', 'Dao ', 'Shen ', 'Cheng ', 'Tu ', 'Geng ', 'Jun ', 'Hao ', 'Xia ', 'Yin ', 'Yu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x05d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x05d.php new file mode 100644 index 000000000..a0b7062a8 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x05d.php @@ -0,0 +1 @@ +<?php return ['Lang ', 'Kan ', 'Lao ', 'Lai ', 'Xian ', 'Que ', 'Kong ', 'Chong ', 'Chong ', 'Ta ', 'Lin ', 'Hua ', 'Ju ', 'Lai ', 'Qi ', 'Min ', 'Kun ', 'Kun ', 'Zu ', 'Gu ', 'Cui ', 'Ya ', 'Ya ', 'Gang ', 'Lun ', 'Lun ', 'Leng ', 'Jue ', 'Duo ', 'Zheng ', 'Guo ', 'Yin ', 'Dong ', 'Han ', 'Zheng ', 'Wei ', 'Yao ', 'Pi ', 'Yan ', 'Song ', 'Jie ', 'Beng ', 'Zu ', 'Jue ', 'Dong ', 'Zhan ', 'Gu ', 'Yin ', '[?] ', 'Ze ', 'Huang ', 'Yu ', 'Wei ', 'Yang ', 'Feng ', 'Qiu ', 'Dun ', 'Ti ', 'Yi ', 'Zhi ', 'Shi ', 'Zai ', 'Yao ', 'E ', 'Zhu ', 'Kan ', 'Lu ', 'Yan ', 'Mei ', 'Gan ', 'Ji ', 'Ji ', 'Huan ', 'Ting ', 'Sheng ', 'Mei ', 'Qian ', 'Wu ', 'Yu ', 'Zong ', 'Lan ', 'Jue ', 'Yan ', 'Yan ', 'Wei ', 'Zong ', 'Cha ', 'Sui ', 'Rong ', 'Yamashina ', 'Qin ', 'Yu ', 'Kewashii ', 'Lou ', 'Tu ', 'Dui ', 'Xi ', 'Weng ', 'Cang ', 'Dang ', 'Hong ', 'Jie ', 'Ai ', 'Liu ', 'Wu ', 'Song ', 'Qiao ', 'Zi ', 'Wei ', 'Beng ', 'Dian ', 'Cuo ', 'Qian ', 'Yong ', 'Nie ', 'Cuo ', 'Ji ', '[?] ', 'Tao ', 'Song ', 'Zong ', 'Jiang ', 'Liao ', 'Kang ', 'Chan ', 'Die ', 'Cen ', 'Ding ', 'Tu ', 'Lou ', 'Zhang ', 'Zhan ', 'Zhan ', 'Ao ', 'Cao ', 'Qu ', 'Qiang ', 'Zui ', 'Zui ', 'Dao ', 'Dao ', 'Xi ', 'Yu ', 'Bo ', 'Long ', 'Xiang ', 'Ceng ', 'Bo ', 'Qin ', 'Jiao ', 'Yan ', 'Lao ', 'Zhan ', 'Lin ', 'Liao ', 'Liao ', 'Jin ', 'Deng ', 'Duo ', 'Zun ', 'Jiao ', 'Gui ', 'Yao ', 'Qiao ', 'Yao ', 'Jue ', 'Zhan ', 'Yi ', 'Xue ', 'Nao ', 'Ye ', 'Ye ', 'Yi ', 'E ', 'Xian ', 'Ji ', 'Xie ', 'Ke ', 'Xi ', 'Di ', 'Ao ', 'Zui ', '[?] ', 'Ni ', 'Rong ', 'Dao ', 'Ling ', 'Za ', 'Yu ', 'Yue ', 'Yin ', '[?] ', 'Jie ', 'Li ', 'Sui ', 'Long ', 'Long ', 'Dian ', 'Ying ', 'Xi ', 'Ju ', 'Chan ', 'Ying ', 'Kui ', 'Yan ', 'Wei ', 'Nao ', 'Quan ', 'Chao ', 'Cuan ', 'Luan ', 'Dian ', 'Dian ', '[?] ', 'Yan ', 'Yan ', 'Yan ', 'Nao ', 'Yan ', 'Chuan ', 'Gui ', 'Chuan ', 'Zhou ', 'Huang ', 'Jing ', 'Xun ', 'Chao ', 'Chao ', 'Lie ', 'Gong ', 'Zuo ', 'Qiao ', 'Ju ', 'Gong ', 'Kek ', 'Wu ', 'Pwu ', 'Pwu ', 'Chai ', 'Qiu ', 'Qiu ', 'Ji ', 'Yi ', 'Si ', 'Ba ', 'Zhi ', 'Zhao ', 'Xiang ', 'Yi ', 'Jin ', 'Xun ', 'Juan ', 'Phas ', 'Xun ', 'Jin ', 'Fu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x05e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x05e.php new file mode 100644 index 000000000..2ebbc3406 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x05e.php @@ -0,0 +1 @@ +<?php return ['Za ', 'Bi ', 'Shi ', 'Bu ', 'Ding ', 'Shuai ', 'Fan ', 'Nie ', 'Shi ', 'Fen ', 'Pa ', 'Zhi ', 'Xi ', 'Hu ', 'Dan ', 'Wei ', 'Zhang ', 'Tang ', 'Dai ', 'Ma ', 'Pei ', 'Pa ', 'Tie ', 'Fu ', 'Lian ', 'Zhi ', 'Zhou ', 'Bo ', 'Zhi ', 'Di ', 'Mo ', 'Yi ', 'Yi ', 'Ping ', 'Qia ', 'Juan ', 'Ru ', 'Shuai ', 'Dai ', 'Zheng ', 'Shui ', 'Qiao ', 'Zhen ', 'Shi ', 'Qun ', 'Xi ', 'Bang ', 'Dai ', 'Gui ', 'Chou ', 'Ping ', 'Zhang ', 'Sha ', 'Wan ', 'Dai ', 'Wei ', 'Chang ', 'Sha ', 'Qi ', 'Ze ', 'Guo ', 'Mao ', 'Du ', 'Hou ', 'Zheng ', 'Xu ', 'Mi ', 'Wei ', 'Wo ', 'Fu ', 'Yi ', 'Bang ', 'Ping ', 'Tazuna ', 'Gong ', 'Pan ', 'Huang ', 'Dao ', 'Mi ', 'Jia ', 'Teng ', 'Hui ', 'Zhong ', 'Shan ', 'Man ', 'Mu ', 'Biao ', 'Guo ', 'Ze ', 'Mu ', 'Bang ', 'Zhang ', 'Jiong ', 'Chan ', 'Fu ', 'Zhi ', 'Hu ', 'Fan ', 'Chuang ', 'Bi ', 'Hei ', '[?] ', 'Mi ', 'Qiao ', 'Chan ', 'Fen ', 'Meng ', 'Bang ', 'Chou ', 'Mie ', 'Chu ', 'Jie ', 'Xian ', 'Lan ', 'Gan ', 'Ping ', 'Nian ', 'Qian ', 'Bing ', 'Bing ', 'Xing ', 'Gan ', 'Yao ', 'Huan ', 'You ', 'You ', 'Ji ', 'Yan ', 'Pi ', 'Ting ', 'Ze ', 'Guang ', 'Zhuang ', 'Mo ', 'Qing ', 'Bi ', 'Qin ', 'Dun ', 'Chuang ', 'Gui ', 'Ya ', 'Bai ', 'Jie ', 'Xu ', 'Lu ', 'Wu ', '[?] ', 'Ku ', 'Ying ', 'Di ', 'Pao ', 'Dian ', 'Ya ', 'Miao ', 'Geng ', 'Ci ', 'Fu ', 'Tong ', 'Pang ', 'Fei ', 'Xiang ', 'Yi ', 'Zhi ', 'Tiao ', 'Zhi ', 'Xiu ', 'Du ', 'Zuo ', 'Xiao ', 'Tu ', 'Gui ', 'Ku ', 'Pang ', 'Ting ', 'You ', 'Bu ', 'Ding ', 'Cheng ', 'Lai ', 'Bei ', 'Ji ', 'An ', 'Shu ', 'Kang ', 'Yong ', 'Tuo ', 'Song ', 'Shu ', 'Qing ', 'Yu ', 'Yu ', 'Miao ', 'Sou ', 'Ce ', 'Xiang ', 'Fei ', 'Jiu ', 'He ', 'Hui ', 'Liu ', 'Sha ', 'Lian ', 'Lang ', 'Sou ', 'Jian ', 'Pou ', 'Qing ', 'Jiu ', 'Jiu ', 'Qin ', 'Ao ', 'Kuo ', 'Lou ', 'Yin ', 'Liao ', 'Dai ', 'Lu ', 'Yi ', 'Chu ', 'Chan ', 'Tu ', 'Si ', 'Xin ', 'Miao ', 'Chang ', 'Wu ', 'Fei ', 'Guang ', 'Koc ', 'Kuai ', 'Bi ', 'Qiang ', 'Xie ', 'Lin ', 'Lin ', 'Liao ', 'Lu ', '[?] ', 'Ying ', 'Xian ', 'Ting ', 'Yong ', 'Li ', 'Ting ', 'Yin ', 'Xun ', 'Yan ', 'Ting ', 'Di ', 'Po ', 'Jian ', 'Hui ', 'Nai ', 'Hui ', 'Gong ', 'Nian ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x05f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x05f.php new file mode 100644 index 000000000..aee88eac1 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x05f.php @@ -0,0 +1 @@ +<?php return ['Kai ', 'Bian ', 'Yi ', 'Qi ', 'Nong ', 'Fen ', 'Ju ', 'Yan ', 'Yi ', 'Zang ', 'Bi ', 'Yi ', 'Yi ', 'Er ', 'San ', 'Shi ', 'Er ', 'Shi ', 'Shi ', 'Gong ', 'Diao ', 'Yin ', 'Hu ', 'Fu ', 'Hong ', 'Wu ', 'Tui ', 'Chi ', 'Jiang ', 'Ba ', 'Shen ', 'Di ', 'Zhang ', 'Jue ', 'Tao ', 'Fu ', 'Di ', 'Mi ', 'Xian ', 'Hu ', 'Chao ', 'Nu ', 'Jing ', 'Zhen ', 'Yi ', 'Mi ', 'Quan ', 'Wan ', 'Shao ', 'Ruo ', 'Xuan ', 'Jing ', 'Dun ', 'Zhang ', 'Jiang ', 'Qiang ', 'Peng ', 'Dan ', 'Qiang ', 'Bi ', 'Bi ', 'She ', 'Dan ', 'Jian ', 'Gou ', 'Sei ', 'Fa ', 'Bi ', 'Kou ', 'Nagi ', 'Bie ', 'Xiao ', 'Dan ', 'Kuo ', 'Qiang ', 'Hong ', 'Mi ', 'Kuo ', 'Wan ', 'Jue ', 'Ji ', 'Ji ', 'Gui ', 'Dang ', 'Lu ', 'Lu ', 'Tuan ', 'Hui ', 'Zhi ', 'Hui ', 'Hui ', 'Yi ', 'Yi ', 'Yi ', 'Yi ', 'Huo ', 'Huo ', 'Shan ', 'Xing ', 'Wen ', 'Tong ', 'Yan ', 'Yan ', 'Yu ', 'Chi ', 'Cai ', 'Biao ', 'Diao ', 'Bin ', 'Peng ', 'Yong ', 'Piao ', 'Zhang ', 'Ying ', 'Chi ', 'Chi ', 'Zhuo ', 'Tuo ', 'Ji ', 'Pang ', 'Zhong ', 'Yi ', 'Wang ', 'Che ', 'Bi ', 'Chi ', 'Ling ', 'Fu ', 'Wang ', 'Zheng ', 'Cu ', 'Wang ', 'Jing ', 'Dai ', 'Xi ', 'Xun ', 'Hen ', 'Yang ', 'Huai ', 'Lu ', 'Hou ', 'Wa ', 'Cheng ', 'Zhi ', 'Xu ', 'Jing ', 'Tu ', 'Cong ', '[?] ', 'Lai ', 'Cong ', 'De ', 'Pai ', 'Xi ', '[?] ', 'Qi ', 'Chang ', 'Zhi ', 'Cong ', 'Zhou ', 'Lai ', 'Yu ', 'Xie ', 'Jie ', 'Jian ', 'Chi ', 'Jia ', 'Bian ', 'Huang ', 'Fu ', 'Xun ', 'Wei ', 'Pang ', 'Yao ', 'Wei ', 'Xi ', 'Zheng ', 'Piao ', 'Chi ', 'De ', 'Zheng ', 'Zheng ', 'Bie ', 'De ', 'Chong ', 'Che ', 'Jiao ', 'Wei ', 'Jiao ', 'Hui ', 'Mei ', 'Long ', 'Xiang ', 'Bao ', 'Qu ', 'Xin ', 'Shu ', 'Bi ', 'Yi ', 'Le ', 'Ren ', 'Dao ', 'Ding ', 'Gai ', 'Ji ', 'Ren ', 'Ren ', 'Chan ', 'Tan ', 'Te ', 'Te ', 'Gan ', 'Qi ', 'Shi ', 'Cun ', 'Zhi ', 'Wang ', 'Mang ', 'Xi ', 'Fan ', 'Ying ', 'Tian ', 'Min ', 'Min ', 'Zhong ', 'Chong ', 'Wu ', 'Ji ', 'Wu ', 'Xi ', 'Ye ', 'You ', 'Wan ', 'Cong ', 'Zhong ', 'Kuai ', 'Yu ', 'Bian ', 'Zhi ', 'Qi ', 'Cui ', 'Chen ', 'Tai ', 'Tun ', 'Qian ', 'Nian ', 'Hun ', 'Xiong ', 'Niu ', 'Wang ', 'Xian ', 'Xin ', 'Kang ', 'Hu ', 'Kai ', 'Fen ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x060.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x060.php new file mode 100644 index 000000000..91122b6a3 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x060.php @@ -0,0 +1 @@ +<?php return ['Huai ', 'Tai ', 'Song ', 'Wu ', 'Ou ', 'Chang ', 'Chuang ', 'Ju ', 'Yi ', 'Bao ', 'Chao ', 'Min ', 'Pei ', 'Zuo ', 'Zen ', 'Yang ', 'Kou ', 'Ban ', 'Nu ', 'Nao ', 'Zheng ', 'Pa ', 'Bu ', 'Tie ', 'Gu ', 'Hu ', 'Ju ', 'Da ', 'Lian ', 'Si ', 'Chou ', 'Di ', 'Dai ', 'Yi ', 'Tu ', 'You ', 'Fu ', 'Ji ', 'Peng ', 'Xing ', 'Yuan ', 'Ni ', 'Guai ', 'Fu ', 'Xi ', 'Bi ', 'You ', 'Qie ', 'Xuan ', 'Cong ', 'Bing ', 'Huang ', 'Xu ', 'Chu ', 'Pi ', 'Xi ', 'Xi ', 'Tan ', 'Koraeru ', 'Zong ', 'Dui ', '[?] ', 'Ki ', 'Yi ', 'Chi ', 'Ren ', 'Xun ', 'Shi ', 'Xi ', 'Lao ', 'Heng ', 'Kuang ', 'Mu ', 'Zhi ', 'Xie ', 'Lian ', 'Tiao ', 'Huang ', 'Die ', 'Hao ', 'Kong ', 'Gui ', 'Heng ', 'Xi ', 'Xiao ', 'Shu ', 'S ', 'Kua ', 'Qiu ', 'Yang ', 'Hui ', 'Hui ', 'Chi ', 'Jia ', 'Yi ', 'Xiong ', 'Guai ', 'Lin ', 'Hui ', 'Zi ', 'Xu ', 'Chi ', 'Xiang ', 'Nu ', 'Hen ', 'En ', 'Ke ', 'Tong ', 'Tian ', 'Gong ', 'Quan ', 'Xi ', 'Qia ', 'Yue ', 'Peng ', 'Ken ', 'De ', 'Hui ', 'E ', 'Kyuu ', 'Tong ', 'Yan ', 'Kai ', 'Ce ', 'Nao ', 'Yun ', 'Mang ', 'Yong ', 'Yong ', 'Yuan ', 'Pi ', 'Kun ', 'Qiao ', 'Yue ', 'Yu ', 'Yu ', 'Jie ', 'Xi ', 'Zhe ', 'Lin ', 'Ti ', 'Han ', 'Hao ', 'Qie ', 'Ti ', 'Bu ', 'Yi ', 'Qian ', 'Hui ', 'Xi ', 'Bei ', 'Man ', 'Yi ', 'Heng ', 'Song ', 'Quan ', 'Cheng ', 'Hui ', 'Wu ', 'Wu ', 'You ', 'Li ', 'Liang ', 'Huan ', 'Cong ', 'Yi ', 'Yue ', 'Li ', 'Nin ', 'Nao ', 'E ', 'Que ', 'Xuan ', 'Qian ', 'Wu ', 'Min ', 'Cong ', 'Fei ', 'Bei ', 'Duo ', 'Cui ', 'Chang ', 'Men ', 'Li ', 'Ji ', 'Guan ', 'Guan ', 'Xing ', 'Dao ', 'Qi ', 'Kong ', 'Tian ', 'Lun ', 'Xi ', 'Kan ', 'Kun ', 'Ni ', 'Qing ', 'Chou ', 'Dun ', 'Guo ', 'Chan ', 'Liang ', 'Wan ', 'Yuan ', 'Jin ', 'Ji ', 'Lin ', 'Yu ', 'Huo ', 'He ', 'Quan ', 'Tan ', 'Ti ', 'Ti ', 'Nie ', 'Wang ', 'Chuo ', 'Bu ', 'Hun ', 'Xi ', 'Tang ', 'Xin ', 'Wei ', 'Hui ', 'E ', 'Rui ', 'Zong ', 'Jian ', 'Yong ', 'Dian ', 'Ju ', 'Can ', 'Cheng ', 'De ', 'Bei ', 'Qie ', 'Can ', 'Dan ', 'Guan ', 'Duo ', 'Nao ', 'Yun ', 'Xiang ', 'Zhui ', 'Die ', 'Huang ', 'Chun ', 'Qiong ', 'Re ', 'Xing ', 'Ce ', 'Bian ', 'Hun ', 'Zong ', 'Ti ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x061.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x061.php new file mode 100644 index 000000000..b2d25d81a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x061.php @@ -0,0 +1 @@ +<?php return ['Qiao ', 'Chou ', 'Bei ', 'Xuan ', 'Wei ', 'Ge ', 'Qian ', 'Wei ', 'Yu ', 'Yu ', 'Bi ', 'Xuan ', 'Huan ', 'Min ', 'Bi ', 'Yi ', 'Mian ', 'Yong ', 'Kai ', 'Dang ', 'Yin ', 'E ', 'Chen ', 'Mou ', 'Ke ', 'Ke ', 'Yu ', 'Ai ', 'Qie ', 'Yan ', 'Nuo ', 'Gan ', 'Yun ', 'Zong ', 'Sai ', 'Leng ', 'Fen ', '[?] ', 'Kui ', 'Kui ', 'Que ', 'Gong ', 'Yun ', 'Su ', 'Su ', 'Qi ', 'Yao ', 'Song ', 'Huang ', 'Ji ', 'Gu ', 'Ju ', 'Chuang ', 'Ni ', 'Xie ', 'Kai ', 'Zheng ', 'Yong ', 'Cao ', 'Sun ', 'Shen ', 'Bo ', 'Kai ', 'Yuan ', 'Xie ', 'Hun ', 'Yong ', 'Yang ', 'Li ', 'Sao ', 'Tao ', 'Yin ', 'Ci ', 'Xu ', 'Qian ', 'Tai ', 'Huang ', 'Yun ', 'Shen ', 'Ming ', '[?] ', 'She ', 'Cong ', 'Piao ', 'Mo ', 'Mu ', 'Guo ', 'Chi ', 'Can ', 'Can ', 'Can ', 'Cui ', 'Min ', 'Te ', 'Zhang ', 'Tong ', 'Ao ', 'Shuang ', 'Man ', 'Guan ', 'Que ', 'Zao ', 'Jiu ', 'Hui ', 'Kai ', 'Lian ', 'Ou ', 'Song ', 'Jin ', 'Yin ', 'Lu ', 'Shang ', 'Wei ', 'Tuan ', 'Man ', 'Qian ', 'She ', 'Yong ', 'Qing ', 'Kang ', 'Di ', 'Zhi ', 'Lou ', 'Juan ', 'Qi ', 'Qi ', 'Yu ', 'Ping ', 'Liao ', 'Cong ', 'You ', 'Chong ', 'Zhi ', 'Tong ', 'Cheng ', 'Qi ', 'Qu ', 'Peng ', 'Bei ', 'Bie ', 'Chun ', 'Jiao ', 'Zeng ', 'Chi ', 'Lian ', 'Ping ', 'Kui ', 'Hui ', 'Qiao ', 'Cheng ', 'Yin ', 'Yin ', 'Xi ', 'Xi ', 'Dan ', 'Tan ', 'Duo ', 'Dui ', 'Dui ', 'Su ', 'Jue ', 'Ce ', 'Xiao ', 'Fan ', 'Fen ', 'Lao ', 'Lao ', 'Chong ', 'Han ', 'Qi ', 'Xian ', 'Min ', 'Jing ', 'Liao ', 'Wu ', 'Can ', 'Jue ', 'Cu ', 'Xian ', 'Tan ', 'Sheng ', 'Pi ', 'Yi ', 'Chu ', 'Xian ', 'Nao ', 'Dan ', 'Tan ', 'Jing ', 'Song ', 'Han ', 'Jiao ', 'Wai ', 'Huan ', 'Dong ', 'Qin ', 'Qin ', 'Qu ', 'Cao ', 'Ken ', 'Xie ', 'Ying ', 'Ao ', 'Mao ', 'Yi ', 'Lin ', 'Se ', 'Jun ', 'Huai ', 'Men ', 'Lan ', 'Ai ', 'Lin ', 'Yan ', 'Gua ', 'Xia ', 'Chi ', 'Yu ', 'Yin ', 'Dai ', 'Meng ', 'Ai ', 'Meng ', 'Dui ', 'Qi ', 'Mo ', 'Lan ', 'Men ', 'Chou ', 'Zhi ', 'Nuo ', 'Nuo ', 'Yan ', 'Yang ', 'Bo ', 'Zhi ', 'Kuang ', 'Kuang ', 'You ', 'Fu ', 'Liu ', 'Mie ', 'Cheng ', '[?] ', 'Chan ', 'Meng ', 'Lan ', 'Huai ', 'Xuan ', 'Rang ', 'Chan ', 'Ji ', 'Ju ', 'Huan ', 'She ', 'Yi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x062.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x062.php new file mode 100644 index 000000000..b8808e7e6 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x062.php @@ -0,0 +1 @@ +<?php return ['Lian ', 'Nan ', 'Mi ', 'Tang ', 'Jue ', 'Gang ', 'Gang ', 'Gang ', 'Ge ', 'Yue ', 'Wu ', 'Jian ', 'Xu ', 'Shu ', 'Rong ', 'Xi ', 'Cheng ', 'Wo ', 'Jie ', 'Ge ', 'Jian ', 'Qiang ', 'Huo ', 'Qiang ', 'Zhan ', 'Dong ', 'Qi ', 'Jia ', 'Die ', 'Zei ', 'Jia ', 'Ji ', 'Shi ', 'Kan ', 'Ji ', 'Kui ', 'Gai ', 'Deng ', 'Zhan ', 'Chuang ', 'Ge ', 'Jian ', 'Jie ', 'Yu ', 'Jian ', 'Yan ', 'Lu ', 'Xi ', 'Zhan ', 'Xi ', 'Xi ', 'Chuo ', 'Dai ', 'Qu ', 'Hu ', 'Hu ', 'Hu ', 'E ', 'Shi ', 'Li ', 'Mao ', 'Hu ', 'Li ', 'Fang ', 'Suo ', 'Bian ', 'Dian ', 'Jiong ', 'Shang ', 'Yi ', 'Yi ', 'Shan ', 'Hu ', 'Fei ', 'Yan ', 'Shou ', 'T ', 'Cai ', 'Zha ', 'Qiu ', 'Le ', 'Bu ', 'Ba ', 'Da ', 'Reng ', 'Fu ', 'Hameru ', 'Zai ', 'Tuo ', 'Zhang ', 'Diao ', 'Kang ', 'Yu ', 'Ku ', 'Han ', 'Shen ', 'Cha ', 'Yi ', 'Gu ', 'Kou ', 'Wu ', 'Tuo ', 'Qian ', 'Zhi ', 'Ren ', 'Kuo ', 'Men ', 'Sao ', 'Yang ', 'Niu ', 'Ban ', 'Che ', 'Rao ', 'Xi ', 'Qian ', 'Ban ', 'Jia ', 'Yu ', 'Fu ', 'Ao ', 'Xi ', 'Pi ', 'Zhi ', 'Zi ', 'E ', 'Dun ', 'Zhao ', 'Cheng ', 'Ji ', 'Yan ', 'Kuang ', 'Bian ', 'Chao ', 'Ju ', 'Wen ', 'Hu ', 'Yue ', 'Jue ', 'Ba ', 'Qin ', 'Zhen ', 'Zheng ', 'Yun ', 'Wan ', 'Nu ', 'Yi ', 'Shu ', 'Zhua ', 'Pou ', 'Tou ', 'Dou ', 'Kang ', 'Zhe ', 'Pou ', 'Fu ', 'Pao ', 'Ba ', 'Ao ', 'Ze ', 'Tuan ', 'Kou ', 'Lun ', 'Qiang ', '[?] ', 'Hu ', 'Bao ', 'Bing ', 'Zhi ', 'Peng ', 'Tan ', 'Pu ', 'Pi ', 'Tai ', 'Yao ', 'Zhen ', 'Zha ', 'Yang ', 'Bao ', 'He ', 'Ni ', 'Yi ', 'Di ', 'Chi ', 'Pi ', 'Za ', 'Mo ', 'Mo ', 'Shen ', 'Ya ', 'Chou ', 'Qu ', 'Min ', 'Chu ', 'Jia ', 'Fu ', 'Zhan ', 'Zhu ', 'Dan ', 'Chai ', 'Mu ', 'Nian ', 'La ', 'Fu ', 'Pao ', 'Ban ', 'Pai ', 'Ling ', 'Na ', 'Guai ', 'Qian ', 'Ju ', 'Tuo ', 'Ba ', 'Tuo ', 'Tuo ', 'Ao ', 'Ju ', 'Zhuo ', 'Pan ', 'Zhao ', 'Bai ', 'Bai ', 'Di ', 'Ni ', 'Ju ', 'Kuo ', 'Long ', 'Jian ', '[?] ', 'Yong ', 'Lan ', 'Ning ', 'Bo ', 'Ze ', 'Qian ', 'Hen ', 'Gua ', 'Shi ', 'Jie ', 'Zheng ', 'Nin ', 'Gong ', 'Gong ', 'Quan ', 'Shuan ', 'Cun ', 'Zan ', 'Kao ', 'Chi ', 'Xie ', 'Ce ', 'Hui ', 'Pin ', 'Zhuai ', 'Shi ', 'Na ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x063.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x063.php new file mode 100644 index 000000000..5702c45cc --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x063.php @@ -0,0 +1 @@ +<?php return ['Bo ', 'Chi ', 'Gua ', 'Zhi ', 'Kuo ', 'Duo ', 'Duo ', 'Zhi ', 'Qie ', 'An ', 'Nong ', 'Zhen ', 'Ge ', 'Jiao ', 'Ku ', 'Dong ', 'Ru ', 'Tiao ', 'Lie ', 'Zha ', 'Lu ', 'Die ', 'Wa ', 'Jue ', 'Mushiru ', 'Ju ', 'Zhi ', 'Luan ', 'Ya ', 'Zhua ', 'Ta ', 'Xie ', 'Nao ', 'Dang ', 'Jiao ', 'Zheng ', 'Ji ', 'Hui ', 'Xun ', 'Ku ', 'Ai ', 'Tuo ', 'Nuo ', 'Cuo ', 'Bo ', 'Geng ', 'Ti ', 'Zhen ', 'Cheng ', 'Suo ', 'Suo ', 'Keng ', 'Mei ', 'Long ', 'Ju ', 'Peng ', 'Jian ', 'Yi ', 'Ting ', 'Shan ', 'Nuo ', 'Wan ', 'Xie ', 'Cha ', 'Feng ', 'Jiao ', 'Wu ', 'Jun ', 'Jiu ', 'Tong ', 'Kun ', 'Huo ', 'Tu ', 'Zhuo ', 'Pou ', 'Le ', 'Ba ', 'Han ', 'Shao ', 'Nie ', 'Juan ', 'Ze ', 'Song ', 'Ye ', 'Jue ', 'Bu ', 'Huan ', 'Bu ', 'Zun ', 'Yi ', 'Zhai ', 'Lu ', 'Sou ', 'Tuo ', 'Lao ', 'Sun ', 'Bang ', 'Jian ', 'Huan ', 'Dao ', '[?] ', 'Wan ', 'Qin ', 'Peng ', 'She ', 'Lie ', 'Min ', 'Men ', 'Fu ', 'Bai ', 'Ju ', 'Dao ', 'Wo ', 'Ai ', 'Juan ', 'Yue ', 'Zong ', 'Chen ', 'Chui ', 'Jie ', 'Tu ', 'Ben ', 'Na ', 'Nian ', 'Nuo ', 'Zu ', 'Wo ', 'Xi ', 'Xian ', 'Cheng ', 'Dian ', 'Sao ', 'Lun ', 'Qing ', 'Gang ', 'Duo ', 'Shou ', 'Diao ', 'Pou ', 'Di ', 'Zhang ', 'Gun ', 'Ji ', 'Tao ', 'Qia ', 'Qi ', 'Pai ', 'Shu ', 'Qian ', 'Ling ', 'Yi ', 'Ya ', 'Jue ', 'Zheng ', 'Liang ', 'Gua ', 'Yi ', 'Huo ', 'Shan ', 'Zheng ', 'Lue ', 'Cai ', 'Tan ', 'Che ', 'Bing ', 'Jie ', 'Ti ', 'Kong ', 'Tui ', 'Yan ', 'Cuo ', 'Zou ', 'Ju ', 'Tian ', 'Qian ', 'Ken ', 'Bai ', 'Shou ', 'Jie ', 'Lu ', 'Guo ', 'Haba ', '[?] ', 'Zhi ', 'Dan ', 'Mang ', 'Xian ', 'Sao ', 'Guan ', 'Peng ', 'Yuan ', 'Nuo ', 'Jian ', 'Zhen ', 'Jiu ', 'Jian ', 'Yu ', 'Yan ', 'Kui ', 'Nan ', 'Hong ', 'Rou ', 'Pi ', 'Wei ', 'Sai ', 'Zou ', 'Xuan ', 'Miao ', 'Ti ', 'Nie ', 'Cha ', 'Shi ', 'Zong ', 'Zhen ', 'Yi ', 'Shun ', 'Heng ', 'Bian ', 'Yang ', 'Huan ', 'Yan ', 'Zuan ', 'An ', 'Xu ', 'Ya ', 'Wo ', 'Ke ', 'Chuai ', 'Ji ', 'Ti ', 'La ', 'La ', 'Cheng ', 'Kai ', 'Jiu ', 'Jiu ', 'Tu ', 'Jie ', 'Hui ', 'Geng ', 'Chong ', 'Shuo ', 'She ', 'Xie ', 'Yuan ', 'Qian ', 'Ye ', 'Cha ', 'Zha ', 'Bei ', 'Yao ', '[?] ', '[?] ', 'Lan ', 'Wen ', 'Qin ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x064.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x064.php new file mode 100644 index 000000000..ceaefdc88 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x064.php @@ -0,0 +1 @@ +<?php return ['Chan ', 'Ge ', 'Lou ', 'Zong ', 'Geng ', 'Jiao ', 'Gou ', 'Qin ', 'Yong ', 'Que ', 'Chou ', 'Chi ', 'Zhan ', 'Sun ', 'Sun ', 'Bo ', 'Chu ', 'Rong ', 'Beng ', 'Cuo ', 'Sao ', 'Ke ', 'Yao ', 'Dao ', 'Zhi ', 'Nu ', 'Xie ', 'Jian ', 'Sou ', 'Qiu ', 'Gao ', 'Xian ', 'Shuo ', 'Sang ', 'Jin ', 'Mie ', 'E ', 'Chui ', 'Nuo ', 'Shan ', 'Ta ', 'Jie ', 'Tang ', 'Pan ', 'Ban ', 'Da ', 'Li ', 'Tao ', 'Hu ', 'Zhi ', 'Wa ', 'Xia ', 'Qian ', 'Wen ', 'Qiang ', 'Tian ', 'Zhen ', 'E ', 'Xi ', 'Nuo ', 'Quan ', 'Cha ', 'Zha ', 'Ge ', 'Wu ', 'En ', 'She ', 'Kang ', 'She ', 'Shu ', 'Bai ', 'Yao ', 'Bin ', 'Sou ', 'Tan ', 'Sa ', 'Chan ', 'Suo ', 'Liao ', 'Chong ', 'Chuang ', 'Guo ', 'Bing ', 'Feng ', 'Shuai ', 'Di ', 'Qi ', 'Sou ', 'Zhai ', 'Lian ', 'Tang ', 'Chi ', 'Guan ', 'Lu ', 'Luo ', 'Lou ', 'Zong ', 'Gai ', 'Hu ', 'Zha ', 'Chuang ', 'Tang ', 'Hua ', 'Cui ', 'Nai ', 'Mo ', 'Jiang ', 'Gui ', 'Ying ', 'Zhi ', 'Ao ', 'Zhi ', 'Nie ', 'Man ', 'Shan ', 'Kou ', 'Shu ', 'Suo ', 'Tuan ', 'Jiao ', 'Mo ', 'Mo ', 'Zhe ', 'Xian ', 'Keng ', 'Piao ', 'Jiang ', 'Yin ', 'Gou ', 'Qian ', 'Lue ', 'Ji ', 'Ying ', 'Jue ', 'Pie ', 'Pie ', 'Lao ', 'Dun ', 'Xian ', 'Ruan ', 'Kui ', 'Zan ', 'Yi ', 'Xun ', 'Cheng ', 'Cheng ', 'Sa ', 'Nao ', 'Heng ', 'Si ', 'Qian ', 'Huang ', 'Da ', 'Zun ', 'Nian ', 'Lin ', 'Zheng ', 'Hui ', 'Zhuang ', 'Jiao ', 'Ji ', 'Cao ', 'Dan ', 'Dan ', 'Che ', 'Bo ', 'Che ', 'Jue ', 'Xiao ', 'Liao ', 'Ben ', 'Fu ', 'Qiao ', 'Bo ', 'Cuo ', 'Zhuo ', 'Zhuan ', 'Tuo ', 'Pu ', 'Qin ', 'Dun ', 'Nian ', '[?] ', 'Xie ', 'Lu ', 'Jiao ', 'Cuan ', 'Ta ', 'Han ', 'Qiao ', 'Zhua ', 'Jian ', 'Gan ', 'Yong ', 'Lei ', 'Kuo ', 'Lu ', 'Shan ', 'Zhuo ', 'Ze ', 'Pu ', 'Chuo ', 'Ji ', 'Dang ', 'Suo ', 'Cao ', 'Qing ', 'Jing ', 'Huan ', 'Jie ', 'Qin ', 'Kuai ', 'Dan ', 'Xi ', 'Ge ', 'Pi ', 'Bo ', 'Ao ', 'Ju ', 'Ye ', '[?] ', 'Mang ', 'Sou ', 'Mi ', 'Ji ', 'Tai ', 'Zhuo ', 'Dao ', 'Xing ', 'Lan ', 'Ca ', 'Ju ', 'Ye ', 'Ru ', 'Ye ', 'Ye ', 'Ni ', 'Hu ', 'Ji ', 'Bin ', 'Ning ', 'Ge ', 'Zhi ', 'Jie ', 'Kuo ', 'Mo ', 'Jian ', 'Xie ', 'Lie ', 'Tan ', 'Bai ', 'Sou ', 'Lu ', 'Lue ', 'Rao ', 'Zhi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x065.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x065.php new file mode 100644 index 000000000..da927615a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x065.php @@ -0,0 +1 @@ +<?php return ['Pan ', 'Yang ', 'Lei ', 'Sa ', 'Shu ', 'Zan ', 'Nian ', 'Xian ', 'Jun ', 'Huo ', 'Li ', 'La ', 'Han ', 'Ying ', 'Lu ', 'Long ', 'Qian ', 'Qian ', 'Zan ', 'Qian ', 'Lan ', 'San ', 'Ying ', 'Mei ', 'Rang ', 'Chan ', '[?] ', 'Cuan ', 'Xi ', 'She ', 'Luo ', 'Jun ', 'Mi ', 'Li ', 'Zan ', 'Luan ', 'Tan ', 'Zuan ', 'Li ', 'Dian ', 'Wa ', 'Dang ', 'Jiao ', 'Jue ', 'Lan ', 'Li ', 'Nang ', 'Zhi ', 'Gui ', 'Gui ', 'Qi ', 'Xin ', 'Pu ', 'Sui ', 'Shou ', 'Kao ', 'You ', 'Gai ', 'Yi ', 'Gong ', 'Gan ', 'Ban ', 'Fang ', 'Zheng ', 'Bo ', 'Dian ', 'Kou ', 'Min ', 'Wu ', 'Gu ', 'He ', 'Ce ', 'Xiao ', 'Mi ', 'Chu ', 'Ge ', 'Di ', 'Xu ', 'Jiao ', 'Min ', 'Chen ', 'Jiu ', 'Zhen ', 'Duo ', 'Yu ', 'Chi ', 'Ao ', 'Bai ', 'Xu ', 'Jiao ', 'Duo ', 'Lian ', 'Nie ', 'Bi ', 'Chang ', 'Dian ', 'Duo ', 'Yi ', 'Gan ', 'San ', 'Ke ', 'Yan ', 'Dun ', 'Qi ', 'Dou ', 'Xiao ', 'Duo ', 'Jiao ', 'Jing ', 'Yang ', 'Xia ', 'Min ', 'Shu ', 'Ai ', 'Qiao ', 'Ai ', 'Zheng ', 'Di ', 'Zhen ', 'Fu ', 'Shu ', 'Liao ', 'Qu ', 'Xiong ', 'Xi ', 'Jiao ', 'Sen ', 'Jiao ', 'Zhuo ', 'Yi ', 'Lian ', 'Bi ', 'Li ', 'Xiao ', 'Xiao ', 'Wen ', 'Xue ', 'Qi ', 'Qi ', 'Zhai ', 'Bin ', 'Jue ', 'Zhai ', '[?] ', 'Fei ', 'Ban ', 'Ban ', 'Lan ', 'Yu ', 'Lan ', 'Wei ', 'Dou ', 'Sheng ', 'Liao ', 'Jia ', 'Hu ', 'Xie ', 'Jia ', 'Yu ', 'Zhen ', 'Jiao ', 'Wo ', 'Tou ', 'Chu ', 'Jin ', 'Chi ', 'Yin ', 'Fu ', 'Qiang ', 'Zhan ', 'Qu ', 'Zhuo ', 'Zhan ', 'Duan ', 'Zhuo ', 'Si ', 'Xin ', 'Zhuo ', 'Zhuo ', 'Qin ', 'Lin ', 'Zhuo ', 'Chu ', 'Duan ', 'Zhu ', 'Fang ', 'Xie ', 'Hang ', 'Yu ', 'Shi ', 'Pei ', 'You ', 'Mye ', 'Pang ', 'Qi ', 'Zhan ', 'Mao ', 'Lu ', 'Pei ', 'Pi ', 'Liu ', 'Fu ', 'Fang ', 'Xuan ', 'Jing ', 'Jing ', 'Ni ', 'Zu ', 'Zhao ', 'Yi ', 'Liu ', 'Shao ', 'Jian ', 'Es ', 'Yi ', 'Qi ', 'Zhi ', 'Fan ', 'Piao ', 'Fan ', 'Zhan ', 'Guai ', 'Sui ', 'Yu ', 'Wu ', 'Ji ', 'Ji ', 'Ji ', 'Huo ', 'Ri ', 'Dan ', 'Jiu ', 'Zhi ', 'Zao ', 'Xie ', 'Tiao ', 'Xun ', 'Xu ', 'Xu ', 'Xu ', 'Gan ', 'Han ', 'Tai ', 'Di ', 'Xu ', 'Chan ', 'Shi ', 'Kuang ', 'Yang ', 'Shi ', 'Wang ', 'Min ', 'Min ', 'Tun ', 'Chun ', 'Wu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x066.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x066.php new file mode 100644 index 000000000..dfae09bad --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x066.php @@ -0,0 +1 @@ +<?php return ['Yun ', 'Bei ', 'Ang ', 'Ze ', 'Ban ', 'Jie ', 'Kun ', 'Sheng ', 'Hu ', 'Fang ', 'Hao ', 'Gui ', 'Chang ', 'Xuan ', 'Ming ', 'Hun ', 'Fen ', 'Qin ', 'Hu ', 'Yi ', 'Xi ', 'Xin ', 'Yan ', 'Ze ', 'Fang ', 'Tan ', 'Shen ', 'Ju ', 'Yang ', 'Zan ', 'Bing ', 'Xing ', 'Ying ', 'Xuan ', 'Pei ', 'Zhen ', 'Ling ', 'Chun ', 'Hao ', 'Mei ', 'Zuo ', 'Mo ', 'Bian ', 'Xu ', 'Hun ', 'Zhao ', 'Zong ', 'Shi ', 'Shi ', 'Yu ', 'Fei ', 'Die ', 'Mao ', 'Ni ', 'Chang ', 'Wen ', 'Dong ', 'Ai ', 'Bing ', 'Ang ', 'Zhou ', 'Long ', 'Xian ', 'Kuang ', 'Tiao ', 'Chao ', 'Shi ', 'Huang ', 'Huang ', 'Xuan ', 'Kui ', 'Xu ', 'Jiao ', 'Jin ', 'Zhi ', 'Jin ', 'Shang ', 'Tong ', 'Hong ', 'Yan ', 'Gai ', 'Xiang ', 'Shai ', 'Xiao ', 'Ye ', 'Yun ', 'Hui ', 'Han ', 'Han ', 'Jun ', 'Wan ', 'Xian ', 'Kun ', 'Zhou ', 'Xi ', 'Cheng ', 'Sheng ', 'Bu ', 'Zhe ', 'Zhe ', 'Wu ', 'Han ', 'Hui ', 'Hao ', 'Chen ', 'Wan ', 'Tian ', 'Zhuo ', 'Zui ', 'Zhou ', 'Pu ', 'Jing ', 'Xi ', 'Shan ', 'Yi ', 'Xi ', 'Qing ', 'Qi ', 'Jing ', 'Gui ', 'Zhen ', 'Yi ', 'Zhi ', 'An ', 'Wan ', 'Lin ', 'Liang ', 'Chang ', 'Wang ', 'Xiao ', 'Zan ', 'Hi ', 'Xuan ', 'Xuan ', 'Yi ', 'Xia ', 'Yun ', 'Hui ', 'Fu ', 'Min ', 'Kui ', 'He ', 'Ying ', 'Du ', 'Wei ', 'Shu ', 'Qing ', 'Mao ', 'Nan ', 'Jian ', 'Nuan ', 'An ', 'Yang ', 'Chun ', 'Yao ', 'Suo ', 'Jin ', 'Ming ', 'Jiao ', 'Kai ', 'Gao ', 'Weng ', 'Chang ', 'Qi ', 'Hao ', 'Yan ', 'Li ', 'Ai ', 'Ji ', 'Gui ', 'Men ', 'Zan ', 'Xie ', 'Hao ', 'Mu ', 'Mo ', 'Cong ', 'Ni ', 'Zhang ', 'Hui ', 'Bao ', 'Han ', 'Xuan ', 'Chuan ', 'Liao ', 'Xian ', 'Dan ', 'Jing ', 'Pie ', 'Lin ', 'Tun ', 'Xi ', 'Yi ', 'Ji ', 'Huang ', 'Tai ', 'Ye ', 'Ye ', 'Li ', 'Tan ', 'Tong ', 'Xiao ', 'Fei ', 'Qin ', 'Zhao ', 'Hao ', 'Yi ', 'Xiang ', 'Xing ', 'Sen ', 'Jiao ', 'Bao ', 'Jing ', 'Yian ', 'Ai ', 'Ye ', 'Ru ', 'Shu ', 'Meng ', 'Xun ', 'Yao ', 'Pu ', 'Li ', 'Chen ', 'Kuang ', 'Die ', '[?] ', 'Yan ', 'Huo ', 'Lu ', 'Xi ', 'Rong ', 'Long ', 'Nang ', 'Luo ', 'Luan ', 'Shai ', 'Tang ', 'Yan ', 'Chu ', 'Yue ', 'Yue ', 'Qu ', 'Yi ', 'Geng ', 'Ye ', 'Hu ', 'He ', 'Shu ', 'Cao ', 'Cao ', 'Noboru ', 'Man ', 'Ceng ', 'Ceng ', 'Ti ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x067.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x067.php new file mode 100644 index 000000000..01bedf802 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x067.php @@ -0,0 +1 @@ +<?php return ['Zui ', 'Can ', 'Xu ', 'Hui ', 'Yin ', 'Qie ', 'Fen ', 'Pi ', 'Yue ', 'You ', 'Ruan ', 'Peng ', 'Ban ', 'Fu ', 'Ling ', 'Fei ', 'Qu ', '[?] ', 'Nu ', 'Tiao ', 'Shuo ', 'Zhen ', 'Lang ', 'Lang ', 'Juan ', 'Ming ', 'Huang ', 'Wang ', 'Tun ', 'Zhao ', 'Ji ', 'Qi ', 'Ying ', 'Zong ', 'Wang ', 'Tong ', 'Lang ', '[?] ', 'Meng ', 'Long ', 'Mu ', 'Deng ', 'Wei ', 'Mo ', 'Ben ', 'Zha ', 'Zhu ', 'Zhu ', '[?] ', 'Zhu ', 'Ren ', 'Ba ', 'Po ', 'Duo ', 'Duo ', 'Dao ', 'Li ', 'Qiu ', 'Ji ', 'Jiu ', 'Bi ', 'Xiu ', 'Ting ', 'Ci ', 'Sha ', 'Eburi ', 'Za ', 'Quan ', 'Qian ', 'Yu ', 'Gan ', 'Wu ', 'Cha ', 'Shan ', 'Xun ', 'Fan ', 'Wu ', 'Zi ', 'Li ', 'Xing ', 'Cai ', 'Cun ', 'Ren ', 'Shao ', 'Tuo ', 'Di ', 'Zhang ', 'Mang ', 'Chi ', 'Yi ', 'Gu ', 'Gong ', 'Du ', 'Yi ', 'Qi ', 'Shu ', 'Gang ', 'Tiao ', 'Moku ', 'Soma ', 'Tochi ', 'Lai ', 'Sugi ', 'Mang ', 'Yang ', 'Ma ', 'Miao ', 'Si ', 'Yuan ', 'Hang ', 'Fei ', 'Bei ', 'Jie ', 'Dong ', 'Gao ', 'Yao ', 'Xian ', 'Chu ', 'Qun ', 'Pa ', 'Shu ', 'Hua ', 'Xin ', 'Chou ', 'Zhu ', 'Chou ', 'Song ', 'Ban ', 'Song ', 'Ji ', 'Yue ', 'Jin ', 'Gou ', 'Ji ', 'Mao ', 'Pi ', 'Bi ', 'Wang ', 'Ang ', 'Fang ', 'Fen ', 'Yi ', 'Fu ', 'Nan ', 'Xi ', 'Hu ', 'Ya ', 'Dou ', 'Xun ', 'Zhen ', 'Yao ', 'Lin ', 'Rui ', 'E ', 'Mei ', 'Zhao ', 'Guo ', 'Zhi ', 'Cong ', 'Yun ', 'Waku ', 'Dou ', 'Shu ', 'Zao ', '[?] ', 'Li ', 'Haze ', 'Jian ', 'Cheng ', 'Matsu ', 'Qiang ', 'Feng ', 'Nan ', 'Xiao ', 'Xian ', 'Ku ', 'Ping ', 'Yi ', 'Xi ', 'Zhi ', 'Guai ', 'Xiao ', 'Jia ', 'Jia ', 'Gou ', 'Fu ', 'Mo ', 'Yi ', 'Ye ', 'Ye ', 'Shi ', 'Nie ', 'Bi ', 'Duo ', 'Yi ', 'Ling ', 'Bing ', 'Ni ', 'La ', 'He ', 'Pan ', 'Fan ', 'Zhong ', 'Dai ', 'Ci ', 'Yang ', 'Fu ', 'Bo ', 'Mou ', 'Gan ', 'Qi ', 'Ran ', 'Rou ', 'Mao ', 'Zhao ', 'Song ', 'Zhe ', 'Xia ', 'You ', 'Shen ', 'Ju ', 'Tuo ', 'Zuo ', 'Nan ', 'Ning ', 'Yong ', 'Di ', 'Zhi ', 'Zha ', 'Cha ', 'Dan ', 'Gu ', 'Pu ', 'Jiu ', 'Ao ', 'Fu ', 'Jian ', 'Bo ', 'Duo ', 'Ke ', 'Nai ', 'Zhu ', 'Bi ', 'Liu ', 'Chai ', 'Zha ', 'Si ', 'Zhu ', 'Pei ', 'Shi ', 'Guai ', 'Cha ', 'Yao ', 'Jue ', 'Jiu ', 'Shi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x068.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x068.php new file mode 100644 index 000000000..eee5c80dc --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x068.php @@ -0,0 +1 @@ +<?php return ['Zhi ', 'Liu ', 'Mei ', 'Hoy ', 'Rong ', 'Zha ', '[?] ', 'Biao ', 'Zhan ', 'Jie ', 'Long ', 'Dong ', 'Lu ', 'Sayng ', 'Li ', 'Lan ', 'Yong ', 'Shu ', 'Xun ', 'Shuan ', 'Qi ', 'Zhen ', 'Qi ', 'Li ', 'Yi ', 'Xiang ', 'Zhen ', 'Li ', 'Su ', 'Gua ', 'Kan ', 'Bing ', 'Ren ', 'Xiao ', 'Bo ', 'Ren ', 'Bing ', 'Zi ', 'Chou ', 'Yi ', 'Jie ', 'Xu ', 'Zhu ', 'Jian ', 'Zui ', 'Er ', 'Er ', 'You ', 'Fa ', 'Gong ', 'Kao ', 'Lao ', 'Zhan ', 'Li ', 'Yin ', 'Yang ', 'He ', 'Gen ', 'Zhi ', 'Chi ', 'Ge ', 'Zai ', 'Luan ', 'Fu ', 'Jie ', 'Hang ', 'Gui ', 'Tao ', 'Guang ', 'Wei ', 'Kuang ', 'Ru ', 'An ', 'An ', 'Juan ', 'Yi ', 'Zhuo ', 'Ku ', 'Zhi ', 'Qiong ', 'Tong ', 'Sang ', 'Sang ', 'Huan ', 'Jie ', 'Jiu ', 'Xue ', 'Duo ', 'Zhui ', 'Yu ', 'Zan ', 'Kasei ', 'Ying ', 'Masu ', '[?] ', 'Zhan ', 'Ya ', 'Nao ', 'Zhen ', 'Dang ', 'Qi ', 'Qiao ', 'Hua ', 'Kuai ', 'Jiang ', 'Zhuang ', 'Xun ', 'Suo ', 'Sha ', 'Zhen ', 'Bei ', 'Ting ', 'Gua ', 'Jing ', 'Bo ', 'Ben ', 'Fu ', 'Rui ', 'Tong ', 'Jue ', 'Xi ', 'Lang ', 'Liu ', 'Feng ', 'Qi ', 'Wen ', 'Jun ', 'Gan ', 'Cu ', 'Liang ', 'Qiu ', 'Ting ', 'You ', 'Mei ', 'Bang ', 'Long ', 'Peng ', 'Zhuang ', 'Di ', 'Xuan ', 'Tu ', 'Zao ', 'Ao ', 'Gu ', 'Bi ', 'Di ', 'Han ', 'Zi ', 'Zhi ', 'Ren ', 'Bei ', 'Geng ', 'Jian ', 'Huan ', 'Wan ', 'Nuo ', 'Jia ', 'Tiao ', 'Ji ', 'Xiao ', 'Lu ', 'Huan ', 'Shao ', 'Cen ', 'Fen ', 'Song ', 'Meng ', 'Wu ', 'Li ', 'Li ', 'Dou ', 'Cen ', 'Ying ', 'Suo ', 'Ju ', 'Ti ', 'Jie ', 'Kun ', 'Zhuo ', 'Shu ', 'Chan ', 'Fan ', 'Wei ', 'Jing ', 'Li ', 'Bing ', 'Fumoto ', 'Shikimi ', 'Tao ', 'Zhi ', 'Lai ', 'Lian ', 'Jian ', 'Zhuo ', 'Ling ', 'Li ', 'Qi ', 'Bing ', 'Zhun ', 'Cong ', 'Qian ', 'Mian ', 'Qi ', 'Qi ', 'Cai ', 'Gun ', 'Chan ', 'Te ', 'Fei ', 'Pai ', 'Bang ', 'Pou ', 'Hun ', 'Zong ', 'Cheng ', 'Zao ', 'Ji ', 'Li ', 'Peng ', 'Yu ', 'Yu ', 'Gu ', 'Hun ', 'Dong ', 'Tang ', 'Gang ', 'Wang ', 'Di ', 'Xi ', 'Fan ', 'Cheng ', 'Zhan ', 'Qi ', 'Yuan ', 'Yan ', 'Yu ', 'Quan ', 'Yi ', 'Sen ', 'Ren ', 'Chui ', 'Leng ', 'Qi ', 'Zhuo ', 'Fu ', 'Ke ', 'Lai ', 'Zou ', 'Zou ', 'Zhuo ', 'Guan ', 'Fen ', 'Fen ', 'Chen ', 'Qiong ', 'Nie ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x069.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x069.php new file mode 100644 index 000000000..cf8d1d2e3 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x069.php @@ -0,0 +1 @@ +<?php return ['Wan ', 'Guo ', 'Lu ', 'Hao ', 'Jie ', 'Yi ', 'Chou ', 'Ju ', 'Ju ', 'Cheng ', 'Zuo ', 'Liang ', 'Qiang ', 'Zhi ', 'Zhui ', 'Ya ', 'Ju ', 'Bei ', 'Jiao ', 'Zhuo ', 'Zi ', 'Bin ', 'Peng ', 'Ding ', 'Chu ', 'Chang ', 'Kunugi ', 'Momiji ', 'Jian ', 'Gui ', 'Xi ', 'Du ', 'Qian ', 'Kunugi ', 'Soko ', 'Shide ', 'Luo ', 'Zhi ', 'Ken ', 'Myeng ', 'Tafu ', '[?] ', 'Peng ', 'Zhan ', '[?] ', 'Tuo ', 'Sen ', 'Duo ', 'Ye ', 'Fou ', 'Wei ', 'Wei ', 'Duan ', 'Jia ', 'Zong ', 'Jian ', 'Yi ', 'Shen ', 'Xi ', 'Yan ', 'Yan ', 'Chuan ', 'Zhan ', 'Chun ', 'Yu ', 'He ', 'Zha ', 'Wo ', 'Pian ', 'Bi ', 'Yao ', 'Huo ', 'Xu ', 'Ruo ', 'Yang ', 'La ', 'Yan ', 'Ben ', 'Hun ', 'Kui ', 'Jie ', 'Kui ', 'Si ', 'Feng ', 'Xie ', 'Tuo ', 'Zhi ', 'Jian ', 'Mu ', 'Mao ', 'Chu ', 'Hu ', 'Hu ', 'Lian ', 'Leng ', 'Ting ', 'Nan ', 'Yu ', 'You ', 'Mei ', 'Song ', 'Xuan ', 'Xuan ', 'Ying ', 'Zhen ', 'Pian ', 'Ye ', 'Ji ', 'Jie ', 'Ye ', 'Chu ', 'Shun ', 'Yu ', 'Cou ', 'Wei ', 'Mei ', 'Di ', 'Ji ', 'Jie ', 'Kai ', 'Qiu ', 'Ying ', 'Rou ', 'Heng ', 'Lou ', 'Le ', 'Hazou ', 'Katsura ', 'Pin ', 'Muro ', 'Gai ', 'Tan ', 'Lan ', 'Yun ', 'Yu ', 'Chen ', 'Lu ', 'Ju ', 'Sakaki ', '[?] ', 'Pi ', 'Xie ', 'Jia ', 'Yi ', 'Zhan ', 'Fu ', 'Nai ', 'Mi ', 'Lang ', 'Rong ', 'Gu ', 'Jian ', 'Ju ', 'Ta ', 'Yao ', 'Zhen ', 'Bang ', 'Sha ', 'Yuan ', 'Zi ', 'Ming ', 'Su ', 'Jia ', 'Yao ', 'Jie ', 'Huang ', 'Gan ', 'Fei ', 'Zha ', 'Qian ', 'Ma ', 'Sun ', 'Yuan ', 'Xie ', 'Rong ', 'Shi ', 'Zhi ', 'Cui ', 'Yun ', 'Ting ', 'Liu ', 'Rong ', 'Tang ', 'Que ', 'Zhai ', 'Si ', 'Sheng ', 'Ta ', 'Ke ', 'Xi ', 'Gu ', 'Qi ', 'Kao ', 'Gao ', 'Sun ', 'Pan ', 'Tao ', 'Ge ', 'Xun ', 'Dian ', 'Nou ', 'Ji ', 'Shuo ', 'Gou ', 'Chui ', 'Qiang ', 'Cha ', 'Qian ', 'Huai ', 'Mei ', 'Xu ', 'Gang ', 'Gao ', 'Zhuo ', 'Tuo ', 'Hashi ', 'Yang ', 'Dian ', 'Jia ', 'Jian ', 'Zui ', 'Kashi ', 'Ori ', 'Bin ', 'Zhu ', '[?] ', 'Xi ', 'Qi ', 'Lian ', 'Hui ', 'Yong ', 'Qian ', 'Guo ', 'Gai ', 'Gai ', 'Tuan ', 'Hua ', 'Cu ', 'Sen ', 'Cui ', 'Beng ', 'You ', 'Hu ', 'Jiang ', 'Hu ', 'Huan ', 'Kui ', 'Yi ', 'Nie ', 'Gao ', 'Kang ', 'Gui ', 'Gui ', 'Cao ', 'Man ', 'Jin ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x06a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x06a.php new file mode 100644 index 000000000..07aa2ec48 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x06a.php @@ -0,0 +1 @@ +<?php return ['Di ', 'Zhuang ', 'Le ', 'Lang ', 'Chen ', 'Cong ', 'Li ', 'Xiu ', 'Qing ', 'Shuang ', 'Fan ', 'Tong ', 'Guan ', 'Ji ', 'Suo ', 'Lei ', 'Lu ', 'Liang ', 'Mi ', 'Lou ', 'Chao ', 'Su ', 'Ke ', 'Shu ', 'Tang ', 'Biao ', 'Lu ', 'Jiu ', 'Shu ', 'Zha ', 'Shu ', 'Zhang ', 'Men ', 'Mo ', 'Niao ', 'Yang ', 'Tiao ', 'Peng ', 'Zhu ', 'Sha ', 'Xi ', 'Quan ', 'Heng ', 'Jian ', 'Cong ', '[?] ', 'Hokuso ', 'Qiang ', 'Tara ', 'Ying ', 'Er ', 'Xin ', 'Zhi ', 'Qiao ', 'Zui ', 'Cong ', 'Pu ', 'Shu ', 'Hua ', 'Kui ', 'Zhen ', 'Zun ', 'Yue ', 'Zhan ', 'Xi ', 'Xun ', 'Dian ', 'Fa ', 'Gan ', 'Mo ', 'Wu ', 'Qiao ', 'Nao ', 'Lin ', 'Liu ', 'Qiao ', 'Xian ', 'Run ', 'Fan ', 'Zhan ', 'Tuo ', 'Lao ', 'Yun ', 'Shun ', 'Tui ', 'Cheng ', 'Tang ', 'Meng ', 'Ju ', 'Cheng ', 'Su ', 'Jue ', 'Jue ', 'Tan ', 'Hui ', 'Ji ', 'Nuo ', 'Xiang ', 'Tuo ', 'Ning ', 'Rui ', 'Zhu ', 'Chuang ', 'Zeng ', 'Fen ', 'Qiong ', 'Ran ', 'Heng ', 'Cen ', 'Gu ', 'Liu ', 'Lao ', 'Gao ', 'Chu ', 'Zusa ', 'Nude ', 'Ca ', 'San ', 'Ji ', 'Dou ', 'Shou ', 'Lu ', '[?] ', '[?] ', 'Yuan ', 'Ta ', 'Shu ', 'Jiang ', 'Tan ', 'Lin ', 'Nong ', 'Yin ', 'Xi ', 'Sui ', 'Shan ', 'Zui ', 'Xuan ', 'Cheng ', 'Gan ', 'Ju ', 'Zui ', 'Yi ', 'Qin ', 'Pu ', 'Yan ', 'Lei ', 'Feng ', 'Hui ', 'Dang ', 'Ji ', 'Sui ', 'Bo ', 'Bi ', 'Ding ', 'Chu ', 'Zhua ', 'Kuai ', 'Ji ', 'Jie ', 'Jia ', 'Qing ', 'Zhe ', 'Jian ', 'Qiang ', 'Dao ', 'Yi ', 'Biao ', 'Song ', 'She ', 'Lin ', 'Kunugi ', 'Cha ', 'Meng ', 'Yin ', 'Tao ', 'Tai ', 'Mian ', 'Qi ', 'Toan ', 'Bin ', 'Huo ', 'Ji ', 'Qian ', 'Mi ', 'Ning ', 'Yi ', 'Gao ', 'Jian ', 'Yin ', 'Er ', 'Qing ', 'Yan ', 'Qi ', 'Mi ', 'Zhao ', 'Gui ', 'Chun ', 'Ji ', 'Kui ', 'Po ', 'Deng ', 'Chu ', '[?] ', 'Mian ', 'You ', 'Zhi ', 'Guang ', 'Qian ', 'Lei ', 'Lei ', 'Sa ', 'Lu ', 'Li ', 'Cuan ', 'Lu ', 'Mie ', 'Hui ', 'Ou ', 'Lu ', 'Jie ', 'Gao ', 'Du ', 'Yuan ', 'Li ', 'Fei ', 'Zhuo ', 'Sou ', 'Lian ', 'Tamo ', 'Chu ', '[?] ', 'Zhu ', 'Lu ', 'Yan ', 'Li ', 'Zhu ', 'Chen ', 'Jie ', 'E ', 'Su ', 'Huai ', 'Nie ', 'Yu ', 'Long ', 'Lai ', '[?] ', 'Xian ', 'Kwi ', 'Ju ', 'Xiao ', 'Ling ', 'Ying ', 'Jian ', 'Yin ', 'You ', 'Ying ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x06b.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x06b.php new file mode 100644 index 000000000..560afa370 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x06b.php @@ -0,0 +1 @@ +<?php return ['Xiang ', 'Nong ', 'Bo ', 'Chan ', 'Lan ', 'Ju ', 'Shuang ', 'She ', 'Wei ', 'Cong ', 'Quan ', 'Qu ', 'Cang ', '[?] ', 'Yu ', 'Luo ', 'Li ', 'Zan ', 'Luan ', 'Dang ', 'Jue ', 'Em ', 'Lan ', 'Lan ', 'Zhu ', 'Lei ', 'Li ', 'Ba ', 'Nang ', 'Yu ', 'Ling ', 'Tsuki ', 'Qian ', 'Ci ', 'Huan ', 'Xin ', 'Yu ', 'Yu ', 'Qian ', 'Ou ', 'Xu ', 'Chao ', 'Chu ', 'Chi ', 'Kai ', 'Yi ', 'Jue ', 'Xi ', 'Xu ', 'Xia ', 'Yu ', 'Kuai ', 'Lang ', 'Kuan ', 'Shuo ', 'Xi ', 'Ai ', 'Yi ', 'Qi ', 'Hu ', 'Chi ', 'Qin ', 'Kuan ', 'Kan ', 'Kuan ', 'Kan ', 'Chuan ', 'Sha ', 'Gua ', 'Yin ', 'Xin ', 'Xie ', 'Yu ', 'Qian ', 'Xiao ', 'Yi ', 'Ge ', 'Wu ', 'Tan ', 'Jin ', 'Ou ', 'Hu ', 'Ti ', 'Huan ', 'Xu ', 'Pen ', 'Xi ', 'Xiao ', 'Xu ', 'Xi ', 'Sen ', 'Lian ', 'Chu ', 'Yi ', 'Kan ', 'Yu ', 'Chuo ', 'Huan ', 'Zhi ', 'Zheng ', 'Ci ', 'Bu ', 'Wu ', 'Qi ', 'Bu ', 'Bu ', 'Wai ', 'Ju ', 'Qian ', 'Chi ', 'Se ', 'Chi ', 'Se ', 'Zhong ', 'Sui ', 'Sui ', 'Li ', 'Cuo ', 'Yu ', 'Li ', 'Gui ', 'Dai ', 'Dai ', 'Si ', 'Jian ', 'Zhe ', 'Mo ', 'Mo ', 'Yao ', 'Mo ', 'Cu ', 'Yang ', 'Tian ', 'Sheng ', 'Dai ', 'Shang ', 'Xu ', 'Xun ', 'Shu ', 'Can ', 'Jue ', 'Piao ', 'Qia ', 'Qiu ', 'Su ', 'Qing ', 'Yun ', 'Lian ', 'Yi ', 'Fou ', 'Zhi ', 'Ye ', 'Can ', 'Hun ', 'Dan ', 'Ji ', 'Ye ', 'Zhen ', 'Yun ', 'Wen ', 'Chou ', 'Bin ', 'Ti ', 'Jin ', 'Shang ', 'Yin ', 'Diao ', 'Cu ', 'Hui ', 'Cuan ', 'Yi ', 'Dan ', 'Du ', 'Jiang ', 'Lian ', 'Bin ', 'Du ', 'Tsukusu ', 'Jian ', 'Shu ', 'Ou ', 'Duan ', 'Zhu ', 'Yin ', 'Qing ', 'Yi ', 'Sha ', 'Que ', 'Ke ', 'Yao ', 'Jun ', 'Dian ', 'Hui ', 'Hui ', 'Gu ', 'Que ', 'Ji ', 'Yi ', 'Ou ', 'Hui ', 'Duan ', 'Yi ', 'Xiao ', 'Wu ', 'Guan ', 'Mu ', 'Mei ', 'Mei ', 'Ai ', 'Zuo ', 'Du ', 'Yu ', 'Bi ', 'Bi ', 'Bi ', 'Pi ', 'Pi ', 'Bi ', 'Chan ', 'Mao ', '[?] ', '[?] ', 'Pu ', 'Mushiru ', 'Jia ', 'Zhan ', 'Sai ', 'Mu ', 'Tuo ', 'Xun ', 'Er ', 'Rong ', 'Xian ', 'Ju ', 'Mu ', 'Hao ', 'Qiu ', 'Dou ', 'Mushiru ', 'Tan ', 'Pei ', 'Ju ', 'Duo ', 'Cui ', 'Bi ', 'San ', '[?] ', 'Mao ', 'Sui ', 'Yu ', 'Yu ', 'Tuo ', 'He ', 'Jian ', 'Ta ', 'San ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x06c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x06c.php new file mode 100644 index 000000000..78f502caf --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x06c.php @@ -0,0 +1 @@ +<?php return ['Lu ', 'Mu ', 'Li ', 'Tong ', 'Rong ', 'Chang ', 'Pu ', 'Luo ', 'Zhan ', 'Sao ', 'Zhan ', 'Meng ', 'Luo ', 'Qu ', 'Die ', 'Shi ', 'Di ', 'Min ', 'Jue ', 'Mang ', 'Qi ', 'Pie ', 'Nai ', 'Qi ', 'Dao ', 'Xian ', 'Chuan ', 'Fen ', 'Ri ', 'Nei ', '[?] ', 'Fu ', 'Shen ', 'Dong ', 'Qing ', 'Qi ', 'Yin ', 'Xi ', 'Hai ', 'Yang ', 'An ', 'Ya ', 'Ke ', 'Qing ', 'Ya ', 'Dong ', 'Dan ', 'Lu ', 'Qing ', 'Yang ', 'Yun ', 'Yun ', 'Shui ', 'San ', 'Zheng ', 'Bing ', 'Yong ', 'Dang ', 'Shitamizu ', 'Le ', 'Ni ', 'Tun ', 'Fan ', 'Gui ', 'Ting ', 'Zhi ', 'Qiu ', 'Bin ', 'Ze ', 'Mian ', 'Cuan ', 'Hui ', 'Diao ', 'Yi ', 'Cha ', 'Zhuo ', 'Chuan ', 'Wan ', 'Fan ', 'Dai ', 'Xi ', 'Tuo ', 'Mang ', 'Qiu ', 'Qi ', 'Shan ', 'Pai ', 'Han ', 'Qian ', 'Wu ', 'Wu ', 'Xun ', 'Si ', 'Ru ', 'Gong ', 'Jiang ', 'Chi ', 'Wu ', 'Tsuchi ', '[?] ', 'Tang ', 'Zhi ', 'Chi ', 'Qian ', 'Mi ', 'Yu ', 'Wang ', 'Qing ', 'Jing ', 'Rui ', 'Jun ', 'Hong ', 'Tai ', 'Quan ', 'Ji ', 'Bian ', 'Bian ', 'Gan ', 'Wen ', 'Zhong ', 'Fang ', 'Xiong ', 'Jue ', 'Hang ', 'Niou ', 'Qi ', 'Fen ', 'Xu ', 'Xu ', 'Qin ', 'Yi ', 'Wo ', 'Yun ', 'Yuan ', 'Hang ', 'Yan ', 'Chen ', 'Chen ', 'Dan ', 'You ', 'Dun ', 'Hu ', 'Huo ', 'Qie ', 'Mu ', 'Rou ', 'Mei ', 'Ta ', 'Mian ', 'Wu ', 'Chong ', 'Tian ', 'Bi ', 'Sha ', 'Zhi ', 'Pei ', 'Pan ', 'Zhui ', 'Za ', 'Gou ', 'Liu ', 'Mei ', 'Ze ', 'Feng ', 'Ou ', 'Li ', 'Lun ', 'Cang ', 'Feng ', 'Wei ', 'Hu ', 'Mo ', 'Mei ', 'Shu ', 'Ju ', 'Zan ', 'Tuo ', 'Tuo ', 'Tuo ', 'He ', 'Li ', 'Mi ', 'Yi ', 'Fa ', 'Fei ', 'You ', 'Tian ', 'Zhi ', 'Zhao ', 'Gu ', 'Zhan ', 'Yan ', 'Si ', 'Kuang ', 'Jiong ', 'Ju ', 'Xie ', 'Qiu ', 'Yi ', 'Jia ', 'Zhong ', 'Quan ', 'Bo ', 'Hui ', 'Mi ', 'Ben ', 'Zhuo ', 'Chu ', 'Le ', 'You ', 'Gu ', 'Hong ', 'Gan ', 'Fa ', 'Mao ', 'Si ', 'Hu ', 'Ping ', 'Ci ', 'Fan ', 'Chi ', 'Su ', 'Ning ', 'Cheng ', 'Ling ', 'Pao ', 'Bo ', 'Qi ', 'Si ', 'Ni ', 'Ju ', 'Yue ', 'Zhu ', 'Sheng ', 'Lei ', 'Xuan ', 'Xue ', 'Fu ', 'Pan ', 'Min ', 'Tai ', 'Yang ', 'Ji ', 'Yong ', 'Guan ', 'Beng ', 'Xue ', 'Long ', 'Lu ', '[?] ', 'Bo ', 'Xie ', 'Po ', 'Ze ', 'Jing ', 'Yin ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x06d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x06d.php new file mode 100644 index 000000000..799cb252a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x06d.php @@ -0,0 +1 @@ +<?php return ['Zhou ', 'Ji ', 'Yi ', 'Hui ', 'Hui ', 'Zui ', 'Cheng ', 'Yin ', 'Wei ', 'Hou ', 'Jian ', 'Yang ', 'Lie ', 'Si ', 'Ji ', 'Er ', 'Xing ', 'Fu ', 'Sa ', 'Suo ', 'Zhi ', 'Yin ', 'Wu ', 'Xi ', 'Kao ', 'Zhu ', 'Jiang ', 'Luo ', '[?] ', 'An ', 'Dong ', 'Yi ', 'Mou ', 'Lei ', 'Yi ', 'Mi ', 'Quan ', 'Jin ', 'Mo ', 'Wei ', 'Xiao ', 'Xie ', 'Hong ', 'Xu ', 'Shuo ', 'Kuang ', 'Tao ', 'Qie ', 'Ju ', 'Er ', 'Zhou ', 'Ru ', 'Ping ', 'Xun ', 'Xiong ', 'Zhi ', 'Guang ', 'Huan ', 'Ming ', 'Huo ', 'Wa ', 'Qia ', 'Pai ', 'Wu ', 'Qu ', 'Liu ', 'Yi ', 'Jia ', 'Jing ', 'Qian ', 'Jiang ', 'Jiao ', 'Cheng ', 'Shi ', 'Zhuo ', 'Ce ', 'Pal ', 'Kuai ', 'Ji ', 'Liu ', 'Chan ', 'Hun ', 'Hu ', 'Nong ', 'Xun ', 'Jin ', 'Lie ', 'Qiu ', 'Wei ', 'Zhe ', 'Jun ', 'Han ', 'Bang ', 'Mang ', 'Zhuo ', 'You ', 'Xi ', 'Bo ', 'Dou ', 'Wan ', 'Hong ', 'Yi ', 'Pu ', 'Ying ', 'Lan ', 'Hao ', 'Lang ', 'Han ', 'Li ', 'Geng ', 'Fu ', 'Wu ', 'Lian ', 'Chun ', 'Feng ', 'Yi ', 'Yu ', 'Tong ', 'Lao ', 'Hai ', 'Jin ', 'Jia ', 'Chong ', 'Weng ', 'Mei ', 'Sui ', 'Cheng ', 'Pei ', 'Xian ', 'Shen ', 'Tu ', 'Kun ', 'Pin ', 'Nie ', 'Han ', 'Jing ', 'Xiao ', 'She ', 'Nian ', 'Tu ', 'Yong ', 'Xiao ', 'Xian ', 'Ting ', 'E ', 'Su ', 'Tun ', 'Juan ', 'Cen ', 'Ti ', 'Li ', 'Shui ', 'Si ', 'Lei ', 'Shui ', 'Tao ', 'Du ', 'Lao ', 'Lai ', 'Lian ', 'Wei ', 'Wo ', 'Yun ', 'Huan ', 'Di ', '[?] ', 'Run ', 'Jian ', 'Zhang ', 'Se ', 'Fu ', 'Guan ', 'Xing ', 'Shou ', 'Shuan ', 'Ya ', 'Chuo ', 'Zhang ', 'Ye ', 'Kong ', 'Wo ', 'Han ', 'Tuo ', 'Dong ', 'He ', 'Wo ', 'Ju ', 'Gan ', 'Liang ', 'Hun ', 'Ta ', 'Zhuo ', 'Dian ', 'Qie ', 'De ', 'Juan ', 'Zi ', 'Xi ', 'Yao ', 'Qi ', 'Gu ', 'Guo ', 'Han ', 'Lin ', 'Tang ', 'Zhou ', 'Peng ', 'Hao ', 'Chang ', 'Shu ', 'Qi ', 'Fang ', 'Chi ', 'Lu ', 'Nao ', 'Ju ', 'Tao ', 'Cong ', 'Lei ', 'Zhi ', 'Peng ', 'Fei ', 'Song ', 'Tian ', 'Pi ', 'Dan ', 'Yu ', 'Ni ', 'Yu ', 'Lu ', 'Gan ', 'Mi ', 'Jing ', 'Ling ', 'Lun ', 'Yin ', 'Cui ', 'Qu ', 'Huai ', 'Yu ', 'Nian ', 'Shen ', 'Piao ', 'Chun ', 'Wa ', 'Yuan ', 'Lai ', 'Hun ', 'Qing ', 'Yan ', 'Qian ', 'Tian ', 'Miao ', 'Zhi ', 'Yin ', 'Mi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x06e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x06e.php new file mode 100644 index 000000000..3f0f40147 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x06e.php @@ -0,0 +1 @@ +<?php return ['Ben ', 'Yuan ', 'Wen ', 'Re ', 'Fei ', 'Qing ', 'Yuan ', 'Ke ', 'Ji ', 'She ', 'Yuan ', 'Shibui ', 'Lu ', 'Zi ', 'Du ', '[?] ', 'Jian ', 'Min ', 'Pi ', 'Tani ', 'Yu ', 'Yuan ', 'Shen ', 'Shen ', 'Rou ', 'Huan ', 'Zhu ', 'Jian ', 'Nuan ', 'Yu ', 'Qiu ', 'Ting ', 'Qu ', 'Du ', 'Feng ', 'Zha ', 'Bo ', 'Wo ', 'Wo ', 'Di ', 'Wei ', 'Wen ', 'Ru ', 'Xie ', 'Ce ', 'Wei ', 'Ge ', 'Gang ', 'Yan ', 'Hong ', 'Xuan ', 'Mi ', 'Ke ', 'Mao ', 'Ying ', 'Yan ', 'You ', 'Hong ', 'Miao ', 'Xing ', 'Mei ', 'Zai ', 'Hun ', 'Nai ', 'Kui ', 'Shi ', 'E ', 'Pai ', 'Mei ', 'Lian ', 'Qi ', 'Qi ', 'Mei ', 'Tian ', 'Cou ', 'Wei ', 'Can ', 'Tuan ', 'Mian ', 'Hui ', 'Mo ', 'Xu ', 'Ji ', 'Pen ', 'Jian ', 'Jian ', 'Hu ', 'Feng ', 'Xiang ', 'Yi ', 'Yin ', 'Zhan ', 'Shi ', 'Jie ', 'Cheng ', 'Huang ', 'Tan ', 'Yu ', 'Bi ', 'Min ', 'Shi ', 'Tu ', 'Sheng ', 'Yong ', 'Qu ', 'Zhong ', 'Suei ', 'Jiu ', 'Jiao ', 'Qiou ', 'Yin ', 'Tang ', 'Long ', 'Huo ', 'Yuan ', 'Nan ', 'Ban ', 'You ', 'Quan ', 'Chui ', 'Liang ', 'Chan ', 'Yan ', 'Chun ', 'Nie ', 'Zi ', 'Wan ', 'Shi ', 'Man ', 'Ying ', 'Ratsu ', 'Kui ', '[?] ', 'Jian ', 'Xu ', 'Lu ', 'Gui ', 'Gai ', '[?] ', '[?] ', 'Po ', 'Jin ', 'Gui ', 'Tang ', 'Yuan ', 'Suo ', 'Yuan ', 'Lian ', 'Yao ', 'Meng ', 'Zhun ', 'Sheng ', 'Ke ', 'Tai ', 'Da ', 'Wa ', 'Liu ', 'Gou ', 'Sao ', 'Ming ', 'Zha ', 'Shi ', 'Yi ', 'Lun ', 'Ma ', 'Pu ', 'Wei ', 'Li ', 'Cai ', 'Wu ', 'Xi ', 'Wen ', 'Qiang ', 'Ze ', 'Shi ', 'Su ', 'Yi ', 'Zhen ', 'Sou ', 'Yun ', 'Xiu ', 'Yin ', 'Rong ', 'Hun ', 'Su ', 'Su ', 'Ni ', 'Ta ', 'Shi ', 'Ru ', 'Wei ', 'Pan ', 'Chu ', 'Chu ', 'Pang ', 'Weng ', 'Cang ', 'Mie ', 'He ', 'Dian ', 'Hao ', 'Huang ', 'Xi ', 'Zi ', 'Di ', 'Zhi ', 'Ying ', 'Fu ', 'Jie ', 'Hua ', 'Ge ', 'Zi ', 'Tao ', 'Teng ', 'Sui ', 'Bi ', 'Jiao ', 'Hui ', 'Gun ', 'Yin ', 'Gao ', 'Long ', 'Zhi ', 'Yan ', 'She ', 'Man ', 'Ying ', 'Chun ', 'Lu ', 'Lan ', 'Luan ', '[?] ', 'Bin ', 'Tan ', 'Yu ', 'Sou ', 'Hu ', 'Bi ', 'Biao ', 'Zhi ', 'Jiang ', 'Kou ', 'Shen ', 'Shang ', 'Di ', 'Mi ', 'Ao ', 'Lu ', 'Hu ', 'Hu ', 'You ', 'Chan ', 'Fan ', 'Yong ', 'Gun ', 'Man ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x06f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x06f.php new file mode 100644 index 000000000..8a824a2e4 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x06f.php @@ -0,0 +1 @@ +<?php return ['Qing ', 'Yu ', 'Piao ', 'Ji ', 'Ya ', 'Jiao ', 'Qi ', 'Xi ', 'Ji ', 'Lu ', 'Lu ', 'Long ', 'Jin ', 'Guo ', 'Cong ', 'Lou ', 'Zhi ', 'Gai ', 'Qiang ', 'Li ', 'Yan ', 'Cao ', 'Jiao ', 'Cong ', 'Qun ', 'Tuan ', 'Ou ', 'Teng ', 'Ye ', 'Xi ', 'Mi ', 'Tang ', 'Mo ', 'Shang ', 'Han ', 'Lian ', 'Lan ', 'Wa ', 'Li ', 'Qian ', 'Feng ', 'Xuan ', 'Yi ', 'Man ', 'Zi ', 'Mang ', 'Kang ', 'Lei ', 'Peng ', 'Shu ', 'Zhang ', 'Zhang ', 'Chong ', 'Xu ', 'Huan ', 'Kuo ', 'Jian ', 'Yan ', 'Chuang ', 'Liao ', 'Cui ', 'Ti ', 'Yang ', 'Jiang ', 'Cong ', 'Ying ', 'Hong ', 'Xun ', 'Shu ', 'Guan ', 'Ying ', 'Xiao ', '[?] ', '[?] ', 'Xu ', 'Lian ', 'Zhi ', 'Wei ', 'Pi ', 'Jue ', 'Jiao ', 'Po ', 'Dang ', 'Hui ', 'Jie ', 'Wu ', 'Pa ', 'Ji ', 'Pan ', 'Gui ', 'Xiao ', 'Qian ', 'Qian ', 'Xi ', 'Lu ', 'Xi ', 'Xuan ', 'Dun ', 'Huang ', 'Min ', 'Run ', 'Su ', 'Liao ', 'Zhen ', 'Zhong ', 'Yi ', 'Di ', 'Wan ', 'Dan ', 'Tan ', 'Chao ', 'Xun ', 'Kui ', 'Yie ', 'Shao ', 'Tu ', 'Zhu ', 'San ', 'Hei ', 'Bi ', 'Shan ', 'Chan ', 'Chan ', 'Shu ', 'Tong ', 'Pu ', 'Lin ', 'Wei ', 'Se ', 'Se ', 'Cheng ', 'Jiong ', 'Cheng ', 'Hua ', 'Jiao ', 'Lao ', 'Che ', 'Gan ', 'Cun ', 'Heng ', 'Si ', 'Shu ', 'Peng ', 'Han ', 'Yun ', 'Liu ', 'Hong ', 'Fu ', 'Hao ', 'He ', 'Xian ', 'Jian ', 'Shan ', 'Xi ', 'Oki ', '[?] ', 'Lan ', '[?] ', 'Yu ', 'Lin ', 'Min ', 'Zao ', 'Dang ', 'Wan ', 'Ze ', 'Xie ', 'Yu ', 'Li ', 'Shi ', 'Xue ', 'Ling ', 'Man ', 'Zi ', 'Yong ', 'Kuai ', 'Can ', 'Lian ', 'Dian ', 'Ye ', 'Ao ', 'Huan ', 'Zhen ', 'Chan ', 'Man ', 'Dan ', 'Dan ', 'Yi ', 'Sui ', 'Pi ', 'Ju ', 'Ta ', 'Qin ', 'Ji ', 'Zhuo ', 'Lian ', 'Nong ', 'Guo ', 'Jin ', 'Fen ', 'Se ', 'Ji ', 'Sui ', 'Hui ', 'Chu ', 'Ta ', 'Song ', 'Ding ', '[?] ', 'Zhu ', 'Lai ', 'Bin ', 'Lian ', 'Mi ', 'Shi ', 'Shu ', 'Mi ', 'Ning ', 'Ying ', 'Ying ', 'Meng ', 'Jin ', 'Qi ', 'Pi ', 'Ji ', 'Hao ', 'Ru ', 'Zui ', 'Wo ', 'Tao ', 'Yin ', 'Yin ', 'Dui ', 'Ci ', 'Huo ', 'Jing ', 'Lan ', 'Jun ', 'Ai ', 'Pu ', 'Zhuo ', 'Wei ', 'Bin ', 'Gu ', 'Qian ', 'Xing ', 'Hama ', 'Kuo ', 'Fei ', '[?] ', 'Boku ', 'Jian ', 'Wei ', 'Luo ', 'Zan ', 'Lu ', 'Li ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x070.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x070.php new file mode 100644 index 000000000..1c9e8d197 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x070.php @@ -0,0 +1 @@ +<?php return ['You ', 'Yang ', 'Lu ', 'Si ', 'Jie ', 'Ying ', 'Du ', 'Wang ', 'Hui ', 'Xie ', 'Pan ', 'Shen ', 'Biao ', 'Chan ', 'Mo ', 'Liu ', 'Jian ', 'Pu ', 'Se ', 'Cheng ', 'Gu ', 'Bin ', 'Huo ', 'Xian ', 'Lu ', 'Qin ', 'Han ', 'Ying ', 'Yong ', 'Li ', 'Jing ', 'Xiao ', 'Ying ', 'Sui ', 'Wei ', 'Xie ', 'Huai ', 'Hao ', 'Zhu ', 'Long ', 'Lai ', 'Dui ', 'Fan ', 'Hu ', 'Lai ', '[?] ', '[?] ', 'Ying ', 'Mi ', 'Ji ', 'Lian ', 'Jian ', 'Ying ', 'Fen ', 'Lin ', 'Yi ', 'Jian ', 'Yue ', 'Chan ', 'Dai ', 'Rang ', 'Jian ', 'Lan ', 'Fan ', 'Shuang ', 'Yuan ', 'Zhuo ', 'Feng ', 'She ', 'Lei ', 'Lan ', 'Cong ', 'Qu ', 'Yong ', 'Qian ', 'Fa ', 'Guan ', 'Que ', 'Yan ', 'Hao ', 'Hyeng ', 'Sa ', 'Zan ', 'Luan ', 'Yan ', 'Li ', 'Mi ', 'Shan ', 'Tan ', 'Dang ', 'Jiao ', 'Chan ', '[?] ', 'Hao ', 'Ba ', 'Zhu ', 'Lan ', 'Lan ', 'Nang ', 'Wan ', 'Luan ', 'Xun ', 'Xian ', 'Yan ', 'Gan ', 'Yan ', 'Yu ', 'Huo ', 'Si ', 'Mie ', 'Guang ', 'Deng ', 'Hui ', 'Xiao ', 'Xiao ', 'Hu ', 'Hong ', 'Ling ', 'Zao ', 'Zhuan ', 'Jiu ', 'Zha ', 'Xie ', 'Chi ', 'Zhuo ', 'Zai ', 'Zai ', 'Can ', 'Yang ', 'Qi ', 'Zhong ', 'Fen ', 'Niu ', 'Jiong ', 'Wen ', 'Po ', 'Yi ', 'Lu ', 'Chui ', 'Pi ', 'Kai ', 'Pan ', 'Yan ', 'Kai ', 'Pang ', 'Mu ', 'Chao ', 'Liao ', 'Gui ', 'Kang ', 'Tun ', 'Guang ', 'Xin ', 'Zhi ', 'Guang ', 'Guang ', 'Wei ', 'Qiang ', '[?] ', 'Da ', 'Xia ', 'Zheng ', 'Zhu ', 'Ke ', 'Zhao ', 'Fu ', 'Ba ', 'Duo ', 'Duo ', 'Ling ', 'Zhuo ', 'Xuan ', 'Ju ', 'Tan ', 'Pao ', 'Jiong ', 'Pao ', 'Tai ', 'Tai ', 'Bing ', 'Yang ', 'Tong ', 'Han ', 'Zhu ', 'Zha ', 'Dian ', 'Wei ', 'Shi ', 'Lian ', 'Chi ', 'Huang ', '[?] ', 'Hu ', 'Shuo ', 'Lan ', 'Jing ', 'Jiao ', 'Xu ', 'Xing ', 'Quan ', 'Lie ', 'Huan ', 'Yang ', 'Xiao ', 'Xiu ', 'Xian ', 'Yin ', 'Wu ', 'Zhou ', 'Yao ', 'Shi ', 'Wei ', 'Tong ', 'Xue ', 'Zai ', 'Kai ', 'Hong ', 'Luo ', 'Xia ', 'Zhu ', 'Xuan ', 'Zheng ', 'Po ', 'Yan ', 'Hui ', 'Guang ', 'Zhe ', 'Hui ', 'Kao ', '[?] ', 'Fan ', 'Shao ', 'Ye ', 'Hui ', '[?] ', 'Tang ', 'Jin ', 'Re ', '[?] ', 'Xi ', 'Fu ', 'Jiong ', 'Che ', 'Pu ', 'Jing ', 'Zhuo ', 'Ting ', 'Wan ', 'Hai ', 'Peng ', 'Lang ', 'Shan ', 'Hu ', 'Feng ', 'Chi ', 'Rong ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x071.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x071.php new file mode 100644 index 000000000..daadfe81d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x071.php @@ -0,0 +1 @@ +<?php return ['Hu ', 'Xi ', 'Shu ', 'He ', 'Xun ', 'Ku ', 'Jue ', 'Xiao ', 'Xi ', 'Yan ', 'Han ', 'Zhuang ', 'Jun ', 'Di ', 'Xie ', 'Ji ', 'Wu ', '[?] ', '[?] ', 'Han ', 'Yan ', 'Huan ', 'Men ', 'Ju ', 'Chou ', 'Bei ', 'Fen ', 'Lin ', 'Kun ', 'Hun ', 'Tun ', 'Xi ', 'Cui ', 'Wu ', 'Hong ', 'Ju ', 'Fu ', 'Wo ', 'Jiao ', 'Cong ', 'Feng ', 'Ping ', 'Qiong ', 'Ruo ', 'Xi ', 'Qiong ', 'Xin ', 'Zhuo ', 'Yan ', 'Yan ', 'Yi ', 'Jue ', 'Yu ', 'Gang ', 'Ran ', 'Pi ', 'Gu ', '[?] ', 'Sheng ', 'Chang ', 'Shao ', '[?] ', '[?] ', '[?] ', '[?] ', 'Chen ', 'He ', 'Kui ', 'Zhong ', 'Duan ', 'Xia ', 'Hui ', 'Feng ', 'Lian ', 'Xuan ', 'Xing ', 'Huang ', 'Jiao ', 'Jian ', 'Bi ', 'Ying ', 'Zhu ', 'Wei ', 'Tuan ', 'Tian ', 'Xi ', 'Nuan ', 'Nuan ', 'Chan ', 'Yan ', 'Jiong ', 'Jiong ', 'Yu ', 'Mei ', 'Sha ', 'Wei ', 'Ye ', 'Xin ', 'Qiong ', 'Rou ', 'Mei ', 'Huan ', 'Xu ', 'Zhao ', 'Wei ', 'Fan ', 'Qiu ', 'Sui ', 'Yang ', 'Lie ', 'Zhu ', 'Jie ', 'Gao ', 'Gua ', 'Bao ', 'Hu ', 'Yun ', 'Xia ', '[?] ', '[?] ', 'Bian ', 'Gou ', 'Tui ', 'Tang ', 'Chao ', 'Shan ', 'N ', 'Bo ', 'Huang ', 'Xie ', 'Xi ', 'Wu ', 'Xi ', 'Yun ', 'He ', 'He ', 'Xi ', 'Yun ', 'Xiong ', 'Nai ', 'Shan ', 'Qiong ', 'Yao ', 'Xun ', 'Mi ', 'Lian ', 'Ying ', 'Wen ', 'Rong ', 'Oozutsu ', '[?] ', 'Qiang ', 'Liu ', 'Xi ', 'Bi ', 'Biao ', 'Zong ', 'Lu ', 'Jian ', 'Shou ', 'Yi ', 'Lou ', 'Feng ', 'Sui ', 'Yi ', 'Tong ', 'Jue ', 'Zong ', 'Yun ', 'Hu ', 'Yi ', 'Zhi ', 'Ao ', 'Wei ', 'Liao ', 'Han ', 'Ou ', 'Re ', 'Jiong ', 'Man ', '[?] ', 'Shang ', 'Cuan ', 'Zeng ', 'Jian ', 'Xi ', 'Xi ', 'Xi ', 'Yi ', 'Xiao ', 'Chi ', 'Huang ', 'Chan ', 'Ye ', 'Qian ', 'Ran ', 'Yan ', 'Xian ', 'Qiao ', 'Zun ', 'Deng ', 'Dun ', 'Shen ', 'Jiao ', 'Fen ', 'Si ', 'Liao ', 'Yu ', 'Lin ', 'Tong ', 'Shao ', 'Fen ', 'Fan ', 'Yan ', 'Xun ', 'Lan ', 'Mei ', 'Tang ', 'Yi ', 'Jing ', 'Men ', '[?] ', '[?] ', 'Ying ', 'Yu ', 'Yi ', 'Xue ', 'Lan ', 'Tai ', 'Zao ', 'Can ', 'Sui ', 'Xi ', 'Que ', 'Cong ', 'Lian ', 'Hui ', 'Zhu ', 'Xie ', 'Ling ', 'Wei ', 'Yi ', 'Xie ', 'Zhao ', 'Hui ', 'Tatsu ', 'Nung ', 'Lan ', 'Ru ', 'Xian ', 'Kao ', 'Xun ', 'Jin ', 'Chou ', 'Chou ', 'Yao ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x072.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x072.php new file mode 100644 index 000000000..f62cfcac0 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x072.php @@ -0,0 +1 @@ +<?php return ['He ', 'Lan ', 'Biao ', 'Rong ', 'Li ', 'Mo ', 'Bao ', 'Ruo ', 'Lu ', 'La ', 'Ao ', 'Xun ', 'Kuang ', 'Shuo ', '[?] ', 'Li ', 'Lu ', 'Jue ', 'Liao ', 'Yan ', 'Xi ', 'Xie ', 'Long ', 'Ye ', '[?] ', 'Rang ', 'Yue ', 'Lan ', 'Cong ', 'Jue ', 'Tong ', 'Guan ', '[?] ', 'Che ', 'Mi ', 'Tang ', 'Lan ', 'Zhu ', '[?] ', 'Ling ', 'Cuan ', 'Yu ', 'Zhua ', 'Tsumekanmuri ', 'Pa ', 'Zheng ', 'Pao ', 'Cheng ', 'Yuan ', 'Ai ', 'Wei ', '[?] ', 'Jue ', 'Jue ', 'Fu ', 'Ye ', 'Ba ', 'Die ', 'Ye ', 'Yao ', 'Zu ', 'Shuang ', 'Er ', 'Qiang ', 'Chuang ', 'Ge ', 'Zang ', 'Die ', 'Qiang ', 'Yong ', 'Qiang ', 'Pian ', 'Ban ', 'Pan ', 'Shao ', 'Jian ', 'Pai ', 'Du ', 'Chuang ', 'Tou ', 'Zha ', 'Bian ', 'Die ', 'Bang ', 'Bo ', 'Chuang ', 'You ', '[?] ', 'Du ', 'Ya ', 'Cheng ', 'Niu ', 'Ushihen ', 'Pin ', 'Jiu ', 'Mou ', 'Tuo ', 'Mu ', 'Lao ', 'Ren ', 'Mang ', 'Fang ', 'Mao ', 'Mu ', 'Gang ', 'Wu ', 'Yan ', 'Ge ', 'Bei ', 'Si ', 'Jian ', 'Gu ', 'You ', 'Ge ', 'Sheng ', 'Mu ', 'Di ', 'Qian ', 'Quan ', 'Quan ', 'Zi ', 'Te ', 'Xi ', 'Mang ', 'Keng ', 'Qian ', 'Wu ', 'Gu ', 'Xi ', 'Li ', 'Li ', 'Pou ', 'Ji ', 'Gang ', 'Zhi ', 'Ben ', 'Quan ', 'Run ', 'Du ', 'Ju ', 'Jia ', 'Jian ', 'Feng ', 'Pian ', 'Ke ', 'Ju ', 'Kao ', 'Chu ', 'Xi ', 'Bei ', 'Luo ', 'Jie ', 'Ma ', 'San ', 'Wei ', 'Li ', 'Dun ', 'Tong ', '[?] ', 'Jiang ', 'Ikenie ', 'Li ', 'Du ', 'Lie ', 'Pi ', 'Piao ', 'Bao ', 'Xi ', 'Chou ', 'Wei ', 'Kui ', 'Chou ', 'Quan ', 'Fan ', 'Ba ', 'Fan ', 'Qiu ', 'Ji ', 'Cai ', 'Chuo ', 'An ', 'Jie ', 'Zhuang ', 'Guang ', 'Ma ', 'You ', 'Kang ', 'Bo ', 'Hou ', 'Ya ', 'Yin ', 'Huan ', 'Zhuang ', 'Yun ', 'Kuang ', 'Niu ', 'Di ', 'Qing ', 'Zhong ', 'Mu ', 'Bei ', 'Pi ', 'Ju ', 'Ni ', 'Sheng ', 'Pao ', 'Xia ', 'Tuo ', 'Hu ', 'Ling ', 'Fei ', 'Pi ', 'Ni ', 'Ao ', 'You ', 'Gou ', 'Yue ', 'Ju ', 'Dan ', 'Po ', 'Gu ', 'Xian ', 'Ning ', 'Huan ', 'Hen ', 'Jiao ', 'He ', 'Zhao ', 'Ji ', 'Xun ', 'Shan ', 'Ta ', 'Rong ', 'Shou ', 'Tong ', 'Lao ', 'Du ', 'Xia ', 'Shi ', 'Hua ', 'Zheng ', 'Yu ', 'Sun ', 'Yu ', 'Bi ', 'Mang ', 'Xi ', 'Juan ', 'Li ', 'Xia ', 'Yin ', 'Suan ', 'Lang ', 'Bei ', 'Zhi ', 'Yan ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x073.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x073.php new file mode 100644 index 000000000..d276c6cc8 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x073.php @@ -0,0 +1 @@ +<?php return ['Sha ', 'Li ', 'Han ', 'Xian ', 'Jing ', 'Pai ', 'Fei ', 'Yao ', 'Ba ', 'Qi ', 'Ni ', 'Biao ', 'Yin ', 'Lai ', 'Xi ', 'Jian ', 'Qiang ', 'Kun ', 'Yan ', 'Guo ', 'Zong ', 'Mi ', 'Chang ', 'Yi ', 'Zhi ', 'Zheng ', 'Ya ', 'Meng ', 'Cai ', 'Cu ', 'She ', 'Kari ', 'Cen ', 'Luo ', 'Hu ', 'Zong ', 'Ji ', 'Wei ', 'Feng ', 'Wo ', 'Yuan ', 'Xing ', 'Zhu ', 'Mao ', 'Wei ', 'Yuan ', 'Xian ', 'Tuan ', 'Ya ', 'Nao ', 'Xie ', 'Jia ', 'Hou ', 'Bian ', 'You ', 'You ', 'Mei ', 'Zha ', 'Yao ', 'Sun ', 'Bo ', 'Ming ', 'Hua ', 'Yuan ', 'Sou ', 'Ma ', 'Yuan ', 'Dai ', 'Yu ', 'Shi ', 'Hao ', '[?] ', 'Yi ', 'Zhen ', 'Chuang ', 'Hao ', 'Man ', 'Jing ', 'Jiang ', 'Mu ', 'Zhang ', 'Chan ', 'Ao ', 'Ao ', 'Hao ', 'Cui ', 'Fen ', 'Jue ', 'Bi ', 'Bi ', 'Huang ', 'Pu ', 'Lin ', 'Yu ', 'Tong ', 'Yao ', 'Liao ', 'Shuo ', 'Xiao ', 'Swu ', 'Ton ', 'Xi ', 'Ge ', 'Juan ', 'Du ', 'Hui ', 'Kuai ', 'Xian ', 'Xie ', 'Ta ', 'Xian ', 'Xun ', 'Ning ', 'Pin ', 'Huo ', 'Nou ', 'Meng ', 'Lie ', 'Nao ', 'Guang ', 'Shou ', 'Lu ', 'Ta ', 'Xian ', 'Mi ', 'Rang ', 'Huan ', 'Nao ', 'Luo ', 'Xian ', 'Qi ', 'Jue ', 'Xuan ', 'Miao ', 'Zi ', 'Lu ', 'Lu ', 'Yu ', 'Su ', 'Wang ', 'Qiu ', 'Ga ', 'Ding ', 'Le ', 'Ba ', 'Ji ', 'Hong ', 'Di ', 'Quan ', 'Gan ', 'Jiu ', 'Yu ', 'Ji ', 'Yu ', 'Yang ', 'Ma ', 'Gong ', 'Wu ', 'Fu ', 'Wen ', 'Jie ', 'Ya ', 'Fen ', 'Bian ', 'Beng ', 'Yue ', 'Jue ', 'Yun ', 'Jue ', 'Wan ', 'Jian ', 'Mei ', 'Dan ', 'Pi ', 'Wei ', 'Huan ', 'Xian ', 'Qiang ', 'Ling ', 'Dai ', 'Yi ', 'An ', 'Ping ', 'Dian ', 'Fu ', 'Xuan ', 'Xi ', 'Bo ', 'Ci ', 'Gou ', 'Jia ', 'Shao ', 'Po ', 'Ci ', 'Ke ', 'Ran ', 'Sheng ', 'Shen ', 'Yi ', 'Zu ', 'Jia ', 'Min ', 'Shan ', 'Liu ', 'Bi ', 'Zhen ', 'Zhen ', 'Jue ', 'Fa ', 'Long ', 'Jin ', 'Jiao ', 'Jian ', 'Li ', 'Guang ', 'Xian ', 'Zhou ', 'Gong ', 'Yan ', 'Xiu ', 'Yang ', 'Xu ', 'Luo ', 'Su ', 'Zhu ', 'Qin ', 'Ken ', 'Xun ', 'Bao ', 'Er ', 'Xiang ', 'Yao ', 'Xia ', 'Heng ', 'Gui ', 'Chong ', 'Xu ', 'Ban ', 'Pei ', '[?] ', 'Dang ', 'Ei ', 'Hun ', 'Wen ', 'E ', 'Cheng ', 'Ti ', 'Wu ', 'Wu ', 'Cheng ', 'Jun ', 'Mei ', 'Bei ', 'Ting ', 'Xian ', 'Chuo ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x074.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x074.php new file mode 100644 index 000000000..70ed06807 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x074.php @@ -0,0 +1 @@ +<?php return ['Han ', 'Xuan ', 'Yan ', 'Qiu ', 'Quan ', 'Lang ', 'Li ', 'Xiu ', 'Fu ', 'Liu ', 'Ye ', 'Xi ', 'Ling ', 'Li ', 'Jin ', 'Lian ', 'Suo ', 'Chiisai ', '[?] ', 'Wan ', 'Dian ', 'Pin ', 'Zhan ', 'Cui ', 'Min ', 'Yu ', 'Ju ', 'Chen ', 'Lai ', 'Wen ', 'Sheng ', 'Wei ', 'Dian ', 'Chu ', 'Zhuo ', 'Pei ', 'Cheng ', 'Hu ', 'Qi ', 'E ', 'Kun ', 'Chang ', 'Qi ', 'Beng ', 'Wan ', 'Lu ', 'Cong ', 'Guan ', 'Yan ', 'Diao ', 'Bei ', 'Lin ', 'Qin ', 'Pi ', 'Pa ', 'Que ', 'Zhuo ', 'Qin ', 'Fa ', '[?] ', 'Qiong ', 'Du ', 'Jie ', 'Hun ', 'Yu ', 'Mao ', 'Mei ', 'Chun ', 'Xuan ', 'Ti ', 'Xing ', 'Dai ', 'Rou ', 'Min ', 'Zhen ', 'Wei ', 'Ruan ', 'Huan ', 'Jie ', 'Chuan ', 'Jian ', 'Zhuan ', 'Yang ', 'Lian ', 'Quan ', 'Xia ', 'Duan ', 'Yuan ', 'Ye ', 'Nao ', 'Hu ', 'Ying ', 'Yu ', 'Huang ', 'Rui ', 'Se ', 'Liu ', 'Shi ', 'Rong ', 'Suo ', 'Yao ', 'Wen ', 'Wu ', 'Jin ', 'Jin ', 'Ying ', 'Ma ', 'Tao ', 'Liu ', 'Tang ', 'Li ', 'Lang ', 'Gui ', 'Zhen ', 'Qiang ', 'Cuo ', 'Jue ', 'Zhao ', 'Yao ', 'Ai ', 'Bin ', 'Tu ', 'Chang ', 'Kun ', 'Zhuan ', 'Cong ', 'Jin ', 'Yi ', 'Cui ', 'Cong ', 'Qi ', 'Li ', 'Ying ', 'Suo ', 'Qiu ', 'Xuan ', 'Ao ', 'Lian ', 'Man ', 'Zhang ', 'Yin ', '[?] ', 'Ying ', 'Zhi ', 'Lu ', 'Wu ', 'Deng ', 'Xiou ', 'Zeng ', 'Xun ', 'Qu ', 'Dang ', 'Lin ', 'Liao ', 'Qiong ', 'Su ', 'Huang ', 'Gui ', 'Pu ', 'Jing ', 'Fan ', 'Jin ', 'Liu ', 'Ji ', '[?] ', 'Jing ', 'Ai ', 'Bi ', 'Can ', 'Qu ', 'Zao ', 'Dang ', 'Jiao ', 'Gun ', 'Tan ', 'Hui ', 'Huan ', 'Se ', 'Sui ', 'Tian ', '[?] ', 'Yu ', 'Jin ', 'Lu ', 'Bin ', 'Shou ', 'Wen ', 'Zui ', 'Lan ', 'Xi ', 'Ji ', 'Xuan ', 'Ruan ', 'Huo ', 'Gai ', 'Lei ', 'Du ', 'Li ', 'Zhi ', 'Rou ', 'Li ', 'Zan ', 'Qiong ', 'Zhe ', 'Gui ', 'Sui ', 'La ', 'Long ', 'Lu ', 'Li ', 'Zan ', 'Lan ', 'Ying ', 'Mi ', 'Xiang ', 'Xi ', 'Guan ', 'Dao ', 'Zan ', 'Huan ', 'Gua ', 'Bo ', 'Die ', 'Bao ', 'Hu ', 'Zhi ', 'Piao ', 'Ban ', 'Rang ', 'Li ', 'Wa ', 'Dekaguramu ', 'Jiang ', 'Qian ', 'Fan ', 'Pen ', 'Fang ', 'Dan ', 'Weng ', 'Ou ', 'Deshiguramu ', 'Miriguramu ', 'Thon ', 'Hu ', 'Ling ', 'Yi ', 'Ping ', 'Ci ', 'Hekutogura ', 'Juan ', 'Chang ', 'Chi ', 'Sarake ', 'Dang ', 'Meng ', 'Pou ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x075.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x075.php new file mode 100644 index 000000000..e20463390 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x075.php @@ -0,0 +1 @@ +<?php return ['Zhui ', 'Ping ', 'Bian ', 'Zhou ', 'Zhen ', 'Senchigura ', 'Ci ', 'Ying ', 'Qi ', 'Xian ', 'Lou ', 'Di ', 'Ou ', 'Meng ', 'Zhuan ', 'Peng ', 'Lin ', 'Zeng ', 'Wu ', 'Pi ', 'Dan ', 'Weng ', 'Ying ', 'Yan ', 'Gan ', 'Dai ', 'Shen ', 'Tian ', 'Tian ', 'Han ', 'Chang ', 'Sheng ', 'Qing ', 'Sheng ', 'Chan ', 'Chan ', 'Rui ', 'Sheng ', 'Su ', 'Sen ', 'Yong ', 'Shuai ', 'Lu ', 'Fu ', 'Yong ', 'Beng ', 'Feng ', 'Ning ', 'Tian ', 'You ', 'Jia ', 'Shen ', 'Zha ', 'Dian ', 'Fu ', 'Nan ', 'Dian ', 'Ping ', 'Ting ', 'Hua ', 'Ting ', 'Quan ', 'Zi ', 'Meng ', 'Bi ', 'Qi ', 'Liu ', 'Xun ', 'Liu ', 'Chang ', 'Mu ', 'Yun ', 'Fan ', 'Fu ', 'Geng ', 'Tian ', 'Jie ', 'Jie ', 'Quan ', 'Wei ', 'Fu ', 'Tian ', 'Mu ', 'Tap ', 'Pan ', 'Jiang ', 'Wa ', 'Da ', 'Nan ', 'Liu ', 'Ben ', 'Zhen ', 'Chu ', 'Mu ', 'Mu ', 'Ce ', 'Cen ', 'Gai ', 'Bi ', 'Da ', 'Zhi ', 'Lue ', 'Qi ', 'Lue ', 'Pan ', 'Kesa ', 'Fan ', 'Hua ', 'Yu ', 'Yu ', 'Mu ', 'Jun ', 'Yi ', 'Liu ', 'Yu ', 'Die ', 'Chou ', 'Hua ', 'Dang ', 'Chuo ', 'Ji ', 'Wan ', 'Jiang ', 'Sheng ', 'Chang ', 'Tuan ', 'Lei ', 'Ji ', 'Cha ', 'Liu ', 'Tatamu ', 'Tuan ', 'Lin ', 'Jiang ', 'Jiang ', 'Chou ', 'Bo ', 'Die ', 'Die ', 'Pi ', 'Nie ', 'Dan ', 'Shu ', 'Shu ', 'Zhi ', 'Yi ', 'Chuang ', 'Nai ', 'Ding ', 'Bi ', 'Jie ', 'Liao ', 'Gong ', 'Ge ', 'Jiu ', 'Zhou ', 'Xia ', 'Shan ', 'Xu ', 'Nue ', 'Li ', 'Yang ', 'Chen ', 'You ', 'Ba ', 'Jie ', 'Jue ', 'Zhi ', 'Xia ', 'Cui ', 'Bi ', 'Yi ', 'Li ', 'Zong ', 'Chuang ', 'Feng ', 'Zhu ', 'Pao ', 'Pi ', 'Gan ', 'Ke ', 'Ci ', 'Xie ', 'Qi ', 'Dan ', 'Zhen ', 'Fa ', 'Zhi ', 'Teng ', 'Ju ', 'Ji ', 'Fei ', 'Qu ', 'Dian ', 'Jia ', 'Xian ', 'Cha ', 'Bing ', 'Ni ', 'Zheng ', 'Yong ', 'Jing ', 'Quan ', 'Chong ', 'Tong ', 'Yi ', 'Kai ', 'Wei ', 'Hui ', 'Duo ', 'Yang ', 'Chi ', 'Zhi ', 'Hen ', 'Ya ', 'Mei ', 'Dou ', 'Jing ', 'Xiao ', 'Tong ', 'Tu ', 'Mang ', 'Pi ', 'Xiao ', 'Suan ', 'Pu ', 'Li ', 'Zhi ', 'Cuo ', 'Duo ', 'Wu ', 'Sha ', 'Lao ', 'Shou ', 'Huan ', 'Xian ', 'Yi ', 'Peng ', 'Zhang ', 'Guan ', 'Tan ', 'Fei ', 'Ma ', 'Lin ', 'Chi ', 'Ji ', 'Dian ', 'An ', 'Chi ', 'Bi ', 'Bei ', 'Min ', 'Gu ', 'Dui ', 'E ', 'Wei ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x076.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x076.php new file mode 100644 index 000000000..f55cb583f --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x076.php @@ -0,0 +1 @@ +<?php return ['Yu ', 'Cui ', 'Ya ', 'Zhu ', 'Cu ', 'Dan ', 'Shen ', 'Zhung ', 'Ji ', 'Yu ', 'Hou ', 'Feng ', 'La ', 'Yang ', 'Shen ', 'Tu ', 'Yu ', 'Gua ', 'Wen ', 'Huan ', 'Ku ', 'Jia ', 'Yin ', 'Yi ', 'Lu ', 'Sao ', 'Jue ', 'Chi ', 'Xi ', 'Guan ', 'Yi ', 'Wen ', 'Ji ', 'Chuang ', 'Ban ', 'Lei ', 'Liu ', 'Chai ', 'Shou ', 'Nue ', 'Dian ', 'Da ', 'Pie ', 'Tan ', 'Zhang ', 'Biao ', 'Shen ', 'Cu ', 'Luo ', 'Yi ', 'Zong ', 'Chou ', 'Zhang ', 'Zhai ', 'Sou ', 'Suo ', 'Que ', 'Diao ', 'Lou ', 'Lu ', 'Mo ', 'Jin ', 'Yin ', 'Ying ', 'Huang ', 'Fu ', 'Liao ', 'Long ', 'Qiao ', 'Liu ', 'Lao ', 'Xian ', 'Fei ', 'Dan ', 'Yin ', 'He ', 'Yan ', 'Ban ', 'Xian ', 'Guan ', 'Guai ', 'Nong ', 'Yu ', 'Wei ', 'Yi ', 'Yong ', 'Pi ', 'Lei ', 'Li ', 'Shu ', 'Dan ', 'Lin ', 'Dian ', 'Lin ', 'Lai ', 'Pie ', 'Ji ', 'Chi ', 'Yang ', 'Xian ', 'Jie ', 'Zheng ', '[?] ', 'Li ', 'Huo ', 'Lai ', 'Shaku ', 'Dian ', 'Xian ', 'Ying ', 'Yin ', 'Qu ', 'Yong ', 'Tan ', 'Dian ', 'Luo ', 'Luan ', 'Luan ', 'Bo ', '[?] ', 'Gui ', 'Po ', 'Fa ', 'Deng ', 'Fa ', 'Bai ', 'Bai ', 'Qie ', 'Bi ', 'Zao ', 'Zao ', 'Mao ', 'De ', 'Pa ', 'Jie ', 'Huang ', 'Gui ', 'Ci ', 'Ling ', 'Gao ', 'Mo ', 'Ji ', 'Jiao ', 'Peng ', 'Gao ', 'Ai ', 'E ', 'Hao ', 'Han ', 'Bi ', 'Wan ', 'Chou ', 'Qian ', 'Xi ', 'Ai ', 'Jiong ', 'Hao ', 'Huang ', 'Hao ', 'Ze ', 'Cui ', 'Hao ', 'Xiao ', 'Ye ', 'Po ', 'Hao ', 'Jiao ', 'Ai ', 'Xing ', 'Huang ', 'Li ', 'Piao ', 'He ', 'Jiao ', 'Pi ', 'Gan ', 'Pao ', 'Zhou ', 'Jun ', 'Qiu ', 'Cun ', 'Que ', 'Zha ', 'Gu ', 'Jun ', 'Jun ', 'Zhou ', 'Zha ', 'Gu ', 'Zhan ', 'Du ', 'Min ', 'Qi ', 'Ying ', 'Yu ', 'Bei ', 'Zhao ', 'Zhong ', 'Pen ', 'He ', 'Ying ', 'He ', 'Yi ', 'Bo ', 'Wan ', 'He ', 'Ang ', 'Zhan ', 'Yan ', 'Jian ', 'He ', 'Yu ', 'Kui ', 'Fan ', 'Gai ', 'Dao ', 'Pan ', 'Fu ', 'Qiu ', 'Sheng ', 'Dao ', 'Lu ', 'Zhan ', 'Meng ', 'Li ', 'Jin ', 'Xu ', 'Jian ', 'Pan ', 'Guan ', 'An ', 'Lu ', 'Shu ', 'Zhou ', 'Dang ', 'An ', 'Gu ', 'Li ', 'Mu ', 'Cheng ', 'Gan ', 'Xu ', 'Mang ', 'Mang ', 'Zhi ', 'Qi ', 'Ruan ', 'Tian ', 'Xiang ', 'Dun ', 'Xin ', 'Xi ', 'Pan ', 'Feng ', 'Dun ', 'Min ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x077.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x077.php new file mode 100644 index 000000000..4b3bdb427 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x077.php @@ -0,0 +1 @@ +<?php return ['Ming ', 'Sheng ', 'Shi ', 'Yun ', 'Mian ', 'Pan ', 'Fang ', 'Miao ', 'Dan ', 'Mei ', 'Mao ', 'Kan ', 'Xian ', 'Ou ', 'Shi ', 'Yang ', 'Zheng ', 'Yao ', 'Shen ', 'Huo ', 'Da ', 'Zhen ', 'Kuang ', 'Ju ', 'Shen ', 'Chi ', 'Sheng ', 'Mei ', 'Mo ', 'Zhu ', 'Zhen ', 'Zhen ', 'Mian ', 'Di ', 'Yuan ', 'Die ', 'Yi ', 'Zi ', 'Zi ', 'Chao ', 'Zha ', 'Xuan ', 'Bing ', 'Mi ', 'Long ', 'Sui ', 'Dong ', 'Mi ', 'Die ', 'Yi ', 'Er ', 'Ming ', 'Xuan ', 'Chi ', 'Kuang ', 'Juan ', 'Mou ', 'Zhen ', 'Tiao ', 'Yang ', 'Yan ', 'Mo ', 'Zhong ', 'Mai ', 'Zhao ', 'Zheng ', 'Mei ', 'Jun ', 'Shao ', 'Han ', 'Huan ', 'Di ', 'Cheng ', 'Cuo ', 'Juan ', 'E ', 'Wan ', 'Xian ', 'Xi ', 'Kun ', 'Lai ', 'Jian ', 'Shan ', 'Tian ', 'Hun ', 'Wan ', 'Ling ', 'Shi ', 'Qiong ', 'Lie ', 'Yai ', 'Jing ', 'Zheng ', 'Li ', 'Lai ', 'Sui ', 'Juan ', 'Shui ', 'Sui ', 'Du ', 'Bi ', 'Bi ', 'Mu ', 'Hun ', 'Ni ', 'Lu ', 'Yi ', 'Jie ', 'Cai ', 'Zhou ', 'Yu ', 'Hun ', 'Ma ', 'Xia ', 'Xing ', 'Xi ', 'Gun ', 'Cai ', 'Chun ', 'Jian ', 'Mei ', 'Du ', 'Hou ', 'Xuan ', 'Ti ', 'Kui ', 'Gao ', 'Rui ', 'Mou ', 'Xu ', 'Fa ', 'Wen ', 'Miao ', 'Chou ', 'Kui ', 'Mi ', 'Weng ', 'Kou ', 'Dang ', 'Chen ', 'Ke ', 'Sou ', 'Xia ', 'Qiong ', 'Mao ', 'Ming ', 'Man ', 'Shui ', 'Ze ', 'Zhang ', 'Yi ', 'Diao ', 'Ou ', 'Mo ', 'Shun ', 'Cong ', 'Lou ', 'Chi ', 'Man ', 'Piao ', 'Cheng ', 'Ji ', 'Meng ', '[?] ', 'Run ', 'Pie ', 'Xi ', 'Qiao ', 'Pu ', 'Zhu ', 'Deng ', 'Shen ', 'Shun ', 'Liao ', 'Che ', 'Xian ', 'Kan ', 'Ye ', 'Xu ', 'Tong ', 'Mou ', 'Lin ', 'Kui ', 'Xian ', 'Ye ', 'Ai ', 'Hui ', 'Zhan ', 'Jian ', 'Gu ', 'Zhao ', 'Qu ', 'Wei ', 'Chou ', 'Sao ', 'Ning ', 'Xun ', 'Yao ', 'Huo ', 'Meng ', 'Mian ', 'Bin ', 'Mian ', 'Li ', 'Kuang ', 'Jue ', 'Xuan ', 'Mian ', 'Huo ', 'Lu ', 'Meng ', 'Long ', 'Guan ', 'Man ', 'Xi ', 'Chu ', 'Tang ', 'Kan ', 'Zhu ', 'Mao ', 'Jin ', 'Lin ', 'Yu ', 'Shuo ', 'Ce ', 'Jue ', 'Shi ', 'Yi ', 'Shen ', 'Zhi ', 'Hou ', 'Shen ', 'Ying ', 'Ju ', 'Zhou ', 'Jiao ', 'Cuo ', 'Duan ', 'Ai ', 'Jiao ', 'Zeng ', 'Huo ', 'Bai ', 'Shi ', 'Ding ', 'Qi ', 'Ji ', 'Zi ', 'Gan ', 'Wu ', 'Tuo ', 'Ku ', 'Qiang ', 'Xi ', 'Fan ', 'Kuang ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x078.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x078.php new file mode 100644 index 000000000..27597fce6 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x078.php @@ -0,0 +1 @@ +<?php return ['Dang ', 'Ma ', 'Sha ', 'Dan ', 'Jue ', 'Li ', 'Fu ', 'Min ', 'Nuo ', 'Huo ', 'Kang ', 'Zhi ', 'Qi ', 'Kan ', 'Jie ', 'Fen ', 'E ', 'Ya ', 'Pi ', 'Zhe ', 'Yan ', 'Sui ', 'Zhuan ', 'Che ', 'Dun ', 'Pan ', 'Yan ', '[?] ', 'Feng ', 'Fa ', 'Mo ', 'Zha ', 'Qu ', 'Yu ', 'Luo ', 'Tuo ', 'Tuo ', 'Di ', 'Zhai ', 'Zhen ', 'Ai ', 'Fei ', 'Mu ', 'Zhu ', 'Li ', 'Bian ', 'Nu ', 'Ping ', 'Peng ', 'Ling ', 'Pao ', 'Le ', 'Po ', 'Bo ', 'Po ', 'Shen ', 'Za ', 'Nuo ', 'Li ', 'Long ', 'Tong ', '[?] ', 'Li ', 'Aragane ', 'Chu ', 'Keng ', 'Quan ', 'Zhu ', 'Kuang ', 'Huo ', 'E ', 'Nao ', 'Jia ', 'Lu ', 'Wei ', 'Ai ', 'Luo ', 'Ken ', 'Xing ', 'Yan ', 'Tong ', 'Peng ', 'Xi ', '[?] ', 'Hong ', 'Shuo ', 'Xia ', 'Qiao ', '[?] ', 'Wei ', 'Qiao ', '[?] ', 'Keng ', 'Xiao ', 'Que ', 'Chan ', 'Lang ', 'Hong ', 'Yu ', 'Xiao ', 'Xia ', 'Mang ', 'Long ', 'Iong ', 'Che ', 'Che ', 'E ', 'Liu ', 'Ying ', 'Mang ', 'Que ', 'Yan ', 'Sha ', 'Kun ', 'Yu ', '[?] ', 'Kaki ', 'Lu ', 'Chen ', 'Jian ', 'Nue ', 'Song ', 'Zhuo ', 'Keng ', 'Peng ', 'Yan ', 'Zhui ', 'Kong ', 'Ceng ', 'Qi ', 'Zong ', 'Qing ', 'Lin ', 'Jun ', 'Bo ', 'Ding ', 'Min ', 'Diao ', 'Jian ', 'He ', 'Lu ', 'Ai ', 'Sui ', 'Que ', 'Ling ', 'Bei ', 'Yin ', 'Dui ', 'Wu ', 'Qi ', 'Lun ', 'Wan ', 'Dian ', 'Gang ', 'Pei ', 'Qi ', 'Chen ', 'Ruan ', 'Yan ', 'Die ', 'Ding ', 'Du ', 'Tuo ', 'Jie ', 'Ying ', 'Bian ', 'Ke ', 'Bi ', 'Wei ', 'Shuo ', 'Zhen ', 'Duan ', 'Xia ', 'Dang ', 'Ti ', 'Nao ', 'Peng ', 'Jian ', 'Di ', 'Tan ', 'Cha ', 'Seki ', 'Qi ', '[?] ', 'Feng ', 'Xuan ', 'Que ', 'Que ', 'Ma ', 'Gong ', 'Nian ', 'Su ', 'E ', 'Ci ', 'Liu ', 'Si ', 'Tang ', 'Bang ', 'Hua ', 'Pi ', 'Wei ', 'Sang ', 'Lei ', 'Cuo ', 'Zhen ', 'Xia ', 'Qi ', 'Lian ', 'Pan ', 'Wei ', 'Yun ', 'Dui ', 'Zhe ', 'Ke ', 'La ', '[?] ', 'Qing ', 'Gun ', 'Zhuan ', 'Chan ', 'Qi ', 'Ao ', 'Peng ', 'Lu ', 'Lu ', 'Kan ', 'Qiang ', 'Chen ', 'Yin ', 'Lei ', 'Biao ', 'Qi ', 'Mo ', 'Qi ', 'Cui ', 'Zong ', 'Qing ', 'Chuo ', '[?] ', 'Ji ', 'Shan ', 'Lao ', 'Qu ', 'Zeng ', 'Deng ', 'Jian ', 'Xi ', 'Lin ', 'Ding ', 'Dian ', 'Huang ', 'Pan ', 'Za ', 'Qiao ', 'Di ', 'Li ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x079.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x079.php new file mode 100644 index 000000000..f8beeecb9 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x079.php @@ -0,0 +1 @@ +<?php return ['Tani ', 'Jiao ', '[?] ', 'Zhang ', 'Qiao ', 'Dun ', 'Xian ', 'Yu ', 'Zhui ', 'He ', 'Huo ', 'Zhai ', 'Lei ', 'Ke ', 'Chu ', 'Ji ', 'Que ', 'Dang ', 'Yi ', 'Jiang ', 'Pi ', 'Pi ', 'Yu ', 'Pin ', 'Qi ', 'Ai ', 'Kai ', 'Jian ', 'Yu ', 'Ruan ', 'Meng ', 'Pao ', 'Ci ', '[?] ', '[?] ', 'Mie ', 'Ca ', 'Xian ', 'Kuang ', 'Lei ', 'Lei ', 'Zhi ', 'Li ', 'Li ', 'Fan ', 'Que ', 'Pao ', 'Ying ', 'Li ', 'Long ', 'Long ', 'Mo ', 'Bo ', 'Shuang ', 'Guan ', 'Lan ', 'Zan ', 'Yan ', 'Shi ', 'Shi ', 'Li ', 'Reng ', 'She ', 'Yue ', 'Si ', 'Qi ', 'Ta ', 'Ma ', 'Xie ', 'Xian ', 'Xian ', 'Zhi ', 'Qi ', 'Zhi ', 'Beng ', 'Dui ', 'Zhong ', '[?] ', 'Yi ', 'Shi ', 'You ', 'Zhi ', 'Tiao ', 'Fu ', 'Fu ', 'Mi ', 'Zu ', 'Zhi ', 'Suan ', 'Mei ', 'Zuo ', 'Qu ', 'Hu ', 'Zhu ', 'Shen ', 'Sui ', 'Ci ', 'Chai ', 'Mi ', 'Lu ', 'Yu ', 'Xiang ', 'Wu ', 'Tiao ', 'Piao ', 'Zhu ', 'Gui ', 'Xia ', 'Zhi ', 'Ji ', 'Gao ', 'Zhen ', 'Gao ', 'Shui ', 'Jin ', 'Chen ', 'Gai ', 'Kun ', 'Di ', 'Dao ', 'Huo ', 'Tao ', 'Qi ', 'Gu ', 'Guan ', 'Zui ', 'Ling ', 'Lu ', 'Bing ', 'Jin ', 'Dao ', 'Zhi ', 'Lu ', 'Shan ', 'Bei ', 'Zhe ', 'Hui ', 'You ', 'Xi ', 'Yin ', 'Zi ', 'Huo ', 'Zhen ', 'Fu ', 'Yuan ', 'Wu ', 'Xian ', 'Yang ', 'Ti ', 'Yi ', 'Mei ', 'Si ', 'Di ', '[?] ', 'Zhuo ', 'Zhen ', 'Yong ', 'Ji ', 'Gao ', 'Tang ', 'Si ', 'Ma ', 'Ta ', '[?] ', 'Xuan ', 'Qi ', 'Yu ', 'Xi ', 'Ji ', 'Si ', 'Chan ', 'Tan ', 'Kuai ', 'Sui ', 'Li ', 'Nong ', 'Ni ', 'Dao ', 'Li ', 'Rang ', 'Yue ', 'Ti ', 'Zan ', 'Lei ', 'Rou ', 'Yu ', 'Yu ', 'Chi ', 'Xie ', 'Qin ', 'He ', 'Tu ', 'Xiu ', 'Si ', 'Ren ', 'Tu ', 'Zi ', 'Cha ', 'Gan ', 'Yi ', 'Xian ', 'Bing ', 'Nian ', 'Qiu ', 'Qiu ', 'Chong ', 'Fen ', 'Hao ', 'Yun ', 'Ke ', 'Miao ', 'Zhi ', 'Geng ', 'Bi ', 'Zhi ', 'Yu ', 'Mi ', 'Ku ', 'Ban ', 'Pi ', 'Ni ', 'Li ', 'You ', 'Zu ', 'Pi ', 'Ba ', 'Ling ', 'Mo ', 'Cheng ', 'Nian ', 'Qin ', 'Yang ', 'Zuo ', 'Zhi ', 'Zhi ', 'Shu ', 'Ju ', 'Zi ', 'Huo ', 'Ji ', 'Cheng ', 'Tong ', 'Zhi ', 'Huo ', 'He ', 'Yin ', 'Zi ', 'Zhi ', 'Jie ', 'Ren ', 'Du ', 'Yi ', 'Zhu ', 'Hui ', 'Nong ', 'Fu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x07a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x07a.php new file mode 100644 index 000000000..0017baf99 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x07a.php @@ -0,0 +1 @@ +<?php return ['Xi ', 'Kao ', 'Lang ', 'Fu ', 'Ze ', 'Shui ', 'Lu ', 'Kun ', 'Gan ', 'Geng ', 'Ti ', 'Cheng ', 'Tu ', 'Shao ', 'Shui ', 'Ya ', 'Lun ', 'Lu ', 'Gu ', 'Zuo ', 'Ren ', 'Zhun ', 'Bang ', 'Bai ', 'Ji ', 'Zhi ', 'Zhi ', 'Kun ', 'Leng ', 'Peng ', 'Ke ', 'Bing ', 'Chou ', 'Zu ', 'Yu ', 'Su ', 'Lue ', '[?] ', 'Yi ', 'Xi ', 'Bian ', 'Ji ', 'Fu ', 'Bi ', 'Nuo ', 'Jie ', 'Zhong ', 'Zong ', 'Xu ', 'Cheng ', 'Dao ', 'Wen ', 'Lian ', 'Zi ', 'Yu ', 'Ji ', 'Xu ', 'Zhen ', 'Zhi ', 'Dao ', 'Jia ', 'Ji ', 'Gao ', 'Gao ', 'Gu ', 'Rong ', 'Sui ', 'You ', 'Ji ', 'Kang ', 'Mu ', 'Shan ', 'Men ', 'Zhi ', 'Ji ', 'Lu ', 'Su ', 'Ji ', 'Ying ', 'Wen ', 'Qiu ', 'Se ', '[?] ', 'Yi ', 'Huang ', 'Qie ', 'Ji ', 'Sui ', 'Xiao ', 'Pu ', 'Jiao ', 'Zhuo ', 'Tong ', 'Sai ', 'Lu ', 'Sui ', 'Nong ', 'Se ', 'Hui ', 'Rang ', 'Nuo ', 'Yu ', 'Bin ', 'Ji ', 'Tui ', 'Wen ', 'Cheng ', 'Huo ', 'Gong ', 'Lu ', 'Biao ', '[?] ', 'Rang ', 'Zhuo ', 'Li ', 'Zan ', 'Xue ', 'Wa ', 'Jiu ', 'Qiong ', 'Xi ', 'Qiong ', 'Kong ', 'Yu ', 'Sen ', 'Jing ', 'Yao ', 'Chuan ', 'Zhun ', 'Tu ', 'Lao ', 'Qie ', 'Zhai ', 'Yao ', 'Bian ', 'Bao ', 'Yao ', 'Bing ', 'Wa ', 'Zhu ', 'Jiao ', 'Qiao ', 'Diao ', 'Wu ', 'Gui ', 'Yao ', 'Zhi ', 'Chuang ', 'Yao ', 'Tiao ', 'Jiao ', 'Chuang ', 'Jiong ', 'Xiao ', 'Cheng ', 'Kou ', 'Cuan ', 'Wo ', 'Dan ', 'Ku ', 'Ke ', 'Zhui ', 'Xu ', 'Su ', 'Guan ', 'Kui ', 'Dou ', '[?] ', 'Yin ', 'Wo ', 'Wa ', 'Ya ', 'Yu ', 'Ju ', 'Qiong ', 'Yao ', 'Yao ', 'Tiao ', 'Chao ', 'Yu ', 'Tian ', 'Diao ', 'Ju ', 'Liao ', 'Xi ', 'Wu ', 'Kui ', 'Chuang ', 'Zhao ', '[?] ', 'Kuan ', 'Long ', 'Cheng ', 'Cui ', 'Piao ', 'Zao ', 'Cuan ', 'Qiao ', 'Qiong ', 'Dou ', 'Zao ', 'Long ', 'Qie ', 'Li ', 'Chu ', 'Shi ', 'Fou ', 'Qian ', 'Chu ', 'Hong ', 'Qi ', 'Qian ', 'Gong ', 'Shi ', 'Shu ', 'Miao ', 'Ju ', 'Zhan ', 'Zhu ', 'Ling ', 'Long ', 'Bing ', 'Jing ', 'Jing ', 'Zhang ', 'Yi ', 'Si ', 'Jun ', 'Hong ', 'Tong ', 'Song ', 'Jing ', 'Diao ', 'Yi ', 'Shu ', 'Jing ', 'Qu ', 'Jie ', 'Ping ', 'Duan ', 'Shao ', 'Zhuan ', 'Ceng ', 'Deng ', 'Cui ', 'Huai ', 'Jing ', 'Kan ', 'Jing ', 'Zhu ', 'Zhu ', 'Le ', 'Peng ', 'Yu ', 'Chi ', 'Gan ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x07b.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x07b.php new file mode 100644 index 000000000..6f74b80ef --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x07b.php @@ -0,0 +1 @@ +<?php return ['Mang ', 'Zhu ', 'Utsubo ', 'Du ', 'Ji ', 'Xiao ', 'Ba ', 'Suan ', 'Ji ', 'Zhen ', 'Zhao ', 'Sun ', 'Ya ', 'Zhui ', 'Yuan ', 'Hu ', 'Gang ', 'Xiao ', 'Cen ', 'Pi ', 'Bi ', 'Jian ', 'Yi ', 'Dong ', 'Shan ', 'Sheng ', 'Xia ', 'Di ', 'Zhu ', 'Na ', 'Chi ', 'Gu ', 'Li ', 'Qie ', 'Min ', 'Bao ', 'Tiao ', 'Si ', 'Fu ', 'Ce ', 'Ben ', 'Pei ', 'Da ', 'Zi ', 'Di ', 'Ling ', 'Ze ', 'Nu ', 'Fu ', 'Gou ', 'Fan ', 'Jia ', 'Ge ', 'Fan ', 'Shi ', 'Mao ', 'Po ', 'Sey ', 'Jian ', 'Qiong ', 'Long ', 'Souke ', 'Bian ', 'Luo ', 'Gui ', 'Qu ', 'Chi ', 'Yin ', 'Yao ', 'Xian ', 'Bi ', 'Qiong ', 'Gua ', 'Deng ', 'Jiao ', 'Jin ', 'Quan ', 'Sun ', 'Ru ', 'Fa ', 'Kuang ', 'Zhu ', 'Tong ', 'Ji ', 'Da ', 'Xing ', 'Ce ', 'Zhong ', 'Kou ', 'Lai ', 'Bi ', 'Shai ', 'Dang ', 'Zheng ', 'Ce ', 'Fu ', 'Yun ', 'Tu ', 'Pa ', 'Li ', 'Lang ', 'Ju ', 'Guan ', 'Jian ', 'Han ', 'Tong ', 'Xia ', 'Zhi ', 'Cheng ', 'Suan ', 'Shi ', 'Zhu ', 'Zuo ', 'Xiao ', 'Shao ', 'Ting ', 'Ce ', 'Yan ', 'Gao ', 'Kuai ', 'Gan ', 'Chou ', 'Kago ', 'Gang ', 'Yun ', 'O ', 'Qian ', 'Xiao ', 'Jian ', 'Pu ', 'Lai ', 'Zou ', 'Bi ', 'Bi ', 'Bi ', 'Ge ', 'Chi ', 'Guai ', 'Yu ', 'Jian ', 'Zhao ', 'Gu ', 'Chi ', 'Zheng ', 'Jing ', 'Sha ', 'Zhou ', 'Lu ', 'Bo ', 'Ji ', 'Lin ', 'Suan ', 'Jun ', 'Fu ', 'Zha ', 'Gu ', 'Kong ', 'Qian ', 'Quan ', 'Jun ', 'Chui ', 'Guan ', 'Yuan ', 'Ce ', 'Ju ', 'Bo ', 'Ze ', 'Qie ', 'Tuo ', 'Luo ', 'Dan ', 'Xiao ', 'Ruo ', 'Jian ', 'Xuan ', 'Bian ', 'Sun ', 'Xiang ', 'Xian ', 'Ping ', 'Zhen ', 'Sheng ', 'Hu ', 'Shi ', 'Zhu ', 'Yue ', 'Chun ', 'Lu ', 'Wu ', 'Dong ', 'Xiao ', 'Ji ', 'Jie ', 'Huang ', 'Xing ', 'Mei ', 'Fan ', 'Chui ', 'Zhuan ', 'Pian ', 'Feng ', 'Zhu ', 'Hong ', 'Qie ', 'Hou ', 'Qiu ', 'Miao ', 'Qian ', '[?] ', 'Kui ', 'Sik ', 'Lou ', 'Yun ', 'He ', 'Tang ', 'Yue ', 'Chou ', 'Gao ', 'Fei ', 'Ruo ', 'Zheng ', 'Gou ', 'Nie ', 'Qian ', 'Xiao ', 'Cuan ', 'Gong ', 'Pang ', 'Du ', 'Li ', 'Bi ', 'Zhuo ', 'Chu ', 'Shai ', 'Chi ', 'Zhu ', 'Qiang ', 'Long ', 'Lan ', 'Jian ', 'Bu ', 'Li ', 'Hui ', 'Bi ', 'Di ', 'Cong ', 'Yan ', 'Peng ', 'Sen ', 'Zhuan ', 'Pai ', 'Piao ', 'Dou ', 'Yu ', 'Mie ', 'Zhuan ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x07c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x07c.php new file mode 100644 index 000000000..93321f844 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x07c.php @@ -0,0 +1 @@ +<?php return ['Ze ', 'Xi ', 'Guo ', 'Yi ', 'Hu ', 'Chan ', 'Kou ', 'Cu ', 'Ping ', 'Chou ', 'Ji ', 'Gui ', 'Su ', 'Lou ', 'Zha ', 'Lu ', 'Nian ', 'Suo ', 'Cuan ', 'Sasara ', 'Suo ', 'Le ', 'Duan ', 'Yana ', 'Xiao ', 'Bo ', 'Mi ', 'Si ', 'Dang ', 'Liao ', 'Dan ', 'Dian ', 'Fu ', 'Jian ', 'Min ', 'Kui ', 'Dai ', 'Qiao ', 'Deng ', 'Huang ', 'Sun ', 'Lao ', 'Zan ', 'Xiao ', 'Du ', 'Shi ', 'Zan ', '[?] ', 'Pai ', 'Hata ', 'Pai ', 'Gan ', 'Ju ', 'Du ', 'Lu ', 'Yan ', 'Bo ', 'Dang ', 'Sai ', 'Ke ', 'Long ', 'Qian ', 'Lian ', 'Bo ', 'Zhou ', 'Lai ', '[?] ', 'Lan ', 'Kui ', 'Yu ', 'Yue ', 'Hao ', 'Zhen ', 'Tai ', 'Ti ', 'Mi ', 'Chou ', 'Ji ', '[?] ', 'Hata ', 'Teng ', 'Zhuan ', 'Zhou ', 'Fan ', 'Sou ', 'Zhou ', 'Kuji ', 'Zhuo ', 'Teng ', 'Lu ', 'Lu ', 'Jian ', 'Tuo ', 'Ying ', 'Yu ', 'Lai ', 'Long ', 'Shinshi ', 'Lian ', 'Lan ', 'Qian ', 'Yue ', 'Zhong ', 'Qu ', 'Lian ', 'Bian ', 'Duan ', 'Zuan ', 'Li ', 'Si ', 'Luo ', 'Ying ', 'Yue ', 'Zhuo ', 'Xu ', 'Mi ', 'Di ', 'Fan ', 'Shen ', 'Zhe ', 'Shen ', 'Nu ', 'Xie ', 'Lei ', 'Xian ', 'Zi ', 'Ni ', 'Cun ', '[?] ', 'Qian ', 'Kume ', 'Bi ', 'Ban ', 'Wu ', 'Sha ', 'Kang ', 'Rou ', 'Fen ', 'Bi ', 'Cui ', '[?] ', 'Li ', 'Chi ', 'Nukamiso ', 'Ro ', 'Ba ', 'Li ', 'Gan ', 'Ju ', 'Po ', 'Mo ', 'Cu ', 'Nian ', 'Zhou ', 'Li ', 'Su ', 'Tiao ', 'Li ', 'Qi ', 'Su ', 'Hong ', 'Tong ', 'Zi ', 'Ce ', 'Yue ', 'Zhou ', 'Lin ', 'Zhuang ', 'Bai ', '[?] ', 'Fen ', 'Ji ', '[?] ', 'Sukumo ', 'Liang ', 'Xian ', 'Fu ', 'Liang ', 'Can ', 'Geng ', 'Li ', 'Yue ', 'Lu ', 'Ju ', 'Qi ', 'Cui ', 'Bai ', 'Zhang ', 'Lin ', 'Zong ', 'Jing ', 'Guo ', 'Kouji ', 'San ', 'San ', 'Tang ', 'Bian ', 'Rou ', 'Mian ', 'Hou ', 'Xu ', 'Zong ', 'Hu ', 'Jian ', 'Zan ', 'Ci ', 'Li ', 'Xie ', 'Fu ', 'Ni ', 'Bei ', 'Gu ', 'Xiu ', 'Gao ', 'Tang ', 'Qiu ', 'Sukumo ', 'Cao ', 'Zhuang ', 'Tang ', 'Mi ', 'San ', 'Fen ', 'Zao ', 'Kang ', 'Jiang ', 'Mo ', 'San ', 'San ', 'Nuo ', 'Xi ', 'Liang ', 'Jiang ', 'Kuai ', 'Bo ', 'Huan ', '[?] ', 'Zong ', 'Xian ', 'Nuo ', 'Tuan ', 'Nie ', 'Li ', 'Zuo ', 'Di ', 'Nie ', 'Tiao ', 'Lan ', 'Mi ', 'Jiao ', 'Jiu ', 'Xi ', 'Gong ', 'Zheng ', 'Jiu ', 'You ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x07d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x07d.php new file mode 100644 index 000000000..6d05a298a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x07d.php @@ -0,0 +1 @@ +<?php return ['Ji ', 'Cha ', 'Zhou ', 'Xun ', 'Yue ', 'Hong ', 'Yu ', 'He ', 'Wan ', 'Ren ', 'Wen ', 'Wen ', 'Qiu ', 'Na ', 'Zi ', 'Tou ', 'Niu ', 'Fou ', 'Jie ', 'Shu ', 'Chun ', 'Pi ', 'Yin ', 'Sha ', 'Hong ', 'Zhi ', 'Ji ', 'Fen ', 'Yun ', 'Ren ', 'Dan ', 'Jin ', 'Su ', 'Fang ', 'Suo ', 'Cui ', 'Jiu ', 'Zha ', 'Kinu ', 'Jin ', 'Fu ', 'Zhi ', 'Ci ', 'Zi ', 'Chou ', 'Hong ', 'Zha ', 'Lei ', 'Xi ', 'Fu ', 'Xie ', 'Shen ', 'Bei ', 'Zhu ', 'Qu ', 'Ling ', 'Zhu ', 'Shao ', 'Gan ', 'Yang ', 'Fu ', 'Tuo ', 'Zhen ', 'Dai ', 'Zhuo ', 'Shi ', 'Zhong ', 'Xian ', 'Zu ', 'Jiong ', 'Ban ', 'Ju ', 'Mo ', 'Shu ', 'Zui ', 'Wata ', 'Jing ', 'Ren ', 'Heng ', 'Xie ', 'Jie ', 'Zhu ', 'Chou ', 'Gua ', 'Bai ', 'Jue ', 'Kuang ', 'Hu ', 'Ci ', 'Geng ', 'Geng ', 'Tao ', 'Xie ', 'Ku ', 'Jiao ', 'Quan ', 'Gai ', 'Luo ', 'Xuan ', 'Bing ', 'Xian ', 'Fu ', 'Gei ', 'Tong ', 'Rong ', 'Tiao ', 'Yin ', 'Lei ', 'Xie ', 'Quan ', 'Xu ', 'Lun ', 'Die ', 'Tong ', 'Si ', 'Jiang ', 'Xiang ', 'Hui ', 'Jue ', 'Zhi ', 'Jian ', 'Juan ', 'Chi ', 'Mian ', 'Zhen ', 'Lu ', 'Cheng ', 'Qiu ', 'Shu ', 'Bang ', 'Tong ', 'Xiao ', 'Wan ', 'Qin ', 'Geng ', 'Xiu ', 'Ti ', 'Xiu ', 'Xie ', 'Hong ', 'Xi ', 'Fu ', 'Ting ', 'Sui ', 'Dui ', 'Kun ', 'Fu ', 'Jing ', 'Hu ', 'Zhi ', 'Yan ', 'Jiong ', 'Feng ', 'Ji ', 'Sok ', 'Kase ', 'Zong ', 'Lin ', 'Duo ', 'Li ', 'Lu ', 'Liang ', 'Chou ', 'Quan ', 'Shao ', 'Qi ', 'Qi ', 'Zhun ', 'Qi ', 'Wan ', 'Qian ', 'Xian ', 'Shou ', 'Wei ', 'Qi ', 'Tao ', 'Wan ', 'Gang ', 'Wang ', 'Beng ', 'Zhui ', 'Cai ', 'Guo ', 'Cui ', 'Lun ', 'Liu ', 'Qi ', 'Zhan ', 'Bei ', 'Chuo ', 'Ling ', 'Mian ', 'Qi ', 'Qie ', 'Tan ', 'Zong ', 'Gun ', 'Zou ', 'Yi ', 'Zi ', 'Xing ', 'Liang ', 'Jin ', 'Fei ', 'Rui ', 'Min ', 'Yu ', 'Zong ', 'Fan ', 'Lu ', 'Xu ', 'Yingl ', 'Zhang ', 'Kasuri ', 'Xu ', 'Xiang ', 'Jian ', 'Ke ', 'Xian ', 'Ruan ', 'Mian ', 'Qi ', 'Duan ', 'Zhong ', 'Di ', 'Min ', 'Miao ', 'Yuan ', 'Xie ', 'Bao ', 'Si ', 'Qiu ', 'Bian ', 'Huan ', 'Geng ', 'Cong ', 'Mian ', 'Wei ', 'Fu ', 'Wei ', 'Yu ', 'Gou ', 'Miao ', 'Xie ', 'Lian ', 'Zong ', 'Bian ', 'Yun ', 'Yin ', 'Ti ', 'Gua ', 'Zhi ', 'Yun ', 'Cheng ', 'Chan ', 'Dai ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x07e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x07e.php new file mode 100644 index 000000000..83a776fbd --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x07e.php @@ -0,0 +1 @@ +<?php return ['Xia ', 'Yuan ', 'Zong ', 'Xu ', 'Nawa ', 'Odoshi ', 'Geng ', 'Sen ', 'Ying ', 'Jin ', 'Yi ', 'Zhui ', 'Ni ', 'Bang ', 'Gu ', 'Pan ', 'Zhou ', 'Jian ', 'Cuo ', 'Quan ', 'Shuang ', 'Yun ', 'Xia ', 'Shuai ', 'Xi ', 'Rong ', 'Tao ', 'Fu ', 'Yun ', 'Zhen ', 'Gao ', 'Ru ', 'Hu ', 'Zai ', 'Teng ', 'Xian ', 'Su ', 'Zhen ', 'Zong ', 'Tao ', 'Horo ', 'Cai ', 'Bi ', 'Feng ', 'Cu ', 'Li ', 'Suo ', 'Yin ', 'Xi ', 'Zong ', 'Lei ', 'Zhuan ', 'Qian ', 'Man ', 'Zhi ', 'Lu ', 'Mo ', 'Piao ', 'Lian ', 'Mi ', 'Xuan ', 'Zong ', 'Ji ', 'Shan ', 'Sui ', 'Fan ', 'Shuai ', 'Beng ', 'Yi ', 'Sao ', 'Mou ', 'Zhou ', 'Qiang ', 'Hun ', 'Sem ', 'Xi ', 'Jung ', 'Xiu ', 'Ran ', 'Xuan ', 'Hui ', 'Qiao ', 'Zeng ', 'Zuo ', 'Zhi ', 'Shan ', 'San ', 'Lin ', 'Yu ', 'Fan ', 'Liao ', 'Chuo ', 'Zun ', 'Jian ', 'Rao ', 'Chan ', 'Rui ', 'Xiu ', 'Hui ', 'Hua ', 'Zuan ', 'Xi ', 'Qiang ', 'Un ', 'Da ', 'Sheng ', 'Hui ', 'Xi ', 'Se ', 'Jian ', 'Jiang ', 'Huan ', 'Zao ', 'Cong ', 'Jie ', 'Jiao ', 'Bo ', 'Chan ', 'Yi ', 'Nao ', 'Sui ', 'Yi ', 'Shai ', 'Xu ', 'Ji ', 'Bin ', 'Qian ', 'Lan ', 'Pu ', 'Xun ', 'Zuan ', 'Qi ', 'Peng ', 'Li ', 'Mo ', 'Lei ', 'Xie ', 'Zuan ', 'Kuang ', 'You ', 'Xu ', 'Lei ', 'Xian ', 'Chan ', 'Kou ', 'Lu ', 'Chan ', 'Ying ', 'Cai ', 'Xiang ', 'Xian ', 'Zui ', 'Zuan ', 'Luo ', 'Xi ', 'Dao ', 'Lan ', 'Lei ', 'Lian ', 'Si ', 'Jiu ', 'Yu ', 'Hong ', 'Zhou ', 'Xian ', 'He ', 'Yue ', 'Ji ', 'Wan ', 'Kuang ', 'Ji ', 'Ren ', 'Wei ', 'Yun ', 'Hong ', 'Chun ', 'Pi ', 'Sha ', 'Gang ', 'Na ', 'Ren ', 'Zong ', 'Lun ', 'Fen ', 'Zhi ', 'Wen ', 'Fang ', 'Zhu ', 'Yin ', 'Niu ', 'Shu ', 'Xian ', 'Gan ', 'Xie ', 'Fu ', 'Lian ', 'Zu ', 'Shen ', 'Xi ', 'Zhi ', 'Zhong ', 'Zhou ', 'Ban ', 'Fu ', 'Zhuo ', 'Shao ', 'Yi ', 'Jing ', 'Dai ', 'Bang ', 'Rong ', 'Jie ', 'Ku ', 'Rao ', 'Die ', 'Heng ', 'Hui ', 'Gei ', 'Xuan ', 'Jiang ', 'Luo ', 'Jue ', 'Jiao ', 'Tong ', 'Geng ', 'Xiao ', 'Juan ', 'Xiu ', 'Xi ', 'Sui ', 'Tao ', 'Ji ', 'Ti ', 'Ji ', 'Xu ', 'Ling ', '[?] ', 'Xu ', 'Qi ', 'Fei ', 'Chuo ', 'Zhang ', 'Gun ', 'Sheng ', 'Wei ', 'Mian ', 'Shou ', 'Beng ', 'Chou ', 'Tao ', 'Liu ', 'Quan ', 'Zong ', 'Zhan ', 'Wan ', 'Lu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x07f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x07f.php new file mode 100644 index 000000000..22e58a9da --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x07f.php @@ -0,0 +1 @@ +<?php return ['Zhui ', 'Zi ', 'Ke ', 'Xiang ', 'Jian ', 'Mian ', 'Lan ', 'Ti ', 'Miao ', 'Qi ', 'Yun ', 'Hui ', 'Si ', 'Duo ', 'Duan ', 'Bian ', 'Xian ', 'Gou ', 'Zhui ', 'Huan ', 'Di ', 'Lu ', 'Bian ', 'Min ', 'Yuan ', 'Jin ', 'Fu ', 'Ru ', 'Zhen ', 'Feng ', 'Shuai ', 'Gao ', 'Chan ', 'Li ', 'Yi ', 'Jian ', 'Bin ', 'Piao ', 'Man ', 'Lei ', 'Ying ', 'Suo ', 'Mou ', 'Sao ', 'Xie ', 'Liao ', 'Shan ', 'Zeng ', 'Jiang ', 'Qian ', 'Zao ', 'Huan ', 'Jiao ', 'Zuan ', 'Fou ', 'Xie ', 'Gang ', 'Fou ', 'Que ', 'Fou ', 'Kaakeru ', 'Bo ', 'Ping ', 'Hou ', '[?] ', 'Gang ', 'Ying ', 'Ying ', 'Qing ', 'Xia ', 'Guan ', 'Zun ', 'Tan ', 'Chang ', 'Qi ', 'Weng ', 'Ying ', 'Lei ', 'Tan ', 'Lu ', 'Guan ', 'Wang ', 'Wang ', 'Gang ', 'Wang ', 'Han ', '[?] ', 'Luo ', 'Fu ', 'Mi ', 'Fa ', 'Gu ', 'Zhu ', 'Ju ', 'Mao ', 'Gu ', 'Min ', 'Gang ', 'Ba ', 'Gua ', 'Ti ', 'Juan ', 'Fu ', 'Lin ', 'Yan ', 'Zhao ', 'Zui ', 'Gua ', 'Zhuo ', 'Yu ', 'Zhi ', 'An ', 'Fa ', 'Nan ', 'Shu ', 'Si ', 'Pi ', 'Ma ', 'Liu ', 'Ba ', 'Fa ', 'Li ', 'Chao ', 'Wei ', 'Bi ', 'Ji ', 'Zeng ', 'Tong ', 'Liu ', 'Ji ', 'Juan ', 'Mi ', 'Zhao ', 'Luo ', 'Pi ', 'Ji ', 'Ji ', 'Luan ', 'Yang ', 'Mie ', 'Qiang ', 'Ta ', 'Mei ', 'Yang ', 'You ', 'You ', 'Fen ', 'Ba ', 'Gao ', 'Yang ', 'Gu ', 'Qiang ', 'Zang ', 'Gao ', 'Ling ', 'Yi ', 'Zhu ', 'Di ', 'Xiu ', 'Qian ', 'Yi ', 'Xian ', 'Rong ', 'Qun ', 'Qun ', 'Qian ', 'Huan ', 'Zui ', 'Xian ', 'Yi ', 'Yashinau ', 'Qiang ', 'Xian ', 'Yu ', 'Geng ', 'Jie ', 'Tang ', 'Yuan ', 'Xi ', 'Fan ', 'Shan ', 'Fen ', 'Shan ', 'Lian ', 'Lei ', 'Geng ', 'Nou ', 'Qiang ', 'Chan ', 'Yu ', 'Gong ', 'Yi ', 'Chong ', 'Weng ', 'Fen ', 'Hong ', 'Chi ', 'Chi ', 'Cui ', 'Fu ', 'Xia ', 'Pen ', 'Yi ', 'La ', 'Yi ', 'Pi ', 'Ling ', 'Liu ', 'Zhi ', 'Qu ', 'Xi ', 'Xie ', 'Xiang ', 'Xi ', 'Xi ', 'Qi ', 'Qiao ', 'Hui ', 'Hui ', 'Xiao ', 'Se ', 'Hong ', 'Jiang ', 'Di ', 'Cui ', 'Fei ', 'Tao ', 'Sha ', 'Chi ', 'Zhu ', 'Jian ', 'Xuan ', 'Shi ', 'Pian ', 'Zong ', 'Wan ', 'Hui ', 'Hou ', 'He ', 'He ', 'Han ', 'Ao ', 'Piao ', 'Yi ', 'Lian ', 'Qu ', '[?] ', 'Lin ', 'Pen ', 'Qiao ', 'Ao ', 'Fan ', 'Yi ', 'Hui ', 'Xuan ', 'Dao ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x080.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x080.php new file mode 100644 index 000000000..8548ed89d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x080.php @@ -0,0 +1 @@ +<?php return ['Yao ', 'Lao ', '[?] ', 'Kao ', 'Mao ', 'Zhe ', 'Qi ', 'Gou ', 'Gou ', 'Gou ', 'Die ', 'Die ', 'Er ', 'Shua ', 'Ruan ', 'Er ', 'Nai ', 'Zhuan ', 'Lei ', 'Ting ', 'Zi ', 'Geng ', 'Chao ', 'Hao ', 'Yun ', 'Pa ', 'Pi ', 'Chi ', 'Si ', 'Chu ', 'Jia ', 'Ju ', 'He ', 'Chu ', 'Lao ', 'Lun ', 'Ji ', 'Tang ', 'Ou ', 'Lou ', 'Nou ', 'Gou ', 'Pang ', 'Ze ', 'Lou ', 'Ji ', 'Lao ', 'Huo ', 'You ', 'Mo ', 'Huai ', 'Er ', 'Zhe ', 'Ting ', 'Ye ', 'Da ', 'Song ', 'Qin ', 'Yun ', 'Chi ', 'Dan ', 'Dan ', 'Hong ', 'Geng ', 'Zhi ', '[?] ', 'Nie ', 'Dan ', 'Zhen ', 'Che ', 'Ling ', 'Zheng ', 'You ', 'Wa ', 'Liao ', 'Long ', 'Zhi ', 'Ning ', 'Tiao ', 'Er ', 'Ya ', 'Die ', 'Gua ', '[?] ', 'Lian ', 'Hao ', 'Sheng ', 'Lie ', 'Pin ', 'Jing ', 'Ju ', 'Bi ', 'Di ', 'Guo ', 'Wen ', 'Xu ', 'Ping ', 'Cong ', 'Shikato ', '[?] ', 'Ting ', 'Yu ', 'Cong ', 'Kui ', 'Tsuraneru ', 'Kui ', 'Cong ', 'Lian ', 'Weng ', 'Kui ', 'Lian ', 'Lian ', 'Cong ', 'Ao ', 'Sheng ', 'Song ', 'Ting ', 'Kui ', 'Nie ', 'Zhi ', 'Dan ', 'Ning ', 'Qie ', 'Ji ', 'Ting ', 'Ting ', 'Long ', 'Yu ', 'Yu ', 'Zhao ', 'Si ', 'Su ', 'Yi ', 'Su ', 'Si ', 'Zhao ', 'Zhao ', 'Rou ', 'Yi ', 'Le ', 'Ji ', 'Qiu ', 'Ken ', 'Cao ', 'Ge ', 'Di ', 'Huan ', 'Huang ', 'Yi ', 'Ren ', 'Xiao ', 'Ru ', 'Zhou ', 'Yuan ', 'Du ', 'Gang ', 'Rong ', 'Gan ', 'Cha ', 'Wo ', 'Chang ', 'Gu ', 'Zhi ', 'Han ', 'Fu ', 'Fei ', 'Fen ', 'Pei ', 'Pang ', 'Jian ', 'Fang ', 'Zhun ', 'You ', 'Na ', 'Hang ', 'Ken ', 'Ran ', 'Gong ', 'Yu ', 'Wen ', 'Yao ', 'Jin ', 'Pi ', 'Qian ', 'Xi ', 'Xi ', 'Fei ', 'Ken ', 'Jing ', 'Tai ', 'Shen ', 'Zhong ', 'Zhang ', 'Xie ', 'Shen ', 'Wei ', 'Zhou ', 'Die ', 'Dan ', 'Fei ', 'Ba ', 'Bo ', 'Qu ', 'Tian ', 'Bei ', 'Gua ', 'Tai ', 'Zi ', 'Ku ', 'Zhi ', 'Ni ', 'Ping ', 'Zi ', 'Fu ', 'Pang ', 'Zhen ', 'Xian ', 'Zuo ', 'Pei ', 'Jia ', 'Sheng ', 'Zhi ', 'Bao ', 'Mu ', 'Qu ', 'Hu ', 'Ke ', 'Yi ', 'Yin ', 'Xu ', 'Yang ', 'Long ', 'Dong ', 'Ka ', 'Lu ', 'Jing ', 'Nu ', 'Yan ', 'Pang ', 'Kua ', 'Yi ', 'Guang ', 'Gai ', 'Ge ', 'Dong ', 'Zhi ', 'Xiao ', 'Xiong ', 'Xiong ', 'Er ', 'E ', 'Xing ', 'Pian ', 'Neng ', 'Zi ', 'Gui ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x081.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x081.php new file mode 100644 index 000000000..daab08c15 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x081.php @@ -0,0 +1 @@ +<?php return ['Cheng ', 'Tiao ', 'Zhi ', 'Cui ', 'Mei ', 'Xie ', 'Cui ', 'Xie ', 'Mo ', 'Mai ', 'Ji ', 'Obiyaakasu ', '[?] ', 'Kuai ', 'Sa ', 'Zang ', 'Qi ', 'Nao ', 'Mi ', 'Nong ', 'Luan ', 'Wan ', 'Bo ', 'Wen ', 'Guan ', 'Qiu ', 'Jiao ', 'Jing ', 'Rou ', 'Heng ', 'Cuo ', 'Lie ', 'Shan ', 'Ting ', 'Mei ', 'Chun ', 'Shen ', 'Xie ', 'De ', 'Zui ', 'Cu ', 'Xiu ', 'Xin ', 'Tuo ', 'Pao ', 'Cheng ', 'Nei ', 'Fu ', 'Dou ', 'Tuo ', 'Niao ', 'Noy ', 'Pi ', 'Gu ', 'Gua ', 'Li ', 'Lian ', 'Zhang ', 'Cui ', 'Jie ', 'Liang ', 'Zhou ', 'Pi ', 'Biao ', 'Lun ', 'Pian ', 'Guo ', 'Kui ', 'Chui ', 'Dan ', 'Tian ', 'Nei ', 'Jing ', 'Jie ', 'La ', 'Yi ', 'An ', 'Ren ', 'Shen ', 'Chuo ', 'Fu ', 'Fu ', 'Ju ', 'Fei ', 'Qiang ', 'Wan ', 'Dong ', 'Pi ', 'Guo ', 'Zong ', 'Ding ', 'Wu ', 'Mei ', 'Ruan ', 'Zhuan ', 'Zhi ', 'Cou ', 'Gua ', 'Ou ', 'Di ', 'An ', 'Xing ', 'Nao ', 'Yu ', 'Chuan ', 'Nan ', 'Yun ', 'Zhong ', 'Rou ', 'E ', 'Sai ', 'Tu ', 'Yao ', 'Jian ', 'Wei ', 'Jiao ', 'Yu ', 'Jia ', 'Duan ', 'Bi ', 'Chang ', 'Fu ', 'Xian ', 'Ni ', 'Mian ', 'Wa ', 'Teng ', 'Tui ', 'Bang ', 'Qian ', 'Lu ', 'Wa ', 'Sou ', 'Tang ', 'Su ', 'Zhui ', 'Ge ', 'Yi ', 'Bo ', 'Liao ', 'Ji ', 'Pi ', 'Xie ', 'Gao ', 'Lu ', 'Bin ', 'Ou ', 'Chang ', 'Lu ', 'Guo ', 'Pang ', 'Chuai ', 'Piao ', 'Jiang ', 'Fu ', 'Tang ', 'Mo ', 'Xi ', 'Zhuan ', 'Lu ', 'Jiao ', 'Ying ', 'Lu ', 'Zhi ', 'Tara ', 'Chun ', 'Lian ', 'Tong ', 'Peng ', 'Ni ', 'Zha ', 'Liao ', 'Cui ', 'Gui ', 'Xiao ', 'Teng ', 'Fan ', 'Zhi ', 'Jiao ', 'Shan ', 'Wu ', 'Cui ', 'Run ', 'Xiang ', 'Sui ', 'Fen ', 'Ying ', 'Tan ', 'Zhua ', 'Dan ', 'Kuai ', 'Nong ', 'Tun ', 'Lian ', 'Bi ', 'Yong ', 'Jue ', 'Chu ', 'Yi ', 'Juan ', 'La ', 'Lian ', 'Sao ', 'Tun ', 'Gu ', 'Qi ', 'Cui ', 'Bin ', 'Xun ', 'Ru ', 'Huo ', 'Zang ', 'Xian ', 'Biao ', 'Xing ', 'Kuan ', 'La ', 'Yan ', 'Lu ', 'Huo ', 'Zang ', 'Luo ', 'Qu ', 'Zang ', 'Luan ', 'Ni ', 'Zang ', 'Chen ', 'Qian ', 'Wo ', 'Guang ', 'Zang ', 'Lin ', 'Guang ', 'Zi ', 'Jiao ', 'Nie ', 'Chou ', 'Ji ', 'Gao ', 'Chou ', 'Mian ', 'Nie ', 'Zhi ', 'Zhi ', 'Ge ', 'Jian ', 'Die ', 'Zhi ', 'Xiu ', 'Tai ', 'Zhen ', 'Jiu ', 'Xian ', 'Yu ', 'Cha ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x082.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x082.php new file mode 100644 index 000000000..2ac228991 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x082.php @@ -0,0 +1 @@ +<?php return ['Yao ', 'Yu ', 'Chong ', 'Xi ', 'Xi ', 'Jiu ', 'Yu ', 'Yu ', 'Xing ', 'Ju ', 'Jiu ', 'Xin ', 'She ', 'She ', 'Yadoru ', 'Jiu ', 'Shi ', 'Tan ', 'Shu ', 'Shi ', 'Tian ', 'Dan ', 'Pu ', 'Pu ', 'Guan ', 'Hua ', 'Tan ', 'Chuan ', 'Shun ', 'Xia ', 'Wu ', 'Zhou ', 'Dao ', 'Gang ', 'Shan ', 'Yi ', '[?] ', 'Pa ', 'Tai ', 'Fan ', 'Ban ', 'Chuan ', 'Hang ', 'Fang ', 'Ban ', 'Que ', 'Hesaki ', 'Zhong ', 'Jian ', 'Cang ', 'Ling ', 'Zhu ', 'Ze ', 'Duo ', 'Bo ', 'Xian ', 'Ge ', 'Chuan ', 'Jia ', 'Lu ', 'Hong ', 'Pang ', 'Xi ', '[?] ', 'Fu ', 'Zao ', 'Feng ', 'Li ', 'Shao ', 'Yu ', 'Lang ', 'Ting ', '[?] ', 'Wei ', 'Bo ', 'Meng ', 'Nian ', 'Ju ', 'Huang ', 'Shou ', 'Zong ', 'Bian ', 'Mao ', 'Die ', '[?] ', 'Bang ', 'Cha ', 'Yi ', 'Sao ', 'Cang ', 'Cao ', 'Lou ', 'Dai ', 'Sori ', 'Yao ', 'Tong ', 'Yofune ', 'Dang ', 'Tan ', 'Lu ', 'Yi ', 'Jie ', 'Jian ', 'Huo ', 'Meng ', 'Qi ', 'Lu ', 'Lu ', 'Chan ', 'Shuang ', 'Gen ', 'Liang ', 'Jian ', 'Jian ', 'Se ', 'Yan ', 'Fu ', 'Ping ', 'Yan ', 'Yan ', 'Cao ', 'Cao ', 'Yi ', 'Le ', 'Ting ', 'Qiu ', 'Ai ', 'Nai ', 'Tiao ', 'Jiao ', 'Jie ', 'Peng ', 'Wan ', 'Yi ', 'Chai ', 'Mian ', 'Mie ', 'Gan ', 'Qian ', 'Yu ', 'Yu ', 'Shuo ', 'Qiong ', 'Tu ', 'Xia ', 'Qi ', 'Mang ', 'Zi ', 'Hui ', 'Sui ', 'Zhi ', 'Xiang ', 'Bi ', 'Fu ', 'Tun ', 'Wei ', 'Wu ', 'Zhi ', 'Qi ', 'Shan ', 'Wen ', 'Qian ', 'Ren ', 'Fou ', 'Kou ', 'Jie ', 'Lu ', 'Xu ', 'Ji ', 'Qin ', 'Qi ', 'Yuan ', 'Fen ', 'Ba ', 'Rui ', 'Xin ', 'Ji ', 'Hua ', 'Hua ', 'Fang ', 'Wu ', 'Jue ', 'Gou ', 'Zhi ', 'Yun ', 'Qin ', 'Ao ', 'Chu ', 'Mao ', 'Ya ', 'Fei ', 'Reng ', 'Hang ', 'Cong ', 'Yin ', 'You ', 'Bian ', 'Yi ', 'Susa ', 'Wei ', 'Li ', 'Pi ', 'E ', 'Xian ', 'Chang ', 'Cang ', 'Meng ', 'Su ', 'Yi ', 'Yuan ', 'Ran ', 'Ling ', 'Tai ', 'Tiao ', 'Di ', 'Miao ', 'Qiong ', 'Li ', 'Yong ', 'Ke ', 'Mu ', 'Pei ', 'Bao ', 'Gou ', 'Min ', 'Yi ', 'Yi ', 'Ju ', 'Pi ', 'Ruo ', 'Ku ', 'Zhu ', 'Ni ', 'Bo ', 'Bing ', 'Shan ', 'Qiu ', 'Yao ', 'Xian ', 'Ben ', 'Hong ', 'Ying ', 'Zha ', 'Dong ', 'Ju ', 'Die ', 'Nie ', 'Gan ', 'Hu ', 'Ping ', 'Mei ', 'Fu ', 'Sheng ', 'Gu ', 'Bi ', 'Wei ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x083.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x083.php new file mode 100644 index 000000000..747d5877c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x083.php @@ -0,0 +1 @@ +<?php return ['Fu ', 'Zhuo ', 'Mao ', 'Fan ', 'Qie ', 'Mao ', 'Mao ', 'Ba ', 'Zi ', 'Mo ', 'Zi ', 'Di ', 'Chi ', 'Ji ', 'Jing ', 'Long ', '[?] ', 'Niao ', '[?] ', 'Xue ', 'Ying ', 'Qiong ', 'Ge ', 'Ming ', 'Li ', 'Rong ', 'Yin ', 'Gen ', 'Qian ', 'Chai ', 'Chen ', 'Yu ', 'Xiu ', 'Zi ', 'Lie ', 'Wu ', 'Ji ', 'Kui ', 'Ce ', 'Chong ', 'Ci ', 'Gou ', 'Guang ', 'Mang ', 'Chi ', 'Jiao ', 'Jiao ', 'Fu ', 'Yu ', 'Zhu ', 'Zi ', 'Jiang ', 'Hui ', 'Yin ', 'Cha ', 'Fa ', 'Rong ', 'Ru ', 'Chong ', 'Mang ', 'Tong ', 'Zhong ', '[?] ', 'Zhu ', 'Xun ', 'Huan ', 'Kua ', 'Quan ', 'Gai ', 'Da ', 'Jing ', 'Xing ', 'Quan ', 'Cao ', 'Jing ', 'Er ', 'An ', 'Shou ', 'Chi ', 'Ren ', 'Jian ', 'Ti ', 'Huang ', 'Ping ', 'Li ', 'Jin ', 'Lao ', 'Shu ', 'Zhuang ', 'Da ', 'Jia ', 'Rao ', 'Bi ', 'Ze ', 'Qiao ', 'Hui ', 'Qi ', 'Dang ', '[?] ', 'Rong ', 'Hun ', 'Ying ', 'Luo ', 'Ying ', 'Xun ', 'Jin ', 'Sun ', 'Yin ', 'Mai ', 'Hong ', 'Zhou ', 'Yao ', 'Du ', 'Wei ', 'Chu ', 'Dou ', 'Fu ', 'Ren ', 'Yin ', 'He ', 'Bi ', 'Bu ', 'Yun ', 'Di ', 'Tu ', 'Sui ', 'Sui ', 'Cheng ', 'Chen ', 'Wu ', 'Bie ', 'Xi ', 'Geng ', 'Li ', 'Fu ', 'Zhu ', 'Mo ', 'Li ', 'Zhuang ', 'Ji ', 'Duo ', 'Qiu ', 'Sha ', 'Suo ', 'Chen ', 'Feng ', 'Ju ', 'Mei ', 'Meng ', 'Xing ', 'Jing ', 'Che ', 'Xin ', 'Jun ', 'Yan ', 'Ting ', 'Diao ', 'Cuo ', 'Wan ', 'Han ', 'You ', 'Cuo ', 'Jia ', 'Wang ', 'You ', 'Niu ', 'Shao ', 'Xian ', 'Lang ', 'Fu ', 'E ', 'Mo ', 'Wen ', 'Jie ', 'Nan ', 'Mu ', 'Kan ', 'Lai ', 'Lian ', 'Shi ', 'Wo ', 'Usagi ', 'Lian ', 'Huo ', 'You ', 'Ying ', 'Ying ', 'Nuc ', 'Chun ', 'Mang ', 'Mang ', 'Ci ', 'Wan ', 'Jing ', 'Di ', 'Qu ', 'Dong ', 'Jian ', 'Zou ', 'Gu ', 'La ', 'Lu ', 'Ju ', 'Wei ', 'Jun ', 'Nie ', 'Kun ', 'He ', 'Pu ', 'Zi ', 'Gao ', 'Guo ', 'Fu ', 'Lun ', 'Chang ', 'Chou ', 'Song ', 'Chui ', 'Zhan ', 'Men ', 'Cai ', 'Ba ', 'Li ', 'Tu ', 'Bo ', 'Han ', 'Bao ', 'Qin ', 'Juan ', 'Xi ', 'Qin ', 'Di ', 'Jie ', 'Pu ', 'Dang ', 'Jin ', 'Zhao ', 'Tai ', 'Geng ', 'Hua ', 'Gu ', 'Ling ', 'Fei ', 'Jin ', 'An ', 'Wang ', 'Beng ', 'Zhou ', 'Yan ', 'Ju ', 'Jian ', 'Lin ', 'Tan ', 'Shu ', 'Tian ', 'Dao ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x084.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x084.php new file mode 100644 index 000000000..7fd10559b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x084.php @@ -0,0 +1 @@ +<?php return ['Hu ', 'Qi ', 'He ', 'Cui ', 'Tao ', 'Chun ', 'Bei ', 'Chang ', 'Huan ', 'Fei ', 'Lai ', 'Qi ', 'Meng ', 'Ping ', 'Wei ', 'Dan ', 'Sha ', 'Huan ', 'Yan ', 'Yi ', 'Tiao ', 'Qi ', 'Wan ', 'Ce ', 'Nai ', 'Kutabireru ', 'Tuo ', 'Jiu ', 'Tie ', 'Luo ', '[?] ', '[?] ', 'Meng ', '[?] ', 'Yaji ', '[?] ', 'Ying ', 'Ying ', 'Ying ', 'Xiao ', 'Sa ', 'Qiu ', 'Ke ', 'Xiang ', 'Wan ', 'Yu ', 'Yu ', 'Fu ', 'Lian ', 'Xuan ', 'Yuan ', 'Nan ', 'Ze ', 'Wo ', 'Chun ', 'Xiao ', 'Yu ', 'Pian ', 'Mao ', 'An ', 'E ', 'Luo ', 'Ying ', 'Huo ', 'Gua ', 'Jiang ', 'Mian ', 'Zuo ', 'Zuo ', 'Ju ', 'Bao ', 'Rou ', 'Xi ', 'Xie ', 'An ', 'Qu ', 'Jian ', 'Fu ', 'Lu ', 'Jing ', 'Pen ', 'Feng ', 'Hong ', 'Hong ', 'Hou ', 'Yan ', 'Tu ', 'Zhu ', 'Zi ', 'Xiang ', 'Shen ', 'Ge ', 'Jie ', 'Jing ', 'Mi ', 'Huang ', 'Shen ', 'Pu ', 'Gai ', 'Dong ', 'Zhou ', 'Qian ', 'Wei ', 'Bo ', 'Wei ', 'Pa ', 'Ji ', 'Hu ', 'Zang ', 'Jia ', 'Duan ', 'Yao ', 'Jun ', 'Cong ', 'Quan ', 'Wei ', 'Xian ', 'Kui ', 'Ting ', 'Hun ', 'Xi ', 'Shi ', 'Qi ', 'Lan ', 'Zong ', 'Yao ', 'Yuan ', 'Mei ', 'Yun ', 'Shu ', 'Di ', 'Zhuan ', 'Guan ', 'Sukumo ', 'Xue ', 'Chan ', 'Kai ', 'Kui ', '[?] ', 'Jiang ', 'Lou ', 'Wei ', 'Pai ', '[?] ', 'Sou ', 'Yin ', 'Shi ', 'Chun ', 'Shi ', 'Yun ', 'Zhen ', 'Lang ', 'Nu ', 'Meng ', 'He ', 'Que ', 'Suan ', 'Yuan ', 'Li ', 'Ju ', 'Xi ', 'Pang ', 'Chu ', 'Xu ', 'Tu ', 'Liu ', 'Wo ', 'Zhen ', 'Qian ', 'Zu ', 'Po ', 'Cuo ', 'Yuan ', 'Chu ', 'Yu ', 'Kuai ', 'Pan ', 'Pu ', 'Pu ', 'Na ', 'Shuo ', 'Xi ', 'Fen ', 'Yun ', 'Zheng ', 'Jian ', 'Ji ', 'Ruo ', 'Cang ', 'En ', 'Mi ', 'Hao ', 'Sun ', 'Zhen ', 'Ming ', 'Sou ', 'Xu ', 'Liu ', 'Xi ', 'Gu ', 'Lang ', 'Rong ', 'Weng ', 'Gai ', 'Cuo ', 'Shi ', 'Tang ', 'Luo ', 'Ru ', 'Suo ', 'Xian ', 'Bei ', 'Yao ', 'Gui ', 'Bi ', 'Zong ', 'Gun ', 'Za ', 'Xiu ', 'Ce ', 'Hai ', 'Lan ', '[?] ', 'Ji ', 'Li ', 'Can ', 'Lang ', 'Yu ', '[?] ', 'Ying ', 'Mo ', 'Diao ', 'Tiao ', 'Mao ', 'Tong ', 'Zhu ', 'Peng ', 'An ', 'Lian ', 'Cong ', 'Xi ', 'Ping ', 'Qiu ', 'Jin ', 'Chun ', 'Jie ', 'Wei ', 'Tui ', 'Cao ', 'Yu ', 'Yi ', 'Ji ', 'Liao ', 'Bi ', 'Lu ', 'Su ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x085.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x085.php new file mode 100644 index 000000000..46459eb62 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x085.php @@ -0,0 +1 @@ +<?php return ['Bu ', 'Zhang ', 'Luo ', 'Jiang ', 'Man ', 'Yan ', 'Ling ', 'Ji ', 'Piao ', 'Gun ', 'Han ', 'Di ', 'Su ', 'Lu ', 'She ', 'Shang ', 'Di ', 'Mie ', 'Xun ', 'Man ', 'Bo ', 'Di ', 'Cuo ', 'Zhe ', 'Sen ', 'Xuan ', 'Wei ', 'Hu ', 'Ao ', 'Mi ', 'Lou ', 'Cu ', 'Zhong ', 'Cai ', 'Po ', 'Jiang ', 'Mi ', 'Cong ', 'Niao ', 'Hui ', 'Jun ', 'Yin ', 'Jian ', 'Yan ', 'Shu ', 'Yin ', 'Kui ', 'Chen ', 'Hu ', 'Sha ', 'Kou ', 'Qian ', 'Ma ', 'Zang ', 'Sonoko ', 'Qiang ', 'Dou ', 'Lian ', 'Lin ', 'Kou ', 'Ai ', 'Bi ', 'Li ', 'Wei ', 'Ji ', 'Xun ', 'Sheng ', 'Fan ', 'Meng ', 'Ou ', 'Chan ', 'Dian ', 'Xun ', 'Jiao ', 'Rui ', 'Rui ', 'Lei ', 'Yu ', 'Qiao ', 'Chu ', 'Hua ', 'Jian ', 'Mai ', 'Yun ', 'Bao ', 'You ', 'Qu ', 'Lu ', 'Rao ', 'Hui ', 'E ', 'Teng ', 'Fei ', 'Jue ', 'Zui ', 'Fa ', 'Ru ', 'Fen ', 'Kui ', 'Shun ', 'Rui ', 'Ya ', 'Xu ', 'Fu ', 'Jue ', 'Dang ', 'Wu ', 'Tong ', 'Si ', 'Xiao ', 'Xi ', 'Long ', 'Yun ', '[?] ', 'Qi ', 'Jian ', 'Yun ', 'Sun ', 'Ling ', 'Yu ', 'Xia ', 'Yong ', 'Ji ', 'Hong ', 'Si ', 'Nong ', 'Lei ', 'Xuan ', 'Yun ', 'Yu ', 'Xi ', 'Hao ', 'Bo ', 'Hao ', 'Ai ', 'Wei ', 'Hui ', 'Wei ', 'Ji ', 'Ci ', 'Xiang ', 'Luan ', 'Mie ', 'Yi ', 'Leng ', 'Jiang ', 'Can ', 'Shen ', 'Qiang ', 'Lian ', 'Ke ', 'Yuan ', 'Da ', 'Ti ', 'Tang ', 'Xie ', 'Bi ', 'Zhan ', 'Sun ', 'Lian ', 'Fan ', 'Ding ', 'Jie ', 'Gu ', 'Xie ', 'Shu ', 'Jian ', 'Kao ', 'Hong ', 'Sa ', 'Xin ', 'Xun ', 'Yao ', 'Hie ', 'Sou ', 'Shu ', 'Xun ', 'Dui ', 'Pin ', 'Wei ', 'Neng ', 'Chou ', 'Mai ', 'Ru ', 'Piao ', 'Tai ', 'Qi ', 'Zao ', 'Chen ', 'Zhen ', 'Er ', 'Ni ', 'Ying ', 'Gao ', 'Cong ', 'Xiao ', 'Qi ', 'Fa ', 'Jian ', 'Xu ', 'Kui ', 'Jie ', 'Bian ', 'Diao ', 'Mi ', 'Lan ', 'Jin ', 'Cang ', 'Miao ', 'Qiong ', 'Qie ', 'Xian ', '[?] ', 'Ou ', 'Xian ', 'Su ', 'Lu ', 'Yi ', 'Xu ', 'Xie ', 'Li ', 'Yi ', 'La ', 'Lei ', 'Xiao ', 'Di ', 'Zhi ', 'Bei ', 'Teng ', 'Yao ', 'Mo ', 'Huan ', 'Piao ', 'Fan ', 'Sou ', 'Tan ', 'Tui ', 'Qiong ', 'Qiao ', 'Wei ', 'Liu ', 'Hui ', '[?] ', 'Gao ', 'Yun ', '[?] ', 'Li ', 'Shu ', 'Chu ', 'Ai ', 'Lin ', 'Zao ', 'Xuan ', 'Chen ', 'Lai ', 'Huo ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x086.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x086.php new file mode 100644 index 000000000..159aa5c30 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x086.php @@ -0,0 +1 @@ +<?php return ['Tuo ', 'Wu ', 'Rui ', 'Rui ', 'Qi ', 'Heng ', 'Lu ', 'Su ', 'Tui ', 'Mang ', 'Yun ', 'Pin ', 'Yu ', 'Xun ', 'Ji ', 'Jiong ', 'Xian ', 'Mo ', 'Hagi ', 'Su ', 'Jiong ', '[?] ', 'Nie ', 'Bo ', 'Rang ', 'Yi ', 'Xian ', 'Yu ', 'Ju ', 'Lian ', 'Lian ', 'Yin ', 'Qiang ', 'Ying ', 'Long ', 'Tong ', 'Wei ', 'Yue ', 'Ling ', 'Qu ', 'Yao ', 'Fan ', 'Mi ', 'Lan ', 'Kui ', 'Lan ', 'Ji ', 'Dang ', 'Katsura ', 'Lei ', 'Lei ', 'Hua ', 'Feng ', 'Zhi ', 'Wei ', 'Kui ', 'Zhan ', 'Huai ', 'Li ', 'Ji ', 'Mi ', 'Lei ', 'Huai ', 'Luo ', 'Ji ', 'Kui ', 'Lu ', 'Jian ', 'San ', '[?] ', 'Lei ', 'Quan ', 'Xiao ', 'Yi ', 'Luan ', 'Men ', 'Bie ', 'Hu ', 'Hu ', 'Lu ', 'Nue ', 'Lu ', 'Si ', 'Xiao ', 'Qian ', 'Chu ', 'Hu ', 'Xu ', 'Cuo ', 'Fu ', 'Xu ', 'Xu ', 'Lu ', 'Hu ', 'Yu ', 'Hao ', 'Jiao ', 'Ju ', 'Guo ', 'Bao ', 'Yan ', 'Zhan ', 'Zhan ', 'Kui ', 'Ban ', 'Xi ', 'Shu ', 'Chong ', 'Qiu ', 'Diao ', 'Ji ', 'Qiu ', 'Cheng ', 'Shi ', '[?] ', 'Di ', 'Zhe ', 'She ', 'Yu ', 'Gan ', 'Zi ', 'Hong ', 'Hui ', 'Meng ', 'Ge ', 'Sui ', 'Xia ', 'Chai ', 'Shi ', 'Yi ', 'Ma ', 'Xiang ', 'Fang ', 'E ', 'Pa ', 'Chi ', 'Qian ', 'Wen ', 'Wen ', 'Rui ', 'Bang ', 'Bi ', 'Yue ', 'Yue ', 'Jun ', 'Qi ', 'Ran ', 'Yin ', 'Qi ', 'Tian ', 'Yuan ', 'Jue ', 'Hui ', 'Qin ', 'Qi ', 'Zhong ', 'Ya ', 'Ci ', 'Mu ', 'Wang ', 'Fen ', 'Fen ', 'Hang ', 'Gong ', 'Zao ', 'Fu ', 'Ran ', 'Jie ', 'Fu ', 'Chi ', 'Dou ', 'Piao ', 'Xian ', 'Ni ', 'Te ', 'Qiu ', 'You ', 'Zha ', 'Ping ', 'Chi ', 'You ', 'He ', 'Han ', 'Ju ', 'Li ', 'Fu ', 'Ran ', 'Zha ', 'Gou ', 'Pi ', 'Bo ', 'Xian ', 'Zhu ', 'Diao ', 'Bie ', 'Bing ', 'Gu ', 'Ran ', 'Qu ', 'She ', 'Tie ', 'Ling ', 'Gu ', 'Dan ', 'Gu ', 'Ying ', 'Li ', 'Cheng ', 'Qu ', 'Mou ', 'Ge ', 'Ci ', 'Hui ', 'Hui ', 'Mang ', 'Fu ', 'Yang ', 'Wa ', 'Lie ', 'Zhu ', 'Yi ', 'Xian ', 'Kuo ', 'Jiao ', 'Li ', 'Yi ', 'Ping ', 'Ji ', 'Ha ', 'She ', 'Yi ', 'Wang ', 'Mo ', 'Qiong ', 'Qie ', 'Gui ', 'Gong ', 'Zhi ', 'Man ', 'Ebi ', 'Zhi ', 'Jia ', 'Rao ', 'Si ', 'Qi ', 'Xing ', 'Lie ', 'Qiu ', 'Shao ', 'Yong ', 'Jia ', 'Shui ', 'Che ', 'Bai ', 'E ', 'Han ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x087.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x087.php new file mode 100644 index 000000000..810bbbda7 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x087.php @@ -0,0 +1 @@ +<?php return ['Shu ', 'Xuan ', 'Feng ', 'Shen ', 'Zhen ', 'Fu ', 'Xian ', 'Zhe ', 'Wu ', 'Fu ', 'Li ', 'Lang ', 'Bi ', 'Chu ', 'Yuan ', 'You ', 'Jie ', 'Dan ', 'Yan ', 'Ting ', 'Dian ', 'Shui ', 'Hui ', 'Gua ', 'Zhi ', 'Song ', 'Fei ', 'Ju ', 'Mi ', 'Qi ', 'Qi ', 'Yu ', 'Jun ', 'Zha ', 'Meng ', 'Qiang ', 'Si ', 'Xi ', 'Lun ', 'Li ', 'Die ', 'Tiao ', 'Tao ', 'Kun ', 'Gan ', 'Han ', 'Yu ', 'Bang ', 'Fei ', 'Pi ', 'Wei ', 'Dun ', 'Yi ', 'Yuan ', 'Su ', 'Quan ', 'Qian ', 'Rui ', 'Ni ', 'Qing ', 'Wei ', 'Liang ', 'Guo ', 'Wan ', 'Dong ', 'E ', 'Ban ', 'Di ', 'Wang ', 'Can ', 'Yang ', 'Ying ', 'Guo ', 'Chan ', '[?] ', 'La ', 'Ke ', 'Ji ', 'He ', 'Ting ', 'Mai ', 'Xu ', 'Mian ', 'Yu ', 'Jie ', 'Shi ', 'Xuan ', 'Huang ', 'Yan ', 'Bian ', 'Rou ', 'Wei ', 'Fu ', 'Yuan ', 'Mei ', 'Wei ', 'Fu ', 'Ruan ', 'Xie ', 'You ', 'Qiu ', 'Mao ', 'Xia ', 'Ying ', 'Shi ', 'Chong ', 'Tang ', 'Zhu ', 'Zong ', 'Ti ', 'Fu ', 'Yuan ', 'Hui ', 'Meng ', 'La ', 'Du ', 'Hu ', 'Qiu ', 'Die ', 'Li ', 'Gua ', 'Yun ', 'Ju ', 'Nan ', 'Lou ', 'Qun ', 'Rong ', 'Ying ', 'Jiang ', '[?] ', 'Lang ', 'Pang ', 'Si ', 'Xi ', 'Ci ', 'Xi ', 'Yuan ', 'Weng ', 'Lian ', 'Sou ', 'Ban ', 'Rong ', 'Rong ', 'Ji ', 'Wu ', 'Qiu ', 'Han ', 'Qin ', 'Yi ', 'Bi ', 'Hua ', 'Tang ', 'Yi ', 'Du ', 'Nai ', 'He ', 'Hu ', 'Hui ', 'Ma ', 'Ming ', 'Yi ', 'Wen ', 'Ying ', 'Teng ', 'Yu ', 'Cang ', 'So ', 'Ebi ', 'Man ', '[?] ', 'Shang ', 'Zhe ', 'Cao ', 'Chi ', 'Di ', 'Ao ', 'Lu ', 'Wei ', 'Zhi ', 'Tang ', 'Chen ', 'Piao ', 'Qu ', 'Pi ', 'Yu ', 'Jian ', 'Luo ', 'Lou ', 'Qin ', 'Zhong ', 'Yin ', 'Jiang ', 'Shuai ', 'Wen ', 'Jiao ', 'Wan ', 'Zhi ', 'Zhe ', 'Ma ', 'Ma ', 'Guo ', 'Liu ', 'Mao ', 'Xi ', 'Cong ', 'Li ', 'Man ', 'Xiao ', 'Kamakiri ', 'Zhang ', 'Mang ', 'Xiang ', 'Mo ', 'Zui ', 'Si ', 'Qiu ', 'Te ', 'Zhi ', 'Peng ', 'Peng ', 'Jiao ', 'Qu ', 'Bie ', 'Liao ', 'Pan ', 'Gui ', 'Xi ', 'Ji ', 'Zhuan ', 'Huang ', 'Fei ', 'Lao ', 'Jue ', 'Jue ', 'Hui ', 'Yin ', 'Chan ', 'Jiao ', 'Shan ', 'Rao ', 'Xiao ', 'Mou ', 'Chong ', 'Xun ', 'Si ', '[?] ', 'Cheng ', 'Dang ', 'Li ', 'Xie ', 'Shan ', 'Yi ', 'Jing ', 'Da ', 'Chan ', 'Qi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x088.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x088.php new file mode 100644 index 000000000..1dfa03296 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x088.php @@ -0,0 +1 @@ +<?php return ['Ci ', 'Xiang ', 'She ', 'Luo ', 'Qin ', 'Ying ', 'Chai ', 'Li ', 'Ze ', 'Xuan ', 'Lian ', 'Zhu ', 'Ze ', 'Xie ', 'Mang ', 'Xie ', 'Qi ', 'Rong ', 'Jian ', 'Meng ', 'Hao ', 'Ruan ', 'Huo ', 'Zhuo ', 'Jie ', 'Bin ', 'He ', 'Mie ', 'Fan ', 'Lei ', 'Jie ', 'La ', 'Mi ', 'Li ', 'Chun ', 'Li ', 'Qiu ', 'Nie ', 'Lu ', 'Du ', 'Xiao ', 'Zhu ', 'Long ', 'Li ', 'Long ', 'Feng ', 'Ye ', 'Beng ', 'Shang ', 'Gu ', 'Juan ', 'Ying ', '[?] ', 'Xi ', 'Can ', 'Qu ', 'Quan ', 'Du ', 'Can ', 'Man ', 'Jue ', 'Jie ', 'Zhu ', 'Zha ', 'Xie ', 'Huang ', 'Niu ', 'Pei ', 'Nu ', 'Xin ', 'Zhong ', 'Mo ', 'Er ', 'Ke ', 'Mie ', 'Xi ', 'Xing ', 'Yan ', 'Kan ', 'Yuan ', '[?] ', 'Ling ', 'Xuan ', 'Shu ', 'Xian ', 'Tong ', 'Long ', 'Jie ', 'Xian ', 'Ya ', 'Hu ', 'Wei ', 'Dao ', 'Chong ', 'Wei ', 'Dao ', 'Zhun ', 'Heng ', 'Qu ', 'Yi ', 'Yi ', 'Bu ', 'Gan ', 'Yu ', 'Biao ', 'Cha ', 'Yi ', 'Shan ', 'Chen ', 'Fu ', 'Gun ', 'Fen ', 'Shuai ', 'Jie ', 'Na ', 'Zhong ', 'Dan ', 'Ri ', 'Zhong ', 'Zhong ', 'Xie ', 'Qi ', 'Xie ', 'Ran ', 'Zhi ', 'Ren ', 'Qin ', 'Jin ', 'Jun ', 'Yuan ', 'Mei ', 'Chai ', 'Ao ', 'Niao ', 'Hui ', 'Ran ', 'Jia ', 'Tuo ', 'Ling ', 'Dai ', 'Bao ', 'Pao ', 'Yao ', 'Zuo ', 'Bi ', 'Shao ', 'Tan ', 'Ju ', 'He ', 'Shu ', 'Xiu ', 'Zhen ', 'Yi ', 'Pa ', 'Bo ', 'Di ', 'Wa ', 'Fu ', 'Gun ', 'Zhi ', 'Zhi ', 'Ran ', 'Pan ', 'Yi ', 'Mao ', 'Tuo ', 'Na ', 'Kou ', 'Xian ', 'Chan ', 'Qu ', 'Bei ', 'Gun ', 'Xi ', 'Ne ', 'Bo ', 'Horo ', 'Fu ', 'Yi ', 'Chi ', 'Ku ', 'Ren ', 'Jiang ', 'Jia ', 'Cun ', 'Mo ', 'Jie ', 'Er ', 'Luo ', 'Ru ', 'Zhu ', 'Gui ', 'Yin ', 'Cai ', 'Lie ', 'Kamishimo ', 'Yuki ', 'Zhuang ', 'Dang ', '[?] ', 'Kun ', 'Ken ', 'Niao ', 'Shu ', 'Jia ', 'Kun ', 'Cheng ', 'Li ', 'Juan ', 'Shen ', 'Pou ', 'Ge ', 'Yi ', 'Yu ', 'Zhen ', 'Liu ', 'Qiu ', 'Qun ', 'Ji ', 'Yi ', 'Bu ', 'Zhuang ', 'Shui ', 'Sha ', 'Qun ', 'Li ', 'Lian ', 'Lian ', 'Ku ', 'Jian ', 'Fou ', 'Chan ', 'Bi ', 'Gun ', 'Tao ', 'Yuan ', 'Ling ', 'Chi ', 'Chang ', 'Chou ', 'Duo ', 'Biao ', 'Liang ', 'Chang ', 'Pei ', 'Pei ', 'Fei ', 'Yuan ', 'Luo ', 'Guo ', 'Yan ', 'Du ', 'Xi ', 'Zhi ', 'Ju ', 'Qi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x089.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x089.php new file mode 100644 index 000000000..5e2856d89 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x089.php @@ -0,0 +1 @@ +<?php return ['Ji ', 'Zhi ', 'Gua ', 'Ken ', 'Che ', 'Ti ', 'Ti ', 'Fu ', 'Chong ', 'Xie ', 'Bian ', 'Die ', 'Kun ', 'Duan ', 'Xiu ', 'Xiu ', 'He ', 'Yuan ', 'Bao ', 'Bao ', 'Fu ', 'Yu ', 'Tuan ', 'Yan ', 'Hui ', 'Bei ', 'Chu ', 'Lu ', 'Ena ', 'Hitoe ', 'Yun ', 'Da ', 'Gou ', 'Da ', 'Huai ', 'Rong ', 'Yuan ', 'Ru ', 'Nai ', 'Jiong ', 'Suo ', 'Ban ', 'Tun ', 'Chi ', 'Sang ', 'Niao ', 'Ying ', 'Jie ', 'Qian ', 'Huai ', 'Ku ', 'Lian ', 'Bao ', 'Li ', 'Zhe ', 'Shi ', 'Lu ', 'Yi ', 'Die ', 'Xie ', 'Xian ', 'Wei ', 'Biao ', 'Cao ', 'Ji ', 'Jiang ', 'Sen ', 'Bao ', 'Xiang ', 'Chihaya ', 'Pu ', 'Jian ', 'Zhuan ', 'Jian ', 'Zui ', 'Ji ', 'Dan ', 'Za ', 'Fan ', 'Bo ', 'Xiang ', 'Xin ', 'Bie ', 'Rao ', 'Man ', 'Lan ', 'Ao ', 'Duo ', 'Gui ', 'Cao ', 'Sui ', 'Nong ', 'Chan ', 'Lian ', 'Bi ', 'Jin ', 'Dang ', 'Shu ', 'Tan ', 'Bi ', 'Lan ', 'Pu ', 'Ru ', 'Zhi ', '[?] ', 'Shu ', 'Wa ', 'Shi ', 'Bai ', 'Xie ', 'Bo ', 'Chen ', 'Lai ', 'Long ', 'Xi ', 'Xian ', 'Lan ', 'Zhe ', 'Dai ', 'Tasuki ', 'Zan ', 'Shi ', 'Jian ', 'Pan ', 'Yi ', 'Ran ', 'Ya ', 'Xi ', 'Xi ', 'Yao ', 'Feng ', 'Tan ', '[?] ', 'Biao ', 'Fu ', 'Ba ', 'He ', 'Ji ', 'Ji ', 'Jian ', 'Guan ', 'Bian ', 'Yan ', 'Gui ', 'Jue ', 'Pian ', 'Mao ', 'Mi ', 'Mi ', 'Mie ', 'Shi ', 'Si ', 'Zhan ', 'Luo ', 'Jue ', 'Mi ', 'Tiao ', 'Lian ', 'Yao ', 'Zhi ', 'Jun ', 'Xi ', 'Shan ', 'Wei ', 'Xi ', 'Tian ', 'Yu ', 'Lan ', 'E ', 'Du ', 'Qin ', 'Pang ', 'Ji ', 'Ming ', 'Ying ', 'Gou ', 'Qu ', 'Zhan ', 'Jin ', 'Guan ', 'Deng ', 'Jian ', 'Luo ', 'Qu ', 'Jian ', 'Wei ', 'Jue ', 'Qu ', 'Luo ', 'Lan ', 'Shen ', 'Di ', 'Guan ', 'Jian ', 'Guan ', 'Yan ', 'Gui ', 'Mi ', 'Shi ', 'Zhan ', 'Lan ', 'Jue ', 'Ji ', 'Xi ', 'Di ', 'Tian ', 'Yu ', 'Gou ', 'Jin ', 'Qu ', 'Jiao ', 'Jiu ', 'Jin ', 'Cu ', 'Jue ', 'Zhi ', 'Chao ', 'Ji ', 'Gu ', 'Dan ', 'Zui ', 'Di ', 'Shang ', 'Hua ', 'Quan ', 'Ge ', 'Chi ', 'Jie ', 'Gui ', 'Gong ', 'Hong ', 'Jie ', 'Hun ', 'Qiu ', 'Xing ', 'Su ', 'Ni ', 'Ji ', 'Lu ', 'Zhi ', 'Zha ', 'Bi ', 'Xing ', 'Hu ', 'Shang ', 'Gong ', 'Zhi ', 'Xue ', 'Chu ', 'Xi ', 'Yi ', 'Lu ', 'Jue ', 'Xi ', 'Yan ', 'Xi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x08a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x08a.php new file mode 100644 index 000000000..826fd753b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x08a.php @@ -0,0 +1 @@ +<?php return ['Yan ', 'Yan ', 'Ding ', 'Fu ', 'Qiu ', 'Qiu ', 'Jiao ', 'Hong ', 'Ji ', 'Fan ', 'Xun ', 'Diao ', 'Hong ', 'Cha ', 'Tao ', 'Xu ', 'Jie ', 'Yi ', 'Ren ', 'Xun ', 'Yin ', 'Shan ', 'Qi ', 'Tuo ', 'Ji ', 'Xun ', 'Yin ', 'E ', 'Fen ', 'Ya ', 'Yao ', 'Song ', 'Shen ', 'Yin ', 'Xin ', 'Jue ', 'Xiao ', 'Ne ', 'Chen ', 'You ', 'Zhi ', 'Xiong ', 'Fang ', 'Xin ', 'Chao ', 'She ', 'Xian ', 'Sha ', 'Tun ', 'Xu ', 'Yi ', 'Yi ', 'Su ', 'Chi ', 'He ', 'Shen ', 'He ', 'Xu ', 'Zhen ', 'Zhu ', 'Zheng ', 'Gou ', 'Zi ', 'Zi ', 'Zhan ', 'Gu ', 'Fu ', 'Quan ', 'Die ', 'Ling ', 'Di ', 'Yang ', 'Li ', 'Nao ', 'Pan ', 'Zhou ', 'Gan ', 'Yi ', 'Ju ', 'Ao ', 'Zha ', 'Tuo ', 'Yi ', 'Qu ', 'Zhao ', 'Ping ', 'Bi ', 'Xiong ', 'Qu ', 'Ba ', 'Da ', 'Zu ', 'Tao ', 'Zhu ', 'Ci ', 'Zhe ', 'Yong ', 'Xu ', 'Xun ', 'Yi ', 'Huang ', 'He ', 'Shi ', 'Cha ', 'Jiao ', 'Shi ', 'Hen ', 'Cha ', 'Gou ', 'Gui ', 'Quan ', 'Hui ', 'Jie ', 'Hua ', 'Gai ', 'Xiang ', 'Wei ', 'Shen ', 'Chou ', 'Tong ', 'Mi ', 'Zhan ', 'Ming ', 'E ', 'Hui ', 'Yan ', 'Xiong ', 'Gua ', 'Er ', 'Beng ', 'Tiao ', 'Chi ', 'Lei ', 'Zhu ', 'Kuang ', 'Kua ', 'Wu ', 'Yu ', 'Teng ', 'Ji ', 'Zhi ', 'Ren ', 'Su ', 'Lang ', 'E ', 'Kuang ', 'E ', 'Shi ', 'Ting ', 'Dan ', 'Bo ', 'Chan ', 'You ', 'Heng ', 'Qiao ', 'Qin ', 'Shua ', 'An ', 'Yu ', 'Xiao ', 'Cheng ', 'Jie ', 'Xian ', 'Wu ', 'Wu ', 'Gao ', 'Song ', 'Pu ', 'Hui ', 'Jing ', 'Shuo ', 'Zhen ', 'Shuo ', 'Du ', 'Yasashi ', 'Chang ', 'Shui ', 'Jie ', 'Ke ', 'Qu ', 'Cong ', 'Xiao ', 'Sui ', 'Wang ', 'Xuan ', 'Fei ', 'Chi ', 'Ta ', 'Yi ', 'Na ', 'Yin ', 'Diao ', 'Pi ', 'Chuo ', 'Chan ', 'Chen ', 'Zhun ', 'Ji ', 'Qi ', 'Tan ', 'Zhui ', 'Wei ', 'Ju ', 'Qing ', 'Jian ', 'Zheng ', 'Ze ', 'Zou ', 'Qian ', 'Zhuo ', 'Liang ', 'Jian ', 'Zhu ', 'Hao ', 'Lun ', 'Shen ', 'Biao ', 'Huai ', 'Pian ', 'Yu ', 'Die ', 'Xu ', 'Pian ', 'Shi ', 'Xuan ', 'Shi ', 'Hun ', 'Hua ', 'E ', 'Zhong ', 'Di ', 'Xie ', 'Fu ', 'Pu ', 'Ting ', 'Jian ', 'Qi ', 'Yu ', 'Zi ', 'Chuan ', 'Xi ', 'Hui ', 'Yin ', 'An ', 'Xian ', 'Nan ', 'Chen ', 'Feng ', 'Zhu ', 'Yang ', 'Yan ', 'Heng ', 'Xuan ', 'Ge ', 'Nuo ', 'Qi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x08b.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x08b.php new file mode 100644 index 000000000..540258e10 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x08b.php @@ -0,0 +1 @@ +<?php return ['Mou ', 'Ye ', 'Wei ', '[?] ', 'Teng ', 'Zou ', 'Shan ', 'Jian ', 'Bo ', 'Ku ', 'Huang ', 'Huo ', 'Ge ', 'Ying ', 'Mi ', 'Xiao ', 'Mi ', 'Xi ', 'Qiang ', 'Chen ', 'Nue ', 'Ti ', 'Su ', 'Bang ', 'Chi ', 'Qian ', 'Shi ', 'Jiang ', 'Yuan ', 'Xie ', 'Xue ', 'Tao ', 'Yao ', 'Yao ', '[?] ', 'Yu ', 'Biao ', 'Cong ', 'Qing ', 'Li ', 'Mo ', 'Mo ', 'Shang ', 'Zhe ', 'Miu ', 'Jian ', 'Ze ', 'Jie ', 'Lian ', 'Lou ', 'Can ', 'Ou ', 'Guan ', 'Xi ', 'Zhuo ', 'Ao ', 'Ao ', 'Jin ', 'Zhe ', 'Yi ', 'Hu ', 'Jiang ', 'Man ', 'Chao ', 'Han ', 'Hua ', 'Chan ', 'Xu ', 'Zeng ', 'Se ', 'Xi ', 'She ', 'Dui ', 'Zheng ', 'Nao ', 'Lan ', 'E ', 'Ying ', 'Jue ', 'Ji ', 'Zun ', 'Jiao ', 'Bo ', 'Hui ', 'Zhuan ', 'Mu ', 'Zen ', 'Zha ', 'Shi ', 'Qiao ', 'Tan ', 'Zen ', 'Pu ', 'Sheng ', 'Xuan ', 'Zao ', 'Tan ', 'Dang ', 'Sui ', 'Qian ', 'Ji ', 'Jiao ', 'Jing ', 'Lian ', 'Nou ', 'Yi ', 'Ai ', 'Zhan ', 'Pi ', 'Hui ', 'Hua ', 'Yi ', 'Yi ', 'Shan ', 'Rang ', 'Nou ', 'Qian ', 'Zhui ', 'Ta ', 'Hu ', 'Zhou ', 'Hao ', 'Ye ', 'Ying ', 'Jian ', 'Yu ', 'Jian ', 'Hui ', 'Du ', 'Zhe ', 'Xuan ', 'Zan ', 'Lei ', 'Shen ', 'Wei ', 'Chan ', 'Li ', 'Yi ', 'Bian ', 'Zhe ', 'Yan ', 'E ', 'Chou ', 'Wei ', 'Chou ', 'Yao ', 'Chan ', 'Rang ', 'Yin ', 'Lan ', 'Chen ', 'Huo ', 'Zhe ', 'Huan ', 'Zan ', 'Yi ', 'Dang ', 'Zhan ', 'Yan ', 'Du ', 'Yan ', 'Ji ', 'Ding ', 'Fu ', 'Ren ', 'Ji ', 'Jie ', 'Hong ', 'Tao ', 'Rang ', 'Shan ', 'Qi ', 'Tuo ', 'Xun ', 'Yi ', 'Xun ', 'Ji ', 'Ren ', 'Jiang ', 'Hui ', 'Ou ', 'Ju ', 'Ya ', 'Ne ', 'Xu ', 'E ', 'Lun ', 'Xiong ', 'Song ', 'Feng ', 'She ', 'Fang ', 'Jue ', 'Zheng ', 'Gu ', 'He ', 'Ping ', 'Zu ', 'Shi ', 'Xiong ', 'Zha ', 'Su ', 'Zhen ', 'Di ', 'Zou ', 'Ci ', 'Qu ', 'Zhao ', 'Bi ', 'Yi ', 'Yi ', 'Kuang ', 'Lei ', 'Shi ', 'Gua ', 'Shi ', 'Jie ', 'Hui ', 'Cheng ', 'Zhu ', 'Shen ', 'Hua ', 'Dan ', 'Gou ', 'Quan ', 'Gui ', 'Xun ', 'Yi ', 'Zheng ', 'Gai ', 'Xiang ', 'Cha ', 'Hun ', 'Xu ', 'Zhou ', 'Jie ', 'Wu ', 'Yu ', 'Qiao ', 'Wu ', 'Gao ', 'You ', 'Hui ', 'Kuang ', 'Shuo ', 'Song ', 'Ai ', 'Qing ', 'Zhu ', 'Zou ', 'Nuo ', 'Du ', 'Zhuo ', 'Fei ', 'Ke ', 'Wei ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x08c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x08c.php new file mode 100644 index 000000000..1f4a849ff --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x08c.php @@ -0,0 +1 @@ +<?php return ['Yu ', 'Shui ', 'Shen ', 'Diao ', 'Chan ', 'Liang ', 'Zhun ', 'Sui ', 'Tan ', 'Shen ', 'Yi ', 'Mou ', 'Chen ', 'Die ', 'Huang ', 'Jian ', 'Xie ', 'Nue ', 'Ye ', 'Wei ', 'E ', 'Yu ', 'Xuan ', 'Chan ', 'Zi ', 'An ', 'Yan ', 'Di ', 'Mi ', 'Pian ', 'Xu ', 'Mo ', 'Dang ', 'Su ', 'Xie ', 'Yao ', 'Bang ', 'Shi ', 'Qian ', 'Mi ', 'Jin ', 'Man ', 'Zhe ', 'Jian ', 'Miu ', 'Tan ', 'Zen ', 'Qiao ', 'Lan ', 'Pu ', 'Jue ', 'Yan ', 'Qian ', 'Zhan ', 'Chen ', 'Gu ', 'Qian ', 'Hong ', 'Xia ', 'Jue ', 'Hong ', 'Han ', 'Hong ', 'Xi ', 'Xi ', 'Huo ', 'Liao ', 'Han ', 'Du ', 'Long ', 'Dou ', 'Jiang ', 'Qi ', 'Shi ', 'Li ', 'Deng ', 'Wan ', 'Bi ', 'Shu ', 'Xian ', 'Feng ', 'Zhi ', 'Zhi ', 'Yan ', 'Yan ', 'Shi ', 'Chu ', 'Hui ', 'Tun ', 'Yi ', 'Tun ', 'Yi ', 'Jian ', 'Ba ', 'Hou ', 'E ', 'Cu ', 'Xiang ', 'Huan ', 'Jian ', 'Ken ', 'Gai ', 'Qu ', 'Fu ', 'Xi ', 'Bin ', 'Hao ', 'Yu ', 'Zhu ', 'Jia ', '[?] ', 'Xi ', 'Bo ', 'Wen ', 'Huan ', 'Bin ', 'Di ', 'Zong ', 'Fen ', 'Yi ', 'Zhi ', 'Bao ', 'Chai ', 'Han ', 'Pi ', 'Na ', 'Pi ', 'Gou ', 'Na ', 'You ', 'Diao ', 'Mo ', 'Si ', 'Xiu ', 'Huan ', 'Kun ', 'He ', 'He ', 'Mo ', 'Han ', 'Mao ', 'Li ', 'Ni ', 'Bi ', 'Yu ', 'Jia ', 'Tuan ', 'Mao ', 'Pi ', 'Xi ', 'E ', 'Ju ', 'Mo ', 'Chu ', 'Tan ', 'Huan ', 'Jue ', 'Bei ', 'Zhen ', 'Yuan ', 'Fu ', 'Cai ', 'Gong ', 'Te ', 'Yi ', 'Hang ', 'Wan ', 'Pin ', 'Huo ', 'Fan ', 'Tan ', 'Guan ', 'Ze ', 'Zhi ', 'Er ', 'Zhu ', 'Shi ', 'Bi ', 'Zi ', 'Er ', 'Gui ', 'Pian ', 'Bian ', 'Mai ', 'Dai ', 'Sheng ', 'Kuang ', 'Fei ', 'Tie ', 'Yi ', 'Chi ', 'Mao ', 'He ', 'Bi ', 'Lu ', 'Ren ', 'Hui ', 'Gai ', 'Pian ', 'Zi ', 'Jia ', 'Xu ', 'Zei ', 'Jiao ', 'Gai ', 'Zang ', 'Jian ', 'Ying ', 'Xun ', 'Zhen ', 'She ', 'Bin ', 'Bin ', 'Qiu ', 'She ', 'Chuan ', 'Zang ', 'Zhou ', 'Lai ', 'Zan ', 'Si ', 'Chen ', 'Shang ', 'Tian ', 'Pei ', 'Geng ', 'Xian ', 'Mai ', 'Jian ', 'Sui ', 'Fu ', 'Tan ', 'Cong ', 'Cong ', 'Zhi ', 'Ji ', 'Zhang ', 'Du ', 'Jin ', 'Xiong ', 'Shun ', 'Yun ', 'Bao ', 'Zai ', 'Lai ', 'Feng ', 'Cang ', 'Ji ', 'Sheng ', 'Ai ', 'Zhuan ', 'Fu ', 'Gou ', 'Sai ', 'Ze ', 'Liao ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x08d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x08d.php new file mode 100644 index 000000000..44b0c62cf --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x08d.php @@ -0,0 +1 @@ +<?php return ['Wei ', 'Bai ', 'Chen ', 'Zhuan ', 'Zhi ', 'Zhui ', 'Biao ', 'Yun ', 'Zeng ', 'Tan ', 'Zan ', 'Yan ', '[?] ', 'Shan ', 'Wan ', 'Ying ', 'Jin ', 'Gan ', 'Xian ', 'Zang ', 'Bi ', 'Du ', 'Shu ', 'Yan ', '[?] ', 'Xuan ', 'Long ', 'Gan ', 'Zang ', 'Bei ', 'Zhen ', 'Fu ', 'Yuan ', 'Gong ', 'Cai ', 'Ze ', 'Xian ', 'Bai ', 'Zhang ', 'Huo ', 'Zhi ', 'Fan ', 'Tan ', 'Pin ', 'Bian ', 'Gou ', 'Zhu ', 'Guan ', 'Er ', 'Jian ', 'Bi ', 'Shi ', 'Tie ', 'Gui ', 'Kuang ', 'Dai ', 'Mao ', 'Fei ', 'He ', 'Yi ', 'Zei ', 'Zhi ', 'Jia ', 'Hui ', 'Zi ', 'Ren ', 'Lu ', 'Zang ', 'Zi ', 'Gai ', 'Jin ', 'Qiu ', 'Zhen ', 'Lai ', 'She ', 'Fu ', 'Du ', 'Ji ', 'Shu ', 'Shang ', 'Si ', 'Bi ', 'Zhou ', 'Geng ', 'Pei ', 'Tan ', 'Lai ', 'Feng ', 'Zhui ', 'Fu ', 'Zhuan ', 'Sai ', 'Ze ', 'Yan ', 'Zan ', 'Yun ', 'Zeng ', 'Shan ', 'Ying ', 'Gan ', 'Chi ', 'Xi ', 'She ', 'Nan ', 'Xiong ', 'Xi ', 'Cheng ', 'He ', 'Cheng ', 'Zhe ', 'Xia ', 'Tang ', 'Zou ', 'Zou ', 'Li ', 'Jiu ', 'Fu ', 'Zhao ', 'Gan ', 'Qi ', 'Shan ', 'Qiong ', 'Qin ', 'Xian ', 'Ci ', 'Jue ', 'Qin ', 'Chi ', 'Ci ', 'Chen ', 'Chen ', 'Die ', 'Ju ', 'Chao ', 'Di ', 'Se ', 'Zhan ', 'Zhu ', 'Yue ', 'Qu ', 'Jie ', 'Chi ', 'Chu ', 'Gua ', 'Xue ', 'Ci ', 'Tiao ', 'Duo ', 'Lie ', 'Gan ', 'Suo ', 'Cu ', 'Xi ', 'Zhao ', 'Su ', 'Yin ', 'Ju ', 'Jian ', 'Que ', 'Tang ', 'Chuo ', 'Cui ', 'Lu ', 'Qu ', 'Dang ', 'Qiu ', 'Zi ', 'Ti ', 'Qu ', 'Chi ', 'Huang ', 'Qiao ', 'Qiao ', 'Yao ', 'Zao ', 'Ti ', '[?] ', 'Zan ', 'Zan ', 'Zu ', 'Pa ', 'Bao ', 'Ku ', 'Ke ', 'Dun ', 'Jue ', 'Fu ', 'Chen ', 'Jian ', 'Fang ', 'Zhi ', 'Sa ', 'Yue ', 'Pa ', 'Qi ', 'Yue ', 'Qiang ', 'Tuo ', 'Tai ', 'Yi ', 'Nian ', 'Ling ', 'Mei ', 'Ba ', 'Die ', 'Ku ', 'Tuo ', 'Jia ', 'Ci ', 'Pao ', 'Qia ', 'Zhu ', 'Ju ', 'Die ', 'Zhi ', 'Fu ', 'Pan ', 'Ju ', 'Shan ', 'Bo ', 'Ni ', 'Ju ', 'Li ', 'Gen ', 'Yi ', 'Ji ', 'Dai ', 'Xian ', 'Jiao ', 'Duo ', 'Zhu ', 'Zhuan ', 'Kua ', 'Zhuai ', 'Gui ', 'Qiong ', 'Kui ', 'Xiang ', 'Chi ', 'Lu ', 'Beng ', 'Zhi ', 'Jia ', 'Tiao ', 'Cai ', 'Jian ', 'Ta ', 'Qiao ', 'Bi ', 'Xian ', 'Duo ', 'Ji ', 'Ju ', 'Ji ', 'Shu ', 'Tu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x08e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x08e.php new file mode 100644 index 000000000..be82e7953 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x08e.php @@ -0,0 +1 @@ +<?php return ['Chu ', 'Jing ', 'Nie ', 'Xiao ', 'Bo ', 'Chi ', 'Qun ', 'Mou ', 'Shu ', 'Lang ', 'Yong ', 'Jiao ', 'Chou ', 'Qiao ', '[?] ', 'Ta ', 'Jian ', 'Qi ', 'Wo ', 'Wei ', 'Zhuo ', 'Jie ', 'Ji ', 'Nie ', 'Ju ', 'Ju ', 'Lun ', 'Lu ', 'Leng ', 'Huai ', 'Ju ', 'Chi ', 'Wan ', 'Quan ', 'Ti ', 'Bo ', 'Zu ', 'Qie ', 'Ji ', 'Cu ', 'Zong ', 'Cai ', 'Zong ', 'Peng ', 'Zhi ', 'Zheng ', 'Dian ', 'Zhi ', 'Yu ', 'Duo ', 'Dun ', 'Chun ', 'Yong ', 'Zhong ', 'Di ', 'Zhe ', 'Chen ', 'Chuai ', 'Jian ', 'Gua ', 'Tang ', 'Ju ', 'Fu ', 'Zu ', 'Die ', 'Pian ', 'Rou ', 'Nuo ', 'Ti ', 'Cha ', 'Tui ', 'Jian ', 'Dao ', 'Cuo ', 'Xi ', 'Ta ', 'Qiang ', 'Zhan ', 'Dian ', 'Ti ', 'Ji ', 'Nie ', 'Man ', 'Liu ', 'Zhan ', 'Bi ', 'Chong ', 'Lu ', 'Liao ', 'Cu ', 'Tang ', 'Dai ', 'Suo ', 'Xi ', 'Kui ', 'Ji ', 'Zhi ', 'Qiang ', 'Di ', 'Man ', 'Zong ', 'Lian ', 'Beng ', 'Zao ', 'Nian ', 'Bie ', 'Tui ', 'Ju ', 'Deng ', 'Ceng ', 'Xian ', 'Fan ', 'Chu ', 'Zhong ', 'Dun ', 'Bo ', 'Cu ', 'Zu ', 'Jue ', 'Jue ', 'Lin ', 'Ta ', 'Qiao ', 'Qiao ', 'Pu ', 'Liao ', 'Dun ', 'Cuan ', 'Kuang ', 'Zao ', 'Ta ', 'Bi ', 'Bi ', 'Zhu ', 'Ju ', 'Chu ', 'Qiao ', 'Dun ', 'Chou ', 'Ji ', 'Wu ', 'Yue ', 'Nian ', 'Lin ', 'Lie ', 'Zhi ', 'Li ', 'Zhi ', 'Chan ', 'Chu ', 'Duan ', 'Wei ', 'Long ', 'Lin ', 'Xian ', 'Wei ', 'Zuan ', 'Lan ', 'Xie ', 'Rang ', 'Xie ', 'Nie ', 'Ta ', 'Qu ', 'Jie ', 'Cuan ', 'Zuan ', 'Xi ', 'Kui ', 'Jue ', 'Lin ', 'Shen ', 'Gong ', 'Dan ', 'Segare ', 'Qu ', 'Ti ', 'Duo ', 'Duo ', 'Gong ', 'Lang ', 'Nerau ', 'Luo ', 'Ai ', 'Ji ', 'Ju ', 'Tang ', 'Utsuke ', '[?] ', 'Yan ', 'Shitsuke ', 'Kang ', 'Qu ', 'Lou ', 'Lao ', 'Tuo ', 'Zhi ', 'Yagate ', 'Ti ', 'Dao ', 'Yagate ', 'Yu ', 'Che ', 'Ya ', 'Gui ', 'Jun ', 'Wei ', 'Yue ', 'Xin ', 'Di ', 'Xuan ', 'Fan ', 'Ren ', 'Shan ', 'Qiang ', 'Shu ', 'Tun ', 'Chen ', 'Dai ', 'E ', 'Na ', 'Qi ', 'Mao ', 'Ruan ', 'Ren ', 'Fan ', 'Zhuan ', 'Hong ', 'Hu ', 'Qu ', 'Huang ', 'Di ', 'Ling ', 'Dai ', 'Ao ', 'Zhen ', 'Fan ', 'Kuang ', 'Ang ', 'Peng ', 'Bei ', 'Gu ', 'Ku ', 'Pao ', 'Zhu ', 'Rong ', 'E ', 'Ba ', 'Zhou ', 'Zhi ', 'Yao ', 'Ke ', 'Yi ', 'Qing ', 'Shi ', 'Ping ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x08f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x08f.php new file mode 100644 index 000000000..1587cab02 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x08f.php @@ -0,0 +1 @@ +<?php return ['Er ', 'Qiong ', 'Ju ', 'Jiao ', 'Guang ', 'Lu ', 'Kai ', 'Quan ', 'Zhou ', 'Zai ', 'Zhi ', 'She ', 'Liang ', 'Yu ', 'Shao ', 'You ', 'Huan ', 'Yun ', 'Zhe ', 'Wan ', 'Fu ', 'Qing ', 'Zhou ', 'Ni ', 'Ling ', 'Zhe ', 'Zhan ', 'Liang ', 'Zi ', 'Hui ', 'Wang ', 'Chuo ', 'Guo ', 'Kan ', 'Yi ', 'Peng ', 'Qian ', 'Gun ', 'Nian ', 'Pian ', 'Guan ', 'Bei ', 'Lun ', 'Pai ', 'Liang ', 'Ruan ', 'Rou ', 'Ji ', 'Yang ', 'Xian ', 'Chuan ', 'Cou ', 'Qun ', 'Ge ', 'You ', 'Hong ', 'Shu ', 'Fu ', 'Zi ', 'Fu ', 'Wen ', 'Ben ', 'Zhan ', 'Yu ', 'Wen ', 'Tao ', 'Gu ', 'Zhen ', 'Xia ', 'Yuan ', 'Lu ', 'Jiu ', 'Chao ', 'Zhuan ', 'Wei ', 'Hun ', 'Sori ', 'Che ', 'Jiao ', 'Zhan ', 'Pu ', 'Lao ', 'Fen ', 'Fan ', 'Lin ', 'Ge ', 'Se ', 'Kan ', 'Huan ', 'Yi ', 'Ji ', 'Dui ', 'Er ', 'Yu ', 'Xian ', 'Hong ', 'Lei ', 'Pei ', 'Li ', 'Li ', 'Lu ', 'Lin ', 'Che ', 'Ya ', 'Gui ', 'Xuan ', 'Di ', 'Ren ', 'Zhuan ', 'E ', 'Lun ', 'Ruan ', 'Hong ', 'Ku ', 'Ke ', 'Lu ', 'Zhou ', 'Zhi ', 'Yi ', 'Hu ', 'Zhen ', 'Li ', 'Yao ', 'Qing ', 'Shi ', 'Zai ', 'Zhi ', 'Jiao ', 'Zhou ', 'Quan ', 'Lu ', 'Jiao ', 'Zhe ', 'Fu ', 'Liang ', 'Nian ', 'Bei ', 'Hui ', 'Gun ', 'Wang ', 'Liang ', 'Chuo ', 'Zi ', 'Cou ', 'Fu ', 'Ji ', 'Wen ', 'Shu ', 'Pei ', 'Yuan ', 'Xia ', 'Zhan ', 'Lu ', 'Che ', 'Lin ', 'Xin ', 'Gu ', 'Ci ', 'Ci ', 'Pi ', 'Zui ', 'Bian ', 'La ', 'La ', 'Ci ', 'Xue ', 'Ban ', 'Bian ', 'Bian ', 'Bian ', '[?] ', 'Bian ', 'Ban ', 'Ci ', 'Bian ', 'Bian ', 'Chen ', 'Ru ', 'Nong ', 'Nong ', 'Zhen ', 'Chuo ', 'Chuo ', 'Suberu ', 'Reng ', 'Bian ', 'Bian ', 'Sip ', 'Ip ', 'Liao ', 'Da ', 'Chan ', 'Gan ', 'Qian ', 'Yu ', 'Yu ', 'Qi ', 'Xun ', 'Yi ', 'Guo ', 'Mai ', 'Qi ', 'Za ', 'Wang ', 'Jia ', 'Zhun ', 'Ying ', 'Ti ', 'Yun ', 'Jin ', 'Hang ', 'Ya ', 'Fan ', 'Wu ', 'Da ', 'E ', 'Huan ', 'Zhe ', 'Totemo ', 'Jin ', 'Yuan ', 'Wei ', 'Lian ', 'Chi ', 'Che ', 'Ni ', 'Tiao ', 'Zhi ', 'Yi ', 'Jiong ', 'Jia ', 'Chen ', 'Dai ', 'Er ', 'Di ', 'Po ', 'Wang ', 'Die ', 'Ze ', 'Tao ', 'Shu ', 'Tuo ', 'Kep ', 'Jing ', 'Hui ', 'Tong ', 'You ', 'Mi ', 'Beng ', 'Ji ', 'Nai ', 'Yi ', 'Jie ', 'Zhui ', 'Lie ', 'Xun ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x090.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x090.php new file mode 100644 index 000000000..88735d01f --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x090.php @@ -0,0 +1 @@ +<?php return ['Tui ', 'Song ', 'Gua ', 'Tao ', 'Pang ', 'Hou ', 'Ni ', 'Dun ', 'Jiong ', 'Xuan ', 'Xun ', 'Bu ', 'You ', 'Xiao ', 'Qiu ', 'Tou ', 'Zhu ', 'Qiu ', 'Di ', 'Di ', 'Tu ', 'Jing ', 'Ti ', 'Dou ', 'Yi ', 'Zhe ', 'Tong ', 'Guang ', 'Wu ', 'Shi ', 'Cheng ', 'Su ', 'Zao ', 'Qun ', 'Feng ', 'Lian ', 'Suo ', 'Hui ', 'Li ', 'Sako ', 'Lai ', 'Ben ', 'Cuo ', 'Jue ', 'Beng ', 'Huan ', 'Dai ', 'Lu ', 'You ', 'Zhou ', 'Jin ', 'Yu ', 'Chuo ', 'Kui ', 'Wei ', 'Ti ', 'Yi ', 'Da ', 'Yuan ', 'Luo ', 'Bi ', 'Nuo ', 'Yu ', 'Dang ', 'Sui ', 'Dun ', 'Sui ', 'Yan ', 'Chuan ', 'Chi ', 'Ti ', 'Yu ', 'Shi ', 'Zhen ', 'You ', 'Yun ', 'E ', 'Bian ', 'Guo ', 'E ', 'Xia ', 'Huang ', 'Qiu ', 'Dao ', 'Da ', 'Wei ', 'Appare ', 'Yi ', 'Gou ', 'Yao ', 'Chu ', 'Liu ', 'Xun ', 'Ta ', 'Di ', 'Chi ', 'Yuan ', 'Su ', 'Ta ', 'Qian ', '[?] ', 'Yao ', 'Guan ', 'Zhang ', 'Ao ', 'Shi ', 'Ce ', 'Chi ', 'Su ', 'Zao ', 'Zhe ', 'Dun ', 'Di ', 'Lou ', 'Chi ', 'Cuo ', 'Lin ', 'Zun ', 'Rao ', 'Qian ', 'Xuan ', 'Yu ', 'Yi ', 'Wu ', 'Liao ', 'Ju ', 'Shi ', 'Bi ', 'Yao ', 'Mai ', 'Xie ', 'Sui ', 'Huan ', 'Zhan ', 'Teng ', 'Er ', 'Miao ', 'Bian ', 'Bian ', 'La ', 'Li ', 'Yuan ', 'Yao ', 'Luo ', 'Li ', 'Yi ', 'Ting ', 'Deng ', 'Qi ', 'Yong ', 'Shan ', 'Han ', 'Yu ', 'Mang ', 'Ru ', 'Qiong ', '[?] ', 'Kuang ', 'Fu ', 'Kang ', 'Bin ', 'Fang ', 'Xing ', 'Na ', 'Xin ', 'Shen ', 'Bang ', 'Yuan ', 'Cun ', 'Huo ', 'Xie ', 'Bang ', 'Wu ', 'Ju ', 'You ', 'Han ', 'Tai ', 'Qiu ', 'Bi ', 'Pei ', 'Bing ', 'Shao ', 'Bei ', 'Wa ', 'Di ', 'Zou ', 'Ye ', 'Lin ', 'Kuang ', 'Gui ', 'Zhu ', 'Shi ', 'Ku ', 'Yu ', 'Gai ', 'Ge ', 'Xi ', 'Zhi ', 'Ji ', 'Xun ', 'Hou ', 'Xing ', 'Jiao ', 'Xi ', 'Gui ', 'Nuo ', 'Lang ', 'Jia ', 'Kuai ', 'Zheng ', 'Otoko ', 'Yun ', 'Yan ', 'Cheng ', 'Dou ', 'Chi ', 'Lu ', 'Fu ', 'Wu ', 'Fu ', 'Gao ', 'Hao ', 'Lang ', 'Jia ', 'Geng ', 'Jun ', 'Ying ', 'Bo ', 'Xi ', 'Bei ', 'Li ', 'Yun ', 'Bu ', 'Xiao ', 'Qi ', 'Pi ', 'Qing ', 'Guo ', 'Zhou ', 'Tan ', 'Zou ', 'Ping ', 'Lai ', 'Ni ', 'Chen ', 'You ', 'Bu ', 'Xiang ', 'Dan ', 'Ju ', 'Yong ', 'Qiao ', 'Yi ', 'Du ', 'Yan ', 'Mei ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x091.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x091.php new file mode 100644 index 000000000..372e972e3 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x091.php @@ -0,0 +1 @@ +<?php return ['Ruo ', 'Bei ', 'E ', 'Yu ', 'Juan ', 'Yu ', 'Yun ', 'Hou ', 'Kui ', 'Xiang ', 'Xiang ', 'Sou ', 'Tang ', 'Ming ', 'Xi ', 'Ru ', 'Chu ', 'Zi ', 'Zou ', 'Ju ', 'Wu ', 'Xiang ', 'Yun ', 'Hao ', 'Yong ', 'Bi ', 'Mo ', 'Chao ', 'Fu ', 'Liao ', 'Yin ', 'Zhuan ', 'Hu ', 'Qiao ', 'Yan ', 'Zhang ', 'Fan ', 'Qiao ', 'Xu ', 'Deng ', 'Bi ', 'Xin ', 'Bi ', 'Ceng ', 'Wei ', 'Zheng ', 'Mao ', 'Shan ', 'Lin ', 'Po ', 'Dan ', 'Meng ', 'Ye ', 'Cao ', 'Kuai ', 'Feng ', 'Meng ', 'Zou ', 'Kuang ', 'Lian ', 'Zan ', 'Chan ', 'You ', 'Qi ', 'Yan ', 'Chan ', 'Zan ', 'Ling ', 'Huan ', 'Xi ', 'Feng ', 'Zan ', 'Li ', 'You ', 'Ding ', 'Qiu ', 'Zhuo ', 'Pei ', 'Zhou ', 'Yi ', 'Hang ', 'Yu ', 'Jiu ', 'Yan ', 'Zui ', 'Mao ', 'Dan ', 'Xu ', 'Tou ', 'Zhen ', 'Fen ', 'Sakenomoto ', '[?] ', 'Yun ', 'Tai ', 'Tian ', 'Qia ', 'Tuo ', 'Zuo ', 'Han ', 'Gu ', 'Su ', 'Po ', 'Chou ', 'Zai ', 'Ming ', 'Luo ', 'Chuo ', 'Chou ', 'You ', 'Tong ', 'Zhi ', 'Xian ', 'Jiang ', 'Cheng ', 'Yin ', 'Tu ', 'Xiao ', 'Mei ', 'Ku ', 'Suan ', 'Lei ', 'Pu ', 'Zui ', 'Hai ', 'Yan ', 'Xi ', 'Niang ', 'Wei ', 'Lu ', 'Lan ', 'Yan ', 'Tao ', 'Pei ', 'Zhan ', 'Chun ', 'Tan ', 'Zui ', 'Chuo ', 'Cu ', 'Kun ', 'Ti ', 'Mian ', 'Du ', 'Hu ', 'Xu ', 'Xing ', 'Tan ', 'Jiu ', 'Chun ', 'Yun ', 'Po ', 'Ke ', 'Sou ', 'Mi ', 'Quan ', 'Chou ', 'Cuo ', 'Yun ', 'Yong ', 'Ang ', 'Zha ', 'Hai ', 'Tang ', 'Jiang ', 'Piao ', 'Shan ', 'Yu ', 'Li ', 'Zao ', 'Lao ', 'Yi ', 'Jiang ', 'Pu ', 'Jiao ', 'Xi ', 'Tan ', 'Po ', 'Nong ', 'Yi ', 'Li ', 'Ju ', 'Jiao ', 'Yi ', 'Niang ', 'Ru ', 'Xun ', 'Chou ', 'Yan ', 'Ling ', 'Mi ', 'Mi ', 'Niang ', 'Xin ', 'Jiao ', 'Xi ', 'Mi ', 'Yan ', 'Bian ', 'Cai ', 'Shi ', 'You ', 'Shi ', 'Shi ', 'Li ', 'Zhong ', 'Ye ', 'Liang ', 'Li ', 'Jin ', 'Jin ', 'Qiu ', 'Yi ', 'Diao ', 'Dao ', 'Zhao ', 'Ding ', 'Po ', 'Qiu ', 'He ', 'Fu ', 'Zhen ', 'Zhi ', 'Ba ', 'Luan ', 'Fu ', 'Nai ', 'Diao ', 'Shan ', 'Qiao ', 'Kou ', 'Chuan ', 'Zi ', 'Fan ', 'Yu ', 'Hua ', 'Han ', 'Gong ', 'Qi ', 'Mang ', 'Ri ', 'Di ', 'Si ', 'Xi ', 'Yi ', 'Chai ', 'Shi ', 'Tu ', 'Xi ', 'Nu ', 'Qian ', 'Ishiyumi ', 'Jian ', 'Pi ', 'Ye ', 'Yin ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x092.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x092.php new file mode 100644 index 000000000..e9528f7a7 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x092.php @@ -0,0 +1 @@ +<?php return ['Ba ', 'Fang ', 'Chen ', 'Xing ', 'Tou ', 'Yue ', 'Yan ', 'Fu ', 'Pi ', 'Na ', 'Xin ', 'E ', 'Jue ', 'Dun ', 'Gou ', 'Yin ', 'Qian ', 'Ban ', 'Ji ', 'Ren ', 'Chao ', 'Niu ', 'Fen ', 'Yun ', 'Ji ', 'Qin ', 'Pi ', 'Guo ', 'Hong ', 'Yin ', 'Jun ', 'Shi ', 'Yi ', 'Zhong ', 'Nie ', 'Gai ', 'Ri ', 'Huo ', 'Tai ', 'Kang ', 'Habaki ', 'Irori ', 'Ngaak ', '[?] ', 'Duo ', 'Zi ', 'Ni ', 'Tu ', 'Shi ', 'Min ', 'Gu ', 'E ', 'Ling ', 'Bing ', 'Yi ', 'Gu ', 'Ba ', 'Pi ', 'Yu ', 'Si ', 'Zuo ', 'Bu ', 'You ', 'Dian ', 'Jia ', 'Zhen ', 'Shi ', 'Shi ', 'Tie ', 'Ju ', 'Zhan ', 'Shi ', 'She ', 'Xuan ', 'Zhao ', 'Bao ', 'He ', 'Bi ', 'Sheng ', 'Chu ', 'Shi ', 'Bo ', 'Zhu ', 'Chi ', 'Za ', 'Po ', 'Tong ', 'Qian ', 'Fu ', 'Zhai ', 'Liu ', 'Qian ', 'Fu ', 'Li ', 'Yue ', 'Pi ', 'Yang ', 'Ban ', 'Bo ', 'Jie ', 'Gou ', 'Shu ', 'Zheng ', 'Mu ', 'Ni ', 'Nie ', 'Di ', 'Jia ', 'Mu ', 'Dan ', 'Shen ', 'Yi ', 'Si ', 'Kuang ', 'Ka ', 'Bei ', 'Jian ', 'Tong ', 'Xing ', 'Hong ', 'Jiao ', 'Chi ', 'Er ', 'Ge ', 'Bing ', 'Shi ', 'Mou ', 'Jia ', 'Yin ', 'Jun ', 'Zhou ', 'Chong ', 'Shang ', 'Tong ', 'Mo ', 'Lei ', 'Ji ', 'Yu ', 'Xu ', 'Ren ', 'Zun ', 'Zhi ', 'Qiong ', 'Shan ', 'Chi ', 'Xian ', 'Xing ', 'Quan ', 'Pi ', 'Tie ', 'Zhu ', 'Hou ', 'Ming ', 'Kua ', 'Yao ', 'Xian ', 'Xian ', 'Xiu ', 'Jun ', 'Cha ', 'Lao ', 'Ji ', 'Pi ', 'Ru ', 'Mi ', 'Yi ', 'Yin ', 'Guang ', 'An ', 'Diou ', 'You ', 'Se ', 'Kao ', 'Qian ', 'Luan ', 'Kasugai ', 'Ai ', 'Diao ', 'Han ', 'Rui ', 'Shi ', 'Keng ', 'Qiu ', 'Xiao ', 'Zhe ', 'Xiu ', 'Zang ', 'Ti ', 'Cuo ', 'Gua ', 'Gong ', 'Zhong ', 'Dou ', 'Lu ', 'Mei ', 'Lang ', 'Wan ', 'Xin ', 'Yun ', 'Bei ', 'Wu ', 'Su ', 'Yu ', 'Chan ', 'Ting ', 'Bo ', 'Han ', 'Jia ', 'Hong ', 'Cuan ', 'Feng ', 'Chan ', 'Wan ', 'Zhi ', 'Si ', 'Xuan ', 'Wu ', 'Wu ', 'Tiao ', 'Gong ', 'Zhuo ', 'Lue ', 'Xing ', 'Qian ', 'Shen ', 'Han ', 'Lue ', 'Xie ', 'Chu ', 'Zheng ', 'Ju ', 'Xian ', 'Tie ', 'Mang ', 'Pu ', 'Li ', 'Pan ', 'Rui ', 'Cheng ', 'Gao ', 'Li ', 'Te ', 'Pyeng ', 'Zhu ', '[?] ', 'Tu ', 'Liu ', 'Zui ', 'Ju ', 'Chang ', 'Yuan ', 'Jian ', 'Gang ', 'Diao ', 'Tao ', 'Chang ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x093.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x093.php new file mode 100644 index 000000000..564a43f27 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x093.php @@ -0,0 +1 @@ +<?php return ['Lun ', 'Kua ', 'Ling ', 'Bei ', 'Lu ', 'Li ', 'Qiang ', 'Pou ', 'Juan ', 'Min ', 'Zui ', 'Peng ', 'An ', 'Pi ', 'Xian ', 'Ya ', 'Zhui ', 'Lei ', 'A ', 'Kong ', 'Ta ', 'Kun ', 'Du ', 'Wei ', 'Chui ', 'Zi ', 'Zheng ', 'Ben ', 'Nie ', 'Cong ', 'Qun ', 'Tan ', 'Ding ', 'Qi ', 'Qian ', 'Zhuo ', 'Qi ', 'Yu ', 'Jin ', 'Guan ', 'Mao ', 'Chang ', 'Tian ', 'Xi ', 'Lian ', 'Tao ', 'Gu ', 'Cuo ', 'Shu ', 'Zhen ', 'Lu ', 'Meng ', 'Lu ', 'Hua ', 'Biao ', 'Ga ', 'Lai ', 'Ken ', 'Kazari ', 'Bu ', 'Nai ', 'Wan ', 'Zan ', '[?] ', 'De ', 'Xian ', '[?] ', 'Huo ', 'Liang ', '[?] ', 'Men ', 'Kai ', 'Ying ', 'Di ', 'Lian ', 'Guo ', 'Xian ', 'Du ', 'Tu ', 'Wei ', 'Cong ', 'Fu ', 'Rou ', 'Ji ', 'E ', 'Rou ', 'Chen ', 'Ti ', 'Zha ', 'Hong ', 'Yang ', 'Duan ', 'Xia ', 'Yu ', 'Keng ', 'Xing ', 'Huang ', 'Wei ', 'Fu ', 'Zhao ', 'Cha ', 'Qie ', 'She ', 'Hong ', 'Kui ', 'Tian ', 'Mou ', 'Qiao ', 'Qiao ', 'Hou ', 'Tou ', 'Cong ', 'Huan ', 'Ye ', 'Min ', 'Jian ', 'Duan ', 'Jian ', 'Song ', 'Kui ', 'Hu ', 'Xuan ', 'Duo ', 'Jie ', 'Zhen ', 'Bian ', 'Zhong ', 'Zi ', 'Xiu ', 'Ye ', 'Mei ', 'Pai ', 'Ai ', 'Jie ', '[?] ', 'Mei ', 'Chuo ', 'Ta ', 'Bang ', 'Xia ', 'Lian ', 'Suo ', 'Xi ', 'Liu ', 'Zu ', 'Ye ', 'Nou ', 'Weng ', 'Rong ', 'Tang ', 'Suo ', 'Qiang ', 'Ge ', 'Shuo ', 'Chui ', 'Bo ', 'Pan ', 'Sa ', 'Bi ', 'Sang ', 'Gang ', 'Zi ', 'Wu ', 'Ying ', 'Huang ', 'Tiao ', 'Liu ', 'Kai ', 'Sun ', 'Sha ', 'Sou ', 'Wan ', 'Hao ', 'Zhen ', 'Zhen ', 'Luo ', 'Yi ', 'Yuan ', 'Tang ', 'Nie ', 'Xi ', 'Jia ', 'Ge ', 'Ma ', 'Juan ', 'Kasugai ', 'Habaki ', 'Suo ', '[?] ', '[?] ', '[?] ', 'Na ', 'Lu ', 'Suo ', 'Ou ', 'Zu ', 'Tuan ', 'Xiu ', 'Guan ', 'Xuan ', 'Lian ', 'Shou ', 'Ao ', 'Man ', 'Mo ', 'Luo ', 'Bi ', 'Wei ', 'Liu ', 'Di ', 'Qiao ', 'Cong ', 'Yi ', 'Lu ', 'Ao ', 'Keng ', 'Qiang ', 'Cui ', 'Qi ', 'Chang ', 'Tang ', 'Man ', 'Yong ', 'Chan ', 'Feng ', 'Jing ', 'Biao ', 'Shu ', 'Lou ', 'Xiu ', 'Cong ', 'Long ', 'Zan ', 'Jian ', 'Cao ', 'Li ', 'Xia ', 'Xi ', 'Kang ', '[?] ', 'Beng ', '[?] ', '[?] ', 'Zheng ', 'Lu ', 'Hua ', 'Ji ', 'Pu ', 'Hui ', 'Qiang ', 'Po ', 'Lin ', 'Suo ', 'Xiu ', 'San ', 'Cheng ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x094.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x094.php new file mode 100644 index 000000000..ee2bd6f79 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x094.php @@ -0,0 +1 @@ +<?php return ['Kui ', 'Si ', 'Liu ', 'Nao ', 'Heng ', 'Pie ', 'Sui ', 'Fan ', 'Qiao ', 'Quan ', 'Yang ', 'Tang ', 'Xiang ', 'Jue ', 'Jiao ', 'Zun ', 'Liao ', 'Jie ', 'Lao ', 'Dui ', 'Tan ', 'Zan ', 'Ji ', 'Jian ', 'Zhong ', 'Deng ', 'Ya ', 'Ying ', 'Dui ', 'Jue ', 'Nou ', 'Ti ', 'Pu ', 'Tie ', '[?] ', '[?] ', 'Ding ', 'Shan ', 'Kai ', 'Jian ', 'Fei ', 'Sui ', 'Lu ', 'Juan ', 'Hui ', 'Yu ', 'Lian ', 'Zhuo ', 'Qiao ', 'Qian ', 'Zhuo ', 'Lei ', 'Bi ', 'Tie ', 'Huan ', 'Ye ', 'Duo ', 'Guo ', 'Dang ', 'Ju ', 'Fen ', 'Da ', 'Bei ', 'Yi ', 'Ai ', 'Zong ', 'Xun ', 'Diao ', 'Zhu ', 'Heng ', 'Zhui ', 'Ji ', 'Nie ', 'Ta ', 'Huo ', 'Qing ', 'Bin ', 'Ying ', 'Kui ', 'Ning ', 'Xu ', 'Jian ', 'Jian ', 'Yari ', 'Cha ', 'Zhi ', 'Mie ', 'Li ', 'Lei ', 'Ji ', 'Zuan ', 'Kuang ', 'Shang ', 'Peng ', 'La ', 'Du ', 'Shuo ', 'Chuo ', 'Lu ', 'Biao ', 'Bao ', 'Lu ', '[?] ', '[?] ', 'Long ', 'E ', 'Lu ', 'Xin ', 'Jian ', 'Lan ', 'Bo ', 'Jian ', 'Yao ', 'Chan ', 'Xiang ', 'Jian ', 'Xi ', 'Guan ', 'Cang ', 'Nie ', 'Lei ', 'Cuan ', 'Qu ', 'Pan ', 'Luo ', 'Zuan ', 'Luan ', 'Zao ', 'Nie ', 'Jue ', 'Tang ', 'Shu ', 'Lan ', 'Jin ', 'Qiu ', 'Yi ', 'Zhen ', 'Ding ', 'Zhao ', 'Po ', 'Diao ', 'Tu ', 'Qian ', 'Chuan ', 'Shan ', 'Ji ', 'Fan ', 'Diao ', 'Men ', 'Nu ', 'Xi ', 'Chai ', 'Xing ', 'Gai ', 'Bu ', 'Tai ', 'Ju ', 'Dun ', 'Chao ', 'Zhong ', 'Na ', 'Bei ', 'Gang ', 'Ban ', 'Qian ', 'Yao ', 'Qin ', 'Jun ', 'Wu ', 'Gou ', 'Kang ', 'Fang ', 'Huo ', 'Tou ', 'Niu ', 'Ba ', 'Yu ', 'Qian ', 'Zheng ', 'Qian ', 'Gu ', 'Bo ', 'E ', 'Po ', 'Bu ', 'Ba ', 'Yue ', 'Zuan ', 'Mu ', 'Dan ', 'Jia ', 'Dian ', 'You ', 'Tie ', 'Bo ', 'Ling ', 'Shuo ', 'Qian ', 'Liu ', 'Bao ', 'Shi ', 'Xuan ', 'She ', 'Bi ', 'Ni ', 'Pi ', 'Duo ', 'Xing ', 'Kao ', 'Lao ', 'Er ', 'Mang ', 'Ya ', 'You ', 'Cheng ', 'Jia ', 'Ye ', 'Nao ', 'Zhi ', 'Dang ', 'Tong ', 'Lu ', 'Diao ', 'Yin ', 'Kai ', 'Zha ', 'Zhu ', 'Xian ', 'Ting ', 'Diu ', 'Xian ', 'Hua ', 'Quan ', 'Sha ', 'Jia ', 'Yao ', 'Ge ', 'Ming ', 'Zheng ', 'Se ', 'Jiao ', 'Yi ', 'Chan ', 'Chong ', 'Tang ', 'An ', 'Yin ', 'Ru ', 'Zhu ', 'Lao ', 'Pu ', 'Wu ', 'Lai ', 'Te ', 'Lian ', 'Keng ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x095.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x095.php new file mode 100644 index 000000000..a14ab1760 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x095.php @@ -0,0 +1 @@ +<?php return ['Xiao ', 'Suo ', 'Li ', 'Zheng ', 'Chu ', 'Guo ', 'Gao ', 'Tie ', 'Xiu ', 'Cuo ', 'Lue ', 'Feng ', 'Xin ', 'Liu ', 'Kai ', 'Jian ', 'Rui ', 'Ti ', 'Lang ', 'Qian ', 'Ju ', 'A ', 'Qiang ', 'Duo ', 'Tian ', 'Cuo ', 'Mao ', 'Ben ', 'Qi ', 'De ', 'Kua ', 'Kun ', 'Chang ', 'Xi ', 'Gu ', 'Luo ', 'Chui ', 'Zhui ', 'Jin ', 'Zhi ', 'Xian ', 'Juan ', 'Huo ', 'Pou ', 'Tan ', 'Ding ', 'Jian ', 'Ju ', 'Meng ', 'Zi ', 'Qie ', 'Ying ', 'Kai ', 'Qiang ', 'Song ', 'E ', 'Cha ', 'Qiao ', 'Zhong ', 'Duan ', 'Sou ', 'Huang ', 'Huan ', 'Ai ', 'Du ', 'Mei ', 'Lou ', 'Zi ', 'Fei ', 'Mei ', 'Mo ', 'Zhen ', 'Bo ', 'Ge ', 'Nie ', 'Tang ', 'Juan ', 'Nie ', 'Na ', 'Liu ', 'Hao ', 'Bang ', 'Yi ', 'Jia ', 'Bin ', 'Rong ', 'Biao ', 'Tang ', 'Man ', 'Luo ', 'Beng ', 'Yong ', 'Jing ', 'Di ', 'Zu ', 'Xuan ', 'Liu ', 'Tan ', 'Jue ', 'Liao ', 'Pu ', 'Lu ', 'Dui ', 'Lan ', 'Pu ', 'Cuan ', 'Qiang ', 'Deng ', 'Huo ', 'Lei ', 'Huan ', 'Zhuo ', 'Lian ', 'Yi ', 'Cha ', 'Biao ', 'La ', 'Chan ', 'Xiang ', 'Chang ', 'Chang ', 'Jiu ', 'Ao ', 'Die ', 'Qu ', 'Liao ', 'Mi ', 'Chang ', 'Men ', 'Ma ', 'Shuan ', 'Shan ', 'Huo ', 'Men ', 'Yan ', 'Bi ', 'Han ', 'Bi ', 'San ', 'Kai ', 'Kang ', 'Beng ', 'Hong ', 'Run ', 'San ', 'Xian ', 'Xian ', 'Jian ', 'Min ', 'Xia ', 'Yuru ', 'Dou ', 'Zha ', 'Nao ', 'Jian ', 'Peng ', 'Xia ', 'Ling ', 'Bian ', 'Bi ', 'Run ', 'He ', 'Guan ', 'Ge ', 'Ge ', 'Fa ', 'Chu ', 'Hong ', 'Gui ', 'Min ', 'Se ', 'Kun ', 'Lang ', 'Lu ', 'Ting ', 'Sha ', 'Ju ', 'Yue ', 'Yue ', 'Chan ', 'Qu ', 'Lin ', 'Chang ', 'Shai ', 'Kun ', 'Yan ', 'Min ', 'Yan ', 'E ', 'Hun ', 'Yu ', 'Wen ', 'Xiang ', 'Bao ', 'Xiang ', 'Qu ', 'Yao ', 'Wen ', 'Ban ', 'An ', 'Wei ', 'Yin ', 'Kuo ', 'Que ', 'Lan ', 'Du ', '[?] ', 'Phwung ', 'Tian ', 'Nie ', 'Ta ', 'Kai ', 'He ', 'Que ', 'Chuang ', 'Guan ', 'Dou ', 'Qi ', 'Kui ', 'Tang ', 'Guan ', 'Piao ', 'Kan ', 'Xi ', 'Hui ', 'Chan ', 'Pi ', 'Dang ', 'Huan ', 'Ta ', 'Wen ', '[?] ', 'Men ', 'Shuan ', 'Shan ', 'Yan ', 'Han ', 'Bi ', 'Wen ', 'Chuang ', 'Run ', 'Wei ', 'Xian ', 'Hong ', 'Jian ', 'Min ', 'Kang ', 'Men ', 'Zha ', 'Nao ', 'Gui ', 'Wen ', 'Ta ', 'Min ', 'Lu ', 'Kai ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x096.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x096.php new file mode 100644 index 000000000..43f58e756 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x096.php @@ -0,0 +1 @@ +<?php return ['Fa ', 'Ge ', 'He ', 'Kun ', 'Jiu ', 'Yue ', 'Lang ', 'Du ', 'Yu ', 'Yan ', 'Chang ', 'Xi ', 'Wen ', 'Hun ', 'Yan ', 'E ', 'Chan ', 'Lan ', 'Qu ', 'Hui ', 'Kuo ', 'Que ', 'Ge ', 'Tian ', 'Ta ', 'Que ', 'Kan ', 'Huan ', 'Fu ', 'Fu ', 'Le ', 'Dui ', 'Xin ', 'Qian ', 'Wu ', 'Yi ', 'Tuo ', 'Yin ', 'Yang ', 'Dou ', 'E ', 'Sheng ', 'Ban ', 'Pei ', 'Keng ', 'Yun ', 'Ruan ', 'Zhi ', 'Pi ', 'Jing ', 'Fang ', 'Yang ', 'Yin ', 'Zhen ', 'Jie ', 'Cheng ', 'E ', 'Qu ', 'Di ', 'Zu ', 'Zuo ', 'Dian ', 'Ling ', 'A ', 'Tuo ', 'Tuo ', 'Po ', 'Bing ', 'Fu ', 'Ji ', 'Lu ', 'Long ', 'Chen ', 'Xing ', 'Duo ', 'Lou ', 'Mo ', 'Jiang ', 'Shu ', 'Duo ', 'Xian ', 'Er ', 'Gui ', 'Yu ', 'Gai ', 'Shan ', 'Xun ', 'Qiao ', 'Xing ', 'Chun ', 'Fu ', 'Bi ', 'Xia ', 'Shan ', 'Sheng ', 'Zhi ', 'Pu ', 'Dou ', 'Yuan ', 'Zhen ', 'Chu ', 'Xian ', 'Tou ', 'Nie ', 'Yun ', 'Xian ', 'Pei ', 'Pei ', 'Zou ', 'Yi ', 'Dui ', 'Lun ', 'Yin ', 'Ju ', 'Chui ', 'Chen ', 'Pi ', 'Ling ', 'Tao ', 'Xian ', 'Lu ', 'Sheng ', 'Xian ', 'Yin ', 'Zhu ', 'Yang ', 'Reng ', 'Shan ', 'Chong ', 'Yan ', 'Yin ', 'Yu ', 'Ti ', 'Yu ', 'Long ', 'Wei ', 'Wei ', 'Nie ', 'Dui ', 'Sui ', 'An ', 'Huang ', 'Jie ', 'Sui ', 'Yin ', 'Gai ', 'Yan ', 'Hui ', 'Ge ', 'Yun ', 'Wu ', 'Wei ', 'Ai ', 'Xi ', 'Tang ', 'Ji ', 'Zhang ', 'Dao ', 'Ao ', 'Xi ', 'Yin ', '[?] ', 'Rao ', 'Lin ', 'Tui ', 'Deng ', 'Pi ', 'Sui ', 'Sui ', 'Yu ', 'Xian ', 'Fen ', 'Ni ', 'Er ', 'Ji ', 'Dao ', 'Xi ', 'Yin ', 'E ', 'Hui ', 'Long ', 'Xi ', 'Li ', 'Li ', 'Li ', 'Zhui ', 'He ', 'Zhi ', 'Zhun ', 'Jun ', 'Nan ', 'Yi ', 'Que ', 'Yan ', 'Qian ', 'Ya ', 'Xiong ', 'Ya ', 'Ji ', 'Gu ', 'Huan ', 'Zhi ', 'Gou ', 'Jun ', 'Ci ', 'Yong ', 'Ju ', 'Chu ', 'Hu ', 'Za ', 'Luo ', 'Yu ', 'Chou ', 'Diao ', 'Sui ', 'Han ', 'Huo ', 'Shuang ', 'Guan ', 'Chu ', 'Za ', 'Yong ', 'Ji ', 'Xi ', 'Chou ', 'Liu ', 'Li ', 'Nan ', 'Xue ', 'Za ', 'Ji ', 'Ji ', 'Yu ', 'Yu ', 'Xue ', 'Na ', 'Fou ', 'Se ', 'Mu ', 'Wen ', 'Fen ', 'Pang ', 'Yun ', 'Li ', 'Li ', 'Ang ', 'Ling ', 'Lei ', 'An ', 'Bao ', 'Meng ', 'Dian ', 'Dang ', 'Xing ', 'Wu ', 'Zhao ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x097.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x097.php new file mode 100644 index 000000000..8be6ac9fa --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x097.php @@ -0,0 +1 @@ +<?php return ['Xu ', 'Ji ', 'Mu ', 'Chen ', 'Xiao ', 'Zha ', 'Ting ', 'Zhen ', 'Pei ', 'Mei ', 'Ling ', 'Qi ', 'Chou ', 'Huo ', 'Sha ', 'Fei ', 'Weng ', 'Zhan ', 'Yin ', 'Ni ', 'Chou ', 'Tun ', 'Lin ', '[?] ', 'Dong ', 'Ying ', 'Wu ', 'Ling ', 'Shuang ', 'Ling ', 'Xia ', 'Hong ', 'Yin ', 'Mo ', 'Mai ', 'Yun ', 'Liu ', 'Meng ', 'Bin ', 'Wu ', 'Wei ', 'Huo ', 'Yin ', 'Xi ', 'Yi ', 'Ai ', 'Dan ', 'Deng ', 'Xian ', 'Yu ', 'Lu ', 'Long ', 'Dai ', 'Ji ', 'Pang ', 'Yang ', 'Ba ', 'Pi ', 'Wei ', '[?] ', 'Xi ', 'Ji ', 'Mai ', 'Meng ', 'Meng ', 'Lei ', 'Li ', 'Huo ', 'Ai ', 'Fei ', 'Dai ', 'Long ', 'Ling ', 'Ai ', 'Feng ', 'Li ', 'Bao ', '[?] ', 'He ', 'He ', 'Bing ', 'Qing ', 'Qing ', 'Jing ', 'Tian ', 'Zhen ', 'Jing ', 'Cheng ', 'Qing ', 'Jing ', 'Jing ', 'Dian ', 'Jing ', 'Tian ', 'Fei ', 'Fei ', 'Kao ', 'Mi ', 'Mian ', 'Mian ', 'Pao ', 'Ye ', 'Tian ', 'Hui ', 'Ye ', 'Ge ', 'Ding ', 'Cha ', 'Jian ', 'Ren ', 'Di ', 'Du ', 'Wu ', 'Ren ', 'Qin ', 'Jin ', 'Xue ', 'Niu ', 'Ba ', 'Yin ', 'Sa ', 'Na ', 'Mo ', 'Zu ', 'Da ', 'Ban ', 'Yi ', 'Yao ', 'Tao ', 'Tuo ', 'Jia ', 'Hong ', 'Pao ', 'Yang ', 'Tomo ', 'Yin ', 'Jia ', 'Tao ', 'Ji ', 'Xie ', 'An ', 'An ', 'Hen ', 'Gong ', 'Kohaze ', 'Da ', 'Qiao ', 'Ting ', 'Wan ', 'Ying ', 'Sui ', 'Tiao ', 'Qiao ', 'Xuan ', 'Kong ', 'Beng ', 'Ta ', 'Zhang ', 'Bing ', 'Kuo ', 'Ju ', 'La ', 'Xie ', 'Rou ', 'Bang ', 'Yi ', 'Qiu ', 'Qiu ', 'He ', 'Xiao ', 'Mu ', 'Ju ', 'Jian ', 'Bian ', 'Di ', 'Jian ', 'On ', 'Tao ', 'Gou ', 'Ta ', 'Bei ', 'Xie ', 'Pan ', 'Ge ', 'Bi ', 'Kuo ', 'Tang ', 'Lou ', 'Gui ', 'Qiao ', 'Xue ', 'Ji ', 'Jian ', 'Jiang ', 'Chan ', 'Da ', 'Huo ', 'Xian ', 'Qian ', 'Du ', 'Wa ', 'Jian ', 'Lan ', 'Wei ', 'Ren ', 'Fu ', 'Mei ', 'Juan ', 'Ge ', 'Wei ', 'Qiao ', 'Han ', 'Chang ', '[?] ', 'Rou ', 'Xun ', 'She ', 'Wei ', 'Ge ', 'Bei ', 'Tao ', 'Gou ', 'Yun ', '[?] ', 'Bi ', 'Wei ', 'Hui ', 'Du ', 'Wa ', 'Du ', 'Wei ', 'Ren ', 'Fu ', 'Han ', 'Wei ', 'Yun ', 'Tao ', 'Jiu ', 'Jiu ', 'Xian ', 'Xie ', 'Xian ', 'Ji ', 'Yin ', 'Za ', 'Yun ', 'Shao ', 'Le ', 'Peng ', 'Heng ', 'Ying ', 'Yun ', 'Peng ', 'Yin ', 'Yin ', 'Xiang ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x098.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x098.php new file mode 100644 index 000000000..9320a7931 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x098.php @@ -0,0 +1 @@ +<?php return ['Hu ', 'Ye ', 'Ding ', 'Qing ', 'Pan ', 'Xiang ', 'Shun ', 'Han ', 'Xu ', 'Yi ', 'Xu ', 'Gu ', 'Song ', 'Kui ', 'Qi ', 'Hang ', 'Yu ', 'Wan ', 'Ban ', 'Dun ', 'Di ', 'Dan ', 'Pan ', 'Po ', 'Ling ', 'Ce ', 'Jing ', 'Lei ', 'He ', 'Qiao ', 'E ', 'E ', 'Wei ', 'Jie ', 'Gua ', 'Shen ', 'Yi ', 'Shen ', 'Hai ', 'Dui ', 'Pian ', 'Ping ', 'Lei ', 'Fu ', 'Jia ', 'Tou ', 'Hui ', 'Kui ', 'Jia ', 'Le ', 'Tian ', 'Cheng ', 'Ying ', 'Jun ', 'Hu ', 'Han ', 'Jing ', 'Tui ', 'Tui ', 'Pin ', 'Lai ', 'Tui ', 'Zi ', 'Zi ', 'Chui ', 'Ding ', 'Lai ', 'Yan ', 'Han ', 'Jian ', 'Ke ', 'Cui ', 'Jiong ', 'Qin ', 'Yi ', 'Sai ', 'Ti ', 'E ', 'E ', 'Yan ', 'Hun ', 'Kan ', 'Yong ', 'Zhuan ', 'Yan ', 'Xian ', 'Xin ', 'Yi ', 'Yuan ', 'Sang ', 'Dian ', 'Dian ', 'Jiang ', 'Ku ', 'Lei ', 'Liao ', 'Piao ', 'Yi ', 'Man ', 'Qi ', 'Rao ', 'Hao ', 'Qiao ', 'Gu ', 'Xun ', 'Qian ', 'Hui ', 'Zhan ', 'Ru ', 'Hong ', 'Bin ', 'Xian ', 'Pin ', 'Lu ', 'Lan ', 'Nie ', 'Quan ', 'Ye ', 'Ding ', 'Qing ', 'Han ', 'Xiang ', 'Shun ', 'Xu ', 'Xu ', 'Wan ', 'Gu ', 'Dun ', 'Qi ', 'Ban ', 'Song ', 'Hang ', 'Yu ', 'Lu ', 'Ling ', 'Po ', 'Jing ', 'Jie ', 'Jia ', 'Tian ', 'Han ', 'Ying ', 'Jiong ', 'Hai ', 'Yi ', 'Pin ', 'Hui ', 'Tui ', 'Han ', 'Ying ', 'Ying ', 'Ke ', 'Ti ', 'Yong ', 'E ', 'Zhuan ', 'Yan ', 'E ', 'Nie ', 'Man ', 'Dian ', 'Sang ', 'Hao ', 'Lei ', 'Zhan ', 'Ru ', 'Pin ', 'Quan ', 'Feng ', 'Biao ', 'Oroshi ', 'Fu ', 'Xia ', 'Zhan ', 'Biao ', 'Sa ', 'Ba ', 'Tai ', 'Lie ', 'Gua ', 'Xuan ', 'Shao ', 'Ju ', 'Bi ', 'Si ', 'Wei ', 'Yang ', 'Yao ', 'Sou ', 'Kai ', 'Sao ', 'Fan ', 'Liu ', 'Xi ', 'Liao ', 'Piao ', 'Piao ', 'Liu ', 'Biao ', 'Biao ', 'Biao ', 'Liao ', '[?] ', 'Se ', 'Feng ', 'Biao ', 'Feng ', 'Yang ', 'Zhan ', 'Biao ', 'Sa ', 'Ju ', 'Si ', 'Sou ', 'Yao ', 'Liu ', 'Piao ', 'Biao ', 'Biao ', 'Fei ', 'Fan ', 'Fei ', 'Fei ', 'Shi ', 'Shi ', 'Can ', 'Ji ', 'Ding ', 'Si ', 'Tuo ', 'Zhan ', 'Sun ', 'Xiang ', 'Tun ', 'Ren ', 'Yu ', 'Juan ', 'Chi ', 'Yin ', 'Fan ', 'Fan ', 'Sun ', 'Yin ', 'Zhu ', 'Yi ', 'Zhai ', 'Bi ', 'Jie ', 'Tao ', 'Liu ', 'Ci ', 'Tie ', 'Si ', 'Bao ', 'Shi ', 'Duo ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x099.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x099.php new file mode 100644 index 000000000..2ce5f713f --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x099.php @@ -0,0 +1 @@ +<?php return ['Hai ', 'Ren ', 'Tian ', 'Jiao ', 'Jia ', 'Bing ', 'Yao ', 'Tong ', 'Ci ', 'Xiang ', 'Yang ', 'Yang ', 'Er ', 'Yan ', 'Le ', 'Yi ', 'Can ', 'Bo ', 'Nei ', 'E ', 'Bu ', 'Jun ', 'Dou ', 'Su ', 'Yu ', 'Shi ', 'Yao ', 'Hun ', 'Guo ', 'Shi ', 'Jian ', 'Zhui ', 'Bing ', 'Xian ', 'Bu ', 'Ye ', 'Tan ', 'Fei ', 'Zhang ', 'Wei ', 'Guan ', 'E ', 'Nuan ', 'Hun ', 'Hu ', 'Huang ', 'Tie ', 'Hui ', 'Jian ', 'Hou ', 'He ', 'Xing ', 'Fen ', 'Wei ', 'Gu ', 'Cha ', 'Song ', 'Tang ', 'Bo ', 'Gao ', 'Xi ', 'Kui ', 'Liu ', 'Sou ', 'Tao ', 'Ye ', 'Yun ', 'Mo ', 'Tang ', 'Man ', 'Bi ', 'Yu ', 'Xiu ', 'Jin ', 'San ', 'Kui ', 'Zhuan ', 'Shan ', 'Chi ', 'Dan ', 'Yi ', 'Ji ', 'Rao ', 'Cheng ', 'Yong ', 'Tao ', 'Hui ', 'Xiang ', 'Zhan ', 'Fen ', 'Hai ', 'Meng ', 'Yan ', 'Mo ', 'Chan ', 'Xiang ', 'Luo ', 'Zuan ', 'Nang ', 'Shi ', 'Ding ', 'Ji ', 'Tuo ', 'Xing ', 'Tun ', 'Xi ', 'Ren ', 'Yu ', 'Chi ', 'Fan ', 'Yin ', 'Jian ', 'Shi ', 'Bao ', 'Si ', 'Duo ', 'Yi ', 'Er ', 'Rao ', 'Xiang ', 'Jia ', 'Le ', 'Jiao ', 'Yi ', 'Bing ', 'Bo ', 'Dou ', 'E ', 'Yu ', 'Nei ', 'Jun ', 'Guo ', 'Hun ', 'Xian ', 'Guan ', 'Cha ', 'Kui ', 'Gu ', 'Sou ', 'Chan ', 'Ye ', 'Mo ', 'Bo ', 'Liu ', 'Xiu ', 'Jin ', 'Man ', 'San ', 'Zhuan ', 'Nang ', 'Shou ', 'Kui ', 'Guo ', 'Xiang ', 'Fen ', 'Ba ', 'Ni ', 'Bi ', 'Bo ', 'Tu ', 'Han ', 'Fei ', 'Jian ', 'An ', 'Ai ', 'Fu ', 'Xian ', 'Wen ', 'Xin ', 'Fen ', 'Bin ', 'Xing ', 'Ma ', 'Yu ', 'Feng ', 'Han ', 'Di ', 'Tuo ', 'Tuo ', 'Chi ', 'Xun ', 'Zhu ', 'Zhi ', 'Pei ', 'Xin ', 'Ri ', 'Sa ', 'Yin ', 'Wen ', 'Zhi ', 'Dan ', 'Lu ', 'You ', 'Bo ', 'Bao ', 'Kuai ', 'Tuo ', 'Yi ', 'Qu ', '[?] ', 'Qu ', 'Jiong ', 'Bo ', 'Zhao ', 'Yuan ', 'Peng ', 'Zhou ', 'Ju ', 'Zhu ', 'Nu ', 'Ju ', 'Pi ', 'Zang ', 'Jia ', 'Ling ', 'Zhen ', 'Tai ', 'Fu ', 'Yang ', 'Shi ', 'Bi ', 'Tuo ', 'Tuo ', 'Si ', 'Liu ', 'Ma ', 'Pian ', 'Tao ', 'Zhi ', 'Rong ', 'Teng ', 'Dong ', 'Xun ', 'Quan ', 'Shen ', 'Jiong ', 'Er ', 'Hai ', 'Bo ', 'Zhu ', 'Yin ', 'Luo ', 'Shuu ', 'Dan ', 'Xie ', 'Liu ', 'Ju ', 'Song ', 'Qin ', 'Mang ', 'Liang ', 'Han ', 'Tu ', 'Xuan ', 'Tui ', 'Jun ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x09a.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x09a.php new file mode 100644 index 000000000..08160b8b7 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x09a.php @@ -0,0 +1 @@ +<?php return ['E ', 'Cheng ', 'Xin ', 'Ai ', 'Lu ', 'Zhui ', 'Zhou ', 'She ', 'Pian ', 'Kun ', 'Tao ', 'Lai ', 'Zong ', 'Ke ', 'Qi ', 'Qi ', 'Yan ', 'Fei ', 'Sao ', 'Yan ', 'Jie ', 'Yao ', 'Wu ', 'Pian ', 'Cong ', 'Pian ', 'Qian ', 'Fei ', 'Huang ', 'Jian ', 'Huo ', 'Yu ', 'Ti ', 'Quan ', 'Xia ', 'Zong ', 'Kui ', 'Rou ', 'Si ', 'Gua ', 'Tuo ', 'Kui ', 'Sou ', 'Qian ', 'Cheng ', 'Zhi ', 'Liu ', 'Pang ', 'Teng ', 'Xi ', 'Cao ', 'Du ', 'Yan ', 'Yuan ', 'Zou ', 'Sao ', 'Shan ', 'Li ', 'Zhi ', 'Shuang ', 'Lu ', 'Xi ', 'Luo ', 'Zhang ', 'Mo ', 'Ao ', 'Can ', 'Piao ', 'Cong ', 'Qu ', 'Bi ', 'Zhi ', 'Yu ', 'Xu ', 'Hua ', 'Bo ', 'Su ', 'Xiao ', 'Lin ', 'Chan ', 'Dun ', 'Liu ', 'Tuo ', 'Zeng ', 'Tan ', 'Jiao ', 'Tie ', 'Yan ', 'Luo ', 'Zhan ', 'Jing ', 'Yi ', 'Ye ', 'Tuo ', 'Bin ', 'Zou ', 'Yan ', 'Peng ', 'Lu ', 'Teng ', 'Xiang ', 'Ji ', 'Shuang ', 'Ju ', 'Xi ', 'Huan ', 'Li ', 'Biao ', 'Ma ', 'Yu ', 'Tuo ', 'Xun ', 'Chi ', 'Qu ', 'Ri ', 'Bo ', 'Lu ', 'Zang ', 'Shi ', 'Si ', 'Fu ', 'Ju ', 'Zou ', 'Zhu ', 'Tuo ', 'Nu ', 'Jia ', 'Yi ', 'Tai ', 'Xiao ', 'Ma ', 'Yin ', 'Jiao ', 'Hua ', 'Luo ', 'Hai ', 'Pian ', 'Biao ', 'Li ', 'Cheng ', 'Yan ', 'Xin ', 'Qin ', 'Jun ', 'Qi ', 'Qi ', 'Ke ', 'Zhui ', 'Zong ', 'Su ', 'Can ', 'Pian ', 'Zhi ', 'Kui ', 'Sao ', 'Wu ', 'Ao ', 'Liu ', 'Qian ', 'Shan ', 'Piao ', 'Luo ', 'Cong ', 'Chan ', 'Zou ', 'Ji ', 'Shuang ', 'Xiang ', 'Gu ', 'Wei ', 'Wei ', 'Wei ', 'Yu ', 'Gan ', 'Yi ', 'Ang ', 'Tou ', 'Xie ', 'Bao ', 'Bi ', 'Chi ', 'Ti ', 'Di ', 'Ku ', 'Hai ', 'Qiao ', 'Gou ', 'Kua ', 'Ge ', 'Tui ', 'Geng ', 'Pian ', 'Bi ', 'Ke ', 'Ka ', 'Yu ', 'Sui ', 'Lou ', 'Bo ', 'Xiao ', 'Pang ', 'Bo ', 'Ci ', 'Kuan ', 'Bin ', 'Mo ', 'Liao ', 'Lou ', 'Nao ', 'Du ', 'Zang ', 'Sui ', 'Ti ', 'Bin ', 'Kuan ', 'Lu ', 'Gao ', 'Gao ', 'Qiao ', 'Kao ', 'Qiao ', 'Lao ', 'Zao ', 'Biao ', 'Kun ', 'Kun ', 'Ti ', 'Fang ', 'Xiu ', 'Ran ', 'Mao ', 'Dan ', 'Kun ', 'Bin ', 'Fa ', 'Tiao ', 'Peng ', 'Zi ', 'Fa ', 'Ran ', 'Ti ', 'Pao ', 'Pi ', 'Mao ', 'Fu ', 'Er ', 'Rong ', 'Qu ', 'Gong ', 'Xiu ', 'Gua ', 'Ji ', 'Peng ', 'Zhua ', 'Shao ', 'Sha ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x09b.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x09b.php new file mode 100644 index 000000000..1ce3769f1 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x09b.php @@ -0,0 +1 @@ +<?php return ['Ti ', 'Li ', 'Bin ', 'Zong ', 'Ti ', 'Peng ', 'Song ', 'Zheng ', 'Quan ', 'Zong ', 'Shun ', 'Jian ', 'Duo ', 'Hu ', 'La ', 'Jiu ', 'Qi ', 'Lian ', 'Zhen ', 'Bin ', 'Peng ', 'Mo ', 'San ', 'Man ', 'Man ', 'Seng ', 'Xu ', 'Lie ', 'Qian ', 'Qian ', 'Nong ', 'Huan ', 'Kuai ', 'Ning ', 'Bin ', 'Lie ', 'Rang ', 'Dou ', 'Dou ', 'Nao ', 'Hong ', 'Xi ', 'Dou ', 'Han ', 'Dou ', 'Dou ', 'Jiu ', 'Chang ', 'Yu ', 'Yu ', 'Li ', 'Juan ', 'Fu ', 'Qian ', 'Gui ', 'Zong ', 'Liu ', 'Gui ', 'Shang ', 'Yu ', 'Gui ', 'Mei ', 'Ji ', 'Qi ', 'Jie ', 'Kui ', 'Hun ', 'Ba ', 'Po ', 'Mei ', 'Xu ', 'Yan ', 'Xiao ', 'Liang ', 'Yu ', 'Tui ', 'Qi ', 'Wang ', 'Liang ', 'Wei ', 'Jian ', 'Chi ', 'Piao ', 'Bi ', 'Mo ', 'Ji ', 'Xu ', 'Chou ', 'Yan ', 'Zhan ', 'Yu ', 'Dao ', 'Ren ', 'Ji ', 'Eri ', 'Gong ', 'Tuo ', 'Diao ', 'Ji ', 'Xu ', 'E ', 'E ', 'Sha ', 'Hang ', 'Tun ', 'Mo ', 'Jie ', 'Shen ', 'Fan ', 'Yuan ', 'Bi ', 'Lu ', 'Wen ', 'Hu ', 'Lu ', 'Za ', 'Fang ', 'Fen ', 'Na ', 'You ', 'Namazu ', 'Todo ', 'He ', 'Xia ', 'Qu ', 'Han ', 'Pi ', 'Ling ', 'Tuo ', 'Bo ', 'Qiu ', 'Ping ', 'Fu ', 'Bi ', 'Ji ', 'Wei ', 'Ju ', 'Diao ', 'Bo ', 'You ', 'Gun ', 'Pi ', 'Nian ', 'Xing ', 'Tai ', 'Bao ', 'Fu ', 'Zha ', 'Ju ', 'Gu ', 'Kajika ', 'Tong ', '[?] ', 'Ta ', 'Jie ', 'Shu ', 'Hou ', 'Xiang ', 'Er ', 'An ', 'Wei ', 'Tiao ', 'Zhu ', 'Yin ', 'Lie ', 'Luo ', 'Tong ', 'Yi ', 'Qi ', 'Bing ', 'Wei ', 'Jiao ', 'Bu ', 'Gui ', 'Xian ', 'Ge ', 'Hui ', 'Bora ', 'Mate ', 'Kao ', 'Gori ', 'Duo ', 'Jun ', 'Ti ', 'Man ', 'Xiao ', 'Za ', 'Sha ', 'Qin ', 'Yu ', 'Nei ', 'Zhe ', 'Gun ', 'Geng ', 'Su ', 'Wu ', 'Qiu ', 'Ting ', 'Fu ', 'Wan ', 'You ', 'Li ', 'Sha ', 'Sha ', 'Gao ', 'Meng ', 'Ugui ', 'Asari ', 'Subashiri ', 'Kazunoko ', 'Yong ', 'Ni ', 'Zi ', 'Qi ', 'Qing ', 'Xiang ', 'Nei ', 'Chun ', 'Ji ', 'Diao ', 'Qie ', 'Gu ', 'Zhou ', 'Dong ', 'Lai ', 'Fei ', 'Ni ', 'Yi ', 'Kun ', 'Lu ', 'Jiu ', 'Chang ', 'Jing ', 'Lun ', 'Ling ', 'Zou ', 'Li ', 'Meng ', 'Zong ', 'Zhi ', 'Nian ', 'Shachi ', 'Dojou ', 'Sukesou ', 'Shi ', 'Shen ', 'Hun ', 'Shi ', 'Hou ', 'Xing ', 'Zhu ', 'La ', 'Zong ', 'Ji ', 'Bian ', 'Bian ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x09c.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x09c.php new file mode 100644 index 000000000..b5fcafc8f --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x09c.php @@ -0,0 +1 @@ +<?php return ['Huan ', 'Quan ', 'Ze ', 'Wei ', 'Wei ', 'Yu ', 'Qun ', 'Rou ', 'Die ', 'Huang ', 'Lian ', 'Yan ', 'Qiu ', 'Qiu ', 'Jian ', 'Bi ', 'E ', 'Yang ', 'Fu ', 'Sai ', 'Jian ', 'Xia ', 'Tuo ', 'Hu ', 'Muroaji ', 'Ruo ', 'Haraka ', 'Wen ', 'Jian ', 'Hao ', 'Wu ', 'Fang ', 'Sao ', 'Liu ', 'Ma ', 'Shi ', 'Shi ', 'Yin ', 'Z ', 'Teng ', 'Ta ', 'Yao ', 'Ge ', 'Rong ', 'Qian ', 'Qi ', 'Wen ', 'Ruo ', 'Hatahata ', 'Lian ', 'Ao ', 'Le ', 'Hui ', 'Min ', 'Ji ', 'Tiao ', 'Qu ', 'Jian ', 'Sao ', 'Man ', 'Xi ', 'Qiu ', 'Biao ', 'Ji ', 'Ji ', 'Zhu ', 'Jiang ', 'Qiu ', 'Zhuan ', 'Yong ', 'Zhang ', 'Kang ', 'Xue ', 'Bie ', 'Jue ', 'Qu ', 'Xiang ', 'Bo ', 'Jiao ', 'Xun ', 'Su ', 'Huang ', 'Zun ', 'Shan ', 'Shan ', 'Fan ', 'Jue ', 'Lin ', 'Xun ', 'Miao ', 'Xi ', 'Eso ', 'Kyou ', 'Fen ', 'Guan ', 'Hou ', 'Kuai ', 'Zei ', 'Sao ', 'Zhan ', 'Gan ', 'Gui ', 'Sheng ', 'Li ', 'Chang ', 'Hatahata ', 'Shiira ', 'Mutsu ', 'Ru ', 'Ji ', 'Xu ', 'Huo ', 'Shiira ', 'Li ', 'Lie ', 'Li ', 'Mie ', 'Zhen ', 'Xiang ', 'E ', 'Lu ', 'Guan ', 'Li ', 'Xian ', 'Yu ', 'Dao ', 'Ji ', 'You ', 'Tun ', 'Lu ', 'Fang ', 'Ba ', 'He ', 'Bo ', 'Ping ', 'Nian ', 'Lu ', 'You ', 'Zha ', 'Fu ', 'Bo ', 'Bao ', 'Hou ', 'Pi ', 'Tai ', 'Gui ', 'Jie ', 'Kao ', 'Wei ', 'Er ', 'Tong ', 'Ze ', 'Hou ', 'Kuai ', 'Ji ', 'Jiao ', 'Xian ', 'Za ', 'Xiang ', 'Xun ', 'Geng ', 'Li ', 'Lian ', 'Jian ', 'Li ', 'Shi ', 'Tiao ', 'Gun ', 'Sha ', 'Wan ', 'Jun ', 'Ji ', 'Yong ', 'Qing ', 'Ling ', 'Qi ', 'Zou ', 'Fei ', 'Kun ', 'Chang ', 'Gu ', 'Ni ', 'Nian ', 'Diao ', 'Jing ', 'Shen ', 'Shi ', 'Zi ', 'Fen ', 'Die ', 'Bi ', 'Chang ', 'Shi ', 'Wen ', 'Wei ', 'Sai ', 'E ', 'Qiu ', 'Fu ', 'Huang ', 'Quan ', 'Jiang ', 'Bian ', 'Sao ', 'Ao ', 'Qi ', 'Ta ', 'Yin ', 'Yao ', 'Fang ', 'Jian ', 'Le ', 'Biao ', 'Xue ', 'Bie ', 'Man ', 'Min ', 'Yong ', 'Wei ', 'Xi ', 'Jue ', 'Shan ', 'Lin ', 'Zun ', 'Huo ', 'Gan ', 'Li ', 'Zhan ', 'Guan ', 'Niao ', 'Yi ', 'Fu ', 'Li ', 'Jiu ', 'Bu ', 'Yan ', 'Fu ', 'Diao ', 'Ji ', 'Feng ', 'Nio ', 'Gan ', 'Shi ', 'Feng ', 'Ming ', 'Bao ', 'Yuan ', 'Zhi ', 'Hu ', 'Qin ', 'Fu ', 'Fen ', 'Wen ', 'Jian ', 'Shi ', 'Yu ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x09d.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x09d.php new file mode 100644 index 000000000..517da07cb --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x09d.php @@ -0,0 +1 @@ +<?php return ['Fou ', 'Yiao ', 'Jue ', 'Jue ', 'Pi ', 'Huan ', 'Zhen ', 'Bao ', 'Yan ', 'Ya ', 'Zheng ', 'Fang ', 'Feng ', 'Wen ', 'Ou ', 'Te ', 'Jia ', 'Nu ', 'Ling ', 'Mie ', 'Fu ', 'Tuo ', 'Wen ', 'Li ', 'Bian ', 'Zhi ', 'Ge ', 'Yuan ', 'Zi ', 'Qu ', 'Xiao ', 'Zhi ', 'Dan ', 'Ju ', 'You ', 'Gu ', 'Zhong ', 'Yu ', 'Yang ', 'Rong ', 'Ya ', 'Tie ', 'Yu ', 'Shigi ', 'Ying ', 'Zhui ', 'Wu ', 'Er ', 'Gua ', 'Ai ', 'Zhi ', 'Yan ', 'Heng ', 'Jiao ', 'Ji ', 'Lie ', 'Zhu ', 'Ren ', 'Yi ', 'Hong ', 'Luo ', 'Ru ', 'Mou ', 'Ge ', 'Ren ', 'Jiao ', 'Xiu ', 'Zhou ', 'Zhi ', 'Luo ', 'Chidori ', 'Toki ', 'Ten ', 'Luan ', 'Jia ', 'Ji ', 'Yu ', 'Huan ', 'Tuo ', 'Bu ', 'Wu ', 'Juan ', 'Yu ', 'Bo ', 'Xun ', 'Xun ', 'Bi ', 'Xi ', 'Jun ', 'Ju ', 'Tu ', 'Jing ', 'Ti ', 'E ', 'E ', 'Kuang ', 'Hu ', 'Wu ', 'Shen ', 'Lai ', 'Ikaruga ', 'Kakesu ', 'Lu ', 'Ping ', 'Shu ', 'Fu ', 'An ', 'Zhao ', 'Peng ', 'Qin ', 'Qian ', 'Bei ', 'Diao ', 'Lu ', 'Que ', 'Jian ', 'Ju ', 'Tu ', 'Ya ', 'Yuan ', 'Qi ', 'Li ', 'Ye ', 'Zhui ', 'Kong ', 'Zhui ', 'Kun ', 'Sheng ', 'Qi ', 'Jing ', 'Yi ', 'Yi ', 'Jing ', 'Zi ', 'Lai ', 'Dong ', 'Qi ', 'Chun ', 'Geng ', 'Ju ', 'Qu ', 'Isuka ', 'Kikuitadaki ', 'Ji ', 'Shu ', '[?] ', 'Chi ', 'Miao ', 'Rou ', 'An ', 'Qiu ', 'Ti ', 'Hu ', 'Ti ', 'E ', 'Jie ', 'Mao ', 'Fu ', 'Chun ', 'Tu ', 'Yan ', 'He ', 'Yuan ', 'Pian ', 'Yun ', 'Mei ', 'Hu ', 'Ying ', 'Dun ', 'Mu ', 'Ju ', 'Tsugumi ', 'Cang ', 'Fang ', 'Gu ', 'Ying ', 'Yuan ', 'Xuan ', 'Weng ', 'Shi ', 'He ', 'Chu ', 'Tang ', 'Xia ', 'Ruo ', 'Liu ', 'Ji ', 'Gu ', 'Jian ', 'Zhun ', 'Han ', 'Zi ', 'Zi ', 'Ni ', 'Yao ', 'Yan ', 'Ji ', 'Li ', 'Tian ', 'Kou ', 'Ti ', 'Ti ', 'Ni ', 'Tu ', 'Ma ', 'Jiao ', 'Gao ', 'Tian ', 'Chen ', 'Li ', 'Zhuan ', 'Zhe ', 'Ao ', 'Yao ', 'Yi ', 'Ou ', 'Chi ', 'Zhi ', 'Liao ', 'Rong ', 'Lou ', 'Bi ', 'Shuang ', 'Zhuo ', 'Yu ', 'Wu ', 'Jue ', 'Yin ', 'Quan ', 'Si ', 'Jiao ', 'Yi ', 'Hua ', 'Bi ', 'Ying ', 'Su ', 'Huang ', 'Fan ', 'Jiao ', 'Liao ', 'Yan ', 'Kao ', 'Jiu ', 'Xian ', 'Xian ', 'Tu ', 'Mai ', 'Zun ', 'Yu ', 'Ying ', 'Lu ', 'Tuan ', 'Xian ', 'Xue ', 'Yi ', 'Pi ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x09e.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x09e.php new file mode 100644 index 000000000..4301b06cd --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x09e.php @@ -0,0 +1 @@ +<?php return ['Shu ', 'Luo ', 'Qi ', 'Yi ', 'Ji ', 'Zhe ', 'Yu ', 'Zhan ', 'Ye ', 'Yang ', 'Pi ', 'Ning ', 'Huo ', 'Mi ', 'Ying ', 'Meng ', 'Di ', 'Yue ', 'Yu ', 'Lei ', 'Bao ', 'Lu ', 'He ', 'Long ', 'Shuang ', 'Yue ', 'Ying ', 'Guan ', 'Qu ', 'Li ', 'Luan ', 'Niao ', 'Jiu ', 'Ji ', 'Yuan ', 'Ming ', 'Shi ', 'Ou ', 'Ya ', 'Cang ', 'Bao ', 'Zhen ', 'Gu ', 'Dong ', 'Lu ', 'Ya ', 'Xiao ', 'Yang ', 'Ling ', 'Zhi ', 'Qu ', 'Yuan ', 'Xue ', 'Tuo ', 'Si ', 'Zhi ', 'Er ', 'Gua ', 'Xiu ', 'Heng ', 'Zhou ', 'Ge ', 'Luan ', 'Hong ', 'Wu ', 'Bo ', 'Li ', 'Juan ', 'Hu ', 'E ', 'Yu ', 'Xian ', 'Ti ', 'Wu ', 'Que ', 'Miao ', 'An ', 'Kun ', 'Bei ', 'Peng ', 'Qian ', 'Chun ', 'Geng ', 'Yuan ', 'Su ', 'Hu ', 'He ', 'E ', 'Gu ', 'Qiu ', 'Zi ', 'Mei ', 'Mu ', 'Ni ', 'Yao ', 'Weng ', 'Liu ', 'Ji ', 'Ni ', 'Jian ', 'He ', 'Yi ', 'Ying ', 'Zhe ', 'Liao ', 'Liao ', 'Jiao ', 'Jiu ', 'Yu ', 'Lu ', 'Xuan ', 'Zhan ', 'Ying ', 'Huo ', 'Meng ', 'Guan ', 'Shuang ', 'Lu ', 'Jin ', 'Ling ', 'Jian ', 'Xian ', 'Cuo ', 'Jian ', 'Jian ', 'Yan ', 'Cuo ', 'Lu ', 'You ', 'Cu ', 'Ji ', 'Biao ', 'Cu ', 'Biao ', 'Zhu ', 'Jun ', 'Zhu ', 'Jian ', 'Mi ', 'Mi ', 'Wu ', 'Liu ', 'Chen ', 'Jun ', 'Lin ', 'Ni ', 'Qi ', 'Lu ', 'Jiu ', 'Jun ', 'Jing ', 'Li ', 'Xiang ', 'Yan ', 'Jia ', 'Mi ', 'Li ', 'She ', 'Zhang ', 'Lin ', 'Jing ', 'Ji ', 'Ling ', 'Yan ', 'Cu ', 'Mai ', 'Mai ', 'Ge ', 'Chao ', 'Fu ', 'Mian ', 'Mian ', 'Fu ', 'Pao ', 'Qu ', 'Qu ', 'Mou ', 'Fu ', 'Xian ', 'Lai ', 'Qu ', 'Mian ', '[?] ', 'Feng ', 'Fu ', 'Qu ', 'Mian ', 'Ma ', 'Mo ', 'Mo ', 'Hui ', 'Ma ', 'Zou ', 'Nen ', 'Fen ', 'Huang ', 'Huang ', 'Jin ', 'Guang ', 'Tian ', 'Tou ', 'Heng ', 'Xi ', 'Kuang ', 'Heng ', 'Shu ', 'Li ', 'Nian ', 'Chi ', 'Hei ', 'Hei ', 'Yi ', 'Qian ', 'Dan ', 'Xi ', 'Tuan ', 'Mo ', 'Mo ', 'Qian ', 'Dai ', 'Chu ', 'You ', 'Dian ', 'Yi ', 'Xia ', 'Yan ', 'Qu ', 'Mei ', 'Yan ', 'Jing ', 'Yu ', 'Li ', 'Dang ', 'Du ', 'Can ', 'Yin ', 'An ', 'Yan ', 'Tan ', 'An ', 'Zhen ', 'Dai ', 'Can ', 'Yi ', 'Mei ', 'Dan ', 'Yan ', 'Du ', 'Lu ', 'Zhi ', 'Fen ', 'Fu ', 'Fu ', 'Min ', 'Min ', 'Yuan ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x09f.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x09f.php new file mode 100644 index 000000000..52ee6cf84 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x09f.php @@ -0,0 +1 @@ +<?php return ['Cu ', 'Qu ', 'Chao ', 'Wa ', 'Zhu ', 'Zhi ', 'Mang ', 'Ao ', 'Bie ', 'Tuo ', 'Bi ', 'Yuan ', 'Chao ', 'Tuo ', 'Ding ', 'Mi ', 'Nai ', 'Ding ', 'Zi ', 'Gu ', 'Gu ', 'Dong ', 'Fen ', 'Tao ', 'Yuan ', 'Pi ', 'Chang ', 'Gao ', 'Qi ', 'Yuan ', 'Tang ', 'Teng ', 'Shu ', 'Shu ', 'Fen ', 'Fei ', 'Wen ', 'Ba ', 'Diao ', 'Tuo ', 'Tong ', 'Qu ', 'Sheng ', 'Shi ', 'You ', 'Shi ', 'Ting ', 'Wu ', 'Nian ', 'Jing ', 'Hun ', 'Ju ', 'Yan ', 'Tu ', 'Ti ', 'Xi ', 'Xian ', 'Yan ', 'Lei ', 'Bi ', 'Yao ', 'Qiu ', 'Han ', 'Wu ', 'Wu ', 'Hou ', 'Xi ', 'Ge ', 'Zha ', 'Xiu ', 'Weng ', 'Zha ', 'Nong ', 'Nang ', 'Qi ', 'Zhai ', 'Ji ', 'Zi ', 'Ji ', 'Ji ', 'Qi ', 'Ji ', 'Chi ', 'Chen ', 'Chen ', 'He ', 'Ya ', 'Ken ', 'Xie ', 'Pao ', 'Cuo ', 'Shi ', 'Zi ', 'Chi ', 'Nian ', 'Ju ', 'Tiao ', 'Ling ', 'Ling ', 'Chu ', 'Quan ', 'Xie ', 'Ken ', 'Nie ', 'Jiu ', 'Yao ', 'Chuo ', 'Kun ', 'Yu ', 'Chu ', 'Yi ', 'Ni ', 'Cuo ', 'Zou ', 'Qu ', 'Nen ', 'Xian ', 'Ou ', 'E ', 'Wo ', 'Yi ', 'Chuo ', 'Zou ', 'Dian ', 'Chu ', 'Jin ', 'Ya ', 'Chi ', 'Chen ', 'He ', 'Ken ', 'Ju ', 'Ling ', 'Pao ', 'Tiao ', 'Zi ', 'Ken ', 'Yu ', 'Chuo ', 'Qu ', 'Wo ', 'Long ', 'Pang ', 'Gong ', 'Pang ', 'Yan ', 'Long ', 'Long ', 'Gong ', 'Kan ', 'Ta ', 'Ling ', 'Ta ', 'Long ', 'Gong ', 'Kan ', 'Gui ', 'Qiu ', 'Bie ', 'Gui ', 'Yue ', 'Chui ', 'He ', 'Jue ', 'Xie ', 'Yu ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0a0.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a0.php new file mode 100644 index 000000000..4b8afddf6 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a0.php @@ -0,0 +1 @@ +<?php return ['it', 'ix', 'i', 'ip', 'iet', 'iex', 'ie', 'iep', 'at', 'ax', 'a', 'ap', 'uox', 'uo', 'uop', 'ot', 'ox', 'o', 'op', 'ex', 'e', 'wu', 'bit', 'bix', 'bi', 'bip', 'biet', 'biex', 'bie', 'biep', 'bat', 'bax', 'ba', 'bap', 'buox', 'buo', 'buop', 'bot', 'box', 'bo', 'bop', 'bex', 'be', 'bep', 'but', 'bux', 'bu', 'bup', 'burx', 'bur', 'byt', 'byx', 'by', 'byp', 'byrx', 'byr', 'pit', 'pix', 'pi', 'pip', 'piex', 'pie', 'piep', 'pat', 'pax', 'pa', 'pap', 'puox', 'puo', 'puop', 'pot', 'pox', 'po', 'pop', 'put', 'pux', 'pu', 'pup', 'purx', 'pur', 'pyt', 'pyx', 'py', 'pyp', 'pyrx', 'pyr', 'bbit', 'bbix', 'bbi', 'bbip', 'bbiet', 'bbiex', 'bbie', 'bbiep', 'bbat', 'bbax', 'bba', 'bbap', 'bbuox', 'bbuo', 'bbuop', 'bbot', 'bbox', 'bbo', 'bbop', 'bbex', 'bbe', 'bbep', 'bbut', 'bbux', 'bbu', 'bbup', 'bburx', 'bbur', 'bbyt', 'bbyx', 'bby', 'bbyp', 'nbit', 'nbix', 'nbi', 'nbip', 'nbiex', 'nbie', 'nbiep', 'nbat', 'nbax', 'nba', 'nbap', 'nbot', 'nbox', 'nbo', 'nbop', 'nbut', 'nbux', 'nbu', 'nbup', 'nburx', 'nbur', 'nbyt', 'nbyx', 'nby', 'nbyp', 'nbyrx', 'nbyr', 'hmit', 'hmix', 'hmi', 'hmip', 'hmiex', 'hmie', 'hmiep', 'hmat', 'hmax', 'hma', 'hmap', 'hmuox', 'hmuo', 'hmuop', 'hmot', 'hmox', 'hmo', 'hmop', 'hmut', 'hmux', 'hmu', 'hmup', 'hmurx', 'hmur', 'hmyx', 'hmy', 'hmyp', 'hmyrx', 'hmyr', 'mit', 'mix', 'mi', 'mip', 'miex', 'mie', 'miep', 'mat', 'max', 'ma', 'map', 'muot', 'muox', 'muo', 'muop', 'mot', 'mox', 'mo', 'mop', 'mex', 'me', 'mut', 'mux', 'mu', 'mup', 'murx', 'mur', 'myt', 'myx', 'my', 'myp', 'fit', 'fix', 'fi', 'fip', 'fat', 'fax', 'fa', 'fap', 'fox', 'fo', 'fop', 'fut', 'fux', 'fu', 'fup', 'furx', 'fur', 'fyt', 'fyx', 'fy', 'fyp', 'vit', 'vix', 'vi', 'vip', 'viet', 'viex', 'vie', 'viep', 'vat', 'vax', 'va', 'vap', 'vot', 'vox', 'vo', 'vop', 'vex', 'vep', 'vut', 'vux', 'vu', 'vup', 'vurx', 'vur', 'vyt', 'vyx', 'vy', 'vyp', 'vyrx', 'vyr']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0a1.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a1.php new file mode 100644 index 000000000..c2cf3a18f --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a1.php @@ -0,0 +1 @@ +<?php return ['dit', 'dix', 'di', 'dip', 'diex', 'die', 'diep', 'dat', 'dax', 'da', 'dap', 'duox', 'duo', 'dot', 'dox', 'do', 'dop', 'dex', 'de', 'dep', 'dut', 'dux', 'du', 'dup', 'durx', 'dur', 'tit', 'tix', 'ti', 'tip', 'tiex', 'tie', 'tiep', 'tat', 'tax', 'ta', 'tap', 'tuot', 'tuox', 'tuo', 'tuop', 'tot', 'tox', 'to', 'top', 'tex', 'te', 'tep', 'tut', 'tux', 'tu', 'tup', 'turx', 'tur', 'ddit', 'ddix', 'ddi', 'ddip', 'ddiex', 'ddie', 'ddiep', 'ddat', 'ddax', 'dda', 'ddap', 'dduox', 'dduo', 'dduop', 'ddot', 'ddox', 'ddo', 'ddop', 'ddex', 'dde', 'ddep', 'ddut', 'ddux', 'ddu', 'ddup', 'ddurx', 'ddur', 'ndit', 'ndix', 'ndi', 'ndip', 'ndiex', 'ndie', 'ndat', 'ndax', 'nda', 'ndap', 'ndot', 'ndox', 'ndo', 'ndop', 'ndex', 'nde', 'ndep', 'ndut', 'ndux', 'ndu', 'ndup', 'ndurx', 'ndur', 'hnit', 'hnix', 'hni', 'hnip', 'hniet', 'hniex', 'hnie', 'hniep', 'hnat', 'hnax', 'hna', 'hnap', 'hnuox', 'hnuo', 'hnot', 'hnox', 'hnop', 'hnex', 'hne', 'hnep', 'hnut', 'nit', 'nix', 'ni', 'nip', 'niex', 'nie', 'niep', 'nax', 'na', 'nap', 'nuox', 'nuo', 'nuop', 'not', 'nox', 'no', 'nop', 'nex', 'ne', 'nep', 'nut', 'nux', 'nu', 'nup', 'nurx', 'nur', 'hlit', 'hlix', 'hli', 'hlip', 'hliex', 'hlie', 'hliep', 'hlat', 'hlax', 'hla', 'hlap', 'hluox', 'hluo', 'hluop', 'hlox', 'hlo', 'hlop', 'hlex', 'hle', 'hlep', 'hlut', 'hlux', 'hlu', 'hlup', 'hlurx', 'hlur', 'hlyt', 'hlyx', 'hly', 'hlyp', 'hlyrx', 'hlyr', 'lit', 'lix', 'li', 'lip', 'liet', 'liex', 'lie', 'liep', 'lat', 'lax', 'la', 'lap', 'luot', 'luox', 'luo', 'luop', 'lot', 'lox', 'lo', 'lop', 'lex', 'le', 'lep', 'lut', 'lux', 'lu', 'lup', 'lurx', 'lur', 'lyt', 'lyx', 'ly', 'lyp', 'lyrx', 'lyr', 'git', 'gix', 'gi', 'gip', 'giet', 'giex', 'gie', 'giep', 'gat', 'gax', 'ga', 'gap', 'guot', 'guox', 'guo', 'guop', 'got', 'gox', 'go', 'gop', 'get', 'gex', 'ge', 'gep', 'gut', 'gux', 'gu', 'gup', 'gurx', 'gur', 'kit', 'kix', 'ki', 'kip', 'kiex', 'kie', 'kiep', 'kat']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0a2.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a2.php new file mode 100644 index 000000000..ad32b8483 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a2.php @@ -0,0 +1 @@ +<?php return ['kax', 'ka', 'kap', 'kuox', 'kuo', 'kuop', 'kot', 'kox', 'ko', 'kop', 'ket', 'kex', 'ke', 'kep', 'kut', 'kux', 'ku', 'kup', 'kurx', 'kur', 'ggit', 'ggix', 'ggi', 'ggiex', 'ggie', 'ggiep', 'ggat', 'ggax', 'gga', 'ggap', 'gguot', 'gguox', 'gguo', 'gguop', 'ggot', 'ggox', 'ggo', 'ggop', 'gget', 'ggex', 'gge', 'ggep', 'ggut', 'ggux', 'ggu', 'ggup', 'ggurx', 'ggur', 'mgiex', 'mgie', 'mgat', 'mgax', 'mga', 'mgap', 'mguox', 'mguo', 'mguop', 'mgot', 'mgox', 'mgo', 'mgop', 'mgex', 'mge', 'mgep', 'mgut', 'mgux', 'mgu', 'mgup', 'mgurx', 'mgur', 'hxit', 'hxix', 'hxi', 'hxip', 'hxiet', 'hxiex', 'hxie', 'hxiep', 'hxat', 'hxax', 'hxa', 'hxap', 'hxuot', 'hxuox', 'hxuo', 'hxuop', 'hxot', 'hxox', 'hxo', 'hxop', 'hxex', 'hxe', 'hxep', 'ngiex', 'ngie', 'ngiep', 'ngat', 'ngax', 'nga', 'ngap', 'nguot', 'nguox', 'nguo', 'ngot', 'ngox', 'ngo', 'ngop', 'ngex', 'nge', 'ngep', 'hit', 'hiex', 'hie', 'hat', 'hax', 'ha', 'hap', 'huot', 'huox', 'huo', 'huop', 'hot', 'hox', 'ho', 'hop', 'hex', 'he', 'hep', 'wat', 'wax', 'wa', 'wap', 'wuox', 'wuo', 'wuop', 'wox', 'wo', 'wop', 'wex', 'we', 'wep', 'zit', 'zix', 'zi', 'zip', 'ziex', 'zie', 'ziep', 'zat', 'zax', 'za', 'zap', 'zuox', 'zuo', 'zuop', 'zot', 'zox', 'zo', 'zop', 'zex', 'ze', 'zep', 'zut', 'zux', 'zu', 'zup', 'zurx', 'zur', 'zyt', 'zyx', 'zy', 'zyp', 'zyrx', 'zyr', 'cit', 'cix', 'ci', 'cip', 'ciet', 'ciex', 'cie', 'ciep', 'cat', 'cax', 'ca', 'cap', 'cuox', 'cuo', 'cuop', 'cot', 'cox', 'co', 'cop', 'cex', 'ce', 'cep', 'cut', 'cux', 'cu', 'cup', 'curx', 'cur', 'cyt', 'cyx', 'cy', 'cyp', 'cyrx', 'cyr', 'zzit', 'zzix', 'zzi', 'zzip', 'zziet', 'zziex', 'zzie', 'zziep', 'zzat', 'zzax', 'zza', 'zzap', 'zzox', 'zzo', 'zzop', 'zzex', 'zze', 'zzep', 'zzux', 'zzu', 'zzup', 'zzurx', 'zzur', 'zzyt', 'zzyx', 'zzy', 'zzyp', 'zzyrx', 'zzyr', 'nzit', 'nzix', 'nzi', 'nzip', 'nziex', 'nzie', 'nziep', 'nzat', 'nzax', 'nza', 'nzap', 'nzuox', 'nzuo', 'nzox', 'nzop', 'nzex', 'nze', 'nzux', 'nzu']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0a3.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a3.php new file mode 100644 index 000000000..a56a8ed5b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a3.php @@ -0,0 +1 @@ +<?php return ['nzup', 'nzurx', 'nzur', 'nzyt', 'nzyx', 'nzy', 'nzyp', 'nzyrx', 'nzyr', 'sit', 'six', 'si', 'sip', 'siex', 'sie', 'siep', 'sat', 'sax', 'sa', 'sap', 'suox', 'suo', 'suop', 'sot', 'sox', 'so', 'sop', 'sex', 'se', 'sep', 'sut', 'sux', 'su', 'sup', 'surx', 'sur', 'syt', 'syx', 'sy', 'syp', 'syrx', 'syr', 'ssit', 'ssix', 'ssi', 'ssip', 'ssiex', 'ssie', 'ssiep', 'ssat', 'ssax', 'ssa', 'ssap', 'ssot', 'ssox', 'sso', 'ssop', 'ssex', 'sse', 'ssep', 'ssut', 'ssux', 'ssu', 'ssup', 'ssyt', 'ssyx', 'ssy', 'ssyp', 'ssyrx', 'ssyr', 'zhat', 'zhax', 'zha', 'zhap', 'zhuox', 'zhuo', 'zhuop', 'zhot', 'zhox', 'zho', 'zhop', 'zhet', 'zhex', 'zhe', 'zhep', 'zhut', 'zhux', 'zhu', 'zhup', 'zhurx', 'zhur', 'zhyt', 'zhyx', 'zhy', 'zhyp', 'zhyrx', 'zhyr', 'chat', 'chax', 'cha', 'chap', 'chuot', 'chuox', 'chuo', 'chuop', 'chot', 'chox', 'cho', 'chop', 'chet', 'chex', 'che', 'chep', 'chux', 'chu', 'chup', 'churx', 'chur', 'chyt', 'chyx', 'chy', 'chyp', 'chyrx', 'chyr', 'rrax', 'rra', 'rruox', 'rruo', 'rrot', 'rrox', 'rro', 'rrop', 'rret', 'rrex', 'rre', 'rrep', 'rrut', 'rrux', 'rru', 'rrup', 'rrurx', 'rrur', 'rryt', 'rryx', 'rry', 'rryp', 'rryrx', 'rryr', 'nrat', 'nrax', 'nra', 'nrap', 'nrox', 'nro', 'nrop', 'nret', 'nrex', 'nre', 'nrep', 'nrut', 'nrux', 'nru', 'nrup', 'nrurx', 'nrur', 'nryt', 'nryx', 'nry', 'nryp', 'nryrx', 'nryr', 'shat', 'shax', 'sha', 'shap', 'shuox', 'shuo', 'shuop', 'shot', 'shox', 'sho', 'shop', 'shet', 'shex', 'she', 'shep', 'shut', 'shux', 'shu', 'shup', 'shurx', 'shur', 'shyt', 'shyx', 'shy', 'shyp', 'shyrx', 'shyr', 'rat', 'rax', 'ra', 'rap', 'ruox', 'ruo', 'ruop', 'rot', 'rox', 'ro', 'rop', 'rex', 're', 'rep', 'rut', 'rux', 'ru', 'rup', 'rurx', 'rur', 'ryt', 'ryx', 'ry', 'ryp', 'ryrx', 'ryr', 'jit', 'jix', 'ji', 'jip', 'jiet', 'jiex', 'jie', 'jiep', 'juot', 'juox', 'juo', 'juop', 'jot', 'jox', 'jo', 'jop', 'jut', 'jux', 'ju', 'jup', 'jurx', 'jur', 'jyt', 'jyx', 'jy', 'jyp', 'jyrx', 'jyr', 'qit', 'qix', 'qi', 'qip']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0a4.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a4.php new file mode 100644 index 000000000..2fa588390 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0a4.php @@ -0,0 +1 @@ +<?php return ['qiet', 'qiex', 'qie', 'qiep', 'quot', 'quox', 'quo', 'quop', 'qot', 'qox', 'qo', 'qop', 'qut', 'qux', 'qu', 'qup', 'qurx', 'qur', 'qyt', 'qyx', 'qy', 'qyp', 'qyrx', 'qyr', 'jjit', 'jjix', 'jji', 'jjip', 'jjiet', 'jjiex', 'jjie', 'jjiep', 'jjuox', 'jjuo', 'jjuop', 'jjot', 'jjox', 'jjo', 'jjop', 'jjut', 'jjux', 'jju', 'jjup', 'jjurx', 'jjur', 'jjyt', 'jjyx', 'jjy', 'jjyp', 'njit', 'njix', 'nji', 'njip', 'njiet', 'njiex', 'njie', 'njiep', 'njuox', 'njuo', 'njot', 'njox', 'njo', 'njop', 'njux', 'nju', 'njup', 'njurx', 'njur', 'njyt', 'njyx', 'njy', 'njyp', 'njyrx', 'njyr', 'nyit', 'nyix', 'nyi', 'nyip', 'nyiet', 'nyiex', 'nyie', 'nyiep', 'nyuox', 'nyuo', 'nyuop', 'nyot', 'nyox', 'nyo', 'nyop', 'nyut', 'nyux', 'nyu', 'nyup', 'xit', 'xix', 'xi', 'xip', 'xiet', 'xiex', 'xie', 'xiep', 'xuox', 'xuo', 'xot', 'xox', 'xo', 'xop', 'xyt', 'xyx', 'xy', 'xyp', 'xyrx', 'xyr', 'yit', 'yix', 'yi', 'yip', 'yiet', 'yiex', 'yie', 'yiep', 'yuot', 'yuox', 'yuo', 'yuop', 'yot', 'yox', 'yo', 'yop', 'yut', 'yux', 'yu', 'yup', 'yurx', 'yur', 'yyt', 'yyx', 'yy', 'yyp', 'yyrx', 'yyr', '[?]', '[?]', '[?]', 'Qot', 'Li', 'Kit', 'Nyip', 'Cyp', 'Ssi', 'Ggop', 'Gep', 'Mi', 'Hxit', 'Lyr', 'Bbut', 'Mop', 'Yo', 'Put', 'Hxuo', 'Tat', 'Ga', '[?]', '[?]', 'Ddur', 'Bur', 'Gguo', 'Nyop', 'Tu', 'Op', 'Jjut', 'Zot', 'Pyt', 'Hmo', 'Yit', 'Vur', 'Shy', 'Vep', 'Za', 'Jo', '[?]', 'Jjy', 'Got', 'Jjie', 'Wo', 'Du', 'Shur', 'Lie', 'Cy', 'Cuop', 'Cip', 'Hxop', 'Shat', '[?]', 'Shop', 'Che', 'Zziet', '[?]', 'Ke', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ac.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ac.php new file mode 100644 index 000000000..98a9bfd58 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ac.php @@ -0,0 +1 @@ +<?php return ['ga', 'gag', 'gagg', 'gags', 'gan', 'ganj', 'ganh', 'gad', 'gal', 'galg', 'galm', 'galb', 'gals', 'galt', 'galp', 'galh', 'gam', 'gab', 'gabs', 'gas', 'gass', 'gang', 'gaj', 'gac', 'gak', 'gat', 'gap', 'gah', 'gae', 'gaeg', 'gaegg', 'gaegs', 'gaen', 'gaenj', 'gaenh', 'gaed', 'gael', 'gaelg', 'gaelm', 'gaelb', 'gaels', 'gaelt', 'gaelp', 'gaelh', 'gaem', 'gaeb', 'gaebs', 'gaes', 'gaess', 'gaeng', 'gaej', 'gaec', 'gaek', 'gaet', 'gaep', 'gaeh', 'gya', 'gyag', 'gyagg', 'gyags', 'gyan', 'gyanj', 'gyanh', 'gyad', 'gyal', 'gyalg', 'gyalm', 'gyalb', 'gyals', 'gyalt', 'gyalp', 'gyalh', 'gyam', 'gyab', 'gyabs', 'gyas', 'gyass', 'gyang', 'gyaj', 'gyac', 'gyak', 'gyat', 'gyap', 'gyah', 'gyae', 'gyaeg', 'gyaegg', 'gyaegs', 'gyaen', 'gyaenj', 'gyaenh', 'gyaed', 'gyael', 'gyaelg', 'gyaelm', 'gyaelb', 'gyaels', 'gyaelt', 'gyaelp', 'gyaelh', 'gyaem', 'gyaeb', 'gyaebs', 'gyaes', 'gyaess', 'gyaeng', 'gyaej', 'gyaec', 'gyaek', 'gyaet', 'gyaep', 'gyaeh', 'geo', 'geog', 'geogg', 'geogs', 'geon', 'geonj', 'geonh', 'geod', 'geol', 'geolg', 'geolm', 'geolb', 'geols', 'geolt', 'geolp', 'geolh', 'geom', 'geob', 'geobs', 'geos', 'geoss', 'geong', 'geoj', 'geoc', 'geok', 'geot', 'geop', 'geoh', 'ge', 'geg', 'gegg', 'gegs', 'gen', 'genj', 'genh', 'ged', 'gel', 'gelg', 'gelm', 'gelb', 'gels', 'gelt', 'gelp', 'gelh', 'gem', 'geb', 'gebs', 'ges', 'gess', 'geng', 'gej', 'gec', 'gek', 'get', 'gep', 'geh', 'gyeo', 'gyeog', 'gyeogg', 'gyeogs', 'gyeon', 'gyeonj', 'gyeonh', 'gyeod', 'gyeol', 'gyeolg', 'gyeolm', 'gyeolb', 'gyeols', 'gyeolt', 'gyeolp', 'gyeolh', 'gyeom', 'gyeob', 'gyeobs', 'gyeos', 'gyeoss', 'gyeong', 'gyeoj', 'gyeoc', 'gyeok', 'gyeot', 'gyeop', 'gyeoh', 'gye', 'gyeg', 'gyegg', 'gyegs', 'gyen', 'gyenj', 'gyenh', 'gyed', 'gyel', 'gyelg', 'gyelm', 'gyelb', 'gyels', 'gyelt', 'gyelp', 'gyelh', 'gyem', 'gyeb', 'gyebs', 'gyes', 'gyess', 'gyeng', 'gyej', 'gyec', 'gyek', 'gyet', 'gyep', 'gyeh', 'go', 'gog', 'gogg', 'gogs', 'gon', 'gonj', 'gonh', 'god', 'gol', 'golg', 'golm', 'golb', 'gols', 'golt', 'golp', 'golh', 'gom', 'gob', 'gobs', 'gos', 'goss', 'gong', 'goj', 'goc', 'gok', 'got', 'gop', 'goh', 'gwa', 'gwag', 'gwagg', 'gwags']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ad.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ad.php new file mode 100644 index 000000000..8e117c5ab --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ad.php @@ -0,0 +1 @@ +<?php return ['gwan', 'gwanj', 'gwanh', 'gwad', 'gwal', 'gwalg', 'gwalm', 'gwalb', 'gwals', 'gwalt', 'gwalp', 'gwalh', 'gwam', 'gwab', 'gwabs', 'gwas', 'gwass', 'gwang', 'gwaj', 'gwac', 'gwak', 'gwat', 'gwap', 'gwah', 'gwae', 'gwaeg', 'gwaegg', 'gwaegs', 'gwaen', 'gwaenj', 'gwaenh', 'gwaed', 'gwael', 'gwaelg', 'gwaelm', 'gwaelb', 'gwaels', 'gwaelt', 'gwaelp', 'gwaelh', 'gwaem', 'gwaeb', 'gwaebs', 'gwaes', 'gwaess', 'gwaeng', 'gwaej', 'gwaec', 'gwaek', 'gwaet', 'gwaep', 'gwaeh', 'goe', 'goeg', 'goegg', 'goegs', 'goen', 'goenj', 'goenh', 'goed', 'goel', 'goelg', 'goelm', 'goelb', 'goels', 'goelt', 'goelp', 'goelh', 'goem', 'goeb', 'goebs', 'goes', 'goess', 'goeng', 'goej', 'goec', 'goek', 'goet', 'goep', 'goeh', 'gyo', 'gyog', 'gyogg', 'gyogs', 'gyon', 'gyonj', 'gyonh', 'gyod', 'gyol', 'gyolg', 'gyolm', 'gyolb', 'gyols', 'gyolt', 'gyolp', 'gyolh', 'gyom', 'gyob', 'gyobs', 'gyos', 'gyoss', 'gyong', 'gyoj', 'gyoc', 'gyok', 'gyot', 'gyop', 'gyoh', 'gu', 'gug', 'gugg', 'gugs', 'gun', 'gunj', 'gunh', 'gud', 'gul', 'gulg', 'gulm', 'gulb', 'guls', 'gult', 'gulp', 'gulh', 'gum', 'gub', 'gubs', 'gus', 'guss', 'gung', 'guj', 'guc', 'guk', 'gut', 'gup', 'guh', 'gweo', 'gweog', 'gweogg', 'gweogs', 'gweon', 'gweonj', 'gweonh', 'gweod', 'gweol', 'gweolg', 'gweolm', 'gweolb', 'gweols', 'gweolt', 'gweolp', 'gweolh', 'gweom', 'gweob', 'gweobs', 'gweos', 'gweoss', 'gweong', 'gweoj', 'gweoc', 'gweok', 'gweot', 'gweop', 'gweoh', 'gwe', 'gweg', 'gwegg', 'gwegs', 'gwen', 'gwenj', 'gwenh', 'gwed', 'gwel', 'gwelg', 'gwelm', 'gwelb', 'gwels', 'gwelt', 'gwelp', 'gwelh', 'gwem', 'gweb', 'gwebs', 'gwes', 'gwess', 'gweng', 'gwej', 'gwec', 'gwek', 'gwet', 'gwep', 'gweh', 'gwi', 'gwig', 'gwigg', 'gwigs', 'gwin', 'gwinj', 'gwinh', 'gwid', 'gwil', 'gwilg', 'gwilm', 'gwilb', 'gwils', 'gwilt', 'gwilp', 'gwilh', 'gwim', 'gwib', 'gwibs', 'gwis', 'gwiss', 'gwing', 'gwij', 'gwic', 'gwik', 'gwit', 'gwip', 'gwih', 'gyu', 'gyug', 'gyugg', 'gyugs', 'gyun', 'gyunj', 'gyunh', 'gyud', 'gyul', 'gyulg', 'gyulm', 'gyulb', 'gyuls', 'gyult', 'gyulp', 'gyulh', 'gyum', 'gyub', 'gyubs', 'gyus', 'gyuss', 'gyung', 'gyuj', 'gyuc', 'gyuk', 'gyut', 'gyup', 'gyuh', 'geu', 'geug', 'geugg', 'geugs', 'geun', 'geunj', 'geunh', 'geud']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ae.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ae.php new file mode 100644 index 000000000..05c2e2037 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ae.php @@ -0,0 +1 @@ +<?php return ['geul', 'geulg', 'geulm', 'geulb', 'geuls', 'geult', 'geulp', 'geulh', 'geum', 'geub', 'geubs', 'geus', 'geuss', 'geung', 'geuj', 'geuc', 'geuk', 'geut', 'geup', 'geuh', 'gyi', 'gyig', 'gyigg', 'gyigs', 'gyin', 'gyinj', 'gyinh', 'gyid', 'gyil', 'gyilg', 'gyilm', 'gyilb', 'gyils', 'gyilt', 'gyilp', 'gyilh', 'gyim', 'gyib', 'gyibs', 'gyis', 'gyiss', 'gying', 'gyij', 'gyic', 'gyik', 'gyit', 'gyip', 'gyih', 'gi', 'gig', 'gigg', 'gigs', 'gin', 'ginj', 'ginh', 'gid', 'gil', 'gilg', 'gilm', 'gilb', 'gils', 'gilt', 'gilp', 'gilh', 'gim', 'gib', 'gibs', 'gis', 'giss', 'ging', 'gij', 'gic', 'gik', 'git', 'gip', 'gih', 'gga', 'ggag', 'ggagg', 'ggags', 'ggan', 'gganj', 'gganh', 'ggad', 'ggal', 'ggalg', 'ggalm', 'ggalb', 'ggals', 'ggalt', 'ggalp', 'ggalh', 'ggam', 'ggab', 'ggabs', 'ggas', 'ggass', 'ggang', 'ggaj', 'ggac', 'ggak', 'ggat', 'ggap', 'ggah', 'ggae', 'ggaeg', 'ggaegg', 'ggaegs', 'ggaen', 'ggaenj', 'ggaenh', 'ggaed', 'ggael', 'ggaelg', 'ggaelm', 'ggaelb', 'ggaels', 'ggaelt', 'ggaelp', 'ggaelh', 'ggaem', 'ggaeb', 'ggaebs', 'ggaes', 'ggaess', 'ggaeng', 'ggaej', 'ggaec', 'ggaek', 'ggaet', 'ggaep', 'ggaeh', 'ggya', 'ggyag', 'ggyagg', 'ggyags', 'ggyan', 'ggyanj', 'ggyanh', 'ggyad', 'ggyal', 'ggyalg', 'ggyalm', 'ggyalb', 'ggyals', 'ggyalt', 'ggyalp', 'ggyalh', 'ggyam', 'ggyab', 'ggyabs', 'ggyas', 'ggyass', 'ggyang', 'ggyaj', 'ggyac', 'ggyak', 'ggyat', 'ggyap', 'ggyah', 'ggyae', 'ggyaeg', 'ggyaegg', 'ggyaegs', 'ggyaen', 'ggyaenj', 'ggyaenh', 'ggyaed', 'ggyael', 'ggyaelg', 'ggyaelm', 'ggyaelb', 'ggyaels', 'ggyaelt', 'ggyaelp', 'ggyaelh', 'ggyaem', 'ggyaeb', 'ggyaebs', 'ggyaes', 'ggyaess', 'ggyaeng', 'ggyaej', 'ggyaec', 'ggyaek', 'ggyaet', 'ggyaep', 'ggyaeh', 'ggeo', 'ggeog', 'ggeogg', 'ggeogs', 'ggeon', 'ggeonj', 'ggeonh', 'ggeod', 'ggeol', 'ggeolg', 'ggeolm', 'ggeolb', 'ggeols', 'ggeolt', 'ggeolp', 'ggeolh', 'ggeom', 'ggeob', 'ggeobs', 'ggeos', 'ggeoss', 'ggeong', 'ggeoj', 'ggeoc', 'ggeok', 'ggeot', 'ggeop', 'ggeoh', 'gge', 'ggeg', 'ggegg', 'ggegs', 'ggen', 'ggenj', 'ggenh', 'gged', 'ggel', 'ggelg', 'ggelm', 'ggelb', 'ggels', 'ggelt', 'ggelp', 'ggelh', 'ggem', 'ggeb', 'ggebs', 'gges', 'ggess', 'ggeng', 'ggej', 'ggec', 'ggek', 'gget', 'ggep', 'ggeh', 'ggyeo', 'ggyeog', 'ggyeogg', 'ggyeogs', 'ggyeon', 'ggyeonj', 'ggyeonh', 'ggyeod', 'ggyeol', 'ggyeolg', 'ggyeolm', 'ggyeolb']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0af.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0af.php new file mode 100644 index 000000000..80ac8cf89 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0af.php @@ -0,0 +1 @@ +<?php return ['ggyeols', 'ggyeolt', 'ggyeolp', 'ggyeolh', 'ggyeom', 'ggyeob', 'ggyeobs', 'ggyeos', 'ggyeoss', 'ggyeong', 'ggyeoj', 'ggyeoc', 'ggyeok', 'ggyeot', 'ggyeop', 'ggyeoh', 'ggye', 'ggyeg', 'ggyegg', 'ggyegs', 'ggyen', 'ggyenj', 'ggyenh', 'ggyed', 'ggyel', 'ggyelg', 'ggyelm', 'ggyelb', 'ggyels', 'ggyelt', 'ggyelp', 'ggyelh', 'ggyem', 'ggyeb', 'ggyebs', 'ggyes', 'ggyess', 'ggyeng', 'ggyej', 'ggyec', 'ggyek', 'ggyet', 'ggyep', 'ggyeh', 'ggo', 'ggog', 'ggogg', 'ggogs', 'ggon', 'ggonj', 'ggonh', 'ggod', 'ggol', 'ggolg', 'ggolm', 'ggolb', 'ggols', 'ggolt', 'ggolp', 'ggolh', 'ggom', 'ggob', 'ggobs', 'ggos', 'ggoss', 'ggong', 'ggoj', 'ggoc', 'ggok', 'ggot', 'ggop', 'ggoh', 'ggwa', 'ggwag', 'ggwagg', 'ggwags', 'ggwan', 'ggwanj', 'ggwanh', 'ggwad', 'ggwal', 'ggwalg', 'ggwalm', 'ggwalb', 'ggwals', 'ggwalt', 'ggwalp', 'ggwalh', 'ggwam', 'ggwab', 'ggwabs', 'ggwas', 'ggwass', 'ggwang', 'ggwaj', 'ggwac', 'ggwak', 'ggwat', 'ggwap', 'ggwah', 'ggwae', 'ggwaeg', 'ggwaegg', 'ggwaegs', 'ggwaen', 'ggwaenj', 'ggwaenh', 'ggwaed', 'ggwael', 'ggwaelg', 'ggwaelm', 'ggwaelb', 'ggwaels', 'ggwaelt', 'ggwaelp', 'ggwaelh', 'ggwaem', 'ggwaeb', 'ggwaebs', 'ggwaes', 'ggwaess', 'ggwaeng', 'ggwaej', 'ggwaec', 'ggwaek', 'ggwaet', 'ggwaep', 'ggwaeh', 'ggoe', 'ggoeg', 'ggoegg', 'ggoegs', 'ggoen', 'ggoenj', 'ggoenh', 'ggoed', 'ggoel', 'ggoelg', 'ggoelm', 'ggoelb', 'ggoels', 'ggoelt', 'ggoelp', 'ggoelh', 'ggoem', 'ggoeb', 'ggoebs', 'ggoes', 'ggoess', 'ggoeng', 'ggoej', 'ggoec', 'ggoek', 'ggoet', 'ggoep', 'ggoeh', 'ggyo', 'ggyog', 'ggyogg', 'ggyogs', 'ggyon', 'ggyonj', 'ggyonh', 'ggyod', 'ggyol', 'ggyolg', 'ggyolm', 'ggyolb', 'ggyols', 'ggyolt', 'ggyolp', 'ggyolh', 'ggyom', 'ggyob', 'ggyobs', 'ggyos', 'ggyoss', 'ggyong', 'ggyoj', 'ggyoc', 'ggyok', 'ggyot', 'ggyop', 'ggyoh', 'ggu', 'ggug', 'ggugg', 'ggugs', 'ggun', 'ggunj', 'ggunh', 'ggud', 'ggul', 'ggulg', 'ggulm', 'ggulb', 'gguls', 'ggult', 'ggulp', 'ggulh', 'ggum', 'ggub', 'ggubs', 'ggus', 'gguss', 'ggung', 'gguj', 'gguc', 'gguk', 'ggut', 'ggup', 'gguh', 'ggweo', 'ggweog', 'ggweogg', 'ggweogs', 'ggweon', 'ggweonj', 'ggweonh', 'ggweod', 'ggweol', 'ggweolg', 'ggweolm', 'ggweolb', 'ggweols', 'ggweolt', 'ggweolp', 'ggweolh', 'ggweom', 'ggweob', 'ggweobs', 'ggweos', 'ggweoss', 'ggweong', 'ggweoj', 'ggweoc', 'ggweok', 'ggweot', 'ggweop', 'ggweoh', 'ggwe', 'ggweg', 'ggwegg', 'ggwegs', 'ggwen', 'ggwenj', 'ggwenh', 'ggwed', 'ggwel', 'ggwelg', 'ggwelm', 'ggwelb', 'ggwels', 'ggwelt', 'ggwelp', 'ggwelh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b0.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b0.php new file mode 100644 index 000000000..916b5f891 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b0.php @@ -0,0 +1 @@ +<?php return ['ggwem', 'ggweb', 'ggwebs', 'ggwes', 'ggwess', 'ggweng', 'ggwej', 'ggwec', 'ggwek', 'ggwet', 'ggwep', 'ggweh', 'ggwi', 'ggwig', 'ggwigg', 'ggwigs', 'ggwin', 'ggwinj', 'ggwinh', 'ggwid', 'ggwil', 'ggwilg', 'ggwilm', 'ggwilb', 'ggwils', 'ggwilt', 'ggwilp', 'ggwilh', 'ggwim', 'ggwib', 'ggwibs', 'ggwis', 'ggwiss', 'ggwing', 'ggwij', 'ggwic', 'ggwik', 'ggwit', 'ggwip', 'ggwih', 'ggyu', 'ggyug', 'ggyugg', 'ggyugs', 'ggyun', 'ggyunj', 'ggyunh', 'ggyud', 'ggyul', 'ggyulg', 'ggyulm', 'ggyulb', 'ggyuls', 'ggyult', 'ggyulp', 'ggyulh', 'ggyum', 'ggyub', 'ggyubs', 'ggyus', 'ggyuss', 'ggyung', 'ggyuj', 'ggyuc', 'ggyuk', 'ggyut', 'ggyup', 'ggyuh', 'ggeu', 'ggeug', 'ggeugg', 'ggeugs', 'ggeun', 'ggeunj', 'ggeunh', 'ggeud', 'ggeul', 'ggeulg', 'ggeulm', 'ggeulb', 'ggeuls', 'ggeult', 'ggeulp', 'ggeulh', 'ggeum', 'ggeub', 'ggeubs', 'ggeus', 'ggeuss', 'ggeung', 'ggeuj', 'ggeuc', 'ggeuk', 'ggeut', 'ggeup', 'ggeuh', 'ggyi', 'ggyig', 'ggyigg', 'ggyigs', 'ggyin', 'ggyinj', 'ggyinh', 'ggyid', 'ggyil', 'ggyilg', 'ggyilm', 'ggyilb', 'ggyils', 'ggyilt', 'ggyilp', 'ggyilh', 'ggyim', 'ggyib', 'ggyibs', 'ggyis', 'ggyiss', 'ggying', 'ggyij', 'ggyic', 'ggyik', 'ggyit', 'ggyip', 'ggyih', 'ggi', 'ggig', 'ggigg', 'ggigs', 'ggin', 'gginj', 'gginh', 'ggid', 'ggil', 'ggilg', 'ggilm', 'ggilb', 'ggils', 'ggilt', 'ggilp', 'ggilh', 'ggim', 'ggib', 'ggibs', 'ggis', 'ggiss', 'gging', 'ggij', 'ggic', 'ggik', 'ggit', 'ggip', 'ggih', 'na', 'nag', 'nagg', 'nags', 'nan', 'nanj', 'nanh', 'nad', 'nal', 'nalg', 'nalm', 'nalb', 'nals', 'nalt', 'nalp', 'nalh', 'nam', 'nab', 'nabs', 'nas', 'nass', 'nang', 'naj', 'nac', 'nak', 'nat', 'nap', 'nah', 'nae', 'naeg', 'naegg', 'naegs', 'naen', 'naenj', 'naenh', 'naed', 'nael', 'naelg', 'naelm', 'naelb', 'naels', 'naelt', 'naelp', 'naelh', 'naem', 'naeb', 'naebs', 'naes', 'naess', 'naeng', 'naej', 'naec', 'naek', 'naet', 'naep', 'naeh', 'nya', 'nyag', 'nyagg', 'nyags', 'nyan', 'nyanj', 'nyanh', 'nyad', 'nyal', 'nyalg', 'nyalm', 'nyalb', 'nyals', 'nyalt', 'nyalp', 'nyalh', 'nyam', 'nyab', 'nyabs', 'nyas', 'nyass', 'nyang', 'nyaj', 'nyac', 'nyak', 'nyat', 'nyap', 'nyah', 'nyae', 'nyaeg', 'nyaegg', 'nyaegs', 'nyaen', 'nyaenj', 'nyaenh', 'nyaed', 'nyael', 'nyaelg', 'nyaelm', 'nyaelb', 'nyaels', 'nyaelt', 'nyaelp', 'nyaelh', 'nyaem', 'nyaeb', 'nyaebs', 'nyaes']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b1.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b1.php new file mode 100644 index 000000000..727993fc3 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b1.php @@ -0,0 +1 @@ +<?php return ['nyaess', 'nyaeng', 'nyaej', 'nyaec', 'nyaek', 'nyaet', 'nyaep', 'nyaeh', 'neo', 'neog', 'neogg', 'neogs', 'neon', 'neonj', 'neonh', 'neod', 'neol', 'neolg', 'neolm', 'neolb', 'neols', 'neolt', 'neolp', 'neolh', 'neom', 'neob', 'neobs', 'neos', 'neoss', 'neong', 'neoj', 'neoc', 'neok', 'neot', 'neop', 'neoh', 'ne', 'neg', 'negg', 'negs', 'nen', 'nenj', 'nenh', 'ned', 'nel', 'nelg', 'nelm', 'nelb', 'nels', 'nelt', 'nelp', 'nelh', 'nem', 'neb', 'nebs', 'nes', 'ness', 'neng', 'nej', 'nec', 'nek', 'net', 'nep', 'neh', 'nyeo', 'nyeog', 'nyeogg', 'nyeogs', 'nyeon', 'nyeonj', 'nyeonh', 'nyeod', 'nyeol', 'nyeolg', 'nyeolm', 'nyeolb', 'nyeols', 'nyeolt', 'nyeolp', 'nyeolh', 'nyeom', 'nyeob', 'nyeobs', 'nyeos', 'nyeoss', 'nyeong', 'nyeoj', 'nyeoc', 'nyeok', 'nyeot', 'nyeop', 'nyeoh', 'nye', 'nyeg', 'nyegg', 'nyegs', 'nyen', 'nyenj', 'nyenh', 'nyed', 'nyel', 'nyelg', 'nyelm', 'nyelb', 'nyels', 'nyelt', 'nyelp', 'nyelh', 'nyem', 'nyeb', 'nyebs', 'nyes', 'nyess', 'nyeng', 'nyej', 'nyec', 'nyek', 'nyet', 'nyep', 'nyeh', 'no', 'nog', 'nogg', 'nogs', 'non', 'nonj', 'nonh', 'nod', 'nol', 'nolg', 'nolm', 'nolb', 'nols', 'nolt', 'nolp', 'nolh', 'nom', 'nob', 'nobs', 'nos', 'noss', 'nong', 'noj', 'noc', 'nok', 'not', 'nop', 'noh', 'nwa', 'nwag', 'nwagg', 'nwags', 'nwan', 'nwanj', 'nwanh', 'nwad', 'nwal', 'nwalg', 'nwalm', 'nwalb', 'nwals', 'nwalt', 'nwalp', 'nwalh', 'nwam', 'nwab', 'nwabs', 'nwas', 'nwass', 'nwang', 'nwaj', 'nwac', 'nwak', 'nwat', 'nwap', 'nwah', 'nwae', 'nwaeg', 'nwaegg', 'nwaegs', 'nwaen', 'nwaenj', 'nwaenh', 'nwaed', 'nwael', 'nwaelg', 'nwaelm', 'nwaelb', 'nwaels', 'nwaelt', 'nwaelp', 'nwaelh', 'nwaem', 'nwaeb', 'nwaebs', 'nwaes', 'nwaess', 'nwaeng', 'nwaej', 'nwaec', 'nwaek', 'nwaet', 'nwaep', 'nwaeh', 'noe', 'noeg', 'noegg', 'noegs', 'noen', 'noenj', 'noenh', 'noed', 'noel', 'noelg', 'noelm', 'noelb', 'noels', 'noelt', 'noelp', 'noelh', 'noem', 'noeb', 'noebs', 'noes', 'noess', 'noeng', 'noej', 'noec', 'noek', 'noet', 'noep', 'noeh', 'nyo', 'nyog', 'nyogg', 'nyogs', 'nyon', 'nyonj', 'nyonh', 'nyod', 'nyol', 'nyolg', 'nyolm', 'nyolb', 'nyols', 'nyolt', 'nyolp', 'nyolh', 'nyom', 'nyob', 'nyobs', 'nyos', 'nyoss', 'nyong', 'nyoj', 'nyoc']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b2.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b2.php new file mode 100644 index 000000000..46bef0ac0 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b2.php @@ -0,0 +1 @@ +<?php return ['nyok', 'nyot', 'nyop', 'nyoh', 'nu', 'nug', 'nugg', 'nugs', 'nun', 'nunj', 'nunh', 'nud', 'nul', 'nulg', 'nulm', 'nulb', 'nuls', 'nult', 'nulp', 'nulh', 'num', 'nub', 'nubs', 'nus', 'nuss', 'nung', 'nuj', 'nuc', 'nuk', 'nut', 'nup', 'nuh', 'nweo', 'nweog', 'nweogg', 'nweogs', 'nweon', 'nweonj', 'nweonh', 'nweod', 'nweol', 'nweolg', 'nweolm', 'nweolb', 'nweols', 'nweolt', 'nweolp', 'nweolh', 'nweom', 'nweob', 'nweobs', 'nweos', 'nweoss', 'nweong', 'nweoj', 'nweoc', 'nweok', 'nweot', 'nweop', 'nweoh', 'nwe', 'nweg', 'nwegg', 'nwegs', 'nwen', 'nwenj', 'nwenh', 'nwed', 'nwel', 'nwelg', 'nwelm', 'nwelb', 'nwels', 'nwelt', 'nwelp', 'nwelh', 'nwem', 'nweb', 'nwebs', 'nwes', 'nwess', 'nweng', 'nwej', 'nwec', 'nwek', 'nwet', 'nwep', 'nweh', 'nwi', 'nwig', 'nwigg', 'nwigs', 'nwin', 'nwinj', 'nwinh', 'nwid', 'nwil', 'nwilg', 'nwilm', 'nwilb', 'nwils', 'nwilt', 'nwilp', 'nwilh', 'nwim', 'nwib', 'nwibs', 'nwis', 'nwiss', 'nwing', 'nwij', 'nwic', 'nwik', 'nwit', 'nwip', 'nwih', 'nyu', 'nyug', 'nyugg', 'nyugs', 'nyun', 'nyunj', 'nyunh', 'nyud', 'nyul', 'nyulg', 'nyulm', 'nyulb', 'nyuls', 'nyult', 'nyulp', 'nyulh', 'nyum', 'nyub', 'nyubs', 'nyus', 'nyuss', 'nyung', 'nyuj', 'nyuc', 'nyuk', 'nyut', 'nyup', 'nyuh', 'neu', 'neug', 'neugg', 'neugs', 'neun', 'neunj', 'neunh', 'neud', 'neul', 'neulg', 'neulm', 'neulb', 'neuls', 'neult', 'neulp', 'neulh', 'neum', 'neub', 'neubs', 'neus', 'neuss', 'neung', 'neuj', 'neuc', 'neuk', 'neut', 'neup', 'neuh', 'nyi', 'nyig', 'nyigg', 'nyigs', 'nyin', 'nyinj', 'nyinh', 'nyid', 'nyil', 'nyilg', 'nyilm', 'nyilb', 'nyils', 'nyilt', 'nyilp', 'nyilh', 'nyim', 'nyib', 'nyibs', 'nyis', 'nyiss', 'nying', 'nyij', 'nyic', 'nyik', 'nyit', 'nyip', 'nyih', 'ni', 'nig', 'nigg', 'nigs', 'nin', 'ninj', 'ninh', 'nid', 'nil', 'nilg', 'nilm', 'nilb', 'nils', 'nilt', 'nilp', 'nilh', 'nim', 'nib', 'nibs', 'nis', 'niss', 'ning', 'nij', 'nic', 'nik', 'nit', 'nip', 'nih', 'da', 'dag', 'dagg', 'dags', 'dan', 'danj', 'danh', 'dad', 'dal', 'dalg', 'dalm', 'dalb', 'dals', 'dalt', 'dalp', 'dalh', 'dam', 'dab', 'dabs', 'das', 'dass', 'dang', 'daj', 'dac', 'dak', 'dat', 'dap', 'dah']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b3.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b3.php new file mode 100644 index 000000000..3d3368a27 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b3.php @@ -0,0 +1 @@ +<?php return ['dae', 'daeg', 'daegg', 'daegs', 'daen', 'daenj', 'daenh', 'daed', 'dael', 'daelg', 'daelm', 'daelb', 'daels', 'daelt', 'daelp', 'daelh', 'daem', 'daeb', 'daebs', 'daes', 'daess', 'daeng', 'daej', 'daec', 'daek', 'daet', 'daep', 'daeh', 'dya', 'dyag', 'dyagg', 'dyags', 'dyan', 'dyanj', 'dyanh', 'dyad', 'dyal', 'dyalg', 'dyalm', 'dyalb', 'dyals', 'dyalt', 'dyalp', 'dyalh', 'dyam', 'dyab', 'dyabs', 'dyas', 'dyass', 'dyang', 'dyaj', 'dyac', 'dyak', 'dyat', 'dyap', 'dyah', 'dyae', 'dyaeg', 'dyaegg', 'dyaegs', 'dyaen', 'dyaenj', 'dyaenh', 'dyaed', 'dyael', 'dyaelg', 'dyaelm', 'dyaelb', 'dyaels', 'dyaelt', 'dyaelp', 'dyaelh', 'dyaem', 'dyaeb', 'dyaebs', 'dyaes', 'dyaess', 'dyaeng', 'dyaej', 'dyaec', 'dyaek', 'dyaet', 'dyaep', 'dyaeh', 'deo', 'deog', 'deogg', 'deogs', 'deon', 'deonj', 'deonh', 'deod', 'deol', 'deolg', 'deolm', 'deolb', 'deols', 'deolt', 'deolp', 'deolh', 'deom', 'deob', 'deobs', 'deos', 'deoss', 'deong', 'deoj', 'deoc', 'deok', 'deot', 'deop', 'deoh', 'de', 'deg', 'degg', 'degs', 'den', 'denj', 'denh', 'ded', 'del', 'delg', 'delm', 'delb', 'dels', 'delt', 'delp', 'delh', 'dem', 'deb', 'debs', 'des', 'dess', 'deng', 'dej', 'dec', 'dek', 'det', 'dep', 'deh', 'dyeo', 'dyeog', 'dyeogg', 'dyeogs', 'dyeon', 'dyeonj', 'dyeonh', 'dyeod', 'dyeol', 'dyeolg', 'dyeolm', 'dyeolb', 'dyeols', 'dyeolt', 'dyeolp', 'dyeolh', 'dyeom', 'dyeob', 'dyeobs', 'dyeos', 'dyeoss', 'dyeong', 'dyeoj', 'dyeoc', 'dyeok', 'dyeot', 'dyeop', 'dyeoh', 'dye', 'dyeg', 'dyegg', 'dyegs', 'dyen', 'dyenj', 'dyenh', 'dyed', 'dyel', 'dyelg', 'dyelm', 'dyelb', 'dyels', 'dyelt', 'dyelp', 'dyelh', 'dyem', 'dyeb', 'dyebs', 'dyes', 'dyess', 'dyeng', 'dyej', 'dyec', 'dyek', 'dyet', 'dyep', 'dyeh', 'do', 'dog', 'dogg', 'dogs', 'don', 'donj', 'donh', 'dod', 'dol', 'dolg', 'dolm', 'dolb', 'dols', 'dolt', 'dolp', 'dolh', 'dom', 'dob', 'dobs', 'dos', 'doss', 'dong', 'doj', 'doc', 'dok', 'dot', 'dop', 'doh', 'dwa', 'dwag', 'dwagg', 'dwags', 'dwan', 'dwanj', 'dwanh', 'dwad', 'dwal', 'dwalg', 'dwalm', 'dwalb', 'dwals', 'dwalt', 'dwalp', 'dwalh', 'dwam', 'dwab', 'dwabs', 'dwas', 'dwass', 'dwang', 'dwaj', 'dwac', 'dwak', 'dwat', 'dwap', 'dwah', 'dwae', 'dwaeg', 'dwaegg', 'dwaegs']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b4.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b4.php new file mode 100644 index 000000000..07440d747 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b4.php @@ -0,0 +1 @@ +<?php return ['dwaen', 'dwaenj', 'dwaenh', 'dwaed', 'dwael', 'dwaelg', 'dwaelm', 'dwaelb', 'dwaels', 'dwaelt', 'dwaelp', 'dwaelh', 'dwaem', 'dwaeb', 'dwaebs', 'dwaes', 'dwaess', 'dwaeng', 'dwaej', 'dwaec', 'dwaek', 'dwaet', 'dwaep', 'dwaeh', 'doe', 'doeg', 'doegg', 'doegs', 'doen', 'doenj', 'doenh', 'doed', 'doel', 'doelg', 'doelm', 'doelb', 'doels', 'doelt', 'doelp', 'doelh', 'doem', 'doeb', 'doebs', 'does', 'doess', 'doeng', 'doej', 'doec', 'doek', 'doet', 'doep', 'doeh', 'dyo', 'dyog', 'dyogg', 'dyogs', 'dyon', 'dyonj', 'dyonh', 'dyod', 'dyol', 'dyolg', 'dyolm', 'dyolb', 'dyols', 'dyolt', 'dyolp', 'dyolh', 'dyom', 'dyob', 'dyobs', 'dyos', 'dyoss', 'dyong', 'dyoj', 'dyoc', 'dyok', 'dyot', 'dyop', 'dyoh', 'du', 'dug', 'dugg', 'dugs', 'dun', 'dunj', 'dunh', 'dud', 'dul', 'dulg', 'dulm', 'dulb', 'duls', 'dult', 'dulp', 'dulh', 'dum', 'dub', 'dubs', 'dus', 'duss', 'dung', 'duj', 'duc', 'duk', 'dut', 'dup', 'duh', 'dweo', 'dweog', 'dweogg', 'dweogs', 'dweon', 'dweonj', 'dweonh', 'dweod', 'dweol', 'dweolg', 'dweolm', 'dweolb', 'dweols', 'dweolt', 'dweolp', 'dweolh', 'dweom', 'dweob', 'dweobs', 'dweos', 'dweoss', 'dweong', 'dweoj', 'dweoc', 'dweok', 'dweot', 'dweop', 'dweoh', 'dwe', 'dweg', 'dwegg', 'dwegs', 'dwen', 'dwenj', 'dwenh', 'dwed', 'dwel', 'dwelg', 'dwelm', 'dwelb', 'dwels', 'dwelt', 'dwelp', 'dwelh', 'dwem', 'dweb', 'dwebs', 'dwes', 'dwess', 'dweng', 'dwej', 'dwec', 'dwek', 'dwet', 'dwep', 'dweh', 'dwi', 'dwig', 'dwigg', 'dwigs', 'dwin', 'dwinj', 'dwinh', 'dwid', 'dwil', 'dwilg', 'dwilm', 'dwilb', 'dwils', 'dwilt', 'dwilp', 'dwilh', 'dwim', 'dwib', 'dwibs', 'dwis', 'dwiss', 'dwing', 'dwij', 'dwic', 'dwik', 'dwit', 'dwip', 'dwih', 'dyu', 'dyug', 'dyugg', 'dyugs', 'dyun', 'dyunj', 'dyunh', 'dyud', 'dyul', 'dyulg', 'dyulm', 'dyulb', 'dyuls', 'dyult', 'dyulp', 'dyulh', 'dyum', 'dyub', 'dyubs', 'dyus', 'dyuss', 'dyung', 'dyuj', 'dyuc', 'dyuk', 'dyut', 'dyup', 'dyuh', 'deu', 'deug', 'deugg', 'deugs', 'deun', 'deunj', 'deunh', 'deud', 'deul', 'deulg', 'deulm', 'deulb', 'deuls', 'deult', 'deulp', 'deulh', 'deum', 'deub', 'deubs', 'deus', 'deuss', 'deung', 'deuj', 'deuc', 'deuk', 'deut', 'deup', 'deuh', 'dyi', 'dyig', 'dyigg', 'dyigs', 'dyin', 'dyinj', 'dyinh', 'dyid']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b5.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b5.php new file mode 100644 index 000000000..13b064edb --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b5.php @@ -0,0 +1 @@ +<?php return ['dyil', 'dyilg', 'dyilm', 'dyilb', 'dyils', 'dyilt', 'dyilp', 'dyilh', 'dyim', 'dyib', 'dyibs', 'dyis', 'dyiss', 'dying', 'dyij', 'dyic', 'dyik', 'dyit', 'dyip', 'dyih', 'di', 'dig', 'digg', 'digs', 'din', 'dinj', 'dinh', 'did', 'dil', 'dilg', 'dilm', 'dilb', 'dils', 'dilt', 'dilp', 'dilh', 'dim', 'dib', 'dibs', 'dis', 'diss', 'ding', 'dij', 'dic', 'dik', 'dit', 'dip', 'dih', 'dda', 'ddag', 'ddagg', 'ddags', 'ddan', 'ddanj', 'ddanh', 'ddad', 'ddal', 'ddalg', 'ddalm', 'ddalb', 'ddals', 'ddalt', 'ddalp', 'ddalh', 'ddam', 'ddab', 'ddabs', 'ddas', 'ddass', 'ddang', 'ddaj', 'ddac', 'ddak', 'ddat', 'ddap', 'ddah', 'ddae', 'ddaeg', 'ddaegg', 'ddaegs', 'ddaen', 'ddaenj', 'ddaenh', 'ddaed', 'ddael', 'ddaelg', 'ddaelm', 'ddaelb', 'ddaels', 'ddaelt', 'ddaelp', 'ddaelh', 'ddaem', 'ddaeb', 'ddaebs', 'ddaes', 'ddaess', 'ddaeng', 'ddaej', 'ddaec', 'ddaek', 'ddaet', 'ddaep', 'ddaeh', 'ddya', 'ddyag', 'ddyagg', 'ddyags', 'ddyan', 'ddyanj', 'ddyanh', 'ddyad', 'ddyal', 'ddyalg', 'ddyalm', 'ddyalb', 'ddyals', 'ddyalt', 'ddyalp', 'ddyalh', 'ddyam', 'ddyab', 'ddyabs', 'ddyas', 'ddyass', 'ddyang', 'ddyaj', 'ddyac', 'ddyak', 'ddyat', 'ddyap', 'ddyah', 'ddyae', 'ddyaeg', 'ddyaegg', 'ddyaegs', 'ddyaen', 'ddyaenj', 'ddyaenh', 'ddyaed', 'ddyael', 'ddyaelg', 'ddyaelm', 'ddyaelb', 'ddyaels', 'ddyaelt', 'ddyaelp', 'ddyaelh', 'ddyaem', 'ddyaeb', 'ddyaebs', 'ddyaes', 'ddyaess', 'ddyaeng', 'ddyaej', 'ddyaec', 'ddyaek', 'ddyaet', 'ddyaep', 'ddyaeh', 'ddeo', 'ddeog', 'ddeogg', 'ddeogs', 'ddeon', 'ddeonj', 'ddeonh', 'ddeod', 'ddeol', 'ddeolg', 'ddeolm', 'ddeolb', 'ddeols', 'ddeolt', 'ddeolp', 'ddeolh', 'ddeom', 'ddeob', 'ddeobs', 'ddeos', 'ddeoss', 'ddeong', 'ddeoj', 'ddeoc', 'ddeok', 'ddeot', 'ddeop', 'ddeoh', 'dde', 'ddeg', 'ddegg', 'ddegs', 'dden', 'ddenj', 'ddenh', 'dded', 'ddel', 'ddelg', 'ddelm', 'ddelb', 'ddels', 'ddelt', 'ddelp', 'ddelh', 'ddem', 'ddeb', 'ddebs', 'ddes', 'ddess', 'ddeng', 'ddej', 'ddec', 'ddek', 'ddet', 'ddep', 'ddeh', 'ddyeo', 'ddyeog', 'ddyeogg', 'ddyeogs', 'ddyeon', 'ddyeonj', 'ddyeonh', 'ddyeod', 'ddyeol', 'ddyeolg', 'ddyeolm', 'ddyeolb', 'ddyeols', 'ddyeolt', 'ddyeolp', 'ddyeolh', 'ddyeom', 'ddyeob', 'ddyeobs', 'ddyeos', 'ddyeoss', 'ddyeong', 'ddyeoj', 'ddyeoc', 'ddyeok', 'ddyeot', 'ddyeop', 'ddyeoh', 'ddye', 'ddyeg', 'ddyegg', 'ddyegs', 'ddyen', 'ddyenj', 'ddyenh', 'ddyed', 'ddyel', 'ddyelg', 'ddyelm', 'ddyelb']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b6.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b6.php new file mode 100644 index 000000000..ebaa33d0f --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b6.php @@ -0,0 +1 @@ +<?php return ['ddyels', 'ddyelt', 'ddyelp', 'ddyelh', 'ddyem', 'ddyeb', 'ddyebs', 'ddyes', 'ddyess', 'ddyeng', 'ddyej', 'ddyec', 'ddyek', 'ddyet', 'ddyep', 'ddyeh', 'ddo', 'ddog', 'ddogg', 'ddogs', 'ddon', 'ddonj', 'ddonh', 'ddod', 'ddol', 'ddolg', 'ddolm', 'ddolb', 'ddols', 'ddolt', 'ddolp', 'ddolh', 'ddom', 'ddob', 'ddobs', 'ddos', 'ddoss', 'ddong', 'ddoj', 'ddoc', 'ddok', 'ddot', 'ddop', 'ddoh', 'ddwa', 'ddwag', 'ddwagg', 'ddwags', 'ddwan', 'ddwanj', 'ddwanh', 'ddwad', 'ddwal', 'ddwalg', 'ddwalm', 'ddwalb', 'ddwals', 'ddwalt', 'ddwalp', 'ddwalh', 'ddwam', 'ddwab', 'ddwabs', 'ddwas', 'ddwass', 'ddwang', 'ddwaj', 'ddwac', 'ddwak', 'ddwat', 'ddwap', 'ddwah', 'ddwae', 'ddwaeg', 'ddwaegg', 'ddwaegs', 'ddwaen', 'ddwaenj', 'ddwaenh', 'ddwaed', 'ddwael', 'ddwaelg', 'ddwaelm', 'ddwaelb', 'ddwaels', 'ddwaelt', 'ddwaelp', 'ddwaelh', 'ddwaem', 'ddwaeb', 'ddwaebs', 'ddwaes', 'ddwaess', 'ddwaeng', 'ddwaej', 'ddwaec', 'ddwaek', 'ddwaet', 'ddwaep', 'ddwaeh', 'ddoe', 'ddoeg', 'ddoegg', 'ddoegs', 'ddoen', 'ddoenj', 'ddoenh', 'ddoed', 'ddoel', 'ddoelg', 'ddoelm', 'ddoelb', 'ddoels', 'ddoelt', 'ddoelp', 'ddoelh', 'ddoem', 'ddoeb', 'ddoebs', 'ddoes', 'ddoess', 'ddoeng', 'ddoej', 'ddoec', 'ddoek', 'ddoet', 'ddoep', 'ddoeh', 'ddyo', 'ddyog', 'ddyogg', 'ddyogs', 'ddyon', 'ddyonj', 'ddyonh', 'ddyod', 'ddyol', 'ddyolg', 'ddyolm', 'ddyolb', 'ddyols', 'ddyolt', 'ddyolp', 'ddyolh', 'ddyom', 'ddyob', 'ddyobs', 'ddyos', 'ddyoss', 'ddyong', 'ddyoj', 'ddyoc', 'ddyok', 'ddyot', 'ddyop', 'ddyoh', 'ddu', 'ddug', 'ddugg', 'ddugs', 'ddun', 'ddunj', 'ddunh', 'ddud', 'ddul', 'ddulg', 'ddulm', 'ddulb', 'dduls', 'ddult', 'ddulp', 'ddulh', 'ddum', 'ddub', 'ddubs', 'ddus', 'dduss', 'ddung', 'dduj', 'dduc', 'dduk', 'ddut', 'ddup', 'dduh', 'ddweo', 'ddweog', 'ddweogg', 'ddweogs', 'ddweon', 'ddweonj', 'ddweonh', 'ddweod', 'ddweol', 'ddweolg', 'ddweolm', 'ddweolb', 'ddweols', 'ddweolt', 'ddweolp', 'ddweolh', 'ddweom', 'ddweob', 'ddweobs', 'ddweos', 'ddweoss', 'ddweong', 'ddweoj', 'ddweoc', 'ddweok', 'ddweot', 'ddweop', 'ddweoh', 'ddwe', 'ddweg', 'ddwegg', 'ddwegs', 'ddwen', 'ddwenj', 'ddwenh', 'ddwed', 'ddwel', 'ddwelg', 'ddwelm', 'ddwelb', 'ddwels', 'ddwelt', 'ddwelp', 'ddwelh', 'ddwem', 'ddweb', 'ddwebs', 'ddwes', 'ddwess', 'ddweng', 'ddwej', 'ddwec', 'ddwek', 'ddwet', 'ddwep', 'ddweh', 'ddwi', 'ddwig', 'ddwigg', 'ddwigs', 'ddwin', 'ddwinj', 'ddwinh', 'ddwid', 'ddwil', 'ddwilg', 'ddwilm', 'ddwilb', 'ddwils', 'ddwilt', 'ddwilp', 'ddwilh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b7.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b7.php new file mode 100644 index 000000000..174de9d39 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b7.php @@ -0,0 +1 @@ +<?php return ['ddwim', 'ddwib', 'ddwibs', 'ddwis', 'ddwiss', 'ddwing', 'ddwij', 'ddwic', 'ddwik', 'ddwit', 'ddwip', 'ddwih', 'ddyu', 'ddyug', 'ddyugg', 'ddyugs', 'ddyun', 'ddyunj', 'ddyunh', 'ddyud', 'ddyul', 'ddyulg', 'ddyulm', 'ddyulb', 'ddyuls', 'ddyult', 'ddyulp', 'ddyulh', 'ddyum', 'ddyub', 'ddyubs', 'ddyus', 'ddyuss', 'ddyung', 'ddyuj', 'ddyuc', 'ddyuk', 'ddyut', 'ddyup', 'ddyuh', 'ddeu', 'ddeug', 'ddeugg', 'ddeugs', 'ddeun', 'ddeunj', 'ddeunh', 'ddeud', 'ddeul', 'ddeulg', 'ddeulm', 'ddeulb', 'ddeuls', 'ddeult', 'ddeulp', 'ddeulh', 'ddeum', 'ddeub', 'ddeubs', 'ddeus', 'ddeuss', 'ddeung', 'ddeuj', 'ddeuc', 'ddeuk', 'ddeut', 'ddeup', 'ddeuh', 'ddyi', 'ddyig', 'ddyigg', 'ddyigs', 'ddyin', 'ddyinj', 'ddyinh', 'ddyid', 'ddyil', 'ddyilg', 'ddyilm', 'ddyilb', 'ddyils', 'ddyilt', 'ddyilp', 'ddyilh', 'ddyim', 'ddyib', 'ddyibs', 'ddyis', 'ddyiss', 'ddying', 'ddyij', 'ddyic', 'ddyik', 'ddyit', 'ddyip', 'ddyih', 'ddi', 'ddig', 'ddigg', 'ddigs', 'ddin', 'ddinj', 'ddinh', 'ddid', 'ddil', 'ddilg', 'ddilm', 'ddilb', 'ddils', 'ddilt', 'ddilp', 'ddilh', 'ddim', 'ddib', 'ddibs', 'ddis', 'ddiss', 'dding', 'ddij', 'ddic', 'ddik', 'ddit', 'ddip', 'ddih', 'ra', 'rag', 'ragg', 'rags', 'ran', 'ranj', 'ranh', 'rad', 'ral', 'ralg', 'ralm', 'ralb', 'rals', 'ralt', 'ralp', 'ralh', 'ram', 'rab', 'rabs', 'ras', 'rass', 'rang', 'raj', 'rac', 'rak', 'rat', 'rap', 'rah', 'rae', 'raeg', 'raegg', 'raegs', 'raen', 'raenj', 'raenh', 'raed', 'rael', 'raelg', 'raelm', 'raelb', 'raels', 'raelt', 'raelp', 'raelh', 'raem', 'raeb', 'raebs', 'raes', 'raess', 'raeng', 'raej', 'raec', 'raek', 'raet', 'raep', 'raeh', 'rya', 'ryag', 'ryagg', 'ryags', 'ryan', 'ryanj', 'ryanh', 'ryad', 'ryal', 'ryalg', 'ryalm', 'ryalb', 'ryals', 'ryalt', 'ryalp', 'ryalh', 'ryam', 'ryab', 'ryabs', 'ryas', 'ryass', 'ryang', 'ryaj', 'ryac', 'ryak', 'ryat', 'ryap', 'ryah', 'ryae', 'ryaeg', 'ryaegg', 'ryaegs', 'ryaen', 'ryaenj', 'ryaenh', 'ryaed', 'ryael', 'ryaelg', 'ryaelm', 'ryaelb', 'ryaels', 'ryaelt', 'ryaelp', 'ryaelh', 'ryaem', 'ryaeb', 'ryaebs', 'ryaes', 'ryaess', 'ryaeng', 'ryaej', 'ryaec', 'ryaek', 'ryaet', 'ryaep', 'ryaeh', 'reo', 'reog', 'reogg', 'reogs', 'reon', 'reonj', 'reonh', 'reod', 'reol', 'reolg', 'reolm', 'reolb', 'reols', 'reolt', 'reolp', 'reolh', 'reom', 'reob', 'reobs', 'reos']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b8.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b8.php new file mode 100644 index 000000000..8afbadcfc --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b8.php @@ -0,0 +1 @@ +<?php return ['reoss', 'reong', 'reoj', 'reoc', 'reok', 'reot', 'reop', 'reoh', 're', 'reg', 'regg', 'regs', 'ren', 'renj', 'renh', 'red', 'rel', 'relg', 'relm', 'relb', 'rels', 'relt', 'relp', 'relh', 'rem', 'reb', 'rebs', 'res', 'ress', 'reng', 'rej', 'rec', 'rek', 'ret', 'rep', 'reh', 'ryeo', 'ryeog', 'ryeogg', 'ryeogs', 'ryeon', 'ryeonj', 'ryeonh', 'ryeod', 'ryeol', 'ryeolg', 'ryeolm', 'ryeolb', 'ryeols', 'ryeolt', 'ryeolp', 'ryeolh', 'ryeom', 'ryeob', 'ryeobs', 'ryeos', 'ryeoss', 'ryeong', 'ryeoj', 'ryeoc', 'ryeok', 'ryeot', 'ryeop', 'ryeoh', 'rye', 'ryeg', 'ryegg', 'ryegs', 'ryen', 'ryenj', 'ryenh', 'ryed', 'ryel', 'ryelg', 'ryelm', 'ryelb', 'ryels', 'ryelt', 'ryelp', 'ryelh', 'ryem', 'ryeb', 'ryebs', 'ryes', 'ryess', 'ryeng', 'ryej', 'ryec', 'ryek', 'ryet', 'ryep', 'ryeh', 'ro', 'rog', 'rogg', 'rogs', 'ron', 'ronj', 'ronh', 'rod', 'rol', 'rolg', 'rolm', 'rolb', 'rols', 'rolt', 'rolp', 'rolh', 'rom', 'rob', 'robs', 'ros', 'ross', 'rong', 'roj', 'roc', 'rok', 'rot', 'rop', 'roh', 'rwa', 'rwag', 'rwagg', 'rwags', 'rwan', 'rwanj', 'rwanh', 'rwad', 'rwal', 'rwalg', 'rwalm', 'rwalb', 'rwals', 'rwalt', 'rwalp', 'rwalh', 'rwam', 'rwab', 'rwabs', 'rwas', 'rwass', 'rwang', 'rwaj', 'rwac', 'rwak', 'rwat', 'rwap', 'rwah', 'rwae', 'rwaeg', 'rwaegg', 'rwaegs', 'rwaen', 'rwaenj', 'rwaenh', 'rwaed', 'rwael', 'rwaelg', 'rwaelm', 'rwaelb', 'rwaels', 'rwaelt', 'rwaelp', 'rwaelh', 'rwaem', 'rwaeb', 'rwaebs', 'rwaes', 'rwaess', 'rwaeng', 'rwaej', 'rwaec', 'rwaek', 'rwaet', 'rwaep', 'rwaeh', 'roe', 'roeg', 'roegg', 'roegs', 'roen', 'roenj', 'roenh', 'roed', 'roel', 'roelg', 'roelm', 'roelb', 'roels', 'roelt', 'roelp', 'roelh', 'roem', 'roeb', 'roebs', 'roes', 'roess', 'roeng', 'roej', 'roec', 'roek', 'roet', 'roep', 'roeh', 'ryo', 'ryog', 'ryogg', 'ryogs', 'ryon', 'ryonj', 'ryonh', 'ryod', 'ryol', 'ryolg', 'ryolm', 'ryolb', 'ryols', 'ryolt', 'ryolp', 'ryolh', 'ryom', 'ryob', 'ryobs', 'ryos', 'ryoss', 'ryong', 'ryoj', 'ryoc', 'ryok', 'ryot', 'ryop', 'ryoh', 'ru', 'rug', 'rugg', 'rugs', 'run', 'runj', 'runh', 'rud', 'rul', 'rulg', 'rulm', 'rulb', 'ruls', 'rult', 'rulp', 'rulh', 'rum', 'rub', 'rubs', 'rus', 'russ', 'rung', 'ruj', 'ruc']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0b9.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b9.php new file mode 100644 index 000000000..e5e4b1a9c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0b9.php @@ -0,0 +1 @@ +<?php return ['ruk', 'rut', 'rup', 'ruh', 'rweo', 'rweog', 'rweogg', 'rweogs', 'rweon', 'rweonj', 'rweonh', 'rweod', 'rweol', 'rweolg', 'rweolm', 'rweolb', 'rweols', 'rweolt', 'rweolp', 'rweolh', 'rweom', 'rweob', 'rweobs', 'rweos', 'rweoss', 'rweong', 'rweoj', 'rweoc', 'rweok', 'rweot', 'rweop', 'rweoh', 'rwe', 'rweg', 'rwegg', 'rwegs', 'rwen', 'rwenj', 'rwenh', 'rwed', 'rwel', 'rwelg', 'rwelm', 'rwelb', 'rwels', 'rwelt', 'rwelp', 'rwelh', 'rwem', 'rweb', 'rwebs', 'rwes', 'rwess', 'rweng', 'rwej', 'rwec', 'rwek', 'rwet', 'rwep', 'rweh', 'rwi', 'rwig', 'rwigg', 'rwigs', 'rwin', 'rwinj', 'rwinh', 'rwid', 'rwil', 'rwilg', 'rwilm', 'rwilb', 'rwils', 'rwilt', 'rwilp', 'rwilh', 'rwim', 'rwib', 'rwibs', 'rwis', 'rwiss', 'rwing', 'rwij', 'rwic', 'rwik', 'rwit', 'rwip', 'rwih', 'ryu', 'ryug', 'ryugg', 'ryugs', 'ryun', 'ryunj', 'ryunh', 'ryud', 'ryul', 'ryulg', 'ryulm', 'ryulb', 'ryuls', 'ryult', 'ryulp', 'ryulh', 'ryum', 'ryub', 'ryubs', 'ryus', 'ryuss', 'ryung', 'ryuj', 'ryuc', 'ryuk', 'ryut', 'ryup', 'ryuh', 'reu', 'reug', 'reugg', 'reugs', 'reun', 'reunj', 'reunh', 'reud', 'reul', 'reulg', 'reulm', 'reulb', 'reuls', 'reult', 'reulp', 'reulh', 'reum', 'reub', 'reubs', 'reus', 'reuss', 'reung', 'reuj', 'reuc', 'reuk', 'reut', 'reup', 'reuh', 'ryi', 'ryig', 'ryigg', 'ryigs', 'ryin', 'ryinj', 'ryinh', 'ryid', 'ryil', 'ryilg', 'ryilm', 'ryilb', 'ryils', 'ryilt', 'ryilp', 'ryilh', 'ryim', 'ryib', 'ryibs', 'ryis', 'ryiss', 'rying', 'ryij', 'ryic', 'ryik', 'ryit', 'ryip', 'ryih', 'ri', 'rig', 'rigg', 'rigs', 'rin', 'rinj', 'rinh', 'rid', 'ril', 'rilg', 'rilm', 'rilb', 'rils', 'rilt', 'rilp', 'rilh', 'rim', 'rib', 'ribs', 'ris', 'riss', 'ring', 'rij', 'ric', 'rik', 'rit', 'rip', 'rih', 'ma', 'mag', 'magg', 'mags', 'man', 'manj', 'manh', 'mad', 'mal', 'malg', 'malm', 'malb', 'mals', 'malt', 'malp', 'malh', 'mam', 'mab', 'mabs', 'mas', 'mass', 'mang', 'maj', 'mac', 'mak', 'mat', 'map', 'mah', 'mae', 'maeg', 'maegg', 'maegs', 'maen', 'maenj', 'maenh', 'maed', 'mael', 'maelg', 'maelm', 'maelb', 'maels', 'maelt', 'maelp', 'maelh', 'maem', 'maeb', 'maebs', 'maes', 'maess', 'maeng', 'maej', 'maec', 'maek', 'maet', 'maep', 'maeh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ba.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ba.php new file mode 100644 index 000000000..27148dd32 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ba.php @@ -0,0 +1 @@ +<?php return ['mya', 'myag', 'myagg', 'myags', 'myan', 'myanj', 'myanh', 'myad', 'myal', 'myalg', 'myalm', 'myalb', 'myals', 'myalt', 'myalp', 'myalh', 'myam', 'myab', 'myabs', 'myas', 'myass', 'myang', 'myaj', 'myac', 'myak', 'myat', 'myap', 'myah', 'myae', 'myaeg', 'myaegg', 'myaegs', 'myaen', 'myaenj', 'myaenh', 'myaed', 'myael', 'myaelg', 'myaelm', 'myaelb', 'myaels', 'myaelt', 'myaelp', 'myaelh', 'myaem', 'myaeb', 'myaebs', 'myaes', 'myaess', 'myaeng', 'myaej', 'myaec', 'myaek', 'myaet', 'myaep', 'myaeh', 'meo', 'meog', 'meogg', 'meogs', 'meon', 'meonj', 'meonh', 'meod', 'meol', 'meolg', 'meolm', 'meolb', 'meols', 'meolt', 'meolp', 'meolh', 'meom', 'meob', 'meobs', 'meos', 'meoss', 'meong', 'meoj', 'meoc', 'meok', 'meot', 'meop', 'meoh', 'me', 'meg', 'megg', 'megs', 'men', 'menj', 'menh', 'med', 'mel', 'melg', 'melm', 'melb', 'mels', 'melt', 'melp', 'melh', 'mem', 'meb', 'mebs', 'mes', 'mess', 'meng', 'mej', 'mec', 'mek', 'met', 'mep', 'meh', 'myeo', 'myeog', 'myeogg', 'myeogs', 'myeon', 'myeonj', 'myeonh', 'myeod', 'myeol', 'myeolg', 'myeolm', 'myeolb', 'myeols', 'myeolt', 'myeolp', 'myeolh', 'myeom', 'myeob', 'myeobs', 'myeos', 'myeoss', 'myeong', 'myeoj', 'myeoc', 'myeok', 'myeot', 'myeop', 'myeoh', 'mye', 'myeg', 'myegg', 'myegs', 'myen', 'myenj', 'myenh', 'myed', 'myel', 'myelg', 'myelm', 'myelb', 'myels', 'myelt', 'myelp', 'myelh', 'myem', 'myeb', 'myebs', 'myes', 'myess', 'myeng', 'myej', 'myec', 'myek', 'myet', 'myep', 'myeh', 'mo', 'mog', 'mogg', 'mogs', 'mon', 'monj', 'monh', 'mod', 'mol', 'molg', 'molm', 'molb', 'mols', 'molt', 'molp', 'molh', 'mom', 'mob', 'mobs', 'mos', 'moss', 'mong', 'moj', 'moc', 'mok', 'mot', 'mop', 'moh', 'mwa', 'mwag', 'mwagg', 'mwags', 'mwan', 'mwanj', 'mwanh', 'mwad', 'mwal', 'mwalg', 'mwalm', 'mwalb', 'mwals', 'mwalt', 'mwalp', 'mwalh', 'mwam', 'mwab', 'mwabs', 'mwas', 'mwass', 'mwang', 'mwaj', 'mwac', 'mwak', 'mwat', 'mwap', 'mwah', 'mwae', 'mwaeg', 'mwaegg', 'mwaegs', 'mwaen', 'mwaenj', 'mwaenh', 'mwaed', 'mwael', 'mwaelg', 'mwaelm', 'mwaelb', 'mwaels', 'mwaelt', 'mwaelp', 'mwaelh', 'mwaem', 'mwaeb', 'mwaebs', 'mwaes', 'mwaess', 'mwaeng', 'mwaej', 'mwaec', 'mwaek', 'mwaet', 'mwaep', 'mwaeh', 'moe', 'moeg', 'moegg', 'moegs']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0bb.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bb.php new file mode 100644 index 000000000..f5786e696 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bb.php @@ -0,0 +1 @@ +<?php return ['moen', 'moenj', 'moenh', 'moed', 'moel', 'moelg', 'moelm', 'moelb', 'moels', 'moelt', 'moelp', 'moelh', 'moem', 'moeb', 'moebs', 'moes', 'moess', 'moeng', 'moej', 'moec', 'moek', 'moet', 'moep', 'moeh', 'myo', 'myog', 'myogg', 'myogs', 'myon', 'myonj', 'myonh', 'myod', 'myol', 'myolg', 'myolm', 'myolb', 'myols', 'myolt', 'myolp', 'myolh', 'myom', 'myob', 'myobs', 'myos', 'myoss', 'myong', 'myoj', 'myoc', 'myok', 'myot', 'myop', 'myoh', 'mu', 'mug', 'mugg', 'mugs', 'mun', 'munj', 'munh', 'mud', 'mul', 'mulg', 'mulm', 'mulb', 'muls', 'mult', 'mulp', 'mulh', 'mum', 'mub', 'mubs', 'mus', 'muss', 'mung', 'muj', 'muc', 'muk', 'mut', 'mup', 'muh', 'mweo', 'mweog', 'mweogg', 'mweogs', 'mweon', 'mweonj', 'mweonh', 'mweod', 'mweol', 'mweolg', 'mweolm', 'mweolb', 'mweols', 'mweolt', 'mweolp', 'mweolh', 'mweom', 'mweob', 'mweobs', 'mweos', 'mweoss', 'mweong', 'mweoj', 'mweoc', 'mweok', 'mweot', 'mweop', 'mweoh', 'mwe', 'mweg', 'mwegg', 'mwegs', 'mwen', 'mwenj', 'mwenh', 'mwed', 'mwel', 'mwelg', 'mwelm', 'mwelb', 'mwels', 'mwelt', 'mwelp', 'mwelh', 'mwem', 'mweb', 'mwebs', 'mwes', 'mwess', 'mweng', 'mwej', 'mwec', 'mwek', 'mwet', 'mwep', 'mweh', 'mwi', 'mwig', 'mwigg', 'mwigs', 'mwin', 'mwinj', 'mwinh', 'mwid', 'mwil', 'mwilg', 'mwilm', 'mwilb', 'mwils', 'mwilt', 'mwilp', 'mwilh', 'mwim', 'mwib', 'mwibs', 'mwis', 'mwiss', 'mwing', 'mwij', 'mwic', 'mwik', 'mwit', 'mwip', 'mwih', 'myu', 'myug', 'myugg', 'myugs', 'myun', 'myunj', 'myunh', 'myud', 'myul', 'myulg', 'myulm', 'myulb', 'myuls', 'myult', 'myulp', 'myulh', 'myum', 'myub', 'myubs', 'myus', 'myuss', 'myung', 'myuj', 'myuc', 'myuk', 'myut', 'myup', 'myuh', 'meu', 'meug', 'meugg', 'meugs', 'meun', 'meunj', 'meunh', 'meud', 'meul', 'meulg', 'meulm', 'meulb', 'meuls', 'meult', 'meulp', 'meulh', 'meum', 'meub', 'meubs', 'meus', 'meuss', 'meung', 'meuj', 'meuc', 'meuk', 'meut', 'meup', 'meuh', 'myi', 'myig', 'myigg', 'myigs', 'myin', 'myinj', 'myinh', 'myid', 'myil', 'myilg', 'myilm', 'myilb', 'myils', 'myilt', 'myilp', 'myilh', 'myim', 'myib', 'myibs', 'myis', 'myiss', 'mying', 'myij', 'myic', 'myik', 'myit', 'myip', 'myih', 'mi', 'mig', 'migg', 'migs', 'min', 'minj', 'minh', 'mid']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0bc.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bc.php new file mode 100644 index 000000000..d4df6a26a --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bc.php @@ -0,0 +1 @@ +<?php return ['mil', 'milg', 'milm', 'milb', 'mils', 'milt', 'milp', 'milh', 'mim', 'mib', 'mibs', 'mis', 'miss', 'ming', 'mij', 'mic', 'mik', 'mit', 'mip', 'mih', 'ba', 'bag', 'bagg', 'bags', 'ban', 'banj', 'banh', 'bad', 'bal', 'balg', 'balm', 'balb', 'bals', 'balt', 'balp', 'balh', 'bam', 'bab', 'babs', 'bas', 'bass', 'bang', 'baj', 'bac', 'bak', 'bat', 'bap', 'bah', 'bae', 'baeg', 'baegg', 'baegs', 'baen', 'baenj', 'baenh', 'baed', 'bael', 'baelg', 'baelm', 'baelb', 'baels', 'baelt', 'baelp', 'baelh', 'baem', 'baeb', 'baebs', 'baes', 'baess', 'baeng', 'baej', 'baec', 'baek', 'baet', 'baep', 'baeh', 'bya', 'byag', 'byagg', 'byags', 'byan', 'byanj', 'byanh', 'byad', 'byal', 'byalg', 'byalm', 'byalb', 'byals', 'byalt', 'byalp', 'byalh', 'byam', 'byab', 'byabs', 'byas', 'byass', 'byang', 'byaj', 'byac', 'byak', 'byat', 'byap', 'byah', 'byae', 'byaeg', 'byaegg', 'byaegs', 'byaen', 'byaenj', 'byaenh', 'byaed', 'byael', 'byaelg', 'byaelm', 'byaelb', 'byaels', 'byaelt', 'byaelp', 'byaelh', 'byaem', 'byaeb', 'byaebs', 'byaes', 'byaess', 'byaeng', 'byaej', 'byaec', 'byaek', 'byaet', 'byaep', 'byaeh', 'beo', 'beog', 'beogg', 'beogs', 'beon', 'beonj', 'beonh', 'beod', 'beol', 'beolg', 'beolm', 'beolb', 'beols', 'beolt', 'beolp', 'beolh', 'beom', 'beob', 'beobs', 'beos', 'beoss', 'beong', 'beoj', 'beoc', 'beok', 'beot', 'beop', 'beoh', 'be', 'beg', 'begg', 'begs', 'ben', 'benj', 'benh', 'bed', 'bel', 'belg', 'belm', 'belb', 'bels', 'belt', 'belp', 'belh', 'bem', 'beb', 'bebs', 'bes', 'bess', 'beng', 'bej', 'bec', 'bek', 'bet', 'bep', 'beh', 'byeo', 'byeog', 'byeogg', 'byeogs', 'byeon', 'byeonj', 'byeonh', 'byeod', 'byeol', 'byeolg', 'byeolm', 'byeolb', 'byeols', 'byeolt', 'byeolp', 'byeolh', 'byeom', 'byeob', 'byeobs', 'byeos', 'byeoss', 'byeong', 'byeoj', 'byeoc', 'byeok', 'byeot', 'byeop', 'byeoh', 'bye', 'byeg', 'byegg', 'byegs', 'byen', 'byenj', 'byenh', 'byed', 'byel', 'byelg', 'byelm', 'byelb', 'byels', 'byelt', 'byelp', 'byelh', 'byem', 'byeb', 'byebs', 'byes', 'byess', 'byeng', 'byej', 'byec', 'byek', 'byet', 'byep', 'byeh', 'bo', 'bog', 'bogg', 'bogs', 'bon', 'bonj', 'bonh', 'bod', 'bol', 'bolg', 'bolm', 'bolb']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0bd.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bd.php new file mode 100644 index 000000000..b5f276249 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bd.php @@ -0,0 +1 @@ +<?php return ['bols', 'bolt', 'bolp', 'bolh', 'bom', 'bob', 'bobs', 'bos', 'boss', 'bong', 'boj', 'boc', 'bok', 'bot', 'bop', 'boh', 'bwa', 'bwag', 'bwagg', 'bwags', 'bwan', 'bwanj', 'bwanh', 'bwad', 'bwal', 'bwalg', 'bwalm', 'bwalb', 'bwals', 'bwalt', 'bwalp', 'bwalh', 'bwam', 'bwab', 'bwabs', 'bwas', 'bwass', 'bwang', 'bwaj', 'bwac', 'bwak', 'bwat', 'bwap', 'bwah', 'bwae', 'bwaeg', 'bwaegg', 'bwaegs', 'bwaen', 'bwaenj', 'bwaenh', 'bwaed', 'bwael', 'bwaelg', 'bwaelm', 'bwaelb', 'bwaels', 'bwaelt', 'bwaelp', 'bwaelh', 'bwaem', 'bwaeb', 'bwaebs', 'bwaes', 'bwaess', 'bwaeng', 'bwaej', 'bwaec', 'bwaek', 'bwaet', 'bwaep', 'bwaeh', 'boe', 'boeg', 'boegg', 'boegs', 'boen', 'boenj', 'boenh', 'boed', 'boel', 'boelg', 'boelm', 'boelb', 'boels', 'boelt', 'boelp', 'boelh', 'boem', 'boeb', 'boebs', 'boes', 'boess', 'boeng', 'boej', 'boec', 'boek', 'boet', 'boep', 'boeh', 'byo', 'byog', 'byogg', 'byogs', 'byon', 'byonj', 'byonh', 'byod', 'byol', 'byolg', 'byolm', 'byolb', 'byols', 'byolt', 'byolp', 'byolh', 'byom', 'byob', 'byobs', 'byos', 'byoss', 'byong', 'byoj', 'byoc', 'byok', 'byot', 'byop', 'byoh', 'bu', 'bug', 'bugg', 'bugs', 'bun', 'bunj', 'bunh', 'bud', 'bul', 'bulg', 'bulm', 'bulb', 'buls', 'bult', 'bulp', 'bulh', 'bum', 'bub', 'bubs', 'bus', 'buss', 'bung', 'buj', 'buc', 'buk', 'but', 'bup', 'buh', 'bweo', 'bweog', 'bweogg', 'bweogs', 'bweon', 'bweonj', 'bweonh', 'bweod', 'bweol', 'bweolg', 'bweolm', 'bweolb', 'bweols', 'bweolt', 'bweolp', 'bweolh', 'bweom', 'bweob', 'bweobs', 'bweos', 'bweoss', 'bweong', 'bweoj', 'bweoc', 'bweok', 'bweot', 'bweop', 'bweoh', 'bwe', 'bweg', 'bwegg', 'bwegs', 'bwen', 'bwenj', 'bwenh', 'bwed', 'bwel', 'bwelg', 'bwelm', 'bwelb', 'bwels', 'bwelt', 'bwelp', 'bwelh', 'bwem', 'bweb', 'bwebs', 'bwes', 'bwess', 'bweng', 'bwej', 'bwec', 'bwek', 'bwet', 'bwep', 'bweh', 'bwi', 'bwig', 'bwigg', 'bwigs', 'bwin', 'bwinj', 'bwinh', 'bwid', 'bwil', 'bwilg', 'bwilm', 'bwilb', 'bwils', 'bwilt', 'bwilp', 'bwilh', 'bwim', 'bwib', 'bwibs', 'bwis', 'bwiss', 'bwing', 'bwij', 'bwic', 'bwik', 'bwit', 'bwip', 'bwih', 'byu', 'byug', 'byugg', 'byugs', 'byun', 'byunj', 'byunh', 'byud', 'byul', 'byulg', 'byulm', 'byulb', 'byuls', 'byult', 'byulp', 'byulh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0be.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0be.php new file mode 100644 index 000000000..bd68ab0c8 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0be.php @@ -0,0 +1 @@ +<?php return ['byum', 'byub', 'byubs', 'byus', 'byuss', 'byung', 'byuj', 'byuc', 'byuk', 'byut', 'byup', 'byuh', 'beu', 'beug', 'beugg', 'beugs', 'beun', 'beunj', 'beunh', 'beud', 'beul', 'beulg', 'beulm', 'beulb', 'beuls', 'beult', 'beulp', 'beulh', 'beum', 'beub', 'beubs', 'beus', 'beuss', 'beung', 'beuj', 'beuc', 'beuk', 'beut', 'beup', 'beuh', 'byi', 'byig', 'byigg', 'byigs', 'byin', 'byinj', 'byinh', 'byid', 'byil', 'byilg', 'byilm', 'byilb', 'byils', 'byilt', 'byilp', 'byilh', 'byim', 'byib', 'byibs', 'byis', 'byiss', 'bying', 'byij', 'byic', 'byik', 'byit', 'byip', 'byih', 'bi', 'big', 'bigg', 'bigs', 'bin', 'binj', 'binh', 'bid', 'bil', 'bilg', 'bilm', 'bilb', 'bils', 'bilt', 'bilp', 'bilh', 'bim', 'bib', 'bibs', 'bis', 'biss', 'bing', 'bij', 'bic', 'bik', 'bit', 'bip', 'bih', 'bba', 'bbag', 'bbagg', 'bbags', 'bban', 'bbanj', 'bbanh', 'bbad', 'bbal', 'bbalg', 'bbalm', 'bbalb', 'bbals', 'bbalt', 'bbalp', 'bbalh', 'bbam', 'bbab', 'bbabs', 'bbas', 'bbass', 'bbang', 'bbaj', 'bbac', 'bbak', 'bbat', 'bbap', 'bbah', 'bbae', 'bbaeg', 'bbaegg', 'bbaegs', 'bbaen', 'bbaenj', 'bbaenh', 'bbaed', 'bbael', 'bbaelg', 'bbaelm', 'bbaelb', 'bbaels', 'bbaelt', 'bbaelp', 'bbaelh', 'bbaem', 'bbaeb', 'bbaebs', 'bbaes', 'bbaess', 'bbaeng', 'bbaej', 'bbaec', 'bbaek', 'bbaet', 'bbaep', 'bbaeh', 'bbya', 'bbyag', 'bbyagg', 'bbyags', 'bbyan', 'bbyanj', 'bbyanh', 'bbyad', 'bbyal', 'bbyalg', 'bbyalm', 'bbyalb', 'bbyals', 'bbyalt', 'bbyalp', 'bbyalh', 'bbyam', 'bbyab', 'bbyabs', 'bbyas', 'bbyass', 'bbyang', 'bbyaj', 'bbyac', 'bbyak', 'bbyat', 'bbyap', 'bbyah', 'bbyae', 'bbyaeg', 'bbyaegg', 'bbyaegs', 'bbyaen', 'bbyaenj', 'bbyaenh', 'bbyaed', 'bbyael', 'bbyaelg', 'bbyaelm', 'bbyaelb', 'bbyaels', 'bbyaelt', 'bbyaelp', 'bbyaelh', 'bbyaem', 'bbyaeb', 'bbyaebs', 'bbyaes', 'bbyaess', 'bbyaeng', 'bbyaej', 'bbyaec', 'bbyaek', 'bbyaet', 'bbyaep', 'bbyaeh', 'bbeo', 'bbeog', 'bbeogg', 'bbeogs', 'bbeon', 'bbeonj', 'bbeonh', 'bbeod', 'bbeol', 'bbeolg', 'bbeolm', 'bbeolb', 'bbeols', 'bbeolt', 'bbeolp', 'bbeolh', 'bbeom', 'bbeob', 'bbeobs', 'bbeos', 'bbeoss', 'bbeong', 'bbeoj', 'bbeoc', 'bbeok', 'bbeot', 'bbeop', 'bbeoh', 'bbe', 'bbeg', 'bbegg', 'bbegs', 'bben', 'bbenj', 'bbenh', 'bbed', 'bbel', 'bbelg', 'bbelm', 'bbelb', 'bbels', 'bbelt', 'bbelp', 'bbelh', 'bbem', 'bbeb', 'bbebs', 'bbes']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0bf.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bf.php new file mode 100644 index 000000000..ddca88e70 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0bf.php @@ -0,0 +1 @@ +<?php return ['bbess', 'bbeng', 'bbej', 'bbec', 'bbek', 'bbet', 'bbep', 'bbeh', 'bbyeo', 'bbyeog', 'bbyeogg', 'bbyeogs', 'bbyeon', 'bbyeonj', 'bbyeonh', 'bbyeod', 'bbyeol', 'bbyeolg', 'bbyeolm', 'bbyeolb', 'bbyeols', 'bbyeolt', 'bbyeolp', 'bbyeolh', 'bbyeom', 'bbyeob', 'bbyeobs', 'bbyeos', 'bbyeoss', 'bbyeong', 'bbyeoj', 'bbyeoc', 'bbyeok', 'bbyeot', 'bbyeop', 'bbyeoh', 'bbye', 'bbyeg', 'bbyegg', 'bbyegs', 'bbyen', 'bbyenj', 'bbyenh', 'bbyed', 'bbyel', 'bbyelg', 'bbyelm', 'bbyelb', 'bbyels', 'bbyelt', 'bbyelp', 'bbyelh', 'bbyem', 'bbyeb', 'bbyebs', 'bbyes', 'bbyess', 'bbyeng', 'bbyej', 'bbyec', 'bbyek', 'bbyet', 'bbyep', 'bbyeh', 'bbo', 'bbog', 'bbogg', 'bbogs', 'bbon', 'bbonj', 'bbonh', 'bbod', 'bbol', 'bbolg', 'bbolm', 'bbolb', 'bbols', 'bbolt', 'bbolp', 'bbolh', 'bbom', 'bbob', 'bbobs', 'bbos', 'bboss', 'bbong', 'bboj', 'bboc', 'bbok', 'bbot', 'bbop', 'bboh', 'bbwa', 'bbwag', 'bbwagg', 'bbwags', 'bbwan', 'bbwanj', 'bbwanh', 'bbwad', 'bbwal', 'bbwalg', 'bbwalm', 'bbwalb', 'bbwals', 'bbwalt', 'bbwalp', 'bbwalh', 'bbwam', 'bbwab', 'bbwabs', 'bbwas', 'bbwass', 'bbwang', 'bbwaj', 'bbwac', 'bbwak', 'bbwat', 'bbwap', 'bbwah', 'bbwae', 'bbwaeg', 'bbwaegg', 'bbwaegs', 'bbwaen', 'bbwaenj', 'bbwaenh', 'bbwaed', 'bbwael', 'bbwaelg', 'bbwaelm', 'bbwaelb', 'bbwaels', 'bbwaelt', 'bbwaelp', 'bbwaelh', 'bbwaem', 'bbwaeb', 'bbwaebs', 'bbwaes', 'bbwaess', 'bbwaeng', 'bbwaej', 'bbwaec', 'bbwaek', 'bbwaet', 'bbwaep', 'bbwaeh', 'bboe', 'bboeg', 'bboegg', 'bboegs', 'bboen', 'bboenj', 'bboenh', 'bboed', 'bboel', 'bboelg', 'bboelm', 'bboelb', 'bboels', 'bboelt', 'bboelp', 'bboelh', 'bboem', 'bboeb', 'bboebs', 'bboes', 'bboess', 'bboeng', 'bboej', 'bboec', 'bboek', 'bboet', 'bboep', 'bboeh', 'bbyo', 'bbyog', 'bbyogg', 'bbyogs', 'bbyon', 'bbyonj', 'bbyonh', 'bbyod', 'bbyol', 'bbyolg', 'bbyolm', 'bbyolb', 'bbyols', 'bbyolt', 'bbyolp', 'bbyolh', 'bbyom', 'bbyob', 'bbyobs', 'bbyos', 'bbyoss', 'bbyong', 'bbyoj', 'bbyoc', 'bbyok', 'bbyot', 'bbyop', 'bbyoh', 'bbu', 'bbug', 'bbugg', 'bbugs', 'bbun', 'bbunj', 'bbunh', 'bbud', 'bbul', 'bbulg', 'bbulm', 'bbulb', 'bbuls', 'bbult', 'bbulp', 'bbulh', 'bbum', 'bbub', 'bbubs', 'bbus', 'bbuss', 'bbung', 'bbuj', 'bbuc', 'bbuk', 'bbut', 'bbup', 'bbuh', 'bbweo', 'bbweog', 'bbweogg', 'bbweogs', 'bbweon', 'bbweonj', 'bbweonh', 'bbweod', 'bbweol', 'bbweolg', 'bbweolm', 'bbweolb', 'bbweols', 'bbweolt', 'bbweolp', 'bbweolh', 'bbweom', 'bbweob', 'bbweobs', 'bbweos', 'bbweoss', 'bbweong', 'bbweoj', 'bbweoc']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c0.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c0.php new file mode 100644 index 000000000..c664e3e93 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c0.php @@ -0,0 +1 @@ +<?php return ['bbweok', 'bbweot', 'bbweop', 'bbweoh', 'bbwe', 'bbweg', 'bbwegg', 'bbwegs', 'bbwen', 'bbwenj', 'bbwenh', 'bbwed', 'bbwel', 'bbwelg', 'bbwelm', 'bbwelb', 'bbwels', 'bbwelt', 'bbwelp', 'bbwelh', 'bbwem', 'bbweb', 'bbwebs', 'bbwes', 'bbwess', 'bbweng', 'bbwej', 'bbwec', 'bbwek', 'bbwet', 'bbwep', 'bbweh', 'bbwi', 'bbwig', 'bbwigg', 'bbwigs', 'bbwin', 'bbwinj', 'bbwinh', 'bbwid', 'bbwil', 'bbwilg', 'bbwilm', 'bbwilb', 'bbwils', 'bbwilt', 'bbwilp', 'bbwilh', 'bbwim', 'bbwib', 'bbwibs', 'bbwis', 'bbwiss', 'bbwing', 'bbwij', 'bbwic', 'bbwik', 'bbwit', 'bbwip', 'bbwih', 'bbyu', 'bbyug', 'bbyugg', 'bbyugs', 'bbyun', 'bbyunj', 'bbyunh', 'bbyud', 'bbyul', 'bbyulg', 'bbyulm', 'bbyulb', 'bbyuls', 'bbyult', 'bbyulp', 'bbyulh', 'bbyum', 'bbyub', 'bbyubs', 'bbyus', 'bbyuss', 'bbyung', 'bbyuj', 'bbyuc', 'bbyuk', 'bbyut', 'bbyup', 'bbyuh', 'bbeu', 'bbeug', 'bbeugg', 'bbeugs', 'bbeun', 'bbeunj', 'bbeunh', 'bbeud', 'bbeul', 'bbeulg', 'bbeulm', 'bbeulb', 'bbeuls', 'bbeult', 'bbeulp', 'bbeulh', 'bbeum', 'bbeub', 'bbeubs', 'bbeus', 'bbeuss', 'bbeung', 'bbeuj', 'bbeuc', 'bbeuk', 'bbeut', 'bbeup', 'bbeuh', 'bbyi', 'bbyig', 'bbyigg', 'bbyigs', 'bbyin', 'bbyinj', 'bbyinh', 'bbyid', 'bbyil', 'bbyilg', 'bbyilm', 'bbyilb', 'bbyils', 'bbyilt', 'bbyilp', 'bbyilh', 'bbyim', 'bbyib', 'bbyibs', 'bbyis', 'bbyiss', 'bbying', 'bbyij', 'bbyic', 'bbyik', 'bbyit', 'bbyip', 'bbyih', 'bbi', 'bbig', 'bbigg', 'bbigs', 'bbin', 'bbinj', 'bbinh', 'bbid', 'bbil', 'bbilg', 'bbilm', 'bbilb', 'bbils', 'bbilt', 'bbilp', 'bbilh', 'bbim', 'bbib', 'bbibs', 'bbis', 'bbiss', 'bbing', 'bbij', 'bbic', 'bbik', 'bbit', 'bbip', 'bbih', 'sa', 'sag', 'sagg', 'sags', 'san', 'sanj', 'sanh', 'sad', 'sal', 'salg', 'salm', 'salb', 'sals', 'salt', 'salp', 'salh', 'sam', 'sab', 'sabs', 'sas', 'sass', 'sang', 'saj', 'sac', 'sak', 'sat', 'sap', 'sah', 'sae', 'saeg', 'saegg', 'saegs', 'saen', 'saenj', 'saenh', 'saed', 'sael', 'saelg', 'saelm', 'saelb', 'saels', 'saelt', 'saelp', 'saelh', 'saem', 'saeb', 'saebs', 'saes', 'saess', 'saeng', 'saej', 'saec', 'saek', 'saet', 'saep', 'saeh', 'sya', 'syag', 'syagg', 'syags', 'syan', 'syanj', 'syanh', 'syad', 'syal', 'syalg', 'syalm', 'syalb', 'syals', 'syalt', 'syalp', 'syalh', 'syam', 'syab', 'syabs', 'syas', 'syass', 'syang', 'syaj', 'syac', 'syak', 'syat', 'syap', 'syah']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c1.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c1.php new file mode 100644 index 000000000..03bf4afec --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c1.php @@ -0,0 +1 @@ +<?php return ['syae', 'syaeg', 'syaegg', 'syaegs', 'syaen', 'syaenj', 'syaenh', 'syaed', 'syael', 'syaelg', 'syaelm', 'syaelb', 'syaels', 'syaelt', 'syaelp', 'syaelh', 'syaem', 'syaeb', 'syaebs', 'syaes', 'syaess', 'syaeng', 'syaej', 'syaec', 'syaek', 'syaet', 'syaep', 'syaeh', 'seo', 'seog', 'seogg', 'seogs', 'seon', 'seonj', 'seonh', 'seod', 'seol', 'seolg', 'seolm', 'seolb', 'seols', 'seolt', 'seolp', 'seolh', 'seom', 'seob', 'seobs', 'seos', 'seoss', 'seong', 'seoj', 'seoc', 'seok', 'seot', 'seop', 'seoh', 'se', 'seg', 'segg', 'segs', 'sen', 'senj', 'senh', 'sed', 'sel', 'selg', 'selm', 'selb', 'sels', 'selt', 'selp', 'selh', 'sem', 'seb', 'sebs', 'ses', 'sess', 'seng', 'sej', 'sec', 'sek', 'set', 'sep', 'seh', 'syeo', 'syeog', 'syeogg', 'syeogs', 'syeon', 'syeonj', 'syeonh', 'syeod', 'syeol', 'syeolg', 'syeolm', 'syeolb', 'syeols', 'syeolt', 'syeolp', 'syeolh', 'syeom', 'syeob', 'syeobs', 'syeos', 'syeoss', 'syeong', 'syeoj', 'syeoc', 'syeok', 'syeot', 'syeop', 'syeoh', 'sye', 'syeg', 'syegg', 'syegs', 'syen', 'syenj', 'syenh', 'syed', 'syel', 'syelg', 'syelm', 'syelb', 'syels', 'syelt', 'syelp', 'syelh', 'syem', 'syeb', 'syebs', 'syes', 'syess', 'syeng', 'syej', 'syec', 'syek', 'syet', 'syep', 'syeh', 'so', 'sog', 'sogg', 'sogs', 'son', 'sonj', 'sonh', 'sod', 'sol', 'solg', 'solm', 'solb', 'sols', 'solt', 'solp', 'solh', 'som', 'sob', 'sobs', 'sos', 'soss', 'song', 'soj', 'soc', 'sok', 'sot', 'sop', 'soh', 'swa', 'swag', 'swagg', 'swags', 'swan', 'swanj', 'swanh', 'swad', 'swal', 'swalg', 'swalm', 'swalb', 'swals', 'swalt', 'swalp', 'swalh', 'swam', 'swab', 'swabs', 'swas', 'swass', 'swang', 'swaj', 'swac', 'swak', 'swat', 'swap', 'swah', 'swae', 'swaeg', 'swaegg', 'swaegs', 'swaen', 'swaenj', 'swaenh', 'swaed', 'swael', 'swaelg', 'swaelm', 'swaelb', 'swaels', 'swaelt', 'swaelp', 'swaelh', 'swaem', 'swaeb', 'swaebs', 'swaes', 'swaess', 'swaeng', 'swaej', 'swaec', 'swaek', 'swaet', 'swaep', 'swaeh', 'soe', 'soeg', 'soegg', 'soegs', 'soen', 'soenj', 'soenh', 'soed', 'soel', 'soelg', 'soelm', 'soelb', 'soels', 'soelt', 'soelp', 'soelh', 'soem', 'soeb', 'soebs', 'soes', 'soess', 'soeng', 'soej', 'soec', 'soek', 'soet', 'soep', 'soeh', 'syo', 'syog', 'syogg', 'syogs']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c2.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c2.php new file mode 100644 index 000000000..5d87b6d23 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c2.php @@ -0,0 +1 @@ +<?php return ['syon', 'syonj', 'syonh', 'syod', 'syol', 'syolg', 'syolm', 'syolb', 'syols', 'syolt', 'syolp', 'syolh', 'syom', 'syob', 'syobs', 'syos', 'syoss', 'syong', 'syoj', 'syoc', 'syok', 'syot', 'syop', 'syoh', 'su', 'sug', 'sugg', 'sugs', 'sun', 'sunj', 'sunh', 'sud', 'sul', 'sulg', 'sulm', 'sulb', 'suls', 'sult', 'sulp', 'sulh', 'sum', 'sub', 'subs', 'sus', 'suss', 'sung', 'suj', 'suc', 'suk', 'sut', 'sup', 'suh', 'sweo', 'sweog', 'sweogg', 'sweogs', 'sweon', 'sweonj', 'sweonh', 'sweod', 'sweol', 'sweolg', 'sweolm', 'sweolb', 'sweols', 'sweolt', 'sweolp', 'sweolh', 'sweom', 'sweob', 'sweobs', 'sweos', 'sweoss', 'sweong', 'sweoj', 'sweoc', 'sweok', 'sweot', 'sweop', 'sweoh', 'swe', 'sweg', 'swegg', 'swegs', 'swen', 'swenj', 'swenh', 'swed', 'swel', 'swelg', 'swelm', 'swelb', 'swels', 'swelt', 'swelp', 'swelh', 'swem', 'sweb', 'swebs', 'swes', 'swess', 'sweng', 'swej', 'swec', 'swek', 'swet', 'swep', 'sweh', 'swi', 'swig', 'swigg', 'swigs', 'swin', 'swinj', 'swinh', 'swid', 'swil', 'swilg', 'swilm', 'swilb', 'swils', 'swilt', 'swilp', 'swilh', 'swim', 'swib', 'swibs', 'swis', 'swiss', 'swing', 'swij', 'swic', 'swik', 'swit', 'swip', 'swih', 'syu', 'syug', 'syugg', 'syugs', 'syun', 'syunj', 'syunh', 'syud', 'syul', 'syulg', 'syulm', 'syulb', 'syuls', 'syult', 'syulp', 'syulh', 'syum', 'syub', 'syubs', 'syus', 'syuss', 'syung', 'syuj', 'syuc', 'syuk', 'syut', 'syup', 'syuh', 'seu', 'seug', 'seugg', 'seugs', 'seun', 'seunj', 'seunh', 'seud', 'seul', 'seulg', 'seulm', 'seulb', 'seuls', 'seult', 'seulp', 'seulh', 'seum', 'seub', 'seubs', 'seus', 'seuss', 'seung', 'seuj', 'seuc', 'seuk', 'seut', 'seup', 'seuh', 'syi', 'syig', 'syigg', 'syigs', 'syin', 'syinj', 'syinh', 'syid', 'syil', 'syilg', 'syilm', 'syilb', 'syils', 'syilt', 'syilp', 'syilh', 'syim', 'syib', 'syibs', 'syis', 'syiss', 'sying', 'syij', 'syic', 'syik', 'syit', 'syip', 'syih', 'si', 'sig', 'sigg', 'sigs', 'sin', 'sinj', 'sinh', 'sid', 'sil', 'silg', 'silm', 'silb', 'sils', 'silt', 'silp', 'silh', 'sim', 'sib', 'sibs', 'sis', 'siss', 'sing', 'sij', 'sic', 'sik', 'sit', 'sip', 'sih', 'ssa', 'ssag', 'ssagg', 'ssags', 'ssan', 'ssanj', 'ssanh', 'ssad']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c3.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c3.php new file mode 100644 index 000000000..d038f56d5 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c3.php @@ -0,0 +1 @@ +<?php return ['ssal', 'ssalg', 'ssalm', 'ssalb', 'ssals', 'ssalt', 'ssalp', 'ssalh', 'ssam', 'ssab', 'ssabs', 'ssas', 'ssass', 'ssang', 'ssaj', 'ssac', 'ssak', 'ssat', 'ssap', 'ssah', 'ssae', 'ssaeg', 'ssaegg', 'ssaegs', 'ssaen', 'ssaenj', 'ssaenh', 'ssaed', 'ssael', 'ssaelg', 'ssaelm', 'ssaelb', 'ssaels', 'ssaelt', 'ssaelp', 'ssaelh', 'ssaem', 'ssaeb', 'ssaebs', 'ssaes', 'ssaess', 'ssaeng', 'ssaej', 'ssaec', 'ssaek', 'ssaet', 'ssaep', 'ssaeh', 'ssya', 'ssyag', 'ssyagg', 'ssyags', 'ssyan', 'ssyanj', 'ssyanh', 'ssyad', 'ssyal', 'ssyalg', 'ssyalm', 'ssyalb', 'ssyals', 'ssyalt', 'ssyalp', 'ssyalh', 'ssyam', 'ssyab', 'ssyabs', 'ssyas', 'ssyass', 'ssyang', 'ssyaj', 'ssyac', 'ssyak', 'ssyat', 'ssyap', 'ssyah', 'ssyae', 'ssyaeg', 'ssyaegg', 'ssyaegs', 'ssyaen', 'ssyaenj', 'ssyaenh', 'ssyaed', 'ssyael', 'ssyaelg', 'ssyaelm', 'ssyaelb', 'ssyaels', 'ssyaelt', 'ssyaelp', 'ssyaelh', 'ssyaem', 'ssyaeb', 'ssyaebs', 'ssyaes', 'ssyaess', 'ssyaeng', 'ssyaej', 'ssyaec', 'ssyaek', 'ssyaet', 'ssyaep', 'ssyaeh', 'sseo', 'sseog', 'sseogg', 'sseogs', 'sseon', 'sseonj', 'sseonh', 'sseod', 'sseol', 'sseolg', 'sseolm', 'sseolb', 'sseols', 'sseolt', 'sseolp', 'sseolh', 'sseom', 'sseob', 'sseobs', 'sseos', 'sseoss', 'sseong', 'sseoj', 'sseoc', 'sseok', 'sseot', 'sseop', 'sseoh', 'sse', 'sseg', 'ssegg', 'ssegs', 'ssen', 'ssenj', 'ssenh', 'ssed', 'ssel', 'sselg', 'sselm', 'sselb', 'ssels', 'sselt', 'sselp', 'sselh', 'ssem', 'sseb', 'ssebs', 'sses', 'ssess', 'sseng', 'ssej', 'ssec', 'ssek', 'sset', 'ssep', 'sseh', 'ssyeo', 'ssyeog', 'ssyeogg', 'ssyeogs', 'ssyeon', 'ssyeonj', 'ssyeonh', 'ssyeod', 'ssyeol', 'ssyeolg', 'ssyeolm', 'ssyeolb', 'ssyeols', 'ssyeolt', 'ssyeolp', 'ssyeolh', 'ssyeom', 'ssyeob', 'ssyeobs', 'ssyeos', 'ssyeoss', 'ssyeong', 'ssyeoj', 'ssyeoc', 'ssyeok', 'ssyeot', 'ssyeop', 'ssyeoh', 'ssye', 'ssyeg', 'ssyegg', 'ssyegs', 'ssyen', 'ssyenj', 'ssyenh', 'ssyed', 'ssyel', 'ssyelg', 'ssyelm', 'ssyelb', 'ssyels', 'ssyelt', 'ssyelp', 'ssyelh', 'ssyem', 'ssyeb', 'ssyebs', 'ssyes', 'ssyess', 'ssyeng', 'ssyej', 'ssyec', 'ssyek', 'ssyet', 'ssyep', 'ssyeh', 'sso', 'ssog', 'ssogg', 'ssogs', 'sson', 'ssonj', 'ssonh', 'ssod', 'ssol', 'ssolg', 'ssolm', 'ssolb', 'ssols', 'ssolt', 'ssolp', 'ssolh', 'ssom', 'ssob', 'ssobs', 'ssos', 'ssoss', 'ssong', 'ssoj', 'ssoc', 'ssok', 'ssot', 'ssop', 'ssoh', 'sswa', 'sswag', 'sswagg', 'sswags', 'sswan', 'sswanj', 'sswanh', 'sswad', 'sswal', 'sswalg', 'sswalm', 'sswalb']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c4.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c4.php new file mode 100644 index 000000000..e23434184 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c4.php @@ -0,0 +1 @@ +<?php return ['sswals', 'sswalt', 'sswalp', 'sswalh', 'sswam', 'sswab', 'sswabs', 'sswas', 'sswass', 'sswang', 'sswaj', 'sswac', 'sswak', 'sswat', 'sswap', 'sswah', 'sswae', 'sswaeg', 'sswaegg', 'sswaegs', 'sswaen', 'sswaenj', 'sswaenh', 'sswaed', 'sswael', 'sswaelg', 'sswaelm', 'sswaelb', 'sswaels', 'sswaelt', 'sswaelp', 'sswaelh', 'sswaem', 'sswaeb', 'sswaebs', 'sswaes', 'sswaess', 'sswaeng', 'sswaej', 'sswaec', 'sswaek', 'sswaet', 'sswaep', 'sswaeh', 'ssoe', 'ssoeg', 'ssoegg', 'ssoegs', 'ssoen', 'ssoenj', 'ssoenh', 'ssoed', 'ssoel', 'ssoelg', 'ssoelm', 'ssoelb', 'ssoels', 'ssoelt', 'ssoelp', 'ssoelh', 'ssoem', 'ssoeb', 'ssoebs', 'ssoes', 'ssoess', 'ssoeng', 'ssoej', 'ssoec', 'ssoek', 'ssoet', 'ssoep', 'ssoeh', 'ssyo', 'ssyog', 'ssyogg', 'ssyogs', 'ssyon', 'ssyonj', 'ssyonh', 'ssyod', 'ssyol', 'ssyolg', 'ssyolm', 'ssyolb', 'ssyols', 'ssyolt', 'ssyolp', 'ssyolh', 'ssyom', 'ssyob', 'ssyobs', 'ssyos', 'ssyoss', 'ssyong', 'ssyoj', 'ssyoc', 'ssyok', 'ssyot', 'ssyop', 'ssyoh', 'ssu', 'ssug', 'ssugg', 'ssugs', 'ssun', 'ssunj', 'ssunh', 'ssud', 'ssul', 'ssulg', 'ssulm', 'ssulb', 'ssuls', 'ssult', 'ssulp', 'ssulh', 'ssum', 'ssub', 'ssubs', 'ssus', 'ssuss', 'ssung', 'ssuj', 'ssuc', 'ssuk', 'ssut', 'ssup', 'ssuh', 'ssweo', 'ssweog', 'ssweogg', 'ssweogs', 'ssweon', 'ssweonj', 'ssweonh', 'ssweod', 'ssweol', 'ssweolg', 'ssweolm', 'ssweolb', 'ssweols', 'ssweolt', 'ssweolp', 'ssweolh', 'ssweom', 'ssweob', 'ssweobs', 'ssweos', 'ssweoss', 'ssweong', 'ssweoj', 'ssweoc', 'ssweok', 'ssweot', 'ssweop', 'ssweoh', 'sswe', 'ssweg', 'sswegg', 'sswegs', 'sswen', 'sswenj', 'sswenh', 'sswed', 'sswel', 'sswelg', 'sswelm', 'sswelb', 'sswels', 'sswelt', 'sswelp', 'sswelh', 'sswem', 'ssweb', 'sswebs', 'sswes', 'sswess', 'ssweng', 'sswej', 'sswec', 'sswek', 'sswet', 'sswep', 'ssweh', 'sswi', 'sswig', 'sswigg', 'sswigs', 'sswin', 'sswinj', 'sswinh', 'sswid', 'sswil', 'sswilg', 'sswilm', 'sswilb', 'sswils', 'sswilt', 'sswilp', 'sswilh', 'sswim', 'sswib', 'sswibs', 'sswis', 'sswiss', 'sswing', 'sswij', 'sswic', 'sswik', 'sswit', 'sswip', 'sswih', 'ssyu', 'ssyug', 'ssyugg', 'ssyugs', 'ssyun', 'ssyunj', 'ssyunh', 'ssyud', 'ssyul', 'ssyulg', 'ssyulm', 'ssyulb', 'ssyuls', 'ssyult', 'ssyulp', 'ssyulh', 'ssyum', 'ssyub', 'ssyubs', 'ssyus', 'ssyuss', 'ssyung', 'ssyuj', 'ssyuc', 'ssyuk', 'ssyut', 'ssyup', 'ssyuh', 'sseu', 'sseug', 'sseugg', 'sseugs', 'sseun', 'sseunj', 'sseunh', 'sseud', 'sseul', 'sseulg', 'sseulm', 'sseulb', 'sseuls', 'sseult', 'sseulp', 'sseulh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c5.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c5.php new file mode 100644 index 000000000..90c8fbd23 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c5.php @@ -0,0 +1 @@ +<?php return ['sseum', 'sseub', 'sseubs', 'sseus', 'sseuss', 'sseung', 'sseuj', 'sseuc', 'sseuk', 'sseut', 'sseup', 'sseuh', 'ssyi', 'ssyig', 'ssyigg', 'ssyigs', 'ssyin', 'ssyinj', 'ssyinh', 'ssyid', 'ssyil', 'ssyilg', 'ssyilm', 'ssyilb', 'ssyils', 'ssyilt', 'ssyilp', 'ssyilh', 'ssyim', 'ssyib', 'ssyibs', 'ssyis', 'ssyiss', 'ssying', 'ssyij', 'ssyic', 'ssyik', 'ssyit', 'ssyip', 'ssyih', 'ssi', 'ssig', 'ssigg', 'ssigs', 'ssin', 'ssinj', 'ssinh', 'ssid', 'ssil', 'ssilg', 'ssilm', 'ssilb', 'ssils', 'ssilt', 'ssilp', 'ssilh', 'ssim', 'ssib', 'ssibs', 'ssis', 'ssiss', 'ssing', 'ssij', 'ssic', 'ssik', 'ssit', 'ssip', 'ssih', 'a', 'ag', 'agg', 'ags', 'an', 'anj', 'anh', 'ad', 'al', 'alg', 'alm', 'alb', 'als', 'alt', 'alp', 'alh', 'am', 'ab', 'abs', 'as', 'ass', 'ang', 'aj', 'ac', 'ak', 'at', 'ap', 'ah', 'ae', 'aeg', 'aegg', 'aegs', 'aen', 'aenj', 'aenh', 'aed', 'ael', 'aelg', 'aelm', 'aelb', 'aels', 'aelt', 'aelp', 'aelh', 'aem', 'aeb', 'aebs', 'aes', 'aess', 'aeng', 'aej', 'aec', 'aek', 'aet', 'aep', 'aeh', 'ya', 'yag', 'yagg', 'yags', 'yan', 'yanj', 'yanh', 'yad', 'yal', 'yalg', 'yalm', 'yalb', 'yals', 'yalt', 'yalp', 'yalh', 'yam', 'yab', 'yabs', 'yas', 'yass', 'yang', 'yaj', 'yac', 'yak', 'yat', 'yap', 'yah', 'yae', 'yaeg', 'yaegg', 'yaegs', 'yaen', 'yaenj', 'yaenh', 'yaed', 'yael', 'yaelg', 'yaelm', 'yaelb', 'yaels', 'yaelt', 'yaelp', 'yaelh', 'yaem', 'yaeb', 'yaebs', 'yaes', 'yaess', 'yaeng', 'yaej', 'yaec', 'yaek', 'yaet', 'yaep', 'yaeh', 'eo', 'eog', 'eogg', 'eogs', 'eon', 'eonj', 'eonh', 'eod', 'eol', 'eolg', 'eolm', 'eolb', 'eols', 'eolt', 'eolp', 'eolh', 'eom', 'eob', 'eobs', 'eos', 'eoss', 'eong', 'eoj', 'eoc', 'eok', 'eot', 'eop', 'eoh', 'e', 'eg', 'egg', 'egs', 'en', 'enj', 'enh', 'ed', 'el', 'elg', 'elm', 'elb', 'els', 'elt', 'elp', 'elh', 'em', 'eb', 'ebs', 'es', 'ess', 'eng', 'ej', 'ec', 'ek', 'et', 'ep', 'eh', 'yeo', 'yeog', 'yeogg', 'yeogs', 'yeon', 'yeonj', 'yeonh', 'yeod', 'yeol', 'yeolg', 'yeolm', 'yeolb', 'yeols', 'yeolt', 'yeolp', 'yeolh', 'yeom', 'yeob', 'yeobs', 'yeos']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c6.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c6.php new file mode 100644 index 000000000..5e5993aaf --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c6.php @@ -0,0 +1 @@ +<?php return ['yeoss', 'yeong', 'yeoj', 'yeoc', 'yeok', 'yeot', 'yeop', 'yeoh', 'ye', 'yeg', 'yegg', 'yegs', 'yen', 'yenj', 'yenh', 'yed', 'yel', 'yelg', 'yelm', 'yelb', 'yels', 'yelt', 'yelp', 'yelh', 'yem', 'yeb', 'yebs', 'yes', 'yess', 'yeng', 'yej', 'yec', 'yek', 'yet', 'yep', 'yeh', 'o', 'og', 'ogg', 'ogs', 'on', 'onj', 'onh', 'od', 'ol', 'olg', 'olm', 'olb', 'ols', 'olt', 'olp', 'olh', 'om', 'ob', 'obs', 'os', 'oss', 'ong', 'oj', 'oc', 'ok', 'ot', 'op', 'oh', 'wa', 'wag', 'wagg', 'wags', 'wan', 'wanj', 'wanh', 'wad', 'wal', 'walg', 'walm', 'walb', 'wals', 'walt', 'walp', 'walh', 'wam', 'wab', 'wabs', 'was', 'wass', 'wang', 'waj', 'wac', 'wak', 'wat', 'wap', 'wah', 'wae', 'waeg', 'waegg', 'waegs', 'waen', 'waenj', 'waenh', 'waed', 'wael', 'waelg', 'waelm', 'waelb', 'waels', 'waelt', 'waelp', 'waelh', 'waem', 'waeb', 'waebs', 'waes', 'waess', 'waeng', 'waej', 'waec', 'waek', 'waet', 'waep', 'waeh', 'oe', 'oeg', 'oegg', 'oegs', 'oen', 'oenj', 'oenh', 'oed', 'oel', 'oelg', 'oelm', 'oelb', 'oels', 'oelt', 'oelp', 'oelh', 'oem', 'oeb', 'oebs', 'oes', 'oess', 'oeng', 'oej', 'oec', 'oek', 'oet', 'oep', 'oeh', 'yo', 'yog', 'yogg', 'yogs', 'yon', 'yonj', 'yonh', 'yod', 'yol', 'yolg', 'yolm', 'yolb', 'yols', 'yolt', 'yolp', 'yolh', 'yom', 'yob', 'yobs', 'yos', 'yoss', 'yong', 'yoj', 'yoc', 'yok', 'yot', 'yop', 'yoh', 'u', 'ug', 'ugg', 'ugs', 'un', 'unj', 'unh', 'ud', 'ul', 'ulg', 'ulm', 'ulb', 'uls', 'ult', 'ulp', 'ulh', 'um', 'ub', 'ubs', 'us', 'uss', 'ung', 'uj', 'uc', 'uk', 'ut', 'up', 'uh', 'weo', 'weog', 'weogg', 'weogs', 'weon', 'weonj', 'weonh', 'weod', 'weol', 'weolg', 'weolm', 'weolb', 'weols', 'weolt', 'weolp', 'weolh', 'weom', 'weob', 'weobs', 'weos', 'weoss', 'weong', 'weoj', 'weoc', 'weok', 'weot', 'weop', 'weoh', 'we', 'weg', 'wegg', 'wegs', 'wen', 'wenj', 'wenh', 'wed', 'wel', 'welg', 'welm', 'welb', 'wels', 'welt', 'welp', 'welh', 'wem', 'web', 'webs', 'wes', 'wess', 'weng', 'wej', 'wec']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c7.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c7.php new file mode 100644 index 000000000..3c006a433 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c7.php @@ -0,0 +1 @@ +<?php return ['wek', 'wet', 'wep', 'weh', 'wi', 'wig', 'wigg', 'wigs', 'win', 'winj', 'winh', 'wid', 'wil', 'wilg', 'wilm', 'wilb', 'wils', 'wilt', 'wilp', 'wilh', 'wim', 'wib', 'wibs', 'wis', 'wiss', 'wing', 'wij', 'wic', 'wik', 'wit', 'wip', 'wih', 'yu', 'yug', 'yugg', 'yugs', 'yun', 'yunj', 'yunh', 'yud', 'yul', 'yulg', 'yulm', 'yulb', 'yuls', 'yult', 'yulp', 'yulh', 'yum', 'yub', 'yubs', 'yus', 'yuss', 'yung', 'yuj', 'yuc', 'yuk', 'yut', 'yup', 'yuh', 'eu', 'eug', 'eugg', 'eugs', 'eun', 'eunj', 'eunh', 'eud', 'eul', 'eulg', 'eulm', 'eulb', 'euls', 'eult', 'eulp', 'eulh', 'eum', 'eub', 'eubs', 'eus', 'euss', 'eung', 'euj', 'euc', 'euk', 'eut', 'eup', 'euh', 'yi', 'yig', 'yigg', 'yigs', 'yin', 'yinj', 'yinh', 'yid', 'yil', 'yilg', 'yilm', 'yilb', 'yils', 'yilt', 'yilp', 'yilh', 'yim', 'yib', 'yibs', 'yis', 'yiss', 'ying', 'yij', 'yic', 'yik', 'yit', 'yip', 'yih', 'i', 'ig', 'igg', 'igs', 'in', 'inj', 'inh', 'id', 'il', 'ilg', 'ilm', 'ilb', 'ils', 'ilt', 'ilp', 'ilh', 'im', 'ib', 'ibs', 'is', 'iss', 'ing', 'ij', 'ic', 'ik', 'it', 'ip', 'ih', 'ja', 'jag', 'jagg', 'jags', 'jan', 'janj', 'janh', 'jad', 'jal', 'jalg', 'jalm', 'jalb', 'jals', 'jalt', 'jalp', 'jalh', 'jam', 'jab', 'jabs', 'jas', 'jass', 'jang', 'jaj', 'jac', 'jak', 'jat', 'jap', 'jah', 'jae', 'jaeg', 'jaegg', 'jaegs', 'jaen', 'jaenj', 'jaenh', 'jaed', 'jael', 'jaelg', 'jaelm', 'jaelb', 'jaels', 'jaelt', 'jaelp', 'jaelh', 'jaem', 'jaeb', 'jaebs', 'jaes', 'jaess', 'jaeng', 'jaej', 'jaec', 'jaek', 'jaet', 'jaep', 'jaeh', 'jya', 'jyag', 'jyagg', 'jyags', 'jyan', 'jyanj', 'jyanh', 'jyad', 'jyal', 'jyalg', 'jyalm', 'jyalb', 'jyals', 'jyalt', 'jyalp', 'jyalh', 'jyam', 'jyab', 'jyabs', 'jyas', 'jyass', 'jyang', 'jyaj', 'jyac', 'jyak', 'jyat', 'jyap', 'jyah', 'jyae', 'jyaeg', 'jyaegg', 'jyaegs', 'jyaen', 'jyaenj', 'jyaenh', 'jyaed', 'jyael', 'jyaelg', 'jyaelm', 'jyaelb', 'jyaels', 'jyaelt', 'jyaelp', 'jyaelh', 'jyaem', 'jyaeb', 'jyaebs', 'jyaes', 'jyaess', 'jyaeng', 'jyaej', 'jyaec', 'jyaek', 'jyaet', 'jyaep', 'jyaeh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c8.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c8.php new file mode 100644 index 000000000..911138696 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c8.php @@ -0,0 +1 @@ +<?php return ['jeo', 'jeog', 'jeogg', 'jeogs', 'jeon', 'jeonj', 'jeonh', 'jeod', 'jeol', 'jeolg', 'jeolm', 'jeolb', 'jeols', 'jeolt', 'jeolp', 'jeolh', 'jeom', 'jeob', 'jeobs', 'jeos', 'jeoss', 'jeong', 'jeoj', 'jeoc', 'jeok', 'jeot', 'jeop', 'jeoh', 'je', 'jeg', 'jegg', 'jegs', 'jen', 'jenj', 'jenh', 'jed', 'jel', 'jelg', 'jelm', 'jelb', 'jels', 'jelt', 'jelp', 'jelh', 'jem', 'jeb', 'jebs', 'jes', 'jess', 'jeng', 'jej', 'jec', 'jek', 'jet', 'jep', 'jeh', 'jyeo', 'jyeog', 'jyeogg', 'jyeogs', 'jyeon', 'jyeonj', 'jyeonh', 'jyeod', 'jyeol', 'jyeolg', 'jyeolm', 'jyeolb', 'jyeols', 'jyeolt', 'jyeolp', 'jyeolh', 'jyeom', 'jyeob', 'jyeobs', 'jyeos', 'jyeoss', 'jyeong', 'jyeoj', 'jyeoc', 'jyeok', 'jyeot', 'jyeop', 'jyeoh', 'jye', 'jyeg', 'jyegg', 'jyegs', 'jyen', 'jyenj', 'jyenh', 'jyed', 'jyel', 'jyelg', 'jyelm', 'jyelb', 'jyels', 'jyelt', 'jyelp', 'jyelh', 'jyem', 'jyeb', 'jyebs', 'jyes', 'jyess', 'jyeng', 'jyej', 'jyec', 'jyek', 'jyet', 'jyep', 'jyeh', 'jo', 'jog', 'jogg', 'jogs', 'jon', 'jonj', 'jonh', 'jod', 'jol', 'jolg', 'jolm', 'jolb', 'jols', 'jolt', 'jolp', 'jolh', 'jom', 'job', 'jobs', 'jos', 'joss', 'jong', 'joj', 'joc', 'jok', 'jot', 'jop', 'joh', 'jwa', 'jwag', 'jwagg', 'jwags', 'jwan', 'jwanj', 'jwanh', 'jwad', 'jwal', 'jwalg', 'jwalm', 'jwalb', 'jwals', 'jwalt', 'jwalp', 'jwalh', 'jwam', 'jwab', 'jwabs', 'jwas', 'jwass', 'jwang', 'jwaj', 'jwac', 'jwak', 'jwat', 'jwap', 'jwah', 'jwae', 'jwaeg', 'jwaegg', 'jwaegs', 'jwaen', 'jwaenj', 'jwaenh', 'jwaed', 'jwael', 'jwaelg', 'jwaelm', 'jwaelb', 'jwaels', 'jwaelt', 'jwaelp', 'jwaelh', 'jwaem', 'jwaeb', 'jwaebs', 'jwaes', 'jwaess', 'jwaeng', 'jwaej', 'jwaec', 'jwaek', 'jwaet', 'jwaep', 'jwaeh', 'joe', 'joeg', 'joegg', 'joegs', 'joen', 'joenj', 'joenh', 'joed', 'joel', 'joelg', 'joelm', 'joelb', 'joels', 'joelt', 'joelp', 'joelh', 'joem', 'joeb', 'joebs', 'joes', 'joess', 'joeng', 'joej', 'joec', 'joek', 'joet', 'joep', 'joeh', 'jyo', 'jyog', 'jyogg', 'jyogs', 'jyon', 'jyonj', 'jyonh', 'jyod', 'jyol', 'jyolg', 'jyolm', 'jyolb', 'jyols', 'jyolt', 'jyolp', 'jyolh', 'jyom', 'jyob', 'jyobs', 'jyos', 'jyoss', 'jyong', 'jyoj', 'jyoc', 'jyok', 'jyot', 'jyop', 'jyoh', 'ju', 'jug', 'jugg', 'jugs']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0c9.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c9.php new file mode 100644 index 000000000..31c897375 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0c9.php @@ -0,0 +1 @@ +<?php return ['jun', 'junj', 'junh', 'jud', 'jul', 'julg', 'julm', 'julb', 'juls', 'jult', 'julp', 'julh', 'jum', 'jub', 'jubs', 'jus', 'juss', 'jung', 'juj', 'juc', 'juk', 'jut', 'jup', 'juh', 'jweo', 'jweog', 'jweogg', 'jweogs', 'jweon', 'jweonj', 'jweonh', 'jweod', 'jweol', 'jweolg', 'jweolm', 'jweolb', 'jweols', 'jweolt', 'jweolp', 'jweolh', 'jweom', 'jweob', 'jweobs', 'jweos', 'jweoss', 'jweong', 'jweoj', 'jweoc', 'jweok', 'jweot', 'jweop', 'jweoh', 'jwe', 'jweg', 'jwegg', 'jwegs', 'jwen', 'jwenj', 'jwenh', 'jwed', 'jwel', 'jwelg', 'jwelm', 'jwelb', 'jwels', 'jwelt', 'jwelp', 'jwelh', 'jwem', 'jweb', 'jwebs', 'jwes', 'jwess', 'jweng', 'jwej', 'jwec', 'jwek', 'jwet', 'jwep', 'jweh', 'jwi', 'jwig', 'jwigg', 'jwigs', 'jwin', 'jwinj', 'jwinh', 'jwid', 'jwil', 'jwilg', 'jwilm', 'jwilb', 'jwils', 'jwilt', 'jwilp', 'jwilh', 'jwim', 'jwib', 'jwibs', 'jwis', 'jwiss', 'jwing', 'jwij', 'jwic', 'jwik', 'jwit', 'jwip', 'jwih', 'jyu', 'jyug', 'jyugg', 'jyugs', 'jyun', 'jyunj', 'jyunh', 'jyud', 'jyul', 'jyulg', 'jyulm', 'jyulb', 'jyuls', 'jyult', 'jyulp', 'jyulh', 'jyum', 'jyub', 'jyubs', 'jyus', 'jyuss', 'jyung', 'jyuj', 'jyuc', 'jyuk', 'jyut', 'jyup', 'jyuh', 'jeu', 'jeug', 'jeugg', 'jeugs', 'jeun', 'jeunj', 'jeunh', 'jeud', 'jeul', 'jeulg', 'jeulm', 'jeulb', 'jeuls', 'jeult', 'jeulp', 'jeulh', 'jeum', 'jeub', 'jeubs', 'jeus', 'jeuss', 'jeung', 'jeuj', 'jeuc', 'jeuk', 'jeut', 'jeup', 'jeuh', 'jyi', 'jyig', 'jyigg', 'jyigs', 'jyin', 'jyinj', 'jyinh', 'jyid', 'jyil', 'jyilg', 'jyilm', 'jyilb', 'jyils', 'jyilt', 'jyilp', 'jyilh', 'jyim', 'jyib', 'jyibs', 'jyis', 'jyiss', 'jying', 'jyij', 'jyic', 'jyik', 'jyit', 'jyip', 'jyih', 'ji', 'jig', 'jigg', 'jigs', 'jin', 'jinj', 'jinh', 'jid', 'jil', 'jilg', 'jilm', 'jilb', 'jils', 'jilt', 'jilp', 'jilh', 'jim', 'jib', 'jibs', 'jis', 'jiss', 'jing', 'jij', 'jic', 'jik', 'jit', 'jip', 'jih', 'jja', 'jjag', 'jjagg', 'jjags', 'jjan', 'jjanj', 'jjanh', 'jjad', 'jjal', 'jjalg', 'jjalm', 'jjalb', 'jjals', 'jjalt', 'jjalp', 'jjalh', 'jjam', 'jjab', 'jjabs', 'jjas', 'jjass', 'jjang', 'jjaj', 'jjac', 'jjak', 'jjat', 'jjap', 'jjah', 'jjae', 'jjaeg', 'jjaegg', 'jjaegs', 'jjaen', 'jjaenj', 'jjaenh', 'jjaed']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ca.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ca.php new file mode 100644 index 000000000..79bb944d9 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ca.php @@ -0,0 +1 @@ +<?php return ['jjael', 'jjaelg', 'jjaelm', 'jjaelb', 'jjaels', 'jjaelt', 'jjaelp', 'jjaelh', 'jjaem', 'jjaeb', 'jjaebs', 'jjaes', 'jjaess', 'jjaeng', 'jjaej', 'jjaec', 'jjaek', 'jjaet', 'jjaep', 'jjaeh', 'jjya', 'jjyag', 'jjyagg', 'jjyags', 'jjyan', 'jjyanj', 'jjyanh', 'jjyad', 'jjyal', 'jjyalg', 'jjyalm', 'jjyalb', 'jjyals', 'jjyalt', 'jjyalp', 'jjyalh', 'jjyam', 'jjyab', 'jjyabs', 'jjyas', 'jjyass', 'jjyang', 'jjyaj', 'jjyac', 'jjyak', 'jjyat', 'jjyap', 'jjyah', 'jjyae', 'jjyaeg', 'jjyaegg', 'jjyaegs', 'jjyaen', 'jjyaenj', 'jjyaenh', 'jjyaed', 'jjyael', 'jjyaelg', 'jjyaelm', 'jjyaelb', 'jjyaels', 'jjyaelt', 'jjyaelp', 'jjyaelh', 'jjyaem', 'jjyaeb', 'jjyaebs', 'jjyaes', 'jjyaess', 'jjyaeng', 'jjyaej', 'jjyaec', 'jjyaek', 'jjyaet', 'jjyaep', 'jjyaeh', 'jjeo', 'jjeog', 'jjeogg', 'jjeogs', 'jjeon', 'jjeonj', 'jjeonh', 'jjeod', 'jjeol', 'jjeolg', 'jjeolm', 'jjeolb', 'jjeols', 'jjeolt', 'jjeolp', 'jjeolh', 'jjeom', 'jjeob', 'jjeobs', 'jjeos', 'jjeoss', 'jjeong', 'jjeoj', 'jjeoc', 'jjeok', 'jjeot', 'jjeop', 'jjeoh', 'jje', 'jjeg', 'jjegg', 'jjegs', 'jjen', 'jjenj', 'jjenh', 'jjed', 'jjel', 'jjelg', 'jjelm', 'jjelb', 'jjels', 'jjelt', 'jjelp', 'jjelh', 'jjem', 'jjeb', 'jjebs', 'jjes', 'jjess', 'jjeng', 'jjej', 'jjec', 'jjek', 'jjet', 'jjep', 'jjeh', 'jjyeo', 'jjyeog', 'jjyeogg', 'jjyeogs', 'jjyeon', 'jjyeonj', 'jjyeonh', 'jjyeod', 'jjyeol', 'jjyeolg', 'jjyeolm', 'jjyeolb', 'jjyeols', 'jjyeolt', 'jjyeolp', 'jjyeolh', 'jjyeom', 'jjyeob', 'jjyeobs', 'jjyeos', 'jjyeoss', 'jjyeong', 'jjyeoj', 'jjyeoc', 'jjyeok', 'jjyeot', 'jjyeop', 'jjyeoh', 'jjye', 'jjyeg', 'jjyegg', 'jjyegs', 'jjyen', 'jjyenj', 'jjyenh', 'jjyed', 'jjyel', 'jjyelg', 'jjyelm', 'jjyelb', 'jjyels', 'jjyelt', 'jjyelp', 'jjyelh', 'jjyem', 'jjyeb', 'jjyebs', 'jjyes', 'jjyess', 'jjyeng', 'jjyej', 'jjyec', 'jjyek', 'jjyet', 'jjyep', 'jjyeh', 'jjo', 'jjog', 'jjogg', 'jjogs', 'jjon', 'jjonj', 'jjonh', 'jjod', 'jjol', 'jjolg', 'jjolm', 'jjolb', 'jjols', 'jjolt', 'jjolp', 'jjolh', 'jjom', 'jjob', 'jjobs', 'jjos', 'jjoss', 'jjong', 'jjoj', 'jjoc', 'jjok', 'jjot', 'jjop', 'jjoh', 'jjwa', 'jjwag', 'jjwagg', 'jjwags', 'jjwan', 'jjwanj', 'jjwanh', 'jjwad', 'jjwal', 'jjwalg', 'jjwalm', 'jjwalb', 'jjwals', 'jjwalt', 'jjwalp', 'jjwalh', 'jjwam', 'jjwab', 'jjwabs', 'jjwas', 'jjwass', 'jjwang', 'jjwaj', 'jjwac', 'jjwak', 'jjwat', 'jjwap', 'jjwah', 'jjwae', 'jjwaeg', 'jjwaegg', 'jjwaegs', 'jjwaen', 'jjwaenj', 'jjwaenh', 'jjwaed', 'jjwael', 'jjwaelg', 'jjwaelm', 'jjwaelb']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0cb.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cb.php new file mode 100644 index 000000000..117a8dd8c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cb.php @@ -0,0 +1 @@ +<?php return ['jjwaels', 'jjwaelt', 'jjwaelp', 'jjwaelh', 'jjwaem', 'jjwaeb', 'jjwaebs', 'jjwaes', 'jjwaess', 'jjwaeng', 'jjwaej', 'jjwaec', 'jjwaek', 'jjwaet', 'jjwaep', 'jjwaeh', 'jjoe', 'jjoeg', 'jjoegg', 'jjoegs', 'jjoen', 'jjoenj', 'jjoenh', 'jjoed', 'jjoel', 'jjoelg', 'jjoelm', 'jjoelb', 'jjoels', 'jjoelt', 'jjoelp', 'jjoelh', 'jjoem', 'jjoeb', 'jjoebs', 'jjoes', 'jjoess', 'jjoeng', 'jjoej', 'jjoec', 'jjoek', 'jjoet', 'jjoep', 'jjoeh', 'jjyo', 'jjyog', 'jjyogg', 'jjyogs', 'jjyon', 'jjyonj', 'jjyonh', 'jjyod', 'jjyol', 'jjyolg', 'jjyolm', 'jjyolb', 'jjyols', 'jjyolt', 'jjyolp', 'jjyolh', 'jjyom', 'jjyob', 'jjyobs', 'jjyos', 'jjyoss', 'jjyong', 'jjyoj', 'jjyoc', 'jjyok', 'jjyot', 'jjyop', 'jjyoh', 'jju', 'jjug', 'jjugg', 'jjugs', 'jjun', 'jjunj', 'jjunh', 'jjud', 'jjul', 'jjulg', 'jjulm', 'jjulb', 'jjuls', 'jjult', 'jjulp', 'jjulh', 'jjum', 'jjub', 'jjubs', 'jjus', 'jjuss', 'jjung', 'jjuj', 'jjuc', 'jjuk', 'jjut', 'jjup', 'jjuh', 'jjweo', 'jjweog', 'jjweogg', 'jjweogs', 'jjweon', 'jjweonj', 'jjweonh', 'jjweod', 'jjweol', 'jjweolg', 'jjweolm', 'jjweolb', 'jjweols', 'jjweolt', 'jjweolp', 'jjweolh', 'jjweom', 'jjweob', 'jjweobs', 'jjweos', 'jjweoss', 'jjweong', 'jjweoj', 'jjweoc', 'jjweok', 'jjweot', 'jjweop', 'jjweoh', 'jjwe', 'jjweg', 'jjwegg', 'jjwegs', 'jjwen', 'jjwenj', 'jjwenh', 'jjwed', 'jjwel', 'jjwelg', 'jjwelm', 'jjwelb', 'jjwels', 'jjwelt', 'jjwelp', 'jjwelh', 'jjwem', 'jjweb', 'jjwebs', 'jjwes', 'jjwess', 'jjweng', 'jjwej', 'jjwec', 'jjwek', 'jjwet', 'jjwep', 'jjweh', 'jjwi', 'jjwig', 'jjwigg', 'jjwigs', 'jjwin', 'jjwinj', 'jjwinh', 'jjwid', 'jjwil', 'jjwilg', 'jjwilm', 'jjwilb', 'jjwils', 'jjwilt', 'jjwilp', 'jjwilh', 'jjwim', 'jjwib', 'jjwibs', 'jjwis', 'jjwiss', 'jjwing', 'jjwij', 'jjwic', 'jjwik', 'jjwit', 'jjwip', 'jjwih', 'jjyu', 'jjyug', 'jjyugg', 'jjyugs', 'jjyun', 'jjyunj', 'jjyunh', 'jjyud', 'jjyul', 'jjyulg', 'jjyulm', 'jjyulb', 'jjyuls', 'jjyult', 'jjyulp', 'jjyulh', 'jjyum', 'jjyub', 'jjyubs', 'jjyus', 'jjyuss', 'jjyung', 'jjyuj', 'jjyuc', 'jjyuk', 'jjyut', 'jjyup', 'jjyuh', 'jjeu', 'jjeug', 'jjeugg', 'jjeugs', 'jjeun', 'jjeunj', 'jjeunh', 'jjeud', 'jjeul', 'jjeulg', 'jjeulm', 'jjeulb', 'jjeuls', 'jjeult', 'jjeulp', 'jjeulh', 'jjeum', 'jjeub', 'jjeubs', 'jjeus', 'jjeuss', 'jjeung', 'jjeuj', 'jjeuc', 'jjeuk', 'jjeut', 'jjeup', 'jjeuh', 'jjyi', 'jjyig', 'jjyigg', 'jjyigs', 'jjyin', 'jjyinj', 'jjyinh', 'jjyid', 'jjyil', 'jjyilg', 'jjyilm', 'jjyilb', 'jjyils', 'jjyilt', 'jjyilp', 'jjyilh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0cc.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cc.php new file mode 100644 index 000000000..7d38e9ca0 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cc.php @@ -0,0 +1 @@ +<?php return ['jjyim', 'jjyib', 'jjyibs', 'jjyis', 'jjyiss', 'jjying', 'jjyij', 'jjyic', 'jjyik', 'jjyit', 'jjyip', 'jjyih', 'jji', 'jjig', 'jjigg', 'jjigs', 'jjin', 'jjinj', 'jjinh', 'jjid', 'jjil', 'jjilg', 'jjilm', 'jjilb', 'jjils', 'jjilt', 'jjilp', 'jjilh', 'jjim', 'jjib', 'jjibs', 'jjis', 'jjiss', 'jjing', 'jjij', 'jjic', 'jjik', 'jjit', 'jjip', 'jjih', 'ca', 'cag', 'cagg', 'cags', 'can', 'canj', 'canh', 'cad', 'cal', 'calg', 'calm', 'calb', 'cals', 'calt', 'calp', 'calh', 'cam', 'cab', 'cabs', 'cas', 'cass', 'cang', 'caj', 'cac', 'cak', 'cat', 'cap', 'cah', 'cae', 'caeg', 'caegg', 'caegs', 'caen', 'caenj', 'caenh', 'caed', 'cael', 'caelg', 'caelm', 'caelb', 'caels', 'caelt', 'caelp', 'caelh', 'caem', 'caeb', 'caebs', 'caes', 'caess', 'caeng', 'caej', 'caec', 'caek', 'caet', 'caep', 'caeh', 'cya', 'cyag', 'cyagg', 'cyags', 'cyan', 'cyanj', 'cyanh', 'cyad', 'cyal', 'cyalg', 'cyalm', 'cyalb', 'cyals', 'cyalt', 'cyalp', 'cyalh', 'cyam', 'cyab', 'cyabs', 'cyas', 'cyass', 'cyang', 'cyaj', 'cyac', 'cyak', 'cyat', 'cyap', 'cyah', 'cyae', 'cyaeg', 'cyaegg', 'cyaegs', 'cyaen', 'cyaenj', 'cyaenh', 'cyaed', 'cyael', 'cyaelg', 'cyaelm', 'cyaelb', 'cyaels', 'cyaelt', 'cyaelp', 'cyaelh', 'cyaem', 'cyaeb', 'cyaebs', 'cyaes', 'cyaess', 'cyaeng', 'cyaej', 'cyaec', 'cyaek', 'cyaet', 'cyaep', 'cyaeh', 'ceo', 'ceog', 'ceogg', 'ceogs', 'ceon', 'ceonj', 'ceonh', 'ceod', 'ceol', 'ceolg', 'ceolm', 'ceolb', 'ceols', 'ceolt', 'ceolp', 'ceolh', 'ceom', 'ceob', 'ceobs', 'ceos', 'ceoss', 'ceong', 'ceoj', 'ceoc', 'ceok', 'ceot', 'ceop', 'ceoh', 'ce', 'ceg', 'cegg', 'cegs', 'cen', 'cenj', 'cenh', 'ced', 'cel', 'celg', 'celm', 'celb', 'cels', 'celt', 'celp', 'celh', 'cem', 'ceb', 'cebs', 'ces', 'cess', 'ceng', 'cej', 'cec', 'cek', 'cet', 'cep', 'ceh', 'cyeo', 'cyeog', 'cyeogg', 'cyeogs', 'cyeon', 'cyeonj', 'cyeonh', 'cyeod', 'cyeol', 'cyeolg', 'cyeolm', 'cyeolb', 'cyeols', 'cyeolt', 'cyeolp', 'cyeolh', 'cyeom', 'cyeob', 'cyeobs', 'cyeos', 'cyeoss', 'cyeong', 'cyeoj', 'cyeoc', 'cyeok', 'cyeot', 'cyeop', 'cyeoh', 'cye', 'cyeg', 'cyegg', 'cyegs', 'cyen', 'cyenj', 'cyenh', 'cyed', 'cyel', 'cyelg', 'cyelm', 'cyelb', 'cyels', 'cyelt', 'cyelp', 'cyelh', 'cyem', 'cyeb', 'cyebs', 'cyes']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0cd.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cd.php new file mode 100644 index 000000000..f40bb6469 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cd.php @@ -0,0 +1 @@ +<?php return ['cyess', 'cyeng', 'cyej', 'cyec', 'cyek', 'cyet', 'cyep', 'cyeh', 'co', 'cog', 'cogg', 'cogs', 'con', 'conj', 'conh', 'cod', 'col', 'colg', 'colm', 'colb', 'cols', 'colt', 'colp', 'colh', 'com', 'cob', 'cobs', 'cos', 'coss', 'cong', 'coj', 'coc', 'cok', 'cot', 'cop', 'coh', 'cwa', 'cwag', 'cwagg', 'cwags', 'cwan', 'cwanj', 'cwanh', 'cwad', 'cwal', 'cwalg', 'cwalm', 'cwalb', 'cwals', 'cwalt', 'cwalp', 'cwalh', 'cwam', 'cwab', 'cwabs', 'cwas', 'cwass', 'cwang', 'cwaj', 'cwac', 'cwak', 'cwat', 'cwap', 'cwah', 'cwae', 'cwaeg', 'cwaegg', 'cwaegs', 'cwaen', 'cwaenj', 'cwaenh', 'cwaed', 'cwael', 'cwaelg', 'cwaelm', 'cwaelb', 'cwaels', 'cwaelt', 'cwaelp', 'cwaelh', 'cwaem', 'cwaeb', 'cwaebs', 'cwaes', 'cwaess', 'cwaeng', 'cwaej', 'cwaec', 'cwaek', 'cwaet', 'cwaep', 'cwaeh', 'coe', 'coeg', 'coegg', 'coegs', 'coen', 'coenj', 'coenh', 'coed', 'coel', 'coelg', 'coelm', 'coelb', 'coels', 'coelt', 'coelp', 'coelh', 'coem', 'coeb', 'coebs', 'coes', 'coess', 'coeng', 'coej', 'coec', 'coek', 'coet', 'coep', 'coeh', 'cyo', 'cyog', 'cyogg', 'cyogs', 'cyon', 'cyonj', 'cyonh', 'cyod', 'cyol', 'cyolg', 'cyolm', 'cyolb', 'cyols', 'cyolt', 'cyolp', 'cyolh', 'cyom', 'cyob', 'cyobs', 'cyos', 'cyoss', 'cyong', 'cyoj', 'cyoc', 'cyok', 'cyot', 'cyop', 'cyoh', 'cu', 'cug', 'cugg', 'cugs', 'cun', 'cunj', 'cunh', 'cud', 'cul', 'culg', 'culm', 'culb', 'culs', 'cult', 'culp', 'culh', 'cum', 'cub', 'cubs', 'cus', 'cuss', 'cung', 'cuj', 'cuc', 'cuk', 'cut', 'cup', 'cuh', 'cweo', 'cweog', 'cweogg', 'cweogs', 'cweon', 'cweonj', 'cweonh', 'cweod', 'cweol', 'cweolg', 'cweolm', 'cweolb', 'cweols', 'cweolt', 'cweolp', 'cweolh', 'cweom', 'cweob', 'cweobs', 'cweos', 'cweoss', 'cweong', 'cweoj', 'cweoc', 'cweok', 'cweot', 'cweop', 'cweoh', 'cwe', 'cweg', 'cwegg', 'cwegs', 'cwen', 'cwenj', 'cwenh', 'cwed', 'cwel', 'cwelg', 'cwelm', 'cwelb', 'cwels', 'cwelt', 'cwelp', 'cwelh', 'cwem', 'cweb', 'cwebs', 'cwes', 'cwess', 'cweng', 'cwej', 'cwec', 'cwek', 'cwet', 'cwep', 'cweh', 'cwi', 'cwig', 'cwigg', 'cwigs', 'cwin', 'cwinj', 'cwinh', 'cwid', 'cwil', 'cwilg', 'cwilm', 'cwilb', 'cwils', 'cwilt', 'cwilp', 'cwilh', 'cwim', 'cwib', 'cwibs', 'cwis', 'cwiss', 'cwing', 'cwij', 'cwic']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ce.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ce.php new file mode 100644 index 000000000..92e8b2df5 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ce.php @@ -0,0 +1 @@ +<?php return ['cwik', 'cwit', 'cwip', 'cwih', 'cyu', 'cyug', 'cyugg', 'cyugs', 'cyun', 'cyunj', 'cyunh', 'cyud', 'cyul', 'cyulg', 'cyulm', 'cyulb', 'cyuls', 'cyult', 'cyulp', 'cyulh', 'cyum', 'cyub', 'cyubs', 'cyus', 'cyuss', 'cyung', 'cyuj', 'cyuc', 'cyuk', 'cyut', 'cyup', 'cyuh', 'ceu', 'ceug', 'ceugg', 'ceugs', 'ceun', 'ceunj', 'ceunh', 'ceud', 'ceul', 'ceulg', 'ceulm', 'ceulb', 'ceuls', 'ceult', 'ceulp', 'ceulh', 'ceum', 'ceub', 'ceubs', 'ceus', 'ceuss', 'ceung', 'ceuj', 'ceuc', 'ceuk', 'ceut', 'ceup', 'ceuh', 'cyi', 'cyig', 'cyigg', 'cyigs', 'cyin', 'cyinj', 'cyinh', 'cyid', 'cyil', 'cyilg', 'cyilm', 'cyilb', 'cyils', 'cyilt', 'cyilp', 'cyilh', 'cyim', 'cyib', 'cyibs', 'cyis', 'cyiss', 'cying', 'cyij', 'cyic', 'cyik', 'cyit', 'cyip', 'cyih', 'ci', 'cig', 'cigg', 'cigs', 'cin', 'cinj', 'cinh', 'cid', 'cil', 'cilg', 'cilm', 'cilb', 'cils', 'cilt', 'cilp', 'cilh', 'cim', 'cib', 'cibs', 'cis', 'ciss', 'cing', 'cij', 'cic', 'cik', 'cit', 'cip', 'cih', 'ka', 'kag', 'kagg', 'kags', 'kan', 'kanj', 'kanh', 'kad', 'kal', 'kalg', 'kalm', 'kalb', 'kals', 'kalt', 'kalp', 'kalh', 'kam', 'kab', 'kabs', 'kas', 'kass', 'kang', 'kaj', 'kac', 'kak', 'kat', 'kap', 'kah', 'kae', 'kaeg', 'kaegg', 'kaegs', 'kaen', 'kaenj', 'kaenh', 'kaed', 'kael', 'kaelg', 'kaelm', 'kaelb', 'kaels', 'kaelt', 'kaelp', 'kaelh', 'kaem', 'kaeb', 'kaebs', 'kaes', 'kaess', 'kaeng', 'kaej', 'kaec', 'kaek', 'kaet', 'kaep', 'kaeh', 'kya', 'kyag', 'kyagg', 'kyags', 'kyan', 'kyanj', 'kyanh', 'kyad', 'kyal', 'kyalg', 'kyalm', 'kyalb', 'kyals', 'kyalt', 'kyalp', 'kyalh', 'kyam', 'kyab', 'kyabs', 'kyas', 'kyass', 'kyang', 'kyaj', 'kyac', 'kyak', 'kyat', 'kyap', 'kyah', 'kyae', 'kyaeg', 'kyaegg', 'kyaegs', 'kyaen', 'kyaenj', 'kyaenh', 'kyaed', 'kyael', 'kyaelg', 'kyaelm', 'kyaelb', 'kyaels', 'kyaelt', 'kyaelp', 'kyaelh', 'kyaem', 'kyaeb', 'kyaebs', 'kyaes', 'kyaess', 'kyaeng', 'kyaej', 'kyaec', 'kyaek', 'kyaet', 'kyaep', 'kyaeh', 'keo', 'keog', 'keogg', 'keogs', 'keon', 'keonj', 'keonh', 'keod', 'keol', 'keolg', 'keolm', 'keolb', 'keols', 'keolt', 'keolp', 'keolh', 'keom', 'keob', 'keobs', 'keos', 'keoss', 'keong', 'keoj', 'keoc', 'keok', 'keot', 'keop', 'keoh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0cf.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cf.php new file mode 100644 index 000000000..607d1e1ff --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0cf.php @@ -0,0 +1 @@ +<?php return ['ke', 'keg', 'kegg', 'kegs', 'ken', 'kenj', 'kenh', 'ked', 'kel', 'kelg', 'kelm', 'kelb', 'kels', 'kelt', 'kelp', 'kelh', 'kem', 'keb', 'kebs', 'kes', 'kess', 'keng', 'kej', 'kec', 'kek', 'ket', 'kep', 'keh', 'kyeo', 'kyeog', 'kyeogg', 'kyeogs', 'kyeon', 'kyeonj', 'kyeonh', 'kyeod', 'kyeol', 'kyeolg', 'kyeolm', 'kyeolb', 'kyeols', 'kyeolt', 'kyeolp', 'kyeolh', 'kyeom', 'kyeob', 'kyeobs', 'kyeos', 'kyeoss', 'kyeong', 'kyeoj', 'kyeoc', 'kyeok', 'kyeot', 'kyeop', 'kyeoh', 'kye', 'kyeg', 'kyegg', 'kyegs', 'kyen', 'kyenj', 'kyenh', 'kyed', 'kyel', 'kyelg', 'kyelm', 'kyelb', 'kyels', 'kyelt', 'kyelp', 'kyelh', 'kyem', 'kyeb', 'kyebs', 'kyes', 'kyess', 'kyeng', 'kyej', 'kyec', 'kyek', 'kyet', 'kyep', 'kyeh', 'ko', 'kog', 'kogg', 'kogs', 'kon', 'konj', 'konh', 'kod', 'kol', 'kolg', 'kolm', 'kolb', 'kols', 'kolt', 'kolp', 'kolh', 'kom', 'kob', 'kobs', 'kos', 'koss', 'kong', 'koj', 'koc', 'kok', 'kot', 'kop', 'koh', 'kwa', 'kwag', 'kwagg', 'kwags', 'kwan', 'kwanj', 'kwanh', 'kwad', 'kwal', 'kwalg', 'kwalm', 'kwalb', 'kwals', 'kwalt', 'kwalp', 'kwalh', 'kwam', 'kwab', 'kwabs', 'kwas', 'kwass', 'kwang', 'kwaj', 'kwac', 'kwak', 'kwat', 'kwap', 'kwah', 'kwae', 'kwaeg', 'kwaegg', 'kwaegs', 'kwaen', 'kwaenj', 'kwaenh', 'kwaed', 'kwael', 'kwaelg', 'kwaelm', 'kwaelb', 'kwaels', 'kwaelt', 'kwaelp', 'kwaelh', 'kwaem', 'kwaeb', 'kwaebs', 'kwaes', 'kwaess', 'kwaeng', 'kwaej', 'kwaec', 'kwaek', 'kwaet', 'kwaep', 'kwaeh', 'koe', 'koeg', 'koegg', 'koegs', 'koen', 'koenj', 'koenh', 'koed', 'koel', 'koelg', 'koelm', 'koelb', 'koels', 'koelt', 'koelp', 'koelh', 'koem', 'koeb', 'koebs', 'koes', 'koess', 'koeng', 'koej', 'koec', 'koek', 'koet', 'koep', 'koeh', 'kyo', 'kyog', 'kyogg', 'kyogs', 'kyon', 'kyonj', 'kyonh', 'kyod', 'kyol', 'kyolg', 'kyolm', 'kyolb', 'kyols', 'kyolt', 'kyolp', 'kyolh', 'kyom', 'kyob', 'kyobs', 'kyos', 'kyoss', 'kyong', 'kyoj', 'kyoc', 'kyok', 'kyot', 'kyop', 'kyoh', 'ku', 'kug', 'kugg', 'kugs', 'kun', 'kunj', 'kunh', 'kud', 'kul', 'kulg', 'kulm', 'kulb', 'kuls', 'kult', 'kulp', 'kulh', 'kum', 'kub', 'kubs', 'kus', 'kuss', 'kung', 'kuj', 'kuc', 'kuk', 'kut', 'kup', 'kuh', 'kweo', 'kweog', 'kweogg', 'kweogs']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d0.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d0.php new file mode 100644 index 000000000..f92179381 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d0.php @@ -0,0 +1 @@ +<?php return ['kweon', 'kweonj', 'kweonh', 'kweod', 'kweol', 'kweolg', 'kweolm', 'kweolb', 'kweols', 'kweolt', 'kweolp', 'kweolh', 'kweom', 'kweob', 'kweobs', 'kweos', 'kweoss', 'kweong', 'kweoj', 'kweoc', 'kweok', 'kweot', 'kweop', 'kweoh', 'kwe', 'kweg', 'kwegg', 'kwegs', 'kwen', 'kwenj', 'kwenh', 'kwed', 'kwel', 'kwelg', 'kwelm', 'kwelb', 'kwels', 'kwelt', 'kwelp', 'kwelh', 'kwem', 'kweb', 'kwebs', 'kwes', 'kwess', 'kweng', 'kwej', 'kwec', 'kwek', 'kwet', 'kwep', 'kweh', 'kwi', 'kwig', 'kwigg', 'kwigs', 'kwin', 'kwinj', 'kwinh', 'kwid', 'kwil', 'kwilg', 'kwilm', 'kwilb', 'kwils', 'kwilt', 'kwilp', 'kwilh', 'kwim', 'kwib', 'kwibs', 'kwis', 'kwiss', 'kwing', 'kwij', 'kwic', 'kwik', 'kwit', 'kwip', 'kwih', 'kyu', 'kyug', 'kyugg', 'kyugs', 'kyun', 'kyunj', 'kyunh', 'kyud', 'kyul', 'kyulg', 'kyulm', 'kyulb', 'kyuls', 'kyult', 'kyulp', 'kyulh', 'kyum', 'kyub', 'kyubs', 'kyus', 'kyuss', 'kyung', 'kyuj', 'kyuc', 'kyuk', 'kyut', 'kyup', 'kyuh', 'keu', 'keug', 'keugg', 'keugs', 'keun', 'keunj', 'keunh', 'keud', 'keul', 'keulg', 'keulm', 'keulb', 'keuls', 'keult', 'keulp', 'keulh', 'keum', 'keub', 'keubs', 'keus', 'keuss', 'keung', 'keuj', 'keuc', 'keuk', 'keut', 'keup', 'keuh', 'kyi', 'kyig', 'kyigg', 'kyigs', 'kyin', 'kyinj', 'kyinh', 'kyid', 'kyil', 'kyilg', 'kyilm', 'kyilb', 'kyils', 'kyilt', 'kyilp', 'kyilh', 'kyim', 'kyib', 'kyibs', 'kyis', 'kyiss', 'kying', 'kyij', 'kyic', 'kyik', 'kyit', 'kyip', 'kyih', 'ki', 'kig', 'kigg', 'kigs', 'kin', 'kinj', 'kinh', 'kid', 'kil', 'kilg', 'kilm', 'kilb', 'kils', 'kilt', 'kilp', 'kilh', 'kim', 'kib', 'kibs', 'kis', 'kiss', 'king', 'kij', 'kic', 'kik', 'kit', 'kip', 'kih', 'ta', 'tag', 'tagg', 'tags', 'tan', 'tanj', 'tanh', 'tad', 'tal', 'talg', 'talm', 'talb', 'tals', 'talt', 'talp', 'talh', 'tam', 'tab', 'tabs', 'tas', 'tass', 'tang', 'taj', 'tac', 'tak', 'tat', 'tap', 'tah', 'tae', 'taeg', 'taegg', 'taegs', 'taen', 'taenj', 'taenh', 'taed', 'tael', 'taelg', 'taelm', 'taelb', 'taels', 'taelt', 'taelp', 'taelh', 'taem', 'taeb', 'taebs', 'taes', 'taess', 'taeng', 'taej', 'taec', 'taek', 'taet', 'taep', 'taeh', 'tya', 'tyag', 'tyagg', 'tyags', 'tyan', 'tyanj', 'tyanh', 'tyad']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d1.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d1.php new file mode 100644 index 000000000..ea8455a0b --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d1.php @@ -0,0 +1 @@ +<?php return ['tyal', 'tyalg', 'tyalm', 'tyalb', 'tyals', 'tyalt', 'tyalp', 'tyalh', 'tyam', 'tyab', 'tyabs', 'tyas', 'tyass', 'tyang', 'tyaj', 'tyac', 'tyak', 'tyat', 'tyap', 'tyah', 'tyae', 'tyaeg', 'tyaegg', 'tyaegs', 'tyaen', 'tyaenj', 'tyaenh', 'tyaed', 'tyael', 'tyaelg', 'tyaelm', 'tyaelb', 'tyaels', 'tyaelt', 'tyaelp', 'tyaelh', 'tyaem', 'tyaeb', 'tyaebs', 'tyaes', 'tyaess', 'tyaeng', 'tyaej', 'tyaec', 'tyaek', 'tyaet', 'tyaep', 'tyaeh', 'teo', 'teog', 'teogg', 'teogs', 'teon', 'teonj', 'teonh', 'teod', 'teol', 'teolg', 'teolm', 'teolb', 'teols', 'teolt', 'teolp', 'teolh', 'teom', 'teob', 'teobs', 'teos', 'teoss', 'teong', 'teoj', 'teoc', 'teok', 'teot', 'teop', 'teoh', 'te', 'teg', 'tegg', 'tegs', 'ten', 'tenj', 'tenh', 'ted', 'tel', 'telg', 'telm', 'telb', 'tels', 'telt', 'telp', 'telh', 'tem', 'teb', 'tebs', 'tes', 'tess', 'teng', 'tej', 'tec', 'tek', 'tet', 'tep', 'teh', 'tyeo', 'tyeog', 'tyeogg', 'tyeogs', 'tyeon', 'tyeonj', 'tyeonh', 'tyeod', 'tyeol', 'tyeolg', 'tyeolm', 'tyeolb', 'tyeols', 'tyeolt', 'tyeolp', 'tyeolh', 'tyeom', 'tyeob', 'tyeobs', 'tyeos', 'tyeoss', 'tyeong', 'tyeoj', 'tyeoc', 'tyeok', 'tyeot', 'tyeop', 'tyeoh', 'tye', 'tyeg', 'tyegg', 'tyegs', 'tyen', 'tyenj', 'tyenh', 'tyed', 'tyel', 'tyelg', 'tyelm', 'tyelb', 'tyels', 'tyelt', 'tyelp', 'tyelh', 'tyem', 'tyeb', 'tyebs', 'tyes', 'tyess', 'tyeng', 'tyej', 'tyec', 'tyek', 'tyet', 'tyep', 'tyeh', 'to', 'tog', 'togg', 'togs', 'ton', 'tonj', 'tonh', 'tod', 'tol', 'tolg', 'tolm', 'tolb', 'tols', 'tolt', 'tolp', 'tolh', 'tom', 'tob', 'tobs', 'tos', 'toss', 'tong', 'toj', 'toc', 'tok', 'tot', 'top', 'toh', 'twa', 'twag', 'twagg', 'twags', 'twan', 'twanj', 'twanh', 'twad', 'twal', 'twalg', 'twalm', 'twalb', 'twals', 'twalt', 'twalp', 'twalh', 'twam', 'twab', 'twabs', 'twas', 'twass', 'twang', 'twaj', 'twac', 'twak', 'twat', 'twap', 'twah', 'twae', 'twaeg', 'twaegg', 'twaegs', 'twaen', 'twaenj', 'twaenh', 'twaed', 'twael', 'twaelg', 'twaelm', 'twaelb', 'twaels', 'twaelt', 'twaelp', 'twaelh', 'twaem', 'twaeb', 'twaebs', 'twaes', 'twaess', 'twaeng', 'twaej', 'twaec', 'twaek', 'twaet', 'twaep', 'twaeh', 'toe', 'toeg', 'toegg', 'toegs', 'toen', 'toenj', 'toenh', 'toed', 'toel', 'toelg', 'toelm', 'toelb']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d2.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d2.php new file mode 100644 index 000000000..f18334d3c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d2.php @@ -0,0 +1 @@ +<?php return ['toels', 'toelt', 'toelp', 'toelh', 'toem', 'toeb', 'toebs', 'toes', 'toess', 'toeng', 'toej', 'toec', 'toek', 'toet', 'toep', 'toeh', 'tyo', 'tyog', 'tyogg', 'tyogs', 'tyon', 'tyonj', 'tyonh', 'tyod', 'tyol', 'tyolg', 'tyolm', 'tyolb', 'tyols', 'tyolt', 'tyolp', 'tyolh', 'tyom', 'tyob', 'tyobs', 'tyos', 'tyoss', 'tyong', 'tyoj', 'tyoc', 'tyok', 'tyot', 'tyop', 'tyoh', 'tu', 'tug', 'tugg', 'tugs', 'tun', 'tunj', 'tunh', 'tud', 'tul', 'tulg', 'tulm', 'tulb', 'tuls', 'tult', 'tulp', 'tulh', 'tum', 'tub', 'tubs', 'tus', 'tuss', 'tung', 'tuj', 'tuc', 'tuk', 'tut', 'tup', 'tuh', 'tweo', 'tweog', 'tweogg', 'tweogs', 'tweon', 'tweonj', 'tweonh', 'tweod', 'tweol', 'tweolg', 'tweolm', 'tweolb', 'tweols', 'tweolt', 'tweolp', 'tweolh', 'tweom', 'tweob', 'tweobs', 'tweos', 'tweoss', 'tweong', 'tweoj', 'tweoc', 'tweok', 'tweot', 'tweop', 'tweoh', 'twe', 'tweg', 'twegg', 'twegs', 'twen', 'twenj', 'twenh', 'twed', 'twel', 'twelg', 'twelm', 'twelb', 'twels', 'twelt', 'twelp', 'twelh', 'twem', 'tweb', 'twebs', 'twes', 'twess', 'tweng', 'twej', 'twec', 'twek', 'twet', 'twep', 'tweh', 'twi', 'twig', 'twigg', 'twigs', 'twin', 'twinj', 'twinh', 'twid', 'twil', 'twilg', 'twilm', 'twilb', 'twils', 'twilt', 'twilp', 'twilh', 'twim', 'twib', 'twibs', 'twis', 'twiss', 'twing', 'twij', 'twic', 'twik', 'twit', 'twip', 'twih', 'tyu', 'tyug', 'tyugg', 'tyugs', 'tyun', 'tyunj', 'tyunh', 'tyud', 'tyul', 'tyulg', 'tyulm', 'tyulb', 'tyuls', 'tyult', 'tyulp', 'tyulh', 'tyum', 'tyub', 'tyubs', 'tyus', 'tyuss', 'tyung', 'tyuj', 'tyuc', 'tyuk', 'tyut', 'tyup', 'tyuh', 'teu', 'teug', 'teugg', 'teugs', 'teun', 'teunj', 'teunh', 'teud', 'teul', 'teulg', 'teulm', 'teulb', 'teuls', 'teult', 'teulp', 'teulh', 'teum', 'teub', 'teubs', 'teus', 'teuss', 'teung', 'teuj', 'teuc', 'teuk', 'teut', 'teup', 'teuh', 'tyi', 'tyig', 'tyigg', 'tyigs', 'tyin', 'tyinj', 'tyinh', 'tyid', 'tyil', 'tyilg', 'tyilm', 'tyilb', 'tyils', 'tyilt', 'tyilp', 'tyilh', 'tyim', 'tyib', 'tyibs', 'tyis', 'tyiss', 'tying', 'tyij', 'tyic', 'tyik', 'tyit', 'tyip', 'tyih', 'ti', 'tig', 'tigg', 'tigs', 'tin', 'tinj', 'tinh', 'tid', 'til', 'tilg', 'tilm', 'tilb', 'tils', 'tilt', 'tilp', 'tilh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d3.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d3.php new file mode 100644 index 000000000..5f73d8457 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d3.php @@ -0,0 +1 @@ +<?php return ['tim', 'tib', 'tibs', 'tis', 'tiss', 'ting', 'tij', 'tic', 'tik', 'tit', 'tip', 'tih', 'pa', 'pag', 'pagg', 'pags', 'pan', 'panj', 'panh', 'pad', 'pal', 'palg', 'palm', 'palb', 'pals', 'palt', 'palp', 'palh', 'pam', 'pab', 'pabs', 'pas', 'pass', 'pang', 'paj', 'pac', 'pak', 'pat', 'pap', 'pah', 'pae', 'paeg', 'paegg', 'paegs', 'paen', 'paenj', 'paenh', 'paed', 'pael', 'paelg', 'paelm', 'paelb', 'paels', 'paelt', 'paelp', 'paelh', 'paem', 'paeb', 'paebs', 'paes', 'paess', 'paeng', 'paej', 'paec', 'paek', 'paet', 'paep', 'paeh', 'pya', 'pyag', 'pyagg', 'pyags', 'pyan', 'pyanj', 'pyanh', 'pyad', 'pyal', 'pyalg', 'pyalm', 'pyalb', 'pyals', 'pyalt', 'pyalp', 'pyalh', 'pyam', 'pyab', 'pyabs', 'pyas', 'pyass', 'pyang', 'pyaj', 'pyac', 'pyak', 'pyat', 'pyap', 'pyah', 'pyae', 'pyaeg', 'pyaegg', 'pyaegs', 'pyaen', 'pyaenj', 'pyaenh', 'pyaed', 'pyael', 'pyaelg', 'pyaelm', 'pyaelb', 'pyaels', 'pyaelt', 'pyaelp', 'pyaelh', 'pyaem', 'pyaeb', 'pyaebs', 'pyaes', 'pyaess', 'pyaeng', 'pyaej', 'pyaec', 'pyaek', 'pyaet', 'pyaep', 'pyaeh', 'peo', 'peog', 'peogg', 'peogs', 'peon', 'peonj', 'peonh', 'peod', 'peol', 'peolg', 'peolm', 'peolb', 'peols', 'peolt', 'peolp', 'peolh', 'peom', 'peob', 'peobs', 'peos', 'peoss', 'peong', 'peoj', 'peoc', 'peok', 'peot', 'peop', 'peoh', 'pe', 'peg', 'pegg', 'pegs', 'pen', 'penj', 'penh', 'ped', 'pel', 'pelg', 'pelm', 'pelb', 'pels', 'pelt', 'pelp', 'pelh', 'pem', 'peb', 'pebs', 'pes', 'pess', 'peng', 'pej', 'pec', 'pek', 'pet', 'pep', 'peh', 'pyeo', 'pyeog', 'pyeogg', 'pyeogs', 'pyeon', 'pyeonj', 'pyeonh', 'pyeod', 'pyeol', 'pyeolg', 'pyeolm', 'pyeolb', 'pyeols', 'pyeolt', 'pyeolp', 'pyeolh', 'pyeom', 'pyeob', 'pyeobs', 'pyeos', 'pyeoss', 'pyeong', 'pyeoj', 'pyeoc', 'pyeok', 'pyeot', 'pyeop', 'pyeoh', 'pye', 'pyeg', 'pyegg', 'pyegs', 'pyen', 'pyenj', 'pyenh', 'pyed', 'pyel', 'pyelg', 'pyelm', 'pyelb', 'pyels', 'pyelt', 'pyelp', 'pyelh', 'pyem', 'pyeb', 'pyebs', 'pyes', 'pyess', 'pyeng', 'pyej', 'pyec', 'pyek', 'pyet', 'pyep', 'pyeh', 'po', 'pog', 'pogg', 'pogs', 'pon', 'ponj', 'ponh', 'pod', 'pol', 'polg', 'polm', 'polb', 'pols', 'polt', 'polp', 'polh', 'pom', 'pob', 'pobs', 'pos']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d4.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d4.php new file mode 100644 index 000000000..21bdc3532 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d4.php @@ -0,0 +1 @@ +<?php return ['poss', 'pong', 'poj', 'poc', 'pok', 'pot', 'pop', 'poh', 'pwa', 'pwag', 'pwagg', 'pwags', 'pwan', 'pwanj', 'pwanh', 'pwad', 'pwal', 'pwalg', 'pwalm', 'pwalb', 'pwals', 'pwalt', 'pwalp', 'pwalh', 'pwam', 'pwab', 'pwabs', 'pwas', 'pwass', 'pwang', 'pwaj', 'pwac', 'pwak', 'pwat', 'pwap', 'pwah', 'pwae', 'pwaeg', 'pwaegg', 'pwaegs', 'pwaen', 'pwaenj', 'pwaenh', 'pwaed', 'pwael', 'pwaelg', 'pwaelm', 'pwaelb', 'pwaels', 'pwaelt', 'pwaelp', 'pwaelh', 'pwaem', 'pwaeb', 'pwaebs', 'pwaes', 'pwaess', 'pwaeng', 'pwaej', 'pwaec', 'pwaek', 'pwaet', 'pwaep', 'pwaeh', 'poe', 'poeg', 'poegg', 'poegs', 'poen', 'poenj', 'poenh', 'poed', 'poel', 'poelg', 'poelm', 'poelb', 'poels', 'poelt', 'poelp', 'poelh', 'poem', 'poeb', 'poebs', 'poes', 'poess', 'poeng', 'poej', 'poec', 'poek', 'poet', 'poep', 'poeh', 'pyo', 'pyog', 'pyogg', 'pyogs', 'pyon', 'pyonj', 'pyonh', 'pyod', 'pyol', 'pyolg', 'pyolm', 'pyolb', 'pyols', 'pyolt', 'pyolp', 'pyolh', 'pyom', 'pyob', 'pyobs', 'pyos', 'pyoss', 'pyong', 'pyoj', 'pyoc', 'pyok', 'pyot', 'pyop', 'pyoh', 'pu', 'pug', 'pugg', 'pugs', 'pun', 'punj', 'punh', 'pud', 'pul', 'pulg', 'pulm', 'pulb', 'puls', 'pult', 'pulp', 'pulh', 'pum', 'pub', 'pubs', 'pus', 'puss', 'pung', 'puj', 'puc', 'puk', 'put', 'pup', 'puh', 'pweo', 'pweog', 'pweogg', 'pweogs', 'pweon', 'pweonj', 'pweonh', 'pweod', 'pweol', 'pweolg', 'pweolm', 'pweolb', 'pweols', 'pweolt', 'pweolp', 'pweolh', 'pweom', 'pweob', 'pweobs', 'pweos', 'pweoss', 'pweong', 'pweoj', 'pweoc', 'pweok', 'pweot', 'pweop', 'pweoh', 'pwe', 'pweg', 'pwegg', 'pwegs', 'pwen', 'pwenj', 'pwenh', 'pwed', 'pwel', 'pwelg', 'pwelm', 'pwelb', 'pwels', 'pwelt', 'pwelp', 'pwelh', 'pwem', 'pweb', 'pwebs', 'pwes', 'pwess', 'pweng', 'pwej', 'pwec', 'pwek', 'pwet', 'pwep', 'pweh', 'pwi', 'pwig', 'pwigg', 'pwigs', 'pwin', 'pwinj', 'pwinh', 'pwid', 'pwil', 'pwilg', 'pwilm', 'pwilb', 'pwils', 'pwilt', 'pwilp', 'pwilh', 'pwim', 'pwib', 'pwibs', 'pwis', 'pwiss', 'pwing', 'pwij', 'pwic', 'pwik', 'pwit', 'pwip', 'pwih', 'pyu', 'pyug', 'pyugg', 'pyugs', 'pyun', 'pyunj', 'pyunh', 'pyud', 'pyul', 'pyulg', 'pyulm', 'pyulb', 'pyuls', 'pyult', 'pyulp', 'pyulh', 'pyum', 'pyub', 'pyubs', 'pyus', 'pyuss', 'pyung', 'pyuj', 'pyuc']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d5.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d5.php new file mode 100644 index 000000000..871f7964c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d5.php @@ -0,0 +1 @@ +<?php return ['pyuk', 'pyut', 'pyup', 'pyuh', 'peu', 'peug', 'peugg', 'peugs', 'peun', 'peunj', 'peunh', 'peud', 'peul', 'peulg', 'peulm', 'peulb', 'peuls', 'peult', 'peulp', 'peulh', 'peum', 'peub', 'peubs', 'peus', 'peuss', 'peung', 'peuj', 'peuc', 'peuk', 'peut', 'peup', 'peuh', 'pyi', 'pyig', 'pyigg', 'pyigs', 'pyin', 'pyinj', 'pyinh', 'pyid', 'pyil', 'pyilg', 'pyilm', 'pyilb', 'pyils', 'pyilt', 'pyilp', 'pyilh', 'pyim', 'pyib', 'pyibs', 'pyis', 'pyiss', 'pying', 'pyij', 'pyic', 'pyik', 'pyit', 'pyip', 'pyih', 'pi', 'pig', 'pigg', 'pigs', 'pin', 'pinj', 'pinh', 'pid', 'pil', 'pilg', 'pilm', 'pilb', 'pils', 'pilt', 'pilp', 'pilh', 'pim', 'pib', 'pibs', 'pis', 'piss', 'ping', 'pij', 'pic', 'pik', 'pit', 'pip', 'pih', 'ha', 'hag', 'hagg', 'hags', 'han', 'hanj', 'hanh', 'had', 'hal', 'halg', 'halm', 'halb', 'hals', 'halt', 'halp', 'halh', 'ham', 'hab', 'habs', 'has', 'hass', 'hang', 'haj', 'hac', 'hak', 'hat', 'hap', 'hah', 'hae', 'haeg', 'haegg', 'haegs', 'haen', 'haenj', 'haenh', 'haed', 'hael', 'haelg', 'haelm', 'haelb', 'haels', 'haelt', 'haelp', 'haelh', 'haem', 'haeb', 'haebs', 'haes', 'haess', 'haeng', 'haej', 'haec', 'haek', 'haet', 'haep', 'haeh', 'hya', 'hyag', 'hyagg', 'hyags', 'hyan', 'hyanj', 'hyanh', 'hyad', 'hyal', 'hyalg', 'hyalm', 'hyalb', 'hyals', 'hyalt', 'hyalp', 'hyalh', 'hyam', 'hyab', 'hyabs', 'hyas', 'hyass', 'hyang', 'hyaj', 'hyac', 'hyak', 'hyat', 'hyap', 'hyah', 'hyae', 'hyaeg', 'hyaegg', 'hyaegs', 'hyaen', 'hyaenj', 'hyaenh', 'hyaed', 'hyael', 'hyaelg', 'hyaelm', 'hyaelb', 'hyaels', 'hyaelt', 'hyaelp', 'hyaelh', 'hyaem', 'hyaeb', 'hyaebs', 'hyaes', 'hyaess', 'hyaeng', 'hyaej', 'hyaec', 'hyaek', 'hyaet', 'hyaep', 'hyaeh', 'heo', 'heog', 'heogg', 'heogs', 'heon', 'heonj', 'heonh', 'heod', 'heol', 'heolg', 'heolm', 'heolb', 'heols', 'heolt', 'heolp', 'heolh', 'heom', 'heob', 'heobs', 'heos', 'heoss', 'heong', 'heoj', 'heoc', 'heok', 'heot', 'heop', 'heoh', 'he', 'heg', 'hegg', 'hegs', 'hen', 'henj', 'henh', 'hed', 'hel', 'helg', 'helm', 'helb', 'hels', 'helt', 'help', 'helh', 'hem', 'heb', 'hebs', 'hes', 'hess', 'heng', 'hej', 'hec', 'hek', 'het', 'hep', 'heh']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d6.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d6.php new file mode 100644 index 000000000..6b6b6bef9 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d6.php @@ -0,0 +1 @@ +<?php return ['hyeo', 'hyeog', 'hyeogg', 'hyeogs', 'hyeon', 'hyeonj', 'hyeonh', 'hyeod', 'hyeol', 'hyeolg', 'hyeolm', 'hyeolb', 'hyeols', 'hyeolt', 'hyeolp', 'hyeolh', 'hyeom', 'hyeob', 'hyeobs', 'hyeos', 'hyeoss', 'hyeong', 'hyeoj', 'hyeoc', 'hyeok', 'hyeot', 'hyeop', 'hyeoh', 'hye', 'hyeg', 'hyegg', 'hyegs', 'hyen', 'hyenj', 'hyenh', 'hyed', 'hyel', 'hyelg', 'hyelm', 'hyelb', 'hyels', 'hyelt', 'hyelp', 'hyelh', 'hyem', 'hyeb', 'hyebs', 'hyes', 'hyess', 'hyeng', 'hyej', 'hyec', 'hyek', 'hyet', 'hyep', 'hyeh', 'ho', 'hog', 'hogg', 'hogs', 'hon', 'honj', 'honh', 'hod', 'hol', 'holg', 'holm', 'holb', 'hols', 'holt', 'holp', 'holh', 'hom', 'hob', 'hobs', 'hos', 'hoss', 'hong', 'hoj', 'hoc', 'hok', 'hot', 'hop', 'hoh', 'hwa', 'hwag', 'hwagg', 'hwags', 'hwan', 'hwanj', 'hwanh', 'hwad', 'hwal', 'hwalg', 'hwalm', 'hwalb', 'hwals', 'hwalt', 'hwalp', 'hwalh', 'hwam', 'hwab', 'hwabs', 'hwas', 'hwass', 'hwang', 'hwaj', 'hwac', 'hwak', 'hwat', 'hwap', 'hwah', 'hwae', 'hwaeg', 'hwaegg', 'hwaegs', 'hwaen', 'hwaenj', 'hwaenh', 'hwaed', 'hwael', 'hwaelg', 'hwaelm', 'hwaelb', 'hwaels', 'hwaelt', 'hwaelp', 'hwaelh', 'hwaem', 'hwaeb', 'hwaebs', 'hwaes', 'hwaess', 'hwaeng', 'hwaej', 'hwaec', 'hwaek', 'hwaet', 'hwaep', 'hwaeh', 'hoe', 'hoeg', 'hoegg', 'hoegs', 'hoen', 'hoenj', 'hoenh', 'hoed', 'hoel', 'hoelg', 'hoelm', 'hoelb', 'hoels', 'hoelt', 'hoelp', 'hoelh', 'hoem', 'hoeb', 'hoebs', 'hoes', 'hoess', 'hoeng', 'hoej', 'hoec', 'hoek', 'hoet', 'hoep', 'hoeh', 'hyo', 'hyog', 'hyogg', 'hyogs', 'hyon', 'hyonj', 'hyonh', 'hyod', 'hyol', 'hyolg', 'hyolm', 'hyolb', 'hyols', 'hyolt', 'hyolp', 'hyolh', 'hyom', 'hyob', 'hyobs', 'hyos', 'hyoss', 'hyong', 'hyoj', 'hyoc', 'hyok', 'hyot', 'hyop', 'hyoh', 'hu', 'hug', 'hugg', 'hugs', 'hun', 'hunj', 'hunh', 'hud', 'hul', 'hulg', 'hulm', 'hulb', 'huls', 'hult', 'hulp', 'hulh', 'hum', 'hub', 'hubs', 'hus', 'huss', 'hung', 'huj', 'huc', 'huk', 'hut', 'hup', 'huh', 'hweo', 'hweog', 'hweogg', 'hweogs', 'hweon', 'hweonj', 'hweonh', 'hweod', 'hweol', 'hweolg', 'hweolm', 'hweolb', 'hweols', 'hweolt', 'hweolp', 'hweolh', 'hweom', 'hweob', 'hweobs', 'hweos', 'hweoss', 'hweong', 'hweoj', 'hweoc', 'hweok', 'hweot', 'hweop', 'hweoh', 'hwe', 'hweg', 'hwegg', 'hwegs']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0d7.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d7.php new file mode 100644 index 000000000..97835b005 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0d7.php @@ -0,0 +1 @@ +<?php return ['hwen', 'hwenj', 'hwenh', 'hwed', 'hwel', 'hwelg', 'hwelm', 'hwelb', 'hwels', 'hwelt', 'hwelp', 'hwelh', 'hwem', 'hweb', 'hwebs', 'hwes', 'hwess', 'hweng', 'hwej', 'hwec', 'hwek', 'hwet', 'hwep', 'hweh', 'hwi', 'hwig', 'hwigg', 'hwigs', 'hwin', 'hwinj', 'hwinh', 'hwid', 'hwil', 'hwilg', 'hwilm', 'hwilb', 'hwils', 'hwilt', 'hwilp', 'hwilh', 'hwim', 'hwib', 'hwibs', 'hwis', 'hwiss', 'hwing', 'hwij', 'hwic', 'hwik', 'hwit', 'hwip', 'hwih', 'hyu', 'hyug', 'hyugg', 'hyugs', 'hyun', 'hyunj', 'hyunh', 'hyud', 'hyul', 'hyulg', 'hyulm', 'hyulb', 'hyuls', 'hyult', 'hyulp', 'hyulh', 'hyum', 'hyub', 'hyubs', 'hyus', 'hyuss', 'hyung', 'hyuj', 'hyuc', 'hyuk', 'hyut', 'hyup', 'hyuh', 'heu', 'heug', 'heugg', 'heugs', 'heun', 'heunj', 'heunh', 'heud', 'heul', 'heulg', 'heulm', 'heulb', 'heuls', 'heult', 'heulp', 'heulh', 'heum', 'heub', 'heubs', 'heus', 'heuss', 'heung', 'heuj', 'heuc', 'heuk', 'heut', 'heup', 'heuh', 'hyi', 'hyig', 'hyigg', 'hyigs', 'hyin', 'hyinj', 'hyinh', 'hyid', 'hyil', 'hyilg', 'hyilm', 'hyilb', 'hyils', 'hyilt', 'hyilp', 'hyilh', 'hyim', 'hyib', 'hyibs', 'hyis', 'hyiss', 'hying', 'hyij', 'hyic', 'hyik', 'hyit', 'hyip', 'hyih', 'hi', 'hig', 'higg', 'higs', 'hin', 'hinj', 'hinh', 'hid', 'hil', 'hilg', 'hilm', 'hilb', 'hils', 'hilt', 'hilp', 'hilh', 'him', 'hib', 'hibs', 'his', 'hiss', 'hing', 'hij', 'hic', 'hik', 'hit', 'hip', 'hih', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0f9.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0f9.php new file mode 100644 index 000000000..d0b4241cd --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0f9.php @@ -0,0 +1 @@ +<?php return ['Kay ', 'Kayng ', 'Ke ', 'Ko ', 'Kol ', 'Koc ', 'Kwi ', 'Kwi ', 'Kyun ', 'Kul ', 'Kum ', 'Na ', 'Na ', 'Na ', 'La ', 'Na ', 'Na ', 'Na ', 'Na ', 'Na ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nan ', 'Nan ', 'Nan ', 'Nan ', 'Nan ', 'Nan ', 'Nam ', 'Nam ', 'Nam ', 'Nam ', 'Nap ', 'Nap ', 'Nap ', 'Nang ', 'Nang ', 'Nang ', 'Nang ', 'Nang ', 'Nay ', 'Nayng ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'Nok ', 'Nok ', 'Nok ', 'Nok ', 'Nok ', 'Nok ', 'Non ', 'Nong ', 'Nong ', 'Nong ', 'Nong ', 'Noy ', 'Noy ', 'Noy ', 'Noy ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nuk ', 'Nuk ', 'Num ', 'Nung ', 'Nung ', 'Nung ', 'Nung ', 'Nung ', 'Twu ', 'La ', 'Lak ', 'Lak ', 'Lan ', 'Lyeng ', 'Lo ', 'Lyul ', 'Li ', 'Pey ', 'Pen ', 'Pyen ', 'Pwu ', 'Pwul ', 'Pi ', 'Sak ', 'Sak ', 'Sam ', 'Sayk ', 'Sayng ', 'Sep ', 'Sey ', 'Sway ', 'Sin ', 'Sim ', 'Sip ', 'Ya ', 'Yak ', 'Yak ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Yek ', 'Yek ', 'Yek ', 'Yek ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yel ', 'Yel ', 'Yel ', 'Yel ', 'Yel ', 'Yel ', 'Yem ', 'Yem ', 'Yem ', 'Yem ', 'Yem ', 'Yep ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yey ', 'Yey ', 'Yey ', 'Yey ', 'O ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yong ', 'Wun ', 'Wen ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yuk ', 'Yuk ', 'Yuk ', 'Yun ', 'Yun ', 'Yun ', 'Yun ', 'Yul ', 'Yul ', 'Yul ', 'Yul ', 'Yung ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'Ik ', 'Ik ', 'In ', 'In ', 'In ', 'In ', 'In ', 'In ', 'In ', 'Im ', 'Im ', 'Im ', 'Ip ', 'Ip ', 'Ip ', 'Cang ', 'Cek ', 'Ci ', 'Cip ', 'Cha ', 'Chek ']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0fa.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fa.php new file mode 100644 index 000000000..c5afa60ba --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fa.php @@ -0,0 +1 @@ +<?php return ['Chey ', 'Thak ', 'Thak ', 'Thang ', 'Thayk ', 'Thong ', 'Pho ', 'Phok ', 'Hang ', 'Hang ', 'Hyen ', 'Hwak ', 'Wu ', 'Huo ', '[?] ', '[?] ', 'Zhong ', '[?] ', 'Qing ', '[?] ', '[?] ', 'Xi ', 'Zhu ', 'Yi ', 'Li ', 'Shen ', 'Xiang ', 'Fu ', 'Jing ', 'Jing ', 'Yu ', '[?] ', 'Hagi ', '[?] ', 'Zhu ', '[?] ', '[?] ', 'Yi ', 'Du ', '[?] ', '[?] ', '[?] ', 'Fan ', 'Si ', 'Guan ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0fb.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fb.php new file mode 100644 index 000000000..af2ac33b9 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fb.php @@ -0,0 +1 @@ +<?php return ['ff', 'fi', 'fl', 'ffi', 'ffl', 'st', 'st', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'mn', 'me', 'mi', 'vn', 'mkh', '[?]', '[?]', '[?]', '[?]', '[?]', 'yi', '', 'ay', '`', '', 'd', 'h', 'k', 'l', 'm', 'm', 't', '+', 'sh', 's', 'sh', 's', 'a', 'a', '', 'b', 'g', 'd', 'h', 'v', 'z', '[?]', 't', 'y', 'k', 'k', 'l', '[?]', 'l', '[?]', 'n', 'n', '[?]', 'p', 'p', '[?]', 'ts', 'ts', 'r', 'sh', 't', 'vo', 'b', 'k', 'p', 'l', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0fc.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fc.php new file mode 100644 index 000000000..7023059af --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fc.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0fd.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fd.php new file mode 100644 index 000000000..09930de56 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fd.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '{Salla}', '{Qala}', 'Allah', 'Akbar', 'Mohammed', 'SL`M', 'Rasul', '{Alayhi}', '{WaSallam}', '{Salla}', '{Salla Llahu Alayhi WaSallam}', '{Jalla Jalalahu}', 'Rial ', '{Bismillah Ar-Rahman Ar-Rahimi}', '[?]', '[?]']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0fe.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fe.php new file mode 100644 index 000000000..33cfd8826 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0fe.php @@ -0,0 +1 @@ +<?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '~', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '..', '--', '-', '_', '_', '(', ') ', '{', '} ', '[', '] ', '[(', ')] ', '<<', '>> ', '<', '> ', '[', '] ', '{', '}', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', ',', ',', '.', '', ';', ':', '?', '!', '-', '(', ')', '{', '}', '{', '}', '#', '&', '*', '+', '-', '<', '>', '=', '', '\\', '$', '%', '@', '[?]', '[?]', '[?]', '[?]', '', '', '', '[?]', '', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x0ff.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ff.php new file mode 100644 index 000000000..b3a15398c --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x0ff.php @@ -0,0 +1 @@ +<?php return ['[?]', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '[?]', '[?]', '.', '[', ']', ',', '*', 'wo', 'a', 'i', 'u', 'e', 'o', 'ya', 'yu', 'yo', 'tu', '+', 'a', 'i', 'u', 'e', 'o', 'ka', 'ki', 'ku', 'ke', 'ko', 'sa', 'si', 'su', 'se', 'so', 'ta', 'ti', 'tu', 'te', 'to', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'hi', 'hu', 'he', 'ho', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'yu', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'n', ':', ';', '', 'g', 'gg', 'gs', 'n', 'nj', 'nh', 'd', 'dd', 'r', 'lg', 'lm', 'lb', 'ls', 'lt', 'lp', 'rh', 'm', 'b', 'bb', 'bs', 's', 'ss', '', 'j', 'jj', 'c', 'k', 't', 'p', 'h', '[?]', '[?]', '[?]', 'a', 'ae', 'ya', 'yae', 'eo', 'e', '[?]', '[?]', 'yeo', 'ye', 'o', 'wa', 'wae', 'oe', '[?]', '[?]', 'yo', 'u', 'weo', 'we', 'wi', 'yu', '[?]', '[?]', 'eu', 'yi', 'i', '[?]', '[?]', '[?]', '/C', 'PS', '!', '-', '|', 'Y=', 'W=', '[?]', '|', '-', '|', '-', '|', '#', 'O', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '{', '|', '}', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x1d4.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d4.php new file mode 100644 index 000000000..ad8d3b257 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d4.php @@ -0,0 +1 @@ +<?php return ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 26 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 52 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 78 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 104 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 130 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 156 => 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 181 => 'Z', 182 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 208 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 234 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x1d5.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d5.php new file mode 100644 index 000000000..a2a9b908d --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d5.php @@ -0,0 +1,4 @@ +<?php + +return [ + 0 => 'w', 'x', 'y', 'z', 4 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 30 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 56 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 82 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 108 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 134 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 160 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 186 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 212 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 238 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ]; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x1d6.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d6.php new file mode 100644 index 000000000..315ef5e40 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d6.php @@ -0,0 +1 @@ +<?php return ['s', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'i', 'j', '', '', 'Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon', 'Zeta', 'Eta', 'Theta', 'Iota', 'Kappa', 'Lamda', 'Mu', 'Nu', 'Xi', 'Omicron', 'Pi', 'Rho', 'Theta', 'Sigma', 'Tau', 'Upsilon', 'Phi', 'Chi', 'Psi', 'Omega', 'nabla', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa', 'lamda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigma', 'sigma', 'tai', 'upsilon', 'phi', 'chi', 'psi', 'omega', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x1d7.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d7.php new file mode 100644 index 000000000..d2b885c36 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x1d7.php @@ -0,0 +1 @@ +<?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; diff --git a/includes/libraries/anti-xss-master/src/voku/helper/data/x1f1.php b/includes/libraries/anti-xss-master/src/voku/helper/data/x1f1.php new file mode 100644 index 000000000..c0f4cfa46 --- /dev/null +++ b/includes/libraries/anti-xss-master/src/voku/helper/data/x1f1.php @@ -0,0 +1,2 @@ +<?php return ['0.', '0,', '1,', '2,', '3,', '4,', '5,', '6,', '7,', '8,', '9,', '', '', '', '', '', '(A)', '(B)', '(C)', '(D)', '(E)', '(F)', '(G)', '(H)', '(I)', '(J)', '(K)', // 0x1a + '(L)', '(M)', '(N)', '(O)', '(P)', '(Q)', '(R)', '(S)', '(T)', '(U)', '(V)', '(W)', '(X)', '(Y)', '(Z)', 48 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 80 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 112 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 230 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ]; diff --git a/sources/core.php b/sources/core.php index 16e8d5b69..59d7b12ee 100755 --- a/sources/core.php +++ b/sources/core.php @@ -46,10 +46,12 @@ if (file_exists('../includes/config/tp.config.php')) { * @return string refresh page to url */ function redirect($url) { // Load AntiXSS + include_once '../includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; + include_once '../includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; include_once '../includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php'; $antiXss = new voku\helper\AntiXSS(); if (! headers_sent()) { //If headers not sent yet... then do php redirect header('Location: ' . $antiXss->xss_clean($url)); } diff --git a/sources/identify.php b/sources/identify.php index e94d1fbe4..3ab6ba711 100755 --- a/sources/identify.php +++ b/sources/identify.php @@ -186,10 +186,12 @@ function identifyUser(string $sentData, array $SETTINGS): bool header('Content-type: text/html; charset=utf-8'); error_reporting(E_ERROR); // Load AntiXSS + include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; + include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php'; $antiXss = new voku\helper\AntiXSS(); // Load superGlobals include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/protect/SuperGlobal/SuperGlobal.php'; diff --git a/sources/items.queries.php b/sources/items.queries.php index 670c17f24..1a902ed98 100755 --- a/sources/items.queries.php +++ b/sources/items.queries.php @@ -76,10 +76,16 @@ if (defined('TP_PW_COMPLEXITY') === false) { TP_PW_STRENGTH_5 => array(TP_PW_STRENGTH_5, langHdl('complex_level5'), 'fas fa-thermometer-full text-success'), ) ); } +// Load AntiXSS +include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; +include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; +include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php'; +$antiXss = new voku\helper\AntiXSS(); + // Connect to mysql server require_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Database/Meekrodb/db.class.php'; if (defined('DB_PASSWD_CLEAR') === false) { define('DB_PASSWD_CLEAR', defuseReturnDecrypted(DB_PASSWD, $SETTINGS)); } @@ -193,11 +199,11 @@ if (is_null($inputData['type']) === false) { if (is_array($dataReceived) === true && count($dataReceived) > 0) { // Prepare variables $post_anyone_can_modify = filter_var($dataReceived['anyone_can_modify'], FILTER_SANITIZE_NUMBER_INT); $post_complexity_level = filter_var($dataReceived['complexity_level'], FILTER_SANITIZE_NUMBER_INT); - $post_description = ($dataReceived['description']); + $post_description = $antiXss->xss_clean($dataReceived['description']); $post_diffusion_list = filter_var( $dataReceived['diffusion_list'], FILTER_SANITIZE_STRING ); $post_diffusion_list = $post_diffusion_list !== false ? json_decode($post_diffusion_list) : ''; @@ -896,11 +902,11 @@ if (is_null($inputData['type']) === false) { ); $post_fields = (filter_var_array( $dataReceived['fields'], FILTER_SANITIZE_STRING )); - $post_description = ($dataReceived['description']); + $post_description = $antiXss->xss_clean($dataReceived['description']); $post_fa_icon = filter_var(($dataReceived['fa_icon']), FILTER_SANITIZE_STRING); //-> DO A SET OF CHECKS // Perform a check in case of Read-Only user creating an item in his PF if (
$post_description = ($dataReceived['description']); $post_description = ($dataReceived['description']);
<?php declare(strict_types=1); namespace voku\helper; /** * ## 🇷🇺 Русским гражданам * В Украине сейчас идет война. Силами РФ наносятся удары по гражданской инфраструктуре в [Харькове][1], [Киеве][2], [Чернигове][3], [Сумах][4], [Ирпене][5] и десятках других городов. Гибнут люди - и гражданское население, и военные, в том числе российские призывники, которых бросили воевать. Чтобы лишить собственный народ доступа к информации, правительство РФ запретило называть войну войной, закрыло независимые СМИ и принимает сейчас ряд диктаторских законов. Эти законы призваны заткнуть рот всем, кто против войны. За обычный призыв к миру сейчас можно получить несколько лет тюрьмы. * Не молчите! Молчание - знак вашего согласия с политикой российского правительства. * **Вы можете сделать выбор НЕ МОЛЧАТЬ.** * --- * ## 🇺🇸 To people of Russia * There is a war in Ukraine right now. The forces of the Russian Federation are attacking civilian infrastructure in [Kharkiv][1], [Kyiv][2], [Chernihiv][3], [Sumy][4], [Irpin][5] and dozens of other cities. People are dying – both civilians and military servicemen, including Russian conscripts who were thrown into the fighting. In order to deprive its own people of access to information, the government of the Russian Federation has forbidden calling a war a war, shut down independent media and is passing a number of dictatorial laws. These laws are meant to silence all those who are against war. You can be jailed for multiple years for simply calling for peace. * Do not be silent! Silence is a sign that you accept the Russian government's policy. * **You can choose NOT TO BE SILENT.** * --- * - [1] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/P7K2MSZDGFMIJPDD7CI2GIROJI.jpg "Kharkiv under attack" * - [2] https://gdb.voanews.com/01bd0000-0aff-0242-fad0-08d9fc92c5b3_cx0_cy5_cw0_w1023_r1_s.jpg "Kyiv under attack" * - [3] https://ichef.bbci.co.uk/news/976/cpsprodpb/163DD/production/_123510119_hi074310744.jpg "Chernihiv under attack" * - [4] https://www.youtube.com/watch?v=8K-bkqKKf2A "Sumy under attack" * - [5] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/K4MTMLEHTRKGFK3GSKAT4GR3NE.jpg "Irpin under attack" * * @psalm-immutable */ final class ASCII { // // INFO: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes // const UZBEK_LANGUAGE_CODE = 'uz'; const TURKMEN_LANGUAGE_CODE = 'tk'; const THAI_LANGUAGE_CODE = 'th'; const PASHTO_LANGUAGE_CODE = 'ps'; const ORIYA_LANGUAGE_CODE = 'or'; const MONGOLIAN_LANGUAGE_CODE = 'mn'; const KOREAN_LANGUAGE_CODE = 'ko'; const KIRGHIZ_LANGUAGE_CODE = 'ky'; const ARMENIAN_LANGUAGE_CODE = 'hy'; const BENGALI_LANGUAGE_CODE = 'bn'; const BELARUSIAN_LANGUAGE_CODE = 'be'; const AMHARIC_LANGUAGE_CODE = 'am'; const JAPANESE_LANGUAGE_CODE = 'ja'; const CHINESE_LANGUAGE_CODE = 'zh'; const DUTCH_LANGUAGE_CODE = 'nl'; const ITALIAN_LANGUAGE_CODE = 'it'; const MACEDONIAN_LANGUAGE_CODE = 'mk'; const PORTUGUESE_LANGUAGE_CODE = 'pt'; const GREEKLISH_LANGUAGE_CODE = 'el__greeklish'; const GREEK_LANGUAGE_CODE = 'el'; const HINDI_LANGUAGE_CODE = 'hi'; const SWEDISH_LANGUAGE_CODE = 'sv'; const TURKISH_LANGUAGE_CODE = 'tr'; const BULGARIAN_LANGUAGE_CODE = 'bg'; const HUNGARIAN_LANGUAGE_CODE = 'hu'; const MYANMAR_LANGUAGE_CODE = 'my'; const CROATIAN_LANGUAGE_CODE = 'hr'; const FINNISH_LANGUAGE_CODE = 'fi'; const GEORGIAN_LANGUAGE_CODE = 'ka'; const RUSSIAN_LANGUAGE_CODE = 'ru'; const RUSSIAN_PASSPORT_2013_LANGUAGE_CODE = 'ru__passport_2013'; const RUSSIAN_GOST_2000_B_LANGUAGE_CODE = 'ru__gost_2000_b'; const UKRAINIAN_LANGUAGE_CODE = 'uk'; const KAZAKH_LANGUAGE_CODE = 'kk'; const CZECH_LANGUAGE_CODE = 'cs'; const DANISH_LANGUAGE_CODE = 'da'; const POLISH_LANGUAGE_CODE = 'pl'; const ROMANIAN_LANGUAGE_CODE = 'ro'; const ESPERANTO_LANGUAGE_CODE = 'eo'; const ESTONIAN_LANGUAGE_CODE = 'et'; const LATVIAN_LANGUAGE_CODE = 'lv'; const LITHUANIAN_LANGUAGE_CODE = 'lt'; const NORWEGIAN_LANGUAGE_CODE = 'no'; const VIETNAMESE_LANGUAGE_CODE = 'vi'; const ARABIC_LANGUAGE_CODE = 'ar'; const PERSIAN_LANGUAGE_CODE = 'fa'; const SERBIAN_LANGUAGE_CODE = 'sr'; const SERBIAN_CYRILLIC_LANGUAGE_CODE = 'sr__cyr'; const SERBIAN_LATIN_LANGUAGE_CODE = 'sr__lat'; const AZERBAIJANI_LANGUAGE_CODE = 'az'; const SLOVAK_LANGUAGE_CODE = 'sk'; const FRENCH_LANGUAGE_CODE = 'fr'; const FRENCH_AUSTRIAN_LANGUAGE_CODE = 'fr_at'; const FRENCH_SWITZERLAND_LANGUAGE_CODE = 'fr_ch'; const GERMAN_LANGUAGE_CODE = 'de'; const GERMAN_AUSTRIAN_LANGUAGE_CODE = 'de_at'; const GERMAN_SWITZERLAND_LANGUAGE_CODE = 'de_ch'; const ENGLISH_LANGUAGE_CODE = 'en'; const EXTRA_LATIN_CHARS_LANGUAGE_CODE = 'latin'; const EXTRA_WHITESPACE_CHARS_LANGUAGE_CODE = ' '; const EXTRA_MSWORD_CHARS_LANGUAGE_CODE = 'msword'; /** * @var array<string, array<string, string>>|null */ private static $ASCII_MAPS; /** * @var array<string, array<string, string>>|null */ private static $ASCII_MAPS_AND_EXTRAS; /** * @var array<string, array<string, string>>|null */ private static $ASCII_EXTRAS; /** * @var array<string, int>|null */ private static $ORD; /** * @var array<string, int>|null */ private static $LANGUAGE_MAX_KEY; /** * url: https://en.wikipedia.org/wiki/Wikipedia:ASCII#ASCII_printable_characters * * @var string */ private static $REGEX_ASCII = "[^\x09\x10\x13\x0A\x0D\x20-\x7E]"; /** * bidirectional text chars * * url: https://www.w3.org/International/questions/qa-bidi-unicode-controls * * @var array<int, string> */ private static $BIDI_UNI_CODE_CONTROLS_TABLE = [ // LEFT-TO-RIGHT EMBEDDING (use -> dir = "ltr") 8234 => "\xE2\x80\xAA", // RIGHT-TO-LEFT EMBEDDING (use -> dir = "rtl") 8235 => "\xE2\x80\xAB", // POP DIRECTIONAL FORMATTING // (use -> </bdo>) 8236 => "\xE2\x80\xAC", // LEFT-TO-RIGHT OVERRIDE // (use -> <bdo dir = "ltr">) 8237 => "\xE2\x80\xAD", // RIGHT-TO-LEFT OVERRIDE // (use -> <bdo dir = "rtl">) 8238 => "\xE2\x80\xAE", // LEFT-TO-RIGHT ISOLATE // (use -> dir = "ltr") 8294 => "\xE2\x81\xA6", // RIGHT-TO-LEFT ISOLATE // (use -> dir = "rtl") 8295 => "\xE2\x81\xA7", // FIRST STRONG ISOLATE // (use -> dir = "auto") 8296 => "\xE2\x81\xA8", // POP DIRECTIONAL ISOLATE 8297 => "\xE2\x81\xA9", ]; /** * Get all languages from the constants "ASCII::.*LANGUAGE_CODE". * * @return string[] * * @phpstan-return array<string, string> */ public static function getAllLanguages(): array { // init static $LANGUAGES = []; if ($LANGUAGES !== []) { return $LANGUAGES; } foreach ((new \ReflectionClass(__CLASS__))->getConstants() as $constant => $lang) { if (\strpos($constant, 'EXTRA') !== false) { $LANGUAGES[\strtolower($constant)] = $lang; } else { $LANGUAGES[\strtolower(\str_replace('_LANGUAGE_CODE', '', $constant))] = $lang; } } return $LANGUAGES; } /** * Returns an replacement array for ASCII methods. * * EXAMPLE: <code> * $array = ASCII::charsArray(); * var_dump($array['ru']['б']); // 'b' * </code> * * @psalm-suppress InvalidNullableReturnType - we use the prepare* methods here, so we don't get NULL here * * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> * * @psalm-pure * * @return array * * @phpstan-return array<string, array<string , string>> */ public static function charsArray(bool $replace_extra_symbols = false): array { if ($replace_extra_symbols) { self::prepareAsciiAndExtrasMaps(); return self::$ASCII_MAPS_AND_EXTRAS ?? []; } self::prepareAsciiMaps(); return self::$ASCII_MAPS ?? []; } /** * Returns an replacement array for ASCII methods with a mix of multiple languages. * * EXAMPLE: <code> * $array = ASCII::charsArrayWithMultiLanguageValues(); * var_dump($array['b']); // ['β', 'б', 'ဗ', 'ბ', 'ب'] * </code> * * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> * * @psalm-pure * * @return array * <p>An array of replacements.</p> * * @phpstan-return array<string, array<int, string>> */ public static function charsArrayWithMultiLanguageValues(bool $replace_extra_symbols = false): array { /** @var array<string, array<string, array<int, string>>> */ static $CHARS_ARRAY = []; $cacheKey = '' . $replace_extra_symbols; if (isset($CHARS_ARRAY[$cacheKey])) { return $CHARS_ARRAY[$cacheKey]; } // init $return = []; $language_all_chars = self::charsArrayWithSingleLanguageValues( $replace_extra_symbols, false ); /** @noinspection PhpSillyAssignmentInspection - hack for phpstan */ /** @var array<string, string> $language_all_chars */ $language_all_chars = $language_all_chars; /** @noinspection AlterInForeachInspection */ foreach ($language_all_chars as $key => &$value) { $return[$value][] = $key; } $CHARS_ARRAY[$cacheKey] = $return; /** @var array<string, array<int, string>> $return - hack for phpstan */ return $return; } /** * Returns an replacement array for ASCII methods with one language. * * For example, German will map 'ä' to 'ae', while other languages * will simply return e.g. 'a'. * * EXAMPLE: <code> * $array = ASCII::charsArrayWithOneLanguage('ru'); * $tmpKey = \array_search('yo', $array['replace']); * echo $array['orig'][$tmpKey]; // 'ё' * </code> * * @psalm-suppress InvalidNullableReturnType - we use the prepare* methods here, so we don't get NULL here * * @param string $language [optional] <p>Language of the source string e.g.: en, de_at, or de-ch. * (default is 'en') | ASCII::*_LANGUAGE_CODE</p> * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> * @param bool $asOrigReplaceArray [optional] <p>TRUE === return {orig: string[], replace: string[]} * array</p> * * @psalm-pure * * @return array * <p>An array of replacements.</p> * * @phpstan-param ASCII::*_LANGUAGE_CODE $language * @phpstan-return array{orig: string[], replace: string[]}|array<string, string> */ public static function charsArrayWithOneLanguage( string $language = self::ENGLISH_LANGUAGE_CODE, bool $replace_extra_symbols = false, bool $asOrigReplaceArray = true ): array { $language = self::get_language($language); // init /** @var array<string, array<string, array<string, string>|array{orig: string[], replace: string[]}>> */ static $CHARS_ARRAY = []; $cacheKey = '' . $replace_extra_symbols . '-' . $asOrigReplaceArray; // check static cache if (isset($CHARS_ARRAY[$cacheKey][$language])) { return $CHARS_ARRAY[$cacheKey][$language]; } if ($replace_extra_symbols) { self::prepareAsciiAndExtrasMaps(); /** @noinspection DuplicatedCode */ if (isset(self::$ASCII_MAPS_AND_EXTRAS[$language])) { $tmpArray = self::$ASCII_MAPS_AND_EXTRAS[$language]; if ($asOrigReplaceArray) { $CHARS_ARRAY[$cacheKey][$language] = [ 'orig' => \array_keys($tmpArray), 'replace' => \array_values($tmpArray), ]; } else { $CHARS_ARRAY[$cacheKey][$language] = $tmpArray; } } else { /** @noinspection NestedPositiveIfStatementsInspection */ if ($asOrigReplaceArray) { $CHARS_ARRAY[$cacheKey][$language] = [ 'orig' => [], 'replace' => [], ]; } else { $CHARS_ARRAY[$cacheKey][$language] = []; } } } else { self::prepareAsciiMaps(); /** @noinspection DuplicatedCode */ if (isset(self::$ASCII_MAPS[$language])) { $tmpArray = self::$ASCII_MAPS[$language]; if ($asOrigReplaceArray) { $CHARS_ARRAY[$cacheKey][$language] = [ 'orig' => \array_keys($tmpArray), 'replace' => \array_values($tmpArray), ]; } else { $CHARS_ARRAY[$cacheKey][$language] = $tmpArray; } } else { /** @noinspection NestedPositiveIfStatementsInspection */ if ($asOrigReplaceArray) { $CHARS_ARRAY[$cacheKey][$language] = [ 'orig' => [], 'replace' => [], ]; } else { $CHARS_ARRAY[$cacheKey][$language] = []; } } } return $CHARS_ARRAY[$cacheKey][$language] ?? ['orig' => [], 'replace' => []]; } /** * Returns an replacement array for ASCII methods with multiple languages. * * EXAMPLE: <code> * $array = ASCII::charsArrayWithSingleLanguageValues(); * $tmpKey = \array_search('hnaik', $array['replace']); * echo $array['orig'][$tmpKey]; // '၌' * </code> * * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p> * @param bool $asOrigReplaceArray [optional] <p>TRUE === return {orig: string[], replace: string[]} * array</p> * * @psalm-pure * * @return array * <p>An array of replacements.</p> * * @phpstan-return array{orig: string[], replace: string[]}|array<string, string> */ public static function charsArrayWithSingleLanguageValues( bool $replace_extra_symbols = false, bool $asOrigReplaceArray = true ): array { // init /** @var array<string, array<string, string>|array{orig: string[], replace: string[]}> */ static $CHARS_ARRAY = []; $cacheKey = '' . $replace_extra_symbols . '-' . $asOrigReplaceArray; if (isset($CHARS_ARRAY[$cacheKey])) { return $CHARS_ARRAY[$cacheKey]; } if ($replace_extra_symbols) { self::prepareAsciiAndExtrasMaps(); /** @noinspection AlterInForeachInspection */ /** @psalm-suppress PossiblyNullIterator - we use the prepare* methods here, so we don't get NULL here */ foreach (self::$ASCII_MAPS_AND_EXTRAS ?? [] as &$map) { $CHARS_ARRAY[$cacheKey][] = $map; } } else { self::prepareAsciiMaps(); /** @noinspection AlterInForeachInspection */ /** @psalm-suppress PossiblyNullIterator - we use the prepare* methods here, so we don't get NULL here */ foreach (self::$ASCII_MAPS ?? [] as &$map) { $CHARS_ARRAY[$cacheKey][] = $map; } } /** @phpstan-ignore-next-line - ... error? */ $CHARS_ARRAY[$cacheKey] = \array_merge([], ...$CHARS_ARRAY[$cacheKey]); if ($asOrigReplaceArray) { $CHARS_ARRAY[$cacheKey] = [ 'orig' => \array_keys($CHARS_ARRAY[$cacheKey]), 'replace' => \array_values($CHARS_ARRAY[$cacheKey]), ]; } return $CHARS_ARRAY[$cacheKey]; } /** * Accepts a string and removes all non-UTF-8 characters from it + extras if needed. * * @param string $str <p>The string to be sanitized.</p> * @param bool $normalize_whitespace [optional] <p>Set to true, if you need to normalize the * whitespace.</p> * @param bool $normalize_msword [optional] <p>Set to true, if you need to normalize MS Word chars * e.g.: "…" * => "..."</p> * @param bool $keep_non_breaking_space [optional] <p>Set to true, to keep non-breaking-spaces, in * combination with * $normalize_whitespace</p> * @param bool $remove_invisible_characters [optional] <p>Set to false, if you not want to remove invisible * characters e.g.: "\0"</p> * * @psalm-pure * * @return string * <p>A clean UTF-8 string.</p> */ public static function clean( string $str, bool $normalize_whitespace = true, bool $keep_non_breaking_space = false, bool $normalize_msword = true, bool $remove_invisible_characters = true ): string { // http://stackoverflow.com/questions/1401317/remove-non-utf8-characters-from-string // caused connection reset problem on larger strings $regex = '/ ( (?: [\x00-\x7F] # single-byte sequences 0xxxxxxx | [\xC0-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx | [\xE0-\xEF][\x80-\xBF]{2} # triple-byte sequences 1110xxxx 10xxxxxx * 2 | [\xF0-\xF7][\x80-\xBF]{3} # quadruple-byte sequence 11110xxx 10xxxxxx * 3 ){1,100} # ...one or more times ) | ( [\x80-\xBF] ) # invalid byte in range 10000000 - 10111111 | ( [\xC0-\xFF] ) # invalid byte in range 11000000 - 11111111 /x'; $str = (string) \preg_replace($regex, '$1', $str); if ($normalize_whitespace) { $str = self::normalize_whitespace($str, $keep_non_breaking_space); } if ($normalize_msword) { $str = self::normalize_msword($str); } if ($remove_invisible_characters) { $str = self::remove_invisible_characters($str); } return $str; } /** * Checks if a string is 7 bit ASCII. * * EXAMPLE: <code> * ASCII::is_ascii('白'); // false * </code> * * @param string $str <p>The string to check.</p> * * @psalm-pure * * @return bool * <p> * <strong>true</strong> if it is ASCII<br> * <strong>false</strong> otherwise * </p> */ public static function is_ascii(string $str): bool { if ($str === '') { return true; } return !\preg_match('/' . self::$REGEX_ASCII . '/', $str); } /** * Returns a string with smart quotes, ellipsis characters, and dashes from * Windows-1252 (commonly used in Word documents) replaced by their ASCII * equivalents. * * EXAMPLE: <code> * ASCII::normalize_msword('„Abcdef…”'); // '"Abcdef..."' * </code> * * @param string $str <p>The string to be normalized.</p> * * @psalm-pure * * @return string * <p>A string with normalized characters for commonly used chars in Word documents.</p> */ public static function normalize_msword(string $str): string { if ($str === '') { return ''; } /** @var array{orig: string[], replace: string[]} */ static $MSWORD_CACHE = ['orig' => [], 'replace' => []]; if (empty($MSWORD_CACHE['orig'])) { self::prepareAsciiMaps(); /** @var array<string, string> */ $map = self::$ASCII_MAPS[self::EXTRA_MSWORD_CHARS_LANGUAGE_CODE] ?? []; $MSWORD_CACHE = [ 'orig' => \array_keys($map), 'replace' => \array_values($map), ]; } return \str_replace($MSWORD_CACHE['orig'], $MSWORD_CACHE['replace'], $str); } /** * Normalize the whitespace. * * EXAMPLE: <code> * ASCII::normalize_whitespace("abc-\xc2\xa0-öäü-\xe2\x80\xaf-\xE2\x80\xAC", true); // "abc-\xc2\xa0-öäü- -" * </code> * * @param string $str <p>The string to be normalized.</p> * @param bool $keepNonBreakingSpace [optional] <p>Set to true, to keep non-breaking-spaces.</p> * @param bool $keepBidiUnicodeControls [optional] <p>Set to true, to keep non-printable (for the web) * bidirectional text chars.</p> * @param bool $normalize_control_characters [optional] <p>Set to true, to convert e.g. LINE-, PARAGRAPH-SEPARATOR with "\n" and LINE TABULATION with "\t".</p> * * @psalm-pure * * @return string * <p>A string with normalized whitespace.</p> */ public static function normalize_whitespace( string $str, bool $keepNonBreakingSpace = false, bool $keepBidiUnicodeControls = false, bool $normalize_control_characters = false ): string { if ($str === '') { return ''; } /** @var array<int,array<string,string>> */ static $WHITESPACE_CACHE = []; $cacheKey = (int) $keepNonBreakingSpace; if ($normalize_control_characters) { $str = \str_replace( [ "\x0d\x0c", // 'END OF LINE' "\xe2\x80\xa8", // 'LINE SEPARATOR' "\xe2\x80\xa9", // 'PARAGRAPH SEPARATOR' "\x0c", // 'FORM FEED' // "\f" "\x0b", // 'VERTICAL TAB' // "\v" ], [ "\n", "\n", "\n", "\n", "\t", ], $str ); } if (!isset($WHITESPACE_CACHE[$cacheKey])) { self::prepareAsciiMaps(); $WHITESPACE_CACHE[$cacheKey] = self::$ASCII_MAPS[self::EXTRA_WHITESPACE_CHARS_LANGUAGE_CODE] ?? []; if ($keepNonBreakingSpace) { unset($WHITESPACE_CACHE[$cacheKey]["\xc2\xa0"]); } $WHITESPACE_CACHE[$cacheKey] = array_keys($WHITESPACE_CACHE[$cacheKey]); } if (!$keepBidiUnicodeControls) { /** @var array<int,string>|null */ static $BIDI_UNICODE_CONTROLS_CACHE = null; if ($BIDI_UNICODE_CONTROLS_CACHE === null) { $BIDI_UNICODE_CONTROLS_CACHE = self::$BIDI_UNI_CODE_CONTROLS_TABLE; } $str = \str_replace($BIDI_UNICODE_CONTROLS_CACHE, '', $str); } return \str_replace($WHITESPACE_CACHE[$cacheKey], ' ', $str); } /** * Remove invisible characters from a string. * * e.g.: This prevents sandwiching null characters between ascii characters, like Java\0script. * * copy&past from https://github.com/bcit-ci/CodeIgniter/blob/develop/system/core/Common.php * * @param string $str * @param bool $url_encoded * @param string $replacement * @param bool $keep_basic_control_characters * * @psalm-pure * * @return string */ public static function remove_invisible_characters( string $str, bool $url_encoded = false, string $replacement = '', bool $keep_basic_control_characters = true ): string { // init $non_displayables = []; // every control character except: // - newline (dec 10), // - carriage return (dec 13), // - horizontal tab (dec 09) if ($url_encoded) { $non_displayables[] = '/%0[0-8bcefBCEF]/'; // url encoded 00-08, 11, 12, 14, 15 $non_displayables[] = '/%1[0-9a-fA-F]/'; // url encoded 16-31 } if ($keep_basic_control_characters) { $non_displayables[] = '/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'; // 00-08, 11, 12, 14-31, 127 } else { $str = self::normalize_whitespace($str, false, false, true); $non_displayables[] = '/[^\P{C}\s]/u'; } do { $str = (string) \preg_replace($non_displayables, $replacement, $str, -1, $count); } while ($count !== 0); return $str; } /** * WARNING: This method will return broken characters and is only for special cases. * * Convert two UTF-8 encoded string to a single-byte strings suitable for * functions that need the same string length after the conversion. * * The function simply uses (and updates) a tailored dynamic encoding * (in/out map parameter) where non-ascii characters are remapped to * the range [128-255] in order of appearance. * * @param string $str1 * @param string $str2 * * @return string[] * * @phpstan-return array{0: string, 1: string} */ public static function to_ascii_remap(string $str1, string $str2): array { $charMap = []; $str1 = self::to_ascii_remap_intern($str1, $charMap); $str2 = self::to_ascii_remap_intern($str2, $charMap); return [$str1, $str2]; } /** * Returns an ASCII version of the string. A set of non-ASCII characters are * replaced with their closest ASCII counterparts, and the rest are removed * by default. The language or locale of the source string can be supplied * for language-specific transliteration in any of the following formats: * en, en_GB, or en-GB. For example, passing "de" results in "äöü" mapping * to "aeoeue" rather than "aou" as in other languages. * * EXAMPLE: <code> * ASCII::to_ascii('�Düsseldorf�', 'en'); // Dusseldorf * </code> * * @param string $str <p>The input string.</p> * @param string $language [optional] <p>Language of the source string. * (default is 'en') | ASCII::*_LANGUAGE_CODE</p> * @param bool $remove_unsupported_chars [optional] <p>Whether or not to remove the * unsupported characters.</p> * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound * ".</p> * @param bool $use_transliterate [optional] <p>Use ASCII::to_transliterate() for unknown chars.</p> * @param bool|null $replace_single_chars_only [optional] <p>Single char replacement is better for the * performance, but some languages need to replace more then one char * at the same time. | NULL === auto-setting, depended on the * language</p> * * @psalm-pure * * @return string * <p>A string that contains only ASCII characters.</p> * * @phpstan-param ASCII::*_LANGUAGE_CODE $language */ public static function to_ascii( string $str, string $language = self::ENGLISH_LANGUAGE_CODE, bool $remove_unsupported_chars = true, bool $replace_extra_symbols = false, bool $use_transliterate = false, bool $replace_single_chars_only = null ): string { if ($str === '') { return ''; } /** @phpstan-var ASCII::*_LANGUAGE_CODE - hack for phpstan */ $language = self::get_language($language); static $EXTRA_SYMBOLS_CACHE = null; /** @var array<string,array<string,string>> */ static $REPLACE_HELPER_CACHE = []; $cacheKey = $language . '-' . $replace_extra_symbols; if (!isset($REPLACE_HELPER_CACHE[$cacheKey])) { $langAll = self::charsArrayWithSingleLanguageValues($replace_extra_symbols, false); $langSpecific = self::charsArrayWithOneLanguage($language, $replace_extra_symbols, false); if ($langSpecific === []) { $REPLACE_HELPER_CACHE[$cacheKey] = $langAll; } else { $REPLACE_HELPER_CACHE[$cacheKey] = \array_merge([], $langAll, $langSpecific); } } if ( $replace_extra_symbols && $EXTRA_SYMBOLS_CACHE === null ) { $EXTRA_SYMBOLS_CACHE = []; foreach (self::$ASCII_EXTRAS ?? [] as $extrasDataTmp) { foreach ($extrasDataTmp as $extrasDataKeyTmp => $extrasDataValueTmp) { $EXTRA_SYMBOLS_CACHE[$extrasDataKeyTmp] = $extrasDataKeyTmp; } } $EXTRA_SYMBOLS_CACHE = \implode('', $EXTRA_SYMBOLS_CACHE); } $charDone = []; if (\preg_match_all('/' . self::$REGEX_ASCII . ($replace_extra_symbols ? '|[' . $EXTRA_SYMBOLS_CACHE . ']' : '') . '/u', $str, $matches)) { if (!$replace_single_chars_only) { if (self::$LANGUAGE_MAX_KEY === null) { self::$LANGUAGE_MAX_KEY = self::getData('ascii_language_max_key'); } $maxKeyLength = self::$LANGUAGE_MAX_KEY[$language] ?? 0; if ($maxKeyLength >= 5) { foreach ($matches[0] as $keyTmp => $char) { if (isset($matches[0][$keyTmp + 4])) { $fiveChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1] . $matches[0][$keyTmp + 2] . $matches[0][$keyTmp + 3] . $matches[0][$keyTmp + 4]; } else { $fiveChars = null; } if ( $fiveChars && !isset($charDone[$fiveChars]) && isset($REPLACE_HELPER_CACHE[$cacheKey][$fiveChars]) && \strpos($str, $fiveChars) !== false ) { // DEBUG //\var_dump($str, $fiveChars, $REPLACE_HELPER_CACHE[$cacheKey][$fiveChars]); $charDone[$fiveChars] = true; $str = \str_replace($fiveChars, $REPLACE_HELPER_CACHE[$cacheKey][$fiveChars], $str); // DEBUG //\var_dump($str, "\n"); } } } if ($maxKeyLength >= 4) { foreach ($matches[0] as $keyTmp => $char) { if (isset($matches[0][$keyTmp + 3])) { $fourChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1] . $matches[0][$keyTmp + 2] . $matches[0][$keyTmp + 3]; } else { $fourChars = null; } if ( $fourChars && !isset($charDone[$fourChars]) && isset($REPLACE_HELPER_CACHE[$cacheKey][$fourChars]) && \strpos($str, $fourChars) !== false ) { // DEBUG //\var_dump($str, $fourChars, $REPLACE_HELPER_CACHE[$cacheKey][$fourChars]); $charDone[$fourChars] = true; $str = \str_replace($fourChars, $REPLACE_HELPER_CACHE[$cacheKey][$fourChars], $str); // DEBUG //\var_dump($str, "\n"); } } } foreach ($matches[0] as $keyTmp => $char) { if (isset($matches[0][$keyTmp + 2])) { $threeChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1] . $matches[0][$keyTmp + 2]; } else { $threeChars = null; } if ( $threeChars && !isset($charDone[$threeChars]) && isset($REPLACE_HELPER_CACHE[$cacheKey][$threeChars]) && \strpos($str, $threeChars) !== false ) { // DEBUG //\var_dump($str, $threeChars, $REPLACE_HELPER_CACHE[$cacheKey][$threeChars]); $charDone[$threeChars] = true; $str = \str_replace($threeChars, $REPLACE_HELPER_CACHE[$cacheKey][$threeChars], $str); // DEBUG //\var_dump($str, "\n"); } } foreach ($matches[0] as $keyTmp => $char) { if (isset($matches[0][$keyTmp + 1])) { $twoChars = $matches[0][$keyTmp + 0] . $matches[0][$keyTmp + 1]; } else { $twoChars = null; } if ( $twoChars && !isset($charDone[$twoChars]) && isset($REPLACE_HELPER_CACHE[$cacheKey][$twoChars]) && \strpos($str, $twoChars) !== false ) { // DEBUG //\var_dump($str, $twoChars, $REPLACE_HELPER_CACHE[$cacheKey][$twoChars]); $charDone[$twoChars] = true; $str = \str_replace($twoChars, $REPLACE_HELPER_CACHE[$cacheKey][$twoChars], $str); // DEBUG //\var_dump($str, "\n"); } } } foreach ($matches[0] as $char) { if ( !isset($charDone[$char]) && isset($REPLACE_HELPER_CACHE[$cacheKey][$char]) && \strpos($str, $char) !== false ) { // DEBUG //\var_dump($str, $char, $REPLACE_HELPER_CACHE[$cacheKey][$char]); $charDone[$char] = true; $str = \str_replace($char, $REPLACE_HELPER_CACHE[$cacheKey][$char], $str); // DEBUG //\var_dump($str, "\n"); } } } /** @psalm-suppress PossiblyNullOperand - we use the prepare* methods here, so we don't get NULL here */ if (!isset(self::$ASCII_MAPS[$language])) { $use_transliterate = true; } if ($use_transliterate) { $str = self::to_transliterate($str, null, false); } if ($remove_unsupported_chars) { $str = (string) \str_replace(["\n\r", "\n", "\r", "\t"], ' ', $str); $str = (string) \preg_replace('/' . self::$REGEX_ASCII . '/', '', $str); } return $str; } /** * Convert given string to safe filename (and keep string case). * * EXAMPLE: <code> * ASCII::to_filename('שדגשדג.png', true)); // 'shdgshdg.png' * </code> * * @param string $str * @param bool $use_transliterate <p>ASCII::to_transliterate() is used by default - unsafe characters are * simply replaced with hyphen otherwise.</p> * @param string $fallback_char * * @psalm-pure * * @return string * <p>A string that contains only safe characters for a filename.</p> */ public static function to_filename( string $str, bool $use_transliterate = true, string $fallback_char = '-' ): string { if ($use_transliterate) { $str = self::to_transliterate($str, $fallback_char); } $fallback_char_escaped = \preg_quote($fallback_char, '/'); $str = (string) \preg_replace( [ '/[^' . $fallback_char_escaped . '.\\-a-zA-Z\d\\s]/', // 1) remove un-needed chars '/\s+/u', // 2) convert spaces to $fallback_char '/[' . $fallback_char_escaped . ']+/u', // 3) remove double $fallback_char's ], [ '', $fallback_char, $fallback_char, ], $str ); return \trim($str, $fallback_char); } /** * Converts the string into an URL slug. This includes replacing non-ASCII * characters with their closest ASCII equivalents, removing remaining * non-ASCII and non-alphanumeric characters, and replacing whitespace with * $separator. The separator defaults to a single dash, and the string * is also converted to lowercase. The language of the source string can * also be supplied for language-specific transliteration. * * @param string $str * @param string $separator [optional] <p>The string used to replace whitespace.</p> * @param string $language [optional] <p>Language of the source string. * (default is 'en') | ASCII::*_LANGUAGE_CODE</p> * @param array<string, string> $replacements [optional] <p>A map of replaceable strings.</p> * @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " * pound ".</p> * @param bool $use_str_to_lower [optional] <p>Use "string to lower" for the input.</p> * @param bool $use_transliterate [optional] <p>Use ASCII::to_transliterate() for unknown * chars.</p> * @psalm-pure * * @return string * <p>A string that has been converted to an URL slug.</p> * * @phpstan-param ASCII::*_LANGUAGE_CODE $language */ public static function to_slugify( string $str, string $separator = '-', string $language = self::ENGLISH_LANGUAGE_CODE, array $replacements = [], bool $replace_extra_symbols = false, bool $use_str_to_lower = true, bool $use_transliterate = false ): string { if ($str === '') { return ''; } foreach ($replacements as $from => $to) { $str = \str_replace($from, $to, $str); } $str = self::to_ascii( $str, $language, false, $replace_extra_symbols, $use_transliterate ); $str = \str_replace('@', $separator, $str); $str = (string) \preg_replace( '/[^a-zA-Z\\d\\s\\-_' . \preg_quote($separator, '/') . ']/', '', $str ); if ($use_str_to_lower) { $str = \strtolower($str); } $str = (string) \preg_replace('/^[\'\\s]+|[\'\\s]+$/', '', $str); $str = (string) \preg_replace('/\\B([A-Z])/', '-\1', $str); $str = (string) \preg_replace('/[\\-_\\s]+/', $separator, $str); $l = \strlen($separator); if ($l && \strpos($str, $separator) === 0) { $str = (string) \substr($str, $l); } if (\substr($str, -$l) === $separator) { $str = (string) \substr($str, 0, \strlen($str) - $l); } return $str; } /** * Returns an ASCII version of the string. A set of non-ASCII characters are * replaced with their closest ASCII counterparts, and the rest are removed * unless instructed otherwise. * * EXAMPLE: <code> * ASCII::to_transliterate('déjà σσς iıii'); // 'deja sss iiii' * </code> * * @param string $str <p>The input string.</p> * @param string|null $unknown [optional] <p>Character use if character unknown. (default is '?') * But you can also use NULL to keep the unknown chars.</p> * @param bool $strict [optional] <p>Use "transliterator_transliterate()" from PHP-Intl * * @psalm-pure * * @return string * <p>A String that contains only ASCII characters.</p> * * @noinspection ParameterDefaultValueIsNotNullInspection */ public static function to_transliterate( string $str, $unknown = '?', bool $strict = false ): string { /** @var array<int,string>|null */ static $UTF8_TO_TRANSLIT = null; /** null|\Transliterator */ static $TRANSLITERATOR = null; /** @var bool|null */ static $SUPPORT_INTL = null; if ($str === '') { return ''; } if ($SUPPORT_INTL === null) { $SUPPORT_INTL = \extension_loaded('intl'); } // check if we only have ASCII, first (better performance) $str_tmp = $str; if (self::is_ascii($str)) { return $str; } $str = self::clean($str); // check again, if we only have ASCII, now ... if ( $str_tmp !== $str && self::is_ascii($str) ) { return $str; } if ( $strict && $SUPPORT_INTL === true ) { if (!isset($TRANSLITERATOR)) { // INFO: see "*-Latin" rules via "transliterator_list_ids()" /** @var \Transliterator */ $TRANSLITERATOR = \transliterator_create('NFKC; [:Nonspacing Mark:] Remove; NFKC; Any-Latin; Latin-ASCII;'); } // INFO: https://unicode.org/cldr/utility/character.jsp $str_tmp = \transliterator_transliterate($TRANSLITERATOR, $str); if ($str_tmp !== false) { // check again, if we only have ASCII, now ... if ( $str_tmp !== $str && self::is_ascii($str_tmp) ) { return $str_tmp; } $str = $str_tmp; } } if (self::$ORD === null) { self::$ORD = self::getData('ascii_ord'); } \preg_match_all('/.|[^\x00]$/us', $str, $array_tmp); $chars = $array_tmp[0]; $ord = null; $str_tmp = ''; foreach ($chars as &$c) { $ordC0 = self::$ORD[$c[0]]; if ($ordC0 >= 0 && $ordC0 <= 127) { $str_tmp .= $c; continue; } $ordC1 = self::$ORD[$c[1]]; // ASCII - next please if ($ordC0 >= 192 && $ordC0 <= 223) { $ord = ($ordC0 - 192) * 64 + ($ordC1 - 128); } if ($ordC0 >= 224) { $ordC2 = self::$ORD[$c[2]]; if ($ordC0 <= 239) { $ord = ($ordC0 - 224) * 4096 + ($ordC1 - 128) * 64 + ($ordC2 - 128); } if ($ordC0 >= 240) { $ordC3 = self::$ORD[$c[3]]; if ($ordC0 <= 247) { $ord = ($ordC0 - 240) * 262144 + ($ordC1 - 128) * 4096 + ($ordC2 - 128) * 64 + ($ordC3 - 128); } // We only process valid UTF-8 chars (<= 4 byte), so we don't need this code here ... /* if ($ordC0 >= 248) { $ordC4 = self::$ORD[$c[4]]; if ($ordC0 <= 251) { $ord = ($ordC0 - 248) * 16777216 + ($ordC1 - 128) * 262144 + ($ordC2 - 128) * 4096 + ($ordC3 - 128) * 64 + ($ordC4 - 128); } if ($ordC0 >= 252) { $ordC5 = self::$ORD[$c[5]]; if ($ordC0 <= 253) { $ord = ($ordC0 - 252) * 1073741824 + ($ordC1 - 128) * 16777216 + ($ordC2 - 128) * 262144 + ($ordC3 - 128) * 4096 + ($ordC4 - 128) * 64 + ($ordC5 - 128); } } } */ } } if ( $ordC0 === 254 || $ordC0 === 255 || $ord === null ) { $str_tmp .= $unknown ?? $c; continue; } $bank = $ord >> 8; if (!isset($UTF8_TO_TRANSLIT[$bank])) { $UTF8_TO_TRANSLIT[$bank] = self::getDataIfExists(\sprintf('x%03x', $bank)); } $new_char = $ord & 255; if (isset($UTF8_TO_TRANSLIT[$bank][$new_char])) { // keep for debugging /* echo "file: " . sprintf('x%02x', $bank) . "\n"; echo "char: " . $c . "\n"; echo "ord: " . $ord . "\n"; echo "new_char: " . $new_char . "\n"; echo "new_char: " . mb_chr($new_char) . "\n"; echo "ascii: " . $UTF8_TO_TRANSLIT[$bank][$new_char] . "\n"; echo "bank:" . $bank . "\n\n"; */ $new_char = $UTF8_TO_TRANSLIT[$bank][$new_char]; /** @noinspection MissingOrEmptyGroupStatementInspection */ /** @noinspection PhpStatementHasEmptyBodyInspection */ if ($unknown === null && $new_char === '') { // nothing } elseif ( $new_char === '[?]' || $new_char === '[?] ' ) { $c = $unknown ?? $c; } else { $c = $new_char; } } else { // keep for debugging missing chars /* echo "file: " . sprintf('x%02x', $bank) . "\n"; echo "char: " . $c . "\n"; echo "ord: " . $ord . "\n"; echo "new_char: " . $new_char . "\n"; echo "new_char: " . mb_chr($new_char) . "\n"; echo "bank:" . $bank . "\n\n"; */ $c = $unknown ?? $c; } $str_tmp .= $c; } return $str_tmp; } /** * WARNING: This method will return broken characters and is only for special cases. * * Convert a UTF-8 encoded string to a single-byte string suitable for * functions that need the same string length after the conversion. * * The function simply uses (and updates) a tailored dynamic encoding * (in/out map parameter) where non-ascii characters are remapped to * the range [128-255] in order of appearance. * * Thus, it supports up to 128 different multibyte code points max over * the whole set of strings sharing this encoding. * * Source: https://github.com/KEINOS/mb_levenshtein * * @param string $str <p>UTF-8 string to be converted to extended ASCII.</p> * @param array $map <p>Internal-Map of code points to ASCII characters.</p> * * @return string * <p>Mapped borken string.</p> * * @phpstan-param array<string, string> $map */ private static function to_ascii_remap_intern(string $str, array &$map): string { // find all utf-8 characters $matches = []; if (!\preg_match_all('/[\xC0-\xF7][\x80-\xBF]+/', $str, $matches)) { return $str; // plain ascii string } // update the encoding map with the characters not already met $mapCount = \count($map); foreach ($matches[0] as $mbc) { if (!isset($map[$mbc])) { $map[$mbc] = \chr(128 + $mapCount); ++$mapCount; } } // finally, remap non-ascii characters return \strtr($str, $map); } /** * Get the language from a string. * * e.g.: de_at -> de_at * de_DE -> de * DE_DE -> de * de-de -> de * * @noinspection ReturnTypeCanBeDeclaredInspection * * @param string $language * * @psalm-pure * * @return string */ private static function get_language(string $language) { if ($language === '') { return ''; } if ( \strpos($language, '_') === false && \strpos($language, '-') === false ) { return \strtolower($language); } $language = \str_replace('-', '_', \strtolower($language)); $regex = '/(?<first>[a-z]+)_\g{first}/'; return (string) \preg_replace($regex, '$1', $language); } /** * Get data from "/data/*.php". * * @noinspection ReturnTypeCanBeDeclaredInspection * * @param string $file * * @psalm-pure * * @return array<mixed> */ private static function getData(string $file) { /** @noinspection PhpIncludeInspection */ /** @noinspection UsingInclusionReturnValueInspection */ /** @psalm-suppress UnresolvableInclude */ return include __DIR__ . '/data/' . $file . '.php'; } /** * Get data from "/data/*.php". * * @param string $file * * @psalm-pure * * @return array<mixed> */ private static function getDataIfExists(string $file): array { $file = __DIR__ . '/data/' . $file . '.php'; /** @psalm-suppress ImpureFunctionCall */ if (\is_file($file)) { /** @noinspection PhpIncludeInspection */ /** @noinspection UsingInclusionReturnValueInspection */ /** @psalm-suppress UnresolvableInclude */ return include $file; } return []; } /** * @psalm-pure * * @return void */ private static function prepareAsciiAndExtrasMaps() { if (self::$ASCII_MAPS_AND_EXTRAS === null) { self::prepareAsciiMaps(); self::prepareAsciiExtras(); /** @psalm-suppress PossiblyNullArgument - we use the prepare* methods here, so we don't get NULL here */ self::$ASCII_MAPS_AND_EXTRAS = \array_merge_recursive( self::$ASCII_MAPS ?? [], self::$ASCII_EXTRAS ?? [] ); } } /** * @psalm-pure * * @return void */ private static function prepareAsciiMaps() { if (self::$ASCII_MAPS === null) { self::$ASCII_MAPS = self::getData('ascii_by_languages'); } } /** * @psalm-pure * * @return void */ private static function prepareAsciiExtras() { if (self::$ASCII_EXTRAS === null) { self::$ASCII_EXTRAS = self::getData('ascii_extras_by_languages'); } } } <?php declare(strict_types=1); namespace voku\helper; /** * ## 🇷🇺 Русским гражданам * В Украине сейчас идет война. Силами РФ наносятся удары по гражданской инфраструктуре в [Харькове][1], [Киеве][2], [Чернигове][3], [Сумах][4], [Ирпене][5] и десятках других городов. Гибнут люди - и гражданское население, и военные, в том числе российские призывники, которых бросили воевать. Чтобы лишить собственный народ доступа к информации, правительство РФ запретило называть войну войной, закрыло независимые СМИ и принимает сейчас ряд диктаторских законов. Эти законы призваны заткнуть рот всем, кто против войны. За обычный призыв к миру сейчас можно получить несколько лет тюрьмы. * Не молчите! Молчание - знак вашего согласия с политикой российского правительства. * **Вы можете сделать выбор НЕ МОЛЧАТЬ.** * --- * ## 🇺🇸 To people of Russia * There is a war in Ukraine right now. The forces of the Russian Federation are attacking civilian infrastructure in [Kharkiv][1], [Kyiv][2], [Chernihiv][3], [Sumy][4], [Irpin][5] and dozens of other cities. People are dying – both civilians and military servicemen, including Russian conscripts who were thrown into the fighting. In order to deprive its own people of access to information, the government of the Russian Federation has forbidden calling a war a war, shut down independent media and is passing a number of dictatorial laws. These laws are meant to silence all those who are against war. You can be jailed for multiple years for simply calling for peace. * Do not be silent! Silence is a sign that you accept the Russian government's policy. * **You can choose NOT TO BE SILENT.** * --- * - [1] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/P7K2MSZDGFMIJPDD7CI2GIROJI.jpg "Kharkiv under attack" * - [2] https://gdb.voanews.com/01bd0000-0aff-0242-fad0-08d9fc92c5b3_cx0_cy5_cw0_w1023_r1_s.jpg "Kyiv under attack" * - [3] https://ichef.bbci.co.uk/news/976/cpsprodpb/163DD/production/_123510119_hi074310744.jpg "Chernihiv under attack" * - [4] https://www.youtube.com/watch?v=8K-bkqKKf2A "Sumy under attack" * - [5] https://cloudfront-us-east-2.images.arcpublishing.com/reuters/K4MTMLEHTRKGFK3GSKAT4GR3NE.jpg "Irpin under attack" * * @immutable */ final class UTF8 { /** * Bom => Byte-Length * * INFO: https://en.wikipedia.org/wiki/Byte_order_mark * * @var array<string, int> */ private static $BOM = [ "\xef\xbb\xbf" => 3, // UTF-8 BOM '' => 6, // UTF-8 BOM as "WINDOWS-1252" (one char has [maybe] more then one byte ...) "\x00\x00\xfe\xff" => 4, // UTF-32 (BE) BOM ' þÿ' => 6, // UTF-32 (BE) BOM as "WINDOWS-1252" "\xff\xfe\x00\x00" => 4, // UTF-32 (LE) BOM 'ÿþ ' => 6, // UTF-32 (LE) BOM as "WINDOWS-1252" "\xfe\xff" => 2, // UTF-16 (BE) BOM 'þÿ' => 4, // UTF-16 (BE) BOM as "WINDOWS-1252" "\xff\xfe" => 2, // UTF-16 (LE) BOM 'ÿþ' => 4, // UTF-16 (LE) BOM as "WINDOWS-1252" ]; /** * Numeric code point => UTF-8 Character * * url: http://www.w3schools.com/charsets/ref_utf_punctuation.asp * * @var array<int, string> */ private static $WHITESPACE = [ // NULL Byte 0 => "\x0", // Tab 9 => "\x9", // New Line 10 => "\xa", // Vertical Tab 11 => "\xb", // Carriage Return 13 => "\xd", // Ordinary Space 32 => "\x20", // NO-BREAK SPACE 160 => "\xc2\xa0", // OGHAM SPACE MARK 5760 => "\xe1\x9a\x80", // MONGOLIAN VOWEL SEPARATOR 6158 => "\xe1\xa0\x8e", // EN QUAD 8192 => "\xe2\x80\x80", // EM QUAD 8193 => "\xe2\x80\x81", // EN SPACE 8194 => "\xe2\x80\x82", // EM SPACE 8195 => "\xe2\x80\x83", // THREE-PER-EM SPACE 8196 => "\xe2\x80\x84", // FOUR-PER-EM SPACE 8197 => "\xe2\x80\x85", // SIX-PER-EM SPACE 8198 => "\xe2\x80\x86", // FIGURE SPACE 8199 => "\xe2\x80\x87", // PUNCTUATION SPACE 8200 => "\xe2\x80\x88", // THIN SPACE 8201 => "\xe2\x80\x89", // HAIR SPACE 8202 => "\xe2\x80\x8a", // LINE SEPARATOR 8232 => "\xe2\x80\xa8", // PARAGRAPH SEPARATOR 8233 => "\xe2\x80\xa9", // NARROW NO-BREAK SPACE 8239 => "\xe2\x80\xaf", // MEDIUM MATHEMATICAL SPACE 8287 => "\xe2\x81\x9f", // HALFWIDTH HANGUL FILLER 65440 => "\xef\xbe\xa0", // IDEOGRAPHIC SPACE 12288 => "\xe3\x80\x80", ]; /** * @var array<string, string> */ private static $WHITESPACE_TABLE = [ 'SPACE' => "\x20", 'NO-BREAK SPACE' => "\xc2\xa0", 'OGHAM SPACE MARK' => "\xe1\x9a\x80", 'EN QUAD' => "\xe2\x80\x80", 'EM QUAD' => "\xe2\x80\x81", 'EN SPACE' => "\xe2\x80\x82", 'EM SPACE' => "\xe2\x80\x83", 'THREE-PER-EM SPACE' => "\xe2\x80\x84", 'FOUR-PER-EM SPACE' => "\xe2\x80\x85", 'SIX-PER-EM SPACE' => "\xe2\x80\x86", 'FIGURE SPACE' => "\xe2\x80\x87", 'PUNCTUATION SPACE' => "\xe2\x80\x88", 'THIN SPACE' => "\xe2\x80\x89", 'HAIR SPACE' => "\xe2\x80\x8a", 'LINE SEPARATOR' => "\xe2\x80\xa8", 'PARAGRAPH SEPARATOR' => "\xe2\x80\xa9", 'ZERO WIDTH SPACE' => "\xe2\x80\x8b", 'NARROW NO-BREAK SPACE' => "\xe2\x80\xaf", 'MEDIUM MATHEMATICAL SPACE' => "\xe2\x81\x9f", 'IDEOGRAPHIC SPACE' => "\xe3\x80\x80", 'HALFWIDTH HANGUL FILLER' => "\xef\xbe\xa0", ]; /** * @var array * * @phpstan-var array{upper: string[], lower: string[]} */ private static $COMMON_CASE_FOLD = [ 'upper' => [ 'µ', 'ſ', "\xCD\x85", 'ς', 'ẞ', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE", ], 'lower' => [ 'μ', 's', 'ι', 'σ', 'ß', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι', ], ]; /** * @var array * * @phpstan-var array<string, mixed> */ private static $SUPPORT = []; /** * @var string[]|null * * @phpstan-var array<string, string>|null */ private static $BROKEN_UTF8_FIX; /** * @var string[]|null * * @phpstan-var array<int, string>|null */ private static $WIN1252_TO_UTF8; /** * @var string[]|null * * @phpstan-var array<int ,string>|null */ private static $INTL_TRANSLITERATOR_LIST; /** * @var string[]|null * * @phpstan-var array<string>|null */ private static $ENCODINGS; /** * @var int[]|null * * @phpstan-var array<string ,int>|null */ private static $ORD; /** * @var string[]|null * * @phpstan-var array<string, string>|null */ private static $EMOJI; /** * @var string[]|null * * @phpstan-var array<string>|null */ private static $EMOJI_VALUES_CACHE; /** * @var string[]|null * * @phpstan-var array<string>|null */ private static $EMOJI_KEYS_CACHE; /** * @var string[]|null * * @phpstan-var array<string>|null */ private static $EMOJI_KEYS_REVERSIBLE_CACHE; /** * @var string[]|null * * @phpstan-var array<int, string>|null */ private static $CHR; /** * __construct() */ public function __construct() { } /** * Return the character at the specified position: $str[1] like functionality. * * EXAMPLE: <code>UTF8::access('fòô', 1); // 'ò'</code> * * @param string $str <p>A UTF-8 string.</p> * @param int $pos <p>The position of character to return.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>Single multi-byte character.</p> */ public static function access(string $str, int $pos, string $encoding = 'UTF-8'): string { if ($str === '' || $pos < 0) { return ''; } if ($encoding === 'UTF-8') { return (string) \mb_substr($str, $pos, 1); } return (string) self::substr($str, $pos, 1, $encoding); } /** * Prepends UTF-8 BOM character to the string and returns the whole string. * * INFO: If BOM already existed there, the Input string is returned. * * EXAMPLE: <code>UTF8::add_bom_to_string('fòô'); // "\xEF\xBB\xBF" . 'fòô'</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return non-empty-string * <p>The output string that contains BOM.</p> */ public static function add_bom_to_string(string $str): string { if (!self::string_has_bom($str)) { $str = self::bom() . $str; } \assert($str !== ''); return $str; } /** * Changes all keys in an array. * * @param array<string, mixed> $array <p>The array to work on</p> * @param int $case [optional] <p> Either <strong>CASE_UPPER</strong><br> * or <strong>CASE_LOWER</strong> (default)</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string[] * <p>An array with its keys lower- or uppercased.</p> */ public static function array_change_key_case( array $array, int $case = \CASE_LOWER, string $encoding = 'UTF-8' ): array { if ( $case !== \CASE_LOWER && $case !== \CASE_UPPER ) { $case = \CASE_LOWER; } $return = []; foreach ($array as $key => &$value) { $key = $case === \CASE_LOWER ? self::strtolower($key, $encoding) : self::strtoupper($key, $encoding); $return[$key] = $value; } return $return; } /** * Returns the substring between $start and $end, if found, or an empty * string. An optional offset may be supplied from which to begin the * search for the start string. * * @param string $str * @param string $start <p>Delimiter marking the start of the substring.</p> * @param string $end <p>Delimiter marking the end of the substring.</p> * @param int $offset [optional] <p>Index from which to begin the search. Default: 0</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function between( string $str, string $start, string $end, int $offset = 0, string $encoding = 'UTF-8' ): string { if ($encoding === 'UTF-8') { $start_position = \mb_strpos($str, $start, $offset); if ($start_position === false) { return ''; } $substr_index = $start_position + (int) \mb_strlen($start); $end_position = \mb_strpos($str, $end, $substr_index); if ( $end_position === false || $end_position === $substr_index ) { return ''; } return (string) \mb_substr($str, $substr_index, $end_position - $substr_index); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); $start_position = self::strpos($str, $start, $offset, $encoding); if ($start_position === false) { return ''; } $substr_index = $start_position + (int) self::strlen($start, $encoding); $end_position = self::strpos($str, $end, $substr_index, $encoding); if ( $end_position === false || $end_position === $substr_index ) { return ''; } return (string) self::substr( $str, $substr_index, $end_position - $substr_index, $encoding ); } /** * Convert binary into a string. * * INFO: opposite to UTF8::str_to_binary() * * EXAMPLE: <code>UTF8::binary_to_str('11110000100111111001100010000011'); // '😃'</code> * * @param string $bin 1|0 * * @psalm-pure * * @return string */ public static function binary_to_str($bin): string { if (!isset($bin[0])) { return ''; } $convert = \base_convert($bin, 2, 16); if ($convert === '0') { return ''; } return \pack('H*', $convert); } /** * Returns the UTF-8 Byte Order Mark Character. * * INFO: take a look at UTF8::$bom for e.g. UTF-16 and UTF-32 BOM values * * EXAMPLE: <code>UTF8::bom(); // "\xEF\xBB\xBF"</code> * * @psalm-pure * * @return non-empty-string * <p>UTF-8 Byte Order Mark.</p> */ public static function bom(): string { return "\xef\xbb\xbf"; } /** * @alias of UTF8::chr_map() * * @param callable(string): string $callback * @param string $str * * @psalm-pure * * @return string[] * * @see UTF8::chr_map() */ public static function callback($callback, string $str): array { return self::chr_map($callback, $str); } /** * Returns the character at $index, with indexes starting at 0. * * @param string $str <p>The input string.</p> * @param int<1, max> $index <p>Position of the character.</p> * @param string $encoding [optional] <p>Default is UTF-8</p> * * @psalm-pure * * @return string * <p>The character at $index.</p> */ public static function char_at(string $str, int $index, string $encoding = 'UTF-8'): string { if ($encoding === 'UTF-8') { return (string) \mb_substr($str, $index, 1); } return (string) self::substr($str, $index, 1, $encoding); } /** * Returns an array consisting of the characters in the string. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return string[] * <p>An array of chars.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-list<string> : list<string>) */ public static function chars(string $str): array { return self::str_split($str); } /** * This method will auto-detect your server environment for UTF-8 support. * * @return true|null * * @internal <p>You don't need to run it manually, it will be triggered if it's needed.</p> */ public static function checkForSupport() { if (!isset(self::$SUPPORT['already_checked_via_portable_utf8'])) { self::$SUPPORT['already_checked_via_portable_utf8'] = true; // http://php.net/manual/en/book.mbstring.php self::$SUPPORT['mbstring'] = self::mbstring_loaded(); self::$SUPPORT['mbstring_func_overload'] = self::mbstring_overloaded(); if (self::$SUPPORT['mbstring'] === true) { \mb_internal_encoding('UTF-8'); \mb_regex_encoding('UTF-8'); self::$SUPPORT['mbstring_internal_encoding'] = 'UTF-8'; } // http://php.net/manual/en/book.iconv.php self::$SUPPORT['iconv'] = self::iconv_loaded(); // http://php.net/manual/en/book.intl.php self::$SUPPORT['intl'] = self::intl_loaded(); // http://php.net/manual/en/class.intlchar.php self::$SUPPORT['intlChar'] = self::intlChar_loaded(); // http://php.net/manual/en/book.ctype.php self::$SUPPORT['ctype'] = self::ctype_loaded(); // http://php.net/manual/en/class.finfo.php self::$SUPPORT['finfo'] = self::finfo_loaded(); // http://php.net/manual/en/book.json.php self::$SUPPORT['json'] = self::json_loaded(); // http://php.net/manual/en/book.pcre.php self::$SUPPORT['pcre_utf8'] = self::pcre_utf8_support(); self::$SUPPORT['symfony_polyfill_used'] = self::symfony_polyfill_used(); if (self::$SUPPORT['symfony_polyfill_used'] === true) { \mb_internal_encoding('UTF-8'); self::$SUPPORT['mbstring_internal_encoding'] = 'UTF-8'; } return true; } return null; } /** * Generates a UTF-8 encoded character from the given code point. * * INFO: opposite to UTF8::ord() * * EXAMPLE: <code>UTF8::chr(0x2603); // '☃'</code> * * @param int $code_point <p>The code point for which to generate a character.</p> * @param string $encoding [optional] <p>Default is UTF-8</p> * * @psalm-pure * * @return string|null * <p>Multi-byte character, returns null on failure or empty input.</p> */ public static function chr($code_point, string $encoding = 'UTF-8') { // init /** * @psalm-suppress ImpureStaticVariable * * @var array<string,string> */ static $CHAR_CACHE = []; if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ( $encoding !== 'UTF-8' && $encoding !== 'ISO-8859-1' && $encoding !== 'WINDOWS-1252' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::chr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } if ( !\is_int($code_point) /* @phpstan-ignore-line | hack for bad inputs */ || $code_point <= 0 ) { return null; } $cache_key = $code_point . '_' . $encoding; if (isset($CHAR_CACHE[$cache_key])) { return $CHAR_CACHE[$cache_key]; } if ($code_point <= 0x80) { // only for "simple"-chars if (self::$CHR === null) { self::$CHR = self::getData('chr'); } /** * @psalm-suppress PossiblyNullArrayAccess */ $chr = self::$CHR[$code_point]; if ($encoding !== 'UTF-8') { $chr = self::encode($encoding, $chr); } return $CHAR_CACHE[$cache_key] = $chr; } // // fallback via "IntlChar" // if (self::$SUPPORT['intlChar'] === true) { $chr = \IntlChar::chr($code_point); if ($encoding !== 'UTF-8') { $chr = self::encode($encoding, $chr); } return $CHAR_CACHE[$cache_key] = $chr; } // // fallback via vanilla php // if (self::$CHR === null) { self::$CHR = self::getData('chr'); } $code_point = (int) $code_point; if ($code_point <= 0x7FF) { /** * @psalm-suppress PossiblyNullArrayAccess */ $chr = self::$CHR[($code_point >> 6) + 0xC0] . self::$CHR[($code_point & 0x3F) + 0x80]; } elseif ($code_point <= 0xFFFF) { /** * @psalm-suppress PossiblyNullArrayAccess */ $chr = self::$CHR[($code_point >> 12) + 0xE0] . self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . self::$CHR[($code_point & 0x3F) + 0x80]; } else { /** * @psalm-suppress PossiblyNullArrayAccess */ $chr = self::$CHR[($code_point >> 18) + 0xF0] . self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . self::$CHR[($code_point & 0x3F) + 0x80]; } if ($encoding !== 'UTF-8') { $chr = self::encode($encoding, $chr); } return $CHAR_CACHE[$cache_key] = $chr; } /** * Applies callback to all characters of a string. * * EXAMPLE: <code>UTF8::chr_map([UTF8::class, 'strtolower'], 'Κόσμε'); // ['κ','ό', 'σ', 'μ', 'ε']</code> * * @param callable(string): string $callback <p>The callback function.</p> * @param string $str <p>UTF-8 string to run callback on.</p> * * @psalm-pure * * @return string[] * <p>The outcome of the callback, as array.</p> */ public static function chr_map($callback, string $str): array { return \array_map( $callback, self::str_split($str) ); } /** * Generates an array of byte length of each character of a Unicode string. * * 1 byte => U+0000 - U+007F * 2 byte => U+0080 - U+07FF * 3 byte => U+0800 - U+FFFF * 4 byte => U+10000 - U+10FFFF * * EXAMPLE: <code>UTF8::chr_size_list('中文空白-test'); // [3, 3, 3, 3, 1, 1, 1, 1, 1]</code> * * @param string $str <p>The original unicode string.</p> * * @psalm-pure * * @return int[] * <p>An array of byte lengths of each character.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-list<1|2|3|4> : list<1|2|3|4>) */ public static function chr_size_list(string $str): array { if ($str === '') { return []; } if (self::$SUPPORT['mbstring_func_overload'] === true) { /* @phpstan-ignore-next-line | str_split only give one char, so that we only got int<1,4> */ return \array_map( static function (string $data): int { // "mb_" is available if overload is used, so use it ... return \mb_strlen($data, 'CP850'); // 8-BIT }, self::str_split($str) ); } /* @phpstan-ignore-next-line | str_split only give one char, so that we only got int<1,4> */ return \array_map('\strlen', self::str_split($str)); } /** * Get a decimal code representation of a specific character. * * INFO: opposite to UTF8::decimal_to_chr() * * EXAMPLE: <code>UTF8::chr_to_decimal('§'); // 0xa7</code> * * @param string $char <p>The input character.</p> * * @psalm-pure * * @return int */ public static function chr_to_decimal(string $char): int { if (self::$SUPPORT['iconv'] === true) { $chr_tmp = \iconv('UTF-8', 'UCS-4LE', $char); if ($chr_tmp !== false) { /** @phpstan-ignore-next-line - "unpack": only false if the format string contains errors */ return \unpack('V', $chr_tmp)[1]; } } $code = self::ord($char[0]); $bytes = 1; if (!($code & 0x80)) { // 0xxxxxxx return $code; } if (($code & 0xe0) === 0xc0) { // 110xxxxx $bytes = 2; $code &= ~0xc0; } elseif (($code & 0xf0) === 0xe0) { // 1110xxxx $bytes = 3; $code &= ~0xe0; } elseif (($code & 0xf8) === 0xf0) { // 11110xxx $bytes = 4; $code &= ~0xf0; } for ($i = 2; $i <= $bytes; ++$i) { // 10xxxxxx $code = ($code << 6) + (self::ord($char[$i - 1]) & ~0x80); } return $code; } /** * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character. * * EXAMPLE: <code>UTF8::chr_to_hex('§'); // U+00a7</code> * * @param int|string $char <p>The input character</p> * @param string $prefix [optional] * * @psalm-pure * * @return string * <p>The code point encoded as U+xxxx.</p> */ public static function chr_to_hex($char, string $prefix = 'U+'): string { if ($char === '') { return ''; } if ($char === '&#0;') { $char = ''; } return self::int_to_hex(self::ord((string) $char), $prefix); } /** * Splits a string into smaller chunks and multiple lines, using the specified line ending character. * * EXAMPLE: <code>UTF8::chunk_split('ABC-ÖÄÜ-中文空白-κόσμε', 3); // "ABC\r\n-ÖÄ\r\nÜ-中\r\n文空白\r\n-κό\r\nσμε"</code> * * @param string $str <p>The original string to be split.</p> * @param int<1, max> $chunk_length [optional] <p>The maximum character length of a chunk.</p> * @param string $end [optional] <p>The character(s) to be inserted at the end of each chunk.</p> * * @psalm-pure * * @return string * <p>The chunked string.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function chunk_split(string $str, int $chunk_length = 76, string $end = "\r\n"): string { return \implode($end, self::str_split($str, $chunk_length)); } /** * Accepts a string and removes all non-UTF-8 characters from it + extras if needed. * * EXAMPLE: <code>UTF8::clean("\xEF\xBB\xBF„Abcdef\xc2\xa0\x20…” — 😃 - Düsseldorf", true, true); // '„Abcdef …” — 😃 - Düsseldorf'</code> * * @param string $str <p>The string to be sanitized.</p> * @param bool $remove_bom [optional] <p>Set to true, if you need to remove * UTF-BOM.</p> * @param bool $normalize_whitespace [optional] <p>Set to true, if you need to normalize the * whitespace.</p> * @param bool $normalize_msword [optional] <p>Set to true, if you need to normalize MS * Word chars e.g.: "…" * => "..."</p> * @param bool $keep_non_breaking_space [optional] <p>Set to true, to keep non-breaking-spaces, * in * combination with * $normalize_whitespace</p> * @param bool $replace_diamond_question_mark [optional] <p>Set to true, if you need to remove diamond * question mark e.g.: "�"</p> * @param bool $remove_invisible_characters [optional] <p>Set to false, if you not want to remove * invisible characters e.g.: "\0"</p> * @param bool $remove_invisible_characters_url_encoded [optional] <p>Set to true, if you not want to remove * invisible url encoded characters e.g.: "%0B"<br> WARNING: * maybe contains false-positives e.g. aa%0Baa -> aaaa. * </p> * * @psalm-pure * * @return string * <p>An clean UTF-8 encoded string.</p> */ public static function clean( string $str, bool $remove_bom = false, bool $normalize_whitespace = false, bool $normalize_msword = false, bool $keep_non_breaking_space = false, bool $replace_diamond_question_mark = false, bool $remove_invisible_characters = true, bool $remove_invisible_characters_url_encoded = false ): string { // http://stackoverflow.com/questions/1401317/remove-non-utf8-characters-from-string // caused connection reset problem on larger strings $regex = '/ ( (?: [\x00-\x7F] # single-byte sequences 0xxxxxxx | [\xC0-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx | [\xE0-\xEF][\x80-\xBF]{2} # triple-byte sequences 1110xxxx 10xxxxxx * 2 | [\xF0-\xF7][\x80-\xBF]{3} # quadruple-byte sequence 11110xxx 10xxxxxx * 3 ){1,100} # ...one or more times ) | ( [\x80-\xBF] ) # invalid byte in range 10000000 - 10111111 | ( [\xC0-\xFF] ) # invalid byte in range 11000000 - 11111111 /x'; $str = (string) \preg_replace($regex, '$1', $str); if ($replace_diamond_question_mark) { $str = self::replace_diamond_question_mark($str); } if ($remove_invisible_characters) { $str = self::remove_invisible_characters($str, $remove_invisible_characters_url_encoded); } if ($normalize_whitespace) { $str = self::normalize_whitespace($str, $keep_non_breaking_space); } if ($normalize_msword) { $str = self::normalize_msword($str); } if ($remove_bom) { $str = self::remove_bom($str); } return $str; } /** * Clean-up a string and show only printable UTF-8 chars at the end + fix UTF-8 encoding. * * EXAMPLE: <code>UTF8::cleanup("\xEF\xBB\xBF„Abcdef\xc2\xa0\x20…” — 😃 - Düsseldorf", true, true); // '„Abcdef …” — 😃 - Düsseldorf'</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return string */ public static function cleanup($str): string { // init $str = (string) $str; if ($str === '') { return ''; } // fixed ISO <-> UTF-8 Errors $str = self::fix_simple_utf8($str); // remove all none UTF-8 symbols // && remove diamond question mark (�) // && remove remove invisible characters (e.g. "\0") // && remove BOM // && normalize whitespace chars (but keep non-breaking-spaces) return self::clean( $str, true, true, false, true, true ); } /** * Accepts a string or an array of chars and returns an array of Unicode code points. * * INFO: opposite to UTF8::string() * * EXAMPLE: <code> * UTF8::codepoints('κöñ'); // array(954, 246, 241) * // ... OR ... * UTF8::codepoints('κöñ', true); // array('U+03ba', 'U+00f6', 'U+00f1') * </code> * * @param string|string[] $arg <p>A UTF-8 encoded string or an array of such chars.</p> * @param bool $use_u_style <p>If True, will return code points in U+xxxx format, * default, code points will be returned as integers.</p> * * @psalm-pure * * @return int[]|string[] * <p> * The array of code points:<br> * int[] for $u_style === false<br> * string[] for $u_style === true<br> * </p> * * @template T as string|string[] * @phpstan-param T $arg * @phpstan-return (T is non-empty-string ? ($use_u_style is true ? non-empty-list<string> : non-empty-list<int>) : ($use_u_style is true ? list<string> : list<int>)) */ public static function codepoints($arg, bool $use_u_style = false): array { if (\is_string($arg)) { $arg = self::str_split($arg); } /** * @psalm-suppress DocblockTypeContradiction * @phpstan-ignore-next-line hack for bad inputs */ if (!\is_array($arg)) { return []; } if ($arg === []) { return []; } $arg = \array_map( [ self::class, 'ord', ], $arg ); if ($use_u_style) { $arg = \array_map( [ self::class, 'int_to_hex', ], $arg ); } /* @phpstan-ignore-next-line | FP? */ return $arg; } /** * Trims the string and replaces consecutive whitespace characters with a * single space. This includes tabs and newline characters, as well as * multibyte whitespace such as the thin space and ideographic space. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return string * <p>A string with trimmed $str and condensed whitespace.</p> */ public static function collapse_whitespace(string $str): string { if (self::$SUPPORT['mbstring'] === true) { return \trim((string) \mb_ereg_replace('[[:space:]]+', ' ', $str)); } return \trim(self::regex_replace($str, '[[:space:]]+', ' ')); } /** * Returns count of characters used in a string. * * EXAMPLE: <code>UTF8::count_chars('κaκbκc'); // array('κ' => 3, 'a' => 1, 'b' => 1, 'c' => 1)</code> * * @param string $str <p>The input string.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param bool $try_to_use_mb_functions [optional] <p>Set to false, if you don't want to use * * @psalm-pure * * @return int[] * <p>An associative array of Character as keys and * their count as values.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-array<string, int> : array<string, int>) */ public static function count_chars( string $str, bool $clean_utf8 = false, bool $try_to_use_mb_functions = true ): array { return \array_count_values( self::str_split( $str, 1, $clean_utf8, $try_to_use_mb_functions ) ); } /** * Create a valid CSS identifier for e.g. "class"- or "id"-attributes. * * EXAMPLE: <code>UTF8::css_identifier('123foo/bar!!!'); // _23foo-bar</code> * * copy&past from https://github.com/drupal/core/blob/8.8.x/lib/Drupal/Component/Utility/Html.php#L95 * * @param string $str <p>INFO: if no identifier is given e.g. " " or "", we will create a unique string automatically</p> * @param string[] $filter * @param bool $strip_tags * @param bool $strtolower * * @psalm-pure * * @return string * * @phpstan-param array<string,string> $filter */ public static function css_identifier( string $str = '', array $filter = [ ' ' => '-', '/' => '-', '[' => '', ']' => '', ], bool $strip_tags = false, bool $strtolower = true ): string { // We could also use strtr() here but its much slower than str_replace(). In // order to keep '__' to stay '__' we first replace it with a different // placeholder after checking that it is not defined as a filter. $double_underscore_replacements = 0; $str = \trim($str); if ($str) { $str = self::clean($str, true); } if ($strip_tags) { $str = \strip_tags($str); } $str = \trim($str); // fallback (1) if (!$str) { $str = \uniqid('auto-generated-css-class', true); } if ($strtolower) { $str = \strtolower($str); } if (!isset($filter['__'])) { $str = \str_replace('__', '##', $str, $double_underscore_replacements); } $str = \str_replace(\array_keys($filter), \array_values($filter), $str); // Replace temporary placeholder '##' with '__' only if the original // $identifier contained '__'. if ($double_underscore_replacements > 0) { $str = \str_replace('##', '__', $str); } // Valid characters in a CSS identifier are: // - the hyphen (U+002D) // - a-z (U+0030 - U+0039) // - A-Z (U+0041 - U+005A) // - the underscore (U+005F) // - 0-9 (U+0061 - U+007A) // - ISO 10646 characters U+00A1 and higher // We strip out any character not in the above list. $str = (string) \preg_replace('/[^\x{002D}\x{0030}-\x{0039}\x{0041}-\x{005A}\x{005F}\x{0061}-\x{007A}\x{00A1}-\x{FFFF}]/u', '', $str); // Identifiers cannot start with a digit, two hyphens, or a hyphen followed by a digit. $str = (string) \preg_replace(['/^[0-9]/', '/^(-[0-9])|^(--)/'], ['_', '__'], $str); return \trim($str, '-'); } /** * Remove css media-queries. * * @param string $str * * @psalm-pure * * @return string */ public static function css_stripe_media_queries(string $str): string { return (string) \preg_replace( '#@media\\s+(?:only\\s)?(?:[\\s{(]|screen|all)\\s?[^{]+{.*}\\s*}\\s*#isumU', '', $str ); } /** * Checks whether ctype is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function ctype_loaded(): bool { return \extension_loaded('ctype'); } /** * Converts an int value into a UTF-8 character. * * INFO: opposite to UTF8::string() * * EXAMPLE: <code>UTF8::decimal_to_chr(931); // 'Σ'</code> * * @param int|string $int * * @phpstan-param int|numeric-string $int * * @psalm-pure * * @return string */ public static function decimal_to_chr($int): string { // We cannot use html_entity_decode() here, as it will not return // characters for many values < 160. return \mb_convert_encoding('&#' . $int . ';', 'UTF-8', 'HTML-ENTITIES'); } /** * Decodes a MIME header field * * @param string $str * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return false|string * <p>A decoded MIME field on success, * or false if an error occurs during the decoding.</p> */ public static function decode_mimeheader($str, string $encoding = 'UTF-8') { if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // always fallback via symfony polyfill return \iconv_mime_decode($str, \ICONV_MIME_DECODE_CONTINUE_ON_ERROR, $encoding); } /** * Convert any two-letter country code (ISO 3166-1) to the corresponding Emoji. * * @see https://en.wikipedia.org/wiki/ISO_3166-1 * * @param string $country_code_iso_3166_1 <p>e.g. DE</p> * * @return string * <p>Emoji or empty string on error.</p> */ public static function emoji_from_country_code(string $country_code_iso_3166_1): string { if ($country_code_iso_3166_1 === '') { return ''; } if (self::strlen($country_code_iso_3166_1) !== 2) { return ''; } $country_code_iso_3166_1 = \strtoupper($country_code_iso_3166_1); $flagOffset = 0x1F1E6; $asciiOffset = 0x41; return (self::chr((self::ord($country_code_iso_3166_1[0]) - $asciiOffset + $flagOffset)) ?? '') . (self::chr((self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset)) ?? ''); } /** * Decodes a string which was encoded by "UTF8::emoji_encode()". * * INFO: opposite to UTF8::emoji_encode() * * EXAMPLE: <code> * UTF8::emoji_decode('foo CHARACTER_OGRE', false); // 'foo 👹' * // * UTF8::emoji_decode('foo _-_PORTABLE_UTF8_-_308095726_-_627590803_-_8FTU_ELBATROP_-_', true); // 'foo 👹' * </code> * * @param string $str <p>The input string.</p> * @param bool $use_reversible_string_mappings [optional] <p> * When <b>TRUE</b>, we se a reversible string mapping * between "emoji_encode" and "emoji_decode".</p> * * @psalm-pure * * @return string */ public static function emoji_decode( string $str, bool $use_reversible_string_mappings = false ): string { if (self::$EMOJI_KEYS_CACHE === null) { /** @phpstan-ignore-next-line - we need to load the data first */ self::initEmojiData(); } if ($use_reversible_string_mappings) { return (string) \str_replace( (array) self::$EMOJI_KEYS_REVERSIBLE_CACHE, (array) self::$EMOJI_VALUES_CACHE, $str ); } return (string) \str_replace( (array) self::$EMOJI_KEYS_CACHE, (array) self::$EMOJI_VALUES_CACHE, $str ); } /** * Encode a string with emoji chars into a non-emoji string. * * INFO: opposite to UTF8::emoji_decode() * * EXAMPLE: <code> * UTF8::emoji_encode('foo 👹', false)); // 'foo CHARACTER_OGRE' * // * UTF8::emoji_encode('foo 👹', true)); // 'foo _-_PORTABLE_UTF8_-_308095726_-_627590803_-_8FTU_ELBATROP_-_' * </code> * * @param string $str <p>The input string</p> * @param bool $use_reversible_string_mappings [optional] <p> * when <b>TRUE</b>, we use a reversible string mapping * between "emoji_encode" and "emoji_decode"</p> * * @psalm-pure * * @return string */ public static function emoji_encode( string $str, bool $use_reversible_string_mappings = false ): string { if (self::$EMOJI_KEYS_CACHE === null) { /** @phpstan-ignore-next-line - we need to load the data first */ self::initEmojiData(); } if ($use_reversible_string_mappings) { return (string) \str_replace( (array) self::$EMOJI_VALUES_CACHE, (array) self::$EMOJI_KEYS_REVERSIBLE_CACHE, $str ); } return (string) \str_replace( (array) self::$EMOJI_VALUES_CACHE, (array) self::$EMOJI_KEYS_CACHE, $str ); } /** * Encode a string with a new charset-encoding. * * INFO: This function will also try to fix broken / double encoding, * so you can call this function also on a UTF-8 string and you don't mess up the string. * * EXAMPLE: <code> * UTF8::encode('ISO-8859-1', '-ABC-中文空白-'); // '-ABC-????-' * // * UTF8::encode('UTF-8', '-ABC-中文空白-'); // '-ABC-中文空白-' * // * UTF8::encode('HTML', '-ABC-中文空白-'); // '-ABC-&#20013;&#25991;&#31354;&#30333;-' * // * UTF8::encode('BASE64', '-ABC-中文空白-'); // 'LUFCQy3kuK3mlofnqbrnmb0t' * </code> * * @param string $to_encoding <p>e.g. 'UTF-16', 'UTF-8', 'ISO-8859-1', etc.</p> * @param string $str <p>The input string</p> * @param bool $auto_detect_the_from_encoding [optional] <p>Force the new encoding (we try to fix broken / double * encoding for UTF-8)<br> otherwise we auto-detect the current * string-encoding</p> * @param string $from_encoding [optional] <p>e.g. 'UTF-16', 'UTF-8', 'ISO-8859-1', etc.<br> * A empty string will trigger the autodetect anyway.</p> * * @psalm-pure * * @return string * * @psalm-suppress InvalidReturnStatement */ public static function encode( string $to_encoding, string $str, bool $auto_detect_the_from_encoding = true, string $from_encoding = '' ): string { if ($str === '' || $to_encoding === '') { return $str; } if ($to_encoding !== 'UTF-8' && $to_encoding !== 'CP850') { $to_encoding = self::normalize_encoding($to_encoding, 'UTF-8'); } if ($from_encoding && $from_encoding !== 'UTF-8' && $from_encoding !== 'CP850') { $from_encoding = self::normalize_encoding($from_encoding); } if ( $to_encoding && $from_encoding && $from_encoding === $to_encoding ) { return $str; } if ($from_encoding === 'JSON') { $str = self::json_decode($str); $from_encoding = ''; } if ($from_encoding === 'BASE64') { $str = \base64_decode($str, true); $from_encoding = ''; } if ($from_encoding === 'HTML-ENTITIES') { /* @phpstan-ignore-next-line | $str has manybe changed */ $str = self::html_entity_decode($str, \ENT_COMPAT); $from_encoding = ''; } if ($to_encoding === 'JSON') { $return = self::json_encode($str); if ($return === false) { throw new \InvalidArgumentException('The input string [' . $str . '] can not be used for json_encode().'); } return $return; } if ($to_encoding === 'BASE64') { return \base64_encode($str); } if ($to_encoding === 'HTML-ENTITIES') { /* @phpstan-ignore-next-line | $str has manybe changed */ return self::html_encode($str, true); } if ( $auto_detect_the_from_encoding || !$from_encoding ) { $from_encoding_auto_detected = self::str_detect_encoding($str); } else { $from_encoding_auto_detected = false; } // DEBUG //var_dump($to_encoding, $from_encoding, $from_encoding_auto_detected, $str, "\n\n"); if ($from_encoding_auto_detected !== false) { $from_encoding = $from_encoding_auto_detected; } elseif ($auto_detect_the_from_encoding) { // fallback for the "autodetect"-mode /* @phpstan-ignore-next-line | $str has manybe changed */ return self::to_utf8($str); } if ( !$from_encoding || $from_encoding === $to_encoding ) { return $str; } if ( $to_encoding === 'UTF-8' && ( $from_encoding === 'WINDOWS-1252' || $from_encoding === 'ISO-8859-1' ) ) { /* @phpstan-ignore-next-line | $str has manybe changed */ return self::to_utf8($str); } if ( $to_encoding === 'ISO-8859-1' && ( $from_encoding === 'WINDOWS-1252' || $from_encoding === 'UTF-8' ) ) { /* @phpstan-ignore-next-line | $str has manybe changed */ return self::to_iso8859($str); } if ( $to_encoding !== 'UTF-8' && $to_encoding !== 'ISO-8859-1' && $to_encoding !== 'WINDOWS-1252' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::encode() without mbstring cannot handle "' . $to_encoding . '" encoding', \E_USER_WARNING); } if (self::$SUPPORT['mbstring'] === true) { $str_encoded = \mb_convert_encoding( $str, $to_encoding, $from_encoding ); if ($str_encoded) { \assert(\is_string($str_encoded)); return $str_encoded; } } /** @noinspection PhpUsageOfSilenceOperatorInspection - Detected an incomplete multibyte character in input string */ $return = @\iconv($from_encoding, $to_encoding, $str); if ($return !== false) { return $return; } return $str; } /** * @param string $str * @param string $from_charset [optional] <p>Set the input charset.</p> * @param string $to_charset [optional] <p>Set the output charset.</p> * @param string $transfer_encoding [optional] <p>Set the transfer encoding.</p> * @param string $linefeed [optional] <p>Set the used linefeed.</p> * @param int<1, max> $indent [optional] <p>Set the max length indent.</p> * * @psalm-pure * * @return false|string * <p>An encoded MIME field on success, * or false if an error occurs during the encoding.</p> */ public static function encode_mimeheader( string $str, string $from_charset = 'UTF-8', string $to_charset = 'UTF-8', string $transfer_encoding = 'Q', string $linefeed = "\r\n", int $indent = 76 ) { if ($from_charset !== 'UTF-8' && $from_charset !== 'CP850') { $from_charset = self::normalize_encoding($from_charset, 'UTF-8'); } if ($to_charset !== 'UTF-8' && $to_charset !== 'CP850') { $to_charset = self::normalize_encoding($to_charset, 'UTF-8'); } // always fallback via symfony polyfill return \iconv_mime_encode( '', $str, [ 'scheme' => $transfer_encoding, 'line-length' => $indent, 'input-charset' => $from_charset, 'output-charset' => $to_charset, 'line-break-chars' => $linefeed, ] ); } /** * Create an extract from a sentence, so if the search-string was found, it tries to center in the output. * * @param string $str <p>The input string.</p> * @param string $search <p>The searched string.</p> * @param int|null $length [optional] <p>Default: null === text->length / 2</p> * @param string $replacer_for_skipped_text [optional] <p>Default: …</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function extract_text( string $str, string $search = '', int $length = null, string $replacer_for_skipped_text = '…', string $encoding = 'UTF-8' ): string { if ($str === '') { return ''; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } $trim_chars = "\t\r\n -_()!~?=+/*\\,.:;\"'[]{}`&"; if ($length === null) { $length = (int) \round((int) self::strlen($str, $encoding) / 2); } if ($search === '') { if ($encoding === 'UTF-8') { if ($length > 0) { $string_length = (int) \mb_strlen($str); $end = ($length - 1) > $string_length ? $string_length : ($length - 1); } else { $end = 0; } $pos = (int) \min( \mb_strpos($str, ' ', $end), \mb_strpos($str, '.', $end) ); } else { if ($length > 0) { $string_length = (int) self::strlen($str, $encoding); $end = ($length - 1) > $string_length ? $string_length : ($length - 1); } else { $end = 0; } $pos = (int) \min( self::strpos($str, ' ', $end, $encoding), self::strpos($str, '.', $end, $encoding) ); } if ($pos) { if ($encoding === 'UTF-8') { $str_sub = \mb_substr($str, 0, $pos); } else { $str_sub = self::substr($str, 0, $pos, $encoding); } if ($str_sub === false) { return ''; } return \rtrim($str_sub, $trim_chars) . $replacer_for_skipped_text; } return $str; } if ($encoding === 'UTF-8') { $word_position = (int) \mb_stripos($str, $search); $half_side = (int) ($word_position - $length / 2 + (int) \mb_strlen($search) / 2); } else { $word_position = (int) self::stripos($str, $search, 0, $encoding); $half_side = (int) ($word_position - $length / 2 + (int) self::strlen($search, $encoding) / 2); } $pos_start = 0; if ($half_side > 0) { if ($encoding === 'UTF-8') { $half_text = \mb_substr($str, 0, $half_side); } else { $half_text = self::substr($str, 0, $half_side, $encoding); } if ($half_text !== false) { if ($encoding === 'UTF-8') { $pos_start = (int) \max( \mb_strrpos($half_text, ' '), \mb_strrpos($half_text, '.') ); } else { $pos_start = (int) \max( self::strrpos($half_text, ' ', 0, $encoding), self::strrpos($half_text, '.', 0, $encoding) ); } } } if ($word_position && $half_side > 0) { $offset = $pos_start + $length - 1; $real_length = (int) self::strlen($str, $encoding); if ($offset > $real_length) { $offset = $real_length; } if ($encoding === 'UTF-8') { $pos_end = (int) \min( \mb_strpos($str, ' ', $offset), \mb_strpos($str, '.', $offset) ) - $pos_start; } else { $pos_end = (int) \min( self::strpos($str, ' ', $offset, $encoding), self::strpos($str, '.', $offset, $encoding) ) - $pos_start; } if (!$pos_end || $pos_end <= 0) { if ($encoding === 'UTF-8') { $str_sub = \mb_substr($str, $pos_start, (int) \mb_strlen($str)); } else { $str_sub = self::substr($str, $pos_start, (int) self::strlen($str, $encoding), $encoding); } if ($str_sub !== false) { $extract = $replacer_for_skipped_text . \ltrim($str_sub, $trim_chars); } else { $extract = ''; } } else { if ($encoding === 'UTF-8') { $str_sub = \mb_substr($str, $pos_start, $pos_end); } else { $str_sub = self::substr($str, $pos_start, $pos_end, $encoding); } if ($str_sub !== false) { $extract = $replacer_for_skipped_text . \trim($str_sub, $trim_chars) . $replacer_for_skipped_text; } else { $extract = ''; } } } else { $offset = $length - 1; $true_length = (int) self::strlen($str, $encoding); if ($offset > $true_length) { $offset = $true_length; } if ($encoding === 'UTF-8') { $pos_end = (int) \min( \mb_strpos($str, ' ', $offset), \mb_strpos($str, '.', $offset) ); } else { $pos_end = (int) \min( self::strpos($str, ' ', $offset, $encoding), self::strpos($str, '.', $offset, $encoding) ); } if ($pos_end) { if ($encoding === 'UTF-8') { $str_sub = \mb_substr($str, 0, $pos_end); } else { $str_sub = self::substr($str, 0, $pos_end, $encoding); } if ($str_sub !== false) { $extract = \rtrim($str_sub, $trim_chars) . $replacer_for_skipped_text; } else { $extract = ''; } } else { $extract = $str; } } return $extract; } /** * Reads entire file into a string. * * EXAMPLE: <code>UTF8::file_get_contents('utf16le.txt'); // ...</code> * * WARNING: Do not use UTF-8 Option ($convert_to_utf8) for binary files (e.g.: images) !!! * * @see http://php.net/manual/en/function.file-get-contents.php * * @param string $filename <p> * Name of the file to read. * </p> * @param bool $use_include_path [optional] <p> * Prior to PHP 5, this parameter is called * use_include_path and is a bool. * As of PHP 5 the FILE_USE_INCLUDE_PATH can be used * to trigger include path * search. * </p> * @param resource|null $context [optional] <p> * A valid context resource created with * stream_context_create. If you don't need to use a * custom context, you can skip this parameter by &null;. * </p> * @param int|null $offset [optional] <p> * The offset where the reading starts. * </p> * @param int<0, max>|null $max_length [optional] <p> * Maximum length of data read. The default is to read until end * of file is reached. * </p> * @param int $timeout <p>The time in seconds for the timeout.</p> * @param bool $convert_to_utf8 <strong>WARNING!!!</strong> <p>Maybe you can't use this option for * some files, because they used non default utf-8 chars. Binary files * like images or pdf will not be converted.</p> * @param string $from_encoding [optional] <p>e.g. 'UTF-16', 'UTF-8', 'ISO-8859-1', etc.<br> * A empty string will trigger the autodetect anyway.</p> * * @psalm-pure * * @return false|string * <p>The function returns the read data as string or <b>false</b> on failure.</p> */ public static function file_get_contents( string $filename, bool $use_include_path = false, $context = null, int $offset = null, int $max_length = null, int $timeout = 10, bool $convert_to_utf8 = true, string $from_encoding = '' ) { // init /** @noinspection CallableParameterUseCaseInTypeContextInspection - is ok here */ $filename = Bootup::filter_sanitize_string_polyfill($filename); if ($filename === false) { return false; } if ($timeout && $context === null) { $context = \stream_context_create( [ 'http' => [ 'timeout' => $timeout, ], ] ); } if ($offset === null) { $offset = 0; } if (\is_int($max_length)) { /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ if ($max_length < 0) { $max_length = 0; } $data = \file_get_contents($filename, $use_include_path, $context, $offset, $max_length); } else { $data = \file_get_contents($filename, $use_include_path, $context, $offset); } // return false on error if ($data === false) { return false; } if ( $convert_to_utf8 && ( !self::is_binary($data, true) || self::is_utf16($data, false) !== false || self::is_utf32($data, false) !== false ) ) { $data = self::encode('UTF-8', $data, false, $from_encoding); $data = self::cleanup($data); } return $data; } /** * Checks if a file starts with BOM (Byte Order Mark) character. * * EXAMPLE: <code>UTF8::file_has_bom('utf8_with_bom.txt'); // true</code> * * @param string $file_path <p>Path to a valid file.</p> * * @throws \RuntimeException if file_get_contents() returned false * * @return bool * <p><strong>true</strong> if the file has BOM at the start, <strong>false</strong> otherwise</p> * * @psalm-pure */ public static function file_has_bom(string $file_path): bool { $file_content = \file_get_contents($file_path); if ($file_content === false) { throw new \RuntimeException('file_get_contents() returned false for:' . $file_path); } return self::string_has_bom($file_content); } /** * Normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. * * EXAMPLE: <code>UTF8::filter(array("\xE9", 'à', 'a')); // array('é', 'à', 'a')</code> * * @param array|object|string $var * @param int $normalization_form * @param string $leading_combining * * @psalm-pure * * @return mixed * * @template TFilter * @phpstan-param TFilter $var * @phpstan-return TFilter */ public static function filter( $var, int $normalization_form = \Normalizer::NFC, string $leading_combining = '◌' ) { switch (\gettype($var)) { case 'object': case 'array': /* @phpstan-ignore-next-line | object & array are both iterable */ foreach ($var as &$v) { $v = self::filter($v, $normalization_form, $leading_combining); } unset($v); break; case 'string': if (\strpos($var, "\r") !== false) { $var = self::normalize_line_ending($var); } if (!ASCII::is_ascii($var)) { if (\Normalizer::isNormalized($var, $normalization_form)) { $n = '-'; } else { $n = \Normalizer::normalize($var, $normalization_form); if ($n && isset($n[0])) { $var = $n; } else { $var = self::encode('UTF-8', $var); } } \assert(\is_string($var)); if ( $n && $var[0] >= "\x80" && isset($n[0], $leading_combining[0]) && \preg_match('/^\\p{Mn}/u', $var) ) { // Prevent leading combining chars // for NFC-safe concatenations. $var = $leading_combining . $var; } } break; default: // nothing } /** @noinspection PhpSillyAssignmentInspection */ /** @phpstan-var TFilter $var */ $var = $var; return $var; } /** * "filter_input()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. * * Gets a specific external variable by name and optionally filters it. * * EXAMPLE: <code> * // _GET['foo'] = 'bar'; * UTF8::filter_input(INPUT_GET, 'foo', FILTER_UNSAFE_RAW)); // 'bar' * </code> * * @see http://php.net/manual/en/function.filter-input.php * * @param int $type <p> * One of <b>INPUT_GET</b>, <b>INPUT_POST</b>, * <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or * <b>INPUT_ENV</b>. * </p> * @param string $variable_name <p> * Name of a variable to get. * </p> * @param int $filter [optional] <p> * The ID of the filter to apply. The * manual page lists the available filters. * </p> * @param int|int[]|null $options [optional] <p> * Associative array of options or bitwise disjunction of flags. If filter * accepts options, flags can be provided in "flags" field of array. * </p> * * @psalm-pure * * @return mixed * <p> * Value of the requested variable on success, <b>FALSE</b> if the filter fails, or <b>NULL</b> if the * <i>variable_name</i> variable is not set. If the flag <b>FILTER_NULL_ON_FAILURE</b> is used, it * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails. * </p> */ public static function filter_input( int $type, string $variable_name, int $filter = \FILTER_DEFAULT, $options = null ) { /** * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here */ if ($options === null || \func_num_args() < 4) { $var = \filter_input($type, $variable_name, $filter); } else { $var = \filter_input($type, $variable_name, $filter, $options); } return self::filter($var); } /** * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. * * Gets external variables and optionally filters them. * * EXAMPLE: <code> * // _GET['foo'] = 'bar'; * UTF8::filter_input_array(INPUT_GET, array('foo' => 'FILTER_UNSAFE_RAW')); // array('bar') * </code> * * @see http://php.net/manual/en/function.filter-input-array.php * * @param int $type <p> * One of <b>INPUT_GET</b>, <b>INPUT_POST</b>, * <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or * <b>INPUT_ENV</b>. * </p> * @param array<string, mixed>|null $definition [optional] <p> * An array defining the arguments. A valid key is a string * containing a variable name and a valid value is either a filter type, or an array * optionally specifying the filter, flags and options. If the value is an * array, valid keys are filter which specifies the * filter type, * flags which specifies any flags that apply to the * filter, and options which specifies any options that * apply to the filter. See the example below for a better understanding. * </p> * <p> * This parameter can be also an integer holding a filter constant. Then all values in the * input array are filtered by this filter. * </p> * @param bool $add_empty [optional] <p> * Add missing keys as <b>NULL</b> to the return value. * </p> * * @psalm-pure * * @return array<string, mixed>|false|null * <p> * An array containing the values of the requested variables on success, or <b>FALSE</b> on failure. * An array value will be <b>FALSE</b> if the filter fails, or <b>NULL</b> if the variable is not * set. Or if the flag <b>FILTER_NULL_ON_FAILURE</b> is used, it returns <b>FALSE</b> if the variable * is not set and <b>NULL</b> if the filter fails. * </p> */ public static function filter_input_array( int $type, $definition = null, bool $add_empty = true ) { /** * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here */ if ($definition === null || \func_num_args() < 2) { $a = \filter_input_array($type); } else { $a = \filter_input_array($type, $definition, $add_empty); } /* @phpstan-ignore-next-line | magic frm self::filter :/ */ return self::filter($a); } /** * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. * * Filters a variable with a specified filter. * * EXAMPLE: <code>UTF8::filter_var('-ABC-中文空白-', FILTER_VALIDATE_URL); // false</code> * * @see http://php.net/manual/en/function.filter-var.php * * @param float|int|string|null $variable <p> * Value to filter. * </p> * @param int $filter [optional] <p> * The ID of the filter to apply. The * manual page lists the available filters. * </p> * @param int|int[] $options [optional] <p> * Associative array of options or bitwise disjunction of flags. If filter * accepts options, flags can be provided in "flags" field of array. For * the "callback" filter, callable type should be passed. The * callback must accept one argument, the value to be filtered, and return * the value after filtering/sanitizing it. * </p> * <p> * <code> * // for filters that accept options, use this format * $options = array( * 'options' => array( * 'default' => 3, // value to return if the filter fails * // other options here * 'min_range' => 0 * ), * 'flags' => FILTER_FLAG_ALLOW_OCTAL, * ); * $var = filter_var('0755', FILTER_VALIDATE_INT, $options); * // for filter that only accept flags, you can pass them directly * $var = filter_var('oops', FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); * // for filter that only accept flags, you can also pass as an array * $var = filter_var('oops', FILTER_VALIDATE_BOOLEAN, * array('flags' => FILTER_NULL_ON_FAILURE)); * // callback validate filter * function foo($value) * { * // Expected format: Surname, GivenNames * if (strpos($value, ", ") === false) return false; * list($surname, $givennames) = explode(", ", $value, 2); * $empty = (empty($surname) || empty($givennames)); * $notstrings = (!is_string($surname) || !is_string($givennames)); * if ($empty || $notstrings) { * return false; * } else { * return $value; * } * } * $var = filter_var('Doe, Jane Sue', FILTER_CALLBACK, array('options' => 'foo')); * </code> * </p> * * @psalm-pure * * @return mixed * <p>The filtered data, or <b>FALSE</b> if the filter fails.</p> */ public static function filter_var( $variable, int $filter = \FILTER_DEFAULT, $options = 0 ) { /** * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here */ if (\func_num_args() < 3) { $variable = \filter_var($variable, $filter); } else { $variable = \filter_var($variable, $filter, $options); } return self::filter($variable); } /** * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed. * * Gets multiple variables and optionally filters them. * * EXAMPLE: <code> * $filters = [ * 'name' => ['filter' => FILTER_CALLBACK, 'options' => [UTF8::class, 'ucwords']], * 'age' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 1, 'max_range' => 120]], * 'email' => FILTER_VALIDATE_EMAIL, * ]; * * $data = [ * 'name' => 'κόσμε', * 'age' => '18', * 'email' => 'foo@bar.de' * ]; * * UTF8::filter_var_array($data, $filters, true); // ['name' => 'Κόσμε', 'age' => 18, 'email' => 'foo@bar.de'] * </code> * * @see http://php.net/manual/en/function.filter-var-array.php * * @param array<string, mixed> $data <p> * An array with string keys containing the data to filter. * </p> * @param array<string, mixed>|int $definition [optional] <p> * An array defining the arguments. A valid key is a string * containing a variable name and a valid value is either a * filter type, or an * array optionally specifying the filter, flags and options. * If the value is an array, valid keys are filter * which specifies the filter type, * flags which specifies any flags that apply to the * filter, and options which specifies any options that * apply to the filter. See the example below for a better understanding. * </p> * <p> * This parameter can be also an integer holding a filter constant. Then all values * in the input array are filtered by this filter. * </p> * @param bool $add_empty [optional] <p> * Add missing keys as <b>NULL</b> to the return value. * </p> * * @psalm-pure * * @return array<string, mixed>|false|null * <p> * An array containing the values of the requested variables on success, or <b>FALSE</b> on failure. * An array value will be <b>FALSE</b> if the filter fails, or <b>NULL</b> if the variable is not * set. * </p> */ public static function filter_var_array( array $data, $definition = 0, bool $add_empty = true ) { /** * @psalm-suppress ImpureFunctionCall - we use func_num_args only for args count matching here */ if (\func_num_args() < 2) { $a = \filter_var_array($data); } else { $a = \filter_var_array($data, $definition, $add_empty); } /* @phpstan-ignore-next-line | magic frm self::filter :/ */ return self::filter($a); } /** * Checks whether finfo is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function finfo_loaded(): bool { return \class_exists('finfo'); } /** * Returns the first $n characters of the string. * * @param string $str <p>The input string.</p> * @param int<1, max> $n <p>Number of characters to retrieve from the start.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function first_char( string $str, int $n = 1, string $encoding = 'UTF-8' ): string { if ( $str === '' || /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ $n <= 0 ) { return ''; } if ($encoding === 'UTF-8') { return (string) \mb_substr($str, 0, $n); } return (string) self::substr($str, 0, $n, $encoding); } /** * Check if the number of Unicode characters isn't greater than the specified integer. * * EXAMPLE: <code>UTF8::fits_inside('κόσμε', 6); // false</code> * * @param string $str the original string to be checked * @param int $box_size the size in number of chars to be checked against string * * @psalm-pure * * @return bool * <p><strong>TRUE</strong> if string is less than or equal to $box_size, <strong>FALSE</strong> otherwise.</p> */ public static function fits_inside(string $str, int $box_size): bool { return (int) self::strlen($str) <= $box_size; } /** * Try to fix simple broken UTF-8 strings. * * INFO: Take a look at "UTF8::fix_utf8()" if you need a more advanced fix for broken UTF-8 strings. * * EXAMPLE: <code>UTF8::fix_simple_utf8('Düsseldorf'); // 'Düsseldorf'</code> * * If you received an UTF-8 string that was converted from Windows-1252 as it was ISO-8859-1 * (ignoring Windows-1252 chars from 80 to 9F) use this function to fix it. * See: http://en.wikipedia.org/wiki/Windows-1252 * * @param string $str <p>The input string</p> * * @psalm-pure * * @return string */ public static function fix_simple_utf8(string $str): string { if ($str === '') { return ''; } /** * @psalm-suppress ImpureStaticVariable * * @var array<mixed>|null */ static $BROKEN_UTF8_TO_UTF8_KEYS_CACHE = null; /** * @psalm-suppress ImpureStaticVariable * * @var array<mixed>|null */ static $BROKEN_UTF8_TO_UTF8_VALUES_CACHE = null; if ($BROKEN_UTF8_TO_UTF8_KEYS_CACHE === null) { if (self::$BROKEN_UTF8_FIX === null) { self::$BROKEN_UTF8_FIX = self::getData('utf8_fix'); } $BROKEN_UTF8_TO_UTF8_KEYS_CACHE = \array_keys(self::$BROKEN_UTF8_FIX ?: []); $BROKEN_UTF8_TO_UTF8_VALUES_CACHE = self::$BROKEN_UTF8_FIX; } \assert(\is_array($BROKEN_UTF8_TO_UTF8_VALUES_CACHE)); return \str_replace($BROKEN_UTF8_TO_UTF8_KEYS_CACHE, $BROKEN_UTF8_TO_UTF8_VALUES_CACHE, $str); } /** * Fix a double (or multiple) encoded UTF8 string. * * EXAMPLE: <code>UTF8::fix_utf8('Fédération'); // 'Fédération'</code> * * @param string|string[] $str you can use a string or an array of strings * * @psalm-pure * * @return string|string[] * <p>Will return the fixed input-"array" or * the fixed input-"string".</p> * * @template TFixUtf8 as string|string[] * @phpstan-param TFixUtf8 $str * @phpstan-return TFixUtf8 */ public static function fix_utf8($str) { if (\is_array($str)) { foreach ($str as &$v) { $v = self::fix_utf8($v); } unset($v); /** * @psalm-suppress InvalidReturnStatement */ return $str; } $str = (string) $str; /* @phpstan-ignore-line | TFixUtf8 is string here */ $last = ''; while ($last !== $str) { $last = $str; /** * @psalm-suppress PossiblyInvalidArgument */ $str = self::to_utf8( self::utf8_decode($str, true) ); } /** * @psalm-suppress InvalidReturnStatement */ return $str; } /** * Get character of a specific character. * * EXAMPLE: <code>UTF8::getCharDirection('ا'); // 'RTL'</code> * * @param string $char * * @psalm-pure * * @return string * <p>'RTL' or 'LTR'.</p> */ public static function getCharDirection(string $char): string { if (self::$SUPPORT['intlChar'] === true) { $tmp_return = \IntlChar::charDirection($char); // from "IntlChar"-Class $char_direction = [ 'RTL' => [1, 13, 14, 15, 21], 'LTR' => [0, 11, 12, 20], ]; if (\in_array($tmp_return, $char_direction['LTR'], true)) { return 'LTR'; } if (\in_array($tmp_return, $char_direction['RTL'], true)) { return 'RTL'; } } $c = static::chr_to_decimal($char); if (!($c >= 0x5be && $c <= 0x10b7f)) { return 'LTR'; } if ($c <= 0x85e) { if ($c === 0x5be || $c === 0x5c0 || $c === 0x5c3 || $c === 0x5c6 || ($c >= 0x5d0 && $c <= 0x5ea) || ($c >= 0x5f0 && $c <= 0x5f4) || $c === 0x608 || $c === 0x60b || $c === 0x60d || $c === 0x61b || ($c >= 0x61e && $c <= 0x64a) || ($c >= 0x66d && $c <= 0x66f) || ($c >= 0x671 && $c <= 0x6d5) || ($c >= 0x6e5 && $c <= 0x6e6) || ($c >= 0x6ee && $c <= 0x6ef) || ($c >= 0x6fa && $c <= 0x70d) || $c === 0x710 || ($c >= 0x712 && $c <= 0x72f) || ($c >= 0x74d && $c <= 0x7a5) || $c === 0x7b1 || ($c >= 0x7c0 && $c <= 0x7ea) || ($c >= 0x7f4 && $c <= 0x7f5) || $c === 0x7fa || ($c >= 0x800 && $c <= 0x815) || $c === 0x81a || $c === 0x824 || $c === 0x828 || ($c >= 0x830 && $c <= 0x83e) || ($c >= 0x840 && $c <= 0x858) || $c === 0x85e ) { return 'RTL'; } } elseif ($c === 0x200f) { return 'RTL'; } elseif ($c >= 0xfb1d) { if ($c === 0xfb1d || ($c >= 0xfb1f && $c <= 0xfb28) || ($c >= 0xfb2a && $c <= 0xfb36) || ($c >= 0xfb38 && $c <= 0xfb3c) || $c === 0xfb3e || ($c >= 0xfb40 && $c <= 0xfb41) || ($c >= 0xfb43 && $c <= 0xfb44) || ($c >= 0xfb46 && $c <= 0xfbc1) || ($c >= 0xfbd3 && $c <= 0xfd3d) || ($c >= 0xfd50 && $c <= 0xfd8f) || ($c >= 0xfd92 && $c <= 0xfdc7) || ($c >= 0xfdf0 && $c <= 0xfdfc) || ($c >= 0xfe70 && $c <= 0xfe74) || ($c >= 0xfe76 && $c <= 0xfefc) || ($c >= 0x10800 && $c <= 0x10805) || $c === 0x10808 || ($c >= 0x1080a && $c <= 0x10835) || ($c >= 0x10837 && $c <= 0x10838) || $c === 0x1083c || ($c >= 0x1083f && $c <= 0x10855) || ($c >= 0x10857 && $c <= 0x1085f) || ($c >= 0x10900 && $c <= 0x1091b) || ($c >= 0x10920 && $c <= 0x10939) || $c === 0x1093f || $c === 0x10a00 || ($c >= 0x10a10 && $c <= 0x10a13) || ($c >= 0x10a15 && $c <= 0x10a17) || ($c >= 0x10a19 && $c <= 0x10a33) || ($c >= 0x10a40 && $c <= 0x10a47) || ($c >= 0x10a50 && $c <= 0x10a58) || ($c >= 0x10a60 && $c <= 0x10a7f) || ($c >= 0x10b00 && $c <= 0x10b35) || ($c >= 0x10b40 && $c <= 0x10b55) || ($c >= 0x10b58 && $c <= 0x10b72) || ($c >= 0x10b78) ) { return 'RTL'; } } return 'LTR'; } /** * Check for php-support. * * @param string|null $key * * @psalm-pure * * @return mixed * Return the full support-"array", if $key === null<br> * return bool-value, if $key is used and available<br> * otherwise return <strong>null</strong> */ public static function getSupportInfo(string $key = null) { if ($key === null) { return self::$SUPPORT; } if (self::$INTL_TRANSLITERATOR_LIST === null) { self::$INTL_TRANSLITERATOR_LIST = self::getData('transliterator_list'); } // compatibility fix for old versions self::$SUPPORT['intl__transliterator_list_ids'] = self::$INTL_TRANSLITERATOR_LIST; return self::$SUPPORT[$key] ?? null; } /** * Warning: this method only works for some file-types (png, jpg) * if you need more supported types, please use e.g. "finfo" * * @param string $str * @param array{ext: null|string, mime: null|string, type: null|string} $fallback * * @return array{ext: null|string, mime: null|string, type: null|string} * * @psalm-pure */ public static function get_file_type( string $str, array $fallback = [ 'ext' => null, 'mime' => 'application/octet-stream', 'type' => null, ] ): array { if ($str === '') { return $fallback; } /** @var false|string $str_info - needed for PhpStan (stubs error) */ $str_info = \substr($str, 0, 2); if ($str_info === false || \strlen($str_info) !== 2) { return $fallback; } // DEBUG //var_dump($str_info); $str_info = \unpack('C2chars', $str_info); if ($str_info === false) { return $fallback; } $type_code = (int) ($str_info['chars1'] . $str_info['chars2']); // DEBUG //var_dump($type_code); // // info: https://en.wikipedia.org/wiki/Magic_number_%28programming%29#Format_indicator // switch ($type_code) { // WARNING: do not add too simple comparisons, because of false-positive results: // // 3780 => 'pdf', 7790 => 'exe', 7784 => 'midi', 8075 => 'zip', // 8297 => 'rar', 7173 => 'gif', 7373 => 'tiff' 6677 => 'bmp', ... // case 255216: $ext = 'jpg'; $mime = 'image/jpeg'; $type = 'binary'; break; case 13780: $ext = 'png'; $mime = 'image/png'; $type = 'binary'; break; default: return $fallback; } return [ 'ext' => $ext, 'mime' => $mime, 'type' => $type, ]; } /** * @param int<1, max> $length <p>Length of the random string.</p> * @param string $possible_chars [optional] <p>Characters string for the random selection.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @return string * * @template T as string * @phpstan-param T $possible_chars * @phpstan-return (T is non-empty-string ? non-empty-string : '') */ public static function get_random_string( int $length, string $possible_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', string $encoding = 'UTF-8' ): string { // init $i = 0; $str = ''; // // add random chars // if ($encoding === 'UTF-8') { $max_length = (int) \mb_strlen($possible_chars); if ($max_length === 0) { return ''; } while ($i < $length) { try { $rand_int = \random_int(0, $max_length - 1); } catch (\Exception $e) { $rand_int = \mt_rand(0, $max_length - 1); } $char = \mb_substr($possible_chars, $rand_int, 1); /* @phpstan-ignore-next-line | "false" was at least the return type in the past, or? */ if ($char !== false) { $str .= $char; ++$i; } } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $max_length = (int) self::strlen($possible_chars, $encoding); if ($max_length === 0) { return ''; } while ($i < $length) { try { $rand_int = \random_int(0, $max_length - 1); } catch (\Exception $e) { $rand_int = \mt_rand(0, $max_length - 1); } $char = self::substr($possible_chars, $rand_int, 1, $encoding); if ($char !== false) { $str .= $char; ++$i; } } } return $str; } /** * @param int|string $extra_entropy [optional] <p>Extra entropy via a string or int value.</p> * @param bool $use_md5 [optional] <p>Return the unique identifier as md5-hash? Default: true</p> * * @return non-empty-string */ public static function get_unique_string($extra_entropy = '', bool $use_md5 = true): string { try { $rand_int = \random_int(0, \mt_getrandmax()); } catch (\Exception $e) { $rand_int = \mt_rand(0, \mt_getrandmax()); } $unique_helper = $rand_int . \session_id() . ($_SERVER['REMOTE_ADDR'] ?? '') . ($_SERVER['SERVER_ADDR'] ?? '') . $extra_entropy; $unique_string = \uniqid($unique_helper, true); if ($use_md5) { $unique_string = \md5($unique_string . $unique_helper); } return $unique_string; } /** * Returns true if the string contains a lower case char, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not the string contains a lower case character.</p> */ public static function has_lowercase(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('.*[[:lower:]]', $str); } return self::str_matches_pattern($str, '.*[[:lower:]]'); } /** * Returns true if the string contains whitespace, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not the string contains whitespace.</p> */ public static function has_whitespace(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('.*[[:space:]]', $str); } return self::str_matches_pattern($str, '.*[[:space:]]'); } /** * Returns true if the string contains an upper case char, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not the string contains an upper case character.</p> */ public static function has_uppercase(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('.*[[:upper:]]', $str); } return self::str_matches_pattern($str, '.*[[:upper:]]'); } /** * Converts a hexadecimal value into a UTF-8 character. * * INFO: opposite to UTF8::chr_to_hex() * * EXAMPLE: <code>UTF8::hex_to_chr('U+00a7'); // '§'</code> * * @param string $hexdec <p>The hexadecimal value.</p> * * @psalm-pure * * @return string * <p>One single UTF-8 character.</p> */ public static function hex_to_chr(string $hexdec) { /** @noinspection PhpUsageOfSilenceOperatorInspection - Invalid characters passed for attempted conversion, these have been ignored */ return self::decimal_to_chr((int) @\hexdec($hexdec)); } /** * Converts hexadecimal U+xxxx code point representation to integer. * * INFO: opposite to UTF8::int_to_hex() * * EXAMPLE: <code>UTF8::hex_to_int('U+00f1'); // 241</code> * * @param string $hexdec <p>The hexadecimal code point representation.</p> * * @psalm-pure * * @return false|int * <p>The code point, or false on failure.</p> */ public static function hex_to_int($hexdec) { // init $hexdec = (string) $hexdec; if ($hexdec === '') { return false; } if (\preg_match('/^(?:\\\u|U\+|)([a-zA-Z0-9]{4,6})$/', $hexdec, $match)) { return \intval($match[1], 16); } return false; } /** * Converts a UTF-8 string to a series of HTML numbered entities. * * INFO: opposite to UTF8::html_decode() * * EXAMPLE: <code>UTF8::html_encode('中文空白'); // '&#20013;&#25991;&#31354;&#30333;'</code> * * @param string $str <p>The Unicode string to be encoded as numbered entities.</p> * @param bool $keep_ascii_chars [optional] <p>Keep ASCII chars.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>HTML numbered entities.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function html_encode( string $str, bool $keep_ascii_chars = false, string $encoding = 'UTF-8' ): string { if ($str === '') { return ''; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // INFO: http://stackoverflow.com/questions/35854535/better-explanation-of-convmap-in-mb-encode-numericentity if (self::$SUPPORT['mbstring'] === true) { if ($keep_ascii_chars) { $start_code = 0x80; } else { $start_code = 0x00; } if ($encoding === 'UTF-8') { /** @var false|string|null $return - needed for PhpStan (stubs error) */ $return = \mb_encode_numericentity( $str, [$start_code, 0xfffff, 0, 0xfffff] ); if ($return !== null && $return !== false) { return $return; } } /** @var false|string|null $return - needed for PhpStan (stubs error) */ $return = \mb_encode_numericentity( $str, [$start_code, 0xfffff, 0, 0xfffff], $encoding ); if ($return !== null && $return !== false) { return $return; } } // // fallback via vanilla php // return \implode( '', \array_map( static function (string $chr) use ($keep_ascii_chars, $encoding): string { return self::single_chr_html_encode($chr, $keep_ascii_chars, $encoding); }, self::str_split($str) ) ); } /** * UTF-8 version of html_entity_decode() * * The reason we are not using html_entity_decode() by itself is because * while it is not technically correct to leave out the semicolon * at the end of an entity most browsers will still interpret the entity * correctly. html_entity_decode() does not convert entities without * semicolons, so we are left with our own little solution here. Bummer. * * Convert all HTML entities to their applicable characters. * * INFO: opposite to UTF8::html_encode() * * EXAMPLE: <code>UTF8::html_entity_decode('&#20013;&#25991;&#31354;&#30333;'); // '中文空白'</code> * * @see http://php.net/manual/en/function.html-entity-decode.php * * @param string $str <p> * The input string. * </p> * @param int|null $flags [optional] <p> * A bitmask of one or more of the following flags, which specify how to handle quotes * and which document type to use. The default is ENT_COMPAT | ENT_HTML401. * <table> * Available <i>flags</i> constants * <tr valign="top"> * <td>Constant Name</td> * <td>Description</td> * </tr> * <tr valign="top"> * <td><b>ENT_COMPAT</b></td> * <td>Will convert double-quotes and leave single-quotes alone.</td> * </tr> * <tr valign="top"> * <td><b>ENT_QUOTES</b></td> * <td>Will convert both double and single quotes.</td> * </tr> * <tr valign="top"> * <td><b>ENT_NOQUOTES</b></td> * <td>Will leave both double and single quotes unconverted.</td> * </tr> * <tr valign="top"> * <td><b>ENT_HTML401</b></td> * <td> * Handle code as HTML 4.01. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_XML1</b></td> * <td> * Handle code as XML 1. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_XHTML</b></td> * <td> * Handle code as XHTML. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_HTML5</b></td> * <td> * Handle code as HTML 5. * </td> * </tr> * </table> * </p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The decoded string.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function html_entity_decode( string $str, int $flags = null, string $encoding = 'UTF-8' ): string { if ( !isset($str[3]) // examples: &; || &x; || \strpos($str, '&') === false // no "&" ) { return $str; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($flags === null) { $flags = \ENT_QUOTES | \ENT_HTML5; } if ( $encoding !== 'UTF-8' && $encoding !== 'ISO-8859-1' && $encoding !== 'WINDOWS-1252' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::html_entity_decode() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } do { $str_compare = $str; if (\strpos($str, '&') !== false) { if (\strpos($str, '&#') !== false) { // decode also numeric & UTF16 two byte entities $str = (string) \preg_replace( '/(&#(?:x0*[0-9a-fA-F]{2,6}(?![0-9a-fA-F;])|(?:0*\d{2,6}(?![0-9;]))))/S', '$1;', $str ); } $str = \html_entity_decode( $str, $flags, $encoding ); } } while ($str_compare !== $str); return $str; } /** * Create a escape html version of the string via "UTF8::htmlspecialchars()". * * @param string $str * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function html_escape(string $str, string $encoding = 'UTF-8'): string { return self::htmlspecialchars( $str, \ENT_QUOTES | \ENT_SUBSTITUTE, $encoding ); } /** * Remove empty html-tag. * * e.g.: <pre><tag></tag></pre> * * @param string $str * * @psalm-pure * * @return string */ public static function html_stripe_empty_tags(string $str): string { return (string) \preg_replace( '/<[^\\/>]*?>\\s*?<\\/[^>]*?>/u', '', $str ); } /** * Convert all applicable characters to HTML entities: UTF-8 version of htmlentities(). * * EXAMPLE: <code>UTF8::htmlentities('<白-öäü>'); // '&lt;&#30333;-&ouml;&auml;&uuml;&gt;'</code> * * @see http://php.net/manual/en/function.htmlentities.php * * @param string $str <p> * The input string. * </p> * @param int $flags [optional] <p> * A bitmask of one or more of the following flags, which specify how to handle * quotes, invalid code unit sequences and the used document type. The default is * ENT_COMPAT | ENT_HTML401. * <table> * Available <i>flags</i> constants * <tr valign="top"> * <td>Constant Name</td> * <td>Description</td> * </tr> * <tr valign="top"> * <td><b>ENT_COMPAT</b></td> * <td>Will convert double-quotes and leave single-quotes alone.</td> * </tr> * <tr valign="top"> * <td><b>ENT_QUOTES</b></td> * <td>Will convert both double and single quotes.</td> * </tr> * <tr valign="top"> * <td><b>ENT_NOQUOTES</b></td> * <td>Will leave both double and single quotes unconverted.</td> * </tr> * <tr valign="top"> * <td><b>ENT_IGNORE</b></td> * <td> * Silently discard invalid code unit sequences instead of returning * an empty string. Using this flag is discouraged as it * may have security implications. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_SUBSTITUTE</b></td> * <td> * Replace invalid code unit sequences with a Unicode Replacement Character * U+FFFD (UTF-8) or &#38;#38;#FFFD; (otherwise) instead of returning an empty * string. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_DISALLOWED</b></td> * <td> * Replace invalid code points for the given document type with a * Unicode Replacement Character U+FFFD (UTF-8) or &#38;#38;#FFFD; * (otherwise) instead of leaving them as is. This may be useful, for * instance, to ensure the well-formedness of XML documents with * embedded external content. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_HTML401</b></td> * <td> * Handle code as HTML 4.01. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_XML1</b></td> * <td> * Handle code as XML 1. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_XHTML</b></td> * <td> * Handle code as XHTML. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_HTML5</b></td> * <td> * Handle code as HTML 5. * </td> * </tr> * </table> * </p> * @param string $encoding [optional] <p> * Like <b>htmlspecialchars</b>, * <b>htmlentities</b> takes an optional third argument * <i>encoding</i> which defines encoding used in * conversion. * Although this argument is technically optional, you are highly * encouraged to specify the correct value for your code. * </p> * @param bool $double_encode [optional] <p> * When <i>double_encode</i> is turned off PHP will not * encode existing html entities. The default is to convert everything. * </p> * * @psalm-pure * * @return string * <p> * The encoded string. * <br><br> * If the input <i>string</i> contains an invalid code unit * sequence within the given <i>encoding</i> an empty string * will be returned, unless either the <b>ENT_IGNORE</b> or * <b>ENT_SUBSTITUTE</b> flags are set. * </p> */ public static function htmlentities( string $str, int $flags = \ENT_COMPAT, string $encoding = 'UTF-8', bool $double_encode = true ): string { if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } $str = \htmlentities( $str, $flags, $encoding, $double_encode ); /** * PHP doesn't replace a backslash to its html entity since this is something * that's mostly used to escape characters when inserting in a database. Since * we're using a decent database layer, we don't need this shit and we're replacing * the double backslashes by its' html entity equivalent. * * https://github.com/forkcms/library/blob/master/spoon/filter/filter.php#L303 */ $str = \str_replace('\\', '&#92;', $str); return self::html_encode($str, true, $encoding); } /** * Convert only special characters to HTML entities: UTF-8 version of htmlspecialchars() * * INFO: Take a look at "UTF8::htmlentities()" * * EXAMPLE: <code>UTF8::htmlspecialchars('<白-öäü>'); // '&lt;白-öäü&gt;'</code> * * @see http://php.net/manual/en/function.htmlspecialchars.php * * @param string $str <p> * The string being converted. * </p> * @param int $flags [optional] <p> * A bitmask of one or more of the following flags, which specify how to handle * quotes, invalid code unit sequences and the used document type. The default is * ENT_COMPAT | ENT_HTML401. * <table> * Available <i>flags</i> constants * <tr valign="top"> * <td>Constant Name</td> * <td>Description</td> * </tr> * <tr valign="top"> * <td><b>ENT_COMPAT</b></td> * <td>Will convert double-quotes and leave single-quotes alone.</td> * </tr> * <tr valign="top"> * <td><b>ENT_QUOTES</b></td> * <td>Will convert both double and single quotes.</td> * </tr> * <tr valign="top"> * <td><b>ENT_NOQUOTES</b></td> * <td>Will leave both double and single quotes unconverted.</td> * </tr> * <tr valign="top"> * <td><b>ENT_IGNORE</b></td> * <td> * Silently discard invalid code unit sequences instead of returning * an empty string. Using this flag is discouraged as it * may have security implications. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_SUBSTITUTE</b></td> * <td> * Replace invalid code unit sequences with a Unicode Replacement Character * U+FFFD (UTF-8) or &#38;#38;#FFFD; (otherwise) instead of returning an empty * string. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_DISALLOWED</b></td> * <td> * Replace invalid code points for the given document type with a * Unicode Replacement Character U+FFFD (UTF-8) or &#38;#38;#FFFD; * (otherwise) instead of leaving them as is. This may be useful, for * instance, to ensure the well-formedness of XML documents with * embedded external content. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_HTML401</b></td> * <td> * Handle code as HTML 4.01. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_XML1</b></td> * <td> * Handle code as XML 1. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_XHTML</b></td> * <td> * Handle code as XHTML. * </td> * </tr> * <tr valign="top"> * <td><b>ENT_HTML5</b></td> * <td> * Handle code as HTML 5. * </td> * </tr> * </table> * </p> * @param string $encoding [optional] <p> * Defines encoding used in conversion. * </p> * <p> * For the purposes of this function, the encodings * ISO-8859-1, ISO-8859-15, * UTF-8, cp866, * cp1251, cp1252, and * KOI8-R are effectively equivalent, provided the * <i>string</i> itself is valid for the encoding, as * the characters affected by <b>htmlspecialchars</b> occupy * the same positions in all of these encodings. * </p> * @param bool $double_encode [optional] <p> * When <i>double_encode</i> is turned off PHP will not * encode existing html entities, the default is to convert everything. * </p> * * @psalm-pure * * @return string * <p>The converted string.</p> * <p> * If the input <i>string</i> contains an invalid code unit * sequence within the given <i>encoding</i> an empty string * will be returned, unless either the <b>ENT_IGNORE</b> or * <b>ENT_SUBSTITUTE</b> flags are set.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function htmlspecialchars( string $str, int $flags = \ENT_COMPAT, string $encoding = 'UTF-8', bool $double_encode = true ): string { if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } return \htmlspecialchars( $str, $flags, $encoding, $double_encode ); } /** * Checks whether iconv is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function iconv_loaded(): bool { return \extension_loaded('iconv'); } /** * Converts Integer to hexadecimal U+xxxx code point representation. * * INFO: opposite to UTF8::hex_to_int() * * EXAMPLE: <code>UTF8::int_to_hex(241); // 'U+00f1'</code> * * @param int $int <p>The integer to be converted to hexadecimal code point.</p> * @param string $prefix [optional] * * @psalm-pure * * @return string the code point, or empty string on failure */ public static function int_to_hex(int $int, string $prefix = 'U+'): string { $hex = \dechex($int); $hex = (\strlen($hex) < 4 ? \substr('0000' . $hex, -4) : $hex); return $prefix . $hex . ''; } /** * Checks whether intl-char is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function intlChar_loaded(): bool { return \class_exists('IntlChar'); } /** * Checks whether intl is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function intl_loaded(): bool { return \extension_loaded('intl'); } /** * Returns true if the string contains only alphabetic chars, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only alphabetic chars.</p> */ public static function is_alpha(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('^[[:alpha:]]*$', $str); } return self::str_matches_pattern($str, '^[[:alpha:]]*$'); } /** * Returns true if the string contains only alphabetic and numeric chars, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only alphanumeric chars.</p> */ public static function is_alphanumeric(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('^[[:alnum:]]*$', $str); } return self::str_matches_pattern($str, '^[[:alnum:]]*$'); } /** * Returns true if the string contains only punctuation chars, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only punctuation chars.</p> */ public static function is_punctuation(string $str): bool { return self::str_matches_pattern($str, '^[[:punct:]]*$'); } /** * Returns true if the string contains only printable (non-invisible) chars, false otherwise. * * @param string $str <p>The input string.</p> * @param bool $ignore_control_characters [optional] <p>Ignore control characters like [LRM] or [LSEP].</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only printable (non-invisible) chars.</p> */ public static function is_printable(string $str, bool $ignore_control_characters = false): bool { return self::remove_invisible_characters($str, false, '', $ignore_control_characters) === $str; } /** * Checks if a string is 7 bit ASCII. * * EXAMPLE: <code>UTF8::is_ascii('白'); // false</code> * * @param string $str <p>The string to check.</p> * * @psalm-pure * * @return bool * <p> * <strong>true</strong> if it is ASCII<br> * <strong>false</strong> otherwise * </p> */ public static function is_ascii(string $str): bool { return ASCII::is_ascii($str); } /** * Returns true if the string is base64 encoded, false otherwise. * * EXAMPLE: <code>UTF8::is_base64('4KSu4KWL4KSo4KS/4KSa'); // true</code> * * @param string|null $str <p>The input string.</p> * @param bool $empty_string_is_valid [optional] <p>Is an empty string valid base64 or not?</p> * * @psalm-pure * * @return bool * <p>Whether or not $str is base64 encoded.</p> */ public static function is_base64($str, bool $empty_string_is_valid = false): bool { if ( !$empty_string_is_valid && $str === '' ) { return false; } if (!\is_string($str)) { return false; } $base64String = \base64_decode($str, true); return $base64String !== false && \base64_encode($base64String) === $str; } /** * Check if the input is binary... (is look like a hack). * * EXAMPLE: <code>UTF8::is_binary(01); // true</code> * * @param int|string $input * @param bool $strict * * @psalm-pure * * @return bool */ public static function is_binary($input, bool $strict = false): bool { $input = (string) $input; if ($input === '') { return false; } if (\preg_match('~^[01]+$~', $input)) { return true; } $ext = self::get_file_type($input); if ($ext['type'] === 'binary') { return true; } if (!$strict) { $test_length = \strlen($input); $test_null_counting = \substr_count($input, "\x0", 0, $test_length); if (($test_null_counting / $test_length) > 0.25) { return true; } } if ($strict) { if (self::$SUPPORT['finfo'] === false) { throw new \RuntimeException('ext-fileinfo: is not installed'); } /** * @psalm-suppress ImpureMethodCall - it will return the same result for the same file ... */ $finfo_encoding = (new \finfo(\FILEINFO_MIME_ENCODING))->buffer($input); if ($finfo_encoding && $finfo_encoding === 'binary') { return true; } } return false; } /** * Check if the file is binary. * * EXAMPLE: <code>UTF8::is_binary('./utf32.txt'); // true</code> * * @param string $file * * @return bool */ public static function is_binary_file($file): bool { // init $block = ''; $fp = \fopen($file, 'rb'); if (\is_resource($fp)) { $block = \fread($fp, 512); \fclose($fp); } if ($block === '' || $block === false) { return false; } return self::is_binary($block, true); } /** * Returns true if the string contains only whitespace chars, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only whitespace characters.</p> */ public static function is_blank(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('^[[:space:]]*$', $str); } return self::str_matches_pattern($str, '^[[:space:]]*$'); } /** * Checks if the given string is equal to any "Byte Order Mark". * * WARNING: Use "UTF8::string_has_bom()" if you will check BOM in a string. * * EXAMPLE: <code>UTF8::is_bom("\xef\xbb\xbf"); // true</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p><strong>true</strong> if the $utf8_chr is Byte Order Mark, <strong>false</strong> otherwise.</p> */ public static function is_bom($str): bool { /** @noinspection PhpUnusedLocalVariableInspection */ foreach (self::$BOM as $bom_string => &$bom_byte_length) { if ($str === $bom_string) { return true; } } return false; } /** * Determine whether the string is considered to be empty. * * A variable is considered empty if it does not exist or if its value equals FALSE. * empty() does not generate a warning if the variable does not exist. * * @param array<array-key, mixed>|float|int|string $str * * @psalm-pure * * @return bool * <p>Whether or not $str is empty().</p> */ public static function is_empty($str): bool { return empty($str); } /** * Returns true if the string contains only hexadecimal chars, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only hexadecimal chars.</p> */ public static function is_hexadecimal(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('^[[:xdigit:]]*$', $str); } return self::str_matches_pattern($str, '^[[:xdigit:]]*$'); } /** * Check if the string contains any HTML tags. * * EXAMPLE: <code>UTF8::is_html('<b>lall</b>'); // true</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains html elements.</p> */ public static function is_html(string $str): bool { if ($str === '') { return false; } // init $matches = []; $str = self::emoji_encode($str); // hack for emoji support :/ \preg_match("/<\\/?\\w+(?:(?:\\s+\\w+(?:\\s*=\\s*(?:\".*?\"|'.*?'|[^'\">\\s]+))?)*\\s*|\\s*)\\/?>/u", $str, $matches); return $matches !== []; } /** * Check if $url is an correct url. * * @param string $url * @param bool $disallow_localhost * * @psalm-pure * * @return bool */ public static function is_url(string $url, bool $disallow_localhost = false): bool { if ($url === '') { return false; } // WARNING: keep this as hack protection if (!self::str_istarts_with_any($url, ['http://', 'https://'])) { return false; } // e.g. -> the server itself connect to "https://foo.localhost/phpmyadmin/... if ($disallow_localhost) { if (self::str_istarts_with_any( $url, [ 'http://localhost', 'https://localhost', 'http://127.0.0.1', 'https://127.0.0.1', 'http://::1', 'https://::1', ] )) { return false; } $regex = '/^(?:http(?:s)?:\/\/).*?(?:\.localhost)/iu'; if (\preg_match($regex, $url)) { return false; } } // INFO: this is needed for e.g. "http://müller.de/" (internationalized domain names) and non ASCII-parameters $regex = '/^(?:http(?:s)?:\\/\\/)(?:[\p{L}0-9][\p{L}0-9_-]*(?:\\.[\p{L}0-9][\p{L}0-9_-]*))(?:\\d+)?(?:\\/\\.*)?/iu'; if (\preg_match($regex, $url)) { return true; } return \filter_var($url, \FILTER_VALIDATE_URL) !== false; } /** * Try to check if "$str" is a JSON-string. * * EXAMPLE: <code>UTF8::is_json('{"array":[1,"¥","ä"]}'); // true</code> * * @param string $str <p>The input string.</p> * @param bool $only_array_or_object_results_are_valid [optional] <p>Only array and objects are valid json * results.</p> * * @return bool * <p>Whether or not the $str is in JSON format.</p> */ public static function is_json(string $str, bool $only_array_or_object_results_are_valid = true): bool { if ($str === '') { return false; } if (self::$SUPPORT['json'] === false) { throw new \RuntimeException('ext-json: is not installed'); } $jsonOrNull = self::json_decode($str); if ($jsonOrNull === null && \strtoupper($str) !== 'NULL') { return false; } if ( $only_array_or_object_results_are_valid && !\is_object($jsonOrNull) && !\is_array($jsonOrNull) ) { return false; } return \json_last_error() === \JSON_ERROR_NONE; } /** * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only lowercase chars.</p> */ public static function is_lowercase(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('^[[:lower:]]*$', $str); } return self::str_matches_pattern($str, '^[[:lower:]]*$'); } /** * Returns true if the string is serialized, false otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str is serialized.</p> */ public static function is_serialized(string $str): bool { if ($str === '') { return false; } /** @noinspection PhpUsageOfSilenceOperatorInspection */ /** @noinspection UnserializeExploitsInspection */ return $str === 'b:0;' || @\unserialize($str, []) !== false; } /** * Returns true if the string contains only lower case chars, false * otherwise. * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains only lower case characters.</p> */ public static function is_uppercase(string $str): bool { if (self::$SUPPORT['mbstring'] === true) { return \mb_ereg_match('^[[:upper:]]*$', $str); } return self::str_matches_pattern($str, '^[[:upper:]]*$'); } /** * Check if the string is UTF-16. * * EXAMPLE: <code> * UTF8::is_utf16(file_get_contents('utf-16-le.txt')); // 1 * // * UTF8::is_utf16(file_get_contents('utf-16-be.txt')); // 2 * // * UTF8::is_utf16(file_get_contents('utf-8.txt')); // false * </code> * * @param string $str <p>The input string.</p> * @param bool $check_if_string_is_binary * * @psalm-pure * * @return false|int * <strong>false</strong> if is't not UTF-16,<br> * <strong>1</strong> for UTF-16LE,<br> * <strong>2</strong> for UTF-16BE */ public static function is_utf16($str, bool $check_if_string_is_binary = true) { // init $str = (string) $str; $str_chars = []; // fix for the "binary"-check if ($check_if_string_is_binary !== false && self::string_has_bom($str)) { $check_if_string_is_binary = false; } if ( $check_if_string_is_binary && !self::is_binary($str, true) ) { return false; } if (self::$SUPPORT['mbstring'] === false) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::is_utf16() without mbstring may did not work correctly', \E_USER_WARNING); } $str = self::remove_bom($str); $maybe_utf16le = 0; $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-16LE'); if ($test) { $test2 = \mb_convert_encoding($test, 'UTF-16LE', 'UTF-8'); $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-16LE'); if ($test3 === $test) { $str_chars = self::count_chars($str, true, false); foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { if (\in_array($test3char, $str_chars, true)) { ++$maybe_utf16le; } } unset($test3charEmpty); } } $maybe_utf16be = 0; $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-16BE'); if ($test) { $test2 = \mb_convert_encoding($test, 'UTF-16BE', 'UTF-8'); $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-16BE'); if ($test3 === $test) { if ($str_chars === []) { $str_chars = self::count_chars($str, true, false); } foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { if (\in_array($test3char, $str_chars, true)) { ++$maybe_utf16be; } } unset($test3charEmpty); } } if ($maybe_utf16be !== $maybe_utf16le) { if ($maybe_utf16le > $maybe_utf16be) { return 1; } return 2; } return false; } /** * Check if the string is UTF-32. * * EXAMPLE: <code> * UTF8::is_utf32(file_get_contents('utf-32-le.txt')); // 1 * // * UTF8::is_utf32(file_get_contents('utf-32-be.txt')); // 2 * // * UTF8::is_utf32(file_get_contents('utf-8.txt')); // false * </code> * * @param string $str <p>The input string.</p> * @param bool $check_if_string_is_binary * * @psalm-pure * * @return false|int * <strong>false</strong> if is't not UTF-32,<br> * <strong>1</strong> for UTF-32LE,<br> * <strong>2</strong> for UTF-32BE */ public static function is_utf32($str, bool $check_if_string_is_binary = true) { // init $str = (string) $str; $str_chars = []; // fix for the "binary"-check if ($check_if_string_is_binary !== false && self::string_has_bom($str)) { $check_if_string_is_binary = false; } if ( $check_if_string_is_binary && !self::is_binary($str, true) ) { return false; } if (self::$SUPPORT['mbstring'] === false) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::is_utf32() without mbstring may did not work correctly', \E_USER_WARNING); } $str = self::remove_bom($str); $maybe_utf32le = 0; $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-32LE'); if ($test) { $test2 = \mb_convert_encoding($test, 'UTF-32LE', 'UTF-8'); $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-32LE'); if ($test3 === $test) { $str_chars = self::count_chars($str, true, false); foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { if (\in_array($test3char, $str_chars, true)) { ++$maybe_utf32le; } } unset($test3charEmpty); } } $maybe_utf32be = 0; $test = \mb_convert_encoding($str, 'UTF-8', 'UTF-32BE'); if ($test) { $test2 = \mb_convert_encoding($test, 'UTF-32BE', 'UTF-8'); $test3 = \mb_convert_encoding($test2, 'UTF-8', 'UTF-32BE'); if ($test3 === $test) { if ($str_chars === []) { $str_chars = self::count_chars($str, true, false); } foreach (self::count_chars($test3) as $test3char => &$test3charEmpty) { if (\in_array($test3char, $str_chars, true)) { ++$maybe_utf32be; } } unset($test3charEmpty); } } if ($maybe_utf32be !== $maybe_utf32le) { if ($maybe_utf32le > $maybe_utf32be) { return 1; } return 2; } return false; } /** * Checks whether the passed input contains only byte sequences that appear valid UTF-8. * * EXAMPLE: <code> * UTF8::is_utf8(['Iñtërnâtiônàlizætiøn', 'foo']); // true * // * UTF8::is_utf8(["Iñtërnâtiônàlizætiøn\xA0\xA1", 'bar']); // false * </code> * * @param int|string|string[]|null $str <p>The input to be checked.</p> * @param bool $strict <p>Check also if the string is not UTF-16 or UTF-32.</p> * * @psalm-pure * * @return bool */ public static function is_utf8($str, bool $strict = false): bool { if (\is_array($str)) { foreach ($str as &$v) { if (!self::is_utf8($v, $strict)) { return false; } } return true; } return self::is_utf8_string((string) $str, $strict); } /** * (PHP 5 &gt;= 5.2.0, PECL json &gt;= 1.2.0)<br/> * Decodes a JSON string * * EXAMPLE: <code>UTF8::json_decode('[1,"\u00a5","\u00e4"]'); // array(1, '¥', 'ä')</code> * * @see http://php.net/manual/en/function.json-decode.php * * @param string $json <p> * The <i>json</i> string being decoded. * </p> * <p> * This function only works with UTF-8 encoded strings. * </p> * <p>PHP implements a superset of * JSON - it will also encode and decode scalar types and <b>NULL</b>. The JSON standard * only supports these values when they are nested inside an array or an object. * </p> * @param bool $assoc [optional] <p> * When <b>TRUE</b>, returned objects will be converted into * associative arrays. * </p> * @param int $depth [optional] <p> * User specified recursion depth. * </p> * @param int $options [optional] <p> * Bitmask of JSON decode options. Currently only * <b>JSON_BIGINT_AS_STRING</b> * is supported (default is to cast large integers as floats) * </p> * * @psalm-pure * * @return mixed * <p>The value encoded in <i>json</i> in appropriate PHP type. Values true, false and * null (case-insensitive) are returned as <b>TRUE</b>, <b>FALSE</b> and <b>NULL</b> respectively. * <b>NULL</b> is returned if the <i>json</i> cannot be decoded or if the encoded data * is deeper than the recursion limit.</p> */ public static function json_decode( string $json, bool $assoc = false, int $depth = 512, int $options = 0 ) { $json = self::filter($json); if (self::$SUPPORT['json'] === false) { throw new \RuntimeException('ext-json: is not installed'); } if ($depth < 1) { $depth = 1; } return \json_decode($json, $assoc, $depth, $options); } /** * (PHP 5 &gt;= 5.2.0, PECL json &gt;= 1.2.0)<br/> * Returns the JSON representation of a value. * * EXAMPLE: <code>UTF8::json_encode(array(1, '¥', 'ä')); // '[1,"\u00a5","\u00e4"]'</code> * * @see http://php.net/manual/en/function.json-encode.php * * @param mixed $value <p> * The <i>value</i> being encoded. Can be any type except * a resource. * </p> * <p> * All string data must be UTF-8 encoded. * </p> * <p>PHP implements a superset of * JSON - it will also encode and decode scalar types and <b>NULL</b>. The JSON standard * only supports these values when they are nested inside an array or an object. * </p> * @param int $options [optional] <p> * Bitmask consisting of <b>JSON_HEX_QUOT</b>, * <b>JSON_HEX_TAG</b>, * <b>JSON_HEX_AMP</b>, * <b>JSON_HEX_APOS</b>, * <b>JSON_NUMERIC_CHECK</b>, * <b>JSON_PRETTY_PRINT</b>, * <b>JSON_UNESCAPED_SLASHES</b>, * <b>JSON_FORCE_OBJECT</b>, * <b>JSON_UNESCAPED_UNICODE</b>. The behaviour of these * constants is described on * the JSON constants page. * </p> * @param int $depth [optional] <p> * Set the maximum depth. Must be greater than zero. * </p> * * @psalm-pure * * @return false|string * <p>A JSON encoded <strong>string</strong> on success or<br> * <strong>FALSE</strong> on failure.</p> */ public static function json_encode($value, int $options = 0, int $depth = 512) { $value = self::filter($value); if (self::$SUPPORT['json'] === false) { throw new \RuntimeException('ext-json: is not installed'); } if ($depth < 1) { $depth = 1; } return \json_encode($value, $options, $depth); } /** * Checks whether JSON is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function json_loaded(): bool { return \function_exists('json_decode'); } /** * Makes string's first char lowercase. * * EXAMPLE: <code>UTF8::lcfirst('ÑTËRNÂTIÔNÀLIZÆTIØN'); // ñTËRNÂTIÔNÀLIZÆTIØN</code> * * @param string $str <p>The input string</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string * <p>The resulting string.</p> */ public static function lcfirst( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { if ($clean_utf8) { $str = self::clean($str); } $use_mb_functions = ($lang === null && !$try_to_keep_the_string_length); if ($encoding === 'UTF-8') { $str_part_two = (string) \mb_substr($str, 1); if ($use_mb_functions) { $str_part_one = \mb_strtolower( (string) \mb_substr($str, 0, 1) ); } else { $str_part_one = self::strtolower( (string) \mb_substr($str, 0, 1), $encoding, false, $lang, $try_to_keep_the_string_length ); } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $str_part_two = (string) self::substr($str, 1, null, $encoding); $str_part_one = self::strtolower( (string) self::substr($str, 0, 1, $encoding), $encoding, false, $lang, $try_to_keep_the_string_length ); } return $str_part_one . $str_part_two; } /** * Lowercase for all words in the string. * * @param string $str <p>The input string.</p> * @param string[] $exceptions [optional] <p>Exclusion for some words.</p> * @param string $char_list [optional] <p>Additional chars that contains to words and do * not start a new word.</p> * @param string $encoding [optional] <p>Set the charset.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string */ public static function lcwords( string $str, array $exceptions = [], string $char_list = '', string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { if (!$str) { return ''; } $words = self::str_to_words($str, $char_list); $use_exceptions = $exceptions !== []; $words_str = ''; foreach ($words as &$word) { if (!$word) { continue; } if ( !$use_exceptions || !\in_array($word, $exceptions, true) ) { $words_str .= self::lcfirst($word, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); } else { $words_str .= $word; } } return $words_str; } /** * Calculate Levenshtein distance between two strings. * * For better performance, in a real application with a single input string * matched against many strings from a database, you will probably want to pre- * encode the input only once and use \levenshtein(). * * Source: https://github.com/KEINOS/mb_levenshtein * * @see https://www.php.net/manual/en/function.levenshtein * * @param string $str1 <p>One of the strings being evaluated for Levenshtein distance.</p> * @param string $str2 <p>One of the strings being evaluated for Levenshtein distance.</p> * @param int $insertionCost [optional] <p>Defines the cost of insertion.</p> * @param int $replacementCost [optional] <p>Defines the cost of replacement.</p> * @param int $deletionCost [optional] <p>Defines the cost of deletion.</p> * * @return int */ public static function levenshtein( string $str1, string $str2, int $insertionCost = 1, int $replacementCost = 1, int $deletionCost = 1 ): int { $result = ASCII::to_ascii_remap($str1, $str2); return \levenshtein($result[0], $result[1], $insertionCost, $replacementCost, $deletionCost); } /** * Strip whitespace or other characters from the beginning of a UTF-8 string. * * EXAMPLE: <code>UTF8::ltrim(' 中文空白  '); // '中文空白  '</code> * * @param string $str <p>The string to be trimmed</p> * @param string|null $chars <p>Optional characters to be stripped</p> * * @psalm-pure * * @return string the string with unwanted characters stripped from the left */ public static function ltrim(string $str = '', string $chars = null): string { if ($str === '') { return ''; } if (self::$SUPPORT['mbstring'] === true) { if ($chars !== null) { /** @noinspection PregQuoteUsageInspection */ $chars = \preg_quote($chars); $pattern = "^[{$chars}]+"; } else { $pattern = '^[\\s]+'; } return (string) \mb_ereg_replace($pattern, '', $str); } if ($chars !== null) { $chars = \preg_quote($chars, '/'); $pattern = "^[{$chars}]+"; } else { $pattern = '^[\\s]+'; } return self::regex_replace($str, $pattern, ''); } /** * Returns the UTF-8 character with the maximum code point in the given data. * * EXAMPLE: <code>UTF8::max('abc-äöü-中文空白'); // 'ø'</code> * * @param string|string[] $arg <p>A UTF-8 encoded string or an array of such strings.</p> * * @psalm-pure * * @return string|null the character with the highest code point than others, returns null on failure or empty input */ public static function max($arg) { if (\is_array($arg)) { $arg = \implode('', $arg); } $codepoints = self::codepoints($arg); if ($codepoints === []) { return null; } $codepoint_max = \max($codepoints); return self::chr((int) $codepoint_max); } /** * Calculates and returns the maximum number of bytes taken by any * UTF-8 encoded character in the given string. * * EXAMPLE: <code>UTF8::max_chr_width('Intërnâtiônàlizætiøn'); // 2</code> * * @param string $str <p>The original Unicode string.</p> * * @psalm-pure * * @return int * <p>Max byte lengths of the given chars.</p> * * @phpstan-return 0|1|2|3|4 */ public static function max_chr_width(string $str): int { $bytes = self::chr_size_list($str); if ($bytes !== []) { return (int) \max($bytes); } return 0; } /** * Checks whether mbstring is available on the server. * * @psalm-pure * * @return bool * <p><strong>true</strong> if available, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function mbstring_loaded(): bool { return \extension_loaded('mbstring'); } /** * Returns the UTF-8 character with the minimum code point in the given data. * * EXAMPLE: <code>UTF8::min('abc-äöü-中文空白'); // '-'</code> * * @param string|string[] $arg <strong>A UTF-8 encoded string or an array of such strings.</strong> * * @psalm-pure * * @return string|null * <p>The character with the lowest code point than others, returns null on failure or empty input.</p> */ public static function min($arg) { if (\is_array($arg)) { $arg = \implode('', $arg); } $codepoints = self::codepoints($arg); if ($codepoints === []) { return null; } $codepoint_min = \min($codepoints); return self::chr((int) $codepoint_min); } /** * Normalize the encoding-"name" input. * * EXAMPLE: <code>UTF8::normalize_encoding('UTF8'); // 'UTF-8'</code> * * @param mixed $encoding <p>e.g.: ISO, UTF8, WINDOWS-1251 etc.</p> * @param mixed $fallback <p>e.g.: UTF-8</p> * * @psalm-pure * * @return mixed|string * <p>e.g.: ISO-8859-1, UTF-8, WINDOWS-1251 etc.<br>Will return a empty string as fallback (by default)</p> * * @template TNormalizeEncodingFallback * @phpstan-param string|TNormalizeEncodingFallback $fallback * @phpstan-return string|TNormalizeEncodingFallback */ public static function normalize_encoding($encoding, $fallback = '') { /** * @psalm-suppress ImpureStaticVariable * * @var array<string,string> */ static $STATIC_NORMALIZE_ENCODING_CACHE = []; // init $encoding = (string) $encoding; if (!$encoding) { return $fallback; } if ( $encoding === 'UTF-8' || $encoding === 'UTF8' ) { return 'UTF-8'; } if ( $encoding === '8BIT' || $encoding === 'BINARY' ) { return 'CP850'; } if ( $encoding === 'HTML' || $encoding === 'HTML-ENTITIES' ) { return 'HTML-ENTITIES'; } if ( $encoding === 'ISO' || $encoding === 'ISO-8859-1' ) { return 'ISO-8859-1'; } // only a fallback, for non "strict_types" usage ... if ($encoding === '1') { return $fallback; } if (isset($STATIC_NORMALIZE_ENCODING_CACHE[$encoding])) { return $STATIC_NORMALIZE_ENCODING_CACHE[$encoding]; } if (self::$ENCODINGS === null) { self::$ENCODINGS = self::getData('encodings'); } if (\in_array($encoding, self::$ENCODINGS, true)) { $STATIC_NORMALIZE_ENCODING_CACHE[$encoding] = $encoding; return $encoding; } $encoding_original = $encoding; $encoding = \strtoupper($encoding); $encoding_upper_helper = (string) \preg_replace('/[^a-zA-Z0-9]/u', '', $encoding); $equivalences = [ 'ISO8859' => 'ISO-8859-1', 'ISO88591' => 'ISO-8859-1', 'ISO' => 'ISO-8859-1', 'LATIN' => 'ISO-8859-1', 'LATIN1' => 'ISO-8859-1', // Western European 'ISO88592' => 'ISO-8859-2', 'LATIN2' => 'ISO-8859-2', // Central European 'ISO88593' => 'ISO-8859-3', 'LATIN3' => 'ISO-8859-3', // Southern European 'ISO88594' => 'ISO-8859-4', 'LATIN4' => 'ISO-8859-4', // Northern European 'ISO88595' => 'ISO-8859-5', 'ISO88596' => 'ISO-8859-6', // Greek 'ISO88597' => 'ISO-8859-7', 'ISO88598' => 'ISO-8859-8', // Hebrew 'ISO88599' => 'ISO-8859-9', 'LATIN5' => 'ISO-8859-9', // Turkish 'ISO885911' => 'ISO-8859-11', 'TIS620' => 'ISO-8859-11', // Thai 'ISO885910' => 'ISO-8859-10', 'LATIN6' => 'ISO-8859-10', // Nordic 'ISO885913' => 'ISO-8859-13', 'LATIN7' => 'ISO-8859-13', // Baltic 'ISO885914' => 'ISO-8859-14', 'LATIN8' => 'ISO-8859-14', // Celtic 'ISO885915' => 'ISO-8859-15', 'LATIN9' => 'ISO-8859-15', // Western European (with some extra chars e.g. €) 'ISO885916' => 'ISO-8859-16', 'LATIN10' => 'ISO-8859-16', // Southeast European 'CP1250' => 'WINDOWS-1250', 'WIN1250' => 'WINDOWS-1250', 'WINDOWS1250' => 'WINDOWS-1250', 'CP1251' => 'WINDOWS-1251', 'WIN1251' => 'WINDOWS-1251', 'WINDOWS1251' => 'WINDOWS-1251', 'CP1252' => 'WINDOWS-1252', 'WIN1252' => 'WINDOWS-1252', 'WINDOWS1252' => 'WINDOWS-1252', 'CP1253' => 'WINDOWS-1253', 'WIN1253' => 'WINDOWS-1253', 'WINDOWS1253' => 'WINDOWS-1253', 'CP1254' => 'WINDOWS-1254', 'WIN1254' => 'WINDOWS-1254', 'WINDOWS1254' => 'WINDOWS-1254', 'CP1255' => 'WINDOWS-1255', 'WIN1255' => 'WINDOWS-1255', 'WINDOWS1255' => 'WINDOWS-1255', 'CP1256' => 'WINDOWS-1256', 'WIN1256' => 'WINDOWS-1256', 'WINDOWS1256' => 'WINDOWS-1256', 'CP1257' => 'WINDOWS-1257', 'WIN1257' => 'WINDOWS-1257', 'WINDOWS1257' => 'WINDOWS-1257', 'CP1258' => 'WINDOWS-1258', 'WIN1258' => 'WINDOWS-1258', 'WINDOWS1258' => 'WINDOWS-1258', 'UTF16' => 'UTF-16', 'UTF32' => 'UTF-32', 'UTF8' => 'UTF-8', 'UTF' => 'UTF-8', 'UTF7' => 'UTF-7', '8BIT' => 'CP850', 'BINARY' => 'CP850', ]; if (!empty($equivalences[$encoding_upper_helper])) { $encoding = $equivalences[$encoding_upper_helper]; } $STATIC_NORMALIZE_ENCODING_CACHE[$encoding_original] = $encoding; return $encoding; } /** * Standardize line ending to unix-like. * * @param string $str <p>The input string.</p> * @param string|string[] $replacer <p>The replacer char e.g. "\n" (Linux) or "\r\n" (Windows). You can also use \PHP_EOL * here.</p> * * @psalm-pure * * @return string * <p>A string with normalized line ending.</p> */ public static function normalize_line_ending(string $str, $replacer = "\n"): string { return \str_replace(["\r\n", "\r", "\n"], $replacer, $str); } /** * Normalize some MS Word special characters. * * EXAMPLE: <code>UTF8::normalize_msword('„Abcdef…”'); // '"Abcdef..."'</code> * * @param string $str <p>The string to be normalized.</p> * * @psalm-pure * * @return string * <p>A string with normalized characters for commonly used chars in Word documents.</p> */ public static function normalize_msword(string $str): string { return ASCII::normalize_msword($str); } /** * Normalize the whitespace. * * EXAMPLE: <code>UTF8::normalize_whitespace("abc-\xc2\xa0-öäü-\xe2\x80\xaf-\xE2\x80\xAC", true); // "abc-\xc2\xa0-öäü- -"</code> * * @param string $str <p>The string to be normalized.</p> * @param bool $keep_non_breaking_space [optional] <p>Set to true, to keep non-breaking-spaces.</p> * @param bool $keep_bidi_unicode_controls [optional] <p>Set to true, to keep non-printable (for the web) * bidirectional text chars.</p> * @param bool $normalize_control_characters [optional] <p>Set to true, to convert e.g. LINE-, PARAGRAPH-SEPARATOR with "\n" and LINE TABULATION with "\t".</p> * * @psalm-pure * * @return string * <p>A string with normalized whitespace.</p> */ public static function normalize_whitespace( string $str, bool $keep_non_breaking_space = false, bool $keep_bidi_unicode_controls = false, bool $normalize_control_characters = false ): string { return ASCII::normalize_whitespace( $str, $keep_non_breaking_space, $keep_bidi_unicode_controls, $normalize_control_characters ); } /** * Calculates Unicode code point of the given UTF-8 encoded character. * * INFO: opposite to UTF8::chr() * * EXAMPLE: <code>UTF8::ord('☃'); // 0x2603</code> * * @param string $chr <p>The character of which to calculate code point.<p/> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * <p>Unicode code point of the given character,<br> * 0 on invalid UTF-8 byte sequence</p> */ public static function ord($chr, string $encoding = 'UTF-8'): int { /** * @psalm-suppress ImpureStaticVariable * * @var array<string,int> */ static $CHAR_CACHE = []; // init $chr = (string) $chr; if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } $cache_key = $chr . '_' . $encoding; if (isset($CHAR_CACHE[$cache_key])) { return $CHAR_CACHE[$cache_key]; } // check again, if it's still not UTF-8 if ($encoding !== 'UTF-8') { $chr = self::encode($encoding, $chr); } if (self::$ORD === null) { self::$ORD = self::getData('ord'); } if (isset(self::$ORD[$chr])) { return $CHAR_CACHE[$cache_key] = self::$ORD[$chr]; } // // fallback via "IntlChar" // if (self::$SUPPORT['intlChar'] === true) { $code = \IntlChar::ord($chr); if ($code) { return $CHAR_CACHE[$cache_key] = $code; } } // // fallback via vanilla php // $chr = \unpack('C*', (string) \substr($chr, 0, 4)); /** @noinspection PhpSillyAssignmentInspection - hack for phpstan */ /** @var int[] $chr - "unpack": only false if the format string contains errors */ $chr = $chr; $code = $chr ? $chr[1] : 0; if ($code >= 0xF0 && isset($chr[4])) { return $CHAR_CACHE[$cache_key] = ((($code - 0xF0) << 18) + (($chr[2] - 0x80) << 12) + (($chr[3] - 0x80) << 6) + $chr[4] - 0x80); } if ($code >= 0xE0 && isset($chr[3])) { return $CHAR_CACHE[$cache_key] = ((($code - 0xE0) << 12) + (($chr[2] - 0x80) << 6) + $chr[3] - 0x80); } if ($code >= 0xC0 && isset($chr[2])) { return $CHAR_CACHE[$cache_key] = ((($code - 0xC0) << 6) + $chr[2] - 0x80); } return $CHAR_CACHE[$cache_key] = $code; } /** * Parses the string into an array (into the the second parameter). * * WARNING: Unlike "parse_str()", this method does not (re-)place variables in the current scope, * if the second parameter is not set! * * EXAMPLE: <code> * UTF8::parse_str('Iñtërnâtiônéàlizætiøn=測試&arr[]=foo+測試&arr[]=ການທົດສອບ', $array); * echo $array['Iñtërnâtiônéàlizætiøn']; // '測試' * </code> * * @see http://php.net/manual/en/function.parse-str.php * * @param string $str <p>The input string.</p> * @param array<string, mixed> $result <p>The result will be returned into this reference parameter.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return bool * <p>Will return <strong>false</strong> if php can't parse the string and we haven't any $result.</p> */ public static function parse_str(string $str, &$result, bool $clean_utf8 = false): bool { if ($clean_utf8) { $str = self::clean($str); } if (self::$SUPPORT['mbstring'] === true) { $return = \mb_parse_str($str, $result); return $return !== false && $result !== []; } /** * @psalm-suppress ImpureFunctionCall - we use the second parameter, so we don't change variables by magic */ \parse_str($str, $result); return $result !== []; } /** * Checks if \u modifier is available that enables Unicode support in PCRE. * * @psalm-pure * * @return bool * <p> * <strong>true</strong> if support is available,<br> * <strong>false</strong> otherwise * </p> */ public static function pcre_utf8_support(): bool { /** @noinspection PhpUsageOfSilenceOperatorInspection */ return (bool) @\preg_match('//u', ''); } /** * Create an array containing a range of UTF-8 characters. * * EXAMPLE: <code>UTF8::range('κ', 'ζ'); // array('κ', 'ι', 'θ', 'η', 'ζ',)</code> * * @param int|string $var1 <p>Numeric or hexadecimal code points, or a UTF-8 character to start from.</p> * @param int|string $var2 <p>Numeric or hexadecimal code points, or a UTF-8 character to end at.</p> * @param bool $use_ctype <p>use ctype to detect numeric and hexadecimal, otherwise we will use a simple * "is_numeric"</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param float|int $step [optional] <p> * If a step value is given, it will be used as the * increment between elements in the sequence. step * should be given as a positive number. If not specified, * step will default to 1. * </p> * * @psalm-pure * * @return list<string> */ public static function range( $var1, $var2, bool $use_ctype = true, string $encoding = 'UTF-8', $step = 1 ): array { if (!$var1 || !$var2) { return []; } if ($step !== 1) { /** * @psalm-suppress RedundantConditionGivenDocblockType * @psalm-suppress DocblockTypeContradiction * @phpstan-ignore-next-line | ignore wrong inputs */ if (!\is_numeric($step)) { throw new \InvalidArgumentException('$step need to be a number, type given: ' . \gettype($step)); } /** * @psalm-suppress RedundantConditionGivenDocblockType - false-positive from psalm? */ if ($step <= 0) { throw new \InvalidArgumentException('$step need to be a positive number, given: ' . $step); } } if ($use_ctype && self::$SUPPORT['ctype'] === false) { throw new \RuntimeException('ext-ctype: is not installed'); } $is_digit = false; $is_xdigit = false; if ($use_ctype && \ctype_digit((string) $var1) && \ctype_digit((string) $var2)) { $is_digit = true; $start = (int) $var1; } elseif ($use_ctype && \ctype_xdigit($var1) && \ctype_xdigit($var2)) { $is_xdigit = true; $start = (int) self::hex_to_int((string) $var1); } elseif (!$use_ctype && \is_numeric($var1)) { $start = (int) $var1; } else { $start = self::ord((string) $var1); } if (!$start) { return []; } if ($is_digit) { $end = (int) $var2; } elseif ($is_xdigit) { $end = (int) self::hex_to_int((string) $var2); } elseif (!$use_ctype && \is_numeric($var2)) { $end = (int) $var2; } else { $end = self::ord((string) $var2); } if (!$end) { return []; } $array = []; foreach (\range($start, $end, $step) as $i) { $array[] = (string) self::chr((int) $i, $encoding); } return $array; } /** * Get data from an array via array like string. * * EXAMPLE: <code>$array['foo'][123] = 'lall'; UTF8::getUrlParamFromArray('foo[123]', $array); // 'lall'</code> * * @param array<array-key, mixed> $data * * @return mixed */ public static function getUrlParamFromArray(string $param, array $data) { /** * @param array<array-key, mixed> $searchArray * @param array<array-key, mixed> $array * * @return mixed */ $getUrlArgFromArrayHelper = static function (array $searchArray, array $array) use (&$getUrlArgFromArrayHelper) { foreach ($searchArray as $key => $value) { if (isset($array[$key])) { if (\is_array($value) && \is_array($array[$key])) { return $getUrlArgFromArrayHelper($value, $array[$key]); } return $array[$key]; } } return null; }; /** * @param string $string * @return array|null */ $getUrlKeyArgsFromString = static function (string $string) { if (!self::str_contains($string, '?')) { $string = '?' . $string; } $args = parse_url($string, PHP_URL_QUERY); if ($args) { $query = []; parse_str($args, $query); return $query; } return null; }; if (isset($data[$param])) { return $data[$param]; } $paramKeys = $getUrlKeyArgsFromString($param); if ($paramKeys !== null) { return $getUrlArgFromArrayHelper($paramKeys, $data); } return null; } /** * Multi decode HTML entity + fix urlencoded-win1252-chars. * * EXAMPLE: <code>UTF8::rawurldecode('tes%20öäü%20\u00edtest+test'); // 'tes öäü ítest+test'</code> * * e.g: * 'test+test' => 'test+test' * 'D&#252;sseldorf' => 'Düsseldorf' * 'D%FCsseldorf' => 'Düsseldorf' * 'D&#xFC;sseldorf' => 'Düsseldorf' * 'D%26%23xFC%3Bsseldorf' => 'Düsseldorf' * 'Düsseldorf' => 'Düsseldorf' * 'D%C3%BCsseldorf' => 'Düsseldorf' * 'D%C3%83%C2%BCsseldorf' => 'Düsseldorf' * 'D%25C3%2583%25C2%25BCsseldorf' => 'Düsseldorf' * * @param string $str <p>The input string.</p> * @param bool $multi_decode <p>Decode as often as possible.</p> * * @psalm-pure * * @return string * <p>The decoded URL, as a string.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function rawurldecode(string $str, bool $multi_decode = true): string { if ($str === '') { return ''; } $str = self::urldecode_unicode_helper($str); if ($multi_decode) { do { $str_compare = $str; /** * @psalm-suppress PossiblyInvalidArgument */ $str = \rawurldecode( self::html_entity_decode( self::to_utf8($str), \ENT_QUOTES | \ENT_HTML5 ) ); } while ($str_compare !== $str); } else { /** * @psalm-suppress PossiblyInvalidArgument */ $str = \rawurldecode( self::html_entity_decode( self::to_utf8($str), \ENT_QUOTES | \ENT_HTML5 ) ); } return self::fix_simple_utf8($str); } /** * Replaces all occurrences of $pattern in $str by $replacement. * * @param string $str <p>The input string.</p> * @param string $pattern <p>The regular expression pattern.</p> * @param string $replacement <p>The string to replace with.</p> * @param string $options [optional] <p>Matching conditions to be used.</p> * @param string $delimiter [optional] <p>Delimiter the the regex. Default: '/'</p> * * @psalm-pure * * @return string */ public static function regex_replace( string $str, string $pattern, string $replacement, string $options = '', string $delimiter = '/' ): string { if ($options === 'msr') { $options = 'ms'; } // fallback if (!$delimiter) { $delimiter = '/'; } return (string) \preg_replace( $delimiter . $pattern . $delimiter . 'u' . $options, $replacement, $str ); } /** * Remove the BOM from UTF-8 / UTF-16 / UTF-32 strings. * * EXAMPLE: <code>UTF8::remove_bom("\xEF\xBB\xBFΜπορώ να"); // 'Μπορώ να'</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return string * <p>A string without UTF-BOM.</p> */ public static function remove_bom(string $str): string { if ($str === '') { return ''; } $str_length = \strlen($str); foreach (self::$BOM as $bom_string => $bom_byte_length) { if (\strncmp($str, $bom_string, $bom_byte_length) === 0) { /** @var false|string $str_tmp - needed for PhpStan (stubs error) */ $str_tmp = \substr($str, $bom_byte_length, $str_length); if ($str_tmp === false) { return ''; } $str_length -= $bom_byte_length; $str = (string) $str_tmp; } } return $str; } /** * Removes duplicate occurrences of a string in another string. * * EXAMPLE: <code>UTF8::remove_duplicates('öäü-κόσμεκόσμε-äöü', 'κόσμε'); // 'öäü-κόσμε-äöü'</code> * * @param string $str <p>The base string.</p> * @param string|string[] $what <p>String to search for in the base string.</p> * * @psalm-pure * * @return string * <p>A string with removed duplicates.</p> */ public static function remove_duplicates(string $str, $what = ' '): string { if (\is_string($what)) { $what = [$what]; } /** * @psalm-suppress RedundantConditionGivenDocblockType * @phpstan-ignore-next-line | ignore wrong inputs */ if (\is_array($what)) { foreach ($what as $item) { $str = (string) \preg_replace('/(' . \preg_quote($item, '/') . ')+/u', $item, $str); } } return $str; } /** * Remove html via "strip_tags()" from the string. * * @param string $str <p>The input string.</p> * @param string $allowable_tags [optional] <p>You can use the optional second parameter to specify tags which * should not be stripped. Default: null * </p> * * @psalm-pure * * @return string * <p>A string with without html tags.</p> */ public static function remove_html(string $str, string $allowable_tags = ''): string { return \strip_tags($str, $allowable_tags); } /** * Remove all breaks [<br> | \r\n | \r | \n | ...] from the string. * * @param string $str <p>The input string.</p> * @param string $replacement [optional] <p>Default is a empty string.</p> * * @psalm-pure * * @return string * <p>A string without breaks.</p> */ public static function remove_html_breaks(string $str, string $replacement = ''): string { return (string) \preg_replace("#/\r\n|\r|\n|<br.*/?>#isU", $replacement, $str); } /** * Remove invisible characters from a string. * * e.g.: This prevents sandwiching null characters between ascii characters, like Java\0script. * * EXAMPLE: <code>UTF8::remove_invisible_characters("κόσ\0με"); // 'κόσμε'</code> * * copy&past from https://github.com/bcit-ci/CodeIgniter/blob/develop/system/core/Common.php * * @param string $str <p>The input string.</p> * @param bool $url_encoded [optional] <p> * Try to remove url encoded control character. * WARNING: maybe contains false-positives e.g. aa%0Baa -> aaaa. * <br> * Default: false * </p> * @param string $replacement [optional] <p>The replacement character.</p> * @param bool $keep_basic_control_characters [optional] <p>Keep control characters like [LRM] or [LSEP].</p> * * @psalm-pure * * @return string * <p>A string without invisible chars.</p> */ public static function remove_invisible_characters( string $str, bool $url_encoded = false, string $replacement = '', bool $keep_basic_control_characters = true ): string { return ASCII::remove_invisible_characters( $str, $url_encoded, $replacement, $keep_basic_control_characters ); } /** * Returns a new string with the prefix $substring removed, if present. * * @param string $str <p>The input string.</p> * @param string $substring <p>The prefix to remove.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string * <p>A string without the prefix $substring.</p> */ public static function remove_left( string $str, string $substring, string $encoding = 'UTF-8' ): string { if ( $substring && \strpos($str, $substring) === 0 ) { if ($encoding === 'UTF-8') { return (string) \mb_substr( $str, (int) \mb_strlen($substring) ); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return (string) self::substr( $str, (int) self::strlen($substring, $encoding), null, $encoding ); } return $str; } /** * Returns a new string with the suffix $substring removed, if present. * * @param string $str * @param string $substring <p>The suffix to remove.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string * <p>A string having a $str without the suffix $substring.</p> */ public static function remove_right( string $str, string $substring, string $encoding = 'UTF-8' ): string { if ($substring && \substr($str, -\strlen($substring)) === $substring) { if ($encoding === 'UTF-8') { return (string) \mb_substr( $str, 0, (int) \mb_strlen($str) - (int) \mb_strlen($substring) ); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return (string) self::substr( $str, 0, (int) self::strlen($str, $encoding) - (int) self::strlen($substring, $encoding), $encoding ); } return $str; } /** * Returns a new string with the suffix $substring removed, if present and case-insensitive. * * @param string $str * @param string $substring <p>The suffix to remove.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string * <p>A string having a $str without the suffix $substring.</p> */ public static function remove_iright( string $str, string $substring, string $encoding = 'UTF-8' ): string { if ($substring && self::strtoupper(\substr($str, -\strlen($substring)), $encoding) === self::strtoupper($substring, $encoding)) { if ($encoding === 'UTF-8') { return (string) \mb_substr( $str, 0, (int) \mb_strlen($str) - (int) \mb_strlen($substring) ); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return (string) self::substr( $str, 0, (int) self::strlen($str, $encoding) - (int) self::strlen($substring, $encoding), $encoding ); } return $str; } /** * Returns a new string with the prefix $substring removed, if present and case-insensitive. * * @param string $str <p>The input string.</p> * @param string $substring <p>The prefix to remove.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string * <p>A string without the prefix $substring.</p> */ public static function remove_ileft( string $str, string $substring, string $encoding = 'UTF-8' ): string { if ( $substring && \strpos(self::strtoupper($str, $encoding), self::strtoupper($substring, $encoding)) === 0 ) { if ($encoding === 'UTF-8') { return (string) \mb_substr( $str, (int) \mb_strlen($substring) ); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return (string) self::substr( $str, (int) self::strlen($substring, $encoding), null, $encoding ); } return $str; } /** * Replaces all occurrences of $search in $str by $replacement. * * @param string $str <p>The input string.</p> * @param string $search <p>The needle to search for.</p> * @param string $replacement <p>The string to replace with.</p> * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> * * @psalm-pure * * @return string * <p>A string with replaced parts.</p> */ public static function replace( string $str, string $search, string $replacement, bool $case_sensitive = true ): string { if ($case_sensitive) { return \str_replace($search, $replacement, $str); } return self::str_ireplace($search, $replacement, $str); } /** * Replaces all occurrences of $search in $str by $replacement. * * @param string $str <p>The input string.</p> * @param string[] $search <p>The elements to search for.</p> * @param string|string[] $replacement <p>The string to replace with.</p> * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> * * @psalm-pure * * @return string * <p>A string with replaced parts.</p> */ public static function replace_all( string $str, array $search, $replacement, bool $case_sensitive = true ): string { if ($case_sensitive) { return \str_replace($search, $replacement, $str); } return self::str_ireplace($search, $replacement, $str); } /** * Replace the diamond question mark (�) and invalid-UTF8 chars with the replacement. * * EXAMPLE: <code>UTF8::replace_diamond_question_mark('中文空白�', ''); // '中文空白'</code> * * @param string $str <p>The input string</p> * @param string $replacement_char <p>The replacement character.</p> * @param bool $process_invalid_utf8_chars <p>Convert invalid UTF-8 chars </p> * * @psalm-pure * * @return string * <p>A string without diamond question marks (�).</p> */ public static function replace_diamond_question_mark( string $str, string $replacement_char = '', bool $process_invalid_utf8_chars = true ): string { if ($str === '') { return ''; } if ($process_invalid_utf8_chars) { if ($replacement_char === '') { $replacement_char_helper = 'none'; } else { $replacement_char_helper = \ord($replacement_char); } if (self::$SUPPORT['mbstring'] === false) { // if there is no native support for "mbstring", // then we need to clean the string before ... $str = self::clean($str); } /** * @psalm-suppress ImpureFunctionCall - we will reset the value in the next step */ $save = \mb_substitute_character(); /** @noinspection PhpUsageOfSilenceOperatorInspection - ignore "Unknown character" warnings, it's working anyway */ @\mb_substitute_character($replacement_char_helper); // the polyfill maybe return false, so cast to string $str = (string) \mb_convert_encoding($str, 'UTF-8', 'UTF-8'); \mb_substitute_character($save); } return \str_replace( [ "\xEF\xBF\xBD", '�', ], [ $replacement_char, $replacement_char, ], $str ); } /** * Strip whitespace or other characters from the end of a UTF-8 string. * * EXAMPLE: <code>UTF8::rtrim('-ABC-中文空白- '); // '-ABC-中文空白-'</code> * * @param string $str <p>The string to be trimmed.</p> * @param string|null $chars <p>Optional characters to be stripped.</p> * * @psalm-pure * * @return string * <p>A string with unwanted characters stripped from the right.</p> */ public static function rtrim(string $str = '', string $chars = null): string { if ($str === '') { return ''; } if (self::$SUPPORT['mbstring'] === true) { if ($chars !== null) { /** @noinspection PregQuoteUsageInspection */ $chars = \preg_quote($chars); $pattern = "[{$chars}]+$"; } else { $pattern = '[\\s]+$'; } return (string) \mb_ereg_replace($pattern, '', $str); } if ($chars !== null) { $chars = \preg_quote($chars, '/'); $pattern = "[{$chars}]+$"; } else { $pattern = '[\\s]+$'; } return self::regex_replace($str, $pattern, ''); } /** * WARNING: Print native UTF-8 support (libs) by default, e.g. for debugging. * * @param bool $useEcho * * @psalm-pure * * @return string|void * * @phpstan-return ($useEcho is true ? void : string) */ public static function showSupport(bool $useEcho = true) { // init $html = ''; $html .= '<pre>'; foreach (self::$SUPPORT as $key => &$value) { $html .= $key . ' - ' . \print_r($value, true) . "\n<br>"; } $html .= '</pre>'; if ($useEcho) { echo $html; } return $html; } /** * Converts a UTF-8 character to HTML Numbered Entity like "&#123;". * * EXAMPLE: <code>UTF8::single_chr_html_encode('κ'); // '&#954;'</code> * * @param string $char <p>The Unicode character to be encoded as numbered entity.</p> * @param bool $keep_ascii_chars <p>Set to <strong>true</strong> to keep ASCII chars.</> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The HTML numbered entity for the given character.</p> * * @template T as string * @phpstan-param T $char * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function single_chr_html_encode( string $char, bool $keep_ascii_chars = false, string $encoding = 'UTF-8' ): string { if ($char === '') { return ''; } if ( $keep_ascii_chars && ASCII::is_ascii($char) ) { return $char; } return '&#' . self::ord($char, $encoding) . ';'; } /** * @param string $str * @param int<1, max> $tab_length * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function spaces_to_tabs(string $str, int $tab_length = 4): string { if ($tab_length === 4) { $tab = ' '; } elseif ($tab_length === 2) { $tab = ' '; } else { $tab = \str_repeat(' ', $tab_length); } return \str_replace($tab, "\t", $str); } /** * Returns a camelCase version of the string. Trims surrounding spaces, * capitalizes letters following digits, spaces, dashes and underscores, * and removes spaces, dashes, as well as underscores. * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string */ public static function str_camelize( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { if ($clean_utf8) { $str = self::clean($str); } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } $str = self::lcfirst( \trim($str), $encoding, false, $lang, $try_to_keep_the_string_length ); $str = (string) \preg_replace('/^[-_]+/', '', $str); $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; $str = (string) \preg_replace_callback( '/[-_\\s]+(.)?/u', /** * @param array $match * * @psalm-pure * * @return string */ static function (array $match) use ($use_mb_functions, $encoding, $lang, $try_to_keep_the_string_length): string { if (isset($match[1])) { if ($use_mb_functions) { if ($encoding === 'UTF-8') { return \mb_strtoupper($match[1]); } return \mb_strtoupper($match[1], $encoding); } return self::strtoupper($match[1], $encoding, false, $lang, $try_to_keep_the_string_length); } return ''; }, $str ); return (string) \preg_replace_callback( '/[\\p{N}]+(.)?/u', /** * @param array $match * * @psalm-pure * * @return string */ static function (array $match) use ($use_mb_functions, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length): string { if ($use_mb_functions) { if ($encoding === 'UTF-8') { return \mb_strtoupper($match[0]); } return \mb_strtoupper($match[0], $encoding); } return self::strtoupper($match[0], $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); }, $str ); } /** * Returns the string with the first letter of each word capitalized, * except for when the word is a name which shouldn't be capitalized. * * @param string $str * * @psalm-pure * * @return string * <p>A string with $str capitalized.</p> */ public static function str_capitalize_name(string $str): string { return self::str_capitalize_name_helper( self::str_capitalize_name_helper( self::collapse_whitespace($str), ' ' ), '-' ); } /** * Returns true if the string contains $needle, false otherwise. By default * the comparison is case-sensitive, but can be made insensitive by setting * $case_sensitive to false. * * @param string $haystack <p>The input string.</p> * @param string $needle <p>Substring to look for.</p> * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> * * @psalm-pure * * @return bool * <p>Whether or not $haystack contains $needle.</p> */ public static function str_contains( string $haystack, string $needle, bool $case_sensitive = true ): bool { if ($case_sensitive) { if (\PHP_VERSION_ID >= 80000) { /** @phpstan-ignore-next-line - only for PHP8 */ return \str_contains($haystack, $needle); } return \strpos($haystack, $needle) !== false; } return \mb_stripos($haystack, $needle) !== false; } /** * Returns true if the string contains all $needles, false otherwise. By * default, the comparison is case-sensitive, but can be made insensitive by * setting $case_sensitive to false. * * @param string $haystack <p>The input string.</p> * @param scalar[] $needles <p>SubStrings to look for.</p> * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> * * @psalm-pure * * @return bool * <p>Whether or not $haystack contains $needle.</p> */ public static function str_contains_all( string $haystack, array $needles, bool $case_sensitive = true ): bool { if ($haystack === '' || $needles === []) { return false; } foreach ($needles as &$needle) { if ( $case_sensitive && (!$needle || \strpos($haystack, (string)$needle) === false) ) { return false; } if (!$needle || \mb_stripos($haystack, (string) $needle) === false) { return false; } } return true; } /** * Returns true if the string contains any $needles, false otherwise. By * default the comparison is case-sensitive, but can be made insensitive by * setting $case_sensitive to false. * * @param string $haystack <p>The input string.</p> * @param scalar[] $needles <p>SubStrings to look for.</p> * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> * * @psalm-pure * * @return bool * <p>Whether or not $str contains $needle.</p> */ public static function str_contains_any( string $haystack, array $needles, bool $case_sensitive = true ): bool { if ($haystack === '' || $needles === []) { return false; } foreach ($needles as &$needle) { if (!$needle) { continue; } if ($case_sensitive) { if (\strpos($haystack, (string) $needle) !== false) { return true; } continue; } if (\mb_stripos($haystack, (string) $needle) !== false) { return true; } } return false; } /** * Returns a lowercase and trimmed string separated by dashes. Dashes are * inserted before uppercase characters (with the exception of the first * character of the string), and in place of spaces as well as underscores. * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function str_dasherize(string $str, string $encoding = 'UTF-8'): string { return self::str_delimit($str, '-', $encoding); } /** * Returns a lowercase and trimmed string separated by the given delimiter. * * Delimiters are inserted before uppercase characters (with the exception * of the first character of the string), and in place of spaces, dashes, * and underscores. Alpha delimiters are not converted to lowercase. * * EXAMPLE: <code> * UTF8::str_delimit('test case, '#'); // 'test#case' * UTF8::str_delimit('test -case', '**'); // 'test**case' * </code> * * @param string $str <p>The input string.</p> * @param string $delimiter <p>Sequence used to separate parts of the string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ -> * ß</p> * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function str_delimit( string $str, string $delimiter, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { if (self::$SUPPORT['mbstring'] === true) { $str = (string) \mb_ereg_replace('\\B(\\p{Lu})', '-\1', \trim($str)); $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; if ($use_mb_functions && $encoding === 'UTF-8') { $str = \mb_strtolower($str); } else { $str = self::strtolower($str, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); } return (string) \mb_ereg_replace('[\\-_\\s]+', $delimiter, $str); } $str = (string) \preg_replace('/\\B(\\p{Lu})/u', '-\1', \trim($str)); $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; if ($use_mb_functions && $encoding === 'UTF-8') { $str = \mb_strtolower($str); } else { $str = self::strtolower($str, $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); } return (string) \preg_replace('/[\\-_\\s]+/u', $delimiter, $str); } /** * Optimized "mb_detect_encoding()"-function -> with support for UTF-16 and UTF-32. * * EXAMPLE: <code> * UTF8::str_detect_encoding('中文空白'); // 'UTF-8' * UTF8::str_detect_encoding('Abc'); // 'ASCII' * </code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return false|string * <p> * The detected string-encoding e.g. UTF-8 or UTF-16BE,<br> * otherwise it will return false e.g. for BINARY or not detected encoding. * </p> */ public static function str_detect_encoding($str) { // init $str = (string) $str; // // 1.) check binary strings (010001001...) like UTF-16 / UTF-32 / PDF / Images / ... // if (self::is_binary($str, self::string_has_bom($str) ? false : true)) { $is_utf32 = self::is_utf32($str, false); if ($is_utf32 === 1) { return 'UTF-32LE'; } if ($is_utf32 === 2) { return 'UTF-32BE'; } $is_utf16 = self::is_utf16($str, false); if ($is_utf16 === 1) { return 'UTF-16LE'; } if ($is_utf16 === 2) { return 'UTF-16BE'; } // is binary but not "UTF-16" or "UTF-32" return false; } // // 2.) simple check for ASCII chars // if (ASCII::is_ascii($str)) { return 'ASCII'; } // // 3.) simple check for UTF-8 chars // if (self::is_utf8_string($str)) { return 'UTF-8'; } // // 4.) check via "mb_detect_encoding()" // // INFO: UTF-16, UTF-32, UCS2 and UCS4, encoding detection will fail always with "mb_detect_encoding()" $encoding_detecting_order = [ 'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', 'WINDOWS-1251', 'WINDOWS-1252', 'WINDOWS-1254', 'CP932', 'CP936', 'CP950', 'CP866', 'CP850', 'CP51932', 'CP50220', 'CP50221', 'CP50222', 'ISO-2022-JP', 'ISO-2022-KR', 'JIS', 'JIS-ms', 'EUC-CN', 'EUC-JP', ]; if (self::$SUPPORT['mbstring'] === true) { // info: do not use the symfony polyfill here $encoding = \mb_detect_encoding($str, $encoding_detecting_order, true); if ($encoding) { return $encoding; } } // // 5.) check via "iconv()" // if (self::$ENCODINGS === null) { self::$ENCODINGS = self::getData('encodings'); } foreach (self::$ENCODINGS as $encoding_tmp) { // INFO: //IGNORE but still throw notice /** @noinspection PhpUsageOfSilenceOperatorInspection */ if ((string) @\iconv($encoding_tmp, $encoding_tmp . '//IGNORE', $str) === $str) { return $encoding_tmp; } } return false; } /** * Check if the string ends with the given substring. * * EXAMPLE: <code> * UTF8::str_ends_with('BeginMiddleΚόσμε', 'Κόσμε'); // true * UTF8::str_ends_with('BeginMiddleΚόσμε', 'κόσμε'); // false * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return bool */ public static function str_ends_with(string $haystack, string $needle): bool { if ($needle === '') { return true; } if ($haystack === '') { return false; } if (\PHP_VERSION_ID >= 80000) { /** @phpstan-ignore-next-line - only for PHP8 */ return \str_ends_with($haystack, $needle); } return \substr($haystack, -\strlen($needle)) === $needle; } /** * Returns true if the string ends with any of $substrings, false otherwise. * * - case-sensitive * * @param string $str <p>The input string.</p> * @param string[] $substrings <p>Substrings to look for.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str ends with $substring.</p> */ public static function str_ends_with_any(string $str, array $substrings): bool { if ($substrings === []) { return false; } foreach ($substrings as &$substring) { if (\substr($str, -\strlen($substring)) === $substring) { return true; } } return false; } /** * Ensures that the string begins with $substring. If it doesn't, it's * prepended. * * @param string $str <p>The input string.</p> * @param string $substring <p>The substring to add if not present.</p> * * @psalm-pure * * @template T as string * @template TSub as string * @phpstan-param T $str * @phpstan-param TSub $substring * @phpstan-return (TSub is non-empty-string ? non-empty-string : (T is non-empty-string ? non-empty-string : string)) */ public static function str_ensure_left(string $str, string $substring): string { if ( $substring !== '' && \strpos($str, $substring) === 0 ) { return $str; } return $substring . $str; } /** * Ensures that the string ends with $substring. If it doesn't, it's appended. * * @param string $str <p>The input string.</p> * @param string $substring <p>The substring to add if not present.</p> * * @psalm-pure * * @return string * * @template T as string * @template TSub as string * @phpstan-param T $str * @phpstan-param TSub $substring * @phpstan-return (TSub is non-empty-string ? non-empty-string : (T is non-empty-string ? non-empty-string : string)) */ public static function str_ensure_right(string $str, string $substring): string { if ( $str === '' || $substring === '' || \substr($str, -\strlen($substring)) !== $substring ) { $str .= $substring; } return $str; } /** * Capitalizes the first word of the string, replaces underscores with * spaces, and strips '_id'. * * @param string $str * * @psalm-pure * * @return string */ public static function str_humanize($str): string { $str = \str_replace( [ '_id', '_', ], [ '', ' ', ], $str ); return self::ucfirst(\trim($str)); } /** * Check if the string ends with the given substring, case-insensitive. * * EXAMPLE: <code> * UTF8::str_iends_with('BeginMiddleΚόσμε', 'Κόσμε'); // true * UTF8::str_iends_with('BeginMiddleΚόσμε', 'κόσμε'); // true * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return bool */ public static function str_iends_with(string $haystack, string $needle): bool { if ($needle === '') { return true; } if ($haystack === '') { return false; } return self::strcasecmp(\substr($haystack, -\strlen($needle)), $needle) === 0; } /** * Returns true if the string ends with any of $substrings, false otherwise. * * - case-insensitive * * @param string $str <p>The input string.</p> * @param string[] $substrings <p>Substrings to look for.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str ends with $substring.</p> */ public static function str_iends_with_any(string $str, array $substrings): bool { if ($substrings === []) { return false; } foreach ($substrings as &$substring) { if (self::str_iends_with($str, $substring)) { return true; } } return false; } /** * Inserts $substring into the string at the $index provided. * * @param string $str <p>The input string.</p> * @param string $substring <p>String to be inserted.</p> * @param int $index <p>The index at which to insert the substring.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function str_insert( string $str, string $substring, int $index, string $encoding = 'UTF-8' ): string { if ($encoding === 'UTF-8') { $len = (int) \mb_strlen($str); if ($index > $len) { return $str; } /** @noinspection UnnecessaryCastingInspection */ return (string) \mb_substr($str, 0, $index) . $substring . (string) \mb_substr($str, $index, $len); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); $len = (int) self::strlen($str, $encoding); if ($index > $len) { return $str; } return ((string) self::substr($str, 0, $index, $encoding)) . $substring . ((string) self::substr($str, $index, $len, $encoding)); } /** * Case-insensitive and UTF-8 safe version of <function>str_replace</function>. * * EXAMPLE: <code> * UTF8::str_ireplace('lIzÆ', 'lise', 'Iñtërnâtiônàlizætiøn'); // 'Iñtërnâtiônàlisetiøn' * </code> * * @see http://php.net/manual/en/function.str-ireplace.php * * @param string|string[] $search <p> * Every replacement with search array is * performed on the result of previous replacement. * </p> * @param string|string[] $replacement <p>The replacement.</p> * @param string|string[] $subject <p> * If subject is an array, then the search and * replace is performed with every entry of * subject, and the return value is an array as * well. * </p> * @param int $count [optional] <p> * The number of matched and replaced needles will * be returned in count which is passed by * reference. * </p> * * @psalm-pure * * @return string|string[] * <p>A string or an array of replacements.</p> * * @template TStrIReplaceSubject * @phpstan-param TStrIReplaceSubject $subject * @phpstan-return TStrIReplaceSubject */ public static function str_ireplace($search, $replacement, $subject, &$count = null) { $search = (array) $search; /** @noinspection AlterInForeachInspection */ foreach ($search as &$s) { $s = (string) $s; if ($s === '') { $s = '/^(?<=.)$/'; } else { $s = '/' . \preg_quote($s, '/') . '/ui'; } } // fallback /** @phpstan-ignore-next-line - only a fallback for PHP8 */ if ($replacement === null) { $replacement = ''; } /** @phpstan-ignore-next-line - only a fallback for PHP8 */ if ($subject === null) { $subject = ''; } /** * @psalm-suppress PossiblyNullArgument * @phpstan-var TStrIReplaceSubject $subject */ $subject = \preg_replace($search, $replacement, $subject, -1, $count); return $subject; } /** * Replaces $search from the beginning of string with $replacement. * * @param string $str <p>The input string.</p> * @param string $search <p>The string to search for.</p> * @param string $replacement <p>The replacement.</p> * * @psalm-pure * * @return string * <p>The string after the replacement.</p> */ public static function str_ireplace_beginning(string $str, string $search, string $replacement): string { if ($str === '') { if ($replacement === '') { return ''; } if ($search === '') { return $replacement; } } if ($search === '') { return $str . $replacement; } $searchLength = \strlen($search); if (\strncasecmp($str, $search, $searchLength) === 0) { return $replacement . \substr($str, $searchLength); } return $str; } /** * Replaces $search from the ending of string with $replacement. * * @param string $str <p>The input string.</p> * @param string $search <p>The string to search for.</p> * @param string $replacement <p>The replacement.</p> * * @psalm-pure * * @return string * <p>The string after the replacement.</p> */ public static function str_ireplace_ending(string $str, string $search, string $replacement): string { if ($str === '') { if ($replacement === '') { return ''; } if ($search === '') { return $replacement; } } if ($search === '') { return $str . $replacement; } if (\stripos($str, $search, \strlen($str) - \strlen($search)) !== false) { $str = \substr($str, 0, -\strlen($search)) . $replacement; } return $str; } /** * Check if the string starts with the given substring, case-insensitive. * * EXAMPLE: <code> * UTF8::str_istarts_with('ΚόσμεMiddleEnd', 'Κόσμε'); // true * UTF8::str_istarts_with('ΚόσμεMiddleEnd', 'κόσμε'); // true * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return bool */ public static function str_istarts_with(string $haystack, string $needle): bool { if ($needle === '') { return true; } if ($haystack === '') { return false; } return self::stripos($haystack, $needle) === 0; } /** * Returns true if the string begins with any of $substrings, false otherwise. * * - case-insensitive * * @param string $str <p>The input string.</p> * @param scalar[] $substrings <p>Substrings to look for.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str starts with $substring.</p> */ public static function str_istarts_with_any(string $str, array $substrings): bool { if ($str === '') { return false; } if ($substrings === []) { return false; } foreach ($substrings as &$substring) { if (self::str_istarts_with($str, (string) $substring)) { return true; } } return false; } /** * Gets the substring after the first occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_isubstr_after_first_separator( string $str, string $separator, string $encoding = 'UTF-8' ): string { if ($separator === '' || $str === '') { return ''; } $offset = self::stripos($str, $separator); if ($offset === false) { return ''; } if ($encoding === 'UTF-8') { return (string) \mb_substr( $str, $offset + (int) \mb_strlen($separator) ); } return (string) self::substr( $str, $offset + (int) self::strlen($separator, $encoding), null, $encoding ); } /** * Gets the substring after the last occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_isubstr_after_last_separator( string $str, string $separator, string $encoding = 'UTF-8' ): string { if ($separator === '' || $str === '') { return ''; } $offset = self::strripos($str, $separator); if ($offset === false) { return ''; } if ($encoding === 'UTF-8') { return (string) \mb_substr( $str, $offset + (int) self::strlen($separator) ); } return (string) self::substr( $str, $offset + (int) self::strlen($separator, $encoding), null, $encoding ); } /** * Gets the substring before the first occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_isubstr_before_first_separator( string $str, string $separator, string $encoding = 'UTF-8' ): string { if ($separator === '' || $str === '') { return ''; } $offset = self::stripos($str, $separator); if ($offset === false) { return ''; } if ($encoding === 'UTF-8') { return (string) \mb_substr($str, 0, $offset); } return (string) self::substr($str, 0, $offset, $encoding); } /** * Gets the substring before the last occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_isubstr_before_last_separator( string $str, string $separator, string $encoding = 'UTF-8' ): string { if ($separator === '' || $str === '') { return ''; } if ($encoding === 'UTF-8') { $offset = \mb_strripos($str, $separator); if ($offset === false) { return ''; } return (string) \mb_substr($str, 0, $offset); } $offset = self::strripos($str, $separator, 0, $encoding); if ($offset === false) { return ''; } return (string) self::substr($str, 0, $offset, $encoding); } /** * Gets the substring after (or before via "$before_needle") the first occurrence of the "$needle". * * @param string $str <p>The input string.</p> * @param string $needle <p>The string to look for.</p> * @param bool $before_needle [optional] <p>Default: false</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_isubstr_first( string $str, string $needle, bool $before_needle = false, string $encoding = 'UTF-8' ): string { if ( $needle === '' || $str === '' ) { return ''; } $part = self::stristr( $str, $needle, $before_needle, $encoding ); if ($part === false) { return ''; } return $part; } /** * Gets the substring after (or before via "$before_needle") the last occurrence of the "$needle". * * @param string $str <p>The input string.</p> * @param string $needle <p>The string to look for.</p> * @param bool $before_needle [optional] <p>Default: false</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_isubstr_last( string $str, string $needle, bool $before_needle = false, string $encoding = 'UTF-8' ): string { if ( $needle === '' || $str === '' ) { return ''; } $part = self::strrichr( $str, $needle, $before_needle, $encoding ); if ($part === false) { return ''; } return $part; } /** * Returns the last $n characters of the string. * * @param string $str <p>The input string.</p> * @param int $n <p>Number of characters to retrieve from the end.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function str_last_char( string $str, int $n = 1, string $encoding = 'UTF-8' ): string { if ($str === '' || $n <= 0) { return ''; } if ($encoding === 'UTF-8') { return (string) \mb_substr($str, -$n); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return (string) self::substr($str, -$n, null, $encoding); } /** * Limit the number of characters in a string. * * @param string $str <p>The input string.</p> * @param int<1, max> $length [optional] <p>Default: 100</p> * @param string $str_add_on [optional] <p>Default: …</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function str_limit( string $str, int $length = 100, string $str_add_on = '…', string $encoding = 'UTF-8' ): string { if ( $str === '' || /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ $length <= 0 ) { return ''; } if ($encoding === 'UTF-8') { if ((int) \mb_strlen($str) <= $length) { return $str; } /** @noinspection UnnecessaryCastingInspection */ return (string) \mb_substr($str, 0, $length - (int) self::strlen($str_add_on)) . $str_add_on; } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ((int) self::strlen($str, $encoding) <= $length) { return $str; } return ((string) self::substr($str, 0, $length - (int) self::strlen($str_add_on), $encoding)) . $str_add_on; } /** * Limit the number of characters in a string in bytes. * * @param string $str <p>The input string.</p> * @param int<1, max> $length [optional] <p>Default: 100</p> * @param string $str_add_on [optional] <p>Default: ...</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function str_limit_in_byte( string $str, int $length = 100, string $str_add_on = '...', string $encoding = 'UTF-8' ): string { if ( $str === '' || /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ $length <= 0 ) { return ''; } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ((int) self::strlen_in_byte($str, $encoding) <= $length) { return $str; } return ((string) self::substr_in_byte($str, 0, $length - (int) self::strlen_in_byte($str_add_on), $encoding)) . $str_add_on; } /** * Limit the number of characters in a string, but also after the next word. * * EXAMPLE: <code>UTF8::str_limit_after_word('fòô bàř fòô', 8, ''); // 'fòô bàř'</code> * * @param string $str <p>The input string.</p> * @param int<1, max> $length [optional] <p>Default: 100</p> * @param string $str_add_on [optional] <p>Default: …</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function str_limit_after_word( string $str, int $length = 100, string $str_add_on = '…', string $encoding = 'UTF-8' ): string { if ( $str === '' || /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ $length <= 0 ) { return ''; } if ($encoding === 'UTF-8') { if ((int) \mb_strlen($str) <= $length) { return $str; } if (\mb_substr($str, $length - 1, 1) === ' ') { return ((string) \mb_substr($str, 0, $length - 1)) . $str_add_on; } $str = \mb_substr($str, 0, $length); $array = \explode(' ', $str, -1); $new_str = \implode(' ', $array); if ($new_str === '') { return ((string) \mb_substr($str, 0, $length - 1)) . $str_add_on; } } else { if ((int) self::strlen($str, $encoding) <= $length) { return $str; } if (self::substr($str, $length - 1, 1, $encoding) === ' ') { return ((string) self::substr($str, 0, $length - 1, $encoding)) . $str_add_on; } /** @noinspection CallableParameterUseCaseInTypeContextInspection - FP */ $str = self::substr($str, 0, $length, $encoding); if ($str === false) { return '' . $str_add_on; } $array = \explode(' ', $str, -1); $new_str = \implode(' ', $array); if ($new_str === '') { return ((string) self::substr($str, 0, $length - 1, $encoding)) . $str_add_on; } } return $new_str . $str_add_on; } /** * Returns the longest common prefix between the $str1 and $str2. * * @param string $str1 <p>The input sting.</p> * @param string $str2 <p>Second string for comparison.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function str_longest_common_prefix( string $str1, string $str2, string $encoding = 'UTF-8' ): string { // init $longest_common_prefix = ''; if ($encoding === 'UTF-8') { $max_length = (int) \min( \mb_strlen($str1), \mb_strlen($str2) ); for ($i = 0; $i < $max_length; ++$i) { $char = \mb_substr($str1, $i, 1); if ( $char !== false /* @phpstan-ignore-line | old polyfill will return false, or? */ && $char === \mb_substr($str2, $i, 1) ) { $longest_common_prefix .= $char; } else { break; } } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $max_length = (int) \min( self::strlen($str1, $encoding), self::strlen($str2, $encoding) ); for ($i = 0; $i < $max_length; ++$i) { $char = self::substr($str1, $i, 1, $encoding); if ( $char !== false && $char === self::substr($str2, $i, 1, $encoding) ) { $longest_common_prefix .= $char; } else { break; } } } return $longest_common_prefix; } /** * Returns the longest common substring between the $str1 and $str2. * In the case of ties, it returns that which occurs first. * * @param string $str1 * @param string $str2 <p>Second string for comparison.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>A string with its $str being the longest common substring.</p> */ public static function str_longest_common_substring( string $str1, string $str2, string $encoding = 'UTF-8' ): string { if ($str1 === '' || $str2 === '') { return ''; } // Uses dynamic programming to solve // http://en.wikipedia.org/wiki/Longest_common_substring_problem if ($encoding === 'UTF-8') { $str_length = (int) \mb_strlen($str1); $other_length = (int) \mb_strlen($str2); } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $str_length = (int) self::strlen($str1, $encoding); $other_length = (int) self::strlen($str2, $encoding); } // Return if either string is empty if ($str_length === 0 || $other_length === 0) { return ''; } $len = 0; $end = 0; $table = \array_fill( 0, $str_length + 1, \array_fill(0, $other_length + 1, 0) ); if ($encoding === 'UTF-8') { for ($i = 1; $i <= $str_length; ++$i) { for ($j = 1; $j <= $other_length; ++$j) { $str_char = \mb_substr($str1, $i - 1, 1); $other_char = \mb_substr($str2, $j - 1, 1); if ($str_char === $other_char) { $table[$i][$j] = $table[$i - 1][$j - 1] + 1; if ($table[$i][$j] > $len) { $len = $table[$i][$j]; $end = $i; } } else { $table[$i][$j] = 0; } } } } else { for ($i = 1; $i <= $str_length; ++$i) { for ($j = 1; $j <= $other_length; ++$j) { $str_char = self::substr($str1, $i - 1, 1, $encoding); $other_char = self::substr($str2, $j - 1, 1, $encoding); if ($str_char === $other_char) { $table[$i][$j] = $table[$i - 1][$j - 1] + 1; if ($table[$i][$j] > $len) { $len = $table[$i][$j]; $end = $i; } } else { $table[$i][$j] = 0; } } } } if ($encoding === 'UTF-8') { return (string) \mb_substr($str1, $end - $len, $len); } return (string) self::substr($str1, $end - $len, $len, $encoding); } /** * Returns the longest common suffix between the $str1 and $str2. * * @param string $str1 * @param string $str2 <p>Second string for comparison.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string */ public static function str_longest_common_suffix( string $str1, string $str2, string $encoding = 'UTF-8' ): string { if ($str1 === '' || $str2 === '') { return ''; } if ($encoding === 'UTF-8') { $max_length = (int) \min( \mb_strlen($str1, $encoding), \mb_strlen($str2, $encoding) ); $longest_common_suffix = ''; for ($i = 1; $i <= $max_length; ++$i) { $char = \mb_substr($str1, -$i, 1); if ( $char !== false /* @phpstan-ignore-line | old polyfill will return false, or? */ && $char === \mb_substr($str2, -$i, 1) ) { $longest_common_suffix = $char . $longest_common_suffix; } else { break; } } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $max_length = (int) \min( self::strlen($str1, $encoding), self::strlen($str2, $encoding) ); $longest_common_suffix = ''; for ($i = 1; $i <= $max_length; ++$i) { $char = self::substr($str1, -$i, 1, $encoding); if ( $char !== false && $char === self::substr($str2, -$i, 1, $encoding) ) { $longest_common_suffix = $char . $longest_common_suffix; } else { break; } } } return $longest_common_suffix; } /** * Returns true if $str matches the supplied pattern, false otherwise. * * @param string $str <p>The input string.</p> * @param string $pattern <p>Regex pattern to match against.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str matches the pattern.</p> */ public static function str_matches_pattern(string $str, string $pattern): bool { return (bool) \preg_match('/' . $pattern . '/u', $str); } /** * Returns whether or not a character exists at an index. Offsets may be * negative to count from the last character in the string. Implements * part of the ArrayAccess interface. * * @param string $str <p>The input string.</p> * @param int $offset <p>The index to check.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return bool * <p>Whether or not the index exists.</p> */ public static function str_offset_exists(string $str, int $offset, string $encoding = 'UTF-8'): bool { // init $length = (int) self::strlen($str, $encoding); if ($offset >= 0) { return $length > $offset; } return $length >= \abs($offset); } /** * Returns the character at the given index. Offsets may be negative to * count from the last character in the string. Implements part of the * ArrayAccess interface, and throws an OutOfBoundsException if the index * does not exist. * * @param string $str <p>The input string.</p> * @param int<1, max> $index <p>The <strong>index</strong> from which to retrieve the char.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @throws \OutOfBoundsException if the positive or negative offset does not exist * * @return string * <p>The character at the specified index.</p> * * @psalm-pure */ public static function str_offset_get(string $str, int $index, string $encoding = 'UTF-8'): string { // init $length = (int) self::strlen($str); if ( /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ ($index >= 0 && $length <= $index) || $length < \abs($index) ) { throw new \OutOfBoundsException('No character exists at the index'); } return self::char_at($str, $index, $encoding); } /** * Pad a UTF-8 string to a given length with another string. * * EXAMPLE: <code>UTF8::str_pad('中文空白', 10, '_', STR_PAD_BOTH); // '___中文空白___'</code> * * @param string $str <p>The input string.</p> * @param int $pad_length <p>The length of return string.</p> * @param string $pad_string [optional] <p>String to use for padding the input string.</p> * @param int|string $pad_type [optional] <p> * Can be <strong>STR_PAD_RIGHT</strong> (default), [or string "right"]<br> * <strong>STR_PAD_LEFT</strong> [or string "left"] or<br> * <strong>STR_PAD_BOTH</strong> [or string "both"] * </p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string * <p>Returns the padded string.</p> */ public static function str_pad( string $str, int $pad_length, string $pad_string = ' ', $pad_type = \STR_PAD_RIGHT, string $encoding = 'UTF-8' ): string { if ($pad_length === 0 || $pad_string === '') { return $str; } if ($pad_type !== (int) $pad_type) { if ($pad_type === 'left') { $pad_type = \STR_PAD_LEFT; } elseif ($pad_type === 'right') { $pad_type = \STR_PAD_RIGHT; } elseif ($pad_type === 'both') { $pad_type = \STR_PAD_BOTH; } else { throw new \InvalidArgumentException( 'Pad expects $pad_type to be "STR_PAD_*" or ' . "to be one of 'left', 'right' or 'both'" ); } } if ($encoding === 'UTF-8') { $str_length = (int) \mb_strlen($str); if ($pad_length >= $str_length) { switch ($pad_type) { case \STR_PAD_LEFT: $ps_length = (int) \mb_strlen($pad_string); $diff = ($pad_length - $str_length); $pre = (string) \mb_substr( \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), 0, $diff ); $post = ''; break; case \STR_PAD_BOTH: $diff = ($pad_length - $str_length); $ps_length_left = (int) \floor($diff / 2); $ps_length_right = (int) \ceil($diff / 2); $pre = (string) \mb_substr( \str_repeat($pad_string, $ps_length_left), 0, $ps_length_left ); $post = (string) \mb_substr( \str_repeat($pad_string, $ps_length_right), 0, $ps_length_right ); break; case \STR_PAD_RIGHT: default: $ps_length = (int) \mb_strlen($pad_string); $diff = ($pad_length - $str_length); $post = (string) \mb_substr( \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), 0, $diff ); $pre = ''; } return $pre . $str . $post; } return $str; } $encoding = self::normalize_encoding($encoding, 'UTF-8'); $str_length = (int) self::strlen($str, $encoding); if ($pad_length >= $str_length) { switch ($pad_type) { case \STR_PAD_LEFT: $ps_length = (int) self::strlen($pad_string, $encoding); $diff = ($pad_length - $str_length); $pre = (string) self::substr( \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), 0, $diff, $encoding ); $post = ''; break; case \STR_PAD_BOTH: $diff = ($pad_length - $str_length); $ps_length_left = (int) \floor($diff / 2); $ps_length_right = (int) \ceil($diff / 2); $pre = (string) self::substr( \str_repeat($pad_string, $ps_length_left), 0, $ps_length_left, $encoding ); $post = (string) self::substr( \str_repeat($pad_string, $ps_length_right), 0, $ps_length_right, $encoding ); break; case \STR_PAD_RIGHT: default: $ps_length = (int) self::strlen($pad_string, $encoding); $diff = ($pad_length - $str_length); $post = (string) self::substr( \str_repeat($pad_string, (int) \ceil($diff / $ps_length)), 0, $diff, $encoding ); $pre = ''; } return $pre . $str . $post; } return $str; } /** * Returns a new string of a given length such that both sides of the * string are padded. Alias for "UTF8::str_pad()" with a $pad_type of 'both'. * * @param string $str * @param int $length <p>Desired string length after padding.</p> * @param string $pad_str [optional] <p>String used to pad, defaults to space. Default: ' '</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The string with padding applied.</p> */ public static function str_pad_both( string $str, int $length, string $pad_str = ' ', string $encoding = 'UTF-8' ): string { return self::str_pad( $str, $length, $pad_str, \STR_PAD_BOTH, $encoding ); } /** * Returns a new string of a given length such that the beginning of the * string is padded. Alias for "UTF8::str_pad()" with a $pad_type of 'left'. * * @param string $str * @param int $length <p>Desired string length after padding.</p> * @param string $pad_str [optional] <p>String used to pad, defaults to space. Default: ' '</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The string with left padding.</p> */ public static function str_pad_left( string $str, int $length, string $pad_str = ' ', string $encoding = 'UTF-8' ): string { return self::str_pad( $str, $length, $pad_str, \STR_PAD_LEFT, $encoding ); } /** * Returns a new string of a given length such that the end of the string * is padded. Alias for "UTF8::str_pad()" with a $pad_type of 'right'. * * @param string $str * @param int $length <p>Desired string length after padding.</p> * @param string $pad_str [optional] <p>String used to pad, defaults to space. Default: ' '</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The string with right padding.</p> */ public static function str_pad_right( string $str, int $length, string $pad_str = ' ', string $encoding = 'UTF-8' ): string { return self::str_pad( $str, $length, $pad_str, \STR_PAD_RIGHT, $encoding ); } /** * Repeat a string. * * EXAMPLE: <code>UTF8::str_repeat("°~\xf0\x90\x28\xbc", 2); // '°~ð(¼°~ð(¼'</code> * * @param string $str <p> * The string to be repeated. * </p> * @param int<1, max> $multiplier <p> * Number of time the input string should be * repeated. * </p> * <p> * multiplier has to be greater than or equal to 0. * If the multiplier is set to 0, the function * will return an empty string. * </p> * * @psalm-pure * * @return string * <p>The repeated string.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function str_repeat(string $str, int $multiplier): string { $str = self::filter($str); return \str_repeat($str, $multiplier); } /** * INFO: This is only a wrapper for "str_replace()" -> the original functions is already UTF-8 safe. * * Replace all occurrences of the search string with the replacement string * * @see http://php.net/manual/en/function.str-replace.php * * @param string|string[] $search <p> * The value being searched for, otherwise known as the needle. * An array may be used to designate multiple needles. * </p> * @param string|string[] $replace <p> * The replacement value that replaces found search * values. An array may be used to designate multiple replacements. * </p> * @param string|string[] $subject <p> * The string or array of strings being searched and replaced on, * otherwise known as the haystack. * </p> * <p> * If subject is an array, then the search and * replace is performed with every entry of * subject, and the return value is an array as * well. * </p> * @param int|null $count [optional] <p> * If passed, this will hold the number of matched and replaced needles. * </p> * * @psalm-pure * * @return string|string[] * <p>This function returns a string or an array with the replaced values.</p> * * @template TStrReplaceSubject * @phpstan-param TStrReplaceSubject $subject * @phpstan-return TStrReplaceSubject * * @deprecated please use \str_replace() instead */ public static function str_replace( $search, $replace, $subject, int &$count = null ) { /** * @psalm-suppress PossiblyNullArgument * @phpstan-var TStrReplaceSubject $return; */ $return = \str_replace( $search, $replace, $subject, $count ); return $return; } /** * Replaces $search from the beginning of string with $replacement. * * @param string $str <p>The input string.</p> * @param string $search <p>The string to search for.</p> * @param string $replacement <p>The replacement.</p> * * @psalm-pure * * @return string * <p>A string after the replacements.</p> */ public static function str_replace_beginning( string $str, string $search, string $replacement ): string { if ($str === '') { if ($replacement === '') { return ''; } if ($search === '') { return $replacement; } } if ($search === '') { return $str . $replacement; } $searchLength = \strlen($search); if (\strncmp($str, $search, $searchLength) === 0) { return $replacement . \substr($str, $searchLength); } return $str; } /** * Replaces $search from the ending of string with $replacement. * * @param string $str <p>The input string.</p> * @param string $search <p>The string to search for.</p> * @param string $replacement <p>The replacement.</p> * * @psalm-pure * * @return string * <p>A string after the replacements.</p> */ public static function str_replace_ending( string $str, string $search, string $replacement ): string { if ($str === '') { if ($replacement === '') { return ''; } if ($search === '') { return $replacement; } } if ($search === '') { return $str . $replacement; } if (\strpos($str, $search, \strlen($str) - \strlen($search)) !== false) { $str = \substr($str, 0, -\strlen($search)) . $replacement; } return $str; } /** * Replace the first "$search"-term with the "$replace"-term. * * @param string $search * @param string $replace * @param string $subject * * @psalm-pure * * @return string * * @psalm-suppress InvalidReturnType */ public static function str_replace_first( string $search, string $replace, string $subject ): string { $pos = self::strpos($subject, $search); if ($pos !== false) { /** * @psalm-suppress InvalidReturnStatement */ return self::substr_replace( $subject, $replace, $pos, (int) self::strlen($search) ); } return $subject; } /** * Replace the last "$search"-term with the "$replace"-term. * * @param string $search * @param string $replace * @param string $subject * * @psalm-pure * * @return string * * @psalm-suppress InvalidReturnType */ public static function str_replace_last( string $search, string $replace, string $subject ): string { $pos = self::strrpos($subject, $search); if ($pos !== false) { /** * @psalm-suppress InvalidReturnStatement */ return self::substr_replace( $subject, $replace, $pos, (int) self::strlen($search) ); } return $subject; } /** * Shuffles all the characters in the string. * * INFO: uses random algorithm which is weak for cryptography purposes * * EXAMPLE: <code>UTF8::str_shuffle('fòô bàř fòô'); // 'àòôřb ffòô '</code> * * @param string $str <p>The input string</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @return string * <p>The shuffled string.</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function str_shuffle(string $str, string $encoding = 'UTF-8'): string { if ($encoding === 'UTF-8') { $indexes = \range(0, (int) \mb_strlen($str) - 1); \shuffle($indexes); // init $shuffled_str = ''; foreach ($indexes as &$i) { $tmp_sub_str = \mb_substr($str, $i, 1); if ($tmp_sub_str !== false) { /* @phpstan-ignore-line | old polyfill will return false, or? */ $shuffled_str .= $tmp_sub_str; } } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $indexes = \range(0, (int) self::strlen($str, $encoding) - 1); \shuffle($indexes); // init $shuffled_str = ''; foreach ($indexes as &$i) { $tmp_sub_str = self::substr($str, $i, 1, $encoding); if ($tmp_sub_str !== false) { $shuffled_str .= $tmp_sub_str; } } } return $shuffled_str; } /** * Returns the substring beginning at $start, and up to, but not including * the index specified by $end. If $end is omitted, the function extracts * the remaining string. If $end is negative, it is computed from the end * of the string. * * @param string $str * @param int $start <p>Initial index from which to begin extraction.</p> * @param int|null $end [optional] <p>Index at which to end extraction. Default: null</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return false|string * <p>The extracted substring.</p><p>If <i>str</i> is shorter than <i>start</i> * characters long, <b>FALSE</b> will be returned. */ public static function str_slice( string $str, int $start, int $end = null, string $encoding = 'UTF-8' ) { if ($encoding === 'UTF-8') { if ($end === null) { $length = (int) \mb_strlen($str); } elseif ($end >= 0 && $end <= $start) { return ''; } elseif ($end < 0) { $length = (int) \mb_strlen($str) + $end - $start; } else { $length = $end - $start; } return \mb_substr($str, $start, $length); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ($end === null) { $length = (int) self::strlen($str, $encoding); } elseif ($end >= 0 && $end <= $start) { return ''; } elseif ($end < 0) { $length = (int) self::strlen($str, $encoding) + $end - $start; } else { $length = $end - $start; } return self::substr($str, $start, $length, $encoding); } /** * Convert a string to e.g.: "snake_case" * * @param string $str * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>A string in snake_case.</p> */ public static function str_snakeize(string $str, string $encoding = 'UTF-8'): string { if ($str === '') { return ''; } $str = \str_replace( '-', '_', self::normalize_whitespace($str) ); if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } $str = (string) \preg_replace_callback( '/([\\p{N}|\\p{Lu}])/u', /** * @param string[] $matches * * @psalm-pure * * @return string */ static function (array $matches) use ($encoding): string { $match = $matches[1]; $match_int = (int) $match; if ((string) $match_int === $match) { return '_' . $match . '_'; } if ($encoding === 'UTF-8') { return '_' . \mb_strtolower($match); } return '_' . self::strtolower($match, $encoding); }, $str ); $str = (string) \preg_replace( [ '/\\s+/u', // convert spaces to "_" '/^\\s+|\\s+$/u', // trim leading & trailing spaces '/_+/', // remove double "_" ], [ '_', '', '_', ], $str ); return \trim(\trim($str, '_')); // trim leading & trailing "_" + whitespace } /** * Sort all characters according to code points. * * EXAMPLE: <code>UTF8::str_sort(' -ABC-中文空白- '); // ' ---ABC中文白空'</code> * * @param string $str <p>A UTF-8 string.</p> * @param bool $unique <p>Sort unique. If <strong>true</strong>, repeated characters are ignored.</p> * @param bool $desc <p>If <strong>true</strong>, will sort characters in reverse code point order.</p> * * @psalm-pure * * @return string * <p>A string of sorted characters.</p> */ public static function str_sort(string $str, bool $unique = false, bool $desc = false): string { /** @var int[] $array */ $array = self::codepoints($str); if ($unique) { $array = \array_flip(\array_flip($array)); } if ($desc) { \arsort($array); } else { \asort($array); } return self::string($array); } /** * Convert a string to an array of Unicode characters. * * EXAMPLE: <code> * UTF8::str_split_array(['中文空白', 'test'], 2); // [['中文', '空白'], ['te', 'st']] * </code> * * @param int[]|string[] $input <p>The string[] or int[] to split into array.</p> * @param int<1, max> $length [optional] <p>Max character length of each array * element.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the * string.</p> * @param bool $try_to_use_mb_functions [optional] <p>Set to false, if you don't want to use * "mb_substr"</p> * * @psalm-pure * * @return list<list<string>> * <p>An array containing chunks of the input.</p> */ public static function str_split_array( array $input, int $length = 1, bool $clean_utf8 = false, bool $try_to_use_mb_functions = true ): array { foreach ($input as &$v) { $v = self::str_split( $v, $length, $clean_utf8, $try_to_use_mb_functions ); } /** @var list<list<string>> $input */ return $input; } /** * Convert a string to an array of unicode characters. * * EXAMPLE: <code>UTF8::str_split('中文空白'); // array('中', '文', '空', '白')</code> * * @param int|string $str <p>The string or int to split into array.</p> * @param int<1, max> $length [optional] <p>Max character length of each array * element.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the * string.</p> * @param bool $try_to_use_mb_functions [optional] <p>Set to false, if you don't want to use * "mb_substr"</p> * * @psalm-pure * * @return list<string> * <p>An array containing chunks of chars from the input.</p> */ public static function str_split( $str, int $length = 1, bool $clean_utf8 = false, bool $try_to_use_mb_functions = true ): array { /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ if ($length <= 0) { return []; } // this is only an old fallback /** @noinspection PhpSillyAssignmentInspection - hack for phpstan */ /** @var int|int[]|string|string[] $str */ $str = $str; if (\is_array($str)) { /** @psalm-suppress InvalidReturnStatement */ /** @phpstan-ignore-next-line - old code :/ */ return self::str_split_array( $str, $length, $clean_utf8, $try_to_use_mb_functions ); } // init $str = (string) $str; if ($str === '') { return []; } if ($clean_utf8) { $str = self::clean($str); } if ( $try_to_use_mb_functions && self::$SUPPORT['mbstring'] === true ) { if (\function_exists('mb_str_split')) { try { /** * @psalm-suppress ImpureFunctionCall - why? */ $return = \mb_str_split($str, $length); } catch (\Error $e) { // PHP >= 8.0 : mb_str_split() will now throw ValueError on error. Previously, mb_str_split() returned false instead. $return = false; } if ($return !== false) { return $return; } } $i_max = \mb_strlen($str); if ($i_max <= 127) { $ret = []; for ($i = 0; $i < $i_max; ++$i) { $ret[] = \mb_substr($str, $i, 1); } } else { $return_array = []; \preg_match_all('/./us', $str, $return_array); $ret = $return_array[0] ?? []; } } elseif (self::$SUPPORT['pcre_utf8'] === true) { $return_array = []; \preg_match_all('/./us', $str, $return_array); $ret = $return_array[0] ?? []; } else { // fallback $ret = []; $len = \strlen($str); for ($i = 0; $i < $len; ++$i) { if (($str[$i] & "\x80") === "\x00") { $ret[] = $str[$i]; } elseif ( isset($str[$i + 1]) && ($str[$i] & "\xE0") === "\xC0" ) { if (($str[$i + 1] & "\xC0") === "\x80") { $ret[] = $str[$i] . $str[$i + 1]; ++$i; } } elseif ( isset($str[$i + 2]) && ($str[$i] & "\xF0") === "\xE0" ) { if ( ($str[$i + 1] & "\xC0") === "\x80" && ($str[$i + 2] & "\xC0") === "\x80" ) { $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2]; $i += 2; } } elseif ( isset($str[$i + 3]) && ($str[$i] & "\xF8") === "\xF0" ) { if ( ($str[$i + 1] & "\xC0") === "\x80" && ($str[$i + 2] & "\xC0") === "\x80" && ($str[$i + 3] & "\xC0") === "\x80" ) { $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3]; $i += 3; } } } } if ($length > 1) { return \array_map( static function (array $item): string { /* @phpstan-ignore-next-line | "array_map + array_chunk" is not supported by phpstan?! */ return \implode('', $item); }, \array_chunk($ret, $length) ); } if (isset($ret[0]) && $ret[0] === '') { return []; } return $ret; } /** * Splits the string with the provided regular expression, returning an * array of strings. An optional integer $limit will truncate the * results. * * @param string $str * @param string $pattern <p>The regex with which to split the string.</p> * @param int $limit [optional] <p>Maximum number of results to return. Default: -1 === no limit</p> * * @psalm-pure * * @return string[] * <p>An array of strings.</p> */ public static function str_split_pattern(string $str, string $pattern, int $limit = -1): array { if ($limit === 0) { return []; } if ($pattern === '') { return [$str]; } if (self::$SUPPORT['mbstring'] === true) { if ($limit >= 0) { $result_tmp = \mb_split($pattern, $str); if ($result_tmp === false) { return []; } $result = []; foreach ($result_tmp as $item_tmp) { if ($limit === 0) { break; } --$limit; $result[] = $item_tmp; } return $result; } $result = \mb_split($pattern, $str); if ($result === false) { return []; } return $result; } if ($limit > 0) { ++$limit; } else { $limit = -1; } $array = \preg_split('/' . \preg_quote($pattern, '/') . '/u', $str, $limit); if ($array === false) { return []; } if ($limit > 0 && \count($array) === $limit) { \array_pop($array); } return $array; } /** * Check if the string starts with the given substring. * * EXAMPLE: <code> * UTF8::str_starts_with('ΚόσμεMiddleEnd', 'Κόσμε'); // true * UTF8::str_starts_with('ΚόσμεMiddleEnd', 'κόσμε'); // false * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return bool */ public static function str_starts_with(string $haystack, string $needle): bool { if ($needle === '') { return true; } if ($haystack === '') { return false; } if (\PHP_VERSION_ID >= 80000) { /** @phpstan-ignore-next-line - only for PHP8 */ return \str_starts_with($haystack, $needle); } return \strncmp($haystack, $needle, \strlen($needle)) === 0; } /** * Returns true if the string begins with any of $substrings, false otherwise. * * - case-sensitive * * @param string $str <p>The input string.</p> * @param scalar[] $substrings <p>Substrings to look for.</p> * * @psalm-pure * * @return bool * <p>Whether or not $str starts with $substring.</p> */ public static function str_starts_with_any(string $str, array $substrings): bool { if ($str === '') { return false; } if ($substrings === []) { return false; } foreach ($substrings as &$substring) { if (self::str_starts_with($str, (string) $substring)) { return true; } } return false; } /** * Gets the substring after the first occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_substr_after_first_separator(string $str, string $separator, string $encoding = 'UTF-8'): string { if ($separator === '' || $str === '') { return ''; } if ($encoding === 'UTF-8') { $offset = \mb_strpos($str, $separator); if ($offset === false) { return ''; } return (string) \mb_substr( $str, $offset + (int) \mb_strlen($separator) ); } $offset = self::strpos($str, $separator, 0, $encoding); if ($offset === false) { return ''; } return (string) \mb_substr( $str, $offset + (int) self::strlen($separator, $encoding), null, $encoding ); } /** * Gets the substring after the last occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_substr_after_last_separator( string $str, string $separator, string $encoding = 'UTF-8' ): string { if ($separator === '' || $str === '') { return ''; } if ($encoding === 'UTF-8') { $offset = \mb_strrpos($str, $separator); if ($offset === false) { return ''; } return (string) \mb_substr( $str, $offset + (int) \mb_strlen($separator) ); } $offset = self::strrpos($str, $separator, 0, $encoding); if ($offset === false) { return ''; } return (string) self::substr( $str, $offset + (int) self::strlen($separator, $encoding), null, $encoding ); } /** * Gets the substring before the first occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_substr_before_first_separator( string $str, string $separator, string $encoding = 'UTF-8' ): string { if ($separator === '' || $str === '') { return ''; } if ($encoding === 'UTF-8') { $offset = \mb_strpos($str, $separator); if ($offset === false) { return ''; } return (string) \mb_substr( $str, 0, $offset ); } $offset = self::strpos($str, $separator, 0, $encoding); if ($offset === false) { return ''; } return (string) self::substr( $str, 0, $offset, $encoding ); } /** * Gets the substring before the last occurrence of a separator. * * @param string $str <p>The input string.</p> * @param string $separator <p>The string separator.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_substr_before_last_separator(string $str, string $separator, string $encoding = 'UTF-8'): string { if ($separator === '' || $str === '') { return ''; } if ($encoding === 'UTF-8') { $offset = \mb_strrpos($str, $separator); if ($offset === false) { return ''; } return (string) \mb_substr( $str, 0, $offset ); } $offset = self::strrpos($str, $separator, 0, $encoding); if ($offset === false) { return ''; } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return (string) self::substr( $str, 0, $offset, $encoding ); } /** * Gets the substring after (or before via "$before_needle") the first occurrence of the "$needle". * * @param string $str <p>The input string.</p> * @param string $needle <p>The string to look for.</p> * @param bool $before_needle [optional] <p>Default: false</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_substr_first( string $str, string $needle, bool $before_needle = false, string $encoding = 'UTF-8' ): string { if ($str === '' || $needle === '') { return ''; } if ($encoding === 'UTF-8') { if ($before_needle) { $part = \mb_strstr( $str, $needle, $before_needle ); } else { $part = \mb_strstr( $str, $needle ); } } else { $part = self::strstr( $str, $needle, $before_needle, $encoding ); } return $part === false ? '' : $part; } /** * Gets the substring after (or before via "$before_needle") the last occurrence of the "$needle". * * @param string $str <p>The input string.</p> * @param string $needle <p>The string to look for.</p> * @param bool $before_needle [optional] <p>Default: false</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string */ public static function str_substr_last( string $str, string $needle, bool $before_needle = false, string $encoding = 'UTF-8' ): string { if ($str === '' || $needle === '') { return ''; } if ($encoding === 'UTF-8') { if ($before_needle) { $part = \mb_strrchr( $str, $needle, $before_needle ); } else { $part = \mb_strrchr( $str, $needle ); } } else { $part = self::strrchr( $str, $needle, $before_needle, $encoding ); } return $part === false ? '' : $part; } /** * Surrounds $str with the given substring. * * @param string $str * @param string $substring <p>The substring to add to both sides.</p> * * @psalm-pure * * @return string * <p>A string with the substring both prepended and appended.</p> * * @template T as string * @template TSub as string * @phpstan-param T $str * @phpstan-param TSub $substring * @phpstan-return (T is non-empty-string ? non-empty-string : (TSub is non-empty-string ? non-empty-string : string)) */ public static function str_surround(string $str, string $substring): string { return $substring . $str . $substring; } /** * Returns a trimmed string with the first letter of each word capitalized. * Also accepts an array, $ignore, allowing you to list words not to be * capitalized. * * @param string $str * @param string[]|null $ignore [optional] <p>An array of words not to capitalize or * null. Default: null</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the * string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, * el, lt, tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: * e.g. ẞ -> ß</p> * @param bool $use_trim_first [optional] <p>true === trim the input string, * first</p> * @param string|null $word_define_chars [optional] <p>An string of chars that will be used as * whitespace separator === words.</p> * * @psalm-pure * * @return string * <p>The titleized string.</p> */ public static function str_titleize( string $str, array $ignore = null, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false, bool $use_trim_first = true, string $word_define_chars = null ): string { if ($str === '') { return ''; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($use_trim_first) { $str = \trim($str); } if ($clean_utf8) { $str = self::clean($str); } $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; if ($word_define_chars) { $word_define_chars = \preg_quote($word_define_chars, '/'); } else { $word_define_chars = ''; } $str = (string) \preg_replace_callback( '/([^\\s' . $word_define_chars . ']+)/u', static function (array $match) use ($try_to_keep_the_string_length, $lang, $ignore, $use_mb_functions, $encoding): string { if ($ignore !== null && \in_array($match[0], $ignore, true)) { return $match[0]; } if ($use_mb_functions) { if ($encoding === 'UTF-8') { return \mb_strtoupper(\mb_substr($match[0], 0, 1)) . \mb_strtolower(\mb_substr($match[0], 1)); } return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); } return self::ucfirst( self::strtolower( $match[0], $encoding, false, $lang, $try_to_keep_the_string_length ), $encoding, false, $lang, $try_to_keep_the_string_length ); }, $str ); return $str; } /** * Convert a string into a obfuscate string. * * EXAMPLE: <code> * * UTF8::str_obfuscate('lars@moelleken.org', 0.5, '*', ['@', '.']); // e.g. "l***@m**lleke*.*r*" * </code> * * @param string $str * @param float $percent * @param string $obfuscateChar * @param string[] $keepChars * * @psalm-pure * * @return string * <p>The obfuscate string.</p> */ public static function str_obfuscate( string $str, float $percent = 0.5, string $obfuscateChar = '*', array $keepChars = [] ): string { $obfuscateCharHelper = "\u{2603}"; $str = \str_replace($obfuscateChar, $obfuscateCharHelper, $str); $chars = self::chars($str); $charsMax = \count($chars); $charsMaxChange = \round($charsMax * $percent); $charsCounter = 0; $charKeyDone = []; while ($charsCounter < $charsMaxChange) { foreach ($chars as $charKey => $char) { if (isset($charKeyDone[$charKey])) { continue; } if (\random_int(0, 100) > 50) { continue; } if ($char === $obfuscateChar) { continue; } ++$charsCounter; $charKeyDone[$charKey] = true; if ($charsCounter > $charsMaxChange) { break; } if (\in_array($char, $keepChars, true)) { continue; } $chars[$charKey] = $obfuscateChar; } } $str = \implode('', $chars); return \str_replace($obfuscateCharHelper, $obfuscateChar, $str); } /** * Returns a trimmed string in proper title case. * * Also accepts an array, $ignore, allowing you to list words not to be * capitalized. * * Adapted from John Gruber's script. * * @see https://gist.github.com/gruber/9f9e8650d68b13ce4d78 * * @param string $str * @param string[] $ignore <p>An array of words not to capitalize.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The titleized string.</p> */ public static function str_titleize_for_humans( string $str, array $ignore = [], string $encoding = 'UTF-8' ): string { if ($str === '') { return ''; } $small_words = [ '(?<!q&)a', 'an', 'and', 'as', 'at(?!&t)', 'but', 'by', 'en', 'for', 'if', 'in', 'of', 'on', 'or', 'the', 'to', 'v[.]?', 'via', 'vs[.]?', ]; if ($ignore !== []) { $small_words = \array_merge($small_words, $ignore); } $small_words_rx = \implode('|', $small_words); $apostrophe_rx = '(?x: [\'’] [[:lower:]]* )?'; $str = \trim($str); if (!self::has_lowercase($str)) { $str = self::strtolower($str, $encoding); } // the main substitutions $str = (string) \preg_replace_callback( '~\\b (_*) (?: # 1. Leading underscore and ( (?<=[ ][/\\\\]) [[:alpha:]]+ [-_[:alpha:]/\\\\]+ | # 2. file path or [-_[:alpha:]]+ [@.:] [-_[:alpha:]@.:/]+ ' . $apostrophe_rx . ' ) # URL, domain, or email | # ( (?i: ' . $small_words_rx . ' ) ' . $apostrophe_rx . ' ) # 3. or small word (case-insensitive) | # ( [[:alpha:]] [[:lower:]\'’()\[\]{}]* ' . $apostrophe_rx . ' ) # 4. or word w/o internal caps | # ( [[:alpha:]] [[:alpha:]\'’()\[\]{}]* ' . $apostrophe_rx . ' ) # 5. or some other word ) (_*) \\b # 6. With trailing underscore ~ux', /** * @param string[] $matches * * @psalm-pure * * @return string */ static function (array $matches) use ($encoding): string { // preserve leading underscore $str = $matches[1]; if ($matches[2]) { // preserve URLs, domains, emails and file paths $str .= $matches[2]; } elseif ($matches[3]) { // lower-case small words $str .= self::strtolower($matches[3], $encoding); } elseif ($matches[4]) { // capitalize word w/o internal caps $str .= static::ucfirst($matches[4], $encoding); } else { // preserve other kinds of word (iPhone) $str .= $matches[5]; } // preserve trailing underscore $str .= $matches[6]; return $str; }, $str ); // Exceptions for small words: capitalize at start of title... $str = (string) \preg_replace_callback( '~( \\A [[:punct:]]* # start of title... | [:.;?!][ ]+ # or of subsentence... | [ ][\'"“‘(\[][ ]* ) # or of inserted subphrase... ( ' . $small_words_rx . ' ) \\b # ...followed by small word ~uxi', /** * @param string[] $matches * * @psalm-pure * * @return string */ static function (array $matches) use ($encoding): string { return $matches[1] . static::ucfirst($matches[2], $encoding); }, $str ); // ...and end of title $str = (string) \preg_replace_callback( '~\\b ( ' . $small_words_rx . ' ) # small word... (?= [[:punct:]]* \Z # ...at the end of the title... | [\'"’”)\]] [ ] ) # ...or of an inserted subphrase? ~uxi', /** * @param string[] $matches * * @psalm-pure * * @return string */ static function (array $matches) use ($encoding): string { return static::ucfirst($matches[1], $encoding); }, $str ); // Exceptions for small words in hyphenated compound words. // e.g. "in-flight" -> In-Flight $str = (string) \preg_replace_callback( '~\\b (?<! -) # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (in-flight) ( ' . $small_words_rx . ' ) (?= -[[:alpha:]]+) # lookahead for "-someword" ~uxi', /** * @param string[] $matches * * @psalm-pure * * @return string */ static function (array $matches) use ($encoding): string { return static::ucfirst($matches[1], $encoding); }, $str ); // e.g. "Stand-in" -> "Stand-In" (Stand is already capped at this point) $str = (string) \preg_replace_callback( '~\\b (?<!…) # Negative lookbehind for a hyphen; we do not want to match man-in-the-middle but do want (stand-in) ( [[:alpha:]]+- ) # $1 = first word and hyphen, should already be properly capped ( ' . $small_words_rx . ' ) # ...followed by small word (?! - ) # Negative lookahead for another - ~uxi', /** * @param string[] $matches * * @psalm-pure * * @return string */ static function (array $matches) use ($encoding): string { return $matches[1] . static::ucfirst($matches[2], $encoding); }, $str ); return $str; } /** * Get a binary representation of a specific string. * * EXAPLE: <code>UTF8::str_to_binary('😃'); // '11110000100111111001100010000011'</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return false|string * <p>false on error</p> */ public static function str_to_binary(string $str) { $value = \unpack('H*', $str); if ($value === false) { return false; } return \base_convert($value[1], 16, 2); } /** * @param string $str * @param bool $remove_empty_values <p>Remove empty values.</p> * @param int|null $remove_short_values <p>The min. string length or null to disable</p> * * @psalm-pure * * @return string[] */ public static function str_to_lines(string $str, bool $remove_empty_values = false, int $remove_short_values = null): array { if ($str === '') { return $remove_empty_values ? [] : ['']; } if (self::$SUPPORT['mbstring'] === true) { $return = \mb_split("[\r\n]{1,2}", $str); } else { $return = \preg_split("/[\r\n]{1,2}/u", $str); } if ($return === false) { return $remove_empty_values ? [] : ['']; } if ( $remove_short_values === null && !$remove_empty_values ) { return $return; } return self::reduce_string_array( $return, $remove_empty_values, $remove_short_values ); } /** * Convert a string into an array of words. * * EXAMPLE: <code>UTF8::str_to_words('中文空白 oöäü#s', '#') // array('', '中文空白', ' ', 'oöäü#s', '')</code> * * @param string $str * @param string $char_list <p>Additional chars for the definition of "words".</p> * @param bool $remove_empty_values <p>Remove empty values.</p> * @param int|null $remove_short_values <p>The min. string length or null to disable</p> * * @psalm-pure * * @return list<string> * * @phpstan-return ($remove_empty_values is true ? list<string> : non-empty-list<string>) */ public static function str_to_words( string $str, string $char_list = '', bool $remove_empty_values = false, int $remove_short_values = null ): array { if ($str === '') { return $remove_empty_values ? [] : ['']; } $char_list = self::rxClass($char_list, '\pL'); $return = \preg_split("/({$char_list}+(?:[\p{Pd}’']{$char_list}+)*)/u", $str, -1, \PREG_SPLIT_DELIM_CAPTURE); if ($return === false) { return $remove_empty_values ? [] : ['']; } if ( $remove_short_values === null && !$remove_empty_values ) { return $return; } $tmp_return = self::reduce_string_array( $return, $remove_empty_values, $remove_short_values ); foreach ($tmp_return as &$item) { $item = (string) $item; } return $tmp_return; } /** * Truncates the string to a given length. If $substring is provided, and * truncating occurs, the string is further truncated so that the substring * may be appended without exceeding the desired length. * * @param string $str * @param int $length <p>Desired length of the truncated string.</p> * @param string $substring [optional] <p>The substring to append if it can fit. Default: ''</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * * @psalm-pure * * @return string * <p>A string after truncating.</p> */ public static function str_truncate( string $str, int $length, string $substring = '', string $encoding = 'UTF-8' ): string { if ($str === '') { return ''; } if ($encoding === 'UTF-8') { if ($length >= (int) \mb_strlen($str)) { return $str; } if ($substring !== '') { $length -= (int) \mb_strlen($substring); /** @noinspection UnnecessaryCastingInspection */ return (string) \mb_substr($str, 0, $length) . $substring; } return (string) \mb_substr($str, 0, $length); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ($length >= (int) self::strlen($str, $encoding)) { return $str; } if ($substring !== '') { $length -= (int) self::strlen($substring, $encoding); } return ( (string) self::substr( $str, 0, $length, $encoding ) ) . $substring; } /** * Truncates the string to a given length, while ensuring that it does not * split words. If $substring is provided, and truncating occurs, the * string is further truncated so that the substring may be appended without * exceeding the desired length. * * @param string $str * @param int $length <p>Desired length of the truncated string.</p> * @param string $substring [optional] <p>The substring to append if it can fit. * Default: * ''</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * @param bool $ignore_do_not_split_words_for_one_word [optional] <p>Default: false</p> * * @psalm-pure * * @return string * <p>A string after truncating.</p> */ public static function str_truncate_safe( string $str, int $length, string $substring = '', string $encoding = 'UTF-8', bool $ignore_do_not_split_words_for_one_word = false ): string { if ($str === '' || $length <= 0) { return $substring; } if ($encoding === 'UTF-8') { if ($length >= (int) \mb_strlen($str)) { return $str; } // need to further trim the string so we can append the substring $length -= (int) \mb_strlen($substring); if ($length <= 0) { return $substring; } /** @var false|string $truncated - needed for PhpStan (stubs error) */ $truncated = \mb_substr($str, 0, $length); if ($truncated === false) { return ''; } // if the last word was truncated $space_position = \mb_strpos($str, ' ', $length - 1); if ($space_position !== $length) { // find pos of the last occurrence of a space, get up to that $last_position = \mb_strrpos($truncated, ' ', 0); if ( $last_position !== false || ( $space_position !== false && !$ignore_do_not_split_words_for_one_word ) ) { $truncated = (string) \mb_substr($truncated, 0, (int) $last_position); } } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ($length >= (int) self::strlen($str, $encoding)) { return $str; } // need to further trim the string so we can append the substring $length -= (int) self::strlen($substring, $encoding); if ($length <= 0) { return $substring; } $truncated = self::substr($str, 0, $length, $encoding); if ($truncated === false) { return ''; } // if the last word was truncated $space_position = self::strpos($str, ' ', $length - 1, $encoding); if ($space_position !== $length) { // find pos of the last occurrence of a space, get up to that $last_position = self::strrpos($truncated, ' ', 0, $encoding); if ( $last_position !== false || ( $space_position !== false && !$ignore_do_not_split_words_for_one_word ) ) { $truncated = (string) self::substr($truncated, 0, (int) $last_position, $encoding); } } } return $truncated . $substring; } /** * Returns a lowercase and trimmed string separated by underscores. * Underscores are inserted before uppercase characters (with the exception * of the first character of the string), and in place of spaces as well as * dashes. * * @param string $str * * @psalm-pure * * @return string * <p>The underscored string.</p> */ public static function str_underscored(string $str): string { return self::str_delimit($str, '_'); } /** * Returns an UpperCamelCase version of the supplied string. It trims * surrounding spaces, capitalizes letters following digits, spaces, dashes * and underscores, and removes spaces, dashes, underscores. * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Default: 'UTF-8'</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string * <p>A string in UpperCamelCase.</p> */ public static function str_upper_camelize( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { return self::ucfirst(self::str_camelize($str, $encoding), $encoding, $clean_utf8, $lang, $try_to_keep_the_string_length); } /** * Get the number of words in a specific string. * * EXAMPLES: <code> * // format: 0 -> return only word count (int) * // * UTF8::str_word_count('中文空白 öäü abc#c'); // 4 * UTF8::str_word_count('中文空白 öäü abc#c', 0, '#'); // 3 * * // format: 1 -> return words (array) * // * UTF8::str_word_count('中文空白 öäü abc#c', 1); // array('中文空白', 'öäü', 'abc', 'c') * UTF8::str_word_count('中文空白 öäü abc#c', 1, '#'); // array('中文空白', 'öäü', 'abc#c') * * // format: 2 -> return words with offset (array) * // * UTF8::str_word_count('中文空白 öäü ab#c', 2); // array(0 => '中文空白', 5 => 'öäü', 9 => 'abc', 13 => 'c') * UTF8::str_word_count('中文空白 öäü ab#c', 2, '#'); // array(0 => '中文空白', 5 => 'öäü', 9 => 'abc#c') * </code> * * @param string $str <p>The input string.</p> * @param int $format [optional] <p> * <strong>0</strong> => return a number of words (default)<br> * <strong>1</strong> => return an array of words<br> * <strong>2</strong> => return an array of words with word-offset as key * </p> * @param string $char_list [optional] <p>Additional chars that contains to words and do not start a new word.</p> * * @psalm-pure * * @return int|string[] * <p>The number of words in the string.</p> * * @phpstan-param 0|1|2 $format * @phpstan-return ($format is 2 ? array<int, string> : ($format is 1 ? list<string> : 0|positive-int)) */ public static function str_word_count(string $str, int $format = 0, string $char_list = '') { $str_parts = self::str_to_words($str, $char_list); $len = \count($str_parts); if ($format === 1) { $number_of_words = []; for ($i = 1; $i < $len; $i += 2) { $number_of_words[] = $str_parts[$i]; } return $number_of_words; } if ($format === 2) { $number_of_words = []; $offset = (int) self::strlen($str_parts[0]); for ($i = 1; $i < $len; $i += 2) { $number_of_words[$offset] = $str_parts[$i]; $offset += (int) self::strlen($str_parts[$i]) + (int) self::strlen($str_parts[$i + 1]); } return $number_of_words; } $number_of_words = (int) (($len - 1) / 2); /* @phpstan-ignore-next-line | it should be 0|positive-int, maybe nested "phpstan-return" is not working? */ return $number_of_words; } /** * Case-insensitive string comparison. * * INFO: Case-insensitive version of UTF8::strcmp() * * EXAMPLE: <code>UTF8::strcasecmp("iñtërnâtiôn\nàlizætiøn", "Iñtërnâtiôn\nàlizætiøn"); // 0</code> * * @param string $str1 <p>The first string.</p> * @param string $str2 <p>The second string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if str1 is less than str2;<br> * <strong>&gt; 0</strong> if str1 is greater than str2,<br> * <strong>0</strong> if they are equal */ public static function strcasecmp( string $str1, string $str2, string $encoding = 'UTF-8' ): int { return self::strcmp( self::strtocasefold( $str1, true, false, $encoding, null, false ), self::strtocasefold( $str2, true, false, $encoding, null, false ) ); } /** * Case-sensitive string comparison. * * EXAMPLE: <code>UTF8::strcmp("iñtërnâtiôn\nàlizætiøn", "iñtërnâtiôn\nàlizætiøn"); // 0</code> * * @param string $str1 <p>The first string.</p> * @param string $str2 <p>The second string.</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if str1 is less than str2<br> * <strong>&gt; 0</strong> if str1 is greater than str2<br> * <strong>0</strong> if they are equal */ public static function strcmp(string $str1, string $str2): int { if ($str1 === $str2) { return 0; } return \strcmp( \Normalizer::normalize($str1, \Normalizer::NFD), \Normalizer::normalize($str2, \Normalizer::NFD) ); } /** * Find length of initial segment not matching mask. * * @param string $str * @param string $char_list * @param int $offset * @param int|null $length * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * * @phpstan-return 0|positive-int */ public static function strcspn( string $str, string $char_list, int $offset = 0, int $length = null, string $encoding = 'UTF-8' ): int { if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($char_list === '') { return (int) self::strlen($str, $encoding); } if ($offset || $length !== null) { if ($encoding === 'UTF-8') { if ($length === null) { $str_tmp = \mb_substr($str, $offset); } else { $str_tmp = \mb_substr($str, $offset, $length); } } else { $str_tmp = self::substr($str, $offset, $length, $encoding); } if ($str_tmp === false) { return 0; } $str = $str_tmp; } if ($str === '') { return 0; } $matches = []; if (\preg_match('/^(.*?)' . self::rxClass($char_list) . '/us', $str, $matches)) { $return = self::strlen($matches[1], $encoding); if ($return === false) { return 0; } return $return; } return (int) self::strlen($str, $encoding); } /** * Create a UTF-8 string from code points. * * INFO: opposite to UTF8::codepoints() * * EXAMPLE: <code>UTF8::string(array(246, 228, 252)); // 'öäü'</code> * * @param int|int[]|string|string[] $intOrHex <p>Integer or Hexadecimal codepoints.</p> * * @phpstan-param int[]|numeric-string[]|int|numeric-string $intOrHex * * @psalm-pure * * @return string * <p>A UTF-8 encoded string.</p> */ public static function string($intOrHex): string { if ($intOrHex === []) { return ''; } if (!\is_array($intOrHex)) { $intOrHex = [$intOrHex]; } $str = ''; foreach ($intOrHex as $strPart) { $str .= '&#' . (int) $strPart . ';'; } // We cannot use html_entity_decode() here, as it will not return // characters for many values < 160. return mb_convert_encoding($str, 'UTF-8', 'HTML-ENTITIES'); } /** * Checks if string starts with "BOM" (Byte Order Mark Character) character. * * EXAMPLE: <code>UTF8::string_has_bom("\xef\xbb\xbf foobar"); // true</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return bool * <p> * <strong>true</strong> if the string has BOM at the start,<br> * <strong>false</strong> otherwise * </p> */ public static function string_has_bom(string $str): bool { foreach (self::$BOM as $bom_string => &$bom_byte_length) { if (\strncmp($str, $bom_string, $bom_byte_length) === 0) { return true; } } return false; } /** * Strip HTML and PHP tags from a string + clean invalid UTF-8. * * EXAMPLE: <code>UTF8::strip_tags("<span>κόσμε\xa0\xa1</span>"); // 'κόσμε'</code> * * @see http://php.net/manual/en/function.strip-tags.php * * @param string $str <p> * The input string. * </p> * @param string|null $allowable_tags [optional] <p> * You can use the optional second parameter to specify tags which should * not be stripped. * </p> * <p> * HTML comments and PHP tags are also stripped. This is hardcoded and * can not be changed with allowable_tags. * </p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return string * <p>The stripped string.</p> */ public static function strip_tags( string $str, string $allowable_tags = null, bool $clean_utf8 = false ): string { if ($str === '') { return ''; } if ($clean_utf8) { $str = self::clean($str); } if ($allowable_tags === null) { return \strip_tags($str); } return \strip_tags($str, $allowable_tags); } /** * Strip all whitespace characters. This includes tabs and newline * characters, as well as multibyte whitespace such as the thin space * and ideographic space. * * EXAMPLE: <code>UTF8::strip_whitespace(' Ο συγγραφέας '); // 'Οσυγγραφέας'</code> * * @param string $str * * @psalm-pure * * @return string */ public static function strip_whitespace(string $str): string { if ($str === '') { return ''; } return (string) \preg_replace('/[[:space:]]+/u', '', $str); } /** * Find the position of the first occurrence of a substring in a string, case-insensitive. * * INFO: use UTF8::stripos_in_byte() for the byte-length * * EXAMPLE: <code>UTF8::stripos('aσσb', 'ΣΣ'); // 1</code> (σσ == ΣΣ) * * @see http://php.net/manual/en/function.mb-stripos.php * * @param string $haystack <p>The string from which to get the position of the first occurrence of needle.</p> * @param string $needle <p>The string to find in haystack.</p> * @param int $offset [optional] <p>The position in haystack to start searching.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|int * Return the <strong>(int)</strong> numeric position of the first occurrence of needle in the * haystack string,<br> or <strong>false</strong> if needle is not found * * @phpstan-return false|0|positive-int */ public static function stripos( string $haystack, string $needle, int $offset = 0, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '') { if (\PHP_VERSION_ID >= 80000 && $needle === '') { return 0; } return false; } if ($needle === '' && \PHP_VERSION_ID < 80000) { return false; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $haystack = self::clean($haystack); $needle = self::clean($needle); } if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_stripos($haystack, $needle, $offset); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return \mb_stripos($haystack, $needle, $offset, $encoding); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ( $encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings && $offset >= 0 // grapheme_stripos() can't handle negative offset && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_stripos($haystack, $needle, $offset); if ($return_tmp !== false) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($haystack . $needle)) { return \stripos($haystack, $needle, $offset); } // // fallback via vanilla php // $haystack = self::strtocasefold($haystack, true, false, $encoding, null, false); $needle = self::strtocasefold($needle, true, false, $encoding, null, false); return self::strpos($haystack, $needle, $offset, $encoding); } /** * Returns all of haystack starting from and including the first occurrence of needle to the end. * * EXAMPLE: <code> * $str = 'iñtërnâtiônàlizætiøn'; * $search = 'NÂT'; * * UTF8::stristr($str, $search)); // 'nâtiônàlizætiøn' * UTF8::stristr($str, $search, true)); // 'iñtër' * </code> * * @param string $haystack <p>The input string. Must be valid UTF-8.</p> * @param string $needle <p>The string to look for. Must be valid UTF-8.</p> * @param bool $before_needle [optional] <p> * If <b>TRUE</b>, it returns the part of the * haystack before the first occurrence of the needle (excluding the needle). * </p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|string * <p>A sub-string,<br>or <strong>false</strong> if needle is not found.</p> */ public static function stristr( string $haystack, string $needle, bool $before_needle = false, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '') { if (\PHP_VERSION_ID >= 80000 && $needle === '') { return ''; } return false; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $needle = self::clean($needle); $haystack = self::clean($haystack); } if ($needle === '') { if (\PHP_VERSION_ID >= 80000) { return $haystack; } return false; } if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_stristr($haystack, $needle, $before_needle); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return \mb_stristr($haystack, $needle, $before_needle, $encoding); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::stristr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } if ( $encoding === 'UTF-8' // INFO: "grapheme_stristr()" can't handle other encodings && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_stristr($haystack, $needle, $before_needle); if ($return_tmp !== false) { return $return_tmp; } } if (ASCII::is_ascii($needle . $haystack)) { return \stristr($haystack, $needle, $before_needle); } \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/usi', $haystack, $match); if (!isset($match[1])) { return false; } if ($before_needle) { return $match[1]; } return self::substr($haystack, (int) self::strlen($match[1], $encoding), null, $encoding); } /** * Get the string length, not the byte-length! * * INFO: use UTF8::strwidth() for the char-length * * EXAMPLE: <code>UTF8::strlen("Iñtërnâtiôn\xE9àlizætiøn")); // 20</code> * * @see http://php.net/manual/en/function.mb-strlen.php * * @param string $str <p>The string being checked for length.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|int * <p> * The number <strong>(int)</strong> of characters in the string $str having character encoding * $encoding. * (One multi-byte character counted as +1). * <br> * Can return <strong>false</strong>, if e.g. mbstring is not installed and we process invalid * chars. * </p> * * @phpstan-return false|0|positive-int */ public static function strlen( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($str === '') { return 0; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($clean_utf8) { // "mb_strlen" and "\iconv_strlen" returns wrong length, // if invalid characters are found in $str $str = self::clean($str); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { /** @noinspection PhpUsageOfSilenceOperatorInspection - ignore warnings, it's working anyway */ return @\mb_strlen($str); } /** @noinspection PhpUsageOfSilenceOperatorInspection - ignore warnings, it's working anyway */ return @\mb_strlen($str, $encoding); } // // fallback for binary || ascii only // if ( $encoding === 'CP850' || $encoding === 'ASCII' ) { return \strlen($str); } if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false && self::$SUPPORT['iconv'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via iconv // if (self::$SUPPORT['iconv'] === true) { $return_tmp = \iconv_strlen($str, $encoding); if ($return_tmp !== false) { return $return_tmp; } } // // fallback via intl // if ( $encoding === 'UTF-8' // INFO: "grapheme_strlen()" can't handle other encodings && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_strlen($str); /* @phpstan-ignore-next-line | "grapheme_strlen" will maybe return "null" for empty-strings and "false" on error */ if ($return_tmp !== false && $return_tmp !== null) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($str)) { return \strlen($str); } // // fallback via vanilla php // \preg_match_all('/./us', $str, $parts); $return_tmp = \count($parts[0]); if ($return_tmp === 0) { return false; } return $return_tmp; } /** * Get string length in byte. * * @param string $str * * @psalm-pure * * @return int * * @phpstan-return 0|positive-int */ public static function strlen_in_byte(string $str): int { if ($str === '') { return 0; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_strlen($str, 'CP850'); // 8-BIT } return \strlen($str); } /** * Case-insensitive string comparisons using a "natural order" algorithm. * * INFO: natural order version of UTF8::strcasecmp() * * EXAMPLES: <code> * UTF8::strnatcasecmp('2', '10Hello WORLD 中文空白!'); // -1 * UTF8::strcasecmp('2Hello world 中文空白!', '10Hello WORLD 中文空白!'); // 1 * * UTF8::strnatcasecmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // 1 * UTF8::strcasecmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // -1 * </code> * * @param string $str1 <p>The first string.</p> * @param string $str2 <p>The second string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if str1 is less than str2<br> * <strong>&gt; 0</strong> if str1 is greater than str2<br> * <strong>0</strong> if they are equal */ public static function strnatcasecmp(string $str1, string $str2, string $encoding = 'UTF-8'): int { return self::strnatcmp( self::strtocasefold($str1, true, false, $encoding, null, false), self::strtocasefold($str2, true, false, $encoding, null, false) ); } /** * String comparisons using a "natural order" algorithm * * INFO: natural order version of UTF8::strcmp() * * EXAMPLES: <code> * UTF8::strnatcmp('2Hello world 中文空白!', '10Hello WORLD 中文空白!'); // -1 * UTF8::strcmp('2Hello world 中文空白!', '10Hello WORLD 中文空白!'); // 1 * * UTF8::strnatcmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // 1 * UTF8::strcmp('10Hello world 中文空白!', '2Hello WORLD 中文空白!'); // -1 * </code> * * @see http://php.net/manual/en/function.strnatcmp.php * * @param string $str1 <p>The first string.</p> * @param string $str2 <p>The second string.</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if str1 is less than str2;<br> * <strong>&gt; 0</strong> if str1 is greater than str2;<br> * <strong>0</strong> if they are equal */ public static function strnatcmp(string $str1, string $str2): int { if ($str1 === $str2) { return 0; } return \strnatcmp( (string) self::strtonatfold($str1), (string) self::strtonatfold($str2) ); } /** * Case-insensitive string comparison of the first n characters. * * EXAMPLE: <code> * UTF8::strcasecmp("iñtërnâtiôn\nàlizætiøn321", "iñtërnâtiôn\nàlizætiøn123", 5); // 0 * </code> * * @see http://php.net/manual/en/function.strncasecmp.php * * @param string $str1 <p>The first string.</p> * @param string $str2 <p>The second string.</p> * @param int $len <p>The length of strings to be used in the comparison.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if <i>str1</i> is less than <i>str2</i>;<br> * <strong>&gt; 0</strong> if <i>str1</i> is greater than <i>str2</i>;<br> * <strong>0</strong> if they are equal */ public static function strncasecmp( string $str1, string $str2, int $len, string $encoding = 'UTF-8' ): int { return self::strncmp( self::strtocasefold($str1, true, false, $encoding, null, false), self::strtocasefold($str2, true, false, $encoding, null, false), $len ); } /** * String comparison of the first n characters. * * EXAMPLE: <code> * UTF8::strncmp("Iñtërnâtiôn\nàlizætiøn321", "Iñtërnâtiôn\nàlizætiøn123", 5); // 0 * </code> * * @see http://php.net/manual/en/function.strncmp.php * * @param string $str1 <p>The first string.</p> * @param string $str2 <p>The second string.</p> * @param int $len <p>Number of characters to use in the comparison.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if <i>str1</i> is less than <i>str2</i>;<br> * <strong>&gt; 0</strong> if <i>str1</i> is greater than <i>str2</i>;<br> * <strong>0</strong> if they are equal */ public static function strncmp( string $str1, string $str2, int $len, string $encoding = 'UTF-8' ): int { if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($encoding === 'UTF-8') { $str1 = (string) \mb_substr($str1, 0, $len); $str2 = (string) \mb_substr($str2, 0, $len); } else { $str1 = (string) self::substr($str1, 0, $len, $encoding); $str2 = (string) self::substr($str2, 0, $len, $encoding); } return self::strcmp($str1, $str2); } /** * Search a string for any of a set of characters. * * EXAMPLE: <code>UTF8::strpbrk('-中文空白-', '白'); // '白-'</code> * * @see http://php.net/manual/en/function.strpbrk.php * * @param string $haystack <p>The string where char_list is looked for.</p> * @param string $char_list <p>This parameter is case-sensitive.</p> * * @psalm-pure * * @return false|string * <p>The string starting from the character found, or false if it is not found.</p> */ public static function strpbrk(string $haystack, string $char_list) { if ($haystack === '' || $char_list === '') { return false; } if (\preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) { return \substr($haystack, (int) \strpos($haystack, $m[0])); } return false; } /** * Find the position of the first occurrence of a substring in a string. * * INFO: use UTF8::strpos_in_byte() for the byte-length * * EXAMPLE: <code>UTF8::strpos('ABC-ÖÄÜ-中文空白-中文空白', '中'); // 8</code> * * @see http://php.net/manual/en/function.mb-strpos.php * * @param string $haystack <p>The string from which to get the position of the first occurrence of needle.</p> * @param int|string $needle <p>The string to find in haystack.<br>Or a code point as int.</p> * @param int $offset [optional] <p>The search offset. If it is not specified, 0 is used.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|int * The <strong>(int)</strong> numeric position of the first occurrence of needle in the haystack * string.<br> If needle is not found it returns false. * * @phpstan-return false|0|positive-int */ public static function strpos( string $haystack, $needle, int $offset = 0, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '') { if (\PHP_VERSION_ID >= 80000) { if ($needle === '') { return 0; } } else { return false; } } // iconv and mbstring do not support integer $needle if ((int) $needle === $needle) { $needle = (string) self::chr($needle); } $needle = (string) $needle; if ($haystack === '') { if (\PHP_VERSION_ID >= 80000 && $needle === '') { return 0; } return false; } if ($needle === '' && \PHP_VERSION_ID < 80000) { return false; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $needle = self::clean($needle); $haystack = self::clean($haystack); } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { /** @noinspection PhpUsageOfSilenceOperatorInspection - Offset not contained in string */ return @\mb_strpos($haystack, $needle, $offset); } /** @noinspection PhpUsageOfSilenceOperatorInspection - Offset not contained in string */ return @\mb_strpos($haystack, $needle, $offset, $encoding); } // // fallback for binary || ascii only // if ( $encoding === 'CP850' || $encoding === 'ASCII' ) { return \strpos($haystack, $needle, $offset); } if ( $encoding !== 'UTF-8' && self::$SUPPORT['iconv'] === false && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via intl // if ( $encoding === 'UTF-8' // INFO: "grapheme_strpos()" can't handle other encodings && $offset >= 0 // grapheme_strpos() can't handle negative offset && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_strpos($haystack, $needle, $offset); if ($return_tmp !== false) { return $return_tmp; } } // // fallback via iconv // if ( $offset >= 0 // iconv_strpos() can't handle negative offset && self::$SUPPORT['iconv'] === true ) { // ignore invalid negative offset to keep compatibility // with php < 5.5.35, < 5.6.21, < 7.0.6 $return_tmp = \iconv_strpos($haystack, $needle, $offset > 0 ? $offset : 0, $encoding); if ($return_tmp !== false) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($haystack . $needle)) { /** @noinspection PhpUsageOfSilenceOperatorInspection - Offset not contained in string */ return @\strpos($haystack, $needle, $offset); } // // fallback via vanilla php // $haystack_tmp = self::substr($haystack, $offset, null, $encoding); if ($haystack_tmp === false) { $haystack_tmp = ''; } $haystack = (string) $haystack_tmp; if ($offset < 0) { $offset = 0; } $pos = \strpos($haystack, $needle); if ($pos === false) { return false; } if ($pos) { return $offset + (int) self::strlen(\substr($haystack, 0, $pos), $encoding); } return $offset + 0; } /** * Find the position of the first occurrence of a substring in a string. * * @param string $haystack <p> * The string being checked. * </p> * @param string $needle <p> * The position counted from the beginning of haystack. * </p> * @param int $offset [optional] <p> * The search offset. If it is not specified, 0 is used. * </p> * * @psalm-pure * * @return false|int * <p>The numeric position of the first occurrence of needle in the * haystack string. If needle is not found, it returns false.</p> * * @phpstan-return false|0|positive-int */ public static function strpos_in_byte(string $haystack, string $needle, int $offset = 0) { if ($haystack === '' || $needle === '') { return false; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_strpos($haystack, $needle, $offset, 'CP850'); // 8-BIT } return \strpos($haystack, $needle, $offset); } /** * Find the position of the first occurrence of a substring in a string, case-insensitive. * * @param string $haystack <p> * The string being checked. * </p> * @param string $needle <p> * The position counted from the beginning of haystack. * </p> * @param int $offset [optional] <p> * The search offset. If it is not specified, 0 is used. * </p> * * @psalm-pure * * @return false|int * <p>The numeric position of the first occurrence of needle in the * haystack string. If needle is not found, it returns false.</p> * * @phpstan-return false|0|positive-int */ public static function stripos_in_byte(string $haystack, string $needle, int $offset = 0) { if ($haystack === '' || $needle === '') { return false; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_stripos($haystack, $needle, $offset, 'CP850'); // 8-BIT } return \stripos($haystack, $needle, $offset); } /** * Find the last occurrence of a character in a string within another. * * EXAMPLE: <code>UTF8::strrchr('κόσμεκόσμε-äöü', 'κόσμε'); // 'κόσμε-äöü'</code> * * @see http://php.net/manual/en/function.mb-strrchr.php * * @param string $haystack <p>The string from which to get the last occurrence of needle.</p> * @param string $needle <p>The string to find in haystack</p> * @param bool $before_needle [optional] <p> * Determines which portion of haystack * this function returns. * If set to true, it returns all of haystack * from the beginning to the last occurrence of needle. * If set to false, it returns all of haystack * from the last occurrence of needle to the end, * </p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|string * <p>The portion of haystack or false if needle is not found.</p> */ public static function strrchr( string $haystack, string $needle, bool $before_needle = false, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '' || $needle === '') { return false; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $needle = self::clean($needle); $haystack = self::clean($haystack); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_strrchr($haystack, $needle, $before_needle); } return \mb_strrchr($haystack, $needle, $before_needle, $encoding); } // // fallback for binary || ascii only // if ( !$before_needle && ( $encoding === 'CP850' || $encoding === 'ASCII' ) ) { return \strrchr($haystack, $needle); } if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strrchr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via iconv // if (self::$SUPPORT['iconv'] === true) { $needle_tmp = self::substr($needle, 0, 1, $encoding); if ($needle_tmp === false) { return false; } $needle = $needle_tmp; $pos = \iconv_strrpos($haystack, $needle, $encoding); if ($pos === false) { return false; } if ($before_needle) { return self::substr($haystack, 0, $pos, $encoding); } return self::substr($haystack, $pos, null, $encoding); } // // fallback via vanilla php // $needle_tmp = self::substr($needle, 0, 1, $encoding); if ($needle_tmp === false) { return false; } $needle = $needle_tmp; $pos = self::strrpos($haystack, $needle, 0, $encoding); if ($pos === false) { return false; } if ($before_needle) { return self::substr($haystack, 0, $pos, $encoding); } return self::substr($haystack, $pos, null, $encoding); } /** * Reverses characters order in the string. * * EXAMPLE: <code>UTF8::strrev('κ-öäü'); // 'üäö-κ'</code> * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>The string with characters in the reverse sequence.</p> */ public static function strrev(string $str, string $encoding = 'UTF-8'): string { if ($str === '') { return ''; } // init $reversed = ''; $str = self::emoji_encode($str, true); if ($encoding === 'UTF-8') { if (self::$SUPPORT['intl'] === true) { // try "grapheme" first: https://stackoverflow.com/questions/17496493/strrev-dosent-support-utf-8 $i = (int) \grapheme_strlen($str); while ($i--) { $reversed_tmp = \grapheme_substr($str, $i, 1); if ($reversed_tmp !== false) { $reversed .= $reversed_tmp; } } } else { $i = (int) \mb_strlen($str); while ($i--) { $reversed_tmp = \mb_substr($str, $i, 1); if ($reversed_tmp !== false) { /* @phpstan-ignore-line | old polyfill will return false, or? */ $reversed .= $reversed_tmp; } } } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $i = (int) self::strlen($str, $encoding); while ($i--) { $reversed_tmp = self::substr($str, $i, 1, $encoding); if ($reversed_tmp !== false) { $reversed .= $reversed_tmp; } } } return self::emoji_decode($reversed, true); } /** * Find the last occurrence of a character in a string within another, case-insensitive. * * EXAMPLE: <code>UTF8::strrichr('Aκόσμεκόσμε-äöü', 'aκόσμε'); // 'Aκόσμεκόσμε-äöü'</code> * * @see http://php.net/manual/en/function.mb-strrichr.php * * @param string $haystack <p>The string from which to get the last occurrence of needle.</p> * @param string $needle <p>The string to find in haystack.</p> * @param bool $before_needle [optional] <p> * Determines which portion of haystack * this function returns. * If set to true, it returns all of haystack * from the beginning to the last occurrence of needle. * If set to false, it returns all of haystack * from the last occurrence of needle to the end, * </p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|string * <p>The portion of haystack or<br>false if needle is not found.</p> */ public static function strrichr( string $haystack, string $needle, bool $before_needle = false, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '' || $needle === '') { return false; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $needle = self::clean($needle); $haystack = self::clean($haystack); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_strrichr($haystack, $needle, $before_needle); } return \mb_strrichr($haystack, $needle, $before_needle, $encoding); } // // fallback via vanilla php // $needle_tmp = self::substr($needle, 0, 1, $encoding); if ($needle_tmp === false) { return false; } $needle = $needle_tmp; $pos = self::strripos($haystack, $needle, 0, $encoding); if ($pos === false) { return false; } if ($before_needle) { return self::substr($haystack, 0, $pos, $encoding); } return self::substr($haystack, $pos, null, $encoding); } /** * Find the position of the last occurrence of a substring in a string, case-insensitive. * * EXAMPLE: <code>UTF8::strripos('ABC-ÖÄÜ-中文空白-中文空白', '中'); // 13</code> * * @param string $haystack <p>The string to look in.</p> * @param int|string $needle <p>The string to look for.</p> * @param int $offset [optional] <p>Number of characters to ignore in the beginning or end.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|int * <p>The <strong>(int)</strong> numeric position of the last occurrence of needle in the haystack * string.<br>If needle is not found, it returns false.</p> */ public static function strripos( string $haystack, $needle, int $offset = 0, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '') { if (\PHP_VERSION_ID >= 80000) { if ($needle === '') { return 0; } } else { return false; } } // iconv and mbstring do not support integer $needle if ((int) $needle === $needle && $needle >= 0) { $needle = (string) self::chr($needle); } $needle = (string) $needle; if ($haystack === '') { if (\PHP_VERSION_ID >= 80000 && $needle === '') { return 0; } return false; } if ($needle === '' && \PHP_VERSION_ID < 80000) { return false; } if ($clean_utf8) { // mb_strripos() && iconv_strripos() is not tolerant to invalid characters $needle = self::clean($needle); $haystack = self::clean($haystack); } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // // fallback via mbstrig // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_strripos($haystack, $needle, $offset); } return \mb_strripos($haystack, $needle, $offset, $encoding); } // // fallback for binary || ascii only // if ( $encoding === 'CP850' || $encoding === 'ASCII' ) { return \strripos($haystack, $needle, $offset); } if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strripos() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via intl // if ( $encoding === 'UTF-8' // INFO: "grapheme_strripos()" can't handle other encodings && $offset >= 0 // grapheme_strripos() can't handle negative offset && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_strripos($haystack, $needle, $offset); if ($return_tmp !== false) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($haystack . $needle)) { return \strripos($haystack, $needle, $offset); } // // fallback via vanilla php // $haystack = self::strtocasefold($haystack, true, false, $encoding); $needle = self::strtocasefold($needle, true, false, $encoding); return self::strrpos($haystack, $needle, $offset, $encoding, $clean_utf8); } /** * Finds position of last occurrence of a string within another, case-insensitive. * * @param string $haystack <p> * The string from which to get the position of the last occurrence * of needle. * </p> * @param string $needle <p> * The string to find in haystack. * </p> * @param int $offset [optional] <p> * The position in haystack * to start searching. * </p> * * @psalm-pure * * @return false|int * <p>eturn the numeric position of the last occurrence of needle in the * haystack string, or false if needle is not found.</p> */ public static function strripos_in_byte(string $haystack, string $needle, int $offset = 0) { if ($haystack === '' || $needle === '') { return false; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_strripos($haystack, $needle, $offset, 'CP850'); // 8-BIT } return \strripos($haystack, $needle, $offset); } /** * Find the position of the last occurrence of a substring in a string. * * EXAMPLE: <code>UTF8::strrpos('ABC-ÖÄÜ-中文空白-中文空白', '中'); // 13</code> * * @see http://php.net/manual/en/function.mb-strrpos.php * * @param string $haystack <p>The string being checked, for the last occurrence of needle</p> * @param int|string $needle <p>The string to find in haystack.<br>Or a code point as int.</p> * @param int $offset [optional] <p>May be specified to begin searching an arbitrary number of characters * into the string. Negative values will stop searching at an arbitrary point prior to * the end of the string. * </p> * @param string $encoding [optional] <p>Set the charset.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|int * <p>The <strong>(int)</strong> numeric position of the last occurrence of needle in the haystack * string.<br>If needle is not found, it returns false.</p> */ public static function strrpos( string $haystack, $needle, int $offset = 0, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '') { if (\PHP_VERSION_ID >= 80000) { if ($needle === '') { return 0; } } else { return false; } } // iconv and mbstring do not support integer $needle if ((int) $needle === $needle && $needle >= 0) { $needle = (string) self::chr($needle); } $needle = (string) $needle; if ($haystack === '') { if (\PHP_VERSION_ID >= 80000 && $needle === '') { return 0; } return false; } if ($needle === '' && \PHP_VERSION_ID < 80000) { return false; } if ($clean_utf8) { // mb_strrpos && iconv_strrpos is not tolerant to invalid characters $needle = self::clean($needle); $haystack = self::clean($haystack); } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_strrpos($haystack, $needle, $offset); } return \mb_strrpos($haystack, $needle, $offset, $encoding); } // // fallback for binary || ascii only // if ( $encoding === 'CP850' || $encoding === 'ASCII' ) { return \strrpos($haystack, $needle, $offset); } if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strrpos() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via intl // if ( $offset >= 0 // grapheme_strrpos() can't handle negative offset && $encoding === 'UTF-8' // INFO: "grapheme_strrpos()" can't handle other encodings && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_strrpos($haystack, $needle, $offset); if ($return_tmp !== false) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($haystack . $needle)) { return \strrpos($haystack, $needle, $offset); } // // fallback via vanilla php // $haystack_tmp = null; if ($offset > 0) { $haystack_tmp = self::substr($haystack, $offset); } elseif ($offset < 0) { $haystack_tmp = self::substr($haystack, 0, $offset); $offset = 0; } if ($haystack_tmp !== null) { if ($haystack_tmp === false) { $haystack_tmp = ''; } $haystack = (string) $haystack_tmp; } $pos = \strrpos($haystack, $needle); if ($pos === false) { return false; } /** @var false|string $str_tmp - needed for PhpStan (stubs error) */ $str_tmp = \substr($haystack, 0, $pos); if ($str_tmp === false) { return false; } return $offset + (int) self::strlen($str_tmp); } /** * Find the position of the last occurrence of a substring in a string. * * @param string $haystack <p> * The string being checked, for the last occurrence * of needle. * </p> * @param string $needle <p> * The string to find in haystack. * </p> * @param int $offset [optional] <p>May be specified to begin searching an arbitrary number of characters into * the string. Negative values will stop searching at an arbitrary point * prior to the end of the string. * </p> * * @psalm-pure * * @return false|int * <p>The numeric position of the last occurrence of needle in the * haystack string. If needle is not found, it returns false.</p> */ public static function strrpos_in_byte(string $haystack, string $needle, int $offset = 0) { if ($haystack === '' || $needle === '') { return false; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_strrpos($haystack, $needle, $offset, 'CP850'); // 8-BIT } return \strrpos($haystack, $needle, $offset); } /** * Finds the length of the initial segment of a string consisting entirely of characters contained within a given * mask. * * EXAMPLE: <code>UTF8::strspn('iñtërnâtiônàlizætiøn', 'itñ'); // '3'</code> * * @param string $str <p>The input string.</p> * @param string $mask <p>The mask of chars</p> * @param int $offset [optional] * @param int|null $length [optional] * @param string $encoding [optional] <p>Set the charset.</p> * * @psalm-pure * * @return false|int */ public static function strspn( string $str, string $mask, int $offset = 0, int $length = null, string $encoding = 'UTF-8' ) { if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($offset || $length !== null) { if ($encoding === 'UTF-8') { if ($length === null) { $str = (string) \mb_substr($str, $offset); } else { $str = (string) \mb_substr($str, $offset, $length); } } else { $str = (string) self::substr($str, $offset, $length, $encoding); } } if ($str === '' || $mask === '') { return 0; } $matches = []; return \preg_match('/^' . self::rxClass($mask) . '+/u', $str, $matches) ? (int) self::strlen($matches[0], $encoding) : 0; } /** * Returns part of haystack string from the first occurrence of needle to the end of haystack. * * EXAMPLE: <code> * $str = 'iñtërnâtiônàlizætiøn'; * $search = 'nât'; * * UTF8::strstr($str, $search)); // 'nâtiônàlizætiøn' * UTF8::strstr($str, $search, true)); // 'iñtër' * </code> * * @param string $haystack <p>The input string. Must be valid UTF-8.</p> * @param string $needle <p>The string to look for. Must be valid UTF-8.</p> * @param bool $before_needle [optional] <p> * If <b>TRUE</b>, strstr() returns the part of the * haystack before the first occurrence of the needle (excluding the needle). * </p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|string * <p>A sub-string,<br>or <strong>false</strong> if needle is not found.</p> */ public static function strstr( string $haystack, string $needle, bool $before_needle = false, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($haystack === '') { if (\PHP_VERSION_ID >= 80000 && $needle === '') { return ''; } return false; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $needle = self::clean($needle); $haystack = self::clean($haystack); } if ($needle === '') { if (\PHP_VERSION_ID >= 80000) { return $haystack; } return false; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_strstr($haystack, $needle, $before_needle); } return \mb_strstr($haystack, $needle, $before_needle, $encoding); } // // fallback for binary || ascii only // if ( $encoding === 'CP850' || $encoding === 'ASCII' ) { return \strstr($haystack, $needle, $before_needle); } if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strstr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via intl // if ( $encoding === 'UTF-8' // INFO: "grapheme_strstr()" can't handle other encodings && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_strstr($haystack, $needle, $before_needle); if ($return_tmp !== false) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($haystack . $needle)) { return \strstr($haystack, $needle, $before_needle); } // // fallback via vanilla php // \preg_match('/^(.*?)' . \preg_quote($needle, '/') . '/us', $haystack, $match); if (!isset($match[1])) { return false; } if ($before_needle) { return $match[1]; } return self::substr($haystack, (int) self::strlen($match[1])); } /** * Finds first occurrence of a string within another. * * @param string $haystack <p> * The string from which to get the first occurrence * of needle. * </p> * @param string $needle <p> * The string to find in haystack. * </p> * @param bool $before_needle [optional] <p> * Determines which portion of haystack * this function returns. * If set to true, it returns all of haystack * from the beginning to the first occurrence of needle. * If set to false, it returns all of haystack * from the first occurrence of needle to the end, * </p> * * @psalm-pure * * @return false|string * <p>The portion of haystack, * or false if needle is not found.</p> */ public static function strstr_in_byte( string $haystack, string $needle, bool $before_needle = false ) { if ($haystack === '' || $needle === '') { return false; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_strstr($haystack, $needle, $before_needle, 'CP850'); // 8-BIT } return \strstr($haystack, $needle, $before_needle); } /** * Unicode transformation for case-less matching. * * EXAMPLE: <code>UTF8::strtocasefold('ǰ◌̱'); // 'ǰ◌̱'</code> * * @see http://unicode.org/reports/tr21/tr21-5.html * * @param string $str <p>The input string.</p> * @param bool $full [optional] <p> * <b>true</b>, replace full case folding chars (default)<br> * <b>false</b>, use only limited static array [UTF8::$COMMON_CASE_FOLD] * </p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string $encoding [optional] <p>Set the charset.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, tr</p> * @param bool $lower [optional] <p>Use lowercase string, otherwise use uppercase string. PS: uppercase * is for some languages better ...</p> * * @psalm-pure * * @return string */ public static function strtocasefold( string $str, bool $full = true, bool $clean_utf8 = false, string $encoding = 'UTF-8', string $lang = null, bool $lower = true ): string { if ($str === '') { return ''; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } $str = self::fixStrCaseHelper($str, $lower, $full); if ($lang === null && $encoding === 'UTF-8') { if ($lower) { return \mb_strtolower($str); } return \mb_strtoupper($str); } if ($lower) { return self::strtolower($str, $encoding, false, $lang); } return self::strtoupper($str, $encoding, false, $lang); } /** * Make a string lowercase. * * EXAMPLE: <code>UTF8::strtolower('DÉJÀ Σσς Iıİi'); // 'déjà σσς iıii'</code> * * @see http://php.net/manual/en/function.mb-strtolower.php * * @param string $str <p>The string being lowercased.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string * <p>String with all alphabetic characters converted to lowercase.</p> */ public static function strtolower( $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { // init $str = (string) $str; if ($str === '') { return ''; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } // hack for old php version or for the polyfill ... if ($try_to_keep_the_string_length) { $str = self::fixStrCaseHelper($str, true); } if ($lang === null && $encoding === 'UTF-8') { return \mb_strtolower($str); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ($lang !== null) { if (self::$SUPPORT['intl'] === true) { if (self::$INTL_TRANSLITERATOR_LIST === null) { self::$INTL_TRANSLITERATOR_LIST = self::getData('transliterator_list'); } $language_code = $lang . '-Lower'; if (!\in_array($language_code, self::$INTL_TRANSLITERATOR_LIST, true)) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strtolower() cannot handle special language: ' . $lang . ' | supported: ' . \print_r(self::$INTL_TRANSLITERATOR_LIST, true), \E_USER_WARNING); $language_code = 'Any-Lower'; } return (string) \transliterator_transliterate($language_code, $str); } /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strtolower() without intl cannot handle the "lang" parameter: ' . $lang, \E_USER_WARNING); } // always fallback via symfony polyfill return \mb_strtolower($str, $encoding); } /** * Make a string uppercase. * * EXAMPLE: <code>UTF8::strtoupper('Déjà Σσς Iıİi'); // 'DÉJÀ ΣΣΣ IIİI'</code> * * @see http://php.net/manual/en/function.mb-strtoupper.php * * @param string $str <p>The string being uppercased.</p> * @param string $encoding [optional] <p>Set the charset.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string * <p>String with all alphabetic characters converted to uppercase.</p> */ public static function strtoupper( $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { // init $str = (string) $str; if ($str === '') { return ''; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } // hack for old php version or for the polyfill ... if ($try_to_keep_the_string_length) { $str = self::fixStrCaseHelper($str); } if ($lang === null && $encoding === 'UTF-8') { return \mb_strtoupper($str); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ($lang !== null) { if (self::$SUPPORT['intl'] === true) { if (self::$INTL_TRANSLITERATOR_LIST === null) { self::$INTL_TRANSLITERATOR_LIST = self::getData('transliterator_list'); } $language_code = $lang . '-Upper'; if (!\in_array($language_code, self::$INTL_TRANSLITERATOR_LIST, true)) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strtoupper() without intl for special language: ' . $lang, \E_USER_WARNING); $language_code = 'Any-Upper'; } return (string) \transliterator_transliterate($language_code, $str); } /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::strtolower() without intl cannot handle the "lang"-parameter: ' . $lang, \E_USER_WARNING); } // always fallback via symfony polyfill return \mb_strtoupper($str, $encoding); } /** * Translate characters or replace sub-strings. * * EXAMPLE: * <code> * $array = [ * 'Hello' => '○●◎', * '中文空白' => 'earth', * ]; * UTF8::strtr('Hello 中文空白', $array); // '○●◎ earth' * </code> * * @see http://php.net/manual/en/function.strtr.php * * @param string $str <p>The string being translated.</p> * @param string|string[] $from <p>The string replacing from.</p> * @param string|string[] $to [optional] <p>The string being translated to to.</p> * * @psalm-pure * * @return string * <p>This function returns a copy of str, translating all occurrences of each character in "from" * to the corresponding character in "to".</p> */ public static function strtr(string $str, $from, $to = ''): string { if ($str === '') { return ''; } if ($from === $to) { return $str; } if ($to !== '') { if (!\is_array($from)) { $from = self::str_split($from); } if (!\is_array($to)) { $to = self::str_split($to); } $count_from = \count($from); $count_to = \count($to); if ($count_from !== $count_to) { if ($count_from > $count_to) { $from = \array_slice($from, 0, $count_to); } elseif ($count_from < $count_to) { $to = \array_slice($to, 0, $count_from); } } try { $from = \array_combine($from, $to); } catch (\Error $e) { // PHP >= 8.0 : array_combine() will now throw a ValueError if the number of elements for each array is not equal; previously this function returned false instead. $from = false; } if ($from === false) { throw new \InvalidArgumentException('The number of elements for each array isn\'t equal or the arrays are empty: (from: ' . \print_r($from, true) . ' | to: ' . \print_r($to, true) . ')'); } } if (\is_string($from)) { return \str_replace($from, $to, $str); } return \strtr($str, $from); } /** * Return the width of a string. * * INFO: use UTF8::strlen() for the byte-length * * EXAMPLE: <code>UTF8::strwidth("Iñtërnâtiôn\xE9àlizætiøn")); // 21</code> * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return int * * @phpstan-return 0|positive-int */ public static function strwidth( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false ): int { if ($str === '') { return 0; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($clean_utf8) { // iconv and mbstring are not tolerant to invalid encoding // further, their behaviour is inconsistent with that of PHP's substr $str = self::clean($str); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_strwidth($str); } return \mb_strwidth($str, $encoding); } // // fallback via vanilla php // if ($encoding !== 'UTF-8') { $str = self::encode('UTF-8', $str, false, $encoding); } $wide = 0; $str = (string) \preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $str, -1, $wide); /* @phpstan-ignore-next-line | should return 0|positive-int */ return ($wide << 1) + (int) self::strlen($str); } /** * Get part of a string. * * EXAMPLE: <code>UTF8::substr('中文空白', 1, 2); // '文空'</code> * * @see http://php.net/manual/en/function.mb-substr.php * * @param string $str <p>The string being checked.</p> * @param int $offset <p>The first position used in str.</p> * @param int|null $length [optional] <p>The maximum length of the returned string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|string * The portion of <i>str</i> specified by the <i>offset</i> and * <i>length</i> parameters.</p><p>If <i>str</i> is shorter than <i>offset</i> * characters long, <b>FALSE</b> will be returned. */ public static function substr( string $str, int $offset = 0, int $length = null, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { // empty string if ($str === '' || $length === 0) { return ''; } if ($clean_utf8) { // iconv and mbstring are not tolerant to invalid encoding // further, their behaviour is inconsistent with that of PHP's substr $str = self::clean($str); } // whole string if (!$offset && $length === null) { return $str; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } // // fallback via mbstring // if (self::$SUPPORT['mbstring'] === true && $encoding === 'UTF-8') { if ($length === null) { return \mb_substr($str, $offset); } return \mb_substr($str, $offset, $length); } // // fallback for binary || ascii only // if ( $encoding === 'CP850' || $encoding === 'ASCII' ) { if ($length === null) { return \substr($str, $offset); } return \substr($str, $offset, $length); } // otherwise we need the string-length $str_length = 0; if ( $offset || $length === null /* @phpstan-ignore-line | can be NULL here?! */ ) { $str_length = self::strlen($str, $encoding); } // e.g.: invalid chars + mbstring not installed if ($str_length === false) { return false; } // empty string if ($offset === $str_length && !$length) { return ''; } // impossible if ($offset && $offset > $str_length) { return ''; } $length = $length ?? $str_length; if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::substr() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } // // fallback via intl // if ( $encoding === 'UTF-8' // INFO: "grapheme_substr()" can't handle other encodings && $offset >= 0 // grapheme_substr() can't handle negative offset && self::$SUPPORT['intl'] === true ) { $return_tmp = \grapheme_substr($str, $offset, $length); if ($return_tmp !== false) { return $return_tmp; } } // // fallback via iconv // if ( $length >= 0 // "iconv_substr()" can't handle negative length && self::$SUPPORT['iconv'] === true ) { $return_tmp = \iconv_substr($str, $offset, $length); if ($return_tmp !== false) { return $return_tmp; } } // // fallback for ascii only // if (ASCII::is_ascii($str)) { return \substr($str, $offset, $length); } // // fallback via vanilla php // // split to array, and remove invalid characters // && // extract relevant part, and join to make sting again return \implode('', \array_slice(self::str_split($str), $offset, $length)); } /** * Binary-safe comparison of two strings from an offset, up to a length of characters. * * EXAMPLE: <code> * UTF8::substr_compare("○●◎\r", '●◎', 0, 2); // -1 * UTF8::substr_compare("○●◎\r", '◎●', 1, 2); // 1 * UTF8::substr_compare("○●◎\r", '●◎', 1, 2); // 0 * </code> * * @param string $str1 <p>The main string being compared.</p> * @param string $str2 <p>The secondary string being compared.</p> * @param int $offset [optional] <p>The start position for the comparison. If negative, it starts * counting from the end of the string.</p> * @param int|null $length [optional] <p>The length of the comparison. The default value is the largest * of the length of the str compared to the length of main_str less the * offset.</p> * @param bool $case_insensitivity [optional] <p>If case_insensitivity is TRUE, comparison is case * insensitive.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * <strong>&lt; 0</strong> if str1 is less than str2;<br> * <strong>&gt; 0</strong> if str1 is greater than str2,<br> * <strong>0</strong> if they are equal */ public static function substr_compare( string $str1, string $str2, int $offset = 0, int $length = null, bool $case_insensitivity = false, string $encoding = 'UTF-8' ): int { if ( $offset !== 0 || $length !== null ) { if ($encoding === 'UTF-8') { if ($length === null) { $str1 = (string) \mb_substr($str1, $offset); } else { $str1 = (string) \mb_substr($str1, $offset, $length); } $str2 = (string) \mb_substr($str2, 0, (int) self::strlen($str1)); } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $str1 = (string) self::substr($str1, $offset, $length, $encoding); $str2 = (string) self::substr($str2, 0, (int) self::strlen($str1), $encoding); } } if ($case_insensitivity) { return self::strcasecmp($str1, $str2, $encoding); } return self::strcmp($str1, $str2); } /** * Count the number of substring occurrences. * * EXAMPLE: <code>UTF8::substr_count('中文空白', '文空', 1, 2); // 1</code> * * @see http://php.net/manual/en/function.substr-count.php * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * @param int $offset [optional] <p>The offset where to start counting.</p> * @param int|null $length [optional] <p> * The maximum length after the specified offset to search for the * substring. It outputs a warning if the offset plus the length is * greater than the haystack length. * </p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return false|int * <p>This functions returns an integer or false if there isn't a string.</p> */ public static function substr_count( string $haystack, string $needle, int $offset = 0, int $length = null, string $encoding = 'UTF-8', bool $clean_utf8 = false ) { if ($needle === '') { return false; } if ($haystack === '' || $length === 0) { return 0; } if ($encoding !== 'UTF-8' && $encoding !== 'CP850') { $encoding = self::normalize_encoding($encoding, 'UTF-8'); } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $needle = self::clean($needle); $haystack = self::clean($haystack); } if ($offset || $length > 0) { if ($length === null) { $length_tmp = self::strlen($haystack, $encoding); if ($length_tmp === false) { return false; } $length = $length_tmp; } if ($encoding === 'UTF-8') { $haystack = (string) \mb_substr($haystack, $offset, $length); } else { $haystack = (string) \mb_substr($haystack, $offset, $length, $encoding); } } if ( $encoding !== 'UTF-8' && self::$SUPPORT['mbstring'] === false ) { /** * @psalm-suppress ImpureFunctionCall - this is only a warning */ \trigger_error('UTF8::substr_count() without mbstring cannot handle "' . $encoding . '" encoding', \E_USER_WARNING); } if (self::$SUPPORT['mbstring'] === true) { if ($encoding === 'UTF-8') { return \mb_substr_count($haystack, $needle); } return \mb_substr_count($haystack, $needle, $encoding); } \preg_match_all('/' . \preg_quote($needle, '/') . '/us', $haystack, $matches, \PREG_SET_ORDER); return \count($matches); } /** * Count the number of substring occurrences. * * @param string $haystack <p> * The string being checked. * </p> * @param string $needle <p> * The string being found. * </p> * @param int $offset [optional] <p> * The offset where to start counting * </p> * @param int|null $length [optional] <p> * The maximum length after the specified offset to search for the * substring. It outputs a warning if the offset plus the length is * greater than the haystack length. * </p> * * @psalm-pure * * @return false|int * <p>The number of times the * needle substring occurs in the * haystack string.</p> */ public static function substr_count_in_byte( string $haystack, string $needle, int $offset = 0, int $length = null ) { if ($haystack === '' || $needle === '') { return 0; } if ( ($offset || $length !== null) && self::$SUPPORT['mbstring_func_overload'] === true ) { if ($length === null) { $length_tmp = self::strlen($haystack); if ($length_tmp === false) { return false; } $length = $length_tmp; } if ( ( $length !== 0 && $offset !== 0 ) && ($length + $offset) <= 0 && \PHP_VERSION_ID < 71000 // output from "substr_count()" have changed in PHP 7.1 ) { return false; } /** @var false|string $haystack_tmp - needed for PhpStan (stubs error) */ $haystack_tmp = \substr($haystack, $offset, $length); if ($haystack_tmp === false) { $haystack_tmp = ''; } $haystack = (string) $haystack_tmp; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_substr_count($haystack, $needle, 'CP850'); // 8-BIT } if ($length === null) { return \substr_count($haystack, $needle, $offset); } return \substr_count($haystack, $needle, $offset, $length); } /** * Returns the number of occurrences of $substring in the given string. * By default, the comparison is case-sensitive, but can be made insensitive * by setting $case_sensitive to false. * * @param string $str <p>The input string.</p> * @param string $substring <p>The substring to search for.</p> * @param bool $case_sensitive [optional] <p>Whether or not to enforce case-sensitivity. Default: true</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return int * * @phpstan-return 0|positive-int */ public static function substr_count_simple( string $str, string $substring, bool $case_sensitive = true, string $encoding = 'UTF-8' ): int { if ($str === '' || $substring === '') { return 0; } if ($encoding === 'UTF-8') { if ($case_sensitive) { return (int) \mb_substr_count($str, $substring); } return (int) \mb_substr_count( \mb_strtoupper($str), \mb_strtoupper($substring) ); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); if ($case_sensitive) { return (int) \mb_substr_count($str, $substring, $encoding); } return (int) \mb_substr_count( self::strtocasefold($str, true, false, $encoding, null, false), self::strtocasefold($substring, true, false, $encoding, null, false), $encoding ); } /** * Removes a prefix ($needle) from the beginning of the string ($haystack), case-insensitive. * * EXMAPLE: <code> * UTF8::substr_ileft('ΚόσμεMiddleEnd', 'Κόσμε'); // 'MiddleEnd' * UTF8::substr_ileft('ΚόσμεMiddleEnd', 'κόσμε'); // 'MiddleEnd' * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return string * <p>Return the sub-string.</p> */ public static function substr_ileft(string $haystack, string $needle): string { if ($haystack === '') { return ''; } if ($needle === '') { return $haystack; } if (self::str_istarts_with($haystack, $needle)) { $haystack = (string) \mb_substr($haystack, (int) self::strlen($needle)); } return $haystack; } /** * Get part of a string process in bytes. * * @param string $str <p>The string being checked.</p> * @param int $offset <p>The first position used in str.</p> * @param int|null $length [optional] <p>The maximum length of the returned string.</p> * * @psalm-pure * * @return false|string * <p>The portion of <i>str</i> specified by the <i>offset</i> and * <i>length</i> parameters.</p><p>If <i>str</i> is shorter than <i>offset</i> * characters long, <b>FALSE</b> will be returned.</p> */ public static function substr_in_byte(string $str, int $offset = 0, int $length = null) { // empty string if ($str === '' || $length === 0) { return ''; } // whole string if (!$offset && $length === null) { return $str; } if (self::$SUPPORT['mbstring_func_overload'] === true) { // "mb_" is available if overload is used, so use it ... return \mb_substr($str, $offset, $length, 'CP850'); // 8-BIT } return \substr($str, $offset, $length ?? 2147483647); } /** * Removes a suffix ($needle) from the end of the string ($haystack), case-insensitive. * * EXAMPLE: <code> * UTF8::substr_iright('BeginMiddleΚόσμε', 'Κόσμε'); // 'BeginMiddle' * UTF8::substr_iright('BeginMiddleΚόσμε', 'κόσμε'); // 'BeginMiddle' * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return string * <p>Return the sub-string.<p> */ public static function substr_iright(string $haystack, string $needle): string { if ($haystack === '') { return ''; } if ($needle === '') { return $haystack; } if (self::str_iends_with($haystack, $needle)) { $haystack = (string) \mb_substr($haystack, 0, (int) self::strlen($haystack) - (int) self::strlen($needle)); } return $haystack; } /** * Removes a prefix ($needle) from the beginning of the string ($haystack). * * EXAMPLE: <code> * UTF8::substr_left('ΚόσμεMiddleEnd', 'Κόσμε'); // 'MiddleEnd' * UTF8::substr_left('ΚόσμεMiddleEnd', 'κόσμε'); // 'ΚόσμεMiddleEnd' * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * * @psalm-pure * * @return string * <p>Return the sub-string.</p> */ public static function substr_left(string $haystack, string $needle): string { if ($haystack === '') { return ''; } if ($needle === '') { return $haystack; } if (self::str_starts_with($haystack, $needle)) { $haystack = (string) \mb_substr($haystack, (int) self::strlen($needle)); } return $haystack; } /** * Replace text within a portion of a string. * * EXAMPLE: <code>UTF8::substr_replace(array('Iñtërnâtiônàlizætiøn', 'foo'), 'æ', 1); // array('Iæñtërnâtiônàlizætiøn', 'fæoo')</code> * * source: https://gist.github.com/stemar/8287074 * * @param string|string[] $str <p>The input string or an array of stings.</p> * @param string|string[] $replacement <p>The replacement string or an array of stings.</p> * @param int|int[] $offset <p> * If start is positive, the replacing will begin at the start'th offset * into string. * <br><br> * If start is negative, the replacing will begin at the start'th character * from the end of string. * </p> * @param int|int[]|null $length [optional] <p>If given and is positive, it represents the length of the * portion of string which is to be replaced. If it is negative, it * represents the number of characters from the end of string at which to * stop replacing. If it is not given, then it will default to strlen( * string ); i.e. end the replacing at the end of string. Of course, if * length is zero then this function will have the effect of inserting * replacement into string at the given start offset.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string|string[] * <p>The result string is returned. If string is an array then array is returned.</p> * * @template TSubstrReplace string|string[] * @phpstan-param TSubstrReplace $str * @phpstan-return TSubstrReplace */ public static function substr_replace( $str, $replacement, $offset, $length = null, string $encoding = 'UTF-8' ) { if (\is_array($str)) { $num = \count($str); // the replacement if (\is_array($replacement)) { $replacement = \array_slice($replacement, 0, $num); } else { $replacement = \array_pad([$replacement], $num, $replacement); } // the offset if (\is_array($offset)) { $offset = \array_slice($offset, 0, $num); foreach ($offset as &$value_tmp) { $value_tmp = (int) $value_tmp === $value_tmp ? $value_tmp : 0; } unset($value_tmp); } else { $offset = \array_pad([$offset], $num, $offset); } // the length if ($length === null) { $length = \array_fill(0, $num, 0); } elseif (\is_array($length)) { $length = \array_slice($length, 0, $num); foreach ($length as &$value_tmp_V2) { $value_tmp_V2 = (int) $value_tmp_V2 === $value_tmp_V2 ? $value_tmp_V2 : $num; } unset($value_tmp_V2); } else { $length = \array_pad([$length], $num, $length); } // recursive call /** @phpstan-ignore-next-line - phpstan currently can't handle recursive calls */ return \array_map([self::class, 'substr_replace'], $str, $replacement, $offset, $length); } if (\is_array($replacement)) { if ($replacement !== []) { $replacement = $replacement[0]; } else { $replacement = ''; } } // init $str = (string) $str; $replacement = (string) $replacement; if (\is_array($length)) { throw new \InvalidArgumentException('Parameter "$length" can only be an array, if "$str" is also an array.'); } if (\is_array($offset)) { throw new \InvalidArgumentException('Parameter "$offset" can only be an array, if "$str" is also an array.'); } if ($str === '') { return $replacement; } if (self::$SUPPORT['mbstring'] === true) { $string_length = (int) self::strlen($str, $encoding); if ($offset < 0) { $offset = (int) \max(0, $string_length + $offset); } elseif ($offset > $string_length) { $offset = $string_length; } if ($length !== null && $length < 0) { $length = (int) \max(0, $string_length - $offset + $length); } elseif ($length === null || $length > $string_length) { $length = $string_length; } if (($offset + $length) > $string_length) { $length = $string_length - $offset; } return ((string) \mb_substr($str, 0, $offset, $encoding)) . $replacement . ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); } // // fallback for ascii only // if (ASCII::is_ascii($str)) { return ($length === null) ? \substr_replace($str, $replacement, $offset) : \substr_replace($str, $replacement, $offset, $length); } // // fallback via vanilla php // \preg_match_all('/./us', $str, $str_matches); \preg_match_all('/./us', $replacement, $replacement_matches); if ($length === null) { $length_tmp = self::strlen($str, $encoding); if ($length_tmp === false) { // e.g.: non mbstring support + invalid chars return ''; } $length = $length_tmp; } \array_splice($str_matches[0], $offset, $length, $replacement_matches[0]); return \implode('', $str_matches[0]); } /** * Removes a suffix ($needle) from the end of the string ($haystack). * * EXAMPLE: <code> * UTF8::substr_right('BeginMiddleΚόσμε', 'Κόσμε'); // 'BeginMiddle' * UTF8::substr_right('BeginMiddleΚόσμε', 'κόσμε'); // 'BeginMiddleΚόσμε' * </code> * * @param string $haystack <p>The string to search in.</p> * @param string $needle <p>The substring to search for.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * * @psalm-pure * * @return string * <p>Return the sub-string.</p> */ public static function substr_right( string $haystack, string $needle, string $encoding = 'UTF-8' ): string { if ($haystack === '') { return ''; } if ($needle === '') { return $haystack; } if ( $encoding === 'UTF-8' && \substr($haystack, -\strlen($needle)) === $needle ) { return (string) \mb_substr($haystack, 0, (int) \mb_strlen($haystack) - (int) \mb_strlen($needle)); } if (\substr($haystack, -\strlen($needle)) === $needle) { return (string) self::substr( $haystack, 0, (int) self::strlen($haystack, $encoding) - (int) self::strlen($needle, $encoding), $encoding ); } return $haystack; } /** * Returns a case swapped version of the string. * * EXAMPLE: <code>UTF8::swapCase('déJÀ σσς iıII'); // 'DÉjà ΣΣΣ IIii'</code> * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return string * <p>Each character's case swapped.</p> */ public static function swapCase(string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false): string { if ($str === '') { return ''; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } if ($encoding === 'UTF-8') { return (string) (\mb_strtolower($str) ^ \mb_strtoupper($str) ^ $str); } return (string) (self::strtolower($str, $encoding) ^ self::strtoupper($str, $encoding) ^ $str); } /** * Checks whether symfony-polyfills are used. * * @psalm-pure * * @return bool * <p><strong>true</strong> if in use, <strong>false</strong> otherwise</p> * * @internal <p>Please do not use it anymore, we will make is private in next major version.</p> */ public static function symfony_polyfill_used(): bool { // init $return = false; $return_tmp = \extension_loaded('mbstring'); if (!$return_tmp && \function_exists('mb_strlen')) { $return = true; } $return_tmp = \extension_loaded('iconv'); if (!$return_tmp && \function_exists('iconv')) { $return = true; } return $return; } /** * @param string $str * @param int $tab_length * * @psalm-pure * * @return string */ public static function tabs_to_spaces(string $str, int $tab_length = 4): string { if ($tab_length === 4) { $spaces = ' '; } elseif ($tab_length === 2) { $spaces = ' '; } else { $spaces = \str_repeat(' ', $tab_length); } return \str_replace("\t", $spaces, $str); } /** * Converts the first character of each word in the string to uppercase * and all other chars to lowercase. * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string * <p>A string with all characters of $str being title-cased.</p> */ public static function titlecase( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } if ( $lang === null && !$try_to_keep_the_string_length ) { if ($encoding === 'UTF-8') { return \mb_convert_case($str, \MB_CASE_TITLE); } $encoding = self::normalize_encoding($encoding, 'UTF-8'); return \mb_convert_case($str, \MB_CASE_TITLE, $encoding); } return self::str_titleize( $str, null, $encoding, false, $lang, $try_to_keep_the_string_length, false ); } /** * Convert a string into ASCII. * * EXAMPLE: <code>UTF8::to_ascii('déjà σσς iıii'); // 'deja sss iiii'</code> * * @param string $str <p>The input string.</p> * @param string $unknown [optional] <p>Character use if character unknown. (default is ?)</p> * @param bool $strict [optional] <p>Use "transliterator_transliterate()" from PHP-Intl | WARNING: bad * performance</p> * * @psalm-pure * * @return string */ public static function to_ascii( string $str, string $unknown = '?', bool $strict = false ): string { return ASCII::to_transliterate($str, $unknown, $strict); } /** * @param bool|float|int|string $str * * @psalm-pure * * @return bool */ public static function to_boolean($str): bool { // init $str = (string) $str; if ($str === '') { return false; } // Info: http://php.net/manual/en/filter.filters.validate.php $map = [ 'true' => true, '1' => true, 'on' => true, 'yes' => true, 'false' => false, '0' => false, 'off' => false, 'no' => false, ]; if (isset($map[$str])) { return $map[$str]; } $key = \strtolower($str); if (isset($map[$key])) { return $map[$key]; } if (\is_numeric($str)) { return ((float) $str) > 0; } return (bool) \trim($str); } /** * Convert given string to safe filename (and keep string case). * * @param string $str * @param bool $use_transliterate No transliteration, conversion etc. is done by default - unsafe characters are * simply replaced with hyphen. * @param string $fallback_char * * @psalm-pure * * @return string */ public static function to_filename( string $str, bool $use_transliterate = false, string $fallback_char = '-' ): string { return ASCII::to_filename( $str, $use_transliterate, $fallback_char ); } /** * Convert a string into "ISO-8859"-encoding (Latin-1). * * EXAMPLE: <code>UTF8::to_utf8(UTF8::to_iso8859(' -ABC-中文空白- ')); // ' -ABC-????- '</code> * * @param string|string[] $str * * @psalm-pure * * @return string|string[] * * @template TToIso8859 as string|string[] * @phpstan-param TToIso8859 $str * @phpstan-return (TToIso8859 is string ? string : string[]) */ public static function to_iso8859($str) { if (\is_array($str)) { foreach ($str as &$v) { $v = self::to_iso8859($v); } return $str; } /* @phpstan-ignore-next-line | FP? -> "Cannot cast TToIso8859 of array<string>|string to string." it's a string here */ $str = (string) $str; if ($str === '') { return ''; } return self::utf8_decode($str); } /** * This function leaves UTF-8 characters alone, while converting almost all non-UTF8 to UTF8. * * <ul> * <li>It decode UTF-8 codepoints and Unicode escape sequences.</li> * <li>It assumes that the encoding of the original string is either WINDOWS-1252 or ISO-8859.</li> * <li>WARNING: It does not remove invalid UTF-8 characters, so you maybe need to use "UTF8::clean()" for this * case.</li> * </ul> * * EXAMPLE: <code>UTF8::to_utf8(["\u0063\u0061\u0074"]); // array('cat')</code> * * @param string|string[] $str <p>Any string or array of strings.</p> * @param bool $decode_html_entity_to_utf8 <p>Set to true, if you need to decode html-entities.</p> * * @psalm-pure * * @return string|string[] * <p>The UTF-8 encoded string</p> * * @template TToUtf8 as string|string[] * @phpstan-param TToUtf8 $str * @phpstan-return (TToUtf8 is string ? string : string[]) */ public static function to_utf8($str, bool $decode_html_entity_to_utf8 = false) { if (\is_array($str)) { foreach ($str as &$v) { $v = self::to_utf8_string($v, $decode_html_entity_to_utf8); } /** @phpstan-var TToUtf8 $str */ return $str; } \assert(\is_string($str)); $str = self::to_utf8_string($str, $decode_html_entity_to_utf8); /** @phpstan-var TToUtf8 $str */ return $str; } /** * This function leaves UTF-8 characters alone, while converting almost all non-UTF8 to UTF8. * * <ul> * <li>It decode UTF-8 codepoints and Unicode escape sequences.</li> * <li>It assumes that the encoding of the original string is either WINDOWS-1252 or ISO-8859.</li> * <li>WARNING: It does not remove invalid UTF-8 characters, so you maybe need to use "UTF8::clean()" for this * case.</li> * </ul> * * EXAMPLE: <code>UTF8::to_utf8_string("\u0063\u0061\u0074"); // 'cat'</code> * * @param string $str <p>Any string.</p> * @param bool $decode_html_entity_to_utf8 <p>Set to true, if you need to decode html-entities.</p> * * @psalm-pure * * @return string * <p>The UTF-8 encoded string</p> * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function to_utf8_string(string $str, bool $decode_html_entity_to_utf8 = false): string { if ($str === '') { return $str; } $max = \strlen($str); $buf = ''; for ($i = 0; $i < $max; ++$i) { $c1 = $str[$i]; if ($c1 >= "\xC0") { // should be converted to UTF8, if it's not UTF8 already if ($c1 <= "\xDF") { // looks like 2 bytes UTF8 $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1]; if ($c2 >= "\x80" && $c2 <= "\xBF") { // yeah, almost sure it's UTF8 already $buf .= $c1 . $c2; ++$i; } else { // not valid UTF8 - convert it $buf .= self::to_utf8_convert_helper($c1); } } elseif ($c1 >= "\xE0" && $c1 <= "\xEF") { // looks like 3 bytes UTF8 $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1]; $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2]; if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF") { // yeah, almost sure it's UTF8 already $buf .= $c1 . $c2 . $c3; $i += 2; } else { // not valid UTF8 - convert it $buf .= self::to_utf8_convert_helper($c1); } } elseif ($c1 >= "\xF0" && $c1 <= "\xF7") { // looks like 4 bytes UTF8 $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1]; $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2]; $c4 = $i + 3 >= $max ? "\x00" : $str[$i + 3]; if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF" && $c4 >= "\x80" && $c4 <= "\xBF") { // yeah, almost sure it's UTF8 already $buf .= $c1 . $c2 . $c3 . $c4; $i += 3; } else { // not valid UTF8 - convert it $buf .= self::to_utf8_convert_helper($c1); } } else { // doesn't look like UTF8, but should be converted $buf .= self::to_utf8_convert_helper($c1); } } elseif (($c1 & "\xC0") === "\x80") { // needs conversion $buf .= self::to_utf8_convert_helper($c1); } else { // it doesn't need conversion $buf .= $c1; } } // decode unicode escape sequences + unicode surrogate pairs $buf = \preg_replace_callback( '/\\\\u([dD][89abAB][0-9a-fA-F]{2})\\\\u([dD][cdefCDEF][\da-fA-F]{2})|\\\\u([0-9a-fA-F]{4})/', /** * @param array $matches * * @psalm-pure * * @return string */ static function (array $matches): string { if (isset($matches[3])) { $cp = (int) \hexdec($matches[3]); } else { // http://unicode.org/faq/utf_bom.html#utf16-4 $cp = ((int) \hexdec($matches[1]) << 10) + (int) \hexdec($matches[2]) + 0x10000 - (0xD800 << 10) - 0xDC00; } // https://github.com/php/php-src/blob/php-7.3.2/ext/standard/html.c#L471 // // php_utf32_utf8(unsigned char *buf, unsigned k) if ($cp < 0x80) { return (string) self::chr($cp); } if ($cp < 0xA0) { /** @noinspection UnnecessaryCastingInspection */ return (string) self::chr(0xC0 | $cp >> 6) . (string) self::chr(0x80 | $cp & 0x3F); } return self::decimal_to_chr($cp); }, $buf ); if ($buf === null) { return ''; } // decode UTF-8 codepoints if ($decode_html_entity_to_utf8) { $buf = self::html_entity_decode($buf); } return $buf; } /** * Returns the given string as an integer, or null if the string isn't numeric. * * @param string $str * * @psalm-pure * * @return int|null * <p>null if the string isn't numeric</p> */ public static function to_int(string $str) { if (\is_numeric($str)) { return (int) $str; } return null; } /** * Returns the given input as string, or null if the input isn't int|float|string * and do not implement the "__toString()" method. * * @param float|int|object|string|null $input * * @psalm-pure * * @return string|null * <p>null if the input isn't int|float|string and has no "__toString()" method</p> */ public static function to_string($input) { if ($input === null) { return null; } $input_type = \gettype($input); if ( $input_type === 'string' || $input_type === 'integer' || $input_type === 'float' || $input_type === 'double' ) { /* @phpstan-ignore-next-line | "gettype" is not supported by phpstan?! */ return (string) $input; } /** @phpstan-ignore-next-line - "gettype": FP? */ if ($input_type === 'object' && \method_exists($input, '__toString')) { return (string) $input; } return null; } /** * Strip whitespace or other characters from the beginning and end of a UTF-8 string. * * INFO: This is slower then "trim()" * * We can only use the original-function, if we use <= 7-Bit in the string / chars * but the check for ASCII (7-Bit) cost more time, then we can safe here. * * EXAMPLE: <code>UTF8::trim(' -ABC-中文空白- '); // '-ABC-中文空白-'</code> * * @param string $str <p>The string to be trimmed</p> * @param string|null $chars [optional] <p>Optional characters to be stripped</p> * * @psalm-pure * * @return string * <p>The trimmed string.</p> */ public static function trim(string $str = '', string $chars = null): string { if ($str === '') { return ''; } if (self::$SUPPORT['mbstring'] === true) { if ($chars !== null) { /** @noinspection PregQuoteUsageInspection */ $chars = \preg_quote($chars); $pattern = "^[{$chars}]+|[{$chars}]+\$"; } else { $pattern = '^[\\s]+|[\\s]+$'; } return (string) \mb_ereg_replace($pattern, '', $str); } if ($chars !== null) { $chars = \preg_quote($chars, '/'); $pattern = "^[{$chars}]+|[{$chars}]+\$"; } else { $pattern = '^[\\s]+|[\\s]+$'; } return self::regex_replace($str, $pattern, ''); } /** * Makes string's first char uppercase. * * EXAMPLE: <code>UTF8::ucfirst('ñtërnâtiônàlizætiøn foo'); // 'Ñtërnâtiônàlizætiøn foo'</code> * * @param string $str <p>The input string.</p> * @param string $encoding [optional] <p>Set the charset for e.g. "mb_" function</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * @param string|null $lang [optional] <p>Set the language for special cases: az, el, lt, * tr</p> * @param bool $try_to_keep_the_string_length [optional] <p>true === try to keep the string length: e.g. ẞ * -> ß</p> * * @psalm-pure * * @return string * <p>The resulting string with with char uppercase.</p> */ public static function ucfirst( string $str, string $encoding = 'UTF-8', bool $clean_utf8 = false, string $lang = null, bool $try_to_keep_the_string_length = false ): string { if ($str === '') { return ''; } if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; if ($encoding === 'UTF-8') { $str_part_two = (string) \mb_substr($str, 1); if ($use_mb_functions) { $str_part_one = \mb_strtoupper( (string) \mb_substr($str, 0, 1) ); } else { $str_part_one = self::strtoupper( (string) \mb_substr($str, 0, 1), $encoding, false, $lang, $try_to_keep_the_string_length ); } } else { $encoding = self::normalize_encoding($encoding, 'UTF-8'); $str_part_two = (string) self::substr($str, 1, null, $encoding); if ($use_mb_functions) { $str_part_one = \mb_strtoupper( (string) \mb_substr($str, 0, 1, $encoding), $encoding ); } else { $str_part_one = self::strtoupper( (string) self::substr($str, 0, 1, $encoding), $encoding, false, $lang, $try_to_keep_the_string_length ); } } return $str_part_one . $str_part_two; } /** * Uppercase for all words in the string. * * EXAMPLE: <code>UTF8::ucwords('iñt ërn âTi ônà liz æti øn'); // 'Iñt Ërn ÂTi Ônà Liz Æti Øn'</code> * * @param string $str <p>The input string.</p> * @param string[] $exceptions [optional] <p>Exclusion for some words.</p> * @param string $char_list [optional] <p>Additional chars that contains to words and do not start a new * word.</p> * @param string $encoding [optional] <p>Set the charset.</p> * @param bool $clean_utf8 [optional] <p>Remove non UTF-8 chars from the string.</p> * * @psalm-pure * * @return string */ public static function ucwords( string $str, array $exceptions = [], string $char_list = '', string $encoding = 'UTF-8', bool $clean_utf8 = false ): string { if (!$str) { return ''; } // INFO: mb_convert_case($str, MB_CASE_TITLE); // -> MB_CASE_TITLE didn't only uppercase the first letter, it also lowercase all other letters if ($clean_utf8) { // "mb_strpos()" and "iconv_strpos()" returns wrong position, // if invalid characters are found in $haystack before $needle $str = self::clean($str); } $use_php_default_functions = !(bool) ($char_list . \implode('', $exceptions)); if ( $use_php_default_functions && ASCII::is_ascii($str) ) { return \ucwords($str); } $words = self::str_to_words($str, $char_list); $use_exceptions = $exceptions !== []; $words_str = ''; foreach ($words as &$word) { if (!$word) { continue; } if ( !$use_exceptions || !\in_array($word, $exceptions, true) ) { $words_str .= self::ucfirst($word, $encoding); } else { $words_str .= $word; } } return $words_str; } /** * Multi decode HTML entity + fix urlencoded-win1252-chars. * * EXAMPLE: <code>UTF8::urldecode('tes%20öäü%20\u00edtest+test'); // 'tes öäü ítest test'</code> * * e.g: * 'test+test' => 'test test' * 'D&#252;sseldorf' => 'Düsseldorf' * 'D%FCsseldorf' => 'Düsseldorf' * 'D&#xFC;sseldorf' => 'Düsseldorf' * 'D%26%23xFC%3Bsseldorf' => 'Düsseldorf' * 'Düsseldorf' => 'Düsseldorf' * 'D%C3%BCsseldorf' => 'Düsseldorf' * 'D%C3%83%C2%BCsseldorf' => 'Düsseldorf' * 'D%25C3%2583%25C2%25BCsseldorf' => 'Düsseldorf' * * @param string $str <p>The input string.</p> * @param bool $multi_decode <p>Decode as often as possible.</p> * * @psalm-pure * * @return string * * @template T as string * @phpstan-param T $str * @phpstan-return (T is non-empty-string ? non-empty-string : string) */ public static function urldecode(string $str, bool $multi_decode = true): string { if ($str === '') { return ''; } $str = self::urldecode_unicode_helper($str); if ($multi_decode) { do { $str_compare = $str; /** * @psalm-suppress PossiblyInvalidArgument */ $str = \urldecode( self::html_entity_decode( self::to_utf8($str), \ENT_QUOTES | \ENT_HTML5 ) ); } while ($str_compare !== $str); } else { /** * @psalm-suppress PossiblyInvalidArgument */ $str = \urldecode( self::html_entity_decode( self::to_utf8($str), \ENT_QUOTES | \ENT_HTML5 ) ); } return self::fix_simple_utf8($str); } /** * Decodes a UTF-8 string to ISO-8859-1. * * EXAMPLE: <code>UTF8::encode('UTF-8', UTF8::utf8_decode('-ABC-中文空白-')); // '-ABC-????-'</code> * * @param string $str <p>The input string.</p> * @param bool $keep_utf8_chars * * @psalm-pure * * @return string */ public static function utf8_decode(string $str, bool $keep_utf8_chars = false): string { if ($str === '') { return ''; } // save for later comparision $str_backup = $str; $len = \strlen($str); if (self::$ORD === null) { self::$ORD = self::getData('ord'); } if (self::$CHR === null) { self::$CHR = self::getData('chr'); } $no_char_found = '?'; for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) { switch ($str[$i] & "\xF0") { case "\xC0": case "\xD0": $c = (self::$ORD[$str[$i] & "\x1F"] << 6) | self::$ORD[$str[++$i] & "\x3F"]; $str[$j] = $c < 256 ? self::$CHR[$c] : $no_char_found; break; case "\xF0": ++$i; // no break case "\xE0": $str[$j] = $no_char_found; $i += 2; break; default: $str[$j] = $str[$i]; } } /** @var false|string $return - needed for PhpStan (stubs error) */ $return = \substr($str, 0, $j); if ($return === false) { $return = ''; } if ( $keep_utf8_chars && (int) self::strlen($return) >= (int) self::strlen($str_backup) ) { return $str_backup; } return $return; } /** * Encodes an ISO-8859-1 string to UTF-8. * * EXAMPLE: <code>UTF8::utf8_decode(UTF8::utf8_encode('-ABC-中文空白-')); // '-ABC-中文空白-'</code> * * @param string $str <p>The input string.</p> * * @psalm-pure * * @return string */ public static function utf8_encode(string $str): string { if ($str === '') { return ''; } /** @noinspection PhpUsageOfSilenceOperatorInspection | TODO for PHP > 8.2: find a replacement for this */ /** @var false|string $str - the polyfill maybe return false */ $str = @\utf8_encode($str); if ($str === false) { return ''; } return $str; } /** * Returns an array with all utf8 whitespace characters. * * @see http://www.bogofilter.org/pipermail/bogofilter/2003-March/001889.html * * @psalm-pure * * @return string[] * An array with all known whitespace characters as values and the type of whitespace as keys * as defined in above URL */ public static function whitespace_table(): array { return self::$WHITESPACE_TABLE; } /** * Limit the number of words in a string. * * EXAMPLE: <code>UTF8::words_limit('fòô bàř fòô', 2, ''); // 'fòô bàř'</code> * * @param string $str <p>The input string.</p> * @param int<1, max> $limit <p>The limit of words as integer.</p> * @param string $str_add_on <p>Replacement for the striped string.</p> * * @psalm-pure * * @return string */ public static function words_limit( string $str, int $limit = 100, string $str_add_on = '…' ): string { if ( $str === '' || /* @phpstan-ignore-next-line | we do not trust the phpdoc check */ $limit <= 0 ) { return ''; } \preg_match('/^\\s*+(?:[^\\s]++\\s*+){1,' . $limit . '}/u', $str, $matches); if ( !isset($matches[0]) || \mb_strlen($str) === (int) \mb_strlen($matches[0]) ) { return $str; } return \rtrim($matches[0]) . $str_add_on; } /** * Wraps a string to a given number of characters * * EXAMPLE: <code>UTF8::wordwrap('Iñtërnâtiônàlizætiøn', 2, '<br>', true)); // 'Iñ<br>të<br>rn<br>ât<br>iô<br>nà<br>li<br>zæ<br>ti<br>øn'</code> * * @see http://php.net/manual/en/function.wordwrap.php * * @param string $str <p>The input string.</p> * @param int<1, max> $width [optional] <p>The column width.</p> * @param string $break [optional] <p>The line is broken using the optional break parameter.</p> * @param bool $cut [optional] <p> * If the cut is set to true, the string is * always wrapped at or before the specified width. So if you have * a word that is larger than the given width, it is broken apart. * </p> * * @psalm-pure * * @return string * <p>The given string wrapped at the specified column.</p> */ public static function wordwrap( string $str, int $width = 75, string $break = "\n", bool $cut = false ): string { if ($str === '' || $break === '') { return ''; } $str_split = \explode($break, $str); /** @var string[] $charsArray */ $charsArray = []; $word_split = ''; foreach ($str_split as $i => $i_value) { if ($i) { $charsArray[] = $break; $word_split .= '#'; } foreach (self::str_split($i_value) as $c) { $charsArray[] = $c; if ($c === ' ') { $word_split .= ' '; } else { $word_split .= '?'; } } } $str_return = ''; $j = 0; $b = -1; $i = -1; $word_split = \wordwrap($word_split, $width, '#', $cut); $max = \mb_strlen($word_split); /** @noinspection PhpAssignmentInConditionInspection - is ok here */ while (($b = \mb_strpos($word_split, '#', $b + 1)) !== false) { for (++$i; $i < $b; ++$i) { if (isset($charsArray[$j])) { $str_return .= $charsArray[$j]; unset($charsArray[$j]); } ++$j; // prevent endless loop, e.g. if there is a error in the "mb_*" polyfill if ($i > $max) { break 2; } } if ( $break === $charsArray[$j] || $charsArray[$j] === ' ' ) { unset($charsArray[$j++]); } $str_return .= $break; // prevent endless loop, e.g. if there is a error in the "mb_*" polyfill if ($b > $max) { break; } } return $str_return . \implode('', $charsArray); } /** * Line-Wrap the string after $limit, but split the string by "$delimiter" before ... * ... so that we wrap the per line. * * @param string $str <p>The input string.</p> * @param int<1, max> $width [optional] <p>The column width.</p> * @param string $break [optional] <p>The line is broken using the optional break parameter.</p> * @param bool $cut [optional] <p> * If the cut is set to true, the string is * always wrapped at or before the specified width. So if you have * a word that is larger than the given width, it is broken apart. * </p> * @param bool $add_final_break [optional] <p> * If this flag is true, then the method will add a $break at the end * of the result string. * </p> * @param non-empty-string|null $delimiter [optional] <p> * You can change the default behavior, where we split the string by newline. * </p> * * @psalm-pure * * @return string */ public static function wordwrap_per_line( string $str, int $width = 75, string $break = "\n", bool $cut = false, bool $add_final_break = true, string $delimiter = null ): string { if ($delimiter === null) { $strings = \preg_split('/\\r\\n|\\r|\\n/', $str); } else { $strings = \explode($delimiter, $str); } $string_helper_array = []; if ($strings !== false) { foreach ($strings as $value) { $string_helper_array[] = self::wordwrap($value, $width, $break, $cut); } } if ($add_final_break) { $final_break = $break; } else { $final_break = ''; } return \implode($delimiter ?? "\n", $string_helper_array) . $final_break; } /** * Returns an array of Unicode White Space characters. * * @psalm-pure * * @return string[] * <p>An array with numeric code point as key and White Space Character as value.</p> */ public static function ws(): array { return self::$WHITESPACE; } /** * Checks whether the passed string contains only byte sequences that are valid UTF-8 characters. * * EXAMPLE: <code> * UTF8::is_utf8_string('Iñtërnâtiônàlizætiøn']); // true * // * UTF8::is_utf8_string("Iñtërnâtiônàlizætiøn\xA0\xA1"); // false * </code> * * @see http://hsivonen.iki.fi/php-utf8/ * * @param string $str <p>The string to be checked.</p> * @param bool $strict <p>Check also if the string is not UTF-16 or UTF-32.</p> * * @psalm-pure * * @return bool */ private static function is_utf8_string(string $str, bool $strict = false) { if ($str === '') { return true; } if ($strict) { $is_binary = self::is_binary($str, true); if ($is_binary && self::is_utf16($str, false) !== false) { return false; } if ($is_binary && self::is_utf32($str, false) !== false) { return false; } } if (self::$SUPPORT['pcre_utf8']) { // If even just the first character can be matched, when the /u // modifier is used, then it's valid UTF-8. If the UTF-8 is somehow // invalid, nothing at all will match, even if the string contains // some valid sequences return \preg_match('/^./us', $str) === 1; } $mState = 0; // cached expected number of octets after the current octet // until the beginning of the next UTF8 character sequence $mUcs4 = 0; // cached Unicode character $mBytes = 1; // cached expected number of octets in the current sequence if (self::$ORD === null) { self::$ORD = self::getData('ord'); } $len = \strlen($str); for ($i = 0; $i < $len; ++$i) { $in = self::$ORD[$str[$i]]; if ($mState === 0) { // When mState is zero we expect either a US-ASCII character or a // multi-octet sequence. if ((0x80 & $in) === 0) { // US-ASCII, pass straight through. $mBytes = 1; } elseif ((0xE0 & $in) === 0xC0) { // First octet of 2 octet sequence. $mUcs4 = $in; $mUcs4 = ($mUcs4 & 0x1F) << 6; $mState = 1; $mBytes = 2; } elseif ((0xF0 & $in) === 0xE0) { // First octet of 3 octet sequence. $mUcs4 = $in; $mUcs4 = ($mUcs4 & 0x0F) << 12; $mState = 2; $mBytes = 3; } elseif ((0xF8 & $in) === 0xF0) { // First octet of 4 octet sequence. $mUcs4 = $in; $mUcs4 = ($mUcs4 & 0x07) << 18; $mState = 3; $mBytes = 4; } elseif ((0xFC & $in) === 0xF8) { /* First octet of 5 octet sequence. * * This is illegal because the encoded codepoint must be either * (a) not the shortest form or * (b) outside the Unicode range of 0-0x10FFFF. * Rather than trying to resynchronize, we will carry on until the end * of the sequence and let the later error handling code catch it. */ $mUcs4 = $in; $mUcs4 = ($mUcs4 & 0x03) << 24; $mState = 4; $mBytes = 5; } elseif ((0xFE & $in) === 0xFC) { // First octet of 6 octet sequence, see comments for 5 octet sequence. $mUcs4 = $in; $mUcs4 = ($mUcs4 & 1) << 30; $mState = 5; $mBytes = 6; } else { // Current octet is neither in the US-ASCII range nor a legal first // octet of a multi-octet sequence. return false; } } elseif ((0xC0 & $in) === 0x80) { // When mState is non-zero, we expect a continuation of the multi-octet // sequence // Legal continuation. $shift = ($mState - 1) * 6; $tmp = $in; $tmp = ($tmp & 0x0000003F) << $shift; $mUcs4 |= $tmp; // Prefix: End of the multi-octet sequence. mUcs4 now contains the final // Unicode code point to be output. if (--$mState === 0) { // Check for illegal sequences and code points. // // From Unicode 3.1, non-shortest form is illegal if ( ($mBytes === 2 && $mUcs4 < 0x0080) || ($mBytes === 3 && $mUcs4 < 0x0800) || ($mBytes === 4 && $mUcs4 < 0x10000) || ($mBytes > 4) || // From Unicode 3.2, surrogate characters are illegal. (($mUcs4 & 0xFFFFF800) === 0xD800) || // Code points outside the Unicode range are illegal. ($mUcs4 > 0x10FFFF) ) { return false; } // initialize UTF8 cache $mState = 0; $mUcs4 = 0; $mBytes = 1; } } else { // ((0xC0 & (*in) != 0x80) && (mState != 0)) // Incomplete multi-octet sequence. return false; } } return $mState === 0; } /** * @param string $str * @param bool $use_lowercase <p>Use uppercase by default, otherwise use lowercase.</p> * @param bool $use_full_case_fold <p>Convert not only common cases.</p> * * @psalm-pure * * @return string */ private static function fixStrCaseHelper( string $str, bool $use_lowercase = false, bool $use_full_case_fold = false ) { $upper = self::$COMMON_CASE_FOLD['upper']; $lower = self::$COMMON_CASE_FOLD['lower']; if ($use_lowercase) { $str = \str_replace( $upper, $lower, $str ); } else { $str = \str_replace( $lower, $upper, $str ); } if ($use_full_case_fold) { /** * @psalm-suppress ImpureStaticVariable * * @var array<mixed>|null */ static $FULL_CASE_FOLD = null; if ($FULL_CASE_FOLD === null) { $FULL_CASE_FOLD = self::getData('caseFolding_full'); } if ($use_lowercase) { $str = \str_replace($FULL_CASE_FOLD[0], $FULL_CASE_FOLD[1], $str); } else { $str = \str_replace($FULL_CASE_FOLD[1], $FULL_CASE_FOLD[0], $str); } } return $str; } /** * get data from "/data/*.php" * * @param string $file * * @psalm-pure * * @return array<array-key, mixed> */ private static function getData(string $file) { /** @noinspection PhpIncludeInspection */ /** @noinspection UsingInclusionReturnValueInspection */ /** @psalm-suppress UnresolvableInclude */ return include __DIR__ . '/data/' . $file . '.php'; } /** * @psalm-pure * * @return true|null */ private static function initEmojiData() { if (self::$EMOJI_KEYS_CACHE === null) { if (self::$EMOJI === null) { self::$EMOJI = self::getData('emoji'); } /** * @psalm-suppress ImpureFunctionCall - static sort function is used */ \uksort( self::$EMOJI, static function (string $a, string $b): int { return \strlen($b) <=> \strlen($a); } ); self::$EMOJI_KEYS_CACHE = \array_keys(self::$EMOJI); self::$EMOJI_VALUES_CACHE = self::$EMOJI; foreach (self::$EMOJI_KEYS_CACHE as $key) { $tmp_key = \crc32($key); self::$EMOJI_KEYS_REVERSIBLE_CACHE[] = '_-_PORTABLE_UTF8_-_' . $tmp_key . '_-_' . \strrev((string) $tmp_key) . '_-_8FTU_ELBATROP_-_'; } return true; } return null; } /** * Checks whether mbstring "overloaded" is active on the server. * * @psalm-pure * * @return bool */ private static function mbstring_overloaded(): bool { /** * INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 */ /** @noinspection PhpComposerExtensionStubsInspection */ /** @noinspection PhpUsageOfSilenceOperatorInspection */ /** @noinspection DeprecatedIniOptionsInspection */ return \defined('MB_OVERLOAD_STRING') && ((int) @\ini_get('mbstring.func_overload') & \MB_OVERLOAD_STRING); } /** * @param string[] $strings * @param bool $remove_empty_values * @param int|null $remove_short_values * * @psalm-pure * * @return list<string> */ private static function reduce_string_array( array $strings, bool $remove_empty_values, int $remove_short_values = null ) { // init $return = []; foreach ($strings as &$str) { if ( $remove_short_values !== null && \mb_strlen($str) <= $remove_short_values ) { continue; } if ( $remove_empty_values && \trim($str) === '' ) { continue; } $return[] = $str; } return $return; } /** * rxClass * * @param string $s * @param string $class * * @return string * * @psalm-pure */ private static function rxClass(string $s, string $class = '') { /** * @psalm-suppress ImpureStaticVariable * * @var array<string,string> */ static $RX_CLASS_CACHE = []; $cache_key = $s . '_' . $class; if (isset($RX_CLASS_CACHE[$cache_key])) { return $RX_CLASS_CACHE[$cache_key]; } $class_array = []; $class_array[] = $class; /** @noinspection SuspiciousLoopInspection */ /** @noinspection AlterInForeachInspection */ foreach (self::str_split($s) as &$s) { if ($s === '-') { $class_array[0] = '-' . $class_array[0]; } elseif (!isset($s[2])) { $class_array[0] .= \preg_quote($s, '/'); } elseif (self::strlen($s) === 1) { $class_array[0] .= $s; } else { $class_array[] = $s; } } if ($class_array[0]) { $class_array[0] = '[' . $class_array[0] . ']'; } if (\count($class_array) === 1) { $return = $class_array[0]; } else { $return = '(?:' . \implode('|', $class_array) . ')'; } $RX_CLASS_CACHE[$cache_key] = $return; return $return; } /** * Personal names such as "Marcus Aurelius" are sometimes typed incorrectly using lowercase ("marcus aurelius"). * * @param string $names * @param string $delimiter * @param string $encoding * * @phpstan-param non-empty-string $delimiter * * @psalm-pure * * @return string */ private static function str_capitalize_name_helper( string $names, string $delimiter, string $encoding = 'UTF-8' ) { // init try { $name_helper_array = \explode($delimiter, $names); } catch (\Error $e) { // PHP >= 8.0 : explode() will now throw ValueError when separator parameter is given an empty string (""). Previously, explode() returned false instead. $name_helper_array = false; } if ($name_helper_array === false) { return ''; } $special_cases = [ 'names' => [ 'ab', 'af', 'al', 'and', 'ap', 'bint', 'binte', 'da', 'de', 'del', 'den', 'der', 'di', 'dit', 'ibn', 'la', 'mac', 'nic', 'of', 'ter', 'the', 'und', 'van', 'von', 'y', 'zu', ], 'prefixes' => [ 'al-', "d'", 'ff', "l'", 'mac', 'mc', 'nic', ], ]; foreach ($name_helper_array as &$name) { if (\in_array($name, $special_cases['names'], true)) { continue; } $continue = false; if ($delimiter === '-') { foreach ((array) $special_cases['names'] as &$beginning) { if (\strncmp($name, $beginning, \strlen($beginning)) === 0) { $continue = true; break; } } unset($beginning); } foreach ((array) $special_cases['prefixes'] as &$beginning) { if (\strncmp($name, $beginning, \strlen($beginning)) === 0) { $continue = true; break; } } unset($beginning); if ($continue) { continue; } $name = self::ucfirst($name, $encoding); } return \implode($delimiter, $name_helper_array); } /** * Generic case-sensitive transformation for collation matching. * * @param string $str <p>The input string</p> * * @psalm-pure * * @return string|null */ private static function strtonatfold(string $str) { $str = \Normalizer::normalize($str, \Normalizer::NFD); if ($str === false) { return ''; } return \preg_replace( '/\p{Mn}+/u', '', $str ); } /** * @param int|string $input * * @psalm-pure * * @return string */ private static function to_utf8_convert_helper($input) { // init $buf = ''; if (self::$ORD === null) { self::$ORD = self::getData('ord'); } if (self::$CHR === null) { self::$CHR = self::getData('chr'); } if (self::$WIN1252_TO_UTF8 === null) { self::$WIN1252_TO_UTF8 = self::getData('win1252_to_utf8'); } $ordC1 = self::$ORD[$input]; if (isset(self::$WIN1252_TO_UTF8[$ordC1])) { // found in Windows-1252 special cases $buf .= self::$WIN1252_TO_UTF8[$ordC1]; } else { $cc1 = self::$CHR[$ordC1 / 64] | "\xC0"; $cc2 = ((string) $input & "\x3F") | "\x80"; $buf .= $cc1 . $cc2; } return $buf; } /** * @param string $str * * @psalm-pure * * @return string */ private static function urldecode_unicode_helper(string $str) { if (\strpos($str, '%u') === false) { return $str; } $pattern = '/%u([0-9a-fA-F]{3,4})/'; if (\preg_match($pattern, $str)) { $str = (string) \preg_replace($pattern, '&#x\\1;', $str); } return $str; } } <?php // https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes return [ // Dutch (Flemish) 'nl' => [ 'Á' => 'A', 'á' => 'a', 'Ä' => 'A', 'ä' => 'a', 'À' => 'A', 'à' => 'a', 'Â' => 'A', 'â' => 'a', 'É' => 'E', 'é' => 'e', 'Ë' => 'E', 'ë' => 'e', 'È' => 'E', 'è' => 'e', 'Ê' => 'E', 'ê' => 'e', 'Í' => 'I', 'í' => 'i', 'Ï' => 'I', 'ï' => 'i', 'Ì' => 'I', 'ì' => 'i', 'Î' => 'I', 'î' => 'i', 'Ó' => 'O', 'ó' => 'o', 'Ö' => 'O', 'ö' => 'o', 'Ò' => 'O', 'ò' => 'o', 'Ô' => 'O', 'ô' => 'o', 'Ú' => 'U', 'ú' => 'u', 'Ü' => 'U', 'ü' => 'u', 'Ù' => 'U', 'ù' => 'u', 'Û' => 'U', 'û' => 'u', 'Ý' => 'Y', 'ý' => 'y', 'Ÿ' => 'Y', ], // Italian 'it' => [ 'à' => 'a', 'À' => 'A', 'é' => 'e', 'É' => 'E', 'è' => 'e', 'È' => 'E', 'ì' => 'i', 'Ì' => 'I', 'Ò' => 'O', 'ò' => 'o', 'ù' => 'u', 'Ù' => 'U', ], // Macedonian 'mk' => [ 'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Ѓ' => 'Gj', 'Е' => 'E', 'Ж' => 'Zh', 'З' => 'Z', 'Ѕ' => 'Dz', 'И' => 'I', 'Ј' => 'J', 'К' => 'K', 'Л' => 'L', 'Љ' => 'Lj', 'М' => 'M', 'Н' => 'N', 'Њ' => 'Nj', 'О' => 'O', 'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'Ќ' => 'Kj', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C', 'Ч' => 'Ch', 'Џ' => 'Dj', 'Ш' => 'Sh', 'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'ѓ' => 'gj', 'е' => 'e', 'ж' => 'zh', 'з' => 'z', 'ѕ' => 'dz', 'и' => 'i', 'ј' => 'j', 'к' => 'k', 'л' => 'l', 'љ' => 'lj', 'м' => 'm', 'н' => 'n', 'њ' => 'nj', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'ќ' => 'kj', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c', 'ч' => 'ch', 'џ' => 'dj', 'ш' => 'sh', ], // Portuguese (Brazil) 'pt' => [ 'æ' => 'ae', 'ǽ' => 'ae', 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Å' => 'AA', 'Ǻ' => 'A', 'Ă' => 'A', 'Ǎ' => 'A', 'Æ' => 'AE', 'Ǽ' => 'AE', 'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'å' => 'aa', 'ǻ' => 'a', 'ă' => 'a', 'ǎ' => 'a', 'ª' => 'a', 'Ĉ' => 'C', 'Ċ' => 'C', 'Ç' => 'C', 'ç' => 'c', 'ĉ' => 'c', 'ċ' => 'c', 'Ð' => 'Dj', 'Đ' => 'D', 'ð' => 'dj', 'đ' => 'd', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ĕ' => 'E', 'Ė' => 'E', 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ĕ' => 'e', 'ė' => 'e', 'ƒ' => 'f', 'Ĝ' => 'G', 'Ġ' => 'G', 'ĝ' => 'g', 'ġ' => 'g', 'Ĥ' => 'H', 'Ħ' => 'H', 'ĥ' => 'h', 'ħ' => 'h', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ĩ' => 'I', 'Ĭ' => 'I', 'Ǐ' => 'I', 'Į' => 'I', 'IJ' => 'IJ', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ĩ' => 'i', 'ĭ' => 'i', 'ǐ' => 'i', 'į' => 'i', 'ij' => 'ij', 'Ĵ' => 'J', 'ĵ' => 'j', 'Ĺ' => 'L', 'Ľ' => 'L', 'Ŀ' => 'L', 'ĺ' => 'l', 'ľ' => 'l', 'ŀ' => 'l', 'Ñ' => 'N', 'ñ' => 'n', 'ʼn' => 'n', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ō' => 'O', 'Ŏ' => 'O', 'Ǒ' => 'O', 'Ő' => 'O', 'Ơ' => 'O', 'Ø' => 'OE', 'Ǿ' => 'O', 'Œ' => 'OE', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ō' => 'o', 'ŏ' => 'o', 'ǒ' => 'o', 'ő' => 'o', 'ơ' => 'o', 'ø' => 'oe', 'ǿ' => 'o', 'º' => 'o', 'œ' => 'oe', 'Ŕ' => 'R', 'Ŗ' => 'R', 'ŕ' => 'r', 'ŗ' => 'r', 'Ŝ' => 'S', 'Ș' => 'S', 'ŝ' => 's', 'ș' => 's', 'ſ' => 's', 'Ţ' => 'T', 'Ț' => 'T', 'Ŧ' => 'T', 'Þ' => 'TH', 'ţ' => 't', 'ț' => 't', 'ŧ' => 't', 'þ' => 'th', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ũ' => 'U', 'Ŭ' => 'U', 'Ű' => 'U', 'Ų' => 'U', 'Ư' => 'U', 'Ǔ' => 'U', 'Ǖ' => 'U', 'Ǘ' => 'U', 'Ǚ' => 'U', 'Ǜ' => 'U', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ũ' => 'u', 'ŭ' => 'u', 'ű' => 'u', 'ų' => 'u', 'ư' => 'u', 'ǔ' => 'u', 'ǖ' => 'u', 'ǘ' => 'u', 'ǚ' => 'u', 'ǜ' => 'u', 'Ŵ' => 'W', 'ŵ' => 'w', 'Ý' => 'Y', 'Ÿ' => 'Y', 'Ŷ' => 'Y', 'ý' => 'y', 'ÿ' => 'y', 'ŷ' => 'y', ], // Greek(lish) (Elláda) 'el__greeklish' => [ 'ΑΥ' => 'AU', 'ΑΎ' => 'AU', 'Αυ' => 'Au', 'Αύ' => 'Au', 'ΕΊ' => 'EI', 'ΕΙ' => 'EI', 'Ει' => 'EI', 'ΕΥ' => 'EU', 'ΕΎ' => 'EU', 'Εί' => 'Ei', 'Ευ' => 'Eu', 'Εύ' => 'Eu', 'ΟΙ' => 'OI', 'ΟΊ' => 'OI', 'ΟΥ' => 'OU', 'ΟΎ' => 'OU', 'Οι' => 'Oi', 'Οί' => 'Oi', 'Ου' => 'Ou', 'Ού' => 'Ou', 'ΥΙ' => 'YI', 'ΎΙ' => 'YI', 'Υι' => 'Yi', 'Ύι' => 'Yi', 'ΥΊ' => 'Yi', 'Υί' => 'Yi', 'αυ' => 'au', 'αύ' => 'au', 'εί' => 'ei', 'ει' => 'ei', 'ευ' => 'eu', 'εύ' => 'eu', 'οι' => 'oi', 'οί' => 'oi', 'ου' => 'ou', 'ού' => 'ou', 'υι' => 'yi', 'ύι' => 'yi', 'υί' => 'yi', 'Α' => 'A', 'Ά' => 'A', 'Β' => 'B', 'Δ' => 'D', 'Ε' => 'E', 'Έ' => 'E', 'Φ' => 'F', 'Γ' => 'G', 'Η' => 'H', 'Ή' => 'H', 'Ι' => 'I', 'Ί' => 'I', 'Ϊ' => 'I', 'Κ' => 'K', 'Ξ' => 'Ks', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Π' => 'N', 'Ο' => 'O', 'Ό' => 'O', 'Ψ' => 'Ps', 'Ρ' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Θ' => 'Th', 'Ω' => 'W', 'Ώ' => 'W', 'Χ' => 'X', 'ϒ' => 'Y', 'Υ' => 'Y', 'Ύ' => 'Y', 'Ϋ' => 'Y', 'Ζ' => 'Z', 'α' => 'a', 'ά' => 'a', 'β' => 'b', 'δ' => 'd', 'ε' => 'e', 'έ' => 'e', 'φ' => 'f', 'γ' => 'g', 'η' => 'h', 'ή' => 'h', 'ι' => 'i', 'ί' => 'i', 'ϊ' => 'i', 'ΐ' => 'i', 'κ' => 'k', 'ξ' => 'ks', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ο' => 'o', 'ό' => 'o', 'π' => 'p', 'ψ' => 'ps', 'ρ' => 'r', 'σ' => 's', 'ς' => 's', 'τ' => 't', 'ϑ' => 'th', 'θ' => 'th', 'ϐ' => 'v', 'ω' => 'w', 'ώ' => 'w', 'χ' => 'x', 'υ' => 'y', 'ύ' => 'y', 'ΰ' => 'y', 'ϋ' => 'y', 'ζ' => 'z', ], // Greek (Elláda) 'el' => [ 'ΑΥ' => 'AU', 'Αυ' => 'Au', 'ΟΥ' => 'U', 'Ου' => 'u', 'ΕΥ' => 'EF', 'Ευ' => 'Ef', 'ΕΙ' => 'I', 'Ει' => 'I', 'ΟΙ' => 'I', 'Οι' => 'I', 'ΥΙ' => 'I', 'Υι' => 'I', 'ΑΎ' => 'AU', 'Αύ' => 'Au', 'ΟΎ' => 'OU', 'Ού' => 'Ou', 'ΕΎ' => 'EU', 'Εύ' => 'Eu', 'ΕΊ' => 'I', 'Εί' => 'I', 'ΟΊ' => 'I', 'Οί' => 'I', 'ΎΙ' => 'I', 'Ύι' => 'I', 'ΥΊ' => 'I', 'Υί' => 'I', 'αυ' => 'au', 'ου' => 'u', 'ευ' => 'ef', 'ει' => 'i', 'οι' => 'i', 'υι' => 'i', 'αύ' => 'au', 'ού' => 'ou', 'εύ' => 'eu', 'εί' => 'i', 'οί' => 'i', 'ύι' => 'i', 'υί' => 'i', 'α' => 'a', 'β' => 'v', 'γ' => 'gh', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'i', 'θ' => 'th', 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => 'ks', 'ο' => 'o', 'π' => 'p', 'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'i', 'φ' => 'f', 'χ' => 'kh', 'ψ' => 'ps', 'ω' => 'o', 'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ϒ' => 'Y', 'ύ' => 'y', 'ή' => 'i', 'ώ' => 'w', 'ς' => 's', 'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i', 'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => 'Th', 'Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => 'Ks', 'Ο' => 'O', 'Π' => 'P', 'Ρ' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'Ps', 'Ω' => 'O', 'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'I', 'Ώ' => 'W', 'Ϊ' => 'I', 'Ϋ' => 'Y', 'ϐ' => 'v', 'ϑ' => 'th', ], // Hindi 'hi' => [ 'अ' => 'a', 'आ' => 'aa', 'ए' => 'e', 'ई' => 'ii', 'ऍ' => 'ei', 'ऎ' => 'ae', 'ऐ' => 'ai', 'इ' => 'i', 'ओ' => 'o', 'ऑ' => 'oi', 'ऒ' => 'oii', 'ऊ' => 'uu', 'औ' => 'ou', 'उ' => 'u', 'ब' => 'B', 'भ' => 'Bha', 'च' => 'Ca', 'छ' => 'Chha', 'ड' => 'Da', 'ढ' => 'Dha', 'फ' => 'Fa', 'फ़' => 'Fi', 'ग' => 'Ga', 'घ' => 'Gha', 'ग़' => 'Ghi', 'ह' => 'Ha', 'ज' => 'Ja', 'झ' => 'Jha', 'क' => 'Ka', 'ख' => 'Kha', 'ख़' => 'Khi', 'ल' => 'L', 'ळ' => 'Li', 'ऌ' => 'Li', 'ऴ' => 'Lii', 'ॡ' => 'Lii', 'म' => 'Ma', 'न' => 'Na', 'ङ' => 'Na', 'ञ' => 'Nia', 'ण' => 'Nae', 'ऩ' => 'Ni', 'ॐ' => 'oms', 'प' => 'Pa', 'क़' => 'Qi', 'र' => 'Ra', 'ऋ' => 'Ri', 'ॠ' => 'Ri', 'ऱ' => 'Ri', 'स' => 'Sa', 'श' => 'Sha', 'ष' => 'Shha', 'ट' => 'Ta', 'त' => 'Ta', 'ठ' => 'Tha', 'द' => 'Tha', 'थ' => 'Tha', 'ध' => 'Thha', 'ड़' => 'ugDha', 'ढ़' => 'ugDhha', 'व' => 'Va', 'य' => 'Ya', 'य़' => 'Yi', 'ज़' => 'Za', ], // Armenian 'hy' => [ 'Ա' => 'A', 'Բ' => 'B', 'Գ' => 'G', 'Դ' => 'D', 'Ե' => 'E', 'Զ' => 'Z', 'Է' => 'E', 'Ը' => 'Y', 'Թ' => 'Th', 'Ժ' => 'Zh', 'Ի' => 'I', 'Լ' => 'L', 'Խ' => 'Kh', 'Ծ' => 'Ts', 'Կ' => 'K', 'Հ' => 'H', 'Ձ' => 'Dz', 'Ղ' => 'Gh', 'Ճ' => 'Tch', 'Մ' => 'M', 'Յ' => 'Y', 'Ն' => 'N', 'Շ' => 'Sh', 'Ո' => 'Vo', 'Չ' => 'Ch', 'Պ' => 'P', 'Ջ' => 'J', 'Ռ' => 'R', 'Ս' => 'S', 'Վ' => 'V', 'Տ' => 'T', 'Ր' => 'R', 'Ց' => 'C', 'Ւ' => 'u', 'Փ' => 'Ph', 'Ք' => 'Q', 'և' => 'ev', 'Օ' => 'O', 'Ֆ' => 'F', 'ա' => 'a', 'բ' => 'b', 'գ' => 'g', 'դ' => 'd', 'ե' => 'e', 'զ' => 'z', 'է' => 'e', 'ը' => 'y', 'թ' => 'th', 'ժ' => 'zh', 'ի' => 'i', 'լ' => 'l', 'խ' => 'kh', 'ծ' => 'ts', 'կ' => 'k', 'հ' => 'h', 'ձ' => 'dz', 'ղ' => 'gh', 'ճ' => 'tch', 'մ' => 'm', 'յ' => 'y', 'ն' => 'n', 'շ' => 'sh', 'ո' => 'vo', 'չ' => 'ch', 'պ' => 'p', 'ջ' => 'j', 'ռ' => 'r', 'ս' => 's', 'վ' => 'v', 'տ' => 't', 'ր' => 'r', 'ց' => 'c', 'ւ' => 'u', 'փ' => 'ph', 'ք' => 'q', 'օ' => 'o', 'ֆ' => 'f', ], // Swedish 'sv' => [ 'Ä' => 'A', 'ä' => 'a', 'Å' => 'A', 'å' => 'a', 'Ö' => 'O', 'ö' => 'o', ], // Turkmen 'tk' => [ 'Ç' => 'C', 'Ä' => 'A', 'Ž' => 'Z', 'Ň' => 'N', 'Ö' => 'O', 'Ş' => 'S', 'Ü' => 'U', 'Ý' => 'Y', 'ç' => 'c', 'ä' => 'a', 'ž' => 'z', 'ň' => 'n', 'ö' => 'o', 'ş' => 's', 'ü' => 'u', 'ý' => 'y', ], // Turkish 'tr' => [ 'ň' => 'n', 'Ň' => 'N', 'ş' => 's', 'Ş' => 'S', 'ı' => 'i', 'İ' => 'I', 'ç' => 'c', 'Ç' => 'C', 'ä' => 'a', 'Ä' => 'A', 'ü' => 'u', 'Ü' => 'U', 'ö' => 'o', 'Ö' => 'O', 'ğ' => 'g', 'Ğ' => 'G', 'ý' => 'y', 'Ý' => 'Y', 'ž' => 'z', 'Ž' => 'Z', ], // Bulgarian 'bg' => [ 'ьо' => 'yo', 'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Е' => 'E', 'Ж' => 'Zh', 'З' => 'Z', 'И' => 'I', 'Й' => 'Y', 'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O', 'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C', 'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Sht', 'Ъ' => 'A', 'Ь' => '', 'Ю' => 'Yu', 'Я' => 'Ya', 'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'е' => 'e', 'ж' => 'zh', 'з' => 'z', 'и' => 'i', 'й' => 'y', 'к' => 'k', 'л' => 'l', 'м' => 'm', 'н' => 'n', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c', 'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sht', 'ъ' => 'a', 'ь' => '', 'ю' => 'yu', 'я' => 'ya', ], // Hungarian 'hu' => [ 'Á' => 'A', 'Ē' => 'E', 'É' => 'E', 'Í' => 'I', 'Ó' => 'O', 'Ö' => 'O', 'Ő' => 'O', 'Ú' => 'U', 'Ü' => 'U', 'Ű' => 'U', 'á' => 'a', 'ē' => 'e', 'é' => 'e', 'í' => 'i', 'ó' => 'o', 'ö' => 'o', 'ő' => 'o', 'ú' => 'u', 'ü' => 'u', 'ű' => 'u', ], // Myanmar (Burmese) 'my' => [ 'န်ုပ်' => 'nub', 'ောင်' => 'aung', 'ိုက်' => 'aik', 'ိုဒ်' => 'ok', 'ိုင်' => 'aing', 'ိုလ်' => 'ol', 'ေါင်' => 'aung', 'သြော' => 'aw', 'ောက်' => 'auk', 'ိတ်' => 'eik', 'ုတ်' => 'ok', 'ုန်' => 'on', 'ေတ်' => 'it', 'ုဒ်' => 'ait', 'ာန်' => 'an', 'ိန်' => 'ein', 'ွတ်' => 'ut', 'ေါ်' => 'aw', 'ွန်' => 'un', 'ိပ်' => 'eik', 'ုပ်' => 'ok', 'ွပ်' => 'ut', 'ိမ်' => 'ein', 'ုမ်' => 'on', 'ော်' => 'aw', 'ွမ်' => 'un', 'က်' => 'et', 'ေါ' => 'aw', 'ော' => 'aw', 'ျွ' => 'ywa', 'ြွ' => 'yw', 'ို' => 'o', 'ုံ' => 'on', 'တ်' => 'at', 'င်' => 'in', 'ည်' => 'i', 'ဒ်' => 'd', 'န်' => 'an', 'ပ်' => 'at', 'မ်' => 'an', 'စျ' => 'za', 'ယ်' => 'e', 'ဉ်' => 'in', 'စ်' => 'it', 'ိံ' => 'ein', 'ဲ' => 'e', 'း' => '', 'ာ' => 'a', 'ါ' => 'a', 'ေ' => 'e', 'ံ' => 'an', 'ိ' => 'i', 'ီ' => 'i', 'ု' => 'u', 'ူ' => 'u', '်' => 'at', '္' => '', '့' => '', 'က' => 'k', '၉' => '9', 'တ' => 't', 'ရ' => 'ya', 'ယ' => 'y', 'မ' => 'm', 'ဘ' => 'ba', 'ဗ' => 'b', 'ဖ' => 'pa', 'ပ' => 'p', 'န' => 'n', 'ဓ' => 'da', 'ဒ' => 'd', 'ထ' => 'ta', 'ဏ' => 'na', 'ဝ' => 'w', 'ဎ' => 'da', 'ဍ' => 'd', 'ဌ' => 'ta', 'ဋ' => 't', 'ည' => 'ny', 'ဇ' => 'z', 'ဆ' => 'sa', 'စ' => 's', 'င' => 'ng', 'ဃ' => 'ga', 'ဂ' => 'g', 'လ' => 'l', 'သ' => 'th', '၈' => '8', 'ဩ' => 'aw', 'ခ' => 'kh', '၆' => '6', '၅' => '5', '၄' => '4', '၃' => '3', '၂' => '2', '၁' => '1', '၀' => '0', '၌' => 'hnaik', '၍' => 'ywae', 'ဪ' => 'aw', 'ဦ' => '-u', 'ဟ' => 'h', 'ဉ' => 'u', 'ဤ' => '-i', 'ဣ' => 'i', '၏' => '-e', 'ဧ' => 'e', 'ှ' => 'h', 'ွ' => 'w', 'ျ' => 'ya', 'ြ' => 'y', 'အ' => 'a', 'ဠ' => 'la', '၇' => '7', ], // Croatian (Hrvatska) 'hr' => [ 'DŽ' => 'DZ', 'Dž' => 'Dz', 'dž' => 'dz', 'DZ' => 'DZ', 'Dz' => 'Dz', 'dz' => 'dz', 'IJ' => 'IJ', 'ij' => 'ij', 'LJ' => 'LJ', 'Lj' => 'Lj', 'lj' => 'lj', 'NJ' => 'NJ', 'Nj' => 'Nj', 'nj' => 'nj', 'ž' => 'z', 'Ž' => 'Z', 'đ' => 'dj', 'Đ' => 'Dj', 'č' => 'c', 'Č' => 'C', 'ć' => 'c', 'Ć' => 'C', 'š' => 's', 'Š' => 'S', ], // Finnish 'fi' => [ 'Ä' => 'A', 'Ö' => 'O', 'ä' => 'a', 'ö' => 'o', ], // Georgian (Kartvelian) 'ka' => [ 'ა' => 'a', 'ბ' => 'b', 'გ' => 'g', 'დ' => 'd', 'ე' => 'e', 'ვ' => 'v', 'ზ' => 'z', 'თ' => 't', 'ი' => 'i', 'კ' => 'k', 'ლ' => 'l', 'მ' => 'm', 'ნ' => 'n', 'ო' => 'o', 'პ' => 'p', 'ჟ' => 'zh', 'რ' => 'r', 'ს' => 's', 'ტ' => 't', 'უ' => 'u', 'ფ' => 'f', 'ქ' => 'q', 'ღ' => 'gh', 'ყ' => 'y', 'შ' => 'sh', 'ჩ' => 'ch', 'ც' => 'ts', 'ძ' => 'dz', 'წ' => 'ts', 'ჭ' => 'ch', 'ხ' => 'kh', 'ჯ' => 'j', 'ჰ' => 'h', ], // Russian 'ru' => [ 'А' => 'A', 'а' => 'a', 'Б' => 'B', 'б' => 'b', 'В' => 'V', 'в' => 'v', 'Г' => 'G', 'г' => 'g', 'Д' => 'D', 'д' => 'd', 'Е' => 'E', 'е' => 'e', 'Ё' => 'Yo', 'ё' => 'yo', 'Ж' => 'Zh', 'ж' => 'zh', 'З' => 'Z', 'з' => 'z', 'И' => 'I', 'и' => 'i', 'Й' => 'Y', 'й' => 'y', 'К' => 'K', 'к' => 'k', 'Л' => 'L', 'л' => 'l', 'М' => 'M', 'м' => 'm', 'Н' => 'N', 'н' => 'n', 'О' => 'O', 'о' => 'o', 'П' => 'P', 'п' => 'p', 'Р' => 'R', 'р' => 'r', 'С' => 'S', 'с' => 's', 'Т' => 'T', 'т' => 't', 'У' => 'U', 'у' => 'u', 'Ф' => 'F', 'ф' => 'f', 'Х' => 'H', 'х' => 'h', 'Ц' => 'Ts', 'ц' => 'ts', 'Ч' => 'Ch', 'ч' => 'ch', 'ш' => 'sh', 'Ш' => 'Sh', 'Щ' => 'Sch', 'щ' => 'sch', 'Ъ' => '', 'ъ' => '', 'Ы' => 'Y', 'ы' => 'y', 'Ь' => '', 'ь' => '', 'Э' => 'E', 'э' => 'e', 'Ю' => 'Yu', 'ю' => 'yu', 'Я' => 'Ya', 'я' => 'ya', ], // Russian - GOST 7.79-2000(B) // -> https://en.m.wikipedia.org/wiki/Romanization_of_Russian#content-collapsible-block-1 'ru__gost_2000_b' => [ 'А' => 'A', 'а' => 'a', 'Б' => 'B', 'б' => 'b', 'В' => 'V', 'в' => 'v', 'Г' => 'G', 'г' => 'g', 'Д' => 'D', 'д' => 'd', 'Е' => 'E', 'е' => 'e', 'Ё' => 'Yo', 'ё' => 'yo', 'Ж' => 'Zh', 'ж' => 'zh', 'З' => 'Z', 'з' => 'z', 'И' => 'i', 'и' => 'i', 'Й' => 'i', 'й' => 'i', 'К' => 'K', 'к' => 'k', 'Л' => 'L', 'л' => 'l', 'М' => 'M', 'м' => 'm', 'Н' => 'N', 'н' => 'n', 'О' => 'O', 'о' => 'o', 'П' => 'P', 'п' => 'p', 'Р' => 'R', 'р' => 'r', 'С' => 'S', 'с' => 's', 'Т' => 'T', 'т' => 't', 'У' => 'U', 'у' => 'u', 'Ф' => 'F', 'ф' => 'f', 'Х' => 'X', 'х' => 'x', 'Ц' => 'Cz', 'ц' => 'cz', 'Ч' => 'Ch', 'ч' => 'ch', 'ш' => 'sh', 'Ш' => 'Sh', 'Щ' => 'Shh', 'щ' => 'shh', 'Ъ' => '', 'ъ' => '', 'Ы' => 'Y\'', 'ы' => 'y\'', 'Ь' => '', 'ь' => '', 'Э' => 'E\'', 'э' => 'e\'', 'Ю' => 'Yu', 'ю' => 'yu', 'Я' => 'Ya', 'я' => 'ya', 'І' => 'I', 'і' => 'i', 'Ѳ' => 'Fh', 'ѳ' => 'fh', 'Ѣ' => 'Ye', 'ѣ' => 'ye', 'Ѵ' => 'Yh', 'ѵ' => 'yh', 'Є' => '', 'є' => '', 'Ѥ' => '', 'ѥ' => '', 'Ѕ' => 'Js', 'ѕ' => 'js', 'Ꙋ' => '', 'ꙋ' => '', 'Ѡ' => '', 'ѡ' => '', 'Ѿ' => '', 'ѿ' => '', 'Ѫ' => '', 'ѫ' => '', 'Ѧ' => '', 'ѧ' => '', 'Ѭ' => '', 'ѭ' => '', 'Ѩ' => '', 'ѩ' => '', 'Ѯ' => '', 'ѯ' => '', 'Ѱ' => '', 'ѱ' => '', ], // Russian - Passport (2013), ICAO // -> https://en.m.wikipedia.org/wiki/Romanization_of_Russian#content-collapsible-block-1 'ru__passport_2013' => [ 'А' => 'A', 'а' => 'a', 'Б' => 'B', 'б' => 'b', 'В' => 'V', 'в' => 'v', 'Г' => 'G', 'г' => 'g', 'Д' => 'D', 'д' => 'd', 'Е' => 'E', 'е' => 'e', 'Ё' => 'E', 'ё' => 'e', 'Ж' => 'Zh', 'ж' => 'zh', 'З' => 'Z', 'з' => 'z', 'И' => 'i', 'и' => 'i', 'Й' => 'i', 'й' => 'i', 'К' => 'K', 'к' => 'k', 'Л' => 'L', 'л' => 'l', 'М' => 'M', 'м' => 'm', 'Н' => 'N', 'н' => 'n', 'О' => 'O', 'о' => 'o', 'П' => 'P', 'п' => 'p', 'Р' => 'R', 'р' => 'r', 'С' => 'S', 'с' => 's', 'Т' => 'T', 'т' => 't', 'У' => 'U', 'у' => 'u', 'Ф' => 'F', 'ф' => 'f', 'Х' => 'Kh', 'х' => 'kh', 'Ц' => 'Ts', 'ц' => 'ts', 'Ч' => 'Ch', 'ч' => 'ch', 'ш' => 'sh', 'Ш' => 'Sh', 'Щ' => 'Shch', 'щ' => 'shch', 'Ъ' => 'Ie', 'ъ' => 'ie', 'Ы' => 'Y', 'ы' => 'y', 'Ь' => '', 'ь' => '', 'Э' => 'E', 'э' => 'e', 'Ю' => 'Iu', 'ю' => 'iu', 'Я' => 'Ia', 'я' => 'ia', 'І' => '', 'і' => '', 'Ѳ' => '', 'ѳ' => '', 'Ѣ' => '', 'ѣ' => '', 'Ѵ' => '', 'ѵ' => '', 'Є' => '', 'є' => '', 'Ѥ' => '', 'ѥ' => '', 'Ѕ' => '', 'ѕ' => '', 'Ꙋ' => '', 'ꙋ' => '', 'Ѡ' => '', 'ѡ' => '', 'Ѿ' => '', 'ѿ' => '', 'Ѫ' => '', 'ѫ' => '', 'Ѧ' => '', 'ѧ' => '', 'Ѭ' => '', 'ѭ' => '', 'Ѩ' => '', 'ѩ' => '', 'Ѯ' => '', 'ѯ' => '', 'Ѱ' => '', 'ѱ' => '', ], // Ukrainian // -> https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF?lang=en 'uk' => [ 'Г' => 'H', 'г' => 'h', 'Ґ' => 'G', 'ґ' => 'g', 'Є' => 'Ye', 'є' => 'ye', 'И' => 'Y', 'и' => 'y', 'І' => 'I', 'і' => 'i', 'Ї' => 'Yi', 'ї' => 'yi', 'Й' => 'Y', 'й' => 'y', 'Х' => 'Kh', 'х' => 'kh', 'Ц' => 'Ts', 'ц' => 'ts', 'Ч' => 'Ch', 'ч' => 'ch', 'Ш' => 'Sh', 'ш' => 'sh', 'Щ' => 'Shch', 'щ' => 'shch', ], // Kazakh 'kk' => [ 'Ә' => 'A', 'Ғ' => 'G', 'Қ' => 'Q', 'Ң' => 'N', 'Ө' => 'O', 'Ұ' => 'U', 'Ү' => 'U', 'Һ' => 'H', 'ә' => 'a', 'ғ' => 'g', 'қ' => 'q', 'ң' => 'n', 'ө' => 'o', 'ұ' => 'u', 'ү' => 'u', 'һ' => 'h', ], // Czech 'cs' => [ 'á' => 'a', 'Á' => 'A', 'č' => 'c', 'Č' => 'C', 'ď' => 'd', 'Ď' => 'D', 'é' => 'e', 'É' => 'E', 'ě' => 'e', 'Ě' => 'E', 'í' => 'i', 'Í' => 'I', 'ň' => 'n', 'Ň' => 'N', 'ó' => 'o', 'Ó' => 'O', 'ř' => 'r', 'Ř' => 'R', 'š' => 's', 'Š' => 'S', 'ť' => 't', 'Ť' => 'T', 'ú' => 'u', 'Ú' => 'U', 'ů' => 'u', 'Ů' => 'U', 'ý' => 'y', 'Ý' => 'Y', 'ž' => 'z', 'Ž' => 'Z', ], // Danish 'da' => [ 'Æ' => 'Ae', 'æ' => 'ae', 'Ø' => 'Oe', 'ø' => 'oe', 'Å' => 'Aa', 'å' => 'aa', 'É' => 'E', 'é' => 'e', ], // Polish 'pl' => [ 'ą' => 'a', 'ć' => 'c', 'ę' => 'e', 'ł' => 'l', 'ń' => 'n', 'ó' => 'o', 'ś' => 's', 'ź' => 'z', 'ż' => 'z', 'Ą' => 'A', 'Ć' => 'C', 'Ę' => 'E', 'Ł' => 'L', 'Ń' => 'N', 'Ó' => 'O', 'Ś' => 'S', 'Ź' => 'Z', 'Ż' => 'Z', ], // Romanian 'ro' => [ 'ă' => 'a', 'â' => 'a', 'Ă' => 'A', 'Â' => 'A', 'î' => 'i', 'Î' => 'I', 'ș' => 's', 'ş' => 's', 'Ş' => 'S', 'Ș' => 'S', 'ț' => 't', 'ţ' => 't', 'Ţ' => 'T', 'Ț' => 'T', ], // Esperanto 'eo' => [ 'ĉ' => 'cx', 'ĝ' => 'gx', 'ĥ' => 'hx', 'ĵ' => 'jx', 'ŝ' => 'sx', 'ŭ' => 'ux', 'Ĉ' => 'CX', 'Ĝ' => 'GX', 'Ĥ' => 'HX', 'Ĵ' => 'JX', 'Ŝ' => 'SX', 'Ŭ' => 'UX', ], // Estonian 'et' => [ 'Š' => 'S', 'Ž' => 'Z', 'Õ' => 'O', 'Ä' => 'A', 'Ö' => 'O', 'Ü' => 'U', 'š' => 's', 'ž' => 'z', 'õ' => 'o', 'ä' => 'a', 'ö' => 'o', 'ü' => 'u', ], // Latvian 'lv' => [ 'ā' => 'a', 'č' => 'c', 'ē' => 'e', 'ģ' => 'g', 'ī' => 'i', 'ķ' => 'k', 'ļ' => 'l', 'ņ' => 'n', 'š' => 's', 'ū' => 'u', 'ž' => 'z', 'Ā' => 'A', 'Č' => 'C', 'Ē' => 'E', 'Ģ' => 'G', 'Ī' => 'i', 'Ķ' => 'k', 'Ļ' => 'L', 'Ņ' => 'N', 'Š' => 'S', 'Ū' => 'u', 'Ž' => 'Z', ], // Lithuanian 'lt' => [ 'ą' => 'a', 'č' => 'c', 'ę' => 'e', 'ė' => 'e', 'į' => 'i', 'š' => 's', 'ų' => 'u', 'ū' => 'u', 'ž' => 'z', 'Ą' => 'A', 'Č' => 'C', 'Ę' => 'E', 'Ė' => 'E', 'Į' => 'I', 'Š' => 'S', 'Ų' => 'U', 'Ū' => 'U', 'Ž' => 'Z', ], // Norwegian 'no' => [ 'Æ' => 'AE', 'æ' => 'ae', 'Ø' => 'OE', 'ø' => 'oe', 'Å' => 'AA', 'å' => 'aa', ], // Vietnamese 'vi' => [ 'Á' => 'A', 'À' => 'A', 'Ả' => 'A', 'Ã' => 'A', 'Ạ' => 'A', 'Ă' => 'A', 'Ắ' => 'A', 'Ằ' => 'A', 'Ẳ' => 'A', 'Ẵ' => 'A', 'Ặ' => 'A', 'Â' => 'A', 'Ấ' => 'A', 'Ầ' => 'A', 'Ẩ' => 'A', 'Ẫ' => 'A', 'Ậ' => 'A', 'á' => 'a', 'à' => 'a', 'ả' => 'a', 'ã' => 'a', 'ạ' => 'a', 'ă' => 'a', 'ắ' => 'a', 'ằ' => 'a', 'ẳ' => 'a', 'ẵ' => 'a', 'ặ' => 'a', 'â' => 'a', 'ấ' => 'a', 'ầ' => 'a', 'ẩ' => 'a', 'ẫ' => 'a', 'ậ' => 'a', 'É' => 'E', 'È' => 'E', 'Ẻ' => 'E', 'Ẽ' => 'E', 'Ẹ' => 'E', 'Ê' => 'E', 'Ế' => 'E', 'Ề' => 'E', 'Ể' => 'E', 'Ễ' => 'E', 'Ệ' => 'E', 'é' => 'e', 'è' => 'e', 'ẻ' => 'e', 'ẽ' => 'e', 'ẹ' => 'e', 'ê' => 'e', 'ế' => 'e', 'ề' => 'e', 'ể' => 'e', 'ễ' => 'e', 'ệ' => 'e', 'Í' => 'I', 'Ì' => 'I', 'Ỉ' => 'I', 'Ĩ' => 'I', 'Ị' => 'I', 'í' => 'i', 'ì' => 'i', 'ỉ' => 'i', 'ĩ' => 'i', 'ị' => 'i', 'Ó' => 'O', 'Ò' => 'O', 'Ỏ' => 'O', 'Õ' => 'O', 'Ọ' => 'O', 'Ô' => 'O', 'Ố' => 'O', 'Ồ' => 'O', 'Ổ' => 'O', 'Ỗ' => 'O', 'Ộ' => 'O', 'Ơ' => 'O', 'Ớ' => 'O', 'Ờ' => 'O', 'Ở' => 'O', 'Ỡ' => 'O', 'Ợ' => 'O', 'ó' => 'o', 'ò' => 'o', 'ỏ' => 'o', 'õ' => 'o', 'ọ' => 'o', 'ô' => 'o', 'ố' => 'o', 'ồ' => 'o', 'ổ' => 'o', 'ỗ' => 'o', 'ộ' => 'o', 'ơ' => 'o', 'ớ' => 'o', 'ờ' => 'o', 'ở' => 'o', 'ỡ' => 'o', 'ợ' => 'o', 'Ú' => 'U', 'Ù' => 'U', 'Ủ' => 'U', 'Ũ' => 'U', 'Ụ' => 'U', 'Ư' => 'U', 'Ứ' => 'U', 'Ừ' => 'U', 'Ử' => 'U', 'Ữ' => 'U', 'Ự' => 'U', 'ú' => 'u', 'ù' => 'u', 'ủ' => 'u', 'ũ' => 'u', 'ụ' => 'u', 'ư' => 'u', 'ứ' => 'u', 'ừ' => 'u', 'ử' => 'u', 'ữ' => 'u', 'ự' => 'u', 'Ý' => 'Y', 'Ỳ' => 'Y', 'Ỷ' => 'Y', 'Ỹ' => 'Y', 'Ỵ' => 'Y', 'ý' => 'y', 'ỳ' => 'y', 'ỷ' => 'y', 'ỹ' => 'y', 'ỵ' => 'y', 'Đ' => 'D', 'đ' => 'd', ], // Persian (Farsi) 'fa' => [ 'ا' => 'a', 'ب' => 'b', 'پ' => 'p', 'ت' => 't', 'ث' => 's', 'ج' => 'j', 'چ' => 'ch', 'ح' => 'h', 'خ' => 'kh', 'د' => 'd', 'ذ' => 'z', 'ر' => 'r', 'ز' => 'z', 'س' => 's', 'ش' => 'sh', 'ص' => 's', 'ض' => 'z', 'ط' => 't', 'ظ' => 'z', 'ع' => 'a', 'غ' => 'gh', 'ف' => 'f', 'ق' => 'gh', 'ک' => 'k', 'گ' => 'g', 'ل' => 'l', 'ژ' => 'zh', 'ك' => 'k', 'م' => 'm', 'ن' => 'n', 'ه' => 'h', 'و' => 'o', 'ی' => 'y', 'آ' => 'a', '٠' => '0', '١' => '1', '٢' => '2', '٣' => '3', '٤' => '4', '٥' => '5', '٦' => '6', '٧' => '7', '٨' => '8', '٩' => '9', ], // Arabic 'ar' => [ 'أ' => 'a', 'ب' => 'b', 'ت' => 't', 'ث' => 'th', 'ج' => 'g', 'ح' => 'h', 'خ' => 'kh', 'د' => 'd', 'ذ' => 'th', 'ر' => 'r', 'ز' => 'z', 'س' => 's', 'ش' => 'sh', 'ص' => 's', 'ض' => 'd', 'ط' => 't', 'ظ' => 'th', 'ع' => 'aa', 'غ' => 'gh', 'ف' => 'f', 'ق' => 'k', 'ك' => 'k', 'ل' => 'l', 'م' => 'm', 'ن' => 'n', 'ه' => 'h', 'و' => 'o', 'ي' => 'y', 'ا' => 'a', 'إ' => 'a', 'آ' => 'a', 'ؤ' => 'o', 'ئ' => 'y', 'ء' => 'aa', '٠' => '0', '١' => '1', '٢' => '2', '٣' => '3', '٤' => '4', '٥' => '5', '٦' => '6', '٧' => '7', '٨' => '8', '٩' => '9', ], // Serbian 'sr' => [ 'đ' => 'dj', 'ž' => 'z', 'ć' => 'c', 'č' => 'c', 'š' => 's', 'Đ' => 'Dj', 'Ž' => 'Z', 'Ć' => 'C', 'Č' => 'C', 'Š' => 'S', 'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'ђ' => 'dj', 'е' => 'e', 'ж' => 'z', 'з' => 'z', 'и' => 'i', 'ј' => 'j', 'к' => 'k', 'л' => 'l', 'љ' => 'lj', 'м' => 'm', 'н' => 'n', 'њ' => 'nj', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'ћ' => 'c', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c', 'ч' => 'c', 'џ' => 'dz', 'ш' => 's', 'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Ђ' => 'Dj', 'Е' => 'E', 'Ж' => 'Z', 'З' => 'Z', 'И' => 'I', 'Ј' => 'j', 'К' => 'K', 'Л' => 'L', 'Љ' => 'Lj', 'М' => 'M', 'Н' => 'N', 'Њ' => 'Nj', 'О' => 'O', 'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'Ћ' => 'C', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C', 'Ч' => 'C', 'Џ' => 'Dz', 'Ш' => 'S', ], // Serbian - Cyrillic 'sr__cyr' => [ 'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'ђ' => 'dj', 'е' => 'e', 'ж' => 'z', 'з' => 'z', 'и' => 'i', 'ј' => 'j', 'к' => 'k', 'л' => 'l', 'љ' => 'lj', 'м' => 'm', 'н' => 'n', 'њ' => 'nj', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'ћ' => 'c', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c', 'ч' => 'c', 'џ' => 'dz', 'ш' => 's', 'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Ђ' => 'Dj', 'Е' => 'E', 'Ж' => 'Z', 'З' => 'Z', 'И' => 'I', 'Ј' => 'j', 'К' => 'K', 'Л' => 'L', 'Љ' => 'Lj', 'М' => 'M', 'Н' => 'N', 'Њ' => 'Nj', 'О' => 'O', 'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'Ћ' => 'C', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C', 'Ч' => 'C', 'Џ' => 'Dz', 'Ш' => 'S', ], // Serbian - Latin 'sr__lat' => [ 'đ' => 'dj', 'ž' => 'z', 'ć' => 'c', 'č' => 'c', 'š' => 's', 'Đ' => 'Dj', 'Ž' => 'Z', 'Ć' => 'C', 'Č' => 'C', 'Š' => 'S', ], // Azerbaijani 'az' => [ 'ç' => 'c', 'ə' => 'e', 'ğ' => 'g', 'ı' => 'i', 'ö' => 'o', 'ş' => 's', 'ü' => 'u', 'Ç' => 'C', 'Ə' => 'E', 'Ğ' => 'G', 'İ' => 'I', 'Ö' => 'O', 'Ş' => 'S', 'Ü' => 'U', ], // Slovak 'sk' => [ 'á' => 'a', 'ä' => 'a', 'č' => 'c', 'ď' => 'd', 'é' => 'e', 'í' => 'i', 'ľ' => 'l', 'ĺ' => 'l', 'ň' => 'n', 'ó' => 'o', 'ô' => 'o', 'ŕ' => 'r', 'š' => 's', 'ť' => 't', 'ú' => 'u', 'ý' => 'y', 'ž' => 'z', 'Á' => 'A', 'Ä' => 'A', 'Č' => 'C', 'Ď' => 'D', 'É' => 'E', 'Í' => 'I', 'Ľ' => 'L', 'Ĺ' => 'L', 'Ň' => 'N', 'Ó' => 'O', 'Ô' => 'O', 'Ŕ' => 'R', 'Š' => 'S', 'Ť' => 'T', 'Ú' => 'U', 'Ý' => 'Y', 'Ž' => 'Z', ], // French 'fr' => [ 'Æ' => 'AE', 'æ' => 'ae', 'Œ' => 'OE', 'œ' => 'oe', 'â' => 'a', 'Â' => 'A', 'à' => 'a', 'À' => 'A', 'ä' => 'a', 'Ä' => 'A', 'ç' => 'c', 'Ç' => 'C', 'é' => 'e', 'É' => 'E', 'ê' => 'e', 'Ê' => 'E', 'ë' => 'e', 'Ë' => 'E', 'è' => 'e', 'È' => 'E', 'ï' => 'i', 'î' => 'i', 'Ï' => 'I', 'Î' => 'I', 'ÿ' => 'y', 'Ÿ' => 'Y', 'ô' => 'o', 'Ô' => 'O', 'ö' => 'o', 'Ö' => 'O', 'û' => 'u', 'Û' => 'U', 'ù' => 'u', 'Ù' => 'U', 'ü' => 'u', 'Ü' => 'U', ], // Austrian (French) 'fr_at' => [ 'ß' => 'sz', 'ẞ' => 'SZ', 'Æ' => 'AE', 'æ' => 'ae', 'Œ' => 'OE', 'œ' => 'oe', 'â' => 'a', 'Â' => 'A', 'à' => 'a', 'À' => 'A', 'ä' => 'a', 'Ä' => 'A', 'ç' => 'c', 'Ç' => 'C', 'é' => 'e', 'É' => 'E', 'ê' => 'e', 'Ê' => 'E', 'ë' => 'e', 'Ë' => 'E', 'è' => 'e', 'È' => 'E', 'ï' => 'i', 'î' => 'i', 'Ï' => 'I', 'Î' => 'I', 'ÿ' => 'y', 'Ÿ' => 'Y', 'ô' => 'o', 'Ô' => 'O', 'ö' => 'o', 'Ö' => 'O', 'û' => 'u', 'Û' => 'U', 'ù' => 'u', 'Ù' => 'U', 'ü' => 'u', 'Ü' => 'U', ], // Switzerland (French) 'fr_ch' => [ 'ß' => 'ss', 'ẞ' => 'SS', 'Æ' => 'AE', 'æ' => 'ae', 'Œ' => 'OE', 'œ' => 'oe', 'â' => 'a', 'Â' => 'A', 'à' => 'a', 'À' => 'A', 'ä' => 'a', 'Ä' => 'A', 'ç' => 'c', 'Ç' => 'C', 'é' => 'e', 'É' => 'E', 'ê' => 'e', 'Ê' => 'E', 'ë' => 'e', 'Ë' => 'E', 'è' => 'e', 'È' => 'E', 'ï' => 'i', 'î' => 'i', 'Ï' => 'I', 'Î' => 'I', 'ÿ' => 'y', 'Ÿ' => 'Y', 'ô' => 'o', 'Ô' => 'O', 'ö' => 'o', 'Ö' => 'O', 'û' => 'u', 'Û' => 'U', 'ù' => 'u', 'Ù' => 'U', 'ü' => 'u', 'Ü' => 'U', ], // German 'de' => [ 'Ä' => 'Ae', 'Ö' => 'Oe', 'Ü' => 'Ue', 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss', 'ẞ' => 'SS', ], // Austrian (German) 'de_at' => [ 'Ä' => 'Ae', 'Ö' => 'Oe', 'Ü' => 'Ue', 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'sz', 'ẞ' => 'SZ', ], // Switzerland (German) 'de_ch' => [ 'Ä' => 'Ae', 'Ö' => 'Oe', 'Ü' => 'Ue', 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss', 'ẞ' => 'SS', ], // Bengali (Bangla) 'bn' => [ 'ভ্ল' => 'vl', 'পশ' => 'psh', 'ব্ধ' => 'bdh', 'ব্জ' => 'bj', 'ব্দ' => 'bd', 'ব্ব' => 'bb', 'ব্ল' => 'bl', 'ভ' => 'v', 'ব' => 'b', 'চ্ঞ' => 'cNG', 'চ্ছ' => 'cch', 'চ্চ' => 'cc', 'ছ' => 'ch', 'চ' => 'c', 'ধ্ন' => 'dhn', 'ধ্ম' => 'dhm', 'দ্ঘ' => 'dgh', 'দ্ধ' => 'ddh', 'দ্ভ' => 'dv', 'দ্ম' => 'dm', 'ড্ড' => 'DD', 'ঢ' => 'Dh', 'ধ' => 'dh', 'দ্গ' => 'dg', 'দ্দ' => 'dd', 'ড' => 'D', 'দ' => 'd', '।' => '.', 'ঘ্ন' => 'Ghn', 'গ্ধ' => 'Gdh', 'গ্ণ' => 'GN', 'গ্ন' => 'Gn', 'গ্ম' => 'Gm', 'গ্ল' => 'Gl', 'জ্ঞ' => 'jNG', 'ঘ' => 'Gh', 'গ' => 'g', 'হ্ণ' => 'hN', 'হ্ন' => 'hn', 'হ্ম' => 'hm', 'হ্ল' => 'hl', 'হ' => 'h', 'জ্ঝ' => 'jjh', 'ঝ' => 'jh', 'জ্জ' => 'jj', 'জ' => 'j', 'ক্ষ্ণ' => 'kxN', 'ক্ষ্ম' => 'kxm', 'ক্ষ' => 'ksh', 'কশ' => 'ksh', 'ক্ক' => 'kk', 'ক্ট' => 'kT', 'ক্ত' => 'kt', 'ক্ল' => 'kl', 'ক্স' => 'ks', 'খ' => 'kh', 'ক' => 'k', 'ল্ভ' => 'lv', 'ল্ধ' => 'ldh', 'লখ' => 'lkh', 'লঘ' => 'lgh', 'লফ' => 'lph', 'ল্ক' => 'lk', 'ল্গ' => 'lg', 'ল্ট' => 'lT', 'ল্ড' => 'lD', 'ল্প' => 'lp', 'ল্ম' => 'lm', 'ল্ল' => 'll', 'ল্ব' => 'lb', 'ল' => 'l', 'ম্থ' => 'mth', 'ম্ফ' => 'mf', 'ম্ভ' => 'mv', 'মপ্ল' => 'mpl', 'ম্ন' => 'mn', 'ম্প' => 'mp', 'ম্ম' => 'mm', 'ম্ল' => 'ml', 'ম্ব' => 'mb', 'ম' => 'm', '০' => '0', '১' => '1', '২' => '2', '৩' => '3', '৪' => '4', '৫' => '5', '৬' => '6', '৭' => '7', '৮' => '8', '৯' => '9', 'ঙ্ক্ষ' => 'Ngkx', 'ঞ্ছ' => 'nch', 'ঙ্ঘ' => 'ngh', 'ঙ্খ' => 'nkh', 'ঞ্ঝ' => 'njh', 'ঙ্গৌ' => 'ngOU', 'ঙ্গৈ' => 'ngOI', 'ঞ্চ' => 'nc', 'ঙ্ক' => 'nk', 'ঙ্ষ' => 'Ngx', 'ঙ্গ' => 'ngo', 'ঙ্ম' => 'Ngm', 'ঞ্জ' => 'nj', 'ন্ধ' => 'ndh', 'ন্ঠ' => 'nTh', 'ণ্ঠ' => 'NTh', 'ন্থ' => 'nth', 'ঙ্গা' => 'nga', 'ঙ্গি' => 'ngi', 'ঙ্গী' => 'ngI', 'ঙ্গু' => 'ngu', 'ঙ্গূ' => 'ngU', 'ঙ্গে' => 'nge', 'ঙ্গো' => 'ngO', 'ণ্ঢ' => 'NDh', 'নশ' => 'nsh', 'ঙর' => 'Ngr', 'ঞর' => 'NGr', 'ংর' => 'ngr', 'ঙ' => 'Ng', 'ঞ' => 'NG', 'ং' => 'ng', 'ন্ন' => 'nn', 'ণ্ণ' => 'NN', 'ণ্ন' => 'Nn', 'ন্ম' => 'nm', 'ণ্ম' => 'Nm', 'ন্দ' => 'nd', 'ন্ট' => 'nT', 'ণ্ট' => 'NT', 'ন্ড' => 'nD', 'ণ্ড' => 'ND', 'ন্ত' => 'nt', 'ন্স' => 'ns', 'ন' => 'n', 'ণ' => 'N', 'ৈ' => 'OI', 'ৌ' => 'OU', 'ো' => 'O', 'ঐ' => 'OI', 'ঔ' => 'OU', 'অ' => 'o', 'ও' => 'oo', 'ফ্ল' => 'fl', 'প্ট' => 'pT', 'প্ত' => 'pt', 'প্ন' => 'pn', 'প্প' => 'pp', 'প্ল' => 'pl', 'প্স' => 'ps', 'ফ' => 'f', 'প' => 'p', 'ৃ' => 'rri', 'ঋ' => 'rri', 'রর‍্য' => 'rry', '্র্য' => 'ry', '্রর' => 'rr', 'ড়্গ' => 'Rg', 'ঢ়' => 'Rh', 'ড়' => 'R', 'র' => 'r', '্র' => 'r', 'শ্ছ' => 'Sch', 'ষ্ঠ' => 'ShTh', 'ষ্ফ' => 'Shf', 'স্ক্ল' => 'skl', 'স্খ' => 'skh', 'স্থ' => 'sth', 'স্ফ' => 'sf', 'শ্চ' => 'Sc', 'শ্ত' => 'St', 'শ্ন' => 'Sn', 'শ্ম' => 'Sm', 'শ্ল' => 'Sl', 'ষ্ক' => 'Shk', 'ষ্ট' => 'ShT', 'ষ্ণ' => 'ShN', 'ষ্প' => 'Shp', 'ষ্ম' => 'Shm', 'স্প্ল' => 'spl', 'স্ক' => 'sk', 'স্ট' => 'sT', 'স্ত' => 'st', 'স্ন' => 'sn', 'স্প' => 'sp', 'স্ম' => 'sm', 'স্ল' => 'sl', 'শ' => 'S', 'ষ' => 'Sh', 'স' => 's', 'ু' => 'u', 'উ' => 'u', 'অ্য' => 'oZ', 'ত্থ' => 'tth', 'ৎ' => 'tt', 'ট্ট' => 'TT', 'ট্ম' => 'Tm', 'ঠ' => 'Th', 'ত্ন' => 'tn', 'ত্ম' => 'tm', 'থ' => 'th', 'ত্ত' => 'tt', 'ট' => 'T', 'ত' => 't', 'অ্যা' => 'AZ', 'া' => 'a', 'আ' => 'a', 'য়া' => 'ya', 'য়' => 'y', 'ি' => 'i', 'ই' => 'i', 'ী' => 'ee', 'ঈ' => 'ee', 'ূ' => 'uu', 'ঊ' => 'uu', 'ে' => 'e', 'এ' => 'e', 'য' => 'z', '্য' => 'Z', 'ইয়' => 'y', 'ওয়' => 'w', '্ব' => 'w', 'এক্স' => 'x', 'ঃ' => ':', 'ঁ' => 'nn', '্‌' => '', ], // English 'en' => [ ], // Latin (+ Cyrillic ?) chars // // -> Mix of languages, but we need to keep this here, so that different languages can handle there own behavior. 'latin' => [ '˚' => '0', '¹' => '1', '²' => '2', '³' => '3', '⁴' => '4', '⁵' => '5', '⁶' => '6', '⁷' => '7', '⁸' => '8', '⁹' => '9', '₀' => '0', '₁' => '1', '₂' => '2', '₃' => '3', '₄' => '4', '₅' => '5', '₆' => '6', '₇' => '7', '₈' => '8', '₉' => '9', '௦' => '0', '௧' => '1', '௨' => '2', '௩' => '3', '௪' => '4', '௫' => '5', '௬' => '6', '௭' => '7', '௮' => '8', '௯' => '9', '௰' => '10', '௱' => '100', '௲' => '1000', 'Ꜳ' => 'AA', 'ꜳ' => 'aa', 'Æ' => 'AE', 'æ' => 'ae', 'Ǽ' => 'AE', 'ǽ' => 'ae', 'Ꜵ' => 'AO', 'ꜵ' => 'ao', 'Ꜷ' => 'AU', 'ꜷ' => 'au', 'Ꜹ' => 'AV', 'ꜹ' => 'av', 'Ꜻ' => 'av', 'ꜻ' => 'av', 'Ꜽ' => 'AY', 'ꜽ' => 'ay', 'ȸ' => 'db', 'ʣ' => 'dz', 'ʥ' => 'dz', 'ʤ' => 'dezh', '🙰' => 'et', 'ff' => 'ff', 'ffi' => 'ffi', 'ffl' => 'ffl', 'fi' => 'fi', 'fl' => 'fl', 'ʩ' => 'feng', 'IJ' => 'IJ', 'ij' => 'ij', 'ʪ' => 'ls', 'ʫ' => 'lz', 'ɮ' => 'lezh', 'ȹ' => 'qp', 'ʨ' => 'tc', 'ʦ' => 'ts', 'ʧ' => 'tesh', 'Œ' => 'OE', 'œ' => 'oe', 'Ꝏ' => 'OO', 'ꝏ' => 'oo', 'ẞ' => 'SS', 'ß' => 'ss', 'st' => 'st', 'ſt' => 'st', 'Ꜩ' => 'TZ', 'ꜩ' => 'tz', 'ᵫ' => 'ue', 'Aι' => 'Ai', 'αι' => 'ai', 'Ει' => 'Ei', 'ει' => 'ei', 'Οι' => 'Oi', 'οι' => 'oi', 'Ου' => 'Oy', 'ου' => 'oy', 'Υι' => 'Yi', 'υι' => 'yi', 'ἀ' => 'a', 'ἁ' => 'a', 'ἂ' => 'a', 'ἃ' => 'a', 'ἄ' => 'a', 'ἅ' => 'a', 'ἆ' => 'a', 'ἇ' => 'a', 'Ἀ' => 'A', 'Ἁ' => 'A', 'Ἂ' => 'A', 'Ἃ' => 'A', 'Ἄ' => 'A', 'Ἅ' => 'A', 'Ἆ' => 'A', 'Ἇ' => 'A', 'ᾰ' => 'a', 'ᾱ' => 'a', 'ᾲ' => 'a', 'ᾳ' => 'a', 'ᾴ' => 'a', 'ᾶ' => 'a', 'ᾷ' => 'a', 'Ᾰ' => 'A', 'Ᾱ' => 'A', 'Ὰ' => 'A', 'Ά' => 'A', 'ᾼ' => 'A', 'Ä' => 'A', 'ä' => 'a', 'À' => 'A', 'à' => 'a', 'Á' => 'A', 'á' => 'a', 'Â' => 'A', 'â' => 'a', 'Ã' => 'A', 'ã' => 'a', 'A̧' => 'A', 'a̧' => 'a', 'Ą' => 'A', 'ą' => 'a', 'Ⱥ' => 'A', 'ⱥ' => 'a', 'Å' => 'A', 'å' => 'a', 'Ǻ' => 'A', 'ǻ' => 'a', 'Ă' => 'A', 'ă' => 'a', 'Ǎ' => 'A', 'ǎ' => 'a', 'Ȧ' => 'A', 'ȧ' => 'a', 'Ạ' => 'A', 'ạ' => 'a', 'Ā' => 'A', 'ā' => 'a', 'ª' => 'a', 'Ɓ' => 'B', 'Ѣ' => 'E', 'ѣ' => 'e', 'Ç' => 'C', 'ç' => 'c', 'Ĉ' => 'C', 'ĉ' => 'c', 'C̈' => 'C', 'c̈' => 'c', 'C̨' => 'C', 'c̨' => 'c', 'Ȼ' => 'C', 'ȼ' => 'c', 'Č' => 'C', 'č' => 'c', 'Ć' => 'C', 'ć' => 'c', 'C̀' => 'C', 'c̀' => 'c', 'Ċ' => 'C', 'ċ' => 'c', 'C̣' => 'C', 'c̣' => 'c', 'C̄' => 'C', 'c̄' => 'c', 'C̃' => 'C', 'c̃' => 'c', 'Ð' => 'D', 'Đ' => 'D', 'ð' => 'd', 'đ' => 'd', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ĕ' => 'E', 'Ė' => 'E', 'Ȩ' => 'E', 'ȩ' => 'e', 'Ę' => 'E', 'ę' => 'e', 'Ɇ' => 'E', 'ɇ' => 'e', 'Ě' => 'E', 'ě' => 'e', 'Ẹ' => 'E', 'ẹ' => 'e', 'Ē' => 'E', 'ē' => 'e', 'Ẽ' => 'E', 'ẽ' => 'e', 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ĕ' => 'e', 'ė' => 'e', 'ƒ' => 'f', 'Ѳ' => 'F', 'ѳ' => 'f', 'Ĝ' => 'G', 'Ġ' => 'G', 'ĝ' => 'g', 'ġ' => 'g', 'Ĥ' => 'H', 'Ħ' => 'H', 'ĥ' => 'h', 'ħ' => 'h', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ĩ' => 'I', 'Ĭ' => 'I', 'Ǐ' => 'I', 'Į' => 'I', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ĩ' => 'i', 'ĭ' => 'i', 'ǐ' => 'i', 'į' => 'i', 'І' => 'I', 'і' => 'i', 'I̧' => 'I', 'i̧' => 'i', 'Ɨ' => 'I', 'ɨ' => 'i', 'İ' => 'I', 'i' => 'i', 'Ị' => 'I', 'ị' => 'i', 'Ī' => 'I', 'ī' => 'i', 'Ĵ' => 'J', 'ĵ' => 'j', 'J́́' => 'J', 'j́' => 'j', 'J̀̀' => 'J', 'j̀' => 'j', 'J̈' => 'J', 'j̈' => 'j', 'J̧' => 'J', 'j̧' => 'j', 'J̨' => 'J', 'j̨' => 'j', 'Ɉ' => 'J', 'ɉ' => 'j', 'J̌' => 'J', 'ǰ' => 'j', 'J̇' => 'J', 'j' => 'j', 'J̣' => 'J', 'j̣' => 'j', 'J̄' => 'J', 'j̄' => 'j', 'J̃' => 'J', 'j̃' => 'j', 'Й' => 'i', 'й' => 'i', 'ĸ' => 'k', 'Ĺ' => 'L', 'Ľ' => 'L', 'Ŀ' => 'L', 'ĺ' => 'l', 'ľ' => 'l', 'ŀ' => 'l', 'L̀' => 'L', 'l̀' => 'l', 'L̂' => 'L', 'l̂' => 'l', 'L̈' => 'L', 'l̈' => 'l', 'Ļ' => 'L', 'ļ' => 'l', 'L̨' => 'L', 'l̨' => 'l', 'Ł' => 'L', 'ł' => 'l', 'Ƚ' => 'L', 'ƚ' => 'l', 'L̇' => 'L', 'l̇' => 'l', 'Ḷ' => 'L', 'ḷ' => 'l', 'L̄' => 'L', 'l̄' => 'l', 'L̃' => 'L', 'l̃' => 'l', 'Ñ' => 'N', 'ñ' => 'n', 'Ŋ' => 'N', 'ŋ' => 'n', 'ʼn' => 'n', 'Ń' => 'N', 'ń' => 'n', 'Ǹ' => 'N', 'ǹ' => 'n', 'N̂' => 'N', 'n̂' => 'n', 'N̈' => 'N', 'n̈' => 'n', 'Ņ' => 'N', 'ņ' => 'n', 'N̨' => 'N', 'n̨' => 'n', 'Ꞥ' => 'N', 'ꞥ' => 'n', 'Ň' => 'N', 'ň' => 'n', 'Ṅ' => 'N', 'ṅ' => 'n', 'Ṇ' => 'N', 'ṇ' => 'n', 'N̄' => 'N', 'n̄' => 'n', 'Ö' => 'O', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ō' => 'O', 'Ŏ' => 'O', 'Ǒ' => 'O', 'Ő' => 'O', 'Ơ' => 'O', 'Ø' => 'O', 'Ǿ' => 'O', 'ö' => 'o', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ō' => 'o', 'ŏ' => 'o', 'ǒ' => 'o', 'ő' => 'o', 'ơ' => 'o', 'ø' => 'o', 'ǿ' => 'o', 'º' => 'o', 'O̧' => 'O', 'o̧' => 'o', 'Ǫ' => 'O', 'ǫ' => 'o', 'Ɵ' => 'O', 'ɵ' => 'o', 'Ȯ' => 'O', 'ȯ' => 'o', 'Ọ' => 'O', 'ọ' => 'o', 'Ŕ' => 'R', 'Ŗ' => 'R', 'ŕ' => 'r', 'ŗ' => 'r', 'Ŝ' => 'S', 'Ș' => 'S', 'ș' => 's', 'Ś' => 'S', 'ś' => 's', 'S̀' => 'S', 's̀' => 's', 'Ŝ̀' => 'S', 'ŝ' => 's', 'S̈' => 'S', 's̈' => 's', 'Ş' => 'S', 'ş' => 's', 'S̨' => 'S', 's̨' => 's', 'Ꞩ' => 'S', 'ꞩ' => 's', 'Š' => 'S', 'š' => 's', 'Ṡ' => 'S', 'ṡ' => 's', 'Ṣ' => 'S', 'ṣ' => 's', 'S̄' => 'S', 's̄' => 's', 'S̃' => 'S', 's̃' => 's', 'ſ' => 's', 'Ţ' => 'T', 'Ț' => 'T', 'Ŧ' => 'T', 'Þ' => 'TH', 'ţ' => 't', 'ț' => 't', 'ŧ' => 't', 'þ' => 'th', 'T́' => 'T', 't́' => 't', 'T̀' => 'T', 't̀' => 't', 'T̂' => 'T', 't̂' => 't', 'T̈' => 'T', 'ẗ' => 't', 'T̨' => 'T', 't̨' => 't', 'Ⱦ' => 'T', 'ⱦ' => 't', 'Ť' => 'T', 'ť' => 't', 'Ṫ' => 'T', 'ṫ' => 't', 'Ṭ' => 'T', 'ṭ' => 't', 'T̄' => 'T', 't̄' => 't', 'T̃' => 'T', 't̃' => 't', 'Ü' => 'U', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ũ' => 'U', 'Ŭ' => 'U', 'Ű' => 'U', 'Ų' => 'U', 'Ư' => 'U', 'Ǔ' => 'U', 'Ǖ' => 'U', 'Ǘ' => 'U', 'Ǚ' => 'U', 'Ǜ' => 'U', 'ü' => 'u', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ũ' => 'u', 'ŭ' => 'u', 'ű' => 'u', 'ų' => 'u', 'ư' => 'u', 'ǔ' => 'u', 'ǖ' => 'u', 'ǘ' => 'u', 'ǚ' => 'u', 'ǜ' => 'u', 'U̧' => 'U', 'u̧' => 'u', 'Ʉ' => 'U', 'ʉ' => 'u', 'U̇' => 'U', 'u̇' => 'u', 'Ụ' => 'U', 'ụ' => 'u', 'Ū' => 'U', 'ū' => 'u', 'Ʊ' => 'U', 'ʊ' => 'u', 'Ŵ' => 'W', 'ŵ' => 'w', 'Ẁ' => 'W', 'ẁ' => 'w', 'Ẃ' => 'W', 'ẃ' => 'w', 'Ẅ' => 'W', 'ẅ' => 'w', 'Ѵ' => 'I', 'ѵ' => 'i', 'Ꙗ' => 'Ja', 'ꙗ' => 'ja', 'Є' => 'Je', 'є' => 'je', 'Ѥ' => 'Je', 'ѥ' => 'je', 'Ѕ' => 'Dz', 'ѕ' => 'dz', 'Ꙋ' => 'U', 'ꙋ' => 'u', 'Ѡ' => 'O', 'ѡ' => 'o', 'Ѿ' => 'Ot', 'ѿ' => 'ot', 'Ѫ' => 'U', 'ѫ' => 'u', 'Ѧ' => 'Ja', 'ѧ' => 'ja', 'Ѭ' => 'Ju', 'ѭ' => 'ju', 'Ѩ' => 'Ja', 'ѩ' => 'Ja', 'Ѯ' => 'Ks', 'ѯ' => 'ks', 'Ѱ' => 'Ps', 'ѱ' => 'ps', 'Х' => 'X', 'х' => 'x', 'Ý' => 'Y', 'Ÿ' => 'Y', 'Ŷ' => 'Y', 'ý' => 'y', 'ÿ' => 'y', 'ŷ' => 'y', 'Ỳ' => 'Y', 'ỳ' => 'y', 'Y̧' => 'Y', 'y̧' => 'y', 'Y̨' => 'Y', 'y̨' => 'y', 'Ɏ' => 'Y', 'ɏ' => 'y', 'Y̌' => 'Y', 'y̌' => 'y', 'Ẏ' => 'Y', 'ẏ' => 'y', 'Ỵ' => 'Y', 'ỵ' => 'y', 'Ȳ' => 'Y', 'ȳ' => 'y', 'Ỹ' => 'Y', 'ỹ' => 'y', 'Щ' => 'Shh', 'щ' => 'shh', 'Ź' => 'Z', 'ź' => 'z', 'Z̀' => 'Z', 'z̀' => 'z', 'Ẑ' => 'Z', 'ẑ' => 'z', 'Z̈' => 'Z', 'z̈' => 'z', 'Z̧' => 'Z', 'z̧' => 'z', 'Z̨' => 'Z', 'z̨' => 'z', 'Ƶ' => 'Z', 'ƶ' => 'z', 'Ž' => 'Z', 'ž' => 'z', 'Ż' => 'Z', 'ż' => 'z', 'Ẓ' => 'Z', 'ẓ' => 'z', 'Z̄' => 'Z', 'z̄' => 'z', 'Z̃' => 'Z', 'z̃' => 'z', ], // whitespace chars ' ' => [ "\xc2\xa0" => ' ', // 'NO-BREAK SPACE' "\xe1\x9a\x80" => ' ', // 'OGHAM SPACE MARK' "\xe2\x80\x80" => ' ', // 'EN QUAD' "\xe2\x80\x81" => ' ', // 'EM QUAD' "\xe2\x80\x82" => ' ', // 'EN SPACE' "\xe2\x80\x83" => ' ', // 'EM SPACE' "\xe2\x80\x84" => ' ', // 'THREE-PER-EM SPACE' "\xe2\x80\x85" => ' ', // 'FOUR-PER-EM SPACE' "\xe2\x80\x86" => ' ', // 'SIX-PER-EM SPACE' "\xe2\x80\x87" => ' ', // 'FIGURE SPACE' "\xe2\x80\x88" => ' ', // 'PUNCTUATION SPACE' "\xe2\x80\x89" => ' ', // 'THIN SPACE' "\xe2\x80\x8a" => ' ', // 'HAIR SPACE' "\xe2\x80\xa8" => ' ', // 'LINE SEPARATOR' "\xe2\x80\xa9" => ' ', // 'PARAGRAPH SEPARATOR' "\xe2\x80\x8b" => ' ', // 'ZERO WIDTH SPACE' "\xe2\x80\xaf" => ' ', // 'NARROW NO-BREAK SPACE' "\xe2\x81\x9f" => ' ', // 'MEDIUM MATHEMATICAL SPACE' "\xe3\x80\x80" => ' ', // 'IDEOGRAPHIC SPACE' "\xef\xbe\xa0" => ' ', // 'HALFWIDTH HANGUL FILLER' ], // commonly used in Word documents 'msword' => [ "\xc2\xab" => '<<', // « (U+00AB) in UTF-8 "\xc2\xbb" => '>>', // » (U+00BB) in UTF-8 "\xe2\x80\x98" => "'", // ‘ (U+2018) in UTF-8 "\xe2\x80\x99" => "'", // ’ (U+2019) in UTF-8 "\xe2\x80\x9a" => "'", // ‚ (U+201A) in UTF-8 "\xe2\x80\x9b" => "'", // ‛ (U+201B) in UTF-8 "\xe2\x80\x9c" => '"', // “ (U+201C) in UTF-8 "\xe2\x80\x9d" => '"', // ” (U+201D) in UTF-8 "\xe2\x80\x9e" => '"', // „ (U+201E) in UTF-8 "\xe2\x80\x9f" => '"', // ‟ (U+201F) in UTF-8 "\xe2\x80\xb9" => "'", // ‹ (U+2039) in UTF-8 "\xe2\x80\xba" => "'", // › (U+203A) in UTF-8 "\xe2\x80\x93" => '-', // – (U+2013) in UTF-8 "\xe2\x80\x94" => '-', // — (U+2014) in UTF-8 "\xe2\x80\xa6" => '...', // … (U+2026) in UTF-8 ], // Currency // // url => https://en.wikipedia.org/wiki/Currency_symbol 'currency_short' => [ '€' => 'EUR', '$' => '$', '₢' => 'Cr', '₣' => 'Fr.', '£' => 'PS', '₤' => 'L.', 'ℳ' => 'M', '₥' => 'mil', '₦' => 'N', '₧' => 'Pts', '₨' => 'Rs', 'රු' => 'LKR', 'ரூ' => 'LKR', '௹' => 'Rs', 'रू' => 'NPR', '₹' => 'Rs', '૱' => 'Rs', '₩' => 'W', '₪' => 'NS', '₸' => 'KZT', '₫' => 'D', '֏' => 'AMD', '₭' => 'K', '₺' => 'TL', '₼' => 'AZN', '₮' => 'T', '₯' => 'Dr', '₲' => 'PYG', '₾' => 'GEL', '₳' => 'ARA', '₴' => 'UAH', '₽' => 'RUB', '₵' => 'GHS', '₡' => 'CL', '¢' => 'c', '¥' => 'YEN', '円' => 'JPY', '৳' => 'BDT', '元' => 'CNY', '﷼' => 'SAR', '៛' => 'KR', '₠' => 'ECU', '¤' => '$?', '฿' => 'THB', '؋' => 'AFN', ], ]; <?php return [ // Dutch (Flemish) 'nl' => [ '=' => ' gelijk ', '%' => ' procent ', '∑' => ' som ', '∆' => ' delta ', '∞' => ' oneindig ', '♥' => ' love ', '&' => ' en ', '+' => ' plus ', ], // Italian 'it' => [ '=' => ' uguale ', '%' => ' percent ', '∑' => ' somma ', '∆' => ' delta ', '∞' => ' infinito ', '♥' => ' amore ', '&' => ' e ', '+' => ' piu ', ], // Macedonian 'mk' => [ '=' => ' ednakva ', '%' => ' procenti ', '∑' => ' zbir ', '∆' => ' delta ', '∞' => ' beskonecnost ', '♥' => ' loveubov ', '&' => ' i ', '+' => ' plus ', ], // Portuguese (Brazil) 'pt' => [ '=' => ' igual ', '%' => ' por cento ', '∑' => ' soma ', '∆' => ' delta ', '∞' => ' infinito ', '♥' => ' amor ', '&' => ' e ', '+' => ' mais ', ], // Greek(lish) (Elláda) 'el__greeklish' => [ '=' => ' isos ', '%' => ' tois ekato ', '∑' => ' athroisma ', '∆' => ' delta ', '∞' => ' apeiro ', '♥' => ' agape ', '&' => ' kai ', '+' => ' syn ', ], // Greek (Elláda) 'el' => [ '=' => ' isos ', '%' => ' tois ekato ', '∑' => ' athroisma ', '∆' => ' delta ', '∞' => ' apeiro ', '♥' => ' agape ', '&' => ' kai ', '+' => ' syn ', ], // Hindi 'hi' => [ '=' => ' samana ', '%' => ' paratisata ', '∑' => ' yoga ', '∆' => ' dalata ', '∞' => ' anata ', '♥' => ' payara ', '&' => ' aura ', '+' => ' palasa ', ], // Armenian 'hy' => [ '=' => ' havasar ', '%' => ' tvokvos ', '∑' => ' gvoumar ', '∆' => ' delta ', '∞' => ' ansahmanvouthyvoun ', '♥' => ' ser ', '&' => ' ev ', '+' => ' gvoumarats ', ], // Swedish 'sv' => [ '=' => ' lika ', '%' => ' procent ', '∑' => ' summa ', '∆' => ' delta ', '∞' => ' oandlighet ', '♥' => ' alskar ', '&' => ' och ', '+' => ' plus ', ], // Turkmen 'tk' => [ '=' => ' den ', '%' => ' yuzde ', '∑' => ' jem ', '∆' => ' delta ', '∞' => ' mudimilik ', '♥' => ' soygi ', '&' => ' we ', '+' => ' yzy ', ], // Turkish 'tr' => [ '=' => ' esit ', '%' => ' yuzde ', '∑' => ' Toplam ', '∆' => ' delta ', '∞' => ' sonsuzluk ', '♥' => ' ask ', '&' => ' ve ', '+' => ' arti ', ], // Bulgarian 'bg' => [ '=' => ' raven ', '%' => ' na sto ', '∑' => ' suma ', '∆' => ' delta ', '∞' => ' bezkrajnost ', '♥' => ' obicam ', '&' => ' i ', '+' => ' plus ', ], // Hungarian 'hu' => [ '=' => ' Egyenlo ', '%' => ' Szazalek ', '∑' => ' osszeg ', '∆' => ' delta ', '∞' => ' vegtelenitett ', '♥' => ' love ', '&' => ' Es ', '+' => ' Plusz ', ], // Myanmar (Burmese) 'my' => [ '=' => ' ttn:ttnnym? ', '%' => ' raakhngnn:k ', '∑' => ' ld ', '∆' => ' m?cwk?n:pe? ', '∞' => ' ach:m ', '♥' => ' mettttaa ', '&' => ' n ', '+' => ' ape?ng: ', ], // Croatian (Hrvatska) 'hr' => [ '=' => ' Jednaki ', '%' => ' Posto ', '∑' => ' zbroj ', '∆' => ' Delta ', '∞' => ' beskonacno ', '♥' => ' ljubav ', '&' => ' I ', '+' => ' Plus ', ], // Finnish 'fi' => [ '=' => ' Sama ', '%' => ' Prosenttia ', '∑' => ' sum ', '∆' => ' delta ', '∞' => ' aareton ', '♥' => ' rakkautta ', '&' => ' Ja ', '+' => ' Plus ', ], // Georgian (Kartvelian) 'ka' => [ '=' => ' tanasts\'ori ', '%' => ' p\'rotsent\'i ', '∑' => ' tankha ', '∆' => ' delt\'a ', '∞' => ' usasrulo ', '♥' => ' siq\'varuli ', '&' => ' da ', '+' => ' p\'lus ', ], // Russian 'ru' => [ '=' => ' ravnyj ', '%' => ' procent ', '∑' => ' summa ', '∆' => ' del\'ta ', '∞' => ' beskonecnost\' ', '♥' => ' lublu ', '&' => ' i ', '+' => ' plus ', ], // Russian - GOST 7.79-2000(B) 'ru__gost_2000_b' => [ '=' => ' ravnyj ', '%' => ' procent ', '∑' => ' summa ', '∆' => ' del\'ta ', '∞' => ' beskonecnost\' ', '♥' => ' lublu ', '&' => ' i ', '+' => ' plus ', ], // Russian - Passport (2013), ICAO 'ru__passport_2013' => [ '=' => ' ravnyj ', '%' => ' procent ', '∑' => ' summa ', '∆' => ' del\'ta ', '∞' => ' beskonecnost\' ', '♥' => ' lublu ', '&' => ' i ', '+' => ' plus ', ], // Ukrainian 'uk' => [ '=' => ' rivnij ', '%' => ' vidsotkiv ', '∑' => ' suma ', '∆' => ' del\'ta ', '∞' => ' neskincennist\' ', '♥' => ' lubov ', '&' => ' i ', '+' => ' plus ', ], // Kazakh 'kk' => [ '=' => ' ten\' ', '%' => ' Pajyzdar ', '∑' => ' zalpy ', '∆' => ' ajyrmasylyk, ', '∞' => ' seksiz ', '♥' => ' mahabbat ', '&' => ' z@ne ', '+' => ' plus ', ], // Czech 'cs' => [ '=' => ' rovnat se ', '%' => ' procento ', '∑' => ' soucet ', '∆' => ' delta ', '∞' => ' nekonecno ', '♥' => ' laska ', '&' => ' a ', '+' => ' plus ', ], // Danish 'da' => [ '=' => ' Lige ', '%' => ' Prozent ', '∑' => ' sum ', '∆' => ' delta ', '∞' => ' uendelig ', '♥' => ' kaerlighed ', '&' => ' Og ', '+' => ' Plus ', ], // Polish 'pl' => [ '=' => ' rowny ', '%' => ' procent ', '∑' => ' suma ', '∆' => ' delta ', '∞' => ' nieskonczonosc ', '♥' => ' milosc ', '&' => ' i ', '+' => ' plus ', ], // Romanian 'ro' => [ '=' => ' egal ', '%' => ' la suta ', '∑' => ' suma ', '∆' => ' delta ', '∞' => ' infinit ', '♥' => ' dragoste ', '&' => ' si ', '+' => ' la care se adauga ', ], // Esperanto 'eo' => [ '=' => ' Egalaj ', '%' => ' Procento ', '∑' => ' sumo ', '∆' => ' delto ', '∞' => ' senfina ', '♥' => ' amo ', '&' => ' Kaj ', '+' => ' Pli ', ], // Estonian 'et' => [ '=' => ' Vordsed ', '%' => ' Protsenti ', '∑' => ' summa ', '∆' => ' o ', '∞' => ' loputut ', '♥' => ' armastus ', '&' => ' Ja ', '+' => ' Pluss ', ], // Latvian 'lv' => [ '=' => ' vienads ', '%' => ' procents ', '∑' => ' summa ', '∆' => ' delta ', '∞' => ' bezgaliba ', '♥' => ' milestiba ', '&' => ' un ', '+' => ' pluss ', ], // Lithuanian 'lt' => [ '=' => ' lygus ', '%' => ' procentu ', '∑' => ' suma ', '∆' => ' delta ', '∞' => ' begalybe ', '♥' => ' meile ', '&' => ' ir ', '+' => ' plius ', ], // Norwegian 'no' => [ '=' => ' Lik ', '%' => ' Prosent ', '∑' => ' sum ', '∆' => ' delta ', '∞' => ' uendelig ', '♥' => ' kjaerlighet ', '&' => ' Og ', '+' => ' Pluss ', ], // Vietnamese 'vi' => [ '=' => ' cong bang ', '%' => ' phan tram ', '∑' => ' tong so ', '∆' => ' dong bang ', '∞' => ' vo cuc ', '♥' => ' Yeu ', '&' => ' va ', '+' => ' them ', ], // Arabic 'ar' => [ '=' => ' mtsawy ', '%' => ' nsbh mywyh ', '∑' => ' mjmw\' ', '∆' => ' dlta ', '∞' => ' ma la nhayt ', '♥' => ' hb ', '&' => ' w ', '+' => ' zayd ', ], // Persian (Farsi) 'fa' => [ '=' => ' brabr ', '%' => ' dr sd ', '∑' => ' mjmw\' ', '∆' => ' dlta ', '∞' => ' by nhayt ', '♥' => ' \'shq ', '&' => ' w ', '+' => ' bh \'lawh ', ], // Serbian 'sr' => [ '=' => ' jednak ', '%' => ' procenat ', '∑' => ' zbir ', '∆' => ' delta ', '∞' => ' beskraj ', '♥' => ' lubav ', '&' => ' i ', '+' => ' vise ', ], // Serbian - Cyrillic 'sr__cyr' => [ '=' => ' jednak ', '%' => ' procenat ', '∑' => ' zbir ', '∆' => ' delta ', '∞' => ' beskraj ', '♥' => ' lubav ', '&' => ' i ', '+' => ' vise ', ], // Serbian - Latin 'sr__lat' => [ '=' => ' jednak ', '%' => ' procenat ', '∑' => ' zbir ', '∆' => ' delta ', '∞' => ' beskraj ', '♥' => ' lubav ', '&' => ' i ', '+' => ' vise ', ], // Azerbaijani 'az' => [ '=' => ' b@rab@r ', '%' => ' faiz ', '∑' => ' m@bl@g ', '∆' => ' delta ', '∞' => ' sonsuzluq ', '♥' => ' sevgi ', '&' => ' v@ ', '+' => ' plus ', ], // Slovak 'sk' => [ '=' => ' rovny ', '%' => ' percento ', '∑' => ' sucet ', '∆' => ' delta ', '∞' => ' infinity ', '♥' => ' milovat ', '&' => ' a ', '+' => ' viac ', ], // French 'fr' => [ '=' => ' Egal ', '%' => ' Pourcentage ', '∑' => ' somme ', '∆' => ' delta ', '∞' => ' infini ', '♥' => ' amour ', '&' => ' Et ', '+' => ' Plus ', ], // Austrian (French) 'fr_at' => [ '=' => ' Egal ', '%' => ' Pourcentage ', '∑' => ' somme ', '∆' => ' delta ', '∞' => ' infini ', '♥' => ' amour ', '&' => ' Et ', '+' => ' Plus ', ], // Switzerland (French) 'fr_ch' => [ '=' => ' Egal ', '%' => ' Pourcentage ', '∑' => ' somme ', '∆' => ' delta ', '∞' => ' infini ', '♥' => ' amour ', '&' => ' Et ', '+' => ' Plus ', ], // German 'de' => [ '=' => ' gleich ', '%' => ' Prozent ', '∑' => ' gesamt ', '∆' => ' Unterschied ', '∞' => ' undendlich ', '♥' => ' liebe ', '&' => ' und ', '+' => ' plus ', ], // Austrian (German) 'de_at' => [ '=' => ' gleich ', '%' => ' Prozent ', '∑' => ' gesamt ', '∆' => ' Unterschied ', '∞' => ' undendlich ', '♥' => ' liebe ', '&' => ' und ', '+' => ' plus ', ], // Switzerland (German) 'de_ch' => [ '=' => ' gleich ', '%' => ' Prozent ', '∑' => ' gesamt ', '∆' => ' Unterschied ', '∞' => ' undendlich ', '♥' => ' liebe ', '&' => ' und ', '+' => ' plus ', ], // Bengali (Bangla) 'bn' => [ '=' => ' Saman ', '%' => ' Satakora ', '∑' => ' Samasti ', '∆' => ' Badhip ', '∞' => ' Ananta ', '♥' => ' Valobasa ', '&' => ' Abong ', '+' => ' Songzojon ', ], // English 'en' => [ '=' => ' equal ', '%' => ' percent ', '∑' => ' sum ', '∆' => ' delta ', '∞' => ' infinity ', '♥' => ' love ', '&' => ' and ', '+' => ' plus ', ], // Currency // // url: https://en.wikipedia.org/wiki/Currency_symbol 'currency' => [ '€' => ' Euro ', '$' => ' Dollar ', '₢' => ' cruzeiro ', '₣' => ' French franc ', '£' => ' pound ', '₤' => ' lira ', // Italian '₶' => ' livre tournois ', 'ℳ' => ' mark ', '₥' => ' mill ', '₦' => ' naira ', '₧' => ' peseta ', '₨' => ' rupee ', 'රු' => ' rupee ', // Sri Lankan 'ரூ' => ' rupee ', // Sri Lankan '௹' => ' rupee ', // Tamil 'रू' => ' rupee ', // Nepalese '₹' => ' rupee ', // Indian '૱' => ' rupee ', // Gujarat '₩' => ' won ', '₪' => ' new shequel ', '₸' => ' tenge ', '₫' => ' dong ', '֏' => ' dram ', '₭' => ' kip ', '₺' => ' lira ', // Turkish '₼' => ' manat ', '₮' => ' tugrik ', '₯' => ' drachma ', '₰' => ' pfennig ', '₷' => ' spesmilo ', '₱' => ' peso ', // Philippine '﷼‎' => ' riyal ', '₲' => ' guarani ', '₾' => ' lari ', '₳' => ' austral ', '₴' => ' hryvnia ', '₽' => ' ruble ', '₵' => ' cedi ', '₡' => ' colon ', '¢' => ' cent ', '¥' => ' yen ', '円' => ' yen ', '৳' => ' taka ', '元' => ' yuan ', '﷼' => ' riyal ', '៛' => ' riel ', '₠' => ' European Currency ', '¤' => ' currency ', '฿' => ' baht ', '؋' => ' afghani ', ], // Temperature // // url: https://en.wikipedia.org/wiki/Conversion_of_units_of_temperature 'temperature' => [ '°De' => ' Delisle ', '°Re' => ' Reaumur ', // Réaumur '°Ro' => ' Romer ', // Rømer '°R' => ' Rankine ', '°C' => ' Celsius ', '°F' => ' Fahrenheit ', '°N' => ' Newton ', ], 'latin_symbols' => [ '=' => '=', '%' => '%', '∑' => '∑', '∆' => '∆', '∞' => '∞', '♥' => '♥', '&' => '&', '+' => '+', // --- '©' => ' (c) ', '®' => ' (r) ', '@' => ' (at) ', '№' => ' No. ', '℞' => ' Rx ', '[' => '[', '\' => '\\', ']' => ']', '^' => '^', '_' => '_', '`' => '`', '‐' => '-', '‑' => '-', '‒' => '-', '–' => '-', '−' => '-', '—' => '-', '―' => '-', '﹘' => '-', '│' => '|', '∖' => '\\', '∕' => '/', '⁄' => '/', '←' => '<-', '→' => '->', '↑' => '|', '↓' => '|', '⁅' => '[', '⁆' => ']', '⁎' => '*', '、' => ',', '。' => '.', '〈' => '<', '〉' => '>', '《' => '<<', '》' => '>>', '〔' => '[', '〕' => ']', '〘' => '[', '〙' => ']', '〚' => '[', '〛' => ']', '﹝' => '[', '﹞' => ']', '︹' => '[', '︺' => ']', '﹇' => '[', '﹈' => ']', '︐' => ',', '︑' => ',', '︒' => '.', '︓' => ':', '︔' => ';', '︕' => '!', '︖' => '?', '︙' => '...', '︰' => '..', '︵' => '(', '︶' => ')', '﹙' => '(', '﹚' => ')', '︷' => '{', '︸' => '}', '﹛' => '{', '﹜' => '}', '︽' => '<<', '︾' => '>>', '︿' => '<', '﹀' => '>', '×' => '*', '÷' => '/', '≪' => '<<', '≫' => '>>', '⦅' => '((', '⦆' => '))', '〇' => '0', '′' => '\'', '〝' => '"', '〞' => '"', '«' => '<<', '»' => '>>', '‘' => "'", '’' => "'", '‚' => ',', '‛' => "'", '“' => '"', '”' => '"', '„' => '"', '‟' => '"', '‹' => '<', '›' => '>', '․' => '.', '‥' => '..', '…' => '...', '″' => '"', '‴' => '\'\'\'', '‶' => '``', '‷' => '```', '‼' => '!!', '⁇' => '??', '⁈' => '?!', '⁉' => '!?', '⁗' => '````', '⩴' => '::=', '⩵' => '==', '⩶' => '===', '﹔' => ';', '﹕' => ':', '﹖' => '?', '﹗' => '!', '﹍' => '_', '﹎' => '_', '﹏' => '_', '﹐' => ',', '﹑' => ',', '﹒' => '.', '﹟' => '#', '﹠' => '&', '﹡' => '*', '﹢' => '+', '﹣' => '-', '﹤' => '<', '﹥' => '>', '﹦' => '=', '﹨' => '\\', '﹩' => '$', '﹪' => '%', '﹫' => '@', '!' => '!', '"' => '"', '#' => '#', '$' => '$', '%' => '%', '&' => '&', ''' => '\'', '(' => '(', ')' => ')', '*' => '*', '+' => '+', ',' => ',', '-' => '-', '.' => '.', '/' => '/', ':' => ':', ';' => ';', '<' => '<', '=' => '=', '>' => '>', '?' => '?', '@' => '@', '{' => '{', '|' => '|', '}' => '}', '~' => '~', '⦅' => '((', '⦆' => '))', '¬' => '!', ' ̄' => '-', '¦' => '|', '■' => '#', ], ]; <?php return [ 'uz' => 0, 'tk' => 1, 'th' => 0, 'ps' => 0, 'or' => 0, 'mn' => 0, 'ko' => 0, 'ky' => 0, 'hy' => 1, 'bn' => 5, 'be' => 0, 'am' => 0, 'ja' => 0, 'zh' => 0, 'nl' => 1, 'it' => 1, 'mk' => 1, 'pt' => 1, 'el__greeklish' => 2, 'el' => 2, 'hi' => 2, 'sv' => 1, 'tr' => 1, 'bg' => 2, 'hu' => 1, 'my' => 5, 'hr' => 2, 'fi' => 1, 'ka' => 1, 'ru' => 1, 'ru__gost_2000_b' => 1, 'ru__passport_2013' => 1, 'uk' => 1, 'kk' => 1, 'cs' => 1, 'da' => 1, 'pl' => 1, 'ro' => 1, 'eo' => 1, 'et' => 1, 'lv' => 1, 'lt' => 1, 'no' => 1, 'vi' => 1, 'ar' => 1, 'fa' => 1, 'sr' => 1, 'sr__cyr' => 1, 'sr__lat' => 1, 'az' => 1, 'sk' => 1, 'fr' => 1, 'fr_at' => 1, 'fr_ch' => 1, 'de' => 1, 'de_at' => 1, 'de_ch' => 1, 'en' => 0, 'latin' => 3, ' ' => 1, 'msword' => 1, ]; <?php return ['' => 0, "\x00" => 0, "\x01" => 1, "\x02" => 2, "\x03" => 3, "\x04" => 4, "\x05" => 5, "\x06" => 6, "\x07" => 7, "\x08" => 8, "\x09" => 9, "\x0A" => 10, "\x0B" => 11, "\x0C" => 12, "\x0D" => 13, "\x0E" => 14, "\x0F" => 15, "\x10" => 16, "\x11" => 17, "\x12" => 18, "\x13" => 19, "\x14" => 20, "\x15" => 21, "\x16" => 22, "\x17" => 23, "\x18" => 24, "\x19" => 25, "\x1A" => 26, "\x1B" => 27, "\x1C" => 28, "\x1D" => 29, "\x1E" => 30, "\x1F" => 31, "\x20" => 32, "\x21" => 33, "\x22" => 34, "\x23" => 35, "\x24" => 36, "\x25" => 37, "\x26" => 38, "\x27" => 39, "\x28" => 40, "\x29" => 41, "\x2A" => 42, "\x2B" => 43, "\x2C" => 44, "\x2D" => 45, "\x2E" => 46, "\x2F" => 47, "\x30" => 48, "\x31" => 49, "\x32" => 50, "\x33" => 51, "\x34" => 52, "\x35" => 53, "\x36" => 54, "\x37" => 55, "\x38" => 56, "\x39" => 57, "\x3A" => 58, "\x3B" => 59, "\x3C" => 60, "\x3D" => 61, "\x3E" => 62, "\x3F" => 63, "\x40" => 64, "\x41" => 65, "\x42" => 66, "\x43" => 67, "\x44" => 68, "\x45" => 69, "\x46" => 70, "\x47" => 71, "\x48" => 72, "\x49" => 73, "\x4A" => 74, "\x4B" => 75, "\x4C" => 76, "\x4D" => 77, "\x4E" => 78, "\x4F" => 79, "\x50" => 80, "\x51" => 81, "\x52" => 82, "\x53" => 83, "\x54" => 84, "\x55" => 85, "\x56" => 86, "\x57" => 87, "\x58" => 88, "\x59" => 89, "\x5A" => 90, "\x5B" => 91, "\x5C" => 92, "\x5D" => 93, "\x5E" => 94, "\x5F" => 95, "\x60" => 96, "\x61" => 97, "\x62" => 98, "\x63" => 99, "\x64" => 100, "\x65" => 101, "\x66" => 102, "\x67" => 103, "\x68" => 104, "\x69" => 105, "\x6A" => 106, "\x6B" => 107, "\x6C" => 108, "\x6D" => 109, "\x6E" => 110, "\x6F" => 111, "\x70" => 112, "\x71" => 113, "\x72" => 114, "\x73" => 115, "\x74" => 116, "\x75" => 117, "\x76" => 118, "\x77" => 119, "\x78" => 120, "\x79" => 121, "\x7A" => 122, "\x7B" => 123, "\x7C" => 124, "\x7D" => 125, "\x7E" => 126, "\x7F" => 127, "\x80" => 128, "\x81" => 129, "\x82" => 130, "\x83" => 131, "\x84" => 132, "\x85" => 133, "\x86" => 134, "\x87" => 135, "\x88" => 136, "\x89" => 137, "\x8A" => 138, "\x8B" => 139, "\x8C" => 140, "\x8D" => 141, "\x8E" => 142, "\x8F" => 143, "\x90" => 144, "\x91" => 145, "\x92" => 146, "\x93" => 147, "\x94" => 148, "\x95" => 149, "\x96" => 150, "\x97" => 151, "\x98" => 152, "\x99" => 153, "\x9A" => 154, "\x9B" => 155, "\x9C" => 156, "\x9D" => 157, "\x9E" => 158, "\x9F" => 159, "\xA0" => 160, "\xA1" => 161, "\xA2" => 162, "\xA3" => 163, "\xA4" => 164, "\xA5" => 165, "\xA6" => 166, "\xA7" => 167, "\xA8" => 168, "\xA9" => 169, "\xAA" => 170, "\xAB" => 171, "\xAC" => 172, "\xAD" => 173, "\xAE" => 174, "\xAF" => 175, "\xB0" => 176, "\xB1" => 177, "\xB2" => 178, "\xB3" => 179, "\xB4" => 180, "\xB5" => 181, "\xB6" => 182, "\xB7" => 183, "\xB8" => 184, "\xB9" => 185, "\xBA" => 186, "\xBB" => 187, "\xBC" => 188, "\xBD" => 189, "\xBE" => 190, "\xBF" => 191, "\xC0" => 192, "\xC1" => 193, "\xC2" => 194, "\xC3" => 195, "\xC4" => 196, "\xC5" => 197, "\xC6" => 198, "\xC7" => 199, "\xC8" => 200, "\xC9" => 201, "\xCA" => 202, "\xCB" => 203, "\xCC" => 204, "\xCD" => 205, "\xCE" => 206, "\xCF" => 207, "\xD0" => 208, "\xD1" => 209, "\xD2" => 210, "\xD3" => 211, "\xD4" => 212, "\xD5" => 213, "\xD6" => 214, "\xD7" => 215, "\xD8" => 216, "\xD9" => 217, "\xDA" => 218, "\xDB" => 219, "\xDC" => 220, "\xDD" => 221, "\xDE" => 222, "\xDF" => 223, "\xE0" => 224, "\xE1" => 225, "\xE2" => 226, "\xE3" => 227, "\xE4" => 228, "\xE5" => 229, "\xE6" => 230, "\xE7" => 231, "\xE8" => 232, "\xE9" => 233, "\xEA" => 234, "\xEB" => 235, "\xEC" => 236, "\xED" => 237, "\xEE" => 238, "\xEF" => 239, "\xF0" => 240, "\xF1" => 241, "\xF2" => 242, "\xF3" => 243, "\xF4" => 244, "\xF5" => 245, "\xF6" => 246, "\xF7" => 247, "\xF8" => 248, "\xF9" => 249, "\xFA" => 250, "\xFB" => 251, "\xFC" => 252, "\xFD" => 253, "\xFE" => 254, "\xFF" => 255]; <?php return [ 0 => [ 0 => 'ß', 1 => 'İ', 2 => 'ʼn', 3 => 'ǰ', 4 => 'ΐ', 5 => 'ΰ', 6 => 'և', 7 => 'ẖ', 8 => 'ẗ', 9 => 'ẘ', 10 => 'ẙ', 11 => 'ẚ', 12 => 'ẞ', 13 => 'ὐ', 14 => 'ὒ', 15 => 'ὔ', 16 => 'ὖ', 17 => 'ᾀ', 18 => 'ᾁ', 19 => 'ᾂ', 20 => 'ᾃ', 21 => 'ᾄ', 22 => 'ᾅ', 23 => 'ᾆ', 24 => 'ᾇ', 25 => 'ᾈ', 26 => 'ᾉ', 27 => 'ᾊ', 28 => 'ᾋ', 29 => 'ᾌ', 30 => 'ᾍ', 31 => 'ᾎ', 32 => 'ᾏ', 33 => 'ᾐ', 34 => 'ᾑ', 35 => 'ᾒ', 36 => 'ᾓ', 37 => 'ᾔ', 38 => 'ᾕ', 39 => 'ᾖ', 40 => 'ᾗ', 41 => 'ᾘ', 42 => 'ᾙ', 43 => 'ᾚ', 44 => 'ᾛ', 45 => 'ᾜ', 46 => 'ᾝ', 47 => 'ᾞ', 48 => 'ᾟ', 49 => 'ᾠ', 50 => 'ᾡ', 51 => 'ᾢ', 52 => 'ᾣ', 53 => 'ᾤ', 54 => 'ᾥ', 55 => 'ᾦ', 56 => 'ᾧ', 57 => 'ᾨ', 58 => 'ᾩ', 59 => 'ᾪ', 60 => 'ᾫ', 61 => 'ᾬ', 62 => 'ᾭ', 63 => 'ᾮ', 64 => 'ᾯ', 65 => 'ᾲ', 66 => 'ᾳ', 67 => 'ᾴ', 68 => 'ᾶ', 69 => 'ᾷ', 70 => 'ᾼ', 71 => 'ῂ', 72 => 'ῃ', 73 => 'ῄ', 74 => 'ῆ', 75 => 'ῇ', 76 => 'ῌ', 77 => 'ῒ', 78 => 'ΐ', 79 => 'ῖ', 80 => 'ῗ', 81 => 'ῢ', 82 => 'ΰ', 83 => 'ῤ', 84 => 'ῦ', 85 => 'ῧ', 86 => 'ῲ', 87 => 'ῳ', 88 => 'ῴ', 89 => 'ῶ', 90 => 'ῷ', 91 => 'ῼ', 92 => 'ff', 93 => 'fi', 94 => 'fl', 95 => 'ffi', 96 => 'ffl', 97 => 'ſt', 98 => 'st', 99 => 'ﬓ', 100 => 'ﬔ', 101 => 'ﬕ', 102 => 'ﬖ', 103 => 'ﬗ', 104 => 'J̌̌', ], 1 => [ 0 => 'ss', 1 => 'i̇', 2 => 'ʼn', 3 => 'ǰ', 4 => 'ΐ', 5 => 'ΰ', 6 => 'եւ', 7 => 'ẖ', 8 => 'ẗ', 9 => 'ẘ', 10 => 'ẙ', 11 => 'aʾ', 12 => 'ss', 13 => 'ὐ', 14 => 'ὒ', 15 => 'ὔ', 16 => 'ὖ', 17 => 'ἀι', 18 => 'ἁι', 19 => 'ἂι', 20 => 'ἃι', 21 => 'ἄι', 22 => 'ἅι', 23 => 'ἆι', 24 => 'ἇι', 25 => 'ἀι', 26 => 'ἁι', 27 => 'ἂι', 28 => 'ἃι', 29 => 'ἄι', 30 => 'ἅι', 31 => 'ἆι', 32 => 'ἇι', 33 => 'ἠι', 34 => 'ἡι', 35 => 'ἢι', 36 => 'ἣι', 37 => 'ἤι', 38 => 'ἥι', 39 => 'ἦι', 40 => 'ἧι', 41 => 'ἠι', 42 => 'ἡι', 43 => 'ἢι', 44 => 'ἣι', 45 => 'ἤι', 46 => 'ἥι', 47 => 'ἦι', 48 => 'ἧι', 49 => 'ὠι', 50 => 'ὡι', 51 => 'ὢι', 52 => 'ὣι', 53 => 'ὤι', 54 => 'ὥι', 55 => 'ὦι', 56 => 'ὧι', 57 => 'ὠι', 58 => 'ὡι', 59 => 'ὢι', 60 => 'ὣι', 61 => 'ὤι', 62 => 'ὥι', 63 => 'ὦι', 64 => 'ὧι', 65 => 'ὰι', 66 => 'αι', 67 => 'άι', 68 => 'ᾶ', 69 => 'ᾶι', 70 => 'αι', 71 => 'ὴι', 72 => 'ηι', 73 => 'ήι', 74 => 'ῆ', 75 => 'ῆι', 76 => 'ηι', 77 => 'ῒ', 78 => 'ΐ', 79 => 'ῖ', 80 => 'ῗ', 81 => 'ῢ', 82 => 'ΰ', 83 => 'ῤ', 84 => 'ῦ', 85 => 'ῧ', 86 => 'ὼι', 87 => 'ωι', 88 => 'ώι', 89 => 'ῶ', 90 => 'ῶι', 91 => 'ωι', 92 => 'ff', 93 => 'fi', 94 => 'fl', 95 => 'ffi', 96 => 'ffl', 97 => 'st', 98 => 'st', 99 => 'մն', 100 => 'մե', 101 => 'մի', 102 => 'վն', 103 => 'մխ', 104 => 'ǰ', ], ]; <?php return [0 => "\x00", 1 => "\x01", 2 => "\x02", 3 => "\x03", 4 => "\x04", 5 => "\x05", 6 => "\x06", 7 => "\x07", 8 => "\x08", 9 => "\x09", 10 => "\x0A", 11 => "\x0B", 12 => "\x0C", 13 => "\x0D", 14 => "\x0E", 15 => "\x0F", 16 => "\x10", 17 => "\x11", 18 => "\x12", 19 => "\x13", 20 => "\x14", 21 => "\x15", 22 => "\x16", 23 => "\x17", 24 => "\x18", 25 => "\x19", 26 => "\x1A", 27 => "\x1B", 28 => "\x1C", 29 => "\x1D", 30 => "\x1E", 31 => "\x1F", 32 => "\x20", 33 => "\x21", 34 => "\x22", 35 => "\x23", 36 => "\x24", 37 => "\x25", 38 => "\x26", 39 => "\x27", 40 => "\x28", 41 => "\x29", 42 => "\x2A", 43 => "\x2B", 44 => "\x2C", 45 => "\x2D", 46 => "\x2E", 47 => "\x2F", 48 => "\x30", 49 => "\x31", 50 => "\x32", 51 => "\x33", 52 => "\x34", 53 => "\x35", 54 => "\x36", 55 => "\x37", 56 => "\x38", 57 => "\x39", 58 => "\x3A", 59 => "\x3B", 60 => "\x3C", 61 => "\x3D", 62 => "\x3E", 63 => "\x3F", 64 => "\x40", 65 => "\x41", 66 => "\x42", 67 => "\x43", 68 => "\x44", 69 => "\x45", 70 => "\x46", 71 => "\x47", 72 => "\x48", 73 => "\x49", 74 => "\x4A", 75 => "\x4B", 76 => "\x4C", 77 => "\x4D", 78 => "\x4E", 79 => "\x4F", 80 => "\x50", 81 => "\x51", 82 => "\x52", 83 => "\x53", 84 => "\x54", 85 => "\x55", 86 => "\x56", 87 => "\x57", 88 => "\x58", 89 => "\x59", 90 => "\x5A", 91 => "\x5B", 92 => "\x5C", 93 => "\x5D", 94 => "\x5E", 95 => "\x5F", 96 => "\x60", 97 => "\x61", 98 => "\x62", 99 => "\x63", 100 => "\x64", 101 => "\x65", 102 => "\x66", 103 => "\x67", 104 => "\x68", 105 => "\x69", 106 => "\x6A", 107 => "\x6B", 108 => "\x6C", 109 => "\x6D", 110 => "\x6E", 111 => "\x6F", 112 => "\x70", 113 => "\x71", 114 => "\x72", 115 => "\x73", 116 => "\x74", 117 => "\x75", 118 => "\x76", 119 => "\x77", 120 => "\x78", 121 => "\x79", 122 => "\x7A", 123 => "\x7B", 124 => "\x7C", 125 => "\x7D", 126 => "\x7E", 127 => "\x7F", 128 => "\x80", 129 => "\x81", 130 => "\x82", 131 => "\x83", 132 => "\x84", 133 => "\x85", 134 => "\x86", 135 => "\x87", 136 => "\x88", 137 => "\x89", 138 => "\x8A", 139 => "\x8B", 140 => "\x8C", 141 => "\x8D", 142 => "\x8E", 143 => "\x8F", 144 => "\x90", 145 => "\x91", 146 => "\x92", 147 => "\x93", 148 => "\x94", 149 => "\x95", 150 => "\x96", 151 => "\x97", 152 => "\x98", 153 => "\x99", 154 => "\x9A", 155 => "\x9B", 156 => "\x9C", 157 => "\x9D", 158 => "\x9E", 159 => "\x9F", 160 => "\xA0", 161 => "\xA1", 162 => "\xA2", 163 => "\xA3", 164 => "\xA4", 165 => "\xA5", 166 => "\xA6", 167 => "\xA7", 168 => "\xA8", 169 => "\xA9", 170 => "\xAA", 171 => "\xAB", 172 => "\xAC", 173 => "\xAD", 174 => "\xAE", 175 => "\xAF", 176 => "\xB0", 177 => "\xB1", 178 => "\xB2", 179 => "\xB3", 180 => "\xB4", 181 => "\xB5", 182 => "\xB6", 183 => "\xB7", 184 => "\xB8", 185 => "\xB9", 186 => "\xBA", 187 => "\xBB", 188 => "\xBC", 189 => "\xBD", 190 => "\xBE", 191 => "\xBF", 192 => "\xC0", 193 => "\xC1", 194 => "\xC2", 195 => "\xC3", 196 => "\xC4", 197 => "\xC5", 198 => "\xC6", 199 => "\xC7", 200 => "\xC8", 201 => "\xC9", 202 => "\xCA", 203 => "\xCB", 204 => "\xCC", 205 => "\xCD", 206 => "\xCE", 207 => "\xCF", 208 => "\xD0", 209 => "\xD1", 210 => "\xD2", 211 => "\xD3", 212 => "\xD4", 213 => "\xD5", 214 => "\xD6", 215 => "\xD7", 216 => "\xD8", 217 => "\xD9", 218 => "\xDA", 219 => "\xDB", 220 => "\xDC", 221 => "\xDD", 222 => "\xDE", 223 => "\xDF", 224 => "\xE0", 225 => "\xE1", 226 => "\xE2", 227 => "\xE3", 228 => "\xE4", 229 => "\xE5", 230 => "\xE6", 231 => "\xE7", 232 => "\xE8", 233 => "\xE9", 234 => "\xEA", 235 => "\xEB", 236 => "\xEC", 237 => "\xED", 238 => "\xEE", 239 => "\xEF", 240 => "\xF0", 241 => "\xF1", 242 => "\xF2", 243 => "\xF3", 244 => "\xF4", 245 => "\xF5", 246 => "\xF6", 247 => "\xF7", 248 => "\xF8", 249 => "\xF9", 250 => "\xFA", 251 => "\xFB", 252 => "\xFC", 253 => "\xFD", 254 => "\xFE", 255 => "\xFF"]; <?php // ########## Unicode Emoji v11.0 ########## // ##### Emoji group: Smileys & People ##### // ##### Emoji subgroup: Face-positive ##### return ['CHARACTER_GRINNING_FACE' => "\u{1F600}", 'CHARACTER_BEAMING_FACE_WITH_SMILING_EYES' => "\u{1F601}", 'CHARACTER_FACE_WITH_TEARS_OF_JOY' => "\u{1F602}", 'CHARACTER_ROLLING_ON_THE_FLOOR_LAUGHING' => "\u{1F923}", 'CHARACTER_GRINNING_FACE_WITH_BIG_EYES' => "\u{1F603}", 'CHARACTER_GRINNING_FACE_WITH_SMILING_EYES' => "\u{1F604}", 'CHARACTER_GRINNING_FACE_WITH_SWEAT' => "\u{1F605}", 'CHARACTER_GRINNING_SQUINTING_FACE' => "\u{1F606}", 'CHARACTER_WINKING_FACE' => "\u{1F609}", 'CHARACTER_SMILING_FACE_WITH_SMILING_EYES' => "\u{1F60A}", 'CHARACTER_FACE_SAVORING_FOOD' => "\u{1F60B}", 'CHARACTER_SMILING_FACE_WITH_SUNGLASSES' => "\u{1F60E}", 'CHARACTER_SMILING_FACE_WITH_HEART_EYES' => "\u{1F60D}", 'CHARACTER_FACE_BLOWING_A_KISS' => "\u{1F618}", 'CHARACTER_SMILING_FACE_WITH_3_HEARTS' => "\u{1F970}", 'CHARACTER_KISSING_FACE' => "\u{1F617}", 'CHARACTER_KISSING_FACE_WITH_SMILING_EYES' => "\u{1F619}", 'CHARACTER_KISSING_FACE_WITH_CLOSED_EYES' => "\u{1F61A}", 'CHARACTER_SMILING_FACE' => "\u{263A}\u{FE0F}", 'CHARACTER_SLIGHTLY_SMILING_FACE' => "\u{1F642}", 'CHARACTER_HUGGING_FACE' => "\u{1F917}", 'CHARACTER_STAR_STRUCK' => "\u{1F929}", 'CHARACTER_THINKING_FACE' => "\u{1F914}", 'CHARACTER_FACE_WITH_RAISED_EYEBROW' => "\u{1F928}", 'CHARACTER_NEUTRAL_FACE' => "\u{1F610}", 'CHARACTER_EXPRESSIONLESS_FACE' => "\u{1F611}", 'CHARACTER_FACE_WITHOUT_MOUTH' => "\u{1F636}", 'CHARACTER_FACE_WITH_ROLLING_EYES' => "\u{1F644}", 'CHARACTER_SMIRKING_FACE' => "\u{1F60F}", 'CHARACTER_PERSEVERING_FACE' => "\u{1F623}", 'CHARACTER_SAD_BUT_RELIEVED_FACE' => "\u{1F625}", 'CHARACTER_FACE_WITH_OPEN_MOUTH' => "\u{1F62E}", 'CHARACTER_ZIPPER_MOUTH_FACE' => "\u{1F910}", 'CHARACTER_HUSHED_FACE' => "\u{1F62F}", 'CHARACTER_SLEEPY_FACE' => "\u{1F62A}", 'CHARACTER_TIRED_FACE' => "\u{1F62B}", 'CHARACTER_SLEEPING_FACE' => "\u{1F634}", 'CHARACTER_RELIEVED_FACE' => "\u{1F60C}", 'CHARACTER_FACE_WITH_TONGUE' => "\u{1F61B}", 'CHARACTER_WINKING_FACE_WITH_TONGUE' => "\u{1F61C}", 'CHARACTER_SQUINTING_FACE_WITH_TONGUE' => "\u{1F61D}", 'CHARACTER_DROOLING_FACE' => "\u{1F924}", 'CHARACTER_UNAMUSED_FACE' => "\u{1F612}", 'CHARACTER_DOWNCAST_FACE_WITH_SWEAT' => "\u{1F613}", 'CHARACTER_PENSIVE_FACE' => "\u{1F614}", 'CHARACTER_CONFUSED_FACE' => "\u{1F615}", 'CHARACTER_UPSIDE_DOWN_FACE' => "\u{1F643}", 'CHARACTER_MONEY_MOUTH_FACE' => "\u{1F911}", 'CHARACTER_ASTONISHED_FACE' => "\u{1F632}", 'CHARACTER_FROWNING_FACE' => "\u{2639}\u{FE0F}", 'CHARACTER_SLIGHTLY_FROWNING_FACE' => "\u{1F641}", 'CHARACTER_CONFOUNDED_FACE' => "\u{1F616}", 'CHARACTER_DISAPPOINTED_FACE' => "\u{1F61E}", 'CHARACTER_WORRIED_FACE' => "\u{1F61F}", 'CHARACTER_FACE_WITH_STEAM_FROM_NOSE' => "\u{1F624}", 'CHARACTER_CRYING_FACE' => "\u{1F622}", 'CHARACTER_LOUDLY_CRYING_FACE' => "\u{1F62D}", 'CHARACTER_FROWNING_FACE_WITH_OPEN_MOUTH' => "\u{1F626}", 'CHARACTER_ANGUISHED_FACE' => "\u{1F627}", 'CHARACTER_FEARFUL_FACE' => "\u{1F628}", 'CHARACTER_WEARY_FACE' => "\u{1F629}", 'CHARACTER_EXPLODING_HEAD' => "\u{1F92F}", 'CHARACTER_GRIMACING_FACE' => "\u{1F62C}", 'CHARACTER_ANXIOUS_FACE_WITH_SWEAT' => "\u{1F630}", 'CHARACTER_FACE_SCREAMING_IN_FEAR' => "\u{1F631}", 'CHARACTER_HOT_FACE' => "\u{1F975}", 'CHARACTER_COLD_FACE' => "\u{1F976}", 'CHARACTER_FLUSHED_FACE' => "\u{1F633}", 'CHARACTER_ZANY_FACE' => "\u{1F92A}", 'CHARACTER_DIZZY_FACE' => "\u{1F635}", 'CHARACTER_POUTING_FACE' => "\u{1F621}", 'CHARACTER_ANGRY_FACE' => "\u{1F620}", 'CHARACTER_FACE_WITH_SYMBOLS_ON_MOUTH' => "\u{1F92C}", 'CHARACTER_FACE_WITH_MEDICAL_MASK' => "\u{1F637}", 'CHARACTER_FACE_WITH_THERMOMETER' => "\u{1F912}", 'CHARACTER_FACE_WITH_HEAD_BANDAGE' => "\u{1F915}", 'CHARACTER_NAUSEATED_FACE' => "\u{1F922}", 'CHARACTER_FACE_VOMITING' => "\u{1F92E}", 'CHARACTER_SNEEZING_FACE' => "\u{1F927}", 'CHARACTER_SMILING_FACE_WITH_HALO' => "\u{1F607}", 'CHARACTER_COWBOY_HAT_FACE' => "\u{1F920}", 'CHARACTER_PARTYING_FACE' => "\u{1F973}", 'CHARACTER_WOOZY_FACE' => "\u{1F974}", 'CHARACTER_PLEADING_FACE' => "\u{1F97A}", 'CHARACTER_LYING_FACE' => "\u{1F925}", 'CHARACTER_SHUSHING_FACE' => "\u{1F92B}", 'CHARACTER_FACE_WITH_HAND_OVER_MOUTH' => "\u{1F92D}", 'CHARACTER_FACE_WITH_MONOCLE' => "\u{1F9D0}", 'CHARACTER_NERD_FACE' => "\u{1F913}", 'CHARACTER_SMILING_FACE_WITH_HORNS' => "\u{1F608}", 'CHARACTER_ANGRY_FACE_WITH_HORNS' => "\u{1F47F}", 'CHARACTER_CLOWN_FACE' => "\u{1F921}", 'CHARACTER_OGRE' => "\u{1F479}", 'CHARACTER_GOBLIN' => "\u{1F47A}", 'CHARACTER_SKULL' => "\u{1F480}", 'CHARACTER_SKULL_AND_CROSSBONES' => "\u{2620}\u{FE0F}", 'CHARACTER_GHOST' => "\u{1F47B}", 'CHARACTER_ALIEN' => "\u{1F47D}", 'CHARACTER_ALIEN_MONSTER' => "\u{1F47E}", 'CHARACTER_ROBOT_FACE' => "\u{1F916}", 'CHARACTER_PILE_OF_POO' => "\u{1F4A9}", 'CHARACTER_GRINNING_CAT_FACE' => "\u{1F63A}", 'CHARACTER_GRINNING_CAT_FACE_WITH_SMILING_EYES' => "\u{1F638}", 'CHARACTER_CAT_FACE_WITH_TEARS_OF_JOY' => "\u{1F639}", 'CHARACTER_SMILING_CAT_FACE_WITH_HEART_EYES' => "\u{1F63B}", 'CHARACTER_CAT_FACE_WITH_WRY_SMILE' => "\u{1F63C}", 'CHARACTER_KISSING_CAT_FACE' => "\u{1F63D}", 'CHARACTER_WEARY_CAT_FACE' => "\u{1F640}", 'CHARACTER_CRYING_CAT_FACE' => "\u{1F63F}", 'CHARACTER_POUTING_CAT_FACE' => "\u{1F63E}", 'CHARACTER_SEE_NO_EVIL_MONKEY' => "\u{1F648}", 'CHARACTER_HEAR_NO_EVIL_MONKEY' => "\u{1F649}", 'CHARACTER_SPEAK_NO_EVIL_MONKEY' => "\u{1F64A}", 'CHARACTER_LIGHT_SKIN_TONE' => "\u{1F3FB}", 'CHARACTER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3FC}", 'CHARACTER_MEDIUM_SKIN_TONE' => "\u{1F3FD}", 'CHARACTER_MEDIUM_DARK_SKIN_TONE' => "\u{1F3FE}", 'CHARACTER_DARK_SKIN_TONE' => "\u{1F3FF}", 'CHARACTER_BABY' => "\u{1F476}", 'CHARACTER_BABY_LIGHT_SKIN_TONE' => "\u{1F476}\u{1F3FB}", 'CHARACTER_BABY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F476}\u{1F3FC}", 'CHARACTER_BABY_MEDIUM_SKIN_TONE' => "\u{1F476}\u{1F3FD}", 'CHARACTER_BABY_MEDIUM_DARK_SKIN_TONE' => "\u{1F476}\u{1F3FE}", 'CHARACTER_BABY_DARK_SKIN_TONE' => "\u{1F476}\u{1F3FF}", 'CHARACTER_CHILD' => "\u{1F9D2}", 'CHARACTER_CHILD_LIGHT_SKIN_TONE' => "\u{1F9D2}\u{1F3FB}", 'CHARACTER_CHILD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D2}\u{1F3FC}", 'CHARACTER_CHILD_MEDIUM_SKIN_TONE' => "\u{1F9D2}\u{1F3FD}", 'CHARACTER_CHILD_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D2}\u{1F3FE}", 'CHARACTER_CHILD_DARK_SKIN_TONE' => "\u{1F9D2}\u{1F3FF}", 'CHARACTER_BOY' => "\u{1F466}", 'CHARACTER_BOY_LIGHT_SKIN_TONE' => "\u{1F466}\u{1F3FB}", 'CHARACTER_BOY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F466}\u{1F3FC}", 'CHARACTER_BOY_MEDIUM_SKIN_TONE' => "\u{1F466}\u{1F3FD}", 'CHARACTER_BOY_MEDIUM_DARK_SKIN_TONE' => "\u{1F466}\u{1F3FE}", 'CHARACTER_BOY_DARK_SKIN_TONE' => "\u{1F466}\u{1F3FF}", 'CHARACTER_GIRL' => "\u{1F467}", 'CHARACTER_GIRL_LIGHT_SKIN_TONE' => "\u{1F467}\u{1F3FB}", 'CHARACTER_GIRL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F467}\u{1F3FC}", 'CHARACTER_GIRL_MEDIUM_SKIN_TONE' => "\u{1F467}\u{1F3FD}", 'CHARACTER_GIRL_MEDIUM_DARK_SKIN_TONE' => "\u{1F467}\u{1F3FE}", 'CHARACTER_GIRL_DARK_SKIN_TONE' => "\u{1F467}\u{1F3FF}", 'CHARACTER_ADULT' => "\u{1F9D1}", 'CHARACTER_ADULT_LIGHT_SKIN_TONE' => "\u{1F9D1}\u{1F3FB}", 'CHARACTER_ADULT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D1}\u{1F3FC}", 'CHARACTER_ADULT_MEDIUM_SKIN_TONE' => "\u{1F9D1}\u{1F3FD}", 'CHARACTER_ADULT_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D1}\u{1F3FE}", 'CHARACTER_ADULT_DARK_SKIN_TONE' => "\u{1F9D1}\u{1F3FF}", 'CHARACTER_MAN' => "\u{1F468}", 'CHARACTER_MAN_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}", 'CHARACTER_MAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}", 'CHARACTER_MAN_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}", 'CHARACTER_MAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}", 'CHARACTER_MAN_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}", 'CHARACTER_WOMAN' => "\u{1F469}", 'CHARACTER_WOMAN_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}", 'CHARACTER_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}", 'CHARACTER_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}", 'CHARACTER_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}", 'CHARACTER_WOMAN_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}", 'CHARACTER_OLDER_ADULT' => "\u{1F9D3}", 'CHARACTER_OLDER_ADULT_LIGHT_SKIN_TONE' => "\u{1F9D3}\u{1F3FB}", 'CHARACTER_OLDER_ADULT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D3}\u{1F3FC}", 'CHARACTER_OLDER_ADULT_MEDIUM_SKIN_TONE' => "\u{1F9D3}\u{1F3FD}", 'CHARACTER_OLDER_ADULT_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D3}\u{1F3FE}", 'CHARACTER_OLDER_ADULT_DARK_SKIN_TONE' => "\u{1F9D3}\u{1F3FF}", 'CHARACTER_OLD_MAN' => "\u{1F474}", 'CHARACTER_OLD_MAN_LIGHT_SKIN_TONE' => "\u{1F474}\u{1F3FB}", 'CHARACTER_OLD_MAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F474}\u{1F3FC}", 'CHARACTER_OLD_MAN_MEDIUM_SKIN_TONE' => "\u{1F474}\u{1F3FD}", 'CHARACTER_OLD_MAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F474}\u{1F3FE}", 'CHARACTER_OLD_MAN_DARK_SKIN_TONE' => "\u{1F474}\u{1F3FF}", 'CHARACTER_OLD_WOMAN' => "\u{1F475}", 'CHARACTER_OLD_WOMAN_LIGHT_SKIN_TONE' => "\u{1F475}\u{1F3FB}", 'CHARACTER_OLD_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F475}\u{1F3FC}", 'CHARACTER_OLD_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F475}\u{1F3FD}", 'CHARACTER_OLD_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F475}\u{1F3FE}", 'CHARACTER_OLD_WOMAN_DARK_SKIN_TONE' => "\u{1F475}\u{1F3FF}", 'CHARACTER_MAN_HEALTH_WORKER' => "\u{1F468}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_HEALTH_WORKER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER' => "\u{1F469}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_WOMAN_HEALTH_WORKER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{2695}\u{FE0F}", 'CHARACTER_MAN_STUDENT' => "\u{1F468}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F393}", 'CHARACTER_MAN_STUDENT_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT' => "\u{1F469}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F393}", 'CHARACTER_WOMAN_STUDENT_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F393}", 'CHARACTER_MAN_TEACHER' => "\u{1F468}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_TEACHER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER' => "\u{1F469}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3EB}", 'CHARACTER_WOMAN_TEACHER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3EB}", 'CHARACTER_MAN_JUDGE' => "\u{1F468}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_JUDGE_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE' => "\u{1F469}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_WOMAN_JUDGE_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{2696}\u{FE0F}", 'CHARACTER_MAN_FARMER' => "\u{1F468}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F33E}", 'CHARACTER_MAN_FARMER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER' => "\u{1F469}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F33E}", 'CHARACTER_WOMAN_FARMER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F33E}", 'CHARACTER_MAN_COOK' => "\u{1F468}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F373}", 'CHARACTER_MAN_COOK_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK' => "\u{1F469}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F373}", 'CHARACTER_WOMAN_COOK_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F373}", 'CHARACTER_MAN_MECHANIC' => "\u{1F468}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F527}", 'CHARACTER_MAN_MECHANIC_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC' => "\u{1F469}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F527}", 'CHARACTER_WOMAN_MECHANIC_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F527}", 'CHARACTER_MAN_FACTORY_WORKER' => "\u{1F468}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_FACTORY_WORKER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER' => "\u{1F469}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3ED}", 'CHARACTER_WOMAN_FACTORY_WORKER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3ED}", 'CHARACTER_MAN_OFFICE_WORKER' => "\u{1F468}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_OFFICE_WORKER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER' => "\u{1F469}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F4BC}", 'CHARACTER_WOMAN_OFFICE_WORKER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F4BC}", 'CHARACTER_MAN_SCIENTIST' => "\u{1F468}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F52C}", 'CHARACTER_MAN_SCIENTIST_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST' => "\u{1F469}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F52C}", 'CHARACTER_WOMAN_SCIENTIST_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F52C}", 'CHARACTER_MAN_TECHNOLOGIST' => "\u{1F468}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_TECHNOLOGIST_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST' => "\u{1F469}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F4BB}", 'CHARACTER_WOMAN_TECHNOLOGIST_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F4BB}", 'CHARACTER_MAN_SINGER' => "\u{1F468}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_SINGER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER' => "\u{1F469}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3A4}", 'CHARACTER_WOMAN_SINGER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3A4}", 'CHARACTER_MAN_ARTIST' => "\u{1F468}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_ARTIST_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST' => "\u{1F469}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F3A8}", 'CHARACTER_WOMAN_ARTIST_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F3A8}", 'CHARACTER_MAN_PILOT' => "\u{1F468}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_PILOT_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT' => "\u{1F469}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_WOMAN_PILOT_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{2708}\u{FE0F}", 'CHARACTER_MAN_ASTRONAUT' => "\u{1F468}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F680}", 'CHARACTER_MAN_ASTRONAUT_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT' => "\u{1F469}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F680}", 'CHARACTER_WOMAN_ASTRONAUT_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F680}", 'CHARACTER_MAN_FIREFIGHTER' => "\u{1F468}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F692}", 'CHARACTER_MAN_FIREFIGHTER_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER' => "\u{1F469}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F692}", 'CHARACTER_WOMAN_FIREFIGHTER_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F692}", 'CHARACTER_POLICE_OFFICER' => "\u{1F46E}", 'CHARACTER_POLICE_OFFICER_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FB}", 'CHARACTER_POLICE_OFFICER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FC}", 'CHARACTER_POLICE_OFFICER_MEDIUM_SKIN_TONE' => "\u{1F46E}\u{1F3FD}", 'CHARACTER_POLICE_OFFICER_MEDIUM_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FE}", 'CHARACTER_POLICE_OFFICER_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FF}", 'CHARACTER_MAN_POLICE_OFFICER' => "\u{1F46E}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_MEDIUM_SKIN_TONE' => "\u{1F46E}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_MEDIUM_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POLICE_OFFICER_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER' => "\u{1F46E}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F46E}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_MEDIUM_SKIN_TONE' => "\u{1F46E}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_MEDIUM_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POLICE_OFFICER_DARK_SKIN_TONE' => "\u{1F46E}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_DETECTIVE' => "\u{1F575}\u{FE0F}", 'CHARACTER_DETECTIVE_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FB}", 'CHARACTER_DETECTIVE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FC}", 'CHARACTER_DETECTIVE_MEDIUM_SKIN_TONE' => "\u{1F575}\u{1F3FD}", 'CHARACTER_DETECTIVE_MEDIUM_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FE}", 'CHARACTER_DETECTIVE_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FF}", 'CHARACTER_MAN_DETECTIVE' => "\u{1F575}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_MEDIUM_SKIN_TONE' => "\u{1F575}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_MEDIUM_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_DETECTIVE_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE' => "\u{1F575}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F575}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_MEDIUM_SKIN_TONE' => "\u{1F575}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_MEDIUM_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DETECTIVE_DARK_SKIN_TONE' => "\u{1F575}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_GUARD' => "\u{1F482}", 'CHARACTER_GUARD_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FB}", 'CHARACTER_GUARD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FC}", 'CHARACTER_GUARD_MEDIUM_SKIN_TONE' => "\u{1F482}\u{1F3FD}", 'CHARACTER_GUARD_MEDIUM_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FE}", 'CHARACTER_GUARD_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FF}", 'CHARACTER_MAN_GUARD' => "\u{1F482}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_MEDIUM_SKIN_TONE' => "\u{1F482}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_MEDIUM_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GUARD_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GUARD' => "\u{1F482}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F482}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_MEDIUM_SKIN_TONE' => "\u{1F482}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_MEDIUM_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GUARD_DARK_SKIN_TONE' => "\u{1F482}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_CONSTRUCTION_WORKER' => "\u{1F477}", 'CHARACTER_CONSTRUCTION_WORKER_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FB}", 'CHARACTER_CONSTRUCTION_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FC}", 'CHARACTER_CONSTRUCTION_WORKER_MEDIUM_SKIN_TONE' => "\u{1F477}\u{1F3FD}", 'CHARACTER_CONSTRUCTION_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FE}", 'CHARACTER_CONSTRUCTION_WORKER_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FF}", 'CHARACTER_MAN_CONSTRUCTION_WORKER' => "\u{1F477}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_MEDIUM_SKIN_TONE' => "\u{1F477}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CONSTRUCTION_WORKER_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER' => "\u{1F477}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F477}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_MEDIUM_SKIN_TONE' => "\u{1F477}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_MEDIUM_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CONSTRUCTION_WORKER_DARK_SKIN_TONE' => "\u{1F477}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PRINCE' => "\u{1F934}", 'CHARACTER_PRINCE_LIGHT_SKIN_TONE' => "\u{1F934}\u{1F3FB}", 'CHARACTER_PRINCE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F934}\u{1F3FC}", 'CHARACTER_PRINCE_MEDIUM_SKIN_TONE' => "\u{1F934}\u{1F3FD}", 'CHARACTER_PRINCE_MEDIUM_DARK_SKIN_TONE' => "\u{1F934}\u{1F3FE}", 'CHARACTER_PRINCE_DARK_SKIN_TONE' => "\u{1F934}\u{1F3FF}", 'CHARACTER_PRINCESS' => "\u{1F478}", 'CHARACTER_PRINCESS_LIGHT_SKIN_TONE' => "\u{1F478}\u{1F3FB}", 'CHARACTER_PRINCESS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F478}\u{1F3FC}", 'CHARACTER_PRINCESS_MEDIUM_SKIN_TONE' => "\u{1F478}\u{1F3FD}", 'CHARACTER_PRINCESS_MEDIUM_DARK_SKIN_TONE' => "\u{1F478}\u{1F3FE}", 'CHARACTER_PRINCESS_DARK_SKIN_TONE' => "\u{1F478}\u{1F3FF}", 'CHARACTER_PERSON_WEARING_TURBAN' => "\u{1F473}", 'CHARACTER_PERSON_WEARING_TURBAN_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FB}", 'CHARACTER_PERSON_WEARING_TURBAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FC}", 'CHARACTER_PERSON_WEARING_TURBAN_MEDIUM_SKIN_TONE' => "\u{1F473}\u{1F3FD}", 'CHARACTER_PERSON_WEARING_TURBAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FE}", 'CHARACTER_PERSON_WEARING_TURBAN_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FF}", 'CHARACTER_MAN_WEARING_TURBAN' => "\u{1F473}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_MEDIUM_SKIN_TONE' => "\u{1F473}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WEARING_TURBAN_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN' => "\u{1F473}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F473}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_MEDIUM_SKIN_TONE' => "\u{1F473}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WEARING_TURBAN_DARK_SKIN_TONE' => "\u{1F473}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_WITH_CHINESE_CAP' => "\u{1F472}", 'CHARACTER_MAN_WITH_CHINESE_CAP_LIGHT_SKIN_TONE' => "\u{1F472}\u{1F3FB}", 'CHARACTER_MAN_WITH_CHINESE_CAP_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F472}\u{1F3FC}", 'CHARACTER_MAN_WITH_CHINESE_CAP_MEDIUM_SKIN_TONE' => "\u{1F472}\u{1F3FD}", 'CHARACTER_MAN_WITH_CHINESE_CAP_MEDIUM_DARK_SKIN_TONE' => "\u{1F472}\u{1F3FE}", 'CHARACTER_MAN_WITH_CHINESE_CAP_DARK_SKIN_TONE' => "\u{1F472}\u{1F3FF}", 'CHARACTER_WOMAN_WITH_HEADSCARF' => "\u{1F9D5}", 'CHARACTER_WOMAN_WITH_HEADSCARF_LIGHT_SKIN_TONE' => "\u{1F9D5}\u{1F3FB}", 'CHARACTER_WOMAN_WITH_HEADSCARF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D5}\u{1F3FC}", 'CHARACTER_WOMAN_WITH_HEADSCARF_MEDIUM_SKIN_TONE' => "\u{1F9D5}\u{1F3FD}", 'CHARACTER_WOMAN_WITH_HEADSCARF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D5}\u{1F3FE}", 'CHARACTER_WOMAN_WITH_HEADSCARF_DARK_SKIN_TONE' => "\u{1F9D5}\u{1F3FF}", 'CHARACTER_BEARDED_PERSON' => "\u{1F9D4}", 'CHARACTER_BEARDED_PERSON_LIGHT_SKIN_TONE' => "\u{1F9D4}\u{1F3FB}", 'CHARACTER_BEARDED_PERSON_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D4}\u{1F3FC}", 'CHARACTER_BEARDED_PERSON_MEDIUM_SKIN_TONE' => "\u{1F9D4}\u{1F3FD}", 'CHARACTER_BEARDED_PERSON_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D4}\u{1F3FE}", 'CHARACTER_BEARDED_PERSON_DARK_SKIN_TONE' => "\u{1F9D4}\u{1F3FF}", 'CHARACTER_BLOND_HAIRED_PERSON' => "\u{1F471}", 'CHARACTER_BLOND_HAIRED_PERSON_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FB}", 'CHARACTER_BLOND_HAIRED_PERSON_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FC}", 'CHARACTER_BLOND_HAIRED_PERSON_MEDIUM_SKIN_TONE' => "\u{1F471}\u{1F3FD}", 'CHARACTER_BLOND_HAIRED_PERSON_MEDIUM_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FE}", 'CHARACTER_BLOND_HAIRED_PERSON_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FF}", 'CHARACTER_BLOND_HAIRED_MAN' => "\u{1F471}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_MEDIUM_SKIN_TONE' => "\u{1F471}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_MAN_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN' => "\u{1F471}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F471}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F471}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_BLOND_HAIRED_WOMAN_DARK_SKIN_TONE' => "\u{1F471}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_RED_HAIRED' => "\u{1F468}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_RED_HAIRED_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED' => "\u{1F469}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B0}", 'CHARACTER_WOMAN_RED_HAIRED_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B0}", 'CHARACTER_MAN_CURLY_HAIRED' => "\u{1F468}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_CURLY_HAIRED_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED' => "\u{1F469}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B1}", 'CHARACTER_WOMAN_CURLY_HAIRED_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B1}", 'CHARACTER_MAN_BALD' => "\u{1F468}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_BALD_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD' => "\u{1F469}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B2}", 'CHARACTER_WOMAN_BALD_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B2}", 'CHARACTER_MAN_WHITE_HAIRED' => "\u{1F468}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FB}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F468}\u{1F3FC}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F468}\u{1F3FD}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FE}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_WHITE_HAIRED_DARK_SKIN_TONE' => "\u{1F468}\u{1F3FF}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED' => "\u{1F469}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FB}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F469}\u{1F3FC}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_MEDIUM_SKIN_TONE' => "\u{1F469}\u{1F3FD}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_MEDIUM_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FE}\u{200D}\u{1F9B3}", 'CHARACTER_WOMAN_WHITE_HAIRED_DARK_SKIN_TONE' => "\u{1F469}\u{1F3FF}\u{200D}\u{1F9B3}", 'CHARACTER_MAN_IN_TUXEDO' => "\u{1F935}", 'CHARACTER_MAN_IN_TUXEDO_LIGHT_SKIN_TONE' => "\u{1F935}\u{1F3FB}", 'CHARACTER_MAN_IN_TUXEDO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F935}\u{1F3FC}", 'CHARACTER_MAN_IN_TUXEDO_MEDIUM_SKIN_TONE' => "\u{1F935}\u{1F3FD}", 'CHARACTER_MAN_IN_TUXEDO_MEDIUM_DARK_SKIN_TONE' => "\u{1F935}\u{1F3FE}", 'CHARACTER_MAN_IN_TUXEDO_DARK_SKIN_TONE' => "\u{1F935}\u{1F3FF}", 'CHARACTER_BRIDE_WITH_VEIL' => "\u{1F470}", 'CHARACTER_BRIDE_WITH_VEIL_LIGHT_SKIN_TONE' => "\u{1F470}\u{1F3FB}", 'CHARACTER_BRIDE_WITH_VEIL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F470}\u{1F3FC}", 'CHARACTER_BRIDE_WITH_VEIL_MEDIUM_SKIN_TONE' => "\u{1F470}\u{1F3FD}", 'CHARACTER_BRIDE_WITH_VEIL_MEDIUM_DARK_SKIN_TONE' => "\u{1F470}\u{1F3FE}", 'CHARACTER_BRIDE_WITH_VEIL_DARK_SKIN_TONE' => "\u{1F470}\u{1F3FF}", 'CHARACTER_PREGNANT_WOMAN' => "\u{1F930}", 'CHARACTER_PREGNANT_WOMAN_LIGHT_SKIN_TONE' => "\u{1F930}\u{1F3FB}", 'CHARACTER_PREGNANT_WOMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F930}\u{1F3FC}", 'CHARACTER_PREGNANT_WOMAN_MEDIUM_SKIN_TONE' => "\u{1F930}\u{1F3FD}", 'CHARACTER_PREGNANT_WOMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F930}\u{1F3FE}", 'CHARACTER_PREGNANT_WOMAN_DARK_SKIN_TONE' => "\u{1F930}\u{1F3FF}", 'CHARACTER_BREAST_FEEDING' => "\u{1F931}", 'CHARACTER_BREAST_FEEDING_LIGHT_SKIN_TONE' => "\u{1F931}\u{1F3FB}", 'CHARACTER_BREAST_FEEDING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F931}\u{1F3FC}", 'CHARACTER_BREAST_FEEDING_MEDIUM_SKIN_TONE' => "\u{1F931}\u{1F3FD}", 'CHARACTER_BREAST_FEEDING_MEDIUM_DARK_SKIN_TONE' => "\u{1F931}\u{1F3FE}", 'CHARACTER_BREAST_FEEDING_DARK_SKIN_TONE' => "\u{1F931}\u{1F3FF}", 'CHARACTER_BABY_ANGEL' => "\u{1F47C}", 'CHARACTER_BABY_ANGEL_LIGHT_SKIN_TONE' => "\u{1F47C}\u{1F3FB}", 'CHARACTER_BABY_ANGEL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F47C}\u{1F3FC}", 'CHARACTER_BABY_ANGEL_MEDIUM_SKIN_TONE' => "\u{1F47C}\u{1F3FD}", 'CHARACTER_BABY_ANGEL_MEDIUM_DARK_SKIN_TONE' => "\u{1F47C}\u{1F3FE}", 'CHARACTER_BABY_ANGEL_DARK_SKIN_TONE' => "\u{1F47C}\u{1F3FF}", 'CHARACTER_SANTA_CLAUS' => "\u{1F385}", 'CHARACTER_SANTA_CLAUS_LIGHT_SKIN_TONE' => "\u{1F385}\u{1F3FB}", 'CHARACTER_SANTA_CLAUS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F385}\u{1F3FC}", 'CHARACTER_SANTA_CLAUS_MEDIUM_SKIN_TONE' => "\u{1F385}\u{1F3FD}", 'CHARACTER_SANTA_CLAUS_MEDIUM_DARK_SKIN_TONE' => "\u{1F385}\u{1F3FE}", 'CHARACTER_SANTA_CLAUS_DARK_SKIN_TONE' => "\u{1F385}\u{1F3FF}", 'CHARACTER_MRS_CLAUS' => "\u{1F936}", 'CHARACTER_MRS_CLAUS_LIGHT_SKIN_TONE' => "\u{1F936}\u{1F3FB}", 'CHARACTER_MRS_CLAUS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F936}\u{1F3FC}", 'CHARACTER_MRS_CLAUS_MEDIUM_SKIN_TONE' => "\u{1F936}\u{1F3FD}", 'CHARACTER_MRS_CLAUS_MEDIUM_DARK_SKIN_TONE' => "\u{1F936}\u{1F3FE}", 'CHARACTER_MRS_CLAUS_DARK_SKIN_TONE' => "\u{1F936}\u{1F3FF}", 'CHARACTER_SUPERHERO' => "\u{1F9B8}", 'CHARACTER_SUPERHERO_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FB}", 'CHARACTER_SUPERHERO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FC}", 'CHARACTER_SUPERHERO_MEDIUM_SKIN_TONE' => "\u{1F9B8}\u{1F3FD}", 'CHARACTER_SUPERHERO_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FE}", 'CHARACTER_SUPERHERO_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FF}", 'CHARACTER_WOMAN_SUPERHERO' => "\u{1F9B8}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_MEDIUM_SKIN_TONE' => "\u{1F9B8}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERHERO_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO' => "\u{1F9B8}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B8}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_MEDIUM_SKIN_TONE' => "\u{1F9B8}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERHERO_DARK_SKIN_TONE' => "\u{1F9B8}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_SUPERVILLAIN' => "\u{1F9B9}", 'CHARACTER_SUPERVILLAIN_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FB}", 'CHARACTER_SUPERVILLAIN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FC}", 'CHARACTER_SUPERVILLAIN_MEDIUM_SKIN_TONE' => "\u{1F9B9}\u{1F3FD}", 'CHARACTER_SUPERVILLAIN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FE}", 'CHARACTER_SUPERVILLAIN_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FF}", 'CHARACTER_WOMAN_SUPERVILLAIN' => "\u{1F9B9}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_MEDIUM_SKIN_TONE' => "\u{1F9B9}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SUPERVILLAIN_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN' => "\u{1F9B9}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B9}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_MEDIUM_SKIN_TONE' => "\u{1F9B9}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SUPERVILLAIN_DARK_SKIN_TONE' => "\u{1F9B9}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAGE' => "\u{1F9D9}", 'CHARACTER_MAGE_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FB}", 'CHARACTER_MAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FC}", 'CHARACTER_MAGE_MEDIUM_SKIN_TONE' => "\u{1F9D9}\u{1F3FD}", 'CHARACTER_MAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FE}", 'CHARACTER_MAGE_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FF}", 'CHARACTER_WOMAN_MAGE' => "\u{1F9D9}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_MEDIUM_SKIN_TONE' => "\u{1F9D9}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MAGE_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_MAGE' => "\u{1F9D9}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D9}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_MEDIUM_SKIN_TONE' => "\u{1F9D9}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MAGE_DARK_SKIN_TONE' => "\u{1F9D9}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_FAIRY' => "\u{1F9DA}", 'CHARACTER_FAIRY_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FB}", 'CHARACTER_FAIRY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FC}", 'CHARACTER_FAIRY_MEDIUM_SKIN_TONE' => "\u{1F9DA}\u{1F3FD}", 'CHARACTER_FAIRY_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FE}", 'CHARACTER_FAIRY_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FF}", 'CHARACTER_WOMAN_FAIRY' => "\u{1F9DA}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_MEDIUM_SKIN_TONE' => "\u{1F9DA}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FAIRY_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_FAIRY' => "\u{1F9DA}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DA}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_MEDIUM_SKIN_TONE' => "\u{1F9DA}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FAIRY_DARK_SKIN_TONE' => "\u{1F9DA}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_VAMPIRE' => "\u{1F9DB}", 'CHARACTER_VAMPIRE_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FB}", 'CHARACTER_VAMPIRE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FC}", 'CHARACTER_VAMPIRE_MEDIUM_SKIN_TONE' => "\u{1F9DB}\u{1F3FD}", 'CHARACTER_VAMPIRE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FE}", 'CHARACTER_VAMPIRE_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FF}", 'CHARACTER_WOMAN_VAMPIRE' => "\u{1F9DB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_MEDIUM_SKIN_TONE' => "\u{1F9DB}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_VAMPIRE_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE' => "\u{1F9DB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DB}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_MEDIUM_SKIN_TONE' => "\u{1F9DB}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_VAMPIRE_DARK_SKIN_TONE' => "\u{1F9DB}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERPERSON' => "\u{1F9DC}", 'CHARACTER_MERPERSON_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FB}", 'CHARACTER_MERPERSON_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FC}", 'CHARACTER_MERPERSON_MEDIUM_SKIN_TONE' => "\u{1F9DC}\u{1F3FD}", 'CHARACTER_MERPERSON_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FE}", 'CHARACTER_MERPERSON_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FF}", 'CHARACTER_MERMAID' => "\u{1F9DC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_MEDIUM_SKIN_TONE' => "\u{1F9DC}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAID_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MERMAN' => "\u{1F9DC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DC}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_MEDIUM_SKIN_TONE' => "\u{1F9DC}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MERMAN_DARK_SKIN_TONE' => "\u{1F9DC}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_ELF' => "\u{1F9DD}", 'CHARACTER_ELF_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FB}", 'CHARACTER_ELF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FC}", 'CHARACTER_ELF_MEDIUM_SKIN_TONE' => "\u{1F9DD}\u{1F3FD}", 'CHARACTER_ELF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FE}", 'CHARACTER_ELF_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FF}", 'CHARACTER_WOMAN_ELF' => "\u{1F9DD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_MEDIUM_SKIN_TONE' => "\u{1F9DD}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ELF_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_ELF' => "\u{1F9DD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9DD}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_MEDIUM_SKIN_TONE' => "\u{1F9DD}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_MEDIUM_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ELF_DARK_SKIN_TONE' => "\u{1F9DD}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_GENIE' => "\u{1F9DE}", 'CHARACTER_WOMAN_GENIE' => "\u{1F9DE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_GENIE' => "\u{1F9DE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_ZOMBIE' => "\u{1F9DF}", 'CHARACTER_WOMAN_ZOMBIE' => "\u{1F9DF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_ZOMBIE' => "\u{1F9DF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_FROWNING' => "\u{1F64D}", 'CHARACTER_PERSON_FROWNING_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FB}", 'CHARACTER_PERSON_FROWNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FC}", 'CHARACTER_PERSON_FROWNING_MEDIUM_SKIN_TONE' => "\u{1F64D}\u{1F3FD}", 'CHARACTER_PERSON_FROWNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FE}", 'CHARACTER_PERSON_FROWNING_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FF}", 'CHARACTER_MAN_FROWNING' => "\u{1F64D}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_MEDIUM_SKIN_TONE' => "\u{1F64D}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FROWNING_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING' => "\u{1F64D}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64D}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_MEDIUM_SKIN_TONE' => "\u{1F64D}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FROWNING_DARK_SKIN_TONE' => "\u{1F64D}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_POUTING' => "\u{1F64E}", 'CHARACTER_PERSON_POUTING_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FB}", 'CHARACTER_PERSON_POUTING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FC}", 'CHARACTER_PERSON_POUTING_MEDIUM_SKIN_TONE' => "\u{1F64E}\u{1F3FD}", 'CHARACTER_PERSON_POUTING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FE}", 'CHARACTER_PERSON_POUTING_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FF}", 'CHARACTER_MAN_POUTING' => "\u{1F64E}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_MEDIUM_SKIN_TONE' => "\u{1F64E}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_POUTING_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_POUTING' => "\u{1F64E}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64E}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_MEDIUM_SKIN_TONE' => "\u{1F64E}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_MEDIUM_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_POUTING_DARK_SKIN_TONE' => "\u{1F64E}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GESTURING_NO' => "\u{1F645}", 'CHARACTER_PERSON_GESTURING_NO_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FB}", 'CHARACTER_PERSON_GESTURING_NO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FC}", 'CHARACTER_PERSON_GESTURING_NO_MEDIUM_SKIN_TONE' => "\u{1F645}\u{1F3FD}", 'CHARACTER_PERSON_GESTURING_NO_MEDIUM_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FE}", 'CHARACTER_PERSON_GESTURING_NO_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FF}", 'CHARACTER_MAN_GESTURING_NO' => "\u{1F645}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_MEDIUM_SKIN_TONE' => "\u{1F645}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_MEDIUM_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_NO_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO' => "\u{1F645}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F645}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_MEDIUM_SKIN_TONE' => "\u{1F645}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_MEDIUM_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_NO_DARK_SKIN_TONE' => "\u{1F645}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GESTURING_OK' => "\u{1F646}", 'CHARACTER_PERSON_GESTURING_OK_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FB}", 'CHARACTER_PERSON_GESTURING_OK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FC}", 'CHARACTER_PERSON_GESTURING_OK_MEDIUM_SKIN_TONE' => "\u{1F646}\u{1F3FD}", 'CHARACTER_PERSON_GESTURING_OK_MEDIUM_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FE}", 'CHARACTER_PERSON_GESTURING_OK_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FF}", 'CHARACTER_MAN_GESTURING_OK' => "\u{1F646}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_MEDIUM_SKIN_TONE' => "\u{1F646}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_MEDIUM_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GESTURING_OK_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK' => "\u{1F646}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F646}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_MEDIUM_SKIN_TONE' => "\u{1F646}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_MEDIUM_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GESTURING_OK_DARK_SKIN_TONE' => "\u{1F646}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_TIPPING_HAND' => "\u{1F481}", 'CHARACTER_PERSON_TIPPING_HAND_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FB}", 'CHARACTER_PERSON_TIPPING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FC}", 'CHARACTER_PERSON_TIPPING_HAND_MEDIUM_SKIN_TONE' => "\u{1F481}\u{1F3FD}", 'CHARACTER_PERSON_TIPPING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FE}", 'CHARACTER_PERSON_TIPPING_HAND_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FF}", 'CHARACTER_MAN_TIPPING_HAND' => "\u{1F481}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_MEDIUM_SKIN_TONE' => "\u{1F481}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_TIPPING_HAND_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND' => "\u{1F481}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F481}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_MEDIUM_SKIN_TONE' => "\u{1F481}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_TIPPING_HAND_DARK_SKIN_TONE' => "\u{1F481}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_RAISING_HAND' => "\u{1F64B}", 'CHARACTER_PERSON_RAISING_HAND_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FB}", 'CHARACTER_PERSON_RAISING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FC}", 'CHARACTER_PERSON_RAISING_HAND_MEDIUM_SKIN_TONE' => "\u{1F64B}\u{1F3FD}", 'CHARACTER_PERSON_RAISING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FE}", 'CHARACTER_PERSON_RAISING_HAND_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FF}", 'CHARACTER_MAN_RAISING_HAND' => "\u{1F64B}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_MEDIUM_SKIN_TONE' => "\u{1F64B}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RAISING_HAND_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND' => "\u{1F64B}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64B}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_MEDIUM_SKIN_TONE' => "\u{1F64B}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RAISING_HAND_DARK_SKIN_TONE' => "\u{1F64B}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_BOWING' => "\u{1F647}", 'CHARACTER_PERSON_BOWING_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FB}", 'CHARACTER_PERSON_BOWING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FC}", 'CHARACTER_PERSON_BOWING_MEDIUM_SKIN_TONE' => "\u{1F647}\u{1F3FD}", 'CHARACTER_PERSON_BOWING_MEDIUM_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FE}", 'CHARACTER_PERSON_BOWING_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FF}", 'CHARACTER_MAN_BOWING' => "\u{1F647}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_MEDIUM_SKIN_TONE' => "\u{1F647}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_MEDIUM_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOWING_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_BOWING' => "\u{1F647}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F647}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_MEDIUM_SKIN_TONE' => "\u{1F647}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_MEDIUM_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOWING_DARK_SKIN_TONE' => "\u{1F647}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_FACEPALMING' => "\u{1F926}", 'CHARACTER_PERSON_FACEPALMING_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FB}", 'CHARACTER_PERSON_FACEPALMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FC}", 'CHARACTER_PERSON_FACEPALMING_MEDIUM_SKIN_TONE' => "\u{1F926}\u{1F3FD}", 'CHARACTER_PERSON_FACEPALMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FE}", 'CHARACTER_PERSON_FACEPALMING_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FF}", 'CHARACTER_MAN_FACEPALMING' => "\u{1F926}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_MEDIUM_SKIN_TONE' => "\u{1F926}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_FACEPALMING_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING' => "\u{1F926}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F926}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_MEDIUM_SKIN_TONE' => "\u{1F926}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_FACEPALMING_DARK_SKIN_TONE' => "\u{1F926}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_SHRUGGING' => "\u{1F937}", 'CHARACTER_PERSON_SHRUGGING_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FB}", 'CHARACTER_PERSON_SHRUGGING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FC}", 'CHARACTER_PERSON_SHRUGGING_MEDIUM_SKIN_TONE' => "\u{1F937}\u{1F3FD}", 'CHARACTER_PERSON_SHRUGGING_MEDIUM_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FE}", 'CHARACTER_PERSON_SHRUGGING_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FF}", 'CHARACTER_MAN_SHRUGGING' => "\u{1F937}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_MEDIUM_SKIN_TONE' => "\u{1F937}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_MEDIUM_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SHRUGGING_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING' => "\u{1F937}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F937}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_MEDIUM_SKIN_TONE' => "\u{1F937}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_MEDIUM_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SHRUGGING_DARK_SKIN_TONE' => "\u{1F937}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GETTING_MASSAGE' => "\u{1F486}", 'CHARACTER_PERSON_GETTING_MASSAGE_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FB}", 'CHARACTER_PERSON_GETTING_MASSAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FC}", 'CHARACTER_PERSON_GETTING_MASSAGE_MEDIUM_SKIN_TONE' => "\u{1F486}\u{1F3FD}", 'CHARACTER_PERSON_GETTING_MASSAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FE}", 'CHARACTER_PERSON_GETTING_MASSAGE_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FF}", 'CHARACTER_MAN_GETTING_MASSAGE' => "\u{1F486}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_MEDIUM_SKIN_TONE' => "\u{1F486}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_MASSAGE_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE' => "\u{1F486}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F486}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_MEDIUM_SKIN_TONE' => "\u{1F486}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_MEDIUM_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_MASSAGE_DARK_SKIN_TONE' => "\u{1F486}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_GETTING_HAIRCUT' => "\u{1F487}", 'CHARACTER_PERSON_GETTING_HAIRCUT_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FB}", 'CHARACTER_PERSON_GETTING_HAIRCUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FC}", 'CHARACTER_PERSON_GETTING_HAIRCUT_MEDIUM_SKIN_TONE' => "\u{1F487}\u{1F3FD}", 'CHARACTER_PERSON_GETTING_HAIRCUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FE}", 'CHARACTER_PERSON_GETTING_HAIRCUT_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FF}", 'CHARACTER_MAN_GETTING_HAIRCUT' => "\u{1F487}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_MEDIUM_SKIN_TONE' => "\u{1F487}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GETTING_HAIRCUT_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT' => "\u{1F487}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F487}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_MEDIUM_SKIN_TONE' => "\u{1F487}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_MEDIUM_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GETTING_HAIRCUT_DARK_SKIN_TONE' => "\u{1F487}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_WALKING' => "\u{1F6B6}", 'CHARACTER_PERSON_WALKING_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FB}", 'CHARACTER_PERSON_WALKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FC}", 'CHARACTER_PERSON_WALKING_MEDIUM_SKIN_TONE' => "\u{1F6B6}\u{1F3FD}", 'CHARACTER_PERSON_WALKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FE}", 'CHARACTER_PERSON_WALKING_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FF}", 'CHARACTER_MAN_WALKING' => "\u{1F6B6}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_MEDIUM_SKIN_TONE' => "\u{1F6B6}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_WALKING_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_WALKING' => "\u{1F6B6}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B6}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_MEDIUM_SKIN_TONE' => "\u{1F6B6}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_WALKING_DARK_SKIN_TONE' => "\u{1F6B6}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_RUNNING' => "\u{1F3C3}", 'CHARACTER_PERSON_RUNNING_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FB}", 'CHARACTER_PERSON_RUNNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FC}", 'CHARACTER_PERSON_RUNNING_MEDIUM_SKIN_TONE' => "\u{1F3C3}\u{1F3FD}", 'CHARACTER_PERSON_RUNNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FE}", 'CHARACTER_PERSON_RUNNING_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FF}", 'CHARACTER_MAN_RUNNING' => "\u{1F3C3}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_MEDIUM_SKIN_TONE' => "\u{1F3C3}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_RUNNING_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING' => "\u{1F3C3}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C3}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_MEDIUM_SKIN_TONE' => "\u{1F3C3}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_RUNNING_DARK_SKIN_TONE' => "\u{1F3C3}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_DANCING' => "\u{1F483}", 'CHARACTER_WOMAN_DANCING_LIGHT_SKIN_TONE' => "\u{1F483}\u{1F3FB}", 'CHARACTER_WOMAN_DANCING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F483}\u{1F3FC}", 'CHARACTER_WOMAN_DANCING_MEDIUM_SKIN_TONE' => "\u{1F483}\u{1F3FD}", 'CHARACTER_WOMAN_DANCING_MEDIUM_DARK_SKIN_TONE' => "\u{1F483}\u{1F3FE}", 'CHARACTER_WOMAN_DANCING_DARK_SKIN_TONE' => "\u{1F483}\u{1F3FF}", 'CHARACTER_MAN_DANCING' => "\u{1F57A}", 'CHARACTER_MAN_DANCING_LIGHT_SKIN_TONE' => "\u{1F57A}\u{1F3FB}", 'CHARACTER_MAN_DANCING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F57A}\u{1F3FC}", 'CHARACTER_MAN_DANCING_MEDIUM_SKIN_TONE' => "\u{1F57A}\u{1F3FD}", 'CHARACTER_MAN_DANCING_MEDIUM_DARK_SKIN_TONE' => "\u{1F57A}\u{1F3FE}", 'CHARACTER_MAN_DANCING_DARK_SKIN_TONE' => "\u{1F57A}\u{1F3FF}", 'CHARACTER_PEOPLE_WITH_BUNNY_EARS' => "\u{1F46F}", 'CHARACTER_MEN_WITH_BUNNY_EARS' => "\u{1F46F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMEN_WITH_BUNNY_EARS' => "\u{1F46F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_IN_STEAMY_ROOM' => "\u{1F9D6}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FB}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FC}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_MEDIUM_SKIN_TONE' => "\u{1F9D6}\u{1F3FD}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FE}", 'CHARACTER_PERSON_IN_STEAMY_ROOM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FF}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM' => "\u{1F9D6}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_MEDIUM_SKIN_TONE' => "\u{1F9D6}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_STEAMY_ROOM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM' => "\u{1F9D6}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D6}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_MEDIUM_SKIN_TONE' => "\u{1F9D6}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_STEAMY_ROOM_DARK_SKIN_TONE' => "\u{1F9D6}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_CLIMBING' => "\u{1F9D7}", 'CHARACTER_PERSON_CLIMBING_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FB}", 'CHARACTER_PERSON_CLIMBING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FC}", 'CHARACTER_PERSON_CLIMBING_MEDIUM_SKIN_TONE' => "\u{1F9D7}\u{1F3FD}", 'CHARACTER_PERSON_CLIMBING_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FE}", 'CHARACTER_PERSON_CLIMBING_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FF}", 'CHARACTER_WOMAN_CLIMBING' => "\u{1F9D7}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_MEDIUM_SKIN_TONE' => "\u{1F9D7}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CLIMBING_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_CLIMBING' => "\u{1F9D7}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D7}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_MEDIUM_SKIN_TONE' => "\u{1F9D7}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CLIMBING_DARK_SKIN_TONE' => "\u{1F9D7}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_IN_LOTUS_POSITION' => "\u{1F9D8}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FB}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FC}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_MEDIUM_SKIN_TONE' => "\u{1F9D8}\u{1F3FD}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FE}", 'CHARACTER_PERSON_IN_LOTUS_POSITION_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FF}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION' => "\u{1F9D8}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_MEDIUM_SKIN_TONE' => "\u{1F9D8}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_IN_LOTUS_POSITION_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION' => "\u{1F9D8}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9D8}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_MEDIUM_SKIN_TONE' => "\u{1F9D8}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_MEDIUM_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_IN_LOTUS_POSITION_DARK_SKIN_TONE' => "\u{1F9D8}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_PERSON_TAKING_BATH' => "\u{1F6C0}", 'CHARACTER_PERSON_TAKING_BATH_LIGHT_SKIN_TONE' => "\u{1F6C0}\u{1F3FB}", 'CHARACTER_PERSON_TAKING_BATH_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6C0}\u{1F3FC}", 'CHARACTER_PERSON_TAKING_BATH_MEDIUM_SKIN_TONE' => "\u{1F6C0}\u{1F3FD}", 'CHARACTER_PERSON_TAKING_BATH_MEDIUM_DARK_SKIN_TONE' => "\u{1F6C0}\u{1F3FE}", 'CHARACTER_PERSON_TAKING_BATH_DARK_SKIN_TONE' => "\u{1F6C0}\u{1F3FF}", 'CHARACTER_PERSON_IN_BED' => "\u{1F6CC}", 'CHARACTER_PERSON_IN_BED_LIGHT_SKIN_TONE' => "\u{1F6CC}\u{1F3FB}", 'CHARACTER_PERSON_IN_BED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6CC}\u{1F3FC}", 'CHARACTER_PERSON_IN_BED_MEDIUM_SKIN_TONE' => "\u{1F6CC}\u{1F3FD}", 'CHARACTER_PERSON_IN_BED_MEDIUM_DARK_SKIN_TONE' => "\u{1F6CC}\u{1F3FE}", 'CHARACTER_PERSON_IN_BED_DARK_SKIN_TONE' => "\u{1F6CC}\u{1F3FF}", 'CHARACTER_MAN_IN_SUIT_LEVITATING' => "\u{1F574}\u{FE0F}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_LIGHT_SKIN_TONE' => "\u{1F574}\u{1F3FB}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F574}\u{1F3FC}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_MEDIUM_SKIN_TONE' => "\u{1F574}\u{1F3FD}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_MEDIUM_DARK_SKIN_TONE' => "\u{1F574}\u{1F3FE}", 'CHARACTER_MAN_IN_SUIT_LEVITATING_DARK_SKIN_TONE' => "\u{1F574}\u{1F3FF}", 'CHARACTER_SPEAKING_HEAD' => "\u{1F5E3}\u{FE0F}", 'CHARACTER_BUST_IN_SILHOUETTE' => "\u{1F464}", 'CHARACTER_BUSTS_IN_SILHOUETTE' => "\u{1F465}", 'CHARACTER_PERSON_FENCING' => "\u{1F93A}", 'CHARACTER_HORSE_RACING' => "\u{1F3C7}", 'CHARACTER_HORSE_RACING_LIGHT_SKIN_TONE' => "\u{1F3C7}\u{1F3FB}", 'CHARACTER_HORSE_RACING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C7}\u{1F3FC}", 'CHARACTER_HORSE_RACING_MEDIUM_SKIN_TONE' => "\u{1F3C7}\u{1F3FD}", 'CHARACTER_HORSE_RACING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C7}\u{1F3FE}", 'CHARACTER_HORSE_RACING_DARK_SKIN_TONE' => "\u{1F3C7}\u{1F3FF}", 'CHARACTER_SKIER' => "\u{26F7}\u{FE0F}", 'CHARACTER_SNOWBOARDER' => "\u{1F3C2}", 'CHARACTER_SNOWBOARDER_LIGHT_SKIN_TONE' => "\u{1F3C2}\u{1F3FB}", 'CHARACTER_SNOWBOARDER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C2}\u{1F3FC}", 'CHARACTER_SNOWBOARDER_MEDIUM_SKIN_TONE' => "\u{1F3C2}\u{1F3FD}", 'CHARACTER_SNOWBOARDER_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C2}\u{1F3FE}", 'CHARACTER_SNOWBOARDER_DARK_SKIN_TONE' => "\u{1F3C2}\u{1F3FF}", 'CHARACTER_PERSON_GOLFING' => "\u{1F3CC}\u{FE0F}", 'CHARACTER_PERSON_GOLFING_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FB}", 'CHARACTER_PERSON_GOLFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FC}", 'CHARACTER_PERSON_GOLFING_MEDIUM_SKIN_TONE' => "\u{1F3CC}\u{1F3FD}", 'CHARACTER_PERSON_GOLFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FE}", 'CHARACTER_PERSON_GOLFING_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FF}", 'CHARACTER_MAN_GOLFING' => "\u{1F3CC}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_MEDIUM_SKIN_TONE' => "\u{1F3CC}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_GOLFING_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING' => "\u{1F3CC}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CC}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_MEDIUM_SKIN_TONE' => "\u{1F3CC}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_GOLFING_DARK_SKIN_TONE' => "\u{1F3CC}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_SURFING' => "\u{1F3C4}", 'CHARACTER_PERSON_SURFING_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FB}", 'CHARACTER_PERSON_SURFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FC}", 'CHARACTER_PERSON_SURFING_MEDIUM_SKIN_TONE' => "\u{1F3C4}\u{1F3FD}", 'CHARACTER_PERSON_SURFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FE}", 'CHARACTER_PERSON_SURFING_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FF}", 'CHARACTER_MAN_SURFING' => "\u{1F3C4}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_MEDIUM_SKIN_TONE' => "\u{1F3C4}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SURFING_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_SURFING' => "\u{1F3C4}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3C4}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_MEDIUM_SKIN_TONE' => "\u{1F3C4}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SURFING_DARK_SKIN_TONE' => "\u{1F3C4}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_ROWING_BOAT' => "\u{1F6A3}", 'CHARACTER_PERSON_ROWING_BOAT_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FB}", 'CHARACTER_PERSON_ROWING_BOAT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FC}", 'CHARACTER_PERSON_ROWING_BOAT_MEDIUM_SKIN_TONE' => "\u{1F6A3}\u{1F3FD}", 'CHARACTER_PERSON_ROWING_BOAT_MEDIUM_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FE}", 'CHARACTER_PERSON_ROWING_BOAT_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FF}", 'CHARACTER_MAN_ROWING_BOAT' => "\u{1F6A3}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_MEDIUM_SKIN_TONE' => "\u{1F6A3}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_MEDIUM_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_ROWING_BOAT_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT' => "\u{1F6A3}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6A3}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_MEDIUM_SKIN_TONE' => "\u{1F6A3}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_MEDIUM_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_ROWING_BOAT_DARK_SKIN_TONE' => "\u{1F6A3}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_SWIMMING' => "\u{1F3CA}", 'CHARACTER_PERSON_SWIMMING_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FB}", 'CHARACTER_PERSON_SWIMMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FC}", 'CHARACTER_PERSON_SWIMMING_MEDIUM_SKIN_TONE' => "\u{1F3CA}\u{1F3FD}", 'CHARACTER_PERSON_SWIMMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FE}", 'CHARACTER_PERSON_SWIMMING_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FF}", 'CHARACTER_MAN_SWIMMING' => "\u{1F3CA}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_MEDIUM_SKIN_TONE' => "\u{1F3CA}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_SWIMMING_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING' => "\u{1F3CA}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CA}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_MEDIUM_SKIN_TONE' => "\u{1F3CA}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_SWIMMING_DARK_SKIN_TONE' => "\u{1F3CA}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_BOUNCING_BALL' => "\u{26F9}\u{FE0F}", 'CHARACTER_PERSON_BOUNCING_BALL_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FB}", 'CHARACTER_PERSON_BOUNCING_BALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FC}", 'CHARACTER_PERSON_BOUNCING_BALL_MEDIUM_SKIN_TONE' => "\u{26F9}\u{1F3FD}", 'CHARACTER_PERSON_BOUNCING_BALL_MEDIUM_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FE}", 'CHARACTER_PERSON_BOUNCING_BALL_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FF}", 'CHARACTER_MAN_BOUNCING_BALL' => "\u{26F9}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_MEDIUM_SKIN_TONE' => "\u{26F9}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_MEDIUM_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BOUNCING_BALL_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL' => "\u{26F9}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{26F9}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_MEDIUM_SKIN_TONE' => "\u{26F9}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_MEDIUM_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BOUNCING_BALL_DARK_SKIN_TONE' => "\u{26F9}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_LIFTING_WEIGHTS' => "\u{1F3CB}\u{FE0F}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FB}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FC}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_MEDIUM_SKIN_TONE' => "\u{1F3CB}\u{1F3FD}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FE}", 'CHARACTER_PERSON_LIFTING_WEIGHTS_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FF}", 'CHARACTER_MAN_LIFTING_WEIGHTS' => "\u{1F3CB}\u{FE0F}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_MEDIUM_SKIN_TONE' => "\u{1F3CB}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_LIFTING_WEIGHTS_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS' => "\u{1F3CB}\u{FE0F}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F3CB}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_MEDIUM_SKIN_TONE' => "\u{1F3CB}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_MEDIUM_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_LIFTING_WEIGHTS_DARK_SKIN_TONE' => "\u{1F3CB}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_BIKING' => "\u{1F6B4}", 'CHARACTER_PERSON_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FB}", 'CHARACTER_PERSON_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FC}", 'CHARACTER_PERSON_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B4}\u{1F3FD}", 'CHARACTER_PERSON_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FE}", 'CHARACTER_PERSON_BIKING_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FF}", 'CHARACTER_MAN_BIKING' => "\u{1F6B4}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B4}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_BIKING_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_BIKING' => "\u{1F6B4}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B4}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B4}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_BIKING_DARK_SKIN_TONE' => "\u{1F6B4}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_MOUNTAIN_BIKING' => "\u{1F6B5}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FB}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FC}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B5}\u{1F3FD}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FE}", 'CHARACTER_PERSON_MOUNTAIN_BIKING_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FF}", 'CHARACTER_MAN_MOUNTAIN_BIKING' => "\u{1F6B5}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B5}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_MOUNTAIN_BIKING_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING' => "\u{1F6B5}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F6B5}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_MEDIUM_SKIN_TONE' => "\u{1F6B5}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_MEDIUM_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_MOUNTAIN_BIKING_DARK_SKIN_TONE' => "\u{1F6B5}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_RACING_CAR' => "\u{1F3CE}\u{FE0F}", 'CHARACTER_MOTORCYCLE' => "\u{1F3CD}\u{FE0F}", 'CHARACTER_PERSON_CARTWHEELING' => "\u{1F938}", 'CHARACTER_PERSON_CARTWHEELING_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FB}", 'CHARACTER_PERSON_CARTWHEELING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FC}", 'CHARACTER_PERSON_CARTWHEELING_MEDIUM_SKIN_TONE' => "\u{1F938}\u{1F3FD}", 'CHARACTER_PERSON_CARTWHEELING_MEDIUM_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FE}", 'CHARACTER_PERSON_CARTWHEELING_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FF}", 'CHARACTER_MAN_CARTWHEELING' => "\u{1F938}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_MEDIUM_SKIN_TONE' => "\u{1F938}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_MEDIUM_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_CARTWHEELING_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING' => "\u{1F938}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F938}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_MEDIUM_SKIN_TONE' => "\u{1F938}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_MEDIUM_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_CARTWHEELING_DARK_SKIN_TONE' => "\u{1F938}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PEOPLE_WRESTLING' => "\u{1F93C}", 'CHARACTER_MEN_WRESTLING' => "\u{1F93C}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMEN_WRESTLING' => "\u{1F93C}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_PLAYING_WATER_POLO' => "\u{1F93D}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FB}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FC}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_MEDIUM_SKIN_TONE' => "\u{1F93D}\u{1F3FD}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_MEDIUM_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FE}", 'CHARACTER_PERSON_PLAYING_WATER_POLO_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FF}", 'CHARACTER_MAN_PLAYING_WATER_POLO' => "\u{1F93D}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_MEDIUM_SKIN_TONE' => "\u{1F93D}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_MEDIUM_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_WATER_POLO_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO' => "\u{1F93D}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93D}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_MEDIUM_SKIN_TONE' => "\u{1F93D}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_MEDIUM_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_WATER_POLO_DARK_SKIN_TONE' => "\u{1F93D}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_PLAYING_HANDBALL' => "\u{1F93E}", 'CHARACTER_PERSON_PLAYING_HANDBALL_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FB}", 'CHARACTER_PERSON_PLAYING_HANDBALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FC}", 'CHARACTER_PERSON_PLAYING_HANDBALL_MEDIUM_SKIN_TONE' => "\u{1F93E}\u{1F3FD}", 'CHARACTER_PERSON_PLAYING_HANDBALL_MEDIUM_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FE}", 'CHARACTER_PERSON_PLAYING_HANDBALL_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FF}", 'CHARACTER_MAN_PLAYING_HANDBALL' => "\u{1F93E}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_MEDIUM_SKIN_TONE' => "\u{1F93E}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_MEDIUM_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_PLAYING_HANDBALL_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL' => "\u{1F93E}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F93E}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_MEDIUM_SKIN_TONE' => "\u{1F93E}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_MEDIUM_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_PLAYING_HANDBALL_DARK_SKIN_TONE' => "\u{1F93E}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_PERSON_JUGGLING' => "\u{1F939}", 'CHARACTER_PERSON_JUGGLING_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FB}", 'CHARACTER_PERSON_JUGGLING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FC}", 'CHARACTER_PERSON_JUGGLING_MEDIUM_SKIN_TONE' => "\u{1F939}\u{1F3FD}", 'CHARACTER_PERSON_JUGGLING_MEDIUM_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FE}", 'CHARACTER_PERSON_JUGGLING_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FF}", 'CHARACTER_MAN_JUGGLING' => "\u{1F939}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FB}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FC}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_MEDIUM_SKIN_TONE' => "\u{1F939}\u{1F3FD}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_MEDIUM_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FE}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_MAN_JUGGLING_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FF}\u{200D}\u{2642}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING' => "\u{1F939}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FB}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F939}\u{1F3FC}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_MEDIUM_SKIN_TONE' => "\u{1F939}\u{1F3FD}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_MEDIUM_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FE}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_WOMAN_JUGGLING_DARK_SKIN_TONE' => "\u{1F939}\u{1F3FF}\u{200D}\u{2640}\u{FE0F}", 'CHARACTER_MAN_AND_WOMAN_HOLDING_HANDS' => "\u{1F46B}", 'CHARACTER_TWO_MEN_HOLDING_HANDS' => "\u{1F46C}", 'CHARACTER_TWO_WOMEN_HOLDING_HANDS' => "\u{1F46D}", 'CHARACTER_KISS' => "\u{1F48F}", 'CHARACTER_KISS_WOMAN_MAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F48B}\u{200D}\u{1F468}", 'CHARACTER_KISS_MAN_MAN' => "\u{1F468}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F48B}\u{200D}\u{1F468}", 'CHARACTER_KISS_WOMAN_WOMAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F48B}\u{200D}\u{1F469}", 'CHARACTER_COUPLE_WITH_HEART' => "\u{1F491}", 'CHARACTER_COUPLE_WITH_HEART_WOMAN_MAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F468}", 'CHARACTER_COUPLE_WITH_HEART_MAN_MAN' => "\u{1F468}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F468}", 'CHARACTER_COUPLE_WITH_HEART_WOMAN_WOMAN' => "\u{1F469}\u{200D}\u{2764}\u{FE0F}\u{200D}\u{1F469}", 'CHARACTER_FAMILY' => "\u{1F46A}", 'CHARACTER_FAMILY_MAN_WOMAN_BOY' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_WOMAN_GIRL' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_WOMAN_GIRL_BOY' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_WOMAN_BOY_BOY' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_WOMAN_GIRL_GIRL' => "\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_MAN_BOY' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_MAN_GIRL' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_MAN_GIRL_BOY' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_MAN_BOY_BOY' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_MAN_GIRL_GIRL' => "\u{1F468}\u{200D}\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_WOMAN_BOY' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_WOMAN_GIRL' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_WOMAN_GIRL_BOY' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_WOMAN_BOY_BOY' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_WOMAN_GIRL_GIRL' => "\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_BOY' => "\u{1F468}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_BOY_BOY' => "\u{1F468}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_GIRL' => "\u{1F468}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_MAN_GIRL_BOY' => "\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_MAN_GIRL_GIRL' => "\u{1F468}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_BOY' => "\u{1F469}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_BOY_BOY' => "\u{1F469}\u{200D}\u{1F466}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_GIRL' => "\u{1F469}\u{200D}\u{1F467}", 'CHARACTER_FAMILY_WOMAN_GIRL_BOY' => "\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}", 'CHARACTER_FAMILY_WOMAN_GIRL_GIRL' => "\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F467}", 'CHARACTER_SELFIE' => "\u{1F933}", 'CHARACTER_SELFIE_LIGHT_SKIN_TONE' => "\u{1F933}\u{1F3FB}", 'CHARACTER_SELFIE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F933}\u{1F3FC}", 'CHARACTER_SELFIE_MEDIUM_SKIN_TONE' => "\u{1F933}\u{1F3FD}", 'CHARACTER_SELFIE_MEDIUM_DARK_SKIN_TONE' => "\u{1F933}\u{1F3FE}", 'CHARACTER_SELFIE_DARK_SKIN_TONE' => "\u{1F933}\u{1F3FF}", 'CHARACTER_FLEXED_BICEPS' => "\u{1F4AA}", 'CHARACTER_FLEXED_BICEPS_LIGHT_SKIN_TONE' => "\u{1F4AA}\u{1F3FB}", 'CHARACTER_FLEXED_BICEPS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F4AA}\u{1F3FC}", 'CHARACTER_FLEXED_BICEPS_MEDIUM_SKIN_TONE' => "\u{1F4AA}\u{1F3FD}", 'CHARACTER_FLEXED_BICEPS_MEDIUM_DARK_SKIN_TONE' => "\u{1F4AA}\u{1F3FE}", 'CHARACTER_FLEXED_BICEPS_DARK_SKIN_TONE' => "\u{1F4AA}\u{1F3FF}", 'CHARACTER_LEG' => "\u{1F9B5}", 'CHARACTER_LEG_LIGHT_SKIN_TONE' => "\u{1F9B5}\u{1F3FB}", 'CHARACTER_LEG_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B5}\u{1F3FC}", 'CHARACTER_LEG_MEDIUM_SKIN_TONE' => "\u{1F9B5}\u{1F3FD}", 'CHARACTER_LEG_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B5}\u{1F3FE}", 'CHARACTER_LEG_DARK_SKIN_TONE' => "\u{1F9B5}\u{1F3FF}", 'CHARACTER_FOOT' => "\u{1F9B6}", 'CHARACTER_FOOT_LIGHT_SKIN_TONE' => "\u{1F9B6}\u{1F3FB}", 'CHARACTER_FOOT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F9B6}\u{1F3FC}", 'CHARACTER_FOOT_MEDIUM_SKIN_TONE' => "\u{1F9B6}\u{1F3FD}", 'CHARACTER_FOOT_MEDIUM_DARK_SKIN_TONE' => "\u{1F9B6}\u{1F3FE}", 'CHARACTER_FOOT_DARK_SKIN_TONE' => "\u{1F9B6}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT' => "\u{1F448}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_LIGHT_SKIN_TONE' => "\u{1F448}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F448}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_MEDIUM_SKIN_TONE' => "\u{1F448}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_MEDIUM_DARK_SKIN_TONE' => "\u{1F448}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_LEFT_DARK_SKIN_TONE' => "\u{1F448}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT' => "\u{1F449}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_LIGHT_SKIN_TONE' => "\u{1F449}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F449}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_MEDIUM_SKIN_TONE' => "\u{1F449}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_MEDIUM_DARK_SKIN_TONE' => "\u{1F449}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_RIGHT_DARK_SKIN_TONE' => "\u{1F449}\u{1F3FF}", 'CHARACTER_INDEX_POINTING_UP' => "\u{261D}\u{FE0F}", 'CHARACTER_INDEX_POINTING_UP_LIGHT_SKIN_TONE' => "\u{261D}\u{1F3FB}", 'CHARACTER_INDEX_POINTING_UP_MEDIUM_LIGHT_SKIN_TONE' => "\u{261D}\u{1F3FC}", 'CHARACTER_INDEX_POINTING_UP_MEDIUM_SKIN_TONE' => "\u{261D}\u{1F3FD}", 'CHARACTER_INDEX_POINTING_UP_MEDIUM_DARK_SKIN_TONE' => "\u{261D}\u{1F3FE}", 'CHARACTER_INDEX_POINTING_UP_DARK_SKIN_TONE' => "\u{261D}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP' => "\u{1F446}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_LIGHT_SKIN_TONE' => "\u{1F446}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F446}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_MEDIUM_SKIN_TONE' => "\u{1F446}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_MEDIUM_DARK_SKIN_TONE' => "\u{1F446}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_UP_DARK_SKIN_TONE' => "\u{1F446}\u{1F3FF}", 'CHARACTER_MIDDLE_FINGER' => "\u{1F595}", 'CHARACTER_MIDDLE_FINGER_LIGHT_SKIN_TONE' => "\u{1F595}\u{1F3FB}", 'CHARACTER_MIDDLE_FINGER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F595}\u{1F3FC}", 'CHARACTER_MIDDLE_FINGER_MEDIUM_SKIN_TONE' => "\u{1F595}\u{1F3FD}", 'CHARACTER_MIDDLE_FINGER_MEDIUM_DARK_SKIN_TONE' => "\u{1F595}\u{1F3FE}", 'CHARACTER_MIDDLE_FINGER_DARK_SKIN_TONE' => "\u{1F595}\u{1F3FF}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN' => "\u{1F447}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_LIGHT_SKIN_TONE' => "\u{1F447}\u{1F3FB}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F447}\u{1F3FC}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_MEDIUM_SKIN_TONE' => "\u{1F447}\u{1F3FD}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_MEDIUM_DARK_SKIN_TONE' => "\u{1F447}\u{1F3FE}", 'CHARACTER_BACKHAND_INDEX_POINTING_DOWN_DARK_SKIN_TONE' => "\u{1F447}\u{1F3FF}", 'CHARACTER_VICTORY_HAND' => "\u{270C}\u{FE0F}", 'CHARACTER_VICTORY_HAND_LIGHT_SKIN_TONE' => "\u{270C}\u{1F3FB}", 'CHARACTER_VICTORY_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{270C}\u{1F3FC}", 'CHARACTER_VICTORY_HAND_MEDIUM_SKIN_TONE' => "\u{270C}\u{1F3FD}", 'CHARACTER_VICTORY_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{270C}\u{1F3FE}", 'CHARACTER_VICTORY_HAND_DARK_SKIN_TONE' => "\u{270C}\u{1F3FF}", 'CHARACTER_CROSSED_FINGERS' => "\u{1F91E}", 'CHARACTER_CROSSED_FINGERS_LIGHT_SKIN_TONE' => "\u{1F91E}\u{1F3FB}", 'CHARACTER_CROSSED_FINGERS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91E}\u{1F3FC}", 'CHARACTER_CROSSED_FINGERS_MEDIUM_SKIN_TONE' => "\u{1F91E}\u{1F3FD}", 'CHARACTER_CROSSED_FINGERS_MEDIUM_DARK_SKIN_TONE' => "\u{1F91E}\u{1F3FE}", 'CHARACTER_CROSSED_FINGERS_DARK_SKIN_TONE' => "\u{1F91E}\u{1F3FF}", 'CHARACTER_VULCAN_SALUTE' => "\u{1F596}", 'CHARACTER_VULCAN_SALUTE_LIGHT_SKIN_TONE' => "\u{1F596}\u{1F3FB}", 'CHARACTER_VULCAN_SALUTE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F596}\u{1F3FC}", 'CHARACTER_VULCAN_SALUTE_MEDIUM_SKIN_TONE' => "\u{1F596}\u{1F3FD}", 'CHARACTER_VULCAN_SALUTE_MEDIUM_DARK_SKIN_TONE' => "\u{1F596}\u{1F3FE}", 'CHARACTER_VULCAN_SALUTE_DARK_SKIN_TONE' => "\u{1F596}\u{1F3FF}", 'CHARACTER_SIGN_OF_THE_HORNS' => "\u{1F918}", 'CHARACTER_SIGN_OF_THE_HORNS_LIGHT_SKIN_TONE' => "\u{1F918}\u{1F3FB}", 'CHARACTER_SIGN_OF_THE_HORNS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F918}\u{1F3FC}", 'CHARACTER_SIGN_OF_THE_HORNS_MEDIUM_SKIN_TONE' => "\u{1F918}\u{1F3FD}", 'CHARACTER_SIGN_OF_THE_HORNS_MEDIUM_DARK_SKIN_TONE' => "\u{1F918}\u{1F3FE}", 'CHARACTER_SIGN_OF_THE_HORNS_DARK_SKIN_TONE' => "\u{1F918}\u{1F3FF}", 'CHARACTER_CALL_ME_HAND' => "\u{1F919}", 'CHARACTER_CALL_ME_HAND_LIGHT_SKIN_TONE' => "\u{1F919}\u{1F3FB}", 'CHARACTER_CALL_ME_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F919}\u{1F3FC}", 'CHARACTER_CALL_ME_HAND_MEDIUM_SKIN_TONE' => "\u{1F919}\u{1F3FD}", 'CHARACTER_CALL_ME_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F919}\u{1F3FE}", 'CHARACTER_CALL_ME_HAND_DARK_SKIN_TONE' => "\u{1F919}\u{1F3FF}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED' => "\u{1F590}\u{FE0F}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_LIGHT_SKIN_TONE' => "\u{1F590}\u{1F3FB}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F590}\u{1F3FC}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_MEDIUM_SKIN_TONE' => "\u{1F590}\u{1F3FD}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_MEDIUM_DARK_SKIN_TONE' => "\u{1F590}\u{1F3FE}", 'CHARACTER_HAND_WITH_FINGERS_SPLAYED_DARK_SKIN_TONE' => "\u{1F590}\u{1F3FF}", 'CHARACTER_RAISED_HAND' => "\u{270B}", 'CHARACTER_RAISED_HAND_LIGHT_SKIN_TONE' => "\u{270B}\u{1F3FB}", 'CHARACTER_RAISED_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{270B}\u{1F3FC}", 'CHARACTER_RAISED_HAND_MEDIUM_SKIN_TONE' => "\u{270B}\u{1F3FD}", 'CHARACTER_RAISED_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{270B}\u{1F3FE}", 'CHARACTER_RAISED_HAND_DARK_SKIN_TONE' => "\u{270B}\u{1F3FF}", 'CHARACTER_OK_HAND' => "\u{1F44C}", 'CHARACTER_OK_HAND_LIGHT_SKIN_TONE' => "\u{1F44C}\u{1F3FB}", 'CHARACTER_OK_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44C}\u{1F3FC}", 'CHARACTER_OK_HAND_MEDIUM_SKIN_TONE' => "\u{1F44C}\u{1F3FD}", 'CHARACTER_OK_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F44C}\u{1F3FE}", 'CHARACTER_OK_HAND_DARK_SKIN_TONE' => "\u{1F44C}\u{1F3FF}", 'CHARACTER_THUMBS_UP' => "\u{1F44D}", 'CHARACTER_THUMBS_UP_LIGHT_SKIN_TONE' => "\u{1F44D}\u{1F3FB}", 'CHARACTER_THUMBS_UP_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44D}\u{1F3FC}", 'CHARACTER_THUMBS_UP_MEDIUM_SKIN_TONE' => "\u{1F44D}\u{1F3FD}", 'CHARACTER_THUMBS_UP_MEDIUM_DARK_SKIN_TONE' => "\u{1F44D}\u{1F3FE}", 'CHARACTER_THUMBS_UP_DARK_SKIN_TONE' => "\u{1F44D}\u{1F3FF}", 'CHARACTER_THUMBS_DOWN' => "\u{1F44E}", 'CHARACTER_THUMBS_DOWN_LIGHT_SKIN_TONE' => "\u{1F44E}\u{1F3FB}", 'CHARACTER_THUMBS_DOWN_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44E}\u{1F3FC}", 'CHARACTER_THUMBS_DOWN_MEDIUM_SKIN_TONE' => "\u{1F44E}\u{1F3FD}", 'CHARACTER_THUMBS_DOWN_MEDIUM_DARK_SKIN_TONE' => "\u{1F44E}\u{1F3FE}", 'CHARACTER_THUMBS_DOWN_DARK_SKIN_TONE' => "\u{1F44E}\u{1F3FF}", 'CHARACTER_RAISED_FIST' => "\u{270A}", 'CHARACTER_RAISED_FIST_LIGHT_SKIN_TONE' => "\u{270A}\u{1F3FB}", 'CHARACTER_RAISED_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{270A}\u{1F3FC}", 'CHARACTER_RAISED_FIST_MEDIUM_SKIN_TONE' => "\u{270A}\u{1F3FD}", 'CHARACTER_RAISED_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{270A}\u{1F3FE}", 'CHARACTER_RAISED_FIST_DARK_SKIN_TONE' => "\u{270A}\u{1F3FF}", 'CHARACTER_ONCOMING_FIST' => "\u{1F44A}", 'CHARACTER_ONCOMING_FIST_LIGHT_SKIN_TONE' => "\u{1F44A}\u{1F3FB}", 'CHARACTER_ONCOMING_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44A}\u{1F3FC}", 'CHARACTER_ONCOMING_FIST_MEDIUM_SKIN_TONE' => "\u{1F44A}\u{1F3FD}", 'CHARACTER_ONCOMING_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F44A}\u{1F3FE}", 'CHARACTER_ONCOMING_FIST_DARK_SKIN_TONE' => "\u{1F44A}\u{1F3FF}", 'CHARACTER_LEFT_FACING_FIST' => "\u{1F91B}", 'CHARACTER_LEFT_FACING_FIST_LIGHT_SKIN_TONE' => "\u{1F91B}\u{1F3FB}", 'CHARACTER_LEFT_FACING_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91B}\u{1F3FC}", 'CHARACTER_LEFT_FACING_FIST_MEDIUM_SKIN_TONE' => "\u{1F91B}\u{1F3FD}", 'CHARACTER_LEFT_FACING_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F91B}\u{1F3FE}", 'CHARACTER_LEFT_FACING_FIST_DARK_SKIN_TONE' => "\u{1F91B}\u{1F3FF}", 'CHARACTER_RIGHT_FACING_FIST' => "\u{1F91C}", 'CHARACTER_RIGHT_FACING_FIST_LIGHT_SKIN_TONE' => "\u{1F91C}\u{1F3FB}", 'CHARACTER_RIGHT_FACING_FIST_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91C}\u{1F3FC}", 'CHARACTER_RIGHT_FACING_FIST_MEDIUM_SKIN_TONE' => "\u{1F91C}\u{1F3FD}", 'CHARACTER_RIGHT_FACING_FIST_MEDIUM_DARK_SKIN_TONE' => "\u{1F91C}\u{1F3FE}", 'CHARACTER_RIGHT_FACING_FIST_DARK_SKIN_TONE' => "\u{1F91C}\u{1F3FF}", 'CHARACTER_RAISED_BACK_OF_HAND' => "\u{1F91A}", 'CHARACTER_RAISED_BACK_OF_HAND_LIGHT_SKIN_TONE' => "\u{1F91A}\u{1F3FB}", 'CHARACTER_RAISED_BACK_OF_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91A}\u{1F3FC}", 'CHARACTER_RAISED_BACK_OF_HAND_MEDIUM_SKIN_TONE' => "\u{1F91A}\u{1F3FD}", 'CHARACTER_RAISED_BACK_OF_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F91A}\u{1F3FE}", 'CHARACTER_RAISED_BACK_OF_HAND_DARK_SKIN_TONE' => "\u{1F91A}\u{1F3FF}", 'CHARACTER_WAVING_HAND' => "\u{1F44B}", 'CHARACTER_WAVING_HAND_LIGHT_SKIN_TONE' => "\u{1F44B}\u{1F3FB}", 'CHARACTER_WAVING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44B}\u{1F3FC}", 'CHARACTER_WAVING_HAND_MEDIUM_SKIN_TONE' => "\u{1F44B}\u{1F3FD}", 'CHARACTER_WAVING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{1F44B}\u{1F3FE}", 'CHARACTER_WAVING_HAND_DARK_SKIN_TONE' => "\u{1F44B}\u{1F3FF}", 'CHARACTER_LOVE_YOU_GESTURE' => "\u{1F91F}", 'CHARACTER_LOVE_YOU_GESTURE_LIGHT_SKIN_TONE' => "\u{1F91F}\u{1F3FB}", 'CHARACTER_LOVE_YOU_GESTURE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F91F}\u{1F3FC}", 'CHARACTER_LOVE_YOU_GESTURE_MEDIUM_SKIN_TONE' => "\u{1F91F}\u{1F3FD}", 'CHARACTER_LOVE_YOU_GESTURE_MEDIUM_DARK_SKIN_TONE' => "\u{1F91F}\u{1F3FE}", 'CHARACTER_LOVE_YOU_GESTURE_DARK_SKIN_TONE' => "\u{1F91F}\u{1F3FF}", 'CHARACTER_WRITING_HAND' => "\u{270D}\u{FE0F}", 'CHARACTER_WRITING_HAND_LIGHT_SKIN_TONE' => "\u{270D}\u{1F3FB}", 'CHARACTER_WRITING_HAND_MEDIUM_LIGHT_SKIN_TONE' => "\u{270D}\u{1F3FC}", 'CHARACTER_WRITING_HAND_MEDIUM_SKIN_TONE' => "\u{270D}\u{1F3FD}", 'CHARACTER_WRITING_HAND_MEDIUM_DARK_SKIN_TONE' => "\u{270D}\u{1F3FE}", 'CHARACTER_WRITING_HAND_DARK_SKIN_TONE' => "\u{270D}\u{1F3FF}", 'CHARACTER_CLAPPING_HANDS' => "\u{1F44F}", 'CHARACTER_CLAPPING_HANDS_LIGHT_SKIN_TONE' => "\u{1F44F}\u{1F3FB}", 'CHARACTER_CLAPPING_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F44F}\u{1F3FC}", 'CHARACTER_CLAPPING_HANDS_MEDIUM_SKIN_TONE' => "\u{1F44F}\u{1F3FD}", 'CHARACTER_CLAPPING_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F44F}\u{1F3FE}", 'CHARACTER_CLAPPING_HANDS_DARK_SKIN_TONE' => "\u{1F44F}\u{1F3FF}", 'CHARACTER_OPEN_HANDS' => "\u{1F450}", 'CHARACTER_OPEN_HANDS_LIGHT_SKIN_TONE' => "\u{1F450}\u{1F3FB}", 'CHARACTER_OPEN_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F450}\u{1F3FC}", 'CHARACTER_OPEN_HANDS_MEDIUM_SKIN_TONE' => "\u{1F450}\u{1F3FD}", 'CHARACTER_OPEN_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F450}\u{1F3FE}", 'CHARACTER_OPEN_HANDS_DARK_SKIN_TONE' => "\u{1F450}\u{1F3FF}", 'CHARACTER_RAISING_HANDS' => "\u{1F64C}", 'CHARACTER_RAISING_HANDS_LIGHT_SKIN_TONE' => "\u{1F64C}\u{1F3FB}", 'CHARACTER_RAISING_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64C}\u{1F3FC}", 'CHARACTER_RAISING_HANDS_MEDIUM_SKIN_TONE' => "\u{1F64C}\u{1F3FD}", 'CHARACTER_RAISING_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F64C}\u{1F3FE}", 'CHARACTER_RAISING_HANDS_DARK_SKIN_TONE' => "\u{1F64C}\u{1F3FF}", 'CHARACTER_PALMS_UP_TOGETHER' => "\u{1F932}", 'CHARACTER_PALMS_UP_TOGETHER_LIGHT_SKIN_TONE' => "\u{1F932}\u{1F3FB}", 'CHARACTER_PALMS_UP_TOGETHER_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F932}\u{1F3FC}", 'CHARACTER_PALMS_UP_TOGETHER_MEDIUM_SKIN_TONE' => "\u{1F932}\u{1F3FD}", 'CHARACTER_PALMS_UP_TOGETHER_MEDIUM_DARK_SKIN_TONE' => "\u{1F932}\u{1F3FE}", 'CHARACTER_PALMS_UP_TOGETHER_DARK_SKIN_TONE' => "\u{1F932}\u{1F3FF}", 'CHARACTER_FOLDED_HANDS' => "\u{1F64F}", 'CHARACTER_FOLDED_HANDS_LIGHT_SKIN_TONE' => "\u{1F64F}\u{1F3FB}", 'CHARACTER_FOLDED_HANDS_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F64F}\u{1F3FC}", 'CHARACTER_FOLDED_HANDS_MEDIUM_SKIN_TONE' => "\u{1F64F}\u{1F3FD}", 'CHARACTER_FOLDED_HANDS_MEDIUM_DARK_SKIN_TONE' => "\u{1F64F}\u{1F3FE}", 'CHARACTER_FOLDED_HANDS_DARK_SKIN_TONE' => "\u{1F64F}\u{1F3FF}", 'CHARACTER_HANDSHAKE' => "\u{1F91D}", 'CHARACTER_NAIL_POLISH' => "\u{1F485}", 'CHARACTER_NAIL_POLISH_LIGHT_SKIN_TONE' => "\u{1F485}\u{1F3FB}", 'CHARACTER_NAIL_POLISH_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F485}\u{1F3FC}", 'CHARACTER_NAIL_POLISH_MEDIUM_SKIN_TONE' => "\u{1F485}\u{1F3FD}", 'CHARACTER_NAIL_POLISH_MEDIUM_DARK_SKIN_TONE' => "\u{1F485}\u{1F3FE}", 'CHARACTER_NAIL_POLISH_DARK_SKIN_TONE' => "\u{1F485}\u{1F3FF}", 'CHARACTER_EAR' => "\u{1F442}", 'CHARACTER_EAR_LIGHT_SKIN_TONE' => "\u{1F442}\u{1F3FB}", 'CHARACTER_EAR_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F442}\u{1F3FC}", 'CHARACTER_EAR_MEDIUM_SKIN_TONE' => "\u{1F442}\u{1F3FD}", 'CHARACTER_EAR_MEDIUM_DARK_SKIN_TONE' => "\u{1F442}\u{1F3FE}", 'CHARACTER_EAR_DARK_SKIN_TONE' => "\u{1F442}\u{1F3FF}", 'CHARACTER_NOSE' => "\u{1F443}", 'CHARACTER_NOSE_LIGHT_SKIN_TONE' => "\u{1F443}\u{1F3FB}", 'CHARACTER_NOSE_MEDIUM_LIGHT_SKIN_TONE' => "\u{1F443}\u{1F3FC}", 'CHARACTER_NOSE_MEDIUM_SKIN_TONE' => "\u{1F443}\u{1F3FD}", 'CHARACTER_NOSE_MEDIUM_DARK_SKIN_TONE' => "\u{1F443}\u{1F3FE}", 'CHARACTER_NOSE_DARK_SKIN_TONE' => "\u{1F443}\u{1F3FF}", 'CHARACTER_RED_HAIRED' => "\u{1F9B0}", 'CHARACTER_CURLY_HAIRED' => "\u{1F9B1}", 'CHARACTER_BALD' => "\u{1F9B2}", 'CHARACTER_WHITE_HAIRED' => "\u{1F9B3}", 'CHARACTER_FOOTPRINTS' => "\u{1F463}", 'CHARACTER_EYES' => "\u{1F440}", 'CHARACTER_EYE' => "\u{1F441}\u{FE0F}", 'CHARACTER_EYE_IN_SPEECH_BUBBLE' => "\u{1F441}\u{FE0F}\u{200D}\u{1F5E8}\u{FE0F}", 'CHARACTER_BRAIN' => "\u{1F9E0}", 'CHARACTER_BONE' => "\u{1F9B4}", 'CHARACTER_TOOTH' => "\u{1F9B7}", 'CHARACTER_TONGUE' => "\u{1F445}", 'CHARACTER_MOUTH' => "\u{1F444}", 'CHARACTER_KISS_MARK' => "\u{1F48B}", 'CHARACTER_HEART_WITH_ARROW' => "\u{1F498}", 'CHARACTER_RED_HEART' => "\u{2764}\u{FE0F}", 'CHARACTER_BEATING_HEART' => "\u{1F493}", 'CHARACTER_BROKEN_HEART' => "\u{1F494}", 'CHARACTER_TWO_HEARTS' => "\u{1F495}", 'CHARACTER_SPARKLING_HEART' => "\u{1F496}", 'CHARACTER_GROWING_HEART' => "\u{1F497}", 'CHARACTER_BLUE_HEART' => "\u{1F499}", 'CHARACTER_GREEN_HEART' => "\u{1F49A}", 'CHARACTER_YELLOW_HEART' => "\u{1F49B}", 'CHARACTER_ORANGE_HEART' => "\u{1F9E1}", 'CHARACTER_PURPLE_HEART' => "\u{1F49C}", 'CHARACTER_BLACK_HEART' => "\u{1F5A4}", 'CHARACTER_HEART_WITH_RIBBON' => "\u{1F49D}", 'CHARACTER_REVOLVING_HEARTS' => "\u{1F49E}", 'CHARACTER_HEART_DECORATION' => "\u{1F49F}", 'CHARACTER_HEAVY_HEART_EXCLAMATION' => "\u{2763}\u{FE0F}", 'CHARACTER_LOVE_LETTER' => "\u{1F48C}", 'CHARACTER_ZZZ' => "\u{1F4A4}", 'CHARACTER_ANGER_SYMBOL' => "\u{1F4A2}", 'CHARACTER_BOMB' => "\u{1F4A3}", 'CHARACTER_COLLISION' => "\u{1F4A5}", 'CHARACTER_SWEAT_DROPLETS' => "\u{1F4A6}", 'CHARACTER_DASHING_AWAY' => "\u{1F4A8}", 'CHARACTER_DIZZY' => "\u{1F4AB}", 'CHARACTER_SPEECH_BALLOON' => "\u{1F4AC}", 'CHARACTER_LEFT_SPEECH_BUBBLE' => "\u{1F5E8}\u{FE0F}", 'CHARACTER_RIGHT_ANGER_BUBBLE' => "\u{1F5EF}\u{FE0F}", 'CHARACTER_THOUGHT_BALLOON' => "\u{1F4AD}", 'CHARACTER_HOLE' => "\u{1F573}\u{FE0F}", 'CHARACTER_GLASSES' => "\u{1F453}", 'CHARACTER_SUNGLASSES' => "\u{1F576}\u{FE0F}", 'CHARACTER_GOGGLES' => "\u{1F97D}", 'CHARACTER_LAB_COAT' => "\u{1F97C}", 'CHARACTER_NECKTIE' => "\u{1F454}", 'CHARACTER_T_SHIRT' => "\u{1F455}", 'CHARACTER_JEANS' => "\u{1F456}", 'CHARACTER_SCARF' => "\u{1F9E3}", 'CHARACTER_GLOVES' => "\u{1F9E4}", 'CHARACTER_COAT' => "\u{1F9E5}", 'CHARACTER_SOCKS' => "\u{1F9E6}", 'CHARACTER_DRESS' => "\u{1F457}", 'CHARACTER_KIMONO' => "\u{1F458}", 'CHARACTER_BIKINI' => "\u{1F459}", 'CHARACTER_WOMAN_S_CLOTHES' => "\u{1F45A}", 'CHARACTER_PURSE' => "\u{1F45B}", 'CHARACTER_HANDBAG' => "\u{1F45C}", 'CHARACTER_CLUTCH_BAG' => "\u{1F45D}", 'CHARACTER_SHOPPING_BAGS' => "\u{1F6CD}\u{FE0F}", 'CHARACTER_SCHOOL_BACKPACK' => "\u{1F392}", 'CHARACTER_MAN_S_SHOE' => "\u{1F45E}", 'CHARACTER_RUNNING_SHOE' => "\u{1F45F}", 'CHARACTER_HIKING_BOOT' => "\u{1F97E}", 'CHARACTER_WOMAN_S_FLAT_SHOE' => "\u{1F97F}", 'CHARACTER_HIGH_HEELED_SHOE' => "\u{1F460}", 'CHARACTER_WOMAN_S_SANDAL' => "\u{1F461}", 'CHARACTER_WOMAN_S_BOOT' => "\u{1F462}", 'CHARACTER_CROWN' => "\u{1F451}", 'CHARACTER_WOMAN_S_HAT' => "\u{1F452}", 'CHARACTER_TOP_HAT' => "\u{1F3A9}", 'CHARACTER_GRADUATION_CAP' => "\u{1F393}", 'CHARACTER_BILLED_CAP' => "\u{1F9E2}", 'CHARACTER_RESCUE_WORKER_S_HELMET' => "\u{26D1}\u{FE0F}", 'CHARACTER_PRAYER_BEADS' => "\u{1F4FF}", 'CHARACTER_LIPSTICK' => "\u{1F484}", 'CHARACTER_RING' => "\u{1F48D}", 'CHARACTER_GEM_STONE' => "\u{1F48E}", 'CHARACTER_MONKEY_FACE' => "\u{1F435}", 'CHARACTER_MONKEY' => "\u{1F412}", 'CHARACTER_GORILLA' => "\u{1F98D}", 'CHARACTER_DOG_FACE' => "\u{1F436}", 'CHARACTER_DOG' => "\u{1F415}", 'CHARACTER_POODLE' => "\u{1F429}", 'CHARACTER_WOLF_FACE' => "\u{1F43A}", 'CHARACTER_FOX_FACE' => "\u{1F98A}", 'CHARACTER_RACCOON' => "\u{1F99D}", 'CHARACTER_CAT_FACE' => "\u{1F431}", 'CHARACTER_CAT' => "\u{1F408}", 'CHARACTER_LION_FACE' => "\u{1F981}", 'CHARACTER_TIGER_FACE' => "\u{1F42F}", 'CHARACTER_TIGER' => "\u{1F405}", 'CHARACTER_LEOPARD' => "\u{1F406}", 'CHARACTER_HORSE_FACE' => "\u{1F434}", 'CHARACTER_HORSE' => "\u{1F40E}", 'CHARACTER_UNICORN_FACE' => "\u{1F984}", 'CHARACTER_ZEBRA' => "\u{1F993}", 'CHARACTER_DEER' => "\u{1F98C}", 'CHARACTER_COW_FACE' => "\u{1F42E}", 'CHARACTER_OX' => "\u{1F402}", 'CHARACTER_WATER_BUFFALO' => "\u{1F403}", 'CHARACTER_COW' => "\u{1F404}", 'CHARACTER_PIG_FACE' => "\u{1F437}", 'CHARACTER_PIG' => "\u{1F416}", 'CHARACTER_BOAR' => "\u{1F417}", 'CHARACTER_PIG_NOSE' => "\u{1F43D}", 'CHARACTER_RAM' => "\u{1F40F}", 'CHARACTER_EWE' => "\u{1F411}", 'CHARACTER_GOAT' => "\u{1F410}", 'CHARACTER_CAMEL' => "\u{1F42A}", 'CHARACTER_TWO_HUMP_CAMEL' => "\u{1F42B}", 'CHARACTER_LLAMA' => "\u{1F999}", 'CHARACTER_GIRAFFE' => "\u{1F992}", 'CHARACTER_ELEPHANT' => "\u{1F418}", 'CHARACTER_RHINOCEROS' => "\u{1F98F}", 'CHARACTER_HIPPOPOTAMUS' => "\u{1F99B}", 'CHARACTER_MOUSE_FACE' => "\u{1F42D}", 'CHARACTER_MOUSE' => "\u{1F401}", 'CHARACTER_RAT' => "\u{1F400}", 'CHARACTER_HAMSTER_FACE' => "\u{1F439}", 'CHARACTER_RABBIT_FACE' => "\u{1F430}", 'CHARACTER_RABBIT' => "\u{1F407}", 'CHARACTER_CHIPMUNK' => "\u{1F43F}\u{FE0F}", 'CHARACTER_HEDGEHOG' => "\u{1F994}", 'CHARACTER_BAT' => "\u{1F987}", 'CHARACTER_BEAR_FACE' => "\u{1F43B}", 'CHARACTER_KOALA' => "\u{1F428}", 'CHARACTER_PANDA_FACE' => "\u{1F43C}", 'CHARACTER_KANGAROO' => "\u{1F998}", 'CHARACTER_BADGER' => "\u{1F9A1}", 'CHARACTER_PAW_PRINTS' => "\u{1F43E}", 'CHARACTER_TURKEY' => "\u{1F983}", 'CHARACTER_CHICKEN' => "\u{1F414}", 'CHARACTER_ROOSTER' => "\u{1F413}", 'CHARACTER_HATCHING_CHICK' => "\u{1F423}", 'CHARACTER_BABY_CHICK' => "\u{1F424}", 'CHARACTER_FRONT_FACING_BABY_CHICK' => "\u{1F425}", 'CHARACTER_BIRD' => "\u{1F426}", 'CHARACTER_PENGUIN' => "\u{1F427}", 'CHARACTER_DOVE' => "\u{1F54A}\u{FE0F}", 'CHARACTER_EAGLE' => "\u{1F985}", 'CHARACTER_DUCK' => "\u{1F986}", 'CHARACTER_SWAN' => "\u{1F9A2}", 'CHARACTER_OWL' => "\u{1F989}", 'CHARACTER_PEACOCK' => "\u{1F99A}", 'CHARACTER_PARROT' => "\u{1F99C}", 'CHARACTER_FROG_FACE' => "\u{1F438}", 'CHARACTER_CROCODILE' => "\u{1F40A}", 'CHARACTER_TURTLE' => "\u{1F422}", 'CHARACTER_LIZARD' => "\u{1F98E}", 'CHARACTER_SNAKE' => "\u{1F40D}", 'CHARACTER_DRAGON_FACE' => "\u{1F432}", 'CHARACTER_DRAGON' => "\u{1F409}", 'CHARACTER_SAUROPOD' => "\u{1F995}", 'CHARACTER_T_REX' => "\u{1F996}", 'CHARACTER_SPOUTING_WHALE' => "\u{1F433}", 'CHARACTER_WHALE' => "\u{1F40B}", 'CHARACTER_DOLPHIN' => "\u{1F42C}", 'CHARACTER_FISH' => "\u{1F41F}", 'CHARACTER_TROPICAL_FISH' => "\u{1F420}", 'CHARACTER_BLOWFISH' => "\u{1F421}", 'CHARACTER_SHARK' => "\u{1F988}", 'CHARACTER_OCTOPUS' => "\u{1F419}", 'CHARACTER_SPIRAL_SHELL' => "\u{1F41A}", 'CHARACTER_CRAB' => "\u{1F980}", 'CHARACTER_LOBSTER' => "\u{1F99E}", 'CHARACTER_SHRIMP' => "\u{1F990}", 'CHARACTER_SQUID' => "\u{1F991}", 'CHARACTER_SNAIL' => "\u{1F40C}", 'CHARACTER_BUTTERFLY' => "\u{1F98B}", 'CHARACTER_BUG' => "\u{1F41B}", 'CHARACTER_ANT' => "\u{1F41C}", 'CHARACTER_HONEYBEE' => "\u{1F41D}", 'CHARACTER_LADY_BEETLE' => "\u{1F41E}", 'CHARACTER_CRICKET' => "\u{1F997}", 'CHARACTER_SPIDER' => "\u{1F577}\u{FE0F}", 'CHARACTER_SPIDER_WEB' => "\u{1F578}\u{FE0F}", 'CHARACTER_SCORPION' => "\u{1F982}", 'CHARACTER_MOSQUITO' => "\u{1F99F}", 'CHARACTER_MICROBE' => "\u{1F9A0}", 'CHARACTER_BOUQUET' => "\u{1F490}", 'CHARACTER_CHERRY_BLOSSOM' => "\u{1F338}", 'CHARACTER_WHITE_FLOWER' => "\u{1F4AE}", 'CHARACTER_ROSETTE' => "\u{1F3F5}\u{FE0F}", 'CHARACTER_ROSE' => "\u{1F339}", 'CHARACTER_WILTED_FLOWER' => "\u{1F940}", 'CHARACTER_HIBISCUS' => "\u{1F33A}", 'CHARACTER_SUNFLOWER' => "\u{1F33B}", 'CHARACTER_BLOSSOM' => "\u{1F33C}", 'CHARACTER_TULIP' => "\u{1F337}", 'CHARACTER_SEEDLING' => "\u{1F331}", 'CHARACTER_EVERGREEN_TREE' => "\u{1F332}", 'CHARACTER_DECIDUOUS_TREE' => "\u{1F333}", 'CHARACTER_PALM_TREE' => "\u{1F334}", 'CHARACTER_CACTUS' => "\u{1F335}", 'CHARACTER_SHEAF_OF_RICE' => "\u{1F33E}", 'CHARACTER_HERB' => "\u{1F33F}", 'CHARACTER_SHAMROCK' => "\u{2618}\u{FE0F}", 'CHARACTER_FOUR_LEAF_CLOVER' => "\u{1F340}", 'CHARACTER_MAPLE_LEAF' => "\u{1F341}", 'CHARACTER_FALLEN_LEAF' => "\u{1F342}", 'CHARACTER_LEAF_FLUTTERING_IN_WIND' => "\u{1F343}", 'CHARACTER_GRAPES' => "\u{1F347}", 'CHARACTER_MELON' => "\u{1F348}", 'CHARACTER_WATERMELON' => "\u{1F349}", 'CHARACTER_TANGERINE' => "\u{1F34A}", 'CHARACTER_LEMON' => "\u{1F34B}", 'CHARACTER_BANANA' => "\u{1F34C}", 'CHARACTER_PINEAPPLE' => "\u{1F34D}", 'CHARACTER_MANGO' => "\u{1F96D}", 'CHARACTER_RED_APPLE' => "\u{1F34E}", 'CHARACTER_GREEN_APPLE' => "\u{1F34F}", 'CHARACTER_PEAR' => "\u{1F350}", 'CHARACTER_PEACH' => "\u{1F351}", 'CHARACTER_CHERRIES' => "\u{1F352}", 'CHARACTER_STRAWBERRY' => "\u{1F353}", 'CHARACTER_KIWI_FRUIT' => "\u{1F95D}", 'CHARACTER_TOMATO' => "\u{1F345}", 'CHARACTER_COCONUT' => "\u{1F965}", 'CHARACTER_AVOCADO' => "\u{1F951}", 'CHARACTER_EGGPLANT' => "\u{1F346}", 'CHARACTER_POTATO' => "\u{1F954}", 'CHARACTER_CARROT' => "\u{1F955}", 'CHARACTER_EAR_OF_CORN' => "\u{1F33D}", 'CHARACTER_HOT_PEPPER' => "\u{1F336}\u{FE0F}", 'CHARACTER_CUCUMBER' => "\u{1F952}", 'CHARACTER_LEAFY_GREEN' => "\u{1F96C}", 'CHARACTER_BROCCOLI' => "\u{1F966}", 'CHARACTER_MUSHROOM' => "\u{1F344}", 'CHARACTER_PEANUTS' => "\u{1F95C}", 'CHARACTER_CHESTNUT' => "\u{1F330}", 'CHARACTER_BREAD' => "\u{1F35E}", 'CHARACTER_CROISSANT' => "\u{1F950}", 'CHARACTER_BAGUETTE_BREAD' => "\u{1F956}", 'CHARACTER_PRETZEL' => "\u{1F968}", 'CHARACTER_BAGEL' => "\u{1F96F}", 'CHARACTER_PANCAKES' => "\u{1F95E}", 'CHARACTER_CHEESE_WEDGE' => "\u{1F9C0}", 'CHARACTER_MEAT_ON_BONE' => "\u{1F356}", 'CHARACTER_POULTRY_LEG' => "\u{1F357}", 'CHARACTER_CUT_OF_MEAT' => "\u{1F969}", 'CHARACTER_BACON' => "\u{1F953}", 'CHARACTER_HAMBURGER' => "\u{1F354}", 'CHARACTER_FRENCH_FRIES' => "\u{1F35F}", 'CHARACTER_PIZZA' => "\u{1F355}", 'CHARACTER_HOT_DOG' => "\u{1F32D}", 'CHARACTER_SANDWICH' => "\u{1F96A}", 'CHARACTER_TACO' => "\u{1F32E}", 'CHARACTER_BURRITO' => "\u{1F32F}", 'CHARACTER_STUFFED_FLATBREAD' => "\u{1F959}", 'CHARACTER_EGG' => "\u{1F95A}", 'CHARACTER_COOKING' => "\u{1F373}", 'CHARACTER_SHALLOW_PAN_OF_FOOD' => "\u{1F958}", 'CHARACTER_POT_OF_FOOD' => "\u{1F372}", 'CHARACTER_BOWL_WITH_SPOON' => "\u{1F963}", 'CHARACTER_GREEN_SALAD' => "\u{1F957}", 'CHARACTER_POPCORN' => "\u{1F37F}", 'CHARACTER_SALT' => "\u{1F9C2}", 'CHARACTER_CANNED_FOOD' => "\u{1F96B}", 'CHARACTER_BENTO_BOX' => "\u{1F371}", 'CHARACTER_RICE_CRACKER' => "\u{1F358}", 'CHARACTER_RICE_BALL' => "\u{1F359}", 'CHARACTER_COOKED_RICE' => "\u{1F35A}", 'CHARACTER_CURRY_RICE' => "\u{1F35B}", 'CHARACTER_STEAMING_BOWL' => "\u{1F35C}", 'CHARACTER_SPAGHETTI' => "\u{1F35D}", 'CHARACTER_ROASTED_SWEET_POTATO' => "\u{1F360}", 'CHARACTER_ODEN' => "\u{1F362}", 'CHARACTER_SUSHI' => "\u{1F363}", 'CHARACTER_FRIED_SHRIMP' => "\u{1F364}", 'CHARACTER_FISH_CAKE_WITH_SWIRL' => "\u{1F365}", 'CHARACTER_MOON_CAKE' => "\u{1F96E}", 'CHARACTER_DANGO' => "\u{1F361}", 'CHARACTER_DUMPLING' => "\u{1F95F}", 'CHARACTER_FORTUNE_COOKIE' => "\u{1F960}", 'CHARACTER_TAKEOUT_BOX' => "\u{1F961}", 'CHARACTER_SOFT_ICE_CREAM' => "\u{1F366}", 'CHARACTER_SHAVED_ICE' => "\u{1F367}", 'CHARACTER_ICE_CREAM' => "\u{1F368}", 'CHARACTER_DOUGHNUT' => "\u{1F369}", 'CHARACTER_COOKIE' => "\u{1F36A}", 'CHARACTER_BIRTHDAY_CAKE' => "\u{1F382}", 'CHARACTER_SHORTCAKE' => "\u{1F370}", 'CHARACTER_CUPCAKE' => "\u{1F9C1}", 'CHARACTER_PIE' => "\u{1F967}", 'CHARACTER_CHOCOLATE_BAR' => "\u{1F36B}", 'CHARACTER_CANDY' => "\u{1F36C}", 'CHARACTER_LOLLIPOP' => "\u{1F36D}", 'CHARACTER_CUSTARD' => "\u{1F36E}", 'CHARACTER_HONEY_POT' => "\u{1F36F}", 'CHARACTER_BABY_BOTTLE' => "\u{1F37C}", 'CHARACTER_GLASS_OF_MILK' => "\u{1F95B}", 'CHARACTER_HOT_BEVERAGE' => "\u{2615}", 'CHARACTER_TEACUP_WITHOUT_HANDLE' => "\u{1F375}", 'CHARACTER_SAKE' => "\u{1F376}", 'CHARACTER_BOTTLE_WITH_POPPING_CORK' => "\u{1F37E}", 'CHARACTER_WINE_GLASS' => "\u{1F377}", 'CHARACTER_COCKTAIL_GLASS' => "\u{1F378}", 'CHARACTER_TROPICAL_DRINK' => "\u{1F379}", 'CHARACTER_BEER_MUG' => "\u{1F37A}", 'CHARACTER_CLINKING_BEER_MUGS' => "\u{1F37B}", 'CHARACTER_CLINKING_GLASSES' => "\u{1F942}", 'CHARACTER_TUMBLER_GLASS' => "\u{1F943}", 'CHARACTER_CUP_WITH_STRAW' => "\u{1F964}", 'CHARACTER_CHOPSTICKS' => "\u{1F962}", 'CHARACTER_FORK_AND_KNIFE_WITH_PLATE' => "\u{1F37D}\u{FE0F}", 'CHARACTER_FORK_AND_KNIFE' => "\u{1F374}", 'CHARACTER_SPOON' => "\u{1F944}", 'CHARACTER_KITCHEN_KNIFE' => "\u{1F52A}", 'CHARACTER_AMPHORA' => "\u{1F3FA}", 'CHARACTER_GLOBE_SHOWING_EUROPE_AFRICA' => "\u{1F30D}", 'CHARACTER_GLOBE_SHOWING_AMERICAS' => "\u{1F30E}", 'CHARACTER_GLOBE_SHOWING_ASIA_AUSTRALIA' => "\u{1F30F}", 'CHARACTER_GLOBE_WITH_MERIDIANS' => "\u{1F310}", 'CHARACTER_WORLD_MAP' => "\u{1F5FA}\u{FE0F}", 'CHARACTER_MAP_OF_JAPAN' => "\u{1F5FE}", 'CHARACTER_COMPASS' => "\u{1F9ED}", 'CHARACTER_SNOW_CAPPED_MOUNTAIN' => "\u{1F3D4}\u{FE0F}", 'CHARACTER_MOUNTAIN' => "\u{26F0}\u{FE0F}", 'CHARACTER_VOLCANO' => "\u{1F30B}", 'CHARACTER_MOUNT_FUJI' => "\u{1F5FB}", 'CHARACTER_CAMPING' => "\u{1F3D5}\u{FE0F}", 'CHARACTER_BEACH_WITH_UMBRELLA' => "\u{1F3D6}\u{FE0F}", 'CHARACTER_DESERT' => "\u{1F3DC}\u{FE0F}", 'CHARACTER_DESERT_ISLAND' => "\u{1F3DD}\u{FE0F}", 'CHARACTER_NATIONAL_PARK' => "\u{1F3DE}\u{FE0F}", 'CHARACTER_STADIUM' => "\u{1F3DF}\u{FE0F}", 'CHARACTER_CLASSICAL_BUILDING' => "\u{1F3DB}\u{FE0F}", 'CHARACTER_BUILDING_CONSTRUCTION' => "\u{1F3D7}\u{FE0F}", 'CHARACTER_BRICKS' => "\u{1F9F1}", 'CHARACTER_HOUSES' => "\u{1F3D8}\u{FE0F}", 'CHARACTER_DERELICT_HOUSE' => "\u{1F3DA}\u{FE0F}", 'CHARACTER_HOUSE' => "\u{1F3E0}", 'CHARACTER_HOUSE_WITH_GARDEN' => "\u{1F3E1}", 'CHARACTER_OFFICE_BUILDING' => "\u{1F3E2}", 'CHARACTER_JAPANESE_POST_OFFICE' => "\u{1F3E3}", 'CHARACTER_POST_OFFICE' => "\u{1F3E4}", 'CHARACTER_HOSPITAL' => "\u{1F3E5}", 'CHARACTER_BANK' => "\u{1F3E6}", 'CHARACTER_HOTEL' => "\u{1F3E8}", 'CHARACTER_LOVE_HOTEL' => "\u{1F3E9}", 'CHARACTER_CONVENIENCE_STORE' => "\u{1F3EA}", 'CHARACTER_SCHOOL' => "\u{1F3EB}", 'CHARACTER_DEPARTMENT_STORE' => "\u{1F3EC}", 'CHARACTER_FACTORY' => "\u{1F3ED}", 'CHARACTER_JAPANESE_CASTLE' => "\u{1F3EF}", 'CHARACTER_CASTLE' => "\u{1F3F0}", 'CHARACTER_WEDDING' => "\u{1F492}", 'CHARACTER_TOKYO_TOWER' => "\u{1F5FC}", 'CHARACTER_STATUE_OF_LIBERTY' => "\u{1F5FD}", 'CHARACTER_CHURCH' => "\u{26EA}", 'CHARACTER_MOSQUE' => "\u{1F54C}", 'CHARACTER_SYNAGOGUE' => "\u{1F54D}", 'CHARACTER_SHINTO_SHRINE' => "\u{26E9}\u{FE0F}", 'CHARACTER_KAABA' => "\u{1F54B}", 'CHARACTER_FOUNTAIN' => "\u{26F2}", 'CHARACTER_TENT' => "\u{26FA}", 'CHARACTER_FOGGY' => "\u{1F301}", 'CHARACTER_NIGHT_WITH_STARS' => "\u{1F303}", 'CHARACTER_CITYSCAPE' => "\u{1F3D9}\u{FE0F}", 'CHARACTER_SUNRISE_OVER_MOUNTAINS' => "\u{1F304}", 'CHARACTER_SUNRISE' => "\u{1F305}", 'CHARACTER_CITYSCAPE_AT_DUSK' => "\u{1F306}", 'CHARACTER_SUNSET' => "\u{1F307}", 'CHARACTER_BRIDGE_AT_NIGHT' => "\u{1F309}", 'CHARACTER_HOT_SPRINGS' => "\u{2668}\u{FE0F}", 'CHARACTER_MILKY_WAY' => "\u{1F30C}", 'CHARACTER_CAROUSEL_HORSE' => "\u{1F3A0}", 'CHARACTER_FERRIS_WHEEL' => "\u{1F3A1}", 'CHARACTER_ROLLER_COASTER' => "\u{1F3A2}", 'CHARACTER_BARBER_POLE' => "\u{1F488}", 'CHARACTER_CIRCUS_TENT' => "\u{1F3AA}", 'CHARACTER_LOCOMOTIVE' => "\u{1F682}", 'CHARACTER_RAILWAY_CAR' => "\u{1F683}", 'CHARACTER_HIGH_SPEED_TRAIN' => "\u{1F684}", 'CHARACTER_BULLET_TRAIN' => "\u{1F685}", 'CHARACTER_TRAIN' => "\u{1F686}", 'CHARACTER_METRO' => "\u{1F687}", 'CHARACTER_LIGHT_RAIL' => "\u{1F688}", 'CHARACTER_STATION' => "\u{1F689}", 'CHARACTER_TRAM' => "\u{1F68A}", 'CHARACTER_MONORAIL' => "\u{1F69D}", 'CHARACTER_MOUNTAIN_RAILWAY' => "\u{1F69E}", 'CHARACTER_TRAM_CAR' => "\u{1F68B}", 'CHARACTER_BUS' => "\u{1F68C}", 'CHARACTER_ONCOMING_BUS' => "\u{1F68D}", 'CHARACTER_TROLLEYBUS' => "\u{1F68E}", 'CHARACTER_MINIBUS' => "\u{1F690}", 'CHARACTER_AMBULANCE' => "\u{1F691}", 'CHARACTER_FIRE_ENGINE' => "\u{1F692}", 'CHARACTER_POLICE_CAR' => "\u{1F693}", 'CHARACTER_ONCOMING_POLICE_CAR' => "\u{1F694}", 'CHARACTER_TAXI' => "\u{1F695}", 'CHARACTER_ONCOMING_TAXI' => "\u{1F696}", 'CHARACTER_AUTOMOBILE' => "\u{1F697}", 'CHARACTER_ONCOMING_AUTOMOBILE' => "\u{1F698}", 'CHARACTER_SPORT_UTILITY_VEHICLE' => "\u{1F699}", 'CHARACTER_DELIVERY_TRUCK' => "\u{1F69A}", 'CHARACTER_ARTICULATED_LORRY' => "\u{1F69B}", 'CHARACTER_TRACTOR' => "\u{1F69C}", 'CHARACTER_BICYCLE' => "\u{1F6B2}", 'CHARACTER_KICK_SCOOTER' => "\u{1F6F4}", 'CHARACTER_SKATEBOARD' => "\u{1F6F9}", 'CHARACTER_MOTOR_SCOOTER' => "\u{1F6F5}", 'CHARACTER_BUS_STOP' => "\u{1F68F}", 'CHARACTER_MOTORWAY' => "\u{1F6E3}\u{FE0F}", 'CHARACTER_RAILWAY_TRACK' => "\u{1F6E4}\u{FE0F}", 'CHARACTER_OIL_DRUM' => "\u{1F6E2}\u{FE0F}", 'CHARACTER_FUEL_PUMP' => "\u{26FD}", 'CHARACTER_POLICE_CAR_LIGHT' => "\u{1F6A8}", 'CHARACTER_HORIZONTAL_TRAFFIC_LIGHT' => "\u{1F6A5}", 'CHARACTER_VERTICAL_TRAFFIC_LIGHT' => "\u{1F6A6}", 'CHARACTER_STOP_SIGN' => "\u{1F6D1}", 'CHARACTER_CONSTRUCTION' => "\u{1F6A7}", 'CHARACTER_ANCHOR' => "\u{2693}", 'CHARACTER_SAILBOAT' => "\u{26F5}", 'CHARACTER_CANOE' => "\u{1F6F6}", 'CHARACTER_SPEEDBOAT' => "\u{1F6A4}", 'CHARACTER_PASSENGER_SHIP' => "\u{1F6F3}\u{FE0F}", 'CHARACTER_FERRY' => "\u{26F4}\u{FE0F}", 'CHARACTER_MOTOR_BOAT' => "\u{1F6E5}\u{FE0F}", 'CHARACTER_SHIP' => "\u{1F6A2}", 'CHARACTER_AIRPLANE' => "\u{2708}\u{FE0F}", 'CHARACTER_SMALL_AIRPLANE' => "\u{1F6E9}\u{FE0F}", 'CHARACTER_AIRPLANE_DEPARTURE' => "\u{1F6EB}", 'CHARACTER_AIRPLANE_ARRIVAL' => "\u{1F6EC}", 'CHARACTER_SEAT' => "\u{1F4BA}", 'CHARACTER_HELICOPTER' => "\u{1F681}", 'CHARACTER_SUSPENSION_RAILWAY' => "\u{1F69F}", 'CHARACTER_MOUNTAIN_CABLEWAY' => "\u{1F6A0}", 'CHARACTER_AERIAL_TRAMWAY' => "\u{1F6A1}", 'CHARACTER_SATELLITE' => "\u{1F6F0}\u{FE0F}", 'CHARACTER_ROCKET' => "\u{1F680}", 'CHARACTER_FLYING_SAUCER' => "\u{1F6F8}", 'CHARACTER_BELLHOP_BELL' => "\u{1F6CE}\u{FE0F}", 'CHARACTER_LUGGAGE' => "\u{1F9F3}", 'CHARACTER_HOURGLASS_DONE' => "\u{231B}", 'CHARACTER_HOURGLASS_NOT_DONE' => "\u{23F3}", 'CHARACTER_WATCH' => "\u{231A}", 'CHARACTER_ALARM_CLOCK' => "\u{23F0}", 'CHARACTER_STOPWATCH' => "\u{23F1}\u{FE0F}", 'CHARACTER_TIMER_CLOCK' => "\u{23F2}\u{FE0F}", 'CHARACTER_MANTELPIECE_CLOCK' => "\u{1F570}\u{FE0F}", 'CHARACTER_TWELVE_O_CLOCK' => "\u{1F55B}", 'CHARACTER_TWELVE_THIRTY' => "\u{1F567}", 'CHARACTER_ONE_O_CLOCK' => "\u{1F550}", 'CHARACTER_ONE_THIRTY' => "\u{1F55C}", 'CHARACTER_TWO_O_CLOCK' => "\u{1F551}", 'CHARACTER_TWO_THIRTY' => "\u{1F55D}", 'CHARACTER_THREE_O_CLOCK' => "\u{1F552}", 'CHARACTER_THREE_THIRTY' => "\u{1F55E}", 'CHARACTER_FOUR_O_CLOCK' => "\u{1F553}", 'CHARACTER_FOUR_THIRTY' => "\u{1F55F}", 'CHARACTER_FIVE_O_CLOCK' => "\u{1F554}", 'CHARACTER_FIVE_THIRTY' => "\u{1F560}", 'CHARACTER_SIX_O_CLOCK' => "\u{1F555}", 'CHARACTER_SIX_THIRTY' => "\u{1F561}", 'CHARACTER_SEVEN_O_CLOCK' => "\u{1F556}", 'CHARACTER_SEVEN_THIRTY' => "\u{1F562}", 'CHARACTER_EIGHT_O_CLOCK' => "\u{1F557}", 'CHARACTER_EIGHT_THIRTY' => "\u{1F563}", 'CHARACTER_NINE_O_CLOCK' => "\u{1F558}", 'CHARACTER_NINE_THIRTY' => "\u{1F564}", 'CHARACTER_TEN_O_CLOCK' => "\u{1F559}", 'CHARACTER_TEN_THIRTY' => "\u{1F565}", 'CHARACTER_ELEVEN_O_CLOCK' => "\u{1F55A}", 'CHARACTER_ELEVEN_THIRTY' => "\u{1F566}", 'CHARACTER_NEW_MOON' => "\u{1F311}", 'CHARACTER_WAXING_CRESCENT_MOON' => "\u{1F312}", 'CHARACTER_FIRST_QUARTER_MOON' => "\u{1F313}", 'CHARACTER_WAXING_GIBBOUS_MOON' => "\u{1F314}", 'CHARACTER_FULL_MOON' => "\u{1F315}", 'CHARACTER_WANING_GIBBOUS_MOON' => "\u{1F316}", 'CHARACTER_LAST_QUARTER_MOON' => "\u{1F317}", 'CHARACTER_WANING_CRESCENT_MOON' => "\u{1F318}", 'CHARACTER_CRESCENT_MOON' => "\u{1F319}", 'CHARACTER_NEW_MOON_FACE' => "\u{1F31A}", 'CHARACTER_FIRST_QUARTER_MOON_FACE' => "\u{1F31B}", 'CHARACTER_LAST_QUARTER_MOON_FACE' => "\u{1F31C}", 'CHARACTER_THERMOMETER' => "\u{1F321}\u{FE0F}", 'CHARACTER_SUN' => "\u{2600}\u{FE0F}", 'CHARACTER_FULL_MOON_FACE' => "\u{1F31D}", 'CHARACTER_SUN_WITH_FACE' => "\u{1F31E}", 'CHARACTER_STAR' => "\u{2B50}", 'CHARACTER_GLOWING_STAR' => "\u{1F31F}", 'CHARACTER_SHOOTING_STAR' => "\u{1F320}", 'CHARACTER_CLOUD' => "\u{2601}\u{FE0F}", 'CHARACTER_SUN_BEHIND_CLOUD' => "\u{26C5}", 'CHARACTER_CLOUD_WITH_LIGHTNING_AND_RAIN' => "\u{26C8}\u{FE0F}", 'CHARACTER_SUN_BEHIND_SMALL_CLOUD' => "\u{1F324}\u{FE0F}", 'CHARACTER_SUN_BEHIND_LARGE_CLOUD' => "\u{1F325}\u{FE0F}", 'CHARACTER_SUN_BEHIND_RAIN_CLOUD' => "\u{1F326}\u{FE0F}", 'CHARACTER_CLOUD_WITH_RAIN' => "\u{1F327}\u{FE0F}", 'CHARACTER_CLOUD_WITH_SNOW' => "\u{1F328}\u{FE0F}", 'CHARACTER_CLOUD_WITH_LIGHTNING' => "\u{1F329}\u{FE0F}", 'CHARACTER_TORNADO' => "\u{1F32A}\u{FE0F}", 'CHARACTER_FOG' => "\u{1F32B}\u{FE0F}", 'CHARACTER_WIND_FACE' => "\u{1F32C}\u{FE0F}", 'CHARACTER_CYCLONE' => "\u{1F300}", 'CHARACTER_RAINBOW' => "\u{1F308}", 'CHARACTER_CLOSED_UMBRELLA' => "\u{1F302}", 'CHARACTER_UMBRELLA' => "\u{2602}\u{FE0F}", 'CHARACTER_UMBRELLA_WITH_RAIN_DROPS' => "\u{2614}", 'CHARACTER_UMBRELLA_ON_GROUND' => "\u{26F1}\u{FE0F}", 'CHARACTER_HIGH_VOLTAGE' => "\u{26A1}", 'CHARACTER_SNOWFLAKE' => "\u{2744}\u{FE0F}", 'CHARACTER_SNOWMAN' => "\u{2603}\u{FE0F}", 'CHARACTER_SNOWMAN_WITHOUT_SNOW' => "\u{26C4}", 'CHARACTER_COMET' => "\u{2604}\u{FE0F}", 'CHARACTER_FIRE' => "\u{1F525}", 'CHARACTER_DROPLET' => "\u{1F4A7}", 'CHARACTER_WATER_WAVE' => "\u{1F30A}", 'CHARACTER_JACK_O_LANTERN' => "\u{1F383}", 'CHARACTER_CHRISTMAS_TREE' => "\u{1F384}", 'CHARACTER_FIREWORKS' => "\u{1F386}", 'CHARACTER_SPARKLER' => "\u{1F387}", 'CHARACTER_FIRECRACKER' => "\u{1F9E8}", 'CHARACTER_SPARKLES' => "\u{2728}", 'CHARACTER_BALLOON' => "\u{1F388}", 'CHARACTER_PARTY_POPPER' => "\u{1F389}", 'CHARACTER_CONFETTI_BALL' => "\u{1F38A}", 'CHARACTER_TANABATA_TREE' => "\u{1F38B}", 'CHARACTER_PINE_DECORATION' => "\u{1F38D}", 'CHARACTER_JAPANESE_DOLLS' => "\u{1F38E}", 'CHARACTER_CARP_STREAMER' => "\u{1F38F}", 'CHARACTER_WIND_CHIME' => "\u{1F390}", 'CHARACTER_MOON_VIEWING_CEREMONY' => "\u{1F391}", 'CHARACTER_RED_ENVELOPE' => "\u{1F9E7}", 'CHARACTER_RIBBON' => "\u{1F380}", 'CHARACTER_WRAPPED_GIFT' => "\u{1F381}", 'CHARACTER_REMINDER_RIBBON' => "\u{1F397}\u{FE0F}", 'CHARACTER_ADMISSION_TICKETS' => "\u{1F39F}\u{FE0F}", 'CHARACTER_TICKET' => "\u{1F3AB}", 'CHARACTER_MILITARY_MEDAL' => "\u{1F396}\u{FE0F}", 'CHARACTER_TROPHY' => "\u{1F3C6}", 'CHARACTER_SPORTS_MEDAL' => "\u{1F3C5}", 'CHARACTER_1ST_PLACE_MEDAL' => "\u{1F947}", 'CHARACTER_2ND_PLACE_MEDAL' => "\u{1F948}", 'CHARACTER_3RD_PLACE_MEDAL' => "\u{1F949}", 'CHARACTER_SOCCER_BALL' => "\u{26BD}", 'CHARACTER_BASEBALL' => "\u{26BE}", 'CHARACTER_SOFTBALL' => "\u{1F94E}", 'CHARACTER_BASKETBALL' => "\u{1F3C0}", 'CHARACTER_VOLLEYBALL' => "\u{1F3D0}", 'CHARACTER_AMERICAN_FOOTBALL' => "\u{1F3C8}", 'CHARACTER_RUGBY_FOOTBALL' => "\u{1F3C9}", 'CHARACTER_TENNIS' => "\u{1F3BE}", 'CHARACTER_FLYING_DISC' => "\u{1F94F}", 'CHARACTER_BOWLING' => "\u{1F3B3}", 'CHARACTER_CRICKET_GAME' => "\u{1F3CF}", 'CHARACTER_FIELD_HOCKEY' => "\u{1F3D1}", 'CHARACTER_ICE_HOCKEY' => "\u{1F3D2}", 'CHARACTER_LACROSSE' => "\u{1F94D}", 'CHARACTER_PING_PONG' => "\u{1F3D3}", 'CHARACTER_BADMINTON' => "\u{1F3F8}", 'CHARACTER_BOXING_GLOVE' => "\u{1F94A}", 'CHARACTER_MARTIAL_ARTS_UNIFORM' => "\u{1F94B}", 'CHARACTER_GOAL_NET' => "\u{1F945}", 'CHARACTER_FLAG_IN_HOLE' => "\u{26F3}", 'CHARACTER_ICE_SKATE' => "\u{26F8}\u{FE0F}", 'CHARACTER_FISHING_POLE' => "\u{1F3A3}", 'CHARACTER_RUNNING_SHIRT' => "\u{1F3BD}", 'CHARACTER_SKIS' => "\u{1F3BF}", 'CHARACTER_SLED' => "\u{1F6F7}", 'CHARACTER_CURLING_STONE' => "\u{1F94C}", 'CHARACTER_DIRECT_HIT' => "\u{1F3AF}", 'CHARACTER_POOL_8_BALL' => "\u{1F3B1}", 'CHARACTER_CRYSTAL_BALL' => "\u{1F52E}", 'CHARACTER_NAZAR_AMULET' => "\u{1F9FF}", 'CHARACTER_VIDEO_GAME' => "\u{1F3AE}", 'CHARACTER_JOYSTICK' => "\u{1F579}\u{FE0F}", 'CHARACTER_SLOT_MACHINE' => "\u{1F3B0}", 'CHARACTER_GAME_DIE' => "\u{1F3B2}", 'CHARACTER_JIGSAW' => "\u{1F9E9}", 'CHARACTER_TEDDY_BEAR' => "\u{1F9F8}", 'CHARACTER_SPADE_SUIT' => "\u{2660}\u{FE0F}", 'CHARACTER_HEART_SUIT' => "\u{2665}\u{FE0F}", 'CHARACTER_DIAMOND_SUIT' => "\u{2666}\u{FE0F}", 'CHARACTER_CLUB_SUIT' => "\u{2663}\u{FE0F}", 'CHARACTER_CHESS_PAWN' => "\u{265F}\u{FE0F}", 'CHARACTER_JOKER' => "\u{1F0CF}", 'CHARACTER_MAHJONG_RED_DRAGON' => "\u{1F004}", 'CHARACTER_FLOWER_PLAYING_CARDS' => "\u{1F3B4}", 'CHARACTER_PERFORMING_ARTS' => "\u{1F3AD}", 'CHARACTER_FRAMED_PICTURE' => "\u{1F5BC}\u{FE0F}", 'CHARACTER_ARTIST_PALETTE' => "\u{1F3A8}", 'CHARACTER_THREAD' => "\u{1F9F5}", 'CHARACTER_YARN' => "\u{1F9F6}", 'CHARACTER_MUTED_SPEAKER' => "\u{1F507}", 'CHARACTER_SPEAKER_LOW_VOLUME' => "\u{1F508}", 'CHARACTER_SPEAKER_MEDIUM_VOLUME' => "\u{1F509}", 'CHARACTER_SPEAKER_HIGH_VOLUME' => "\u{1F50A}", 'CHARACTER_LOUDSPEAKER' => "\u{1F4E2}", 'CHARACTER_MEGAPHONE' => "\u{1F4E3}", 'CHARACTER_POSTAL_HORN' => "\u{1F4EF}", 'CHARACTER_BELL' => "\u{1F514}", 'CHARACTER_BELL_WITH_SLASH' => "\u{1F515}", 'CHARACTER_MUSICAL_SCORE' => "\u{1F3BC}", 'CHARACTER_MUSICAL_NOTE' => "\u{1F3B5}", 'CHARACTER_MUSICAL_NOTES' => "\u{1F3B6}", 'CHARACTER_STUDIO_MICROPHONE' => "\u{1F399}\u{FE0F}", 'CHARACTER_LEVEL_SLIDER' => "\u{1F39A}\u{FE0F}", 'CHARACTER_CONTROL_KNOBS' => "\u{1F39B}\u{FE0F}", 'CHARACTER_MICROPHONE' => "\u{1F3A4}", 'CHARACTER_HEADPHONE' => "\u{1F3A7}", 'CHARACTER_RADIO' => "\u{1F4FB}", 'CHARACTER_SAXOPHONE' => "\u{1F3B7}", 'CHARACTER_GUITAR' => "\u{1F3B8}", 'CHARACTER_MUSICAL_KEYBOARD' => "\u{1F3B9}", 'CHARACTER_TRUMPET' => "\u{1F3BA}", 'CHARACTER_VIOLIN' => "\u{1F3BB}", 'CHARACTER_DRUM' => "\u{1F941}", 'CHARACTER_MOBILE_PHONE' => "\u{1F4F1}", 'CHARACTER_MOBILE_PHONE_WITH_ARROW' => "\u{1F4F2}", 'CHARACTER_TELEPHONE' => "\u{260E}\u{FE0F}", 'CHARACTER_TELEPHONE_RECEIVER' => "\u{1F4DE}", 'CHARACTER_PAGER' => "\u{1F4DF}", 'CHARACTER_FAX_MACHINE' => "\u{1F4E0}", 'CHARACTER_BATTERY' => "\u{1F50B}", 'CHARACTER_ELECTRIC_PLUG' => "\u{1F50C}", 'CHARACTER_LAPTOP_COMPUTER' => "\u{1F4BB}", 'CHARACTER_DESKTOP_COMPUTER' => "\u{1F5A5}\u{FE0F}", 'CHARACTER_PRINTER' => "\u{1F5A8}\u{FE0F}", 'CHARACTER_KEYBOARD' => "\u{2328}\u{FE0F}", 'CHARACTER_COMPUTER_MOUSE' => "\u{1F5B1}\u{FE0F}", 'CHARACTER_TRACKBALL' => "\u{1F5B2}\u{FE0F}", 'CHARACTER_COMPUTER_DISK' => "\u{1F4BD}", 'CHARACTER_FLOPPY_DISK' => "\u{1F4BE}", 'CHARACTER_OPTICAL_DISK' => "\u{1F4BF}", 'CHARACTER_DVD' => "\u{1F4C0}", 'CHARACTER_ABACUS' => "\u{1F9EE}", 'CHARACTER_MOVIE_CAMERA' => "\u{1F3A5}", 'CHARACTER_FILM_FRAMES' => "\u{1F39E}\u{FE0F}", 'CHARACTER_FILM_PROJECTOR' => "\u{1F4FD}\u{FE0F}", 'CHARACTER_CLAPPER_BOARD' => "\u{1F3AC}", 'CHARACTER_TELEVISION' => "\u{1F4FA}", 'CHARACTER_CAMERA' => "\u{1F4F7}", 'CHARACTER_CAMERA_WITH_FLASH' => "\u{1F4F8}", 'CHARACTER_VIDEO_CAMERA' => "\u{1F4F9}", 'CHARACTER_VIDEOCASSETTE' => "\u{1F4FC}", 'CHARACTER_MAGNIFYING_GLASS_TILTED_LEFT' => "\u{1F50D}", 'CHARACTER_MAGNIFYING_GLASS_TILTED_RIGHT' => "\u{1F50E}", 'CHARACTER_CANDLE' => "\u{1F56F}\u{FE0F}", 'CHARACTER_LIGHT_BULB' => "\u{1F4A1}", 'CHARACTER_FLASHLIGHT' => "\u{1F526}", 'CHARACTER_RED_PAPER_LANTERN' => "\u{1F3EE}", 'CHARACTER_NOTEBOOK_WITH_DECORATIVE_COVER' => "\u{1F4D4}", 'CHARACTER_CLOSED_BOOK' => "\u{1F4D5}", 'CHARACTER_OPEN_BOOK' => "\u{1F4D6}", 'CHARACTER_GREEN_BOOK' => "\u{1F4D7}", 'CHARACTER_BLUE_BOOK' => "\u{1F4D8}", 'CHARACTER_ORANGE_BOOK' => "\u{1F4D9}", 'CHARACTER_BOOKS' => "\u{1F4DA}", 'CHARACTER_NOTEBOOK' => "\u{1F4D3}", 'CHARACTER_LEDGER' => "\u{1F4D2}", 'CHARACTER_PAGE_WITH_CURL' => "\u{1F4C3}", 'CHARACTER_SCROLL' => "\u{1F4DC}", 'CHARACTER_PAGE_FACING_UP' => "\u{1F4C4}", 'CHARACTER_NEWSPAPER' => "\u{1F4F0}", 'CHARACTER_ROLLED_UP_NEWSPAPER' => "\u{1F5DE}\u{FE0F}", 'CHARACTER_BOOKMARK_TABS' => "\u{1F4D1}", 'CHARACTER_BOOKMARK' => "\u{1F516}", 'CHARACTER_LABEL' => "\u{1F3F7}\u{FE0F}", 'CHARACTER_MONEY_BAG' => "\u{1F4B0}", 'CHARACTER_YEN_BANKNOTE' => "\u{1F4B4}", 'CHARACTER_DOLLAR_BANKNOTE' => "\u{1F4B5}", 'CHARACTER_EURO_BANKNOTE' => "\u{1F4B6}", 'CHARACTER_POUND_BANKNOTE' => "\u{1F4B7}", 'CHARACTER_MONEY_WITH_WINGS' => "\u{1F4B8}", 'CHARACTER_CREDIT_CARD' => "\u{1F4B3}", 'CHARACTER_RECEIPT' => "\u{1F9FE}", 'CHARACTER_CHART_INCREASING_WITH_YEN' => "\u{1F4B9}", 'CHARACTER_CURRENCY_EXCHANGE' => "\u{1F4B1}", 'CHARACTER_HEAVY_DOLLAR_SIGN' => "\u{1F4B2}", 'CHARACTER_ENVELOPE' => "\u{2709}\u{FE0F}", 'CHARACTER_E_MAIL' => "\u{1F4E7}", 'CHARACTER_INCOMING_ENVELOPE' => "\u{1F4E8}", 'CHARACTER_ENVELOPE_WITH_ARROW' => "\u{1F4E9}", 'CHARACTER_OUTBOX_TRAY' => "\u{1F4E4}", 'CHARACTER_INBOX_TRAY' => "\u{1F4E5}", 'CHARACTER_PACKAGE' => "\u{1F4E6}", 'CHARACTER_CLOSED_MAILBOX_WITH_RAISED_FLAG' => "\u{1F4EB}", 'CHARACTER_CLOSED_MAILBOX_WITH_LOWERED_FLAG' => "\u{1F4EA}", 'CHARACTER_OPEN_MAILBOX_WITH_RAISED_FLAG' => "\u{1F4EC}", 'CHARACTER_OPEN_MAILBOX_WITH_LOWERED_FLAG' => "\u{1F4ED}", 'CHARACTER_POSTBOX' => "\u{1F4EE}", 'CHARACTER_BALLOT_BOX_WITH_BALLOT' => "\u{1F5F3}\u{FE0F}", 'CHARACTER_PENCIL' => "\u{270F}\u{FE0F}", 'CHARACTER_BLACK_NIB' => "\u{2712}\u{FE0F}", 'CHARACTER_FOUNTAIN_PEN' => "\u{1F58B}\u{FE0F}", 'CHARACTER_PEN' => "\u{1F58A}\u{FE0F}", 'CHARACTER_PAINTBRUSH' => "\u{1F58C}\u{FE0F}", 'CHARACTER_CRAYON' => "\u{1F58D}\u{FE0F}", 'CHARACTER_MEMO' => "\u{1F4DD}", 'CHARACTER_BRIEFCASE' => "\u{1F4BC}", 'CHARACTER_FILE_FOLDER' => "\u{1F4C1}", 'CHARACTER_OPEN_FILE_FOLDER' => "\u{1F4C2}", 'CHARACTER_CARD_INDEX_DIVIDERS' => "\u{1F5C2}\u{FE0F}", 'CHARACTER_CALENDAR' => "\u{1F4C5}", 'CHARACTER_TEAR_OFF_CALENDAR' => "\u{1F4C6}", 'CHARACTER_SPIRAL_NOTEPAD' => "\u{1F5D2}\u{FE0F}", 'CHARACTER_SPIRAL_CALENDAR' => "\u{1F5D3}\u{FE0F}", 'CHARACTER_CARD_INDEX' => "\u{1F4C7}", 'CHARACTER_CHART_INCREASING' => "\u{1F4C8}", 'CHARACTER_CHART_DECREASING' => "\u{1F4C9}", 'CHARACTER_BAR_CHART' => "\u{1F4CA}", 'CHARACTER_CLIPBOARD' => "\u{1F4CB}", 'CHARACTER_PUSHPIN' => "\u{1F4CC}", 'CHARACTER_ROUND_PUSHPIN' => "\u{1F4CD}", 'CHARACTER_PAPERCLIP' => "\u{1F4CE}", 'CHARACTER_LINKED_PAPERCLIPS' => "\u{1F587}\u{FE0F}", 'CHARACTER_STRAIGHT_RULER' => "\u{1F4CF}", 'CHARACTER_TRIANGULAR_RULER' => "\u{1F4D0}", 'CHARACTER_SCISSORS' => "\u{2702}\u{FE0F}", 'CHARACTER_CARD_FILE_BOX' => "\u{1F5C3}\u{FE0F}", 'CHARACTER_FILE_CABINET' => "\u{1F5C4}\u{FE0F}", 'CHARACTER_WASTEBASKET' => "\u{1F5D1}\u{FE0F}", 'CHARACTER_LOCKED' => "\u{1F512}", 'CHARACTER_UNLOCKED' => "\u{1F513}", 'CHARACTER_LOCKED_WITH_PEN' => "\u{1F50F}", 'CHARACTER_LOCKED_WITH_KEY' => "\u{1F510}", 'CHARACTER_KEY' => "\u{1F511}", 'CHARACTER_OLD_KEY' => "\u{1F5DD}\u{FE0F}", 'CHARACTER_HAMMER' => "\u{1F528}", 'CHARACTER_PICK' => "\u{26CF}\u{FE0F}", 'CHARACTER_HAMMER_AND_PICK' => "\u{2692}\u{FE0F}", 'CHARACTER_HAMMER_AND_WRENCH' => "\u{1F6E0}\u{FE0F}", 'CHARACTER_DAGGER' => "\u{1F5E1}\u{FE0F}", 'CHARACTER_CROSSED_SWORDS' => "\u{2694}\u{FE0F}", 'CHARACTER_PISTOL' => "\u{1F52B}", 'CHARACTER_BOW_AND_ARROW' => "\u{1F3F9}", 'CHARACTER_SHIELD' => "\u{1F6E1}\u{FE0F}", 'CHARACTER_WRENCH' => "\u{1F527}", 'CHARACTER_NUT_AND_BOLT' => "\u{1F529}", 'CHARACTER_GEAR' => "\u{2699}\u{FE0F}", 'CHARACTER_CLAMP' => "\u{1F5DC}\u{FE0F}", 'CHARACTER_BALANCE_SCALE' => "\u{2696}\u{FE0F}", 'CHARACTER_LINK' => "\u{1F517}", 'CHARACTER_CHAINS' => "\u{26D3}\u{FE0F}", 'CHARACTER_TOOLBOX' => "\u{1F9F0}", 'CHARACTER_MAGNET' => "\u{1F9F2}", 'CHARACTER_ALEMBIC' => "\u{2697}\u{FE0F}", 'CHARACTER_TEST_TUBE' => "\u{1F9EA}", 'CHARACTER_PETRI_DISH' => "\u{1F9EB}", 'CHARACTER_DNA' => "\u{1F9EC}", 'CHARACTER_MICROSCOPE' => "\u{1F52C}", 'CHARACTER_TELESCOPE' => "\u{1F52D}", 'CHARACTER_SATELLITE_ANTENNA' => "\u{1F4E1}", 'CHARACTER_SYRINGE' => "\u{1F489}", 'CHARACTER_PILL' => "\u{1F48A}", 'CHARACTER_DOOR' => "\u{1F6AA}", 'CHARACTER_BED' => "\u{1F6CF}\u{FE0F}", 'CHARACTER_COUCH_AND_LAMP' => "\u{1F6CB}\u{FE0F}", 'CHARACTER_TOILET' => "\u{1F6BD}", 'CHARACTER_SHOWER' => "\u{1F6BF}", 'CHARACTER_BATHTUB' => "\u{1F6C1}", 'CHARACTER_LOTION_BOTTLE' => "\u{1F9F4}", 'CHARACTER_SAFETY_PIN' => "\u{1F9F7}", 'CHARACTER_BROOM' => "\u{1F9F9}", 'CHARACTER_BASKET' => "\u{1F9FA}", 'CHARACTER_ROLL_OF_PAPER' => "\u{1F9FB}", 'CHARACTER_SOAP' => "\u{1F9FC}", 'CHARACTER_SPONGE' => "\u{1F9FD}", 'CHARACTER_FIRE_EXTINGUISHER' => "\u{1F9EF}", 'CHARACTER_SHOPPING_CART' => "\u{1F6D2}", 'CHARACTER_CIGARETTE' => "\u{1F6AC}", 'CHARACTER_COFFIN' => "\u{26B0}\u{FE0F}", 'CHARACTER_FUNERAL_URN' => "\u{26B1}\u{FE0F}", 'CHARACTER_MOAI' => "\u{1F5FF}", 'CHARACTER_ATM_SIGN' => "\u{1F3E7}", 'CHARACTER_LITTER_IN_BIN_SIGN' => "\u{1F6AE}", 'CHARACTER_POTABLE_WATER' => "\u{1F6B0}", 'CHARACTER_WHEELCHAIR_SYMBOL' => "\u{267F}", 'CHARACTER_MEN_S_ROOM' => "\u{1F6B9}", 'CHARACTER_WOMEN_S_ROOM' => "\u{1F6BA}", 'CHARACTER_RESTROOM' => "\u{1F6BB}", 'CHARACTER_BABY_SYMBOL' => "\u{1F6BC}", 'CHARACTER_WATER_CLOSET' => "\u{1F6BE}", 'CHARACTER_PASSPORT_CONTROL' => "\u{1F6C2}", 'CHARACTER_CUSTOMS' => "\u{1F6C3}", 'CHARACTER_BAGGAGE_CLAIM' => "\u{1F6C4}", 'CHARACTER_LEFT_LUGGAGE' => "\u{1F6C5}", 'CHARACTER_WARNING' => "\u{26A0}\u{FE0F}", 'CHARACTER_CHILDREN_CROSSING' => "\u{1F6B8}", 'CHARACTER_NO_ENTRY' => "\u{26D4}", 'CHARACTER_PROHIBITED' => "\u{1F6AB}", 'CHARACTER_NO_BICYCLES' => "\u{1F6B3}", 'CHARACTER_NO_SMOKING' => "\u{1F6AD}", 'CHARACTER_NO_LITTERING' => "\u{1F6AF}", 'CHARACTER_NON_POTABLE_WATER' => "\u{1F6B1}", 'CHARACTER_NO_PEDESTRIANS' => "\u{1F6B7}", 'CHARACTER_NO_MOBILE_PHONES' => "\u{1F4F5}", 'CHARACTER_NO_ONE_UNDER_EIGHTEEN' => "\u{1F51E}", 'CHARACTER_RADIOACTIVE' => "\u{2622}\u{FE0F}", 'CHARACTER_BIOHAZARD' => "\u{2623}\u{FE0F}", 'CHARACTER_UP_ARROW' => "\u{2B06}\u{FE0F}", 'CHARACTER_UP_RIGHT_ARROW' => "\u{2197}\u{FE0F}", 'CHARACTER_RIGHT_ARROW' => "\u{27A1}\u{FE0F}", 'CHARACTER_DOWN_RIGHT_ARROW' => "\u{2198}\u{FE0F}", 'CHARACTER_DOWN_ARROW' => "\u{2B07}\u{FE0F}", 'CHARACTER_DOWN_LEFT_ARROW' => "\u{2199}\u{FE0F}", 'CHARACTER_LEFT_ARROW' => "\u{2B05}\u{FE0F}", 'CHARACTER_UP_LEFT_ARROW' => "\u{2196}\u{FE0F}", 'CHARACTER_UP_DOWN_ARROW' => "\u{2195}\u{FE0F}", 'CHARACTER_LEFT_RIGHT_ARROW' => "\u{2194}\u{FE0F}", 'CHARACTER_RIGHT_ARROW_CURVING_LEFT' => "\u{21A9}\u{FE0F}", 'CHARACTER_LEFT_ARROW_CURVING_RIGHT' => "\u{21AA}\u{FE0F}", 'CHARACTER_RIGHT_ARROW_CURVING_UP' => "\u{2934}\u{FE0F}", 'CHARACTER_RIGHT_ARROW_CURVING_DOWN' => "\u{2935}\u{FE0F}", 'CHARACTER_CLOCKWISE_VERTICAL_ARROWS' => "\u{1F503}", 'CHARACTER_COUNTERCLOCKWISE_ARROWS_BUTTON' => "\u{1F504}", 'CHARACTER_BACK_ARROW' => "\u{1F519}", 'CHARACTER_END_ARROW' => "\u{1F51A}", 'CHARACTER_ON_ARROW' => "\u{1F51B}", 'CHARACTER_SOON_ARROW' => "\u{1F51C}", 'CHARACTER_TOP_ARROW' => "\u{1F51D}", 'CHARACTER_PLACE_OF_WORSHIP' => "\u{1F6D0}", 'CHARACTER_ATOM_SYMBOL' => "\u{269B}\u{FE0F}", 'CHARACTER_OM' => "\u{1F549}\u{FE0F}", 'CHARACTER_STAR_OF_DAVID' => "\u{2721}\u{FE0F}", 'CHARACTER_WHEEL_OF_DHARMA' => "\u{2638}\u{FE0F}", 'CHARACTER_YIN_YANG' => "\u{262F}\u{FE0F}", 'CHARACTER_LATIN_CROSS' => "\u{271D}\u{FE0F}", 'CHARACTER_ORTHODOX_CROSS' => "\u{2626}\u{FE0F}", 'CHARACTER_STAR_AND_CRESCENT' => "\u{262A}\u{FE0F}", 'CHARACTER_PEACE_SYMBOL' => "\u{262E}\u{FE0F}", 'CHARACTER_MENORAH' => "\u{1F54E}", 'CHARACTER_DOTTED_SIX_POINTED_STAR' => "\u{1F52F}", 'CHARACTER_ARIES' => "\u{2648}", 'CHARACTER_TAURUS' => "\u{2649}", 'CHARACTER_GEMINI' => "\u{264A}", 'CHARACTER_CANCER' => "\u{264B}", 'CHARACTER_LEO' => "\u{264C}", 'CHARACTER_VIRGO' => "\u{264D}", 'CHARACTER_LIBRA' => "\u{264E}", 'CHARACTER_SCORPIO' => "\u{264F}", 'CHARACTER_SAGITTARIUS' => "\u{2650}", 'CHARACTER_CAPRICORN' => "\u{2651}", 'CHARACTER_AQUARIUS' => "\u{2652}", 'CHARACTER_PISCES' => "\u{2653}", 'CHARACTER_OPHIUCHUS' => "\u{26CE}", 'CHARACTER_SHUFFLE_TRACKS_BUTTON' => "\u{1F500}", 'CHARACTER_REPEAT_BUTTON' => "\u{1F501}", 'CHARACTER_REPEAT_SINGLE_BUTTON' => "\u{1F502}", 'CHARACTER_PLAY_BUTTON' => "\u{25B6}\u{FE0F}", 'CHARACTER_FAST_FORWARD_BUTTON' => "\u{23E9}", 'CHARACTER_NEXT_TRACK_BUTTON' => "\u{23ED}\u{FE0F}", 'CHARACTER_PLAY_OR_PAUSE_BUTTON' => "\u{23EF}\u{FE0F}", 'CHARACTER_REVERSE_BUTTON' => "\u{25C0}\u{FE0F}", 'CHARACTER_FAST_REVERSE_BUTTON' => "\u{23EA}", 'CHARACTER_LAST_TRACK_BUTTON' => "\u{23EE}\u{FE0F}", 'CHARACTER_UPWARDS_BUTTON' => "\u{1F53C}", 'CHARACTER_FAST_UP_BUTTON' => "\u{23EB}", 'CHARACTER_DOWNWARDS_BUTTON' => "\u{1F53D}", 'CHARACTER_FAST_DOWN_BUTTON' => "\u{23EC}", 'CHARACTER_PAUSE_BUTTON' => "\u{23F8}\u{FE0F}", 'CHARACTER_STOP_BUTTON' => "\u{23F9}\u{FE0F}", 'CHARACTER_RECORD_BUTTON' => "\u{23FA}\u{FE0F}", 'CHARACTER_EJECT_BUTTON' => "\u{23CF}\u{FE0F}", 'CHARACTER_CINEMA' => "\u{1F3A6}", 'CHARACTER_DIM_BUTTON' => "\u{1F505}", 'CHARACTER_BRIGHT_BUTTON' => "\u{1F506}", 'CHARACTER_ANTENNA_BARS' => "\u{1F4F6}", 'CHARACTER_VIBRATION_MODE' => "\u{1F4F3}", 'CHARACTER_MOBILE_PHONE_OFF' => "\u{1F4F4}", 'CHARACTER_FEMALE_SIGN' => "\u{2640}\u{FE0F}", 'CHARACTER_MALE_SIGN' => "\u{2642}\u{FE0F}", 'CHARACTER_MEDICAL_SYMBOL' => "\u{2695}\u{FE0F}", 'CHARACTER_INFINITY' => "\u{267E}\u{FE0F}", 'CHARACTER_RECYCLING_SYMBOL' => "\u{267B}\u{FE0F}", 'CHARACTER_FLEUR_DE_LIS' => "\u{269C}\u{FE0F}", 'CHARACTER_TRIDENT_EMBLEM' => "\u{1F531}", 'CHARACTER_NAME_BADGE' => "\u{1F4DB}", 'CHARACTER_JAPANESE_SYMBOL_FOR_BEGINNER' => "\u{1F530}", 'CHARACTER_HEAVY_LARGE_CIRCLE' => "\u{2B55}", 'CHARACTER_WHITE_HEAVY_CHECK_MARK' => "\u{2705}", 'CHARACTER_BALLOT_BOX_WITH_CHECK' => "\u{2611}\u{FE0F}", 'CHARACTER_HEAVY_CHECK_MARK' => "\u{2714}\u{FE0F}", 'CHARACTER_HEAVY_MULTIPLICATION_X' => "\u{2716}\u{FE0F}", 'CHARACTER_CROSS_MARK' => "\u{274C}", 'CHARACTER_CROSS_MARK_BUTTON' => "\u{274E}", 'CHARACTER_HEAVY_PLUS_SIGN' => "\u{2795}", 'CHARACTER_HEAVY_MINUS_SIGN' => "\u{2796}", 'CHARACTER_HEAVY_DIVISION_SIGN' => "\u{2797}", 'CHARACTER_CURLY_LOOP' => "\u{27B0}", 'CHARACTER_DOUBLE_CURLY_LOOP' => "\u{27BF}", 'CHARACTER_PART_ALTERNATION_MARK' => "\u{303D}\u{FE0F}", 'CHARACTER_EIGHT_SPOKED_ASTERISK' => "\u{2733}\u{FE0F}", 'CHARACTER_EIGHT_POINTED_STAR' => "\u{2734}\u{FE0F}", 'CHARACTER_SPARKLE' => "\u{2747}\u{FE0F}", 'CHARACTER_DOUBLE_EXCLAMATION_MARK' => "\u{203C}\u{FE0F}", 'CHARACTER_EXCLAMATION_QUESTION_MARK' => "\u{2049}\u{FE0F}", 'CHARACTER_QUESTION_MARK' => "\u{2753}", 'CHARACTER_WHITE_QUESTION_MARK' => "\u{2754}", 'CHARACTER_WHITE_EXCLAMATION_MARK' => "\u{2755}", 'CHARACTER_EXCLAMATION_MARK' => "\u{2757}", 'CHARACTER_WAVY_DASH' => "\u{3030}\u{FE0F}", 'CHARACTER_COPYRIGHT' => "\u{00A9}\u{FE0F}", 'CHARACTER_REGISTERED' => "\u{00AE}\u{FE0F}", 'CHARACTER_TRADE_MARK' => "\u{2122}\u{FE0F}", 'CHARACTER_KEYCAP_HASH' => "\u{0023}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_ASTERISK' => "\u{002A}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_0' => "\u{0030}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_1' => "\u{0031}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_2' => "\u{0032}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_3' => "\u{0033}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_4' => "\u{0034}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_5' => "\u{0035}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_6' => "\u{0036}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_7' => "\u{0037}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_8' => "\u{0038}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_9' => "\u{0039}\u{FE0F}\u{20E3}", 'CHARACTER_KEYCAP_10' => "\u{1F51F}", 'CHARACTER_HUNDRED_POINTS' => "\u{1F4AF}", 'CHARACTER_INPUT_LATIN_UPPERCASE' => "\u{1F520}", 'CHARACTER_INPUT_LATIN_LOWERCASE' => "\u{1F521}", 'CHARACTER_INPUT_NUMBERS' => "\u{1F522}", 'CHARACTER_INPUT_SYMBOLS' => "\u{1F523}", 'CHARACTER_INPUT_LATIN_LETTERS' => "\u{1F524}", 'CHARACTER_A_BUTTON_BLOOD_TYPE' => "\u{1F170}\u{FE0F}", 'CHARACTER_AB_BUTTON_BLOOD_TYPE' => "\u{1F18E}", 'CHARACTER_B_BUTTON_BLOOD_TYPE' => "\u{1F171}\u{FE0F}", 'CHARACTER_CL_BUTTON' => "\u{1F191}", 'CHARACTER_COOL_BUTTON' => "\u{1F192}", 'CHARACTER_FREE_BUTTON' => "\u{1F193}", 'CHARACTER_INFORMATION' => "\u{2139}\u{FE0F}", 'CHARACTER_ID_BUTTON' => "\u{1F194}", 'CHARACTER_CIRCLED_M' => "\u{24C2}\u{FE0F}", 'CHARACTER_NEW_BUTTON' => "\u{1F195}", 'CHARACTER_NG_BUTTON' => "\u{1F196}", 'CHARACTER_O_BUTTON_BLOOD_TYPE' => "\u{1F17E}\u{FE0F}", 'CHARACTER_OK_BUTTON' => "\u{1F197}", 'CHARACTER_P_BUTTON' => "\u{1F17F}\u{FE0F}", 'CHARACTER_SOS_BUTTON' => "\u{1F198}", 'CHARACTER_UP_BUTTON' => "\u{1F199}", 'CHARACTER_VS_BUTTON' => "\u{1F19A}", 'CHARACTER_JAPANESE_HERE_BUTTON' => "\u{1F201}", 'CHARACTER_JAPANESE_SERVICE_CHARGE_BUTTON' => "\u{1F202}\u{FE0F}", 'CHARACTER_JAPANESE_MONTHLY_AMOUNT_BUTTON' => "\u{1F237}\u{FE0F}", 'CHARACTER_JAPANESE_NOT_FREE_OF_CHARGE_BUTTON' => "\u{1F236}", 'CHARACTER_JAPANESE_RESERVED_BUTTON' => "\u{1F22F}", 'CHARACTER_JAPANESE_BARGAIN_BUTTON' => "\u{1F250}", 'CHARACTER_JAPANESE_DISCOUNT_BUTTON' => "\u{1F239}", 'CHARACTER_JAPANESE_FREE_OF_CHARGE_BUTTON' => "\u{1F21A}", 'CHARACTER_JAPANESE_PROHIBITED_BUTTON' => "\u{1F232}", 'CHARACTER_JAPANESE_ACCEPTABLE_BUTTON' => "\u{1F251}", 'CHARACTER_JAPANESE_APPLICATION_BUTTON' => "\u{1F238}", 'CHARACTER_JAPANESE_PASSING_GRADE_BUTTON' => "\u{1F234}", 'CHARACTER_JAPANESE_VACANCY_BUTTON' => "\u{1F233}", 'CHARACTER_JAPANESE_CONGRATULATIONS_BUTTON' => "\u{3297}\u{FE0F}", 'CHARACTER_JAPANESE_SECRET_BUTTON' => "\u{3299}\u{FE0F}", 'CHARACTER_JAPANESE_OPEN_FOR_BUSINESS_BUTTON' => "\u{1F23A}", 'CHARACTER_JAPANESE_NO_VACANCY_BUTTON' => "\u{1F235}", 'CHARACTER_BLACK_SMALL_SQUARE' => "\u{25AA}\u{FE0F}", 'CHARACTER_WHITE_SMALL_SQUARE' => "\u{25AB}\u{FE0F}", 'CHARACTER_WHITE_MEDIUM_SQUARE' => "\u{25FB}\u{FE0F}", 'CHARACTER_BLACK_MEDIUM_SQUARE' => "\u{25FC}\u{FE0F}", 'CHARACTER_WHITE_MEDIUM_SMALL_SQUARE' => "\u{25FD}", 'CHARACTER_BLACK_MEDIUM_SMALL_SQUARE' => "\u{25FE}", 'CHARACTER_BLACK_LARGE_SQUARE' => "\u{2B1B}", 'CHARACTER_WHITE_LARGE_SQUARE' => "\u{2B1C}", 'CHARACTER_LARGE_ORANGE_DIAMOND' => "\u{1F536}", 'CHARACTER_LARGE_BLUE_DIAMOND' => "\u{1F537}", 'CHARACTER_SMALL_ORANGE_DIAMOND' => "\u{1F538}", 'CHARACTER_SMALL_BLUE_DIAMOND' => "\u{1F539}", 'CHARACTER_RED_TRIANGLE_POINTED_UP' => "\u{1F53A}", 'CHARACTER_RED_TRIANGLE_POINTED_DOWN' => "\u{1F53B}", 'CHARACTER_DIAMOND_WITH_A_DOT' => "\u{1F4A0}", 'CHARACTER_RADIO_BUTTON' => "\u{1F518}", 'CHARACTER_BLACK_SQUARE_BUTTON' => "\u{1F532}", 'CHARACTER_WHITE_SQUARE_BUTTON' => "\u{1F533}", 'CHARACTER_WHITE_CIRCLE' => "\u{26AA}", 'CHARACTER_BLACK_CIRCLE' => "\u{26AB}", 'CHARACTER_RED_CIRCLE' => "\u{1F534}", 'CHARACTER_BLUE_CIRCLE' => "\u{1F535}", 'CHARACTER_CHEQUERED_FLAG' => "\u{1F3C1}", 'CHARACTER_TRIANGULAR_FLAG' => "\u{1F6A9}", 'CHARACTER_CROSSED_FLAGS' => "\u{1F38C}", 'CHARACTER_BLACK_FLAG' => "\u{1F3F4}", 'CHARACTER_WHITE_FLAG' => "\u{1F3F3}\u{FE0F}", 'CHARACTER_RAINBOW_FLAG' => "\u{1F3F3}\u{FE0F}\u{200D}\u{1F308}", 'CHARACTER_PIRATE_FLAG' => "\u{1F3F4}\u{200D}\u{2620}\u{FE0F}", 'CHARACTER_FLAGS_FOR_ASCENSION_ISLAND' => "\u{1F1E6}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_ANDORRA' => "\u{1F1E6}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_UNITED_ARAB_EMIRATES' => "\u{1F1E6}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_AFGHANISTAN' => "\u{1F1E6}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_ANTIGUA_AND_BARBUDA' => "\u{1F1E6}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_ANGUILLA' => "\u{1F1E6}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_ALBANIA' => "\u{1F1E6}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_ARMENIA' => "\u{1F1E6}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_ANGOLA' => "\u{1F1E6}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_ANTARCTICA' => "\u{1F1E6}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_ARGENTINA' => "\u{1F1E6}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_AMERICAN_SAMOA' => "\u{1F1E6}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_AUSTRIA' => "\u{1F1E6}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_AUSTRALIA' => "\u{1F1E6}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_ARUBA' => "\u{1F1E6}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_ALAND_ISLANDS' => "\u{1F1E6}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_AZERBAIJAN' => "\u{1F1E6}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_BOSNIA_AND_HERZEGOVINA' => "\u{1F1E7}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_BARBADOS' => "\u{1F1E7}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_BANGLADESH' => "\u{1F1E7}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_BELGIUM' => "\u{1F1E7}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_BURKINA_FASO' => "\u{1F1E7}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_BULGARIA' => "\u{1F1E7}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_BAHRAIN' => "\u{1F1E7}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_BURUNDI' => "\u{1F1E7}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_BENIN' => "\u{1F1E7}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_ST_BARTHELEMY' => "\u{1F1E7}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_BERMUDA' => "\u{1F1E7}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_BRUNEI' => "\u{1F1E7}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_BOLIVIA' => "\u{1F1E7}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_CARIBBEAN_NETHERLANDS' => "\u{1F1E7}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_BRAZIL' => "\u{1F1E7}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_BAHAMAS' => "\u{1F1E7}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_BHUTAN' => "\u{1F1E7}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_BOUVET_ISLAND' => "\u{1F1E7}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_BOTSWANA' => "\u{1F1E7}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_BELARUS' => "\u{1F1E7}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_BELIZE' => "\u{1F1E7}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_CANADA' => "\u{1F1E8}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_COCOS_KEELING_ISLANDS' => "\u{1F1E8}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_CONGO_KINSHASA' => "\u{1F1E8}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_CENTRAL_AFRICAN_REPUBLIC' => "\u{1F1E8}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_CONGO_BRAZZAVILLE' => "\u{1F1E8}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_SWITZERLAND' => "\u{1F1E8}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_COTE_D_IVOIRE' => "\u{1F1E8}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_COOK_ISLANDS' => "\u{1F1E8}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_CHILE' => "\u{1F1E8}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_CAMEROON' => "\u{1F1E8}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_CHINA' => "\u{1F1E8}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_COLOMBIA' => "\u{1F1E8}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_CLIPPERTON_ISLAND' => "\u{1F1E8}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_COSTA_RICA' => "\u{1F1E8}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_CUBA' => "\u{1F1E8}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_CAPE_VERDE' => "\u{1F1E8}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_CURACAO' => "\u{1F1E8}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_CHRISTMAS_ISLAND' => "\u{1F1E8}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_CYPRUS' => "\u{1F1E8}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_CZECHIA' => "\u{1F1E8}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_GERMANY' => "\u{1F1E9}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_DIEGO_GARCIA' => "\u{1F1E9}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_DJIBOUTI' => "\u{1F1E9}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_DENMARK' => "\u{1F1E9}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_DOMINICA' => "\u{1F1E9}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_DOMINICAN_REPUBLIC' => "\u{1F1E9}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_ALGERIA' => "\u{1F1E9}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_CEUTA_AND_MELILLA' => "\u{1F1EA}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_ECUADOR' => "\u{1F1EA}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_ESTONIA' => "\u{1F1EA}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_EGYPT' => "\u{1F1EA}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_WESTERN_SAHARA' => "\u{1F1EA}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_ERITREA' => "\u{1F1EA}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_SPAIN' => "\u{1F1EA}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_ETHIOPIA' => "\u{1F1EA}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_EUROPEAN_UNION' => "\u{1F1EA}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_FINLAND' => "\u{1F1EB}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_FIJI' => "\u{1F1EB}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_FALKLAND_ISLANDS' => "\u{1F1EB}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_MICRONESIA' => "\u{1F1EB}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_FAROE_ISLANDS' => "\u{1F1EB}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_FRANCE' => "\u{1F1EB}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_GABON' => "\u{1F1EC}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_UNITED_KINGDOM' => "\u{1F1EC}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_GRENADA' => "\u{1F1EC}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_GEORGIA' => "\u{1F1EC}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_FRENCH_GUIANA' => "\u{1F1EC}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_GUERNSEY' => "\u{1F1EC}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_GHANA' => "\u{1F1EC}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_GIBRALTAR' => "\u{1F1EC}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_GREENLAND' => "\u{1F1EC}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_GAMBIA' => "\u{1F1EC}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_GUINEA' => "\u{1F1EC}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_GUADELOUPE' => "\u{1F1EC}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_EQUATORIAL_GUINEA' => "\u{1F1EC}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_GREECE' => "\u{1F1EC}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_SOUTH_GEORGIA_AND_SOUTH_SANDWICH_ISLANDS' => "\u{1F1EC}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_GUATEMALA' => "\u{1F1EC}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_GUAM' => "\u{1F1EC}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_GUINEA_BISSAU' => "\u{1F1EC}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_GUYANA' => "\u{1F1EC}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_HONG_KONG_SAR_CHINA' => "\u{1F1ED}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_HEARD_AND_MCDONALD_ISLANDS' => "\u{1F1ED}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_HONDURAS' => "\u{1F1ED}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_CROATIA' => "\u{1F1ED}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_HAITI' => "\u{1F1ED}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_HUNGARY' => "\u{1F1ED}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_CANARY_ISLANDS' => "\u{1F1EE}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_INDONESIA' => "\u{1F1EE}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_IRELAND' => "\u{1F1EE}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_ISRAEL' => "\u{1F1EE}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_ISLE_OF_MAN' => "\u{1F1EE}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_INDIA' => "\u{1F1EE}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_BRITISH_INDIAN_OCEAN_TERRITORY' => "\u{1F1EE}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_IRAQ' => "\u{1F1EE}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_IRAN' => "\u{1F1EE}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_ICELAND' => "\u{1F1EE}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_ITALY' => "\u{1F1EE}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_JERSEY' => "\u{1F1EF}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_JAMAICA' => "\u{1F1EF}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_JORDAN' => "\u{1F1EF}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_JAPAN' => "\u{1F1EF}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_KENYA' => "\u{1F1F0}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_KYRGYZSTAN' => "\u{1F1F0}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_CAMBODIA' => "\u{1F1F0}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_KIRIBATI' => "\u{1F1F0}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_COMOROS' => "\u{1F1F0}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_ST_KITTS_AND_NEVIS' => "\u{1F1F0}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_NORTH_KOREA' => "\u{1F1F0}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_SOUTH_KOREA' => "\u{1F1F0}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_KUWAIT' => "\u{1F1F0}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_CAYMAN_ISLANDS' => "\u{1F1F0}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_KAZAKHSTAN' => "\u{1F1F0}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_LAOS' => "\u{1F1F1}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_LEBANON' => "\u{1F1F1}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_ST_LUCIA' => "\u{1F1F1}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_LIECHTENSTEIN' => "\u{1F1F1}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_SRI_LANKA' => "\u{1F1F1}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_LIBERIA' => "\u{1F1F1}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_LESOTHO' => "\u{1F1F1}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_LITHUANIA' => "\u{1F1F1}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_LUXEMBOURG' => "\u{1F1F1}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_LATVIA' => "\u{1F1F1}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_LIBYA' => "\u{1F1F1}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_MOROCCO' => "\u{1F1F2}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_MONACO' => "\u{1F1F2}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_MOLDOVA' => "\u{1F1F2}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_MONTENEGRO' => "\u{1F1F2}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_ST_MARTIN' => "\u{1F1F2}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_MADAGASCAR' => "\u{1F1F2}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_MARSHALL_ISLANDS' => "\u{1F1F2}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_MACEDONIA' => "\u{1F1F2}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_MALI' => "\u{1F1F2}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_MYANMAR_BURMA' => "\u{1F1F2}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_MONGOLIA' => "\u{1F1F2}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_MACAU_SAR_CHINA' => "\u{1F1F2}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_NORTHERN_MARIANA_ISLANDS' => "\u{1F1F2}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_MARTINIQUE' => "\u{1F1F2}\u{1F1F6}", 'CHARACTER_FLAGS_FOR_MAURITANIA' => "\u{1F1F2}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_MONTSERRAT' => "\u{1F1F2}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_MALTA' => "\u{1F1F2}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_MAURITIUS' => "\u{1F1F2}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_MALDIVES' => "\u{1F1F2}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_MALAWI' => "\u{1F1F2}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_MEXICO' => "\u{1F1F2}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_MALAYSIA' => "\u{1F1F2}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_MOZAMBIQUE' => "\u{1F1F2}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_NAMIBIA' => "\u{1F1F3}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_NEW_CALEDONIA' => "\u{1F1F3}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_NIGER' => "\u{1F1F3}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_NORFOLK_ISLAND' => "\u{1F1F3}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_NIGERIA' => "\u{1F1F3}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_NICARAGUA' => "\u{1F1F3}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_NETHERLANDS' => "\u{1F1F3}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_NORWAY' => "\u{1F1F3}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_NEPAL' => "\u{1F1F3}\u{1F1F5}", 'CHARACTER_FLAGS_FOR_NAURU' => "\u{1F1F3}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_NIUE' => "\u{1F1F3}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_NEW_ZEALAND' => "\u{1F1F3}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_OMAN' => "\u{1F1F4}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_PANAMA' => "\u{1F1F5}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_PERU' => "\u{1F1F5}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_FRENCH_POLYNESIA' => "\u{1F1F5}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_PAPUA_NEW_GUINEA' => "\u{1F1F5}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_PHILIPPINES' => "\u{1F1F5}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_PAKISTAN' => "\u{1F1F5}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_POLAND' => "\u{1F1F5}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_ST_PIERRE_AND_MIQUELON' => "\u{1F1F5}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_PITCAIRN_ISLANDS' => "\u{1F1F5}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_PUERTO_RICO' => "\u{1F1F5}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_PALESTINIAN_TERRITORIES' => "\u{1F1F5}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_PORTUGAL' => "\u{1F1F5}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_PALAU' => "\u{1F1F5}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_PARAGUAY' => "\u{1F1F5}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_QATAR' => "\u{1F1F6}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_REUNION' => "\u{1F1F7}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_ROMANIA' => "\u{1F1F7}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_SERBIA' => "\u{1F1F7}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_RUSSIA' => "\u{1F1F7}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_RWANDA' => "\u{1F1F7}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_SAUDI_ARABIA' => "\u{1F1F8}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_SOLOMON_ISLANDS' => "\u{1F1F8}\u{1F1E7}", 'CHARACTER_FLAGS_FOR_SEYCHELLES' => "\u{1F1F8}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_SUDAN' => "\u{1F1F8}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_SWEDEN' => "\u{1F1F8}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_SINGAPORE' => "\u{1F1F8}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_ST_HELENA' => "\u{1F1F8}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_SLOVENIA' => "\u{1F1F8}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_SVALBARD_AND_JAN_MAYEN' => "\u{1F1F8}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_SLOVAKIA' => "\u{1F1F8}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_SIERRA_LEONE' => "\u{1F1F8}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_SAN_MARINO' => "\u{1F1F8}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_SENEGAL' => "\u{1F1F8}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_SOMALIA' => "\u{1F1F8}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_SURINAME' => "\u{1F1F8}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_SOUTH_SUDAN' => "\u{1F1F8}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_SAO_TOME_AND_PRINCIPE' => "\u{1F1F8}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_EL_SALVADOR' => "\u{1F1F8}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_SINT_MAARTEN' => "\u{1F1F8}\u{1F1FD}", 'CHARACTER_FLAGS_FOR_SYRIA' => "\u{1F1F8}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_SWAZILAND' => "\u{1F1F8}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_TRISTAN_DA_CUNHA' => "\u{1F1F9}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_TURKS_AND_CAICOS_ISLANDS' => "\u{1F1F9}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_CHAD' => "\u{1F1F9}\u{1F1E9}", 'CHARACTER_FLAGS_FOR_FRENCH_SOUTHERN_TERRITORIES' => "\u{1F1F9}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_TOGO' => "\u{1F1F9}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_THAILAND' => "\u{1F1F9}\u{1F1ED}", 'CHARACTER_FLAGS_FOR_TAJIKISTAN' => "\u{1F1F9}\u{1F1EF}", 'CHARACTER_FLAGS_FOR_TOKELAU' => "\u{1F1F9}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_TIMOR_LESTE' => "\u{1F1F9}\u{1F1F1}", 'CHARACTER_FLAGS_FOR_TURKMENISTAN' => "\u{1F1F9}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_TUNISIA' => "\u{1F1F9}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_TONGA' => "\u{1F1F9}\u{1F1F4}", 'CHARACTER_FLAGS_FOR_TURKEY' => "\u{1F1F9}\u{1F1F7}", 'CHARACTER_FLAGS_FOR_TRINIDAD_AND_TOBAGO' => "\u{1F1F9}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_TUVALU' => "\u{1F1F9}\u{1F1FB}", 'CHARACTER_FLAGS_FOR_TAIWAN' => "\u{1F1F9}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_TANZANIA' => "\u{1F1F9}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_UKRAINE' => "\u{1F1FA}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_UGANDA' => "\u{1F1FA}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_US_OUTLYING_ISLANDS' => "\u{1F1FA}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_UNITED_NATIONS' => "\u{1F1FA}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_UNITED_STATES' => "\u{1F1FA}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_URUGUAY' => "\u{1F1FA}\u{1F1FE}", 'CHARACTER_FLAGS_FOR_UZBEKISTAN' => "\u{1F1FA}\u{1F1FF}", 'CHARACTER_FLAGS_FOR_VATICAN_CITY' => "\u{1F1FB}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_ST_VINCENT_AND_GRENADINES' => "\u{1F1FB}\u{1F1E8}", 'CHARACTER_FLAGS_FOR_VENEZUELA' => "\u{1F1FB}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_BRITISH_VIRGIN_ISLANDS' => "\u{1F1FB}\u{1F1EC}", 'CHARACTER_FLAGS_FOR_US_VIRGIN_ISLANDS' => "\u{1F1FB}\u{1F1EE}", 'CHARACTER_FLAGS_FOR_VIETNAM' => "\u{1F1FB}\u{1F1F3}", 'CHARACTER_FLAGS_FOR_VANUATU' => "\u{1F1FB}\u{1F1FA}", 'CHARACTER_FLAGS_FOR_WALLIS_AND_FUTUNA' => "\u{1F1FC}\u{1F1EB}", 'CHARACTER_FLAGS_FOR_SAMOA' => "\u{1F1FC}\u{1F1F8}", 'CHARACTER_FLAGS_FOR_KOSOVO' => "\u{1F1FD}\u{1F1F0}", 'CHARACTER_FLAGS_FOR_YEMEN' => "\u{1F1FE}\u{1F1EA}", 'CHARACTER_FLAGS_FOR_MAYOTTE' => "\u{1F1FE}\u{1F1F9}", 'CHARACTER_FLAGS_FOR_SOUTH_AFRICA' => "\u{1F1FF}\u{1F1E6}", 'CHARACTER_FLAGS_FOR_ZAMBIA' => "\u{1F1FF}\u{1F1F2}", 'CHARACTER_FLAGS_FOR_ZIMBABWE' => "\u{1F1FF}\u{1F1FC}", 'CHARACTER_FLAGS_FOR_ENGLAND' => "\u{1F3F4}\u{E0067}\u{E0062}\u{E0065}\u{E006E}\u{E0067}\u{E007F}", 'CHARACTER_FLAGS_FOR_SCOTLAND' => "\u{1F3F4}\u{E0067}\u{E0062}\u{E0073}\u{E0063}\u{E0074}\u{E007F}", 'CHARACTER_FLAGS_FOR_WALES' => "\u{1F3F4}\u{E0067}\u{E0062}\u{E0077}\u{E006C}\u{E0073}\u{E007F}"]; <?php return ['ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', 'WINDOWS-1251', 'WINDOWS-1252', 'WINDOWS-1254', 'CP932', 'CP936', 'CP950', 'CP866', 'CP850', 'CP51932', 'CP50220', 'CP50221', 'CP50222', 'ISO-2022-JP', 'ISO-2022-KR', 'JIS', 'JIS-ms', 'EUC-CN', 'EUC-JP', 'ANSI_X3.4-1968', 'ANSI_X3.4-1986', 'ASCII', 'CP367', 'IBM367', 'ISO-IR-6', 'ISO646-US', 'ISO_646.IRV:1991', 'US', 'US-ASCII', 'CSASCII', 'UTF-8', 'ISO-10646-UCS-2', 'UCS-2', 'CSUNICODE', 'UCS-2BE', 'UNICODE-1-1', 'UNICODEBIG', 'CSUNICODE11', 'UCS-2LE', 'UNICODELITTLE', 'ISO-10646-UCS-4', 'UCS-4', 'CSUCS4', 'UCS-4BE', 'UCS-4LE', 'UTF-16', 'UTF-16BE', 'UTF-16LE', 'UTF-32', 'UTF-32BE', 'UTF-32LE', 'UNICODE-1-1-UTF-7', 'UTF-7', 'CSUNICODE11UTF7', 'UCS-2-INTERNAL', 'UCS-2-SWAPPED', 'UCS-4-INTERNAL', 'UCS-4-SWAPPED', 'C99', 'JAVA', 'CP819', 'IBM819', 'ISO-IR-100', 'ISO8859-1', 'ISO_8859-1', 'ISO_8859-1:1987', 'L1', 'LATIN1', 'CSISOLATIN1', 'ISO-IR-101', 'ISO8859-2', 'ISO_8859-2', 'ISO_8859-2:1987', 'L2', 'LATIN2', 'CSISOLATIN2', 'ISO-IR-109', 'ISO8859-3', 'ISO_8859-3', 'ISO_8859-3:1988', 'L3', 'LATIN3', 'CSISOLATIN3', 'ISO-IR-110', 'ISO8859-4', 'ISO_8859-4', 'ISO_8859-4:1988', 'L4', 'LATIN4', 'CSISOLATIN4', 'CYRILLIC', 'ISO-IR-144', 'ISO8859-5', 'ISO_8859-5', 'ISO_8859-5:1988', 'CSISOLATINCYRILLIC', 'ARABIC', 'ASMO-708', 'ECMA-114', 'ISO-IR-127', 'ISO8859-6', 'ISO_8859-6', 'ISO_8859-6:1987', 'CSISOLATINARABIC', 'ECMA-118', 'ELOT_928', 'GREEK', 'GREEK8', 'ISO-IR-126', 'ISO8859-7', 'ISO_8859-7', 'ISO_8859-7:1987', 'ISO_8859-7:2003', 'CSISOLATINGREEK', 'HEBREW', 'ISO-IR-138', 'ISO8859-8', 'ISO_8859-8', 'ISO_8859-8:1988', 'CSISOLATINHEBREW', 'ISO-IR-148', 'ISO8859-9', 'ISO_8859-9', 'ISO_8859-9:1989', 'L5', 'LATIN5', 'CSISOLATIN5', 'ISO-IR-157', 'ISO8859-10', 'ISO_8859-10', 'ISO_8859-10:1992', 'L6', 'LATIN6', 'CSISOLATIN6', 'ISO-8859-11', 'ISO8859-11', 'ISO_8859-11', 'ISO-IR-179', 'ISO8859-13', 'ISO_8859-13', 'L7', 'LATIN7', 'ISO-CELTIC', 'ISO-IR-199', 'ISO8859-14', 'ISO_8859-14', 'ISO_8859-14:1998', 'L8', 'LATIN8', 'ISO-IR-203', 'ISO8859-15', 'ISO_8859-15', 'ISO_8859-15:1998', 'LATIN-9', 'ISO-IR-226', 'ISO8859-16', 'ISO_8859-16', 'ISO_8859-16:2001', 'L10', 'LATIN10', 'KOI8-R', 'CSKOI8R', 'KOI8-U', 'KOI8-RU', 'CP1250', 'MS-EE', 'WINDOWS-1250', 'CP1251', 'MS-CYRL', 'CP1252', 'MS-ANSI', 'CP1253', 'MS-GREEK', 'WINDOWS-1253', 'CP1254', 'MS-TURK', 'CP1255', 'MS-HEBR', 'WINDOWS-1255', 'CP1256', 'MS-ARAB', 'WINDOWS-1256', 'CP1257', 'WINBALTRIM', 'WINDOWS-1257', 'CP1258', 'WINDOWS-1258', '850', 'IBM850', 'CSPC850MULTILINGUAL', '862', 'CP862', 'IBM862', 'CSPC862LATINHEBREW', '866', 'IBM866', 'CSIBM866', 'MAC', 'MACINTOSH', 'MACROMAN', 'CSMACINTOSH', 'MACCENTRALEUROPE', 'MACICELAND', 'MACCROATIAN', 'MACROMANIA', 'MACCYRILLIC', 'MACUKRAINE', 'MACGREEK', 'MACTURKISH', 'MACHEBREW', 'MACARABIC', 'MACTHAI', 'HP-ROMAN8', 'R8', 'ROMAN8', 'CSHPROMAN8', 'NEXTSTEP', 'ARMSCII-8', 'GEORGIAN-ACADEMY', 'GEORGIAN-PS', 'KOI8-T', 'CP154', 'CYRILLIC-ASIAN', 'PT154', 'PTCP154', 'CSPTCP154', 'KZ-1048', 'RK1048', 'STRK1048-2002', 'CSKZ1048', 'MULELAO-1', 'CP1133', 'IBM-CP1133', 'ISO-IR-166', 'TIS-620', 'TIS620', 'TIS620-0', 'TIS620.2529-1', 'TIS620.2533-0', 'TIS620.2533-1', 'CP874', 'WINDOWS-874', 'VISCII', 'VISCII1.1-1', 'CSVISCII', 'TCVN', 'TCVN-5712', 'TCVN5712-1', 'TCVN5712-1:1993', 'ISO-IR-14', 'ISO646-JP', 'JIS_C6220-1969-RO', 'JP', 'CSISO14JISC6220RO', 'JISX0201-1976', 'JIS_X0201', 'X0201', 'CSHALFWIDTHKATAKANA', 'ISO-IR-87', 'JIS0208', 'JIS_C6226-1983', 'JIS_X0208', 'JIS_X0208-1983', 'JIS_X0208-1990', 'X0208', 'CSISO87JISX0208', 'ISO-IR-159', 'JIS_X0212', 'JIS_X0212-1990', 'JIS_X0212.1990-0', 'X0212', 'CSISO159JISX02121990', 'CN', 'GB_1988-80', 'ISO-IR-57', 'ISO646-CN', 'CSISO57GB1988', 'CHINESE', 'GB_2312-80', 'ISO-IR-58', 'CSISO58GB231280', 'CN-GB-ISOIR165', 'ISO-IR-165', 'ISO-IR-149', 'KOREAN', 'KSC_5601', 'KS_C_5601-1987', 'KS_C_5601-1989', 'CSKSC56011987', 'EUCJP', 'EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE', 'CSEUCPKDFMTJAPANESE', 'MS_KANJI', 'SHIFT-JIS', 'SHIFT_JIS', 'SJIS', 'CSSHIFTJIS', 'CSISO2022JP', 'ISO-2022-JP-1', 'ISO-2022-JP-2', 'CSISO2022JP2', 'CN-GB', 'EUCCN', 'GB2312', 'CSGB2312', 'GBK', 'MS936', 'WINDOWS-936', 'GB18030', 'ISO-2022-CN', 'CSISO2022CN', 'ISO-2022-CN-EXT', 'HZ', 'HZ-GB-2312', 'EUC-TW', 'EUCTW', 'CSEUCTW', 'BIG-5', 'BIG-FIVE', 'BIG5', 'BIGFIVE', 'CN-BIG5', 'CSBIG5', 'BIG5-HKSCS:1999', 'BIG5-HKSCS:2001', 'BIG5-HKSCS', 'BIG5-HKSCS:2004', 'BIG5HKSCS', 'EUC-KR', 'EUCKR', 'CSEUCKR', 'CP949', 'UHC', 'CP1361', 'JOHAB', 'CSISO2022KR', 'CP856', 'CP922', 'CP943', 'CP1046', 'CP1124', 'CP1129', 'CP1161', 'IBM-1161', 'IBM1161', 'CSIBM1161', 'CP1162', 'IBM-1162', 'IBM1162', 'CSIBM1162', 'CP1163', 'IBM-1163', 'IBM1163', 'CSIBM1163', 'DEC-KANJI', 'DEC-HANYU', '437', 'CP437', 'IBM437', 'CSPC8CODEPAGE437', 'CP737', 'CP775', 'IBM775', 'CSPC775BALTIC', '852', 'CP852', 'IBM852', 'CSPCP852', 'CP853', '855', 'CP855', 'IBM855', 'CSIBM855', '857', 'CP857', 'IBM857', 'CSIBM857', 'CP858', '860', 'CP860', 'IBM860', 'CSIBM860', '861', 'CP-IS', 'CP861', 'IBM861', 'CSIBM861', '863', 'CP863', 'IBM863', 'CSIBM863', 'CP864', 'IBM864', 'CSIBM864', '865', 'CP865', 'IBM865', 'CSIBM865', '869', 'CP-GR', 'CP869', 'IBM869', 'CSIBM869', 'CP1125', 'EUC-JISX0213', 'SHIFT_JISX0213', 'ISO-2022-JP-3', 'BIG5-2003', 'ISO-IR-230', 'TDS565', 'ATARI', 'ATARIST', 'RISCOS-LATIN1']; <?php return ['' => 0, "\x00" => 0, "\x01" => 1, "\x02" => 2, "\x03" => 3, "\x04" => 4, "\x05" => 5, "\x06" => 6, "\x07" => 7, "\x08" => 8, "\x09" => 9, "\x0A" => 10, "\x0B" => 11, "\x0C" => 12, "\x0D" => 13, "\x0E" => 14, "\x0F" => 15, "\x10" => 16, "\x11" => 17, "\x12" => 18, "\x13" => 19, "\x14" => 20, "\x15" => 21, "\x16" => 22, "\x17" => 23, "\x18" => 24, "\x19" => 25, "\x1A" => 26, "\x1B" => 27, "\x1C" => 28, "\x1D" => 29, "\x1E" => 30, "\x1F" => 31, "\x20" => 32, "\x21" => 33, "\x22" => 34, "\x23" => 35, "\x24" => 36, "\x25" => 37, "\x26" => 38, "\x27" => 39, "\x28" => 40, "\x29" => 41, "\x2A" => 42, "\x2B" => 43, "\x2C" => 44, "\x2D" => 45, "\x2E" => 46, "\x2F" => 47, "\x30" => 48, "\x31" => 49, "\x32" => 50, "\x33" => 51, "\x34" => 52, "\x35" => 53, "\x36" => 54, "\x37" => 55, "\x38" => 56, "\x39" => 57, "\x3A" => 58, "\x3B" => 59, "\x3C" => 60, "\x3D" => 61, "\x3E" => 62, "\x3F" => 63, "\x40" => 64, "\x41" => 65, "\x42" => 66, "\x43" => 67, "\x44" => 68, "\x45" => 69, "\x46" => 70, "\x47" => 71, "\x48" => 72, "\x49" => 73, "\x4A" => 74, "\x4B" => 75, "\x4C" => 76, "\x4D" => 77, "\x4E" => 78, "\x4F" => 79, "\x50" => 80, "\x51" => 81, "\x52" => 82, "\x53" => 83, "\x54" => 84, "\x55" => 85, "\x56" => 86, "\x57" => 87, "\x58" => 88, "\x59" => 89, "\x5A" => 90, "\x5B" => 91, "\x5C" => 92, "\x5D" => 93, "\x5E" => 94, "\x5F" => 95, "\x60" => 96, "\x61" => 97, "\x62" => 98, "\x63" => 99, "\x64" => 100, "\x65" => 101, "\x66" => 102, "\x67" => 103, "\x68" => 104, "\x69" => 105, "\x6A" => 106, "\x6B" => 107, "\x6C" => 108, "\x6D" => 109, "\x6E" => 110, "\x6F" => 111, "\x70" => 112, "\x71" => 113, "\x72" => 114, "\x73" => 115, "\x74" => 116, "\x75" => 117, "\x76" => 118, "\x77" => 119, "\x78" => 120, "\x79" => 121, "\x7A" => 122, "\x7B" => 123, "\x7C" => 124, "\x7D" => 125, "\x7E" => 126, "\x7F" => 127, "\x80" => 128, "\x81" => 129, "\x82" => 130, "\x83" => 131, "\x84" => 132, "\x85" => 133, "\x86" => 134, "\x87" => 135, "\x88" => 136, "\x89" => 137, "\x8A" => 138, "\x8B" => 139, "\x8C" => 140, "\x8D" => 141, "\x8E" => 142, "\x8F" => 143, "\x90" => 144, "\x91" => 145, "\x92" => 146, "\x93" => 147, "\x94" => 148, "\x95" => 149, "\x96" => 150, "\x97" => 151, "\x98" => 152, "\x99" => 153, "\x9A" => 154, "\x9B" => 155, "\x9C" => 156, "\x9D" => 157, "\x9E" => 158, "\x9F" => 159, "\xA0" => 160, "\xA1" => 161, "\xA2" => 162, "\xA3" => 163, "\xA4" => 164, "\xA5" => 165, "\xA6" => 166, "\xA7" => 167, "\xA8" => 168, "\xA9" => 169, "\xAA" => 170, "\xAB" => 171, "\xAC" => 172, "\xAD" => 173, "\xAE" => 174, "\xAF" => 175, "\xB0" => 176, "\xB1" => 177, "\xB2" => 178, "\xB3" => 179, "\xB4" => 180, "\xB5" => 181, "\xB6" => 182, "\xB7" => 183, "\xB8" => 184, "\xB9" => 185, "\xBA" => 186, "\xBB" => 187, "\xBC" => 188, "\xBD" => 189, "\xBE" => 190, "\xBF" => 191, "\xC0" => 192, "\xC1" => 193, "\xC2" => 194, "\xC3" => 195, "\xC4" => 196, "\xC5" => 197, "\xC6" => 198, "\xC7" => 199, "\xC8" => 200, "\xC9" => 201, "\xCA" => 202, "\xCB" => 203, "\xCC" => 204, "\xCD" => 205, "\xCE" => 206, "\xCF" => 207, "\xD0" => 208, "\xD1" => 209, "\xD2" => 210, "\xD3" => 211, "\xD4" => 212, "\xD5" => 213, "\xD6" => 214, "\xD7" => 215, "\xD8" => 216, "\xD9" => 217, "\xDA" => 218, "\xDB" => 219, "\xDC" => 220, "\xDD" => 221, "\xDE" => 222, "\xDF" => 223, "\xE0" => 224, "\xE1" => 225, "\xE2" => 226, "\xE3" => 227, "\xE4" => 228, "\xE5" => 229, "\xE6" => 230, "\xE7" => 231, "\xE8" => 232, "\xE9" => 233, "\xEA" => 234, "\xEB" => 235, "\xEC" => 236, "\xED" => 237, "\xEE" => 238, "\xEF" => 239, "\xF0" => 240, "\xF1" => 241, "\xF2" => 242, "\xF3" => 243, "\xF4" => 244, "\xF5" => 245, "\xF6" => 246, "\xF7" => 247, "\xF8" => 248, "\xF9" => 249, "\xFA" => 250, "\xFB" => 251, "\xFC" => 252, "\xFD" => 253, "\xFE" => 254, "\xFF" => 255]; <?php return [0 => 'ASCII-Latin', 1 => 'Accents-Any', 2 => 'Amharic-Latin/BGN', 3 => 'Any-Accents', 4 => 'Any-Publishing', 5 => 'Arab-Latn', 6 => 'Arabic-Latin', 7 => 'Arabic-Latin/BGN', 8 => 'Armenian-Latin', 9 => 'Armenian-Latin/BGN', 10 => 'Armn-Latn', 11 => 'Azerbaijani-Latin/BGN', 12 => 'Belarusian-Latin/BGN', 13 => 'Beng-Arab', 14 => 'Beng-Deva', 15 => 'Beng-Gujr', 16 => 'Beng-Guru', 17 => 'Beng-Knda', 18 => 'Beng-Latn', 19 => 'Beng-Mlym', 20 => 'Beng-Orya', 21 => 'Beng-Taml', 22 => 'Beng-Telu', 23 => 'Beng-ur', 24 => 'Bengali-Arabic', 25 => 'Bengali-Devanagari', 26 => 'Bengali-Gujarati', 27 => 'Bengali-Gurmukhi', 28 => 'Bengali-Kannada', 29 => 'Bengali-Latin', 30 => 'Bengali-Malayalam', 31 => 'Bengali-Oriya', 32 => 'Bengali-Tamil', 33 => 'Bengali-Telugu', 34 => 'Bopo-Latn', 35 => 'Bopomofo-Latin', 36 => 'Bulgarian-Latin/BGN', 37 => 'Cyrillic-Latin', 38 => 'Cyrl-Latn', 39 => 'Deva-Arab', 40 => 'Deva-Beng', 41 => 'Deva-Gujr', 42 => 'Deva-Guru', 43 => 'Deva-Knda', 44 => 'Deva-Latn', 45 => 'Deva-Mlym', 46 => 'Deva-Orya', 47 => 'Deva-Taml', 48 => 'Deva-Telu', 49 => 'Deva-ur', 50 => 'Devanagari-Arabic', 51 => 'Devanagari-Bengali', 52 => 'Devanagari-Gujarati', 53 => 'Devanagari-Gurmukhi', 54 => 'Devanagari-Kannada', 55 => 'Devanagari-Latin', 56 => 'Devanagari-Malayalam', 57 => 'Devanagari-Oriya', 58 => 'Devanagari-Tamil', 59 => 'Devanagari-Telugu', 60 => 'Digit-Tone', 61 => 'Fullwidth-Halfwidth', 62 => 'Geor-Latn', 63 => 'Georgian-Latin', 64 => 'Georgian-Latin/BGN', 65 => 'Greek-Latin', 66 => 'Greek-Latin/BGN', 67 => 'Greek-Latin/UNGEGN', 68 => 'Grek-Latn', 69 => 'Grek-Latn/UNGEGN', 70 => 'Gujarati-Arabic', 71 => 'Gujarati-Bengali', 72 => 'Gujarati-Devanagari', 73 => 'Gujarati-Gurmukhi', 74 => 'Gujarati-Kannada', 75 => 'Gujarati-Latin', 76 => 'Gujarati-Malayalam', 77 => 'Gujarati-Oriya', 78 => 'Gujarati-Tamil', 79 => 'Gujarati-Telugu', 80 => 'Gujr-Arab', 81 => 'Gujr-Beng', 82 => 'Gujr-Deva', 83 => 'Gujr-Guru', 84 => 'Gujr-Knda', 85 => 'Gujr-Latn', 86 => 'Gujr-Mlym', 87 => 'Gujr-Orya', 88 => 'Gujr-Taml', 89 => 'Gujr-Telu', 90 => 'Gujr-ur', 91 => 'Gurmukhi-Arabic', 92 => 'Gurmukhi-Bengali', 93 => 'Gurmukhi-Devanagari', 94 => 'Gurmukhi-Gujarati', 95 => 'Gurmukhi-Kannada', 96 => 'Gurmukhi-Latin', 97 => 'Gurmukhi-Malayalam', 98 => 'Gurmukhi-Oriya', 99 => 'Gurmukhi-Tamil', 100 => 'Gurmukhi-Telugu', 101 => 'Guru-Arab', 102 => 'Guru-Beng', 103 => 'Guru-Deva', 104 => 'Guru-Gujr', 105 => 'Guru-Knda', 106 => 'Guru-Latn', 107 => 'Guru-Mlym', 108 => 'Guru-Orya', 109 => 'Guru-Taml', 110 => 'Guru-Telu', 111 => 'Guru-ur', 112 => 'Halfwidth-Fullwidth', 113 => 'Han-Latin', 114 => 'Han-Latin/Names', 115 => 'Hang-Latn', 116 => 'Hangul-Latin', 117 => 'Hani-Latn', 118 => 'Hans-Hant', 119 => 'Hant-Hans', 120 => 'Hebr-Latn', 121 => 'Hebrew-Latin', 122 => 'Hebrew-Latin/BGN', 123 => 'Hira-Kana', 124 => 'Hira-Latn', 125 => 'Hiragana-Katakana', 126 => 'Hiragana-Latin', 127 => 'IPA-XSampa', 128 => 'Jamo-Latin', 129 => 'Jamo-Latn', 130 => 'Kana-Hira', 131 => 'Kana-Latn', 132 => 'Kannada-Arabic', 133 => 'Kannada-Bengali', 134 => 'Kannada-Devanagari', 135 => 'Kannada-Gujarati', 136 => 'Kannada-Gurmukhi', 137 => 'Kannada-Latin', 138 => 'Kannada-Malayalam', 139 => 'Kannada-Oriya', 140 => 'Kannada-Tamil', 141 => 'Kannada-Telugu', 142 => 'Katakana-Hiragana', 143 => 'Katakana-Latin', 144 => 'Katakana-Latin/BGN', 145 => 'Kazakh-Latin/BGN', 146 => 'Kirghiz-Latin/BGN', 147 => 'Knda-Arab', 148 => 'Knda-Beng', 149 => 'Knda-Deva', 150 => 'Knda-Gujr', 151 => 'Knda-Guru', 152 => 'Knda-Latn', 153 => 'Knda-Mlym', 154 => 'Knda-Orya', 155 => 'Knda-Taml', 156 => 'Knda-Telu', 157 => 'Knda-ur', 158 => 'Korean-Latin/BGN', 159 => 'Latin-ASCII', 160 => 'Latin-Arabic', 161 => 'Latin-Armenian', 162 => 'Latin-Bengali', 163 => 'Latin-Bopomofo', 164 => 'Latin-Cyrillic', 165 => 'Latin-Devanagari', 166 => 'Latin-Georgian', 167 => 'Latin-Greek', 168 => 'Latin-Greek/UNGEGN', 169 => 'Latin-Gujarati', 170 => 'Latin-Gurmukhi', 171 => 'Latin-Hangul', 172 => 'Latin-Hebrew', 173 => 'Latin-Hiragana', 174 => 'Latin-Jamo', 175 => 'Latin-Kannada', 176 => 'Latin-Katakana', 177 => 'Latin-Malayalam', 178 => 'Latin-NumericPinyin', 179 => 'Latin-Oriya', 180 => 'Latin-Russian/BGN', 181 => 'Latin-Syriac', 182 => 'Latin-Tamil', 183 => 'Latin-Telugu', 184 => 'Latin-Thaana', 185 => 'Latin-Thai', 186 => 'Latn-Arab', 187 => 'Latn-Armn', 188 => 'Latn-Beng', 189 => 'Latn-Bopo', 190 => 'Latn-Cyrl', 191 => 'Latn-Deva', 192 => 'Latn-Geor', 193 => 'Latn-Grek', 194 => 'Latn-Grek/UNGEGN', 195 => 'Latn-Gujr', 196 => 'Latn-Guru', 197 => 'Latn-Hang', 198 => 'Latn-Hebr', 199 => 'Latn-Hira', 200 => 'Latn-Jamo', 201 => 'Latn-Kana', 202 => 'Latn-Knda', 203 => 'Latn-Mlym', 204 => 'Latn-Orya', 205 => 'Latn-Syrc', 206 => 'Latn-Taml', 207 => 'Latn-Telu', 208 => 'Latn-Thaa', 209 => 'Latn-Thai', 210 => 'Macedonian-Latin/BGN', 211 => 'Malayalam-Arabic', 212 => 'Malayalam-Bengali', 213 => 'Malayalam-Devanagari', 214 => 'Malayalam-Gujarati', 215 => 'Malayalam-Gurmukhi', 216 => 'Malayalam-Kannada', 217 => 'Malayalam-Latin', 218 => 'Malayalam-Oriya', 219 => 'Malayalam-Tamil', 220 => 'Malayalam-Telugu', 221 => 'Maldivian-Latin/BGN', 222 => 'Mlym-Arab', 223 => 'Mlym-Beng', 224 => 'Mlym-Deva', 225 => 'Mlym-Gujr', 226 => 'Mlym-Guru', 227 => 'Mlym-Knda', 228 => 'Mlym-Latn', 229 => 'Mlym-Orya', 230 => 'Mlym-Taml', 231 => 'Mlym-Telu', 232 => 'Mlym-ur', 233 => 'Mongolian-Latin/BGN', 234 => 'NumericPinyin-Latin', 235 => 'NumericPinyin-Pinyin', 236 => 'Oriya-Arabic', 237 => 'Oriya-Bengali', 238 => 'Oriya-Devanagari', 239 => 'Oriya-Gujarati', 240 => 'Oriya-Gurmukhi', 241 => 'Oriya-Kannada', 242 => 'Oriya-Latin', 243 => 'Oriya-Malayalam', 244 => 'Oriya-Tamil', 245 => 'Oriya-Telugu', 246 => 'Orya-Arab', 247 => 'Orya-Beng', 248 => 'Orya-Deva', 249 => 'Orya-Gujr', 250 => 'Orya-Guru', 251 => 'Orya-Knda', 252 => 'Orya-Latn', 253 => 'Orya-Mlym', 254 => 'Orya-Taml', 255 => 'Orya-Telu', 256 => 'Orya-ur', 257 => 'Pashto-Latin/BGN', 258 => 'Persian-Latin/BGN', 259 => 'Pinyin-NumericPinyin', 260 => 'Publishing-Any', 261 => 'Russian-Latin/BGN', 262 => 'Serbian-Latin/BGN', 263 => 'Simplified-Traditional', 264 => 'Syrc-Latn', 265 => 'Syriac-Latin', 266 => 'Tamil-Arabic', 267 => 'Tamil-Bengali', 268 => 'Tamil-Devanagari', 269 => 'Tamil-Gujarati', 270 => 'Tamil-Gurmukhi', 271 => 'Tamil-Kannada', 272 => 'Tamil-Latin', 273 => 'Tamil-Malayalam', 274 => 'Tamil-Oriya', 275 => 'Tamil-Telugu', 276 => 'Taml-Arab', 277 => 'Taml-Beng', 278 => 'Taml-Deva', 279 => 'Taml-Gujr', 280 => 'Taml-Guru', 281 => 'Taml-Knda', 282 => 'Taml-Latn', 283 => 'Taml-Mlym', 284 => 'Taml-Orya', 285 => 'Taml-Telu', 286 => 'Taml-ur', 287 => 'Telu-Arab', 288 => 'Telu-Beng', 289 => 'Telu-Deva', 290 => 'Telu-Gujr', 291 => 'Telu-Guru', 292 => 'Telu-Knda', 293 => 'Telu-Latn', 294 => 'Telu-Mlym', 295 => 'Telu-Orya', 296 => 'Telu-Taml', 297 => 'Telu-ur', 298 => 'Telugu-Arabic', 299 => 'Telugu-Bengali', 300 => 'Telugu-Devanagari', 301 => 'Telugu-Gujarati', 302 => 'Telugu-Gurmukhi', 303 => 'Telugu-Kannada', 304 => 'Telugu-Latin', 305 => 'Telugu-Malayalam', 306 => 'Telugu-Oriya', 307 => 'Telugu-Tamil', 308 => 'Thaa-Latn', 309 => 'Thaana-Latin', 310 => 'Thai-Latin', 311 => 'Thai-Latn', 312 => 'Tone-Digit', 313 => 'Traditional-Simplified', 314 => 'Turkmen-Latin/BGN', 315 => 'Ukrainian-Latin/BGN', 316 => 'Uzbek-Latin/BGN', 317 => 'XSampa-IPA', 318 => 'Zawgyi-my', 319 => 'am-am_FONIPA', 320 => 'am-am_Latn/BGN', 321 => 'am-ar', 322 => 'am-chr', 323 => 'am-fa', 324 => 'am_FONIPA-am', 325 => 'ar-ar_Latn/BGN', 326 => 'az-Lower', 327 => 'az-Title', 328 => 'az-Upper', 329 => 'az_Cyrl-az/BGN', 330 => 'be-be_Latn/BGN', 331 => 'bg-bg_Latn/BGN', 332 => 'blt-blt_FONIPA', 333 => 'ch-am', 334 => 'ch-ar', 335 => 'ch-ch_FONIPA', 336 => 'ch-chr', 337 => 'ch-fa', 338 => 'chr-chr_FONIPA', 339 => 'cs-am', 340 => 'cs-ar', 341 => 'cs-chr', 342 => 'cs-cs_FONIPA', 343 => 'cs-fa', 344 => 'cs-ja', 345 => 'cs-ko', 346 => 'cs_FONIPA-ja', 347 => 'cs_FONIPA-ko', 348 => 'cy-cy_FONIPA', 349 => 'de-ASCII', 350 => 'dsb-dsb_FONIPA', 351 => 'dv-dv_Latn/BGN', 352 => 'el-Lower', 353 => 'el-Title', 354 => 'el-Upper', 355 => 'el-el_Latn/BGN', 356 => 'eo-am', 357 => 'eo-ar', 358 => 'eo-chr', 359 => 'eo-eo_FONIPA', 360 => 'eo-fa', 361 => 'es-am', 362 => 'es-ar', 363 => 'es-chr', 364 => 'es-es_FONIPA', 365 => 'es-fa', 366 => 'es-ja', 367 => 'es-zh', 368 => 'es_419-am', 369 => 'es_419-ar', 370 => 'es_419-chr', 371 => 'es_419-fa', 372 => 'es_419-ja', 373 => 'es_419-zh', 374 => 'es_FONIPA-am', 375 => 'es_FONIPA-es_419_FONIPA', 376 => 'es_FONIPA-ja', 377 => 'es_FONIPA-zh', 378 => 'fa-fa_FONIPA', 379 => 'fa-fa_Latn/BGN', 380 => 'ha-ha_NE', 381 => 'he-he_Latn/BGN', 382 => 'hy-am', 383 => 'hy-ar', 384 => 'hy-chr', 385 => 'hy-fa', 386 => 'hy-hy_FONIPA', 387 => 'hy-hy_Latn/BGN', 388 => 'hy_AREVMDA-am', 389 => 'hy_AREVMDA-ar', 390 => 'hy_AREVMDA-chr', 391 => 'hy_AREVMDA-fa', 392 => 'hy_AREVMDA-hy_AREVMDA_FONIPA', 393 => 'ia-am', 394 => 'ia-ar', 395 => 'ia-chr', 396 => 'ia-fa', 397 => 'ia-ia_FONIPA', 398 => 'it-am', 399 => 'it-ja', 400 => 'ja_Hrkt-ja_Latn/BGN', 401 => 'ja_Latn-ko', 402 => 'ja_Latn-ru', 403 => 'ka-ka_Latn/BGN', 404 => 'ka-ka_Latn/BGN_1981', 405 => 'kk-am', 406 => 'kk-ar', 407 => 'kk-chr', 408 => 'kk-fa', 409 => 'kk-kk_FONIPA', 410 => 'kk-kk_Latn/BGN', 411 => 'ko-ko_Latn/BGN', 412 => 'ky-am', 413 => 'ky-ar', 414 => 'ky-chr', 415 => 'ky-fa', 416 => 'ky-ky_FONIPA', 417 => 'ky-ky_Latn/BGN', 418 => 'la-la_FONIPA', 419 => 'lt-Lower', 420 => 'lt-Title', 421 => 'lt-Upper', 422 => 'mk-mk_Latn/BGN', 423 => 'mn-mn_Latn/BGN', 424 => 'mn-mn_Latn/MNS', 425 => 'my-Zawgyi', 426 => 'my-am', 427 => 'my-ar', 428 => 'my-chr', 429 => 'my-fa', 430 => 'my-my_FONIPA', 431 => 'nl-Title', 432 => 'nv-nv_FONIPA', 433 => 'pl-am', 434 => 'pl-ar', 435 => 'pl-chr', 436 => 'pl-fa', 437 => 'pl-ja', 438 => 'pl-pl_FONIPA', 439 => 'pl_FONIPA-ja', 440 => 'ps-ps_Latn/BGN', 441 => 'rm_SURSILV-am', 442 => 'rm_SURSILV-ar', 443 => 'rm_SURSILV-chr', 444 => 'rm_SURSILV-fa', 445 => 'rm_SURSILV-rm_FONIPA_SURSILV', 446 => 'ro-am', 447 => 'ro-ar', 448 => 'ro-chr', 449 => 'ro-fa', 450 => 'ro-ja', 451 => 'ro-ro_FONIPA', 452 => 'ro_FONIPA-ja', 453 => 'ru-ja', 454 => 'ru-ru_Latn/BGN', 455 => 'ru-zh', 456 => 'ru_Latn-ru/BGN', 457 => 'sat-am', 458 => 'sat-ar', 459 => 'sat-chr', 460 => 'sat-fa', 461 => 'sat_Olck-sat_FONIPA', 462 => 'si-am', 463 => 'si-ar', 464 => 'si-chr', 465 => 'si-fa', 466 => 'si-si_FONIPA', 467 => 'si-si_Latn', 468 => 'sk-am', 469 => 'sk-ar', 470 => 'sk-chr', 471 => 'sk-fa', 472 => 'sk-ja', 473 => 'sk-sk_FONIPA', 474 => 'sk_FONIPA-ja', 475 => 'sr-sr_Latn/BGN', 476 => 'ta-ta_FONIPA', 477 => 'tk_Cyrl-tk/BGN', 478 => 'tlh-am', 479 => 'tlh-ar', 480 => 'tlh-chr', 481 => 'tlh-fa', 482 => 'tlh-tlh_FONIPA', 483 => 'tr-Lower', 484 => 'tr-Title', 485 => 'tr-Upper', 486 => 'ug-ug_FONIPA', 487 => 'uk-uk_Latn/BGN', 488 => 'und_FONIPA-ar', 489 => 'und_FONIPA-chr', 490 => 'und_FONIPA-fa', 491 => 'und_FONIPA-und_FONXSAMP', 492 => 'und_FONXSAMP-und_FONIPA', 493 => 'uz_Cyrl-uz/BGN', 494 => 'uz_Cyrl-uz_Latn', 495 => 'uz_Latn-uz_Cyrl', 496 => 'vec-vec_FONIPA', 497 => 'xh-am', 498 => 'xh-ar', 499 => 'xh-chr', 500 => 'xh-fa', 501 => 'xh-xh_FONIPA', 502 => 'yo-yo_BJ', 503 => 'zh_Latn_PINYIN-ru', 504 => 'zu-am', 505 => 'zu-ar', 506 => 'zu-chr', 507 => 'zu-fa', 508 => 'zu-zu_FONIPA', 509 => 'Any-Null', 510 => 'Any-Lower', 511 => 'Any-Upper', 512 => 'Any-Title', 513 => 'Any-Name', 514 => 'Name-Any', 515 => 'Any-Remove', 516 => 'Any-Hex/Unicode', 517 => 'Any-Hex/Java', 518 => 'Any-Hex/C', 519 => 'Any-Hex/XML', 520 => 'Any-Hex/XML10', 521 => 'Any-Hex/Perl', 522 => 'Any-Hex', 523 => 'Hex-Any/Unicode', 524 => 'Hex-Any/Java', 525 => 'Hex-Any/C', 526 => 'Hex-Any/XML', 527 => 'Hex-Any/XML10', 528 => 'Hex-Any/Perl', 529 => 'Hex-Any', 530 => 'Any-NFC', 531 => 'Any-NFKC', 532 => 'Any-NFD', 533 => 'Any-NFKD', 534 => 'Any-FCD', 535 => 'Any-FCC', 536 => 'Any-fa', 537 => 'Any-ar', 538 => 'Any-chr', 539 => 'Any-rm_FONIPA_SURSILV', 540 => 'Any-am', 541 => 'Any-Latn', 542 => 'Any-dv_Latn/BGN', 543 => 'Any-ro_FONIPA', 544 => 'Any-dsb_FONIPA', 545 => 'Any-Latin', 546 => 'Any-he_Latn/BGN', 547 => 'Any-el_Latn/BGN', 548 => 'Any-eo_FONIPA', 549 => 'Any-si_Latn', 550 => 'Any-si_FONIPA', 551 => 'Any-zh', 552 => 'Any-es_FONIPA', 553 => 'Any-sk_FONIPA', 554 => 'Any-und_FONIPA', 555 => 'Any-und_FONXSAMP', 556 => 'Any-az/BGN', 557 => 'Any-Deva', 558 => 'Any-Arab', 559 => 'Any-Telu', 560 => 'Any-Beng', 561 => 'Any-ur', 562 => 'Any-Orya', 563 => 'Any-Guru', 564 => 'Any-Taml', 565 => 'Any-Gujr', 566 => 'Any-Knda', 567 => 'Any-Armenian', 568 => 'Any-Thaana', 569 => 'Any-Hiragana', 570 => 'Any-Syriac', 571 => 'Any-Jamo', 572 => 'Any-Hangul', 573 => 'Any-Kannada', 574 => 'Any-Georgian', 575 => 'Any-Telugu', 576 => 'Any-Cyrillic', 577 => 'Any-Thai', 578 => 'Any-Oriya', 579 => 'Any-Bopomofo', 580 => 'Any-Malayalam', 581 => 'Any-Gurmukhi', 582 => 'Any-Gujarati', 583 => 'Any-Tamil', 584 => 'Any-Katakana', 585 => 'Any-Hebrew', 586 => 'Any-Bengali', 587 => 'Any-Arabic', 588 => 'Any-Greek', 589 => 'Any-Greek/UNGEGN', 590 => 'Any-Devanagari', 591 => 'Any-fa_FONIPA', 592 => 'Any-fa_Latn/BGN', 593 => 'Any-ta_FONIPA', 594 => 'Any-Mlym', 595 => 'Any-Any', 596 => 'Any-Hant', 597 => 'Any-Hans', 598 => 'Any-uz_Cyrl', 599 => 'Any-blt_FONIPA', 600 => 'Any-ug_FONIPA', 601 => 'Any-uk_Latn/BGN', 602 => 'Any-ha_NE', 603 => 'Any-hy_AREVMDA_FONIPA', 604 => 'Any-hy_FONIPA', 605 => 'Any-hy_Latn/BGN', 606 => 'Any-ia_FONIPA', 607 => 'Any-uz/BGN', 608 => 'Any-uz_Latn', 609 => 'Any-vec_FONIPA', 610 => 'Any-xh_FONIPA', 611 => 'Any-ka_Latn/BGN', 612 => 'Any-ka_Latn/BGN_1981', 613 => 'Any-kk_FONIPA', 614 => 'Any-kk_Latn/BGN', 615 => 'Any-yo_BJ', 616 => 'Any-ky_FONIPA', 617 => 'Any-ky_Latn/BGN', 618 => 'Any-la_FONIPA', 619 => 'Any-ru_Latn/BGN', 620 => 'Any-chr_FONIPA', 621 => 'Any-zu_FONIPA', 622 => 'Any-ru', 623 => 'Any-Geor', 624 => 'Any-Cyrl', 625 => 'Any-Armn', 626 => 'Any-Thaa', 627 => 'Any-Hebr', 628 => 'Any-Grek', 629 => 'Any-Grek/UNGEGN', 630 => 'Any-Syrc', 631 => 'Any-Hira', 632 => 'Any-Hang', 633 => 'Any-Kana', 634 => 'Any-Bopo', 635 => 'Any-mn_Latn/BGN', 636 => 'Any-mn_Latn/MNS', 637 => 'Any-my_FONIPA', 638 => 'Any-sr_Latn/BGN', 639 => 'Any-nv_FONIPA', 640 => 'Any-sat_FONIPA', 641 => 'Any-my', 642 => 'Any-am_FONIPA', 643 => 'Any-am_Latn/BGN', 644 => 'Any-ar_Latn/BGN', 645 => 'Any-mk_Latn/BGN', 646 => 'Any-be_Latn/BGN', 647 => 'Any-bg_Latn/BGN', 648 => 'Any-es_419_FONIPA', 649 => 'Any-pl_FONIPA', 650 => 'Any-ps_Latn/BGN', 651 => 'Any-tk/BGN', 652 => 'Any-ch_FONIPA', 653 => 'Any-cs_FONIPA', 654 => 'Any-cy_FONIPA']; <?php // code source: https://github.com/devgeniem/wp-sanitize-accented-uploads/blob/master/plugin.php#L152 // table source: http://www.i18nqa.com/debug/utf8-debug.html return [ // 3 char errors '‚' => '‚', '„' => '„', '…' => '…', '‡' => '‡', '‰' => '‰', '‹' => '‹', '‘' => '‘', '’' => '’', '“' => '“', '•' => '•', '–' => '–', '—' => '—', 'â„¢' => '™', '›' => '›', '€' => '€', // 2 char errors "\xc2\x80" => "\xe2\x82\xac", // EURO SIGN "\xc2\x82" => "\xe2\x80\x9a", // SINGLE LOW-9 QUOTATION MARK "\xc2\x83" => "\xc6\x92", // LATIN SMALL LETTER F WITH HOOK "\xc2\x84" => "\xe2\x80\x9e", // DOUBLE LOW-9 QUOTATION MARK "\xc2\x85" => "\xe2\x80\xa6", // HORIZONTAL ELLIPSIS "\xc2\x86" => "\xe2\x80\xa0", // DAGGER "\xc2\x87" => "\xe2\x80\xa1", // DOUBLE DAGGER "\xc2\x88" => "\xcb\x86", // MODIFIER LETTER CIRCUMFLEX ACCENT "\xc2\x89" => "\xe2\x80\xb0", // PER MILLE SIGN "\xc2\x8a" => "\xc5\xa0", // LATIN CAPITAL LETTER S WITH CARON "\xc2\x8b" => "\xe2\x80\xb9", // SINGLE LEFT-POINTING ANGLE QUOTE "\xc2\x8c" => "\xc5\x92", // LATIN CAPITAL LIGATURE OE "\xc2\x8e" => "\xc5\xbd", // LATIN CAPITAL LETTER Z WITH CARON "\xc2\x91" => "\xe2\x80\x98", // LEFT SINGLE QUOTATION MARK "\xc2\x92" => "\xe2\x80\x99", // RIGHT SINGLE QUOTATION MARK "\xc2\x93" => "\xe2\x80\x9c", // LEFT DOUBLE QUOTATION MARK "\xc2\x94" => "\xe2\x80\x9d", // RIGHT DOUBLE QUOTATION MARK "\xc2\x95" => "\xe2\x80\xa2", // BULLET "\xc2\x96" => "\xe2\x80\x93", // EN DASH "\xc2\x97" => "\xe2\x80\x94", // EM DASH "\xc2\x98" => "\xcb\x9c", // SMALL TILDE 'Â' => 'Â', 'Æ’' => 'ƒ', 'Ã' => 'Ã', 'Ä' => 'Ä', 'Ã…' => 'Å', //'â€' => '†', // duplicate key 'Æ' => 'Æ', 'Ç' => 'Ç', 'ˆ' => 'ˆ', 'È' => 'È', 'É' => 'É', 'Ê' => 'Ê', 'Ë' => 'Ë', 'Å’' => 'Œ', 'ÃŒ' => 'Ì', 'Ž' => 'Ž', 'ÃŽ' => 'Î', 'Ñ' => 'Ñ', 'Ã’' => 'Ò', 'Ó' => 'Ó', 'â€' => '”', 'Ô' => 'Ô', 'Õ' => 'Õ', 'Ö' => 'Ö', '×' => '×', 'Ëœ' => '˜', 'Ø' => 'Ø', 'Ù' => 'Ù', 'Å¡' => 'š', 'Ú' => 'Ú', 'Û' => 'Û', 'Å“' => 'œ', 'Ü' => 'Ü', 'ž' => 'ž', 'Þ' => 'Þ', 'Ÿ' => 'Ÿ', 'ß' => 'ß', '¡' => '¡', 'á' => 'á', '¢' => '¢', 'â' => 'â', '£' => '£', 'ã' => 'ã', '¤' => '¤', 'ä' => 'ä', 'Â¥' => '¥', 'Ã¥' => 'å', '¦' => '¦', 'æ' => 'æ', '§' => '§', 'ç' => 'ç', '¨' => '¨', 'è' => 'è', '©' => '©', 'é' => 'é', 'ª' => 'ª', 'ê' => 'ê', '«' => '«', 'ë' => 'ë', '¬' => '¬', 'ì' => 'ì', '®' => '®', 'î' => 'î', '¯' => '¯', 'ï' => 'ï', '°' => '°', 'ð' => 'ð', '±' => '±', 'ñ' => 'ñ', '²' => '²', 'ò' => 'ò', '³' => '³', 'ó' => 'ó', '´' => '´', 'ô' => 'ô', 'µ' => 'µ', 'õ' => 'õ', '¶' => '¶', 'ö' => 'ö', '·' => '·', '÷' => '÷', '¸' => '¸', 'ø' => 'ø', '¹' => '¹', 'ù' => 'ù', 'º' => 'º', 'ú' => 'ú', '»' => '»', 'û' => 'û', '¼' => '¼', 'ü' => 'ü', '½' => '½', 'ý' => 'ý', '¾' => '¾', 'þ' => 'þ', '¿' => '¿', 'ÿ' => 'ÿ', 'À' => 'À', // 1 char errors last (don't use them, because of false-positives) //'Ã' => 'Á', //'Å' => 'Š', //'Ã' => 'Í', //'Ã' => 'Ï', //'Ã' => 'Ð', //'Ã' => 'Ý', //'Ã' => 'à', //'Ã' => 'í', ]; <?php return [ 0x80 => "\xe2\x82\xac", // € 0x82 => "\xe2\x80\x9a", // ‚ 0x83 => "\xc6\x92", // ƒ 0x84 => "\xe2\x80\x9e", // „ 0x85 => "\xe2\x80\xa6", // … 0x86 => "\xe2\x80\xa0", // † 0x87 => "\xe2\x80\xa1", // ‡ 0x88 => "\xcb\x86", // ˆ 0x89 => "\xe2\x80\xb0", // ‰ 0x8a => "\xc5\xa0", // Š 0x8b => "\xe2\x80\xb9", // ‹ 0x8c => "\xc5\x92", // Œ 0x8e => "\xc5\xbd", // Ž 0x91 => "\xe2\x80\x98", // ‘ 0x92 => "\xe2\x80\x99", // ’ 0x93 => "\xe2\x80\x9c", // “ 0x94 => "\xe2\x80\x9d", // ” 0x95 => "\xe2\x80\xa2", // • 0x96 => "\xe2\x80\x93", // – 0x97 => "\xe2\x80\x94", // — 0x98 => "\xcb\x9c", // ˜ 0x99 => "\xe2\x84\xa2", // ™ 0x9a => "\xc5\xa1", // š 0x9b => "\xe2\x80\xba", // › 0x9c => "\xc5\x93", // œ 0x9e => "\xc5\xbe", // ž 0x9f => "\xc5\xb8", // Ÿ 0xa0 => "\xc2\xa0", 0xa1 => "\xc2\xa1", // ¡ 0xa2 => "\xc2\xa2", // ¢ 0xa3 => "\xc2\xa3", // £ 0xa4 => "\xc2\xa4", // ¤ 0xa5 => "\xc2\xa5", // ¥ 0xa6 => "\xc2\xa6", // ¦ 0xa7 => "\xc2\xa7", // § 0xa8 => "\xc2\xa8", // ¨ 0xa9 => "\xc2\xa9", // © 0xaa => "\xc2\xaa", // ª 0xab => "\xc2\xab", // « 0xac => "\xc2\xac", // ¬ 0xad => "\xc2\xad", // ­ 0xae => "\xc2\xae", // ® 0xaf => "\xc2\xaf", // ¯ 0xb0 => "\xc2\xb0", // ° 0xb1 => "\xc2\xb1", // ± 0xb2 => "\xc2\xb2", // ² 0xb3 => "\xc2\xb3", // ³ 0xb4 => "\xc2\xb4", // ´ 0xb5 => "\xc2\xb5", // µ 0xb6 => "\xc2\xb6", // ¶ 0xb7 => "\xc2\xb7", // · 0xb8 => "\xc2\xb8", // ¸ 0xb9 => "\xc2\xb9", // ¹ 0xba => "\xc2\xba", // º 0xbb => "\xc2\xbb", // » 0xbc => "\xc2\xbc", // ¼ 0xbd => "\xc2\xbd", // ½ 0xbe => "\xc2\xbe", // ¾ 0xbf => "\xc2\xbf", // ¿ 0xc0 => "\xc3\x80", // À 0xc1 => "\xc3\x81", // Á 0xc2 => "\xc3\x82", //  0xc3 => "\xc3\x83", // à 0xc4 => "\xc3\x84", // Ä 0xc5 => "\xc3\x85", // Å 0xc6 => "\xc3\x86", // Æ 0xc7 => "\xc3\x87", // Ç 0xc8 => "\xc3\x88", // È 0xc9 => "\xc3\x89", // É 0xca => "\xc3\x8a", // Ê 0xcb => "\xc3\x8b", // Ë 0xcc => "\xc3\x8c", // Ì 0xcd => "\xc3\x8d", // Í 0xce => "\xc3\x8e", // Î 0xcf => "\xc3\x8f", // Ï 0xd0 => "\xc3\x90", // Ð 0xd1 => "\xc3\x91", // Ñ 0xd2 => "\xc3\x92", // Ò 0xd3 => "\xc3\x93", // Ó 0xd4 => "\xc3\x94", // Ô 0xd5 => "\xc3\x95", // Õ 0xd6 => "\xc3\x96", // Ö 0xd7 => "\xc3\x97", // × 0xd8 => "\xc3\x98", // Ø 0xd9 => "\xc3\x99", // Ù 0xda => "\xc3\x9a", // Ú 0xdb => "\xc3\x9b", // Û 0xdc => "\xc3\x9c", // Ü 0xdd => "\xc3\x9d", // Ý 0xde => "\xc3\x9e", // Þ 0xdf => "\xc3\x9f", // ß 0xe0 => "\xc3\xa0", // à 0xe1 => "\xc3\xa1", // á 0xe2 => "\xc3\xa2", // â 0xe3 => "\xc3\xa3", // ã 0xe4 => "\xc3\xa4", // ä 0xe5 => "\xc3\xa5", // å 0xe6 => "\xc3\xa6", // æ 0xe7 => "\xc3\xa7", // ç 0xe8 => "\xc3\xa8", // è 0xe9 => "\xc3\xa9", // é 0xea => "\xc3\xaa", // ê 0xeb => "\xc3\xab", // ë 0xec => "\xc3\xac", // ì 0xed => "\xc3\xad", // í 0xee => "\xc3\xae", // î 0xef => "\xc3\xaf", // ï 0xf0 => "\xc3\xb0", // ð 0xf1 => "\xc3\xb1", // ñ 0xf2 => "\xc3\xb2", // ò 0xf3 => "\xc3\xb3", // ó 0xf4 => "\xc3\xb4", // ô 0xf5 => "\xc3\xb5", // õ 0xf6 => "\xc3\xb6", // ö 0xf7 => "\xc3\xb7", // ÷ 0xf8 => "\xc3\xb8", // ø 0xf9 => "\xc3\xb9", // ù 0xfa => "\xc3\xba", // ú 0xfb => "\xc3\xbb", // û 0xfc => "\xc3\xbc", // ü 0xfd => "\xc3\xbd", // ý 0xfe => "\xc3\xbe", // þ ]; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '', 'EUR', // "\xc2\x80" => "\xe2\x82\xac" => EURO SIGN '', ',', 'f', ',,', // "\xc2\x84" => "\xe2\x80\x9e" => DOUBLE LOW-9 QUOTATION MARK '...', // "\xc2\x85" => "\xe2\x80\xa6" => HORIZONTAL ELLIPSIS '+', '++', // "\xc2\x87" => "\xe2\x80\xa1" => DOUBLE DAGGER '^', '%0', // "\xc2\x89" => "\xe2\x80\xb0" => PER MILLE SIGN 'S', '<', 'OE', // "\xc2\x8c" => "\xc5\x92" => LATIN CAPITAL LIGATURE OE '', 'Z', '', '', '\'', // "\xc2\x91" => "\xe2\x80\x98" => LEFT SINGLE QUOTATION MARK '\'', // "\xc2\x92" => "\xe2\x80\x99" => RIGHT SINGLE QUOTATION MARK '"', '"', '*', '-', '--', // "\xc2\x97" => "\xe2\x80\x94" => EM DASH '~', 'tm', 's', '>', 'oe', '', 'z', 'Y', ' ', '!', 'C/', 'PS', '$?', 'Y=', '|', 'SS', '"', '(c)', 'a', '<<', '!', '', '(r)', '-', 'deg', '+-', '2', '3', '\'', 'u', 'P', '*', ',', '1', 'o', '>>', '1/4', '1/2', '3/4', '?', 'A', 'A', 'A', 'A', // Not "AE" - used in languages other than German 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I', 'D', 'N', 'O', 'O', 'O', 'O', // Not "OE" - used in languages other than German 'O', 'x', 'O', 'U', 'U', 'U', // Not "UE" - used in languages other than German 'U', 'Y', 'Th', 'ss', 'a', 'a', 'a', 'a', // Not "ae" - used in languages other than German 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'd', 'n', 'o', 'o', 'o', 'o', // Not "oe" - used in languages other than German 'o', '/', 'o', 'u', 'u', 'u', // Not "ue" - used in languages other than German 'u', 'y', 'th', 'y', ]; <?php return ['A', 'a', 'A', 'a', 'A', 'a', 'C', 'c', 'C', 'c', 'C', 'c', 'C', 'c', 'D', 'd', 'D', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'G', 'g', 'G', 'g', 'G', 'g', 'G', 'g', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'IJ', 'ij', 'J', 'j', 'K', 'k', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'N', 'n', 'N', 'n', 'N', 'n', '\'n', 'ng', 'NG', 'O', 'o', 'O', 'o', 'O', 'o', 'OE', 'oe', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'W', 'w', 'Y', 'y', 'Y', 'Z', 'z', 'Z', 'z', 'Z', 'z', 's', 'b', 'B', 'B', 'b', '6', '6', 'O', 'C', 'c', 'D', 'D', 'D', 'd', 'd', '3', '@', 'E', 'F', 'f', 'G', 'G', 'hv', 'I', 'I', 'K', 'k', 'l', 'l', 'W', 'N', 'n', 'O', 'O', 'o', 'OI', 'oi', 'P', 'p', 'YR', '2', '2', 'SH', 'sh', 't', 'T', 't', 'T', 'U', 'u', 'Y', 'V', 'Y', 'y', 'Z', 'z', 'ZH', 'ZH', 'zh', 'zh', '2', '5', '5', 'ts', 'w', '|', '||', '|=', '!', 'DZ', 'Dz', 'dz', 'LJ', 'Lj', 'lj', 'NJ', 'Nj', 'nj', 'A', 'a', 'I', 'i', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', '@', 'A', 'a', 'A', 'a', 'AE', 'ae', 'G', 'g', 'G', 'g', 'K', 'k', 'O', 'o', 'O', 'o', 'ZH', 'zh', 'j', 'DZ', 'Dz', 'dz', 'G', 'g', 'HV', 'W', 'N', 'n', 'A', 'a', 'AE', 'ae', 'O', 'o']; <?php return ['A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'O', 'o', 'O', 'o', 'R', 'r', 'R', 'r', 'U', 'u', 'U', 'u', 'S', 's', 'T', 't', 'Y', 'y', 'H', 'h', 'N', 'd', 'OU', 'ou', 'Z', 'z', 'A', 'a', 'E', 'e', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'Y', 'y', 'l', 'n', 't', 'j', 'db', 'qp', 'A', 'C', 'c', 'L', 'T', 's', 'z', '[?]', '[?]', 'B', 'U', '^', 'E', 'e', 'J', 'j', 'q', 'q', 'R', 'r', 'Y', 'y', 'a', 'a', 'a', 'b', 'o', 'c', 'd', 'd', 'e', '@', '@', 'e', 'e', 'e', 'e', 'j', 'g', 'g', 'g', 'g', 'u', 'Y', 'h', 'h', 'i', 'i', 'I', 'l', 'l', 'l', 'lZ', 'W', 'W', 'm', 'n', 'n', 'n', 'o', 'OE', 'O', 'F', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'R', 'R', 's', 'S', 'j', 'S', 'S', 't', 't', 'u', 'U', 'v', '^', 'w', 'y', 'Y', 'z', 'z', 'Z', 'Z', '?', '?', '?', 'C', '@', 'B', 'E', 'G', 'H', 'j', 'k', 'L', 'q', '?', '?', 'dz', 'dZ', 'dz', 'ts', 'tS', 'tC', 'fN', 'ls', 'lz', 'WW', ']]', 'h', 'h', 'h', 'h', 'j', 'r', 'r', 'r', 'r', 'w', 'y', '\'', '"', '`', '\'', '`', '`', '\'', '?', '?', '<', '>', '^', 'V', '^', 'V', '\'', '-', '/', '\\', ',', '_', '\\', '/', ':', '.', '`', '\'', '^', 'V', '+', '-', 'V', '.', '@', ',', '~', '"', 'R', 'X', 'G', 'l', 's', 'x', '?', '', '', '', '', '', '', '', 'V', '=', '"', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', 'a', 'e', 'i', 'o', 'u', 'c', 'd', 'h', 'm', 'r', 't', 'v', 'x', '[?]', '[?]', '[?]', '[?]', '\'', ',', '[?]', '[?]', '[?]', '[?]', '', '[?]', '[?]', '[?]', '?', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', 'A', ';', 'E', 'E', 'I', '[?]', 'O', '[?]', 'U', 'O', 'I', 'A', 'B', 'G', 'D', 'E', 'Z', 'E', 'Th', 'I', 'K', 'L', 'M', 'N', 'Ks', 'O', 'P', 'R', '[?]', 'S', 'T', 'U', 'Ph', 'Kh', 'Ps', 'O', 'I', 'U', 'a', 'e', 'e', 'i', 'u', 'a', 'b', 'g', 'd', 'e', 'z', 'e', 'th', 'i', 'k', 'l', 'm', 'n', 'x', 'o', 'p', 'r', 's', 's', 't', 'u', 'ph', 'kh', 'ps', 'o', 'i', 'u', 'o', 'u', 'o', '[?]', 'b', 'th', 'U', 'U', 'U', 'ph', 'p', '&', '[?]', '[?]', 'St', 'st', 'W', 'w', 'Q', 'q', 'Sp', 'sp', 'Sh', 'sh', 'F', 'f', 'Kh', 'kh', 'H', 'h', 'G', 'g', 'CH', 'ch', 'Ti', 'ti', 'k', 'r', 'c', 'j', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['Ie', 'Io', 'Dj', 'Gj', 'Ie', 'Dz', 'I', 'Yi', 'J', 'Lj', 'Nj', 'Tsh', 'Kj', 'I', 'U', 'Dzh', 'A', 'B', 'V', 'G', 'D', 'E', 'Zh', 'Z', 'I', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'F', 'Kh', 'Ts', 'Ch', 'Sh', 'Shch', '\'', 'Y', '\'', 'E', 'Iu', 'Ia', 'a', 'b', 'v', 'g', 'd', 'e', 'zh', 'z', 'i', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'kh', 'ts', 'ch', 'sh', 'shch', '\'', 'y', '\'', 'e', 'iu', 'ia', 'ie', 'io', 'dj', 'gj', 'ie', 'dz', 'i', 'yi', 'j', 'lj', 'nj', 'tsh', 'kj', 'i', 'u', 'dzh', 'O', 'o', 'E', 'e', 'Ie', 'ie', 'E', 'e', 'Ie', 'ie', 'O', 'o', 'Io', 'io', 'Ks', 'ks', 'Ps', 'ps', 'F', 'f', 'Y', 'y', 'Y', 'y', 'u', 'u', 'O', 'o', 'O', 'o', 'Ot', 'ot', 'Q', 'q', '*1000*', '', '', '', '', '[?]', '*100.000*', '*1.000.000*', '[?]', '[?]', '"', '"', 'R\'', 'r\'', 'G\'', 'g\'', 'G\'', 'g\'', 'G\'', 'g\'', 'Zh\'', 'zh\'', 'Z\'', 'z\'', 'K\'', 'k\'', 'K\'', 'k\'', 'K\'', 'k\'', 'K\'', 'k\'', 'N\'', 'n\'', 'Ng', 'ng', 'P\'', 'p\'', 'Kh', 'kh', 'S\'', 's\'', 'T\'', 't\'', 'U', 'u', 'U\'', 'u\'', 'Kh\'', 'kh\'', 'Tts', 'tts', 'Ch\'', 'ch\'', 'Ch\'', 'ch\'', 'H', 'h', 'Ch', 'ch', 'Ch\'', 'ch\'', '`', 'Zh', 'zh', 'K\'', 'k\'', '[?]', '[?]', 'N\'', 'n\'', '[?]', '[?]', 'Ch', 'ch', '[?]', '[?]', '[?]', 'a', 'a', 'A', 'a', 'Ae', 'ae', 'Ie', 'ie', '@', '@', '@', '@', 'Zh', 'zh', 'Z', 'z', 'Dz', 'dz', 'I', 'i', 'I', 'i', 'O', 'o', 'O', 'o', 'O', 'o', 'E', 'e', 'U', 'u', 'U', 'u', 'U', 'u', 'Ch', 'ch', '[?]', '[?]', 'Y', 'y', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'A', 'B', 'G', 'D', 'E', 'Z', 'E', 'E', 'T`', 'Zh', 'I', 'L', 'Kh', 'Ts', 'K', 'H', 'Dz', 'Gh', 'Ch', 'M', 'Y', 'N', 'Sh', 'O', 'Ch`', 'P', 'J', 'Rh', 'S', 'V', 'T', 'R', 'Ts`', 'W', 'P`', 'K`', 'O', 'F', '[?]', '[?]', '<', '\'', '/', '!', ',', '?', '.', '[?]', 'a', 'b', 'g', 'd', 'e', 'z', 'e', 'e', 't`', 'zh', 'i', 'l', 'kh', 'ts', 'k', 'h', 'dz', 'gh', 'ch', 'm', 'y', 'n', 'sh', 'o', 'ch`', 'p', 'j', 'rh', 's', 'v', 't', 'r', 'ts`', 'w', 'p`', 'k`', 'o', 'f', 'ew', '[?]', ':', '-', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '@', 'e', 'a', 'o', 'i', 'e', 'e', 'a', 'a', 'o', 'o', 'u', '\'', '', '-', '-', '|', '', '', ':', '', '', 'n', 'o', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'A', 'b', 'g', 'd', 'h', 'v', 'z', 'KH', 't', 'y', 'k', 'k', 'l', 'm', 'm', 'n', 'n', 's', '`', 'p', 'p', 'TS', 'TS', 'q', 'r', 'SH', 't', '[?]', '[?]', '[?]', '[?]', '[?]', 'V', 'OY', 'i', '\'', '"', 'v', 'n', 'q', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ',', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ';', '[?]', '[?]', '[?]', '?', '[?]', '', 'a', 'a', 'w\'', '', 'y\'', '', 'b', '@', 't', 'th', 'j', 'H', 'kh', 'd', 'dh', 'r', 'z', 's', 'sh', 'S', 'D', 'T', 'Z', '`', 'G', '[?]', '[?]', '[?]', '[?]', '[?]', '', 'f', 'q', 'k', 'l', 'm', 'n', 'h', 'w', '~', 'y', 'an', 'un', 'in', 'a', 'u', 'i', 'W', '', '', '\'', '\'', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '%', '.', ',', '*', '[?]', '[?]', '', '\'', '\'', '\'', '', '\'', '\'w', '\'u', '\'y', 'tt', 'tth', 'b', 't', 'T', 'p', 'th', 'bh', '\'h', 'H', 'ny', 'dy', 'H', 'ch', 'cch', 'dd', 'D', 'D', 'Dt', 'dh', 'ddh', 'd', 'D', 'D', 'rr', 'R', 'R', 'R', 'R', 'R', 'R', 'j', 'R', 'S', 'S', 'S', 'S', 'S', 'T', 'GH', 'F', 'F', 'F', 'v', 'f', 'ph', 'Q', 'Q', 'kh', 'k', 'K', 'K', 'ng', 'K', 'g', 'G', 'N', 'G', 'G', 'G', 'L', 'L', 'L', 'L', 'N', 'N', 'N', 'N', 'N', 'h', 'Ch', 'hy', 'h', 'H', '@', 'W', 'oe', 'oe', 'u', 'yu', 'yu', 'W', 'v', 'y', 'Y', 'Y', 'W', '', '', 'y', 'y\'', '.', 'ae', '', '', '', '', '', '', '', '@', '#', '', '', '', '', '', '', '', '', '', '', '^', '', '', '', '', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'Sh', 'D', 'Gh', '&', '+m', 'h']; <?php return ['//', '/', ',', '!', '!', '-', ',', ',', ';', '?', '~', '{', '}', '*', '[?]', '', '\'', '', 'b', 'g', 'g', 'd', 'd', 'h', 'w', 'z', 'H', 't', 't', 'y', 'yh', 'k', 'l', 'm', 'n', 's', 's', '`', 'p', 'p', 'S', 'q', 'r', 'sh', 't', '[?]', '[?]', '[?]', 'a', 'a', 'a', 'A', 'A', 'A', 'e', 'e', 'e', 'E', 'i', 'i', 'u', 'u', 'u', 'o', '', '`', '\'', '', '', 'X', 'Q', '@', '@', '|', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'h', 'sh', 'n', 'r', 'b', 'L', 'k', '\'', 'v', 'm', 'f', 'dh', 'th', 'l', 'g', 'ny', 's', 'd', 'z', 't', 'y', 'p', 'j', 'ch', 'tt', 'hh', 'kh', 'th', 'z', 'sh', 's', 'd', 't', 'z', '`', 'gh', 'q', 'w', 'a', 'aa', 'i', 'ee', 'u', 'oo', 'e', 'ey', 'o', 'oa', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', 'eN', 'e', 'e', 'ai', 'oN', 'o', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'nnn', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'l', 'lll', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '\'', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'eN', 'e', 'e', 'ai', 'oN', 'o', 'o', 'au', '', '[?]', '[?]', 'AUM', '\'', '\'', '`', '\'', '[?]', '[?]', '[?]', 'q', 'khh', 'ghh', 'z', 'dddh', 'rh', 'f', 'yy', 'RR', 'LL', 'L', 'LL', ' / ', ' // ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', '[?]', 'l', '[?]', '[?]', '[?]', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '[?]', '[?]', '[?]', '[?]', 'rr', 'rh', '[?]', 'yy', 'RR', 'LL', 'L', 'LL', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'r\'', 'r`', 'Rs', 'Rs', '1/', '2/', '3/', '4/', ' 1 - 1/', '/16', '', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', 'N', '[?]', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', '[?]', 'ee', 'ai', '[?]', '[?]', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bb', 'm', 'y', 'r', '[?]', 'l', 'll', '[?]', 'v', 'sh', '[?]', 's', 'h', '[?]', '[?]', '\'', '[?]', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', '[?]', 'ee', 'ai', '[?]', '[?]', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'khh', 'ghh', 'z', 'rr', '[?]', 'f', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'N', 'H', '', '', 'G.E.O.', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', '[?]', 'eN', '[?]', 'e', 'ai', 'oN', '[?]', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'ya', 'r', '[?]', 'l', 'll', '[?]', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '\'', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'eN', '[?]', 'e', 'ai', 'oN', '[?]', 'o', 'au', '', '[?]', '[?]', 'AUM', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', '[?]', 'l', 'll', '[?]', '', 'sh', 'ss', 's', 'h', '[?]', '[?]', '\'', '\'', 'aa', 'i', 'ii', 'u', 'uu', 'R', '[?]', '[?]', '[?]', 'e', 'ai', '[?]', '[?]', 'o', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '+', '[?]', '[?]', '[?]', '[?]', 'rr', 'rh', '[?]', 'yy', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', '[?]', '[?]', '[?]', 'ng', 'c', '[?]', 'j', '[?]', 'ny', 'tt', '[?]', '[?]', '[?]', 'nn', 't', '[?]', '[?]', '[?]', 'n', 'nnn', 'p', '[?]', '[?]', '[?]', 'm', 'y', 'r', 'rr', 'l', 'll', 'lll', 'v', '[?]', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', '[?]', '[?]', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+10+', '+100+', '+1000+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', 'N', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'll', '[?]', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'll', '[?]', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'lll', '[?]', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'L', '[?]', 'e', 'ee', 'ai', '[?]', 'o', 'oo', 'au', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', '[?]', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'rr', 'l', 'll', 'lll', 'v', 'sh', 'ss', 's', 'h', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', '[?]', '[?]', 'e', 'ee', 'ai', '', 'o', 'oo', 'au', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', 'LL', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'N', 'H', '[?]', 'a', 'aa', 'ae', 'aae', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'L', 'LL', 'e', 'ee', 'ai', 'o', 'oo', 'au', '[?]', '[?]', '[?]', 'k', 'kh', 'g', 'gh', 'ng', 'nng', 'c', 'ch', 'j', 'jh', 'ny', 'jny', 'nyj', 'tt', 'tth', 'dd', 'ddh', 'nn', 'nndd', 't', 'th', 'd', 'dh', 'n', '[?]', 'nd', 'p', 'ph', 'b', 'bh', 'm', 'mb', 'y', 'r', '[?]', 'l', '[?]', '[?]', 'v', 'sh', 'ss', 's', 'h', 'll', 'f', '[?]', '[?]', '[?]', '', '[?]', '[?]', '[?]', '[?]', 'aa', 'ae', 'aae', 'i', 'ii', 'u', '[?]', 'uu', '[?]', 'R', 'e', 'ee', 'ai', 'o', 'oo', 'au', 'L', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'RR', 'LL', ' . ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', 'k', 'kh', 'kh', 'kh', 'kh', 'kh', 'ng', 'cch', 'ch', 'ch', 'ch', 'ch', 'y', 'd', 't', 'th', 'th', 'th', 'n', 'd', 't', 'th', 'th', 'th', 'n', 'b', 'p', 'ph', 'f', 'ph', 'f', 'ph', 'm', 'y', 'r', 'R', 'l', 'L', 'w', 's', 's', 's', 'h', 'l', '`', 'h', '~', 'a', 'a', 'aa', 'am', 'i', 'ii', 'ue', 'uue', 'u', 'uu', '\'', '[?]', '[?]', '[?]', '[?]', 'Bh.', 'e', 'ae', 'o', 'ai', 'ai', 'ao', '+', '', '', '', '', '', '', 'M', '', ' * ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' // ', ' /// ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'k', 'kh', '[?]', 'kh', '[?]', '[?]', 'ng', 'ch', '[?]', 's', '[?]', '[?]', 'ny', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'd', 'h', 'th', 'th', '[?]', 'n', 'b', 'p', 'ph', 'f', 'ph', 'f', '[?]', 'm', 'y', 'r', '[?]', 'l', '[?]', 'w', '[?]', '[?]', 's', 'h', '[?]', '`', '', '~', 'a', '', 'aa', 'am', 'i', 'ii', 'y', 'yy', 'u', 'uu', '[?]', 'o', 'l', 'ny', '[?]', '[?]', 'e', 'ei', 'o', 'ay', 'ai', '[?]', '+', '[?]', '', '', '', '', '', 'M', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', 'hn', 'hm', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['AUM', '', '', '', '', '', '', '', ' // ', ' * ', '', '-', ' / ', ' / ', ' // ', ' -/ ', ' +/ ', ' X/ ', ' /XX/ ', ' /X/ ', ', ', '', '', '', '', '', '', '', '', '', '', '', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.5', '1.5', '2.5', '3.5', '4.5', '5.5', '6.5', '7.5', '8.5', '-.5', '+', '*', '^', '_', '', '~', '[?]', ']', '[[', ']]', '', '', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', '[?]', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'ts', 'tsh', 'dz', 'dzh', 'w', 'zh', 'z', '\'', 'y', 'r', 'l', 'sh', 'ssh', 's', 'h', 'a', 'kss', 'r', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'R', 'RR', 'L', 'LL', 'e', 'ee', 'o', 'oo', 'M', 'H', 'i', 'ii', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', '[?]', 'ny', 'tt', 'tth', 'dd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'ts', 'tsh', 'dz', 'dzh', 'w', 'zh', 'z', '\'', 'y', 'r', 'l', 'sh', 'ss', 's', 'h', 'a', 'kss', 'w', 'y', 'r', '[?]', 'X', ' :X: ', ' /O/ ', ' /o/ ', ' \\o\\ ', ' (O) ', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 'nny', 'tt', 'tth', 'dd', 'ddh', 'nn', 'tt', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'l', 'w', 's', 'h', 'll', 'a', '[?]', 'i', 'ii', 'u', 'uu', 'e', '[?]', 'o', 'au', '[?]', 'aa', 'i', 'ii', 'u', 'uu', 'e', 'ai', '[?]', '[?]', '[?]', 'N', '\'', ':', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' / ', ' // ', 'n*', 'r*', 'l*', 'e*', 'sh', 'ss', 'R', 'RR', 'L', 'LL', 'R', 'RR', 'L', 'LL', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'A', 'B', 'G', 'D', 'E', 'V', 'Z', 'T`', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'Zh', 'R', 'S', 'T', 'U', 'P`', 'K`', 'G\'', 'Q', 'Sh', 'Ch`', 'C`', 'Z\'', 'C', 'Ch', 'X', 'J', 'H', 'E', 'Y', 'W', 'Xh', 'OE', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'a', 'b', 'g', 'd', 'e', 'v', 'z', 't`', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'zh', 'r', 's', 't', 'u', 'p`', 'k`', 'g\'', 'q', 'sh', 'ch`', 'c`', 'z\'', 'c', 'ch', 'x', 'j', 'h', 'e', 'y', 'w', 'xh', 'oe', 'f', '[?]', '[?]', '[?]', '[?]', ' // ', '[?]', '[?]', '[?]']; <?php return ['g', 'gg', 'n', 'd', 'dd', 'r', 'm', 'b', 'bb', 's', 'ss', '', 'j', 'jj', 'c', 'k', 't', 'p', 'h', 'ng', 'nn', 'nd', 'nb', 'dg', 'rn', 'rr', 'rh', 'rN', 'mb', 'mN', 'bg', 'bn', '', 'bs', 'bsg', 'bst', 'bsb', 'bss', 'bsj', 'bj', 'bc', 'bt', 'bp', 'bN', 'bbN', 'sg', 'sn', 'sd', 'sr', 'sm', 'sb', 'sbg', 'sss', 's', 'sj', 'sc', 'sk', 'st', 'sp', 'sh', '', '', '', '', 'Z', 'g', 'd', 'm', 'b', 's', 'Z', '', 'j', 'c', 't', 'p', 'N', 'j', '', '', '', '', 'ck', 'ch', '', '', 'pb', 'pN', 'hh', 'Q', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', 'a', 'ae', 'ya', 'yae', 'eo', 'e', 'yeo', 'ye', 'o', 'wa', 'wae', 'oe', 'yo', 'u', 'weo', 'we', 'wi', 'yu', 'eu', 'yi', 'i', 'a-o', 'a-u', 'ya-o', 'ya-yo', 'eo-o', 'eo-u', 'eo-eu', 'yeo-o', 'yeo-u', 'o-eo', 'o-e', 'o-ye', 'o-o', 'o-u', 'yo-ya', 'yo-yae', 'yo-yeo', 'yo-o', 'yo-i', 'u-a', 'u-ae', 'u-eo-eu', 'u-ye', 'u-u', 'yu-a', 'yu-eo', 'yu-e', 'yu-yeo', 'yu-ye', 'yu-u', 'yu-i', 'eu-u', 'eu-eu', 'yi-u', 'i-a', 'i-ya', 'i-o', 'i-u', 'i-eu', 'i-U', 'U', 'U-eo', 'U-u', 'U-i', 'UU', '[?]', '[?]', '[?]', '[?]', '[?]', 'g', 'gg', 'gs', 'n', 'nj', 'nh', 'd', 'l', 'lg', 'lm', 'lb', 'ls', 'lt', 'lp', 'lh', 'm', 'b', 'bs', 's', 'ss', 'ng', 'j', 'c', 'k', 't', 'p', 'h', 'gl', 'gsg', 'ng', 'nd', 'ns', 'nZ', 'nt', 'dg', 'tl', 'lgs', 'ln', 'ld', 'lth', 'll', 'lmg', 'lms', 'lbs', 'lbh', 'rNp', 'lss', 'lZ', 'lk', 'lQ', 'mg', 'ml', 'mb', 'ms', 'mss', 'mZ', 'mc', 'mh', 'mN', 'bl', 'bp', 'ph', 'pN', 'sg', 'sd', 'sl', 'sb', 'Z', 'g', 'ss', '', 'kh', 'N', 'Ns', 'NZ', 'pb', 'pN', 'hn', 'hl', 'hm', 'hb', 'Q', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['ha', 'hu', 'hi', 'haa', 'hee', 'he', 'ho', '[?]', 'la', 'lu', 'li', 'laa', 'lee', 'le', 'lo', 'lwa', 'hha', 'hhu', 'hhi', 'hhaa', 'hhee', 'hhe', 'hho', 'hhwa', 'ma', 'mu', 'mi', 'maa', 'mee', 'me', 'mo', 'mwa', 'sza', 'szu', 'szi', 'szaa', 'szee', 'sze', 'szo', 'szwa', 'ra', 'ru', 'ri', 'raa', 'ree', 're', 'ro', 'rwa', 'sa', 'su', 'si', 'saa', 'see', 'se', 'so', 'swa', 'sha', 'shu', 'shi', 'shaa', 'shee', 'she', 'sho', 'shwa', 'qa', 'qu', 'qi', 'qaa', 'qee', 'qe', 'qo', '[?]', 'qwa', '[?]', 'qwi', 'qwaa', 'qwee', 'qwe', '[?]', '[?]', 'qha', 'qhu', 'qhi', 'qhaa', 'qhee', 'qhe', 'qho', '[?]', 'qhwa', '[?]', 'qhwi', 'qhwaa', 'qhwee', 'qhwe', '[?]', '[?]', 'ba', 'bu', 'bi', 'baa', 'bee', 'be', 'bo', 'bwa', 'va', 'vu', 'vi', 'vaa', 'vee', 've', 'vo', 'vwa', 'ta', 'tu', 'ti', 'taa', 'tee', 'te', 'to', 'twa', 'ca', 'cu', 'ci', 'caa', 'cee', 'ce', 'co', 'cwa', 'xa', 'xu', 'xi', 'xaa', 'xee', 'xe', 'xo', '[?]', 'xwa', '[?]', 'xwi', 'xwaa', 'xwee', 'xwe', '[?]', '[?]', 'na', 'nu', 'ni', 'naa', 'nee', 'ne', 'no', 'nwa', 'nya', 'nyu', 'nyi', 'nyaa', 'nyee', 'nye', 'nyo', 'nywa', '\'a', '\'u', '[?]', '\'aa', '\'ee', '\'e', '\'o', '\'wa', 'ka', 'ku', 'ki', 'kaa', 'kee', 'ke', 'ko', '[?]', 'kwa', '[?]', 'kwi', 'kwaa', 'kwee', 'kwe', '[?]', '[?]', 'kxa', 'kxu', 'kxi', 'kxaa', 'kxee', 'kxe', 'kxo', '[?]', 'kxwa', '[?]', 'kxwi', 'kxwaa', 'kxwee', 'kxwe', '[?]', '[?]', 'wa', 'wu', 'wi', 'waa', 'wee', 'we', 'wo', '[?]', '`a', '`u', '`i', '`aa', '`ee', '`e', '`o', '[?]', 'za', 'zu', 'zi', 'zaa', 'zee', 'ze', 'zo', 'zwa', 'zha', 'zhu', 'zhi', 'zhaa', 'zhee', 'zhe', 'zho', 'zhwa', 'ya', 'yu', 'yi', 'yaa', 'yee', 'ye', 'yo', '[?]', 'da', 'du', 'di', 'daa', 'dee', 'de', 'do', 'dwa', 'dda', 'ddu', 'ddi', 'ddaa', 'ddee', 'dde', 'ddo', 'ddwa']; <?php return ['ja', 'ju', 'ji', 'jaa', 'jee', 'je', 'jo', 'jwa', 'ga', 'gu', 'gi', 'gaa', 'gee', 'ge', 'go', '[?]', 'gwa', '[?]', 'gwi', 'gwaa', 'gwee', 'gwe', '[?]', '[?]', 'gga', 'ggu', 'ggi', 'ggaa', 'ggee', 'gge', 'ggo', '[?]', 'tha', 'thu', 'thi', 'thaa', 'thee', 'the', 'tho', 'thwa', 'cha', 'chu', 'chi', 'chaa', 'chee', 'che', 'cho', 'chwa', 'pha', 'phu', 'phi', 'phaa', 'phee', 'phe', 'pho', 'phwa', 'tsa', 'tsu', 'tsi', 'tsaa', 'tsee', 'tse', 'tso', 'tswa', 'tza', 'tzu', 'tzi', 'tzaa', 'tzee', 'tze', 'tzo', '[?]', 'fa', 'fu', 'fi', 'faa', 'fee', 'fe', 'fo', 'fwa', 'pa', 'pu', 'pi', 'paa', 'pee', 'pe', 'po', 'pwa', 'rya', 'mya', 'fya', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', '.', ',', ';', ':', ':: ', '?', '//', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10+', '20+', '30+', '40+', '50+', '60+', '70+', '80+', '90+', '100+', '10,000+', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'a', 'e', 'i', 'o', 'u', 'v', 'ga', 'ka', 'ge', 'gi', 'go', 'gu', 'gv', 'ha', 'he', 'hi', 'ho', 'hu', 'hv', 'la', 'le', 'li', 'lo', 'lu', 'lv', 'ma', 'me', 'mi', 'mo', 'mu', 'na', 'hna', 'nah', 'ne', 'ni', 'no', 'nu', 'nv', 'qua', 'que', 'qui', 'quo', 'quu', 'quv', 'sa', 's', 'se', 'si', 'so', 'su', 'sv', 'da', 'ta', 'de', 'te', 'di', 'ti', 'do', 'du', 'dv', 'dla', 'tla', 'tle', 'tli', 'tlo', 'tlu', 'tlv', 'tsa', 'tse', 'tsi', 'tso', 'tsu', 'tsv', 'wa', 'we', 'wi', 'wo', 'wu', 'wv', 'ya', 'ye', 'yi', 'yo', 'yu', 'yv', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', 'e', 'aai', 'i', 'ii', 'o', 'oo', 'oo', 'ee', 'i', 'a', 'aa', 'we', 'we', 'wi', 'wi', 'wii', 'wii', 'wo', 'wo', 'woo', 'woo', 'woo', 'wa', 'wa', 'waa', 'waa', 'waa', 'ai', 'w', '\'', 't', 'k', 'sh', 's', 'n', 'w', 'n', '[?]', 'w', 'c', '?', 'l', 'en', 'in', 'on', 'an', 'pe', 'paai', 'pi', 'pii', 'po', 'poo', 'poo', 'hee', 'hi', 'pa', 'paa', 'pwe', 'pwe', 'pwi', 'pwi', 'pwii', 'pwii', 'pwo', 'pwo', 'pwoo', 'pwoo', 'pwa', 'pwa', 'pwaa', 'pwaa', 'pwaa', 'p', 'p', 'h', 'te', 'taai', 'ti', 'tii', 'to', 'too', 'too', 'dee', 'di', 'ta', 'taa', 'twe', 'twe', 'twi', 'twi', 'twii', 'twii', 'two', 'two', 'twoo', 'twoo', 'twa', 'twa', 'twaa', 'twaa', 'twaa', 't', 'tte', 'tti', 'tto', 'tta', 'ke', 'kaai', 'ki', 'kii', 'ko', 'koo', 'koo', 'ka', 'kaa', 'kwe', 'kwe', 'kwi', 'kwi', 'kwii', 'kwii', 'kwo', 'kwo', 'kwoo', 'kwoo', 'kwa', 'kwa', 'kwaa', 'kwaa', 'kwaa', 'k', 'kw', 'keh', 'kih', 'koh', 'kah', 'ce', 'caai', 'ci', 'cii', 'co', 'coo', 'coo', 'ca', 'caa', 'cwe', 'cwe', 'cwi', 'cwi', 'cwii', 'cwii', 'cwo', 'cwo', 'cwoo', 'cwoo', 'cwa', 'cwa', 'cwaa', 'cwaa', 'cwaa', 'c', 'th', 'me', 'maai', 'mi', 'mii', 'mo', 'moo', 'moo', 'ma', 'maa', 'mwe', 'mwe', 'mwi', 'mwi', 'mwii', 'mwii', 'mwo', 'mwo', 'mwoo', 'mwoo', 'mwa', 'mwa', 'mwaa', 'mwaa', 'mwaa', 'm', 'm', 'mh', 'm', 'm', 'ne', 'naai', 'ni', 'nii', 'no', 'noo', 'noo', 'na', 'naa', 'nwe', 'nwe', 'nwa', 'nwa', 'nwaa', 'nwaa', 'nwaa', 'n', 'ng', 'nh', 'le', 'laai', 'li', 'lii', 'lo', 'loo', 'loo', 'la', 'laa', 'lwe', 'lwe', 'lwi', 'lwi', 'lwii', 'lwii', 'lwo', 'lwo', 'lwoo', 'lwoo', 'lwa', 'lwa', 'lwaa', 'lwaa', 'l', 'l', 'l', 'se', 'saai', 'si', 'sii', 'so', 'soo', 'soo', 'sa', 'saa', 'swe', 'swe', 'swi', 'swi', 'swii', 'swii', 'swo', 'swo', 'swoo', 'swoo']; <?php return ['swa', 'swa', 'swaa', 'swaa', 'swaa', 's', 's', 'sw', 's', 'sk', 'skw', 'sW', 'spwa', 'stwa', 'skwa', 'scwa', 'she', 'shi', 'shii', 'sho', 'shoo', 'sha', 'shaa', 'shwe', 'shwe', 'shwi', 'shwi', 'shwii', 'shwii', 'shwo', 'shwo', 'shwoo', 'shwoo', 'shwa', 'shwa', 'shwaa', 'shwaa', 'sh', 'ye', 'yaai', 'yi', 'yii', 'yo', 'yoo', 'yoo', 'ya', 'yaa', 'ywe', 'ywe', 'ywi', 'ywi', 'ywii', 'ywii', 'ywo', 'ywo', 'ywoo', 'ywoo', 'ywa', 'ywa', 'ywaa', 'ywaa', 'ywaa', 'y', 'y', 'y', 'yi', 're', 're', 'le', 'raai', 'ri', 'rii', 'ro', 'roo', 'lo', 'ra', 'raa', 'la', 'rwaa', 'rwaa', 'r', 'r', 'r', 'fe', 'faai', 'fi', 'fii', 'fo', 'foo', 'fa', 'faa', 'fwaa', 'fwaa', 'f', 'the', 'the', 'thi', 'thi', 'thii', 'thii', 'tho', 'thoo', 'tha', 'thaa', 'thwaa', 'thwaa', 'th', 'tthe', 'tthi', 'ttho', 'ttha', 'tth', 'tye', 'tyi', 'tyo', 'tya', 'he', 'hi', 'hii', 'ho', 'hoo', 'ha', 'haa', 'h', 'h', 'hk', 'qaai', 'qi', 'qii', 'qo', 'qoo', 'qa', 'qaa', 'q', 'tlhe', 'tlhi', 'tlho', 'tlha', 're', 'ri', 'ro', 'ra', 'ngaai', 'ngi', 'ngii', 'ngo', 'ngoo', 'nga', 'ngaa', 'ng', 'nng', 'she', 'shi', 'sho', 'sha', 'the', 'thi', 'tho', 'tha', 'th', 'lhi', 'lhii', 'lho', 'lhoo', 'lha', 'lhaa', 'lh', 'the', 'thi', 'thii', 'tho', 'thoo', 'tha', 'thaa', 'th', 'b', 'e', 'i', 'o', 'a', 'we', 'wi', 'wo', 'wa', 'ne', 'ni', 'no', 'na', 'ke', 'ki', 'ko', 'ka', 'he', 'hi', 'ho', 'ha', 'ghu', 'gho', 'ghe', 'ghee', 'ghi', 'gha', 'ru', 'ro', 're', 'ree', 'ri', 'ra', 'wu', 'wo', 'we', 'wee', 'wi', 'wa', 'hwu', 'hwo', 'hwe', 'hwee', 'hwi', 'hwa', 'thu', 'tho', 'the', 'thee', 'thi', 'tha', 'ttu', 'tto', 'tte', 'ttee', 'tti', 'tta', 'pu', 'po', 'pe', 'pee', 'pi', 'pa', 'p', 'gu', 'go', 'ge', 'gee', 'gi', 'ga', 'khu', 'kho', 'khe', 'khee', 'khi', 'kha', 'kku', 'kko', 'kke', 'kkee', 'kki']; <?php return ['kka', 'kk', 'nu', 'no', 'ne', 'nee', 'ni', 'na', 'mu', 'mo', 'me', 'mee', 'mi', 'ma', 'yu', 'yo', 'ye', 'yee', 'yi', 'ya', 'ju', 'ju', 'jo', 'je', 'jee', 'ji', 'ji', 'ja', 'jju', 'jjo', 'jje', 'jjee', 'jji', 'jja', 'lu', 'lo', 'le', 'lee', 'li', 'la', 'dlu', 'dlo', 'dle', 'dlee', 'dli', 'dla', 'lhu', 'lho', 'lhe', 'lhee', 'lhi', 'lha', 'tlhu', 'tlho', 'tlhe', 'tlhee', 'tlhi', 'tlha', 'tlu', 'tlo', 'tle', 'tlee', 'tli', 'tla', 'zu', 'zo', 'ze', 'zee', 'zi', 'za', 'z', 'z', 'dzu', 'dzo', 'dze', 'dzee', 'dzi', 'dza', 'su', 'so', 'se', 'see', 'si', 'sa', 'shu', 'sho', 'she', 'shee', 'shi', 'sha', 'sh', 'tsu', 'tso', 'tse', 'tsee', 'tsi', 'tsa', 'chu', 'cho', 'che', 'chee', 'chi', 'cha', 'ttsu', 'ttso', 'ttse', 'ttsee', 'ttsi', 'ttsa', 'X', '.', 'qai', 'ngai', 'nngi', 'nngii', 'nngo', 'nngoo', 'nnga', 'nngaa', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', 'b', 'l', 'f', 's', 'n', 'h', 'd', 't', 'c', 'q', 'm', 'g', 'ng', 'z', 'r', 'a', 'o', 'u', 'e', 'i', 'ch', 'th', 'ph', 'p', 'x', 'p', '<', '>', '[?]', '[?]', '[?]', 'f', 'v', 'u', 'yr', 'y', 'w', 'th', 'th', 'a', 'o', 'ac', 'ae', 'o', 'o', 'o', 'oe', 'on', 'r', 'k', 'c', 'k', 'g', 'ng', 'g', 'g', 'w', 'h', 'h', 'h', 'h', 'n', 'n', 'n', 'i', 'e', 'j', 'g', 'ae', 'a', 'eo', 'p', 'z', 's', 's', 's', 'c', 'z', 't', 't', 'd', 'b', 'b', 'p', 'p', 'e', 'm', 'm', 'm', 'l', 'l', 'ng', 'ng', 'd', 'o', 'ear', 'ior', 'qu', 'qu', 'qu', 's', 'yr', 'yr', 'yr', 'q', 'x', '.', ':', '+', '17', '18', '19', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'k', 'kh', 'g', 'gh', 'ng', 'c', 'ch', 'j', 'jh', 'ny', 't', 'tth', 'd', 'ddh', 'nn', 't', 'th', 'd', 'dh', 'n', 'p', 'ph', 'b', 'bh', 'm', 'y', 'r', 'l', 'v', 'sh', 'ss', 's', 'h', 'l', 'q', 'a', 'aa', 'i', 'ii', 'u', 'uk', 'uu', 'uuv', 'ry', 'ryy', 'ly', 'lyy', 'e', 'ai', 'oo', 'oo', 'au', 'a', 'aa', 'aa', 'i', 'ii', 'y', 'yy', 'u', 'uu', 'ua', 'oe', 'ya', 'ie', 'e', 'ae', 'ai', 'oo', 'au', 'M', 'H', 'a`', '', '', '', 'r', '', '!', '', '', '', '', '', '.', ' // ', ':', '+', '++', ' * ', ' /// ', 'KR', '\'', '[?]', '[?]', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return [' @ ', ' ... ', ', ', '. ', ': ', ' // ', '', '-', ', ', '. ', '', '', '', '', '', '[?]', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'a', 'e', 'i', 'o', 'u', 'O', 'U', 'ee', 'n', 'ng', 'b', 'p', 'q', 'g', 'm', 'l', 's', 'sh', 't', 'd', 'ch', 'j', 'y', 'r', 'w', 'f', 'k', 'kha', 'ts', 'z', 'h', 'zr', 'lh', 'zh', 'ch', '-', 'e', 'i', 'o', 'u', 'O', 'U', 'ng', 'b', 'p', 'q', 'g', 'm', 't', 'd', 'ch', 'j', 'ts', 'y', 'w', 'k', 'g', 'h', 'jy', 'ny', 'dz', 'e', 'i', 'iy', 'U', 'u', 'ng', 'k', 'g', 'h', 'p', 'sh', 't', 'd', 'j', 'f', 'g', 'h', 'ts', 'z', 'r', 'ch', 'zh', 'i', 'k', 'r', 'f', 'zh', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'H', 'X', 'W', 'M', ' 3 ', ' 333 ', 'a', 'i', 'k', 'ng', 'c', 'tt', 'tth', 'dd', 'nn', 't', 'd', 'p', 'ph', 'ss', 'zh', 'z', 'a', 't', 'zh', 'gh', 'ng', 'c', 'jh', 'tta', 'ddh', 't', 'dh', 'ss', 'cy', 'zh', 'z', 'u', 'y', 'bh', '\'', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['A', 'AE', 'ae', 'B', 'C', 'D', 'D', 'E', 'e', 'i', 'J', 'K', 'L', 'M', 'N', 'O', '', 'O', '', 'O', 'Oe', 'Ou', '', '', 'P', 'R', 'R', 'T', 'U', 'u', 'u', 'm', 'V', 'W', 'Z', '', '', '', '', '', '', '', '', '', 'A', 'AE', 'B', 'B', 'D', 'E', 'E', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'N', 'O', 'Ou', 'P', 'R', 'T', 'U', 'W', 'a', 'a', 'a', 'ae', 'b', 'd', 'e', '', 'e', 'e', 'g', 'i', 'k', 'm', '', 'o', '', '', '', 'p', 't', 'u', 'u', 'm', 'v', '', 'b', 'g', 'd', 'f', '', 'i', 'r', 'u', 'v', 'b', 'g', 'r', 'f', '', '', 'b', 'd', 'f', 'm', 'n', 'p', 'r', 'r', 's', 't', 'z', 'g', '', '', '', '', '', 'p', '', '', 'b', 'd', 'f', 'g', 'k', 'l', 'm', 'n', 'p', 'r', 's', '', 'v', 'x', 'z', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['A', 'a', 'B', 'b', 'B', 'b', 'B', 'b', 'C', 'c', 'D', 'd', 'D', 'd', 'D', 'd', 'D', 'd', 'D', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'H', 'h', 'H', 'h', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'K', 'k', 'K', 'k', 'K', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'M', 'm', 'M', 'm', 'M', 'm', 'N', 'n', 'N', 'n', 'N', 'n', 'N', 'n', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'P', 'p', 'P', 'p', 'R', 'r', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'T', 't', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'V', 'v', 'V', 'v', 'W', 'w', 'W', 'w', 'W', 'w', 'W', 'w', 'W', 'w', 'X', 'x', 'X', 'x', 'Y', 'y', 'Z', 'z', 'Z', 'z', 'Z', 'z', 'h', 't', 'w', 'y', 'a', 's', 's', 's', 'Ss', 'd', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'Y', 'y', 'Y', 'y', 'Y', 'y', 'Y', 'y', 'LL', 'll', 'V', 'v', 'Y', 'y']; <?php return ['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'e', 'e', 'e', 'e', 'e', 'e', '[?]', '[?]', 'E', 'E', 'E', 'E', 'E', 'E', '[?]', '[?]', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'I', 'I', 'I', 'I', 'I', 'I', 'I', 'I', 'o', 'o', 'o', 'o', 'o', 'o', '[?]', '[?]', 'O', 'O', 'O', 'O', 'O', 'O', '[?]', '[?]', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', '[?]', 'U', '[?]', 'U', '[?]', 'U', '[?]', 'U', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'a', 'a', 'e', 'e', 'e', 'e', 'i', 'i', 'o', 'o', 'u', 'u', 'o', 'o', '[?]', '[?]', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'a', 'a', 'a', 'a', 'a', '[?]', 'a', 'a', 'A', 'A', 'A', 'A', 'A', '\'', 'i', '\'', '~', '"~', 'e', 'e', 'e', '[?]', 'e', 'e', 'E', 'E', 'E', 'E', 'E', '\'`', '\'\'', '\'~', 'i', 'i', 'i', 'i', '[?]', '[?]', 'i', 'i', 'I', 'I', 'I', 'I', '[?]', '`\'', '`\'', '`~', 'u', 'u', 'u', 'u', 'R', 'R', 'u', 'u', 'U', 'U', 'U', 'U', 'R', '"`', '"\'', '`', '[?]', '[?]', 'o', 'o', 'o', '[?]', 'o', 'o', 'O', 'O', 'O', 'O', 'O', '\'', '`', '[?]']; <?php return [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', '', '', '-', '-', '-', '-', '--', '--', '||', '_', '\'', '\'', ',', '\'', '"', '"', ',,', '"', '+', '++', '*', '*>', '.', '..', '...', '.', "\n", "\n\n", '', '', '', '', '', ' ', '%0', '%00', '\'', '\'\'', '\'\'\'', '`', '``', '```', '^', '<', '>', '*', '!!', '!?', '-', '_', '-', '^', '***', '--', '/', '-[', ']-', '??', '?!', '!?', '7', 'PP', '(]', '[)', '*', '[?]', '[?]', '[?]', '%', '~', '[?]', '[?]', '[?]', "''''", // 0x57 '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '0', 'i', '', '', '4', '5', '6', '7', '8', '9', '+', '-', '=', '(', ')', 'n', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '-', '=', '(', ')', '[?]', 'a', 'e', 'o', 'x', '[?]', 'h', 'k', 'l', 'm', 'n', 'p', 's', 't', '[?]', '[?]', '[?]', 'ECU', 'CL', 'Cr', 'Fr.', 'L.', 'mil', 'N', 'Pts', 'Rs', 'W', 'NS', 'D', 'EUR', 'K', 'T', 'Dr', 'Pf', 'P', 'G', 'A', 'UAH', 'C|', 'L', 'Sm', 'T', 'Rs', 'L', 'M', 'm', 'R', 'l', 'BTC', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ]; <?php return [' a/c ', ' a/s ', 'C', '', '', ' c/o ', ' c/u ', '', '', '', 'g', 'H', 'H', 'H', 'h', '', 'I', 'I', 'L', 'l', '', 'N', 'No. ', '', '', 'P', 'Q', 'R', 'R', 'R', '', '', '(sm)', 'TEL', '(tm)', '', 'Z', '', '', '', 'Z', '', 'K', 'A', 'B', 'C', 'e', 'e', 'E', 'F', 'F', 'M', 'o', '', '', '', '', 'i', '', 'FAX', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', 'D', 'd', 'e', 'i', 'j', '[?]', '[?]', '[?]', '[?]', 'F', '[?]', ' 1/7 ', ' 1/9 ', ' 1/10 ', ' 1/3 ', ' 2/3 ', ' 1/5 ', ' 2/5 ', ' 3/5 ', ' 4/5 ', ' 1/6 ', ' 5/6 ', ' 1/8 ', ' 3/8 ', ' 5/8 ', ' 7/8 ', ' 1/', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'L', 'C', 'D', 'M', 'i', 'ii', 'iii', 'iv', 'v', 'vi', 'vii', 'viii', 'ix', 'x', 'xi', 'xii', 'l', 'c', 'd', 'm', '(D', 'D)', '((|))', ')', '[?]', '[?]', '[?]', '[?]', '[?]', ' 0/3 ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '-', '|', '-', '|', '-', '|', '\\', '/', '\\', '/', '-', '-', '~', '~', '-', '|', '-', '|', '-', '-', '-', '|', '-', '|', '|', '-', '-', '-', '-', '-', '-', '|', '|', '|', '|', '|', '|', '|', '^', 'V', '\\', '=', 'V', '^', '-', '-', '|', '|', '-', '-', '|', '|', '=', '|', '=', '=', '|', '=', '|', '=', '=', '=', '=', '=', '=', '|', '=', '|', '=', '|', '\\', '/', '\\', '/', '=', '=', '~', '~', '|', '|', '-', '|', '-', '|', '-', '-', '-', '|', '-', '|', '|', '|', '|', '|', '|', '|', '-', '\\', '\\', '|', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '-', '[?]', '[?]', '/', '\\', '*', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '|', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ':', '[?]', '[?]', '[?]', '[?]', '[?]', '~', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '<=', '>=', '<=', '>=', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '[?]', '[?]', '^', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '<', '> ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '(1)', '(2)', '(3)', '(4)', '(5)', '(6)', '(7)', '(8)', '(9)', '(10)', '(11)', '(12)', '(13)', '(14)', '(15)', '(16)', '(17)', '(18)', '(19)', '(20)', '1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.', '13.', '14.', '15.', '16.', '17.', '18.', '19.', '20.', '(a)', '(b)', '(c)', '(d)', '(e)', '(f)', '(g)', '(h)', '(i)', '(j)', '(k)', '(l)', '(m)', '(n)', '(o)', '(p)', '(q)', '(r)', '(s)', '(t)', '(u)', '(v)', '(w)', '(x)', '(y)', '(z)', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '0']; <?php return ['-', '-', '|', '|', '-', '-', '|', '|', '-', '-', '|', '|', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '-', '-', '|', '|', '-', '|', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '/', '\\', 'X', '-', '|', '-', '|', '-', '|', '-', '|', '-', '|', '-', '|', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '-', '|', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '^', '^', '^', '^', '>', '>', '>', '>', '>', '>', 'V', 'V', 'V', 'V', '<', '<', '<', '<', '<', '<', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '#', '#', '#', '#', '#', '^', '^', '^', 'O', '#', '#', '#', '#', 'O', 'O', 'O', 'O', '/', '\\\\', '\\\\', '#', '#', '#', '#', '/']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '#', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '*', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '|', '', '', '', '', '', '', '[?]', '[?]', '', '!', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[', '[?]', '<', '> ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return [' ', 'a', '1', 'b', '\'', 'k', '2', 'l', '@', 'c', 'i', 'f', '/', 'm', 's', 'p', '"', 'e', '3', 'h', '9', 'o', '6', 'r', '^', 'd', 'j', 'g', '>', 'n', 't', 'q', ',', '*', '5', '<', '-', 'u', '8', 'v', '.', '%', '[', '$', '+', 'x', '!', '&', ';', ':', '4', '\\', '0', 'z', '7', '(', '_', '?', 'w', ']', '#', 'y', ')', '=', '[d7]', '[d17]', '[d27]', '[d127]', '[d37]', '[d137]', '[d237]', '[d1237]', '[d47]', '[d147]', '[d247]', '[d1247]', '[d347]', '[d1347]', '[d2347]', '[d12347]', '[d57]', '[d157]', '[d257]', '[d1257]', '[d357]', '[d1357]', '[d2357]', '[d12357]', '[d457]', '[d1457]', '[d2457]', '[d12457]', '[d3457]', '[d13457]', '[d23457]', '[d123457]', '[d67]', '[d167]', '[d267]', '[d1267]', '[d367]', '[d1367]', '[d2367]', '[d12367]', '[d467]', '[d1467]', '[d2467]', '[d12467]', '[d3467]', '[d13467]', '[d23467]', '[d123467]', '[d567]', '[d1567]', '[d2567]', '[d12567]', '[d3567]', '[d13567]', '[d23567]', '[d123567]', '[d4567]', '[d14567]', '[d24567]', '[d124567]', '[d34567]', '[d134567]', '[d234567]', '[d1234567]', '[d8]', '[d18]', '[d28]', '[d128]', '[d38]', '[d138]', '[d238]', '[d1238]', '[d48]', '[d148]', '[d248]', '[d1248]', '[d348]', '[d1348]', '[d2348]', '[d12348]', '[d58]', '[d158]', '[d258]', '[d1258]', '[d358]', '[d1358]', '[d2358]', '[d12358]', '[d458]', '[d1458]', '[d2458]', '[d12458]', '[d3458]', '[d13458]', '[d23458]', '[d123458]', '[d68]', '[d168]', '[d268]', '[d1268]', '[d368]', '[d1368]', '[d2368]', '[d12368]', '[d468]', '[d1468]', '[d2468]', '[d12468]', '[d3468]', '[d13468]', '[d23468]', '[d123468]', '[d568]', '[d1568]', '[d2568]', '[d12568]', '[d3568]', '[d13568]', '[d23568]', '[d123568]', '[d4568]', '[d14568]', '[d24568]', '[d124568]', '[d34568]', '[d134568]', '[d234568]', '[d1234568]', '[d78]', '[d178]', '[d278]', '[d1278]', '[d378]', '[d1378]', '[d2378]', '[d12378]', '[d478]', '[d1478]', '[d2478]', '[d12478]', '[d3478]', '[d13478]', '[d23478]', '[d123478]', '[d578]', '[d1578]', '[d2578]', '[d12578]', '[d3578]', '[d13578]', '[d23578]', '[d123578]', '[d4578]', '[d14578]', '[d24578]', '[d124578]', '[d34578]', '[d134578]', '[d234578]', '[d1234578]', '[d678]', '[d1678]', '[d2678]', '[d12678]', '[d3678]', '[d13678]', '[d23678]', '[d123678]', '[d4678]', '[d14678]', '[d24678]', '[d124678]', '[d34678]', '[d134678]', '[d234678]', '[d1234678]', '[d5678]', '[d15678]', '[d25678]', '[d125678]', '[d35678]', '[d135678]', '[d235678]', '[d1235678]', '[d45678]', '[d145678]', '[d245678]', '[d1245678]', '[d345678]', '[d1345678]', '[d2345678]', '[d12345678]']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '{', '} ', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '::=', '==', '===', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'L', 'l', 'L', 'P', 'R', 'a', 't', 'H', 'h', 'K', 'k', 'Z', 'z', '', 'M', 'A', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['r', 'r.', '[?]', '[?]', '[?]', '[?]', 'T', 'T.', '[?]', 's', '[?]', '[]', '\\', '/', '[?]', '__', '[?]', '[?]', '>', '%', '[?]', '[?]', '>', '=', '[?]', '/', '-', '~', '\\', '/', '~', '~', '|-', '-|', '[?]', '[?]', '[?]', '[?]', '<=', '=>', '((', '))', '[?]', '[?]', '::', '[?]', '?', '\'', 'o', '.', ',', '.', ',', ';', '[?]', '[?]', '[?]', '[?]', '----', '------', 'x', '|', '[?]', '[?]', '=', ',', '"', '`--', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]']; <?php return [' ', ', ', '. ', '"', '[JIS]', '"', '/', '0', '<', '> ', '<<', '>> ', '[', '] ', '{', '} ', '[(', ')] ', '@', 'X ', '[', '] ', '[[', ']] ', '((', ')) ', '[[', ']] ', '~ ', '``', '\'\'', ',,', '@', '1', '2', '3', '4', '5', '6', '7', '8', '9', '', '', '', '', '', '', '~', '+', '+', '+', '+', '', '@', ' // ', '+10+', '+20+', '+30+', '[?]', '[?]', '[?]', '', '', '[?]', 'a', 'a', 'i', 'i', 'u', 'u', 'e', 'e', 'o', 'o', 'ka', 'ga', 'ki', 'gi', 'ku', 'gu', 'ke', 'ge', 'ko', 'go', 'sa', 'za', 'shi', // 0x57 'zi', 'su', 'zu', 'se', 'ze', 'so', 'zo', 'ta', 'da', 'chi', // 0x61 'di', 'tsu', // 0x63 'tsu', // 0x64 'du', 'te', 'de', 'to', 'do', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'ba', 'pa', 'hi', 'bi', 'pi', 'hu', 'bu', 'pu', 'he', 'be', 'pe', 'ho', 'bo', 'po', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'ya', 'yu', 'yu', 'yo', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'wa', 'wi', 'we', 'wo', 'n', 'vu', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '"', '"', '[?]', '[?]', 'a', 'a', 'i', 'i', 'u', 'u', 'e', 'e', 'o', 'o', 'ka', 'ga', 'ki', 'gi', 'ku', 'gu', 'ke', 'ge', 'ko', 'go', 'sa', 'za', 'shi', // 0xb7 'zi', 'su', 'zu', 'se', 'ze', 'so', 'zo', 'ta', 'da', 'chi', // 0xc1 'di', 'tsu', // 0xc3 'tsu', // 0xc4 'du', 'te', 'de', 'to', 'do', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'ba', 'pa', 'hi', 'bi', 'pi', 'hu', 'bu', 'pu', 'he', 'be', 'pe', 'ho', 'bo', 'po', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'ya', 'yu', 'yu', 'yo', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'wa', 'wi', 'we', 'wo', 'n', 'vu', 'ka', 'ke', 'va', 'vi', 've', 'vo', '', '', '"', '"', ]; <?php return ['[?]', '[?]', '[?]', '[?]', '[?]', 'B', 'P', 'M', 'F', 'D', 'T', 'N', 'L', 'G', 'K', 'H', 'J', 'Q', 'X', 'ZH', 'CH', 'SH', 'R', 'Z', 'C', 'S', 'A', 'O', 'E', 'EH', 'AI', 'EI', 'AU', 'OU', 'AN', 'EN', 'ANG', 'ENG', 'ER', 'I', 'U', 'IU', 'V', 'NG', 'GN', '[?]', '[?]', '[?]', '[?]', 'g', 'gg', 'gs', 'n', 'nj', 'nh', 'd', 'dd', 'r', 'lg', 'lm', 'lb', 'ls', 'lt', 'lp', 'rh', 'm', 'b', 'bb', 'bs', 's', 'ss', '', 'j', 'jj', 'c', 'k', 't', 'p', 'h', 'a', 'ae', 'ya', 'yae', 'eo', 'e', 'yeo', 'ye', 'o', 'wa', 'wae', 'oe', 'yo', 'u', 'weo', 'we', 'wi', 'yu', 'eu', 'yi', 'i', '', 'nn', 'nd', 'ns', 'nZ', 'lgs', 'ld', 'lbs', 'lZ', 'lQ', 'mb', 'ms', 'mZ', 'mN', 'bg', '', 'bsg', 'bst', 'bj', 'bt', 'bN', 'bbN', 'sg', 'sn', 'sd', 'sb', 'sj', 'Z', '', 'N', 'Ns', 'NZ', 'pN', 'hh', 'Q', 'yo-ya', 'yo-yae', 'yo-i', 'yu-yeo', 'yu-ye', 'yu-i', 'U', 'U-i', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'BU', 'ZI', 'JI', 'GU', 'EE', 'ENN', 'OO', 'ONN', 'IR', 'ANN', 'INN', 'UNN', 'IM', 'NGG', 'AINN', 'AUNN', 'AM', 'OM', 'ONG', 'INNN', 'P', 'T', 'K', 'H', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['(g)', '(n)', '(d)', '(r)', '(m)', '(b)', '(s)', '()', '(j)', '(c)', '(k)', '(t)', '(p)', '(h)', '(ga)', '(na)', '(da)', '(ra)', '(ma)', '(ba)', '(sa)', '(a)', '(ja)', '(ca)', '(ka)', '(ta)', '(pa)', '(ha)', '(ju)', '[?]', '[?]', '[?]', '(1) ', '(2) ', '(3) ', '(4) ', '(5) ', '(6) ', '(7) ', '(8) ', '(9) ', '(10) ', '(Yue) ', '(Huo) ', '(Shui) ', '(Mu) ', '(Jin) ', '(Tu) ', '(Ri) ', '(Zhu) ', '(You) ', '(She) ', '(Ming) ', '(Te) ', '(Cai) ', '(Zhu) ', '(Lao) ', '(Dai) ', '(Hu) ', '(Xue) ', '(Jian) ', '(Qi) ', '(Zi) ', '(Xie) ', '(Ji) ', '(Xiu) ', '<<', '>>', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '(g)', '(n)', '(d)', '(r)', '(m)', '(b)', '(s)', '()', '(j)', '(c)', '(k)', '(t)', '(p)', '(h)', '(ga)', '(na)', '(da)', '(ra)', '(ma)', '(ba)', '(sa)', '(a)', '(ja)', '(ca)', '(ka)', '(ta)', '(pa)', '(ha)', '[?]', '[?]', '[?]', 'KIS ', '(1) ', '(2) ', '(3) ', '(4) ', '(5) ', '(6) ', '(7) ', '(8) ', '(9) ', '(10) ', '(Yue) ', '(Huo) ', '(Shui) ', '(Mu) ', '(Jin) ', '(Tu) ', '(Ri) ', '(Zhu) ', '(You) ', '(She) ', '(Ming) ', '(Te) ', '(Cai) ', '(Zhu) ', '(Lao) ', '(Mi) ', '(Nan) ', '(Nu) ', '(Shi) ', '(You) ', '(Yin) ', '(Zhu) ', '(Xiang) ', '(Xiu) ', '(Xie) ', '(Zheng) ', '(Shang) ', '(Zhong) ', '(Xia) ', '(Zuo) ', '(You) ', '(Yi) ', '(Zong) ', '(Xue) ', '(Jian) ', '(Qi) ', '(Zi) ', '(Xie) ', '(Ye) ', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '1M', '2M', '3M', '4M', '5M', '6M', '7M', '8M', '9M', '10M', '11M', '12M', 'Hg', 'erg', 'eV', 'LTD', 'a', 'i', 'u', 'u', 'o', 'ka', 'ki', 'ku', 'ke', 'ko', 'sa', 'si', 'su', 'se', 'so', 'ta', 'ti', 'tu', 'te', 'to', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'hi', 'hu', 'he', 'ho', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'yu', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'wi', 'we', 'wo']; <?php return ['apartment', 'alpha', 'ampere', 'are', 'inning', 'inch', 'won', 'escudo', 'acre', 'ounce', 'ohm', 'kai-ri', 'carat', 'calorie', 'gallon', 'gamma', 'giga', 'guinea', 'curie', 'guilder', 'kilo', 'kilogram', 'kilometer', 'kilowatt', 'gram', 'gram ton', 'cruzeiro', 'krone', 'case', 'koruna', 'co-op', 'cycle', 'centime', 'shilling', 'centi', 'cent', 'dozen', 'desi', 'dollar', 'ton', 'nano', 'knot', 'heights', 'percent', 'parts', 'barrel', 'piaster', 'picul', 'pico', 'building', 'farad', 'feet', 'bushel', 'franc', 'hectare', 'peso', 'pfennig', 'hertz', 'pence', 'page', 'beta', 'point', 'volt', 'hon', 'pound', 'hall', 'horn', 'micro', 'mile', 'mach', 'mark', 'mansion', 'micron', 'milli', 'millibar', 'mega', 'megaton', 'meter', 'yard', 'yard', 'yuan', 'liter', 'lira', 'rupee', 'ruble', 'rem', 'roentgen', 'watt', '0h', '1h', '2h', '3h', '4h', '5h', '6h', '7h', '8h', '9h', '10h', '11h', '12h', '13h', '14h', '15h', '16h', '17h', '18h', '19h', '20h', '21h', '22h', '23h', '24h', 'hPa', 'da', 'AU', 'bar', 'oV', 'pc', 'dm', 'dm^2', 'dm^3', 'IU', 'Heisei', 'Syouwa', 'Taisyou', 'Meiji', 'Inc.', 'pA', 'nA', 'microamp', 'mA', 'kA', 'kB', 'MB', 'GB', 'cal', 'kcal', 'pF', 'nF', 'microFarad', 'microgram', 'mg', 'kg', 'Hz', 'kHz', 'MHz', 'GHz', 'THz', 'microliter', 'ml', 'dl', 'kl', 'fm', 'nm', 'micrometer', 'mm', 'cm', 'km', 'mm^2', 'cm^2', 'm^2', 'km^2', 'mm^3', 'cm^3', 'm^3', 'km^3', 'm/s', 'm/s^2', 'Pa', 'kPa', 'MPa', 'GPa', 'rad', 'rad/s', 'rad/s^2', 'ps', 'ns', 'microsecond', 'ms', 'pV', 'nV', 'microvolt', 'mV', 'kV', 'MV', 'pW', 'nW', 'microwatt', 'mW', 'kW', 'MW', 'kOhm', 'MOhm', 'a.m.', 'Bq', 'cc', 'cd', 'C/kg', 'Co.', 'dB', 'Gy', 'ha', 'HP', 'in', 'K.K.', 'KM', 'kt', 'lm', 'ln', 'log', 'lx', 'mb', 'mil', 'mol', 'pH', 'p.m.', 'PPM', 'PR', 'sr', 'Sv', 'Wb', '[?]', '[?]', '1d', '2d', '3d', '4d', '5d', '6d', '7d', '8d', '9d', '10d', '11d', '12d', '13d', '14d', '15d', '16d', '17d', '18d', '19d', '20d', '21d', '22d', '23d', '24d', '25d', '26d', '27d', '28d', '29d', '30d', '31d', 'gal']; <?php return ['[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?] ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['Yi ', 'Ding ', 'Kao ', 'Qi ', 'Shang ', 'Xia ', '[?] ', 'Mo ', 'Zhang ', 'San ', 'Shang ', 'Xia ', 'Ji ', 'Bu ', 'Yu ', 'Mian ', 'Gai ', 'Chou ', 'Chou ', 'Zhuan ', 'Qie ', 'Pi ', 'Shi ', 'Shi ', 'Qiu ', 'Bing ', 'Ye ', 'Cong ', 'Dong ', 'Si ', 'Cheng ', 'Diu ', 'Qiu ', 'Liang ', 'Diu ', 'You ', 'Liang ', 'Yan ', 'Bing ', 'Sang ', 'Gun ', 'Jiu ', 'Ge ', 'Ya ', 'Qiang ', 'Zhong ', 'Ji ', 'Jie ', 'Feng ', 'Guan ', 'Chuan ', 'Chan ', 'Lin ', 'Zhuo ', 'Zhu ', 'Ha ', 'Wan ', 'Dan ', 'Wei ', 'Zhu ', 'Jing ', 'Li ', 'Ju ', 'Pie ', 'Fu ', 'Yi ', 'Yi ', 'Nai ', 'Shime ', 'Jiu ', 'Jiu ', 'Zhe ', 'Yao ', 'Yi ', '[?] ', 'Zhi ', 'Wu ', 'Zha ', 'Hu ', 'Fa ', 'Le ', 'Zhong ', 'Ping ', 'Pang ', 'Qiao ', 'Hu ', 'Guai ', 'Cheng ', 'Cheng ', 'Yi ', 'Yin ', '[?] ', 'Mie ', 'Jiu ', 'Qi ', 'Ye ', 'Xi ', 'Xiang ', 'Gai ', 'Diu ', 'Hal ', '[?] ', 'Shu ', 'Twul ', 'Shi ', 'Ji ', 'Nang ', 'Jia ', 'Kel ', 'Shi ', '[?] ', 'Ol ', 'Mai ', 'Luan ', 'Cal ', 'Ru ', 'Xue ', 'Yan ', 'Fu ', 'Sha ', 'Na ', 'Gan ', 'Sol ', 'El ', 'Cwul ', '[?] ', 'Gan ', 'Chi ', 'Gui ', 'Gan ', 'Luan ', 'Lin ', 'Yi ', 'Jue ', 'Liao ', 'Ma ', 'Yu ', 'Zheng ', 'Shi ', 'Shi ', 'Er ', 'Chu ', 'Yu ', 'Yu ', 'Yu ', 'Yun ', 'Hu ', 'Qi ', 'Wu ', 'Jing ', 'Si ', 'Sui ', 'Gen ', 'Gen ', 'Ya ', 'Xie ', 'Ya ', 'Qi ', 'Ya ', 'Ji ', 'Tou ', 'Wang ', 'Kang ', 'Ta ', 'Jiao ', 'Hai ', 'Yi ', 'Chan ', 'Heng ', 'Mu ', '[?] ', 'Xiang ', 'Jing ', 'Ting ', 'Liang ', 'Xiang ', 'Jing ', 'Ye ', 'Qin ', 'Bo ', 'You ', 'Xie ', 'Dan ', 'Lian ', 'Duo ', 'Wei ', 'Ren ', 'Ren ', 'Ji ', 'La ', 'Wang ', 'Yi ', 'Shi ', 'Ren ', 'Le ', 'Ding ', 'Ze ', 'Jin ', 'Pu ', 'Chou ', 'Ba ', 'Zhang ', 'Jin ', 'Jie ', 'Bing ', 'Reng ', 'Cong ', 'Fo ', 'San ', 'Lun ', 'Sya ', 'Cang ', 'Zi ', 'Shi ', 'Ta ', 'Zhang ', 'Fu ', 'Xian ', 'Xian ', 'Tuo ', 'Hong ', 'Tong ', 'Ren ', 'Qian ', 'Gan ', 'Yi ', 'Di ', 'Dai ', 'Ling ', 'Yi ', 'Chao ', 'Chang ', 'Sa ', '[?] ', 'Yi ', 'Mu ', 'Men ', 'Ren ', 'Jia ', 'Chao ', 'Yang ', 'Qian ', 'Zhong ', 'Pi ', 'Wan ', 'Wu ', 'Jian ', 'Jie ', 'Yao ', 'Feng ', 'Cang ', 'Ren ', 'Wang ', 'Fen ', 'Di ', 'Fang ']; <?php return ['Zhong ', 'Qi ', 'Pei ', 'Yu ', 'Diao ', 'Dun ', 'Wen ', 'Yi ', 'Xin ', 'Kang ', 'Yi ', 'Ji ', 'Ai ', 'Wu ', 'Ji ', 'Fu ', 'Fa ', 'Xiu ', 'Jin ', 'Bei ', 'Dan ', 'Fu ', 'Tang ', 'Zhong ', 'You ', 'Huo ', 'Hui ', 'Yu ', 'Cui ', 'Chuan ', 'San ', 'Wei ', 'Chuan ', 'Che ', 'Ya ', 'Xian ', 'Shang ', 'Chang ', 'Lun ', 'Cang ', 'Xun ', 'Xin ', 'Wei ', 'Zhu ', '[?] ', 'Xuan ', 'Nu ', 'Bo ', 'Gu ', 'Ni ', 'Ni ', 'Xie ', 'Ban ', 'Xu ', 'Ling ', 'Zhou ', 'Shen ', 'Qu ', 'Si ', 'Beng ', 'Si ', 'Jia ', 'Pi ', 'Yi ', 'Si ', 'Ai ', 'Zheng ', 'Dian ', 'Han ', 'Mai ', 'Dan ', 'Zhu ', 'Bu ', 'Qu ', 'Bi ', 'Shao ', 'Ci ', 'Wei ', 'Di ', 'Zhu ', 'Zuo ', 'You ', 'Yang ', 'Ti ', 'Zhan ', 'He ', 'Bi ', 'Tuo ', 'She ', 'Yu ', 'Yi ', 'Fo ', 'Zuo ', 'Kou ', 'Ning ', 'Tong ', 'Ni ', 'Xuan ', 'Qu ', 'Yong ', 'Wa ', 'Qian ', '[?] ', 'Ka ', '[?] ', 'Pei ', 'Huai ', 'He ', 'Lao ', 'Xiang ', 'Ge ', 'Yang ', 'Bai ', 'Fa ', 'Ming ', 'Jia ', 'Er ', 'Bing ', 'Ji ', 'Hen ', 'Huo ', 'Gui ', 'Quan ', 'Tiao ', 'Jiao ', 'Ci ', 'Yi ', 'Shi ', 'Xing ', 'Shen ', 'Tuo ', 'Kan ', 'Zhi ', 'Gai ', 'Lai ', 'Yi ', 'Chi ', 'Kua ', 'Guang ', 'Li ', 'Yin ', 'Shi ', 'Mi ', 'Zhu ', 'Xu ', 'You ', 'An ', 'Lu ', 'Mou ', 'Er ', 'Lun ', 'Tong ', 'Cha ', 'Chi ', 'Xun ', 'Gong ', 'Zhou ', 'Yi ', 'Ru ', 'Jian ', 'Xia ', 'Jia ', 'Zai ', 'Lu ', 'Ko ', 'Jiao ', 'Zhen ', 'Ce ', 'Qiao ', 'Kuai ', 'Chai ', 'Ning ', 'Nong ', 'Jin ', 'Wu ', 'Hou ', 'Jiong ', 'Cheng ', 'Zhen ', 'Zuo ', 'Chou ', 'Qin ', 'Lu ', 'Ju ', 'Shu ', 'Ting ', 'Shen ', 'Tuo ', 'Bo ', 'Nan ', 'Hao ', 'Bian ', 'Tui ', 'Yu ', 'Xi ', 'Cu ', 'E ', 'Qiu ', 'Xu ', 'Kuang ', 'Ku ', 'Wu ', 'Jun ', 'Yi ', 'Fu ', 'Lang ', 'Zu ', 'Qiao ', 'Li ', 'Yong ', 'Hun ', 'Jing ', 'Xian ', 'San ', 'Pai ', 'Su ', 'Fu ', 'Xi ', 'Li ', 'Fu ', 'Ping ', 'Bao ', 'Yu ', 'Si ', 'Xia ', 'Xin ', 'Xiu ', 'Yu ', 'Ti ', 'Che ', 'Chou ', '[?] ', 'Yan ', 'Lia ', 'Li ', 'Lai ', '[?] ', 'Jian ', 'Xiu ', 'Fu ', 'He ', 'Ju ', 'Xiao ', 'Pai ', 'Jian ', 'Biao ', 'Chu ', 'Fei ', 'Feng ', 'Ya ', 'An ', 'Bei ', 'Yu ', 'Xin ', 'Bi ', 'Jian ']; <?php return ['Chang ', 'Chi ', 'Bing ', 'Zan ', 'Yao ', 'Cui ', 'Lia ', 'Wan ', 'Lai ', 'Cang ', 'Zong ', 'Ge ', 'Guan ', 'Bei ', 'Tian ', 'Shu ', 'Shu ', 'Men ', 'Dao ', 'Tan ', 'Jue ', 'Chui ', 'Xing ', 'Peng ', 'Tang ', 'Hou ', 'Yi ', 'Qi ', 'Ti ', 'Gan ', 'Jing ', 'Jie ', 'Sui ', 'Chang ', 'Jie ', 'Fang ', 'Zhi ', 'Kong ', 'Juan ', 'Zong ', 'Ju ', 'Qian ', 'Ni ', 'Lun ', 'Zhuo ', 'Wei ', 'Luo ', 'Song ', 'Leng ', 'Hun ', 'Dong ', 'Zi ', 'Ben ', 'Wu ', 'Ju ', 'Nai ', 'Cai ', 'Jian ', 'Zhai ', 'Ye ', 'Zhi ', 'Sha ', 'Qing ', '[?] ', 'Ying ', 'Cheng ', 'Jian ', 'Yan ', 'Nuan ', 'Zhong ', 'Chun ', 'Jia ', 'Jie ', 'Wei ', 'Yu ', 'Bing ', 'Ruo ', 'Ti ', 'Wei ', 'Pian ', 'Yan ', 'Feng ', 'Tang ', 'Wo ', 'E ', 'Xie ', 'Che ', 'Sheng ', 'Kan ', 'Di ', 'Zuo ', 'Cha ', 'Ting ', 'Bei ', 'Ye ', 'Huang ', 'Yao ', 'Zhan ', 'Chou ', 'Yan ', 'You ', 'Jian ', 'Xu ', 'Zha ', 'Ci ', 'Fu ', 'Bi ', 'Zhi ', 'Zong ', 'Mian ', 'Ji ', 'Yi ', 'Xie ', 'Xun ', 'Si ', 'Duan ', 'Ce ', 'Zhen ', 'Ou ', 'Tou ', 'Tou ', 'Bei ', 'Za ', 'Lu ', 'Jie ', 'Wei ', 'Fen ', 'Chang ', 'Gui ', 'Sou ', 'Zhi ', 'Su ', 'Xia ', 'Fu ', 'Yuan ', 'Rong ', 'Li ', 'Ru ', 'Yun ', 'Gou ', 'Ma ', 'Bang ', 'Dian ', 'Tang ', 'Hao ', 'Jie ', 'Xi ', 'Shan ', 'Qian ', 'Jue ', 'Cang ', 'Chu ', 'San ', 'Bei ', 'Xiao ', 'Yong ', 'Yao ', 'Tan ', 'Suo ', 'Yang ', 'Fa ', 'Bing ', 'Jia ', 'Dai ', 'Zai ', 'Tang ', '[?] ', 'Bin ', 'Chu ', 'Nuo ', 'Can ', 'Lei ', 'Cui ', 'Yong ', 'Zao ', 'Zong ', 'Peng ', 'Song ', 'Ao ', 'Chuan ', 'Yu ', 'Zhai ', 'Cou ', 'Shang ', 'Qiang ', 'Jing ', 'Chi ', 'Sha ', 'Han ', 'Zhang ', 'Qing ', 'Yan ', 'Di ', 'Xi ', 'Lu ', 'Bei ', 'Piao ', 'Jin ', 'Lian ', 'Lu ', 'Man ', 'Qian ', 'Xian ', 'Tan ', 'Ying ', 'Dong ', 'Zhuan ', 'Xiang ', 'Shan ', 'Qiao ', 'Jiong ', 'Tui ', 'Zun ', 'Pu ', 'Xi ', 'Lao ', 'Chang ', 'Guang ', 'Liao ', 'Qi ', 'Deng ', 'Chan ', 'Wei ', 'Ji ', 'Fan ', 'Hui ', 'Chuan ', 'Jian ', 'Dan ', 'Jiao ', 'Jiu ', 'Seng ', 'Fen ', 'Xian ', 'Jue ', 'E ', 'Jiao ', 'Jian ', 'Tong ', 'Lin ', 'Bo ', 'Gu ', '[?] ', 'Su ', 'Xian ', 'Jiang ', 'Min ', 'Ye ', 'Jin ', 'Jia ', 'Qiao ', 'Pi ', 'Feng ', 'Zhou ', 'Ai ', 'Sai ']; <?php return ['Yi ', 'Jun ', 'Nong ', 'Chan ', 'Yi ', 'Dang ', 'Jing ', 'Xuan ', 'Kuai ', 'Jian ', 'Chu ', 'Dan ', 'Jiao ', 'Sha ', 'Zai ', '[?] ', 'Bin ', 'An ', 'Ru ', 'Tai ', 'Chou ', 'Chai ', 'Lan ', 'Ni ', 'Jin ', 'Qian ', 'Meng ', 'Wu ', 'Ning ', 'Qiong ', 'Ni ', 'Chang ', 'Lie ', 'Lei ', 'Lu ', 'Kuang ', 'Bao ', 'Du ', 'Biao ', 'Zan ', 'Zhi ', 'Si ', 'You ', 'Hao ', 'Chen ', 'Chen ', 'Li ', 'Teng ', 'Wei ', 'Long ', 'Chu ', 'Chan ', 'Rang ', 'Shu ', 'Hui ', 'Li ', 'Luo ', 'Zan ', 'Nuo ', 'Tang ', 'Yan ', 'Lei ', 'Nang ', 'Er ', 'Wu ', 'Yun ', 'Zan ', 'Yuan ', 'Xiong ', 'Chong ', 'Zhao ', 'Xiong ', 'Xian ', 'Guang ', 'Dui ', 'Ke ', 'Dui ', 'Mian ', 'Tu ', 'Chang ', 'Er ', 'Dui ', 'Er ', 'Xin ', 'Tu ', 'Si ', 'Yan ', 'Yan ', 'Shi ', 'Shi ', 'Dang ', 'Qian ', 'Dou ', 'Fen ', 'Mao ', 'Shen ', 'Dou ', 'Bai ', 'Jing ', 'Li ', 'Huang ', 'Ru ', 'Wang ', 'Nei ', 'Quan ', 'Liang ', 'Yu ', 'Ba ', 'Gong ', 'Liu ', 'Xi ', '[?] ', 'Lan ', 'Gong ', 'Tian ', 'Guan ', 'Xing ', 'Bing ', 'Qi ', 'Ju ', 'Dian ', 'Zi ', 'Ppwun ', 'Yang ', 'Jian ', 'Shou ', 'Ji ', 'Yi ', 'Ji ', 'Chan ', 'Jiong ', 'Mao ', 'Ran ', 'Nei ', 'Yuan ', 'Mao ', 'Gang ', 'Ran ', 'Ce ', 'Jiong ', 'Ce ', 'Zai ', 'Gua ', 'Jiong ', 'Mao ', 'Zhou ', 'Mou ', 'Gou ', 'Xu ', 'Mian ', 'Mi ', 'Rong ', 'Yin ', 'Xie ', 'Kan ', 'Jun ', 'Nong ', 'Yi ', 'Mi ', 'Shi ', 'Guan ', 'Meng ', 'Zhong ', 'Ju ', 'Yuan ', 'Ming ', 'Kou ', 'Lam ', 'Fu ', 'Xie ', 'Mi ', 'Bing ', 'Dong ', 'Tai ', 'Gang ', 'Feng ', 'Bing ', 'Hu ', 'Chong ', 'Jue ', 'Hu ', 'Kuang ', 'Ye ', 'Leng ', 'Pan ', 'Fu ', 'Min ', 'Dong ', 'Xian ', 'Lie ', 'Xia ', 'Jian ', 'Jing ', 'Shu ', 'Mei ', 'Tu ', 'Qi ', 'Gu ', 'Zhun ', 'Song ', 'Jing ', 'Liang ', 'Qing ', 'Diao ', 'Ling ', 'Dong ', 'Gan ', 'Jian ', 'Yin ', 'Cou ', 'Yi ', 'Li ', 'Cang ', 'Ming ', 'Zhuen ', 'Cui ', 'Si ', 'Duo ', 'Jin ', 'Lin ', 'Lin ', 'Ning ', 'Xi ', 'Du ', 'Ji ', 'Fan ', 'Fan ', 'Fan ', 'Feng ', 'Ju ', 'Chu ', 'Tako ', 'Feng ', 'Mok ', 'Ci ', 'Fu ', 'Feng ', 'Ping ', 'Feng ', 'Kai ', 'Huang ', 'Kai ', 'Gan ', 'Deng ', 'Ping ', 'Qu ', 'Xiong ', 'Kuai ', 'Tu ', 'Ao ', 'Chu ', 'Ji ', 'Dang ', 'Han ', 'Han ', 'Zao ']; <?php return ['Dao ', 'Diao ', 'Dao ', 'Ren ', 'Ren ', 'Chuang ', 'Fen ', 'Qie ', 'Yi ', 'Ji ', 'Kan ', 'Qian ', 'Cun ', 'Chu ', 'Wen ', 'Ji ', 'Dan ', 'Xing ', 'Hua ', 'Wan ', 'Jue ', 'Li ', 'Yue ', 'Lie ', 'Liu ', 'Ze ', 'Gang ', 'Chuang ', 'Fu ', 'Chu ', 'Qu ', 'Ju ', 'Shan ', 'Min ', 'Ling ', 'Zhong ', 'Pan ', 'Bie ', 'Jie ', 'Jie ', 'Bao ', 'Li ', 'Shan ', 'Bie ', 'Chan ', 'Jing ', 'Gua ', 'Gen ', 'Dao ', 'Chuang ', 'Kui ', 'Ku ', 'Duo ', 'Er ', 'Zhi ', 'Shua ', 'Quan ', 'Cha ', 'Ci ', 'Ke ', 'Jie ', 'Gui ', 'Ci ', 'Gui ', 'Kai ', 'Duo ', 'Ji ', 'Ti ', 'Jing ', 'Lou ', 'Gen ', 'Ze ', 'Yuan ', 'Cuo ', 'Xue ', 'Ke ', 'La ', 'Qian ', 'Cha ', 'Chuang ', 'Gua ', 'Jian ', 'Cuo ', 'Li ', 'Ti ', 'Fei ', 'Pou ', 'Chan ', 'Qi ', 'Chuang ', 'Zi ', 'Gang ', 'Wan ', 'Bo ', 'Ji ', 'Duo ', 'Qing ', 'Yan ', 'Zhuo ', 'Jian ', 'Ji ', 'Bo ', 'Yan ', 'Ju ', 'Huo ', 'Sheng ', 'Jian ', 'Duo ', 'Duan ', 'Wu ', 'Gua ', 'Fu ', 'Sheng ', 'Jian ', 'Ge ', 'Zha ', 'Kai ', 'Chuang ', 'Juan ', 'Chan ', 'Tuan ', 'Lu ', 'Li ', 'Fou ', 'Shan ', 'Piao ', 'Kou ', 'Jiao ', 'Gua ', 'Qiao ', 'Jue ', 'Hua ', 'Zha ', 'Zhuo ', 'Lian ', 'Ju ', 'Pi ', 'Liu ', 'Gui ', 'Jiao ', 'Gui ', 'Jian ', 'Jian ', 'Tang ', 'Huo ', 'Ji ', 'Jian ', 'Yi ', 'Jian ', 'Zhi ', 'Chan ', 'Cuan ', 'Mo ', 'Li ', 'Zhu ', 'Li ', 'Ya ', 'Quan ', 'Ban ', 'Gong ', 'Jia ', 'Wu ', 'Mai ', 'Lie ', 'Jin ', 'Keng ', 'Xie ', 'Zhi ', 'Dong ', 'Zhu ', 'Nu ', 'Jie ', 'Qu ', 'Shao ', 'Yi ', 'Zhu ', 'Miao ', 'Li ', 'Jing ', 'Lao ', 'Lao ', 'Juan ', 'Kou ', 'Yang ', 'Wa ', 'Xiao ', 'Mou ', 'Kuang ', 'Jie ', 'Lie ', 'He ', 'Shi ', 'Ke ', 'Jing ', 'Hao ', 'Bo ', 'Min ', 'Chi ', 'Lang ', 'Yong ', 'Yong ', 'Mian ', 'Ke ', 'Xun ', 'Juan ', 'Qing ', 'Lu ', 'Pou ', 'Meng ', 'Lai ', 'Le ', 'Kai ', 'Mian ', 'Dong ', 'Xu ', 'Xu ', 'Kan ', 'Wu ', 'Yi ', 'Xun ', 'Weng ', 'Sheng ', 'Lao ', 'Mu ', 'Lu ', 'Piao ', 'Shi ', 'Ji ', 'Qin ', 'Qiang ', 'Jiao ', 'Quan ', 'Yang ', 'Yi ', 'Jue ', 'Fan ', 'Juan ', 'Tong ', 'Ju ', 'Dan ', 'Xie ', 'Mai ', 'Xun ', 'Xun ', 'Lu ', 'Li ', 'Che ', 'Rang ', 'Quan ', 'Bao ', 'Shao ', 'Yun ', 'Jiu ', 'Bao ', 'Gou ', 'Wu ']; <?php return ['Yun ', 'Mwun ', 'Nay ', 'Gai ', 'Gai ', 'Bao ', 'Cong ', '[?] ', 'Xiong ', 'Peng ', 'Ju ', 'Tao ', 'Ge ', 'Pu ', 'An ', 'Pao ', 'Fu ', 'Gong ', 'Da ', 'Jiu ', 'Qiong ', 'Bi ', 'Hua ', 'Bei ', 'Nao ', 'Chi ', 'Fang ', 'Jiu ', 'Yi ', 'Za ', 'Jiang ', 'Kang ', 'Jiang ', 'Kuang ', 'Hu ', 'Xia ', 'Qu ', 'Bian ', 'Gui ', 'Qie ', 'Zang ', 'Kuang ', 'Fei ', 'Hu ', 'Tou ', 'Gui ', 'Gui ', 'Hui ', 'Dan ', 'Gui ', 'Lian ', 'Lian ', 'Suan ', 'Du ', 'Jiu ', 'Qu ', 'Xi ', 'Pi ', 'Qu ', 'Yi ', 'Qia ', 'Yan ', 'Bian ', 'Ni ', 'Qu ', 'Shi ', 'Xin ', 'Qian ', 'Nian ', 'Sa ', 'Zu ', 'Sheng ', 'Wu ', 'Hui ', 'Ban ', 'Shi ', 'Xi ', 'Wan ', 'Hua ', 'Xie ', 'Wan ', 'Bei ', 'Zu ', 'Zhuo ', 'Xie ', 'Dan ', 'Mai ', 'Nan ', 'Dan ', 'Ji ', 'Bo ', 'Shuai ', 'Bu ', 'Kuang ', 'Bian ', 'Bu ', 'Zhan ', 'Qia ', 'Lu ', 'You ', 'Lu ', 'Xi ', 'Gua ', 'Wo ', 'Xie ', 'Jie ', 'Jie ', 'Wei ', 'Ang ', 'Qiong ', 'Zhi ', 'Mao ', 'Yin ', 'Wei ', 'Shao ', 'Ji ', 'Que ', 'Luan ', 'Shi ', 'Juan ', 'Xie ', 'Xu ', 'Jin ', 'Que ', 'Wu ', 'Ji ', 'E ', 'Qing ', 'Xi ', '[?] ', 'Han ', 'Zhan ', 'E ', 'Ting ', 'Li ', 'Zhe ', 'Han ', 'Li ', 'Ya ', 'Ya ', 'Yan ', 'She ', 'Zhi ', 'Zha ', 'Pang ', '[?] ', 'He ', 'Ya ', 'Zhi ', 'Ce ', 'Pang ', 'Ti ', 'Li ', 'She ', 'Hou ', 'Ting ', 'Zui ', 'Cuo ', 'Fei ', 'Yuan ', 'Ce ', 'Yuan ', 'Xiang ', 'Yan ', 'Li ', 'Jue ', 'Sha ', 'Dian ', 'Chu ', 'Jiu ', 'Qin ', 'Ao ', 'Gui ', 'Yan ', 'Si ', 'Li ', 'Chang ', 'Lan ', 'Li ', 'Yan ', 'Yan ', 'Yuan ', 'Si ', 'Gong ', 'Lin ', 'Qiu ', 'Qu ', 'Qu ', 'Uk ', 'Lei ', 'Du ', 'Xian ', 'Zhuan ', 'San ', 'Can ', 'Can ', 'Can ', 'Can ', 'Ai ', 'Dai ', 'You ', 'Cha ', 'Ji ', 'You ', 'Shuang ', 'Fan ', 'Shou ', 'Guai ', 'Ba ', 'Fa ', 'Ruo ', 'Shi ', 'Shu ', 'Zhuo ', 'Qu ', 'Shou ', 'Bian ', 'Xu ', 'Jia ', 'Pan ', 'Sou ', 'Gao ', 'Wei ', 'Sou ', 'Die ', 'Rui ', 'Cong ', 'Kou ', 'Gu ', 'Ju ', 'Ling ', 'Gua ', 'Tao ', 'Kou ', 'Zhi ', 'Jiao ', 'Zhao ', 'Ba ', 'Ding ', 'Ke ', 'Tai ', 'Chi ', 'Shi ', 'You ', 'Qiu ', 'Po ', 'Xie ', 'Hao ', 'Si ', 'Tan ', 'Chi ', 'Le ', 'Diao ', 'Ji ', '[?] ', 'Hong ']; <?php return ['Mie ', 'Xu ', 'Mang ', 'Chi ', 'Ge ', 'Xuan ', 'Yao ', 'Zi ', 'He ', 'Ji ', 'Diao ', 'Cun ', 'Tong ', 'Ming ', 'Hou ', 'Li ', 'Tu ', 'Xiang ', 'Zha ', 'Xia ', 'Ye ', 'Lu ', 'A ', 'Ma ', 'Ou ', 'Xue ', 'Yi ', 'Jun ', 'Chou ', 'Lin ', 'Tun ', 'Yin ', 'Fei ', 'Bi ', 'Qin ', 'Qin ', 'Jie ', 'Bu ', 'Fou ', 'Ba ', 'Dun ', 'Fen ', 'E ', 'Han ', 'Ting ', 'Hang ', 'Shun ', 'Qi ', 'Hong ', 'Zhi ', 'Shen ', 'Wu ', 'Wu ', 'Chao ', 'Ne ', 'Xue ', 'Xi ', 'Chui ', 'Dou ', 'Wen ', 'Hou ', 'Ou ', 'Wu ', 'Gao ', 'Ya ', 'Jun ', 'Lu ', 'E ', 'Ge ', 'Mei ', 'Ai ', 'Qi ', 'Cheng ', 'Wu ', 'Gao ', 'Fu ', 'Jiao ', 'Hong ', 'Chi ', 'Sheng ', 'Ne ', 'Tun ', 'Fu ', 'Yi ', 'Dai ', 'Ou ', 'Li ', 'Bai ', 'Yuan ', 'Kuai ', '[?] ', 'Qiang ', 'Wu ', 'E ', 'Shi ', 'Quan ', 'Pen ', 'Wen ', 'Ni ', 'M ', 'Ling ', 'Ran ', 'You ', 'Di ', 'Zhou ', 'Shi ', 'Zhou ', 'Tie ', 'Xi ', 'Yi ', 'Qi ', 'Ping ', 'Zi ', 'Gu ', 'Zi ', 'Wei ', 'Xu ', 'He ', 'Nao ', 'Xia ', 'Pei ', 'Yi ', 'Xiao ', 'Shen ', 'Hu ', 'Ming ', 'Da ', 'Qu ', 'Ju ', 'Gem ', 'Za ', 'Tuo ', 'Duo ', 'Pou ', 'Pao ', 'Bi ', 'Fu ', 'Yang ', 'He ', 'Zha ', 'He ', 'Hai ', 'Jiu ', 'Yong ', 'Fu ', 'Que ', 'Zhou ', 'Wa ', 'Ka ', 'Gu ', 'Ka ', 'Zuo ', 'Bu ', 'Long ', 'Dong ', 'Ning ', 'Tha ', 'Si ', 'Xian ', 'Huo ', 'Qi ', 'Er ', 'E ', 'Guang ', 'Zha ', 'Xi ', 'Yi ', 'Lie ', 'Zi ', 'Mie ', 'Mi ', 'Zhi ', 'Yao ', 'Ji ', 'Zhou ', 'Ge ', 'Shuai ', 'Zan ', 'Xiao ', 'Ke ', 'Hui ', 'Kua ', 'Huai ', 'Tao ', 'Xian ', 'E ', 'Xuan ', 'Xiu ', 'Wai ', 'Yan ', 'Lao ', 'Yi ', 'Ai ', 'Pin ', 'Shen ', 'Tong ', 'Hong ', 'Xiong ', 'Chi ', 'Wa ', 'Ha ', 'Zai ', 'Yu ', 'Di ', 'Pai ', 'Xiang ', 'Ai ', 'Hen ', 'Kuang ', 'Ya ', 'Da ', 'Xiao ', 'Bi ', 'Yue ', '[?] ', 'Hua ', 'Sasou ', 'Kuai ', 'Duo ', '[?] ', 'Ji ', 'Nong ', 'Mou ', 'Yo ', 'Hao ', 'Yuan ', 'Long ', 'Pou ', 'Mang ', 'Ge ', 'E ', 'Chi ', 'Shao ', 'Li ', 'Na ', 'Zu ', 'He ', 'Ku ', 'Xiao ', 'Xian ', 'Lao ', 'Bo ', 'Zhe ', 'Zha ', 'Liang ', 'Ba ', 'Mie ', 'Le ', 'Sui ', 'Fou ', 'Bu ', 'Han ', 'Heng ', 'Geng ', 'Shuo ', 'Ge ']; <?php return ['You ', 'Yan ', 'Gu ', 'Gu ', 'Bai ', 'Han ', 'Suo ', 'Chun ', 'Yi ', 'Ai ', 'Jia ', 'Tu ', 'Xian ', 'Huan ', 'Li ', 'Xi ', 'Tang ', 'Zuo ', 'Qiu ', 'Che ', 'Wu ', 'Zao ', 'Ya ', 'Dou ', 'Qi ', 'Di ', 'Qin ', 'Ma ', 'Mal ', 'Hong ', 'Dou ', 'Kes ', 'Lao ', 'Liang ', 'Suo ', 'Zao ', 'Huan ', 'Lang ', 'Sha ', 'Ji ', 'Zuo ', 'Wo ', 'Feng ', 'Yin ', 'Hu ', 'Qi ', 'Shou ', 'Wei ', 'Shua ', 'Chang ', 'Er ', 'Li ', 'Qiang ', 'An ', 'Jie ', 'Yo ', 'Nian ', 'Yu ', 'Tian ', 'Lai ', 'Sha ', 'Xi ', 'Tuo ', 'Hu ', 'Ai ', 'Zhou ', 'Nou ', 'Ken ', 'Zhuo ', 'Zhuo ', 'Shang ', 'Di ', 'Heng ', 'Lan ', 'A ', 'Xiao ', 'Xiang ', 'Tun ', 'Wu ', 'Wen ', 'Cui ', 'Sha ', 'Hu ', 'Qi ', 'Qi ', 'Tao ', 'Dan ', 'Dan ', 'Ye ', 'Zi ', 'Bi ', 'Cui ', 'Chuo ', 'He ', 'Ya ', 'Qi ', 'Zhe ', 'Pei ', 'Liang ', 'Xian ', 'Pi ', 'Sha ', 'La ', 'Ze ', 'Qing ', 'Gua ', 'Pa ', 'Zhe ', 'Se ', 'Zhuan ', 'Nie ', 'Guo ', 'Luo ', 'Yan ', 'Di ', 'Quan ', 'Tan ', 'Bo ', 'Ding ', 'Lang ', 'Xiao ', '[?] ', 'Tang ', 'Chi ', 'Ti ', 'An ', 'Jiu ', 'Dan ', 'Ke ', 'Yong ', 'Wei ', 'Nan ', 'Shan ', 'Yu ', 'Zhe ', 'La ', 'Jie ', 'Hou ', 'Han ', 'Die ', 'Zhou ', 'Chai ', 'Wai ', 'Re ', 'Yu ', 'Yin ', 'Zan ', 'Yao ', 'Wo ', 'Mian ', 'Hu ', 'Yun ', 'Chuan ', 'Hui ', 'Huan ', 'Huan ', 'Xi ', 'He ', 'Ji ', 'Kui ', 'Zhong ', 'Wei ', 'Sha ', 'Xu ', 'Huang ', 'Du ', 'Nie ', 'Xuan ', 'Liang ', 'Yu ', 'Sang ', 'Chi ', 'Qiao ', 'Yan ', 'Dan ', 'Pen ', 'Can ', 'Li ', 'Yo ', 'Zha ', 'Wei ', 'Miao ', 'Ying ', 'Pen ', 'Phos ', 'Kui ', 'Xi ', 'Yu ', 'Jie ', 'Lou ', 'Ku ', 'Sao ', 'Huo ', 'Ti ', 'Yao ', 'He ', 'A ', 'Xiu ', 'Qiang ', 'Se ', 'Yong ', 'Su ', 'Hong ', 'Xie ', 'Yi ', 'Suo ', 'Ma ', 'Cha ', 'Hai ', 'Ke ', 'Ta ', 'Sang ', 'Tian ', 'Ru ', 'Sou ', 'Wa ', 'Ji ', 'Pang ', 'Wu ', 'Xian ', 'Shi ', 'Ge ', 'Zi ', 'Jie ', 'Luo ', 'Weng ', 'Wa ', 'Si ', 'Chi ', 'Hao ', 'Suo ', 'Jia ', 'Hai ', 'Suo ', 'Qin ', 'Nie ', 'He ', 'Cis ', 'Sai ', 'Ng ', 'Ge ', 'Na ', 'Dia ', 'Ai ', '[?] ', 'Tong ', 'Bi ', 'Ao ', 'Ao ', 'Lian ', 'Cui ', 'Zhe ', 'Mo ', 'Sou ', 'Sou ', 'Tan ']; <?php return ['Di ', 'Qi ', 'Jiao ', 'Chong ', 'Jiao ', 'Kai ', 'Tan ', 'San ', 'Cao ', 'Jia ', 'Ai ', 'Xiao ', 'Piao ', 'Lou ', 'Ga ', 'Gu ', 'Xiao ', 'Hu ', 'Hui ', 'Guo ', 'Ou ', 'Xian ', 'Ze ', 'Chang ', 'Xu ', 'Po ', 'De ', 'Ma ', 'Ma ', 'Hu ', 'Lei ', 'Du ', 'Ga ', 'Tang ', 'Ye ', 'Beng ', 'Ying ', 'Saai ', 'Jiao ', 'Mi ', 'Xiao ', 'Hua ', 'Mai ', 'Ran ', 'Zuo ', 'Peng ', 'Lao ', 'Xiao ', 'Ji ', 'Zhu ', 'Chao ', 'Kui ', 'Zui ', 'Xiao ', 'Si ', 'Hao ', 'Fu ', 'Liao ', 'Qiao ', 'Xi ', 'Xiu ', 'Tan ', 'Tan ', 'Mo ', 'Xun ', 'E ', 'Zun ', 'Fan ', 'Chi ', 'Hui ', 'Zan ', 'Chuang ', 'Cu ', 'Dan ', 'Yu ', 'Tun ', 'Cheng ', 'Jiao ', 'Ye ', 'Xi ', 'Qi ', 'Hao ', 'Lian ', 'Xu ', 'Deng ', 'Hui ', 'Yin ', 'Pu ', 'Jue ', 'Qin ', 'Xun ', 'Nie ', 'Lu ', 'Si ', 'Yan ', 'Ying ', 'Da ', 'Dan ', 'Yu ', 'Zhou ', 'Jin ', 'Nong ', 'Yue ', 'Hui ', 'Qi ', 'E ', 'Zao ', 'Yi ', 'Shi ', 'Jiao ', 'Yuan ', 'Ai ', 'Yong ', 'Jue ', 'Kuai ', 'Yu ', 'Pen ', 'Dao ', 'Ge ', 'Xin ', 'Dun ', 'Dang ', 'Sin ', 'Sai ', 'Pi ', 'Pi ', 'Yin ', 'Zui ', 'Ning ', 'Di ', 'Lan ', 'Ta ', 'Huo ', 'Ru ', 'Hao ', 'Xia ', 'Ya ', 'Duo ', 'Xi ', 'Chou ', 'Ji ', 'Jin ', 'Hao ', 'Ti ', 'Chang ', '[?] ', '[?] ', 'Ca ', 'Ti ', 'Lu ', 'Hui ', 'Bo ', 'You ', 'Nie ', 'Yin ', 'Hu ', 'Mo ', 'Huang ', 'Zhe ', 'Li ', 'Liu ', 'Haai ', 'Nang ', 'Xiao ', 'Mo ', 'Yan ', 'Li ', 'Lu ', 'Long ', 'Fu ', 'Dan ', 'Chen ', 'Pin ', 'Pi ', 'Xiang ', 'Huo ', 'Mo ', 'Xi ', 'Duo ', 'Ku ', 'Yan ', 'Chan ', 'Ying ', 'Rang ', 'Dian ', 'La ', 'Ta ', 'Xiao ', 'Jiao ', 'Chuo ', 'Huan ', 'Huo ', 'Zhuan ', 'Nie ', 'Xiao ', 'Ca ', 'Li ', 'Chan ', 'Chai ', 'Li ', 'Yi ', 'Luo ', 'Nang ', 'Zan ', 'Su ', 'Xi ', 'So ', 'Jian ', 'Za ', 'Zhu ', 'Lan ', 'Nie ', 'Nang ', '[?] ', '[?] ', 'Wei ', 'Hui ', 'Yin ', 'Qiu ', 'Si ', 'Nin ', 'Jian ', 'Hui ', 'Xin ', 'Yin ', 'Nan ', 'Tuan ', 'Tuan ', 'Dun ', 'Kang ', 'Yuan ', 'Jiong ', 'Pian ', 'Yun ', 'Cong ', 'Hu ', 'Hui ', 'Yuan ', 'You ', 'Guo ', 'Kun ', 'Cong ', 'Wei ', 'Tu ', 'Wei ', 'Lun ', 'Guo ', 'Qun ', 'Ri ', 'Ling ', 'Gu ', 'Guo ', 'Tai ', 'Guo ', 'Tu ', 'You ']; <?php return ['Guo ', 'Yin ', 'Hun ', 'Pu ', 'Yu ', 'Han ', 'Yuan ', 'Lun ', 'Quan ', 'Yu ', 'Qing ', 'Guo ', 'Chuan ', 'Wei ', 'Yuan ', 'Quan ', 'Ku ', 'Fu ', 'Yuan ', 'Yuan ', 'E ', 'Tu ', 'Tu ', 'Tu ', 'Tuan ', 'Lue ', 'Hui ', 'Yi ', 'Yuan ', 'Luan ', 'Luan ', 'Tu ', 'Ya ', 'Tu ', 'Ting ', 'Sheng ', 'Pu ', 'Lu ', 'Iri ', 'Ya ', 'Zai ', 'Wei ', 'Ge ', 'Yu ', 'Wu ', 'Gui ', 'Pi ', 'Yi ', 'Di ', 'Qian ', 'Qian ', 'Zhen ', 'Zhuo ', 'Dang ', 'Qia ', 'Akutsu ', 'Yama ', 'Kuang ', 'Chang ', 'Qi ', 'Nie ', 'Mo ', 'Ji ', 'Jia ', 'Zhi ', 'Zhi ', 'Ban ', 'Xun ', 'Tou ', 'Qin ', 'Fen ', 'Jun ', 'Keng ', 'Tun ', 'Fang ', 'Fen ', 'Ben ', 'Tan ', 'Kan ', 'Pi ', 'Zuo ', 'Keng ', 'Bi ', 'Xing ', 'Di ', 'Jing ', 'Ji ', 'Kuai ', 'Di ', 'Jing ', 'Jian ', 'Tan ', 'Li ', 'Ba ', 'Wu ', 'Fen ', 'Zhui ', 'Po ', 'Pan ', 'Tang ', 'Kun ', 'Qu ', 'Tan ', 'Zhi ', 'Tuo ', 'Gan ', 'Ping ', 'Dian ', 'Gua ', 'Ni ', 'Tai ', 'Pi ', 'Jiong ', 'Yang ', 'Fo ', 'Ao ', 'Liu ', 'Qiu ', 'Mu ', 'Ke ', 'Gou ', 'Xue ', 'Ba ', 'Chi ', 'Che ', 'Ling ', 'Zhu ', 'Fu ', 'Hu ', 'Zhi ', 'Chui ', 'La ', 'Long ', 'Long ', 'Lu ', 'Ao ', 'Tay ', 'Pao ', '[?] ', 'Xing ', 'Dong ', 'Ji ', 'Ke ', 'Lu ', 'Ci ', 'Chi ', 'Lei ', 'Gai ', 'Yin ', 'Hou ', 'Dui ', 'Zhao ', 'Fu ', 'Guang ', 'Yao ', 'Duo ', 'Duo ', 'Gui ', 'Cha ', 'Yang ', 'Yin ', 'Fa ', 'Gou ', 'Yuan ', 'Die ', 'Xie ', 'Ken ', 'Jiong ', 'Shou ', 'E ', 'Ha ', 'Dian ', 'Hong ', 'Wu ', 'Kua ', '[?] ', 'Tao ', 'Dang ', 'Kai ', 'Gake ', 'Nao ', 'An ', 'Xing ', 'Xian ', 'Huan ', 'Bang ', 'Pei ', 'Ba ', 'Yi ', 'Yin ', 'Han ', 'Xu ', 'Chui ', 'Cen ', 'Geng ', 'Ai ', 'Peng ', 'Fang ', 'Que ', 'Yong ', 'Xun ', 'Jia ', 'Di ', 'Mai ', 'Lang ', 'Xuan ', 'Cheng ', 'Yan ', 'Jin ', 'Zhe ', 'Lei ', 'Lie ', 'Bu ', 'Cheng ', 'Gomi ', 'Bu ', 'Shi ', 'Xun ', 'Guo ', 'Jiong ', 'Ye ', 'Nian ', 'Di ', 'Yu ', 'Bu ', 'Ya ', 'Juan ', 'Sui ', 'Pi ', 'Cheng ', 'Wan ', 'Ju ', 'Lun ', 'Zheng ', 'Kong ', 'Chong ', 'Dong ', 'Dai ', 'Tan ', 'An ', 'Cai ', 'Shu ', 'Beng ', 'Kan ', 'Zhi ', 'Duo ', 'Yi ', 'Zhi ', 'Yi ', 'Pei ', 'Ji ', 'Zhun ', 'Qi ', 'Sao ', 'Ju ', 'Ni ']; <?php return ['Ku ', 'Ke ', 'Tang ', 'Kun ', 'Ni ', 'Jian ', 'Dui ', 'Jin ', 'Gang ', 'Yu ', 'E ', 'Peng ', 'Gu ', 'Tu ', 'Leng ', '[?] ', 'Ya ', 'Qian ', '[?] ', 'An ', '[?] ', 'Duo ', 'Nao ', 'Tu ', 'Cheng ', 'Yin ', 'Hun ', 'Bi ', 'Lian ', 'Guo ', 'Die ', 'Zhuan ', 'Hou ', 'Bao ', 'Bao ', 'Yu ', 'Di ', 'Mao ', 'Jie ', 'Ruan ', 'E ', 'Geng ', 'Kan ', 'Zong ', 'Yu ', 'Huang ', 'E ', 'Yao ', 'Yan ', 'Bao ', 'Ji ', 'Mei ', 'Chang ', 'Du ', 'Tuo ', 'Yin ', 'Feng ', 'Zhong ', 'Jie ', 'Zhen ', 'Feng ', 'Gang ', 'Chuan ', 'Jian ', 'Pyeng ', 'Toride ', 'Xiang ', 'Huang ', 'Leng ', 'Duan ', '[?] ', 'Xuan ', 'Ji ', 'Ji ', 'Kuai ', 'Ying ', 'Ta ', 'Cheng ', 'Yong ', 'Kai ', 'Su ', 'Su ', 'Shi ', 'Mi ', 'Ta ', 'Weng ', 'Cheng ', 'Tu ', 'Tang ', 'Que ', 'Zhong ', 'Li ', 'Peng ', 'Bang ', 'Sai ', 'Zang ', 'Dui ', 'Tian ', 'Wu ', 'Cheng ', 'Xun ', 'Ge ', 'Zhen ', 'Ai ', 'Gong ', 'Yan ', 'Kan ', 'Tian ', 'Yuan ', 'Wen ', 'Xie ', 'Liu ', 'Ama ', 'Lang ', 'Chang ', 'Peng ', 'Beng ', 'Chen ', 'Cu ', 'Lu ', 'Ou ', 'Qian ', 'Mei ', 'Mo ', 'Zhuan ', 'Shuang ', 'Shu ', 'Lou ', 'Chi ', 'Man ', 'Biao ', 'Jing ', 'Qi ', 'Shu ', 'Di ', 'Zhang ', 'Kan ', 'Yong ', 'Dian ', 'Chen ', 'Zhi ', 'Xi ', 'Guo ', 'Qiang ', 'Jin ', 'Di ', 'Shang ', 'Mu ', 'Cui ', 'Yan ', 'Ta ', 'Zeng ', 'Qi ', 'Qiang ', 'Liang ', '[?] ', 'Zhui ', 'Qiao ', 'Zeng ', 'Xu ', 'Shan ', 'Shan ', 'Ba ', 'Pu ', 'Kuai ', 'Dong ', 'Fan ', 'Que ', 'Mo ', 'Dun ', 'Dun ', 'Dun ', 'Di ', 'Sheng ', 'Duo ', 'Duo ', 'Tan ', 'Deng ', 'Wu ', 'Fen ', 'Huang ', 'Tan ', 'Da ', 'Ye ', 'Sho ', 'Mama ', 'Yu ', 'Qiang ', 'Ji ', 'Qiao ', 'Ken ', 'Yi ', 'Pi ', 'Bi ', 'Dian ', 'Jiang ', 'Ye ', 'Yong ', 'Bo ', 'Tan ', 'Lan ', 'Ju ', 'Huai ', 'Dang ', 'Rang ', 'Qian ', 'Xun ', 'Lan ', 'Xi ', 'He ', 'Ai ', 'Ya ', 'Dao ', 'Hao ', 'Ruan ', 'Mama ', 'Lei ', 'Kuang ', 'Lu ', 'Yan ', 'Tan ', 'Wei ', 'Huai ', 'Long ', 'Long ', 'Rui ', 'Li ', 'Lin ', 'Rang ', 'Ten ', 'Xun ', 'Yan ', 'Lei ', 'Ba ', '[?] ', 'Shi ', 'Ren ', '[?] ', 'Zhuang ', 'Zhuang ', 'Sheng ', 'Yi ', 'Mai ', 'Ke ', 'Zhu ', 'Zhuang ', 'Hu ', 'Hu ', 'Kun ', 'Yi ', 'Hu ', 'Xu ', 'Kun ', 'Shou ', 'Mang ', 'Zun ']; <?php return ['Shou ', 'Yi ', 'Zhi ', 'Gu ', 'Chu ', 'Jiang ', 'Feng ', 'Bei ', 'Cay ', 'Bian ', 'Sui ', 'Qun ', 'Ling ', 'Fu ', 'Zuo ', 'Xia ', 'Xiong ', '[?] ', 'Nao ', 'Xia ', 'Kui ', 'Xi ', 'Wai ', 'Yuan ', 'Mao ', 'Su ', 'Duo ', 'Duo ', 'Ye ', 'Qing ', 'Uys ', 'Gou ', 'Gou ', 'Qi ', 'Meng ', 'Meng ', 'Yin ', 'Huo ', 'Chen ', 'Da ', 'Ze ', 'Tian ', 'Tai ', 'Fu ', 'Guai ', 'Yao ', 'Yang ', 'Hang ', 'Gao ', 'Shi ', 'Ben ', 'Tai ', 'Tou ', 'Yan ', 'Bi ', 'Yi ', 'Kua ', 'Jia ', 'Duo ', 'Kwu ', 'Kuang ', 'Yun ', 'Jia ', 'Pa ', 'En ', 'Lian ', 'Huan ', 'Di ', 'Yan ', 'Pao ', 'Quan ', 'Qi ', 'Nai ', 'Feng ', 'Xie ', 'Fen ', 'Dian ', '[?] ', 'Kui ', 'Zou ', 'Huan ', 'Qi ', 'Kai ', 'Zha ', 'Ben ', 'Yi ', 'Jiang ', 'Tao ', 'Zang ', 'Ben ', 'Xi ', 'Xiang ', 'Fei ', 'Diao ', 'Xun ', 'Keng ', 'Dian ', 'Ao ', 'She ', 'Weng ', 'Pan ', 'Ao ', 'Wu ', 'Ao ', 'Jiang ', 'Lian ', 'Duo ', 'Yun ', 'Jiang ', 'Shi ', 'Fen ', 'Huo ', 'Bi ', 'Lian ', 'Duo ', 'Nu ', 'Nu ', 'Ding ', 'Nai ', 'Qian ', 'Jian ', 'Ta ', 'Jiu ', 'Nan ', 'Cha ', 'Hao ', 'Xian ', 'Fan ', 'Ji ', 'Shuo ', 'Ru ', 'Fei ', 'Wang ', 'Hong ', 'Zhuang ', 'Fu ', 'Ma ', 'Dan ', 'Ren ', 'Fu ', 'Jing ', 'Yan ', 'Xie ', 'Wen ', 'Zhong ', 'Pa ', 'Du ', 'Ji ', 'Keng ', 'Zhong ', 'Yao ', 'Jin ', 'Yun ', 'Miao ', 'Pei ', 'Shi ', 'Yue ', 'Zhuang ', 'Niu ', 'Yan ', 'Na ', 'Xin ', 'Fen ', 'Bi ', 'Yu ', 'Tuo ', 'Feng ', 'Yuan ', 'Fang ', 'Wu ', 'Yu ', 'Gui ', 'Du ', 'Ba ', 'Ni ', 'Zhou ', 'Zhuo ', 'Zhao ', 'Da ', 'Nai ', 'Yuan ', 'Tou ', 'Xuan ', 'Zhi ', 'E ', 'Mei ', 'Mo ', 'Qi ', 'Bi ', 'Shen ', 'Qie ', 'E ', 'He ', 'Xu ', 'Fa ', 'Zheng ', 'Min ', 'Ban ', 'Mu ', 'Fu ', 'Ling ', 'Zi ', 'Zi ', 'Shi ', 'Ran ', 'Shan ', 'Yang ', 'Man ', 'Jie ', 'Gu ', 'Si ', 'Xing ', 'Wei ', 'Zi ', 'Ju ', 'Shan ', 'Pin ', 'Ren ', 'Yao ', 'Tong ', 'Jiang ', 'Shu ', 'Ji ', 'Gai ', 'Shang ', 'Kuo ', 'Juan ', 'Jiao ', 'Gou ', 'Mu ', 'Jian ', 'Jian ', 'Yi ', 'Nian ', 'Zhi ', 'Ji ', 'Ji ', 'Xian ', 'Heng ', 'Guang ', 'Jun ', 'Kua ', 'Yan ', 'Ming ', 'Lie ', 'Pei ', 'Yan ', 'You ', 'Yan ', 'Cha ', 'Shen ', 'Yin ', 'Chi ', 'Gui ', 'Quan ', 'Zi ']; <?php return ['Song ', 'Wei ', 'Hong ', 'Wa ', 'Lou ', 'Ya ', 'Rao ', 'Jiao ', 'Luan ', 'Ping ', 'Xian ', 'Shao ', 'Li ', 'Cheng ', 'Xiao ', 'Mang ', 'Fu ', 'Suo ', 'Wu ', 'Wei ', 'Ke ', 'Lai ', 'Chuo ', 'Ding ', 'Niang ', 'Xing ', 'Nan ', 'Yu ', 'Nuo ', 'Pei ', 'Nei ', 'Juan ', 'Shen ', 'Zhi ', 'Han ', 'Di ', 'Zhuang ', 'E ', 'Pin ', 'Tui ', 'Han ', 'Mian ', 'Wu ', 'Yan ', 'Wu ', 'Xi ', 'Yan ', 'Yu ', 'Si ', 'Yu ', 'Wa ', '[?] ', 'Xian ', 'Ju ', 'Qu ', 'Shui ', 'Qi ', 'Xian ', 'Zhui ', 'Dong ', 'Chang ', 'Lu ', 'Ai ', 'E ', 'E ', 'Lou ', 'Mian ', 'Cong ', 'Pou ', 'Ju ', 'Po ', 'Cai ', 'Ding ', 'Wan ', 'Biao ', 'Xiao ', 'Shu ', 'Qi ', 'Hui ', 'Fu ', 'E ', 'Wo ', 'Tan ', 'Fei ', 'Wei ', 'Jie ', 'Tian ', 'Ni ', 'Quan ', 'Jing ', 'Hun ', 'Jing ', 'Qian ', 'Dian ', 'Xing ', 'Hu ', 'Wa ', 'Lai ', 'Bi ', 'Yin ', 'Chou ', 'Chuo ', 'Fu ', 'Jing ', 'Lun ', 'Yan ', 'Lan ', 'Kun ', 'Yin ', 'Ya ', 'Ju ', 'Li ', 'Dian ', 'Xian ', 'Hwa ', 'Hua ', 'Ying ', 'Chan ', 'Shen ', 'Ting ', 'Dang ', 'Yao ', 'Wu ', 'Nan ', 'Ruo ', 'Jia ', 'Tou ', 'Xu ', 'Yu ', 'Wei ', 'Ti ', 'Rou ', 'Mei ', 'Dan ', 'Ruan ', 'Qin ', 'Hui ', 'Wu ', 'Qian ', 'Chun ', 'Mao ', 'Fu ', 'Jie ', 'Duan ', 'Xi ', 'Zhong ', 'Mei ', 'Huang ', 'Mian ', 'An ', 'Ying ', 'Xuan ', 'Jie ', 'Wei ', 'Mei ', 'Yuan ', 'Zhen ', 'Qiu ', 'Ti ', 'Xie ', 'Tuo ', 'Lian ', 'Mao ', 'Ran ', 'Si ', 'Pian ', 'Wei ', 'Wa ', 'Jiu ', 'Hu ', 'Ao ', '[?] ', 'Bou ', 'Xu ', 'Tou ', 'Gui ', 'Zou ', 'Yao ', 'Pi ', 'Xi ', 'Yuan ', 'Ying ', 'Rong ', 'Ru ', 'Chi ', 'Liu ', 'Mei ', 'Pan ', 'Ao ', 'Ma ', 'Gou ', 'Kui ', 'Qin ', 'Jia ', 'Sao ', 'Zhen ', 'Yuan ', 'Cha ', 'Yong ', 'Ming ', 'Ying ', 'Ji ', 'Su ', 'Niao ', 'Xian ', 'Tao ', 'Pang ', 'Lang ', 'Nao ', 'Bao ', 'Ai ', 'Pi ', 'Pin ', 'Yi ', 'Piao ', 'Yu ', 'Lei ', 'Xuan ', 'Man ', 'Yi ', 'Zhang ', 'Kang ', 'Yong ', 'Ni ', 'Li ', 'Di ', 'Gui ', 'Yan ', 'Jin ', 'Zhuan ', 'Chang ', 'Ce ', 'Han ', 'Nen ', 'Lao ', 'Mo ', 'Zhe ', 'Hu ', 'Hu ', 'Ao ', 'Nen ', 'Qiang ', 'Ma ', 'Pie ', 'Gu ', 'Wu ', 'Jiao ', 'Tuo ', 'Zhan ', 'Mao ', 'Xian ', 'Xian ', 'Mo ', 'Liao ', 'Lian ', 'Hua ']; <?php return ['Gui ', 'Deng ', 'Zhi ', 'Xu ', 'Yi ', 'Hua ', 'Xi ', 'Hui ', 'Rao ', 'Xi ', 'Yan ', 'Chan ', 'Jiao ', 'Mei ', 'Fan ', 'Fan ', 'Xian ', 'Yi ', 'Wei ', 'Jiao ', 'Fu ', 'Shi ', 'Bi ', 'Shan ', 'Sui ', 'Qiang ', 'Lian ', 'Huan ', 'Xin ', 'Niao ', 'Dong ', 'Yi ', 'Can ', 'Ai ', 'Niang ', 'Neng ', 'Ma ', 'Tiao ', 'Chou ', 'Jin ', 'Ci ', 'Yu ', 'Pin ', 'Yong ', 'Xu ', 'Nai ', 'Yan ', 'Tai ', 'Ying ', 'Can ', 'Niao ', 'Wo ', 'Ying ', 'Mian ', 'Kaka ', 'Ma ', 'Shen ', 'Xing ', 'Ni ', 'Du ', 'Liu ', 'Yuan ', 'Lan ', 'Yan ', 'Shuang ', 'Ling ', 'Jiao ', 'Niang ', 'Lan ', 'Xian ', 'Ying ', 'Shuang ', 'Shuai ', 'Quan ', 'Mi ', 'Li ', 'Luan ', 'Yan ', 'Zhu ', 'Lan ', 'Zi ', 'Jie ', 'Jue ', 'Jue ', 'Kong ', 'Yun ', 'Zi ', 'Zi ', 'Cun ', 'Sun ', 'Fu ', 'Bei ', 'Zi ', 'Xiao ', 'Xin ', 'Meng ', 'Si ', 'Tai ', 'Bao ', 'Ji ', 'Gu ', 'Nu ', 'Xue ', '[?] ', 'Zhuan ', 'Hai ', 'Luan ', 'Sun ', 'Huai ', 'Mie ', 'Cong ', 'Qian ', 'Shu ', 'Chan ', 'Ya ', 'Zi ', 'Ni ', 'Fu ', 'Zi ', 'Li ', 'Xue ', 'Bo ', 'Ru ', 'Lai ', 'Nie ', 'Nie ', 'Ying ', 'Luan ', 'Mian ', 'Zhu ', 'Rong ', 'Ta ', 'Gui ', 'Zhai ', 'Qiong ', 'Yu ', 'Shou ', 'An ', 'Tu ', 'Song ', 'Wan ', 'Rou ', 'Yao ', 'Hong ', 'Yi ', 'Jing ', 'Zhun ', 'Mi ', 'Zhu ', 'Dang ', 'Hong ', 'Zong ', 'Guan ', 'Zhou ', 'Ding ', 'Wan ', 'Yi ', 'Bao ', 'Shi ', 'Shi ', 'Chong ', 'Shen ', 'Ke ', 'Xuan ', 'Shi ', 'You ', 'Huan ', 'Yi ', 'Tiao ', 'Shi ', 'Xian ', 'Gong ', 'Cheng ', 'Qun ', 'Gong ', 'Xiao ', 'Zai ', 'Zha ', 'Bao ', 'Hai ', 'Yan ', 'Xiao ', 'Jia ', 'Shen ', 'Chen ', 'Rong ', 'Huang ', 'Mi ', 'Kou ', 'Kuan ', 'Bin ', 'Su ', 'Cai ', 'Zan ', 'Ji ', 'Yuan ', 'Ji ', 'Yin ', 'Mi ', 'Kou ', 'Qing ', 'Que ', 'Zhen ', 'Jian ', 'Fu ', 'Ning ', 'Bing ', 'Huan ', 'Mei ', 'Qin ', 'Han ', 'Yu ', 'Shi ', 'Ning ', 'Qin ', 'Ning ', 'Zhi ', 'Yu ', 'Bao ', 'Kuan ', 'Ning ', 'Qin ', 'Mo ', 'Cha ', 'Ju ', 'Gua ', 'Qin ', 'Hu ', 'Wu ', 'Liao ', 'Shi ', 'Zhu ', 'Zhai ', 'Shen ', 'Wei ', 'Xie ', 'Kuan ', 'Hui ', 'Liao ', 'Jun ', 'Huan ', 'Yi ', 'Yi ', 'Bao ', 'Qin ', 'Chong ', 'Bao ', 'Feng ', 'Cun ', 'Dui ', 'Si ', 'Xun ', 'Dao ', 'Lu ', 'Dui ', 'Shou ']; <?php return ['Po ', 'Feng ', 'Zhuan ', 'Fu ', 'She ', 'Ke ', 'Jiang ', 'Jiang ', 'Zhuan ', 'Wei ', 'Zun ', 'Xun ', 'Shu ', 'Dui ', 'Dao ', 'Xiao ', 'Ji ', 'Shao ', 'Er ', 'Er ', 'Er ', 'Ga ', 'Jian ', 'Shu ', 'Chen ', 'Shang ', 'Shang ', 'Mo ', 'Ga ', 'Chang ', 'Liao ', 'Xian ', 'Xian ', '[?] ', 'Wang ', 'Wang ', 'You ', 'Liao ', 'Liao ', 'Yao ', 'Mang ', 'Wang ', 'Wang ', 'Wang ', 'Ga ', 'Yao ', 'Duo ', 'Kui ', 'Zhong ', 'Jiu ', 'Gan ', 'Gu ', 'Gan ', 'Tui ', 'Gan ', 'Gan ', 'Shi ', 'Yin ', 'Chi ', 'Kao ', 'Ni ', 'Jin ', 'Wei ', 'Niao ', 'Ju ', 'Pi ', 'Ceng ', 'Xi ', 'Bi ', 'Ju ', 'Jie ', 'Tian ', 'Qu ', 'Ti ', 'Jie ', 'Wu ', 'Diao ', 'Shi ', 'Shi ', 'Ping ', 'Ji ', 'Xie ', 'Chen ', 'Xi ', 'Ni ', 'Zhan ', 'Xi ', '[?] ', 'Man ', 'E ', 'Lou ', 'Ping ', 'Ti ', 'Fei ', 'Shu ', 'Xie ', 'Tu ', 'Lu ', 'Lu ', 'Xi ', 'Ceng ', 'Lu ', 'Ju ', 'Xie ', 'Ju ', 'Jue ', 'Liao ', 'Jue ', 'Shu ', 'Xi ', 'Che ', 'Tun ', 'Ni ', 'Shan ', '[?] ', 'Xian ', 'Li ', 'Xue ', 'Nata ', '[?] ', 'Long ', 'Yi ', 'Qi ', 'Ren ', 'Wu ', 'Han ', 'Shen ', 'Yu ', 'Chu ', 'Sui ', 'Qi ', '[?] ', 'Yue ', 'Ban ', 'Yao ', 'Ang ', 'Ya ', 'Wu ', 'Jie ', 'E ', 'Ji ', 'Qian ', 'Fen ', 'Yuan ', 'Qi ', 'Cen ', 'Qian ', 'Qi ', 'Cha ', 'Jie ', 'Qu ', 'Gang ', 'Xian ', 'Ao ', 'Lan ', 'Dao ', 'Ba ', 'Zuo ', 'Zuo ', 'Yang ', 'Ju ', 'Gang ', 'Ke ', 'Gou ', 'Xue ', 'Bei ', 'Li ', 'Tiao ', 'Ju ', 'Yan ', 'Fu ', 'Xiu ', 'Jia ', 'Ling ', 'Tuo ', 'Pei ', 'You ', 'Dai ', 'Kuang ', 'Yue ', 'Qu ', 'Hu ', 'Po ', 'Min ', 'An ', 'Tiao ', 'Ling ', 'Chi ', 'Yuri ', 'Dong ', 'Cem ', 'Kui ', 'Xiu ', 'Mao ', 'Tong ', 'Xue ', 'Yi ', 'Kura ', 'He ', 'Ke ', 'Luo ', 'E ', 'Fu ', 'Xun ', 'Die ', 'Lu ', 'An ', 'Er ', 'Gai ', 'Quan ', 'Tong ', 'Yi ', 'Mu ', 'Shi ', 'An ', 'Wei ', 'Hu ', 'Zhi ', 'Mi ', 'Li ', 'Ji ', 'Tong ', 'Wei ', 'You ', 'Sang ', 'Xia ', 'Li ', 'Yao ', 'Jiao ', 'Zheng ', 'Luan ', 'Jiao ', 'E ', 'E ', 'Yu ', 'Ye ', 'Bu ', 'Qiao ', 'Qun ', 'Feng ', 'Feng ', 'Nao ', 'Li ', 'You ', 'Xian ', 'Hong ', 'Dao ', 'Shen ', 'Cheng ', 'Tu ', 'Geng ', 'Jun ', 'Hao ', 'Xia ', 'Yin ', 'Yu ']; <?php return ['Lang ', 'Kan ', 'Lao ', 'Lai ', 'Xian ', 'Que ', 'Kong ', 'Chong ', 'Chong ', 'Ta ', 'Lin ', 'Hua ', 'Ju ', 'Lai ', 'Qi ', 'Min ', 'Kun ', 'Kun ', 'Zu ', 'Gu ', 'Cui ', 'Ya ', 'Ya ', 'Gang ', 'Lun ', 'Lun ', 'Leng ', 'Jue ', 'Duo ', 'Zheng ', 'Guo ', 'Yin ', 'Dong ', 'Han ', 'Zheng ', 'Wei ', 'Yao ', 'Pi ', 'Yan ', 'Song ', 'Jie ', 'Beng ', 'Zu ', 'Jue ', 'Dong ', 'Zhan ', 'Gu ', 'Yin ', '[?] ', 'Ze ', 'Huang ', 'Yu ', 'Wei ', 'Yang ', 'Feng ', 'Qiu ', 'Dun ', 'Ti ', 'Yi ', 'Zhi ', 'Shi ', 'Zai ', 'Yao ', 'E ', 'Zhu ', 'Kan ', 'Lu ', 'Yan ', 'Mei ', 'Gan ', 'Ji ', 'Ji ', 'Huan ', 'Ting ', 'Sheng ', 'Mei ', 'Qian ', 'Wu ', 'Yu ', 'Zong ', 'Lan ', 'Jue ', 'Yan ', 'Yan ', 'Wei ', 'Zong ', 'Cha ', 'Sui ', 'Rong ', 'Yamashina ', 'Qin ', 'Yu ', 'Kewashii ', 'Lou ', 'Tu ', 'Dui ', 'Xi ', 'Weng ', 'Cang ', 'Dang ', 'Hong ', 'Jie ', 'Ai ', 'Liu ', 'Wu ', 'Song ', 'Qiao ', 'Zi ', 'Wei ', 'Beng ', 'Dian ', 'Cuo ', 'Qian ', 'Yong ', 'Nie ', 'Cuo ', 'Ji ', '[?] ', 'Tao ', 'Song ', 'Zong ', 'Jiang ', 'Liao ', 'Kang ', 'Chan ', 'Die ', 'Cen ', 'Ding ', 'Tu ', 'Lou ', 'Zhang ', 'Zhan ', 'Zhan ', 'Ao ', 'Cao ', 'Qu ', 'Qiang ', 'Zui ', 'Zui ', 'Dao ', 'Dao ', 'Xi ', 'Yu ', 'Bo ', 'Long ', 'Xiang ', 'Ceng ', 'Bo ', 'Qin ', 'Jiao ', 'Yan ', 'Lao ', 'Zhan ', 'Lin ', 'Liao ', 'Liao ', 'Jin ', 'Deng ', 'Duo ', 'Zun ', 'Jiao ', 'Gui ', 'Yao ', 'Qiao ', 'Yao ', 'Jue ', 'Zhan ', 'Yi ', 'Xue ', 'Nao ', 'Ye ', 'Ye ', 'Yi ', 'E ', 'Xian ', 'Ji ', 'Xie ', 'Ke ', 'Xi ', 'Di ', 'Ao ', 'Zui ', '[?] ', 'Ni ', 'Rong ', 'Dao ', 'Ling ', 'Za ', 'Yu ', 'Yue ', 'Yin ', '[?] ', 'Jie ', 'Li ', 'Sui ', 'Long ', 'Long ', 'Dian ', 'Ying ', 'Xi ', 'Ju ', 'Chan ', 'Ying ', 'Kui ', 'Yan ', 'Wei ', 'Nao ', 'Quan ', 'Chao ', 'Cuan ', 'Luan ', 'Dian ', 'Dian ', '[?] ', 'Yan ', 'Yan ', 'Yan ', 'Nao ', 'Yan ', 'Chuan ', 'Gui ', 'Chuan ', 'Zhou ', 'Huang ', 'Jing ', 'Xun ', 'Chao ', 'Chao ', 'Lie ', 'Gong ', 'Zuo ', 'Qiao ', 'Ju ', 'Gong ', 'Kek ', 'Wu ', 'Pwu ', 'Pwu ', 'Chai ', 'Qiu ', 'Qiu ', 'Ji ', 'Yi ', 'Si ', 'Ba ', 'Zhi ', 'Zhao ', 'Xiang ', 'Yi ', 'Jin ', 'Xun ', 'Juan ', 'Phas ', 'Xun ', 'Jin ', 'Fu ']; <?php return ['Za ', 'Bi ', 'Shi ', 'Bu ', 'Ding ', 'Shuai ', 'Fan ', 'Nie ', 'Shi ', 'Fen ', 'Pa ', 'Zhi ', 'Xi ', 'Hu ', 'Dan ', 'Wei ', 'Zhang ', 'Tang ', 'Dai ', 'Ma ', 'Pei ', 'Pa ', 'Tie ', 'Fu ', 'Lian ', 'Zhi ', 'Zhou ', 'Bo ', 'Zhi ', 'Di ', 'Mo ', 'Yi ', 'Yi ', 'Ping ', 'Qia ', 'Juan ', 'Ru ', 'Shuai ', 'Dai ', 'Zheng ', 'Shui ', 'Qiao ', 'Zhen ', 'Shi ', 'Qun ', 'Xi ', 'Bang ', 'Dai ', 'Gui ', 'Chou ', 'Ping ', 'Zhang ', 'Sha ', 'Wan ', 'Dai ', 'Wei ', 'Chang ', 'Sha ', 'Qi ', 'Ze ', 'Guo ', 'Mao ', 'Du ', 'Hou ', 'Zheng ', 'Xu ', 'Mi ', 'Wei ', 'Wo ', 'Fu ', 'Yi ', 'Bang ', 'Ping ', 'Tazuna ', 'Gong ', 'Pan ', 'Huang ', 'Dao ', 'Mi ', 'Jia ', 'Teng ', 'Hui ', 'Zhong ', 'Shan ', 'Man ', 'Mu ', 'Biao ', 'Guo ', 'Ze ', 'Mu ', 'Bang ', 'Zhang ', 'Jiong ', 'Chan ', 'Fu ', 'Zhi ', 'Hu ', 'Fan ', 'Chuang ', 'Bi ', 'Hei ', '[?] ', 'Mi ', 'Qiao ', 'Chan ', 'Fen ', 'Meng ', 'Bang ', 'Chou ', 'Mie ', 'Chu ', 'Jie ', 'Xian ', 'Lan ', 'Gan ', 'Ping ', 'Nian ', 'Qian ', 'Bing ', 'Bing ', 'Xing ', 'Gan ', 'Yao ', 'Huan ', 'You ', 'You ', 'Ji ', 'Yan ', 'Pi ', 'Ting ', 'Ze ', 'Guang ', 'Zhuang ', 'Mo ', 'Qing ', 'Bi ', 'Qin ', 'Dun ', 'Chuang ', 'Gui ', 'Ya ', 'Bai ', 'Jie ', 'Xu ', 'Lu ', 'Wu ', '[?] ', 'Ku ', 'Ying ', 'Di ', 'Pao ', 'Dian ', 'Ya ', 'Miao ', 'Geng ', 'Ci ', 'Fu ', 'Tong ', 'Pang ', 'Fei ', 'Xiang ', 'Yi ', 'Zhi ', 'Tiao ', 'Zhi ', 'Xiu ', 'Du ', 'Zuo ', 'Xiao ', 'Tu ', 'Gui ', 'Ku ', 'Pang ', 'Ting ', 'You ', 'Bu ', 'Ding ', 'Cheng ', 'Lai ', 'Bei ', 'Ji ', 'An ', 'Shu ', 'Kang ', 'Yong ', 'Tuo ', 'Song ', 'Shu ', 'Qing ', 'Yu ', 'Yu ', 'Miao ', 'Sou ', 'Ce ', 'Xiang ', 'Fei ', 'Jiu ', 'He ', 'Hui ', 'Liu ', 'Sha ', 'Lian ', 'Lang ', 'Sou ', 'Jian ', 'Pou ', 'Qing ', 'Jiu ', 'Jiu ', 'Qin ', 'Ao ', 'Kuo ', 'Lou ', 'Yin ', 'Liao ', 'Dai ', 'Lu ', 'Yi ', 'Chu ', 'Chan ', 'Tu ', 'Si ', 'Xin ', 'Miao ', 'Chang ', 'Wu ', 'Fei ', 'Guang ', 'Koc ', 'Kuai ', 'Bi ', 'Qiang ', 'Xie ', 'Lin ', 'Lin ', 'Liao ', 'Lu ', '[?] ', 'Ying ', 'Xian ', 'Ting ', 'Yong ', 'Li ', 'Ting ', 'Yin ', 'Xun ', 'Yan ', 'Ting ', 'Di ', 'Po ', 'Jian ', 'Hui ', 'Nai ', 'Hui ', 'Gong ', 'Nian ']; <?php return ['Kai ', 'Bian ', 'Yi ', 'Qi ', 'Nong ', 'Fen ', 'Ju ', 'Yan ', 'Yi ', 'Zang ', 'Bi ', 'Yi ', 'Yi ', 'Er ', 'San ', 'Shi ', 'Er ', 'Shi ', 'Shi ', 'Gong ', 'Diao ', 'Yin ', 'Hu ', 'Fu ', 'Hong ', 'Wu ', 'Tui ', 'Chi ', 'Jiang ', 'Ba ', 'Shen ', 'Di ', 'Zhang ', 'Jue ', 'Tao ', 'Fu ', 'Di ', 'Mi ', 'Xian ', 'Hu ', 'Chao ', 'Nu ', 'Jing ', 'Zhen ', 'Yi ', 'Mi ', 'Quan ', 'Wan ', 'Shao ', 'Ruo ', 'Xuan ', 'Jing ', 'Dun ', 'Zhang ', 'Jiang ', 'Qiang ', 'Peng ', 'Dan ', 'Qiang ', 'Bi ', 'Bi ', 'She ', 'Dan ', 'Jian ', 'Gou ', 'Sei ', 'Fa ', 'Bi ', 'Kou ', 'Nagi ', 'Bie ', 'Xiao ', 'Dan ', 'Kuo ', 'Qiang ', 'Hong ', 'Mi ', 'Kuo ', 'Wan ', 'Jue ', 'Ji ', 'Ji ', 'Gui ', 'Dang ', 'Lu ', 'Lu ', 'Tuan ', 'Hui ', 'Zhi ', 'Hui ', 'Hui ', 'Yi ', 'Yi ', 'Yi ', 'Yi ', 'Huo ', 'Huo ', 'Shan ', 'Xing ', 'Wen ', 'Tong ', 'Yan ', 'Yan ', 'Yu ', 'Chi ', 'Cai ', 'Biao ', 'Diao ', 'Bin ', 'Peng ', 'Yong ', 'Piao ', 'Zhang ', 'Ying ', 'Chi ', 'Chi ', 'Zhuo ', 'Tuo ', 'Ji ', 'Pang ', 'Zhong ', 'Yi ', 'Wang ', 'Che ', 'Bi ', 'Chi ', 'Ling ', 'Fu ', 'Wang ', 'Zheng ', 'Cu ', 'Wang ', 'Jing ', 'Dai ', 'Xi ', 'Xun ', 'Hen ', 'Yang ', 'Huai ', 'Lu ', 'Hou ', 'Wa ', 'Cheng ', 'Zhi ', 'Xu ', 'Jing ', 'Tu ', 'Cong ', '[?] ', 'Lai ', 'Cong ', 'De ', 'Pai ', 'Xi ', '[?] ', 'Qi ', 'Chang ', 'Zhi ', 'Cong ', 'Zhou ', 'Lai ', 'Yu ', 'Xie ', 'Jie ', 'Jian ', 'Chi ', 'Jia ', 'Bian ', 'Huang ', 'Fu ', 'Xun ', 'Wei ', 'Pang ', 'Yao ', 'Wei ', 'Xi ', 'Zheng ', 'Piao ', 'Chi ', 'De ', 'Zheng ', 'Zheng ', 'Bie ', 'De ', 'Chong ', 'Che ', 'Jiao ', 'Wei ', 'Jiao ', 'Hui ', 'Mei ', 'Long ', 'Xiang ', 'Bao ', 'Qu ', 'Xin ', 'Shu ', 'Bi ', 'Yi ', 'Le ', 'Ren ', 'Dao ', 'Ding ', 'Gai ', 'Ji ', 'Ren ', 'Ren ', 'Chan ', 'Tan ', 'Te ', 'Te ', 'Gan ', 'Qi ', 'Shi ', 'Cun ', 'Zhi ', 'Wang ', 'Mang ', 'Xi ', 'Fan ', 'Ying ', 'Tian ', 'Min ', 'Min ', 'Zhong ', 'Chong ', 'Wu ', 'Ji ', 'Wu ', 'Xi ', 'Ye ', 'You ', 'Wan ', 'Cong ', 'Zhong ', 'Kuai ', 'Yu ', 'Bian ', 'Zhi ', 'Qi ', 'Cui ', 'Chen ', 'Tai ', 'Tun ', 'Qian ', 'Nian ', 'Hun ', 'Xiong ', 'Niu ', 'Wang ', 'Xian ', 'Xin ', 'Kang ', 'Hu ', 'Kai ', 'Fen ']; <?php return ['Huai ', 'Tai ', 'Song ', 'Wu ', 'Ou ', 'Chang ', 'Chuang ', 'Ju ', 'Yi ', 'Bao ', 'Chao ', 'Min ', 'Pei ', 'Zuo ', 'Zen ', 'Yang ', 'Kou ', 'Ban ', 'Nu ', 'Nao ', 'Zheng ', 'Pa ', 'Bu ', 'Tie ', 'Gu ', 'Hu ', 'Ju ', 'Da ', 'Lian ', 'Si ', 'Chou ', 'Di ', 'Dai ', 'Yi ', 'Tu ', 'You ', 'Fu ', 'Ji ', 'Peng ', 'Xing ', 'Yuan ', 'Ni ', 'Guai ', 'Fu ', 'Xi ', 'Bi ', 'You ', 'Qie ', 'Xuan ', 'Cong ', 'Bing ', 'Huang ', 'Xu ', 'Chu ', 'Pi ', 'Xi ', 'Xi ', 'Tan ', 'Koraeru ', 'Zong ', 'Dui ', '[?] ', 'Ki ', 'Yi ', 'Chi ', 'Ren ', 'Xun ', 'Shi ', 'Xi ', 'Lao ', 'Heng ', 'Kuang ', 'Mu ', 'Zhi ', 'Xie ', 'Lian ', 'Tiao ', 'Huang ', 'Die ', 'Hao ', 'Kong ', 'Gui ', 'Heng ', 'Xi ', 'Xiao ', 'Shu ', 'S ', 'Kua ', 'Qiu ', 'Yang ', 'Hui ', 'Hui ', 'Chi ', 'Jia ', 'Yi ', 'Xiong ', 'Guai ', 'Lin ', 'Hui ', 'Zi ', 'Xu ', 'Chi ', 'Xiang ', 'Nu ', 'Hen ', 'En ', 'Ke ', 'Tong ', 'Tian ', 'Gong ', 'Quan ', 'Xi ', 'Qia ', 'Yue ', 'Peng ', 'Ken ', 'De ', 'Hui ', 'E ', 'Kyuu ', 'Tong ', 'Yan ', 'Kai ', 'Ce ', 'Nao ', 'Yun ', 'Mang ', 'Yong ', 'Yong ', 'Yuan ', 'Pi ', 'Kun ', 'Qiao ', 'Yue ', 'Yu ', 'Yu ', 'Jie ', 'Xi ', 'Zhe ', 'Lin ', 'Ti ', 'Han ', 'Hao ', 'Qie ', 'Ti ', 'Bu ', 'Yi ', 'Qian ', 'Hui ', 'Xi ', 'Bei ', 'Man ', 'Yi ', 'Heng ', 'Song ', 'Quan ', 'Cheng ', 'Hui ', 'Wu ', 'Wu ', 'You ', 'Li ', 'Liang ', 'Huan ', 'Cong ', 'Yi ', 'Yue ', 'Li ', 'Nin ', 'Nao ', 'E ', 'Que ', 'Xuan ', 'Qian ', 'Wu ', 'Min ', 'Cong ', 'Fei ', 'Bei ', 'Duo ', 'Cui ', 'Chang ', 'Men ', 'Li ', 'Ji ', 'Guan ', 'Guan ', 'Xing ', 'Dao ', 'Qi ', 'Kong ', 'Tian ', 'Lun ', 'Xi ', 'Kan ', 'Kun ', 'Ni ', 'Qing ', 'Chou ', 'Dun ', 'Guo ', 'Chan ', 'Liang ', 'Wan ', 'Yuan ', 'Jin ', 'Ji ', 'Lin ', 'Yu ', 'Huo ', 'He ', 'Quan ', 'Tan ', 'Ti ', 'Ti ', 'Nie ', 'Wang ', 'Chuo ', 'Bu ', 'Hun ', 'Xi ', 'Tang ', 'Xin ', 'Wei ', 'Hui ', 'E ', 'Rui ', 'Zong ', 'Jian ', 'Yong ', 'Dian ', 'Ju ', 'Can ', 'Cheng ', 'De ', 'Bei ', 'Qie ', 'Can ', 'Dan ', 'Guan ', 'Duo ', 'Nao ', 'Yun ', 'Xiang ', 'Zhui ', 'Die ', 'Huang ', 'Chun ', 'Qiong ', 'Re ', 'Xing ', 'Ce ', 'Bian ', 'Hun ', 'Zong ', 'Ti ']; <?php return ['Qiao ', 'Chou ', 'Bei ', 'Xuan ', 'Wei ', 'Ge ', 'Qian ', 'Wei ', 'Yu ', 'Yu ', 'Bi ', 'Xuan ', 'Huan ', 'Min ', 'Bi ', 'Yi ', 'Mian ', 'Yong ', 'Kai ', 'Dang ', 'Yin ', 'E ', 'Chen ', 'Mou ', 'Ke ', 'Ke ', 'Yu ', 'Ai ', 'Qie ', 'Yan ', 'Nuo ', 'Gan ', 'Yun ', 'Zong ', 'Sai ', 'Leng ', 'Fen ', '[?] ', 'Kui ', 'Kui ', 'Que ', 'Gong ', 'Yun ', 'Su ', 'Su ', 'Qi ', 'Yao ', 'Song ', 'Huang ', 'Ji ', 'Gu ', 'Ju ', 'Chuang ', 'Ni ', 'Xie ', 'Kai ', 'Zheng ', 'Yong ', 'Cao ', 'Sun ', 'Shen ', 'Bo ', 'Kai ', 'Yuan ', 'Xie ', 'Hun ', 'Yong ', 'Yang ', 'Li ', 'Sao ', 'Tao ', 'Yin ', 'Ci ', 'Xu ', 'Qian ', 'Tai ', 'Huang ', 'Yun ', 'Shen ', 'Ming ', '[?] ', 'She ', 'Cong ', 'Piao ', 'Mo ', 'Mu ', 'Guo ', 'Chi ', 'Can ', 'Can ', 'Can ', 'Cui ', 'Min ', 'Te ', 'Zhang ', 'Tong ', 'Ao ', 'Shuang ', 'Man ', 'Guan ', 'Que ', 'Zao ', 'Jiu ', 'Hui ', 'Kai ', 'Lian ', 'Ou ', 'Song ', 'Jin ', 'Yin ', 'Lu ', 'Shang ', 'Wei ', 'Tuan ', 'Man ', 'Qian ', 'She ', 'Yong ', 'Qing ', 'Kang ', 'Di ', 'Zhi ', 'Lou ', 'Juan ', 'Qi ', 'Qi ', 'Yu ', 'Ping ', 'Liao ', 'Cong ', 'You ', 'Chong ', 'Zhi ', 'Tong ', 'Cheng ', 'Qi ', 'Qu ', 'Peng ', 'Bei ', 'Bie ', 'Chun ', 'Jiao ', 'Zeng ', 'Chi ', 'Lian ', 'Ping ', 'Kui ', 'Hui ', 'Qiao ', 'Cheng ', 'Yin ', 'Yin ', 'Xi ', 'Xi ', 'Dan ', 'Tan ', 'Duo ', 'Dui ', 'Dui ', 'Su ', 'Jue ', 'Ce ', 'Xiao ', 'Fan ', 'Fen ', 'Lao ', 'Lao ', 'Chong ', 'Han ', 'Qi ', 'Xian ', 'Min ', 'Jing ', 'Liao ', 'Wu ', 'Can ', 'Jue ', 'Cu ', 'Xian ', 'Tan ', 'Sheng ', 'Pi ', 'Yi ', 'Chu ', 'Xian ', 'Nao ', 'Dan ', 'Tan ', 'Jing ', 'Song ', 'Han ', 'Jiao ', 'Wai ', 'Huan ', 'Dong ', 'Qin ', 'Qin ', 'Qu ', 'Cao ', 'Ken ', 'Xie ', 'Ying ', 'Ao ', 'Mao ', 'Yi ', 'Lin ', 'Se ', 'Jun ', 'Huai ', 'Men ', 'Lan ', 'Ai ', 'Lin ', 'Yan ', 'Gua ', 'Xia ', 'Chi ', 'Yu ', 'Yin ', 'Dai ', 'Meng ', 'Ai ', 'Meng ', 'Dui ', 'Qi ', 'Mo ', 'Lan ', 'Men ', 'Chou ', 'Zhi ', 'Nuo ', 'Nuo ', 'Yan ', 'Yang ', 'Bo ', 'Zhi ', 'Kuang ', 'Kuang ', 'You ', 'Fu ', 'Liu ', 'Mie ', 'Cheng ', '[?] ', 'Chan ', 'Meng ', 'Lan ', 'Huai ', 'Xuan ', 'Rang ', 'Chan ', 'Ji ', 'Ju ', 'Huan ', 'She ', 'Yi ']; <?php return ['Lian ', 'Nan ', 'Mi ', 'Tang ', 'Jue ', 'Gang ', 'Gang ', 'Gang ', 'Ge ', 'Yue ', 'Wu ', 'Jian ', 'Xu ', 'Shu ', 'Rong ', 'Xi ', 'Cheng ', 'Wo ', 'Jie ', 'Ge ', 'Jian ', 'Qiang ', 'Huo ', 'Qiang ', 'Zhan ', 'Dong ', 'Qi ', 'Jia ', 'Die ', 'Zei ', 'Jia ', 'Ji ', 'Shi ', 'Kan ', 'Ji ', 'Kui ', 'Gai ', 'Deng ', 'Zhan ', 'Chuang ', 'Ge ', 'Jian ', 'Jie ', 'Yu ', 'Jian ', 'Yan ', 'Lu ', 'Xi ', 'Zhan ', 'Xi ', 'Xi ', 'Chuo ', 'Dai ', 'Qu ', 'Hu ', 'Hu ', 'Hu ', 'E ', 'Shi ', 'Li ', 'Mao ', 'Hu ', 'Li ', 'Fang ', 'Suo ', 'Bian ', 'Dian ', 'Jiong ', 'Shang ', 'Yi ', 'Yi ', 'Shan ', 'Hu ', 'Fei ', 'Yan ', 'Shou ', 'T ', 'Cai ', 'Zha ', 'Qiu ', 'Le ', 'Bu ', 'Ba ', 'Da ', 'Reng ', 'Fu ', 'Hameru ', 'Zai ', 'Tuo ', 'Zhang ', 'Diao ', 'Kang ', 'Yu ', 'Ku ', 'Han ', 'Shen ', 'Cha ', 'Yi ', 'Gu ', 'Kou ', 'Wu ', 'Tuo ', 'Qian ', 'Zhi ', 'Ren ', 'Kuo ', 'Men ', 'Sao ', 'Yang ', 'Niu ', 'Ban ', 'Che ', 'Rao ', 'Xi ', 'Qian ', 'Ban ', 'Jia ', 'Yu ', 'Fu ', 'Ao ', 'Xi ', 'Pi ', 'Zhi ', 'Zi ', 'E ', 'Dun ', 'Zhao ', 'Cheng ', 'Ji ', 'Yan ', 'Kuang ', 'Bian ', 'Chao ', 'Ju ', 'Wen ', 'Hu ', 'Yue ', 'Jue ', 'Ba ', 'Qin ', 'Zhen ', 'Zheng ', 'Yun ', 'Wan ', 'Nu ', 'Yi ', 'Shu ', 'Zhua ', 'Pou ', 'Tou ', 'Dou ', 'Kang ', 'Zhe ', 'Pou ', 'Fu ', 'Pao ', 'Ba ', 'Ao ', 'Ze ', 'Tuan ', 'Kou ', 'Lun ', 'Qiang ', '[?] ', 'Hu ', 'Bao ', 'Bing ', 'Zhi ', 'Peng ', 'Tan ', 'Pu ', 'Pi ', 'Tai ', 'Yao ', 'Zhen ', 'Zha ', 'Yang ', 'Bao ', 'He ', 'Ni ', 'Yi ', 'Di ', 'Chi ', 'Pi ', 'Za ', 'Mo ', 'Mo ', 'Shen ', 'Ya ', 'Chou ', 'Qu ', 'Min ', 'Chu ', 'Jia ', 'Fu ', 'Zhan ', 'Zhu ', 'Dan ', 'Chai ', 'Mu ', 'Nian ', 'La ', 'Fu ', 'Pao ', 'Ban ', 'Pai ', 'Ling ', 'Na ', 'Guai ', 'Qian ', 'Ju ', 'Tuo ', 'Ba ', 'Tuo ', 'Tuo ', 'Ao ', 'Ju ', 'Zhuo ', 'Pan ', 'Zhao ', 'Bai ', 'Bai ', 'Di ', 'Ni ', 'Ju ', 'Kuo ', 'Long ', 'Jian ', '[?] ', 'Yong ', 'Lan ', 'Ning ', 'Bo ', 'Ze ', 'Qian ', 'Hen ', 'Gua ', 'Shi ', 'Jie ', 'Zheng ', 'Nin ', 'Gong ', 'Gong ', 'Quan ', 'Shuan ', 'Cun ', 'Zan ', 'Kao ', 'Chi ', 'Xie ', 'Ce ', 'Hui ', 'Pin ', 'Zhuai ', 'Shi ', 'Na ']; <?php return ['Bo ', 'Chi ', 'Gua ', 'Zhi ', 'Kuo ', 'Duo ', 'Duo ', 'Zhi ', 'Qie ', 'An ', 'Nong ', 'Zhen ', 'Ge ', 'Jiao ', 'Ku ', 'Dong ', 'Ru ', 'Tiao ', 'Lie ', 'Zha ', 'Lu ', 'Die ', 'Wa ', 'Jue ', 'Mushiru ', 'Ju ', 'Zhi ', 'Luan ', 'Ya ', 'Zhua ', 'Ta ', 'Xie ', 'Nao ', 'Dang ', 'Jiao ', 'Zheng ', 'Ji ', 'Hui ', 'Xun ', 'Ku ', 'Ai ', 'Tuo ', 'Nuo ', 'Cuo ', 'Bo ', 'Geng ', 'Ti ', 'Zhen ', 'Cheng ', 'Suo ', 'Suo ', 'Keng ', 'Mei ', 'Long ', 'Ju ', 'Peng ', 'Jian ', 'Yi ', 'Ting ', 'Shan ', 'Nuo ', 'Wan ', 'Xie ', 'Cha ', 'Feng ', 'Jiao ', 'Wu ', 'Jun ', 'Jiu ', 'Tong ', 'Kun ', 'Huo ', 'Tu ', 'Zhuo ', 'Pou ', 'Le ', 'Ba ', 'Han ', 'Shao ', 'Nie ', 'Juan ', 'Ze ', 'Song ', 'Ye ', 'Jue ', 'Bu ', 'Huan ', 'Bu ', 'Zun ', 'Yi ', 'Zhai ', 'Lu ', 'Sou ', 'Tuo ', 'Lao ', 'Sun ', 'Bang ', 'Jian ', 'Huan ', 'Dao ', '[?] ', 'Wan ', 'Qin ', 'Peng ', 'She ', 'Lie ', 'Min ', 'Men ', 'Fu ', 'Bai ', 'Ju ', 'Dao ', 'Wo ', 'Ai ', 'Juan ', 'Yue ', 'Zong ', 'Chen ', 'Chui ', 'Jie ', 'Tu ', 'Ben ', 'Na ', 'Nian ', 'Nuo ', 'Zu ', 'Wo ', 'Xi ', 'Xian ', 'Cheng ', 'Dian ', 'Sao ', 'Lun ', 'Qing ', 'Gang ', 'Duo ', 'Shou ', 'Diao ', 'Pou ', 'Di ', 'Zhang ', 'Gun ', 'Ji ', 'Tao ', 'Qia ', 'Qi ', 'Pai ', 'Shu ', 'Qian ', 'Ling ', 'Yi ', 'Ya ', 'Jue ', 'Zheng ', 'Liang ', 'Gua ', 'Yi ', 'Huo ', 'Shan ', 'Zheng ', 'Lue ', 'Cai ', 'Tan ', 'Che ', 'Bing ', 'Jie ', 'Ti ', 'Kong ', 'Tui ', 'Yan ', 'Cuo ', 'Zou ', 'Ju ', 'Tian ', 'Qian ', 'Ken ', 'Bai ', 'Shou ', 'Jie ', 'Lu ', 'Guo ', 'Haba ', '[?] ', 'Zhi ', 'Dan ', 'Mang ', 'Xian ', 'Sao ', 'Guan ', 'Peng ', 'Yuan ', 'Nuo ', 'Jian ', 'Zhen ', 'Jiu ', 'Jian ', 'Yu ', 'Yan ', 'Kui ', 'Nan ', 'Hong ', 'Rou ', 'Pi ', 'Wei ', 'Sai ', 'Zou ', 'Xuan ', 'Miao ', 'Ti ', 'Nie ', 'Cha ', 'Shi ', 'Zong ', 'Zhen ', 'Yi ', 'Shun ', 'Heng ', 'Bian ', 'Yang ', 'Huan ', 'Yan ', 'Zuan ', 'An ', 'Xu ', 'Ya ', 'Wo ', 'Ke ', 'Chuai ', 'Ji ', 'Ti ', 'La ', 'La ', 'Cheng ', 'Kai ', 'Jiu ', 'Jiu ', 'Tu ', 'Jie ', 'Hui ', 'Geng ', 'Chong ', 'Shuo ', 'She ', 'Xie ', 'Yuan ', 'Qian ', 'Ye ', 'Cha ', 'Zha ', 'Bei ', 'Yao ', '[?] ', '[?] ', 'Lan ', 'Wen ', 'Qin ']; <?php return ['Chan ', 'Ge ', 'Lou ', 'Zong ', 'Geng ', 'Jiao ', 'Gou ', 'Qin ', 'Yong ', 'Que ', 'Chou ', 'Chi ', 'Zhan ', 'Sun ', 'Sun ', 'Bo ', 'Chu ', 'Rong ', 'Beng ', 'Cuo ', 'Sao ', 'Ke ', 'Yao ', 'Dao ', 'Zhi ', 'Nu ', 'Xie ', 'Jian ', 'Sou ', 'Qiu ', 'Gao ', 'Xian ', 'Shuo ', 'Sang ', 'Jin ', 'Mie ', 'E ', 'Chui ', 'Nuo ', 'Shan ', 'Ta ', 'Jie ', 'Tang ', 'Pan ', 'Ban ', 'Da ', 'Li ', 'Tao ', 'Hu ', 'Zhi ', 'Wa ', 'Xia ', 'Qian ', 'Wen ', 'Qiang ', 'Tian ', 'Zhen ', 'E ', 'Xi ', 'Nuo ', 'Quan ', 'Cha ', 'Zha ', 'Ge ', 'Wu ', 'En ', 'She ', 'Kang ', 'She ', 'Shu ', 'Bai ', 'Yao ', 'Bin ', 'Sou ', 'Tan ', 'Sa ', 'Chan ', 'Suo ', 'Liao ', 'Chong ', 'Chuang ', 'Guo ', 'Bing ', 'Feng ', 'Shuai ', 'Di ', 'Qi ', 'Sou ', 'Zhai ', 'Lian ', 'Tang ', 'Chi ', 'Guan ', 'Lu ', 'Luo ', 'Lou ', 'Zong ', 'Gai ', 'Hu ', 'Zha ', 'Chuang ', 'Tang ', 'Hua ', 'Cui ', 'Nai ', 'Mo ', 'Jiang ', 'Gui ', 'Ying ', 'Zhi ', 'Ao ', 'Zhi ', 'Nie ', 'Man ', 'Shan ', 'Kou ', 'Shu ', 'Suo ', 'Tuan ', 'Jiao ', 'Mo ', 'Mo ', 'Zhe ', 'Xian ', 'Keng ', 'Piao ', 'Jiang ', 'Yin ', 'Gou ', 'Qian ', 'Lue ', 'Ji ', 'Ying ', 'Jue ', 'Pie ', 'Pie ', 'Lao ', 'Dun ', 'Xian ', 'Ruan ', 'Kui ', 'Zan ', 'Yi ', 'Xun ', 'Cheng ', 'Cheng ', 'Sa ', 'Nao ', 'Heng ', 'Si ', 'Qian ', 'Huang ', 'Da ', 'Zun ', 'Nian ', 'Lin ', 'Zheng ', 'Hui ', 'Zhuang ', 'Jiao ', 'Ji ', 'Cao ', 'Dan ', 'Dan ', 'Che ', 'Bo ', 'Che ', 'Jue ', 'Xiao ', 'Liao ', 'Ben ', 'Fu ', 'Qiao ', 'Bo ', 'Cuo ', 'Zhuo ', 'Zhuan ', 'Tuo ', 'Pu ', 'Qin ', 'Dun ', 'Nian ', '[?] ', 'Xie ', 'Lu ', 'Jiao ', 'Cuan ', 'Ta ', 'Han ', 'Qiao ', 'Zhua ', 'Jian ', 'Gan ', 'Yong ', 'Lei ', 'Kuo ', 'Lu ', 'Shan ', 'Zhuo ', 'Ze ', 'Pu ', 'Chuo ', 'Ji ', 'Dang ', 'Suo ', 'Cao ', 'Qing ', 'Jing ', 'Huan ', 'Jie ', 'Qin ', 'Kuai ', 'Dan ', 'Xi ', 'Ge ', 'Pi ', 'Bo ', 'Ao ', 'Ju ', 'Ye ', '[?] ', 'Mang ', 'Sou ', 'Mi ', 'Ji ', 'Tai ', 'Zhuo ', 'Dao ', 'Xing ', 'Lan ', 'Ca ', 'Ju ', 'Ye ', 'Ru ', 'Ye ', 'Ye ', 'Ni ', 'Hu ', 'Ji ', 'Bin ', 'Ning ', 'Ge ', 'Zhi ', 'Jie ', 'Kuo ', 'Mo ', 'Jian ', 'Xie ', 'Lie ', 'Tan ', 'Bai ', 'Sou ', 'Lu ', 'Lue ', 'Rao ', 'Zhi ']; <?php return ['Pan ', 'Yang ', 'Lei ', 'Sa ', 'Shu ', 'Zan ', 'Nian ', 'Xian ', 'Jun ', 'Huo ', 'Li ', 'La ', 'Han ', 'Ying ', 'Lu ', 'Long ', 'Qian ', 'Qian ', 'Zan ', 'Qian ', 'Lan ', 'San ', 'Ying ', 'Mei ', 'Rang ', 'Chan ', '[?] ', 'Cuan ', 'Xi ', 'She ', 'Luo ', 'Jun ', 'Mi ', 'Li ', 'Zan ', 'Luan ', 'Tan ', 'Zuan ', 'Li ', 'Dian ', 'Wa ', 'Dang ', 'Jiao ', 'Jue ', 'Lan ', 'Li ', 'Nang ', 'Zhi ', 'Gui ', 'Gui ', 'Qi ', 'Xin ', 'Pu ', 'Sui ', 'Shou ', 'Kao ', 'You ', 'Gai ', 'Yi ', 'Gong ', 'Gan ', 'Ban ', 'Fang ', 'Zheng ', 'Bo ', 'Dian ', 'Kou ', 'Min ', 'Wu ', 'Gu ', 'He ', 'Ce ', 'Xiao ', 'Mi ', 'Chu ', 'Ge ', 'Di ', 'Xu ', 'Jiao ', 'Min ', 'Chen ', 'Jiu ', 'Zhen ', 'Duo ', 'Yu ', 'Chi ', 'Ao ', 'Bai ', 'Xu ', 'Jiao ', 'Duo ', 'Lian ', 'Nie ', 'Bi ', 'Chang ', 'Dian ', 'Duo ', 'Yi ', 'Gan ', 'San ', 'Ke ', 'Yan ', 'Dun ', 'Qi ', 'Dou ', 'Xiao ', 'Duo ', 'Jiao ', 'Jing ', 'Yang ', 'Xia ', 'Min ', 'Shu ', 'Ai ', 'Qiao ', 'Ai ', 'Zheng ', 'Di ', 'Zhen ', 'Fu ', 'Shu ', 'Liao ', 'Qu ', 'Xiong ', 'Xi ', 'Jiao ', 'Sen ', 'Jiao ', 'Zhuo ', 'Yi ', 'Lian ', 'Bi ', 'Li ', 'Xiao ', 'Xiao ', 'Wen ', 'Xue ', 'Qi ', 'Qi ', 'Zhai ', 'Bin ', 'Jue ', 'Zhai ', '[?] ', 'Fei ', 'Ban ', 'Ban ', 'Lan ', 'Yu ', 'Lan ', 'Wei ', 'Dou ', 'Sheng ', 'Liao ', 'Jia ', 'Hu ', 'Xie ', 'Jia ', 'Yu ', 'Zhen ', 'Jiao ', 'Wo ', 'Tou ', 'Chu ', 'Jin ', 'Chi ', 'Yin ', 'Fu ', 'Qiang ', 'Zhan ', 'Qu ', 'Zhuo ', 'Zhan ', 'Duan ', 'Zhuo ', 'Si ', 'Xin ', 'Zhuo ', 'Zhuo ', 'Qin ', 'Lin ', 'Zhuo ', 'Chu ', 'Duan ', 'Zhu ', 'Fang ', 'Xie ', 'Hang ', 'Yu ', 'Shi ', 'Pei ', 'You ', 'Mye ', 'Pang ', 'Qi ', 'Zhan ', 'Mao ', 'Lu ', 'Pei ', 'Pi ', 'Liu ', 'Fu ', 'Fang ', 'Xuan ', 'Jing ', 'Jing ', 'Ni ', 'Zu ', 'Zhao ', 'Yi ', 'Liu ', 'Shao ', 'Jian ', 'Es ', 'Yi ', 'Qi ', 'Zhi ', 'Fan ', 'Piao ', 'Fan ', 'Zhan ', 'Guai ', 'Sui ', 'Yu ', 'Wu ', 'Ji ', 'Ji ', 'Ji ', 'Huo ', 'Ri ', 'Dan ', 'Jiu ', 'Zhi ', 'Zao ', 'Xie ', 'Tiao ', 'Xun ', 'Xu ', 'Xu ', 'Xu ', 'Gan ', 'Han ', 'Tai ', 'Di ', 'Xu ', 'Chan ', 'Shi ', 'Kuang ', 'Yang ', 'Shi ', 'Wang ', 'Min ', 'Min ', 'Tun ', 'Chun ', 'Wu ']; <?php return ['Yun ', 'Bei ', 'Ang ', 'Ze ', 'Ban ', 'Jie ', 'Kun ', 'Sheng ', 'Hu ', 'Fang ', 'Hao ', 'Gui ', 'Chang ', 'Xuan ', 'Ming ', 'Hun ', 'Fen ', 'Qin ', 'Hu ', 'Yi ', 'Xi ', 'Xin ', 'Yan ', 'Ze ', 'Fang ', 'Tan ', 'Shen ', 'Ju ', 'Yang ', 'Zan ', 'Bing ', 'Xing ', 'Ying ', 'Xuan ', 'Pei ', 'Zhen ', 'Ling ', 'Chun ', 'Hao ', 'Mei ', 'Zuo ', 'Mo ', 'Bian ', 'Xu ', 'Hun ', 'Zhao ', 'Zong ', 'Shi ', 'Shi ', 'Yu ', 'Fei ', 'Die ', 'Mao ', 'Ni ', 'Chang ', 'Wen ', 'Dong ', 'Ai ', 'Bing ', 'Ang ', 'Zhou ', 'Long ', 'Xian ', 'Kuang ', 'Tiao ', 'Chao ', 'Shi ', 'Huang ', 'Huang ', 'Xuan ', 'Kui ', 'Xu ', 'Jiao ', 'Jin ', 'Zhi ', 'Jin ', 'Shang ', 'Tong ', 'Hong ', 'Yan ', 'Gai ', 'Xiang ', 'Shai ', 'Xiao ', 'Ye ', 'Yun ', 'Hui ', 'Han ', 'Han ', 'Jun ', 'Wan ', 'Xian ', 'Kun ', 'Zhou ', 'Xi ', 'Cheng ', 'Sheng ', 'Bu ', 'Zhe ', 'Zhe ', 'Wu ', 'Han ', 'Hui ', 'Hao ', 'Chen ', 'Wan ', 'Tian ', 'Zhuo ', 'Zui ', 'Zhou ', 'Pu ', 'Jing ', 'Xi ', 'Shan ', 'Yi ', 'Xi ', 'Qing ', 'Qi ', 'Jing ', 'Gui ', 'Zhen ', 'Yi ', 'Zhi ', 'An ', 'Wan ', 'Lin ', 'Liang ', 'Chang ', 'Wang ', 'Xiao ', 'Zan ', 'Hi ', 'Xuan ', 'Xuan ', 'Yi ', 'Xia ', 'Yun ', 'Hui ', 'Fu ', 'Min ', 'Kui ', 'He ', 'Ying ', 'Du ', 'Wei ', 'Shu ', 'Qing ', 'Mao ', 'Nan ', 'Jian ', 'Nuan ', 'An ', 'Yang ', 'Chun ', 'Yao ', 'Suo ', 'Jin ', 'Ming ', 'Jiao ', 'Kai ', 'Gao ', 'Weng ', 'Chang ', 'Qi ', 'Hao ', 'Yan ', 'Li ', 'Ai ', 'Ji ', 'Gui ', 'Men ', 'Zan ', 'Xie ', 'Hao ', 'Mu ', 'Mo ', 'Cong ', 'Ni ', 'Zhang ', 'Hui ', 'Bao ', 'Han ', 'Xuan ', 'Chuan ', 'Liao ', 'Xian ', 'Dan ', 'Jing ', 'Pie ', 'Lin ', 'Tun ', 'Xi ', 'Yi ', 'Ji ', 'Huang ', 'Tai ', 'Ye ', 'Ye ', 'Li ', 'Tan ', 'Tong ', 'Xiao ', 'Fei ', 'Qin ', 'Zhao ', 'Hao ', 'Yi ', 'Xiang ', 'Xing ', 'Sen ', 'Jiao ', 'Bao ', 'Jing ', 'Yian ', 'Ai ', 'Ye ', 'Ru ', 'Shu ', 'Meng ', 'Xun ', 'Yao ', 'Pu ', 'Li ', 'Chen ', 'Kuang ', 'Die ', '[?] ', 'Yan ', 'Huo ', 'Lu ', 'Xi ', 'Rong ', 'Long ', 'Nang ', 'Luo ', 'Luan ', 'Shai ', 'Tang ', 'Yan ', 'Chu ', 'Yue ', 'Yue ', 'Qu ', 'Yi ', 'Geng ', 'Ye ', 'Hu ', 'He ', 'Shu ', 'Cao ', 'Cao ', 'Noboru ', 'Man ', 'Ceng ', 'Ceng ', 'Ti ']; <?php return ['Zui ', 'Can ', 'Xu ', 'Hui ', 'Yin ', 'Qie ', 'Fen ', 'Pi ', 'Yue ', 'You ', 'Ruan ', 'Peng ', 'Ban ', 'Fu ', 'Ling ', 'Fei ', 'Qu ', '[?] ', 'Nu ', 'Tiao ', 'Shuo ', 'Zhen ', 'Lang ', 'Lang ', 'Juan ', 'Ming ', 'Huang ', 'Wang ', 'Tun ', 'Zhao ', 'Ji ', 'Qi ', 'Ying ', 'Zong ', 'Wang ', 'Tong ', 'Lang ', '[?] ', 'Meng ', 'Long ', 'Mu ', 'Deng ', 'Wei ', 'Mo ', 'Ben ', 'Zha ', 'Zhu ', 'Zhu ', '[?] ', 'Zhu ', 'Ren ', 'Ba ', 'Po ', 'Duo ', 'Duo ', 'Dao ', 'Li ', 'Qiu ', 'Ji ', 'Jiu ', 'Bi ', 'Xiu ', 'Ting ', 'Ci ', 'Sha ', 'Eburi ', 'Za ', 'Quan ', 'Qian ', 'Yu ', 'Gan ', 'Wu ', 'Cha ', 'Shan ', 'Xun ', 'Fan ', 'Wu ', 'Zi ', 'Li ', 'Xing ', 'Cai ', 'Cun ', 'Ren ', 'Shao ', 'Tuo ', 'Di ', 'Zhang ', 'Mang ', 'Chi ', 'Yi ', 'Gu ', 'Gong ', 'Du ', 'Yi ', 'Qi ', 'Shu ', 'Gang ', 'Tiao ', 'Moku ', 'Soma ', 'Tochi ', 'Lai ', 'Sugi ', 'Mang ', 'Yang ', 'Ma ', 'Miao ', 'Si ', 'Yuan ', 'Hang ', 'Fei ', 'Bei ', 'Jie ', 'Dong ', 'Gao ', 'Yao ', 'Xian ', 'Chu ', 'Qun ', 'Pa ', 'Shu ', 'Hua ', 'Xin ', 'Chou ', 'Zhu ', 'Chou ', 'Song ', 'Ban ', 'Song ', 'Ji ', 'Yue ', 'Jin ', 'Gou ', 'Ji ', 'Mao ', 'Pi ', 'Bi ', 'Wang ', 'Ang ', 'Fang ', 'Fen ', 'Yi ', 'Fu ', 'Nan ', 'Xi ', 'Hu ', 'Ya ', 'Dou ', 'Xun ', 'Zhen ', 'Yao ', 'Lin ', 'Rui ', 'E ', 'Mei ', 'Zhao ', 'Guo ', 'Zhi ', 'Cong ', 'Yun ', 'Waku ', 'Dou ', 'Shu ', 'Zao ', '[?] ', 'Li ', 'Haze ', 'Jian ', 'Cheng ', 'Matsu ', 'Qiang ', 'Feng ', 'Nan ', 'Xiao ', 'Xian ', 'Ku ', 'Ping ', 'Yi ', 'Xi ', 'Zhi ', 'Guai ', 'Xiao ', 'Jia ', 'Jia ', 'Gou ', 'Fu ', 'Mo ', 'Yi ', 'Ye ', 'Ye ', 'Shi ', 'Nie ', 'Bi ', 'Duo ', 'Yi ', 'Ling ', 'Bing ', 'Ni ', 'La ', 'He ', 'Pan ', 'Fan ', 'Zhong ', 'Dai ', 'Ci ', 'Yang ', 'Fu ', 'Bo ', 'Mou ', 'Gan ', 'Qi ', 'Ran ', 'Rou ', 'Mao ', 'Zhao ', 'Song ', 'Zhe ', 'Xia ', 'You ', 'Shen ', 'Ju ', 'Tuo ', 'Zuo ', 'Nan ', 'Ning ', 'Yong ', 'Di ', 'Zhi ', 'Zha ', 'Cha ', 'Dan ', 'Gu ', 'Pu ', 'Jiu ', 'Ao ', 'Fu ', 'Jian ', 'Bo ', 'Duo ', 'Ke ', 'Nai ', 'Zhu ', 'Bi ', 'Liu ', 'Chai ', 'Zha ', 'Si ', 'Zhu ', 'Pei ', 'Shi ', 'Guai ', 'Cha ', 'Yao ', 'Jue ', 'Jiu ', 'Shi ']; <?php return ['Zhi ', 'Liu ', 'Mei ', 'Hoy ', 'Rong ', 'Zha ', '[?] ', 'Biao ', 'Zhan ', 'Jie ', 'Long ', 'Dong ', 'Lu ', 'Sayng ', 'Li ', 'Lan ', 'Yong ', 'Shu ', 'Xun ', 'Shuan ', 'Qi ', 'Zhen ', 'Qi ', 'Li ', 'Yi ', 'Xiang ', 'Zhen ', 'Li ', 'Su ', 'Gua ', 'Kan ', 'Bing ', 'Ren ', 'Xiao ', 'Bo ', 'Ren ', 'Bing ', 'Zi ', 'Chou ', 'Yi ', 'Jie ', 'Xu ', 'Zhu ', 'Jian ', 'Zui ', 'Er ', 'Er ', 'You ', 'Fa ', 'Gong ', 'Kao ', 'Lao ', 'Zhan ', 'Li ', 'Yin ', 'Yang ', 'He ', 'Gen ', 'Zhi ', 'Chi ', 'Ge ', 'Zai ', 'Luan ', 'Fu ', 'Jie ', 'Hang ', 'Gui ', 'Tao ', 'Guang ', 'Wei ', 'Kuang ', 'Ru ', 'An ', 'An ', 'Juan ', 'Yi ', 'Zhuo ', 'Ku ', 'Zhi ', 'Qiong ', 'Tong ', 'Sang ', 'Sang ', 'Huan ', 'Jie ', 'Jiu ', 'Xue ', 'Duo ', 'Zhui ', 'Yu ', 'Zan ', 'Kasei ', 'Ying ', 'Masu ', '[?] ', 'Zhan ', 'Ya ', 'Nao ', 'Zhen ', 'Dang ', 'Qi ', 'Qiao ', 'Hua ', 'Kuai ', 'Jiang ', 'Zhuang ', 'Xun ', 'Suo ', 'Sha ', 'Zhen ', 'Bei ', 'Ting ', 'Gua ', 'Jing ', 'Bo ', 'Ben ', 'Fu ', 'Rui ', 'Tong ', 'Jue ', 'Xi ', 'Lang ', 'Liu ', 'Feng ', 'Qi ', 'Wen ', 'Jun ', 'Gan ', 'Cu ', 'Liang ', 'Qiu ', 'Ting ', 'You ', 'Mei ', 'Bang ', 'Long ', 'Peng ', 'Zhuang ', 'Di ', 'Xuan ', 'Tu ', 'Zao ', 'Ao ', 'Gu ', 'Bi ', 'Di ', 'Han ', 'Zi ', 'Zhi ', 'Ren ', 'Bei ', 'Geng ', 'Jian ', 'Huan ', 'Wan ', 'Nuo ', 'Jia ', 'Tiao ', 'Ji ', 'Xiao ', 'Lu ', 'Huan ', 'Shao ', 'Cen ', 'Fen ', 'Song ', 'Meng ', 'Wu ', 'Li ', 'Li ', 'Dou ', 'Cen ', 'Ying ', 'Suo ', 'Ju ', 'Ti ', 'Jie ', 'Kun ', 'Zhuo ', 'Shu ', 'Chan ', 'Fan ', 'Wei ', 'Jing ', 'Li ', 'Bing ', 'Fumoto ', 'Shikimi ', 'Tao ', 'Zhi ', 'Lai ', 'Lian ', 'Jian ', 'Zhuo ', 'Ling ', 'Li ', 'Qi ', 'Bing ', 'Zhun ', 'Cong ', 'Qian ', 'Mian ', 'Qi ', 'Qi ', 'Cai ', 'Gun ', 'Chan ', 'Te ', 'Fei ', 'Pai ', 'Bang ', 'Pou ', 'Hun ', 'Zong ', 'Cheng ', 'Zao ', 'Ji ', 'Li ', 'Peng ', 'Yu ', 'Yu ', 'Gu ', 'Hun ', 'Dong ', 'Tang ', 'Gang ', 'Wang ', 'Di ', 'Xi ', 'Fan ', 'Cheng ', 'Zhan ', 'Qi ', 'Yuan ', 'Yan ', 'Yu ', 'Quan ', 'Yi ', 'Sen ', 'Ren ', 'Chui ', 'Leng ', 'Qi ', 'Zhuo ', 'Fu ', 'Ke ', 'Lai ', 'Zou ', 'Zou ', 'Zhuo ', 'Guan ', 'Fen ', 'Fen ', 'Chen ', 'Qiong ', 'Nie ']; <?php return ['Wan ', 'Guo ', 'Lu ', 'Hao ', 'Jie ', 'Yi ', 'Chou ', 'Ju ', 'Ju ', 'Cheng ', 'Zuo ', 'Liang ', 'Qiang ', 'Zhi ', 'Zhui ', 'Ya ', 'Ju ', 'Bei ', 'Jiao ', 'Zhuo ', 'Zi ', 'Bin ', 'Peng ', 'Ding ', 'Chu ', 'Chang ', 'Kunugi ', 'Momiji ', 'Jian ', 'Gui ', 'Xi ', 'Du ', 'Qian ', 'Kunugi ', 'Soko ', 'Shide ', 'Luo ', 'Zhi ', 'Ken ', 'Myeng ', 'Tafu ', '[?] ', 'Peng ', 'Zhan ', '[?] ', 'Tuo ', 'Sen ', 'Duo ', 'Ye ', 'Fou ', 'Wei ', 'Wei ', 'Duan ', 'Jia ', 'Zong ', 'Jian ', 'Yi ', 'Shen ', 'Xi ', 'Yan ', 'Yan ', 'Chuan ', 'Zhan ', 'Chun ', 'Yu ', 'He ', 'Zha ', 'Wo ', 'Pian ', 'Bi ', 'Yao ', 'Huo ', 'Xu ', 'Ruo ', 'Yang ', 'La ', 'Yan ', 'Ben ', 'Hun ', 'Kui ', 'Jie ', 'Kui ', 'Si ', 'Feng ', 'Xie ', 'Tuo ', 'Zhi ', 'Jian ', 'Mu ', 'Mao ', 'Chu ', 'Hu ', 'Hu ', 'Lian ', 'Leng ', 'Ting ', 'Nan ', 'Yu ', 'You ', 'Mei ', 'Song ', 'Xuan ', 'Xuan ', 'Ying ', 'Zhen ', 'Pian ', 'Ye ', 'Ji ', 'Jie ', 'Ye ', 'Chu ', 'Shun ', 'Yu ', 'Cou ', 'Wei ', 'Mei ', 'Di ', 'Ji ', 'Jie ', 'Kai ', 'Qiu ', 'Ying ', 'Rou ', 'Heng ', 'Lou ', 'Le ', 'Hazou ', 'Katsura ', 'Pin ', 'Muro ', 'Gai ', 'Tan ', 'Lan ', 'Yun ', 'Yu ', 'Chen ', 'Lu ', 'Ju ', 'Sakaki ', '[?] ', 'Pi ', 'Xie ', 'Jia ', 'Yi ', 'Zhan ', 'Fu ', 'Nai ', 'Mi ', 'Lang ', 'Rong ', 'Gu ', 'Jian ', 'Ju ', 'Ta ', 'Yao ', 'Zhen ', 'Bang ', 'Sha ', 'Yuan ', 'Zi ', 'Ming ', 'Su ', 'Jia ', 'Yao ', 'Jie ', 'Huang ', 'Gan ', 'Fei ', 'Zha ', 'Qian ', 'Ma ', 'Sun ', 'Yuan ', 'Xie ', 'Rong ', 'Shi ', 'Zhi ', 'Cui ', 'Yun ', 'Ting ', 'Liu ', 'Rong ', 'Tang ', 'Que ', 'Zhai ', 'Si ', 'Sheng ', 'Ta ', 'Ke ', 'Xi ', 'Gu ', 'Qi ', 'Kao ', 'Gao ', 'Sun ', 'Pan ', 'Tao ', 'Ge ', 'Xun ', 'Dian ', 'Nou ', 'Ji ', 'Shuo ', 'Gou ', 'Chui ', 'Qiang ', 'Cha ', 'Qian ', 'Huai ', 'Mei ', 'Xu ', 'Gang ', 'Gao ', 'Zhuo ', 'Tuo ', 'Hashi ', 'Yang ', 'Dian ', 'Jia ', 'Jian ', 'Zui ', 'Kashi ', 'Ori ', 'Bin ', 'Zhu ', '[?] ', 'Xi ', 'Qi ', 'Lian ', 'Hui ', 'Yong ', 'Qian ', 'Guo ', 'Gai ', 'Gai ', 'Tuan ', 'Hua ', 'Cu ', 'Sen ', 'Cui ', 'Beng ', 'You ', 'Hu ', 'Jiang ', 'Hu ', 'Huan ', 'Kui ', 'Yi ', 'Nie ', 'Gao ', 'Kang ', 'Gui ', 'Gui ', 'Cao ', 'Man ', 'Jin ']; <?php return ['Di ', 'Zhuang ', 'Le ', 'Lang ', 'Chen ', 'Cong ', 'Li ', 'Xiu ', 'Qing ', 'Shuang ', 'Fan ', 'Tong ', 'Guan ', 'Ji ', 'Suo ', 'Lei ', 'Lu ', 'Liang ', 'Mi ', 'Lou ', 'Chao ', 'Su ', 'Ke ', 'Shu ', 'Tang ', 'Biao ', 'Lu ', 'Jiu ', 'Shu ', 'Zha ', 'Shu ', 'Zhang ', 'Men ', 'Mo ', 'Niao ', 'Yang ', 'Tiao ', 'Peng ', 'Zhu ', 'Sha ', 'Xi ', 'Quan ', 'Heng ', 'Jian ', 'Cong ', '[?] ', 'Hokuso ', 'Qiang ', 'Tara ', 'Ying ', 'Er ', 'Xin ', 'Zhi ', 'Qiao ', 'Zui ', 'Cong ', 'Pu ', 'Shu ', 'Hua ', 'Kui ', 'Zhen ', 'Zun ', 'Yue ', 'Zhan ', 'Xi ', 'Xun ', 'Dian ', 'Fa ', 'Gan ', 'Mo ', 'Wu ', 'Qiao ', 'Nao ', 'Lin ', 'Liu ', 'Qiao ', 'Xian ', 'Run ', 'Fan ', 'Zhan ', 'Tuo ', 'Lao ', 'Yun ', 'Shun ', 'Tui ', 'Cheng ', 'Tang ', 'Meng ', 'Ju ', 'Cheng ', 'Su ', 'Jue ', 'Jue ', 'Tan ', 'Hui ', 'Ji ', 'Nuo ', 'Xiang ', 'Tuo ', 'Ning ', 'Rui ', 'Zhu ', 'Chuang ', 'Zeng ', 'Fen ', 'Qiong ', 'Ran ', 'Heng ', 'Cen ', 'Gu ', 'Liu ', 'Lao ', 'Gao ', 'Chu ', 'Zusa ', 'Nude ', 'Ca ', 'San ', 'Ji ', 'Dou ', 'Shou ', 'Lu ', '[?] ', '[?] ', 'Yuan ', 'Ta ', 'Shu ', 'Jiang ', 'Tan ', 'Lin ', 'Nong ', 'Yin ', 'Xi ', 'Sui ', 'Shan ', 'Zui ', 'Xuan ', 'Cheng ', 'Gan ', 'Ju ', 'Zui ', 'Yi ', 'Qin ', 'Pu ', 'Yan ', 'Lei ', 'Feng ', 'Hui ', 'Dang ', 'Ji ', 'Sui ', 'Bo ', 'Bi ', 'Ding ', 'Chu ', 'Zhua ', 'Kuai ', 'Ji ', 'Jie ', 'Jia ', 'Qing ', 'Zhe ', 'Jian ', 'Qiang ', 'Dao ', 'Yi ', 'Biao ', 'Song ', 'She ', 'Lin ', 'Kunugi ', 'Cha ', 'Meng ', 'Yin ', 'Tao ', 'Tai ', 'Mian ', 'Qi ', 'Toan ', 'Bin ', 'Huo ', 'Ji ', 'Qian ', 'Mi ', 'Ning ', 'Yi ', 'Gao ', 'Jian ', 'Yin ', 'Er ', 'Qing ', 'Yan ', 'Qi ', 'Mi ', 'Zhao ', 'Gui ', 'Chun ', 'Ji ', 'Kui ', 'Po ', 'Deng ', 'Chu ', '[?] ', 'Mian ', 'You ', 'Zhi ', 'Guang ', 'Qian ', 'Lei ', 'Lei ', 'Sa ', 'Lu ', 'Li ', 'Cuan ', 'Lu ', 'Mie ', 'Hui ', 'Ou ', 'Lu ', 'Jie ', 'Gao ', 'Du ', 'Yuan ', 'Li ', 'Fei ', 'Zhuo ', 'Sou ', 'Lian ', 'Tamo ', 'Chu ', '[?] ', 'Zhu ', 'Lu ', 'Yan ', 'Li ', 'Zhu ', 'Chen ', 'Jie ', 'E ', 'Su ', 'Huai ', 'Nie ', 'Yu ', 'Long ', 'Lai ', '[?] ', 'Xian ', 'Kwi ', 'Ju ', 'Xiao ', 'Ling ', 'Ying ', 'Jian ', 'Yin ', 'You ', 'Ying ']; <?php return ['Xiang ', 'Nong ', 'Bo ', 'Chan ', 'Lan ', 'Ju ', 'Shuang ', 'She ', 'Wei ', 'Cong ', 'Quan ', 'Qu ', 'Cang ', '[?] ', 'Yu ', 'Luo ', 'Li ', 'Zan ', 'Luan ', 'Dang ', 'Jue ', 'Em ', 'Lan ', 'Lan ', 'Zhu ', 'Lei ', 'Li ', 'Ba ', 'Nang ', 'Yu ', 'Ling ', 'Tsuki ', 'Qian ', 'Ci ', 'Huan ', 'Xin ', 'Yu ', 'Yu ', 'Qian ', 'Ou ', 'Xu ', 'Chao ', 'Chu ', 'Chi ', 'Kai ', 'Yi ', 'Jue ', 'Xi ', 'Xu ', 'Xia ', 'Yu ', 'Kuai ', 'Lang ', 'Kuan ', 'Shuo ', 'Xi ', 'Ai ', 'Yi ', 'Qi ', 'Hu ', 'Chi ', 'Qin ', 'Kuan ', 'Kan ', 'Kuan ', 'Kan ', 'Chuan ', 'Sha ', 'Gua ', 'Yin ', 'Xin ', 'Xie ', 'Yu ', 'Qian ', 'Xiao ', 'Yi ', 'Ge ', 'Wu ', 'Tan ', 'Jin ', 'Ou ', 'Hu ', 'Ti ', 'Huan ', 'Xu ', 'Pen ', 'Xi ', 'Xiao ', 'Xu ', 'Xi ', 'Sen ', 'Lian ', 'Chu ', 'Yi ', 'Kan ', 'Yu ', 'Chuo ', 'Huan ', 'Zhi ', 'Zheng ', 'Ci ', 'Bu ', 'Wu ', 'Qi ', 'Bu ', 'Bu ', 'Wai ', 'Ju ', 'Qian ', 'Chi ', 'Se ', 'Chi ', 'Se ', 'Zhong ', 'Sui ', 'Sui ', 'Li ', 'Cuo ', 'Yu ', 'Li ', 'Gui ', 'Dai ', 'Dai ', 'Si ', 'Jian ', 'Zhe ', 'Mo ', 'Mo ', 'Yao ', 'Mo ', 'Cu ', 'Yang ', 'Tian ', 'Sheng ', 'Dai ', 'Shang ', 'Xu ', 'Xun ', 'Shu ', 'Can ', 'Jue ', 'Piao ', 'Qia ', 'Qiu ', 'Su ', 'Qing ', 'Yun ', 'Lian ', 'Yi ', 'Fou ', 'Zhi ', 'Ye ', 'Can ', 'Hun ', 'Dan ', 'Ji ', 'Ye ', 'Zhen ', 'Yun ', 'Wen ', 'Chou ', 'Bin ', 'Ti ', 'Jin ', 'Shang ', 'Yin ', 'Diao ', 'Cu ', 'Hui ', 'Cuan ', 'Yi ', 'Dan ', 'Du ', 'Jiang ', 'Lian ', 'Bin ', 'Du ', 'Tsukusu ', 'Jian ', 'Shu ', 'Ou ', 'Duan ', 'Zhu ', 'Yin ', 'Qing ', 'Yi ', 'Sha ', 'Que ', 'Ke ', 'Yao ', 'Jun ', 'Dian ', 'Hui ', 'Hui ', 'Gu ', 'Que ', 'Ji ', 'Yi ', 'Ou ', 'Hui ', 'Duan ', 'Yi ', 'Xiao ', 'Wu ', 'Guan ', 'Mu ', 'Mei ', 'Mei ', 'Ai ', 'Zuo ', 'Du ', 'Yu ', 'Bi ', 'Bi ', 'Bi ', 'Pi ', 'Pi ', 'Bi ', 'Chan ', 'Mao ', '[?] ', '[?] ', 'Pu ', 'Mushiru ', 'Jia ', 'Zhan ', 'Sai ', 'Mu ', 'Tuo ', 'Xun ', 'Er ', 'Rong ', 'Xian ', 'Ju ', 'Mu ', 'Hao ', 'Qiu ', 'Dou ', 'Mushiru ', 'Tan ', 'Pei ', 'Ju ', 'Duo ', 'Cui ', 'Bi ', 'San ', '[?] ', 'Mao ', 'Sui ', 'Yu ', 'Yu ', 'Tuo ', 'He ', 'Jian ', 'Ta ', 'San ']; <?php return ['Lu ', 'Mu ', 'Li ', 'Tong ', 'Rong ', 'Chang ', 'Pu ', 'Luo ', 'Zhan ', 'Sao ', 'Zhan ', 'Meng ', 'Luo ', 'Qu ', 'Die ', 'Shi ', 'Di ', 'Min ', 'Jue ', 'Mang ', 'Qi ', 'Pie ', 'Nai ', 'Qi ', 'Dao ', 'Xian ', 'Chuan ', 'Fen ', 'Ri ', 'Nei ', '[?] ', 'Fu ', 'Shen ', 'Dong ', 'Qing ', 'Qi ', 'Yin ', 'Xi ', 'Hai ', 'Yang ', 'An ', 'Ya ', 'Ke ', 'Qing ', 'Ya ', 'Dong ', 'Dan ', 'Lu ', 'Qing ', 'Yang ', 'Yun ', 'Yun ', 'Shui ', 'San ', 'Zheng ', 'Bing ', 'Yong ', 'Dang ', 'Shitamizu ', 'Le ', 'Ni ', 'Tun ', 'Fan ', 'Gui ', 'Ting ', 'Zhi ', 'Qiu ', 'Bin ', 'Ze ', 'Mian ', 'Cuan ', 'Hui ', 'Diao ', 'Yi ', 'Cha ', 'Zhuo ', 'Chuan ', 'Wan ', 'Fan ', 'Dai ', 'Xi ', 'Tuo ', 'Mang ', 'Qiu ', 'Qi ', 'Shan ', 'Pai ', 'Han ', 'Qian ', 'Wu ', 'Wu ', 'Xun ', 'Si ', 'Ru ', 'Gong ', 'Jiang ', 'Chi ', 'Wu ', 'Tsuchi ', '[?] ', 'Tang ', 'Zhi ', 'Chi ', 'Qian ', 'Mi ', 'Yu ', 'Wang ', 'Qing ', 'Jing ', 'Rui ', 'Jun ', 'Hong ', 'Tai ', 'Quan ', 'Ji ', 'Bian ', 'Bian ', 'Gan ', 'Wen ', 'Zhong ', 'Fang ', 'Xiong ', 'Jue ', 'Hang ', 'Niou ', 'Qi ', 'Fen ', 'Xu ', 'Xu ', 'Qin ', 'Yi ', 'Wo ', 'Yun ', 'Yuan ', 'Hang ', 'Yan ', 'Chen ', 'Chen ', 'Dan ', 'You ', 'Dun ', 'Hu ', 'Huo ', 'Qie ', 'Mu ', 'Rou ', 'Mei ', 'Ta ', 'Mian ', 'Wu ', 'Chong ', 'Tian ', 'Bi ', 'Sha ', 'Zhi ', 'Pei ', 'Pan ', 'Zhui ', 'Za ', 'Gou ', 'Liu ', 'Mei ', 'Ze ', 'Feng ', 'Ou ', 'Li ', 'Lun ', 'Cang ', 'Feng ', 'Wei ', 'Hu ', 'Mo ', 'Mei ', 'Shu ', 'Ju ', 'Zan ', 'Tuo ', 'Tuo ', 'Tuo ', 'He ', 'Li ', 'Mi ', 'Yi ', 'Fa ', 'Fei ', 'You ', 'Tian ', 'Zhi ', 'Zhao ', 'Gu ', 'Zhan ', 'Yan ', 'Si ', 'Kuang ', 'Jiong ', 'Ju ', 'Xie ', 'Qiu ', 'Yi ', 'Jia ', 'Zhong ', 'Quan ', 'Bo ', 'Hui ', 'Mi ', 'Ben ', 'Zhuo ', 'Chu ', 'Le ', 'You ', 'Gu ', 'Hong ', 'Gan ', 'Fa ', 'Mao ', 'Si ', 'Hu ', 'Ping ', 'Ci ', 'Fan ', 'Chi ', 'Su ', 'Ning ', 'Cheng ', 'Ling ', 'Pao ', 'Bo ', 'Qi ', 'Si ', 'Ni ', 'Ju ', 'Yue ', 'Zhu ', 'Sheng ', 'Lei ', 'Xuan ', 'Xue ', 'Fu ', 'Pan ', 'Min ', 'Tai ', 'Yang ', 'Ji ', 'Yong ', 'Guan ', 'Beng ', 'Xue ', 'Long ', 'Lu ', '[?] ', 'Bo ', 'Xie ', 'Po ', 'Ze ', 'Jing ', 'Yin ']; <?php return ['Zhou ', 'Ji ', 'Yi ', 'Hui ', 'Hui ', 'Zui ', 'Cheng ', 'Yin ', 'Wei ', 'Hou ', 'Jian ', 'Yang ', 'Lie ', 'Si ', 'Ji ', 'Er ', 'Xing ', 'Fu ', 'Sa ', 'Suo ', 'Zhi ', 'Yin ', 'Wu ', 'Xi ', 'Kao ', 'Zhu ', 'Jiang ', 'Luo ', '[?] ', 'An ', 'Dong ', 'Yi ', 'Mou ', 'Lei ', 'Yi ', 'Mi ', 'Quan ', 'Jin ', 'Mo ', 'Wei ', 'Xiao ', 'Xie ', 'Hong ', 'Xu ', 'Shuo ', 'Kuang ', 'Tao ', 'Qie ', 'Ju ', 'Er ', 'Zhou ', 'Ru ', 'Ping ', 'Xun ', 'Xiong ', 'Zhi ', 'Guang ', 'Huan ', 'Ming ', 'Huo ', 'Wa ', 'Qia ', 'Pai ', 'Wu ', 'Qu ', 'Liu ', 'Yi ', 'Jia ', 'Jing ', 'Qian ', 'Jiang ', 'Jiao ', 'Cheng ', 'Shi ', 'Zhuo ', 'Ce ', 'Pal ', 'Kuai ', 'Ji ', 'Liu ', 'Chan ', 'Hun ', 'Hu ', 'Nong ', 'Xun ', 'Jin ', 'Lie ', 'Qiu ', 'Wei ', 'Zhe ', 'Jun ', 'Han ', 'Bang ', 'Mang ', 'Zhuo ', 'You ', 'Xi ', 'Bo ', 'Dou ', 'Wan ', 'Hong ', 'Yi ', 'Pu ', 'Ying ', 'Lan ', 'Hao ', 'Lang ', 'Han ', 'Li ', 'Geng ', 'Fu ', 'Wu ', 'Lian ', 'Chun ', 'Feng ', 'Yi ', 'Yu ', 'Tong ', 'Lao ', 'Hai ', 'Jin ', 'Jia ', 'Chong ', 'Weng ', 'Mei ', 'Sui ', 'Cheng ', 'Pei ', 'Xian ', 'Shen ', 'Tu ', 'Kun ', 'Pin ', 'Nie ', 'Han ', 'Jing ', 'Xiao ', 'She ', 'Nian ', 'Tu ', 'Yong ', 'Xiao ', 'Xian ', 'Ting ', 'E ', 'Su ', 'Tun ', 'Juan ', 'Cen ', 'Ti ', 'Li ', 'Shui ', 'Si ', 'Lei ', 'Shui ', 'Tao ', 'Du ', 'Lao ', 'Lai ', 'Lian ', 'Wei ', 'Wo ', 'Yun ', 'Huan ', 'Di ', '[?] ', 'Run ', 'Jian ', 'Zhang ', 'Se ', 'Fu ', 'Guan ', 'Xing ', 'Shou ', 'Shuan ', 'Ya ', 'Chuo ', 'Zhang ', 'Ye ', 'Kong ', 'Wo ', 'Han ', 'Tuo ', 'Dong ', 'He ', 'Wo ', 'Ju ', 'Gan ', 'Liang ', 'Hun ', 'Ta ', 'Zhuo ', 'Dian ', 'Qie ', 'De ', 'Juan ', 'Zi ', 'Xi ', 'Yao ', 'Qi ', 'Gu ', 'Guo ', 'Han ', 'Lin ', 'Tang ', 'Zhou ', 'Peng ', 'Hao ', 'Chang ', 'Shu ', 'Qi ', 'Fang ', 'Chi ', 'Lu ', 'Nao ', 'Ju ', 'Tao ', 'Cong ', 'Lei ', 'Zhi ', 'Peng ', 'Fei ', 'Song ', 'Tian ', 'Pi ', 'Dan ', 'Yu ', 'Ni ', 'Yu ', 'Lu ', 'Gan ', 'Mi ', 'Jing ', 'Ling ', 'Lun ', 'Yin ', 'Cui ', 'Qu ', 'Huai ', 'Yu ', 'Nian ', 'Shen ', 'Piao ', 'Chun ', 'Wa ', 'Yuan ', 'Lai ', 'Hun ', 'Qing ', 'Yan ', 'Qian ', 'Tian ', 'Miao ', 'Zhi ', 'Yin ', 'Mi ']; <?php return ['Ben ', 'Yuan ', 'Wen ', 'Re ', 'Fei ', 'Qing ', 'Yuan ', 'Ke ', 'Ji ', 'She ', 'Yuan ', 'Shibui ', 'Lu ', 'Zi ', 'Du ', '[?] ', 'Jian ', 'Min ', 'Pi ', 'Tani ', 'Yu ', 'Yuan ', 'Shen ', 'Shen ', 'Rou ', 'Huan ', 'Zhu ', 'Jian ', 'Nuan ', 'Yu ', 'Qiu ', 'Ting ', 'Qu ', 'Du ', 'Feng ', 'Zha ', 'Bo ', 'Wo ', 'Wo ', 'Di ', 'Wei ', 'Wen ', 'Ru ', 'Xie ', 'Ce ', 'Wei ', 'Ge ', 'Gang ', 'Yan ', 'Hong ', 'Xuan ', 'Mi ', 'Ke ', 'Mao ', 'Ying ', 'Yan ', 'You ', 'Hong ', 'Miao ', 'Xing ', 'Mei ', 'Zai ', 'Hun ', 'Nai ', 'Kui ', 'Shi ', 'E ', 'Pai ', 'Mei ', 'Lian ', 'Qi ', 'Qi ', 'Mei ', 'Tian ', 'Cou ', 'Wei ', 'Can ', 'Tuan ', 'Mian ', 'Hui ', 'Mo ', 'Xu ', 'Ji ', 'Pen ', 'Jian ', 'Jian ', 'Hu ', 'Feng ', 'Xiang ', 'Yi ', 'Yin ', 'Zhan ', 'Shi ', 'Jie ', 'Cheng ', 'Huang ', 'Tan ', 'Yu ', 'Bi ', 'Min ', 'Shi ', 'Tu ', 'Sheng ', 'Yong ', 'Qu ', 'Zhong ', 'Suei ', 'Jiu ', 'Jiao ', 'Qiou ', 'Yin ', 'Tang ', 'Long ', 'Huo ', 'Yuan ', 'Nan ', 'Ban ', 'You ', 'Quan ', 'Chui ', 'Liang ', 'Chan ', 'Yan ', 'Chun ', 'Nie ', 'Zi ', 'Wan ', 'Shi ', 'Man ', 'Ying ', 'Ratsu ', 'Kui ', '[?] ', 'Jian ', 'Xu ', 'Lu ', 'Gui ', 'Gai ', '[?] ', '[?] ', 'Po ', 'Jin ', 'Gui ', 'Tang ', 'Yuan ', 'Suo ', 'Yuan ', 'Lian ', 'Yao ', 'Meng ', 'Zhun ', 'Sheng ', 'Ke ', 'Tai ', 'Da ', 'Wa ', 'Liu ', 'Gou ', 'Sao ', 'Ming ', 'Zha ', 'Shi ', 'Yi ', 'Lun ', 'Ma ', 'Pu ', 'Wei ', 'Li ', 'Cai ', 'Wu ', 'Xi ', 'Wen ', 'Qiang ', 'Ze ', 'Shi ', 'Su ', 'Yi ', 'Zhen ', 'Sou ', 'Yun ', 'Xiu ', 'Yin ', 'Rong ', 'Hun ', 'Su ', 'Su ', 'Ni ', 'Ta ', 'Shi ', 'Ru ', 'Wei ', 'Pan ', 'Chu ', 'Chu ', 'Pang ', 'Weng ', 'Cang ', 'Mie ', 'He ', 'Dian ', 'Hao ', 'Huang ', 'Xi ', 'Zi ', 'Di ', 'Zhi ', 'Ying ', 'Fu ', 'Jie ', 'Hua ', 'Ge ', 'Zi ', 'Tao ', 'Teng ', 'Sui ', 'Bi ', 'Jiao ', 'Hui ', 'Gun ', 'Yin ', 'Gao ', 'Long ', 'Zhi ', 'Yan ', 'She ', 'Man ', 'Ying ', 'Chun ', 'Lu ', 'Lan ', 'Luan ', '[?] ', 'Bin ', 'Tan ', 'Yu ', 'Sou ', 'Hu ', 'Bi ', 'Biao ', 'Zhi ', 'Jiang ', 'Kou ', 'Shen ', 'Shang ', 'Di ', 'Mi ', 'Ao ', 'Lu ', 'Hu ', 'Hu ', 'You ', 'Chan ', 'Fan ', 'Yong ', 'Gun ', 'Man ']; <?php return ['Qing ', 'Yu ', 'Piao ', 'Ji ', 'Ya ', 'Jiao ', 'Qi ', 'Xi ', 'Ji ', 'Lu ', 'Lu ', 'Long ', 'Jin ', 'Guo ', 'Cong ', 'Lou ', 'Zhi ', 'Gai ', 'Qiang ', 'Li ', 'Yan ', 'Cao ', 'Jiao ', 'Cong ', 'Qun ', 'Tuan ', 'Ou ', 'Teng ', 'Ye ', 'Xi ', 'Mi ', 'Tang ', 'Mo ', 'Shang ', 'Han ', 'Lian ', 'Lan ', 'Wa ', 'Li ', 'Qian ', 'Feng ', 'Xuan ', 'Yi ', 'Man ', 'Zi ', 'Mang ', 'Kang ', 'Lei ', 'Peng ', 'Shu ', 'Zhang ', 'Zhang ', 'Chong ', 'Xu ', 'Huan ', 'Kuo ', 'Jian ', 'Yan ', 'Chuang ', 'Liao ', 'Cui ', 'Ti ', 'Yang ', 'Jiang ', 'Cong ', 'Ying ', 'Hong ', 'Xun ', 'Shu ', 'Guan ', 'Ying ', 'Xiao ', '[?] ', '[?] ', 'Xu ', 'Lian ', 'Zhi ', 'Wei ', 'Pi ', 'Jue ', 'Jiao ', 'Po ', 'Dang ', 'Hui ', 'Jie ', 'Wu ', 'Pa ', 'Ji ', 'Pan ', 'Gui ', 'Xiao ', 'Qian ', 'Qian ', 'Xi ', 'Lu ', 'Xi ', 'Xuan ', 'Dun ', 'Huang ', 'Min ', 'Run ', 'Su ', 'Liao ', 'Zhen ', 'Zhong ', 'Yi ', 'Di ', 'Wan ', 'Dan ', 'Tan ', 'Chao ', 'Xun ', 'Kui ', 'Yie ', 'Shao ', 'Tu ', 'Zhu ', 'San ', 'Hei ', 'Bi ', 'Shan ', 'Chan ', 'Chan ', 'Shu ', 'Tong ', 'Pu ', 'Lin ', 'Wei ', 'Se ', 'Se ', 'Cheng ', 'Jiong ', 'Cheng ', 'Hua ', 'Jiao ', 'Lao ', 'Che ', 'Gan ', 'Cun ', 'Heng ', 'Si ', 'Shu ', 'Peng ', 'Han ', 'Yun ', 'Liu ', 'Hong ', 'Fu ', 'Hao ', 'He ', 'Xian ', 'Jian ', 'Shan ', 'Xi ', 'Oki ', '[?] ', 'Lan ', '[?] ', 'Yu ', 'Lin ', 'Min ', 'Zao ', 'Dang ', 'Wan ', 'Ze ', 'Xie ', 'Yu ', 'Li ', 'Shi ', 'Xue ', 'Ling ', 'Man ', 'Zi ', 'Yong ', 'Kuai ', 'Can ', 'Lian ', 'Dian ', 'Ye ', 'Ao ', 'Huan ', 'Zhen ', 'Chan ', 'Man ', 'Dan ', 'Dan ', 'Yi ', 'Sui ', 'Pi ', 'Ju ', 'Ta ', 'Qin ', 'Ji ', 'Zhuo ', 'Lian ', 'Nong ', 'Guo ', 'Jin ', 'Fen ', 'Se ', 'Ji ', 'Sui ', 'Hui ', 'Chu ', 'Ta ', 'Song ', 'Ding ', '[?] ', 'Zhu ', 'Lai ', 'Bin ', 'Lian ', 'Mi ', 'Shi ', 'Shu ', 'Mi ', 'Ning ', 'Ying ', 'Ying ', 'Meng ', 'Jin ', 'Qi ', 'Pi ', 'Ji ', 'Hao ', 'Ru ', 'Zui ', 'Wo ', 'Tao ', 'Yin ', 'Yin ', 'Dui ', 'Ci ', 'Huo ', 'Jing ', 'Lan ', 'Jun ', 'Ai ', 'Pu ', 'Zhuo ', 'Wei ', 'Bin ', 'Gu ', 'Qian ', 'Xing ', 'Hama ', 'Kuo ', 'Fei ', '[?] ', 'Boku ', 'Jian ', 'Wei ', 'Luo ', 'Zan ', 'Lu ', 'Li ']; <?php return ['You ', 'Yang ', 'Lu ', 'Si ', 'Jie ', 'Ying ', 'Du ', 'Wang ', 'Hui ', 'Xie ', 'Pan ', 'Shen ', 'Biao ', 'Chan ', 'Mo ', 'Liu ', 'Jian ', 'Pu ', 'Se ', 'Cheng ', 'Gu ', 'Bin ', 'Huo ', 'Xian ', 'Lu ', 'Qin ', 'Han ', 'Ying ', 'Yong ', 'Li ', 'Jing ', 'Xiao ', 'Ying ', 'Sui ', 'Wei ', 'Xie ', 'Huai ', 'Hao ', 'Zhu ', 'Long ', 'Lai ', 'Dui ', 'Fan ', 'Hu ', 'Lai ', '[?] ', '[?] ', 'Ying ', 'Mi ', 'Ji ', 'Lian ', 'Jian ', 'Ying ', 'Fen ', 'Lin ', 'Yi ', 'Jian ', 'Yue ', 'Chan ', 'Dai ', 'Rang ', 'Jian ', 'Lan ', 'Fan ', 'Shuang ', 'Yuan ', 'Zhuo ', 'Feng ', 'She ', 'Lei ', 'Lan ', 'Cong ', 'Qu ', 'Yong ', 'Qian ', 'Fa ', 'Guan ', 'Que ', 'Yan ', 'Hao ', 'Hyeng ', 'Sa ', 'Zan ', 'Luan ', 'Yan ', 'Li ', 'Mi ', 'Shan ', 'Tan ', 'Dang ', 'Jiao ', 'Chan ', '[?] ', 'Hao ', 'Ba ', 'Zhu ', 'Lan ', 'Lan ', 'Nang ', 'Wan ', 'Luan ', 'Xun ', 'Xian ', 'Yan ', 'Gan ', 'Yan ', 'Yu ', 'Huo ', 'Si ', 'Mie ', 'Guang ', 'Deng ', 'Hui ', 'Xiao ', 'Xiao ', 'Hu ', 'Hong ', 'Ling ', 'Zao ', 'Zhuan ', 'Jiu ', 'Zha ', 'Xie ', 'Chi ', 'Zhuo ', 'Zai ', 'Zai ', 'Can ', 'Yang ', 'Qi ', 'Zhong ', 'Fen ', 'Niu ', 'Jiong ', 'Wen ', 'Po ', 'Yi ', 'Lu ', 'Chui ', 'Pi ', 'Kai ', 'Pan ', 'Yan ', 'Kai ', 'Pang ', 'Mu ', 'Chao ', 'Liao ', 'Gui ', 'Kang ', 'Tun ', 'Guang ', 'Xin ', 'Zhi ', 'Guang ', 'Guang ', 'Wei ', 'Qiang ', '[?] ', 'Da ', 'Xia ', 'Zheng ', 'Zhu ', 'Ke ', 'Zhao ', 'Fu ', 'Ba ', 'Duo ', 'Duo ', 'Ling ', 'Zhuo ', 'Xuan ', 'Ju ', 'Tan ', 'Pao ', 'Jiong ', 'Pao ', 'Tai ', 'Tai ', 'Bing ', 'Yang ', 'Tong ', 'Han ', 'Zhu ', 'Zha ', 'Dian ', 'Wei ', 'Shi ', 'Lian ', 'Chi ', 'Huang ', '[?] ', 'Hu ', 'Shuo ', 'Lan ', 'Jing ', 'Jiao ', 'Xu ', 'Xing ', 'Quan ', 'Lie ', 'Huan ', 'Yang ', 'Xiao ', 'Xiu ', 'Xian ', 'Yin ', 'Wu ', 'Zhou ', 'Yao ', 'Shi ', 'Wei ', 'Tong ', 'Xue ', 'Zai ', 'Kai ', 'Hong ', 'Luo ', 'Xia ', 'Zhu ', 'Xuan ', 'Zheng ', 'Po ', 'Yan ', 'Hui ', 'Guang ', 'Zhe ', 'Hui ', 'Kao ', '[?] ', 'Fan ', 'Shao ', 'Ye ', 'Hui ', '[?] ', 'Tang ', 'Jin ', 'Re ', '[?] ', 'Xi ', 'Fu ', 'Jiong ', 'Che ', 'Pu ', 'Jing ', 'Zhuo ', 'Ting ', 'Wan ', 'Hai ', 'Peng ', 'Lang ', 'Shan ', 'Hu ', 'Feng ', 'Chi ', 'Rong ']; <?php return ['Hu ', 'Xi ', 'Shu ', 'He ', 'Xun ', 'Ku ', 'Jue ', 'Xiao ', 'Xi ', 'Yan ', 'Han ', 'Zhuang ', 'Jun ', 'Di ', 'Xie ', 'Ji ', 'Wu ', '[?] ', '[?] ', 'Han ', 'Yan ', 'Huan ', 'Men ', 'Ju ', 'Chou ', 'Bei ', 'Fen ', 'Lin ', 'Kun ', 'Hun ', 'Tun ', 'Xi ', 'Cui ', 'Wu ', 'Hong ', 'Ju ', 'Fu ', 'Wo ', 'Jiao ', 'Cong ', 'Feng ', 'Ping ', 'Qiong ', 'Ruo ', 'Xi ', 'Qiong ', 'Xin ', 'Zhuo ', 'Yan ', 'Yan ', 'Yi ', 'Jue ', 'Yu ', 'Gang ', 'Ran ', 'Pi ', 'Gu ', '[?] ', 'Sheng ', 'Chang ', 'Shao ', '[?] ', '[?] ', '[?] ', '[?] ', 'Chen ', 'He ', 'Kui ', 'Zhong ', 'Duan ', 'Xia ', 'Hui ', 'Feng ', 'Lian ', 'Xuan ', 'Xing ', 'Huang ', 'Jiao ', 'Jian ', 'Bi ', 'Ying ', 'Zhu ', 'Wei ', 'Tuan ', 'Tian ', 'Xi ', 'Nuan ', 'Nuan ', 'Chan ', 'Yan ', 'Jiong ', 'Jiong ', 'Yu ', 'Mei ', 'Sha ', 'Wei ', 'Ye ', 'Xin ', 'Qiong ', 'Rou ', 'Mei ', 'Huan ', 'Xu ', 'Zhao ', 'Wei ', 'Fan ', 'Qiu ', 'Sui ', 'Yang ', 'Lie ', 'Zhu ', 'Jie ', 'Gao ', 'Gua ', 'Bao ', 'Hu ', 'Yun ', 'Xia ', '[?] ', '[?] ', 'Bian ', 'Gou ', 'Tui ', 'Tang ', 'Chao ', 'Shan ', 'N ', 'Bo ', 'Huang ', 'Xie ', 'Xi ', 'Wu ', 'Xi ', 'Yun ', 'He ', 'He ', 'Xi ', 'Yun ', 'Xiong ', 'Nai ', 'Shan ', 'Qiong ', 'Yao ', 'Xun ', 'Mi ', 'Lian ', 'Ying ', 'Wen ', 'Rong ', 'Oozutsu ', '[?] ', 'Qiang ', 'Liu ', 'Xi ', 'Bi ', 'Biao ', 'Zong ', 'Lu ', 'Jian ', 'Shou ', 'Yi ', 'Lou ', 'Feng ', 'Sui ', 'Yi ', 'Tong ', 'Jue ', 'Zong ', 'Yun ', 'Hu ', 'Yi ', 'Zhi ', 'Ao ', 'Wei ', 'Liao ', 'Han ', 'Ou ', 'Re ', 'Jiong ', 'Man ', '[?] ', 'Shang ', 'Cuan ', 'Zeng ', 'Jian ', 'Xi ', 'Xi ', 'Xi ', 'Yi ', 'Xiao ', 'Chi ', 'Huang ', 'Chan ', 'Ye ', 'Qian ', 'Ran ', 'Yan ', 'Xian ', 'Qiao ', 'Zun ', 'Deng ', 'Dun ', 'Shen ', 'Jiao ', 'Fen ', 'Si ', 'Liao ', 'Yu ', 'Lin ', 'Tong ', 'Shao ', 'Fen ', 'Fan ', 'Yan ', 'Xun ', 'Lan ', 'Mei ', 'Tang ', 'Yi ', 'Jing ', 'Men ', '[?] ', '[?] ', 'Ying ', 'Yu ', 'Yi ', 'Xue ', 'Lan ', 'Tai ', 'Zao ', 'Can ', 'Sui ', 'Xi ', 'Que ', 'Cong ', 'Lian ', 'Hui ', 'Zhu ', 'Xie ', 'Ling ', 'Wei ', 'Yi ', 'Xie ', 'Zhao ', 'Hui ', 'Tatsu ', 'Nung ', 'Lan ', 'Ru ', 'Xian ', 'Kao ', 'Xun ', 'Jin ', 'Chou ', 'Chou ', 'Yao ']; <?php return ['He ', 'Lan ', 'Biao ', 'Rong ', 'Li ', 'Mo ', 'Bao ', 'Ruo ', 'Lu ', 'La ', 'Ao ', 'Xun ', 'Kuang ', 'Shuo ', '[?] ', 'Li ', 'Lu ', 'Jue ', 'Liao ', 'Yan ', 'Xi ', 'Xie ', 'Long ', 'Ye ', '[?] ', 'Rang ', 'Yue ', 'Lan ', 'Cong ', 'Jue ', 'Tong ', 'Guan ', '[?] ', 'Che ', 'Mi ', 'Tang ', 'Lan ', 'Zhu ', '[?] ', 'Ling ', 'Cuan ', 'Yu ', 'Zhua ', 'Tsumekanmuri ', 'Pa ', 'Zheng ', 'Pao ', 'Cheng ', 'Yuan ', 'Ai ', 'Wei ', '[?] ', 'Jue ', 'Jue ', 'Fu ', 'Ye ', 'Ba ', 'Die ', 'Ye ', 'Yao ', 'Zu ', 'Shuang ', 'Er ', 'Qiang ', 'Chuang ', 'Ge ', 'Zang ', 'Die ', 'Qiang ', 'Yong ', 'Qiang ', 'Pian ', 'Ban ', 'Pan ', 'Shao ', 'Jian ', 'Pai ', 'Du ', 'Chuang ', 'Tou ', 'Zha ', 'Bian ', 'Die ', 'Bang ', 'Bo ', 'Chuang ', 'You ', '[?] ', 'Du ', 'Ya ', 'Cheng ', 'Niu ', 'Ushihen ', 'Pin ', 'Jiu ', 'Mou ', 'Tuo ', 'Mu ', 'Lao ', 'Ren ', 'Mang ', 'Fang ', 'Mao ', 'Mu ', 'Gang ', 'Wu ', 'Yan ', 'Ge ', 'Bei ', 'Si ', 'Jian ', 'Gu ', 'You ', 'Ge ', 'Sheng ', 'Mu ', 'Di ', 'Qian ', 'Quan ', 'Quan ', 'Zi ', 'Te ', 'Xi ', 'Mang ', 'Keng ', 'Qian ', 'Wu ', 'Gu ', 'Xi ', 'Li ', 'Li ', 'Pou ', 'Ji ', 'Gang ', 'Zhi ', 'Ben ', 'Quan ', 'Run ', 'Du ', 'Ju ', 'Jia ', 'Jian ', 'Feng ', 'Pian ', 'Ke ', 'Ju ', 'Kao ', 'Chu ', 'Xi ', 'Bei ', 'Luo ', 'Jie ', 'Ma ', 'San ', 'Wei ', 'Li ', 'Dun ', 'Tong ', '[?] ', 'Jiang ', 'Ikenie ', 'Li ', 'Du ', 'Lie ', 'Pi ', 'Piao ', 'Bao ', 'Xi ', 'Chou ', 'Wei ', 'Kui ', 'Chou ', 'Quan ', 'Fan ', 'Ba ', 'Fan ', 'Qiu ', 'Ji ', 'Cai ', 'Chuo ', 'An ', 'Jie ', 'Zhuang ', 'Guang ', 'Ma ', 'You ', 'Kang ', 'Bo ', 'Hou ', 'Ya ', 'Yin ', 'Huan ', 'Zhuang ', 'Yun ', 'Kuang ', 'Niu ', 'Di ', 'Qing ', 'Zhong ', 'Mu ', 'Bei ', 'Pi ', 'Ju ', 'Ni ', 'Sheng ', 'Pao ', 'Xia ', 'Tuo ', 'Hu ', 'Ling ', 'Fei ', 'Pi ', 'Ni ', 'Ao ', 'You ', 'Gou ', 'Yue ', 'Ju ', 'Dan ', 'Po ', 'Gu ', 'Xian ', 'Ning ', 'Huan ', 'Hen ', 'Jiao ', 'He ', 'Zhao ', 'Ji ', 'Xun ', 'Shan ', 'Ta ', 'Rong ', 'Shou ', 'Tong ', 'Lao ', 'Du ', 'Xia ', 'Shi ', 'Hua ', 'Zheng ', 'Yu ', 'Sun ', 'Yu ', 'Bi ', 'Mang ', 'Xi ', 'Juan ', 'Li ', 'Xia ', 'Yin ', 'Suan ', 'Lang ', 'Bei ', 'Zhi ', 'Yan ']; <?php return ['Sha ', 'Li ', 'Han ', 'Xian ', 'Jing ', 'Pai ', 'Fei ', 'Yao ', 'Ba ', 'Qi ', 'Ni ', 'Biao ', 'Yin ', 'Lai ', 'Xi ', 'Jian ', 'Qiang ', 'Kun ', 'Yan ', 'Guo ', 'Zong ', 'Mi ', 'Chang ', 'Yi ', 'Zhi ', 'Zheng ', 'Ya ', 'Meng ', 'Cai ', 'Cu ', 'She ', 'Kari ', 'Cen ', 'Luo ', 'Hu ', 'Zong ', 'Ji ', 'Wei ', 'Feng ', 'Wo ', 'Yuan ', 'Xing ', 'Zhu ', 'Mao ', 'Wei ', 'Yuan ', 'Xian ', 'Tuan ', 'Ya ', 'Nao ', 'Xie ', 'Jia ', 'Hou ', 'Bian ', 'You ', 'You ', 'Mei ', 'Zha ', 'Yao ', 'Sun ', 'Bo ', 'Ming ', 'Hua ', 'Yuan ', 'Sou ', 'Ma ', 'Yuan ', 'Dai ', 'Yu ', 'Shi ', 'Hao ', '[?] ', 'Yi ', 'Zhen ', 'Chuang ', 'Hao ', 'Man ', 'Jing ', 'Jiang ', 'Mu ', 'Zhang ', 'Chan ', 'Ao ', 'Ao ', 'Hao ', 'Cui ', 'Fen ', 'Jue ', 'Bi ', 'Bi ', 'Huang ', 'Pu ', 'Lin ', 'Yu ', 'Tong ', 'Yao ', 'Liao ', 'Shuo ', 'Xiao ', 'Swu ', 'Ton ', 'Xi ', 'Ge ', 'Juan ', 'Du ', 'Hui ', 'Kuai ', 'Xian ', 'Xie ', 'Ta ', 'Xian ', 'Xun ', 'Ning ', 'Pin ', 'Huo ', 'Nou ', 'Meng ', 'Lie ', 'Nao ', 'Guang ', 'Shou ', 'Lu ', 'Ta ', 'Xian ', 'Mi ', 'Rang ', 'Huan ', 'Nao ', 'Luo ', 'Xian ', 'Qi ', 'Jue ', 'Xuan ', 'Miao ', 'Zi ', 'Lu ', 'Lu ', 'Yu ', 'Su ', 'Wang ', 'Qiu ', 'Ga ', 'Ding ', 'Le ', 'Ba ', 'Ji ', 'Hong ', 'Di ', 'Quan ', 'Gan ', 'Jiu ', 'Yu ', 'Ji ', 'Yu ', 'Yang ', 'Ma ', 'Gong ', 'Wu ', 'Fu ', 'Wen ', 'Jie ', 'Ya ', 'Fen ', 'Bian ', 'Beng ', 'Yue ', 'Jue ', 'Yun ', 'Jue ', 'Wan ', 'Jian ', 'Mei ', 'Dan ', 'Pi ', 'Wei ', 'Huan ', 'Xian ', 'Qiang ', 'Ling ', 'Dai ', 'Yi ', 'An ', 'Ping ', 'Dian ', 'Fu ', 'Xuan ', 'Xi ', 'Bo ', 'Ci ', 'Gou ', 'Jia ', 'Shao ', 'Po ', 'Ci ', 'Ke ', 'Ran ', 'Sheng ', 'Shen ', 'Yi ', 'Zu ', 'Jia ', 'Min ', 'Shan ', 'Liu ', 'Bi ', 'Zhen ', 'Zhen ', 'Jue ', 'Fa ', 'Long ', 'Jin ', 'Jiao ', 'Jian ', 'Li ', 'Guang ', 'Xian ', 'Zhou ', 'Gong ', 'Yan ', 'Xiu ', 'Yang ', 'Xu ', 'Luo ', 'Su ', 'Zhu ', 'Qin ', 'Ken ', 'Xun ', 'Bao ', 'Er ', 'Xiang ', 'Yao ', 'Xia ', 'Heng ', 'Gui ', 'Chong ', 'Xu ', 'Ban ', 'Pei ', '[?] ', 'Dang ', 'Ei ', 'Hun ', 'Wen ', 'E ', 'Cheng ', 'Ti ', 'Wu ', 'Wu ', 'Cheng ', 'Jun ', 'Mei ', 'Bei ', 'Ting ', 'Xian ', 'Chuo ']; <?php return ['Han ', 'Xuan ', 'Yan ', 'Qiu ', 'Quan ', 'Lang ', 'Li ', 'Xiu ', 'Fu ', 'Liu ', 'Ye ', 'Xi ', 'Ling ', 'Li ', 'Jin ', 'Lian ', 'Suo ', 'Chiisai ', '[?] ', 'Wan ', 'Dian ', 'Pin ', 'Zhan ', 'Cui ', 'Min ', 'Yu ', 'Ju ', 'Chen ', 'Lai ', 'Wen ', 'Sheng ', 'Wei ', 'Dian ', 'Chu ', 'Zhuo ', 'Pei ', 'Cheng ', 'Hu ', 'Qi ', 'E ', 'Kun ', 'Chang ', 'Qi ', 'Beng ', 'Wan ', 'Lu ', 'Cong ', 'Guan ', 'Yan ', 'Diao ', 'Bei ', 'Lin ', 'Qin ', 'Pi ', 'Pa ', 'Que ', 'Zhuo ', 'Qin ', 'Fa ', '[?] ', 'Qiong ', 'Du ', 'Jie ', 'Hun ', 'Yu ', 'Mao ', 'Mei ', 'Chun ', 'Xuan ', 'Ti ', 'Xing ', 'Dai ', 'Rou ', 'Min ', 'Zhen ', 'Wei ', 'Ruan ', 'Huan ', 'Jie ', 'Chuan ', 'Jian ', 'Zhuan ', 'Yang ', 'Lian ', 'Quan ', 'Xia ', 'Duan ', 'Yuan ', 'Ye ', 'Nao ', 'Hu ', 'Ying ', 'Yu ', 'Huang ', 'Rui ', 'Se ', 'Liu ', 'Shi ', 'Rong ', 'Suo ', 'Yao ', 'Wen ', 'Wu ', 'Jin ', 'Jin ', 'Ying ', 'Ma ', 'Tao ', 'Liu ', 'Tang ', 'Li ', 'Lang ', 'Gui ', 'Zhen ', 'Qiang ', 'Cuo ', 'Jue ', 'Zhao ', 'Yao ', 'Ai ', 'Bin ', 'Tu ', 'Chang ', 'Kun ', 'Zhuan ', 'Cong ', 'Jin ', 'Yi ', 'Cui ', 'Cong ', 'Qi ', 'Li ', 'Ying ', 'Suo ', 'Qiu ', 'Xuan ', 'Ao ', 'Lian ', 'Man ', 'Zhang ', 'Yin ', '[?] ', 'Ying ', 'Zhi ', 'Lu ', 'Wu ', 'Deng ', 'Xiou ', 'Zeng ', 'Xun ', 'Qu ', 'Dang ', 'Lin ', 'Liao ', 'Qiong ', 'Su ', 'Huang ', 'Gui ', 'Pu ', 'Jing ', 'Fan ', 'Jin ', 'Liu ', 'Ji ', '[?] ', 'Jing ', 'Ai ', 'Bi ', 'Can ', 'Qu ', 'Zao ', 'Dang ', 'Jiao ', 'Gun ', 'Tan ', 'Hui ', 'Huan ', 'Se ', 'Sui ', 'Tian ', '[?] ', 'Yu ', 'Jin ', 'Lu ', 'Bin ', 'Shou ', 'Wen ', 'Zui ', 'Lan ', 'Xi ', 'Ji ', 'Xuan ', 'Ruan ', 'Huo ', 'Gai ', 'Lei ', 'Du ', 'Li ', 'Zhi ', 'Rou ', 'Li ', 'Zan ', 'Qiong ', 'Zhe ', 'Gui ', 'Sui ', 'La ', 'Long ', 'Lu ', 'Li ', 'Zan ', 'Lan ', 'Ying ', 'Mi ', 'Xiang ', 'Xi ', 'Guan ', 'Dao ', 'Zan ', 'Huan ', 'Gua ', 'Bo ', 'Die ', 'Bao ', 'Hu ', 'Zhi ', 'Piao ', 'Ban ', 'Rang ', 'Li ', 'Wa ', 'Dekaguramu ', 'Jiang ', 'Qian ', 'Fan ', 'Pen ', 'Fang ', 'Dan ', 'Weng ', 'Ou ', 'Deshiguramu ', 'Miriguramu ', 'Thon ', 'Hu ', 'Ling ', 'Yi ', 'Ping ', 'Ci ', 'Hekutogura ', 'Juan ', 'Chang ', 'Chi ', 'Sarake ', 'Dang ', 'Meng ', 'Pou ']; <?php return ['Zhui ', 'Ping ', 'Bian ', 'Zhou ', 'Zhen ', 'Senchigura ', 'Ci ', 'Ying ', 'Qi ', 'Xian ', 'Lou ', 'Di ', 'Ou ', 'Meng ', 'Zhuan ', 'Peng ', 'Lin ', 'Zeng ', 'Wu ', 'Pi ', 'Dan ', 'Weng ', 'Ying ', 'Yan ', 'Gan ', 'Dai ', 'Shen ', 'Tian ', 'Tian ', 'Han ', 'Chang ', 'Sheng ', 'Qing ', 'Sheng ', 'Chan ', 'Chan ', 'Rui ', 'Sheng ', 'Su ', 'Sen ', 'Yong ', 'Shuai ', 'Lu ', 'Fu ', 'Yong ', 'Beng ', 'Feng ', 'Ning ', 'Tian ', 'You ', 'Jia ', 'Shen ', 'Zha ', 'Dian ', 'Fu ', 'Nan ', 'Dian ', 'Ping ', 'Ting ', 'Hua ', 'Ting ', 'Quan ', 'Zi ', 'Meng ', 'Bi ', 'Qi ', 'Liu ', 'Xun ', 'Liu ', 'Chang ', 'Mu ', 'Yun ', 'Fan ', 'Fu ', 'Geng ', 'Tian ', 'Jie ', 'Jie ', 'Quan ', 'Wei ', 'Fu ', 'Tian ', 'Mu ', 'Tap ', 'Pan ', 'Jiang ', 'Wa ', 'Da ', 'Nan ', 'Liu ', 'Ben ', 'Zhen ', 'Chu ', 'Mu ', 'Mu ', 'Ce ', 'Cen ', 'Gai ', 'Bi ', 'Da ', 'Zhi ', 'Lue ', 'Qi ', 'Lue ', 'Pan ', 'Kesa ', 'Fan ', 'Hua ', 'Yu ', 'Yu ', 'Mu ', 'Jun ', 'Yi ', 'Liu ', 'Yu ', 'Die ', 'Chou ', 'Hua ', 'Dang ', 'Chuo ', 'Ji ', 'Wan ', 'Jiang ', 'Sheng ', 'Chang ', 'Tuan ', 'Lei ', 'Ji ', 'Cha ', 'Liu ', 'Tatamu ', 'Tuan ', 'Lin ', 'Jiang ', 'Jiang ', 'Chou ', 'Bo ', 'Die ', 'Die ', 'Pi ', 'Nie ', 'Dan ', 'Shu ', 'Shu ', 'Zhi ', 'Yi ', 'Chuang ', 'Nai ', 'Ding ', 'Bi ', 'Jie ', 'Liao ', 'Gong ', 'Ge ', 'Jiu ', 'Zhou ', 'Xia ', 'Shan ', 'Xu ', 'Nue ', 'Li ', 'Yang ', 'Chen ', 'You ', 'Ba ', 'Jie ', 'Jue ', 'Zhi ', 'Xia ', 'Cui ', 'Bi ', 'Yi ', 'Li ', 'Zong ', 'Chuang ', 'Feng ', 'Zhu ', 'Pao ', 'Pi ', 'Gan ', 'Ke ', 'Ci ', 'Xie ', 'Qi ', 'Dan ', 'Zhen ', 'Fa ', 'Zhi ', 'Teng ', 'Ju ', 'Ji ', 'Fei ', 'Qu ', 'Dian ', 'Jia ', 'Xian ', 'Cha ', 'Bing ', 'Ni ', 'Zheng ', 'Yong ', 'Jing ', 'Quan ', 'Chong ', 'Tong ', 'Yi ', 'Kai ', 'Wei ', 'Hui ', 'Duo ', 'Yang ', 'Chi ', 'Zhi ', 'Hen ', 'Ya ', 'Mei ', 'Dou ', 'Jing ', 'Xiao ', 'Tong ', 'Tu ', 'Mang ', 'Pi ', 'Xiao ', 'Suan ', 'Pu ', 'Li ', 'Zhi ', 'Cuo ', 'Duo ', 'Wu ', 'Sha ', 'Lao ', 'Shou ', 'Huan ', 'Xian ', 'Yi ', 'Peng ', 'Zhang ', 'Guan ', 'Tan ', 'Fei ', 'Ma ', 'Lin ', 'Chi ', 'Ji ', 'Dian ', 'An ', 'Chi ', 'Bi ', 'Bei ', 'Min ', 'Gu ', 'Dui ', 'E ', 'Wei ']; <?php return ['Yu ', 'Cui ', 'Ya ', 'Zhu ', 'Cu ', 'Dan ', 'Shen ', 'Zhung ', 'Ji ', 'Yu ', 'Hou ', 'Feng ', 'La ', 'Yang ', 'Shen ', 'Tu ', 'Yu ', 'Gua ', 'Wen ', 'Huan ', 'Ku ', 'Jia ', 'Yin ', 'Yi ', 'Lu ', 'Sao ', 'Jue ', 'Chi ', 'Xi ', 'Guan ', 'Yi ', 'Wen ', 'Ji ', 'Chuang ', 'Ban ', 'Lei ', 'Liu ', 'Chai ', 'Shou ', 'Nue ', 'Dian ', 'Da ', 'Pie ', 'Tan ', 'Zhang ', 'Biao ', 'Shen ', 'Cu ', 'Luo ', 'Yi ', 'Zong ', 'Chou ', 'Zhang ', 'Zhai ', 'Sou ', 'Suo ', 'Que ', 'Diao ', 'Lou ', 'Lu ', 'Mo ', 'Jin ', 'Yin ', 'Ying ', 'Huang ', 'Fu ', 'Liao ', 'Long ', 'Qiao ', 'Liu ', 'Lao ', 'Xian ', 'Fei ', 'Dan ', 'Yin ', 'He ', 'Yan ', 'Ban ', 'Xian ', 'Guan ', 'Guai ', 'Nong ', 'Yu ', 'Wei ', 'Yi ', 'Yong ', 'Pi ', 'Lei ', 'Li ', 'Shu ', 'Dan ', 'Lin ', 'Dian ', 'Lin ', 'Lai ', 'Pie ', 'Ji ', 'Chi ', 'Yang ', 'Xian ', 'Jie ', 'Zheng ', '[?] ', 'Li ', 'Huo ', 'Lai ', 'Shaku ', 'Dian ', 'Xian ', 'Ying ', 'Yin ', 'Qu ', 'Yong ', 'Tan ', 'Dian ', 'Luo ', 'Luan ', 'Luan ', 'Bo ', '[?] ', 'Gui ', 'Po ', 'Fa ', 'Deng ', 'Fa ', 'Bai ', 'Bai ', 'Qie ', 'Bi ', 'Zao ', 'Zao ', 'Mao ', 'De ', 'Pa ', 'Jie ', 'Huang ', 'Gui ', 'Ci ', 'Ling ', 'Gao ', 'Mo ', 'Ji ', 'Jiao ', 'Peng ', 'Gao ', 'Ai ', 'E ', 'Hao ', 'Han ', 'Bi ', 'Wan ', 'Chou ', 'Qian ', 'Xi ', 'Ai ', 'Jiong ', 'Hao ', 'Huang ', 'Hao ', 'Ze ', 'Cui ', 'Hao ', 'Xiao ', 'Ye ', 'Po ', 'Hao ', 'Jiao ', 'Ai ', 'Xing ', 'Huang ', 'Li ', 'Piao ', 'He ', 'Jiao ', 'Pi ', 'Gan ', 'Pao ', 'Zhou ', 'Jun ', 'Qiu ', 'Cun ', 'Que ', 'Zha ', 'Gu ', 'Jun ', 'Jun ', 'Zhou ', 'Zha ', 'Gu ', 'Zhan ', 'Du ', 'Min ', 'Qi ', 'Ying ', 'Yu ', 'Bei ', 'Zhao ', 'Zhong ', 'Pen ', 'He ', 'Ying ', 'He ', 'Yi ', 'Bo ', 'Wan ', 'He ', 'Ang ', 'Zhan ', 'Yan ', 'Jian ', 'He ', 'Yu ', 'Kui ', 'Fan ', 'Gai ', 'Dao ', 'Pan ', 'Fu ', 'Qiu ', 'Sheng ', 'Dao ', 'Lu ', 'Zhan ', 'Meng ', 'Li ', 'Jin ', 'Xu ', 'Jian ', 'Pan ', 'Guan ', 'An ', 'Lu ', 'Shu ', 'Zhou ', 'Dang ', 'An ', 'Gu ', 'Li ', 'Mu ', 'Cheng ', 'Gan ', 'Xu ', 'Mang ', 'Mang ', 'Zhi ', 'Qi ', 'Ruan ', 'Tian ', 'Xiang ', 'Dun ', 'Xin ', 'Xi ', 'Pan ', 'Feng ', 'Dun ', 'Min ']; <?php return ['Ming ', 'Sheng ', 'Shi ', 'Yun ', 'Mian ', 'Pan ', 'Fang ', 'Miao ', 'Dan ', 'Mei ', 'Mao ', 'Kan ', 'Xian ', 'Ou ', 'Shi ', 'Yang ', 'Zheng ', 'Yao ', 'Shen ', 'Huo ', 'Da ', 'Zhen ', 'Kuang ', 'Ju ', 'Shen ', 'Chi ', 'Sheng ', 'Mei ', 'Mo ', 'Zhu ', 'Zhen ', 'Zhen ', 'Mian ', 'Di ', 'Yuan ', 'Die ', 'Yi ', 'Zi ', 'Zi ', 'Chao ', 'Zha ', 'Xuan ', 'Bing ', 'Mi ', 'Long ', 'Sui ', 'Dong ', 'Mi ', 'Die ', 'Yi ', 'Er ', 'Ming ', 'Xuan ', 'Chi ', 'Kuang ', 'Juan ', 'Mou ', 'Zhen ', 'Tiao ', 'Yang ', 'Yan ', 'Mo ', 'Zhong ', 'Mai ', 'Zhao ', 'Zheng ', 'Mei ', 'Jun ', 'Shao ', 'Han ', 'Huan ', 'Di ', 'Cheng ', 'Cuo ', 'Juan ', 'E ', 'Wan ', 'Xian ', 'Xi ', 'Kun ', 'Lai ', 'Jian ', 'Shan ', 'Tian ', 'Hun ', 'Wan ', 'Ling ', 'Shi ', 'Qiong ', 'Lie ', 'Yai ', 'Jing ', 'Zheng ', 'Li ', 'Lai ', 'Sui ', 'Juan ', 'Shui ', 'Sui ', 'Du ', 'Bi ', 'Bi ', 'Mu ', 'Hun ', 'Ni ', 'Lu ', 'Yi ', 'Jie ', 'Cai ', 'Zhou ', 'Yu ', 'Hun ', 'Ma ', 'Xia ', 'Xing ', 'Xi ', 'Gun ', 'Cai ', 'Chun ', 'Jian ', 'Mei ', 'Du ', 'Hou ', 'Xuan ', 'Ti ', 'Kui ', 'Gao ', 'Rui ', 'Mou ', 'Xu ', 'Fa ', 'Wen ', 'Miao ', 'Chou ', 'Kui ', 'Mi ', 'Weng ', 'Kou ', 'Dang ', 'Chen ', 'Ke ', 'Sou ', 'Xia ', 'Qiong ', 'Mao ', 'Ming ', 'Man ', 'Shui ', 'Ze ', 'Zhang ', 'Yi ', 'Diao ', 'Ou ', 'Mo ', 'Shun ', 'Cong ', 'Lou ', 'Chi ', 'Man ', 'Piao ', 'Cheng ', 'Ji ', 'Meng ', '[?] ', 'Run ', 'Pie ', 'Xi ', 'Qiao ', 'Pu ', 'Zhu ', 'Deng ', 'Shen ', 'Shun ', 'Liao ', 'Che ', 'Xian ', 'Kan ', 'Ye ', 'Xu ', 'Tong ', 'Mou ', 'Lin ', 'Kui ', 'Xian ', 'Ye ', 'Ai ', 'Hui ', 'Zhan ', 'Jian ', 'Gu ', 'Zhao ', 'Qu ', 'Wei ', 'Chou ', 'Sao ', 'Ning ', 'Xun ', 'Yao ', 'Huo ', 'Meng ', 'Mian ', 'Bin ', 'Mian ', 'Li ', 'Kuang ', 'Jue ', 'Xuan ', 'Mian ', 'Huo ', 'Lu ', 'Meng ', 'Long ', 'Guan ', 'Man ', 'Xi ', 'Chu ', 'Tang ', 'Kan ', 'Zhu ', 'Mao ', 'Jin ', 'Lin ', 'Yu ', 'Shuo ', 'Ce ', 'Jue ', 'Shi ', 'Yi ', 'Shen ', 'Zhi ', 'Hou ', 'Shen ', 'Ying ', 'Ju ', 'Zhou ', 'Jiao ', 'Cuo ', 'Duan ', 'Ai ', 'Jiao ', 'Zeng ', 'Huo ', 'Bai ', 'Shi ', 'Ding ', 'Qi ', 'Ji ', 'Zi ', 'Gan ', 'Wu ', 'Tuo ', 'Ku ', 'Qiang ', 'Xi ', 'Fan ', 'Kuang ']; <?php return ['Dang ', 'Ma ', 'Sha ', 'Dan ', 'Jue ', 'Li ', 'Fu ', 'Min ', 'Nuo ', 'Huo ', 'Kang ', 'Zhi ', 'Qi ', 'Kan ', 'Jie ', 'Fen ', 'E ', 'Ya ', 'Pi ', 'Zhe ', 'Yan ', 'Sui ', 'Zhuan ', 'Che ', 'Dun ', 'Pan ', 'Yan ', '[?] ', 'Feng ', 'Fa ', 'Mo ', 'Zha ', 'Qu ', 'Yu ', 'Luo ', 'Tuo ', 'Tuo ', 'Di ', 'Zhai ', 'Zhen ', 'Ai ', 'Fei ', 'Mu ', 'Zhu ', 'Li ', 'Bian ', 'Nu ', 'Ping ', 'Peng ', 'Ling ', 'Pao ', 'Le ', 'Po ', 'Bo ', 'Po ', 'Shen ', 'Za ', 'Nuo ', 'Li ', 'Long ', 'Tong ', '[?] ', 'Li ', 'Aragane ', 'Chu ', 'Keng ', 'Quan ', 'Zhu ', 'Kuang ', 'Huo ', 'E ', 'Nao ', 'Jia ', 'Lu ', 'Wei ', 'Ai ', 'Luo ', 'Ken ', 'Xing ', 'Yan ', 'Tong ', 'Peng ', 'Xi ', '[?] ', 'Hong ', 'Shuo ', 'Xia ', 'Qiao ', '[?] ', 'Wei ', 'Qiao ', '[?] ', 'Keng ', 'Xiao ', 'Que ', 'Chan ', 'Lang ', 'Hong ', 'Yu ', 'Xiao ', 'Xia ', 'Mang ', 'Long ', 'Iong ', 'Che ', 'Che ', 'E ', 'Liu ', 'Ying ', 'Mang ', 'Que ', 'Yan ', 'Sha ', 'Kun ', 'Yu ', '[?] ', 'Kaki ', 'Lu ', 'Chen ', 'Jian ', 'Nue ', 'Song ', 'Zhuo ', 'Keng ', 'Peng ', 'Yan ', 'Zhui ', 'Kong ', 'Ceng ', 'Qi ', 'Zong ', 'Qing ', 'Lin ', 'Jun ', 'Bo ', 'Ding ', 'Min ', 'Diao ', 'Jian ', 'He ', 'Lu ', 'Ai ', 'Sui ', 'Que ', 'Ling ', 'Bei ', 'Yin ', 'Dui ', 'Wu ', 'Qi ', 'Lun ', 'Wan ', 'Dian ', 'Gang ', 'Pei ', 'Qi ', 'Chen ', 'Ruan ', 'Yan ', 'Die ', 'Ding ', 'Du ', 'Tuo ', 'Jie ', 'Ying ', 'Bian ', 'Ke ', 'Bi ', 'Wei ', 'Shuo ', 'Zhen ', 'Duan ', 'Xia ', 'Dang ', 'Ti ', 'Nao ', 'Peng ', 'Jian ', 'Di ', 'Tan ', 'Cha ', 'Seki ', 'Qi ', '[?] ', 'Feng ', 'Xuan ', 'Que ', 'Que ', 'Ma ', 'Gong ', 'Nian ', 'Su ', 'E ', 'Ci ', 'Liu ', 'Si ', 'Tang ', 'Bang ', 'Hua ', 'Pi ', 'Wei ', 'Sang ', 'Lei ', 'Cuo ', 'Zhen ', 'Xia ', 'Qi ', 'Lian ', 'Pan ', 'Wei ', 'Yun ', 'Dui ', 'Zhe ', 'Ke ', 'La ', '[?] ', 'Qing ', 'Gun ', 'Zhuan ', 'Chan ', 'Qi ', 'Ao ', 'Peng ', 'Lu ', 'Lu ', 'Kan ', 'Qiang ', 'Chen ', 'Yin ', 'Lei ', 'Biao ', 'Qi ', 'Mo ', 'Qi ', 'Cui ', 'Zong ', 'Qing ', 'Chuo ', '[?] ', 'Ji ', 'Shan ', 'Lao ', 'Qu ', 'Zeng ', 'Deng ', 'Jian ', 'Xi ', 'Lin ', 'Ding ', 'Dian ', 'Huang ', 'Pan ', 'Za ', 'Qiao ', 'Di ', 'Li ']; <?php return ['Tani ', 'Jiao ', '[?] ', 'Zhang ', 'Qiao ', 'Dun ', 'Xian ', 'Yu ', 'Zhui ', 'He ', 'Huo ', 'Zhai ', 'Lei ', 'Ke ', 'Chu ', 'Ji ', 'Que ', 'Dang ', 'Yi ', 'Jiang ', 'Pi ', 'Pi ', 'Yu ', 'Pin ', 'Qi ', 'Ai ', 'Kai ', 'Jian ', 'Yu ', 'Ruan ', 'Meng ', 'Pao ', 'Ci ', '[?] ', '[?] ', 'Mie ', 'Ca ', 'Xian ', 'Kuang ', 'Lei ', 'Lei ', 'Zhi ', 'Li ', 'Li ', 'Fan ', 'Que ', 'Pao ', 'Ying ', 'Li ', 'Long ', 'Long ', 'Mo ', 'Bo ', 'Shuang ', 'Guan ', 'Lan ', 'Zan ', 'Yan ', 'Shi ', 'Shi ', 'Li ', 'Reng ', 'She ', 'Yue ', 'Si ', 'Qi ', 'Ta ', 'Ma ', 'Xie ', 'Xian ', 'Xian ', 'Zhi ', 'Qi ', 'Zhi ', 'Beng ', 'Dui ', 'Zhong ', '[?] ', 'Yi ', 'Shi ', 'You ', 'Zhi ', 'Tiao ', 'Fu ', 'Fu ', 'Mi ', 'Zu ', 'Zhi ', 'Suan ', 'Mei ', 'Zuo ', 'Qu ', 'Hu ', 'Zhu ', 'Shen ', 'Sui ', 'Ci ', 'Chai ', 'Mi ', 'Lu ', 'Yu ', 'Xiang ', 'Wu ', 'Tiao ', 'Piao ', 'Zhu ', 'Gui ', 'Xia ', 'Zhi ', 'Ji ', 'Gao ', 'Zhen ', 'Gao ', 'Shui ', 'Jin ', 'Chen ', 'Gai ', 'Kun ', 'Di ', 'Dao ', 'Huo ', 'Tao ', 'Qi ', 'Gu ', 'Guan ', 'Zui ', 'Ling ', 'Lu ', 'Bing ', 'Jin ', 'Dao ', 'Zhi ', 'Lu ', 'Shan ', 'Bei ', 'Zhe ', 'Hui ', 'You ', 'Xi ', 'Yin ', 'Zi ', 'Huo ', 'Zhen ', 'Fu ', 'Yuan ', 'Wu ', 'Xian ', 'Yang ', 'Ti ', 'Yi ', 'Mei ', 'Si ', 'Di ', '[?] ', 'Zhuo ', 'Zhen ', 'Yong ', 'Ji ', 'Gao ', 'Tang ', 'Si ', 'Ma ', 'Ta ', '[?] ', 'Xuan ', 'Qi ', 'Yu ', 'Xi ', 'Ji ', 'Si ', 'Chan ', 'Tan ', 'Kuai ', 'Sui ', 'Li ', 'Nong ', 'Ni ', 'Dao ', 'Li ', 'Rang ', 'Yue ', 'Ti ', 'Zan ', 'Lei ', 'Rou ', 'Yu ', 'Yu ', 'Chi ', 'Xie ', 'Qin ', 'He ', 'Tu ', 'Xiu ', 'Si ', 'Ren ', 'Tu ', 'Zi ', 'Cha ', 'Gan ', 'Yi ', 'Xian ', 'Bing ', 'Nian ', 'Qiu ', 'Qiu ', 'Chong ', 'Fen ', 'Hao ', 'Yun ', 'Ke ', 'Miao ', 'Zhi ', 'Geng ', 'Bi ', 'Zhi ', 'Yu ', 'Mi ', 'Ku ', 'Ban ', 'Pi ', 'Ni ', 'Li ', 'You ', 'Zu ', 'Pi ', 'Ba ', 'Ling ', 'Mo ', 'Cheng ', 'Nian ', 'Qin ', 'Yang ', 'Zuo ', 'Zhi ', 'Zhi ', 'Shu ', 'Ju ', 'Zi ', 'Huo ', 'Ji ', 'Cheng ', 'Tong ', 'Zhi ', 'Huo ', 'He ', 'Yin ', 'Zi ', 'Zhi ', 'Jie ', 'Ren ', 'Du ', 'Yi ', 'Zhu ', 'Hui ', 'Nong ', 'Fu ']; <?php return ['Xi ', 'Kao ', 'Lang ', 'Fu ', 'Ze ', 'Shui ', 'Lu ', 'Kun ', 'Gan ', 'Geng ', 'Ti ', 'Cheng ', 'Tu ', 'Shao ', 'Shui ', 'Ya ', 'Lun ', 'Lu ', 'Gu ', 'Zuo ', 'Ren ', 'Zhun ', 'Bang ', 'Bai ', 'Ji ', 'Zhi ', 'Zhi ', 'Kun ', 'Leng ', 'Peng ', 'Ke ', 'Bing ', 'Chou ', 'Zu ', 'Yu ', 'Su ', 'Lue ', '[?] ', 'Yi ', 'Xi ', 'Bian ', 'Ji ', 'Fu ', 'Bi ', 'Nuo ', 'Jie ', 'Zhong ', 'Zong ', 'Xu ', 'Cheng ', 'Dao ', 'Wen ', 'Lian ', 'Zi ', 'Yu ', 'Ji ', 'Xu ', 'Zhen ', 'Zhi ', 'Dao ', 'Jia ', 'Ji ', 'Gao ', 'Gao ', 'Gu ', 'Rong ', 'Sui ', 'You ', 'Ji ', 'Kang ', 'Mu ', 'Shan ', 'Men ', 'Zhi ', 'Ji ', 'Lu ', 'Su ', 'Ji ', 'Ying ', 'Wen ', 'Qiu ', 'Se ', '[?] ', 'Yi ', 'Huang ', 'Qie ', 'Ji ', 'Sui ', 'Xiao ', 'Pu ', 'Jiao ', 'Zhuo ', 'Tong ', 'Sai ', 'Lu ', 'Sui ', 'Nong ', 'Se ', 'Hui ', 'Rang ', 'Nuo ', 'Yu ', 'Bin ', 'Ji ', 'Tui ', 'Wen ', 'Cheng ', 'Huo ', 'Gong ', 'Lu ', 'Biao ', '[?] ', 'Rang ', 'Zhuo ', 'Li ', 'Zan ', 'Xue ', 'Wa ', 'Jiu ', 'Qiong ', 'Xi ', 'Qiong ', 'Kong ', 'Yu ', 'Sen ', 'Jing ', 'Yao ', 'Chuan ', 'Zhun ', 'Tu ', 'Lao ', 'Qie ', 'Zhai ', 'Yao ', 'Bian ', 'Bao ', 'Yao ', 'Bing ', 'Wa ', 'Zhu ', 'Jiao ', 'Qiao ', 'Diao ', 'Wu ', 'Gui ', 'Yao ', 'Zhi ', 'Chuang ', 'Yao ', 'Tiao ', 'Jiao ', 'Chuang ', 'Jiong ', 'Xiao ', 'Cheng ', 'Kou ', 'Cuan ', 'Wo ', 'Dan ', 'Ku ', 'Ke ', 'Zhui ', 'Xu ', 'Su ', 'Guan ', 'Kui ', 'Dou ', '[?] ', 'Yin ', 'Wo ', 'Wa ', 'Ya ', 'Yu ', 'Ju ', 'Qiong ', 'Yao ', 'Yao ', 'Tiao ', 'Chao ', 'Yu ', 'Tian ', 'Diao ', 'Ju ', 'Liao ', 'Xi ', 'Wu ', 'Kui ', 'Chuang ', 'Zhao ', '[?] ', 'Kuan ', 'Long ', 'Cheng ', 'Cui ', 'Piao ', 'Zao ', 'Cuan ', 'Qiao ', 'Qiong ', 'Dou ', 'Zao ', 'Long ', 'Qie ', 'Li ', 'Chu ', 'Shi ', 'Fou ', 'Qian ', 'Chu ', 'Hong ', 'Qi ', 'Qian ', 'Gong ', 'Shi ', 'Shu ', 'Miao ', 'Ju ', 'Zhan ', 'Zhu ', 'Ling ', 'Long ', 'Bing ', 'Jing ', 'Jing ', 'Zhang ', 'Yi ', 'Si ', 'Jun ', 'Hong ', 'Tong ', 'Song ', 'Jing ', 'Diao ', 'Yi ', 'Shu ', 'Jing ', 'Qu ', 'Jie ', 'Ping ', 'Duan ', 'Shao ', 'Zhuan ', 'Ceng ', 'Deng ', 'Cui ', 'Huai ', 'Jing ', 'Kan ', 'Jing ', 'Zhu ', 'Zhu ', 'Le ', 'Peng ', 'Yu ', 'Chi ', 'Gan ']; <?php return ['Mang ', 'Zhu ', 'Utsubo ', 'Du ', 'Ji ', 'Xiao ', 'Ba ', 'Suan ', 'Ji ', 'Zhen ', 'Zhao ', 'Sun ', 'Ya ', 'Zhui ', 'Yuan ', 'Hu ', 'Gang ', 'Xiao ', 'Cen ', 'Pi ', 'Bi ', 'Jian ', 'Yi ', 'Dong ', 'Shan ', 'Sheng ', 'Xia ', 'Di ', 'Zhu ', 'Na ', 'Chi ', 'Gu ', 'Li ', 'Qie ', 'Min ', 'Bao ', 'Tiao ', 'Si ', 'Fu ', 'Ce ', 'Ben ', 'Pei ', 'Da ', 'Zi ', 'Di ', 'Ling ', 'Ze ', 'Nu ', 'Fu ', 'Gou ', 'Fan ', 'Jia ', 'Ge ', 'Fan ', 'Shi ', 'Mao ', 'Po ', 'Sey ', 'Jian ', 'Qiong ', 'Long ', 'Souke ', 'Bian ', 'Luo ', 'Gui ', 'Qu ', 'Chi ', 'Yin ', 'Yao ', 'Xian ', 'Bi ', 'Qiong ', 'Gua ', 'Deng ', 'Jiao ', 'Jin ', 'Quan ', 'Sun ', 'Ru ', 'Fa ', 'Kuang ', 'Zhu ', 'Tong ', 'Ji ', 'Da ', 'Xing ', 'Ce ', 'Zhong ', 'Kou ', 'Lai ', 'Bi ', 'Shai ', 'Dang ', 'Zheng ', 'Ce ', 'Fu ', 'Yun ', 'Tu ', 'Pa ', 'Li ', 'Lang ', 'Ju ', 'Guan ', 'Jian ', 'Han ', 'Tong ', 'Xia ', 'Zhi ', 'Cheng ', 'Suan ', 'Shi ', 'Zhu ', 'Zuo ', 'Xiao ', 'Shao ', 'Ting ', 'Ce ', 'Yan ', 'Gao ', 'Kuai ', 'Gan ', 'Chou ', 'Kago ', 'Gang ', 'Yun ', 'O ', 'Qian ', 'Xiao ', 'Jian ', 'Pu ', 'Lai ', 'Zou ', 'Bi ', 'Bi ', 'Bi ', 'Ge ', 'Chi ', 'Guai ', 'Yu ', 'Jian ', 'Zhao ', 'Gu ', 'Chi ', 'Zheng ', 'Jing ', 'Sha ', 'Zhou ', 'Lu ', 'Bo ', 'Ji ', 'Lin ', 'Suan ', 'Jun ', 'Fu ', 'Zha ', 'Gu ', 'Kong ', 'Qian ', 'Quan ', 'Jun ', 'Chui ', 'Guan ', 'Yuan ', 'Ce ', 'Ju ', 'Bo ', 'Ze ', 'Qie ', 'Tuo ', 'Luo ', 'Dan ', 'Xiao ', 'Ruo ', 'Jian ', 'Xuan ', 'Bian ', 'Sun ', 'Xiang ', 'Xian ', 'Ping ', 'Zhen ', 'Sheng ', 'Hu ', 'Shi ', 'Zhu ', 'Yue ', 'Chun ', 'Lu ', 'Wu ', 'Dong ', 'Xiao ', 'Ji ', 'Jie ', 'Huang ', 'Xing ', 'Mei ', 'Fan ', 'Chui ', 'Zhuan ', 'Pian ', 'Feng ', 'Zhu ', 'Hong ', 'Qie ', 'Hou ', 'Qiu ', 'Miao ', 'Qian ', '[?] ', 'Kui ', 'Sik ', 'Lou ', 'Yun ', 'He ', 'Tang ', 'Yue ', 'Chou ', 'Gao ', 'Fei ', 'Ruo ', 'Zheng ', 'Gou ', 'Nie ', 'Qian ', 'Xiao ', 'Cuan ', 'Gong ', 'Pang ', 'Du ', 'Li ', 'Bi ', 'Zhuo ', 'Chu ', 'Shai ', 'Chi ', 'Zhu ', 'Qiang ', 'Long ', 'Lan ', 'Jian ', 'Bu ', 'Li ', 'Hui ', 'Bi ', 'Di ', 'Cong ', 'Yan ', 'Peng ', 'Sen ', 'Zhuan ', 'Pai ', 'Piao ', 'Dou ', 'Yu ', 'Mie ', 'Zhuan ']; <?php return ['Ze ', 'Xi ', 'Guo ', 'Yi ', 'Hu ', 'Chan ', 'Kou ', 'Cu ', 'Ping ', 'Chou ', 'Ji ', 'Gui ', 'Su ', 'Lou ', 'Zha ', 'Lu ', 'Nian ', 'Suo ', 'Cuan ', 'Sasara ', 'Suo ', 'Le ', 'Duan ', 'Yana ', 'Xiao ', 'Bo ', 'Mi ', 'Si ', 'Dang ', 'Liao ', 'Dan ', 'Dian ', 'Fu ', 'Jian ', 'Min ', 'Kui ', 'Dai ', 'Qiao ', 'Deng ', 'Huang ', 'Sun ', 'Lao ', 'Zan ', 'Xiao ', 'Du ', 'Shi ', 'Zan ', '[?] ', 'Pai ', 'Hata ', 'Pai ', 'Gan ', 'Ju ', 'Du ', 'Lu ', 'Yan ', 'Bo ', 'Dang ', 'Sai ', 'Ke ', 'Long ', 'Qian ', 'Lian ', 'Bo ', 'Zhou ', 'Lai ', '[?] ', 'Lan ', 'Kui ', 'Yu ', 'Yue ', 'Hao ', 'Zhen ', 'Tai ', 'Ti ', 'Mi ', 'Chou ', 'Ji ', '[?] ', 'Hata ', 'Teng ', 'Zhuan ', 'Zhou ', 'Fan ', 'Sou ', 'Zhou ', 'Kuji ', 'Zhuo ', 'Teng ', 'Lu ', 'Lu ', 'Jian ', 'Tuo ', 'Ying ', 'Yu ', 'Lai ', 'Long ', 'Shinshi ', 'Lian ', 'Lan ', 'Qian ', 'Yue ', 'Zhong ', 'Qu ', 'Lian ', 'Bian ', 'Duan ', 'Zuan ', 'Li ', 'Si ', 'Luo ', 'Ying ', 'Yue ', 'Zhuo ', 'Xu ', 'Mi ', 'Di ', 'Fan ', 'Shen ', 'Zhe ', 'Shen ', 'Nu ', 'Xie ', 'Lei ', 'Xian ', 'Zi ', 'Ni ', 'Cun ', '[?] ', 'Qian ', 'Kume ', 'Bi ', 'Ban ', 'Wu ', 'Sha ', 'Kang ', 'Rou ', 'Fen ', 'Bi ', 'Cui ', '[?] ', 'Li ', 'Chi ', 'Nukamiso ', 'Ro ', 'Ba ', 'Li ', 'Gan ', 'Ju ', 'Po ', 'Mo ', 'Cu ', 'Nian ', 'Zhou ', 'Li ', 'Su ', 'Tiao ', 'Li ', 'Qi ', 'Su ', 'Hong ', 'Tong ', 'Zi ', 'Ce ', 'Yue ', 'Zhou ', 'Lin ', 'Zhuang ', 'Bai ', '[?] ', 'Fen ', 'Ji ', '[?] ', 'Sukumo ', 'Liang ', 'Xian ', 'Fu ', 'Liang ', 'Can ', 'Geng ', 'Li ', 'Yue ', 'Lu ', 'Ju ', 'Qi ', 'Cui ', 'Bai ', 'Zhang ', 'Lin ', 'Zong ', 'Jing ', 'Guo ', 'Kouji ', 'San ', 'San ', 'Tang ', 'Bian ', 'Rou ', 'Mian ', 'Hou ', 'Xu ', 'Zong ', 'Hu ', 'Jian ', 'Zan ', 'Ci ', 'Li ', 'Xie ', 'Fu ', 'Ni ', 'Bei ', 'Gu ', 'Xiu ', 'Gao ', 'Tang ', 'Qiu ', 'Sukumo ', 'Cao ', 'Zhuang ', 'Tang ', 'Mi ', 'San ', 'Fen ', 'Zao ', 'Kang ', 'Jiang ', 'Mo ', 'San ', 'San ', 'Nuo ', 'Xi ', 'Liang ', 'Jiang ', 'Kuai ', 'Bo ', 'Huan ', '[?] ', 'Zong ', 'Xian ', 'Nuo ', 'Tuan ', 'Nie ', 'Li ', 'Zuo ', 'Di ', 'Nie ', 'Tiao ', 'Lan ', 'Mi ', 'Jiao ', 'Jiu ', 'Xi ', 'Gong ', 'Zheng ', 'Jiu ', 'You ']; <?php return ['Ji ', 'Cha ', 'Zhou ', 'Xun ', 'Yue ', 'Hong ', 'Yu ', 'He ', 'Wan ', 'Ren ', 'Wen ', 'Wen ', 'Qiu ', 'Na ', 'Zi ', 'Tou ', 'Niu ', 'Fou ', 'Jie ', 'Shu ', 'Chun ', 'Pi ', 'Yin ', 'Sha ', 'Hong ', 'Zhi ', 'Ji ', 'Fen ', 'Yun ', 'Ren ', 'Dan ', 'Jin ', 'Su ', 'Fang ', 'Suo ', 'Cui ', 'Jiu ', 'Zha ', 'Kinu ', 'Jin ', 'Fu ', 'Zhi ', 'Ci ', 'Zi ', 'Chou ', 'Hong ', 'Zha ', 'Lei ', 'Xi ', 'Fu ', 'Xie ', 'Shen ', 'Bei ', 'Zhu ', 'Qu ', 'Ling ', 'Zhu ', 'Shao ', 'Gan ', 'Yang ', 'Fu ', 'Tuo ', 'Zhen ', 'Dai ', 'Zhuo ', 'Shi ', 'Zhong ', 'Xian ', 'Zu ', 'Jiong ', 'Ban ', 'Ju ', 'Mo ', 'Shu ', 'Zui ', 'Wata ', 'Jing ', 'Ren ', 'Heng ', 'Xie ', 'Jie ', 'Zhu ', 'Chou ', 'Gua ', 'Bai ', 'Jue ', 'Kuang ', 'Hu ', 'Ci ', 'Geng ', 'Geng ', 'Tao ', 'Xie ', 'Ku ', 'Jiao ', 'Quan ', 'Gai ', 'Luo ', 'Xuan ', 'Bing ', 'Xian ', 'Fu ', 'Gei ', 'Tong ', 'Rong ', 'Tiao ', 'Yin ', 'Lei ', 'Xie ', 'Quan ', 'Xu ', 'Lun ', 'Die ', 'Tong ', 'Si ', 'Jiang ', 'Xiang ', 'Hui ', 'Jue ', 'Zhi ', 'Jian ', 'Juan ', 'Chi ', 'Mian ', 'Zhen ', 'Lu ', 'Cheng ', 'Qiu ', 'Shu ', 'Bang ', 'Tong ', 'Xiao ', 'Wan ', 'Qin ', 'Geng ', 'Xiu ', 'Ti ', 'Xiu ', 'Xie ', 'Hong ', 'Xi ', 'Fu ', 'Ting ', 'Sui ', 'Dui ', 'Kun ', 'Fu ', 'Jing ', 'Hu ', 'Zhi ', 'Yan ', 'Jiong ', 'Feng ', 'Ji ', 'Sok ', 'Kase ', 'Zong ', 'Lin ', 'Duo ', 'Li ', 'Lu ', 'Liang ', 'Chou ', 'Quan ', 'Shao ', 'Qi ', 'Qi ', 'Zhun ', 'Qi ', 'Wan ', 'Qian ', 'Xian ', 'Shou ', 'Wei ', 'Qi ', 'Tao ', 'Wan ', 'Gang ', 'Wang ', 'Beng ', 'Zhui ', 'Cai ', 'Guo ', 'Cui ', 'Lun ', 'Liu ', 'Qi ', 'Zhan ', 'Bei ', 'Chuo ', 'Ling ', 'Mian ', 'Qi ', 'Qie ', 'Tan ', 'Zong ', 'Gun ', 'Zou ', 'Yi ', 'Zi ', 'Xing ', 'Liang ', 'Jin ', 'Fei ', 'Rui ', 'Min ', 'Yu ', 'Zong ', 'Fan ', 'Lu ', 'Xu ', 'Yingl ', 'Zhang ', 'Kasuri ', 'Xu ', 'Xiang ', 'Jian ', 'Ke ', 'Xian ', 'Ruan ', 'Mian ', 'Qi ', 'Duan ', 'Zhong ', 'Di ', 'Min ', 'Miao ', 'Yuan ', 'Xie ', 'Bao ', 'Si ', 'Qiu ', 'Bian ', 'Huan ', 'Geng ', 'Cong ', 'Mian ', 'Wei ', 'Fu ', 'Wei ', 'Yu ', 'Gou ', 'Miao ', 'Xie ', 'Lian ', 'Zong ', 'Bian ', 'Yun ', 'Yin ', 'Ti ', 'Gua ', 'Zhi ', 'Yun ', 'Cheng ', 'Chan ', 'Dai ']; <?php return ['Xia ', 'Yuan ', 'Zong ', 'Xu ', 'Nawa ', 'Odoshi ', 'Geng ', 'Sen ', 'Ying ', 'Jin ', 'Yi ', 'Zhui ', 'Ni ', 'Bang ', 'Gu ', 'Pan ', 'Zhou ', 'Jian ', 'Cuo ', 'Quan ', 'Shuang ', 'Yun ', 'Xia ', 'Shuai ', 'Xi ', 'Rong ', 'Tao ', 'Fu ', 'Yun ', 'Zhen ', 'Gao ', 'Ru ', 'Hu ', 'Zai ', 'Teng ', 'Xian ', 'Su ', 'Zhen ', 'Zong ', 'Tao ', 'Horo ', 'Cai ', 'Bi ', 'Feng ', 'Cu ', 'Li ', 'Suo ', 'Yin ', 'Xi ', 'Zong ', 'Lei ', 'Zhuan ', 'Qian ', 'Man ', 'Zhi ', 'Lu ', 'Mo ', 'Piao ', 'Lian ', 'Mi ', 'Xuan ', 'Zong ', 'Ji ', 'Shan ', 'Sui ', 'Fan ', 'Shuai ', 'Beng ', 'Yi ', 'Sao ', 'Mou ', 'Zhou ', 'Qiang ', 'Hun ', 'Sem ', 'Xi ', 'Jung ', 'Xiu ', 'Ran ', 'Xuan ', 'Hui ', 'Qiao ', 'Zeng ', 'Zuo ', 'Zhi ', 'Shan ', 'San ', 'Lin ', 'Yu ', 'Fan ', 'Liao ', 'Chuo ', 'Zun ', 'Jian ', 'Rao ', 'Chan ', 'Rui ', 'Xiu ', 'Hui ', 'Hua ', 'Zuan ', 'Xi ', 'Qiang ', 'Un ', 'Da ', 'Sheng ', 'Hui ', 'Xi ', 'Se ', 'Jian ', 'Jiang ', 'Huan ', 'Zao ', 'Cong ', 'Jie ', 'Jiao ', 'Bo ', 'Chan ', 'Yi ', 'Nao ', 'Sui ', 'Yi ', 'Shai ', 'Xu ', 'Ji ', 'Bin ', 'Qian ', 'Lan ', 'Pu ', 'Xun ', 'Zuan ', 'Qi ', 'Peng ', 'Li ', 'Mo ', 'Lei ', 'Xie ', 'Zuan ', 'Kuang ', 'You ', 'Xu ', 'Lei ', 'Xian ', 'Chan ', 'Kou ', 'Lu ', 'Chan ', 'Ying ', 'Cai ', 'Xiang ', 'Xian ', 'Zui ', 'Zuan ', 'Luo ', 'Xi ', 'Dao ', 'Lan ', 'Lei ', 'Lian ', 'Si ', 'Jiu ', 'Yu ', 'Hong ', 'Zhou ', 'Xian ', 'He ', 'Yue ', 'Ji ', 'Wan ', 'Kuang ', 'Ji ', 'Ren ', 'Wei ', 'Yun ', 'Hong ', 'Chun ', 'Pi ', 'Sha ', 'Gang ', 'Na ', 'Ren ', 'Zong ', 'Lun ', 'Fen ', 'Zhi ', 'Wen ', 'Fang ', 'Zhu ', 'Yin ', 'Niu ', 'Shu ', 'Xian ', 'Gan ', 'Xie ', 'Fu ', 'Lian ', 'Zu ', 'Shen ', 'Xi ', 'Zhi ', 'Zhong ', 'Zhou ', 'Ban ', 'Fu ', 'Zhuo ', 'Shao ', 'Yi ', 'Jing ', 'Dai ', 'Bang ', 'Rong ', 'Jie ', 'Ku ', 'Rao ', 'Die ', 'Heng ', 'Hui ', 'Gei ', 'Xuan ', 'Jiang ', 'Luo ', 'Jue ', 'Jiao ', 'Tong ', 'Geng ', 'Xiao ', 'Juan ', 'Xiu ', 'Xi ', 'Sui ', 'Tao ', 'Ji ', 'Ti ', 'Ji ', 'Xu ', 'Ling ', '[?] ', 'Xu ', 'Qi ', 'Fei ', 'Chuo ', 'Zhang ', 'Gun ', 'Sheng ', 'Wei ', 'Mian ', 'Shou ', 'Beng ', 'Chou ', 'Tao ', 'Liu ', 'Quan ', 'Zong ', 'Zhan ', 'Wan ', 'Lu ']; <?php return ['Zhui ', 'Zi ', 'Ke ', 'Xiang ', 'Jian ', 'Mian ', 'Lan ', 'Ti ', 'Miao ', 'Qi ', 'Yun ', 'Hui ', 'Si ', 'Duo ', 'Duan ', 'Bian ', 'Xian ', 'Gou ', 'Zhui ', 'Huan ', 'Di ', 'Lu ', 'Bian ', 'Min ', 'Yuan ', 'Jin ', 'Fu ', 'Ru ', 'Zhen ', 'Feng ', 'Shuai ', 'Gao ', 'Chan ', 'Li ', 'Yi ', 'Jian ', 'Bin ', 'Piao ', 'Man ', 'Lei ', 'Ying ', 'Suo ', 'Mou ', 'Sao ', 'Xie ', 'Liao ', 'Shan ', 'Zeng ', 'Jiang ', 'Qian ', 'Zao ', 'Huan ', 'Jiao ', 'Zuan ', 'Fou ', 'Xie ', 'Gang ', 'Fou ', 'Que ', 'Fou ', 'Kaakeru ', 'Bo ', 'Ping ', 'Hou ', '[?] ', 'Gang ', 'Ying ', 'Ying ', 'Qing ', 'Xia ', 'Guan ', 'Zun ', 'Tan ', 'Chang ', 'Qi ', 'Weng ', 'Ying ', 'Lei ', 'Tan ', 'Lu ', 'Guan ', 'Wang ', 'Wang ', 'Gang ', 'Wang ', 'Han ', '[?] ', 'Luo ', 'Fu ', 'Mi ', 'Fa ', 'Gu ', 'Zhu ', 'Ju ', 'Mao ', 'Gu ', 'Min ', 'Gang ', 'Ba ', 'Gua ', 'Ti ', 'Juan ', 'Fu ', 'Lin ', 'Yan ', 'Zhao ', 'Zui ', 'Gua ', 'Zhuo ', 'Yu ', 'Zhi ', 'An ', 'Fa ', 'Nan ', 'Shu ', 'Si ', 'Pi ', 'Ma ', 'Liu ', 'Ba ', 'Fa ', 'Li ', 'Chao ', 'Wei ', 'Bi ', 'Ji ', 'Zeng ', 'Tong ', 'Liu ', 'Ji ', 'Juan ', 'Mi ', 'Zhao ', 'Luo ', 'Pi ', 'Ji ', 'Ji ', 'Luan ', 'Yang ', 'Mie ', 'Qiang ', 'Ta ', 'Mei ', 'Yang ', 'You ', 'You ', 'Fen ', 'Ba ', 'Gao ', 'Yang ', 'Gu ', 'Qiang ', 'Zang ', 'Gao ', 'Ling ', 'Yi ', 'Zhu ', 'Di ', 'Xiu ', 'Qian ', 'Yi ', 'Xian ', 'Rong ', 'Qun ', 'Qun ', 'Qian ', 'Huan ', 'Zui ', 'Xian ', 'Yi ', 'Yashinau ', 'Qiang ', 'Xian ', 'Yu ', 'Geng ', 'Jie ', 'Tang ', 'Yuan ', 'Xi ', 'Fan ', 'Shan ', 'Fen ', 'Shan ', 'Lian ', 'Lei ', 'Geng ', 'Nou ', 'Qiang ', 'Chan ', 'Yu ', 'Gong ', 'Yi ', 'Chong ', 'Weng ', 'Fen ', 'Hong ', 'Chi ', 'Chi ', 'Cui ', 'Fu ', 'Xia ', 'Pen ', 'Yi ', 'La ', 'Yi ', 'Pi ', 'Ling ', 'Liu ', 'Zhi ', 'Qu ', 'Xi ', 'Xie ', 'Xiang ', 'Xi ', 'Xi ', 'Qi ', 'Qiao ', 'Hui ', 'Hui ', 'Xiao ', 'Se ', 'Hong ', 'Jiang ', 'Di ', 'Cui ', 'Fei ', 'Tao ', 'Sha ', 'Chi ', 'Zhu ', 'Jian ', 'Xuan ', 'Shi ', 'Pian ', 'Zong ', 'Wan ', 'Hui ', 'Hou ', 'He ', 'He ', 'Han ', 'Ao ', 'Piao ', 'Yi ', 'Lian ', 'Qu ', '[?] ', 'Lin ', 'Pen ', 'Qiao ', 'Ao ', 'Fan ', 'Yi ', 'Hui ', 'Xuan ', 'Dao ']; <?php return ['Yao ', 'Lao ', '[?] ', 'Kao ', 'Mao ', 'Zhe ', 'Qi ', 'Gou ', 'Gou ', 'Gou ', 'Die ', 'Die ', 'Er ', 'Shua ', 'Ruan ', 'Er ', 'Nai ', 'Zhuan ', 'Lei ', 'Ting ', 'Zi ', 'Geng ', 'Chao ', 'Hao ', 'Yun ', 'Pa ', 'Pi ', 'Chi ', 'Si ', 'Chu ', 'Jia ', 'Ju ', 'He ', 'Chu ', 'Lao ', 'Lun ', 'Ji ', 'Tang ', 'Ou ', 'Lou ', 'Nou ', 'Gou ', 'Pang ', 'Ze ', 'Lou ', 'Ji ', 'Lao ', 'Huo ', 'You ', 'Mo ', 'Huai ', 'Er ', 'Zhe ', 'Ting ', 'Ye ', 'Da ', 'Song ', 'Qin ', 'Yun ', 'Chi ', 'Dan ', 'Dan ', 'Hong ', 'Geng ', 'Zhi ', '[?] ', 'Nie ', 'Dan ', 'Zhen ', 'Che ', 'Ling ', 'Zheng ', 'You ', 'Wa ', 'Liao ', 'Long ', 'Zhi ', 'Ning ', 'Tiao ', 'Er ', 'Ya ', 'Die ', 'Gua ', '[?] ', 'Lian ', 'Hao ', 'Sheng ', 'Lie ', 'Pin ', 'Jing ', 'Ju ', 'Bi ', 'Di ', 'Guo ', 'Wen ', 'Xu ', 'Ping ', 'Cong ', 'Shikato ', '[?] ', 'Ting ', 'Yu ', 'Cong ', 'Kui ', 'Tsuraneru ', 'Kui ', 'Cong ', 'Lian ', 'Weng ', 'Kui ', 'Lian ', 'Lian ', 'Cong ', 'Ao ', 'Sheng ', 'Song ', 'Ting ', 'Kui ', 'Nie ', 'Zhi ', 'Dan ', 'Ning ', 'Qie ', 'Ji ', 'Ting ', 'Ting ', 'Long ', 'Yu ', 'Yu ', 'Zhao ', 'Si ', 'Su ', 'Yi ', 'Su ', 'Si ', 'Zhao ', 'Zhao ', 'Rou ', 'Yi ', 'Le ', 'Ji ', 'Qiu ', 'Ken ', 'Cao ', 'Ge ', 'Di ', 'Huan ', 'Huang ', 'Yi ', 'Ren ', 'Xiao ', 'Ru ', 'Zhou ', 'Yuan ', 'Du ', 'Gang ', 'Rong ', 'Gan ', 'Cha ', 'Wo ', 'Chang ', 'Gu ', 'Zhi ', 'Han ', 'Fu ', 'Fei ', 'Fen ', 'Pei ', 'Pang ', 'Jian ', 'Fang ', 'Zhun ', 'You ', 'Na ', 'Hang ', 'Ken ', 'Ran ', 'Gong ', 'Yu ', 'Wen ', 'Yao ', 'Jin ', 'Pi ', 'Qian ', 'Xi ', 'Xi ', 'Fei ', 'Ken ', 'Jing ', 'Tai ', 'Shen ', 'Zhong ', 'Zhang ', 'Xie ', 'Shen ', 'Wei ', 'Zhou ', 'Die ', 'Dan ', 'Fei ', 'Ba ', 'Bo ', 'Qu ', 'Tian ', 'Bei ', 'Gua ', 'Tai ', 'Zi ', 'Ku ', 'Zhi ', 'Ni ', 'Ping ', 'Zi ', 'Fu ', 'Pang ', 'Zhen ', 'Xian ', 'Zuo ', 'Pei ', 'Jia ', 'Sheng ', 'Zhi ', 'Bao ', 'Mu ', 'Qu ', 'Hu ', 'Ke ', 'Yi ', 'Yin ', 'Xu ', 'Yang ', 'Long ', 'Dong ', 'Ka ', 'Lu ', 'Jing ', 'Nu ', 'Yan ', 'Pang ', 'Kua ', 'Yi ', 'Guang ', 'Gai ', 'Ge ', 'Dong ', 'Zhi ', 'Xiao ', 'Xiong ', 'Xiong ', 'Er ', 'E ', 'Xing ', 'Pian ', 'Neng ', 'Zi ', 'Gui ']; <?php return ['Cheng ', 'Tiao ', 'Zhi ', 'Cui ', 'Mei ', 'Xie ', 'Cui ', 'Xie ', 'Mo ', 'Mai ', 'Ji ', 'Obiyaakasu ', '[?] ', 'Kuai ', 'Sa ', 'Zang ', 'Qi ', 'Nao ', 'Mi ', 'Nong ', 'Luan ', 'Wan ', 'Bo ', 'Wen ', 'Guan ', 'Qiu ', 'Jiao ', 'Jing ', 'Rou ', 'Heng ', 'Cuo ', 'Lie ', 'Shan ', 'Ting ', 'Mei ', 'Chun ', 'Shen ', 'Xie ', 'De ', 'Zui ', 'Cu ', 'Xiu ', 'Xin ', 'Tuo ', 'Pao ', 'Cheng ', 'Nei ', 'Fu ', 'Dou ', 'Tuo ', 'Niao ', 'Noy ', 'Pi ', 'Gu ', 'Gua ', 'Li ', 'Lian ', 'Zhang ', 'Cui ', 'Jie ', 'Liang ', 'Zhou ', 'Pi ', 'Biao ', 'Lun ', 'Pian ', 'Guo ', 'Kui ', 'Chui ', 'Dan ', 'Tian ', 'Nei ', 'Jing ', 'Jie ', 'La ', 'Yi ', 'An ', 'Ren ', 'Shen ', 'Chuo ', 'Fu ', 'Fu ', 'Ju ', 'Fei ', 'Qiang ', 'Wan ', 'Dong ', 'Pi ', 'Guo ', 'Zong ', 'Ding ', 'Wu ', 'Mei ', 'Ruan ', 'Zhuan ', 'Zhi ', 'Cou ', 'Gua ', 'Ou ', 'Di ', 'An ', 'Xing ', 'Nao ', 'Yu ', 'Chuan ', 'Nan ', 'Yun ', 'Zhong ', 'Rou ', 'E ', 'Sai ', 'Tu ', 'Yao ', 'Jian ', 'Wei ', 'Jiao ', 'Yu ', 'Jia ', 'Duan ', 'Bi ', 'Chang ', 'Fu ', 'Xian ', 'Ni ', 'Mian ', 'Wa ', 'Teng ', 'Tui ', 'Bang ', 'Qian ', 'Lu ', 'Wa ', 'Sou ', 'Tang ', 'Su ', 'Zhui ', 'Ge ', 'Yi ', 'Bo ', 'Liao ', 'Ji ', 'Pi ', 'Xie ', 'Gao ', 'Lu ', 'Bin ', 'Ou ', 'Chang ', 'Lu ', 'Guo ', 'Pang ', 'Chuai ', 'Piao ', 'Jiang ', 'Fu ', 'Tang ', 'Mo ', 'Xi ', 'Zhuan ', 'Lu ', 'Jiao ', 'Ying ', 'Lu ', 'Zhi ', 'Tara ', 'Chun ', 'Lian ', 'Tong ', 'Peng ', 'Ni ', 'Zha ', 'Liao ', 'Cui ', 'Gui ', 'Xiao ', 'Teng ', 'Fan ', 'Zhi ', 'Jiao ', 'Shan ', 'Wu ', 'Cui ', 'Run ', 'Xiang ', 'Sui ', 'Fen ', 'Ying ', 'Tan ', 'Zhua ', 'Dan ', 'Kuai ', 'Nong ', 'Tun ', 'Lian ', 'Bi ', 'Yong ', 'Jue ', 'Chu ', 'Yi ', 'Juan ', 'La ', 'Lian ', 'Sao ', 'Tun ', 'Gu ', 'Qi ', 'Cui ', 'Bin ', 'Xun ', 'Ru ', 'Huo ', 'Zang ', 'Xian ', 'Biao ', 'Xing ', 'Kuan ', 'La ', 'Yan ', 'Lu ', 'Huo ', 'Zang ', 'Luo ', 'Qu ', 'Zang ', 'Luan ', 'Ni ', 'Zang ', 'Chen ', 'Qian ', 'Wo ', 'Guang ', 'Zang ', 'Lin ', 'Guang ', 'Zi ', 'Jiao ', 'Nie ', 'Chou ', 'Ji ', 'Gao ', 'Chou ', 'Mian ', 'Nie ', 'Zhi ', 'Zhi ', 'Ge ', 'Jian ', 'Die ', 'Zhi ', 'Xiu ', 'Tai ', 'Zhen ', 'Jiu ', 'Xian ', 'Yu ', 'Cha ']; <?php return ['Yao ', 'Yu ', 'Chong ', 'Xi ', 'Xi ', 'Jiu ', 'Yu ', 'Yu ', 'Xing ', 'Ju ', 'Jiu ', 'Xin ', 'She ', 'She ', 'Yadoru ', 'Jiu ', 'Shi ', 'Tan ', 'Shu ', 'Shi ', 'Tian ', 'Dan ', 'Pu ', 'Pu ', 'Guan ', 'Hua ', 'Tan ', 'Chuan ', 'Shun ', 'Xia ', 'Wu ', 'Zhou ', 'Dao ', 'Gang ', 'Shan ', 'Yi ', '[?] ', 'Pa ', 'Tai ', 'Fan ', 'Ban ', 'Chuan ', 'Hang ', 'Fang ', 'Ban ', 'Que ', 'Hesaki ', 'Zhong ', 'Jian ', 'Cang ', 'Ling ', 'Zhu ', 'Ze ', 'Duo ', 'Bo ', 'Xian ', 'Ge ', 'Chuan ', 'Jia ', 'Lu ', 'Hong ', 'Pang ', 'Xi ', '[?] ', 'Fu ', 'Zao ', 'Feng ', 'Li ', 'Shao ', 'Yu ', 'Lang ', 'Ting ', '[?] ', 'Wei ', 'Bo ', 'Meng ', 'Nian ', 'Ju ', 'Huang ', 'Shou ', 'Zong ', 'Bian ', 'Mao ', 'Die ', '[?] ', 'Bang ', 'Cha ', 'Yi ', 'Sao ', 'Cang ', 'Cao ', 'Lou ', 'Dai ', 'Sori ', 'Yao ', 'Tong ', 'Yofune ', 'Dang ', 'Tan ', 'Lu ', 'Yi ', 'Jie ', 'Jian ', 'Huo ', 'Meng ', 'Qi ', 'Lu ', 'Lu ', 'Chan ', 'Shuang ', 'Gen ', 'Liang ', 'Jian ', 'Jian ', 'Se ', 'Yan ', 'Fu ', 'Ping ', 'Yan ', 'Yan ', 'Cao ', 'Cao ', 'Yi ', 'Le ', 'Ting ', 'Qiu ', 'Ai ', 'Nai ', 'Tiao ', 'Jiao ', 'Jie ', 'Peng ', 'Wan ', 'Yi ', 'Chai ', 'Mian ', 'Mie ', 'Gan ', 'Qian ', 'Yu ', 'Yu ', 'Shuo ', 'Qiong ', 'Tu ', 'Xia ', 'Qi ', 'Mang ', 'Zi ', 'Hui ', 'Sui ', 'Zhi ', 'Xiang ', 'Bi ', 'Fu ', 'Tun ', 'Wei ', 'Wu ', 'Zhi ', 'Qi ', 'Shan ', 'Wen ', 'Qian ', 'Ren ', 'Fou ', 'Kou ', 'Jie ', 'Lu ', 'Xu ', 'Ji ', 'Qin ', 'Qi ', 'Yuan ', 'Fen ', 'Ba ', 'Rui ', 'Xin ', 'Ji ', 'Hua ', 'Hua ', 'Fang ', 'Wu ', 'Jue ', 'Gou ', 'Zhi ', 'Yun ', 'Qin ', 'Ao ', 'Chu ', 'Mao ', 'Ya ', 'Fei ', 'Reng ', 'Hang ', 'Cong ', 'Yin ', 'You ', 'Bian ', 'Yi ', 'Susa ', 'Wei ', 'Li ', 'Pi ', 'E ', 'Xian ', 'Chang ', 'Cang ', 'Meng ', 'Su ', 'Yi ', 'Yuan ', 'Ran ', 'Ling ', 'Tai ', 'Tiao ', 'Di ', 'Miao ', 'Qiong ', 'Li ', 'Yong ', 'Ke ', 'Mu ', 'Pei ', 'Bao ', 'Gou ', 'Min ', 'Yi ', 'Yi ', 'Ju ', 'Pi ', 'Ruo ', 'Ku ', 'Zhu ', 'Ni ', 'Bo ', 'Bing ', 'Shan ', 'Qiu ', 'Yao ', 'Xian ', 'Ben ', 'Hong ', 'Ying ', 'Zha ', 'Dong ', 'Ju ', 'Die ', 'Nie ', 'Gan ', 'Hu ', 'Ping ', 'Mei ', 'Fu ', 'Sheng ', 'Gu ', 'Bi ', 'Wei ']; <?php return ['Fu ', 'Zhuo ', 'Mao ', 'Fan ', 'Qie ', 'Mao ', 'Mao ', 'Ba ', 'Zi ', 'Mo ', 'Zi ', 'Di ', 'Chi ', 'Ji ', 'Jing ', 'Long ', '[?] ', 'Niao ', '[?] ', 'Xue ', 'Ying ', 'Qiong ', 'Ge ', 'Ming ', 'Li ', 'Rong ', 'Yin ', 'Gen ', 'Qian ', 'Chai ', 'Chen ', 'Yu ', 'Xiu ', 'Zi ', 'Lie ', 'Wu ', 'Ji ', 'Kui ', 'Ce ', 'Chong ', 'Ci ', 'Gou ', 'Guang ', 'Mang ', 'Chi ', 'Jiao ', 'Jiao ', 'Fu ', 'Yu ', 'Zhu ', 'Zi ', 'Jiang ', 'Hui ', 'Yin ', 'Cha ', 'Fa ', 'Rong ', 'Ru ', 'Chong ', 'Mang ', 'Tong ', 'Zhong ', '[?] ', 'Zhu ', 'Xun ', 'Huan ', 'Kua ', 'Quan ', 'Gai ', 'Da ', 'Jing ', 'Xing ', 'Quan ', 'Cao ', 'Jing ', 'Er ', 'An ', 'Shou ', 'Chi ', 'Ren ', 'Jian ', 'Ti ', 'Huang ', 'Ping ', 'Li ', 'Jin ', 'Lao ', 'Shu ', 'Zhuang ', 'Da ', 'Jia ', 'Rao ', 'Bi ', 'Ze ', 'Qiao ', 'Hui ', 'Qi ', 'Dang ', '[?] ', 'Rong ', 'Hun ', 'Ying ', 'Luo ', 'Ying ', 'Xun ', 'Jin ', 'Sun ', 'Yin ', 'Mai ', 'Hong ', 'Zhou ', 'Yao ', 'Du ', 'Wei ', 'Chu ', 'Dou ', 'Fu ', 'Ren ', 'Yin ', 'He ', 'Bi ', 'Bu ', 'Yun ', 'Di ', 'Tu ', 'Sui ', 'Sui ', 'Cheng ', 'Chen ', 'Wu ', 'Bie ', 'Xi ', 'Geng ', 'Li ', 'Fu ', 'Zhu ', 'Mo ', 'Li ', 'Zhuang ', 'Ji ', 'Duo ', 'Qiu ', 'Sha ', 'Suo ', 'Chen ', 'Feng ', 'Ju ', 'Mei ', 'Meng ', 'Xing ', 'Jing ', 'Che ', 'Xin ', 'Jun ', 'Yan ', 'Ting ', 'Diao ', 'Cuo ', 'Wan ', 'Han ', 'You ', 'Cuo ', 'Jia ', 'Wang ', 'You ', 'Niu ', 'Shao ', 'Xian ', 'Lang ', 'Fu ', 'E ', 'Mo ', 'Wen ', 'Jie ', 'Nan ', 'Mu ', 'Kan ', 'Lai ', 'Lian ', 'Shi ', 'Wo ', 'Usagi ', 'Lian ', 'Huo ', 'You ', 'Ying ', 'Ying ', 'Nuc ', 'Chun ', 'Mang ', 'Mang ', 'Ci ', 'Wan ', 'Jing ', 'Di ', 'Qu ', 'Dong ', 'Jian ', 'Zou ', 'Gu ', 'La ', 'Lu ', 'Ju ', 'Wei ', 'Jun ', 'Nie ', 'Kun ', 'He ', 'Pu ', 'Zi ', 'Gao ', 'Guo ', 'Fu ', 'Lun ', 'Chang ', 'Chou ', 'Song ', 'Chui ', 'Zhan ', 'Men ', 'Cai ', 'Ba ', 'Li ', 'Tu ', 'Bo ', 'Han ', 'Bao ', 'Qin ', 'Juan ', 'Xi ', 'Qin ', 'Di ', 'Jie ', 'Pu ', 'Dang ', 'Jin ', 'Zhao ', 'Tai ', 'Geng ', 'Hua ', 'Gu ', 'Ling ', 'Fei ', 'Jin ', 'An ', 'Wang ', 'Beng ', 'Zhou ', 'Yan ', 'Ju ', 'Jian ', 'Lin ', 'Tan ', 'Shu ', 'Tian ', 'Dao ']; <?php return ['Hu ', 'Qi ', 'He ', 'Cui ', 'Tao ', 'Chun ', 'Bei ', 'Chang ', 'Huan ', 'Fei ', 'Lai ', 'Qi ', 'Meng ', 'Ping ', 'Wei ', 'Dan ', 'Sha ', 'Huan ', 'Yan ', 'Yi ', 'Tiao ', 'Qi ', 'Wan ', 'Ce ', 'Nai ', 'Kutabireru ', 'Tuo ', 'Jiu ', 'Tie ', 'Luo ', '[?] ', '[?] ', 'Meng ', '[?] ', 'Yaji ', '[?] ', 'Ying ', 'Ying ', 'Ying ', 'Xiao ', 'Sa ', 'Qiu ', 'Ke ', 'Xiang ', 'Wan ', 'Yu ', 'Yu ', 'Fu ', 'Lian ', 'Xuan ', 'Yuan ', 'Nan ', 'Ze ', 'Wo ', 'Chun ', 'Xiao ', 'Yu ', 'Pian ', 'Mao ', 'An ', 'E ', 'Luo ', 'Ying ', 'Huo ', 'Gua ', 'Jiang ', 'Mian ', 'Zuo ', 'Zuo ', 'Ju ', 'Bao ', 'Rou ', 'Xi ', 'Xie ', 'An ', 'Qu ', 'Jian ', 'Fu ', 'Lu ', 'Jing ', 'Pen ', 'Feng ', 'Hong ', 'Hong ', 'Hou ', 'Yan ', 'Tu ', 'Zhu ', 'Zi ', 'Xiang ', 'Shen ', 'Ge ', 'Jie ', 'Jing ', 'Mi ', 'Huang ', 'Shen ', 'Pu ', 'Gai ', 'Dong ', 'Zhou ', 'Qian ', 'Wei ', 'Bo ', 'Wei ', 'Pa ', 'Ji ', 'Hu ', 'Zang ', 'Jia ', 'Duan ', 'Yao ', 'Jun ', 'Cong ', 'Quan ', 'Wei ', 'Xian ', 'Kui ', 'Ting ', 'Hun ', 'Xi ', 'Shi ', 'Qi ', 'Lan ', 'Zong ', 'Yao ', 'Yuan ', 'Mei ', 'Yun ', 'Shu ', 'Di ', 'Zhuan ', 'Guan ', 'Sukumo ', 'Xue ', 'Chan ', 'Kai ', 'Kui ', '[?] ', 'Jiang ', 'Lou ', 'Wei ', 'Pai ', '[?] ', 'Sou ', 'Yin ', 'Shi ', 'Chun ', 'Shi ', 'Yun ', 'Zhen ', 'Lang ', 'Nu ', 'Meng ', 'He ', 'Que ', 'Suan ', 'Yuan ', 'Li ', 'Ju ', 'Xi ', 'Pang ', 'Chu ', 'Xu ', 'Tu ', 'Liu ', 'Wo ', 'Zhen ', 'Qian ', 'Zu ', 'Po ', 'Cuo ', 'Yuan ', 'Chu ', 'Yu ', 'Kuai ', 'Pan ', 'Pu ', 'Pu ', 'Na ', 'Shuo ', 'Xi ', 'Fen ', 'Yun ', 'Zheng ', 'Jian ', 'Ji ', 'Ruo ', 'Cang ', 'En ', 'Mi ', 'Hao ', 'Sun ', 'Zhen ', 'Ming ', 'Sou ', 'Xu ', 'Liu ', 'Xi ', 'Gu ', 'Lang ', 'Rong ', 'Weng ', 'Gai ', 'Cuo ', 'Shi ', 'Tang ', 'Luo ', 'Ru ', 'Suo ', 'Xian ', 'Bei ', 'Yao ', 'Gui ', 'Bi ', 'Zong ', 'Gun ', 'Za ', 'Xiu ', 'Ce ', 'Hai ', 'Lan ', '[?] ', 'Ji ', 'Li ', 'Can ', 'Lang ', 'Yu ', '[?] ', 'Ying ', 'Mo ', 'Diao ', 'Tiao ', 'Mao ', 'Tong ', 'Zhu ', 'Peng ', 'An ', 'Lian ', 'Cong ', 'Xi ', 'Ping ', 'Qiu ', 'Jin ', 'Chun ', 'Jie ', 'Wei ', 'Tui ', 'Cao ', 'Yu ', 'Yi ', 'Ji ', 'Liao ', 'Bi ', 'Lu ', 'Su ']; <?php return ['Bu ', 'Zhang ', 'Luo ', 'Jiang ', 'Man ', 'Yan ', 'Ling ', 'Ji ', 'Piao ', 'Gun ', 'Han ', 'Di ', 'Su ', 'Lu ', 'She ', 'Shang ', 'Di ', 'Mie ', 'Xun ', 'Man ', 'Bo ', 'Di ', 'Cuo ', 'Zhe ', 'Sen ', 'Xuan ', 'Wei ', 'Hu ', 'Ao ', 'Mi ', 'Lou ', 'Cu ', 'Zhong ', 'Cai ', 'Po ', 'Jiang ', 'Mi ', 'Cong ', 'Niao ', 'Hui ', 'Jun ', 'Yin ', 'Jian ', 'Yan ', 'Shu ', 'Yin ', 'Kui ', 'Chen ', 'Hu ', 'Sha ', 'Kou ', 'Qian ', 'Ma ', 'Zang ', 'Sonoko ', 'Qiang ', 'Dou ', 'Lian ', 'Lin ', 'Kou ', 'Ai ', 'Bi ', 'Li ', 'Wei ', 'Ji ', 'Xun ', 'Sheng ', 'Fan ', 'Meng ', 'Ou ', 'Chan ', 'Dian ', 'Xun ', 'Jiao ', 'Rui ', 'Rui ', 'Lei ', 'Yu ', 'Qiao ', 'Chu ', 'Hua ', 'Jian ', 'Mai ', 'Yun ', 'Bao ', 'You ', 'Qu ', 'Lu ', 'Rao ', 'Hui ', 'E ', 'Teng ', 'Fei ', 'Jue ', 'Zui ', 'Fa ', 'Ru ', 'Fen ', 'Kui ', 'Shun ', 'Rui ', 'Ya ', 'Xu ', 'Fu ', 'Jue ', 'Dang ', 'Wu ', 'Tong ', 'Si ', 'Xiao ', 'Xi ', 'Long ', 'Yun ', '[?] ', 'Qi ', 'Jian ', 'Yun ', 'Sun ', 'Ling ', 'Yu ', 'Xia ', 'Yong ', 'Ji ', 'Hong ', 'Si ', 'Nong ', 'Lei ', 'Xuan ', 'Yun ', 'Yu ', 'Xi ', 'Hao ', 'Bo ', 'Hao ', 'Ai ', 'Wei ', 'Hui ', 'Wei ', 'Ji ', 'Ci ', 'Xiang ', 'Luan ', 'Mie ', 'Yi ', 'Leng ', 'Jiang ', 'Can ', 'Shen ', 'Qiang ', 'Lian ', 'Ke ', 'Yuan ', 'Da ', 'Ti ', 'Tang ', 'Xie ', 'Bi ', 'Zhan ', 'Sun ', 'Lian ', 'Fan ', 'Ding ', 'Jie ', 'Gu ', 'Xie ', 'Shu ', 'Jian ', 'Kao ', 'Hong ', 'Sa ', 'Xin ', 'Xun ', 'Yao ', 'Hie ', 'Sou ', 'Shu ', 'Xun ', 'Dui ', 'Pin ', 'Wei ', 'Neng ', 'Chou ', 'Mai ', 'Ru ', 'Piao ', 'Tai ', 'Qi ', 'Zao ', 'Chen ', 'Zhen ', 'Er ', 'Ni ', 'Ying ', 'Gao ', 'Cong ', 'Xiao ', 'Qi ', 'Fa ', 'Jian ', 'Xu ', 'Kui ', 'Jie ', 'Bian ', 'Diao ', 'Mi ', 'Lan ', 'Jin ', 'Cang ', 'Miao ', 'Qiong ', 'Qie ', 'Xian ', '[?] ', 'Ou ', 'Xian ', 'Su ', 'Lu ', 'Yi ', 'Xu ', 'Xie ', 'Li ', 'Yi ', 'La ', 'Lei ', 'Xiao ', 'Di ', 'Zhi ', 'Bei ', 'Teng ', 'Yao ', 'Mo ', 'Huan ', 'Piao ', 'Fan ', 'Sou ', 'Tan ', 'Tui ', 'Qiong ', 'Qiao ', 'Wei ', 'Liu ', 'Hui ', '[?] ', 'Gao ', 'Yun ', '[?] ', 'Li ', 'Shu ', 'Chu ', 'Ai ', 'Lin ', 'Zao ', 'Xuan ', 'Chen ', 'Lai ', 'Huo ']; <?php return ['Tuo ', 'Wu ', 'Rui ', 'Rui ', 'Qi ', 'Heng ', 'Lu ', 'Su ', 'Tui ', 'Mang ', 'Yun ', 'Pin ', 'Yu ', 'Xun ', 'Ji ', 'Jiong ', 'Xian ', 'Mo ', 'Hagi ', 'Su ', 'Jiong ', '[?] ', 'Nie ', 'Bo ', 'Rang ', 'Yi ', 'Xian ', 'Yu ', 'Ju ', 'Lian ', 'Lian ', 'Yin ', 'Qiang ', 'Ying ', 'Long ', 'Tong ', 'Wei ', 'Yue ', 'Ling ', 'Qu ', 'Yao ', 'Fan ', 'Mi ', 'Lan ', 'Kui ', 'Lan ', 'Ji ', 'Dang ', 'Katsura ', 'Lei ', 'Lei ', 'Hua ', 'Feng ', 'Zhi ', 'Wei ', 'Kui ', 'Zhan ', 'Huai ', 'Li ', 'Ji ', 'Mi ', 'Lei ', 'Huai ', 'Luo ', 'Ji ', 'Kui ', 'Lu ', 'Jian ', 'San ', '[?] ', 'Lei ', 'Quan ', 'Xiao ', 'Yi ', 'Luan ', 'Men ', 'Bie ', 'Hu ', 'Hu ', 'Lu ', 'Nue ', 'Lu ', 'Si ', 'Xiao ', 'Qian ', 'Chu ', 'Hu ', 'Xu ', 'Cuo ', 'Fu ', 'Xu ', 'Xu ', 'Lu ', 'Hu ', 'Yu ', 'Hao ', 'Jiao ', 'Ju ', 'Guo ', 'Bao ', 'Yan ', 'Zhan ', 'Zhan ', 'Kui ', 'Ban ', 'Xi ', 'Shu ', 'Chong ', 'Qiu ', 'Diao ', 'Ji ', 'Qiu ', 'Cheng ', 'Shi ', '[?] ', 'Di ', 'Zhe ', 'She ', 'Yu ', 'Gan ', 'Zi ', 'Hong ', 'Hui ', 'Meng ', 'Ge ', 'Sui ', 'Xia ', 'Chai ', 'Shi ', 'Yi ', 'Ma ', 'Xiang ', 'Fang ', 'E ', 'Pa ', 'Chi ', 'Qian ', 'Wen ', 'Wen ', 'Rui ', 'Bang ', 'Bi ', 'Yue ', 'Yue ', 'Jun ', 'Qi ', 'Ran ', 'Yin ', 'Qi ', 'Tian ', 'Yuan ', 'Jue ', 'Hui ', 'Qin ', 'Qi ', 'Zhong ', 'Ya ', 'Ci ', 'Mu ', 'Wang ', 'Fen ', 'Fen ', 'Hang ', 'Gong ', 'Zao ', 'Fu ', 'Ran ', 'Jie ', 'Fu ', 'Chi ', 'Dou ', 'Piao ', 'Xian ', 'Ni ', 'Te ', 'Qiu ', 'You ', 'Zha ', 'Ping ', 'Chi ', 'You ', 'He ', 'Han ', 'Ju ', 'Li ', 'Fu ', 'Ran ', 'Zha ', 'Gou ', 'Pi ', 'Bo ', 'Xian ', 'Zhu ', 'Diao ', 'Bie ', 'Bing ', 'Gu ', 'Ran ', 'Qu ', 'She ', 'Tie ', 'Ling ', 'Gu ', 'Dan ', 'Gu ', 'Ying ', 'Li ', 'Cheng ', 'Qu ', 'Mou ', 'Ge ', 'Ci ', 'Hui ', 'Hui ', 'Mang ', 'Fu ', 'Yang ', 'Wa ', 'Lie ', 'Zhu ', 'Yi ', 'Xian ', 'Kuo ', 'Jiao ', 'Li ', 'Yi ', 'Ping ', 'Ji ', 'Ha ', 'She ', 'Yi ', 'Wang ', 'Mo ', 'Qiong ', 'Qie ', 'Gui ', 'Gong ', 'Zhi ', 'Man ', 'Ebi ', 'Zhi ', 'Jia ', 'Rao ', 'Si ', 'Qi ', 'Xing ', 'Lie ', 'Qiu ', 'Shao ', 'Yong ', 'Jia ', 'Shui ', 'Che ', 'Bai ', 'E ', 'Han ']; <?php return ['Shu ', 'Xuan ', 'Feng ', 'Shen ', 'Zhen ', 'Fu ', 'Xian ', 'Zhe ', 'Wu ', 'Fu ', 'Li ', 'Lang ', 'Bi ', 'Chu ', 'Yuan ', 'You ', 'Jie ', 'Dan ', 'Yan ', 'Ting ', 'Dian ', 'Shui ', 'Hui ', 'Gua ', 'Zhi ', 'Song ', 'Fei ', 'Ju ', 'Mi ', 'Qi ', 'Qi ', 'Yu ', 'Jun ', 'Zha ', 'Meng ', 'Qiang ', 'Si ', 'Xi ', 'Lun ', 'Li ', 'Die ', 'Tiao ', 'Tao ', 'Kun ', 'Gan ', 'Han ', 'Yu ', 'Bang ', 'Fei ', 'Pi ', 'Wei ', 'Dun ', 'Yi ', 'Yuan ', 'Su ', 'Quan ', 'Qian ', 'Rui ', 'Ni ', 'Qing ', 'Wei ', 'Liang ', 'Guo ', 'Wan ', 'Dong ', 'E ', 'Ban ', 'Di ', 'Wang ', 'Can ', 'Yang ', 'Ying ', 'Guo ', 'Chan ', '[?] ', 'La ', 'Ke ', 'Ji ', 'He ', 'Ting ', 'Mai ', 'Xu ', 'Mian ', 'Yu ', 'Jie ', 'Shi ', 'Xuan ', 'Huang ', 'Yan ', 'Bian ', 'Rou ', 'Wei ', 'Fu ', 'Yuan ', 'Mei ', 'Wei ', 'Fu ', 'Ruan ', 'Xie ', 'You ', 'Qiu ', 'Mao ', 'Xia ', 'Ying ', 'Shi ', 'Chong ', 'Tang ', 'Zhu ', 'Zong ', 'Ti ', 'Fu ', 'Yuan ', 'Hui ', 'Meng ', 'La ', 'Du ', 'Hu ', 'Qiu ', 'Die ', 'Li ', 'Gua ', 'Yun ', 'Ju ', 'Nan ', 'Lou ', 'Qun ', 'Rong ', 'Ying ', 'Jiang ', '[?] ', 'Lang ', 'Pang ', 'Si ', 'Xi ', 'Ci ', 'Xi ', 'Yuan ', 'Weng ', 'Lian ', 'Sou ', 'Ban ', 'Rong ', 'Rong ', 'Ji ', 'Wu ', 'Qiu ', 'Han ', 'Qin ', 'Yi ', 'Bi ', 'Hua ', 'Tang ', 'Yi ', 'Du ', 'Nai ', 'He ', 'Hu ', 'Hui ', 'Ma ', 'Ming ', 'Yi ', 'Wen ', 'Ying ', 'Teng ', 'Yu ', 'Cang ', 'So ', 'Ebi ', 'Man ', '[?] ', 'Shang ', 'Zhe ', 'Cao ', 'Chi ', 'Di ', 'Ao ', 'Lu ', 'Wei ', 'Zhi ', 'Tang ', 'Chen ', 'Piao ', 'Qu ', 'Pi ', 'Yu ', 'Jian ', 'Luo ', 'Lou ', 'Qin ', 'Zhong ', 'Yin ', 'Jiang ', 'Shuai ', 'Wen ', 'Jiao ', 'Wan ', 'Zhi ', 'Zhe ', 'Ma ', 'Ma ', 'Guo ', 'Liu ', 'Mao ', 'Xi ', 'Cong ', 'Li ', 'Man ', 'Xiao ', 'Kamakiri ', 'Zhang ', 'Mang ', 'Xiang ', 'Mo ', 'Zui ', 'Si ', 'Qiu ', 'Te ', 'Zhi ', 'Peng ', 'Peng ', 'Jiao ', 'Qu ', 'Bie ', 'Liao ', 'Pan ', 'Gui ', 'Xi ', 'Ji ', 'Zhuan ', 'Huang ', 'Fei ', 'Lao ', 'Jue ', 'Jue ', 'Hui ', 'Yin ', 'Chan ', 'Jiao ', 'Shan ', 'Rao ', 'Xiao ', 'Mou ', 'Chong ', 'Xun ', 'Si ', '[?] ', 'Cheng ', 'Dang ', 'Li ', 'Xie ', 'Shan ', 'Yi ', 'Jing ', 'Da ', 'Chan ', 'Qi ']; <?php return ['Ci ', 'Xiang ', 'She ', 'Luo ', 'Qin ', 'Ying ', 'Chai ', 'Li ', 'Ze ', 'Xuan ', 'Lian ', 'Zhu ', 'Ze ', 'Xie ', 'Mang ', 'Xie ', 'Qi ', 'Rong ', 'Jian ', 'Meng ', 'Hao ', 'Ruan ', 'Huo ', 'Zhuo ', 'Jie ', 'Bin ', 'He ', 'Mie ', 'Fan ', 'Lei ', 'Jie ', 'La ', 'Mi ', 'Li ', 'Chun ', 'Li ', 'Qiu ', 'Nie ', 'Lu ', 'Du ', 'Xiao ', 'Zhu ', 'Long ', 'Li ', 'Long ', 'Feng ', 'Ye ', 'Beng ', 'Shang ', 'Gu ', 'Juan ', 'Ying ', '[?] ', 'Xi ', 'Can ', 'Qu ', 'Quan ', 'Du ', 'Can ', 'Man ', 'Jue ', 'Jie ', 'Zhu ', 'Zha ', 'Xie ', 'Huang ', 'Niu ', 'Pei ', 'Nu ', 'Xin ', 'Zhong ', 'Mo ', 'Er ', 'Ke ', 'Mie ', 'Xi ', 'Xing ', 'Yan ', 'Kan ', 'Yuan ', '[?] ', 'Ling ', 'Xuan ', 'Shu ', 'Xian ', 'Tong ', 'Long ', 'Jie ', 'Xian ', 'Ya ', 'Hu ', 'Wei ', 'Dao ', 'Chong ', 'Wei ', 'Dao ', 'Zhun ', 'Heng ', 'Qu ', 'Yi ', 'Yi ', 'Bu ', 'Gan ', 'Yu ', 'Biao ', 'Cha ', 'Yi ', 'Shan ', 'Chen ', 'Fu ', 'Gun ', 'Fen ', 'Shuai ', 'Jie ', 'Na ', 'Zhong ', 'Dan ', 'Ri ', 'Zhong ', 'Zhong ', 'Xie ', 'Qi ', 'Xie ', 'Ran ', 'Zhi ', 'Ren ', 'Qin ', 'Jin ', 'Jun ', 'Yuan ', 'Mei ', 'Chai ', 'Ao ', 'Niao ', 'Hui ', 'Ran ', 'Jia ', 'Tuo ', 'Ling ', 'Dai ', 'Bao ', 'Pao ', 'Yao ', 'Zuo ', 'Bi ', 'Shao ', 'Tan ', 'Ju ', 'He ', 'Shu ', 'Xiu ', 'Zhen ', 'Yi ', 'Pa ', 'Bo ', 'Di ', 'Wa ', 'Fu ', 'Gun ', 'Zhi ', 'Zhi ', 'Ran ', 'Pan ', 'Yi ', 'Mao ', 'Tuo ', 'Na ', 'Kou ', 'Xian ', 'Chan ', 'Qu ', 'Bei ', 'Gun ', 'Xi ', 'Ne ', 'Bo ', 'Horo ', 'Fu ', 'Yi ', 'Chi ', 'Ku ', 'Ren ', 'Jiang ', 'Jia ', 'Cun ', 'Mo ', 'Jie ', 'Er ', 'Luo ', 'Ru ', 'Zhu ', 'Gui ', 'Yin ', 'Cai ', 'Lie ', 'Kamishimo ', 'Yuki ', 'Zhuang ', 'Dang ', '[?] ', 'Kun ', 'Ken ', 'Niao ', 'Shu ', 'Jia ', 'Kun ', 'Cheng ', 'Li ', 'Juan ', 'Shen ', 'Pou ', 'Ge ', 'Yi ', 'Yu ', 'Zhen ', 'Liu ', 'Qiu ', 'Qun ', 'Ji ', 'Yi ', 'Bu ', 'Zhuang ', 'Shui ', 'Sha ', 'Qun ', 'Li ', 'Lian ', 'Lian ', 'Ku ', 'Jian ', 'Fou ', 'Chan ', 'Bi ', 'Gun ', 'Tao ', 'Yuan ', 'Ling ', 'Chi ', 'Chang ', 'Chou ', 'Duo ', 'Biao ', 'Liang ', 'Chang ', 'Pei ', 'Pei ', 'Fei ', 'Yuan ', 'Luo ', 'Guo ', 'Yan ', 'Du ', 'Xi ', 'Zhi ', 'Ju ', 'Qi ']; <?php return ['Ji ', 'Zhi ', 'Gua ', 'Ken ', 'Che ', 'Ti ', 'Ti ', 'Fu ', 'Chong ', 'Xie ', 'Bian ', 'Die ', 'Kun ', 'Duan ', 'Xiu ', 'Xiu ', 'He ', 'Yuan ', 'Bao ', 'Bao ', 'Fu ', 'Yu ', 'Tuan ', 'Yan ', 'Hui ', 'Bei ', 'Chu ', 'Lu ', 'Ena ', 'Hitoe ', 'Yun ', 'Da ', 'Gou ', 'Da ', 'Huai ', 'Rong ', 'Yuan ', 'Ru ', 'Nai ', 'Jiong ', 'Suo ', 'Ban ', 'Tun ', 'Chi ', 'Sang ', 'Niao ', 'Ying ', 'Jie ', 'Qian ', 'Huai ', 'Ku ', 'Lian ', 'Bao ', 'Li ', 'Zhe ', 'Shi ', 'Lu ', 'Yi ', 'Die ', 'Xie ', 'Xian ', 'Wei ', 'Biao ', 'Cao ', 'Ji ', 'Jiang ', 'Sen ', 'Bao ', 'Xiang ', 'Chihaya ', 'Pu ', 'Jian ', 'Zhuan ', 'Jian ', 'Zui ', 'Ji ', 'Dan ', 'Za ', 'Fan ', 'Bo ', 'Xiang ', 'Xin ', 'Bie ', 'Rao ', 'Man ', 'Lan ', 'Ao ', 'Duo ', 'Gui ', 'Cao ', 'Sui ', 'Nong ', 'Chan ', 'Lian ', 'Bi ', 'Jin ', 'Dang ', 'Shu ', 'Tan ', 'Bi ', 'Lan ', 'Pu ', 'Ru ', 'Zhi ', '[?] ', 'Shu ', 'Wa ', 'Shi ', 'Bai ', 'Xie ', 'Bo ', 'Chen ', 'Lai ', 'Long ', 'Xi ', 'Xian ', 'Lan ', 'Zhe ', 'Dai ', 'Tasuki ', 'Zan ', 'Shi ', 'Jian ', 'Pan ', 'Yi ', 'Ran ', 'Ya ', 'Xi ', 'Xi ', 'Yao ', 'Feng ', 'Tan ', '[?] ', 'Biao ', 'Fu ', 'Ba ', 'He ', 'Ji ', 'Ji ', 'Jian ', 'Guan ', 'Bian ', 'Yan ', 'Gui ', 'Jue ', 'Pian ', 'Mao ', 'Mi ', 'Mi ', 'Mie ', 'Shi ', 'Si ', 'Zhan ', 'Luo ', 'Jue ', 'Mi ', 'Tiao ', 'Lian ', 'Yao ', 'Zhi ', 'Jun ', 'Xi ', 'Shan ', 'Wei ', 'Xi ', 'Tian ', 'Yu ', 'Lan ', 'E ', 'Du ', 'Qin ', 'Pang ', 'Ji ', 'Ming ', 'Ying ', 'Gou ', 'Qu ', 'Zhan ', 'Jin ', 'Guan ', 'Deng ', 'Jian ', 'Luo ', 'Qu ', 'Jian ', 'Wei ', 'Jue ', 'Qu ', 'Luo ', 'Lan ', 'Shen ', 'Di ', 'Guan ', 'Jian ', 'Guan ', 'Yan ', 'Gui ', 'Mi ', 'Shi ', 'Zhan ', 'Lan ', 'Jue ', 'Ji ', 'Xi ', 'Di ', 'Tian ', 'Yu ', 'Gou ', 'Jin ', 'Qu ', 'Jiao ', 'Jiu ', 'Jin ', 'Cu ', 'Jue ', 'Zhi ', 'Chao ', 'Ji ', 'Gu ', 'Dan ', 'Zui ', 'Di ', 'Shang ', 'Hua ', 'Quan ', 'Ge ', 'Chi ', 'Jie ', 'Gui ', 'Gong ', 'Hong ', 'Jie ', 'Hun ', 'Qiu ', 'Xing ', 'Su ', 'Ni ', 'Ji ', 'Lu ', 'Zhi ', 'Zha ', 'Bi ', 'Xing ', 'Hu ', 'Shang ', 'Gong ', 'Zhi ', 'Xue ', 'Chu ', 'Xi ', 'Yi ', 'Lu ', 'Jue ', 'Xi ', 'Yan ', 'Xi ']; <?php return ['Yan ', 'Yan ', 'Ding ', 'Fu ', 'Qiu ', 'Qiu ', 'Jiao ', 'Hong ', 'Ji ', 'Fan ', 'Xun ', 'Diao ', 'Hong ', 'Cha ', 'Tao ', 'Xu ', 'Jie ', 'Yi ', 'Ren ', 'Xun ', 'Yin ', 'Shan ', 'Qi ', 'Tuo ', 'Ji ', 'Xun ', 'Yin ', 'E ', 'Fen ', 'Ya ', 'Yao ', 'Song ', 'Shen ', 'Yin ', 'Xin ', 'Jue ', 'Xiao ', 'Ne ', 'Chen ', 'You ', 'Zhi ', 'Xiong ', 'Fang ', 'Xin ', 'Chao ', 'She ', 'Xian ', 'Sha ', 'Tun ', 'Xu ', 'Yi ', 'Yi ', 'Su ', 'Chi ', 'He ', 'Shen ', 'He ', 'Xu ', 'Zhen ', 'Zhu ', 'Zheng ', 'Gou ', 'Zi ', 'Zi ', 'Zhan ', 'Gu ', 'Fu ', 'Quan ', 'Die ', 'Ling ', 'Di ', 'Yang ', 'Li ', 'Nao ', 'Pan ', 'Zhou ', 'Gan ', 'Yi ', 'Ju ', 'Ao ', 'Zha ', 'Tuo ', 'Yi ', 'Qu ', 'Zhao ', 'Ping ', 'Bi ', 'Xiong ', 'Qu ', 'Ba ', 'Da ', 'Zu ', 'Tao ', 'Zhu ', 'Ci ', 'Zhe ', 'Yong ', 'Xu ', 'Xun ', 'Yi ', 'Huang ', 'He ', 'Shi ', 'Cha ', 'Jiao ', 'Shi ', 'Hen ', 'Cha ', 'Gou ', 'Gui ', 'Quan ', 'Hui ', 'Jie ', 'Hua ', 'Gai ', 'Xiang ', 'Wei ', 'Shen ', 'Chou ', 'Tong ', 'Mi ', 'Zhan ', 'Ming ', 'E ', 'Hui ', 'Yan ', 'Xiong ', 'Gua ', 'Er ', 'Beng ', 'Tiao ', 'Chi ', 'Lei ', 'Zhu ', 'Kuang ', 'Kua ', 'Wu ', 'Yu ', 'Teng ', 'Ji ', 'Zhi ', 'Ren ', 'Su ', 'Lang ', 'E ', 'Kuang ', 'E ', 'Shi ', 'Ting ', 'Dan ', 'Bo ', 'Chan ', 'You ', 'Heng ', 'Qiao ', 'Qin ', 'Shua ', 'An ', 'Yu ', 'Xiao ', 'Cheng ', 'Jie ', 'Xian ', 'Wu ', 'Wu ', 'Gao ', 'Song ', 'Pu ', 'Hui ', 'Jing ', 'Shuo ', 'Zhen ', 'Shuo ', 'Du ', 'Yasashi ', 'Chang ', 'Shui ', 'Jie ', 'Ke ', 'Qu ', 'Cong ', 'Xiao ', 'Sui ', 'Wang ', 'Xuan ', 'Fei ', 'Chi ', 'Ta ', 'Yi ', 'Na ', 'Yin ', 'Diao ', 'Pi ', 'Chuo ', 'Chan ', 'Chen ', 'Zhun ', 'Ji ', 'Qi ', 'Tan ', 'Zhui ', 'Wei ', 'Ju ', 'Qing ', 'Jian ', 'Zheng ', 'Ze ', 'Zou ', 'Qian ', 'Zhuo ', 'Liang ', 'Jian ', 'Zhu ', 'Hao ', 'Lun ', 'Shen ', 'Biao ', 'Huai ', 'Pian ', 'Yu ', 'Die ', 'Xu ', 'Pian ', 'Shi ', 'Xuan ', 'Shi ', 'Hun ', 'Hua ', 'E ', 'Zhong ', 'Di ', 'Xie ', 'Fu ', 'Pu ', 'Ting ', 'Jian ', 'Qi ', 'Yu ', 'Zi ', 'Chuan ', 'Xi ', 'Hui ', 'Yin ', 'An ', 'Xian ', 'Nan ', 'Chen ', 'Feng ', 'Zhu ', 'Yang ', 'Yan ', 'Heng ', 'Xuan ', 'Ge ', 'Nuo ', 'Qi ']; <?php return ['Mou ', 'Ye ', 'Wei ', '[?] ', 'Teng ', 'Zou ', 'Shan ', 'Jian ', 'Bo ', 'Ku ', 'Huang ', 'Huo ', 'Ge ', 'Ying ', 'Mi ', 'Xiao ', 'Mi ', 'Xi ', 'Qiang ', 'Chen ', 'Nue ', 'Ti ', 'Su ', 'Bang ', 'Chi ', 'Qian ', 'Shi ', 'Jiang ', 'Yuan ', 'Xie ', 'Xue ', 'Tao ', 'Yao ', 'Yao ', '[?] ', 'Yu ', 'Biao ', 'Cong ', 'Qing ', 'Li ', 'Mo ', 'Mo ', 'Shang ', 'Zhe ', 'Miu ', 'Jian ', 'Ze ', 'Jie ', 'Lian ', 'Lou ', 'Can ', 'Ou ', 'Guan ', 'Xi ', 'Zhuo ', 'Ao ', 'Ao ', 'Jin ', 'Zhe ', 'Yi ', 'Hu ', 'Jiang ', 'Man ', 'Chao ', 'Han ', 'Hua ', 'Chan ', 'Xu ', 'Zeng ', 'Se ', 'Xi ', 'She ', 'Dui ', 'Zheng ', 'Nao ', 'Lan ', 'E ', 'Ying ', 'Jue ', 'Ji ', 'Zun ', 'Jiao ', 'Bo ', 'Hui ', 'Zhuan ', 'Mu ', 'Zen ', 'Zha ', 'Shi ', 'Qiao ', 'Tan ', 'Zen ', 'Pu ', 'Sheng ', 'Xuan ', 'Zao ', 'Tan ', 'Dang ', 'Sui ', 'Qian ', 'Ji ', 'Jiao ', 'Jing ', 'Lian ', 'Nou ', 'Yi ', 'Ai ', 'Zhan ', 'Pi ', 'Hui ', 'Hua ', 'Yi ', 'Yi ', 'Shan ', 'Rang ', 'Nou ', 'Qian ', 'Zhui ', 'Ta ', 'Hu ', 'Zhou ', 'Hao ', 'Ye ', 'Ying ', 'Jian ', 'Yu ', 'Jian ', 'Hui ', 'Du ', 'Zhe ', 'Xuan ', 'Zan ', 'Lei ', 'Shen ', 'Wei ', 'Chan ', 'Li ', 'Yi ', 'Bian ', 'Zhe ', 'Yan ', 'E ', 'Chou ', 'Wei ', 'Chou ', 'Yao ', 'Chan ', 'Rang ', 'Yin ', 'Lan ', 'Chen ', 'Huo ', 'Zhe ', 'Huan ', 'Zan ', 'Yi ', 'Dang ', 'Zhan ', 'Yan ', 'Du ', 'Yan ', 'Ji ', 'Ding ', 'Fu ', 'Ren ', 'Ji ', 'Jie ', 'Hong ', 'Tao ', 'Rang ', 'Shan ', 'Qi ', 'Tuo ', 'Xun ', 'Yi ', 'Xun ', 'Ji ', 'Ren ', 'Jiang ', 'Hui ', 'Ou ', 'Ju ', 'Ya ', 'Ne ', 'Xu ', 'E ', 'Lun ', 'Xiong ', 'Song ', 'Feng ', 'She ', 'Fang ', 'Jue ', 'Zheng ', 'Gu ', 'He ', 'Ping ', 'Zu ', 'Shi ', 'Xiong ', 'Zha ', 'Su ', 'Zhen ', 'Di ', 'Zou ', 'Ci ', 'Qu ', 'Zhao ', 'Bi ', 'Yi ', 'Yi ', 'Kuang ', 'Lei ', 'Shi ', 'Gua ', 'Shi ', 'Jie ', 'Hui ', 'Cheng ', 'Zhu ', 'Shen ', 'Hua ', 'Dan ', 'Gou ', 'Quan ', 'Gui ', 'Xun ', 'Yi ', 'Zheng ', 'Gai ', 'Xiang ', 'Cha ', 'Hun ', 'Xu ', 'Zhou ', 'Jie ', 'Wu ', 'Yu ', 'Qiao ', 'Wu ', 'Gao ', 'You ', 'Hui ', 'Kuang ', 'Shuo ', 'Song ', 'Ai ', 'Qing ', 'Zhu ', 'Zou ', 'Nuo ', 'Du ', 'Zhuo ', 'Fei ', 'Ke ', 'Wei ']; <?php return ['Yu ', 'Shui ', 'Shen ', 'Diao ', 'Chan ', 'Liang ', 'Zhun ', 'Sui ', 'Tan ', 'Shen ', 'Yi ', 'Mou ', 'Chen ', 'Die ', 'Huang ', 'Jian ', 'Xie ', 'Nue ', 'Ye ', 'Wei ', 'E ', 'Yu ', 'Xuan ', 'Chan ', 'Zi ', 'An ', 'Yan ', 'Di ', 'Mi ', 'Pian ', 'Xu ', 'Mo ', 'Dang ', 'Su ', 'Xie ', 'Yao ', 'Bang ', 'Shi ', 'Qian ', 'Mi ', 'Jin ', 'Man ', 'Zhe ', 'Jian ', 'Miu ', 'Tan ', 'Zen ', 'Qiao ', 'Lan ', 'Pu ', 'Jue ', 'Yan ', 'Qian ', 'Zhan ', 'Chen ', 'Gu ', 'Qian ', 'Hong ', 'Xia ', 'Jue ', 'Hong ', 'Han ', 'Hong ', 'Xi ', 'Xi ', 'Huo ', 'Liao ', 'Han ', 'Du ', 'Long ', 'Dou ', 'Jiang ', 'Qi ', 'Shi ', 'Li ', 'Deng ', 'Wan ', 'Bi ', 'Shu ', 'Xian ', 'Feng ', 'Zhi ', 'Zhi ', 'Yan ', 'Yan ', 'Shi ', 'Chu ', 'Hui ', 'Tun ', 'Yi ', 'Tun ', 'Yi ', 'Jian ', 'Ba ', 'Hou ', 'E ', 'Cu ', 'Xiang ', 'Huan ', 'Jian ', 'Ken ', 'Gai ', 'Qu ', 'Fu ', 'Xi ', 'Bin ', 'Hao ', 'Yu ', 'Zhu ', 'Jia ', '[?] ', 'Xi ', 'Bo ', 'Wen ', 'Huan ', 'Bin ', 'Di ', 'Zong ', 'Fen ', 'Yi ', 'Zhi ', 'Bao ', 'Chai ', 'Han ', 'Pi ', 'Na ', 'Pi ', 'Gou ', 'Na ', 'You ', 'Diao ', 'Mo ', 'Si ', 'Xiu ', 'Huan ', 'Kun ', 'He ', 'He ', 'Mo ', 'Han ', 'Mao ', 'Li ', 'Ni ', 'Bi ', 'Yu ', 'Jia ', 'Tuan ', 'Mao ', 'Pi ', 'Xi ', 'E ', 'Ju ', 'Mo ', 'Chu ', 'Tan ', 'Huan ', 'Jue ', 'Bei ', 'Zhen ', 'Yuan ', 'Fu ', 'Cai ', 'Gong ', 'Te ', 'Yi ', 'Hang ', 'Wan ', 'Pin ', 'Huo ', 'Fan ', 'Tan ', 'Guan ', 'Ze ', 'Zhi ', 'Er ', 'Zhu ', 'Shi ', 'Bi ', 'Zi ', 'Er ', 'Gui ', 'Pian ', 'Bian ', 'Mai ', 'Dai ', 'Sheng ', 'Kuang ', 'Fei ', 'Tie ', 'Yi ', 'Chi ', 'Mao ', 'He ', 'Bi ', 'Lu ', 'Ren ', 'Hui ', 'Gai ', 'Pian ', 'Zi ', 'Jia ', 'Xu ', 'Zei ', 'Jiao ', 'Gai ', 'Zang ', 'Jian ', 'Ying ', 'Xun ', 'Zhen ', 'She ', 'Bin ', 'Bin ', 'Qiu ', 'She ', 'Chuan ', 'Zang ', 'Zhou ', 'Lai ', 'Zan ', 'Si ', 'Chen ', 'Shang ', 'Tian ', 'Pei ', 'Geng ', 'Xian ', 'Mai ', 'Jian ', 'Sui ', 'Fu ', 'Tan ', 'Cong ', 'Cong ', 'Zhi ', 'Ji ', 'Zhang ', 'Du ', 'Jin ', 'Xiong ', 'Shun ', 'Yun ', 'Bao ', 'Zai ', 'Lai ', 'Feng ', 'Cang ', 'Ji ', 'Sheng ', 'Ai ', 'Zhuan ', 'Fu ', 'Gou ', 'Sai ', 'Ze ', 'Liao ']; <?php return ['Wei ', 'Bai ', 'Chen ', 'Zhuan ', 'Zhi ', 'Zhui ', 'Biao ', 'Yun ', 'Zeng ', 'Tan ', 'Zan ', 'Yan ', '[?] ', 'Shan ', 'Wan ', 'Ying ', 'Jin ', 'Gan ', 'Xian ', 'Zang ', 'Bi ', 'Du ', 'Shu ', 'Yan ', '[?] ', 'Xuan ', 'Long ', 'Gan ', 'Zang ', 'Bei ', 'Zhen ', 'Fu ', 'Yuan ', 'Gong ', 'Cai ', 'Ze ', 'Xian ', 'Bai ', 'Zhang ', 'Huo ', 'Zhi ', 'Fan ', 'Tan ', 'Pin ', 'Bian ', 'Gou ', 'Zhu ', 'Guan ', 'Er ', 'Jian ', 'Bi ', 'Shi ', 'Tie ', 'Gui ', 'Kuang ', 'Dai ', 'Mao ', 'Fei ', 'He ', 'Yi ', 'Zei ', 'Zhi ', 'Jia ', 'Hui ', 'Zi ', 'Ren ', 'Lu ', 'Zang ', 'Zi ', 'Gai ', 'Jin ', 'Qiu ', 'Zhen ', 'Lai ', 'She ', 'Fu ', 'Du ', 'Ji ', 'Shu ', 'Shang ', 'Si ', 'Bi ', 'Zhou ', 'Geng ', 'Pei ', 'Tan ', 'Lai ', 'Feng ', 'Zhui ', 'Fu ', 'Zhuan ', 'Sai ', 'Ze ', 'Yan ', 'Zan ', 'Yun ', 'Zeng ', 'Shan ', 'Ying ', 'Gan ', 'Chi ', 'Xi ', 'She ', 'Nan ', 'Xiong ', 'Xi ', 'Cheng ', 'He ', 'Cheng ', 'Zhe ', 'Xia ', 'Tang ', 'Zou ', 'Zou ', 'Li ', 'Jiu ', 'Fu ', 'Zhao ', 'Gan ', 'Qi ', 'Shan ', 'Qiong ', 'Qin ', 'Xian ', 'Ci ', 'Jue ', 'Qin ', 'Chi ', 'Ci ', 'Chen ', 'Chen ', 'Die ', 'Ju ', 'Chao ', 'Di ', 'Se ', 'Zhan ', 'Zhu ', 'Yue ', 'Qu ', 'Jie ', 'Chi ', 'Chu ', 'Gua ', 'Xue ', 'Ci ', 'Tiao ', 'Duo ', 'Lie ', 'Gan ', 'Suo ', 'Cu ', 'Xi ', 'Zhao ', 'Su ', 'Yin ', 'Ju ', 'Jian ', 'Que ', 'Tang ', 'Chuo ', 'Cui ', 'Lu ', 'Qu ', 'Dang ', 'Qiu ', 'Zi ', 'Ti ', 'Qu ', 'Chi ', 'Huang ', 'Qiao ', 'Qiao ', 'Yao ', 'Zao ', 'Ti ', '[?] ', 'Zan ', 'Zan ', 'Zu ', 'Pa ', 'Bao ', 'Ku ', 'Ke ', 'Dun ', 'Jue ', 'Fu ', 'Chen ', 'Jian ', 'Fang ', 'Zhi ', 'Sa ', 'Yue ', 'Pa ', 'Qi ', 'Yue ', 'Qiang ', 'Tuo ', 'Tai ', 'Yi ', 'Nian ', 'Ling ', 'Mei ', 'Ba ', 'Die ', 'Ku ', 'Tuo ', 'Jia ', 'Ci ', 'Pao ', 'Qia ', 'Zhu ', 'Ju ', 'Die ', 'Zhi ', 'Fu ', 'Pan ', 'Ju ', 'Shan ', 'Bo ', 'Ni ', 'Ju ', 'Li ', 'Gen ', 'Yi ', 'Ji ', 'Dai ', 'Xian ', 'Jiao ', 'Duo ', 'Zhu ', 'Zhuan ', 'Kua ', 'Zhuai ', 'Gui ', 'Qiong ', 'Kui ', 'Xiang ', 'Chi ', 'Lu ', 'Beng ', 'Zhi ', 'Jia ', 'Tiao ', 'Cai ', 'Jian ', 'Ta ', 'Qiao ', 'Bi ', 'Xian ', 'Duo ', 'Ji ', 'Ju ', 'Ji ', 'Shu ', 'Tu ']; <?php return ['Chu ', 'Jing ', 'Nie ', 'Xiao ', 'Bo ', 'Chi ', 'Qun ', 'Mou ', 'Shu ', 'Lang ', 'Yong ', 'Jiao ', 'Chou ', 'Qiao ', '[?] ', 'Ta ', 'Jian ', 'Qi ', 'Wo ', 'Wei ', 'Zhuo ', 'Jie ', 'Ji ', 'Nie ', 'Ju ', 'Ju ', 'Lun ', 'Lu ', 'Leng ', 'Huai ', 'Ju ', 'Chi ', 'Wan ', 'Quan ', 'Ti ', 'Bo ', 'Zu ', 'Qie ', 'Ji ', 'Cu ', 'Zong ', 'Cai ', 'Zong ', 'Peng ', 'Zhi ', 'Zheng ', 'Dian ', 'Zhi ', 'Yu ', 'Duo ', 'Dun ', 'Chun ', 'Yong ', 'Zhong ', 'Di ', 'Zhe ', 'Chen ', 'Chuai ', 'Jian ', 'Gua ', 'Tang ', 'Ju ', 'Fu ', 'Zu ', 'Die ', 'Pian ', 'Rou ', 'Nuo ', 'Ti ', 'Cha ', 'Tui ', 'Jian ', 'Dao ', 'Cuo ', 'Xi ', 'Ta ', 'Qiang ', 'Zhan ', 'Dian ', 'Ti ', 'Ji ', 'Nie ', 'Man ', 'Liu ', 'Zhan ', 'Bi ', 'Chong ', 'Lu ', 'Liao ', 'Cu ', 'Tang ', 'Dai ', 'Suo ', 'Xi ', 'Kui ', 'Ji ', 'Zhi ', 'Qiang ', 'Di ', 'Man ', 'Zong ', 'Lian ', 'Beng ', 'Zao ', 'Nian ', 'Bie ', 'Tui ', 'Ju ', 'Deng ', 'Ceng ', 'Xian ', 'Fan ', 'Chu ', 'Zhong ', 'Dun ', 'Bo ', 'Cu ', 'Zu ', 'Jue ', 'Jue ', 'Lin ', 'Ta ', 'Qiao ', 'Qiao ', 'Pu ', 'Liao ', 'Dun ', 'Cuan ', 'Kuang ', 'Zao ', 'Ta ', 'Bi ', 'Bi ', 'Zhu ', 'Ju ', 'Chu ', 'Qiao ', 'Dun ', 'Chou ', 'Ji ', 'Wu ', 'Yue ', 'Nian ', 'Lin ', 'Lie ', 'Zhi ', 'Li ', 'Zhi ', 'Chan ', 'Chu ', 'Duan ', 'Wei ', 'Long ', 'Lin ', 'Xian ', 'Wei ', 'Zuan ', 'Lan ', 'Xie ', 'Rang ', 'Xie ', 'Nie ', 'Ta ', 'Qu ', 'Jie ', 'Cuan ', 'Zuan ', 'Xi ', 'Kui ', 'Jue ', 'Lin ', 'Shen ', 'Gong ', 'Dan ', 'Segare ', 'Qu ', 'Ti ', 'Duo ', 'Duo ', 'Gong ', 'Lang ', 'Nerau ', 'Luo ', 'Ai ', 'Ji ', 'Ju ', 'Tang ', 'Utsuke ', '[?] ', 'Yan ', 'Shitsuke ', 'Kang ', 'Qu ', 'Lou ', 'Lao ', 'Tuo ', 'Zhi ', 'Yagate ', 'Ti ', 'Dao ', 'Yagate ', 'Yu ', 'Che ', 'Ya ', 'Gui ', 'Jun ', 'Wei ', 'Yue ', 'Xin ', 'Di ', 'Xuan ', 'Fan ', 'Ren ', 'Shan ', 'Qiang ', 'Shu ', 'Tun ', 'Chen ', 'Dai ', 'E ', 'Na ', 'Qi ', 'Mao ', 'Ruan ', 'Ren ', 'Fan ', 'Zhuan ', 'Hong ', 'Hu ', 'Qu ', 'Huang ', 'Di ', 'Ling ', 'Dai ', 'Ao ', 'Zhen ', 'Fan ', 'Kuang ', 'Ang ', 'Peng ', 'Bei ', 'Gu ', 'Ku ', 'Pao ', 'Zhu ', 'Rong ', 'E ', 'Ba ', 'Zhou ', 'Zhi ', 'Yao ', 'Ke ', 'Yi ', 'Qing ', 'Shi ', 'Ping ']; <?php return ['Er ', 'Qiong ', 'Ju ', 'Jiao ', 'Guang ', 'Lu ', 'Kai ', 'Quan ', 'Zhou ', 'Zai ', 'Zhi ', 'She ', 'Liang ', 'Yu ', 'Shao ', 'You ', 'Huan ', 'Yun ', 'Zhe ', 'Wan ', 'Fu ', 'Qing ', 'Zhou ', 'Ni ', 'Ling ', 'Zhe ', 'Zhan ', 'Liang ', 'Zi ', 'Hui ', 'Wang ', 'Chuo ', 'Guo ', 'Kan ', 'Yi ', 'Peng ', 'Qian ', 'Gun ', 'Nian ', 'Pian ', 'Guan ', 'Bei ', 'Lun ', 'Pai ', 'Liang ', 'Ruan ', 'Rou ', 'Ji ', 'Yang ', 'Xian ', 'Chuan ', 'Cou ', 'Qun ', 'Ge ', 'You ', 'Hong ', 'Shu ', 'Fu ', 'Zi ', 'Fu ', 'Wen ', 'Ben ', 'Zhan ', 'Yu ', 'Wen ', 'Tao ', 'Gu ', 'Zhen ', 'Xia ', 'Yuan ', 'Lu ', 'Jiu ', 'Chao ', 'Zhuan ', 'Wei ', 'Hun ', 'Sori ', 'Che ', 'Jiao ', 'Zhan ', 'Pu ', 'Lao ', 'Fen ', 'Fan ', 'Lin ', 'Ge ', 'Se ', 'Kan ', 'Huan ', 'Yi ', 'Ji ', 'Dui ', 'Er ', 'Yu ', 'Xian ', 'Hong ', 'Lei ', 'Pei ', 'Li ', 'Li ', 'Lu ', 'Lin ', 'Che ', 'Ya ', 'Gui ', 'Xuan ', 'Di ', 'Ren ', 'Zhuan ', 'E ', 'Lun ', 'Ruan ', 'Hong ', 'Ku ', 'Ke ', 'Lu ', 'Zhou ', 'Zhi ', 'Yi ', 'Hu ', 'Zhen ', 'Li ', 'Yao ', 'Qing ', 'Shi ', 'Zai ', 'Zhi ', 'Jiao ', 'Zhou ', 'Quan ', 'Lu ', 'Jiao ', 'Zhe ', 'Fu ', 'Liang ', 'Nian ', 'Bei ', 'Hui ', 'Gun ', 'Wang ', 'Liang ', 'Chuo ', 'Zi ', 'Cou ', 'Fu ', 'Ji ', 'Wen ', 'Shu ', 'Pei ', 'Yuan ', 'Xia ', 'Zhan ', 'Lu ', 'Che ', 'Lin ', 'Xin ', 'Gu ', 'Ci ', 'Ci ', 'Pi ', 'Zui ', 'Bian ', 'La ', 'La ', 'Ci ', 'Xue ', 'Ban ', 'Bian ', 'Bian ', 'Bian ', '[?] ', 'Bian ', 'Ban ', 'Ci ', 'Bian ', 'Bian ', 'Chen ', 'Ru ', 'Nong ', 'Nong ', 'Zhen ', 'Chuo ', 'Chuo ', 'Suberu ', 'Reng ', 'Bian ', 'Bian ', 'Sip ', 'Ip ', 'Liao ', 'Da ', 'Chan ', 'Gan ', 'Qian ', 'Yu ', 'Yu ', 'Qi ', 'Xun ', 'Yi ', 'Guo ', 'Mai ', 'Qi ', 'Za ', 'Wang ', 'Jia ', 'Zhun ', 'Ying ', 'Ti ', 'Yun ', 'Jin ', 'Hang ', 'Ya ', 'Fan ', 'Wu ', 'Da ', 'E ', 'Huan ', 'Zhe ', 'Totemo ', 'Jin ', 'Yuan ', 'Wei ', 'Lian ', 'Chi ', 'Che ', 'Ni ', 'Tiao ', 'Zhi ', 'Yi ', 'Jiong ', 'Jia ', 'Chen ', 'Dai ', 'Er ', 'Di ', 'Po ', 'Wang ', 'Die ', 'Ze ', 'Tao ', 'Shu ', 'Tuo ', 'Kep ', 'Jing ', 'Hui ', 'Tong ', 'You ', 'Mi ', 'Beng ', 'Ji ', 'Nai ', 'Yi ', 'Jie ', 'Zhui ', 'Lie ', 'Xun ']; <?php return ['Tui ', 'Song ', 'Gua ', 'Tao ', 'Pang ', 'Hou ', 'Ni ', 'Dun ', 'Jiong ', 'Xuan ', 'Xun ', 'Bu ', 'You ', 'Xiao ', 'Qiu ', 'Tou ', 'Zhu ', 'Qiu ', 'Di ', 'Di ', 'Tu ', 'Jing ', 'Ti ', 'Dou ', 'Yi ', 'Zhe ', 'Tong ', 'Guang ', 'Wu ', 'Shi ', 'Cheng ', 'Su ', 'Zao ', 'Qun ', 'Feng ', 'Lian ', 'Suo ', 'Hui ', 'Li ', 'Sako ', 'Lai ', 'Ben ', 'Cuo ', 'Jue ', 'Beng ', 'Huan ', 'Dai ', 'Lu ', 'You ', 'Zhou ', 'Jin ', 'Yu ', 'Chuo ', 'Kui ', 'Wei ', 'Ti ', 'Yi ', 'Da ', 'Yuan ', 'Luo ', 'Bi ', 'Nuo ', 'Yu ', 'Dang ', 'Sui ', 'Dun ', 'Sui ', 'Yan ', 'Chuan ', 'Chi ', 'Ti ', 'Yu ', 'Shi ', 'Zhen ', 'You ', 'Yun ', 'E ', 'Bian ', 'Guo ', 'E ', 'Xia ', 'Huang ', 'Qiu ', 'Dao ', 'Da ', 'Wei ', 'Appare ', 'Yi ', 'Gou ', 'Yao ', 'Chu ', 'Liu ', 'Xun ', 'Ta ', 'Di ', 'Chi ', 'Yuan ', 'Su ', 'Ta ', 'Qian ', '[?] ', 'Yao ', 'Guan ', 'Zhang ', 'Ao ', 'Shi ', 'Ce ', 'Chi ', 'Su ', 'Zao ', 'Zhe ', 'Dun ', 'Di ', 'Lou ', 'Chi ', 'Cuo ', 'Lin ', 'Zun ', 'Rao ', 'Qian ', 'Xuan ', 'Yu ', 'Yi ', 'Wu ', 'Liao ', 'Ju ', 'Shi ', 'Bi ', 'Yao ', 'Mai ', 'Xie ', 'Sui ', 'Huan ', 'Zhan ', 'Teng ', 'Er ', 'Miao ', 'Bian ', 'Bian ', 'La ', 'Li ', 'Yuan ', 'Yao ', 'Luo ', 'Li ', 'Yi ', 'Ting ', 'Deng ', 'Qi ', 'Yong ', 'Shan ', 'Han ', 'Yu ', 'Mang ', 'Ru ', 'Qiong ', '[?] ', 'Kuang ', 'Fu ', 'Kang ', 'Bin ', 'Fang ', 'Xing ', 'Na ', 'Xin ', 'Shen ', 'Bang ', 'Yuan ', 'Cun ', 'Huo ', 'Xie ', 'Bang ', 'Wu ', 'Ju ', 'You ', 'Han ', 'Tai ', 'Qiu ', 'Bi ', 'Pei ', 'Bing ', 'Shao ', 'Bei ', 'Wa ', 'Di ', 'Zou ', 'Ye ', 'Lin ', 'Kuang ', 'Gui ', 'Zhu ', 'Shi ', 'Ku ', 'Yu ', 'Gai ', 'Ge ', 'Xi ', 'Zhi ', 'Ji ', 'Xun ', 'Hou ', 'Xing ', 'Jiao ', 'Xi ', 'Gui ', 'Nuo ', 'Lang ', 'Jia ', 'Kuai ', 'Zheng ', 'Otoko ', 'Yun ', 'Yan ', 'Cheng ', 'Dou ', 'Chi ', 'Lu ', 'Fu ', 'Wu ', 'Fu ', 'Gao ', 'Hao ', 'Lang ', 'Jia ', 'Geng ', 'Jun ', 'Ying ', 'Bo ', 'Xi ', 'Bei ', 'Li ', 'Yun ', 'Bu ', 'Xiao ', 'Qi ', 'Pi ', 'Qing ', 'Guo ', 'Zhou ', 'Tan ', 'Zou ', 'Ping ', 'Lai ', 'Ni ', 'Chen ', 'You ', 'Bu ', 'Xiang ', 'Dan ', 'Ju ', 'Yong ', 'Qiao ', 'Yi ', 'Du ', 'Yan ', 'Mei ']; <?php return ['Ruo ', 'Bei ', 'E ', 'Yu ', 'Juan ', 'Yu ', 'Yun ', 'Hou ', 'Kui ', 'Xiang ', 'Xiang ', 'Sou ', 'Tang ', 'Ming ', 'Xi ', 'Ru ', 'Chu ', 'Zi ', 'Zou ', 'Ju ', 'Wu ', 'Xiang ', 'Yun ', 'Hao ', 'Yong ', 'Bi ', 'Mo ', 'Chao ', 'Fu ', 'Liao ', 'Yin ', 'Zhuan ', 'Hu ', 'Qiao ', 'Yan ', 'Zhang ', 'Fan ', 'Qiao ', 'Xu ', 'Deng ', 'Bi ', 'Xin ', 'Bi ', 'Ceng ', 'Wei ', 'Zheng ', 'Mao ', 'Shan ', 'Lin ', 'Po ', 'Dan ', 'Meng ', 'Ye ', 'Cao ', 'Kuai ', 'Feng ', 'Meng ', 'Zou ', 'Kuang ', 'Lian ', 'Zan ', 'Chan ', 'You ', 'Qi ', 'Yan ', 'Chan ', 'Zan ', 'Ling ', 'Huan ', 'Xi ', 'Feng ', 'Zan ', 'Li ', 'You ', 'Ding ', 'Qiu ', 'Zhuo ', 'Pei ', 'Zhou ', 'Yi ', 'Hang ', 'Yu ', 'Jiu ', 'Yan ', 'Zui ', 'Mao ', 'Dan ', 'Xu ', 'Tou ', 'Zhen ', 'Fen ', 'Sakenomoto ', '[?] ', 'Yun ', 'Tai ', 'Tian ', 'Qia ', 'Tuo ', 'Zuo ', 'Han ', 'Gu ', 'Su ', 'Po ', 'Chou ', 'Zai ', 'Ming ', 'Luo ', 'Chuo ', 'Chou ', 'You ', 'Tong ', 'Zhi ', 'Xian ', 'Jiang ', 'Cheng ', 'Yin ', 'Tu ', 'Xiao ', 'Mei ', 'Ku ', 'Suan ', 'Lei ', 'Pu ', 'Zui ', 'Hai ', 'Yan ', 'Xi ', 'Niang ', 'Wei ', 'Lu ', 'Lan ', 'Yan ', 'Tao ', 'Pei ', 'Zhan ', 'Chun ', 'Tan ', 'Zui ', 'Chuo ', 'Cu ', 'Kun ', 'Ti ', 'Mian ', 'Du ', 'Hu ', 'Xu ', 'Xing ', 'Tan ', 'Jiu ', 'Chun ', 'Yun ', 'Po ', 'Ke ', 'Sou ', 'Mi ', 'Quan ', 'Chou ', 'Cuo ', 'Yun ', 'Yong ', 'Ang ', 'Zha ', 'Hai ', 'Tang ', 'Jiang ', 'Piao ', 'Shan ', 'Yu ', 'Li ', 'Zao ', 'Lao ', 'Yi ', 'Jiang ', 'Pu ', 'Jiao ', 'Xi ', 'Tan ', 'Po ', 'Nong ', 'Yi ', 'Li ', 'Ju ', 'Jiao ', 'Yi ', 'Niang ', 'Ru ', 'Xun ', 'Chou ', 'Yan ', 'Ling ', 'Mi ', 'Mi ', 'Niang ', 'Xin ', 'Jiao ', 'Xi ', 'Mi ', 'Yan ', 'Bian ', 'Cai ', 'Shi ', 'You ', 'Shi ', 'Shi ', 'Li ', 'Zhong ', 'Ye ', 'Liang ', 'Li ', 'Jin ', 'Jin ', 'Qiu ', 'Yi ', 'Diao ', 'Dao ', 'Zhao ', 'Ding ', 'Po ', 'Qiu ', 'He ', 'Fu ', 'Zhen ', 'Zhi ', 'Ba ', 'Luan ', 'Fu ', 'Nai ', 'Diao ', 'Shan ', 'Qiao ', 'Kou ', 'Chuan ', 'Zi ', 'Fan ', 'Yu ', 'Hua ', 'Han ', 'Gong ', 'Qi ', 'Mang ', 'Ri ', 'Di ', 'Si ', 'Xi ', 'Yi ', 'Chai ', 'Shi ', 'Tu ', 'Xi ', 'Nu ', 'Qian ', 'Ishiyumi ', 'Jian ', 'Pi ', 'Ye ', 'Yin ']; <?php return ['Ba ', 'Fang ', 'Chen ', 'Xing ', 'Tou ', 'Yue ', 'Yan ', 'Fu ', 'Pi ', 'Na ', 'Xin ', 'E ', 'Jue ', 'Dun ', 'Gou ', 'Yin ', 'Qian ', 'Ban ', 'Ji ', 'Ren ', 'Chao ', 'Niu ', 'Fen ', 'Yun ', 'Ji ', 'Qin ', 'Pi ', 'Guo ', 'Hong ', 'Yin ', 'Jun ', 'Shi ', 'Yi ', 'Zhong ', 'Nie ', 'Gai ', 'Ri ', 'Huo ', 'Tai ', 'Kang ', 'Habaki ', 'Irori ', 'Ngaak ', '[?] ', 'Duo ', 'Zi ', 'Ni ', 'Tu ', 'Shi ', 'Min ', 'Gu ', 'E ', 'Ling ', 'Bing ', 'Yi ', 'Gu ', 'Ba ', 'Pi ', 'Yu ', 'Si ', 'Zuo ', 'Bu ', 'You ', 'Dian ', 'Jia ', 'Zhen ', 'Shi ', 'Shi ', 'Tie ', 'Ju ', 'Zhan ', 'Shi ', 'She ', 'Xuan ', 'Zhao ', 'Bao ', 'He ', 'Bi ', 'Sheng ', 'Chu ', 'Shi ', 'Bo ', 'Zhu ', 'Chi ', 'Za ', 'Po ', 'Tong ', 'Qian ', 'Fu ', 'Zhai ', 'Liu ', 'Qian ', 'Fu ', 'Li ', 'Yue ', 'Pi ', 'Yang ', 'Ban ', 'Bo ', 'Jie ', 'Gou ', 'Shu ', 'Zheng ', 'Mu ', 'Ni ', 'Nie ', 'Di ', 'Jia ', 'Mu ', 'Dan ', 'Shen ', 'Yi ', 'Si ', 'Kuang ', 'Ka ', 'Bei ', 'Jian ', 'Tong ', 'Xing ', 'Hong ', 'Jiao ', 'Chi ', 'Er ', 'Ge ', 'Bing ', 'Shi ', 'Mou ', 'Jia ', 'Yin ', 'Jun ', 'Zhou ', 'Chong ', 'Shang ', 'Tong ', 'Mo ', 'Lei ', 'Ji ', 'Yu ', 'Xu ', 'Ren ', 'Zun ', 'Zhi ', 'Qiong ', 'Shan ', 'Chi ', 'Xian ', 'Xing ', 'Quan ', 'Pi ', 'Tie ', 'Zhu ', 'Hou ', 'Ming ', 'Kua ', 'Yao ', 'Xian ', 'Xian ', 'Xiu ', 'Jun ', 'Cha ', 'Lao ', 'Ji ', 'Pi ', 'Ru ', 'Mi ', 'Yi ', 'Yin ', 'Guang ', 'An ', 'Diou ', 'You ', 'Se ', 'Kao ', 'Qian ', 'Luan ', 'Kasugai ', 'Ai ', 'Diao ', 'Han ', 'Rui ', 'Shi ', 'Keng ', 'Qiu ', 'Xiao ', 'Zhe ', 'Xiu ', 'Zang ', 'Ti ', 'Cuo ', 'Gua ', 'Gong ', 'Zhong ', 'Dou ', 'Lu ', 'Mei ', 'Lang ', 'Wan ', 'Xin ', 'Yun ', 'Bei ', 'Wu ', 'Su ', 'Yu ', 'Chan ', 'Ting ', 'Bo ', 'Han ', 'Jia ', 'Hong ', 'Cuan ', 'Feng ', 'Chan ', 'Wan ', 'Zhi ', 'Si ', 'Xuan ', 'Wu ', 'Wu ', 'Tiao ', 'Gong ', 'Zhuo ', 'Lue ', 'Xing ', 'Qian ', 'Shen ', 'Han ', 'Lue ', 'Xie ', 'Chu ', 'Zheng ', 'Ju ', 'Xian ', 'Tie ', 'Mang ', 'Pu ', 'Li ', 'Pan ', 'Rui ', 'Cheng ', 'Gao ', 'Li ', 'Te ', 'Pyeng ', 'Zhu ', '[?] ', 'Tu ', 'Liu ', 'Zui ', 'Ju ', 'Chang ', 'Yuan ', 'Jian ', 'Gang ', 'Diao ', 'Tao ', 'Chang ']; <?php return ['Lun ', 'Kua ', 'Ling ', 'Bei ', 'Lu ', 'Li ', 'Qiang ', 'Pou ', 'Juan ', 'Min ', 'Zui ', 'Peng ', 'An ', 'Pi ', 'Xian ', 'Ya ', 'Zhui ', 'Lei ', 'A ', 'Kong ', 'Ta ', 'Kun ', 'Du ', 'Wei ', 'Chui ', 'Zi ', 'Zheng ', 'Ben ', 'Nie ', 'Cong ', 'Qun ', 'Tan ', 'Ding ', 'Qi ', 'Qian ', 'Zhuo ', 'Qi ', 'Yu ', 'Jin ', 'Guan ', 'Mao ', 'Chang ', 'Tian ', 'Xi ', 'Lian ', 'Tao ', 'Gu ', 'Cuo ', 'Shu ', 'Zhen ', 'Lu ', 'Meng ', 'Lu ', 'Hua ', 'Biao ', 'Ga ', 'Lai ', 'Ken ', 'Kazari ', 'Bu ', 'Nai ', 'Wan ', 'Zan ', '[?] ', 'De ', 'Xian ', '[?] ', 'Huo ', 'Liang ', '[?] ', 'Men ', 'Kai ', 'Ying ', 'Di ', 'Lian ', 'Guo ', 'Xian ', 'Du ', 'Tu ', 'Wei ', 'Cong ', 'Fu ', 'Rou ', 'Ji ', 'E ', 'Rou ', 'Chen ', 'Ti ', 'Zha ', 'Hong ', 'Yang ', 'Duan ', 'Xia ', 'Yu ', 'Keng ', 'Xing ', 'Huang ', 'Wei ', 'Fu ', 'Zhao ', 'Cha ', 'Qie ', 'She ', 'Hong ', 'Kui ', 'Tian ', 'Mou ', 'Qiao ', 'Qiao ', 'Hou ', 'Tou ', 'Cong ', 'Huan ', 'Ye ', 'Min ', 'Jian ', 'Duan ', 'Jian ', 'Song ', 'Kui ', 'Hu ', 'Xuan ', 'Duo ', 'Jie ', 'Zhen ', 'Bian ', 'Zhong ', 'Zi ', 'Xiu ', 'Ye ', 'Mei ', 'Pai ', 'Ai ', 'Jie ', '[?] ', 'Mei ', 'Chuo ', 'Ta ', 'Bang ', 'Xia ', 'Lian ', 'Suo ', 'Xi ', 'Liu ', 'Zu ', 'Ye ', 'Nou ', 'Weng ', 'Rong ', 'Tang ', 'Suo ', 'Qiang ', 'Ge ', 'Shuo ', 'Chui ', 'Bo ', 'Pan ', 'Sa ', 'Bi ', 'Sang ', 'Gang ', 'Zi ', 'Wu ', 'Ying ', 'Huang ', 'Tiao ', 'Liu ', 'Kai ', 'Sun ', 'Sha ', 'Sou ', 'Wan ', 'Hao ', 'Zhen ', 'Zhen ', 'Luo ', 'Yi ', 'Yuan ', 'Tang ', 'Nie ', 'Xi ', 'Jia ', 'Ge ', 'Ma ', 'Juan ', 'Kasugai ', 'Habaki ', 'Suo ', '[?] ', '[?] ', '[?] ', 'Na ', 'Lu ', 'Suo ', 'Ou ', 'Zu ', 'Tuan ', 'Xiu ', 'Guan ', 'Xuan ', 'Lian ', 'Shou ', 'Ao ', 'Man ', 'Mo ', 'Luo ', 'Bi ', 'Wei ', 'Liu ', 'Di ', 'Qiao ', 'Cong ', 'Yi ', 'Lu ', 'Ao ', 'Keng ', 'Qiang ', 'Cui ', 'Qi ', 'Chang ', 'Tang ', 'Man ', 'Yong ', 'Chan ', 'Feng ', 'Jing ', 'Biao ', 'Shu ', 'Lou ', 'Xiu ', 'Cong ', 'Long ', 'Zan ', 'Jian ', 'Cao ', 'Li ', 'Xia ', 'Xi ', 'Kang ', '[?] ', 'Beng ', '[?] ', '[?] ', 'Zheng ', 'Lu ', 'Hua ', 'Ji ', 'Pu ', 'Hui ', 'Qiang ', 'Po ', 'Lin ', 'Suo ', 'Xiu ', 'San ', 'Cheng ']; <?php return ['Kui ', 'Si ', 'Liu ', 'Nao ', 'Heng ', 'Pie ', 'Sui ', 'Fan ', 'Qiao ', 'Quan ', 'Yang ', 'Tang ', 'Xiang ', 'Jue ', 'Jiao ', 'Zun ', 'Liao ', 'Jie ', 'Lao ', 'Dui ', 'Tan ', 'Zan ', 'Ji ', 'Jian ', 'Zhong ', 'Deng ', 'Ya ', 'Ying ', 'Dui ', 'Jue ', 'Nou ', 'Ti ', 'Pu ', 'Tie ', '[?] ', '[?] ', 'Ding ', 'Shan ', 'Kai ', 'Jian ', 'Fei ', 'Sui ', 'Lu ', 'Juan ', 'Hui ', 'Yu ', 'Lian ', 'Zhuo ', 'Qiao ', 'Qian ', 'Zhuo ', 'Lei ', 'Bi ', 'Tie ', 'Huan ', 'Ye ', 'Duo ', 'Guo ', 'Dang ', 'Ju ', 'Fen ', 'Da ', 'Bei ', 'Yi ', 'Ai ', 'Zong ', 'Xun ', 'Diao ', 'Zhu ', 'Heng ', 'Zhui ', 'Ji ', 'Nie ', 'Ta ', 'Huo ', 'Qing ', 'Bin ', 'Ying ', 'Kui ', 'Ning ', 'Xu ', 'Jian ', 'Jian ', 'Yari ', 'Cha ', 'Zhi ', 'Mie ', 'Li ', 'Lei ', 'Ji ', 'Zuan ', 'Kuang ', 'Shang ', 'Peng ', 'La ', 'Du ', 'Shuo ', 'Chuo ', 'Lu ', 'Biao ', 'Bao ', 'Lu ', '[?] ', '[?] ', 'Long ', 'E ', 'Lu ', 'Xin ', 'Jian ', 'Lan ', 'Bo ', 'Jian ', 'Yao ', 'Chan ', 'Xiang ', 'Jian ', 'Xi ', 'Guan ', 'Cang ', 'Nie ', 'Lei ', 'Cuan ', 'Qu ', 'Pan ', 'Luo ', 'Zuan ', 'Luan ', 'Zao ', 'Nie ', 'Jue ', 'Tang ', 'Shu ', 'Lan ', 'Jin ', 'Qiu ', 'Yi ', 'Zhen ', 'Ding ', 'Zhao ', 'Po ', 'Diao ', 'Tu ', 'Qian ', 'Chuan ', 'Shan ', 'Ji ', 'Fan ', 'Diao ', 'Men ', 'Nu ', 'Xi ', 'Chai ', 'Xing ', 'Gai ', 'Bu ', 'Tai ', 'Ju ', 'Dun ', 'Chao ', 'Zhong ', 'Na ', 'Bei ', 'Gang ', 'Ban ', 'Qian ', 'Yao ', 'Qin ', 'Jun ', 'Wu ', 'Gou ', 'Kang ', 'Fang ', 'Huo ', 'Tou ', 'Niu ', 'Ba ', 'Yu ', 'Qian ', 'Zheng ', 'Qian ', 'Gu ', 'Bo ', 'E ', 'Po ', 'Bu ', 'Ba ', 'Yue ', 'Zuan ', 'Mu ', 'Dan ', 'Jia ', 'Dian ', 'You ', 'Tie ', 'Bo ', 'Ling ', 'Shuo ', 'Qian ', 'Liu ', 'Bao ', 'Shi ', 'Xuan ', 'She ', 'Bi ', 'Ni ', 'Pi ', 'Duo ', 'Xing ', 'Kao ', 'Lao ', 'Er ', 'Mang ', 'Ya ', 'You ', 'Cheng ', 'Jia ', 'Ye ', 'Nao ', 'Zhi ', 'Dang ', 'Tong ', 'Lu ', 'Diao ', 'Yin ', 'Kai ', 'Zha ', 'Zhu ', 'Xian ', 'Ting ', 'Diu ', 'Xian ', 'Hua ', 'Quan ', 'Sha ', 'Jia ', 'Yao ', 'Ge ', 'Ming ', 'Zheng ', 'Se ', 'Jiao ', 'Yi ', 'Chan ', 'Chong ', 'Tang ', 'An ', 'Yin ', 'Ru ', 'Zhu ', 'Lao ', 'Pu ', 'Wu ', 'Lai ', 'Te ', 'Lian ', 'Keng ']; <?php return ['Xiao ', 'Suo ', 'Li ', 'Zheng ', 'Chu ', 'Guo ', 'Gao ', 'Tie ', 'Xiu ', 'Cuo ', 'Lue ', 'Feng ', 'Xin ', 'Liu ', 'Kai ', 'Jian ', 'Rui ', 'Ti ', 'Lang ', 'Qian ', 'Ju ', 'A ', 'Qiang ', 'Duo ', 'Tian ', 'Cuo ', 'Mao ', 'Ben ', 'Qi ', 'De ', 'Kua ', 'Kun ', 'Chang ', 'Xi ', 'Gu ', 'Luo ', 'Chui ', 'Zhui ', 'Jin ', 'Zhi ', 'Xian ', 'Juan ', 'Huo ', 'Pou ', 'Tan ', 'Ding ', 'Jian ', 'Ju ', 'Meng ', 'Zi ', 'Qie ', 'Ying ', 'Kai ', 'Qiang ', 'Song ', 'E ', 'Cha ', 'Qiao ', 'Zhong ', 'Duan ', 'Sou ', 'Huang ', 'Huan ', 'Ai ', 'Du ', 'Mei ', 'Lou ', 'Zi ', 'Fei ', 'Mei ', 'Mo ', 'Zhen ', 'Bo ', 'Ge ', 'Nie ', 'Tang ', 'Juan ', 'Nie ', 'Na ', 'Liu ', 'Hao ', 'Bang ', 'Yi ', 'Jia ', 'Bin ', 'Rong ', 'Biao ', 'Tang ', 'Man ', 'Luo ', 'Beng ', 'Yong ', 'Jing ', 'Di ', 'Zu ', 'Xuan ', 'Liu ', 'Tan ', 'Jue ', 'Liao ', 'Pu ', 'Lu ', 'Dui ', 'Lan ', 'Pu ', 'Cuan ', 'Qiang ', 'Deng ', 'Huo ', 'Lei ', 'Huan ', 'Zhuo ', 'Lian ', 'Yi ', 'Cha ', 'Biao ', 'La ', 'Chan ', 'Xiang ', 'Chang ', 'Chang ', 'Jiu ', 'Ao ', 'Die ', 'Qu ', 'Liao ', 'Mi ', 'Chang ', 'Men ', 'Ma ', 'Shuan ', 'Shan ', 'Huo ', 'Men ', 'Yan ', 'Bi ', 'Han ', 'Bi ', 'San ', 'Kai ', 'Kang ', 'Beng ', 'Hong ', 'Run ', 'San ', 'Xian ', 'Xian ', 'Jian ', 'Min ', 'Xia ', 'Yuru ', 'Dou ', 'Zha ', 'Nao ', 'Jian ', 'Peng ', 'Xia ', 'Ling ', 'Bian ', 'Bi ', 'Run ', 'He ', 'Guan ', 'Ge ', 'Ge ', 'Fa ', 'Chu ', 'Hong ', 'Gui ', 'Min ', 'Se ', 'Kun ', 'Lang ', 'Lu ', 'Ting ', 'Sha ', 'Ju ', 'Yue ', 'Yue ', 'Chan ', 'Qu ', 'Lin ', 'Chang ', 'Shai ', 'Kun ', 'Yan ', 'Min ', 'Yan ', 'E ', 'Hun ', 'Yu ', 'Wen ', 'Xiang ', 'Bao ', 'Xiang ', 'Qu ', 'Yao ', 'Wen ', 'Ban ', 'An ', 'Wei ', 'Yin ', 'Kuo ', 'Que ', 'Lan ', 'Du ', '[?] ', 'Phwung ', 'Tian ', 'Nie ', 'Ta ', 'Kai ', 'He ', 'Que ', 'Chuang ', 'Guan ', 'Dou ', 'Qi ', 'Kui ', 'Tang ', 'Guan ', 'Piao ', 'Kan ', 'Xi ', 'Hui ', 'Chan ', 'Pi ', 'Dang ', 'Huan ', 'Ta ', 'Wen ', '[?] ', 'Men ', 'Shuan ', 'Shan ', 'Yan ', 'Han ', 'Bi ', 'Wen ', 'Chuang ', 'Run ', 'Wei ', 'Xian ', 'Hong ', 'Jian ', 'Min ', 'Kang ', 'Men ', 'Zha ', 'Nao ', 'Gui ', 'Wen ', 'Ta ', 'Min ', 'Lu ', 'Kai ']; <?php return ['Fa ', 'Ge ', 'He ', 'Kun ', 'Jiu ', 'Yue ', 'Lang ', 'Du ', 'Yu ', 'Yan ', 'Chang ', 'Xi ', 'Wen ', 'Hun ', 'Yan ', 'E ', 'Chan ', 'Lan ', 'Qu ', 'Hui ', 'Kuo ', 'Que ', 'Ge ', 'Tian ', 'Ta ', 'Que ', 'Kan ', 'Huan ', 'Fu ', 'Fu ', 'Le ', 'Dui ', 'Xin ', 'Qian ', 'Wu ', 'Yi ', 'Tuo ', 'Yin ', 'Yang ', 'Dou ', 'E ', 'Sheng ', 'Ban ', 'Pei ', 'Keng ', 'Yun ', 'Ruan ', 'Zhi ', 'Pi ', 'Jing ', 'Fang ', 'Yang ', 'Yin ', 'Zhen ', 'Jie ', 'Cheng ', 'E ', 'Qu ', 'Di ', 'Zu ', 'Zuo ', 'Dian ', 'Ling ', 'A ', 'Tuo ', 'Tuo ', 'Po ', 'Bing ', 'Fu ', 'Ji ', 'Lu ', 'Long ', 'Chen ', 'Xing ', 'Duo ', 'Lou ', 'Mo ', 'Jiang ', 'Shu ', 'Duo ', 'Xian ', 'Er ', 'Gui ', 'Yu ', 'Gai ', 'Shan ', 'Xun ', 'Qiao ', 'Xing ', 'Chun ', 'Fu ', 'Bi ', 'Xia ', 'Shan ', 'Sheng ', 'Zhi ', 'Pu ', 'Dou ', 'Yuan ', 'Zhen ', 'Chu ', 'Xian ', 'Tou ', 'Nie ', 'Yun ', 'Xian ', 'Pei ', 'Pei ', 'Zou ', 'Yi ', 'Dui ', 'Lun ', 'Yin ', 'Ju ', 'Chui ', 'Chen ', 'Pi ', 'Ling ', 'Tao ', 'Xian ', 'Lu ', 'Sheng ', 'Xian ', 'Yin ', 'Zhu ', 'Yang ', 'Reng ', 'Shan ', 'Chong ', 'Yan ', 'Yin ', 'Yu ', 'Ti ', 'Yu ', 'Long ', 'Wei ', 'Wei ', 'Nie ', 'Dui ', 'Sui ', 'An ', 'Huang ', 'Jie ', 'Sui ', 'Yin ', 'Gai ', 'Yan ', 'Hui ', 'Ge ', 'Yun ', 'Wu ', 'Wei ', 'Ai ', 'Xi ', 'Tang ', 'Ji ', 'Zhang ', 'Dao ', 'Ao ', 'Xi ', 'Yin ', '[?] ', 'Rao ', 'Lin ', 'Tui ', 'Deng ', 'Pi ', 'Sui ', 'Sui ', 'Yu ', 'Xian ', 'Fen ', 'Ni ', 'Er ', 'Ji ', 'Dao ', 'Xi ', 'Yin ', 'E ', 'Hui ', 'Long ', 'Xi ', 'Li ', 'Li ', 'Li ', 'Zhui ', 'He ', 'Zhi ', 'Zhun ', 'Jun ', 'Nan ', 'Yi ', 'Que ', 'Yan ', 'Qian ', 'Ya ', 'Xiong ', 'Ya ', 'Ji ', 'Gu ', 'Huan ', 'Zhi ', 'Gou ', 'Jun ', 'Ci ', 'Yong ', 'Ju ', 'Chu ', 'Hu ', 'Za ', 'Luo ', 'Yu ', 'Chou ', 'Diao ', 'Sui ', 'Han ', 'Huo ', 'Shuang ', 'Guan ', 'Chu ', 'Za ', 'Yong ', 'Ji ', 'Xi ', 'Chou ', 'Liu ', 'Li ', 'Nan ', 'Xue ', 'Za ', 'Ji ', 'Ji ', 'Yu ', 'Yu ', 'Xue ', 'Na ', 'Fou ', 'Se ', 'Mu ', 'Wen ', 'Fen ', 'Pang ', 'Yun ', 'Li ', 'Li ', 'Ang ', 'Ling ', 'Lei ', 'An ', 'Bao ', 'Meng ', 'Dian ', 'Dang ', 'Xing ', 'Wu ', 'Zhao ']; <?php return ['Xu ', 'Ji ', 'Mu ', 'Chen ', 'Xiao ', 'Zha ', 'Ting ', 'Zhen ', 'Pei ', 'Mei ', 'Ling ', 'Qi ', 'Chou ', 'Huo ', 'Sha ', 'Fei ', 'Weng ', 'Zhan ', 'Yin ', 'Ni ', 'Chou ', 'Tun ', 'Lin ', '[?] ', 'Dong ', 'Ying ', 'Wu ', 'Ling ', 'Shuang ', 'Ling ', 'Xia ', 'Hong ', 'Yin ', 'Mo ', 'Mai ', 'Yun ', 'Liu ', 'Meng ', 'Bin ', 'Wu ', 'Wei ', 'Huo ', 'Yin ', 'Xi ', 'Yi ', 'Ai ', 'Dan ', 'Deng ', 'Xian ', 'Yu ', 'Lu ', 'Long ', 'Dai ', 'Ji ', 'Pang ', 'Yang ', 'Ba ', 'Pi ', 'Wei ', '[?] ', 'Xi ', 'Ji ', 'Mai ', 'Meng ', 'Meng ', 'Lei ', 'Li ', 'Huo ', 'Ai ', 'Fei ', 'Dai ', 'Long ', 'Ling ', 'Ai ', 'Feng ', 'Li ', 'Bao ', '[?] ', 'He ', 'He ', 'Bing ', 'Qing ', 'Qing ', 'Jing ', 'Tian ', 'Zhen ', 'Jing ', 'Cheng ', 'Qing ', 'Jing ', 'Jing ', 'Dian ', 'Jing ', 'Tian ', 'Fei ', 'Fei ', 'Kao ', 'Mi ', 'Mian ', 'Mian ', 'Pao ', 'Ye ', 'Tian ', 'Hui ', 'Ye ', 'Ge ', 'Ding ', 'Cha ', 'Jian ', 'Ren ', 'Di ', 'Du ', 'Wu ', 'Ren ', 'Qin ', 'Jin ', 'Xue ', 'Niu ', 'Ba ', 'Yin ', 'Sa ', 'Na ', 'Mo ', 'Zu ', 'Da ', 'Ban ', 'Yi ', 'Yao ', 'Tao ', 'Tuo ', 'Jia ', 'Hong ', 'Pao ', 'Yang ', 'Tomo ', 'Yin ', 'Jia ', 'Tao ', 'Ji ', 'Xie ', 'An ', 'An ', 'Hen ', 'Gong ', 'Kohaze ', 'Da ', 'Qiao ', 'Ting ', 'Wan ', 'Ying ', 'Sui ', 'Tiao ', 'Qiao ', 'Xuan ', 'Kong ', 'Beng ', 'Ta ', 'Zhang ', 'Bing ', 'Kuo ', 'Ju ', 'La ', 'Xie ', 'Rou ', 'Bang ', 'Yi ', 'Qiu ', 'Qiu ', 'He ', 'Xiao ', 'Mu ', 'Ju ', 'Jian ', 'Bian ', 'Di ', 'Jian ', 'On ', 'Tao ', 'Gou ', 'Ta ', 'Bei ', 'Xie ', 'Pan ', 'Ge ', 'Bi ', 'Kuo ', 'Tang ', 'Lou ', 'Gui ', 'Qiao ', 'Xue ', 'Ji ', 'Jian ', 'Jiang ', 'Chan ', 'Da ', 'Huo ', 'Xian ', 'Qian ', 'Du ', 'Wa ', 'Jian ', 'Lan ', 'Wei ', 'Ren ', 'Fu ', 'Mei ', 'Juan ', 'Ge ', 'Wei ', 'Qiao ', 'Han ', 'Chang ', '[?] ', 'Rou ', 'Xun ', 'She ', 'Wei ', 'Ge ', 'Bei ', 'Tao ', 'Gou ', 'Yun ', '[?] ', 'Bi ', 'Wei ', 'Hui ', 'Du ', 'Wa ', 'Du ', 'Wei ', 'Ren ', 'Fu ', 'Han ', 'Wei ', 'Yun ', 'Tao ', 'Jiu ', 'Jiu ', 'Xian ', 'Xie ', 'Xian ', 'Ji ', 'Yin ', 'Za ', 'Yun ', 'Shao ', 'Le ', 'Peng ', 'Heng ', 'Ying ', 'Yun ', 'Peng ', 'Yin ', 'Yin ', 'Xiang ']; <?php return ['Hu ', 'Ye ', 'Ding ', 'Qing ', 'Pan ', 'Xiang ', 'Shun ', 'Han ', 'Xu ', 'Yi ', 'Xu ', 'Gu ', 'Song ', 'Kui ', 'Qi ', 'Hang ', 'Yu ', 'Wan ', 'Ban ', 'Dun ', 'Di ', 'Dan ', 'Pan ', 'Po ', 'Ling ', 'Ce ', 'Jing ', 'Lei ', 'He ', 'Qiao ', 'E ', 'E ', 'Wei ', 'Jie ', 'Gua ', 'Shen ', 'Yi ', 'Shen ', 'Hai ', 'Dui ', 'Pian ', 'Ping ', 'Lei ', 'Fu ', 'Jia ', 'Tou ', 'Hui ', 'Kui ', 'Jia ', 'Le ', 'Tian ', 'Cheng ', 'Ying ', 'Jun ', 'Hu ', 'Han ', 'Jing ', 'Tui ', 'Tui ', 'Pin ', 'Lai ', 'Tui ', 'Zi ', 'Zi ', 'Chui ', 'Ding ', 'Lai ', 'Yan ', 'Han ', 'Jian ', 'Ke ', 'Cui ', 'Jiong ', 'Qin ', 'Yi ', 'Sai ', 'Ti ', 'E ', 'E ', 'Yan ', 'Hun ', 'Kan ', 'Yong ', 'Zhuan ', 'Yan ', 'Xian ', 'Xin ', 'Yi ', 'Yuan ', 'Sang ', 'Dian ', 'Dian ', 'Jiang ', 'Ku ', 'Lei ', 'Liao ', 'Piao ', 'Yi ', 'Man ', 'Qi ', 'Rao ', 'Hao ', 'Qiao ', 'Gu ', 'Xun ', 'Qian ', 'Hui ', 'Zhan ', 'Ru ', 'Hong ', 'Bin ', 'Xian ', 'Pin ', 'Lu ', 'Lan ', 'Nie ', 'Quan ', 'Ye ', 'Ding ', 'Qing ', 'Han ', 'Xiang ', 'Shun ', 'Xu ', 'Xu ', 'Wan ', 'Gu ', 'Dun ', 'Qi ', 'Ban ', 'Song ', 'Hang ', 'Yu ', 'Lu ', 'Ling ', 'Po ', 'Jing ', 'Jie ', 'Jia ', 'Tian ', 'Han ', 'Ying ', 'Jiong ', 'Hai ', 'Yi ', 'Pin ', 'Hui ', 'Tui ', 'Han ', 'Ying ', 'Ying ', 'Ke ', 'Ti ', 'Yong ', 'E ', 'Zhuan ', 'Yan ', 'E ', 'Nie ', 'Man ', 'Dian ', 'Sang ', 'Hao ', 'Lei ', 'Zhan ', 'Ru ', 'Pin ', 'Quan ', 'Feng ', 'Biao ', 'Oroshi ', 'Fu ', 'Xia ', 'Zhan ', 'Biao ', 'Sa ', 'Ba ', 'Tai ', 'Lie ', 'Gua ', 'Xuan ', 'Shao ', 'Ju ', 'Bi ', 'Si ', 'Wei ', 'Yang ', 'Yao ', 'Sou ', 'Kai ', 'Sao ', 'Fan ', 'Liu ', 'Xi ', 'Liao ', 'Piao ', 'Piao ', 'Liu ', 'Biao ', 'Biao ', 'Biao ', 'Liao ', '[?] ', 'Se ', 'Feng ', 'Biao ', 'Feng ', 'Yang ', 'Zhan ', 'Biao ', 'Sa ', 'Ju ', 'Si ', 'Sou ', 'Yao ', 'Liu ', 'Piao ', 'Biao ', 'Biao ', 'Fei ', 'Fan ', 'Fei ', 'Fei ', 'Shi ', 'Shi ', 'Can ', 'Ji ', 'Ding ', 'Si ', 'Tuo ', 'Zhan ', 'Sun ', 'Xiang ', 'Tun ', 'Ren ', 'Yu ', 'Juan ', 'Chi ', 'Yin ', 'Fan ', 'Fan ', 'Sun ', 'Yin ', 'Zhu ', 'Yi ', 'Zhai ', 'Bi ', 'Jie ', 'Tao ', 'Liu ', 'Ci ', 'Tie ', 'Si ', 'Bao ', 'Shi ', 'Duo ']; <?php return ['Hai ', 'Ren ', 'Tian ', 'Jiao ', 'Jia ', 'Bing ', 'Yao ', 'Tong ', 'Ci ', 'Xiang ', 'Yang ', 'Yang ', 'Er ', 'Yan ', 'Le ', 'Yi ', 'Can ', 'Bo ', 'Nei ', 'E ', 'Bu ', 'Jun ', 'Dou ', 'Su ', 'Yu ', 'Shi ', 'Yao ', 'Hun ', 'Guo ', 'Shi ', 'Jian ', 'Zhui ', 'Bing ', 'Xian ', 'Bu ', 'Ye ', 'Tan ', 'Fei ', 'Zhang ', 'Wei ', 'Guan ', 'E ', 'Nuan ', 'Hun ', 'Hu ', 'Huang ', 'Tie ', 'Hui ', 'Jian ', 'Hou ', 'He ', 'Xing ', 'Fen ', 'Wei ', 'Gu ', 'Cha ', 'Song ', 'Tang ', 'Bo ', 'Gao ', 'Xi ', 'Kui ', 'Liu ', 'Sou ', 'Tao ', 'Ye ', 'Yun ', 'Mo ', 'Tang ', 'Man ', 'Bi ', 'Yu ', 'Xiu ', 'Jin ', 'San ', 'Kui ', 'Zhuan ', 'Shan ', 'Chi ', 'Dan ', 'Yi ', 'Ji ', 'Rao ', 'Cheng ', 'Yong ', 'Tao ', 'Hui ', 'Xiang ', 'Zhan ', 'Fen ', 'Hai ', 'Meng ', 'Yan ', 'Mo ', 'Chan ', 'Xiang ', 'Luo ', 'Zuan ', 'Nang ', 'Shi ', 'Ding ', 'Ji ', 'Tuo ', 'Xing ', 'Tun ', 'Xi ', 'Ren ', 'Yu ', 'Chi ', 'Fan ', 'Yin ', 'Jian ', 'Shi ', 'Bao ', 'Si ', 'Duo ', 'Yi ', 'Er ', 'Rao ', 'Xiang ', 'Jia ', 'Le ', 'Jiao ', 'Yi ', 'Bing ', 'Bo ', 'Dou ', 'E ', 'Yu ', 'Nei ', 'Jun ', 'Guo ', 'Hun ', 'Xian ', 'Guan ', 'Cha ', 'Kui ', 'Gu ', 'Sou ', 'Chan ', 'Ye ', 'Mo ', 'Bo ', 'Liu ', 'Xiu ', 'Jin ', 'Man ', 'San ', 'Zhuan ', 'Nang ', 'Shou ', 'Kui ', 'Guo ', 'Xiang ', 'Fen ', 'Ba ', 'Ni ', 'Bi ', 'Bo ', 'Tu ', 'Han ', 'Fei ', 'Jian ', 'An ', 'Ai ', 'Fu ', 'Xian ', 'Wen ', 'Xin ', 'Fen ', 'Bin ', 'Xing ', 'Ma ', 'Yu ', 'Feng ', 'Han ', 'Di ', 'Tuo ', 'Tuo ', 'Chi ', 'Xun ', 'Zhu ', 'Zhi ', 'Pei ', 'Xin ', 'Ri ', 'Sa ', 'Yin ', 'Wen ', 'Zhi ', 'Dan ', 'Lu ', 'You ', 'Bo ', 'Bao ', 'Kuai ', 'Tuo ', 'Yi ', 'Qu ', '[?] ', 'Qu ', 'Jiong ', 'Bo ', 'Zhao ', 'Yuan ', 'Peng ', 'Zhou ', 'Ju ', 'Zhu ', 'Nu ', 'Ju ', 'Pi ', 'Zang ', 'Jia ', 'Ling ', 'Zhen ', 'Tai ', 'Fu ', 'Yang ', 'Shi ', 'Bi ', 'Tuo ', 'Tuo ', 'Si ', 'Liu ', 'Ma ', 'Pian ', 'Tao ', 'Zhi ', 'Rong ', 'Teng ', 'Dong ', 'Xun ', 'Quan ', 'Shen ', 'Jiong ', 'Er ', 'Hai ', 'Bo ', 'Zhu ', 'Yin ', 'Luo ', 'Shuu ', 'Dan ', 'Xie ', 'Liu ', 'Ju ', 'Song ', 'Qin ', 'Mang ', 'Liang ', 'Han ', 'Tu ', 'Xuan ', 'Tui ', 'Jun ']; <?php return ['E ', 'Cheng ', 'Xin ', 'Ai ', 'Lu ', 'Zhui ', 'Zhou ', 'She ', 'Pian ', 'Kun ', 'Tao ', 'Lai ', 'Zong ', 'Ke ', 'Qi ', 'Qi ', 'Yan ', 'Fei ', 'Sao ', 'Yan ', 'Jie ', 'Yao ', 'Wu ', 'Pian ', 'Cong ', 'Pian ', 'Qian ', 'Fei ', 'Huang ', 'Jian ', 'Huo ', 'Yu ', 'Ti ', 'Quan ', 'Xia ', 'Zong ', 'Kui ', 'Rou ', 'Si ', 'Gua ', 'Tuo ', 'Kui ', 'Sou ', 'Qian ', 'Cheng ', 'Zhi ', 'Liu ', 'Pang ', 'Teng ', 'Xi ', 'Cao ', 'Du ', 'Yan ', 'Yuan ', 'Zou ', 'Sao ', 'Shan ', 'Li ', 'Zhi ', 'Shuang ', 'Lu ', 'Xi ', 'Luo ', 'Zhang ', 'Mo ', 'Ao ', 'Can ', 'Piao ', 'Cong ', 'Qu ', 'Bi ', 'Zhi ', 'Yu ', 'Xu ', 'Hua ', 'Bo ', 'Su ', 'Xiao ', 'Lin ', 'Chan ', 'Dun ', 'Liu ', 'Tuo ', 'Zeng ', 'Tan ', 'Jiao ', 'Tie ', 'Yan ', 'Luo ', 'Zhan ', 'Jing ', 'Yi ', 'Ye ', 'Tuo ', 'Bin ', 'Zou ', 'Yan ', 'Peng ', 'Lu ', 'Teng ', 'Xiang ', 'Ji ', 'Shuang ', 'Ju ', 'Xi ', 'Huan ', 'Li ', 'Biao ', 'Ma ', 'Yu ', 'Tuo ', 'Xun ', 'Chi ', 'Qu ', 'Ri ', 'Bo ', 'Lu ', 'Zang ', 'Shi ', 'Si ', 'Fu ', 'Ju ', 'Zou ', 'Zhu ', 'Tuo ', 'Nu ', 'Jia ', 'Yi ', 'Tai ', 'Xiao ', 'Ma ', 'Yin ', 'Jiao ', 'Hua ', 'Luo ', 'Hai ', 'Pian ', 'Biao ', 'Li ', 'Cheng ', 'Yan ', 'Xin ', 'Qin ', 'Jun ', 'Qi ', 'Qi ', 'Ke ', 'Zhui ', 'Zong ', 'Su ', 'Can ', 'Pian ', 'Zhi ', 'Kui ', 'Sao ', 'Wu ', 'Ao ', 'Liu ', 'Qian ', 'Shan ', 'Piao ', 'Luo ', 'Cong ', 'Chan ', 'Zou ', 'Ji ', 'Shuang ', 'Xiang ', 'Gu ', 'Wei ', 'Wei ', 'Wei ', 'Yu ', 'Gan ', 'Yi ', 'Ang ', 'Tou ', 'Xie ', 'Bao ', 'Bi ', 'Chi ', 'Ti ', 'Di ', 'Ku ', 'Hai ', 'Qiao ', 'Gou ', 'Kua ', 'Ge ', 'Tui ', 'Geng ', 'Pian ', 'Bi ', 'Ke ', 'Ka ', 'Yu ', 'Sui ', 'Lou ', 'Bo ', 'Xiao ', 'Pang ', 'Bo ', 'Ci ', 'Kuan ', 'Bin ', 'Mo ', 'Liao ', 'Lou ', 'Nao ', 'Du ', 'Zang ', 'Sui ', 'Ti ', 'Bin ', 'Kuan ', 'Lu ', 'Gao ', 'Gao ', 'Qiao ', 'Kao ', 'Qiao ', 'Lao ', 'Zao ', 'Biao ', 'Kun ', 'Kun ', 'Ti ', 'Fang ', 'Xiu ', 'Ran ', 'Mao ', 'Dan ', 'Kun ', 'Bin ', 'Fa ', 'Tiao ', 'Peng ', 'Zi ', 'Fa ', 'Ran ', 'Ti ', 'Pao ', 'Pi ', 'Mao ', 'Fu ', 'Er ', 'Rong ', 'Qu ', 'Gong ', 'Xiu ', 'Gua ', 'Ji ', 'Peng ', 'Zhua ', 'Shao ', 'Sha ']; <?php return ['Ti ', 'Li ', 'Bin ', 'Zong ', 'Ti ', 'Peng ', 'Song ', 'Zheng ', 'Quan ', 'Zong ', 'Shun ', 'Jian ', 'Duo ', 'Hu ', 'La ', 'Jiu ', 'Qi ', 'Lian ', 'Zhen ', 'Bin ', 'Peng ', 'Mo ', 'San ', 'Man ', 'Man ', 'Seng ', 'Xu ', 'Lie ', 'Qian ', 'Qian ', 'Nong ', 'Huan ', 'Kuai ', 'Ning ', 'Bin ', 'Lie ', 'Rang ', 'Dou ', 'Dou ', 'Nao ', 'Hong ', 'Xi ', 'Dou ', 'Han ', 'Dou ', 'Dou ', 'Jiu ', 'Chang ', 'Yu ', 'Yu ', 'Li ', 'Juan ', 'Fu ', 'Qian ', 'Gui ', 'Zong ', 'Liu ', 'Gui ', 'Shang ', 'Yu ', 'Gui ', 'Mei ', 'Ji ', 'Qi ', 'Jie ', 'Kui ', 'Hun ', 'Ba ', 'Po ', 'Mei ', 'Xu ', 'Yan ', 'Xiao ', 'Liang ', 'Yu ', 'Tui ', 'Qi ', 'Wang ', 'Liang ', 'Wei ', 'Jian ', 'Chi ', 'Piao ', 'Bi ', 'Mo ', 'Ji ', 'Xu ', 'Chou ', 'Yan ', 'Zhan ', 'Yu ', 'Dao ', 'Ren ', 'Ji ', 'Eri ', 'Gong ', 'Tuo ', 'Diao ', 'Ji ', 'Xu ', 'E ', 'E ', 'Sha ', 'Hang ', 'Tun ', 'Mo ', 'Jie ', 'Shen ', 'Fan ', 'Yuan ', 'Bi ', 'Lu ', 'Wen ', 'Hu ', 'Lu ', 'Za ', 'Fang ', 'Fen ', 'Na ', 'You ', 'Namazu ', 'Todo ', 'He ', 'Xia ', 'Qu ', 'Han ', 'Pi ', 'Ling ', 'Tuo ', 'Bo ', 'Qiu ', 'Ping ', 'Fu ', 'Bi ', 'Ji ', 'Wei ', 'Ju ', 'Diao ', 'Bo ', 'You ', 'Gun ', 'Pi ', 'Nian ', 'Xing ', 'Tai ', 'Bao ', 'Fu ', 'Zha ', 'Ju ', 'Gu ', 'Kajika ', 'Tong ', '[?] ', 'Ta ', 'Jie ', 'Shu ', 'Hou ', 'Xiang ', 'Er ', 'An ', 'Wei ', 'Tiao ', 'Zhu ', 'Yin ', 'Lie ', 'Luo ', 'Tong ', 'Yi ', 'Qi ', 'Bing ', 'Wei ', 'Jiao ', 'Bu ', 'Gui ', 'Xian ', 'Ge ', 'Hui ', 'Bora ', 'Mate ', 'Kao ', 'Gori ', 'Duo ', 'Jun ', 'Ti ', 'Man ', 'Xiao ', 'Za ', 'Sha ', 'Qin ', 'Yu ', 'Nei ', 'Zhe ', 'Gun ', 'Geng ', 'Su ', 'Wu ', 'Qiu ', 'Ting ', 'Fu ', 'Wan ', 'You ', 'Li ', 'Sha ', 'Sha ', 'Gao ', 'Meng ', 'Ugui ', 'Asari ', 'Subashiri ', 'Kazunoko ', 'Yong ', 'Ni ', 'Zi ', 'Qi ', 'Qing ', 'Xiang ', 'Nei ', 'Chun ', 'Ji ', 'Diao ', 'Qie ', 'Gu ', 'Zhou ', 'Dong ', 'Lai ', 'Fei ', 'Ni ', 'Yi ', 'Kun ', 'Lu ', 'Jiu ', 'Chang ', 'Jing ', 'Lun ', 'Ling ', 'Zou ', 'Li ', 'Meng ', 'Zong ', 'Zhi ', 'Nian ', 'Shachi ', 'Dojou ', 'Sukesou ', 'Shi ', 'Shen ', 'Hun ', 'Shi ', 'Hou ', 'Xing ', 'Zhu ', 'La ', 'Zong ', 'Ji ', 'Bian ', 'Bian ']; <?php return ['Huan ', 'Quan ', 'Ze ', 'Wei ', 'Wei ', 'Yu ', 'Qun ', 'Rou ', 'Die ', 'Huang ', 'Lian ', 'Yan ', 'Qiu ', 'Qiu ', 'Jian ', 'Bi ', 'E ', 'Yang ', 'Fu ', 'Sai ', 'Jian ', 'Xia ', 'Tuo ', 'Hu ', 'Muroaji ', 'Ruo ', 'Haraka ', 'Wen ', 'Jian ', 'Hao ', 'Wu ', 'Fang ', 'Sao ', 'Liu ', 'Ma ', 'Shi ', 'Shi ', 'Yin ', 'Z ', 'Teng ', 'Ta ', 'Yao ', 'Ge ', 'Rong ', 'Qian ', 'Qi ', 'Wen ', 'Ruo ', 'Hatahata ', 'Lian ', 'Ao ', 'Le ', 'Hui ', 'Min ', 'Ji ', 'Tiao ', 'Qu ', 'Jian ', 'Sao ', 'Man ', 'Xi ', 'Qiu ', 'Biao ', 'Ji ', 'Ji ', 'Zhu ', 'Jiang ', 'Qiu ', 'Zhuan ', 'Yong ', 'Zhang ', 'Kang ', 'Xue ', 'Bie ', 'Jue ', 'Qu ', 'Xiang ', 'Bo ', 'Jiao ', 'Xun ', 'Su ', 'Huang ', 'Zun ', 'Shan ', 'Shan ', 'Fan ', 'Jue ', 'Lin ', 'Xun ', 'Miao ', 'Xi ', 'Eso ', 'Kyou ', 'Fen ', 'Guan ', 'Hou ', 'Kuai ', 'Zei ', 'Sao ', 'Zhan ', 'Gan ', 'Gui ', 'Sheng ', 'Li ', 'Chang ', 'Hatahata ', 'Shiira ', 'Mutsu ', 'Ru ', 'Ji ', 'Xu ', 'Huo ', 'Shiira ', 'Li ', 'Lie ', 'Li ', 'Mie ', 'Zhen ', 'Xiang ', 'E ', 'Lu ', 'Guan ', 'Li ', 'Xian ', 'Yu ', 'Dao ', 'Ji ', 'You ', 'Tun ', 'Lu ', 'Fang ', 'Ba ', 'He ', 'Bo ', 'Ping ', 'Nian ', 'Lu ', 'You ', 'Zha ', 'Fu ', 'Bo ', 'Bao ', 'Hou ', 'Pi ', 'Tai ', 'Gui ', 'Jie ', 'Kao ', 'Wei ', 'Er ', 'Tong ', 'Ze ', 'Hou ', 'Kuai ', 'Ji ', 'Jiao ', 'Xian ', 'Za ', 'Xiang ', 'Xun ', 'Geng ', 'Li ', 'Lian ', 'Jian ', 'Li ', 'Shi ', 'Tiao ', 'Gun ', 'Sha ', 'Wan ', 'Jun ', 'Ji ', 'Yong ', 'Qing ', 'Ling ', 'Qi ', 'Zou ', 'Fei ', 'Kun ', 'Chang ', 'Gu ', 'Ni ', 'Nian ', 'Diao ', 'Jing ', 'Shen ', 'Shi ', 'Zi ', 'Fen ', 'Die ', 'Bi ', 'Chang ', 'Shi ', 'Wen ', 'Wei ', 'Sai ', 'E ', 'Qiu ', 'Fu ', 'Huang ', 'Quan ', 'Jiang ', 'Bian ', 'Sao ', 'Ao ', 'Qi ', 'Ta ', 'Yin ', 'Yao ', 'Fang ', 'Jian ', 'Le ', 'Biao ', 'Xue ', 'Bie ', 'Man ', 'Min ', 'Yong ', 'Wei ', 'Xi ', 'Jue ', 'Shan ', 'Lin ', 'Zun ', 'Huo ', 'Gan ', 'Li ', 'Zhan ', 'Guan ', 'Niao ', 'Yi ', 'Fu ', 'Li ', 'Jiu ', 'Bu ', 'Yan ', 'Fu ', 'Diao ', 'Ji ', 'Feng ', 'Nio ', 'Gan ', 'Shi ', 'Feng ', 'Ming ', 'Bao ', 'Yuan ', 'Zhi ', 'Hu ', 'Qin ', 'Fu ', 'Fen ', 'Wen ', 'Jian ', 'Shi ', 'Yu ']; <?php return ['Fou ', 'Yiao ', 'Jue ', 'Jue ', 'Pi ', 'Huan ', 'Zhen ', 'Bao ', 'Yan ', 'Ya ', 'Zheng ', 'Fang ', 'Feng ', 'Wen ', 'Ou ', 'Te ', 'Jia ', 'Nu ', 'Ling ', 'Mie ', 'Fu ', 'Tuo ', 'Wen ', 'Li ', 'Bian ', 'Zhi ', 'Ge ', 'Yuan ', 'Zi ', 'Qu ', 'Xiao ', 'Zhi ', 'Dan ', 'Ju ', 'You ', 'Gu ', 'Zhong ', 'Yu ', 'Yang ', 'Rong ', 'Ya ', 'Tie ', 'Yu ', 'Shigi ', 'Ying ', 'Zhui ', 'Wu ', 'Er ', 'Gua ', 'Ai ', 'Zhi ', 'Yan ', 'Heng ', 'Jiao ', 'Ji ', 'Lie ', 'Zhu ', 'Ren ', 'Yi ', 'Hong ', 'Luo ', 'Ru ', 'Mou ', 'Ge ', 'Ren ', 'Jiao ', 'Xiu ', 'Zhou ', 'Zhi ', 'Luo ', 'Chidori ', 'Toki ', 'Ten ', 'Luan ', 'Jia ', 'Ji ', 'Yu ', 'Huan ', 'Tuo ', 'Bu ', 'Wu ', 'Juan ', 'Yu ', 'Bo ', 'Xun ', 'Xun ', 'Bi ', 'Xi ', 'Jun ', 'Ju ', 'Tu ', 'Jing ', 'Ti ', 'E ', 'E ', 'Kuang ', 'Hu ', 'Wu ', 'Shen ', 'Lai ', 'Ikaruga ', 'Kakesu ', 'Lu ', 'Ping ', 'Shu ', 'Fu ', 'An ', 'Zhao ', 'Peng ', 'Qin ', 'Qian ', 'Bei ', 'Diao ', 'Lu ', 'Que ', 'Jian ', 'Ju ', 'Tu ', 'Ya ', 'Yuan ', 'Qi ', 'Li ', 'Ye ', 'Zhui ', 'Kong ', 'Zhui ', 'Kun ', 'Sheng ', 'Qi ', 'Jing ', 'Yi ', 'Yi ', 'Jing ', 'Zi ', 'Lai ', 'Dong ', 'Qi ', 'Chun ', 'Geng ', 'Ju ', 'Qu ', 'Isuka ', 'Kikuitadaki ', 'Ji ', 'Shu ', '[?] ', 'Chi ', 'Miao ', 'Rou ', 'An ', 'Qiu ', 'Ti ', 'Hu ', 'Ti ', 'E ', 'Jie ', 'Mao ', 'Fu ', 'Chun ', 'Tu ', 'Yan ', 'He ', 'Yuan ', 'Pian ', 'Yun ', 'Mei ', 'Hu ', 'Ying ', 'Dun ', 'Mu ', 'Ju ', 'Tsugumi ', 'Cang ', 'Fang ', 'Gu ', 'Ying ', 'Yuan ', 'Xuan ', 'Weng ', 'Shi ', 'He ', 'Chu ', 'Tang ', 'Xia ', 'Ruo ', 'Liu ', 'Ji ', 'Gu ', 'Jian ', 'Zhun ', 'Han ', 'Zi ', 'Zi ', 'Ni ', 'Yao ', 'Yan ', 'Ji ', 'Li ', 'Tian ', 'Kou ', 'Ti ', 'Ti ', 'Ni ', 'Tu ', 'Ma ', 'Jiao ', 'Gao ', 'Tian ', 'Chen ', 'Li ', 'Zhuan ', 'Zhe ', 'Ao ', 'Yao ', 'Yi ', 'Ou ', 'Chi ', 'Zhi ', 'Liao ', 'Rong ', 'Lou ', 'Bi ', 'Shuang ', 'Zhuo ', 'Yu ', 'Wu ', 'Jue ', 'Yin ', 'Quan ', 'Si ', 'Jiao ', 'Yi ', 'Hua ', 'Bi ', 'Ying ', 'Su ', 'Huang ', 'Fan ', 'Jiao ', 'Liao ', 'Yan ', 'Kao ', 'Jiu ', 'Xian ', 'Xian ', 'Tu ', 'Mai ', 'Zun ', 'Yu ', 'Ying ', 'Lu ', 'Tuan ', 'Xian ', 'Xue ', 'Yi ', 'Pi ']; <?php return ['Shu ', 'Luo ', 'Qi ', 'Yi ', 'Ji ', 'Zhe ', 'Yu ', 'Zhan ', 'Ye ', 'Yang ', 'Pi ', 'Ning ', 'Huo ', 'Mi ', 'Ying ', 'Meng ', 'Di ', 'Yue ', 'Yu ', 'Lei ', 'Bao ', 'Lu ', 'He ', 'Long ', 'Shuang ', 'Yue ', 'Ying ', 'Guan ', 'Qu ', 'Li ', 'Luan ', 'Niao ', 'Jiu ', 'Ji ', 'Yuan ', 'Ming ', 'Shi ', 'Ou ', 'Ya ', 'Cang ', 'Bao ', 'Zhen ', 'Gu ', 'Dong ', 'Lu ', 'Ya ', 'Xiao ', 'Yang ', 'Ling ', 'Zhi ', 'Qu ', 'Yuan ', 'Xue ', 'Tuo ', 'Si ', 'Zhi ', 'Er ', 'Gua ', 'Xiu ', 'Heng ', 'Zhou ', 'Ge ', 'Luan ', 'Hong ', 'Wu ', 'Bo ', 'Li ', 'Juan ', 'Hu ', 'E ', 'Yu ', 'Xian ', 'Ti ', 'Wu ', 'Que ', 'Miao ', 'An ', 'Kun ', 'Bei ', 'Peng ', 'Qian ', 'Chun ', 'Geng ', 'Yuan ', 'Su ', 'Hu ', 'He ', 'E ', 'Gu ', 'Qiu ', 'Zi ', 'Mei ', 'Mu ', 'Ni ', 'Yao ', 'Weng ', 'Liu ', 'Ji ', 'Ni ', 'Jian ', 'He ', 'Yi ', 'Ying ', 'Zhe ', 'Liao ', 'Liao ', 'Jiao ', 'Jiu ', 'Yu ', 'Lu ', 'Xuan ', 'Zhan ', 'Ying ', 'Huo ', 'Meng ', 'Guan ', 'Shuang ', 'Lu ', 'Jin ', 'Ling ', 'Jian ', 'Xian ', 'Cuo ', 'Jian ', 'Jian ', 'Yan ', 'Cuo ', 'Lu ', 'You ', 'Cu ', 'Ji ', 'Biao ', 'Cu ', 'Biao ', 'Zhu ', 'Jun ', 'Zhu ', 'Jian ', 'Mi ', 'Mi ', 'Wu ', 'Liu ', 'Chen ', 'Jun ', 'Lin ', 'Ni ', 'Qi ', 'Lu ', 'Jiu ', 'Jun ', 'Jing ', 'Li ', 'Xiang ', 'Yan ', 'Jia ', 'Mi ', 'Li ', 'She ', 'Zhang ', 'Lin ', 'Jing ', 'Ji ', 'Ling ', 'Yan ', 'Cu ', 'Mai ', 'Mai ', 'Ge ', 'Chao ', 'Fu ', 'Mian ', 'Mian ', 'Fu ', 'Pao ', 'Qu ', 'Qu ', 'Mou ', 'Fu ', 'Xian ', 'Lai ', 'Qu ', 'Mian ', '[?] ', 'Feng ', 'Fu ', 'Qu ', 'Mian ', 'Ma ', 'Mo ', 'Mo ', 'Hui ', 'Ma ', 'Zou ', 'Nen ', 'Fen ', 'Huang ', 'Huang ', 'Jin ', 'Guang ', 'Tian ', 'Tou ', 'Heng ', 'Xi ', 'Kuang ', 'Heng ', 'Shu ', 'Li ', 'Nian ', 'Chi ', 'Hei ', 'Hei ', 'Yi ', 'Qian ', 'Dan ', 'Xi ', 'Tuan ', 'Mo ', 'Mo ', 'Qian ', 'Dai ', 'Chu ', 'You ', 'Dian ', 'Yi ', 'Xia ', 'Yan ', 'Qu ', 'Mei ', 'Yan ', 'Jing ', 'Yu ', 'Li ', 'Dang ', 'Du ', 'Can ', 'Yin ', 'An ', 'Yan ', 'Tan ', 'An ', 'Zhen ', 'Dai ', 'Can ', 'Yi ', 'Mei ', 'Dan ', 'Yan ', 'Du ', 'Lu ', 'Zhi ', 'Fen ', 'Fu ', 'Fu ', 'Min ', 'Min ', 'Yuan ']; <?php return ['Cu ', 'Qu ', 'Chao ', 'Wa ', 'Zhu ', 'Zhi ', 'Mang ', 'Ao ', 'Bie ', 'Tuo ', 'Bi ', 'Yuan ', 'Chao ', 'Tuo ', 'Ding ', 'Mi ', 'Nai ', 'Ding ', 'Zi ', 'Gu ', 'Gu ', 'Dong ', 'Fen ', 'Tao ', 'Yuan ', 'Pi ', 'Chang ', 'Gao ', 'Qi ', 'Yuan ', 'Tang ', 'Teng ', 'Shu ', 'Shu ', 'Fen ', 'Fei ', 'Wen ', 'Ba ', 'Diao ', 'Tuo ', 'Tong ', 'Qu ', 'Sheng ', 'Shi ', 'You ', 'Shi ', 'Ting ', 'Wu ', 'Nian ', 'Jing ', 'Hun ', 'Ju ', 'Yan ', 'Tu ', 'Ti ', 'Xi ', 'Xian ', 'Yan ', 'Lei ', 'Bi ', 'Yao ', 'Qiu ', 'Han ', 'Wu ', 'Wu ', 'Hou ', 'Xi ', 'Ge ', 'Zha ', 'Xiu ', 'Weng ', 'Zha ', 'Nong ', 'Nang ', 'Qi ', 'Zhai ', 'Ji ', 'Zi ', 'Ji ', 'Ji ', 'Qi ', 'Ji ', 'Chi ', 'Chen ', 'Chen ', 'He ', 'Ya ', 'Ken ', 'Xie ', 'Pao ', 'Cuo ', 'Shi ', 'Zi ', 'Chi ', 'Nian ', 'Ju ', 'Tiao ', 'Ling ', 'Ling ', 'Chu ', 'Quan ', 'Xie ', 'Ken ', 'Nie ', 'Jiu ', 'Yao ', 'Chuo ', 'Kun ', 'Yu ', 'Chu ', 'Yi ', 'Ni ', 'Cuo ', 'Zou ', 'Qu ', 'Nen ', 'Xian ', 'Ou ', 'E ', 'Wo ', 'Yi ', 'Chuo ', 'Zou ', 'Dian ', 'Chu ', 'Jin ', 'Ya ', 'Chi ', 'Chen ', 'He ', 'Ken ', 'Ju ', 'Ling ', 'Pao ', 'Tiao ', 'Zi ', 'Ken ', 'Yu ', 'Chuo ', 'Qu ', 'Wo ', 'Long ', 'Pang ', 'Gong ', 'Pang ', 'Yan ', 'Long ', 'Long ', 'Gong ', 'Kan ', 'Ta ', 'Ling ', 'Ta ', 'Long ', 'Gong ', 'Kan ', 'Gui ', 'Qiu ', 'Bie ', 'Gui ', 'Yue ', 'Chui ', 'He ', 'Jue ', 'Xie ', 'Yu ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['it', 'ix', 'i', 'ip', 'iet', 'iex', 'ie', 'iep', 'at', 'ax', 'a', 'ap', 'uox', 'uo', 'uop', 'ot', 'ox', 'o', 'op', 'ex', 'e', 'wu', 'bit', 'bix', 'bi', 'bip', 'biet', 'biex', 'bie', 'biep', 'bat', 'bax', 'ba', 'bap', 'buox', 'buo', 'buop', 'bot', 'box', 'bo', 'bop', 'bex', 'be', 'bep', 'but', 'bux', 'bu', 'bup', 'burx', 'bur', 'byt', 'byx', 'by', 'byp', 'byrx', 'byr', 'pit', 'pix', 'pi', 'pip', 'piex', 'pie', 'piep', 'pat', 'pax', 'pa', 'pap', 'puox', 'puo', 'puop', 'pot', 'pox', 'po', 'pop', 'put', 'pux', 'pu', 'pup', 'purx', 'pur', 'pyt', 'pyx', 'py', 'pyp', 'pyrx', 'pyr', 'bbit', 'bbix', 'bbi', 'bbip', 'bbiet', 'bbiex', 'bbie', 'bbiep', 'bbat', 'bbax', 'bba', 'bbap', 'bbuox', 'bbuo', 'bbuop', 'bbot', 'bbox', 'bbo', 'bbop', 'bbex', 'bbe', 'bbep', 'bbut', 'bbux', 'bbu', 'bbup', 'bburx', 'bbur', 'bbyt', 'bbyx', 'bby', 'bbyp', 'nbit', 'nbix', 'nbi', 'nbip', 'nbiex', 'nbie', 'nbiep', 'nbat', 'nbax', 'nba', 'nbap', 'nbot', 'nbox', 'nbo', 'nbop', 'nbut', 'nbux', 'nbu', 'nbup', 'nburx', 'nbur', 'nbyt', 'nbyx', 'nby', 'nbyp', 'nbyrx', 'nbyr', 'hmit', 'hmix', 'hmi', 'hmip', 'hmiex', 'hmie', 'hmiep', 'hmat', 'hmax', 'hma', 'hmap', 'hmuox', 'hmuo', 'hmuop', 'hmot', 'hmox', 'hmo', 'hmop', 'hmut', 'hmux', 'hmu', 'hmup', 'hmurx', 'hmur', 'hmyx', 'hmy', 'hmyp', 'hmyrx', 'hmyr', 'mit', 'mix', 'mi', 'mip', 'miex', 'mie', 'miep', 'mat', 'max', 'ma', 'map', 'muot', 'muox', 'muo', 'muop', 'mot', 'mox', 'mo', 'mop', 'mex', 'me', 'mut', 'mux', 'mu', 'mup', 'murx', 'mur', 'myt', 'myx', 'my', 'myp', 'fit', 'fix', 'fi', 'fip', 'fat', 'fax', 'fa', 'fap', 'fox', 'fo', 'fop', 'fut', 'fux', 'fu', 'fup', 'furx', 'fur', 'fyt', 'fyx', 'fy', 'fyp', 'vit', 'vix', 'vi', 'vip', 'viet', 'viex', 'vie', 'viep', 'vat', 'vax', 'va', 'vap', 'vot', 'vox', 'vo', 'vop', 'vex', 'vep', 'vut', 'vux', 'vu', 'vup', 'vurx', 'vur', 'vyt', 'vyx', 'vy', 'vyp', 'vyrx', 'vyr']; <?php return ['dit', 'dix', 'di', 'dip', 'diex', 'die', 'diep', 'dat', 'dax', 'da', 'dap', 'duox', 'duo', 'dot', 'dox', 'do', 'dop', 'dex', 'de', 'dep', 'dut', 'dux', 'du', 'dup', 'durx', 'dur', 'tit', 'tix', 'ti', 'tip', 'tiex', 'tie', 'tiep', 'tat', 'tax', 'ta', 'tap', 'tuot', 'tuox', 'tuo', 'tuop', 'tot', 'tox', 'to', 'top', 'tex', 'te', 'tep', 'tut', 'tux', 'tu', 'tup', 'turx', 'tur', 'ddit', 'ddix', 'ddi', 'ddip', 'ddiex', 'ddie', 'ddiep', 'ddat', 'ddax', 'dda', 'ddap', 'dduox', 'dduo', 'dduop', 'ddot', 'ddox', 'ddo', 'ddop', 'ddex', 'dde', 'ddep', 'ddut', 'ddux', 'ddu', 'ddup', 'ddurx', 'ddur', 'ndit', 'ndix', 'ndi', 'ndip', 'ndiex', 'ndie', 'ndat', 'ndax', 'nda', 'ndap', 'ndot', 'ndox', 'ndo', 'ndop', 'ndex', 'nde', 'ndep', 'ndut', 'ndux', 'ndu', 'ndup', 'ndurx', 'ndur', 'hnit', 'hnix', 'hni', 'hnip', 'hniet', 'hniex', 'hnie', 'hniep', 'hnat', 'hnax', 'hna', 'hnap', 'hnuox', 'hnuo', 'hnot', 'hnox', 'hnop', 'hnex', 'hne', 'hnep', 'hnut', 'nit', 'nix', 'ni', 'nip', 'niex', 'nie', 'niep', 'nax', 'na', 'nap', 'nuox', 'nuo', 'nuop', 'not', 'nox', 'no', 'nop', 'nex', 'ne', 'nep', 'nut', 'nux', 'nu', 'nup', 'nurx', 'nur', 'hlit', 'hlix', 'hli', 'hlip', 'hliex', 'hlie', 'hliep', 'hlat', 'hlax', 'hla', 'hlap', 'hluox', 'hluo', 'hluop', 'hlox', 'hlo', 'hlop', 'hlex', 'hle', 'hlep', 'hlut', 'hlux', 'hlu', 'hlup', 'hlurx', 'hlur', 'hlyt', 'hlyx', 'hly', 'hlyp', 'hlyrx', 'hlyr', 'lit', 'lix', 'li', 'lip', 'liet', 'liex', 'lie', 'liep', 'lat', 'lax', 'la', 'lap', 'luot', 'luox', 'luo', 'luop', 'lot', 'lox', 'lo', 'lop', 'lex', 'le', 'lep', 'lut', 'lux', 'lu', 'lup', 'lurx', 'lur', 'lyt', 'lyx', 'ly', 'lyp', 'lyrx', 'lyr', 'git', 'gix', 'gi', 'gip', 'giet', 'giex', 'gie', 'giep', 'gat', 'gax', 'ga', 'gap', 'guot', 'guox', 'guo', 'guop', 'got', 'gox', 'go', 'gop', 'get', 'gex', 'ge', 'gep', 'gut', 'gux', 'gu', 'gup', 'gurx', 'gur', 'kit', 'kix', 'ki', 'kip', 'kiex', 'kie', 'kiep', 'kat']; <?php return ['kax', 'ka', 'kap', 'kuox', 'kuo', 'kuop', 'kot', 'kox', 'ko', 'kop', 'ket', 'kex', 'ke', 'kep', 'kut', 'kux', 'ku', 'kup', 'kurx', 'kur', 'ggit', 'ggix', 'ggi', 'ggiex', 'ggie', 'ggiep', 'ggat', 'ggax', 'gga', 'ggap', 'gguot', 'gguox', 'gguo', 'gguop', 'ggot', 'ggox', 'ggo', 'ggop', 'gget', 'ggex', 'gge', 'ggep', 'ggut', 'ggux', 'ggu', 'ggup', 'ggurx', 'ggur', 'mgiex', 'mgie', 'mgat', 'mgax', 'mga', 'mgap', 'mguox', 'mguo', 'mguop', 'mgot', 'mgox', 'mgo', 'mgop', 'mgex', 'mge', 'mgep', 'mgut', 'mgux', 'mgu', 'mgup', 'mgurx', 'mgur', 'hxit', 'hxix', 'hxi', 'hxip', 'hxiet', 'hxiex', 'hxie', 'hxiep', 'hxat', 'hxax', 'hxa', 'hxap', 'hxuot', 'hxuox', 'hxuo', 'hxuop', 'hxot', 'hxox', 'hxo', 'hxop', 'hxex', 'hxe', 'hxep', 'ngiex', 'ngie', 'ngiep', 'ngat', 'ngax', 'nga', 'ngap', 'nguot', 'nguox', 'nguo', 'ngot', 'ngox', 'ngo', 'ngop', 'ngex', 'nge', 'ngep', 'hit', 'hiex', 'hie', 'hat', 'hax', 'ha', 'hap', 'huot', 'huox', 'huo', 'huop', 'hot', 'hox', 'ho', 'hop', 'hex', 'he', 'hep', 'wat', 'wax', 'wa', 'wap', 'wuox', 'wuo', 'wuop', 'wox', 'wo', 'wop', 'wex', 'we', 'wep', 'zit', 'zix', 'zi', 'zip', 'ziex', 'zie', 'ziep', 'zat', 'zax', 'za', 'zap', 'zuox', 'zuo', 'zuop', 'zot', 'zox', 'zo', 'zop', 'zex', 'ze', 'zep', 'zut', 'zux', 'zu', 'zup', 'zurx', 'zur', 'zyt', 'zyx', 'zy', 'zyp', 'zyrx', 'zyr', 'cit', 'cix', 'ci', 'cip', 'ciet', 'ciex', 'cie', 'ciep', 'cat', 'cax', 'ca', 'cap', 'cuox', 'cuo', 'cuop', 'cot', 'cox', 'co', 'cop', 'cex', 'ce', 'cep', 'cut', 'cux', 'cu', 'cup', 'curx', 'cur', 'cyt', 'cyx', 'cy', 'cyp', 'cyrx', 'cyr', 'zzit', 'zzix', 'zzi', 'zzip', 'zziet', 'zziex', 'zzie', 'zziep', 'zzat', 'zzax', 'zza', 'zzap', 'zzox', 'zzo', 'zzop', 'zzex', 'zze', 'zzep', 'zzux', 'zzu', 'zzup', 'zzurx', 'zzur', 'zzyt', 'zzyx', 'zzy', 'zzyp', 'zzyrx', 'zzyr', 'nzit', 'nzix', 'nzi', 'nzip', 'nziex', 'nzie', 'nziep', 'nzat', 'nzax', 'nza', 'nzap', 'nzuox', 'nzuo', 'nzox', 'nzop', 'nzex', 'nze', 'nzux', 'nzu']; <?php return ['nzup', 'nzurx', 'nzur', 'nzyt', 'nzyx', 'nzy', 'nzyp', 'nzyrx', 'nzyr', 'sit', 'six', 'si', 'sip', 'siex', 'sie', 'siep', 'sat', 'sax', 'sa', 'sap', 'suox', 'suo', 'suop', 'sot', 'sox', 'so', 'sop', 'sex', 'se', 'sep', 'sut', 'sux', 'su', 'sup', 'surx', 'sur', 'syt', 'syx', 'sy', 'syp', 'syrx', 'syr', 'ssit', 'ssix', 'ssi', 'ssip', 'ssiex', 'ssie', 'ssiep', 'ssat', 'ssax', 'ssa', 'ssap', 'ssot', 'ssox', 'sso', 'ssop', 'ssex', 'sse', 'ssep', 'ssut', 'ssux', 'ssu', 'ssup', 'ssyt', 'ssyx', 'ssy', 'ssyp', 'ssyrx', 'ssyr', 'zhat', 'zhax', 'zha', 'zhap', 'zhuox', 'zhuo', 'zhuop', 'zhot', 'zhox', 'zho', 'zhop', 'zhet', 'zhex', 'zhe', 'zhep', 'zhut', 'zhux', 'zhu', 'zhup', 'zhurx', 'zhur', 'zhyt', 'zhyx', 'zhy', 'zhyp', 'zhyrx', 'zhyr', 'chat', 'chax', 'cha', 'chap', 'chuot', 'chuox', 'chuo', 'chuop', 'chot', 'chox', 'cho', 'chop', 'chet', 'chex', 'che', 'chep', 'chux', 'chu', 'chup', 'churx', 'chur', 'chyt', 'chyx', 'chy', 'chyp', 'chyrx', 'chyr', 'rrax', 'rra', 'rruox', 'rruo', 'rrot', 'rrox', 'rro', 'rrop', 'rret', 'rrex', 'rre', 'rrep', 'rrut', 'rrux', 'rru', 'rrup', 'rrurx', 'rrur', 'rryt', 'rryx', 'rry', 'rryp', 'rryrx', 'rryr', 'nrat', 'nrax', 'nra', 'nrap', 'nrox', 'nro', 'nrop', 'nret', 'nrex', 'nre', 'nrep', 'nrut', 'nrux', 'nru', 'nrup', 'nrurx', 'nrur', 'nryt', 'nryx', 'nry', 'nryp', 'nryrx', 'nryr', 'shat', 'shax', 'sha', 'shap', 'shuox', 'shuo', 'shuop', 'shot', 'shox', 'sho', 'shop', 'shet', 'shex', 'she', 'shep', 'shut', 'shux', 'shu', 'shup', 'shurx', 'shur', 'shyt', 'shyx', 'shy', 'shyp', 'shyrx', 'shyr', 'rat', 'rax', 'ra', 'rap', 'ruox', 'ruo', 'ruop', 'rot', 'rox', 'ro', 'rop', 'rex', 're', 'rep', 'rut', 'rux', 'ru', 'rup', 'rurx', 'rur', 'ryt', 'ryx', 'ry', 'ryp', 'ryrx', 'ryr', 'jit', 'jix', 'ji', 'jip', 'jiet', 'jiex', 'jie', 'jiep', 'juot', 'juox', 'juo', 'juop', 'jot', 'jox', 'jo', 'jop', 'jut', 'jux', 'ju', 'jup', 'jurx', 'jur', 'jyt', 'jyx', 'jy', 'jyp', 'jyrx', 'jyr', 'qit', 'qix', 'qi', 'qip']; <?php return ['qiet', 'qiex', 'qie', 'qiep', 'quot', 'quox', 'quo', 'quop', 'qot', 'qox', 'qo', 'qop', 'qut', 'qux', 'qu', 'qup', 'qurx', 'qur', 'qyt', 'qyx', 'qy', 'qyp', 'qyrx', 'qyr', 'jjit', 'jjix', 'jji', 'jjip', 'jjiet', 'jjiex', 'jjie', 'jjiep', 'jjuox', 'jjuo', 'jjuop', 'jjot', 'jjox', 'jjo', 'jjop', 'jjut', 'jjux', 'jju', 'jjup', 'jjurx', 'jjur', 'jjyt', 'jjyx', 'jjy', 'jjyp', 'njit', 'njix', 'nji', 'njip', 'njiet', 'njiex', 'njie', 'njiep', 'njuox', 'njuo', 'njot', 'njox', 'njo', 'njop', 'njux', 'nju', 'njup', 'njurx', 'njur', 'njyt', 'njyx', 'njy', 'njyp', 'njyrx', 'njyr', 'nyit', 'nyix', 'nyi', 'nyip', 'nyiet', 'nyiex', 'nyie', 'nyiep', 'nyuox', 'nyuo', 'nyuop', 'nyot', 'nyox', 'nyo', 'nyop', 'nyut', 'nyux', 'nyu', 'nyup', 'xit', 'xix', 'xi', 'xip', 'xiet', 'xiex', 'xie', 'xiep', 'xuox', 'xuo', 'xot', 'xox', 'xo', 'xop', 'xyt', 'xyx', 'xy', 'xyp', 'xyrx', 'xyr', 'yit', 'yix', 'yi', 'yip', 'yiet', 'yiex', 'yie', 'yiep', 'yuot', 'yuox', 'yuo', 'yuop', 'yot', 'yox', 'yo', 'yop', 'yut', 'yux', 'yu', 'yup', 'yurx', 'yur', 'yyt', 'yyx', 'yy', 'yyp', 'yyrx', 'yyr', '[?]', '[?]', '[?]', 'Qot', 'Li', 'Kit', 'Nyip', 'Cyp', 'Ssi', 'Ggop', 'Gep', 'Mi', 'Hxit', 'Lyr', 'Bbut', 'Mop', 'Yo', 'Put', 'Hxuo', 'Tat', 'Ga', '[?]', '[?]', 'Ddur', 'Bur', 'Gguo', 'Nyop', 'Tu', 'Op', 'Jjut', 'Zot', 'Pyt', 'Hmo', 'Yit', 'Vur', 'Shy', 'Vep', 'Za', 'Jo', '[?]', 'Jjy', 'Got', 'Jjie', 'Wo', 'Du', 'Shur', 'Lie', 'Cy', 'Cuop', 'Cip', 'Hxop', 'Shat', '[?]', 'Shop', 'Che', 'Zziet', '[?]', 'Ke', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['ga', 'gag', 'gagg', 'gags', 'gan', 'ganj', 'ganh', 'gad', 'gal', 'galg', 'galm', 'galb', 'gals', 'galt', 'galp', 'galh', 'gam', 'gab', 'gabs', 'gas', 'gass', 'gang', 'gaj', 'gac', 'gak', 'gat', 'gap', 'gah', 'gae', 'gaeg', 'gaegg', 'gaegs', 'gaen', 'gaenj', 'gaenh', 'gaed', 'gael', 'gaelg', 'gaelm', 'gaelb', 'gaels', 'gaelt', 'gaelp', 'gaelh', 'gaem', 'gaeb', 'gaebs', 'gaes', 'gaess', 'gaeng', 'gaej', 'gaec', 'gaek', 'gaet', 'gaep', 'gaeh', 'gya', 'gyag', 'gyagg', 'gyags', 'gyan', 'gyanj', 'gyanh', 'gyad', 'gyal', 'gyalg', 'gyalm', 'gyalb', 'gyals', 'gyalt', 'gyalp', 'gyalh', 'gyam', 'gyab', 'gyabs', 'gyas', 'gyass', 'gyang', 'gyaj', 'gyac', 'gyak', 'gyat', 'gyap', 'gyah', 'gyae', 'gyaeg', 'gyaegg', 'gyaegs', 'gyaen', 'gyaenj', 'gyaenh', 'gyaed', 'gyael', 'gyaelg', 'gyaelm', 'gyaelb', 'gyaels', 'gyaelt', 'gyaelp', 'gyaelh', 'gyaem', 'gyaeb', 'gyaebs', 'gyaes', 'gyaess', 'gyaeng', 'gyaej', 'gyaec', 'gyaek', 'gyaet', 'gyaep', 'gyaeh', 'geo', 'geog', 'geogg', 'geogs', 'geon', 'geonj', 'geonh', 'geod', 'geol', 'geolg', 'geolm', 'geolb', 'geols', 'geolt', 'geolp', 'geolh', 'geom', 'geob', 'geobs', 'geos', 'geoss', 'geong', 'geoj', 'geoc', 'geok', 'geot', 'geop', 'geoh', 'ge', 'geg', 'gegg', 'gegs', 'gen', 'genj', 'genh', 'ged', 'gel', 'gelg', 'gelm', 'gelb', 'gels', 'gelt', 'gelp', 'gelh', 'gem', 'geb', 'gebs', 'ges', 'gess', 'geng', 'gej', 'gec', 'gek', 'get', 'gep', 'geh', 'gyeo', 'gyeog', 'gyeogg', 'gyeogs', 'gyeon', 'gyeonj', 'gyeonh', 'gyeod', 'gyeol', 'gyeolg', 'gyeolm', 'gyeolb', 'gyeols', 'gyeolt', 'gyeolp', 'gyeolh', 'gyeom', 'gyeob', 'gyeobs', 'gyeos', 'gyeoss', 'gyeong', 'gyeoj', 'gyeoc', 'gyeok', 'gyeot', 'gyeop', 'gyeoh', 'gye', 'gyeg', 'gyegg', 'gyegs', 'gyen', 'gyenj', 'gyenh', 'gyed', 'gyel', 'gyelg', 'gyelm', 'gyelb', 'gyels', 'gyelt', 'gyelp', 'gyelh', 'gyem', 'gyeb', 'gyebs', 'gyes', 'gyess', 'gyeng', 'gyej', 'gyec', 'gyek', 'gyet', 'gyep', 'gyeh', 'go', 'gog', 'gogg', 'gogs', 'gon', 'gonj', 'gonh', 'god', 'gol', 'golg', 'golm', 'golb', 'gols', 'golt', 'golp', 'golh', 'gom', 'gob', 'gobs', 'gos', 'goss', 'gong', 'goj', 'goc', 'gok', 'got', 'gop', 'goh', 'gwa', 'gwag', 'gwagg', 'gwags']; <?php return ['gwan', 'gwanj', 'gwanh', 'gwad', 'gwal', 'gwalg', 'gwalm', 'gwalb', 'gwals', 'gwalt', 'gwalp', 'gwalh', 'gwam', 'gwab', 'gwabs', 'gwas', 'gwass', 'gwang', 'gwaj', 'gwac', 'gwak', 'gwat', 'gwap', 'gwah', 'gwae', 'gwaeg', 'gwaegg', 'gwaegs', 'gwaen', 'gwaenj', 'gwaenh', 'gwaed', 'gwael', 'gwaelg', 'gwaelm', 'gwaelb', 'gwaels', 'gwaelt', 'gwaelp', 'gwaelh', 'gwaem', 'gwaeb', 'gwaebs', 'gwaes', 'gwaess', 'gwaeng', 'gwaej', 'gwaec', 'gwaek', 'gwaet', 'gwaep', 'gwaeh', 'goe', 'goeg', 'goegg', 'goegs', 'goen', 'goenj', 'goenh', 'goed', 'goel', 'goelg', 'goelm', 'goelb', 'goels', 'goelt', 'goelp', 'goelh', 'goem', 'goeb', 'goebs', 'goes', 'goess', 'goeng', 'goej', 'goec', 'goek', 'goet', 'goep', 'goeh', 'gyo', 'gyog', 'gyogg', 'gyogs', 'gyon', 'gyonj', 'gyonh', 'gyod', 'gyol', 'gyolg', 'gyolm', 'gyolb', 'gyols', 'gyolt', 'gyolp', 'gyolh', 'gyom', 'gyob', 'gyobs', 'gyos', 'gyoss', 'gyong', 'gyoj', 'gyoc', 'gyok', 'gyot', 'gyop', 'gyoh', 'gu', 'gug', 'gugg', 'gugs', 'gun', 'gunj', 'gunh', 'gud', 'gul', 'gulg', 'gulm', 'gulb', 'guls', 'gult', 'gulp', 'gulh', 'gum', 'gub', 'gubs', 'gus', 'guss', 'gung', 'guj', 'guc', 'guk', 'gut', 'gup', 'guh', 'gweo', 'gweog', 'gweogg', 'gweogs', 'gweon', 'gweonj', 'gweonh', 'gweod', 'gweol', 'gweolg', 'gweolm', 'gweolb', 'gweols', 'gweolt', 'gweolp', 'gweolh', 'gweom', 'gweob', 'gweobs', 'gweos', 'gweoss', 'gweong', 'gweoj', 'gweoc', 'gweok', 'gweot', 'gweop', 'gweoh', 'gwe', 'gweg', 'gwegg', 'gwegs', 'gwen', 'gwenj', 'gwenh', 'gwed', 'gwel', 'gwelg', 'gwelm', 'gwelb', 'gwels', 'gwelt', 'gwelp', 'gwelh', 'gwem', 'gweb', 'gwebs', 'gwes', 'gwess', 'gweng', 'gwej', 'gwec', 'gwek', 'gwet', 'gwep', 'gweh', 'gwi', 'gwig', 'gwigg', 'gwigs', 'gwin', 'gwinj', 'gwinh', 'gwid', 'gwil', 'gwilg', 'gwilm', 'gwilb', 'gwils', 'gwilt', 'gwilp', 'gwilh', 'gwim', 'gwib', 'gwibs', 'gwis', 'gwiss', 'gwing', 'gwij', 'gwic', 'gwik', 'gwit', 'gwip', 'gwih', 'gyu', 'gyug', 'gyugg', 'gyugs', 'gyun', 'gyunj', 'gyunh', 'gyud', 'gyul', 'gyulg', 'gyulm', 'gyulb', 'gyuls', 'gyult', 'gyulp', 'gyulh', 'gyum', 'gyub', 'gyubs', 'gyus', 'gyuss', 'gyung', 'gyuj', 'gyuc', 'gyuk', 'gyut', 'gyup', 'gyuh', 'geu', 'geug', 'geugg', 'geugs', 'geun', 'geunj', 'geunh', 'geud']; <?php return ['geul', 'geulg', 'geulm', 'geulb', 'geuls', 'geult', 'geulp', 'geulh', 'geum', 'geub', 'geubs', 'geus', 'geuss', 'geung', 'geuj', 'geuc', 'geuk', 'geut', 'geup', 'geuh', 'gyi', 'gyig', 'gyigg', 'gyigs', 'gyin', 'gyinj', 'gyinh', 'gyid', 'gyil', 'gyilg', 'gyilm', 'gyilb', 'gyils', 'gyilt', 'gyilp', 'gyilh', 'gyim', 'gyib', 'gyibs', 'gyis', 'gyiss', 'gying', 'gyij', 'gyic', 'gyik', 'gyit', 'gyip', 'gyih', 'gi', 'gig', 'gigg', 'gigs', 'gin', 'ginj', 'ginh', 'gid', 'gil', 'gilg', 'gilm', 'gilb', 'gils', 'gilt', 'gilp', 'gilh', 'gim', 'gib', 'gibs', 'gis', 'giss', 'ging', 'gij', 'gic', 'gik', 'git', 'gip', 'gih', 'gga', 'ggag', 'ggagg', 'ggags', 'ggan', 'gganj', 'gganh', 'ggad', 'ggal', 'ggalg', 'ggalm', 'ggalb', 'ggals', 'ggalt', 'ggalp', 'ggalh', 'ggam', 'ggab', 'ggabs', 'ggas', 'ggass', 'ggang', 'ggaj', 'ggac', 'ggak', 'ggat', 'ggap', 'ggah', 'ggae', 'ggaeg', 'ggaegg', 'ggaegs', 'ggaen', 'ggaenj', 'ggaenh', 'ggaed', 'ggael', 'ggaelg', 'ggaelm', 'ggaelb', 'ggaels', 'ggaelt', 'ggaelp', 'ggaelh', 'ggaem', 'ggaeb', 'ggaebs', 'ggaes', 'ggaess', 'ggaeng', 'ggaej', 'ggaec', 'ggaek', 'ggaet', 'ggaep', 'ggaeh', 'ggya', 'ggyag', 'ggyagg', 'ggyags', 'ggyan', 'ggyanj', 'ggyanh', 'ggyad', 'ggyal', 'ggyalg', 'ggyalm', 'ggyalb', 'ggyals', 'ggyalt', 'ggyalp', 'ggyalh', 'ggyam', 'ggyab', 'ggyabs', 'ggyas', 'ggyass', 'ggyang', 'ggyaj', 'ggyac', 'ggyak', 'ggyat', 'ggyap', 'ggyah', 'ggyae', 'ggyaeg', 'ggyaegg', 'ggyaegs', 'ggyaen', 'ggyaenj', 'ggyaenh', 'ggyaed', 'ggyael', 'ggyaelg', 'ggyaelm', 'ggyaelb', 'ggyaels', 'ggyaelt', 'ggyaelp', 'ggyaelh', 'ggyaem', 'ggyaeb', 'ggyaebs', 'ggyaes', 'ggyaess', 'ggyaeng', 'ggyaej', 'ggyaec', 'ggyaek', 'ggyaet', 'ggyaep', 'ggyaeh', 'ggeo', 'ggeog', 'ggeogg', 'ggeogs', 'ggeon', 'ggeonj', 'ggeonh', 'ggeod', 'ggeol', 'ggeolg', 'ggeolm', 'ggeolb', 'ggeols', 'ggeolt', 'ggeolp', 'ggeolh', 'ggeom', 'ggeob', 'ggeobs', 'ggeos', 'ggeoss', 'ggeong', 'ggeoj', 'ggeoc', 'ggeok', 'ggeot', 'ggeop', 'ggeoh', 'gge', 'ggeg', 'ggegg', 'ggegs', 'ggen', 'ggenj', 'ggenh', 'gged', 'ggel', 'ggelg', 'ggelm', 'ggelb', 'ggels', 'ggelt', 'ggelp', 'ggelh', 'ggem', 'ggeb', 'ggebs', 'gges', 'ggess', 'ggeng', 'ggej', 'ggec', 'ggek', 'gget', 'ggep', 'ggeh', 'ggyeo', 'ggyeog', 'ggyeogg', 'ggyeogs', 'ggyeon', 'ggyeonj', 'ggyeonh', 'ggyeod', 'ggyeol', 'ggyeolg', 'ggyeolm', 'ggyeolb']; <?php return ['ggyeols', 'ggyeolt', 'ggyeolp', 'ggyeolh', 'ggyeom', 'ggyeob', 'ggyeobs', 'ggyeos', 'ggyeoss', 'ggyeong', 'ggyeoj', 'ggyeoc', 'ggyeok', 'ggyeot', 'ggyeop', 'ggyeoh', 'ggye', 'ggyeg', 'ggyegg', 'ggyegs', 'ggyen', 'ggyenj', 'ggyenh', 'ggyed', 'ggyel', 'ggyelg', 'ggyelm', 'ggyelb', 'ggyels', 'ggyelt', 'ggyelp', 'ggyelh', 'ggyem', 'ggyeb', 'ggyebs', 'ggyes', 'ggyess', 'ggyeng', 'ggyej', 'ggyec', 'ggyek', 'ggyet', 'ggyep', 'ggyeh', 'ggo', 'ggog', 'ggogg', 'ggogs', 'ggon', 'ggonj', 'ggonh', 'ggod', 'ggol', 'ggolg', 'ggolm', 'ggolb', 'ggols', 'ggolt', 'ggolp', 'ggolh', 'ggom', 'ggob', 'ggobs', 'ggos', 'ggoss', 'ggong', 'ggoj', 'ggoc', 'ggok', 'ggot', 'ggop', 'ggoh', 'ggwa', 'ggwag', 'ggwagg', 'ggwags', 'ggwan', 'ggwanj', 'ggwanh', 'ggwad', 'ggwal', 'ggwalg', 'ggwalm', 'ggwalb', 'ggwals', 'ggwalt', 'ggwalp', 'ggwalh', 'ggwam', 'ggwab', 'ggwabs', 'ggwas', 'ggwass', 'ggwang', 'ggwaj', 'ggwac', 'ggwak', 'ggwat', 'ggwap', 'ggwah', 'ggwae', 'ggwaeg', 'ggwaegg', 'ggwaegs', 'ggwaen', 'ggwaenj', 'ggwaenh', 'ggwaed', 'ggwael', 'ggwaelg', 'ggwaelm', 'ggwaelb', 'ggwaels', 'ggwaelt', 'ggwaelp', 'ggwaelh', 'ggwaem', 'ggwaeb', 'ggwaebs', 'ggwaes', 'ggwaess', 'ggwaeng', 'ggwaej', 'ggwaec', 'ggwaek', 'ggwaet', 'ggwaep', 'ggwaeh', 'ggoe', 'ggoeg', 'ggoegg', 'ggoegs', 'ggoen', 'ggoenj', 'ggoenh', 'ggoed', 'ggoel', 'ggoelg', 'ggoelm', 'ggoelb', 'ggoels', 'ggoelt', 'ggoelp', 'ggoelh', 'ggoem', 'ggoeb', 'ggoebs', 'ggoes', 'ggoess', 'ggoeng', 'ggoej', 'ggoec', 'ggoek', 'ggoet', 'ggoep', 'ggoeh', 'ggyo', 'ggyog', 'ggyogg', 'ggyogs', 'ggyon', 'ggyonj', 'ggyonh', 'ggyod', 'ggyol', 'ggyolg', 'ggyolm', 'ggyolb', 'ggyols', 'ggyolt', 'ggyolp', 'ggyolh', 'ggyom', 'ggyob', 'ggyobs', 'ggyos', 'ggyoss', 'ggyong', 'ggyoj', 'ggyoc', 'ggyok', 'ggyot', 'ggyop', 'ggyoh', 'ggu', 'ggug', 'ggugg', 'ggugs', 'ggun', 'ggunj', 'ggunh', 'ggud', 'ggul', 'ggulg', 'ggulm', 'ggulb', 'gguls', 'ggult', 'ggulp', 'ggulh', 'ggum', 'ggub', 'ggubs', 'ggus', 'gguss', 'ggung', 'gguj', 'gguc', 'gguk', 'ggut', 'ggup', 'gguh', 'ggweo', 'ggweog', 'ggweogg', 'ggweogs', 'ggweon', 'ggweonj', 'ggweonh', 'ggweod', 'ggweol', 'ggweolg', 'ggweolm', 'ggweolb', 'ggweols', 'ggweolt', 'ggweolp', 'ggweolh', 'ggweom', 'ggweob', 'ggweobs', 'ggweos', 'ggweoss', 'ggweong', 'ggweoj', 'ggweoc', 'ggweok', 'ggweot', 'ggweop', 'ggweoh', 'ggwe', 'ggweg', 'ggwegg', 'ggwegs', 'ggwen', 'ggwenj', 'ggwenh', 'ggwed', 'ggwel', 'ggwelg', 'ggwelm', 'ggwelb', 'ggwels', 'ggwelt', 'ggwelp', 'ggwelh']; <?php return ['ggwem', 'ggweb', 'ggwebs', 'ggwes', 'ggwess', 'ggweng', 'ggwej', 'ggwec', 'ggwek', 'ggwet', 'ggwep', 'ggweh', 'ggwi', 'ggwig', 'ggwigg', 'ggwigs', 'ggwin', 'ggwinj', 'ggwinh', 'ggwid', 'ggwil', 'ggwilg', 'ggwilm', 'ggwilb', 'ggwils', 'ggwilt', 'ggwilp', 'ggwilh', 'ggwim', 'ggwib', 'ggwibs', 'ggwis', 'ggwiss', 'ggwing', 'ggwij', 'ggwic', 'ggwik', 'ggwit', 'ggwip', 'ggwih', 'ggyu', 'ggyug', 'ggyugg', 'ggyugs', 'ggyun', 'ggyunj', 'ggyunh', 'ggyud', 'ggyul', 'ggyulg', 'ggyulm', 'ggyulb', 'ggyuls', 'ggyult', 'ggyulp', 'ggyulh', 'ggyum', 'ggyub', 'ggyubs', 'ggyus', 'ggyuss', 'ggyung', 'ggyuj', 'ggyuc', 'ggyuk', 'ggyut', 'ggyup', 'ggyuh', 'ggeu', 'ggeug', 'ggeugg', 'ggeugs', 'ggeun', 'ggeunj', 'ggeunh', 'ggeud', 'ggeul', 'ggeulg', 'ggeulm', 'ggeulb', 'ggeuls', 'ggeult', 'ggeulp', 'ggeulh', 'ggeum', 'ggeub', 'ggeubs', 'ggeus', 'ggeuss', 'ggeung', 'ggeuj', 'ggeuc', 'ggeuk', 'ggeut', 'ggeup', 'ggeuh', 'ggyi', 'ggyig', 'ggyigg', 'ggyigs', 'ggyin', 'ggyinj', 'ggyinh', 'ggyid', 'ggyil', 'ggyilg', 'ggyilm', 'ggyilb', 'ggyils', 'ggyilt', 'ggyilp', 'ggyilh', 'ggyim', 'ggyib', 'ggyibs', 'ggyis', 'ggyiss', 'ggying', 'ggyij', 'ggyic', 'ggyik', 'ggyit', 'ggyip', 'ggyih', 'ggi', 'ggig', 'ggigg', 'ggigs', 'ggin', 'gginj', 'gginh', 'ggid', 'ggil', 'ggilg', 'ggilm', 'ggilb', 'ggils', 'ggilt', 'ggilp', 'ggilh', 'ggim', 'ggib', 'ggibs', 'ggis', 'ggiss', 'gging', 'ggij', 'ggic', 'ggik', 'ggit', 'ggip', 'ggih', 'na', 'nag', 'nagg', 'nags', 'nan', 'nanj', 'nanh', 'nad', 'nal', 'nalg', 'nalm', 'nalb', 'nals', 'nalt', 'nalp', 'nalh', 'nam', 'nab', 'nabs', 'nas', 'nass', 'nang', 'naj', 'nac', 'nak', 'nat', 'nap', 'nah', 'nae', 'naeg', 'naegg', 'naegs', 'naen', 'naenj', 'naenh', 'naed', 'nael', 'naelg', 'naelm', 'naelb', 'naels', 'naelt', 'naelp', 'naelh', 'naem', 'naeb', 'naebs', 'naes', 'naess', 'naeng', 'naej', 'naec', 'naek', 'naet', 'naep', 'naeh', 'nya', 'nyag', 'nyagg', 'nyags', 'nyan', 'nyanj', 'nyanh', 'nyad', 'nyal', 'nyalg', 'nyalm', 'nyalb', 'nyals', 'nyalt', 'nyalp', 'nyalh', 'nyam', 'nyab', 'nyabs', 'nyas', 'nyass', 'nyang', 'nyaj', 'nyac', 'nyak', 'nyat', 'nyap', 'nyah', 'nyae', 'nyaeg', 'nyaegg', 'nyaegs', 'nyaen', 'nyaenj', 'nyaenh', 'nyaed', 'nyael', 'nyaelg', 'nyaelm', 'nyaelb', 'nyaels', 'nyaelt', 'nyaelp', 'nyaelh', 'nyaem', 'nyaeb', 'nyaebs', 'nyaes']; <?php return ['nyaess', 'nyaeng', 'nyaej', 'nyaec', 'nyaek', 'nyaet', 'nyaep', 'nyaeh', 'neo', 'neog', 'neogg', 'neogs', 'neon', 'neonj', 'neonh', 'neod', 'neol', 'neolg', 'neolm', 'neolb', 'neols', 'neolt', 'neolp', 'neolh', 'neom', 'neob', 'neobs', 'neos', 'neoss', 'neong', 'neoj', 'neoc', 'neok', 'neot', 'neop', 'neoh', 'ne', 'neg', 'negg', 'negs', 'nen', 'nenj', 'nenh', 'ned', 'nel', 'nelg', 'nelm', 'nelb', 'nels', 'nelt', 'nelp', 'nelh', 'nem', 'neb', 'nebs', 'nes', 'ness', 'neng', 'nej', 'nec', 'nek', 'net', 'nep', 'neh', 'nyeo', 'nyeog', 'nyeogg', 'nyeogs', 'nyeon', 'nyeonj', 'nyeonh', 'nyeod', 'nyeol', 'nyeolg', 'nyeolm', 'nyeolb', 'nyeols', 'nyeolt', 'nyeolp', 'nyeolh', 'nyeom', 'nyeob', 'nyeobs', 'nyeos', 'nyeoss', 'nyeong', 'nyeoj', 'nyeoc', 'nyeok', 'nyeot', 'nyeop', 'nyeoh', 'nye', 'nyeg', 'nyegg', 'nyegs', 'nyen', 'nyenj', 'nyenh', 'nyed', 'nyel', 'nyelg', 'nyelm', 'nyelb', 'nyels', 'nyelt', 'nyelp', 'nyelh', 'nyem', 'nyeb', 'nyebs', 'nyes', 'nyess', 'nyeng', 'nyej', 'nyec', 'nyek', 'nyet', 'nyep', 'nyeh', 'no', 'nog', 'nogg', 'nogs', 'non', 'nonj', 'nonh', 'nod', 'nol', 'nolg', 'nolm', 'nolb', 'nols', 'nolt', 'nolp', 'nolh', 'nom', 'nob', 'nobs', 'nos', 'noss', 'nong', 'noj', 'noc', 'nok', 'not', 'nop', 'noh', 'nwa', 'nwag', 'nwagg', 'nwags', 'nwan', 'nwanj', 'nwanh', 'nwad', 'nwal', 'nwalg', 'nwalm', 'nwalb', 'nwals', 'nwalt', 'nwalp', 'nwalh', 'nwam', 'nwab', 'nwabs', 'nwas', 'nwass', 'nwang', 'nwaj', 'nwac', 'nwak', 'nwat', 'nwap', 'nwah', 'nwae', 'nwaeg', 'nwaegg', 'nwaegs', 'nwaen', 'nwaenj', 'nwaenh', 'nwaed', 'nwael', 'nwaelg', 'nwaelm', 'nwaelb', 'nwaels', 'nwaelt', 'nwaelp', 'nwaelh', 'nwaem', 'nwaeb', 'nwaebs', 'nwaes', 'nwaess', 'nwaeng', 'nwaej', 'nwaec', 'nwaek', 'nwaet', 'nwaep', 'nwaeh', 'noe', 'noeg', 'noegg', 'noegs', 'noen', 'noenj', 'noenh', 'noed', 'noel', 'noelg', 'noelm', 'noelb', 'noels', 'noelt', 'noelp', 'noelh', 'noem', 'noeb', 'noebs', 'noes', 'noess', 'noeng', 'noej', 'noec', 'noek', 'noet', 'noep', 'noeh', 'nyo', 'nyog', 'nyogg', 'nyogs', 'nyon', 'nyonj', 'nyonh', 'nyod', 'nyol', 'nyolg', 'nyolm', 'nyolb', 'nyols', 'nyolt', 'nyolp', 'nyolh', 'nyom', 'nyob', 'nyobs', 'nyos', 'nyoss', 'nyong', 'nyoj', 'nyoc']; <?php return ['nyok', 'nyot', 'nyop', 'nyoh', 'nu', 'nug', 'nugg', 'nugs', 'nun', 'nunj', 'nunh', 'nud', 'nul', 'nulg', 'nulm', 'nulb', 'nuls', 'nult', 'nulp', 'nulh', 'num', 'nub', 'nubs', 'nus', 'nuss', 'nung', 'nuj', 'nuc', 'nuk', 'nut', 'nup', 'nuh', 'nweo', 'nweog', 'nweogg', 'nweogs', 'nweon', 'nweonj', 'nweonh', 'nweod', 'nweol', 'nweolg', 'nweolm', 'nweolb', 'nweols', 'nweolt', 'nweolp', 'nweolh', 'nweom', 'nweob', 'nweobs', 'nweos', 'nweoss', 'nweong', 'nweoj', 'nweoc', 'nweok', 'nweot', 'nweop', 'nweoh', 'nwe', 'nweg', 'nwegg', 'nwegs', 'nwen', 'nwenj', 'nwenh', 'nwed', 'nwel', 'nwelg', 'nwelm', 'nwelb', 'nwels', 'nwelt', 'nwelp', 'nwelh', 'nwem', 'nweb', 'nwebs', 'nwes', 'nwess', 'nweng', 'nwej', 'nwec', 'nwek', 'nwet', 'nwep', 'nweh', 'nwi', 'nwig', 'nwigg', 'nwigs', 'nwin', 'nwinj', 'nwinh', 'nwid', 'nwil', 'nwilg', 'nwilm', 'nwilb', 'nwils', 'nwilt', 'nwilp', 'nwilh', 'nwim', 'nwib', 'nwibs', 'nwis', 'nwiss', 'nwing', 'nwij', 'nwic', 'nwik', 'nwit', 'nwip', 'nwih', 'nyu', 'nyug', 'nyugg', 'nyugs', 'nyun', 'nyunj', 'nyunh', 'nyud', 'nyul', 'nyulg', 'nyulm', 'nyulb', 'nyuls', 'nyult', 'nyulp', 'nyulh', 'nyum', 'nyub', 'nyubs', 'nyus', 'nyuss', 'nyung', 'nyuj', 'nyuc', 'nyuk', 'nyut', 'nyup', 'nyuh', 'neu', 'neug', 'neugg', 'neugs', 'neun', 'neunj', 'neunh', 'neud', 'neul', 'neulg', 'neulm', 'neulb', 'neuls', 'neult', 'neulp', 'neulh', 'neum', 'neub', 'neubs', 'neus', 'neuss', 'neung', 'neuj', 'neuc', 'neuk', 'neut', 'neup', 'neuh', 'nyi', 'nyig', 'nyigg', 'nyigs', 'nyin', 'nyinj', 'nyinh', 'nyid', 'nyil', 'nyilg', 'nyilm', 'nyilb', 'nyils', 'nyilt', 'nyilp', 'nyilh', 'nyim', 'nyib', 'nyibs', 'nyis', 'nyiss', 'nying', 'nyij', 'nyic', 'nyik', 'nyit', 'nyip', 'nyih', 'ni', 'nig', 'nigg', 'nigs', 'nin', 'ninj', 'ninh', 'nid', 'nil', 'nilg', 'nilm', 'nilb', 'nils', 'nilt', 'nilp', 'nilh', 'nim', 'nib', 'nibs', 'nis', 'niss', 'ning', 'nij', 'nic', 'nik', 'nit', 'nip', 'nih', 'da', 'dag', 'dagg', 'dags', 'dan', 'danj', 'danh', 'dad', 'dal', 'dalg', 'dalm', 'dalb', 'dals', 'dalt', 'dalp', 'dalh', 'dam', 'dab', 'dabs', 'das', 'dass', 'dang', 'daj', 'dac', 'dak', 'dat', 'dap', 'dah']; <?php return ['dae', 'daeg', 'daegg', 'daegs', 'daen', 'daenj', 'daenh', 'daed', 'dael', 'daelg', 'daelm', 'daelb', 'daels', 'daelt', 'daelp', 'daelh', 'daem', 'daeb', 'daebs', 'daes', 'daess', 'daeng', 'daej', 'daec', 'daek', 'daet', 'daep', 'daeh', 'dya', 'dyag', 'dyagg', 'dyags', 'dyan', 'dyanj', 'dyanh', 'dyad', 'dyal', 'dyalg', 'dyalm', 'dyalb', 'dyals', 'dyalt', 'dyalp', 'dyalh', 'dyam', 'dyab', 'dyabs', 'dyas', 'dyass', 'dyang', 'dyaj', 'dyac', 'dyak', 'dyat', 'dyap', 'dyah', 'dyae', 'dyaeg', 'dyaegg', 'dyaegs', 'dyaen', 'dyaenj', 'dyaenh', 'dyaed', 'dyael', 'dyaelg', 'dyaelm', 'dyaelb', 'dyaels', 'dyaelt', 'dyaelp', 'dyaelh', 'dyaem', 'dyaeb', 'dyaebs', 'dyaes', 'dyaess', 'dyaeng', 'dyaej', 'dyaec', 'dyaek', 'dyaet', 'dyaep', 'dyaeh', 'deo', 'deog', 'deogg', 'deogs', 'deon', 'deonj', 'deonh', 'deod', 'deol', 'deolg', 'deolm', 'deolb', 'deols', 'deolt', 'deolp', 'deolh', 'deom', 'deob', 'deobs', 'deos', 'deoss', 'deong', 'deoj', 'deoc', 'deok', 'deot', 'deop', 'deoh', 'de', 'deg', 'degg', 'degs', 'den', 'denj', 'denh', 'ded', 'del', 'delg', 'delm', 'delb', 'dels', 'delt', 'delp', 'delh', 'dem', 'deb', 'debs', 'des', 'dess', 'deng', 'dej', 'dec', 'dek', 'det', 'dep', 'deh', 'dyeo', 'dyeog', 'dyeogg', 'dyeogs', 'dyeon', 'dyeonj', 'dyeonh', 'dyeod', 'dyeol', 'dyeolg', 'dyeolm', 'dyeolb', 'dyeols', 'dyeolt', 'dyeolp', 'dyeolh', 'dyeom', 'dyeob', 'dyeobs', 'dyeos', 'dyeoss', 'dyeong', 'dyeoj', 'dyeoc', 'dyeok', 'dyeot', 'dyeop', 'dyeoh', 'dye', 'dyeg', 'dyegg', 'dyegs', 'dyen', 'dyenj', 'dyenh', 'dyed', 'dyel', 'dyelg', 'dyelm', 'dyelb', 'dyels', 'dyelt', 'dyelp', 'dyelh', 'dyem', 'dyeb', 'dyebs', 'dyes', 'dyess', 'dyeng', 'dyej', 'dyec', 'dyek', 'dyet', 'dyep', 'dyeh', 'do', 'dog', 'dogg', 'dogs', 'don', 'donj', 'donh', 'dod', 'dol', 'dolg', 'dolm', 'dolb', 'dols', 'dolt', 'dolp', 'dolh', 'dom', 'dob', 'dobs', 'dos', 'doss', 'dong', 'doj', 'doc', 'dok', 'dot', 'dop', 'doh', 'dwa', 'dwag', 'dwagg', 'dwags', 'dwan', 'dwanj', 'dwanh', 'dwad', 'dwal', 'dwalg', 'dwalm', 'dwalb', 'dwals', 'dwalt', 'dwalp', 'dwalh', 'dwam', 'dwab', 'dwabs', 'dwas', 'dwass', 'dwang', 'dwaj', 'dwac', 'dwak', 'dwat', 'dwap', 'dwah', 'dwae', 'dwaeg', 'dwaegg', 'dwaegs']; <?php return ['dwaen', 'dwaenj', 'dwaenh', 'dwaed', 'dwael', 'dwaelg', 'dwaelm', 'dwaelb', 'dwaels', 'dwaelt', 'dwaelp', 'dwaelh', 'dwaem', 'dwaeb', 'dwaebs', 'dwaes', 'dwaess', 'dwaeng', 'dwaej', 'dwaec', 'dwaek', 'dwaet', 'dwaep', 'dwaeh', 'doe', 'doeg', 'doegg', 'doegs', 'doen', 'doenj', 'doenh', 'doed', 'doel', 'doelg', 'doelm', 'doelb', 'doels', 'doelt', 'doelp', 'doelh', 'doem', 'doeb', 'doebs', 'does', 'doess', 'doeng', 'doej', 'doec', 'doek', 'doet', 'doep', 'doeh', 'dyo', 'dyog', 'dyogg', 'dyogs', 'dyon', 'dyonj', 'dyonh', 'dyod', 'dyol', 'dyolg', 'dyolm', 'dyolb', 'dyols', 'dyolt', 'dyolp', 'dyolh', 'dyom', 'dyob', 'dyobs', 'dyos', 'dyoss', 'dyong', 'dyoj', 'dyoc', 'dyok', 'dyot', 'dyop', 'dyoh', 'du', 'dug', 'dugg', 'dugs', 'dun', 'dunj', 'dunh', 'dud', 'dul', 'dulg', 'dulm', 'dulb', 'duls', 'dult', 'dulp', 'dulh', 'dum', 'dub', 'dubs', 'dus', 'duss', 'dung', 'duj', 'duc', 'duk', 'dut', 'dup', 'duh', 'dweo', 'dweog', 'dweogg', 'dweogs', 'dweon', 'dweonj', 'dweonh', 'dweod', 'dweol', 'dweolg', 'dweolm', 'dweolb', 'dweols', 'dweolt', 'dweolp', 'dweolh', 'dweom', 'dweob', 'dweobs', 'dweos', 'dweoss', 'dweong', 'dweoj', 'dweoc', 'dweok', 'dweot', 'dweop', 'dweoh', 'dwe', 'dweg', 'dwegg', 'dwegs', 'dwen', 'dwenj', 'dwenh', 'dwed', 'dwel', 'dwelg', 'dwelm', 'dwelb', 'dwels', 'dwelt', 'dwelp', 'dwelh', 'dwem', 'dweb', 'dwebs', 'dwes', 'dwess', 'dweng', 'dwej', 'dwec', 'dwek', 'dwet', 'dwep', 'dweh', 'dwi', 'dwig', 'dwigg', 'dwigs', 'dwin', 'dwinj', 'dwinh', 'dwid', 'dwil', 'dwilg', 'dwilm', 'dwilb', 'dwils', 'dwilt', 'dwilp', 'dwilh', 'dwim', 'dwib', 'dwibs', 'dwis', 'dwiss', 'dwing', 'dwij', 'dwic', 'dwik', 'dwit', 'dwip', 'dwih', 'dyu', 'dyug', 'dyugg', 'dyugs', 'dyun', 'dyunj', 'dyunh', 'dyud', 'dyul', 'dyulg', 'dyulm', 'dyulb', 'dyuls', 'dyult', 'dyulp', 'dyulh', 'dyum', 'dyub', 'dyubs', 'dyus', 'dyuss', 'dyung', 'dyuj', 'dyuc', 'dyuk', 'dyut', 'dyup', 'dyuh', 'deu', 'deug', 'deugg', 'deugs', 'deun', 'deunj', 'deunh', 'deud', 'deul', 'deulg', 'deulm', 'deulb', 'deuls', 'deult', 'deulp', 'deulh', 'deum', 'deub', 'deubs', 'deus', 'deuss', 'deung', 'deuj', 'deuc', 'deuk', 'deut', 'deup', 'deuh', 'dyi', 'dyig', 'dyigg', 'dyigs', 'dyin', 'dyinj', 'dyinh', 'dyid']; <?php return ['dyil', 'dyilg', 'dyilm', 'dyilb', 'dyils', 'dyilt', 'dyilp', 'dyilh', 'dyim', 'dyib', 'dyibs', 'dyis', 'dyiss', 'dying', 'dyij', 'dyic', 'dyik', 'dyit', 'dyip', 'dyih', 'di', 'dig', 'digg', 'digs', 'din', 'dinj', 'dinh', 'did', 'dil', 'dilg', 'dilm', 'dilb', 'dils', 'dilt', 'dilp', 'dilh', 'dim', 'dib', 'dibs', 'dis', 'diss', 'ding', 'dij', 'dic', 'dik', 'dit', 'dip', 'dih', 'dda', 'ddag', 'ddagg', 'ddags', 'ddan', 'ddanj', 'ddanh', 'ddad', 'ddal', 'ddalg', 'ddalm', 'ddalb', 'ddals', 'ddalt', 'ddalp', 'ddalh', 'ddam', 'ddab', 'ddabs', 'ddas', 'ddass', 'ddang', 'ddaj', 'ddac', 'ddak', 'ddat', 'ddap', 'ddah', 'ddae', 'ddaeg', 'ddaegg', 'ddaegs', 'ddaen', 'ddaenj', 'ddaenh', 'ddaed', 'ddael', 'ddaelg', 'ddaelm', 'ddaelb', 'ddaels', 'ddaelt', 'ddaelp', 'ddaelh', 'ddaem', 'ddaeb', 'ddaebs', 'ddaes', 'ddaess', 'ddaeng', 'ddaej', 'ddaec', 'ddaek', 'ddaet', 'ddaep', 'ddaeh', 'ddya', 'ddyag', 'ddyagg', 'ddyags', 'ddyan', 'ddyanj', 'ddyanh', 'ddyad', 'ddyal', 'ddyalg', 'ddyalm', 'ddyalb', 'ddyals', 'ddyalt', 'ddyalp', 'ddyalh', 'ddyam', 'ddyab', 'ddyabs', 'ddyas', 'ddyass', 'ddyang', 'ddyaj', 'ddyac', 'ddyak', 'ddyat', 'ddyap', 'ddyah', 'ddyae', 'ddyaeg', 'ddyaegg', 'ddyaegs', 'ddyaen', 'ddyaenj', 'ddyaenh', 'ddyaed', 'ddyael', 'ddyaelg', 'ddyaelm', 'ddyaelb', 'ddyaels', 'ddyaelt', 'ddyaelp', 'ddyaelh', 'ddyaem', 'ddyaeb', 'ddyaebs', 'ddyaes', 'ddyaess', 'ddyaeng', 'ddyaej', 'ddyaec', 'ddyaek', 'ddyaet', 'ddyaep', 'ddyaeh', 'ddeo', 'ddeog', 'ddeogg', 'ddeogs', 'ddeon', 'ddeonj', 'ddeonh', 'ddeod', 'ddeol', 'ddeolg', 'ddeolm', 'ddeolb', 'ddeols', 'ddeolt', 'ddeolp', 'ddeolh', 'ddeom', 'ddeob', 'ddeobs', 'ddeos', 'ddeoss', 'ddeong', 'ddeoj', 'ddeoc', 'ddeok', 'ddeot', 'ddeop', 'ddeoh', 'dde', 'ddeg', 'ddegg', 'ddegs', 'dden', 'ddenj', 'ddenh', 'dded', 'ddel', 'ddelg', 'ddelm', 'ddelb', 'ddels', 'ddelt', 'ddelp', 'ddelh', 'ddem', 'ddeb', 'ddebs', 'ddes', 'ddess', 'ddeng', 'ddej', 'ddec', 'ddek', 'ddet', 'ddep', 'ddeh', 'ddyeo', 'ddyeog', 'ddyeogg', 'ddyeogs', 'ddyeon', 'ddyeonj', 'ddyeonh', 'ddyeod', 'ddyeol', 'ddyeolg', 'ddyeolm', 'ddyeolb', 'ddyeols', 'ddyeolt', 'ddyeolp', 'ddyeolh', 'ddyeom', 'ddyeob', 'ddyeobs', 'ddyeos', 'ddyeoss', 'ddyeong', 'ddyeoj', 'ddyeoc', 'ddyeok', 'ddyeot', 'ddyeop', 'ddyeoh', 'ddye', 'ddyeg', 'ddyegg', 'ddyegs', 'ddyen', 'ddyenj', 'ddyenh', 'ddyed', 'ddyel', 'ddyelg', 'ddyelm', 'ddyelb']; <?php return ['ddyels', 'ddyelt', 'ddyelp', 'ddyelh', 'ddyem', 'ddyeb', 'ddyebs', 'ddyes', 'ddyess', 'ddyeng', 'ddyej', 'ddyec', 'ddyek', 'ddyet', 'ddyep', 'ddyeh', 'ddo', 'ddog', 'ddogg', 'ddogs', 'ddon', 'ddonj', 'ddonh', 'ddod', 'ddol', 'ddolg', 'ddolm', 'ddolb', 'ddols', 'ddolt', 'ddolp', 'ddolh', 'ddom', 'ddob', 'ddobs', 'ddos', 'ddoss', 'ddong', 'ddoj', 'ddoc', 'ddok', 'ddot', 'ddop', 'ddoh', 'ddwa', 'ddwag', 'ddwagg', 'ddwags', 'ddwan', 'ddwanj', 'ddwanh', 'ddwad', 'ddwal', 'ddwalg', 'ddwalm', 'ddwalb', 'ddwals', 'ddwalt', 'ddwalp', 'ddwalh', 'ddwam', 'ddwab', 'ddwabs', 'ddwas', 'ddwass', 'ddwang', 'ddwaj', 'ddwac', 'ddwak', 'ddwat', 'ddwap', 'ddwah', 'ddwae', 'ddwaeg', 'ddwaegg', 'ddwaegs', 'ddwaen', 'ddwaenj', 'ddwaenh', 'ddwaed', 'ddwael', 'ddwaelg', 'ddwaelm', 'ddwaelb', 'ddwaels', 'ddwaelt', 'ddwaelp', 'ddwaelh', 'ddwaem', 'ddwaeb', 'ddwaebs', 'ddwaes', 'ddwaess', 'ddwaeng', 'ddwaej', 'ddwaec', 'ddwaek', 'ddwaet', 'ddwaep', 'ddwaeh', 'ddoe', 'ddoeg', 'ddoegg', 'ddoegs', 'ddoen', 'ddoenj', 'ddoenh', 'ddoed', 'ddoel', 'ddoelg', 'ddoelm', 'ddoelb', 'ddoels', 'ddoelt', 'ddoelp', 'ddoelh', 'ddoem', 'ddoeb', 'ddoebs', 'ddoes', 'ddoess', 'ddoeng', 'ddoej', 'ddoec', 'ddoek', 'ddoet', 'ddoep', 'ddoeh', 'ddyo', 'ddyog', 'ddyogg', 'ddyogs', 'ddyon', 'ddyonj', 'ddyonh', 'ddyod', 'ddyol', 'ddyolg', 'ddyolm', 'ddyolb', 'ddyols', 'ddyolt', 'ddyolp', 'ddyolh', 'ddyom', 'ddyob', 'ddyobs', 'ddyos', 'ddyoss', 'ddyong', 'ddyoj', 'ddyoc', 'ddyok', 'ddyot', 'ddyop', 'ddyoh', 'ddu', 'ddug', 'ddugg', 'ddugs', 'ddun', 'ddunj', 'ddunh', 'ddud', 'ddul', 'ddulg', 'ddulm', 'ddulb', 'dduls', 'ddult', 'ddulp', 'ddulh', 'ddum', 'ddub', 'ddubs', 'ddus', 'dduss', 'ddung', 'dduj', 'dduc', 'dduk', 'ddut', 'ddup', 'dduh', 'ddweo', 'ddweog', 'ddweogg', 'ddweogs', 'ddweon', 'ddweonj', 'ddweonh', 'ddweod', 'ddweol', 'ddweolg', 'ddweolm', 'ddweolb', 'ddweols', 'ddweolt', 'ddweolp', 'ddweolh', 'ddweom', 'ddweob', 'ddweobs', 'ddweos', 'ddweoss', 'ddweong', 'ddweoj', 'ddweoc', 'ddweok', 'ddweot', 'ddweop', 'ddweoh', 'ddwe', 'ddweg', 'ddwegg', 'ddwegs', 'ddwen', 'ddwenj', 'ddwenh', 'ddwed', 'ddwel', 'ddwelg', 'ddwelm', 'ddwelb', 'ddwels', 'ddwelt', 'ddwelp', 'ddwelh', 'ddwem', 'ddweb', 'ddwebs', 'ddwes', 'ddwess', 'ddweng', 'ddwej', 'ddwec', 'ddwek', 'ddwet', 'ddwep', 'ddweh', 'ddwi', 'ddwig', 'ddwigg', 'ddwigs', 'ddwin', 'ddwinj', 'ddwinh', 'ddwid', 'ddwil', 'ddwilg', 'ddwilm', 'ddwilb', 'ddwils', 'ddwilt', 'ddwilp', 'ddwilh']; <?php return ['ddwim', 'ddwib', 'ddwibs', 'ddwis', 'ddwiss', 'ddwing', 'ddwij', 'ddwic', 'ddwik', 'ddwit', 'ddwip', 'ddwih', 'ddyu', 'ddyug', 'ddyugg', 'ddyugs', 'ddyun', 'ddyunj', 'ddyunh', 'ddyud', 'ddyul', 'ddyulg', 'ddyulm', 'ddyulb', 'ddyuls', 'ddyult', 'ddyulp', 'ddyulh', 'ddyum', 'ddyub', 'ddyubs', 'ddyus', 'ddyuss', 'ddyung', 'ddyuj', 'ddyuc', 'ddyuk', 'ddyut', 'ddyup', 'ddyuh', 'ddeu', 'ddeug', 'ddeugg', 'ddeugs', 'ddeun', 'ddeunj', 'ddeunh', 'ddeud', 'ddeul', 'ddeulg', 'ddeulm', 'ddeulb', 'ddeuls', 'ddeult', 'ddeulp', 'ddeulh', 'ddeum', 'ddeub', 'ddeubs', 'ddeus', 'ddeuss', 'ddeung', 'ddeuj', 'ddeuc', 'ddeuk', 'ddeut', 'ddeup', 'ddeuh', 'ddyi', 'ddyig', 'ddyigg', 'ddyigs', 'ddyin', 'ddyinj', 'ddyinh', 'ddyid', 'ddyil', 'ddyilg', 'ddyilm', 'ddyilb', 'ddyils', 'ddyilt', 'ddyilp', 'ddyilh', 'ddyim', 'ddyib', 'ddyibs', 'ddyis', 'ddyiss', 'ddying', 'ddyij', 'ddyic', 'ddyik', 'ddyit', 'ddyip', 'ddyih', 'ddi', 'ddig', 'ddigg', 'ddigs', 'ddin', 'ddinj', 'ddinh', 'ddid', 'ddil', 'ddilg', 'ddilm', 'ddilb', 'ddils', 'ddilt', 'ddilp', 'ddilh', 'ddim', 'ddib', 'ddibs', 'ddis', 'ddiss', 'dding', 'ddij', 'ddic', 'ddik', 'ddit', 'ddip', 'ddih', 'ra', 'rag', 'ragg', 'rags', 'ran', 'ranj', 'ranh', 'rad', 'ral', 'ralg', 'ralm', 'ralb', 'rals', 'ralt', 'ralp', 'ralh', 'ram', 'rab', 'rabs', 'ras', 'rass', 'rang', 'raj', 'rac', 'rak', 'rat', 'rap', 'rah', 'rae', 'raeg', 'raegg', 'raegs', 'raen', 'raenj', 'raenh', 'raed', 'rael', 'raelg', 'raelm', 'raelb', 'raels', 'raelt', 'raelp', 'raelh', 'raem', 'raeb', 'raebs', 'raes', 'raess', 'raeng', 'raej', 'raec', 'raek', 'raet', 'raep', 'raeh', 'rya', 'ryag', 'ryagg', 'ryags', 'ryan', 'ryanj', 'ryanh', 'ryad', 'ryal', 'ryalg', 'ryalm', 'ryalb', 'ryals', 'ryalt', 'ryalp', 'ryalh', 'ryam', 'ryab', 'ryabs', 'ryas', 'ryass', 'ryang', 'ryaj', 'ryac', 'ryak', 'ryat', 'ryap', 'ryah', 'ryae', 'ryaeg', 'ryaegg', 'ryaegs', 'ryaen', 'ryaenj', 'ryaenh', 'ryaed', 'ryael', 'ryaelg', 'ryaelm', 'ryaelb', 'ryaels', 'ryaelt', 'ryaelp', 'ryaelh', 'ryaem', 'ryaeb', 'ryaebs', 'ryaes', 'ryaess', 'ryaeng', 'ryaej', 'ryaec', 'ryaek', 'ryaet', 'ryaep', 'ryaeh', 'reo', 'reog', 'reogg', 'reogs', 'reon', 'reonj', 'reonh', 'reod', 'reol', 'reolg', 'reolm', 'reolb', 'reols', 'reolt', 'reolp', 'reolh', 'reom', 'reob', 'reobs', 'reos']; <?php return ['reoss', 'reong', 'reoj', 'reoc', 'reok', 'reot', 'reop', 'reoh', 're', 'reg', 'regg', 'regs', 'ren', 'renj', 'renh', 'red', 'rel', 'relg', 'relm', 'relb', 'rels', 'relt', 'relp', 'relh', 'rem', 'reb', 'rebs', 'res', 'ress', 'reng', 'rej', 'rec', 'rek', 'ret', 'rep', 'reh', 'ryeo', 'ryeog', 'ryeogg', 'ryeogs', 'ryeon', 'ryeonj', 'ryeonh', 'ryeod', 'ryeol', 'ryeolg', 'ryeolm', 'ryeolb', 'ryeols', 'ryeolt', 'ryeolp', 'ryeolh', 'ryeom', 'ryeob', 'ryeobs', 'ryeos', 'ryeoss', 'ryeong', 'ryeoj', 'ryeoc', 'ryeok', 'ryeot', 'ryeop', 'ryeoh', 'rye', 'ryeg', 'ryegg', 'ryegs', 'ryen', 'ryenj', 'ryenh', 'ryed', 'ryel', 'ryelg', 'ryelm', 'ryelb', 'ryels', 'ryelt', 'ryelp', 'ryelh', 'ryem', 'ryeb', 'ryebs', 'ryes', 'ryess', 'ryeng', 'ryej', 'ryec', 'ryek', 'ryet', 'ryep', 'ryeh', 'ro', 'rog', 'rogg', 'rogs', 'ron', 'ronj', 'ronh', 'rod', 'rol', 'rolg', 'rolm', 'rolb', 'rols', 'rolt', 'rolp', 'rolh', 'rom', 'rob', 'robs', 'ros', 'ross', 'rong', 'roj', 'roc', 'rok', 'rot', 'rop', 'roh', 'rwa', 'rwag', 'rwagg', 'rwags', 'rwan', 'rwanj', 'rwanh', 'rwad', 'rwal', 'rwalg', 'rwalm', 'rwalb', 'rwals', 'rwalt', 'rwalp', 'rwalh', 'rwam', 'rwab', 'rwabs', 'rwas', 'rwass', 'rwang', 'rwaj', 'rwac', 'rwak', 'rwat', 'rwap', 'rwah', 'rwae', 'rwaeg', 'rwaegg', 'rwaegs', 'rwaen', 'rwaenj', 'rwaenh', 'rwaed', 'rwael', 'rwaelg', 'rwaelm', 'rwaelb', 'rwaels', 'rwaelt', 'rwaelp', 'rwaelh', 'rwaem', 'rwaeb', 'rwaebs', 'rwaes', 'rwaess', 'rwaeng', 'rwaej', 'rwaec', 'rwaek', 'rwaet', 'rwaep', 'rwaeh', 'roe', 'roeg', 'roegg', 'roegs', 'roen', 'roenj', 'roenh', 'roed', 'roel', 'roelg', 'roelm', 'roelb', 'roels', 'roelt', 'roelp', 'roelh', 'roem', 'roeb', 'roebs', 'roes', 'roess', 'roeng', 'roej', 'roec', 'roek', 'roet', 'roep', 'roeh', 'ryo', 'ryog', 'ryogg', 'ryogs', 'ryon', 'ryonj', 'ryonh', 'ryod', 'ryol', 'ryolg', 'ryolm', 'ryolb', 'ryols', 'ryolt', 'ryolp', 'ryolh', 'ryom', 'ryob', 'ryobs', 'ryos', 'ryoss', 'ryong', 'ryoj', 'ryoc', 'ryok', 'ryot', 'ryop', 'ryoh', 'ru', 'rug', 'rugg', 'rugs', 'run', 'runj', 'runh', 'rud', 'rul', 'rulg', 'rulm', 'rulb', 'ruls', 'rult', 'rulp', 'rulh', 'rum', 'rub', 'rubs', 'rus', 'russ', 'rung', 'ruj', 'ruc']; <?php return ['ruk', 'rut', 'rup', 'ruh', 'rweo', 'rweog', 'rweogg', 'rweogs', 'rweon', 'rweonj', 'rweonh', 'rweod', 'rweol', 'rweolg', 'rweolm', 'rweolb', 'rweols', 'rweolt', 'rweolp', 'rweolh', 'rweom', 'rweob', 'rweobs', 'rweos', 'rweoss', 'rweong', 'rweoj', 'rweoc', 'rweok', 'rweot', 'rweop', 'rweoh', 'rwe', 'rweg', 'rwegg', 'rwegs', 'rwen', 'rwenj', 'rwenh', 'rwed', 'rwel', 'rwelg', 'rwelm', 'rwelb', 'rwels', 'rwelt', 'rwelp', 'rwelh', 'rwem', 'rweb', 'rwebs', 'rwes', 'rwess', 'rweng', 'rwej', 'rwec', 'rwek', 'rwet', 'rwep', 'rweh', 'rwi', 'rwig', 'rwigg', 'rwigs', 'rwin', 'rwinj', 'rwinh', 'rwid', 'rwil', 'rwilg', 'rwilm', 'rwilb', 'rwils', 'rwilt', 'rwilp', 'rwilh', 'rwim', 'rwib', 'rwibs', 'rwis', 'rwiss', 'rwing', 'rwij', 'rwic', 'rwik', 'rwit', 'rwip', 'rwih', 'ryu', 'ryug', 'ryugg', 'ryugs', 'ryun', 'ryunj', 'ryunh', 'ryud', 'ryul', 'ryulg', 'ryulm', 'ryulb', 'ryuls', 'ryult', 'ryulp', 'ryulh', 'ryum', 'ryub', 'ryubs', 'ryus', 'ryuss', 'ryung', 'ryuj', 'ryuc', 'ryuk', 'ryut', 'ryup', 'ryuh', 'reu', 'reug', 'reugg', 'reugs', 'reun', 'reunj', 'reunh', 'reud', 'reul', 'reulg', 'reulm', 'reulb', 'reuls', 'reult', 'reulp', 'reulh', 'reum', 'reub', 'reubs', 'reus', 'reuss', 'reung', 'reuj', 'reuc', 'reuk', 'reut', 'reup', 'reuh', 'ryi', 'ryig', 'ryigg', 'ryigs', 'ryin', 'ryinj', 'ryinh', 'ryid', 'ryil', 'ryilg', 'ryilm', 'ryilb', 'ryils', 'ryilt', 'ryilp', 'ryilh', 'ryim', 'ryib', 'ryibs', 'ryis', 'ryiss', 'rying', 'ryij', 'ryic', 'ryik', 'ryit', 'ryip', 'ryih', 'ri', 'rig', 'rigg', 'rigs', 'rin', 'rinj', 'rinh', 'rid', 'ril', 'rilg', 'rilm', 'rilb', 'rils', 'rilt', 'rilp', 'rilh', 'rim', 'rib', 'ribs', 'ris', 'riss', 'ring', 'rij', 'ric', 'rik', 'rit', 'rip', 'rih', 'ma', 'mag', 'magg', 'mags', 'man', 'manj', 'manh', 'mad', 'mal', 'malg', 'malm', 'malb', 'mals', 'malt', 'malp', 'malh', 'mam', 'mab', 'mabs', 'mas', 'mass', 'mang', 'maj', 'mac', 'mak', 'mat', 'map', 'mah', 'mae', 'maeg', 'maegg', 'maegs', 'maen', 'maenj', 'maenh', 'maed', 'mael', 'maelg', 'maelm', 'maelb', 'maels', 'maelt', 'maelp', 'maelh', 'maem', 'maeb', 'maebs', 'maes', 'maess', 'maeng', 'maej', 'maec', 'maek', 'maet', 'maep', 'maeh']; <?php return ['mya', 'myag', 'myagg', 'myags', 'myan', 'myanj', 'myanh', 'myad', 'myal', 'myalg', 'myalm', 'myalb', 'myals', 'myalt', 'myalp', 'myalh', 'myam', 'myab', 'myabs', 'myas', 'myass', 'myang', 'myaj', 'myac', 'myak', 'myat', 'myap', 'myah', 'myae', 'myaeg', 'myaegg', 'myaegs', 'myaen', 'myaenj', 'myaenh', 'myaed', 'myael', 'myaelg', 'myaelm', 'myaelb', 'myaels', 'myaelt', 'myaelp', 'myaelh', 'myaem', 'myaeb', 'myaebs', 'myaes', 'myaess', 'myaeng', 'myaej', 'myaec', 'myaek', 'myaet', 'myaep', 'myaeh', 'meo', 'meog', 'meogg', 'meogs', 'meon', 'meonj', 'meonh', 'meod', 'meol', 'meolg', 'meolm', 'meolb', 'meols', 'meolt', 'meolp', 'meolh', 'meom', 'meob', 'meobs', 'meos', 'meoss', 'meong', 'meoj', 'meoc', 'meok', 'meot', 'meop', 'meoh', 'me', 'meg', 'megg', 'megs', 'men', 'menj', 'menh', 'med', 'mel', 'melg', 'melm', 'melb', 'mels', 'melt', 'melp', 'melh', 'mem', 'meb', 'mebs', 'mes', 'mess', 'meng', 'mej', 'mec', 'mek', 'met', 'mep', 'meh', 'myeo', 'myeog', 'myeogg', 'myeogs', 'myeon', 'myeonj', 'myeonh', 'myeod', 'myeol', 'myeolg', 'myeolm', 'myeolb', 'myeols', 'myeolt', 'myeolp', 'myeolh', 'myeom', 'myeob', 'myeobs', 'myeos', 'myeoss', 'myeong', 'myeoj', 'myeoc', 'myeok', 'myeot', 'myeop', 'myeoh', 'mye', 'myeg', 'myegg', 'myegs', 'myen', 'myenj', 'myenh', 'myed', 'myel', 'myelg', 'myelm', 'myelb', 'myels', 'myelt', 'myelp', 'myelh', 'myem', 'myeb', 'myebs', 'myes', 'myess', 'myeng', 'myej', 'myec', 'myek', 'myet', 'myep', 'myeh', 'mo', 'mog', 'mogg', 'mogs', 'mon', 'monj', 'monh', 'mod', 'mol', 'molg', 'molm', 'molb', 'mols', 'molt', 'molp', 'molh', 'mom', 'mob', 'mobs', 'mos', 'moss', 'mong', 'moj', 'moc', 'mok', 'mot', 'mop', 'moh', 'mwa', 'mwag', 'mwagg', 'mwags', 'mwan', 'mwanj', 'mwanh', 'mwad', 'mwal', 'mwalg', 'mwalm', 'mwalb', 'mwals', 'mwalt', 'mwalp', 'mwalh', 'mwam', 'mwab', 'mwabs', 'mwas', 'mwass', 'mwang', 'mwaj', 'mwac', 'mwak', 'mwat', 'mwap', 'mwah', 'mwae', 'mwaeg', 'mwaegg', 'mwaegs', 'mwaen', 'mwaenj', 'mwaenh', 'mwaed', 'mwael', 'mwaelg', 'mwaelm', 'mwaelb', 'mwaels', 'mwaelt', 'mwaelp', 'mwaelh', 'mwaem', 'mwaeb', 'mwaebs', 'mwaes', 'mwaess', 'mwaeng', 'mwaej', 'mwaec', 'mwaek', 'mwaet', 'mwaep', 'mwaeh', 'moe', 'moeg', 'moegg', 'moegs']; <?php return ['moen', 'moenj', 'moenh', 'moed', 'moel', 'moelg', 'moelm', 'moelb', 'moels', 'moelt', 'moelp', 'moelh', 'moem', 'moeb', 'moebs', 'moes', 'moess', 'moeng', 'moej', 'moec', 'moek', 'moet', 'moep', 'moeh', 'myo', 'myog', 'myogg', 'myogs', 'myon', 'myonj', 'myonh', 'myod', 'myol', 'myolg', 'myolm', 'myolb', 'myols', 'myolt', 'myolp', 'myolh', 'myom', 'myob', 'myobs', 'myos', 'myoss', 'myong', 'myoj', 'myoc', 'myok', 'myot', 'myop', 'myoh', 'mu', 'mug', 'mugg', 'mugs', 'mun', 'munj', 'munh', 'mud', 'mul', 'mulg', 'mulm', 'mulb', 'muls', 'mult', 'mulp', 'mulh', 'mum', 'mub', 'mubs', 'mus', 'muss', 'mung', 'muj', 'muc', 'muk', 'mut', 'mup', 'muh', 'mweo', 'mweog', 'mweogg', 'mweogs', 'mweon', 'mweonj', 'mweonh', 'mweod', 'mweol', 'mweolg', 'mweolm', 'mweolb', 'mweols', 'mweolt', 'mweolp', 'mweolh', 'mweom', 'mweob', 'mweobs', 'mweos', 'mweoss', 'mweong', 'mweoj', 'mweoc', 'mweok', 'mweot', 'mweop', 'mweoh', 'mwe', 'mweg', 'mwegg', 'mwegs', 'mwen', 'mwenj', 'mwenh', 'mwed', 'mwel', 'mwelg', 'mwelm', 'mwelb', 'mwels', 'mwelt', 'mwelp', 'mwelh', 'mwem', 'mweb', 'mwebs', 'mwes', 'mwess', 'mweng', 'mwej', 'mwec', 'mwek', 'mwet', 'mwep', 'mweh', 'mwi', 'mwig', 'mwigg', 'mwigs', 'mwin', 'mwinj', 'mwinh', 'mwid', 'mwil', 'mwilg', 'mwilm', 'mwilb', 'mwils', 'mwilt', 'mwilp', 'mwilh', 'mwim', 'mwib', 'mwibs', 'mwis', 'mwiss', 'mwing', 'mwij', 'mwic', 'mwik', 'mwit', 'mwip', 'mwih', 'myu', 'myug', 'myugg', 'myugs', 'myun', 'myunj', 'myunh', 'myud', 'myul', 'myulg', 'myulm', 'myulb', 'myuls', 'myult', 'myulp', 'myulh', 'myum', 'myub', 'myubs', 'myus', 'myuss', 'myung', 'myuj', 'myuc', 'myuk', 'myut', 'myup', 'myuh', 'meu', 'meug', 'meugg', 'meugs', 'meun', 'meunj', 'meunh', 'meud', 'meul', 'meulg', 'meulm', 'meulb', 'meuls', 'meult', 'meulp', 'meulh', 'meum', 'meub', 'meubs', 'meus', 'meuss', 'meung', 'meuj', 'meuc', 'meuk', 'meut', 'meup', 'meuh', 'myi', 'myig', 'myigg', 'myigs', 'myin', 'myinj', 'myinh', 'myid', 'myil', 'myilg', 'myilm', 'myilb', 'myils', 'myilt', 'myilp', 'myilh', 'myim', 'myib', 'myibs', 'myis', 'myiss', 'mying', 'myij', 'myic', 'myik', 'myit', 'myip', 'myih', 'mi', 'mig', 'migg', 'migs', 'min', 'minj', 'minh', 'mid']; <?php return ['mil', 'milg', 'milm', 'milb', 'mils', 'milt', 'milp', 'milh', 'mim', 'mib', 'mibs', 'mis', 'miss', 'ming', 'mij', 'mic', 'mik', 'mit', 'mip', 'mih', 'ba', 'bag', 'bagg', 'bags', 'ban', 'banj', 'banh', 'bad', 'bal', 'balg', 'balm', 'balb', 'bals', 'balt', 'balp', 'balh', 'bam', 'bab', 'babs', 'bas', 'bass', 'bang', 'baj', 'bac', 'bak', 'bat', 'bap', 'bah', 'bae', 'baeg', 'baegg', 'baegs', 'baen', 'baenj', 'baenh', 'baed', 'bael', 'baelg', 'baelm', 'baelb', 'baels', 'baelt', 'baelp', 'baelh', 'baem', 'baeb', 'baebs', 'baes', 'baess', 'baeng', 'baej', 'baec', 'baek', 'baet', 'baep', 'baeh', 'bya', 'byag', 'byagg', 'byags', 'byan', 'byanj', 'byanh', 'byad', 'byal', 'byalg', 'byalm', 'byalb', 'byals', 'byalt', 'byalp', 'byalh', 'byam', 'byab', 'byabs', 'byas', 'byass', 'byang', 'byaj', 'byac', 'byak', 'byat', 'byap', 'byah', 'byae', 'byaeg', 'byaegg', 'byaegs', 'byaen', 'byaenj', 'byaenh', 'byaed', 'byael', 'byaelg', 'byaelm', 'byaelb', 'byaels', 'byaelt', 'byaelp', 'byaelh', 'byaem', 'byaeb', 'byaebs', 'byaes', 'byaess', 'byaeng', 'byaej', 'byaec', 'byaek', 'byaet', 'byaep', 'byaeh', 'beo', 'beog', 'beogg', 'beogs', 'beon', 'beonj', 'beonh', 'beod', 'beol', 'beolg', 'beolm', 'beolb', 'beols', 'beolt', 'beolp', 'beolh', 'beom', 'beob', 'beobs', 'beos', 'beoss', 'beong', 'beoj', 'beoc', 'beok', 'beot', 'beop', 'beoh', 'be', 'beg', 'begg', 'begs', 'ben', 'benj', 'benh', 'bed', 'bel', 'belg', 'belm', 'belb', 'bels', 'belt', 'belp', 'belh', 'bem', 'beb', 'bebs', 'bes', 'bess', 'beng', 'bej', 'bec', 'bek', 'bet', 'bep', 'beh', 'byeo', 'byeog', 'byeogg', 'byeogs', 'byeon', 'byeonj', 'byeonh', 'byeod', 'byeol', 'byeolg', 'byeolm', 'byeolb', 'byeols', 'byeolt', 'byeolp', 'byeolh', 'byeom', 'byeob', 'byeobs', 'byeos', 'byeoss', 'byeong', 'byeoj', 'byeoc', 'byeok', 'byeot', 'byeop', 'byeoh', 'bye', 'byeg', 'byegg', 'byegs', 'byen', 'byenj', 'byenh', 'byed', 'byel', 'byelg', 'byelm', 'byelb', 'byels', 'byelt', 'byelp', 'byelh', 'byem', 'byeb', 'byebs', 'byes', 'byess', 'byeng', 'byej', 'byec', 'byek', 'byet', 'byep', 'byeh', 'bo', 'bog', 'bogg', 'bogs', 'bon', 'bonj', 'bonh', 'bod', 'bol', 'bolg', 'bolm', 'bolb']; <?php return ['bols', 'bolt', 'bolp', 'bolh', 'bom', 'bob', 'bobs', 'bos', 'boss', 'bong', 'boj', 'boc', 'bok', 'bot', 'bop', 'boh', 'bwa', 'bwag', 'bwagg', 'bwags', 'bwan', 'bwanj', 'bwanh', 'bwad', 'bwal', 'bwalg', 'bwalm', 'bwalb', 'bwals', 'bwalt', 'bwalp', 'bwalh', 'bwam', 'bwab', 'bwabs', 'bwas', 'bwass', 'bwang', 'bwaj', 'bwac', 'bwak', 'bwat', 'bwap', 'bwah', 'bwae', 'bwaeg', 'bwaegg', 'bwaegs', 'bwaen', 'bwaenj', 'bwaenh', 'bwaed', 'bwael', 'bwaelg', 'bwaelm', 'bwaelb', 'bwaels', 'bwaelt', 'bwaelp', 'bwaelh', 'bwaem', 'bwaeb', 'bwaebs', 'bwaes', 'bwaess', 'bwaeng', 'bwaej', 'bwaec', 'bwaek', 'bwaet', 'bwaep', 'bwaeh', 'boe', 'boeg', 'boegg', 'boegs', 'boen', 'boenj', 'boenh', 'boed', 'boel', 'boelg', 'boelm', 'boelb', 'boels', 'boelt', 'boelp', 'boelh', 'boem', 'boeb', 'boebs', 'boes', 'boess', 'boeng', 'boej', 'boec', 'boek', 'boet', 'boep', 'boeh', 'byo', 'byog', 'byogg', 'byogs', 'byon', 'byonj', 'byonh', 'byod', 'byol', 'byolg', 'byolm', 'byolb', 'byols', 'byolt', 'byolp', 'byolh', 'byom', 'byob', 'byobs', 'byos', 'byoss', 'byong', 'byoj', 'byoc', 'byok', 'byot', 'byop', 'byoh', 'bu', 'bug', 'bugg', 'bugs', 'bun', 'bunj', 'bunh', 'bud', 'bul', 'bulg', 'bulm', 'bulb', 'buls', 'bult', 'bulp', 'bulh', 'bum', 'bub', 'bubs', 'bus', 'buss', 'bung', 'buj', 'buc', 'buk', 'but', 'bup', 'buh', 'bweo', 'bweog', 'bweogg', 'bweogs', 'bweon', 'bweonj', 'bweonh', 'bweod', 'bweol', 'bweolg', 'bweolm', 'bweolb', 'bweols', 'bweolt', 'bweolp', 'bweolh', 'bweom', 'bweob', 'bweobs', 'bweos', 'bweoss', 'bweong', 'bweoj', 'bweoc', 'bweok', 'bweot', 'bweop', 'bweoh', 'bwe', 'bweg', 'bwegg', 'bwegs', 'bwen', 'bwenj', 'bwenh', 'bwed', 'bwel', 'bwelg', 'bwelm', 'bwelb', 'bwels', 'bwelt', 'bwelp', 'bwelh', 'bwem', 'bweb', 'bwebs', 'bwes', 'bwess', 'bweng', 'bwej', 'bwec', 'bwek', 'bwet', 'bwep', 'bweh', 'bwi', 'bwig', 'bwigg', 'bwigs', 'bwin', 'bwinj', 'bwinh', 'bwid', 'bwil', 'bwilg', 'bwilm', 'bwilb', 'bwils', 'bwilt', 'bwilp', 'bwilh', 'bwim', 'bwib', 'bwibs', 'bwis', 'bwiss', 'bwing', 'bwij', 'bwic', 'bwik', 'bwit', 'bwip', 'bwih', 'byu', 'byug', 'byugg', 'byugs', 'byun', 'byunj', 'byunh', 'byud', 'byul', 'byulg', 'byulm', 'byulb', 'byuls', 'byult', 'byulp', 'byulh']; <?php return ['byum', 'byub', 'byubs', 'byus', 'byuss', 'byung', 'byuj', 'byuc', 'byuk', 'byut', 'byup', 'byuh', 'beu', 'beug', 'beugg', 'beugs', 'beun', 'beunj', 'beunh', 'beud', 'beul', 'beulg', 'beulm', 'beulb', 'beuls', 'beult', 'beulp', 'beulh', 'beum', 'beub', 'beubs', 'beus', 'beuss', 'beung', 'beuj', 'beuc', 'beuk', 'beut', 'beup', 'beuh', 'byi', 'byig', 'byigg', 'byigs', 'byin', 'byinj', 'byinh', 'byid', 'byil', 'byilg', 'byilm', 'byilb', 'byils', 'byilt', 'byilp', 'byilh', 'byim', 'byib', 'byibs', 'byis', 'byiss', 'bying', 'byij', 'byic', 'byik', 'byit', 'byip', 'byih', 'bi', 'big', 'bigg', 'bigs', 'bin', 'binj', 'binh', 'bid', 'bil', 'bilg', 'bilm', 'bilb', 'bils', 'bilt', 'bilp', 'bilh', 'bim', 'bib', 'bibs', 'bis', 'biss', 'bing', 'bij', 'bic', 'bik', 'bit', 'bip', 'bih', 'bba', 'bbag', 'bbagg', 'bbags', 'bban', 'bbanj', 'bbanh', 'bbad', 'bbal', 'bbalg', 'bbalm', 'bbalb', 'bbals', 'bbalt', 'bbalp', 'bbalh', 'bbam', 'bbab', 'bbabs', 'bbas', 'bbass', 'bbang', 'bbaj', 'bbac', 'bbak', 'bbat', 'bbap', 'bbah', 'bbae', 'bbaeg', 'bbaegg', 'bbaegs', 'bbaen', 'bbaenj', 'bbaenh', 'bbaed', 'bbael', 'bbaelg', 'bbaelm', 'bbaelb', 'bbaels', 'bbaelt', 'bbaelp', 'bbaelh', 'bbaem', 'bbaeb', 'bbaebs', 'bbaes', 'bbaess', 'bbaeng', 'bbaej', 'bbaec', 'bbaek', 'bbaet', 'bbaep', 'bbaeh', 'bbya', 'bbyag', 'bbyagg', 'bbyags', 'bbyan', 'bbyanj', 'bbyanh', 'bbyad', 'bbyal', 'bbyalg', 'bbyalm', 'bbyalb', 'bbyals', 'bbyalt', 'bbyalp', 'bbyalh', 'bbyam', 'bbyab', 'bbyabs', 'bbyas', 'bbyass', 'bbyang', 'bbyaj', 'bbyac', 'bbyak', 'bbyat', 'bbyap', 'bbyah', 'bbyae', 'bbyaeg', 'bbyaegg', 'bbyaegs', 'bbyaen', 'bbyaenj', 'bbyaenh', 'bbyaed', 'bbyael', 'bbyaelg', 'bbyaelm', 'bbyaelb', 'bbyaels', 'bbyaelt', 'bbyaelp', 'bbyaelh', 'bbyaem', 'bbyaeb', 'bbyaebs', 'bbyaes', 'bbyaess', 'bbyaeng', 'bbyaej', 'bbyaec', 'bbyaek', 'bbyaet', 'bbyaep', 'bbyaeh', 'bbeo', 'bbeog', 'bbeogg', 'bbeogs', 'bbeon', 'bbeonj', 'bbeonh', 'bbeod', 'bbeol', 'bbeolg', 'bbeolm', 'bbeolb', 'bbeols', 'bbeolt', 'bbeolp', 'bbeolh', 'bbeom', 'bbeob', 'bbeobs', 'bbeos', 'bbeoss', 'bbeong', 'bbeoj', 'bbeoc', 'bbeok', 'bbeot', 'bbeop', 'bbeoh', 'bbe', 'bbeg', 'bbegg', 'bbegs', 'bben', 'bbenj', 'bbenh', 'bbed', 'bbel', 'bbelg', 'bbelm', 'bbelb', 'bbels', 'bbelt', 'bbelp', 'bbelh', 'bbem', 'bbeb', 'bbebs', 'bbes']; <?php return ['bbess', 'bbeng', 'bbej', 'bbec', 'bbek', 'bbet', 'bbep', 'bbeh', 'bbyeo', 'bbyeog', 'bbyeogg', 'bbyeogs', 'bbyeon', 'bbyeonj', 'bbyeonh', 'bbyeod', 'bbyeol', 'bbyeolg', 'bbyeolm', 'bbyeolb', 'bbyeols', 'bbyeolt', 'bbyeolp', 'bbyeolh', 'bbyeom', 'bbyeob', 'bbyeobs', 'bbyeos', 'bbyeoss', 'bbyeong', 'bbyeoj', 'bbyeoc', 'bbyeok', 'bbyeot', 'bbyeop', 'bbyeoh', 'bbye', 'bbyeg', 'bbyegg', 'bbyegs', 'bbyen', 'bbyenj', 'bbyenh', 'bbyed', 'bbyel', 'bbyelg', 'bbyelm', 'bbyelb', 'bbyels', 'bbyelt', 'bbyelp', 'bbyelh', 'bbyem', 'bbyeb', 'bbyebs', 'bbyes', 'bbyess', 'bbyeng', 'bbyej', 'bbyec', 'bbyek', 'bbyet', 'bbyep', 'bbyeh', 'bbo', 'bbog', 'bbogg', 'bbogs', 'bbon', 'bbonj', 'bbonh', 'bbod', 'bbol', 'bbolg', 'bbolm', 'bbolb', 'bbols', 'bbolt', 'bbolp', 'bbolh', 'bbom', 'bbob', 'bbobs', 'bbos', 'bboss', 'bbong', 'bboj', 'bboc', 'bbok', 'bbot', 'bbop', 'bboh', 'bbwa', 'bbwag', 'bbwagg', 'bbwags', 'bbwan', 'bbwanj', 'bbwanh', 'bbwad', 'bbwal', 'bbwalg', 'bbwalm', 'bbwalb', 'bbwals', 'bbwalt', 'bbwalp', 'bbwalh', 'bbwam', 'bbwab', 'bbwabs', 'bbwas', 'bbwass', 'bbwang', 'bbwaj', 'bbwac', 'bbwak', 'bbwat', 'bbwap', 'bbwah', 'bbwae', 'bbwaeg', 'bbwaegg', 'bbwaegs', 'bbwaen', 'bbwaenj', 'bbwaenh', 'bbwaed', 'bbwael', 'bbwaelg', 'bbwaelm', 'bbwaelb', 'bbwaels', 'bbwaelt', 'bbwaelp', 'bbwaelh', 'bbwaem', 'bbwaeb', 'bbwaebs', 'bbwaes', 'bbwaess', 'bbwaeng', 'bbwaej', 'bbwaec', 'bbwaek', 'bbwaet', 'bbwaep', 'bbwaeh', 'bboe', 'bboeg', 'bboegg', 'bboegs', 'bboen', 'bboenj', 'bboenh', 'bboed', 'bboel', 'bboelg', 'bboelm', 'bboelb', 'bboels', 'bboelt', 'bboelp', 'bboelh', 'bboem', 'bboeb', 'bboebs', 'bboes', 'bboess', 'bboeng', 'bboej', 'bboec', 'bboek', 'bboet', 'bboep', 'bboeh', 'bbyo', 'bbyog', 'bbyogg', 'bbyogs', 'bbyon', 'bbyonj', 'bbyonh', 'bbyod', 'bbyol', 'bbyolg', 'bbyolm', 'bbyolb', 'bbyols', 'bbyolt', 'bbyolp', 'bbyolh', 'bbyom', 'bbyob', 'bbyobs', 'bbyos', 'bbyoss', 'bbyong', 'bbyoj', 'bbyoc', 'bbyok', 'bbyot', 'bbyop', 'bbyoh', 'bbu', 'bbug', 'bbugg', 'bbugs', 'bbun', 'bbunj', 'bbunh', 'bbud', 'bbul', 'bbulg', 'bbulm', 'bbulb', 'bbuls', 'bbult', 'bbulp', 'bbulh', 'bbum', 'bbub', 'bbubs', 'bbus', 'bbuss', 'bbung', 'bbuj', 'bbuc', 'bbuk', 'bbut', 'bbup', 'bbuh', 'bbweo', 'bbweog', 'bbweogg', 'bbweogs', 'bbweon', 'bbweonj', 'bbweonh', 'bbweod', 'bbweol', 'bbweolg', 'bbweolm', 'bbweolb', 'bbweols', 'bbweolt', 'bbweolp', 'bbweolh', 'bbweom', 'bbweob', 'bbweobs', 'bbweos', 'bbweoss', 'bbweong', 'bbweoj', 'bbweoc']; <?php return ['bbweok', 'bbweot', 'bbweop', 'bbweoh', 'bbwe', 'bbweg', 'bbwegg', 'bbwegs', 'bbwen', 'bbwenj', 'bbwenh', 'bbwed', 'bbwel', 'bbwelg', 'bbwelm', 'bbwelb', 'bbwels', 'bbwelt', 'bbwelp', 'bbwelh', 'bbwem', 'bbweb', 'bbwebs', 'bbwes', 'bbwess', 'bbweng', 'bbwej', 'bbwec', 'bbwek', 'bbwet', 'bbwep', 'bbweh', 'bbwi', 'bbwig', 'bbwigg', 'bbwigs', 'bbwin', 'bbwinj', 'bbwinh', 'bbwid', 'bbwil', 'bbwilg', 'bbwilm', 'bbwilb', 'bbwils', 'bbwilt', 'bbwilp', 'bbwilh', 'bbwim', 'bbwib', 'bbwibs', 'bbwis', 'bbwiss', 'bbwing', 'bbwij', 'bbwic', 'bbwik', 'bbwit', 'bbwip', 'bbwih', 'bbyu', 'bbyug', 'bbyugg', 'bbyugs', 'bbyun', 'bbyunj', 'bbyunh', 'bbyud', 'bbyul', 'bbyulg', 'bbyulm', 'bbyulb', 'bbyuls', 'bbyult', 'bbyulp', 'bbyulh', 'bbyum', 'bbyub', 'bbyubs', 'bbyus', 'bbyuss', 'bbyung', 'bbyuj', 'bbyuc', 'bbyuk', 'bbyut', 'bbyup', 'bbyuh', 'bbeu', 'bbeug', 'bbeugg', 'bbeugs', 'bbeun', 'bbeunj', 'bbeunh', 'bbeud', 'bbeul', 'bbeulg', 'bbeulm', 'bbeulb', 'bbeuls', 'bbeult', 'bbeulp', 'bbeulh', 'bbeum', 'bbeub', 'bbeubs', 'bbeus', 'bbeuss', 'bbeung', 'bbeuj', 'bbeuc', 'bbeuk', 'bbeut', 'bbeup', 'bbeuh', 'bbyi', 'bbyig', 'bbyigg', 'bbyigs', 'bbyin', 'bbyinj', 'bbyinh', 'bbyid', 'bbyil', 'bbyilg', 'bbyilm', 'bbyilb', 'bbyils', 'bbyilt', 'bbyilp', 'bbyilh', 'bbyim', 'bbyib', 'bbyibs', 'bbyis', 'bbyiss', 'bbying', 'bbyij', 'bbyic', 'bbyik', 'bbyit', 'bbyip', 'bbyih', 'bbi', 'bbig', 'bbigg', 'bbigs', 'bbin', 'bbinj', 'bbinh', 'bbid', 'bbil', 'bbilg', 'bbilm', 'bbilb', 'bbils', 'bbilt', 'bbilp', 'bbilh', 'bbim', 'bbib', 'bbibs', 'bbis', 'bbiss', 'bbing', 'bbij', 'bbic', 'bbik', 'bbit', 'bbip', 'bbih', 'sa', 'sag', 'sagg', 'sags', 'san', 'sanj', 'sanh', 'sad', 'sal', 'salg', 'salm', 'salb', 'sals', 'salt', 'salp', 'salh', 'sam', 'sab', 'sabs', 'sas', 'sass', 'sang', 'saj', 'sac', 'sak', 'sat', 'sap', 'sah', 'sae', 'saeg', 'saegg', 'saegs', 'saen', 'saenj', 'saenh', 'saed', 'sael', 'saelg', 'saelm', 'saelb', 'saels', 'saelt', 'saelp', 'saelh', 'saem', 'saeb', 'saebs', 'saes', 'saess', 'saeng', 'saej', 'saec', 'saek', 'saet', 'saep', 'saeh', 'sya', 'syag', 'syagg', 'syags', 'syan', 'syanj', 'syanh', 'syad', 'syal', 'syalg', 'syalm', 'syalb', 'syals', 'syalt', 'syalp', 'syalh', 'syam', 'syab', 'syabs', 'syas', 'syass', 'syang', 'syaj', 'syac', 'syak', 'syat', 'syap', 'syah']; <?php return ['syae', 'syaeg', 'syaegg', 'syaegs', 'syaen', 'syaenj', 'syaenh', 'syaed', 'syael', 'syaelg', 'syaelm', 'syaelb', 'syaels', 'syaelt', 'syaelp', 'syaelh', 'syaem', 'syaeb', 'syaebs', 'syaes', 'syaess', 'syaeng', 'syaej', 'syaec', 'syaek', 'syaet', 'syaep', 'syaeh', 'seo', 'seog', 'seogg', 'seogs', 'seon', 'seonj', 'seonh', 'seod', 'seol', 'seolg', 'seolm', 'seolb', 'seols', 'seolt', 'seolp', 'seolh', 'seom', 'seob', 'seobs', 'seos', 'seoss', 'seong', 'seoj', 'seoc', 'seok', 'seot', 'seop', 'seoh', 'se', 'seg', 'segg', 'segs', 'sen', 'senj', 'senh', 'sed', 'sel', 'selg', 'selm', 'selb', 'sels', 'selt', 'selp', 'selh', 'sem', 'seb', 'sebs', 'ses', 'sess', 'seng', 'sej', 'sec', 'sek', 'set', 'sep', 'seh', 'syeo', 'syeog', 'syeogg', 'syeogs', 'syeon', 'syeonj', 'syeonh', 'syeod', 'syeol', 'syeolg', 'syeolm', 'syeolb', 'syeols', 'syeolt', 'syeolp', 'syeolh', 'syeom', 'syeob', 'syeobs', 'syeos', 'syeoss', 'syeong', 'syeoj', 'syeoc', 'syeok', 'syeot', 'syeop', 'syeoh', 'sye', 'syeg', 'syegg', 'syegs', 'syen', 'syenj', 'syenh', 'syed', 'syel', 'syelg', 'syelm', 'syelb', 'syels', 'syelt', 'syelp', 'syelh', 'syem', 'syeb', 'syebs', 'syes', 'syess', 'syeng', 'syej', 'syec', 'syek', 'syet', 'syep', 'syeh', 'so', 'sog', 'sogg', 'sogs', 'son', 'sonj', 'sonh', 'sod', 'sol', 'solg', 'solm', 'solb', 'sols', 'solt', 'solp', 'solh', 'som', 'sob', 'sobs', 'sos', 'soss', 'song', 'soj', 'soc', 'sok', 'sot', 'sop', 'soh', 'swa', 'swag', 'swagg', 'swags', 'swan', 'swanj', 'swanh', 'swad', 'swal', 'swalg', 'swalm', 'swalb', 'swals', 'swalt', 'swalp', 'swalh', 'swam', 'swab', 'swabs', 'swas', 'swass', 'swang', 'swaj', 'swac', 'swak', 'swat', 'swap', 'swah', 'swae', 'swaeg', 'swaegg', 'swaegs', 'swaen', 'swaenj', 'swaenh', 'swaed', 'swael', 'swaelg', 'swaelm', 'swaelb', 'swaels', 'swaelt', 'swaelp', 'swaelh', 'swaem', 'swaeb', 'swaebs', 'swaes', 'swaess', 'swaeng', 'swaej', 'swaec', 'swaek', 'swaet', 'swaep', 'swaeh', 'soe', 'soeg', 'soegg', 'soegs', 'soen', 'soenj', 'soenh', 'soed', 'soel', 'soelg', 'soelm', 'soelb', 'soels', 'soelt', 'soelp', 'soelh', 'soem', 'soeb', 'soebs', 'soes', 'soess', 'soeng', 'soej', 'soec', 'soek', 'soet', 'soep', 'soeh', 'syo', 'syog', 'syogg', 'syogs']; <?php return ['syon', 'syonj', 'syonh', 'syod', 'syol', 'syolg', 'syolm', 'syolb', 'syols', 'syolt', 'syolp', 'syolh', 'syom', 'syob', 'syobs', 'syos', 'syoss', 'syong', 'syoj', 'syoc', 'syok', 'syot', 'syop', 'syoh', 'su', 'sug', 'sugg', 'sugs', 'sun', 'sunj', 'sunh', 'sud', 'sul', 'sulg', 'sulm', 'sulb', 'suls', 'sult', 'sulp', 'sulh', 'sum', 'sub', 'subs', 'sus', 'suss', 'sung', 'suj', 'suc', 'suk', 'sut', 'sup', 'suh', 'sweo', 'sweog', 'sweogg', 'sweogs', 'sweon', 'sweonj', 'sweonh', 'sweod', 'sweol', 'sweolg', 'sweolm', 'sweolb', 'sweols', 'sweolt', 'sweolp', 'sweolh', 'sweom', 'sweob', 'sweobs', 'sweos', 'sweoss', 'sweong', 'sweoj', 'sweoc', 'sweok', 'sweot', 'sweop', 'sweoh', 'swe', 'sweg', 'swegg', 'swegs', 'swen', 'swenj', 'swenh', 'swed', 'swel', 'swelg', 'swelm', 'swelb', 'swels', 'swelt', 'swelp', 'swelh', 'swem', 'sweb', 'swebs', 'swes', 'swess', 'sweng', 'swej', 'swec', 'swek', 'swet', 'swep', 'sweh', 'swi', 'swig', 'swigg', 'swigs', 'swin', 'swinj', 'swinh', 'swid', 'swil', 'swilg', 'swilm', 'swilb', 'swils', 'swilt', 'swilp', 'swilh', 'swim', 'swib', 'swibs', 'swis', 'swiss', 'swing', 'swij', 'swic', 'swik', 'swit', 'swip', 'swih', 'syu', 'syug', 'syugg', 'syugs', 'syun', 'syunj', 'syunh', 'syud', 'syul', 'syulg', 'syulm', 'syulb', 'syuls', 'syult', 'syulp', 'syulh', 'syum', 'syub', 'syubs', 'syus', 'syuss', 'syung', 'syuj', 'syuc', 'syuk', 'syut', 'syup', 'syuh', 'seu', 'seug', 'seugg', 'seugs', 'seun', 'seunj', 'seunh', 'seud', 'seul', 'seulg', 'seulm', 'seulb', 'seuls', 'seult', 'seulp', 'seulh', 'seum', 'seub', 'seubs', 'seus', 'seuss', 'seung', 'seuj', 'seuc', 'seuk', 'seut', 'seup', 'seuh', 'syi', 'syig', 'syigg', 'syigs', 'syin', 'syinj', 'syinh', 'syid', 'syil', 'syilg', 'syilm', 'syilb', 'syils', 'syilt', 'syilp', 'syilh', 'syim', 'syib', 'syibs', 'syis', 'syiss', 'sying', 'syij', 'syic', 'syik', 'syit', 'syip', 'syih', 'si', 'sig', 'sigg', 'sigs', 'sin', 'sinj', 'sinh', 'sid', 'sil', 'silg', 'silm', 'silb', 'sils', 'silt', 'silp', 'silh', 'sim', 'sib', 'sibs', 'sis', 'siss', 'sing', 'sij', 'sic', 'sik', 'sit', 'sip', 'sih', 'ssa', 'ssag', 'ssagg', 'ssags', 'ssan', 'ssanj', 'ssanh', 'ssad']; <?php return ['ssal', 'ssalg', 'ssalm', 'ssalb', 'ssals', 'ssalt', 'ssalp', 'ssalh', 'ssam', 'ssab', 'ssabs', 'ssas', 'ssass', 'ssang', 'ssaj', 'ssac', 'ssak', 'ssat', 'ssap', 'ssah', 'ssae', 'ssaeg', 'ssaegg', 'ssaegs', 'ssaen', 'ssaenj', 'ssaenh', 'ssaed', 'ssael', 'ssaelg', 'ssaelm', 'ssaelb', 'ssaels', 'ssaelt', 'ssaelp', 'ssaelh', 'ssaem', 'ssaeb', 'ssaebs', 'ssaes', 'ssaess', 'ssaeng', 'ssaej', 'ssaec', 'ssaek', 'ssaet', 'ssaep', 'ssaeh', 'ssya', 'ssyag', 'ssyagg', 'ssyags', 'ssyan', 'ssyanj', 'ssyanh', 'ssyad', 'ssyal', 'ssyalg', 'ssyalm', 'ssyalb', 'ssyals', 'ssyalt', 'ssyalp', 'ssyalh', 'ssyam', 'ssyab', 'ssyabs', 'ssyas', 'ssyass', 'ssyang', 'ssyaj', 'ssyac', 'ssyak', 'ssyat', 'ssyap', 'ssyah', 'ssyae', 'ssyaeg', 'ssyaegg', 'ssyaegs', 'ssyaen', 'ssyaenj', 'ssyaenh', 'ssyaed', 'ssyael', 'ssyaelg', 'ssyaelm', 'ssyaelb', 'ssyaels', 'ssyaelt', 'ssyaelp', 'ssyaelh', 'ssyaem', 'ssyaeb', 'ssyaebs', 'ssyaes', 'ssyaess', 'ssyaeng', 'ssyaej', 'ssyaec', 'ssyaek', 'ssyaet', 'ssyaep', 'ssyaeh', 'sseo', 'sseog', 'sseogg', 'sseogs', 'sseon', 'sseonj', 'sseonh', 'sseod', 'sseol', 'sseolg', 'sseolm', 'sseolb', 'sseols', 'sseolt', 'sseolp', 'sseolh', 'sseom', 'sseob', 'sseobs', 'sseos', 'sseoss', 'sseong', 'sseoj', 'sseoc', 'sseok', 'sseot', 'sseop', 'sseoh', 'sse', 'sseg', 'ssegg', 'ssegs', 'ssen', 'ssenj', 'ssenh', 'ssed', 'ssel', 'sselg', 'sselm', 'sselb', 'ssels', 'sselt', 'sselp', 'sselh', 'ssem', 'sseb', 'ssebs', 'sses', 'ssess', 'sseng', 'ssej', 'ssec', 'ssek', 'sset', 'ssep', 'sseh', 'ssyeo', 'ssyeog', 'ssyeogg', 'ssyeogs', 'ssyeon', 'ssyeonj', 'ssyeonh', 'ssyeod', 'ssyeol', 'ssyeolg', 'ssyeolm', 'ssyeolb', 'ssyeols', 'ssyeolt', 'ssyeolp', 'ssyeolh', 'ssyeom', 'ssyeob', 'ssyeobs', 'ssyeos', 'ssyeoss', 'ssyeong', 'ssyeoj', 'ssyeoc', 'ssyeok', 'ssyeot', 'ssyeop', 'ssyeoh', 'ssye', 'ssyeg', 'ssyegg', 'ssyegs', 'ssyen', 'ssyenj', 'ssyenh', 'ssyed', 'ssyel', 'ssyelg', 'ssyelm', 'ssyelb', 'ssyels', 'ssyelt', 'ssyelp', 'ssyelh', 'ssyem', 'ssyeb', 'ssyebs', 'ssyes', 'ssyess', 'ssyeng', 'ssyej', 'ssyec', 'ssyek', 'ssyet', 'ssyep', 'ssyeh', 'sso', 'ssog', 'ssogg', 'ssogs', 'sson', 'ssonj', 'ssonh', 'ssod', 'ssol', 'ssolg', 'ssolm', 'ssolb', 'ssols', 'ssolt', 'ssolp', 'ssolh', 'ssom', 'ssob', 'ssobs', 'ssos', 'ssoss', 'ssong', 'ssoj', 'ssoc', 'ssok', 'ssot', 'ssop', 'ssoh', 'sswa', 'sswag', 'sswagg', 'sswags', 'sswan', 'sswanj', 'sswanh', 'sswad', 'sswal', 'sswalg', 'sswalm', 'sswalb']; <?php return ['sswals', 'sswalt', 'sswalp', 'sswalh', 'sswam', 'sswab', 'sswabs', 'sswas', 'sswass', 'sswang', 'sswaj', 'sswac', 'sswak', 'sswat', 'sswap', 'sswah', 'sswae', 'sswaeg', 'sswaegg', 'sswaegs', 'sswaen', 'sswaenj', 'sswaenh', 'sswaed', 'sswael', 'sswaelg', 'sswaelm', 'sswaelb', 'sswaels', 'sswaelt', 'sswaelp', 'sswaelh', 'sswaem', 'sswaeb', 'sswaebs', 'sswaes', 'sswaess', 'sswaeng', 'sswaej', 'sswaec', 'sswaek', 'sswaet', 'sswaep', 'sswaeh', 'ssoe', 'ssoeg', 'ssoegg', 'ssoegs', 'ssoen', 'ssoenj', 'ssoenh', 'ssoed', 'ssoel', 'ssoelg', 'ssoelm', 'ssoelb', 'ssoels', 'ssoelt', 'ssoelp', 'ssoelh', 'ssoem', 'ssoeb', 'ssoebs', 'ssoes', 'ssoess', 'ssoeng', 'ssoej', 'ssoec', 'ssoek', 'ssoet', 'ssoep', 'ssoeh', 'ssyo', 'ssyog', 'ssyogg', 'ssyogs', 'ssyon', 'ssyonj', 'ssyonh', 'ssyod', 'ssyol', 'ssyolg', 'ssyolm', 'ssyolb', 'ssyols', 'ssyolt', 'ssyolp', 'ssyolh', 'ssyom', 'ssyob', 'ssyobs', 'ssyos', 'ssyoss', 'ssyong', 'ssyoj', 'ssyoc', 'ssyok', 'ssyot', 'ssyop', 'ssyoh', 'ssu', 'ssug', 'ssugg', 'ssugs', 'ssun', 'ssunj', 'ssunh', 'ssud', 'ssul', 'ssulg', 'ssulm', 'ssulb', 'ssuls', 'ssult', 'ssulp', 'ssulh', 'ssum', 'ssub', 'ssubs', 'ssus', 'ssuss', 'ssung', 'ssuj', 'ssuc', 'ssuk', 'ssut', 'ssup', 'ssuh', 'ssweo', 'ssweog', 'ssweogg', 'ssweogs', 'ssweon', 'ssweonj', 'ssweonh', 'ssweod', 'ssweol', 'ssweolg', 'ssweolm', 'ssweolb', 'ssweols', 'ssweolt', 'ssweolp', 'ssweolh', 'ssweom', 'ssweob', 'ssweobs', 'ssweos', 'ssweoss', 'ssweong', 'ssweoj', 'ssweoc', 'ssweok', 'ssweot', 'ssweop', 'ssweoh', 'sswe', 'ssweg', 'sswegg', 'sswegs', 'sswen', 'sswenj', 'sswenh', 'sswed', 'sswel', 'sswelg', 'sswelm', 'sswelb', 'sswels', 'sswelt', 'sswelp', 'sswelh', 'sswem', 'ssweb', 'sswebs', 'sswes', 'sswess', 'ssweng', 'sswej', 'sswec', 'sswek', 'sswet', 'sswep', 'ssweh', 'sswi', 'sswig', 'sswigg', 'sswigs', 'sswin', 'sswinj', 'sswinh', 'sswid', 'sswil', 'sswilg', 'sswilm', 'sswilb', 'sswils', 'sswilt', 'sswilp', 'sswilh', 'sswim', 'sswib', 'sswibs', 'sswis', 'sswiss', 'sswing', 'sswij', 'sswic', 'sswik', 'sswit', 'sswip', 'sswih', 'ssyu', 'ssyug', 'ssyugg', 'ssyugs', 'ssyun', 'ssyunj', 'ssyunh', 'ssyud', 'ssyul', 'ssyulg', 'ssyulm', 'ssyulb', 'ssyuls', 'ssyult', 'ssyulp', 'ssyulh', 'ssyum', 'ssyub', 'ssyubs', 'ssyus', 'ssyuss', 'ssyung', 'ssyuj', 'ssyuc', 'ssyuk', 'ssyut', 'ssyup', 'ssyuh', 'sseu', 'sseug', 'sseugg', 'sseugs', 'sseun', 'sseunj', 'sseunh', 'sseud', 'sseul', 'sseulg', 'sseulm', 'sseulb', 'sseuls', 'sseult', 'sseulp', 'sseulh']; <?php return ['sseum', 'sseub', 'sseubs', 'sseus', 'sseuss', 'sseung', 'sseuj', 'sseuc', 'sseuk', 'sseut', 'sseup', 'sseuh', 'ssyi', 'ssyig', 'ssyigg', 'ssyigs', 'ssyin', 'ssyinj', 'ssyinh', 'ssyid', 'ssyil', 'ssyilg', 'ssyilm', 'ssyilb', 'ssyils', 'ssyilt', 'ssyilp', 'ssyilh', 'ssyim', 'ssyib', 'ssyibs', 'ssyis', 'ssyiss', 'ssying', 'ssyij', 'ssyic', 'ssyik', 'ssyit', 'ssyip', 'ssyih', 'ssi', 'ssig', 'ssigg', 'ssigs', 'ssin', 'ssinj', 'ssinh', 'ssid', 'ssil', 'ssilg', 'ssilm', 'ssilb', 'ssils', 'ssilt', 'ssilp', 'ssilh', 'ssim', 'ssib', 'ssibs', 'ssis', 'ssiss', 'ssing', 'ssij', 'ssic', 'ssik', 'ssit', 'ssip', 'ssih', 'a', 'ag', 'agg', 'ags', 'an', 'anj', 'anh', 'ad', 'al', 'alg', 'alm', 'alb', 'als', 'alt', 'alp', 'alh', 'am', 'ab', 'abs', 'as', 'ass', 'ang', 'aj', 'ac', 'ak', 'at', 'ap', 'ah', 'ae', 'aeg', 'aegg', 'aegs', 'aen', 'aenj', 'aenh', 'aed', 'ael', 'aelg', 'aelm', 'aelb', 'aels', 'aelt', 'aelp', 'aelh', 'aem', 'aeb', 'aebs', 'aes', 'aess', 'aeng', 'aej', 'aec', 'aek', 'aet', 'aep', 'aeh', 'ya', 'yag', 'yagg', 'yags', 'yan', 'yanj', 'yanh', 'yad', 'yal', 'yalg', 'yalm', 'yalb', 'yals', 'yalt', 'yalp', 'yalh', 'yam', 'yab', 'yabs', 'yas', 'yass', 'yang', 'yaj', 'yac', 'yak', 'yat', 'yap', 'yah', 'yae', 'yaeg', 'yaegg', 'yaegs', 'yaen', 'yaenj', 'yaenh', 'yaed', 'yael', 'yaelg', 'yaelm', 'yaelb', 'yaels', 'yaelt', 'yaelp', 'yaelh', 'yaem', 'yaeb', 'yaebs', 'yaes', 'yaess', 'yaeng', 'yaej', 'yaec', 'yaek', 'yaet', 'yaep', 'yaeh', 'eo', 'eog', 'eogg', 'eogs', 'eon', 'eonj', 'eonh', 'eod', 'eol', 'eolg', 'eolm', 'eolb', 'eols', 'eolt', 'eolp', 'eolh', 'eom', 'eob', 'eobs', 'eos', 'eoss', 'eong', 'eoj', 'eoc', 'eok', 'eot', 'eop', 'eoh', 'e', 'eg', 'egg', 'egs', 'en', 'enj', 'enh', 'ed', 'el', 'elg', 'elm', 'elb', 'els', 'elt', 'elp', 'elh', 'em', 'eb', 'ebs', 'es', 'ess', 'eng', 'ej', 'ec', 'ek', 'et', 'ep', 'eh', 'yeo', 'yeog', 'yeogg', 'yeogs', 'yeon', 'yeonj', 'yeonh', 'yeod', 'yeol', 'yeolg', 'yeolm', 'yeolb', 'yeols', 'yeolt', 'yeolp', 'yeolh', 'yeom', 'yeob', 'yeobs', 'yeos']; <?php return ['yeoss', 'yeong', 'yeoj', 'yeoc', 'yeok', 'yeot', 'yeop', 'yeoh', 'ye', 'yeg', 'yegg', 'yegs', 'yen', 'yenj', 'yenh', 'yed', 'yel', 'yelg', 'yelm', 'yelb', 'yels', 'yelt', 'yelp', 'yelh', 'yem', 'yeb', 'yebs', 'yes', 'yess', 'yeng', 'yej', 'yec', 'yek', 'yet', 'yep', 'yeh', 'o', 'og', 'ogg', 'ogs', 'on', 'onj', 'onh', 'od', 'ol', 'olg', 'olm', 'olb', 'ols', 'olt', 'olp', 'olh', 'om', 'ob', 'obs', 'os', 'oss', 'ong', 'oj', 'oc', 'ok', 'ot', 'op', 'oh', 'wa', 'wag', 'wagg', 'wags', 'wan', 'wanj', 'wanh', 'wad', 'wal', 'walg', 'walm', 'walb', 'wals', 'walt', 'walp', 'walh', 'wam', 'wab', 'wabs', 'was', 'wass', 'wang', 'waj', 'wac', 'wak', 'wat', 'wap', 'wah', 'wae', 'waeg', 'waegg', 'waegs', 'waen', 'waenj', 'waenh', 'waed', 'wael', 'waelg', 'waelm', 'waelb', 'waels', 'waelt', 'waelp', 'waelh', 'waem', 'waeb', 'waebs', 'waes', 'waess', 'waeng', 'waej', 'waec', 'waek', 'waet', 'waep', 'waeh', 'oe', 'oeg', 'oegg', 'oegs', 'oen', 'oenj', 'oenh', 'oed', 'oel', 'oelg', 'oelm', 'oelb', 'oels', 'oelt', 'oelp', 'oelh', 'oem', 'oeb', 'oebs', 'oes', 'oess', 'oeng', 'oej', 'oec', 'oek', 'oet', 'oep', 'oeh', 'yo', 'yog', 'yogg', 'yogs', 'yon', 'yonj', 'yonh', 'yod', 'yol', 'yolg', 'yolm', 'yolb', 'yols', 'yolt', 'yolp', 'yolh', 'yom', 'yob', 'yobs', 'yos', 'yoss', 'yong', 'yoj', 'yoc', 'yok', 'yot', 'yop', 'yoh', 'u', 'ug', 'ugg', 'ugs', 'un', 'unj', 'unh', 'ud', 'ul', 'ulg', 'ulm', 'ulb', 'uls', 'ult', 'ulp', 'ulh', 'um', 'ub', 'ubs', 'us', 'uss', 'ung', 'uj', 'uc', 'uk', 'ut', 'up', 'uh', 'weo', 'weog', 'weogg', 'weogs', 'weon', 'weonj', 'weonh', 'weod', 'weol', 'weolg', 'weolm', 'weolb', 'weols', 'weolt', 'weolp', 'weolh', 'weom', 'weob', 'weobs', 'weos', 'weoss', 'weong', 'weoj', 'weoc', 'weok', 'weot', 'weop', 'weoh', 'we', 'weg', 'wegg', 'wegs', 'wen', 'wenj', 'wenh', 'wed', 'wel', 'welg', 'welm', 'welb', 'wels', 'welt', 'welp', 'welh', 'wem', 'web', 'webs', 'wes', 'wess', 'weng', 'wej', 'wec']; <?php return ['wek', 'wet', 'wep', 'weh', 'wi', 'wig', 'wigg', 'wigs', 'win', 'winj', 'winh', 'wid', 'wil', 'wilg', 'wilm', 'wilb', 'wils', 'wilt', 'wilp', 'wilh', 'wim', 'wib', 'wibs', 'wis', 'wiss', 'wing', 'wij', 'wic', 'wik', 'wit', 'wip', 'wih', 'yu', 'yug', 'yugg', 'yugs', 'yun', 'yunj', 'yunh', 'yud', 'yul', 'yulg', 'yulm', 'yulb', 'yuls', 'yult', 'yulp', 'yulh', 'yum', 'yub', 'yubs', 'yus', 'yuss', 'yung', 'yuj', 'yuc', 'yuk', 'yut', 'yup', 'yuh', 'eu', 'eug', 'eugg', 'eugs', 'eun', 'eunj', 'eunh', 'eud', 'eul', 'eulg', 'eulm', 'eulb', 'euls', 'eult', 'eulp', 'eulh', 'eum', 'eub', 'eubs', 'eus', 'euss', 'eung', 'euj', 'euc', 'euk', 'eut', 'eup', 'euh', 'yi', 'yig', 'yigg', 'yigs', 'yin', 'yinj', 'yinh', 'yid', 'yil', 'yilg', 'yilm', 'yilb', 'yils', 'yilt', 'yilp', 'yilh', 'yim', 'yib', 'yibs', 'yis', 'yiss', 'ying', 'yij', 'yic', 'yik', 'yit', 'yip', 'yih', 'i', 'ig', 'igg', 'igs', 'in', 'inj', 'inh', 'id', 'il', 'ilg', 'ilm', 'ilb', 'ils', 'ilt', 'ilp', 'ilh', 'im', 'ib', 'ibs', 'is', 'iss', 'ing', 'ij', 'ic', 'ik', 'it', 'ip', 'ih', 'ja', 'jag', 'jagg', 'jags', 'jan', 'janj', 'janh', 'jad', 'jal', 'jalg', 'jalm', 'jalb', 'jals', 'jalt', 'jalp', 'jalh', 'jam', 'jab', 'jabs', 'jas', 'jass', 'jang', 'jaj', 'jac', 'jak', 'jat', 'jap', 'jah', 'jae', 'jaeg', 'jaegg', 'jaegs', 'jaen', 'jaenj', 'jaenh', 'jaed', 'jael', 'jaelg', 'jaelm', 'jaelb', 'jaels', 'jaelt', 'jaelp', 'jaelh', 'jaem', 'jaeb', 'jaebs', 'jaes', 'jaess', 'jaeng', 'jaej', 'jaec', 'jaek', 'jaet', 'jaep', 'jaeh', 'jya', 'jyag', 'jyagg', 'jyags', 'jyan', 'jyanj', 'jyanh', 'jyad', 'jyal', 'jyalg', 'jyalm', 'jyalb', 'jyals', 'jyalt', 'jyalp', 'jyalh', 'jyam', 'jyab', 'jyabs', 'jyas', 'jyass', 'jyang', 'jyaj', 'jyac', 'jyak', 'jyat', 'jyap', 'jyah', 'jyae', 'jyaeg', 'jyaegg', 'jyaegs', 'jyaen', 'jyaenj', 'jyaenh', 'jyaed', 'jyael', 'jyaelg', 'jyaelm', 'jyaelb', 'jyaels', 'jyaelt', 'jyaelp', 'jyaelh', 'jyaem', 'jyaeb', 'jyaebs', 'jyaes', 'jyaess', 'jyaeng', 'jyaej', 'jyaec', 'jyaek', 'jyaet', 'jyaep', 'jyaeh']; <?php return ['jeo', 'jeog', 'jeogg', 'jeogs', 'jeon', 'jeonj', 'jeonh', 'jeod', 'jeol', 'jeolg', 'jeolm', 'jeolb', 'jeols', 'jeolt', 'jeolp', 'jeolh', 'jeom', 'jeob', 'jeobs', 'jeos', 'jeoss', 'jeong', 'jeoj', 'jeoc', 'jeok', 'jeot', 'jeop', 'jeoh', 'je', 'jeg', 'jegg', 'jegs', 'jen', 'jenj', 'jenh', 'jed', 'jel', 'jelg', 'jelm', 'jelb', 'jels', 'jelt', 'jelp', 'jelh', 'jem', 'jeb', 'jebs', 'jes', 'jess', 'jeng', 'jej', 'jec', 'jek', 'jet', 'jep', 'jeh', 'jyeo', 'jyeog', 'jyeogg', 'jyeogs', 'jyeon', 'jyeonj', 'jyeonh', 'jyeod', 'jyeol', 'jyeolg', 'jyeolm', 'jyeolb', 'jyeols', 'jyeolt', 'jyeolp', 'jyeolh', 'jyeom', 'jyeob', 'jyeobs', 'jyeos', 'jyeoss', 'jyeong', 'jyeoj', 'jyeoc', 'jyeok', 'jyeot', 'jyeop', 'jyeoh', 'jye', 'jyeg', 'jyegg', 'jyegs', 'jyen', 'jyenj', 'jyenh', 'jyed', 'jyel', 'jyelg', 'jyelm', 'jyelb', 'jyels', 'jyelt', 'jyelp', 'jyelh', 'jyem', 'jyeb', 'jyebs', 'jyes', 'jyess', 'jyeng', 'jyej', 'jyec', 'jyek', 'jyet', 'jyep', 'jyeh', 'jo', 'jog', 'jogg', 'jogs', 'jon', 'jonj', 'jonh', 'jod', 'jol', 'jolg', 'jolm', 'jolb', 'jols', 'jolt', 'jolp', 'jolh', 'jom', 'job', 'jobs', 'jos', 'joss', 'jong', 'joj', 'joc', 'jok', 'jot', 'jop', 'joh', 'jwa', 'jwag', 'jwagg', 'jwags', 'jwan', 'jwanj', 'jwanh', 'jwad', 'jwal', 'jwalg', 'jwalm', 'jwalb', 'jwals', 'jwalt', 'jwalp', 'jwalh', 'jwam', 'jwab', 'jwabs', 'jwas', 'jwass', 'jwang', 'jwaj', 'jwac', 'jwak', 'jwat', 'jwap', 'jwah', 'jwae', 'jwaeg', 'jwaegg', 'jwaegs', 'jwaen', 'jwaenj', 'jwaenh', 'jwaed', 'jwael', 'jwaelg', 'jwaelm', 'jwaelb', 'jwaels', 'jwaelt', 'jwaelp', 'jwaelh', 'jwaem', 'jwaeb', 'jwaebs', 'jwaes', 'jwaess', 'jwaeng', 'jwaej', 'jwaec', 'jwaek', 'jwaet', 'jwaep', 'jwaeh', 'joe', 'joeg', 'joegg', 'joegs', 'joen', 'joenj', 'joenh', 'joed', 'joel', 'joelg', 'joelm', 'joelb', 'joels', 'joelt', 'joelp', 'joelh', 'joem', 'joeb', 'joebs', 'joes', 'joess', 'joeng', 'joej', 'joec', 'joek', 'joet', 'joep', 'joeh', 'jyo', 'jyog', 'jyogg', 'jyogs', 'jyon', 'jyonj', 'jyonh', 'jyod', 'jyol', 'jyolg', 'jyolm', 'jyolb', 'jyols', 'jyolt', 'jyolp', 'jyolh', 'jyom', 'jyob', 'jyobs', 'jyos', 'jyoss', 'jyong', 'jyoj', 'jyoc', 'jyok', 'jyot', 'jyop', 'jyoh', 'ju', 'jug', 'jugg', 'jugs']; <?php return ['jun', 'junj', 'junh', 'jud', 'jul', 'julg', 'julm', 'julb', 'juls', 'jult', 'julp', 'julh', 'jum', 'jub', 'jubs', 'jus', 'juss', 'jung', 'juj', 'juc', 'juk', 'jut', 'jup', 'juh', 'jweo', 'jweog', 'jweogg', 'jweogs', 'jweon', 'jweonj', 'jweonh', 'jweod', 'jweol', 'jweolg', 'jweolm', 'jweolb', 'jweols', 'jweolt', 'jweolp', 'jweolh', 'jweom', 'jweob', 'jweobs', 'jweos', 'jweoss', 'jweong', 'jweoj', 'jweoc', 'jweok', 'jweot', 'jweop', 'jweoh', 'jwe', 'jweg', 'jwegg', 'jwegs', 'jwen', 'jwenj', 'jwenh', 'jwed', 'jwel', 'jwelg', 'jwelm', 'jwelb', 'jwels', 'jwelt', 'jwelp', 'jwelh', 'jwem', 'jweb', 'jwebs', 'jwes', 'jwess', 'jweng', 'jwej', 'jwec', 'jwek', 'jwet', 'jwep', 'jweh', 'jwi', 'jwig', 'jwigg', 'jwigs', 'jwin', 'jwinj', 'jwinh', 'jwid', 'jwil', 'jwilg', 'jwilm', 'jwilb', 'jwils', 'jwilt', 'jwilp', 'jwilh', 'jwim', 'jwib', 'jwibs', 'jwis', 'jwiss', 'jwing', 'jwij', 'jwic', 'jwik', 'jwit', 'jwip', 'jwih', 'jyu', 'jyug', 'jyugg', 'jyugs', 'jyun', 'jyunj', 'jyunh', 'jyud', 'jyul', 'jyulg', 'jyulm', 'jyulb', 'jyuls', 'jyult', 'jyulp', 'jyulh', 'jyum', 'jyub', 'jyubs', 'jyus', 'jyuss', 'jyung', 'jyuj', 'jyuc', 'jyuk', 'jyut', 'jyup', 'jyuh', 'jeu', 'jeug', 'jeugg', 'jeugs', 'jeun', 'jeunj', 'jeunh', 'jeud', 'jeul', 'jeulg', 'jeulm', 'jeulb', 'jeuls', 'jeult', 'jeulp', 'jeulh', 'jeum', 'jeub', 'jeubs', 'jeus', 'jeuss', 'jeung', 'jeuj', 'jeuc', 'jeuk', 'jeut', 'jeup', 'jeuh', 'jyi', 'jyig', 'jyigg', 'jyigs', 'jyin', 'jyinj', 'jyinh', 'jyid', 'jyil', 'jyilg', 'jyilm', 'jyilb', 'jyils', 'jyilt', 'jyilp', 'jyilh', 'jyim', 'jyib', 'jyibs', 'jyis', 'jyiss', 'jying', 'jyij', 'jyic', 'jyik', 'jyit', 'jyip', 'jyih', 'ji', 'jig', 'jigg', 'jigs', 'jin', 'jinj', 'jinh', 'jid', 'jil', 'jilg', 'jilm', 'jilb', 'jils', 'jilt', 'jilp', 'jilh', 'jim', 'jib', 'jibs', 'jis', 'jiss', 'jing', 'jij', 'jic', 'jik', 'jit', 'jip', 'jih', 'jja', 'jjag', 'jjagg', 'jjags', 'jjan', 'jjanj', 'jjanh', 'jjad', 'jjal', 'jjalg', 'jjalm', 'jjalb', 'jjals', 'jjalt', 'jjalp', 'jjalh', 'jjam', 'jjab', 'jjabs', 'jjas', 'jjass', 'jjang', 'jjaj', 'jjac', 'jjak', 'jjat', 'jjap', 'jjah', 'jjae', 'jjaeg', 'jjaegg', 'jjaegs', 'jjaen', 'jjaenj', 'jjaenh', 'jjaed']; <?php return ['jjael', 'jjaelg', 'jjaelm', 'jjaelb', 'jjaels', 'jjaelt', 'jjaelp', 'jjaelh', 'jjaem', 'jjaeb', 'jjaebs', 'jjaes', 'jjaess', 'jjaeng', 'jjaej', 'jjaec', 'jjaek', 'jjaet', 'jjaep', 'jjaeh', 'jjya', 'jjyag', 'jjyagg', 'jjyags', 'jjyan', 'jjyanj', 'jjyanh', 'jjyad', 'jjyal', 'jjyalg', 'jjyalm', 'jjyalb', 'jjyals', 'jjyalt', 'jjyalp', 'jjyalh', 'jjyam', 'jjyab', 'jjyabs', 'jjyas', 'jjyass', 'jjyang', 'jjyaj', 'jjyac', 'jjyak', 'jjyat', 'jjyap', 'jjyah', 'jjyae', 'jjyaeg', 'jjyaegg', 'jjyaegs', 'jjyaen', 'jjyaenj', 'jjyaenh', 'jjyaed', 'jjyael', 'jjyaelg', 'jjyaelm', 'jjyaelb', 'jjyaels', 'jjyaelt', 'jjyaelp', 'jjyaelh', 'jjyaem', 'jjyaeb', 'jjyaebs', 'jjyaes', 'jjyaess', 'jjyaeng', 'jjyaej', 'jjyaec', 'jjyaek', 'jjyaet', 'jjyaep', 'jjyaeh', 'jjeo', 'jjeog', 'jjeogg', 'jjeogs', 'jjeon', 'jjeonj', 'jjeonh', 'jjeod', 'jjeol', 'jjeolg', 'jjeolm', 'jjeolb', 'jjeols', 'jjeolt', 'jjeolp', 'jjeolh', 'jjeom', 'jjeob', 'jjeobs', 'jjeos', 'jjeoss', 'jjeong', 'jjeoj', 'jjeoc', 'jjeok', 'jjeot', 'jjeop', 'jjeoh', 'jje', 'jjeg', 'jjegg', 'jjegs', 'jjen', 'jjenj', 'jjenh', 'jjed', 'jjel', 'jjelg', 'jjelm', 'jjelb', 'jjels', 'jjelt', 'jjelp', 'jjelh', 'jjem', 'jjeb', 'jjebs', 'jjes', 'jjess', 'jjeng', 'jjej', 'jjec', 'jjek', 'jjet', 'jjep', 'jjeh', 'jjyeo', 'jjyeog', 'jjyeogg', 'jjyeogs', 'jjyeon', 'jjyeonj', 'jjyeonh', 'jjyeod', 'jjyeol', 'jjyeolg', 'jjyeolm', 'jjyeolb', 'jjyeols', 'jjyeolt', 'jjyeolp', 'jjyeolh', 'jjyeom', 'jjyeob', 'jjyeobs', 'jjyeos', 'jjyeoss', 'jjyeong', 'jjyeoj', 'jjyeoc', 'jjyeok', 'jjyeot', 'jjyeop', 'jjyeoh', 'jjye', 'jjyeg', 'jjyegg', 'jjyegs', 'jjyen', 'jjyenj', 'jjyenh', 'jjyed', 'jjyel', 'jjyelg', 'jjyelm', 'jjyelb', 'jjyels', 'jjyelt', 'jjyelp', 'jjyelh', 'jjyem', 'jjyeb', 'jjyebs', 'jjyes', 'jjyess', 'jjyeng', 'jjyej', 'jjyec', 'jjyek', 'jjyet', 'jjyep', 'jjyeh', 'jjo', 'jjog', 'jjogg', 'jjogs', 'jjon', 'jjonj', 'jjonh', 'jjod', 'jjol', 'jjolg', 'jjolm', 'jjolb', 'jjols', 'jjolt', 'jjolp', 'jjolh', 'jjom', 'jjob', 'jjobs', 'jjos', 'jjoss', 'jjong', 'jjoj', 'jjoc', 'jjok', 'jjot', 'jjop', 'jjoh', 'jjwa', 'jjwag', 'jjwagg', 'jjwags', 'jjwan', 'jjwanj', 'jjwanh', 'jjwad', 'jjwal', 'jjwalg', 'jjwalm', 'jjwalb', 'jjwals', 'jjwalt', 'jjwalp', 'jjwalh', 'jjwam', 'jjwab', 'jjwabs', 'jjwas', 'jjwass', 'jjwang', 'jjwaj', 'jjwac', 'jjwak', 'jjwat', 'jjwap', 'jjwah', 'jjwae', 'jjwaeg', 'jjwaegg', 'jjwaegs', 'jjwaen', 'jjwaenj', 'jjwaenh', 'jjwaed', 'jjwael', 'jjwaelg', 'jjwaelm', 'jjwaelb']; <?php return ['jjwaels', 'jjwaelt', 'jjwaelp', 'jjwaelh', 'jjwaem', 'jjwaeb', 'jjwaebs', 'jjwaes', 'jjwaess', 'jjwaeng', 'jjwaej', 'jjwaec', 'jjwaek', 'jjwaet', 'jjwaep', 'jjwaeh', 'jjoe', 'jjoeg', 'jjoegg', 'jjoegs', 'jjoen', 'jjoenj', 'jjoenh', 'jjoed', 'jjoel', 'jjoelg', 'jjoelm', 'jjoelb', 'jjoels', 'jjoelt', 'jjoelp', 'jjoelh', 'jjoem', 'jjoeb', 'jjoebs', 'jjoes', 'jjoess', 'jjoeng', 'jjoej', 'jjoec', 'jjoek', 'jjoet', 'jjoep', 'jjoeh', 'jjyo', 'jjyog', 'jjyogg', 'jjyogs', 'jjyon', 'jjyonj', 'jjyonh', 'jjyod', 'jjyol', 'jjyolg', 'jjyolm', 'jjyolb', 'jjyols', 'jjyolt', 'jjyolp', 'jjyolh', 'jjyom', 'jjyob', 'jjyobs', 'jjyos', 'jjyoss', 'jjyong', 'jjyoj', 'jjyoc', 'jjyok', 'jjyot', 'jjyop', 'jjyoh', 'jju', 'jjug', 'jjugg', 'jjugs', 'jjun', 'jjunj', 'jjunh', 'jjud', 'jjul', 'jjulg', 'jjulm', 'jjulb', 'jjuls', 'jjult', 'jjulp', 'jjulh', 'jjum', 'jjub', 'jjubs', 'jjus', 'jjuss', 'jjung', 'jjuj', 'jjuc', 'jjuk', 'jjut', 'jjup', 'jjuh', 'jjweo', 'jjweog', 'jjweogg', 'jjweogs', 'jjweon', 'jjweonj', 'jjweonh', 'jjweod', 'jjweol', 'jjweolg', 'jjweolm', 'jjweolb', 'jjweols', 'jjweolt', 'jjweolp', 'jjweolh', 'jjweom', 'jjweob', 'jjweobs', 'jjweos', 'jjweoss', 'jjweong', 'jjweoj', 'jjweoc', 'jjweok', 'jjweot', 'jjweop', 'jjweoh', 'jjwe', 'jjweg', 'jjwegg', 'jjwegs', 'jjwen', 'jjwenj', 'jjwenh', 'jjwed', 'jjwel', 'jjwelg', 'jjwelm', 'jjwelb', 'jjwels', 'jjwelt', 'jjwelp', 'jjwelh', 'jjwem', 'jjweb', 'jjwebs', 'jjwes', 'jjwess', 'jjweng', 'jjwej', 'jjwec', 'jjwek', 'jjwet', 'jjwep', 'jjweh', 'jjwi', 'jjwig', 'jjwigg', 'jjwigs', 'jjwin', 'jjwinj', 'jjwinh', 'jjwid', 'jjwil', 'jjwilg', 'jjwilm', 'jjwilb', 'jjwils', 'jjwilt', 'jjwilp', 'jjwilh', 'jjwim', 'jjwib', 'jjwibs', 'jjwis', 'jjwiss', 'jjwing', 'jjwij', 'jjwic', 'jjwik', 'jjwit', 'jjwip', 'jjwih', 'jjyu', 'jjyug', 'jjyugg', 'jjyugs', 'jjyun', 'jjyunj', 'jjyunh', 'jjyud', 'jjyul', 'jjyulg', 'jjyulm', 'jjyulb', 'jjyuls', 'jjyult', 'jjyulp', 'jjyulh', 'jjyum', 'jjyub', 'jjyubs', 'jjyus', 'jjyuss', 'jjyung', 'jjyuj', 'jjyuc', 'jjyuk', 'jjyut', 'jjyup', 'jjyuh', 'jjeu', 'jjeug', 'jjeugg', 'jjeugs', 'jjeun', 'jjeunj', 'jjeunh', 'jjeud', 'jjeul', 'jjeulg', 'jjeulm', 'jjeulb', 'jjeuls', 'jjeult', 'jjeulp', 'jjeulh', 'jjeum', 'jjeub', 'jjeubs', 'jjeus', 'jjeuss', 'jjeung', 'jjeuj', 'jjeuc', 'jjeuk', 'jjeut', 'jjeup', 'jjeuh', 'jjyi', 'jjyig', 'jjyigg', 'jjyigs', 'jjyin', 'jjyinj', 'jjyinh', 'jjyid', 'jjyil', 'jjyilg', 'jjyilm', 'jjyilb', 'jjyils', 'jjyilt', 'jjyilp', 'jjyilh']; <?php return ['jjyim', 'jjyib', 'jjyibs', 'jjyis', 'jjyiss', 'jjying', 'jjyij', 'jjyic', 'jjyik', 'jjyit', 'jjyip', 'jjyih', 'jji', 'jjig', 'jjigg', 'jjigs', 'jjin', 'jjinj', 'jjinh', 'jjid', 'jjil', 'jjilg', 'jjilm', 'jjilb', 'jjils', 'jjilt', 'jjilp', 'jjilh', 'jjim', 'jjib', 'jjibs', 'jjis', 'jjiss', 'jjing', 'jjij', 'jjic', 'jjik', 'jjit', 'jjip', 'jjih', 'ca', 'cag', 'cagg', 'cags', 'can', 'canj', 'canh', 'cad', 'cal', 'calg', 'calm', 'calb', 'cals', 'calt', 'calp', 'calh', 'cam', 'cab', 'cabs', 'cas', 'cass', 'cang', 'caj', 'cac', 'cak', 'cat', 'cap', 'cah', 'cae', 'caeg', 'caegg', 'caegs', 'caen', 'caenj', 'caenh', 'caed', 'cael', 'caelg', 'caelm', 'caelb', 'caels', 'caelt', 'caelp', 'caelh', 'caem', 'caeb', 'caebs', 'caes', 'caess', 'caeng', 'caej', 'caec', 'caek', 'caet', 'caep', 'caeh', 'cya', 'cyag', 'cyagg', 'cyags', 'cyan', 'cyanj', 'cyanh', 'cyad', 'cyal', 'cyalg', 'cyalm', 'cyalb', 'cyals', 'cyalt', 'cyalp', 'cyalh', 'cyam', 'cyab', 'cyabs', 'cyas', 'cyass', 'cyang', 'cyaj', 'cyac', 'cyak', 'cyat', 'cyap', 'cyah', 'cyae', 'cyaeg', 'cyaegg', 'cyaegs', 'cyaen', 'cyaenj', 'cyaenh', 'cyaed', 'cyael', 'cyaelg', 'cyaelm', 'cyaelb', 'cyaels', 'cyaelt', 'cyaelp', 'cyaelh', 'cyaem', 'cyaeb', 'cyaebs', 'cyaes', 'cyaess', 'cyaeng', 'cyaej', 'cyaec', 'cyaek', 'cyaet', 'cyaep', 'cyaeh', 'ceo', 'ceog', 'ceogg', 'ceogs', 'ceon', 'ceonj', 'ceonh', 'ceod', 'ceol', 'ceolg', 'ceolm', 'ceolb', 'ceols', 'ceolt', 'ceolp', 'ceolh', 'ceom', 'ceob', 'ceobs', 'ceos', 'ceoss', 'ceong', 'ceoj', 'ceoc', 'ceok', 'ceot', 'ceop', 'ceoh', 'ce', 'ceg', 'cegg', 'cegs', 'cen', 'cenj', 'cenh', 'ced', 'cel', 'celg', 'celm', 'celb', 'cels', 'celt', 'celp', 'celh', 'cem', 'ceb', 'cebs', 'ces', 'cess', 'ceng', 'cej', 'cec', 'cek', 'cet', 'cep', 'ceh', 'cyeo', 'cyeog', 'cyeogg', 'cyeogs', 'cyeon', 'cyeonj', 'cyeonh', 'cyeod', 'cyeol', 'cyeolg', 'cyeolm', 'cyeolb', 'cyeols', 'cyeolt', 'cyeolp', 'cyeolh', 'cyeom', 'cyeob', 'cyeobs', 'cyeos', 'cyeoss', 'cyeong', 'cyeoj', 'cyeoc', 'cyeok', 'cyeot', 'cyeop', 'cyeoh', 'cye', 'cyeg', 'cyegg', 'cyegs', 'cyen', 'cyenj', 'cyenh', 'cyed', 'cyel', 'cyelg', 'cyelm', 'cyelb', 'cyels', 'cyelt', 'cyelp', 'cyelh', 'cyem', 'cyeb', 'cyebs', 'cyes']; <?php return ['cyess', 'cyeng', 'cyej', 'cyec', 'cyek', 'cyet', 'cyep', 'cyeh', 'co', 'cog', 'cogg', 'cogs', 'con', 'conj', 'conh', 'cod', 'col', 'colg', 'colm', 'colb', 'cols', 'colt', 'colp', 'colh', 'com', 'cob', 'cobs', 'cos', 'coss', 'cong', 'coj', 'coc', 'cok', 'cot', 'cop', 'coh', 'cwa', 'cwag', 'cwagg', 'cwags', 'cwan', 'cwanj', 'cwanh', 'cwad', 'cwal', 'cwalg', 'cwalm', 'cwalb', 'cwals', 'cwalt', 'cwalp', 'cwalh', 'cwam', 'cwab', 'cwabs', 'cwas', 'cwass', 'cwang', 'cwaj', 'cwac', 'cwak', 'cwat', 'cwap', 'cwah', 'cwae', 'cwaeg', 'cwaegg', 'cwaegs', 'cwaen', 'cwaenj', 'cwaenh', 'cwaed', 'cwael', 'cwaelg', 'cwaelm', 'cwaelb', 'cwaels', 'cwaelt', 'cwaelp', 'cwaelh', 'cwaem', 'cwaeb', 'cwaebs', 'cwaes', 'cwaess', 'cwaeng', 'cwaej', 'cwaec', 'cwaek', 'cwaet', 'cwaep', 'cwaeh', 'coe', 'coeg', 'coegg', 'coegs', 'coen', 'coenj', 'coenh', 'coed', 'coel', 'coelg', 'coelm', 'coelb', 'coels', 'coelt', 'coelp', 'coelh', 'coem', 'coeb', 'coebs', 'coes', 'coess', 'coeng', 'coej', 'coec', 'coek', 'coet', 'coep', 'coeh', 'cyo', 'cyog', 'cyogg', 'cyogs', 'cyon', 'cyonj', 'cyonh', 'cyod', 'cyol', 'cyolg', 'cyolm', 'cyolb', 'cyols', 'cyolt', 'cyolp', 'cyolh', 'cyom', 'cyob', 'cyobs', 'cyos', 'cyoss', 'cyong', 'cyoj', 'cyoc', 'cyok', 'cyot', 'cyop', 'cyoh', 'cu', 'cug', 'cugg', 'cugs', 'cun', 'cunj', 'cunh', 'cud', 'cul', 'culg', 'culm', 'culb', 'culs', 'cult', 'culp', 'culh', 'cum', 'cub', 'cubs', 'cus', 'cuss', 'cung', 'cuj', 'cuc', 'cuk', 'cut', 'cup', 'cuh', 'cweo', 'cweog', 'cweogg', 'cweogs', 'cweon', 'cweonj', 'cweonh', 'cweod', 'cweol', 'cweolg', 'cweolm', 'cweolb', 'cweols', 'cweolt', 'cweolp', 'cweolh', 'cweom', 'cweob', 'cweobs', 'cweos', 'cweoss', 'cweong', 'cweoj', 'cweoc', 'cweok', 'cweot', 'cweop', 'cweoh', 'cwe', 'cweg', 'cwegg', 'cwegs', 'cwen', 'cwenj', 'cwenh', 'cwed', 'cwel', 'cwelg', 'cwelm', 'cwelb', 'cwels', 'cwelt', 'cwelp', 'cwelh', 'cwem', 'cweb', 'cwebs', 'cwes', 'cwess', 'cweng', 'cwej', 'cwec', 'cwek', 'cwet', 'cwep', 'cweh', 'cwi', 'cwig', 'cwigg', 'cwigs', 'cwin', 'cwinj', 'cwinh', 'cwid', 'cwil', 'cwilg', 'cwilm', 'cwilb', 'cwils', 'cwilt', 'cwilp', 'cwilh', 'cwim', 'cwib', 'cwibs', 'cwis', 'cwiss', 'cwing', 'cwij', 'cwic']; <?php return ['cwik', 'cwit', 'cwip', 'cwih', 'cyu', 'cyug', 'cyugg', 'cyugs', 'cyun', 'cyunj', 'cyunh', 'cyud', 'cyul', 'cyulg', 'cyulm', 'cyulb', 'cyuls', 'cyult', 'cyulp', 'cyulh', 'cyum', 'cyub', 'cyubs', 'cyus', 'cyuss', 'cyung', 'cyuj', 'cyuc', 'cyuk', 'cyut', 'cyup', 'cyuh', 'ceu', 'ceug', 'ceugg', 'ceugs', 'ceun', 'ceunj', 'ceunh', 'ceud', 'ceul', 'ceulg', 'ceulm', 'ceulb', 'ceuls', 'ceult', 'ceulp', 'ceulh', 'ceum', 'ceub', 'ceubs', 'ceus', 'ceuss', 'ceung', 'ceuj', 'ceuc', 'ceuk', 'ceut', 'ceup', 'ceuh', 'cyi', 'cyig', 'cyigg', 'cyigs', 'cyin', 'cyinj', 'cyinh', 'cyid', 'cyil', 'cyilg', 'cyilm', 'cyilb', 'cyils', 'cyilt', 'cyilp', 'cyilh', 'cyim', 'cyib', 'cyibs', 'cyis', 'cyiss', 'cying', 'cyij', 'cyic', 'cyik', 'cyit', 'cyip', 'cyih', 'ci', 'cig', 'cigg', 'cigs', 'cin', 'cinj', 'cinh', 'cid', 'cil', 'cilg', 'cilm', 'cilb', 'cils', 'cilt', 'cilp', 'cilh', 'cim', 'cib', 'cibs', 'cis', 'ciss', 'cing', 'cij', 'cic', 'cik', 'cit', 'cip', 'cih', 'ka', 'kag', 'kagg', 'kags', 'kan', 'kanj', 'kanh', 'kad', 'kal', 'kalg', 'kalm', 'kalb', 'kals', 'kalt', 'kalp', 'kalh', 'kam', 'kab', 'kabs', 'kas', 'kass', 'kang', 'kaj', 'kac', 'kak', 'kat', 'kap', 'kah', 'kae', 'kaeg', 'kaegg', 'kaegs', 'kaen', 'kaenj', 'kaenh', 'kaed', 'kael', 'kaelg', 'kaelm', 'kaelb', 'kaels', 'kaelt', 'kaelp', 'kaelh', 'kaem', 'kaeb', 'kaebs', 'kaes', 'kaess', 'kaeng', 'kaej', 'kaec', 'kaek', 'kaet', 'kaep', 'kaeh', 'kya', 'kyag', 'kyagg', 'kyags', 'kyan', 'kyanj', 'kyanh', 'kyad', 'kyal', 'kyalg', 'kyalm', 'kyalb', 'kyals', 'kyalt', 'kyalp', 'kyalh', 'kyam', 'kyab', 'kyabs', 'kyas', 'kyass', 'kyang', 'kyaj', 'kyac', 'kyak', 'kyat', 'kyap', 'kyah', 'kyae', 'kyaeg', 'kyaegg', 'kyaegs', 'kyaen', 'kyaenj', 'kyaenh', 'kyaed', 'kyael', 'kyaelg', 'kyaelm', 'kyaelb', 'kyaels', 'kyaelt', 'kyaelp', 'kyaelh', 'kyaem', 'kyaeb', 'kyaebs', 'kyaes', 'kyaess', 'kyaeng', 'kyaej', 'kyaec', 'kyaek', 'kyaet', 'kyaep', 'kyaeh', 'keo', 'keog', 'keogg', 'keogs', 'keon', 'keonj', 'keonh', 'keod', 'keol', 'keolg', 'keolm', 'keolb', 'keols', 'keolt', 'keolp', 'keolh', 'keom', 'keob', 'keobs', 'keos', 'keoss', 'keong', 'keoj', 'keoc', 'keok', 'keot', 'keop', 'keoh']; <?php return ['ke', 'keg', 'kegg', 'kegs', 'ken', 'kenj', 'kenh', 'ked', 'kel', 'kelg', 'kelm', 'kelb', 'kels', 'kelt', 'kelp', 'kelh', 'kem', 'keb', 'kebs', 'kes', 'kess', 'keng', 'kej', 'kec', 'kek', 'ket', 'kep', 'keh', 'kyeo', 'kyeog', 'kyeogg', 'kyeogs', 'kyeon', 'kyeonj', 'kyeonh', 'kyeod', 'kyeol', 'kyeolg', 'kyeolm', 'kyeolb', 'kyeols', 'kyeolt', 'kyeolp', 'kyeolh', 'kyeom', 'kyeob', 'kyeobs', 'kyeos', 'kyeoss', 'kyeong', 'kyeoj', 'kyeoc', 'kyeok', 'kyeot', 'kyeop', 'kyeoh', 'kye', 'kyeg', 'kyegg', 'kyegs', 'kyen', 'kyenj', 'kyenh', 'kyed', 'kyel', 'kyelg', 'kyelm', 'kyelb', 'kyels', 'kyelt', 'kyelp', 'kyelh', 'kyem', 'kyeb', 'kyebs', 'kyes', 'kyess', 'kyeng', 'kyej', 'kyec', 'kyek', 'kyet', 'kyep', 'kyeh', 'ko', 'kog', 'kogg', 'kogs', 'kon', 'konj', 'konh', 'kod', 'kol', 'kolg', 'kolm', 'kolb', 'kols', 'kolt', 'kolp', 'kolh', 'kom', 'kob', 'kobs', 'kos', 'koss', 'kong', 'koj', 'koc', 'kok', 'kot', 'kop', 'koh', 'kwa', 'kwag', 'kwagg', 'kwags', 'kwan', 'kwanj', 'kwanh', 'kwad', 'kwal', 'kwalg', 'kwalm', 'kwalb', 'kwals', 'kwalt', 'kwalp', 'kwalh', 'kwam', 'kwab', 'kwabs', 'kwas', 'kwass', 'kwang', 'kwaj', 'kwac', 'kwak', 'kwat', 'kwap', 'kwah', 'kwae', 'kwaeg', 'kwaegg', 'kwaegs', 'kwaen', 'kwaenj', 'kwaenh', 'kwaed', 'kwael', 'kwaelg', 'kwaelm', 'kwaelb', 'kwaels', 'kwaelt', 'kwaelp', 'kwaelh', 'kwaem', 'kwaeb', 'kwaebs', 'kwaes', 'kwaess', 'kwaeng', 'kwaej', 'kwaec', 'kwaek', 'kwaet', 'kwaep', 'kwaeh', 'koe', 'koeg', 'koegg', 'koegs', 'koen', 'koenj', 'koenh', 'koed', 'koel', 'koelg', 'koelm', 'koelb', 'koels', 'koelt', 'koelp', 'koelh', 'koem', 'koeb', 'koebs', 'koes', 'koess', 'koeng', 'koej', 'koec', 'koek', 'koet', 'koep', 'koeh', 'kyo', 'kyog', 'kyogg', 'kyogs', 'kyon', 'kyonj', 'kyonh', 'kyod', 'kyol', 'kyolg', 'kyolm', 'kyolb', 'kyols', 'kyolt', 'kyolp', 'kyolh', 'kyom', 'kyob', 'kyobs', 'kyos', 'kyoss', 'kyong', 'kyoj', 'kyoc', 'kyok', 'kyot', 'kyop', 'kyoh', 'ku', 'kug', 'kugg', 'kugs', 'kun', 'kunj', 'kunh', 'kud', 'kul', 'kulg', 'kulm', 'kulb', 'kuls', 'kult', 'kulp', 'kulh', 'kum', 'kub', 'kubs', 'kus', 'kuss', 'kung', 'kuj', 'kuc', 'kuk', 'kut', 'kup', 'kuh', 'kweo', 'kweog', 'kweogg', 'kweogs']; <?php return ['kweon', 'kweonj', 'kweonh', 'kweod', 'kweol', 'kweolg', 'kweolm', 'kweolb', 'kweols', 'kweolt', 'kweolp', 'kweolh', 'kweom', 'kweob', 'kweobs', 'kweos', 'kweoss', 'kweong', 'kweoj', 'kweoc', 'kweok', 'kweot', 'kweop', 'kweoh', 'kwe', 'kweg', 'kwegg', 'kwegs', 'kwen', 'kwenj', 'kwenh', 'kwed', 'kwel', 'kwelg', 'kwelm', 'kwelb', 'kwels', 'kwelt', 'kwelp', 'kwelh', 'kwem', 'kweb', 'kwebs', 'kwes', 'kwess', 'kweng', 'kwej', 'kwec', 'kwek', 'kwet', 'kwep', 'kweh', 'kwi', 'kwig', 'kwigg', 'kwigs', 'kwin', 'kwinj', 'kwinh', 'kwid', 'kwil', 'kwilg', 'kwilm', 'kwilb', 'kwils', 'kwilt', 'kwilp', 'kwilh', 'kwim', 'kwib', 'kwibs', 'kwis', 'kwiss', 'kwing', 'kwij', 'kwic', 'kwik', 'kwit', 'kwip', 'kwih', 'kyu', 'kyug', 'kyugg', 'kyugs', 'kyun', 'kyunj', 'kyunh', 'kyud', 'kyul', 'kyulg', 'kyulm', 'kyulb', 'kyuls', 'kyult', 'kyulp', 'kyulh', 'kyum', 'kyub', 'kyubs', 'kyus', 'kyuss', 'kyung', 'kyuj', 'kyuc', 'kyuk', 'kyut', 'kyup', 'kyuh', 'keu', 'keug', 'keugg', 'keugs', 'keun', 'keunj', 'keunh', 'keud', 'keul', 'keulg', 'keulm', 'keulb', 'keuls', 'keult', 'keulp', 'keulh', 'keum', 'keub', 'keubs', 'keus', 'keuss', 'keung', 'keuj', 'keuc', 'keuk', 'keut', 'keup', 'keuh', 'kyi', 'kyig', 'kyigg', 'kyigs', 'kyin', 'kyinj', 'kyinh', 'kyid', 'kyil', 'kyilg', 'kyilm', 'kyilb', 'kyils', 'kyilt', 'kyilp', 'kyilh', 'kyim', 'kyib', 'kyibs', 'kyis', 'kyiss', 'kying', 'kyij', 'kyic', 'kyik', 'kyit', 'kyip', 'kyih', 'ki', 'kig', 'kigg', 'kigs', 'kin', 'kinj', 'kinh', 'kid', 'kil', 'kilg', 'kilm', 'kilb', 'kils', 'kilt', 'kilp', 'kilh', 'kim', 'kib', 'kibs', 'kis', 'kiss', 'king', 'kij', 'kic', 'kik', 'kit', 'kip', 'kih', 'ta', 'tag', 'tagg', 'tags', 'tan', 'tanj', 'tanh', 'tad', 'tal', 'talg', 'talm', 'talb', 'tals', 'talt', 'talp', 'talh', 'tam', 'tab', 'tabs', 'tas', 'tass', 'tang', 'taj', 'tac', 'tak', 'tat', 'tap', 'tah', 'tae', 'taeg', 'taegg', 'taegs', 'taen', 'taenj', 'taenh', 'taed', 'tael', 'taelg', 'taelm', 'taelb', 'taels', 'taelt', 'taelp', 'taelh', 'taem', 'taeb', 'taebs', 'taes', 'taess', 'taeng', 'taej', 'taec', 'taek', 'taet', 'taep', 'taeh', 'tya', 'tyag', 'tyagg', 'tyags', 'tyan', 'tyanj', 'tyanh', 'tyad']; <?php return ['tyal', 'tyalg', 'tyalm', 'tyalb', 'tyals', 'tyalt', 'tyalp', 'tyalh', 'tyam', 'tyab', 'tyabs', 'tyas', 'tyass', 'tyang', 'tyaj', 'tyac', 'tyak', 'tyat', 'tyap', 'tyah', 'tyae', 'tyaeg', 'tyaegg', 'tyaegs', 'tyaen', 'tyaenj', 'tyaenh', 'tyaed', 'tyael', 'tyaelg', 'tyaelm', 'tyaelb', 'tyaels', 'tyaelt', 'tyaelp', 'tyaelh', 'tyaem', 'tyaeb', 'tyaebs', 'tyaes', 'tyaess', 'tyaeng', 'tyaej', 'tyaec', 'tyaek', 'tyaet', 'tyaep', 'tyaeh', 'teo', 'teog', 'teogg', 'teogs', 'teon', 'teonj', 'teonh', 'teod', 'teol', 'teolg', 'teolm', 'teolb', 'teols', 'teolt', 'teolp', 'teolh', 'teom', 'teob', 'teobs', 'teos', 'teoss', 'teong', 'teoj', 'teoc', 'teok', 'teot', 'teop', 'teoh', 'te', 'teg', 'tegg', 'tegs', 'ten', 'tenj', 'tenh', 'ted', 'tel', 'telg', 'telm', 'telb', 'tels', 'telt', 'telp', 'telh', 'tem', 'teb', 'tebs', 'tes', 'tess', 'teng', 'tej', 'tec', 'tek', 'tet', 'tep', 'teh', 'tyeo', 'tyeog', 'tyeogg', 'tyeogs', 'tyeon', 'tyeonj', 'tyeonh', 'tyeod', 'tyeol', 'tyeolg', 'tyeolm', 'tyeolb', 'tyeols', 'tyeolt', 'tyeolp', 'tyeolh', 'tyeom', 'tyeob', 'tyeobs', 'tyeos', 'tyeoss', 'tyeong', 'tyeoj', 'tyeoc', 'tyeok', 'tyeot', 'tyeop', 'tyeoh', 'tye', 'tyeg', 'tyegg', 'tyegs', 'tyen', 'tyenj', 'tyenh', 'tyed', 'tyel', 'tyelg', 'tyelm', 'tyelb', 'tyels', 'tyelt', 'tyelp', 'tyelh', 'tyem', 'tyeb', 'tyebs', 'tyes', 'tyess', 'tyeng', 'tyej', 'tyec', 'tyek', 'tyet', 'tyep', 'tyeh', 'to', 'tog', 'togg', 'togs', 'ton', 'tonj', 'tonh', 'tod', 'tol', 'tolg', 'tolm', 'tolb', 'tols', 'tolt', 'tolp', 'tolh', 'tom', 'tob', 'tobs', 'tos', 'toss', 'tong', 'toj', 'toc', 'tok', 'tot', 'top', 'toh', 'twa', 'twag', 'twagg', 'twags', 'twan', 'twanj', 'twanh', 'twad', 'twal', 'twalg', 'twalm', 'twalb', 'twals', 'twalt', 'twalp', 'twalh', 'twam', 'twab', 'twabs', 'twas', 'twass', 'twang', 'twaj', 'twac', 'twak', 'twat', 'twap', 'twah', 'twae', 'twaeg', 'twaegg', 'twaegs', 'twaen', 'twaenj', 'twaenh', 'twaed', 'twael', 'twaelg', 'twaelm', 'twaelb', 'twaels', 'twaelt', 'twaelp', 'twaelh', 'twaem', 'twaeb', 'twaebs', 'twaes', 'twaess', 'twaeng', 'twaej', 'twaec', 'twaek', 'twaet', 'twaep', 'twaeh', 'toe', 'toeg', 'toegg', 'toegs', 'toen', 'toenj', 'toenh', 'toed', 'toel', 'toelg', 'toelm', 'toelb']; <?php return ['toels', 'toelt', 'toelp', 'toelh', 'toem', 'toeb', 'toebs', 'toes', 'toess', 'toeng', 'toej', 'toec', 'toek', 'toet', 'toep', 'toeh', 'tyo', 'tyog', 'tyogg', 'tyogs', 'tyon', 'tyonj', 'tyonh', 'tyod', 'tyol', 'tyolg', 'tyolm', 'tyolb', 'tyols', 'tyolt', 'tyolp', 'tyolh', 'tyom', 'tyob', 'tyobs', 'tyos', 'tyoss', 'tyong', 'tyoj', 'tyoc', 'tyok', 'tyot', 'tyop', 'tyoh', 'tu', 'tug', 'tugg', 'tugs', 'tun', 'tunj', 'tunh', 'tud', 'tul', 'tulg', 'tulm', 'tulb', 'tuls', 'tult', 'tulp', 'tulh', 'tum', 'tub', 'tubs', 'tus', 'tuss', 'tung', 'tuj', 'tuc', 'tuk', 'tut', 'tup', 'tuh', 'tweo', 'tweog', 'tweogg', 'tweogs', 'tweon', 'tweonj', 'tweonh', 'tweod', 'tweol', 'tweolg', 'tweolm', 'tweolb', 'tweols', 'tweolt', 'tweolp', 'tweolh', 'tweom', 'tweob', 'tweobs', 'tweos', 'tweoss', 'tweong', 'tweoj', 'tweoc', 'tweok', 'tweot', 'tweop', 'tweoh', 'twe', 'tweg', 'twegg', 'twegs', 'twen', 'twenj', 'twenh', 'twed', 'twel', 'twelg', 'twelm', 'twelb', 'twels', 'twelt', 'twelp', 'twelh', 'twem', 'tweb', 'twebs', 'twes', 'twess', 'tweng', 'twej', 'twec', 'twek', 'twet', 'twep', 'tweh', 'twi', 'twig', 'twigg', 'twigs', 'twin', 'twinj', 'twinh', 'twid', 'twil', 'twilg', 'twilm', 'twilb', 'twils', 'twilt', 'twilp', 'twilh', 'twim', 'twib', 'twibs', 'twis', 'twiss', 'twing', 'twij', 'twic', 'twik', 'twit', 'twip', 'twih', 'tyu', 'tyug', 'tyugg', 'tyugs', 'tyun', 'tyunj', 'tyunh', 'tyud', 'tyul', 'tyulg', 'tyulm', 'tyulb', 'tyuls', 'tyult', 'tyulp', 'tyulh', 'tyum', 'tyub', 'tyubs', 'tyus', 'tyuss', 'tyung', 'tyuj', 'tyuc', 'tyuk', 'tyut', 'tyup', 'tyuh', 'teu', 'teug', 'teugg', 'teugs', 'teun', 'teunj', 'teunh', 'teud', 'teul', 'teulg', 'teulm', 'teulb', 'teuls', 'teult', 'teulp', 'teulh', 'teum', 'teub', 'teubs', 'teus', 'teuss', 'teung', 'teuj', 'teuc', 'teuk', 'teut', 'teup', 'teuh', 'tyi', 'tyig', 'tyigg', 'tyigs', 'tyin', 'tyinj', 'tyinh', 'tyid', 'tyil', 'tyilg', 'tyilm', 'tyilb', 'tyils', 'tyilt', 'tyilp', 'tyilh', 'tyim', 'tyib', 'tyibs', 'tyis', 'tyiss', 'tying', 'tyij', 'tyic', 'tyik', 'tyit', 'tyip', 'tyih', 'ti', 'tig', 'tigg', 'tigs', 'tin', 'tinj', 'tinh', 'tid', 'til', 'tilg', 'tilm', 'tilb', 'tils', 'tilt', 'tilp', 'tilh']; <?php return ['tim', 'tib', 'tibs', 'tis', 'tiss', 'ting', 'tij', 'tic', 'tik', 'tit', 'tip', 'tih', 'pa', 'pag', 'pagg', 'pags', 'pan', 'panj', 'panh', 'pad', 'pal', 'palg', 'palm', 'palb', 'pals', 'palt', 'palp', 'palh', 'pam', 'pab', 'pabs', 'pas', 'pass', 'pang', 'paj', 'pac', 'pak', 'pat', 'pap', 'pah', 'pae', 'paeg', 'paegg', 'paegs', 'paen', 'paenj', 'paenh', 'paed', 'pael', 'paelg', 'paelm', 'paelb', 'paels', 'paelt', 'paelp', 'paelh', 'paem', 'paeb', 'paebs', 'paes', 'paess', 'paeng', 'paej', 'paec', 'paek', 'paet', 'paep', 'paeh', 'pya', 'pyag', 'pyagg', 'pyags', 'pyan', 'pyanj', 'pyanh', 'pyad', 'pyal', 'pyalg', 'pyalm', 'pyalb', 'pyals', 'pyalt', 'pyalp', 'pyalh', 'pyam', 'pyab', 'pyabs', 'pyas', 'pyass', 'pyang', 'pyaj', 'pyac', 'pyak', 'pyat', 'pyap', 'pyah', 'pyae', 'pyaeg', 'pyaegg', 'pyaegs', 'pyaen', 'pyaenj', 'pyaenh', 'pyaed', 'pyael', 'pyaelg', 'pyaelm', 'pyaelb', 'pyaels', 'pyaelt', 'pyaelp', 'pyaelh', 'pyaem', 'pyaeb', 'pyaebs', 'pyaes', 'pyaess', 'pyaeng', 'pyaej', 'pyaec', 'pyaek', 'pyaet', 'pyaep', 'pyaeh', 'peo', 'peog', 'peogg', 'peogs', 'peon', 'peonj', 'peonh', 'peod', 'peol', 'peolg', 'peolm', 'peolb', 'peols', 'peolt', 'peolp', 'peolh', 'peom', 'peob', 'peobs', 'peos', 'peoss', 'peong', 'peoj', 'peoc', 'peok', 'peot', 'peop', 'peoh', 'pe', 'peg', 'pegg', 'pegs', 'pen', 'penj', 'penh', 'ped', 'pel', 'pelg', 'pelm', 'pelb', 'pels', 'pelt', 'pelp', 'pelh', 'pem', 'peb', 'pebs', 'pes', 'pess', 'peng', 'pej', 'pec', 'pek', 'pet', 'pep', 'peh', 'pyeo', 'pyeog', 'pyeogg', 'pyeogs', 'pyeon', 'pyeonj', 'pyeonh', 'pyeod', 'pyeol', 'pyeolg', 'pyeolm', 'pyeolb', 'pyeols', 'pyeolt', 'pyeolp', 'pyeolh', 'pyeom', 'pyeob', 'pyeobs', 'pyeos', 'pyeoss', 'pyeong', 'pyeoj', 'pyeoc', 'pyeok', 'pyeot', 'pyeop', 'pyeoh', 'pye', 'pyeg', 'pyegg', 'pyegs', 'pyen', 'pyenj', 'pyenh', 'pyed', 'pyel', 'pyelg', 'pyelm', 'pyelb', 'pyels', 'pyelt', 'pyelp', 'pyelh', 'pyem', 'pyeb', 'pyebs', 'pyes', 'pyess', 'pyeng', 'pyej', 'pyec', 'pyek', 'pyet', 'pyep', 'pyeh', 'po', 'pog', 'pogg', 'pogs', 'pon', 'ponj', 'ponh', 'pod', 'pol', 'polg', 'polm', 'polb', 'pols', 'polt', 'polp', 'polh', 'pom', 'pob', 'pobs', 'pos']; <?php return ['poss', 'pong', 'poj', 'poc', 'pok', 'pot', 'pop', 'poh', 'pwa', 'pwag', 'pwagg', 'pwags', 'pwan', 'pwanj', 'pwanh', 'pwad', 'pwal', 'pwalg', 'pwalm', 'pwalb', 'pwals', 'pwalt', 'pwalp', 'pwalh', 'pwam', 'pwab', 'pwabs', 'pwas', 'pwass', 'pwang', 'pwaj', 'pwac', 'pwak', 'pwat', 'pwap', 'pwah', 'pwae', 'pwaeg', 'pwaegg', 'pwaegs', 'pwaen', 'pwaenj', 'pwaenh', 'pwaed', 'pwael', 'pwaelg', 'pwaelm', 'pwaelb', 'pwaels', 'pwaelt', 'pwaelp', 'pwaelh', 'pwaem', 'pwaeb', 'pwaebs', 'pwaes', 'pwaess', 'pwaeng', 'pwaej', 'pwaec', 'pwaek', 'pwaet', 'pwaep', 'pwaeh', 'poe', 'poeg', 'poegg', 'poegs', 'poen', 'poenj', 'poenh', 'poed', 'poel', 'poelg', 'poelm', 'poelb', 'poels', 'poelt', 'poelp', 'poelh', 'poem', 'poeb', 'poebs', 'poes', 'poess', 'poeng', 'poej', 'poec', 'poek', 'poet', 'poep', 'poeh', 'pyo', 'pyog', 'pyogg', 'pyogs', 'pyon', 'pyonj', 'pyonh', 'pyod', 'pyol', 'pyolg', 'pyolm', 'pyolb', 'pyols', 'pyolt', 'pyolp', 'pyolh', 'pyom', 'pyob', 'pyobs', 'pyos', 'pyoss', 'pyong', 'pyoj', 'pyoc', 'pyok', 'pyot', 'pyop', 'pyoh', 'pu', 'pug', 'pugg', 'pugs', 'pun', 'punj', 'punh', 'pud', 'pul', 'pulg', 'pulm', 'pulb', 'puls', 'pult', 'pulp', 'pulh', 'pum', 'pub', 'pubs', 'pus', 'puss', 'pung', 'puj', 'puc', 'puk', 'put', 'pup', 'puh', 'pweo', 'pweog', 'pweogg', 'pweogs', 'pweon', 'pweonj', 'pweonh', 'pweod', 'pweol', 'pweolg', 'pweolm', 'pweolb', 'pweols', 'pweolt', 'pweolp', 'pweolh', 'pweom', 'pweob', 'pweobs', 'pweos', 'pweoss', 'pweong', 'pweoj', 'pweoc', 'pweok', 'pweot', 'pweop', 'pweoh', 'pwe', 'pweg', 'pwegg', 'pwegs', 'pwen', 'pwenj', 'pwenh', 'pwed', 'pwel', 'pwelg', 'pwelm', 'pwelb', 'pwels', 'pwelt', 'pwelp', 'pwelh', 'pwem', 'pweb', 'pwebs', 'pwes', 'pwess', 'pweng', 'pwej', 'pwec', 'pwek', 'pwet', 'pwep', 'pweh', 'pwi', 'pwig', 'pwigg', 'pwigs', 'pwin', 'pwinj', 'pwinh', 'pwid', 'pwil', 'pwilg', 'pwilm', 'pwilb', 'pwils', 'pwilt', 'pwilp', 'pwilh', 'pwim', 'pwib', 'pwibs', 'pwis', 'pwiss', 'pwing', 'pwij', 'pwic', 'pwik', 'pwit', 'pwip', 'pwih', 'pyu', 'pyug', 'pyugg', 'pyugs', 'pyun', 'pyunj', 'pyunh', 'pyud', 'pyul', 'pyulg', 'pyulm', 'pyulb', 'pyuls', 'pyult', 'pyulp', 'pyulh', 'pyum', 'pyub', 'pyubs', 'pyus', 'pyuss', 'pyung', 'pyuj', 'pyuc']; <?php return ['pyuk', 'pyut', 'pyup', 'pyuh', 'peu', 'peug', 'peugg', 'peugs', 'peun', 'peunj', 'peunh', 'peud', 'peul', 'peulg', 'peulm', 'peulb', 'peuls', 'peult', 'peulp', 'peulh', 'peum', 'peub', 'peubs', 'peus', 'peuss', 'peung', 'peuj', 'peuc', 'peuk', 'peut', 'peup', 'peuh', 'pyi', 'pyig', 'pyigg', 'pyigs', 'pyin', 'pyinj', 'pyinh', 'pyid', 'pyil', 'pyilg', 'pyilm', 'pyilb', 'pyils', 'pyilt', 'pyilp', 'pyilh', 'pyim', 'pyib', 'pyibs', 'pyis', 'pyiss', 'pying', 'pyij', 'pyic', 'pyik', 'pyit', 'pyip', 'pyih', 'pi', 'pig', 'pigg', 'pigs', 'pin', 'pinj', 'pinh', 'pid', 'pil', 'pilg', 'pilm', 'pilb', 'pils', 'pilt', 'pilp', 'pilh', 'pim', 'pib', 'pibs', 'pis', 'piss', 'ping', 'pij', 'pic', 'pik', 'pit', 'pip', 'pih', 'ha', 'hag', 'hagg', 'hags', 'han', 'hanj', 'hanh', 'had', 'hal', 'halg', 'halm', 'halb', 'hals', 'halt', 'halp', 'halh', 'ham', 'hab', 'habs', 'has', 'hass', 'hang', 'haj', 'hac', 'hak', 'hat', 'hap', 'hah', 'hae', 'haeg', 'haegg', 'haegs', 'haen', 'haenj', 'haenh', 'haed', 'hael', 'haelg', 'haelm', 'haelb', 'haels', 'haelt', 'haelp', 'haelh', 'haem', 'haeb', 'haebs', 'haes', 'haess', 'haeng', 'haej', 'haec', 'haek', 'haet', 'haep', 'haeh', 'hya', 'hyag', 'hyagg', 'hyags', 'hyan', 'hyanj', 'hyanh', 'hyad', 'hyal', 'hyalg', 'hyalm', 'hyalb', 'hyals', 'hyalt', 'hyalp', 'hyalh', 'hyam', 'hyab', 'hyabs', 'hyas', 'hyass', 'hyang', 'hyaj', 'hyac', 'hyak', 'hyat', 'hyap', 'hyah', 'hyae', 'hyaeg', 'hyaegg', 'hyaegs', 'hyaen', 'hyaenj', 'hyaenh', 'hyaed', 'hyael', 'hyaelg', 'hyaelm', 'hyaelb', 'hyaels', 'hyaelt', 'hyaelp', 'hyaelh', 'hyaem', 'hyaeb', 'hyaebs', 'hyaes', 'hyaess', 'hyaeng', 'hyaej', 'hyaec', 'hyaek', 'hyaet', 'hyaep', 'hyaeh', 'heo', 'heog', 'heogg', 'heogs', 'heon', 'heonj', 'heonh', 'heod', 'heol', 'heolg', 'heolm', 'heolb', 'heols', 'heolt', 'heolp', 'heolh', 'heom', 'heob', 'heobs', 'heos', 'heoss', 'heong', 'heoj', 'heoc', 'heok', 'heot', 'heop', 'heoh', 'he', 'heg', 'hegg', 'hegs', 'hen', 'henj', 'henh', 'hed', 'hel', 'helg', 'helm', 'helb', 'hels', 'helt', 'help', 'helh', 'hem', 'heb', 'hebs', 'hes', 'hess', 'heng', 'hej', 'hec', 'hek', 'het', 'hep', 'heh']; <?php return ['hyeo', 'hyeog', 'hyeogg', 'hyeogs', 'hyeon', 'hyeonj', 'hyeonh', 'hyeod', 'hyeol', 'hyeolg', 'hyeolm', 'hyeolb', 'hyeols', 'hyeolt', 'hyeolp', 'hyeolh', 'hyeom', 'hyeob', 'hyeobs', 'hyeos', 'hyeoss', 'hyeong', 'hyeoj', 'hyeoc', 'hyeok', 'hyeot', 'hyeop', 'hyeoh', 'hye', 'hyeg', 'hyegg', 'hyegs', 'hyen', 'hyenj', 'hyenh', 'hyed', 'hyel', 'hyelg', 'hyelm', 'hyelb', 'hyels', 'hyelt', 'hyelp', 'hyelh', 'hyem', 'hyeb', 'hyebs', 'hyes', 'hyess', 'hyeng', 'hyej', 'hyec', 'hyek', 'hyet', 'hyep', 'hyeh', 'ho', 'hog', 'hogg', 'hogs', 'hon', 'honj', 'honh', 'hod', 'hol', 'holg', 'holm', 'holb', 'hols', 'holt', 'holp', 'holh', 'hom', 'hob', 'hobs', 'hos', 'hoss', 'hong', 'hoj', 'hoc', 'hok', 'hot', 'hop', 'hoh', 'hwa', 'hwag', 'hwagg', 'hwags', 'hwan', 'hwanj', 'hwanh', 'hwad', 'hwal', 'hwalg', 'hwalm', 'hwalb', 'hwals', 'hwalt', 'hwalp', 'hwalh', 'hwam', 'hwab', 'hwabs', 'hwas', 'hwass', 'hwang', 'hwaj', 'hwac', 'hwak', 'hwat', 'hwap', 'hwah', 'hwae', 'hwaeg', 'hwaegg', 'hwaegs', 'hwaen', 'hwaenj', 'hwaenh', 'hwaed', 'hwael', 'hwaelg', 'hwaelm', 'hwaelb', 'hwaels', 'hwaelt', 'hwaelp', 'hwaelh', 'hwaem', 'hwaeb', 'hwaebs', 'hwaes', 'hwaess', 'hwaeng', 'hwaej', 'hwaec', 'hwaek', 'hwaet', 'hwaep', 'hwaeh', 'hoe', 'hoeg', 'hoegg', 'hoegs', 'hoen', 'hoenj', 'hoenh', 'hoed', 'hoel', 'hoelg', 'hoelm', 'hoelb', 'hoels', 'hoelt', 'hoelp', 'hoelh', 'hoem', 'hoeb', 'hoebs', 'hoes', 'hoess', 'hoeng', 'hoej', 'hoec', 'hoek', 'hoet', 'hoep', 'hoeh', 'hyo', 'hyog', 'hyogg', 'hyogs', 'hyon', 'hyonj', 'hyonh', 'hyod', 'hyol', 'hyolg', 'hyolm', 'hyolb', 'hyols', 'hyolt', 'hyolp', 'hyolh', 'hyom', 'hyob', 'hyobs', 'hyos', 'hyoss', 'hyong', 'hyoj', 'hyoc', 'hyok', 'hyot', 'hyop', 'hyoh', 'hu', 'hug', 'hugg', 'hugs', 'hun', 'hunj', 'hunh', 'hud', 'hul', 'hulg', 'hulm', 'hulb', 'huls', 'hult', 'hulp', 'hulh', 'hum', 'hub', 'hubs', 'hus', 'huss', 'hung', 'huj', 'huc', 'huk', 'hut', 'hup', 'huh', 'hweo', 'hweog', 'hweogg', 'hweogs', 'hweon', 'hweonj', 'hweonh', 'hweod', 'hweol', 'hweolg', 'hweolm', 'hweolb', 'hweols', 'hweolt', 'hweolp', 'hweolh', 'hweom', 'hweob', 'hweobs', 'hweos', 'hweoss', 'hweong', 'hweoj', 'hweoc', 'hweok', 'hweot', 'hweop', 'hweoh', 'hwe', 'hweg', 'hwegg', 'hwegs']; <?php return ['hwen', 'hwenj', 'hwenh', 'hwed', 'hwel', 'hwelg', 'hwelm', 'hwelb', 'hwels', 'hwelt', 'hwelp', 'hwelh', 'hwem', 'hweb', 'hwebs', 'hwes', 'hwess', 'hweng', 'hwej', 'hwec', 'hwek', 'hwet', 'hwep', 'hweh', 'hwi', 'hwig', 'hwigg', 'hwigs', 'hwin', 'hwinj', 'hwinh', 'hwid', 'hwil', 'hwilg', 'hwilm', 'hwilb', 'hwils', 'hwilt', 'hwilp', 'hwilh', 'hwim', 'hwib', 'hwibs', 'hwis', 'hwiss', 'hwing', 'hwij', 'hwic', 'hwik', 'hwit', 'hwip', 'hwih', 'hyu', 'hyug', 'hyugg', 'hyugs', 'hyun', 'hyunj', 'hyunh', 'hyud', 'hyul', 'hyulg', 'hyulm', 'hyulb', 'hyuls', 'hyult', 'hyulp', 'hyulh', 'hyum', 'hyub', 'hyubs', 'hyus', 'hyuss', 'hyung', 'hyuj', 'hyuc', 'hyuk', 'hyut', 'hyup', 'hyuh', 'heu', 'heug', 'heugg', 'heugs', 'heun', 'heunj', 'heunh', 'heud', 'heul', 'heulg', 'heulm', 'heulb', 'heuls', 'heult', 'heulp', 'heulh', 'heum', 'heub', 'heubs', 'heus', 'heuss', 'heung', 'heuj', 'heuc', 'heuk', 'heut', 'heup', 'heuh', 'hyi', 'hyig', 'hyigg', 'hyigs', 'hyin', 'hyinj', 'hyinh', 'hyid', 'hyil', 'hyilg', 'hyilm', 'hyilb', 'hyils', 'hyilt', 'hyilp', 'hyilh', 'hyim', 'hyib', 'hyibs', 'hyis', 'hyiss', 'hying', 'hyij', 'hyic', 'hyik', 'hyit', 'hyip', 'hyih', 'hi', 'hig', 'higg', 'higs', 'hin', 'hinj', 'hinh', 'hid', 'hil', 'hilg', 'hilm', 'hilb', 'hils', 'hilt', 'hilp', 'hilh', 'him', 'hib', 'hibs', 'his', 'hiss', 'hing', 'hij', 'hic', 'hik', 'hit', 'hip', 'hih', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['Kay ', 'Kayng ', 'Ke ', 'Ko ', 'Kol ', 'Koc ', 'Kwi ', 'Kwi ', 'Kyun ', 'Kul ', 'Kum ', 'Na ', 'Na ', 'Na ', 'La ', 'Na ', 'Na ', 'Na ', 'Na ', 'Na ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nak ', 'Nan ', 'Nan ', 'Nan ', 'Nan ', 'Nan ', 'Nan ', 'Nam ', 'Nam ', 'Nam ', 'Nam ', 'Nap ', 'Nap ', 'Nap ', 'Nang ', 'Nang ', 'Nang ', 'Nang ', 'Nang ', 'Nay ', 'Nayng ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'No ', 'Nok ', 'Nok ', 'Nok ', 'Nok ', 'Nok ', 'Nok ', 'Non ', 'Nong ', 'Nong ', 'Nong ', 'Nong ', 'Noy ', 'Noy ', 'Noy ', 'Noy ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nwu ', 'Nuk ', 'Nuk ', 'Num ', 'Nung ', 'Nung ', 'Nung ', 'Nung ', 'Nung ', 'Twu ', 'La ', 'Lak ', 'Lak ', 'Lan ', 'Lyeng ', 'Lo ', 'Lyul ', 'Li ', 'Pey ', 'Pen ', 'Pyen ', 'Pwu ', 'Pwul ', 'Pi ', 'Sak ', 'Sak ', 'Sam ', 'Sayk ', 'Sayng ', 'Sep ', 'Sey ', 'Sway ', 'Sin ', 'Sim ', 'Sip ', 'Ya ', 'Yak ', 'Yak ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Yang ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Ye ', 'Yek ', 'Yek ', 'Yek ', 'Yek ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yen ', 'Yel ', 'Yel ', 'Yel ', 'Yel ', 'Yel ', 'Yel ', 'Yem ', 'Yem ', 'Yem ', 'Yem ', 'Yem ', 'Yep ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yeng ', 'Yey ', 'Yey ', 'Yey ', 'Yey ', 'O ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yo ', 'Yong ', 'Wun ', 'Wen ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yu ', 'Yuk ', 'Yuk ', 'Yuk ', 'Yun ', 'Yun ', 'Yun ', 'Yun ', 'Yul ', 'Yul ', 'Yul ', 'Yul ', 'Yung ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'I ', 'Ik ', 'Ik ', 'In ', 'In ', 'In ', 'In ', 'In ', 'In ', 'In ', 'Im ', 'Im ', 'Im ', 'Ip ', 'Ip ', 'Ip ', 'Cang ', 'Cek ', 'Ci ', 'Cip ', 'Cha ', 'Chek ']; <?php return ['Chey ', 'Thak ', 'Thak ', 'Thang ', 'Thayk ', 'Thong ', 'Pho ', 'Phok ', 'Hang ', 'Hang ', 'Hyen ', 'Hwak ', 'Wu ', 'Huo ', '[?] ', '[?] ', 'Zhong ', '[?] ', 'Qing ', '[?] ', '[?] ', 'Xi ', 'Zhu ', 'Yi ', 'Li ', 'Shen ', 'Xiang ', 'Fu ', 'Jing ', 'Jing ', 'Yu ', '[?] ', 'Hagi ', '[?] ', 'Zhu ', '[?] ', '[?] ', 'Yi ', 'Du ', '[?] ', '[?] ', '[?] ', 'Fan ', 'Si ', 'Guan ', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]']; <?php return ['ff', 'fi', 'fl', 'ffi', 'ffl', 'st', 'st', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', 'mn', 'me', 'mi', 'vn', 'mkh', '[?]', '[?]', '[?]', '[?]', '[?]', 'yi', '', 'ay', '`', '', 'd', 'h', 'k', 'l', 'm', 'm', 't', '+', 'sh', 's', 'sh', 's', 'a', 'a', '', 'b', 'g', 'd', 'h', 'v', 'z', '[?]', 't', 'y', 'k', 'k', 'l', '[?]', 'l', '[?]', 'n', 'n', '[?]', 'p', 'p', '[?]', 'ts', 'ts', 'r', 'sh', 't', 'vo', 'b', 'k', 'p', 'l', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '{Salla}', '{Qala}', 'Allah', 'Akbar', 'Mohammed', 'SL`M', 'Rasul', '{Alayhi}', '{WaSallam}', '{Salla}', '{Salla Llahu Alayhi WaSallam}', '{Jalla Jalalahu}', 'Rial ', '{Bismillah Ar-Rahman Ar-Rahimi}', '[?]', '[?]']; <?php return ['[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '', '', '', '~', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '..', '--', '-', '_', '_', '(', ') ', '{', '} ', '[', '] ', '[(', ')] ', '<<', '>> ', '<', '> ', '[', '] ', '{', '}', '[?]', '[?]', '[?]', '[?]', '', '', '', '', '', '', '', ',', ',', '.', '', ';', ':', '?', '!', '-', '(', ')', '{', '}', '{', '}', '#', '&', '*', '+', '-', '<', '>', '=', '', '\\', '$', '%', '@', '[?]', '[?]', '[?]', '[?]', '', '', '', '[?]', '', '[?]', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '[?]', '[?]', '']; <?php return ['[?]', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '[?]', '[?]', '.', '[', ']', ',', '*', 'wo', 'a', 'i', 'u', 'e', 'o', 'ya', 'yu', 'yo', 'tu', '+', 'a', 'i', 'u', 'e', 'o', 'ka', 'ki', 'ku', 'ke', 'ko', 'sa', 'si', 'su', 'se', 'so', 'ta', 'ti', 'tu', 'te', 'to', 'na', 'ni', 'nu', 'ne', 'no', 'ha', 'hi', 'hu', 'he', 'ho', 'ma', 'mi', 'mu', 'me', 'mo', 'ya', 'yu', 'yo', 'ra', 'ri', 'ru', 're', 'ro', 'wa', 'n', ':', ';', '', 'g', 'gg', 'gs', 'n', 'nj', 'nh', 'd', 'dd', 'r', 'lg', 'lm', 'lb', 'ls', 'lt', 'lp', 'rh', 'm', 'b', 'bb', 'bs', 's', 'ss', '', 'j', 'jj', 'c', 'k', 't', 'p', 'h', '[?]', '[?]', '[?]', 'a', 'ae', 'ya', 'yae', 'eo', 'e', '[?]', '[?]', 'yeo', 'ye', 'o', 'wa', 'wae', 'oe', '[?]', '[?]', 'yo', 'u', 'weo', 'we', 'wi', 'yu', '[?]', '[?]', 'eu', 'yi', 'i', '[?]', '[?]', '[?]', '/C', 'PS', '!', '-', '|', 'Y=', 'W=', '[?]', '|', '-', '|', '-', '|', '#', 'O', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '{', '|', '}', '', '', '', '']; <?php return ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 26 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 52 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 78 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 104 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 130 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 156 => 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 181 => 'Z', 182 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 208 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 234 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; <?php return [ 0 => 'w', 'x', 'y', 'z', 4 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 30 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 56 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 82 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 108 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 134 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 160 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 186 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 212 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 238 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ]; <?php return ['s', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'i', 'j', '', '', 'Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon', 'Zeta', 'Eta', 'Theta', 'Iota', 'Kappa', 'Lamda', 'Mu', 'Nu', 'Xi', 'Omicron', 'Pi', 'Rho', 'Theta', 'Sigma', 'Tau', 'Upsilon', 'Phi', 'Chi', 'Psi', 'Omega', 'nabla', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta', 'iota', 'kappa', 'lamda', 'mu', 'nu', 'xi', 'omicron', 'pi', 'rho', 'sigma', 'sigma', 'tai', 'upsilon', 'phi', 'chi', 'psi', 'omega', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; <?php return ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; <?php return ['0.', '0,', '1,', '2,', '3,', '4,', '5,', '6,', '7,', '8,', '9,', '', '', '', '', '', '(A)', '(B)', '(C)', '(D)', '(E)', '(F)', '(G)', '(H)', '(I)', '(J)', '(K)', // 0x1a '(L)', '(M)', '(N)', '(O)', '(P)', '(Q)', '(R)', '(S)', '(T)', '(U)', '(V)', '(W)', '(X)', '(Y)', '(Z)', 48 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 80 => 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 112 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 230 => 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ]; include_once '../includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; include_once '../includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; // Load AntiXSS include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php'; $antiXss = new voku\helper\AntiXSS(); $post_description = $antiXss->xss_clean($dataReceived['description']); $post_description = $antiXss->xss_clean($dataReceived['description']);
[]
CVE-2023-2516
39b774cba118ca5383b0a51a71b1e7dea2761927
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.7.'}]
null
5.4
2023-05-05T19:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.7 Added purify library to fix potentiel xss
2023-05-02 08:30:07 +0200
39b774cba
8,325
3
[ "index.php", "pages/items.js.php", "plugins/DOMPurify/purify.cjs.js", "plugins/DOMPurify/purify.cjs.js.map", "plugins/DOMPurify/purify.es.js", "plugins/DOMPurify/purify.es.js.map", "plugins/DOMPurify/purify.js", "plugins/DOMPurify/purify.js.map", "plugins/DOMPurify/purify.min.js", "plugins/DOMPurify/purify.min.js.map" ]
JavaScript
{"index.php": {"lines_added": 2, "lines_deleted": 0}, "pages/items.js.php": {"lines_added": 7, "lines_deleted": 7}, "plugins/DOMPurify/purify.cjs.js": {"lines_added": 1597, "lines_deleted": 0}, "plugins/DOMPurify/purify.cjs.js.map": {"lines_added": 1, "lines_deleted": 0}, "plugins/DOMPurify/purify.es.js": {"lines_added": 1595, "lines_deleted": 0}, "plugins/DOMPurify/purify.es.js.map": {"lines_added": 1, "lines_deleted": 0}, "plugins/DOMPurify/purify.js": {"lines_added": 1603, "lines_deleted": 0}, "plugins/DOMPurify/purify.js.map": {"lines_added": 1, "lines_deleted": 0}, "plugins/DOMPurify/purify.min.js": {"lines_added": 3, "lines_deleted": 0}, "plugins/DOMPurify/purify.min.js.map": {"lines_added": 1, "lines_deleted": 0}}
diff --git a/index.php b/index.php index b933a76b9..ccec1e240 100755 --- a/index.php +++ b/index.php @@ -1152,10 +1152,12 @@ if (($session_validite_pw === null <!--<link rel="stylesheet" href="./plugins/icheck-material/icheck-material.min.css">--> <link rel="stylesheet" href="./plugins/icheck/skins/all.css"> <script type="text/javascript" src="./plugins/icheck/icheck.min.js"></script> <!-- bootstrap-add-clear --> <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js"></script> + <!-- DOMPurify --> + <script type="text/javascript" src="plugins/DOMPurify/purify.min.js"></script> <?php $get = []; $get['page'] = $superGlobal->get('page', 'GET') === null ? '' : $superGlobal->get('page', 'GET'); if ($menuAdmin === true) { diff --git a/pages/items.js.php b/pages/items.js.php index 31bdebd7e..113e5ec5a 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -2793,34 +2793,34 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- } //prepare data var data = { 'anyone_can_modify': $('#form-item-anyoneCanModify').is(':checked') ? 1 : 0, 'complexity_level': parseInt($('#form-item-password-complex').val()), - 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? $('#form-item-description').summernote('code') : '', + 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true}}) : '', 'diffusion_list': diffusion, 'diffusion_list_names': diffusionNames, 'folder': parseInt($('#form-item-folder').val()), - 'email': $('#form-item-email').val(), + 'email': DOMPurify.sanitize($('#form-item-email').val()), 'fields': fields, 'folder_is_personal': store.get('teampassItem').IsPersonalFolder === 1 ? 1 : 0, 'id': store.get('teampassItem').id, - 'label': $('#form-item-label').val(), - 'login': $('#form-item-login').val(), + 'label': DOMPurify.sanitize($('#form-item-label').val()), + 'login': DOMPurify.sanitize($('#form-item-login').val()), 'pw': $('#form-item-password').val(), 'restricted_to': restriction, 'restricted_to_roles': restrictionRole, - 'tags': $('#form-item-tags').val(), + 'tags': DOMPurify.sanitize($('#form-item-tags').val()), 'template_id': parseInt($('input.form-check-input-template:checkbox:checked').data('category-id')), 'to_be_deleted_after_date': ($('#form-item-deleteAfterDate').length !== 0 && $('#form-item-deleteAfterDate').val() !== '') ? $('#form-item-deleteAfterDate').val() : '', 'to_be_deleted_after_x_views': ($('#form-item-deleteAfterShown').length !== 0 && $('#form-item-deleteAfterShown').val() !== '' && $('#form-item-deleteAfterShown').val() >= 1) ? parseInt($('#form-item-deleteAfterShown').val()) : '', - 'url': $('#form-item-url').val(), + 'url': DOMPurify.sanitize($('#form-item-url').val()), 'user_id': parseInt('<?php echo $_SESSION['user_id']; ?>'), 'uploaded_file_id': store.get('teampassApplication').uploadedFileId === undefined ? '' : store.get('teampassApplication').uploadedFileId, - 'fa_icon': $('#form-item-icon').val(), + 'fa_icon': DOMPurify.sanitize($('#form-item-icon').val()), }; if (debugJavascript === true) { console.log('SAVING DATA'); console.log(data); } diff --git a/plugins/DOMPurify/purify.cjs.js b/plugins/DOMPurify/purify.cjs.js new file mode 100644 index 000000000..6165ee86d --- /dev/null +++ b/plugins/DOMPurify/purify.cjs.js @@ -0,0 +1,1597 @@ +/*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ + +'use strict'; + +const { + entries, + setPrototypeOf, + isFrozen, + getPrototypeOf, + getOwnPropertyDescriptor +} = Object; +let { + freeze, + seal, + create +} = Object; // eslint-disable-line import/no-mutable-exports + +let { + apply, + construct +} = typeof Reflect !== 'undefined' && Reflect; + +if (!apply) { + apply = function apply(fun, thisValue, args) { + return fun.apply(thisValue, args); + }; +} + +if (!freeze) { + freeze = function freeze(x) { + return x; + }; +} + +if (!seal) { + seal = function seal(x) { + return x; + }; +} + +if (!construct) { + construct = function construct(Func, args) { + return new Func(...args); + }; +} + +const arrayForEach = unapply(Array.prototype.forEach); +const arrayPop = unapply(Array.prototype.pop); +const arrayPush = unapply(Array.prototype.push); +const stringToLowerCase = unapply(String.prototype.toLowerCase); +const stringToString = unapply(String.prototype.toString); +const stringMatch = unapply(String.prototype.match); +const stringReplace = unapply(String.prototype.replace); +const stringIndexOf = unapply(String.prototype.indexOf); +const stringTrim = unapply(String.prototype.trim); +const regExpTest = unapply(RegExp.prototype.test); +const typeErrorCreate = unconstruct(TypeError); +function unapply(func) { + return function (thisArg) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + return apply(func, thisArg, args); + }; +} +function unconstruct(func) { + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return construct(func, args); + }; +} +/* Add properties to a lookup table */ + +function addToSet(set, array, transformCaseFunc) { + transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase; + + if (setPrototypeOf) { + // Make 'in' and truthy checks like Boolean(set.constructor) + // independent of any properties defined on Object.prototype. + // Prevent prototype setters from intercepting set as a this value. + setPrototypeOf(set, null); + } + + let l = array.length; + + while (l--) { + let element = array[l]; + + if (typeof element === 'string') { + const lcElement = transformCaseFunc(element); + + if (lcElement !== element) { + // Config presets (e.g. tags.js, attrs.js) are immutable. + if (!isFrozen(array)) { + array[l] = lcElement; + } + + element = lcElement; + } + } + + set[element] = true; + } + + return set; +} +/* Shallow clone an object */ + +function clone(object) { + const newObject = create(null); + + for (const [property, value] of entries(object)) { + newObject[property] = value; + } + + return newObject; +} +/* This method automatically checks if the prop is function + * or getter and behaves accordingly. */ + +function lookupGetter(object, prop) { + while (object !== null) { + const desc = getOwnPropertyDescriptor(object, prop); + + if (desc) { + if (desc.get) { + return unapply(desc.get); + } + + if (typeof desc.value === 'function') { + return unapply(desc.value); + } + } + + object = getPrototypeOf(object); + } + + function fallbackValue(element) { + console.warn('fallback value for', element); + return null; + } + + return fallbackValue; +} + +const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG + +const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); +const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. +// We still need to know them so that we can do namespace +// checks properly in case one wants to add them to +// allow-list. + +const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); +const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, +// even those that we disallow by default. + +const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); +const text = freeze(['#text']); + +const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']); +const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); +const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); +const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); + +const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode + +const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); +const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); +const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape + +const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape + +const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape +); +const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); +const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex +); +const DOCTYPE_NAME = seal(/^html$/i); + +var EXPRESSIONS = /*#__PURE__*/Object.freeze({ + __proto__: null, + MUSTACHE_EXPR: MUSTACHE_EXPR, + ERB_EXPR: ERB_EXPR, + TMPLIT_EXPR: TMPLIT_EXPR, + DATA_ATTR: DATA_ATTR, + ARIA_ATTR: ARIA_ATTR, + IS_ALLOWED_URI: IS_ALLOWED_URI, + IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, + ATTR_WHITESPACE: ATTR_WHITESPACE, + DOCTYPE_NAME: DOCTYPE_NAME +}); + +const getGlobal = () => typeof window === 'undefined' ? null : window; +/** + * Creates a no-op policy for internal use only. + * Don't export this function outside this module! + * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory. + * @param {Document} document The document object (to determine policy name suffix) + * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types + * are not supported). + */ + + +const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) { + if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { + return null; + } // Allow the callers to control the unique policy name + // by adding a data-tt-policy-suffix to the script element with the DOMPurify. + // Policy creation with duplicate names throws in Trusted Types. + + + let suffix = null; + const ATTR_NAME = 'data-tt-policy-suffix'; + + if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) { + suffix = document.currentScript.getAttribute(ATTR_NAME); + } + + const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); + + try { + return trustedTypes.createPolicy(policyName, { + createHTML(html) { + return html; + }, + + createScriptURL(scriptUrl) { + return scriptUrl; + } + + }); + } catch (_) { + // Policy creation failed (most likely another DOMPurify script has + // already run). Skip creating the policy, as this will only cause errors + // if TT are enforced. + console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); + return null; + } +}; + +function createDOMPurify() { + let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); + + const DOMPurify = root => createDOMPurify(root); + /** + * Version label, exposed for easier checks + * if DOMPurify is up to date or not + */ + + + DOMPurify.version = '3.0.2'; + /** + * Array of elements that DOMPurify removed during sanitation. + * Empty if nothing was removed. + */ + + DOMPurify.removed = []; + + if (!window || !window.document || window.document.nodeType !== 9) { + // Not running in a browser, provide a factory function + // so that you can pass your own Window + DOMPurify.isSupported = false; + return DOMPurify; + } + + const originalDocument = window.document; + let { + document + } = window; + const { + DocumentFragment, + HTMLTemplateElement, + Node, + Element, + NodeFilter, + NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, + HTMLFormElement, + DOMParser, + trustedTypes + } = window; + const ElementPrototype = Element.prototype; + const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); + const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); + const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); + const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a + // new document created via createHTMLDocument. As per the spec + // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) + // a new empty registry is used when creating a template contents owner + // document, so we use that as our parent document to ensure nothing + // is inherited. + + if (typeof HTMLTemplateElement === 'function') { + const template = document.createElement('template'); + + if (template.content && template.content.ownerDocument) { + document = template.content.ownerDocument; + } + } + + const trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument); + + const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : ''; + const { + implementation, + createNodeIterator, + createDocumentFragment, + getElementsByTagName + } = document; + const { + importNode + } = originalDocument; + let hooks = {}; + /** + * Expose whether this browser supports running the full DOMPurify. + */ + + DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined'; + const { + MUSTACHE_EXPR, + ERB_EXPR, + TMPLIT_EXPR, + DATA_ATTR, + ARIA_ATTR, + IS_SCRIPT_OR_DATA, + ATTR_WHITESPACE + } = EXPRESSIONS; + let { + IS_ALLOWED_URI: IS_ALLOWED_URI$1 + } = EXPRESSIONS; + /** + * We consider the elements and attributes below to be safe. Ideally + * don't add any new ones but feel free to remove unwanted ones. + */ + + /* allowed element names */ + + let ALLOWED_TAGS = null; + const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); + /* Allowed attribute names */ + + let ALLOWED_ATTR = null; + const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); + /* + * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements. + * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) + * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) + * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. + */ + + let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { + tagNameCheck: { + writable: true, + configurable: false, + enumerable: true, + value: null + }, + attributeNameCheck: { + writable: true, + configurable: false, + enumerable: true, + value: null + }, + allowCustomizedBuiltInElements: { + writable: true, + configurable: false, + enumerable: true, + value: false + } + })); + /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ + + let FORBID_TAGS = null; + /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ + + let FORBID_ATTR = null; + /* Decide if ARIA attributes are okay */ + + let ALLOW_ARIA_ATTR = true; + /* Decide if custom data attributes are okay */ + + let ALLOW_DATA_ATTR = true; + /* Decide if unknown protocols are okay */ + + let ALLOW_UNKNOWN_PROTOCOLS = false; + /* Decide if self-closing tags in attributes are allowed. + * Usually removed due to a mXSS issue in jQuery 3.0 */ + + let ALLOW_SELF_CLOSE_IN_ATTR = true; + /* Output should be safe for common template engines. + * This means, DOMPurify removes data attributes, mustaches and ERB + */ + + let SAFE_FOR_TEMPLATES = false; + /* Decide if document with <html>... should be returned */ + + let WHOLE_DOCUMENT = false; + /* Track whether config is already set on this instance of DOMPurify. */ + + let SET_CONFIG = false; + /* Decide if all elements (e.g. style, script) must be children of + * document.body. By default, browsers might move them to document.head */ + + let FORCE_BODY = false; + /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html + * string (or a TrustedHTML object if Trusted Types are supported). + * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead + */ + + let RETURN_DOM = false; + /* Decide if a DOM `DocumentFragment` should be returned, instead of a html + * string (or a TrustedHTML object if Trusted Types are supported) */ + + let RETURN_DOM_FRAGMENT = false; + /* Try to return a Trusted Type object instead of a string, return a string in + * case Trusted Types are not supported */ + + let RETURN_TRUSTED_TYPE = false; + /* Output should be free from DOM clobbering attacks? + * This sanitizes markups named with colliding, clobberable built-in DOM APIs. + */ + + let SANITIZE_DOM = true; + /* Achieve full DOM Clobbering protection by isolating the namespace of named + * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. + * + * HTML/DOM spec rules that enable DOM Clobbering: + * - Named Access on Window (§7.3.3) + * - DOM Tree Accessors (§3.1.5) + * - Form Element Parent-Child Relations (§4.10.3) + * - Iframe srcdoc / Nested WindowProxies (§4.8.5) + * - HTMLCollection (§4.2.10.2) + * + * Namespace isolation is implemented by prefixing `id` and `name` attributes + * with a constant string, i.e., `user-content-` + */ + + let SANITIZE_NAMED_PROPS = false; + const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; + /* Keep element content when removing element? */ + + let KEEP_CONTENT = true; + /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead + * of importing it into a new Document and returning a sanitized copy */ + + let IN_PLACE = false; + /* Allow usage of profiles like html, svg and mathMl */ + + let USE_PROFILES = {}; + /* Tags to ignore content of when KEEP_CONTENT is true */ + + let FORBID_CONTENTS = null; + const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); + /* Tags that are safe for data: URIs */ + + let DATA_URI_TAGS = null; + const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); + /* Attributes safe for values like "javascript:" */ + + let URI_SAFE_ATTRIBUTES = null; + const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); + const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; + const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; + const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; + /* Document namespace */ + + let NAMESPACE = HTML_NAMESPACE; + let IS_EMPTY_INPUT = false; + /* Allowed XHTML+XML namespaces */ + + let ALLOWED_NAMESPACES = null; + const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); + /* Parsing of strict XHTML documents */ + + let PARSER_MEDIA_TYPE; + const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; + const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; + let transformCaseFunc; + /* Keep a reference to config to pass to hooks */ + + let CONFIG = null; + /* Ideally, do not touch anything below this line */ + + /* ______________________________________________ */ + + const formElement = document.createElement('form'); + + const isRegexOrFunction = function isRegexOrFunction(testValue) { + return testValue instanceof RegExp || testValue instanceof Function; + }; + /** + * _parseConfig + * + * @param {Object} cfg optional config literal + */ + // eslint-disable-next-line complexity + + + const _parseConfig = function _parseConfig(cfg) { + if (CONFIG && CONFIG === cfg) { + return; + } + /* Shield configuration object from tampering */ + + + if (!cfg || typeof cfg !== 'object') { + cfg = {}; + } + /* Shield configuration object from prototype pollution */ + + + cfg = clone(cfg); + PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes + SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. + + transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; + /* Set configuration parameters */ + + ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; + ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; + ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; + URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent + cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent + transformCaseFunc // eslint-disable-line indent + ) // eslint-disable-line indent + : DEFAULT_URI_SAFE_ATTRIBUTES; + DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent + cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent + transformCaseFunc // eslint-disable-line indent + ) // eslint-disable-line indent + : DEFAULT_DATA_URI_TAGS; + FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; + FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; + FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; + USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false; + ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true + + ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true + + ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false + + ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true + + SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false + + WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false + + RETURN_DOM = cfg.RETURN_DOM || false; // Default false + + RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false + + RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false + + FORCE_BODY = cfg.FORCE_BODY || false; // Default false + + SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true + + SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false + + KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true + + IN_PLACE = cfg.IN_PLACE || false; // Default false + + IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; + NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; + CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; + + if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { + CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; + } + + if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { + CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; + } + + if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { + CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; + } + + if (SAFE_FOR_TEMPLATES) { + ALLOW_DATA_ATTR = false; + } + + if (RETURN_DOM_FRAGMENT) { + RETURN_DOM = true; + } + /* Parse profile info */ + + + if (USE_PROFILES) { + ALLOWED_TAGS = addToSet({}, [...text]); + ALLOWED_ATTR = []; + + if (USE_PROFILES.html === true) { + addToSet(ALLOWED_TAGS, html$1); + addToSet(ALLOWED_ATTR, html); + } + + if (USE_PROFILES.svg === true) { + addToSet(ALLOWED_TAGS, svg$1); + addToSet(ALLOWED_ATTR, svg); + addToSet(ALLOWED_ATTR, xml); + } + + if (USE_PROFILES.svgFilters === true) { + addToSet(ALLOWED_TAGS, svgFilters); + addToSet(ALLOWED_ATTR, svg); + addToSet(ALLOWED_ATTR, xml); + } + + if (USE_PROFILES.mathMl === true) { + addToSet(ALLOWED_TAGS, mathMl$1); + addToSet(ALLOWED_ATTR, mathMl); + addToSet(ALLOWED_ATTR, xml); + } + } + /* Merge configuration parameters */ + + + if (cfg.ADD_TAGS) { + if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { + ALLOWED_TAGS = clone(ALLOWED_TAGS); + } + + addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); + } + + if (cfg.ADD_ATTR) { + if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { + ALLOWED_ATTR = clone(ALLOWED_ATTR); + } + + addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); + } + + if (cfg.ADD_URI_SAFE_ATTR) { + addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); + } + + if (cfg.FORBID_CONTENTS) { + if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { + FORBID_CONTENTS = clone(FORBID_CONTENTS); + } + + addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); + } + /* Add #text in case KEEP_CONTENT is set to true */ + + + if (KEEP_CONTENT) { + ALLOWED_TAGS['#text'] = true; + } + /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ + + + if (WHOLE_DOCUMENT) { + addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); + } + /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ + + + if (ALLOWED_TAGS.table) { + addToSet(ALLOWED_TAGS, ['tbody']); + delete FORBID_TAGS.tbody; + } // Prevent further manipulation of configuration. + // Not available in IE8, Safari 5, etc. + + + if (freeze) { + freeze(cfg); + } + + CONFIG = cfg; + }; + + const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); + const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML + // namespace. We need to specify them explicitly + // so that they don't get erroneously deleted from + // HTML namespace. + + const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); + /* Keep track of all possible SVG and MathML tags + * so that we can perform the namespace checks + * correctly. */ + + const ALL_SVG_TAGS = addToSet({}, svg$1); + addToSet(ALL_SVG_TAGS, svgFilters); + addToSet(ALL_SVG_TAGS, svgDisallowed); + const ALL_MATHML_TAGS = addToSet({}, mathMl$1); + addToSet(ALL_MATHML_TAGS, mathMlDisallowed); + /** + * + * + * @param {Element} element a DOM element whose namespace is being checked + * @returns {boolean} Return false if the element has a + * namespace that a spec-compliant parser would never + * return. Return true otherwise. + */ + + const _checkValidNamespace = function _checkValidNamespace(element) { + let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode + // can be null. We just simulate parent in this case. + + if (!parent || !parent.tagName) { + parent = { + namespaceURI: NAMESPACE, + tagName: 'template' + }; + } + + const tagName = stringToLowerCase(element.tagName); + const parentTagName = stringToLowerCase(parent.tagName); + + if (!ALLOWED_NAMESPACES[element.namespaceURI]) { + return false; + } + + if (element.namespaceURI === SVG_NAMESPACE) { + // The only way to switch from HTML namespace to SVG + // is via <svg>. If it happens via any other tag, then + // it should be killed. + if (parent.namespaceURI === HTML_NAMESPACE) { + return tagName === 'svg'; + } // The only way to switch from MathML to SVG is via` + // svg if parent is either <annotation-xml> or MathML + // text integration points. + + + if (parent.namespaceURI === MATHML_NAMESPACE) { + return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); + } // We only allow elements that are defined in SVG + // spec. All others are disallowed in SVG namespace. + + + return Boolean(ALL_SVG_TAGS[tagName]); + } + + if (element.namespaceURI === MATHML_NAMESPACE) { + // The only way to switch from HTML namespace to MathML + // is via <math>. If it happens via any other tag, then + // it should be killed. + if (parent.namespaceURI === HTML_NAMESPACE) { + return tagName === 'math'; + } // The only way to switch from SVG to MathML is via + // <math> and HTML integration points + + + if (parent.namespaceURI === SVG_NAMESPACE) { + return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; + } // We only allow elements that are defined in MathML + // spec. All others are disallowed in MathML namespace. + + + return Boolean(ALL_MATHML_TAGS[tagName]); + } + + if (element.namespaceURI === HTML_NAMESPACE) { + // The only way to switch from SVG to HTML is via + // HTML integration points, and from MathML to HTML + // is via MathML text integration points + if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { + return false; + } + + if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { + return false; + } // We disallow tags that are specific for MathML + // or SVG and should never appear in HTML namespace + + + return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); + } // For XHTML and XML documents that support custom namespaces + + + if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { + return true; + } // The code should never reach this place (this means + // that the element somehow got namespace that is not + // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). + // Return false just in case. + + + return false; + }; + /** + * _forceRemove + * + * @param {Node} node a DOM node + */ + + + const _forceRemove = function _forceRemove(node) { + arrayPush(DOMPurify.removed, { + element: node + }); + + try { + // eslint-disable-next-line unicorn/prefer-dom-node-remove + node.parentNode.removeChild(node); + } catch (_) { + node.remove(); + } + }; + /** + * _removeAttribute + * + * @param {String} name an Attribute name + * @param {Node} node a DOM node + */ + + + const _removeAttribute = function _removeAttribute(name, node) { + try { + arrayPush(DOMPurify.removed, { + attribute: node.getAttributeNode(name), + from: node + }); + } catch (_) { + arrayPush(DOMPurify.removed, { + attribute: null, + from: node + }); + } + + node.removeAttribute(name); // We void attribute values for unremovable "is"" attributes + + if (name === 'is' && !ALLOWED_ATTR[name]) { + if (RETURN_DOM || RETURN_DOM_FRAGMENT) { + try { + _forceRemove(node); + } catch (_) {} + } else { + try { + node.setAttribute(name, ''); + } catch (_) {} + } + } + }; + /** + * _initDocument + * + * @param {String} dirty a string of dirty markup + * @return {Document} a DOM, filled with the dirty markup + */ + + + const _initDocument = function _initDocument(dirty) { + /* Create a HTML document */ + let doc; + let leadingWhitespace; + + if (FORCE_BODY) { + dirty = '<remove></remove>' + dirty; + } else { + /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ + const matches = stringMatch(dirty, /^[\r\n\t ]+/); + leadingWhitespace = matches && matches[0]; + } + + if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { + // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) + dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; + } + + const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; + /* + * Use the DOMParser API by default, fallback later if needs be + * DOMParser not work for svg when has multiple root element. + */ + + if (NAMESPACE === HTML_NAMESPACE) { + try { + doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); + } catch (_) {} + } + /* Use createHTMLDocument in case DOMParser is not available */ + + + if (!doc || !doc.documentElement) { + doc = implementation.createDocument(NAMESPACE, 'template', null); + + try { + doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; + } catch (_) {// Syntax error if dirtyPayload is invalid xml + } + } + + const body = doc.body || doc.documentElement; + + if (dirty && leadingWhitespace) { + body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); + } + /* Work on whole document or just its body */ + + + if (NAMESPACE === HTML_NAMESPACE) { + return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; + } + + return WHOLE_DOCUMENT ? doc.documentElement : body; + }; + /** + * _createIterator + * + * @param {Document} root document/fragment to create iterator for + * @return {Iterator} iterator instance + */ + + + const _createIterator = function _createIterator(root) { + return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise + NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false); + }; + /** + * _isClobbered + * + * @param {Node} elm element to check for clobbering attacks + * @return {Boolean} true if clobbered, false if safe + */ + + + const _isClobbered = function _isClobbered(elm) { + return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function'); + }; + /** + * _isNode + * + * @param {Node} obj object to check whether it's a DOM node + * @return {Boolean} true is object is a DOM node + */ + + + const _isNode = function _isNode(object) { + return typeof Node === 'object' ? object instanceof Node : object && typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'; + }; + /** + * _executeHook + * Execute user configurable hooks + * + * @param {String} entryPoint Name of the hook's entry point + * @param {Node} currentNode node to work on with the hook + * @param {Object} data additional hook parameters + */ + + + const _executeHook = function _executeHook(entryPoint, currentNode, data) { + if (!hooks[entryPoint]) { + return; + } + + arrayForEach(hooks[entryPoint], hook => { + hook.call(DOMPurify, currentNode, data, CONFIG); + }); + }; + /** + * _sanitizeElements + * + * @protect nodeName + * @protect textContent + * @protect removeChild + * + * @param {Node} currentNode to check for permission to exist + * @return {Boolean} true if node was killed, false if left alive + */ + + + const _sanitizeElements = function _sanitizeElements(currentNode) { + let content; + /* Execute a hook if present */ + + _executeHook('beforeSanitizeElements', currentNode, null); + /* Check if element is clobbered or can clobber */ + + + if (_isClobbered(currentNode)) { + _forceRemove(currentNode); + + return true; + } + /* Now let's check the element's type and name */ + + + const tagName = transformCaseFunc(currentNode.nodeName); + /* Execute a hook if present */ + + _executeHook('uponSanitizeElement', currentNode, { + tagName, + allowedTags: ALLOWED_TAGS + }); + /* Detect mXSS attempts abusing namespace confusion */ + + + if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { + _forceRemove(currentNode); + + return true; + } + /* Remove element if anything forbids its presence */ + + + if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { + /* Check if we have a custom element to handle */ + if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { + if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false; + if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false; + } + /* Keep content except for bad-listed elements */ + + + if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { + const parentNode = getParentNode(currentNode) || currentNode.parentNode; + const childNodes = getChildNodes(currentNode) || currentNode.childNodes; + + if (childNodes && parentNode) { + const childCount = childNodes.length; + + for (let i = childCount - 1; i >= 0; --i) { + parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); + } + } + } + + _forceRemove(currentNode); + + return true; + } + /* Check whether element has a valid namespace */ + + + if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { + _forceRemove(currentNode); + + return true; + } + /* Make sure that older browsers don't get noscript mXSS */ + + + if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) { + _forceRemove(currentNode); + + return true; + } + /* Sanitize element content to be template-safe */ + + + if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { + /* Get the element's text content */ + content = currentNode.textContent; + content = stringReplace(content, MUSTACHE_EXPR, ' '); + content = stringReplace(content, ERB_EXPR, ' '); + content = stringReplace(content, TMPLIT_EXPR, ' '); + + if (currentNode.textContent !== content) { + arrayPush(DOMPurify.removed, { + element: currentNode.cloneNode() + }); + currentNode.textContent = content; + } + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeElements', currentNode, null); + + return false; + }; + /** + * _isValidAttribute + * + * @param {string} lcTag Lowercase tag name of containing element. + * @param {string} lcName Lowercase attribute name. + * @param {string} value Attribute value. + * @return {Boolean} Returns true if `value` is valid, otherwise false. + */ + // eslint-disable-next-line complexity + + + const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { + /* Make sure attribute cannot clobber */ + if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { + return false; + } + /* Allow valid data-* attributes: At least one character after "-" + (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) + XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) + We don't need to check the value; it's always URI safe. */ + + + if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { + if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND + // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck + _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND + // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { + return false; + } + /* Check value is safe. First, is attr inert? If so, is safe */ + + } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (!value) ; else { + return false; + } + + return true; + }; + /** + * _basicCustomElementCheck + * checks if at least one dash is included in tagName, and it's not the first char + * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name + * @param {string} tagName name of the tag of the node to sanitize + */ + + + const _basicCustomElementTest = function _basicCustomElementTest(tagName) { + return tagName.indexOf('-') > 0; + }; + /** + * _sanitizeAttributes + * + * @protect attributes + * @protect nodeName + * @protect removeAttribute + * @protect setAttribute + * + * @param {Node} currentNode to sanitize + */ + + + const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { + let attr; + let value; + let lcName; + let l; + /* Execute a hook if present */ + + _executeHook('beforeSanitizeAttributes', currentNode, null); + + const { + attributes + } = currentNode; + /* Check if we have attributes; if not we might have a text node */ + + if (!attributes) { + return; + } + + const hookEvent = { + attrName: '', + attrValue: '', + keepAttr: true, + allowedAttributes: ALLOWED_ATTR + }; + l = attributes.length; + /* Go backwards over all attributes; safely remove bad ones */ + + while (l--) { + attr = attributes[l]; + const { + name, + namespaceURI + } = attr; + value = name === 'value' ? attr.value : stringTrim(attr.value); + lcName = transformCaseFunc(name); + /* Execute a hook if present */ + + hookEvent.attrName = lcName; + hookEvent.attrValue = value; + hookEvent.keepAttr = true; + hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set + + _executeHook('uponSanitizeAttribute', currentNode, hookEvent); + + value = hookEvent.attrValue; + /* Did the hooks approve of the attribute? */ + + if (hookEvent.forceKeepAttr) { + continue; + } + /* Remove attribute */ + + + _removeAttribute(name, currentNode); + /* Did the hooks approve of the attribute? */ + + + if (!hookEvent.keepAttr) { + continue; + } + /* Work around a security issue in jQuery 3.0 */ + + + if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { + _removeAttribute(name, currentNode); + + continue; + } + /* Sanitize attribute content to be template-safe */ + + + if (SAFE_FOR_TEMPLATES) { + value = stringReplace(value, MUSTACHE_EXPR, ' '); + value = stringReplace(value, ERB_EXPR, ' '); + value = stringReplace(value, TMPLIT_EXPR, ' '); + } + /* Is `value` valid for this attribute? */ + + + const lcTag = transformCaseFunc(currentNode.nodeName); + + if (!_isValidAttribute(lcTag, lcName, value)) { + continue; + } + /* Full DOM Clobbering protection via namespace isolation, + * Prefix id and name attributes with `user-content-` + */ + + + if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { + // Remove the attribute with this value + _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value + + + value = SANITIZE_NAMED_PROPS_PREFIX + value; + } + /* Handle attributes that require Trusted Types */ + + + if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { + if (namespaceURI) ; else { + switch (trustedTypes.getAttributeType(lcTag, lcName)) { + case 'TrustedHTML': + value = trustedTypesPolicy.createHTML(value); + break; + + case 'TrustedScriptURL': + value = trustedTypesPolicy.createScriptURL(value); + break; + } + } + } + /* Handle invalid data-* attribute set by try-catching it */ + + + try { + if (namespaceURI) { + currentNode.setAttributeNS(namespaceURI, name, value); + } else { + /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ + currentNode.setAttribute(name, value); + } + + arrayPop(DOMPurify.removed); + } catch (_) {} + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeAttributes', currentNode, null); + }; + /** + * _sanitizeShadowDOM + * + * @param {DocumentFragment} fragment to iterate over recursively + */ + + + const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { + let shadowNode; + + const shadowIterator = _createIterator(fragment); + /* Execute a hook if present */ + + + _executeHook('beforeSanitizeShadowDOM', fragment, null); + + while (shadowNode = shadowIterator.nextNode()) { + /* Execute a hook if present */ + _executeHook('uponSanitizeShadowNode', shadowNode, null); + /* Sanitize tags and elements */ + + + if (_sanitizeElements(shadowNode)) { + continue; + } + /* Deep shadow DOM detected */ + + + if (shadowNode.content instanceof DocumentFragment) { + _sanitizeShadowDOM(shadowNode.content); + } + /* Check attributes, sanitize if necessary */ + + + _sanitizeAttributes(shadowNode); + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeShadowDOM', fragment, null); + }; + /** + * Sanitize + * Public method providing core sanitation functionality + * + * @param {String|Node} dirty string or DOM node + * @param {Object} configuration object + */ + // eslint-disable-next-line complexity + + + DOMPurify.sanitize = function (dirty) { + let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + let body; + let importedNode; + let currentNode; + let returnNode; + /* Make sure we have a string to sanitize. + DO NOT return early, as this will return the wrong type if + the user has requested a DOM object rather than a string */ + + IS_EMPTY_INPUT = !dirty; + + if (IS_EMPTY_INPUT) { + dirty = '<!-->'; + } + /* Stringify, in case dirty is an object */ + + + if (typeof dirty !== 'string' && !_isNode(dirty)) { + // eslint-disable-next-line no-negated-condition + if (typeof dirty.toString !== 'function') { + throw typeErrorCreate('toString is not a function'); + } else { + dirty = dirty.toString(); + + if (typeof dirty !== 'string') { + throw typeErrorCreate('dirty is not a string, aborting'); + } + } + } + /* Return dirty HTML if DOMPurify cannot run */ + + + if (!DOMPurify.isSupported) { + return dirty; + } + /* Assign config vars */ + + + if (!SET_CONFIG) { + _parseConfig(cfg); + } + /* Clean up removed elements */ + + + DOMPurify.removed = []; + /* Check if dirty is correctly typed for IN_PLACE */ + + if (typeof dirty === 'string') { + IN_PLACE = false; + } + + if (IN_PLACE) { + /* Do some early pre-sanitization to avoid unsafe root nodes */ + if (dirty.nodeName) { + const tagName = transformCaseFunc(dirty.nodeName); + + if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { + throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); + } + } + } else if (dirty instanceof Node) { + /* If dirty is a DOM element, append to an empty document to avoid + elements being stripped by the parser */ + body = _initDocument('<!---->'); + importedNode = body.ownerDocument.importNode(dirty, true); + + if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') { + /* Node is already a body, use as is */ + body = importedNode; + } else if (importedNode.nodeName === 'HTML') { + body = importedNode; + } else { + // eslint-disable-next-line unicorn/prefer-dom-node-append + body.appendChild(importedNode); + } + } else { + /* Exit directly if we have nothing to do */ + if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes + dirty.indexOf('<') === -1) { + return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; + } + /* Initialize the document to work on */ + + + body = _initDocument(dirty); + /* Check we have a DOM node from the data */ + + if (!body) { + return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; + } + } + /* Remove first element node (ours) if FORCE_BODY is set */ + + + if (body && FORCE_BODY) { + _forceRemove(body.firstChild); + } + /* Get node iterator */ + + + const nodeIterator = _createIterator(IN_PLACE ? dirty : body); + /* Now start iterating over the created document */ + + + while (currentNode = nodeIterator.nextNode()) { + /* Sanitize tags and elements */ + if (_sanitizeElements(currentNode)) { + continue; + } + /* Shadow DOM detected, sanitize it */ + + + if (currentNode.content instanceof DocumentFragment) { + _sanitizeShadowDOM(currentNode.content); + } + /* Check attributes, sanitize if necessary */ + + + _sanitizeAttributes(currentNode); + } + /* If we sanitized `dirty` in-place, return it. */ + + + if (IN_PLACE) { + return dirty; + } + /* Return sanitized string or DOM */ + + + if (RETURN_DOM) { + if (RETURN_DOM_FRAGMENT) { + returnNode = createDocumentFragment.call(body.ownerDocument); + + while (body.firstChild) { + // eslint-disable-next-line unicorn/prefer-dom-node-append + returnNode.appendChild(body.firstChild); + } + } else { + returnNode = body; + } + + if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) { + /* + AdoptNode() is not used because internal state is not reset + (e.g. the past names map of a HTMLFormElement), this is safe + in theory but we would rather not risk another attack vector. + The state that is cloned by importNode() is explicitly defined + by the specs. + */ + returnNode = importNode.call(originalDocument, returnNode, true); + } + + return returnNode; + } + + let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; + /* Serialize doctype if allowed */ + + if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { + serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; + } + /* Sanitize final string template-safe */ + + + if (SAFE_FOR_TEMPLATES) { + serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' '); + serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' '); + serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' '); + } + + return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; + }; + /** + * Public method to set the configuration once + * setConfig + * + * @param {Object} cfg configuration object + */ + + + DOMPurify.setConfig = function (cfg) { + _parseConfig(cfg); + + SET_CONFIG = true; + }; + /** + * Public method to remove the configuration + * clearConfig + * + */ + + + DOMPurify.clearConfig = function () { + CONFIG = null; + SET_CONFIG = false; + }; + /** + * Public method to check if an attribute value is valid. + * Uses last set config, if any. Otherwise, uses config defaults. + * isValidAttribute + * + * @param {string} tag Tag name of containing element. + * @param {string} attr Attribute name. + * @param {string} value Attribute value. + * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false. + */ + + + DOMPurify.isValidAttribute = function (tag, attr, value) { + /* Initialize shared config vars if necessary. */ + if (!CONFIG) { + _parseConfig({}); + } + + const lcTag = transformCaseFunc(tag); + const lcName = transformCaseFunc(attr); + return _isValidAttribute(lcTag, lcName, value); + }; + /** + * AddHook + * Public method to add DOMPurify hooks + * + * @param {String} entryPoint entry point for the hook to add + * @param {Function} hookFunction function to execute + */ + + + DOMPurify.addHook = function (entryPoint, hookFunction) { + if (typeof hookFunction !== 'function') { + return; + } + + hooks[entryPoint] = hooks[entryPoint] || []; + arrayPush(hooks[entryPoint], hookFunction); + }; + /** + * RemoveHook + * Public method to remove a DOMPurify hook at a given entryPoint + * (pops it from the stack of hooks if more are present) + * + * @param {String} entryPoint entry point for the hook to remove + * @return {Function} removed(popped) hook + */ + + + DOMPurify.removeHook = function (entryPoint) { + if (hooks[entryPoint]) { + return arrayPop(hooks[entryPoint]); + } + }; + /** + * RemoveHooks + * Public method to remove all DOMPurify hooks at a given entryPoint + * + * @param {String} entryPoint entry point for the hooks to remove + */ + + + DOMPurify.removeHooks = function (entryPoint) { + if (hooks[entryPoint]) { + hooks[entryPoint] = []; + } + }; + /** + * RemoveAllHooks + * Public method to remove all DOMPurify hooks + * + */ + + + DOMPurify.removeAllHooks = function () { + hooks = {}; + }; + + return DOMPurify; +} + +var purify = createDOMPurify(); + +module.exports = purify; +//# sourceMappingURL=purify.cjs.js.map diff --git a/plugins/DOMPurify/purify.cjs.js.map b/plugins/DOMPurify/purify.cjs.js.map new file mode 100644 index 000000000..808cdbdc1 --- /dev/null +++ b/plugins/DOMPurify/purify.cjs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"purify.cjs.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","addToSet","set","array","transformCaseFunc","l","length","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childCount","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":"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"} \ No newline at end of file diff --git a/plugins/DOMPurify/purify.es.js b/plugins/DOMPurify/purify.es.js new file mode 100644 index 000000000..669105495 --- /dev/null +++ b/plugins/DOMPurify/purify.es.js @@ -0,0 +1,1595 @@ +/*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ + +const { + entries, + setPrototypeOf, + isFrozen, + getPrototypeOf, + getOwnPropertyDescriptor +} = Object; +let { + freeze, + seal, + create +} = Object; // eslint-disable-line import/no-mutable-exports + +let { + apply, + construct +} = typeof Reflect !== 'undefined' && Reflect; + +if (!apply) { + apply = function apply(fun, thisValue, args) { + return fun.apply(thisValue, args); + }; +} + +if (!freeze) { + freeze = function freeze(x) { + return x; + }; +} + +if (!seal) { + seal = function seal(x) { + return x; + }; +} + +if (!construct) { + construct = function construct(Func, args) { + return new Func(...args); + }; +} + +const arrayForEach = unapply(Array.prototype.forEach); +const arrayPop = unapply(Array.prototype.pop); +const arrayPush = unapply(Array.prototype.push); +const stringToLowerCase = unapply(String.prototype.toLowerCase); +const stringToString = unapply(String.prototype.toString); +const stringMatch = unapply(String.prototype.match); +const stringReplace = unapply(String.prototype.replace); +const stringIndexOf = unapply(String.prototype.indexOf); +const stringTrim = unapply(String.prototype.trim); +const regExpTest = unapply(RegExp.prototype.test); +const typeErrorCreate = unconstruct(TypeError); +function unapply(func) { + return function (thisArg) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + return apply(func, thisArg, args); + }; +} +function unconstruct(func) { + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return construct(func, args); + }; +} +/* Add properties to a lookup table */ + +function addToSet(set, array, transformCaseFunc) { + transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase; + + if (setPrototypeOf) { + // Make 'in' and truthy checks like Boolean(set.constructor) + // independent of any properties defined on Object.prototype. + // Prevent prototype setters from intercepting set as a this value. + setPrototypeOf(set, null); + } + + let l = array.length; + + while (l--) { + let element = array[l]; + + if (typeof element === 'string') { + const lcElement = transformCaseFunc(element); + + if (lcElement !== element) { + // Config presets (e.g. tags.js, attrs.js) are immutable. + if (!isFrozen(array)) { + array[l] = lcElement; + } + + element = lcElement; + } + } + + set[element] = true; + } + + return set; +} +/* Shallow clone an object */ + +function clone(object) { + const newObject = create(null); + + for (const [property, value] of entries(object)) { + newObject[property] = value; + } + + return newObject; +} +/* This method automatically checks if the prop is function + * or getter and behaves accordingly. */ + +function lookupGetter(object, prop) { + while (object !== null) { + const desc = getOwnPropertyDescriptor(object, prop); + + if (desc) { + if (desc.get) { + return unapply(desc.get); + } + + if (typeof desc.value === 'function') { + return unapply(desc.value); + } + } + + object = getPrototypeOf(object); + } + + function fallbackValue(element) { + console.warn('fallback value for', element); + return null; + } + + return fallbackValue; +} + +const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG + +const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); +const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. +// We still need to know them so that we can do namespace +// checks properly in case one wants to add them to +// allow-list. + +const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); +const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, +// even those that we disallow by default. + +const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); +const text = freeze(['#text']); + +const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']); +const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); +const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); +const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); + +const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode + +const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); +const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); +const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape + +const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape + +const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape +); +const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); +const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex +); +const DOCTYPE_NAME = seal(/^html$/i); + +var EXPRESSIONS = /*#__PURE__*/Object.freeze({ + __proto__: null, + MUSTACHE_EXPR: MUSTACHE_EXPR, + ERB_EXPR: ERB_EXPR, + TMPLIT_EXPR: TMPLIT_EXPR, + DATA_ATTR: DATA_ATTR, + ARIA_ATTR: ARIA_ATTR, + IS_ALLOWED_URI: IS_ALLOWED_URI, + IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, + ATTR_WHITESPACE: ATTR_WHITESPACE, + DOCTYPE_NAME: DOCTYPE_NAME +}); + +const getGlobal = () => typeof window === 'undefined' ? null : window; +/** + * Creates a no-op policy for internal use only. + * Don't export this function outside this module! + * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory. + * @param {Document} document The document object (to determine policy name suffix) + * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types + * are not supported). + */ + + +const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) { + if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { + return null; + } // Allow the callers to control the unique policy name + // by adding a data-tt-policy-suffix to the script element with the DOMPurify. + // Policy creation with duplicate names throws in Trusted Types. + + + let suffix = null; + const ATTR_NAME = 'data-tt-policy-suffix'; + + if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) { + suffix = document.currentScript.getAttribute(ATTR_NAME); + } + + const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); + + try { + return trustedTypes.createPolicy(policyName, { + createHTML(html) { + return html; + }, + + createScriptURL(scriptUrl) { + return scriptUrl; + } + + }); + } catch (_) { + // Policy creation failed (most likely another DOMPurify script has + // already run). Skip creating the policy, as this will only cause errors + // if TT are enforced. + console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); + return null; + } +}; + +function createDOMPurify() { + let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); + + const DOMPurify = root => createDOMPurify(root); + /** + * Version label, exposed for easier checks + * if DOMPurify is up to date or not + */ + + + DOMPurify.version = '3.0.2'; + /** + * Array of elements that DOMPurify removed during sanitation. + * Empty if nothing was removed. + */ + + DOMPurify.removed = []; + + if (!window || !window.document || window.document.nodeType !== 9) { + // Not running in a browser, provide a factory function + // so that you can pass your own Window + DOMPurify.isSupported = false; + return DOMPurify; + } + + const originalDocument = window.document; + let { + document + } = window; + const { + DocumentFragment, + HTMLTemplateElement, + Node, + Element, + NodeFilter, + NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, + HTMLFormElement, + DOMParser, + trustedTypes + } = window; + const ElementPrototype = Element.prototype; + const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); + const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); + const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); + const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a + // new document created via createHTMLDocument. As per the spec + // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) + // a new empty registry is used when creating a template contents owner + // document, so we use that as our parent document to ensure nothing + // is inherited. + + if (typeof HTMLTemplateElement === 'function') { + const template = document.createElement('template'); + + if (template.content && template.content.ownerDocument) { + document = template.content.ownerDocument; + } + } + + const trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument); + + const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : ''; + const { + implementation, + createNodeIterator, + createDocumentFragment, + getElementsByTagName + } = document; + const { + importNode + } = originalDocument; + let hooks = {}; + /** + * Expose whether this browser supports running the full DOMPurify. + */ + + DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined'; + const { + MUSTACHE_EXPR, + ERB_EXPR, + TMPLIT_EXPR, + DATA_ATTR, + ARIA_ATTR, + IS_SCRIPT_OR_DATA, + ATTR_WHITESPACE + } = EXPRESSIONS; + let { + IS_ALLOWED_URI: IS_ALLOWED_URI$1 + } = EXPRESSIONS; + /** + * We consider the elements and attributes below to be safe. Ideally + * don't add any new ones but feel free to remove unwanted ones. + */ + + /* allowed element names */ + + let ALLOWED_TAGS = null; + const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); + /* Allowed attribute names */ + + let ALLOWED_ATTR = null; + const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); + /* + * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements. + * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) + * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) + * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. + */ + + let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { + tagNameCheck: { + writable: true, + configurable: false, + enumerable: true, + value: null + }, + attributeNameCheck: { + writable: true, + configurable: false, + enumerable: true, + value: null + }, + allowCustomizedBuiltInElements: { + writable: true, + configurable: false, + enumerable: true, + value: false + } + })); + /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ + + let FORBID_TAGS = null; + /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ + + let FORBID_ATTR = null; + /* Decide if ARIA attributes are okay */ + + let ALLOW_ARIA_ATTR = true; + /* Decide if custom data attributes are okay */ + + let ALLOW_DATA_ATTR = true; + /* Decide if unknown protocols are okay */ + + let ALLOW_UNKNOWN_PROTOCOLS = false; + /* Decide if self-closing tags in attributes are allowed. + * Usually removed due to a mXSS issue in jQuery 3.0 */ + + let ALLOW_SELF_CLOSE_IN_ATTR = true; + /* Output should be safe for common template engines. + * This means, DOMPurify removes data attributes, mustaches and ERB + */ + + let SAFE_FOR_TEMPLATES = false; + /* Decide if document with <html>... should be returned */ + + let WHOLE_DOCUMENT = false; + /* Track whether config is already set on this instance of DOMPurify. */ + + let SET_CONFIG = false; + /* Decide if all elements (e.g. style, script) must be children of + * document.body. By default, browsers might move them to document.head */ + + let FORCE_BODY = false; + /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html + * string (or a TrustedHTML object if Trusted Types are supported). + * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead + */ + + let RETURN_DOM = false; + /* Decide if a DOM `DocumentFragment` should be returned, instead of a html + * string (or a TrustedHTML object if Trusted Types are supported) */ + + let RETURN_DOM_FRAGMENT = false; + /* Try to return a Trusted Type object instead of a string, return a string in + * case Trusted Types are not supported */ + + let RETURN_TRUSTED_TYPE = false; + /* Output should be free from DOM clobbering attacks? + * This sanitizes markups named with colliding, clobberable built-in DOM APIs. + */ + + let SANITIZE_DOM = true; + /* Achieve full DOM Clobbering protection by isolating the namespace of named + * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. + * + * HTML/DOM spec rules that enable DOM Clobbering: + * - Named Access on Window (§7.3.3) + * - DOM Tree Accessors (§3.1.5) + * - Form Element Parent-Child Relations (§4.10.3) + * - Iframe srcdoc / Nested WindowProxies (§4.8.5) + * - HTMLCollection (§4.2.10.2) + * + * Namespace isolation is implemented by prefixing `id` and `name` attributes + * with a constant string, i.e., `user-content-` + */ + + let SANITIZE_NAMED_PROPS = false; + const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; + /* Keep element content when removing element? */ + + let KEEP_CONTENT = true; + /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead + * of importing it into a new Document and returning a sanitized copy */ + + let IN_PLACE = false; + /* Allow usage of profiles like html, svg and mathMl */ + + let USE_PROFILES = {}; + /* Tags to ignore content of when KEEP_CONTENT is true */ + + let FORBID_CONTENTS = null; + const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); + /* Tags that are safe for data: URIs */ + + let DATA_URI_TAGS = null; + const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); + /* Attributes safe for values like "javascript:" */ + + let URI_SAFE_ATTRIBUTES = null; + const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); + const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; + const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; + const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; + /* Document namespace */ + + let NAMESPACE = HTML_NAMESPACE; + let IS_EMPTY_INPUT = false; + /* Allowed XHTML+XML namespaces */ + + let ALLOWED_NAMESPACES = null; + const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); + /* Parsing of strict XHTML documents */ + + let PARSER_MEDIA_TYPE; + const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; + const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; + let transformCaseFunc; + /* Keep a reference to config to pass to hooks */ + + let CONFIG = null; + /* Ideally, do not touch anything below this line */ + + /* ______________________________________________ */ + + const formElement = document.createElement('form'); + + const isRegexOrFunction = function isRegexOrFunction(testValue) { + return testValue instanceof RegExp || testValue instanceof Function; + }; + /** + * _parseConfig + * + * @param {Object} cfg optional config literal + */ + // eslint-disable-next-line complexity + + + const _parseConfig = function _parseConfig(cfg) { + if (CONFIG && CONFIG === cfg) { + return; + } + /* Shield configuration object from tampering */ + + + if (!cfg || typeof cfg !== 'object') { + cfg = {}; + } + /* Shield configuration object from prototype pollution */ + + + cfg = clone(cfg); + PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes + SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. + + transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; + /* Set configuration parameters */ + + ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; + ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; + ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; + URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent + cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent + transformCaseFunc // eslint-disable-line indent + ) // eslint-disable-line indent + : DEFAULT_URI_SAFE_ATTRIBUTES; + DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent + cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent + transformCaseFunc // eslint-disable-line indent + ) // eslint-disable-line indent + : DEFAULT_DATA_URI_TAGS; + FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; + FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; + FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; + USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false; + ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true + + ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true + + ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false + + ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true + + SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false + + WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false + + RETURN_DOM = cfg.RETURN_DOM || false; // Default false + + RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false + + RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false + + FORCE_BODY = cfg.FORCE_BODY || false; // Default false + + SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true + + SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false + + KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true + + IN_PLACE = cfg.IN_PLACE || false; // Default false + + IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; + NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; + CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; + + if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { + CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; + } + + if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { + CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; + } + + if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { + CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; + } + + if (SAFE_FOR_TEMPLATES) { + ALLOW_DATA_ATTR = false; + } + + if (RETURN_DOM_FRAGMENT) { + RETURN_DOM = true; + } + /* Parse profile info */ + + + if (USE_PROFILES) { + ALLOWED_TAGS = addToSet({}, [...text]); + ALLOWED_ATTR = []; + + if (USE_PROFILES.html === true) { + addToSet(ALLOWED_TAGS, html$1); + addToSet(ALLOWED_ATTR, html); + } + + if (USE_PROFILES.svg === true) { + addToSet(ALLOWED_TAGS, svg$1); + addToSet(ALLOWED_ATTR, svg); + addToSet(ALLOWED_ATTR, xml); + } + + if (USE_PROFILES.svgFilters === true) { + addToSet(ALLOWED_TAGS, svgFilters); + addToSet(ALLOWED_ATTR, svg); + addToSet(ALLOWED_ATTR, xml); + } + + if (USE_PROFILES.mathMl === true) { + addToSet(ALLOWED_TAGS, mathMl$1); + addToSet(ALLOWED_ATTR, mathMl); + addToSet(ALLOWED_ATTR, xml); + } + } + /* Merge configuration parameters */ + + + if (cfg.ADD_TAGS) { + if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { + ALLOWED_TAGS = clone(ALLOWED_TAGS); + } + + addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); + } + + if (cfg.ADD_ATTR) { + if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { + ALLOWED_ATTR = clone(ALLOWED_ATTR); + } + + addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); + } + + if (cfg.ADD_URI_SAFE_ATTR) { + addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); + } + + if (cfg.FORBID_CONTENTS) { + if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { + FORBID_CONTENTS = clone(FORBID_CONTENTS); + } + + addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); + } + /* Add #text in case KEEP_CONTENT is set to true */ + + + if (KEEP_CONTENT) { + ALLOWED_TAGS['#text'] = true; + } + /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ + + + if (WHOLE_DOCUMENT) { + addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); + } + /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ + + + if (ALLOWED_TAGS.table) { + addToSet(ALLOWED_TAGS, ['tbody']); + delete FORBID_TAGS.tbody; + } // Prevent further manipulation of configuration. + // Not available in IE8, Safari 5, etc. + + + if (freeze) { + freeze(cfg); + } + + CONFIG = cfg; + }; + + const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); + const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML + // namespace. We need to specify them explicitly + // so that they don't get erroneously deleted from + // HTML namespace. + + const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); + /* Keep track of all possible SVG and MathML tags + * so that we can perform the namespace checks + * correctly. */ + + const ALL_SVG_TAGS = addToSet({}, svg$1); + addToSet(ALL_SVG_TAGS, svgFilters); + addToSet(ALL_SVG_TAGS, svgDisallowed); + const ALL_MATHML_TAGS = addToSet({}, mathMl$1); + addToSet(ALL_MATHML_TAGS, mathMlDisallowed); + /** + * + * + * @param {Element} element a DOM element whose namespace is being checked + * @returns {boolean} Return false if the element has a + * namespace that a spec-compliant parser would never + * return. Return true otherwise. + */ + + const _checkValidNamespace = function _checkValidNamespace(element) { + let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode + // can be null. We just simulate parent in this case. + + if (!parent || !parent.tagName) { + parent = { + namespaceURI: NAMESPACE, + tagName: 'template' + }; + } + + const tagName = stringToLowerCase(element.tagName); + const parentTagName = stringToLowerCase(parent.tagName); + + if (!ALLOWED_NAMESPACES[element.namespaceURI]) { + return false; + } + + if (element.namespaceURI === SVG_NAMESPACE) { + // The only way to switch from HTML namespace to SVG + // is via <svg>. If it happens via any other tag, then + // it should be killed. + if (parent.namespaceURI === HTML_NAMESPACE) { + return tagName === 'svg'; + } // The only way to switch from MathML to SVG is via` + // svg if parent is either <annotation-xml> or MathML + // text integration points. + + + if (parent.namespaceURI === MATHML_NAMESPACE) { + return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); + } // We only allow elements that are defined in SVG + // spec. All others are disallowed in SVG namespace. + + + return Boolean(ALL_SVG_TAGS[tagName]); + } + + if (element.namespaceURI === MATHML_NAMESPACE) { + // The only way to switch from HTML namespace to MathML + // is via <math>. If it happens via any other tag, then + // it should be killed. + if (parent.namespaceURI === HTML_NAMESPACE) { + return tagName === 'math'; + } // The only way to switch from SVG to MathML is via + // <math> and HTML integration points + + + if (parent.namespaceURI === SVG_NAMESPACE) { + return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; + } // We only allow elements that are defined in MathML + // spec. All others are disallowed in MathML namespace. + + + return Boolean(ALL_MATHML_TAGS[tagName]); + } + + if (element.namespaceURI === HTML_NAMESPACE) { + // The only way to switch from SVG to HTML is via + // HTML integration points, and from MathML to HTML + // is via MathML text integration points + if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { + return false; + } + + if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { + return false; + } // We disallow tags that are specific for MathML + // or SVG and should never appear in HTML namespace + + + return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); + } // For XHTML and XML documents that support custom namespaces + + + if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { + return true; + } // The code should never reach this place (this means + // that the element somehow got namespace that is not + // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). + // Return false just in case. + + + return false; + }; + /** + * _forceRemove + * + * @param {Node} node a DOM node + */ + + + const _forceRemove = function _forceRemove(node) { + arrayPush(DOMPurify.removed, { + element: node + }); + + try { + // eslint-disable-next-line unicorn/prefer-dom-node-remove + node.parentNode.removeChild(node); + } catch (_) { + node.remove(); + } + }; + /** + * _removeAttribute + * + * @param {String} name an Attribute name + * @param {Node} node a DOM node + */ + + + const _removeAttribute = function _removeAttribute(name, node) { + try { + arrayPush(DOMPurify.removed, { + attribute: node.getAttributeNode(name), + from: node + }); + } catch (_) { + arrayPush(DOMPurify.removed, { + attribute: null, + from: node + }); + } + + node.removeAttribute(name); // We void attribute values for unremovable "is"" attributes + + if (name === 'is' && !ALLOWED_ATTR[name]) { + if (RETURN_DOM || RETURN_DOM_FRAGMENT) { + try { + _forceRemove(node); + } catch (_) {} + } else { + try { + node.setAttribute(name, ''); + } catch (_) {} + } + } + }; + /** + * _initDocument + * + * @param {String} dirty a string of dirty markup + * @return {Document} a DOM, filled with the dirty markup + */ + + + const _initDocument = function _initDocument(dirty) { + /* Create a HTML document */ + let doc; + let leadingWhitespace; + + if (FORCE_BODY) { + dirty = '<remove></remove>' + dirty; + } else { + /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ + const matches = stringMatch(dirty, /^[\r\n\t ]+/); + leadingWhitespace = matches && matches[0]; + } + + if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { + // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) + dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; + } + + const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; + /* + * Use the DOMParser API by default, fallback later if needs be + * DOMParser not work for svg when has multiple root element. + */ + + if (NAMESPACE === HTML_NAMESPACE) { + try { + doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); + } catch (_) {} + } + /* Use createHTMLDocument in case DOMParser is not available */ + + + if (!doc || !doc.documentElement) { + doc = implementation.createDocument(NAMESPACE, 'template', null); + + try { + doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; + } catch (_) {// Syntax error if dirtyPayload is invalid xml + } + } + + const body = doc.body || doc.documentElement; + + if (dirty && leadingWhitespace) { + body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); + } + /* Work on whole document or just its body */ + + + if (NAMESPACE === HTML_NAMESPACE) { + return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; + } + + return WHOLE_DOCUMENT ? doc.documentElement : body; + }; + /** + * _createIterator + * + * @param {Document} root document/fragment to create iterator for + * @return {Iterator} iterator instance + */ + + + const _createIterator = function _createIterator(root) { + return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise + NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false); + }; + /** + * _isClobbered + * + * @param {Node} elm element to check for clobbering attacks + * @return {Boolean} true if clobbered, false if safe + */ + + + const _isClobbered = function _isClobbered(elm) { + return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function'); + }; + /** + * _isNode + * + * @param {Node} obj object to check whether it's a DOM node + * @return {Boolean} true is object is a DOM node + */ + + + const _isNode = function _isNode(object) { + return typeof Node === 'object' ? object instanceof Node : object && typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'; + }; + /** + * _executeHook + * Execute user configurable hooks + * + * @param {String} entryPoint Name of the hook's entry point + * @param {Node} currentNode node to work on with the hook + * @param {Object} data additional hook parameters + */ + + + const _executeHook = function _executeHook(entryPoint, currentNode, data) { + if (!hooks[entryPoint]) { + return; + } + + arrayForEach(hooks[entryPoint], hook => { + hook.call(DOMPurify, currentNode, data, CONFIG); + }); + }; + /** + * _sanitizeElements + * + * @protect nodeName + * @protect textContent + * @protect removeChild + * + * @param {Node} currentNode to check for permission to exist + * @return {Boolean} true if node was killed, false if left alive + */ + + + const _sanitizeElements = function _sanitizeElements(currentNode) { + let content; + /* Execute a hook if present */ + + _executeHook('beforeSanitizeElements', currentNode, null); + /* Check if element is clobbered or can clobber */ + + + if (_isClobbered(currentNode)) { + _forceRemove(currentNode); + + return true; + } + /* Now let's check the element's type and name */ + + + const tagName = transformCaseFunc(currentNode.nodeName); + /* Execute a hook if present */ + + _executeHook('uponSanitizeElement', currentNode, { + tagName, + allowedTags: ALLOWED_TAGS + }); + /* Detect mXSS attempts abusing namespace confusion */ + + + if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { + _forceRemove(currentNode); + + return true; + } + /* Remove element if anything forbids its presence */ + + + if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { + /* Check if we have a custom element to handle */ + if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { + if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false; + if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false; + } + /* Keep content except for bad-listed elements */ + + + if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { + const parentNode = getParentNode(currentNode) || currentNode.parentNode; + const childNodes = getChildNodes(currentNode) || currentNode.childNodes; + + if (childNodes && parentNode) { + const childCount = childNodes.length; + + for (let i = childCount - 1; i >= 0; --i) { + parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); + } + } + } + + _forceRemove(currentNode); + + return true; + } + /* Check whether element has a valid namespace */ + + + if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { + _forceRemove(currentNode); + + return true; + } + /* Make sure that older browsers don't get noscript mXSS */ + + + if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) { + _forceRemove(currentNode); + + return true; + } + /* Sanitize element content to be template-safe */ + + + if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { + /* Get the element's text content */ + content = currentNode.textContent; + content = stringReplace(content, MUSTACHE_EXPR, ' '); + content = stringReplace(content, ERB_EXPR, ' '); + content = stringReplace(content, TMPLIT_EXPR, ' '); + + if (currentNode.textContent !== content) { + arrayPush(DOMPurify.removed, { + element: currentNode.cloneNode() + }); + currentNode.textContent = content; + } + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeElements', currentNode, null); + + return false; + }; + /** + * _isValidAttribute + * + * @param {string} lcTag Lowercase tag name of containing element. + * @param {string} lcName Lowercase attribute name. + * @param {string} value Attribute value. + * @return {Boolean} Returns true if `value` is valid, otherwise false. + */ + // eslint-disable-next-line complexity + + + const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { + /* Make sure attribute cannot clobber */ + if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { + return false; + } + /* Allow valid data-* attributes: At least one character after "-" + (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) + XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) + We don't need to check the value; it's always URI safe. */ + + + if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { + if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND + // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck + _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND + // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { + return false; + } + /* Check value is safe. First, is attr inert? If so, is safe */ + + } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (!value) ; else { + return false; + } + + return true; + }; + /** + * _basicCustomElementCheck + * checks if at least one dash is included in tagName, and it's not the first char + * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name + * @param {string} tagName name of the tag of the node to sanitize + */ + + + const _basicCustomElementTest = function _basicCustomElementTest(tagName) { + return tagName.indexOf('-') > 0; + }; + /** + * _sanitizeAttributes + * + * @protect attributes + * @protect nodeName + * @protect removeAttribute + * @protect setAttribute + * + * @param {Node} currentNode to sanitize + */ + + + const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { + let attr; + let value; + let lcName; + let l; + /* Execute a hook if present */ + + _executeHook('beforeSanitizeAttributes', currentNode, null); + + const { + attributes + } = currentNode; + /* Check if we have attributes; if not we might have a text node */ + + if (!attributes) { + return; + } + + const hookEvent = { + attrName: '', + attrValue: '', + keepAttr: true, + allowedAttributes: ALLOWED_ATTR + }; + l = attributes.length; + /* Go backwards over all attributes; safely remove bad ones */ + + while (l--) { + attr = attributes[l]; + const { + name, + namespaceURI + } = attr; + value = name === 'value' ? attr.value : stringTrim(attr.value); + lcName = transformCaseFunc(name); + /* Execute a hook if present */ + + hookEvent.attrName = lcName; + hookEvent.attrValue = value; + hookEvent.keepAttr = true; + hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set + + _executeHook('uponSanitizeAttribute', currentNode, hookEvent); + + value = hookEvent.attrValue; + /* Did the hooks approve of the attribute? */ + + if (hookEvent.forceKeepAttr) { + continue; + } + /* Remove attribute */ + + + _removeAttribute(name, currentNode); + /* Did the hooks approve of the attribute? */ + + + if (!hookEvent.keepAttr) { + continue; + } + /* Work around a security issue in jQuery 3.0 */ + + + if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { + _removeAttribute(name, currentNode); + + continue; + } + /* Sanitize attribute content to be template-safe */ + + + if (SAFE_FOR_TEMPLATES) { + value = stringReplace(value, MUSTACHE_EXPR, ' '); + value = stringReplace(value, ERB_EXPR, ' '); + value = stringReplace(value, TMPLIT_EXPR, ' '); + } + /* Is `value` valid for this attribute? */ + + + const lcTag = transformCaseFunc(currentNode.nodeName); + + if (!_isValidAttribute(lcTag, lcName, value)) { + continue; + } + /* Full DOM Clobbering protection via namespace isolation, + * Prefix id and name attributes with `user-content-` + */ + + + if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { + // Remove the attribute with this value + _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value + + + value = SANITIZE_NAMED_PROPS_PREFIX + value; + } + /* Handle attributes that require Trusted Types */ + + + if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { + if (namespaceURI) ; else { + switch (trustedTypes.getAttributeType(lcTag, lcName)) { + case 'TrustedHTML': + value = trustedTypesPolicy.createHTML(value); + break; + + case 'TrustedScriptURL': + value = trustedTypesPolicy.createScriptURL(value); + break; + } + } + } + /* Handle invalid data-* attribute set by try-catching it */ + + + try { + if (namespaceURI) { + currentNode.setAttributeNS(namespaceURI, name, value); + } else { + /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ + currentNode.setAttribute(name, value); + } + + arrayPop(DOMPurify.removed); + } catch (_) {} + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeAttributes', currentNode, null); + }; + /** + * _sanitizeShadowDOM + * + * @param {DocumentFragment} fragment to iterate over recursively + */ + + + const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { + let shadowNode; + + const shadowIterator = _createIterator(fragment); + /* Execute a hook if present */ + + + _executeHook('beforeSanitizeShadowDOM', fragment, null); + + while (shadowNode = shadowIterator.nextNode()) { + /* Execute a hook if present */ + _executeHook('uponSanitizeShadowNode', shadowNode, null); + /* Sanitize tags and elements */ + + + if (_sanitizeElements(shadowNode)) { + continue; + } + /* Deep shadow DOM detected */ + + + if (shadowNode.content instanceof DocumentFragment) { + _sanitizeShadowDOM(shadowNode.content); + } + /* Check attributes, sanitize if necessary */ + + + _sanitizeAttributes(shadowNode); + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeShadowDOM', fragment, null); + }; + /** + * Sanitize + * Public method providing core sanitation functionality + * + * @param {String|Node} dirty string or DOM node + * @param {Object} configuration object + */ + // eslint-disable-next-line complexity + + + DOMPurify.sanitize = function (dirty) { + let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + let body; + let importedNode; + let currentNode; + let returnNode; + /* Make sure we have a string to sanitize. + DO NOT return early, as this will return the wrong type if + the user has requested a DOM object rather than a string */ + + IS_EMPTY_INPUT = !dirty; + + if (IS_EMPTY_INPUT) { + dirty = '<!-->'; + } + /* Stringify, in case dirty is an object */ + + + if (typeof dirty !== 'string' && !_isNode(dirty)) { + // eslint-disable-next-line no-negated-condition + if (typeof dirty.toString !== 'function') { + throw typeErrorCreate('toString is not a function'); + } else { + dirty = dirty.toString(); + + if (typeof dirty !== 'string') { + throw typeErrorCreate('dirty is not a string, aborting'); + } + } + } + /* Return dirty HTML if DOMPurify cannot run */ + + + if (!DOMPurify.isSupported) { + return dirty; + } + /* Assign config vars */ + + + if (!SET_CONFIG) { + _parseConfig(cfg); + } + /* Clean up removed elements */ + + + DOMPurify.removed = []; + /* Check if dirty is correctly typed for IN_PLACE */ + + if (typeof dirty === 'string') { + IN_PLACE = false; + } + + if (IN_PLACE) { + /* Do some early pre-sanitization to avoid unsafe root nodes */ + if (dirty.nodeName) { + const tagName = transformCaseFunc(dirty.nodeName); + + if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { + throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); + } + } + } else if (dirty instanceof Node) { + /* If dirty is a DOM element, append to an empty document to avoid + elements being stripped by the parser */ + body = _initDocument('<!---->'); + importedNode = body.ownerDocument.importNode(dirty, true); + + if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') { + /* Node is already a body, use as is */ + body = importedNode; + } else if (importedNode.nodeName === 'HTML') { + body = importedNode; + } else { + // eslint-disable-next-line unicorn/prefer-dom-node-append + body.appendChild(importedNode); + } + } else { + /* Exit directly if we have nothing to do */ + if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes + dirty.indexOf('<') === -1) { + return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; + } + /* Initialize the document to work on */ + + + body = _initDocument(dirty); + /* Check we have a DOM node from the data */ + + if (!body) { + return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; + } + } + /* Remove first element node (ours) if FORCE_BODY is set */ + + + if (body && FORCE_BODY) { + _forceRemove(body.firstChild); + } + /* Get node iterator */ + + + const nodeIterator = _createIterator(IN_PLACE ? dirty : body); + /* Now start iterating over the created document */ + + + while (currentNode = nodeIterator.nextNode()) { + /* Sanitize tags and elements */ + if (_sanitizeElements(currentNode)) { + continue; + } + /* Shadow DOM detected, sanitize it */ + + + if (currentNode.content instanceof DocumentFragment) { + _sanitizeShadowDOM(currentNode.content); + } + /* Check attributes, sanitize if necessary */ + + + _sanitizeAttributes(currentNode); + } + /* If we sanitized `dirty` in-place, return it. */ + + + if (IN_PLACE) { + return dirty; + } + /* Return sanitized string or DOM */ + + + if (RETURN_DOM) { + if (RETURN_DOM_FRAGMENT) { + returnNode = createDocumentFragment.call(body.ownerDocument); + + while (body.firstChild) { + // eslint-disable-next-line unicorn/prefer-dom-node-append + returnNode.appendChild(body.firstChild); + } + } else { + returnNode = body; + } + + if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) { + /* + AdoptNode() is not used because internal state is not reset + (e.g. the past names map of a HTMLFormElement), this is safe + in theory but we would rather not risk another attack vector. + The state that is cloned by importNode() is explicitly defined + by the specs. + */ + returnNode = importNode.call(originalDocument, returnNode, true); + } + + return returnNode; + } + + let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; + /* Serialize doctype if allowed */ + + if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { + serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; + } + /* Sanitize final string template-safe */ + + + if (SAFE_FOR_TEMPLATES) { + serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' '); + serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' '); + serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' '); + } + + return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; + }; + /** + * Public method to set the configuration once + * setConfig + * + * @param {Object} cfg configuration object + */ + + + DOMPurify.setConfig = function (cfg) { + _parseConfig(cfg); + + SET_CONFIG = true; + }; + /** + * Public method to remove the configuration + * clearConfig + * + */ + + + DOMPurify.clearConfig = function () { + CONFIG = null; + SET_CONFIG = false; + }; + /** + * Public method to check if an attribute value is valid. + * Uses last set config, if any. Otherwise, uses config defaults. + * isValidAttribute + * + * @param {string} tag Tag name of containing element. + * @param {string} attr Attribute name. + * @param {string} value Attribute value. + * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false. + */ + + + DOMPurify.isValidAttribute = function (tag, attr, value) { + /* Initialize shared config vars if necessary. */ + if (!CONFIG) { + _parseConfig({}); + } + + const lcTag = transformCaseFunc(tag); + const lcName = transformCaseFunc(attr); + return _isValidAttribute(lcTag, lcName, value); + }; + /** + * AddHook + * Public method to add DOMPurify hooks + * + * @param {String} entryPoint entry point for the hook to add + * @param {Function} hookFunction function to execute + */ + + + DOMPurify.addHook = function (entryPoint, hookFunction) { + if (typeof hookFunction !== 'function') { + return; + } + + hooks[entryPoint] = hooks[entryPoint] || []; + arrayPush(hooks[entryPoint], hookFunction); + }; + /** + * RemoveHook + * Public method to remove a DOMPurify hook at a given entryPoint + * (pops it from the stack of hooks if more are present) + * + * @param {String} entryPoint entry point for the hook to remove + * @return {Function} removed(popped) hook + */ + + + DOMPurify.removeHook = function (entryPoint) { + if (hooks[entryPoint]) { + return arrayPop(hooks[entryPoint]); + } + }; + /** + * RemoveHooks + * Public method to remove all DOMPurify hooks at a given entryPoint + * + * @param {String} entryPoint entry point for the hooks to remove + */ + + + DOMPurify.removeHooks = function (entryPoint) { + if (hooks[entryPoint]) { + hooks[entryPoint] = []; + } + }; + /** + * RemoveAllHooks + * Public method to remove all DOMPurify hooks + * + */ + + + DOMPurify.removeAllHooks = function () { + hooks = {}; + }; + + return DOMPurify; +} + +var purify = createDOMPurify(); + +export { purify as default }; +//# sourceMappingURL=purify.es.js.map diff --git a/plugins/DOMPurify/purify.es.js.map b/plugins/DOMPurify/purify.es.js.map new file mode 100644 index 000000000..65518dbb3 --- /dev/null +++ b/plugins/DOMPurify/purify.es.js.map @@ -0,0 +1 @@ +{"version":3,"file":"purify.es.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","addToSet","set","array","transformCaseFunc","l","length","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childCount","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":"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"} \ No newline at end of file diff --git a/plugins/DOMPurify/purify.js b/plugins/DOMPurify/purify.js new file mode 100644 index 000000000..78211b80a --- /dev/null +++ b/plugins/DOMPurify/purify.js @@ -0,0 +1,1603 @@ +/*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ + +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory()); +})(this, (function () { 'use strict'; + + const { + entries, + setPrototypeOf, + isFrozen, + getPrototypeOf, + getOwnPropertyDescriptor + } = Object; + let { + freeze, + seal, + create + } = Object; // eslint-disable-line import/no-mutable-exports + + let { + apply, + construct + } = typeof Reflect !== 'undefined' && Reflect; + + if (!apply) { + apply = function apply(fun, thisValue, args) { + return fun.apply(thisValue, args); + }; + } + + if (!freeze) { + freeze = function freeze(x) { + return x; + }; + } + + if (!seal) { + seal = function seal(x) { + return x; + }; + } + + if (!construct) { + construct = function construct(Func, args) { + return new Func(...args); + }; + } + + const arrayForEach = unapply(Array.prototype.forEach); + const arrayPop = unapply(Array.prototype.pop); + const arrayPush = unapply(Array.prototype.push); + const stringToLowerCase = unapply(String.prototype.toLowerCase); + const stringToString = unapply(String.prototype.toString); + const stringMatch = unapply(String.prototype.match); + const stringReplace = unapply(String.prototype.replace); + const stringIndexOf = unapply(String.prototype.indexOf); + const stringTrim = unapply(String.prototype.trim); + const regExpTest = unapply(RegExp.prototype.test); + const typeErrorCreate = unconstruct(TypeError); + function unapply(func) { + return function (thisArg) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + return apply(func, thisArg, args); + }; + } + function unconstruct(func) { + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return construct(func, args); + }; + } + /* Add properties to a lookup table */ + + function addToSet(set, array, transformCaseFunc) { + transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase; + + if (setPrototypeOf) { + // Make 'in' and truthy checks like Boolean(set.constructor) + // independent of any properties defined on Object.prototype. + // Prevent prototype setters from intercepting set as a this value. + setPrototypeOf(set, null); + } + + let l = array.length; + + while (l--) { + let element = array[l]; + + if (typeof element === 'string') { + const lcElement = transformCaseFunc(element); + + if (lcElement !== element) { + // Config presets (e.g. tags.js, attrs.js) are immutable. + if (!isFrozen(array)) { + array[l] = lcElement; + } + + element = lcElement; + } + } + + set[element] = true; + } + + return set; + } + /* Shallow clone an object */ + + function clone(object) { + const newObject = create(null); + + for (const [property, value] of entries(object)) { + newObject[property] = value; + } + + return newObject; + } + /* This method automatically checks if the prop is function + * or getter and behaves accordingly. */ + + function lookupGetter(object, prop) { + while (object !== null) { + const desc = getOwnPropertyDescriptor(object, prop); + + if (desc) { + if (desc.get) { + return unapply(desc.get); + } + + if (typeof desc.value === 'function') { + return unapply(desc.value); + } + } + + object = getPrototypeOf(object); + } + + function fallbackValue(element) { + console.warn('fallback value for', element); + return null; + } + + return fallbackValue; + } + + const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG + + const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); + const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. + // We still need to know them so that we can do namespace + // checks properly in case one wants to add them to + // allow-list. + + const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); + const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, + // even those that we disallow by default. + + const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); + const text = freeze(['#text']); + + const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']); + const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); + const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); + const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); + + const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode + + const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); + const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); + const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape + + const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape + + const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape + ); + const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); + const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex + ); + const DOCTYPE_NAME = seal(/^html$/i); + + var EXPRESSIONS = /*#__PURE__*/Object.freeze({ + __proto__: null, + MUSTACHE_EXPR: MUSTACHE_EXPR, + ERB_EXPR: ERB_EXPR, + TMPLIT_EXPR: TMPLIT_EXPR, + DATA_ATTR: DATA_ATTR, + ARIA_ATTR: ARIA_ATTR, + IS_ALLOWED_URI: IS_ALLOWED_URI, + IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, + ATTR_WHITESPACE: ATTR_WHITESPACE, + DOCTYPE_NAME: DOCTYPE_NAME + }); + + const getGlobal = () => typeof window === 'undefined' ? null : window; + /** + * Creates a no-op policy for internal use only. + * Don't export this function outside this module! + * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory. + * @param {Document} document The document object (to determine policy name suffix) + * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types + * are not supported). + */ + + + const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) { + if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { + return null; + } // Allow the callers to control the unique policy name + // by adding a data-tt-policy-suffix to the script element with the DOMPurify. + // Policy creation with duplicate names throws in Trusted Types. + + + let suffix = null; + const ATTR_NAME = 'data-tt-policy-suffix'; + + if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) { + suffix = document.currentScript.getAttribute(ATTR_NAME); + } + + const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); + + try { + return trustedTypes.createPolicy(policyName, { + createHTML(html) { + return html; + }, + + createScriptURL(scriptUrl) { + return scriptUrl; + } + + }); + } catch (_) { + // Policy creation failed (most likely another DOMPurify script has + // already run). Skip creating the policy, as this will only cause errors + // if TT are enforced. + console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); + return null; + } + }; + + function createDOMPurify() { + let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); + + const DOMPurify = root => createDOMPurify(root); + /** + * Version label, exposed for easier checks + * if DOMPurify is up to date or not + */ + + + DOMPurify.version = '3.0.2'; + /** + * Array of elements that DOMPurify removed during sanitation. + * Empty if nothing was removed. + */ + + DOMPurify.removed = []; + + if (!window || !window.document || window.document.nodeType !== 9) { + // Not running in a browser, provide a factory function + // so that you can pass your own Window + DOMPurify.isSupported = false; + return DOMPurify; + } + + const originalDocument = window.document; + let { + document + } = window; + const { + DocumentFragment, + HTMLTemplateElement, + Node, + Element, + NodeFilter, + NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, + HTMLFormElement, + DOMParser, + trustedTypes + } = window; + const ElementPrototype = Element.prototype; + const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); + const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); + const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); + const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a + // new document created via createHTMLDocument. As per the spec + // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) + // a new empty registry is used when creating a template contents owner + // document, so we use that as our parent document to ensure nothing + // is inherited. + + if (typeof HTMLTemplateElement === 'function') { + const template = document.createElement('template'); + + if (template.content && template.content.ownerDocument) { + document = template.content.ownerDocument; + } + } + + const trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument); + + const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : ''; + const { + implementation, + createNodeIterator, + createDocumentFragment, + getElementsByTagName + } = document; + const { + importNode + } = originalDocument; + let hooks = {}; + /** + * Expose whether this browser supports running the full DOMPurify. + */ + + DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined'; + const { + MUSTACHE_EXPR, + ERB_EXPR, + TMPLIT_EXPR, + DATA_ATTR, + ARIA_ATTR, + IS_SCRIPT_OR_DATA, + ATTR_WHITESPACE + } = EXPRESSIONS; + let { + IS_ALLOWED_URI: IS_ALLOWED_URI$1 + } = EXPRESSIONS; + /** + * We consider the elements and attributes below to be safe. Ideally + * don't add any new ones but feel free to remove unwanted ones. + */ + + /* allowed element names */ + + let ALLOWED_TAGS = null; + const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); + /* Allowed attribute names */ + + let ALLOWED_ATTR = null; + const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); + /* + * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements. + * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) + * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) + * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. + */ + + let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { + tagNameCheck: { + writable: true, + configurable: false, + enumerable: true, + value: null + }, + attributeNameCheck: { + writable: true, + configurable: false, + enumerable: true, + value: null + }, + allowCustomizedBuiltInElements: { + writable: true, + configurable: false, + enumerable: true, + value: false + } + })); + /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ + + let FORBID_TAGS = null; + /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ + + let FORBID_ATTR = null; + /* Decide if ARIA attributes are okay */ + + let ALLOW_ARIA_ATTR = true; + /* Decide if custom data attributes are okay */ + + let ALLOW_DATA_ATTR = true; + /* Decide if unknown protocols are okay */ + + let ALLOW_UNKNOWN_PROTOCOLS = false; + /* Decide if self-closing tags in attributes are allowed. + * Usually removed due to a mXSS issue in jQuery 3.0 */ + + let ALLOW_SELF_CLOSE_IN_ATTR = true; + /* Output should be safe for common template engines. + * This means, DOMPurify removes data attributes, mustaches and ERB + */ + + let SAFE_FOR_TEMPLATES = false; + /* Decide if document with <html>... should be returned */ + + let WHOLE_DOCUMENT = false; + /* Track whether config is already set on this instance of DOMPurify. */ + + let SET_CONFIG = false; + /* Decide if all elements (e.g. style, script) must be children of + * document.body. By default, browsers might move them to document.head */ + + let FORCE_BODY = false; + /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html + * string (or a TrustedHTML object if Trusted Types are supported). + * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead + */ + + let RETURN_DOM = false; + /* Decide if a DOM `DocumentFragment` should be returned, instead of a html + * string (or a TrustedHTML object if Trusted Types are supported) */ + + let RETURN_DOM_FRAGMENT = false; + /* Try to return a Trusted Type object instead of a string, return a string in + * case Trusted Types are not supported */ + + let RETURN_TRUSTED_TYPE = false; + /* Output should be free from DOM clobbering attacks? + * This sanitizes markups named with colliding, clobberable built-in DOM APIs. + */ + + let SANITIZE_DOM = true; + /* Achieve full DOM Clobbering protection by isolating the namespace of named + * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. + * + * HTML/DOM spec rules that enable DOM Clobbering: + * - Named Access on Window (§7.3.3) + * - DOM Tree Accessors (§3.1.5) + * - Form Element Parent-Child Relations (§4.10.3) + * - Iframe srcdoc / Nested WindowProxies (§4.8.5) + * - HTMLCollection (§4.2.10.2) + * + * Namespace isolation is implemented by prefixing `id` and `name` attributes + * with a constant string, i.e., `user-content-` + */ + + let SANITIZE_NAMED_PROPS = false; + const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; + /* Keep element content when removing element? */ + + let KEEP_CONTENT = true; + /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead + * of importing it into a new Document and returning a sanitized copy */ + + let IN_PLACE = false; + /* Allow usage of profiles like html, svg and mathMl */ + + let USE_PROFILES = {}; + /* Tags to ignore content of when KEEP_CONTENT is true */ + + let FORBID_CONTENTS = null; + const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); + /* Tags that are safe for data: URIs */ + + let DATA_URI_TAGS = null; + const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); + /* Attributes safe for values like "javascript:" */ + + let URI_SAFE_ATTRIBUTES = null; + const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); + const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; + const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; + const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; + /* Document namespace */ + + let NAMESPACE = HTML_NAMESPACE; + let IS_EMPTY_INPUT = false; + /* Allowed XHTML+XML namespaces */ + + let ALLOWED_NAMESPACES = null; + const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); + /* Parsing of strict XHTML documents */ + + let PARSER_MEDIA_TYPE; + const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; + const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; + let transformCaseFunc; + /* Keep a reference to config to pass to hooks */ + + let CONFIG = null; + /* Ideally, do not touch anything below this line */ + + /* ______________________________________________ */ + + const formElement = document.createElement('form'); + + const isRegexOrFunction = function isRegexOrFunction(testValue) { + return testValue instanceof RegExp || testValue instanceof Function; + }; + /** + * _parseConfig + * + * @param {Object} cfg optional config literal + */ + // eslint-disable-next-line complexity + + + const _parseConfig = function _parseConfig(cfg) { + if (CONFIG && CONFIG === cfg) { + return; + } + /* Shield configuration object from tampering */ + + + if (!cfg || typeof cfg !== 'object') { + cfg = {}; + } + /* Shield configuration object from prototype pollution */ + + + cfg = clone(cfg); + PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes + SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. + + transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; + /* Set configuration parameters */ + + ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; + ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; + ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; + URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent + cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent + transformCaseFunc // eslint-disable-line indent + ) // eslint-disable-line indent + : DEFAULT_URI_SAFE_ATTRIBUTES; + DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent + cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent + transformCaseFunc // eslint-disable-line indent + ) // eslint-disable-line indent + : DEFAULT_DATA_URI_TAGS; + FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; + FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; + FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; + USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false; + ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true + + ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true + + ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false + + ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true + + SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false + + WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false + + RETURN_DOM = cfg.RETURN_DOM || false; // Default false + + RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false + + RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false + + FORCE_BODY = cfg.FORCE_BODY || false; // Default false + + SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true + + SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false + + KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true + + IN_PLACE = cfg.IN_PLACE || false; // Default false + + IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; + NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; + CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; + + if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { + CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; + } + + if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { + CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; + } + + if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { + CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; + } + + if (SAFE_FOR_TEMPLATES) { + ALLOW_DATA_ATTR = false; + } + + if (RETURN_DOM_FRAGMENT) { + RETURN_DOM = true; + } + /* Parse profile info */ + + + if (USE_PROFILES) { + ALLOWED_TAGS = addToSet({}, [...text]); + ALLOWED_ATTR = []; + + if (USE_PROFILES.html === true) { + addToSet(ALLOWED_TAGS, html$1); + addToSet(ALLOWED_ATTR, html); + } + + if (USE_PROFILES.svg === true) { + addToSet(ALLOWED_TAGS, svg$1); + addToSet(ALLOWED_ATTR, svg); + addToSet(ALLOWED_ATTR, xml); + } + + if (USE_PROFILES.svgFilters === true) { + addToSet(ALLOWED_TAGS, svgFilters); + addToSet(ALLOWED_ATTR, svg); + addToSet(ALLOWED_ATTR, xml); + } + + if (USE_PROFILES.mathMl === true) { + addToSet(ALLOWED_TAGS, mathMl$1); + addToSet(ALLOWED_ATTR, mathMl); + addToSet(ALLOWED_ATTR, xml); + } + } + /* Merge configuration parameters */ + + + if (cfg.ADD_TAGS) { + if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { + ALLOWED_TAGS = clone(ALLOWED_TAGS); + } + + addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); + } + + if (cfg.ADD_ATTR) { + if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { + ALLOWED_ATTR = clone(ALLOWED_ATTR); + } + + addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); + } + + if (cfg.ADD_URI_SAFE_ATTR) { + addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); + } + + if (cfg.FORBID_CONTENTS) { + if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { + FORBID_CONTENTS = clone(FORBID_CONTENTS); + } + + addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); + } + /* Add #text in case KEEP_CONTENT is set to true */ + + + if (KEEP_CONTENT) { + ALLOWED_TAGS['#text'] = true; + } + /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ + + + if (WHOLE_DOCUMENT) { + addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); + } + /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ + + + if (ALLOWED_TAGS.table) { + addToSet(ALLOWED_TAGS, ['tbody']); + delete FORBID_TAGS.tbody; + } // Prevent further manipulation of configuration. + // Not available in IE8, Safari 5, etc. + + + if (freeze) { + freeze(cfg); + } + + CONFIG = cfg; + }; + + const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); + const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML + // namespace. We need to specify them explicitly + // so that they don't get erroneously deleted from + // HTML namespace. + + const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); + /* Keep track of all possible SVG and MathML tags + * so that we can perform the namespace checks + * correctly. */ + + const ALL_SVG_TAGS = addToSet({}, svg$1); + addToSet(ALL_SVG_TAGS, svgFilters); + addToSet(ALL_SVG_TAGS, svgDisallowed); + const ALL_MATHML_TAGS = addToSet({}, mathMl$1); + addToSet(ALL_MATHML_TAGS, mathMlDisallowed); + /** + * + * + * @param {Element} element a DOM element whose namespace is being checked + * @returns {boolean} Return false if the element has a + * namespace that a spec-compliant parser would never + * return. Return true otherwise. + */ + + const _checkValidNamespace = function _checkValidNamespace(element) { + let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode + // can be null. We just simulate parent in this case. + + if (!parent || !parent.tagName) { + parent = { + namespaceURI: NAMESPACE, + tagName: 'template' + }; + } + + const tagName = stringToLowerCase(element.tagName); + const parentTagName = stringToLowerCase(parent.tagName); + + if (!ALLOWED_NAMESPACES[element.namespaceURI]) { + return false; + } + + if (element.namespaceURI === SVG_NAMESPACE) { + // The only way to switch from HTML namespace to SVG + // is via <svg>. If it happens via any other tag, then + // it should be killed. + if (parent.namespaceURI === HTML_NAMESPACE) { + return tagName === 'svg'; + } // The only way to switch from MathML to SVG is via` + // svg if parent is either <annotation-xml> or MathML + // text integration points. + + + if (parent.namespaceURI === MATHML_NAMESPACE) { + return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); + } // We only allow elements that are defined in SVG + // spec. All others are disallowed in SVG namespace. + + + return Boolean(ALL_SVG_TAGS[tagName]); + } + + if (element.namespaceURI === MATHML_NAMESPACE) { + // The only way to switch from HTML namespace to MathML + // is via <math>. If it happens via any other tag, then + // it should be killed. + if (parent.namespaceURI === HTML_NAMESPACE) { + return tagName === 'math'; + } // The only way to switch from SVG to MathML is via + // <math> and HTML integration points + + + if (parent.namespaceURI === SVG_NAMESPACE) { + return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; + } // We only allow elements that are defined in MathML + // spec. All others are disallowed in MathML namespace. + + + return Boolean(ALL_MATHML_TAGS[tagName]); + } + + if (element.namespaceURI === HTML_NAMESPACE) { + // The only way to switch from SVG to HTML is via + // HTML integration points, and from MathML to HTML + // is via MathML text integration points + if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { + return false; + } + + if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { + return false; + } // We disallow tags that are specific for MathML + // or SVG and should never appear in HTML namespace + + + return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); + } // For XHTML and XML documents that support custom namespaces + + + if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { + return true; + } // The code should never reach this place (this means + // that the element somehow got namespace that is not + // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). + // Return false just in case. + + + return false; + }; + /** + * _forceRemove + * + * @param {Node} node a DOM node + */ + + + const _forceRemove = function _forceRemove(node) { + arrayPush(DOMPurify.removed, { + element: node + }); + + try { + // eslint-disable-next-line unicorn/prefer-dom-node-remove + node.parentNode.removeChild(node); + } catch (_) { + node.remove(); + } + }; + /** + * _removeAttribute + * + * @param {String} name an Attribute name + * @param {Node} node a DOM node + */ + + + const _removeAttribute = function _removeAttribute(name, node) { + try { + arrayPush(DOMPurify.removed, { + attribute: node.getAttributeNode(name), + from: node + }); + } catch (_) { + arrayPush(DOMPurify.removed, { + attribute: null, + from: node + }); + } + + node.removeAttribute(name); // We void attribute values for unremovable "is"" attributes + + if (name === 'is' && !ALLOWED_ATTR[name]) { + if (RETURN_DOM || RETURN_DOM_FRAGMENT) { + try { + _forceRemove(node); + } catch (_) {} + } else { + try { + node.setAttribute(name, ''); + } catch (_) {} + } + } + }; + /** + * _initDocument + * + * @param {String} dirty a string of dirty markup + * @return {Document} a DOM, filled with the dirty markup + */ + + + const _initDocument = function _initDocument(dirty) { + /* Create a HTML document */ + let doc; + let leadingWhitespace; + + if (FORCE_BODY) { + dirty = '<remove></remove>' + dirty; + } else { + /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ + const matches = stringMatch(dirty, /^[\r\n\t ]+/); + leadingWhitespace = matches && matches[0]; + } + + if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { + // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) + dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; + } + + const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; + /* + * Use the DOMParser API by default, fallback later if needs be + * DOMParser not work for svg when has multiple root element. + */ + + if (NAMESPACE === HTML_NAMESPACE) { + try { + doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); + } catch (_) {} + } + /* Use createHTMLDocument in case DOMParser is not available */ + + + if (!doc || !doc.documentElement) { + doc = implementation.createDocument(NAMESPACE, 'template', null); + + try { + doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; + } catch (_) {// Syntax error if dirtyPayload is invalid xml + } + } + + const body = doc.body || doc.documentElement; + + if (dirty && leadingWhitespace) { + body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); + } + /* Work on whole document or just its body */ + + + if (NAMESPACE === HTML_NAMESPACE) { + return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; + } + + return WHOLE_DOCUMENT ? doc.documentElement : body; + }; + /** + * _createIterator + * + * @param {Document} root document/fragment to create iterator for + * @return {Iterator} iterator instance + */ + + + const _createIterator = function _createIterator(root) { + return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise + NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false); + }; + /** + * _isClobbered + * + * @param {Node} elm element to check for clobbering attacks + * @return {Boolean} true if clobbered, false if safe + */ + + + const _isClobbered = function _isClobbered(elm) { + return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function'); + }; + /** + * _isNode + * + * @param {Node} obj object to check whether it's a DOM node + * @return {Boolean} true is object is a DOM node + */ + + + const _isNode = function _isNode(object) { + return typeof Node === 'object' ? object instanceof Node : object && typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'; + }; + /** + * _executeHook + * Execute user configurable hooks + * + * @param {String} entryPoint Name of the hook's entry point + * @param {Node} currentNode node to work on with the hook + * @param {Object} data additional hook parameters + */ + + + const _executeHook = function _executeHook(entryPoint, currentNode, data) { + if (!hooks[entryPoint]) { + return; + } + + arrayForEach(hooks[entryPoint], hook => { + hook.call(DOMPurify, currentNode, data, CONFIG); + }); + }; + /** + * _sanitizeElements + * + * @protect nodeName + * @protect textContent + * @protect removeChild + * + * @param {Node} currentNode to check for permission to exist + * @return {Boolean} true if node was killed, false if left alive + */ + + + const _sanitizeElements = function _sanitizeElements(currentNode) { + let content; + /* Execute a hook if present */ + + _executeHook('beforeSanitizeElements', currentNode, null); + /* Check if element is clobbered or can clobber */ + + + if (_isClobbered(currentNode)) { + _forceRemove(currentNode); + + return true; + } + /* Now let's check the element's type and name */ + + + const tagName = transformCaseFunc(currentNode.nodeName); + /* Execute a hook if present */ + + _executeHook('uponSanitizeElement', currentNode, { + tagName, + allowedTags: ALLOWED_TAGS + }); + /* Detect mXSS attempts abusing namespace confusion */ + + + if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { + _forceRemove(currentNode); + + return true; + } + /* Remove element if anything forbids its presence */ + + + if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { + /* Check if we have a custom element to handle */ + if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { + if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false; + if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false; + } + /* Keep content except for bad-listed elements */ + + + if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { + const parentNode = getParentNode(currentNode) || currentNode.parentNode; + const childNodes = getChildNodes(currentNode) || currentNode.childNodes; + + if (childNodes && parentNode) { + const childCount = childNodes.length; + + for (let i = childCount - 1; i >= 0; --i) { + parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); + } + } + } + + _forceRemove(currentNode); + + return true; + } + /* Check whether element has a valid namespace */ + + + if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { + _forceRemove(currentNode); + + return true; + } + /* Make sure that older browsers don't get noscript mXSS */ + + + if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) { + _forceRemove(currentNode); + + return true; + } + /* Sanitize element content to be template-safe */ + + + if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { + /* Get the element's text content */ + content = currentNode.textContent; + content = stringReplace(content, MUSTACHE_EXPR, ' '); + content = stringReplace(content, ERB_EXPR, ' '); + content = stringReplace(content, TMPLIT_EXPR, ' '); + + if (currentNode.textContent !== content) { + arrayPush(DOMPurify.removed, { + element: currentNode.cloneNode() + }); + currentNode.textContent = content; + } + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeElements', currentNode, null); + + return false; + }; + /** + * _isValidAttribute + * + * @param {string} lcTag Lowercase tag name of containing element. + * @param {string} lcName Lowercase attribute name. + * @param {string} value Attribute value. + * @return {Boolean} Returns true if `value` is valid, otherwise false. + */ + // eslint-disable-next-line complexity + + + const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { + /* Make sure attribute cannot clobber */ + if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { + return false; + } + /* Allow valid data-* attributes: At least one character after "-" + (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) + XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) + We don't need to check the value; it's always URI safe. */ + + + if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { + if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND + // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck + _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND + // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck + lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { + return false; + } + /* Check value is safe. First, is attr inert? If so, is safe */ + + } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (!value) ; else { + return false; + } + + return true; + }; + /** + * _basicCustomElementCheck + * checks if at least one dash is included in tagName, and it's not the first char + * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name + * @param {string} tagName name of the tag of the node to sanitize + */ + + + const _basicCustomElementTest = function _basicCustomElementTest(tagName) { + return tagName.indexOf('-') > 0; + }; + /** + * _sanitizeAttributes + * + * @protect attributes + * @protect nodeName + * @protect removeAttribute + * @protect setAttribute + * + * @param {Node} currentNode to sanitize + */ + + + const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { + let attr; + let value; + let lcName; + let l; + /* Execute a hook if present */ + + _executeHook('beforeSanitizeAttributes', currentNode, null); + + const { + attributes + } = currentNode; + /* Check if we have attributes; if not we might have a text node */ + + if (!attributes) { + return; + } + + const hookEvent = { + attrName: '', + attrValue: '', + keepAttr: true, + allowedAttributes: ALLOWED_ATTR + }; + l = attributes.length; + /* Go backwards over all attributes; safely remove bad ones */ + + while (l--) { + attr = attributes[l]; + const { + name, + namespaceURI + } = attr; + value = name === 'value' ? attr.value : stringTrim(attr.value); + lcName = transformCaseFunc(name); + /* Execute a hook if present */ + + hookEvent.attrName = lcName; + hookEvent.attrValue = value; + hookEvent.keepAttr = true; + hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set + + _executeHook('uponSanitizeAttribute', currentNode, hookEvent); + + value = hookEvent.attrValue; + /* Did the hooks approve of the attribute? */ + + if (hookEvent.forceKeepAttr) { + continue; + } + /* Remove attribute */ + + + _removeAttribute(name, currentNode); + /* Did the hooks approve of the attribute? */ + + + if (!hookEvent.keepAttr) { + continue; + } + /* Work around a security issue in jQuery 3.0 */ + + + if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { + _removeAttribute(name, currentNode); + + continue; + } + /* Sanitize attribute content to be template-safe */ + + + if (SAFE_FOR_TEMPLATES) { + value = stringReplace(value, MUSTACHE_EXPR, ' '); + value = stringReplace(value, ERB_EXPR, ' '); + value = stringReplace(value, TMPLIT_EXPR, ' '); + } + /* Is `value` valid for this attribute? */ + + + const lcTag = transformCaseFunc(currentNode.nodeName); + + if (!_isValidAttribute(lcTag, lcName, value)) { + continue; + } + /* Full DOM Clobbering protection via namespace isolation, + * Prefix id and name attributes with `user-content-` + */ + + + if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { + // Remove the attribute with this value + _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value + + + value = SANITIZE_NAMED_PROPS_PREFIX + value; + } + /* Handle attributes that require Trusted Types */ + + + if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { + if (namespaceURI) ; else { + switch (trustedTypes.getAttributeType(lcTag, lcName)) { + case 'TrustedHTML': + value = trustedTypesPolicy.createHTML(value); + break; + + case 'TrustedScriptURL': + value = trustedTypesPolicy.createScriptURL(value); + break; + } + } + } + /* Handle invalid data-* attribute set by try-catching it */ + + + try { + if (namespaceURI) { + currentNode.setAttributeNS(namespaceURI, name, value); + } else { + /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ + currentNode.setAttribute(name, value); + } + + arrayPop(DOMPurify.removed); + } catch (_) {} + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeAttributes', currentNode, null); + }; + /** + * _sanitizeShadowDOM + * + * @param {DocumentFragment} fragment to iterate over recursively + */ + + + const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { + let shadowNode; + + const shadowIterator = _createIterator(fragment); + /* Execute a hook if present */ + + + _executeHook('beforeSanitizeShadowDOM', fragment, null); + + while (shadowNode = shadowIterator.nextNode()) { + /* Execute a hook if present */ + _executeHook('uponSanitizeShadowNode', shadowNode, null); + /* Sanitize tags and elements */ + + + if (_sanitizeElements(shadowNode)) { + continue; + } + /* Deep shadow DOM detected */ + + + if (shadowNode.content instanceof DocumentFragment) { + _sanitizeShadowDOM(shadowNode.content); + } + /* Check attributes, sanitize if necessary */ + + + _sanitizeAttributes(shadowNode); + } + /* Execute a hook if present */ + + + _executeHook('afterSanitizeShadowDOM', fragment, null); + }; + /** + * Sanitize + * Public method providing core sanitation functionality + * + * @param {String|Node} dirty string or DOM node + * @param {Object} configuration object + */ + // eslint-disable-next-line complexity + + + DOMPurify.sanitize = function (dirty) { + let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + let body; + let importedNode; + let currentNode; + let returnNode; + /* Make sure we have a string to sanitize. + DO NOT return early, as this will return the wrong type if + the user has requested a DOM object rather than a string */ + + IS_EMPTY_INPUT = !dirty; + + if (IS_EMPTY_INPUT) { + dirty = '<!-->'; + } + /* Stringify, in case dirty is an object */ + + + if (typeof dirty !== 'string' && !_isNode(dirty)) { + // eslint-disable-next-line no-negated-condition + if (typeof dirty.toString !== 'function') { + throw typeErrorCreate('toString is not a function'); + } else { + dirty = dirty.toString(); + + if (typeof dirty !== 'string') { + throw typeErrorCreate('dirty is not a string, aborting'); + } + } + } + /* Return dirty HTML if DOMPurify cannot run */ + + + if (!DOMPurify.isSupported) { + return dirty; + } + /* Assign config vars */ + + + if (!SET_CONFIG) { + _parseConfig(cfg); + } + /* Clean up removed elements */ + + + DOMPurify.removed = []; + /* Check if dirty is correctly typed for IN_PLACE */ + + if (typeof dirty === 'string') { + IN_PLACE = false; + } + + if (IN_PLACE) { + /* Do some early pre-sanitization to avoid unsafe root nodes */ + if (dirty.nodeName) { + const tagName = transformCaseFunc(dirty.nodeName); + + if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { + throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); + } + } + } else if (dirty instanceof Node) { + /* If dirty is a DOM element, append to an empty document to avoid + elements being stripped by the parser */ + body = _initDocument('<!---->'); + importedNode = body.ownerDocument.importNode(dirty, true); + + if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') { + /* Node is already a body, use as is */ + body = importedNode; + } else if (importedNode.nodeName === 'HTML') { + body = importedNode; + } else { + // eslint-disable-next-line unicorn/prefer-dom-node-append + body.appendChild(importedNode); + } + } else { + /* Exit directly if we have nothing to do */ + if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes + dirty.indexOf('<') === -1) { + return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; + } + /* Initialize the document to work on */ + + + body = _initDocument(dirty); + /* Check we have a DOM node from the data */ + + if (!body) { + return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; + } + } + /* Remove first element node (ours) if FORCE_BODY is set */ + + + if (body && FORCE_BODY) { + _forceRemove(body.firstChild); + } + /* Get node iterator */ + + + const nodeIterator = _createIterator(IN_PLACE ? dirty : body); + /* Now start iterating over the created document */ + + + while (currentNode = nodeIterator.nextNode()) { + /* Sanitize tags and elements */ + if (_sanitizeElements(currentNode)) { + continue; + } + /* Shadow DOM detected, sanitize it */ + + + if (currentNode.content instanceof DocumentFragment) { + _sanitizeShadowDOM(currentNode.content); + } + /* Check attributes, sanitize if necessary */ + + + _sanitizeAttributes(currentNode); + } + /* If we sanitized `dirty` in-place, return it. */ + + + if (IN_PLACE) { + return dirty; + } + /* Return sanitized string or DOM */ + + + if (RETURN_DOM) { + if (RETURN_DOM_FRAGMENT) { + returnNode = createDocumentFragment.call(body.ownerDocument); + + while (body.firstChild) { + // eslint-disable-next-line unicorn/prefer-dom-node-append + returnNode.appendChild(body.firstChild); + } + } else { + returnNode = body; + } + + if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) { + /* + AdoptNode() is not used because internal state is not reset + (e.g. the past names map of a HTMLFormElement), this is safe + in theory but we would rather not risk another attack vector. + The state that is cloned by importNode() is explicitly defined + by the specs. + */ + returnNode = importNode.call(originalDocument, returnNode, true); + } + + return returnNode; + } + + let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; + /* Serialize doctype if allowed */ + + if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { + serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; + } + /* Sanitize final string template-safe */ + + + if (SAFE_FOR_TEMPLATES) { + serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' '); + serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' '); + serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' '); + } + + return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; + }; + /** + * Public method to set the configuration once + * setConfig + * + * @param {Object} cfg configuration object + */ + + + DOMPurify.setConfig = function (cfg) { + _parseConfig(cfg); + + SET_CONFIG = true; + }; + /** + * Public method to remove the configuration + * clearConfig + * + */ + + + DOMPurify.clearConfig = function () { + CONFIG = null; + SET_CONFIG = false; + }; + /** + * Public method to check if an attribute value is valid. + * Uses last set config, if any. Otherwise, uses config defaults. + * isValidAttribute + * + * @param {string} tag Tag name of containing element. + * @param {string} attr Attribute name. + * @param {string} value Attribute value. + * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false. + */ + + + DOMPurify.isValidAttribute = function (tag, attr, value) { + /* Initialize shared config vars if necessary. */ + if (!CONFIG) { + _parseConfig({}); + } + + const lcTag = transformCaseFunc(tag); + const lcName = transformCaseFunc(attr); + return _isValidAttribute(lcTag, lcName, value); + }; + /** + * AddHook + * Public method to add DOMPurify hooks + * + * @param {String} entryPoint entry point for the hook to add + * @param {Function} hookFunction function to execute + */ + + + DOMPurify.addHook = function (entryPoint, hookFunction) { + if (typeof hookFunction !== 'function') { + return; + } + + hooks[entryPoint] = hooks[entryPoint] || []; + arrayPush(hooks[entryPoint], hookFunction); + }; + /** + * RemoveHook + * Public method to remove a DOMPurify hook at a given entryPoint + * (pops it from the stack of hooks if more are present) + * + * @param {String} entryPoint entry point for the hook to remove + * @return {Function} removed(popped) hook + */ + + + DOMPurify.removeHook = function (entryPoint) { + if (hooks[entryPoint]) { + return arrayPop(hooks[entryPoint]); + } + }; + /** + * RemoveHooks + * Public method to remove all DOMPurify hooks at a given entryPoint + * + * @param {String} entryPoint entry point for the hooks to remove + */ + + + DOMPurify.removeHooks = function (entryPoint) { + if (hooks[entryPoint]) { + hooks[entryPoint] = []; + } + }; + /** + * RemoveAllHooks + * Public method to remove all DOMPurify hooks + * + */ + + + DOMPurify.removeAllHooks = function () { + hooks = {}; + }; + + return DOMPurify; + } + + var purify = createDOMPurify(); + + return purify; + +})); +//# sourceMappingURL=purify.js.map diff --git a/plugins/DOMPurify/purify.js.map b/plugins/DOMPurify/purify.js.map new file mode 100644 index 000000000..7e36eb2c3 --- /dev/null +++ b/plugins/DOMPurify/purify.js.map @@ -0,0 +1 @@ +{"version":3,"file":"purify.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","addToSet","set","array","transformCaseFunc","l","length","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childCount","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":"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"} \ No newline at end of file diff --git a/plugins/DOMPurify/purify.min.js b/plugins/DOMPurify/purify.min.js new file mode 100644 index 000000000..62d1235a6 --- /dev/null +++ b/plugins/DOMPurify/purify.min.js @@ -0,0 +1,3 @@ +/*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t){return new e(...t)});const m=N(Array.prototype.forEach),u=N(Array.prototype.pop),p=N(Array.prototype.push),f=N(String.prototype.toLowerCase),d=N(String.prototype.toString),h=N(String.prototype.match),g=N(String.prototype.replace),y=N(String.prototype.indexOf),T=N(String.prototype.trim),E=N(RegExp.prototype.test),A=(b=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(b,t)});var b;function N(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function _(e,o,r){r=r||f,t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function w(t){const n=l(null);for(const[o,r]of e(t))n[o]=r;return n}function R(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=o(e)}return function(e){return console.warn("fallback value for",e),null}}const S=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),v=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=i(["#text"]),O=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),M=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),P=a(/<%[\w\W]*|[\w\W]*%>/gm),H=a(/\${[\w\W]*}/gm),z=a(/^data-[\-\w.\u00B7-\uFFFF]/),B=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),j=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:H,DATA_ATTR:z,ARIA_ATTR:B,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:j,DOCTYPE_NAME:q});const Y=()=>"undefined"==typeof window?null:window,K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(o)&&(n=t.currentScript.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var V=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const o=e=>t(e);if(o.version="3.0.2",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;const r=n.document;let{document:a}=n;const{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:b,NodeFilter:N,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:P,DOMParser:H,trustedTypes:z}=n,B=b.prototype,G=R(B,"cloneNode"),j=R(B,"nextSibling"),V=R(B,"childNodes"),$=R(B,"parentNode");if("function"==typeof c){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}const Z=K(z,r),J=Z?Z.createHTML(""):"",{implementation:Q,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=a,{importNode:oe}=r;let re={};o.isSupported="function"==typeof e&&"function"==typeof $&&Q&&void 0!==Q.createHTMLDocument;const{MUSTACHE_EXPR:ie,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ue}=X;let{IS_ALLOWED_URI:pe}=X,fe=null;const de=_({},[...S,...x,...D,...v,...L]);let he=null;const ge=_({},[...O,...M,...I,...U]);let ye=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ee=null,Ae=!0,be=!0,Ne=!1,_e=!0,we=!1,Re=!1,Se=!1,xe=!1,De=!1,ke=!1,ve=!1,Ce=!0,Le=!1;const Oe="user-content-";let Me=!0,Ie=!1,Ue={},Fe=null;const Pe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const ze=_({},["audio","video","img","source","image","track"]);let Be=null;const We=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Xe=qe,Ye=!1,Ke=null;const Ve=_({},[Ge,je,qe],d);let $e;const Ze=["application/xhtml+xml","text/html"],Je="text/html";let Qe,et=null;const tt=a.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){et&&et===e||(e&&"object"==typeof e||(e={}),e=w(e),$e=$e=-1===Ze.indexOf(e.PARSER_MEDIA_TYPE)?Je:e.PARSER_MEDIA_TYPE,Qe="application/xhtml+xml"===$e?d:f,fe="ALLOWED_TAGS"in e?_({},e.ALLOWED_TAGS,Qe):de,he="ALLOWED_ATTR"in e?_({},e.ALLOWED_ATTR,Qe):ge,Ke="ALLOWED_NAMESPACES"in e?_({},e.ALLOWED_NAMESPACES,d):Ve,Be="ADD_URI_SAFE_ATTR"in e?_(w(We),e.ADD_URI_SAFE_ATTR,Qe):We,He="ADD_DATA_URI_TAGS"in e?_(w(ze),e.ADD_DATA_URI_TAGS,Qe):ze,Fe="FORBID_CONTENTS"in e?_({},e.FORBID_CONTENTS,Qe):Pe,Te="FORBID_TAGS"in e?_({},e.FORBID_TAGS,Qe):{},Ee="FORBID_ATTR"in e?_({},e.FORBID_ATTR,Qe):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,be=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,we=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,ve=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,Ie=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||W,Xe=e.NAMESPACE||qe,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(be=!1),ke&&(De=!0),Ue&&(fe=_({},[...L]),he=[],!0===Ue.html&&(_(fe,S),_(he,O)),!0===Ue.svg&&(_(fe,x),_(he,M),_(he,U)),!0===Ue.svgFilters&&(_(fe,D),_(he,M),_(he,U)),!0===Ue.mathMl&&(_(fe,v),_(he,I),_(he,U))),e.ADD_TAGS&&(fe===de&&(fe=w(fe)),_(fe,e.ADD_TAGS,Qe)),e.ADD_ATTR&&(he===ge&&(he=w(he)),_(he,e.ADD_ATTR,Qe)),e.ADD_URI_SAFE_ATTR&&_(Be,e.ADD_URI_SAFE_ATTR,Qe),e.FORBID_CONTENTS&&(Fe===Pe&&(Fe=w(Fe)),_(Fe,e.FORBID_CONTENTS,Qe)),Me&&(fe["#text"]=!0),Re&&_(fe,["html","head","body"]),fe.table&&(_(fe,["tbody"]),delete Te.tbody),i&&i(e),et=e)},rt=_({},["mi","mo","mn","ms","mtext"]),it=_({},["foreignobject","desc","title","annotation-xml"]),at=_({},["title","style","font","a","script"]),lt=_({},x);_(lt,D),_(lt,k);const ct=_({},v);_(ct,C);const st=function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=f(e.tagName),o=f(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI===qe?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===o||rt[o]):Boolean(lt[n]):e.namespaceURI===Ge?t.namespaceURI===qe?"math"===n:t.namespaceURI===je?"math"===n&&it[o]:Boolean(ct[n]):e.namespaceURI===qe?!(t.namespaceURI===je&&!it[o])&&(!(t.namespaceURI===Ge&&!rt[o])&&(!ct[n]&&(at[n]||!lt[n]))):!("application/xhtml+xml"!==$e||!Ke[e.namespaceURI]))},mt=function(e){p(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ut=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!he[e])if(De||ke)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){let t,n;if(xe)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===$e&&Xe===qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Z?Z.createHTML(e):e;if(Xe===qe)try{t=(new H).parseFromString(o,$e)}catch(e){}if(!t||!t.documentElement){t=Q.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ye?J:o}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(a.createTextNode(n),r.childNodes[0]||null),Xe===qe?ne.call(t,Re?"html":"body")[0]:Re?t.documentElement:r},ft=function(e){return ee.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT,null,!1)},dt=function(e){return e instanceof P&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ht=function(e){return"object"==typeof s?e instanceof s:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){re[e]&&m(re[e],(e=>{e.call(o,t,n,et)}))},yt=function(e){let t;if(gt("beforeSanitizeElements",e,null),dt(e))return mt(e),!0;const n=Qe(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:n,allowedTags:fe}),e.hasChildNodes()&&!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return mt(e),!0;if(!fe[n]||Te[n]){if(!Te[n]&&Et(n)){if(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,n))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))return!1}if(Me&&!Fe[n]){const t=$(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o)t.insertBefore(G(n[o],!0),j(e))}}return mt(e),!0}return e instanceof b&&!st(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n||!E(/<\/no(script|embed)/i,e.innerHTML)?(we&&3===e.nodeType&&(t=e.textContent,t=g(t,ie," "),t=g(t,ae," "),t=g(t,le," "),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Tt=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in a||n in tt))return!1;if(be&&!Ee[t]&&E(ce,t));else if(Ae&&E(se,t));else if(!he[t]||Ee[t]){if(!(Et(e)&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&E(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Be[t]);else if(E(pe,g(n,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!He[e]){if(Ne&&!E(me,g(n,ue,"")));else if(n)return!1}else;return!0},Et=function(e){return e.indexOf("-")>0},At=function(e){let t,n,r,i;gt("beforeSanitizeAttributes",e,null);const{attributes:a}=e;if(!a)return;const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he};for(i=a.length;i--;){t=a[i];const{name:c,namespaceURI:s}=t;if(n="value"===c?t.value:T(t.value),r=Qe(c),l.attrName=r,l.attrValue=n,l.keepAttr=!0,l.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,l),n=l.attrValue,l.forceKeepAttr)continue;if(ut(c,e),!l.keepAttr)continue;if(!_e&&E(/\/>/i,n)){ut(c,e);continue}we&&(n=g(n,ie," "),n=g(n,ae," "),n=g(n,le," "));const m=Qe(e.nodeName);if(Tt(m,r,n)){if(!Le||"id"!==r&&"name"!==r||(ut(c,e),n=Oe+n),Z&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(m,r)){case"TrustedHTML":n=Z.createHTML(n);break;case"TrustedScriptURL":n=Z.createScriptURL(n)}try{s?e.setAttributeNS(s,c,n):e.setAttribute(c,n),u(o.removed)}catch(e){}}}gt("afterSanitizeAttributes",e,null)},bt=function e(t){let n;const o=ft(t);for(gt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)gt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof l&&e(n.content),At(n));gt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t,n,i,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ht(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Se||ot(c),o.removed=[],"string"==typeof e&&(Ie=!1),Ie){if(e.nodeName){const t=Qe(e.nodeName);if(!fe[t]||Te[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)t=pt("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!De&&!we&&!Re&&-1===e.indexOf("<"))return Z&&ve?Z.createHTML(e):e;if(t=pt(e),!t)return De?null:ve?J:""}t&&xe&&mt(t.firstChild);const m=ft(Ie?e:t);for(;i=m.nextNode();)yt(i)||(i.content instanceof l&&bt(i.content),At(i));if(Ie)return e;if(De){if(ke)for(a=te.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(he.shadowroot||he.shadowrootmod)&&(a=oe.call(r,a,!0)),a}let u=Re?t.outerHTML:t.innerHTML;return Re&&fe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&E(q,t.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+u),we&&(u=g(u,ie," "),u=g(u,ae," "),u=g(u,le," ")),Z&&ve?Z.createHTML(u):u},o.setConfig=function(e){ot(e),Se=!0},o.clearConfig=function(){et=null,Se=!1},o.isValidAttribute=function(e,t,n){et||ot({});const o=Qe(e),r=Qe(t);return Tt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],p(re[e],t))},o.removeHook=function(e){if(re[e])return u(re[e])},o.removeHooks=function(e){re[e]&&(re[e]=[])},o.removeAllHooks=function(){re={}},o}();return V})); +//# sourceMappingURL=purify.min.js.map diff --git a/plugins/DOMPurify/purify.min.js.map b/plugins/DOMPurify/purify.min.js.map new file mode 100644 index 000000000..467a29879 --- /dev/null +++ b/plugins/DOMPurify/purify.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"purify.min.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","func","TypeError","_len2","arguments","length","_key2","thisArg","_len","_key","addToSet","set","array","transformCaseFunc","l","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","purify","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":";0OAAA,MAAMA,QACJA,EADIC,eAEJA,EAFIC,SAGJA,EAHIC,eAIJA,EAJIC,yBAKJA,GACEC,OAEJ,IAAIC,OAAEA,EAAFC,KAAUA,EAAVC,OAAgBA,GAAWH,QAC3BI,MAAEA,EAAFC,UAASA,GAAiC,oBAAZC,SAA2BA,QAExDF,IACHA,EAAQ,SAAUG,EAAKC,EAAWC,GAChC,OAAOF,EAAIH,MAAMI,EAAWC,EAC7B,GAGER,IACHA,EAAS,SAAUS,GACjB,OAAOA,CACR,GAGER,IACHA,EAAO,SAAUQ,GACf,OAAOA,CACR,GAGEL,IACHA,EAAY,SAAUM,EAAMF,GAC1B,OAAO,IAAIE,KAAQF,EACpB,GAGH,MAAMG,EAAeC,EAAQC,MAAMC,UAAUC,SAEvCC,EAAWJ,EAAQC,MAAMC,UAAUG,KACnCC,EAAYN,EAAQC,MAAMC,UAAUK,MAGpCC,EAAoBR,EAAQS,OAAOP,UAAUQ,aAC7CC,EAAiBX,EAAQS,OAAOP,UAAUU,UAC1CC,EAAcb,EAAQS,OAAOP,UAAUY,OACvCC,EAAgBf,EAAQS,OAAOP,UAAUc,SACzCC,EAAgBjB,EAAQS,OAAOP,UAAUgB,SACzCC,EAAanB,EAAQS,OAAOP,UAAUkB,MAEtCC,EAAarB,EAAQsB,OAAOpB,UAAUqB,MAEtCC,GAMsBC,EANQC,UAO3B,WAAA,IAAA,IAAAC,EAAAC,UAAAC,OAAIjC,EAAJ,IAAAK,MAAA0B,GAAAG,EAAA,EAAAA,EAAAH,EAAAG,IAAIlC,EAAJkC,GAAAF,UAAAE,GAAA,OAAatC,EAAUiC,EAAM7B,EAA7B,GADF,IAAqB6B,EAJrB,SAASzB,EAAQyB,GACtB,OAAO,SAACM,GAAD,IAAA,IAAAC,EAAAJ,UAAAC,OAAajC,EAAb,IAAAK,MAAA+B,EAAA,EAAAA,EAAA,EAAA,GAAAC,EAAA,EAAAA,EAAAD,EAAAC,IAAarC,EAAbqC,EAAA,GAAAL,UAAAK,GAAA,OAAsB1C,EAAMkC,EAAMM,EAASnC,EAA3C,CACR,CAOM,SAASsC,EAASC,EAAKC,EAAOC,GACnCA,EAAoBA,GAAwC7B,EACxDzB,GAIFA,EAAeoD,EAAK,MAGtB,IAAIG,EAAIF,EAAMP,OACPS,KAAAA,KAAK,CACV,IAAIC,EAAUH,EAAME,GACpB,GAAuB,iBAAZC,EAAsB,CAC/B,MAAMC,EAAYH,EAAkBE,GAChCC,IAAcD,IAEXvD,EAASoD,KACZA,EAAME,GAAKE,GAGbD,EAAUC,EAEb,CAEDL,EAAII,IAAW,CAChB,CAED,OAAOJ,CACR,CAGM,SAASM,EAAMC,GACpB,MAAMC,EAAYrD,EAAO,MAEpB,IAAA,MAAOsD,EAAUC,KAAU/D,EAAQ4D,GACtCC,EAAUC,GAAYC,EAGxB,OAAOF,CACR,CAID,SAASG,EAAaJ,EAAQK,GACrBL,KAAW,OAAXA,GAAiB,CACtB,MAAMM,EAAO9D,EAAyBwD,EAAQK,GAC9C,GAAIC,EAAM,CACJA,GAAAA,EAAKC,IACP,OAAOjD,EAAQgD,EAAKC,KAGtB,GAA0B,mBAAfD,EAAKH,MACd,OAAO7C,EAAQgD,EAAKH,MAEvB,CAEDH,EAASzD,EAAeyD,EACzB,CAOD,OALSQ,SAAcX,GAErB,OADAY,QAAQC,KAAK,qBAAsBb,GAC5B,IACR,CAGF,CC5HM,MAAMc,EAAOjE,EAAO,CACzB,IACA,OACA,UACA,UACA,OACA,UACA,QACA,QACA,IACA,MACA,MACA,MACA,QACA,aACA,OACA,KACA,SACA,SACA,UACA,SACA,OACA,OACA,MACA,WACA,UACA,OACA,WACA,KACA,YACA,MACA,UACA,MACA,SACA,MACA,MACA,KACA,KACA,UACA,KACA,WACA,aACA,SACA,OACA,SACA,OACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,OACA,IACA,MACA,QACA,MACA,MACA,QACA,SACA,KACA,OACA,MACA,OACA,UACA,OACA,WACA,QACA,MACA,OACA,KACA,WACA,SACA,SACA,IACA,UACA,MACA,WACA,IACA,KACA,KACA,OACA,IACA,OACA,UACA,SACA,SACA,QACA,SACA,SACA,OACA,SACA,SACA,QACA,MACA,UACA,MACA,QACA,QACA,KACA,WACA,WACA,QACA,KACA,QACA,OACA,KACA,QACA,KACA,IACA,KACA,MACA,QACA,QAIWkE,EAAMlE,EAAO,CACxB,MACA,IACA,WACA,cACA,eACA,eACA,gBACA,mBACA,SACA,WACA,OACA,OACA,UACA,SACA,OACA,IACA,QACA,WACA,QACA,QACA,OACA,iBACA,SACA,OACA,WACA,QACA,OACA,UACA,UACA,WACA,iBACA,OACA,OACA,QACA,SACA,SACA,OACA,WACA,QACA,OACA,QACA,OACA,UAGWmE,EAAanE,EAAO,CAC/B,UACA,gBACA,sBACA,cACA,mBACA,oBACA,oBACA,iBACA,UACA,UACA,UACA,UACA,UACA,iBACA,UACA,UACA,cACA,eACA,WACA,eACA,qBACA,cACA,SACA,iBAOWoE,EAAgBpE,EAAO,CAClC,UACA,gBACA,SACA,UACA,eACA,YACA,mBACA,iBACA,gBACA,gBACA,gBACA,QACA,YACA,OACA,eACA,YACA,UACA,gBACA,SACA,MACA,aACA,UACA,QAGWqE,EAASrE,EAAO,CAC3B,OACA,WACA,SACA,UACA,QACA,SACA,KACA,aACA,gBACA,KACA,KACA,QACA,UACA,WACA,QACA,OACA,KACA,SACA,QACA,SACA,OACA,OACA,UACA,SACA,MACA,QACA,MACA,SACA,aACA,gBAKWsE,EAAmBtE,EAAO,CACrC,UACA,cACA,aACA,WACA,YACA,UACA,UACA,SACA,SACA,QACA,YACA,aACA,iBACA,cACA,SAGWuE,EAAOvE,EAAO,CAAC,UCrRfiE,EAAOjE,EAAO,CACzB,SACA,SACA,QACA,MACA,iBACA,eACA,uBACA,WACA,aACA,UACA,SACA,UACA,cACA,cACA,UACA,OACA,QACA,QACA,QACA,OACA,UACA,WACA,eACA,SACA,cACA,WACA,WACA,UACA,MACA,WACA,0BACA,wBACA,WACA,YACA,UACA,eACA,OACA,MACA,UACA,SACA,SACA,OACA,OACA,WACA,KACA,YACA,YACA,QACA,OACA,QACA,OACA,OACA,UACA,OACA,MACA,MACA,YACA,QACA,SACA,MACA,YACA,WACA,QACA,OACA,QACA,UACA,aACA,SACA,OACA,UACA,UACA,cACA,cACA,SACA,UACA,UACA,aACA,WACA,MACA,WACA,MACA,WACA,OACA,OACA,UACA,aACA,QACA,WACA,QACA,OACA,QACA,OACA,UACA,QACA,MACA,SACA,OACA,QACA,UACA,WACA,QACA,YACA,OACA,SACA,SACA,QACA,QACA,QACA,SAGWkE,EAAMlE,EAAO,CACxB,gBACA,aACA,WACA,qBACA,SACA,gBACA,gBACA,UACA,gBACA,iBACA,QACA,OACA,KACA,QACA,OACA,gBACA,YACA,YACA,QACA,sBACA,8BACA,gBACA,kBACA,KACA,KACA,IACA,KACA,KACA,kBACA,YACA,UACA,UACA,MACA,WACA,YACA,MACA,OACA,eACA,YACA,SACA,cACA,cACA,gBACA,cACA,YACA,mBACA,eACA,aACA,eACA,cACA,KACA,KACA,KACA,KACA,aACA,WACA,gBACA,oBACA,SACA,OACA,KACA,kBACA,KACA,MACA,IACA,KACA,KACA,KACA,KACA,UACA,YACA,aACA,WACA,OACA,eACA,iBACA,eACA,mBACA,iBACA,QACA,aACA,aACA,eACA,eACA,cACA,cACA,mBACA,YACA,MACA,OACA,QACA,SACA,OACA,MACA,OACA,aACA,SACA,WACA,UACA,QACA,SACA,cACA,SACA,WACA,cACA,OACA,aACA,sBACA,mBACA,eACA,SACA,gBACA,sBACA,iBACA,IACA,KACA,KACA,SACA,OACA,OACA,cACA,YACA,UACA,SACA,SACA,QACA,OACA,kBACA,mBACA,mBACA,eACA,cACA,eACA,cACA,aACA,eACA,mBACA,oBACA,iBACA,kBACA,oBACA,iBACA,SACA,eACA,QACA,eACA,iBACA,WACA,UACA,UACA,YACA,mBACA,cACA,kBACA,iBACA,aACA,OACA,KACA,KACA,UACA,SACA,UACA,aACA,UACA,aACA,gBACA,gBACA,QACA,eACA,OACA,eACA,mBACA,mBACA,IACA,KACA,KACA,QACA,IACA,KACA,KACA,IACA,eAGWqE,EAASrE,EAAO,CAC3B,SACA,cAC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"} \ No newline at end of file
'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? $('#form-item-description').summernote('code') : '', 'email': $('#form-item-email').val(), 'label': $('#form-item-label').val(), 'login': $('#form-item-login').val(), 'tags': $('#form-item-tags').val(), 'url': $('#form-item-url').val(), 'fa_icon': $('#form-item-icon').val(),
<!-- DOMPurify --> <script type="text/javascript" src="plugins/DOMPurify/purify.min.js"></script> 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true}}) : '', 'email': DOMPurify.sanitize($('#form-item-email').val()), 'label': DOMPurify.sanitize($('#form-item-label').val()), 'login': DOMPurify.sanitize($('#form-item-login').val()), 'tags': DOMPurify.sanitize($('#form-item-tags').val()), 'url': DOMPurify.sanitize($('#form-item-url').val()), 'fa_icon': DOMPurify.sanitize($('#form-item-icon').val()), /*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ 'use strict'; const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object; let { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports let { apply, construct } = typeof Reflect !== 'undefined' && Reflect; if (!apply) { apply = function apply(fun, thisValue, args) { return fun.apply(thisValue, args); }; } if (!freeze) { freeze = function freeze(x) { return x; }; } if (!seal) { seal = function seal(x) { return x; }; } if (!construct) { construct = function construct(Func, args) { return new Func(...args); }; } const arrayForEach = unapply(Array.prototype.forEach); const arrayPop = unapply(Array.prototype.pop); const arrayPush = unapply(Array.prototype.push); const stringToLowerCase = unapply(String.prototype.toLowerCase); const stringToString = unapply(String.prototype.toString); const stringMatch = unapply(String.prototype.match); const stringReplace = unapply(String.prototype.replace); const stringIndexOf = unapply(String.prototype.indexOf); const stringTrim = unapply(String.prototype.trim); const regExpTest = unapply(RegExp.prototype.test); const typeErrorCreate = unconstruct(TypeError); function unapply(func) { return function (thisArg) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return apply(func, thisArg, args); }; } function unconstruct(func) { return function () { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } return construct(func, args); }; } /* Add properties to a lookup table */ function addToSet(set, array, transformCaseFunc) { transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase; if (setPrototypeOf) { // Make 'in' and truthy checks like Boolean(set.constructor) // independent of any properties defined on Object.prototype. // Prevent prototype setters from intercepting set as a this value. setPrototypeOf(set, null); } let l = array.length; while (l--) { let element = array[l]; if (typeof element === 'string') { const lcElement = transformCaseFunc(element); if (lcElement !== element) { // Config presets (e.g. tags.js, attrs.js) are immutable. if (!isFrozen(array)) { array[l] = lcElement; } element = lcElement; } } set[element] = true; } return set; } /* Shallow clone an object */ function clone(object) { const newObject = create(null); for (const [property, value] of entries(object)) { newObject[property] = value; } return newObject; } /* This method automatically checks if the prop is function * or getter and behaves accordingly. */ function lookupGetter(object, prop) { while (object !== null) { const desc = getOwnPropertyDescriptor(object, prop); if (desc) { if (desc.get) { return unapply(desc.get); } if (typeof desc.value === 'function') { return unapply(desc.value); } } object = getPrototypeOf(object); } function fallbackValue(element) { console.warn('fallback value for', element); return null; } return fallbackValue; } const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. // We still need to know them so that we can do namespace // checks properly in case one wants to add them to // allow-list. const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, // even those that we disallow by default. const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); const text = freeze(['#text']); const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']); const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape ); const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex ); const DOCTYPE_NAME = seal(/^html$/i); var EXPRESSIONS = /*#__PURE__*/Object.freeze({ __proto__: null, MUSTACHE_EXPR: MUSTACHE_EXPR, ERB_EXPR: ERB_EXPR, TMPLIT_EXPR: TMPLIT_EXPR, DATA_ATTR: DATA_ATTR, ARIA_ATTR: ARIA_ATTR, IS_ALLOWED_URI: IS_ALLOWED_URI, IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, ATTR_WHITESPACE: ATTR_WHITESPACE, DOCTYPE_NAME: DOCTYPE_NAME }); const getGlobal = () => typeof window === 'undefined' ? null : window; /** * Creates a no-op policy for internal use only. * Don't export this function outside this module! * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory. * @param {Document} document The document object (to determine policy name suffix) * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types * are not supported). */ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) { if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { return null; } // Allow the callers to control the unique policy name // by adding a data-tt-policy-suffix to the script element with the DOMPurify. // Policy creation with duplicate names throws in Trusted Types. let suffix = null; const ATTR_NAME = 'data-tt-policy-suffix'; if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) { suffix = document.currentScript.getAttribute(ATTR_NAME); } const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); try { return trustedTypes.createPolicy(policyName, { createHTML(html) { return html; }, createScriptURL(scriptUrl) { return scriptUrl; } }); } catch (_) { // Policy creation failed (most likely another DOMPurify script has // already run). Skip creating the policy, as this will only cause errors // if TT are enforced. console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); return null; } }; function createDOMPurify() { let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); const DOMPurify = root => createDOMPurify(root); /** * Version label, exposed for easier checks * if DOMPurify is up to date or not */ DOMPurify.version = '3.0.2'; /** * Array of elements that DOMPurify removed during sanitation. * Empty if nothing was removed. */ DOMPurify.removed = []; if (!window || !window.document || window.document.nodeType !== 9) { // Not running in a browser, provide a factory function // so that you can pass your own Window DOMPurify.isSupported = false; return DOMPurify; } const originalDocument = window.document; let { document } = window; const { DocumentFragment, HTMLTemplateElement, Node, Element, NodeFilter, NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, HTMLFormElement, DOMParser, trustedTypes } = window; const ElementPrototype = Element.prototype; const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a // new document created via createHTMLDocument. As per the spec // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) // a new empty registry is used when creating a template contents owner // document, so we use that as our parent document to ensure nothing // is inherited. if (typeof HTMLTemplateElement === 'function') { const template = document.createElement('template'); if (template.content && template.content.ownerDocument) { document = template.content.ownerDocument; } } const trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument); const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : ''; const { implementation, createNodeIterator, createDocumentFragment, getElementsByTagName } = document; const { importNode } = originalDocument; let hooks = {}; /** * Expose whether this browser supports running the full DOMPurify. */ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined'; const { MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE } = EXPRESSIONS; let { IS_ALLOWED_URI: IS_ALLOWED_URI$1 } = EXPRESSIONS; /** * We consider the elements and attributes below to be safe. Ideally * don't add any new ones but feel free to remove unwanted ones. */ /* allowed element names */ let ALLOWED_TAGS = null; const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); /* Allowed attribute names */ let ALLOWED_ATTR = null; const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); /* * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements. * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. */ let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { tagNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, attributeNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, allowCustomizedBuiltInElements: { writable: true, configurable: false, enumerable: true, value: false } })); /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ let FORBID_TAGS = null; /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ let FORBID_ATTR = null; /* Decide if ARIA attributes are okay */ let ALLOW_ARIA_ATTR = true; /* Decide if custom data attributes are okay */ let ALLOW_DATA_ATTR = true; /* Decide if unknown protocols are okay */ let ALLOW_UNKNOWN_PROTOCOLS = false; /* Decide if self-closing tags in attributes are allowed. * Usually removed due to a mXSS issue in jQuery 3.0 */ let ALLOW_SELF_CLOSE_IN_ATTR = true; /* Output should be safe for common template engines. * This means, DOMPurify removes data attributes, mustaches and ERB */ let SAFE_FOR_TEMPLATES = false; /* Decide if document with <html>... should be returned */ let WHOLE_DOCUMENT = false; /* Track whether config is already set on this instance of DOMPurify. */ let SET_CONFIG = false; /* Decide if all elements (e.g. style, script) must be children of * document.body. By default, browsers might move them to document.head */ let FORCE_BODY = false; /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported). * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead */ let RETURN_DOM = false; /* Decide if a DOM `DocumentFragment` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported) */ let RETURN_DOM_FRAGMENT = false; /* Try to return a Trusted Type object instead of a string, return a string in * case Trusted Types are not supported */ let RETURN_TRUSTED_TYPE = false; /* Output should be free from DOM clobbering attacks? * This sanitizes markups named with colliding, clobberable built-in DOM APIs. */ let SANITIZE_DOM = true; /* Achieve full DOM Clobbering protection by isolating the namespace of named * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. * * HTML/DOM spec rules that enable DOM Clobbering: * - Named Access on Window (§7.3.3) * - DOM Tree Accessors (§3.1.5) * - Form Element Parent-Child Relations (§4.10.3) * - Iframe srcdoc / Nested WindowProxies (§4.8.5) * - HTMLCollection (§4.2.10.2) * * Namespace isolation is implemented by prefixing `id` and `name` attributes * with a constant string, i.e., `user-content-` */ let SANITIZE_NAMED_PROPS = false; const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; /* Keep element content when removing element? */ let KEEP_CONTENT = true; /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead * of importing it into a new Document and returning a sanitized copy */ let IN_PLACE = false; /* Allow usage of profiles like html, svg and mathMl */ let USE_PROFILES = {}; /* Tags to ignore content of when KEEP_CONTENT is true */ let FORBID_CONTENTS = null; const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); /* Tags that are safe for data: URIs */ let DATA_URI_TAGS = null; const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); /* Attributes safe for values like "javascript:" */ let URI_SAFE_ATTRIBUTES = null; const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; /* Document namespace */ let NAMESPACE = HTML_NAMESPACE; let IS_EMPTY_INPUT = false; /* Allowed XHTML+XML namespaces */ let ALLOWED_NAMESPACES = null; const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); /* Parsing of strict XHTML documents */ let PARSER_MEDIA_TYPE; const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; let transformCaseFunc; /* Keep a reference to config to pass to hooks */ let CONFIG = null; /* Ideally, do not touch anything below this line */ /* ______________________________________________ */ const formElement = document.createElement('form'); const isRegexOrFunction = function isRegexOrFunction(testValue) { return testValue instanceof RegExp || testValue instanceof Function; }; /** * _parseConfig * * @param {Object} cfg optional config literal */ // eslint-disable-next-line complexity const _parseConfig = function _parseConfig(cfg) { if (CONFIG && CONFIG === cfg) { return; } /* Shield configuration object from tampering */ if (!cfg || typeof cfg !== 'object') { cfg = {}; } /* Shield configuration object from prototype pollution */ cfg = clone(cfg); PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; /* Set configuration parameters */ ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent transformCaseFunc // eslint-disable-line indent ) // eslint-disable-line indent : DEFAULT_URI_SAFE_ATTRIBUTES; DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent transformCaseFunc // eslint-disable-line indent ) // eslint-disable-line indent : DEFAULT_DATA_URI_TAGS; FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false; ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false RETURN_DOM = cfg.RETURN_DOM || false; // Default false RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false FORCE_BODY = cfg.FORCE_BODY || false; // Default false SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true IN_PLACE = cfg.IN_PLACE || false; // Default false IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; } if (SAFE_FOR_TEMPLATES) { ALLOW_DATA_ATTR = false; } if (RETURN_DOM_FRAGMENT) { RETURN_DOM = true; } /* Parse profile info */ if (USE_PROFILES) { ALLOWED_TAGS = addToSet({}, [...text]); ALLOWED_ATTR = []; if (USE_PROFILES.html === true) { addToSet(ALLOWED_TAGS, html$1); addToSet(ALLOWED_ATTR, html); } if (USE_PROFILES.svg === true) { addToSet(ALLOWED_TAGS, svg$1); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.svgFilters === true) { addToSet(ALLOWED_TAGS, svgFilters); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.mathMl === true) { addToSet(ALLOWED_TAGS, mathMl$1); addToSet(ALLOWED_ATTR, mathMl); addToSet(ALLOWED_ATTR, xml); } } /* Merge configuration parameters */ if (cfg.ADD_TAGS) { if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { ALLOWED_TAGS = clone(ALLOWED_TAGS); } addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); } if (cfg.ADD_ATTR) { if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { ALLOWED_ATTR = clone(ALLOWED_ATTR); } addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); } if (cfg.ADD_URI_SAFE_ATTR) { addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); } if (cfg.FORBID_CONTENTS) { if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { FORBID_CONTENTS = clone(FORBID_CONTENTS); } addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); } /* Add #text in case KEEP_CONTENT is set to true */ if (KEEP_CONTENT) { ALLOWED_TAGS['#text'] = true; } /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ if (WHOLE_DOCUMENT) { addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); } /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ if (ALLOWED_TAGS.table) { addToSet(ALLOWED_TAGS, ['tbody']); delete FORBID_TAGS.tbody; } // Prevent further manipulation of configuration. // Not available in IE8, Safari 5, etc. if (freeze) { freeze(cfg); } CONFIG = cfg; }; const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML // namespace. We need to specify them explicitly // so that they don't get erroneously deleted from // HTML namespace. const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); /* Keep track of all possible SVG and MathML tags * so that we can perform the namespace checks * correctly. */ const ALL_SVG_TAGS = addToSet({}, svg$1); addToSet(ALL_SVG_TAGS, svgFilters); addToSet(ALL_SVG_TAGS, svgDisallowed); const ALL_MATHML_TAGS = addToSet({}, mathMl$1); addToSet(ALL_MATHML_TAGS, mathMlDisallowed); /** * * * @param {Element} element a DOM element whose namespace is being checked * @returns {boolean} Return false if the element has a * namespace that a spec-compliant parser would never * return. Return true otherwise. */ const _checkValidNamespace = function _checkValidNamespace(element) { let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode // can be null. We just simulate parent in this case. if (!parent || !parent.tagName) { parent = { namespaceURI: NAMESPACE, tagName: 'template' }; } const tagName = stringToLowerCase(element.tagName); const parentTagName = stringToLowerCase(parent.tagName); if (!ALLOWED_NAMESPACES[element.namespaceURI]) { return false; } if (element.namespaceURI === SVG_NAMESPACE) { // The only way to switch from HTML namespace to SVG // is via <svg>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'svg'; } // The only way to switch from MathML to SVG is via` // svg if parent is either <annotation-xml> or MathML // text integration points. if (parent.namespaceURI === MATHML_NAMESPACE) { return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); } // We only allow elements that are defined in SVG // spec. All others are disallowed in SVG namespace. return Boolean(ALL_SVG_TAGS[tagName]); } if (element.namespaceURI === MATHML_NAMESPACE) { // The only way to switch from HTML namespace to MathML // is via <math>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'math'; } // The only way to switch from SVG to MathML is via // <math> and HTML integration points if (parent.namespaceURI === SVG_NAMESPACE) { return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; } // We only allow elements that are defined in MathML // spec. All others are disallowed in MathML namespace. return Boolean(ALL_MATHML_TAGS[tagName]); } if (element.namespaceURI === HTML_NAMESPACE) { // The only way to switch from SVG to HTML is via // HTML integration points, and from MathML to HTML // is via MathML text integration points if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { return false; } if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { return false; } // We disallow tags that are specific for MathML // or SVG and should never appear in HTML namespace return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); } // For XHTML and XML documents that support custom namespaces if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { return true; } // The code should never reach this place (this means // that the element somehow got namespace that is not // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). // Return false just in case. return false; }; /** * _forceRemove * * @param {Node} node a DOM node */ const _forceRemove = function _forceRemove(node) { arrayPush(DOMPurify.removed, { element: node }); try { // eslint-disable-next-line unicorn/prefer-dom-node-remove node.parentNode.removeChild(node); } catch (_) { node.remove(); } }; /** * _removeAttribute * * @param {String} name an Attribute name * @param {Node} node a DOM node */ const _removeAttribute = function _removeAttribute(name, node) { try { arrayPush(DOMPurify.removed, { attribute: node.getAttributeNode(name), from: node }); } catch (_) { arrayPush(DOMPurify.removed, { attribute: null, from: node }); } node.removeAttribute(name); // We void attribute values for unremovable "is"" attributes if (name === 'is' && !ALLOWED_ATTR[name]) { if (RETURN_DOM || RETURN_DOM_FRAGMENT) { try { _forceRemove(node); } catch (_) {} } else { try { node.setAttribute(name, ''); } catch (_) {} } } }; /** * _initDocument * * @param {String} dirty a string of dirty markup * @return {Document} a DOM, filled with the dirty markup */ const _initDocument = function _initDocument(dirty) { /* Create a HTML document */ let doc; let leadingWhitespace; if (FORCE_BODY) { dirty = '<remove></remove>' + dirty; } else { /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ const matches = stringMatch(dirty, /^[\r\n\t ]+/); leadingWhitespace = matches && matches[0]; } if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; } const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; /* * Use the DOMParser API by default, fallback later if needs be * DOMParser not work for svg when has multiple root element. */ if (NAMESPACE === HTML_NAMESPACE) { try { doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); } catch (_) {} } /* Use createHTMLDocument in case DOMParser is not available */ if (!doc || !doc.documentElement) { doc = implementation.createDocument(NAMESPACE, 'template', null); try { doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; } catch (_) {// Syntax error if dirtyPayload is invalid xml } } const body = doc.body || doc.documentElement; if (dirty && leadingWhitespace) { body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); } /* Work on whole document or just its body */ if (NAMESPACE === HTML_NAMESPACE) { return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; } return WHOLE_DOCUMENT ? doc.documentElement : body; }; /** * _createIterator * * @param {Document} root document/fragment to create iterator for * @return {Iterator} iterator instance */ const _createIterator = function _createIterator(root) { return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false); }; /** * _isClobbered * * @param {Node} elm element to check for clobbering attacks * @return {Boolean} true if clobbered, false if safe */ const _isClobbered = function _isClobbered(elm) { return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function'); }; /** * _isNode * * @param {Node} obj object to check whether it's a DOM node * @return {Boolean} true is object is a DOM node */ const _isNode = function _isNode(object) { return typeof Node === 'object' ? object instanceof Node : object && typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'; }; /** * _executeHook * Execute user configurable hooks * * @param {String} entryPoint Name of the hook's entry point * @param {Node} currentNode node to work on with the hook * @param {Object} data additional hook parameters */ const _executeHook = function _executeHook(entryPoint, currentNode, data) { if (!hooks[entryPoint]) { return; } arrayForEach(hooks[entryPoint], hook => { hook.call(DOMPurify, currentNode, data, CONFIG); }); }; /** * _sanitizeElements * * @protect nodeName * @protect textContent * @protect removeChild * * @param {Node} currentNode to check for permission to exist * @return {Boolean} true if node was killed, false if left alive */ const _sanitizeElements = function _sanitizeElements(currentNode) { let content; /* Execute a hook if present */ _executeHook('beforeSanitizeElements', currentNode, null); /* Check if element is clobbered or can clobber */ if (_isClobbered(currentNode)) { _forceRemove(currentNode); return true; } /* Now let's check the element's type and name */ const tagName = transformCaseFunc(currentNode.nodeName); /* Execute a hook if present */ _executeHook('uponSanitizeElement', currentNode, { tagName, allowedTags: ALLOWED_TAGS }); /* Detect mXSS attempts abusing namespace confusion */ if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { _forceRemove(currentNode); return true; } /* Remove element if anything forbids its presence */ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { /* Check if we have a custom element to handle */ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false; if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false; } /* Keep content except for bad-listed elements */ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { const parentNode = getParentNode(currentNode) || currentNode.parentNode; const childNodes = getChildNodes(currentNode) || currentNode.childNodes; if (childNodes && parentNode) { const childCount = childNodes.length; for (let i = childCount - 1; i >= 0; --i) { parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); } } } _forceRemove(currentNode); return true; } /* Check whether element has a valid namespace */ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { _forceRemove(currentNode); return true; } /* Make sure that older browsers don't get noscript mXSS */ if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) { _forceRemove(currentNode); return true; } /* Sanitize element content to be template-safe */ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { /* Get the element's text content */ content = currentNode.textContent; content = stringReplace(content, MUSTACHE_EXPR, ' '); content = stringReplace(content, ERB_EXPR, ' '); content = stringReplace(content, TMPLIT_EXPR, ' '); if (currentNode.textContent !== content) { arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() }); currentNode.textContent = content; } } /* Execute a hook if present */ _executeHook('afterSanitizeElements', currentNode, null); return false; }; /** * _isValidAttribute * * @param {string} lcTag Lowercase tag name of containing element. * @param {string} lcName Lowercase attribute name. * @param {string} value Attribute value. * @return {Boolean} Returns true if `value` is valid, otherwise false. */ // eslint-disable-next-line complexity const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { /* Make sure attribute cannot clobber */ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { return false; } /* Allow valid data-* attributes: At least one character after "-" (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) We don't need to check the value; it's always URI safe. */ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { return false; } /* Check value is safe. First, is attr inert? If so, is safe */ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (!value) ; else { return false; } return true; }; /** * _basicCustomElementCheck * checks if at least one dash is included in tagName, and it's not the first char * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name * @param {string} tagName name of the tag of the node to sanitize */ const _basicCustomElementTest = function _basicCustomElementTest(tagName) { return tagName.indexOf('-') > 0; }; /** * _sanitizeAttributes * * @protect attributes * @protect nodeName * @protect removeAttribute * @protect setAttribute * * @param {Node} currentNode to sanitize */ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { let attr; let value; let lcName; let l; /* Execute a hook if present */ _executeHook('beforeSanitizeAttributes', currentNode, null); const { attributes } = currentNode; /* Check if we have attributes; if not we might have a text node */ if (!attributes) { return; } const hookEvent = { attrName: '', attrValue: '', keepAttr: true, allowedAttributes: ALLOWED_ATTR }; l = attributes.length; /* Go backwards over all attributes; safely remove bad ones */ while (l--) { attr = attributes[l]; const { name, namespaceURI } = attr; value = name === 'value' ? attr.value : stringTrim(attr.value); lcName = transformCaseFunc(name); /* Execute a hook if present */ hookEvent.attrName = lcName; hookEvent.attrValue = value; hookEvent.keepAttr = true; hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set _executeHook('uponSanitizeAttribute', currentNode, hookEvent); value = hookEvent.attrValue; /* Did the hooks approve of the attribute? */ if (hookEvent.forceKeepAttr) { continue; } /* Remove attribute */ _removeAttribute(name, currentNode); /* Did the hooks approve of the attribute? */ if (!hookEvent.keepAttr) { continue; } /* Work around a security issue in jQuery 3.0 */ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { _removeAttribute(name, currentNode); continue; } /* Sanitize attribute content to be template-safe */ if (SAFE_FOR_TEMPLATES) { value = stringReplace(value, MUSTACHE_EXPR, ' '); value = stringReplace(value, ERB_EXPR, ' '); value = stringReplace(value, TMPLIT_EXPR, ' '); } /* Is `value` valid for this attribute? */ const lcTag = transformCaseFunc(currentNode.nodeName); if (!_isValidAttribute(lcTag, lcName, value)) { continue; } /* Full DOM Clobbering protection via namespace isolation, * Prefix id and name attributes with `user-content-` */ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { // Remove the attribute with this value _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value value = SANITIZE_NAMED_PROPS_PREFIX + value; } /* Handle attributes that require Trusted Types */ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { if (namespaceURI) ; else { switch (trustedTypes.getAttributeType(lcTag, lcName)) { case 'TrustedHTML': value = trustedTypesPolicy.createHTML(value); break; case 'TrustedScriptURL': value = trustedTypesPolicy.createScriptURL(value); break; } } } /* Handle invalid data-* attribute set by try-catching it */ try { if (namespaceURI) { currentNode.setAttributeNS(namespaceURI, name, value); } else { /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ currentNode.setAttribute(name, value); } arrayPop(DOMPurify.removed); } catch (_) {} } /* Execute a hook if present */ _executeHook('afterSanitizeAttributes', currentNode, null); }; /** * _sanitizeShadowDOM * * @param {DocumentFragment} fragment to iterate over recursively */ const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { let shadowNode; const shadowIterator = _createIterator(fragment); /* Execute a hook if present */ _executeHook('beforeSanitizeShadowDOM', fragment, null); while (shadowNode = shadowIterator.nextNode()) { /* Execute a hook if present */ _executeHook('uponSanitizeShadowNode', shadowNode, null); /* Sanitize tags and elements */ if (_sanitizeElements(shadowNode)) { continue; } /* Deep shadow DOM detected */ if (shadowNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(shadowNode.content); } /* Check attributes, sanitize if necessary */ _sanitizeAttributes(shadowNode); } /* Execute a hook if present */ _executeHook('afterSanitizeShadowDOM', fragment, null); }; /** * Sanitize * Public method providing core sanitation functionality * * @param {String|Node} dirty string or DOM node * @param {Object} configuration object */ // eslint-disable-next-line complexity DOMPurify.sanitize = function (dirty) { let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; let body; let importedNode; let currentNode; let returnNode; /* Make sure we have a string to sanitize. DO NOT return early, as this will return the wrong type if the user has requested a DOM object rather than a string */ IS_EMPTY_INPUT = !dirty; if (IS_EMPTY_INPUT) { dirty = '<!-->'; } /* Stringify, in case dirty is an object */ if (typeof dirty !== 'string' && !_isNode(dirty)) { // eslint-disable-next-line no-negated-condition if (typeof dirty.toString !== 'function') { throw typeErrorCreate('toString is not a function'); } else { dirty = dirty.toString(); if (typeof dirty !== 'string') { throw typeErrorCreate('dirty is not a string, aborting'); } } } /* Return dirty HTML if DOMPurify cannot run */ if (!DOMPurify.isSupported) { return dirty; } /* Assign config vars */ if (!SET_CONFIG) { _parseConfig(cfg); } /* Clean up removed elements */ DOMPurify.removed = []; /* Check if dirty is correctly typed for IN_PLACE */ if (typeof dirty === 'string') { IN_PLACE = false; } if (IN_PLACE) { /* Do some early pre-sanitization to avoid unsafe root nodes */ if (dirty.nodeName) { const tagName = transformCaseFunc(dirty.nodeName); if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); } } } else if (dirty instanceof Node) { /* If dirty is a DOM element, append to an empty document to avoid elements being stripped by the parser */ body = _initDocument('<!---->'); importedNode = body.ownerDocument.importNode(dirty, true); if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') { /* Node is already a body, use as is */ body = importedNode; } else if (importedNode.nodeName === 'HTML') { body = importedNode; } else { // eslint-disable-next-line unicorn/prefer-dom-node-append body.appendChild(importedNode); } } else { /* Exit directly if we have nothing to do */ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes dirty.indexOf('<') === -1) { return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; } /* Initialize the document to work on */ body = _initDocument(dirty); /* Check we have a DOM node from the data */ if (!body) { return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; } } /* Remove first element node (ours) if FORCE_BODY is set */ if (body && FORCE_BODY) { _forceRemove(body.firstChild); } /* Get node iterator */ const nodeIterator = _createIterator(IN_PLACE ? dirty : body); /* Now start iterating over the created document */ while (currentNode = nodeIterator.nextNode()) { /* Sanitize tags and elements */ if (_sanitizeElements(currentNode)) { continue; } /* Shadow DOM detected, sanitize it */ if (currentNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(currentNode.content); } /* Check attributes, sanitize if necessary */ _sanitizeAttributes(currentNode); } /* If we sanitized `dirty` in-place, return it. */ if (IN_PLACE) { return dirty; } /* Return sanitized string or DOM */ if (RETURN_DOM) { if (RETURN_DOM_FRAGMENT) { returnNode = createDocumentFragment.call(body.ownerDocument); while (body.firstChild) { // eslint-disable-next-line unicorn/prefer-dom-node-append returnNode.appendChild(body.firstChild); } } else { returnNode = body; } if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) { /* AdoptNode() is not used because internal state is not reset (e.g. the past names map of a HTMLFormElement), this is safe in theory but we would rather not risk another attack vector. The state that is cloned by importNode() is explicitly defined by the specs. */ returnNode = importNode.call(originalDocument, returnNode, true); } return returnNode; } let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; /* Serialize doctype if allowed */ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; } /* Sanitize final string template-safe */ if (SAFE_FOR_TEMPLATES) { serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' '); serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' '); serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' '); } return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; }; /** * Public method to set the configuration once * setConfig * * @param {Object} cfg configuration object */ DOMPurify.setConfig = function (cfg) { _parseConfig(cfg); SET_CONFIG = true; }; /** * Public method to remove the configuration * clearConfig * */ DOMPurify.clearConfig = function () { CONFIG = null; SET_CONFIG = false; }; /** * Public method to check if an attribute value is valid. * Uses last set config, if any. Otherwise, uses config defaults. * isValidAttribute * * @param {string} tag Tag name of containing element. * @param {string} attr Attribute name. * @param {string} value Attribute value. * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false. */ DOMPurify.isValidAttribute = function (tag, attr, value) { /* Initialize shared config vars if necessary. */ if (!CONFIG) { _parseConfig({}); } const lcTag = transformCaseFunc(tag); const lcName = transformCaseFunc(attr); return _isValidAttribute(lcTag, lcName, value); }; /** * AddHook * Public method to add DOMPurify hooks * * @param {String} entryPoint entry point for the hook to add * @param {Function} hookFunction function to execute */ DOMPurify.addHook = function (entryPoint, hookFunction) { if (typeof hookFunction !== 'function') { return; } hooks[entryPoint] = hooks[entryPoint] || []; arrayPush(hooks[entryPoint], hookFunction); }; /** * RemoveHook * Public method to remove a DOMPurify hook at a given entryPoint * (pops it from the stack of hooks if more are present) * * @param {String} entryPoint entry point for the hook to remove * @return {Function} removed(popped) hook */ DOMPurify.removeHook = function (entryPoint) { if (hooks[entryPoint]) { return arrayPop(hooks[entryPoint]); } }; /** * RemoveHooks * Public method to remove all DOMPurify hooks at a given entryPoint * * @param {String} entryPoint entry point for the hooks to remove */ DOMPurify.removeHooks = function (entryPoint) { if (hooks[entryPoint]) { hooks[entryPoint] = []; } }; /** * RemoveAllHooks * Public method to remove all DOMPurify hooks * */ DOMPurify.removeAllHooks = function () { hooks = {}; }; return DOMPurify; } var purify = createDOMPurify(); module.exports = purify; //# sourceMappingURL=purify.cjs.js.map {"version":3,"file":"purify.cjs.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","addToSet","set","array","transformCaseFunc","l","length","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childCount","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":"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"} /*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object; let { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports let { apply, construct } = typeof Reflect !== 'undefined' && Reflect; if (!apply) { apply = function apply(fun, thisValue, args) { return fun.apply(thisValue, args); }; } if (!freeze) { freeze = function freeze(x) { return x; }; } if (!seal) { seal = function seal(x) { return x; }; } if (!construct) { construct = function construct(Func, args) { return new Func(...args); }; } const arrayForEach = unapply(Array.prototype.forEach); const arrayPop = unapply(Array.prototype.pop); const arrayPush = unapply(Array.prototype.push); const stringToLowerCase = unapply(String.prototype.toLowerCase); const stringToString = unapply(String.prototype.toString); const stringMatch = unapply(String.prototype.match); const stringReplace = unapply(String.prototype.replace); const stringIndexOf = unapply(String.prototype.indexOf); const stringTrim = unapply(String.prototype.trim); const regExpTest = unapply(RegExp.prototype.test); const typeErrorCreate = unconstruct(TypeError); function unapply(func) { return function (thisArg) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return apply(func, thisArg, args); }; } function unconstruct(func) { return function () { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } return construct(func, args); }; } /* Add properties to a lookup table */ function addToSet(set, array, transformCaseFunc) { transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase; if (setPrototypeOf) { // Make 'in' and truthy checks like Boolean(set.constructor) // independent of any properties defined on Object.prototype. // Prevent prototype setters from intercepting set as a this value. setPrototypeOf(set, null); } let l = array.length; while (l--) { let element = array[l]; if (typeof element === 'string') { const lcElement = transformCaseFunc(element); if (lcElement !== element) { // Config presets (e.g. tags.js, attrs.js) are immutable. if (!isFrozen(array)) { array[l] = lcElement; } element = lcElement; } } set[element] = true; } return set; } /* Shallow clone an object */ function clone(object) { const newObject = create(null); for (const [property, value] of entries(object)) { newObject[property] = value; } return newObject; } /* This method automatically checks if the prop is function * or getter and behaves accordingly. */ function lookupGetter(object, prop) { while (object !== null) { const desc = getOwnPropertyDescriptor(object, prop); if (desc) { if (desc.get) { return unapply(desc.get); } if (typeof desc.value === 'function') { return unapply(desc.value); } } object = getPrototypeOf(object); } function fallbackValue(element) { console.warn('fallback value for', element); return null; } return fallbackValue; } const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. // We still need to know them so that we can do namespace // checks properly in case one wants to add them to // allow-list. const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, // even those that we disallow by default. const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); const text = freeze(['#text']); const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']); const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape ); const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex ); const DOCTYPE_NAME = seal(/^html$/i); var EXPRESSIONS = /*#__PURE__*/Object.freeze({ __proto__: null, MUSTACHE_EXPR: MUSTACHE_EXPR, ERB_EXPR: ERB_EXPR, TMPLIT_EXPR: TMPLIT_EXPR, DATA_ATTR: DATA_ATTR, ARIA_ATTR: ARIA_ATTR, IS_ALLOWED_URI: IS_ALLOWED_URI, IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, ATTR_WHITESPACE: ATTR_WHITESPACE, DOCTYPE_NAME: DOCTYPE_NAME }); const getGlobal = () => typeof window === 'undefined' ? null : window; /** * Creates a no-op policy for internal use only. * Don't export this function outside this module! * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory. * @param {Document} document The document object (to determine policy name suffix) * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types * are not supported). */ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) { if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { return null; } // Allow the callers to control the unique policy name // by adding a data-tt-policy-suffix to the script element with the DOMPurify. // Policy creation with duplicate names throws in Trusted Types. let suffix = null; const ATTR_NAME = 'data-tt-policy-suffix'; if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) { suffix = document.currentScript.getAttribute(ATTR_NAME); } const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); try { return trustedTypes.createPolicy(policyName, { createHTML(html) { return html; }, createScriptURL(scriptUrl) { return scriptUrl; } }); } catch (_) { // Policy creation failed (most likely another DOMPurify script has // already run). Skip creating the policy, as this will only cause errors // if TT are enforced. console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); return null; } }; function createDOMPurify() { let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); const DOMPurify = root => createDOMPurify(root); /** * Version label, exposed for easier checks * if DOMPurify is up to date or not */ DOMPurify.version = '3.0.2'; /** * Array of elements that DOMPurify removed during sanitation. * Empty if nothing was removed. */ DOMPurify.removed = []; if (!window || !window.document || window.document.nodeType !== 9) { // Not running in a browser, provide a factory function // so that you can pass your own Window DOMPurify.isSupported = false; return DOMPurify; } const originalDocument = window.document; let { document } = window; const { DocumentFragment, HTMLTemplateElement, Node, Element, NodeFilter, NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, HTMLFormElement, DOMParser, trustedTypes } = window; const ElementPrototype = Element.prototype; const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a // new document created via createHTMLDocument. As per the spec // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) // a new empty registry is used when creating a template contents owner // document, so we use that as our parent document to ensure nothing // is inherited. if (typeof HTMLTemplateElement === 'function') { const template = document.createElement('template'); if (template.content && template.content.ownerDocument) { document = template.content.ownerDocument; } } const trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument); const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : ''; const { implementation, createNodeIterator, createDocumentFragment, getElementsByTagName } = document; const { importNode } = originalDocument; let hooks = {}; /** * Expose whether this browser supports running the full DOMPurify. */ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined'; const { MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE } = EXPRESSIONS; let { IS_ALLOWED_URI: IS_ALLOWED_URI$1 } = EXPRESSIONS; /** * We consider the elements and attributes below to be safe. Ideally * don't add any new ones but feel free to remove unwanted ones. */ /* allowed element names */ let ALLOWED_TAGS = null; const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); /* Allowed attribute names */ let ALLOWED_ATTR = null; const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); /* * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements. * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. */ let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { tagNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, attributeNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, allowCustomizedBuiltInElements: { writable: true, configurable: false, enumerable: true, value: false } })); /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ let FORBID_TAGS = null; /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ let FORBID_ATTR = null; /* Decide if ARIA attributes are okay */ let ALLOW_ARIA_ATTR = true; /* Decide if custom data attributes are okay */ let ALLOW_DATA_ATTR = true; /* Decide if unknown protocols are okay */ let ALLOW_UNKNOWN_PROTOCOLS = false; /* Decide if self-closing tags in attributes are allowed. * Usually removed due to a mXSS issue in jQuery 3.0 */ let ALLOW_SELF_CLOSE_IN_ATTR = true; /* Output should be safe for common template engines. * This means, DOMPurify removes data attributes, mustaches and ERB */ let SAFE_FOR_TEMPLATES = false; /* Decide if document with <html>... should be returned */ let WHOLE_DOCUMENT = false; /* Track whether config is already set on this instance of DOMPurify. */ let SET_CONFIG = false; /* Decide if all elements (e.g. style, script) must be children of * document.body. By default, browsers might move them to document.head */ let FORCE_BODY = false; /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported). * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead */ let RETURN_DOM = false; /* Decide if a DOM `DocumentFragment` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported) */ let RETURN_DOM_FRAGMENT = false; /* Try to return a Trusted Type object instead of a string, return a string in * case Trusted Types are not supported */ let RETURN_TRUSTED_TYPE = false; /* Output should be free from DOM clobbering attacks? * This sanitizes markups named with colliding, clobberable built-in DOM APIs. */ let SANITIZE_DOM = true; /* Achieve full DOM Clobbering protection by isolating the namespace of named * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. * * HTML/DOM spec rules that enable DOM Clobbering: * - Named Access on Window (§7.3.3) * - DOM Tree Accessors (§3.1.5) * - Form Element Parent-Child Relations (§4.10.3) * - Iframe srcdoc / Nested WindowProxies (§4.8.5) * - HTMLCollection (§4.2.10.2) * * Namespace isolation is implemented by prefixing `id` and `name` attributes * with a constant string, i.e., `user-content-` */ let SANITIZE_NAMED_PROPS = false; const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; /* Keep element content when removing element? */ let KEEP_CONTENT = true; /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead * of importing it into a new Document and returning a sanitized copy */ let IN_PLACE = false; /* Allow usage of profiles like html, svg and mathMl */ let USE_PROFILES = {}; /* Tags to ignore content of when KEEP_CONTENT is true */ let FORBID_CONTENTS = null; const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); /* Tags that are safe for data: URIs */ let DATA_URI_TAGS = null; const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); /* Attributes safe for values like "javascript:" */ let URI_SAFE_ATTRIBUTES = null; const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; /* Document namespace */ let NAMESPACE = HTML_NAMESPACE; let IS_EMPTY_INPUT = false; /* Allowed XHTML+XML namespaces */ let ALLOWED_NAMESPACES = null; const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); /* Parsing of strict XHTML documents */ let PARSER_MEDIA_TYPE; const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; let transformCaseFunc; /* Keep a reference to config to pass to hooks */ let CONFIG = null; /* Ideally, do not touch anything below this line */ /* ______________________________________________ */ const formElement = document.createElement('form'); const isRegexOrFunction = function isRegexOrFunction(testValue) { return testValue instanceof RegExp || testValue instanceof Function; }; /** * _parseConfig * * @param {Object} cfg optional config literal */ // eslint-disable-next-line complexity const _parseConfig = function _parseConfig(cfg) { if (CONFIG && CONFIG === cfg) { return; } /* Shield configuration object from tampering */ if (!cfg || typeof cfg !== 'object') { cfg = {}; } /* Shield configuration object from prototype pollution */ cfg = clone(cfg); PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; /* Set configuration parameters */ ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent transformCaseFunc // eslint-disable-line indent ) // eslint-disable-line indent : DEFAULT_URI_SAFE_ATTRIBUTES; DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent transformCaseFunc // eslint-disable-line indent ) // eslint-disable-line indent : DEFAULT_DATA_URI_TAGS; FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false; ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false RETURN_DOM = cfg.RETURN_DOM || false; // Default false RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false FORCE_BODY = cfg.FORCE_BODY || false; // Default false SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true IN_PLACE = cfg.IN_PLACE || false; // Default false IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; } if (SAFE_FOR_TEMPLATES) { ALLOW_DATA_ATTR = false; } if (RETURN_DOM_FRAGMENT) { RETURN_DOM = true; } /* Parse profile info */ if (USE_PROFILES) { ALLOWED_TAGS = addToSet({}, [...text]); ALLOWED_ATTR = []; if (USE_PROFILES.html === true) { addToSet(ALLOWED_TAGS, html$1); addToSet(ALLOWED_ATTR, html); } if (USE_PROFILES.svg === true) { addToSet(ALLOWED_TAGS, svg$1); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.svgFilters === true) { addToSet(ALLOWED_TAGS, svgFilters); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.mathMl === true) { addToSet(ALLOWED_TAGS, mathMl$1); addToSet(ALLOWED_ATTR, mathMl); addToSet(ALLOWED_ATTR, xml); } } /* Merge configuration parameters */ if (cfg.ADD_TAGS) { if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { ALLOWED_TAGS = clone(ALLOWED_TAGS); } addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); } if (cfg.ADD_ATTR) { if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { ALLOWED_ATTR = clone(ALLOWED_ATTR); } addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); } if (cfg.ADD_URI_SAFE_ATTR) { addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); } if (cfg.FORBID_CONTENTS) { if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { FORBID_CONTENTS = clone(FORBID_CONTENTS); } addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); } /* Add #text in case KEEP_CONTENT is set to true */ if (KEEP_CONTENT) { ALLOWED_TAGS['#text'] = true; } /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ if (WHOLE_DOCUMENT) { addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); } /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ if (ALLOWED_TAGS.table) { addToSet(ALLOWED_TAGS, ['tbody']); delete FORBID_TAGS.tbody; } // Prevent further manipulation of configuration. // Not available in IE8, Safari 5, etc. if (freeze) { freeze(cfg); } CONFIG = cfg; }; const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML // namespace. We need to specify them explicitly // so that they don't get erroneously deleted from // HTML namespace. const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); /* Keep track of all possible SVG and MathML tags * so that we can perform the namespace checks * correctly. */ const ALL_SVG_TAGS = addToSet({}, svg$1); addToSet(ALL_SVG_TAGS, svgFilters); addToSet(ALL_SVG_TAGS, svgDisallowed); const ALL_MATHML_TAGS = addToSet({}, mathMl$1); addToSet(ALL_MATHML_TAGS, mathMlDisallowed); /** * * * @param {Element} element a DOM element whose namespace is being checked * @returns {boolean} Return false if the element has a * namespace that a spec-compliant parser would never * return. Return true otherwise. */ const _checkValidNamespace = function _checkValidNamespace(element) { let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode // can be null. We just simulate parent in this case. if (!parent || !parent.tagName) { parent = { namespaceURI: NAMESPACE, tagName: 'template' }; } const tagName = stringToLowerCase(element.tagName); const parentTagName = stringToLowerCase(parent.tagName); if (!ALLOWED_NAMESPACES[element.namespaceURI]) { return false; } if (element.namespaceURI === SVG_NAMESPACE) { // The only way to switch from HTML namespace to SVG // is via <svg>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'svg'; } // The only way to switch from MathML to SVG is via` // svg if parent is either <annotation-xml> or MathML // text integration points. if (parent.namespaceURI === MATHML_NAMESPACE) { return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); } // We only allow elements that are defined in SVG // spec. All others are disallowed in SVG namespace. return Boolean(ALL_SVG_TAGS[tagName]); } if (element.namespaceURI === MATHML_NAMESPACE) { // The only way to switch from HTML namespace to MathML // is via <math>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'math'; } // The only way to switch from SVG to MathML is via // <math> and HTML integration points if (parent.namespaceURI === SVG_NAMESPACE) { return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; } // We only allow elements that are defined in MathML // spec. All others are disallowed in MathML namespace. return Boolean(ALL_MATHML_TAGS[tagName]); } if (element.namespaceURI === HTML_NAMESPACE) { // The only way to switch from SVG to HTML is via // HTML integration points, and from MathML to HTML // is via MathML text integration points if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { return false; } if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { return false; } // We disallow tags that are specific for MathML // or SVG and should never appear in HTML namespace return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); } // For XHTML and XML documents that support custom namespaces if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { return true; } // The code should never reach this place (this means // that the element somehow got namespace that is not // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). // Return false just in case. return false; }; /** * _forceRemove * * @param {Node} node a DOM node */ const _forceRemove = function _forceRemove(node) { arrayPush(DOMPurify.removed, { element: node }); try { // eslint-disable-next-line unicorn/prefer-dom-node-remove node.parentNode.removeChild(node); } catch (_) { node.remove(); } }; /** * _removeAttribute * * @param {String} name an Attribute name * @param {Node} node a DOM node */ const _removeAttribute = function _removeAttribute(name, node) { try { arrayPush(DOMPurify.removed, { attribute: node.getAttributeNode(name), from: node }); } catch (_) { arrayPush(DOMPurify.removed, { attribute: null, from: node }); } node.removeAttribute(name); // We void attribute values for unremovable "is"" attributes if (name === 'is' && !ALLOWED_ATTR[name]) { if (RETURN_DOM || RETURN_DOM_FRAGMENT) { try { _forceRemove(node); } catch (_) {} } else { try { node.setAttribute(name, ''); } catch (_) {} } } }; /** * _initDocument * * @param {String} dirty a string of dirty markup * @return {Document} a DOM, filled with the dirty markup */ const _initDocument = function _initDocument(dirty) { /* Create a HTML document */ let doc; let leadingWhitespace; if (FORCE_BODY) { dirty = '<remove></remove>' + dirty; } else { /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ const matches = stringMatch(dirty, /^[\r\n\t ]+/); leadingWhitespace = matches && matches[0]; } if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; } const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; /* * Use the DOMParser API by default, fallback later if needs be * DOMParser not work for svg when has multiple root element. */ if (NAMESPACE === HTML_NAMESPACE) { try { doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); } catch (_) {} } /* Use createHTMLDocument in case DOMParser is not available */ if (!doc || !doc.documentElement) { doc = implementation.createDocument(NAMESPACE, 'template', null); try { doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; } catch (_) {// Syntax error if dirtyPayload is invalid xml } } const body = doc.body || doc.documentElement; if (dirty && leadingWhitespace) { body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); } /* Work on whole document or just its body */ if (NAMESPACE === HTML_NAMESPACE) { return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; } return WHOLE_DOCUMENT ? doc.documentElement : body; }; /** * _createIterator * * @param {Document} root document/fragment to create iterator for * @return {Iterator} iterator instance */ const _createIterator = function _createIterator(root) { return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false); }; /** * _isClobbered * * @param {Node} elm element to check for clobbering attacks * @return {Boolean} true if clobbered, false if safe */ const _isClobbered = function _isClobbered(elm) { return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function'); }; /** * _isNode * * @param {Node} obj object to check whether it's a DOM node * @return {Boolean} true is object is a DOM node */ const _isNode = function _isNode(object) { return typeof Node === 'object' ? object instanceof Node : object && typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'; }; /** * _executeHook * Execute user configurable hooks * * @param {String} entryPoint Name of the hook's entry point * @param {Node} currentNode node to work on with the hook * @param {Object} data additional hook parameters */ const _executeHook = function _executeHook(entryPoint, currentNode, data) { if (!hooks[entryPoint]) { return; } arrayForEach(hooks[entryPoint], hook => { hook.call(DOMPurify, currentNode, data, CONFIG); }); }; /** * _sanitizeElements * * @protect nodeName * @protect textContent * @protect removeChild * * @param {Node} currentNode to check for permission to exist * @return {Boolean} true if node was killed, false if left alive */ const _sanitizeElements = function _sanitizeElements(currentNode) { let content; /* Execute a hook if present */ _executeHook('beforeSanitizeElements', currentNode, null); /* Check if element is clobbered or can clobber */ if (_isClobbered(currentNode)) { _forceRemove(currentNode); return true; } /* Now let's check the element's type and name */ const tagName = transformCaseFunc(currentNode.nodeName); /* Execute a hook if present */ _executeHook('uponSanitizeElement', currentNode, { tagName, allowedTags: ALLOWED_TAGS }); /* Detect mXSS attempts abusing namespace confusion */ if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { _forceRemove(currentNode); return true; } /* Remove element if anything forbids its presence */ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { /* Check if we have a custom element to handle */ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false; if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false; } /* Keep content except for bad-listed elements */ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { const parentNode = getParentNode(currentNode) || currentNode.parentNode; const childNodes = getChildNodes(currentNode) || currentNode.childNodes; if (childNodes && parentNode) { const childCount = childNodes.length; for (let i = childCount - 1; i >= 0; --i) { parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); } } } _forceRemove(currentNode); return true; } /* Check whether element has a valid namespace */ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { _forceRemove(currentNode); return true; } /* Make sure that older browsers don't get noscript mXSS */ if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) { _forceRemove(currentNode); return true; } /* Sanitize element content to be template-safe */ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { /* Get the element's text content */ content = currentNode.textContent; content = stringReplace(content, MUSTACHE_EXPR, ' '); content = stringReplace(content, ERB_EXPR, ' '); content = stringReplace(content, TMPLIT_EXPR, ' '); if (currentNode.textContent !== content) { arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() }); currentNode.textContent = content; } } /* Execute a hook if present */ _executeHook('afterSanitizeElements', currentNode, null); return false; }; /** * _isValidAttribute * * @param {string} lcTag Lowercase tag name of containing element. * @param {string} lcName Lowercase attribute name. * @param {string} value Attribute value. * @return {Boolean} Returns true if `value` is valid, otherwise false. */ // eslint-disable-next-line complexity const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { /* Make sure attribute cannot clobber */ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { return false; } /* Allow valid data-* attributes: At least one character after "-" (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) We don't need to check the value; it's always URI safe. */ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { return false; } /* Check value is safe. First, is attr inert? If so, is safe */ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (!value) ; else { return false; } return true; }; /** * _basicCustomElementCheck * checks if at least one dash is included in tagName, and it's not the first char * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name * @param {string} tagName name of the tag of the node to sanitize */ const _basicCustomElementTest = function _basicCustomElementTest(tagName) { return tagName.indexOf('-') > 0; }; /** * _sanitizeAttributes * * @protect attributes * @protect nodeName * @protect removeAttribute * @protect setAttribute * * @param {Node} currentNode to sanitize */ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { let attr; let value; let lcName; let l; /* Execute a hook if present */ _executeHook('beforeSanitizeAttributes', currentNode, null); const { attributes } = currentNode; /* Check if we have attributes; if not we might have a text node */ if (!attributes) { return; } const hookEvent = { attrName: '', attrValue: '', keepAttr: true, allowedAttributes: ALLOWED_ATTR }; l = attributes.length; /* Go backwards over all attributes; safely remove bad ones */ while (l--) { attr = attributes[l]; const { name, namespaceURI } = attr; value = name === 'value' ? attr.value : stringTrim(attr.value); lcName = transformCaseFunc(name); /* Execute a hook if present */ hookEvent.attrName = lcName; hookEvent.attrValue = value; hookEvent.keepAttr = true; hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set _executeHook('uponSanitizeAttribute', currentNode, hookEvent); value = hookEvent.attrValue; /* Did the hooks approve of the attribute? */ if (hookEvent.forceKeepAttr) { continue; } /* Remove attribute */ _removeAttribute(name, currentNode); /* Did the hooks approve of the attribute? */ if (!hookEvent.keepAttr) { continue; } /* Work around a security issue in jQuery 3.0 */ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { _removeAttribute(name, currentNode); continue; } /* Sanitize attribute content to be template-safe */ if (SAFE_FOR_TEMPLATES) { value = stringReplace(value, MUSTACHE_EXPR, ' '); value = stringReplace(value, ERB_EXPR, ' '); value = stringReplace(value, TMPLIT_EXPR, ' '); } /* Is `value` valid for this attribute? */ const lcTag = transformCaseFunc(currentNode.nodeName); if (!_isValidAttribute(lcTag, lcName, value)) { continue; } /* Full DOM Clobbering protection via namespace isolation, * Prefix id and name attributes with `user-content-` */ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { // Remove the attribute with this value _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value value = SANITIZE_NAMED_PROPS_PREFIX + value; } /* Handle attributes that require Trusted Types */ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { if (namespaceURI) ; else { switch (trustedTypes.getAttributeType(lcTag, lcName)) { case 'TrustedHTML': value = trustedTypesPolicy.createHTML(value); break; case 'TrustedScriptURL': value = trustedTypesPolicy.createScriptURL(value); break; } } } /* Handle invalid data-* attribute set by try-catching it */ try { if (namespaceURI) { currentNode.setAttributeNS(namespaceURI, name, value); } else { /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ currentNode.setAttribute(name, value); } arrayPop(DOMPurify.removed); } catch (_) {} } /* Execute a hook if present */ _executeHook('afterSanitizeAttributes', currentNode, null); }; /** * _sanitizeShadowDOM * * @param {DocumentFragment} fragment to iterate over recursively */ const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { let shadowNode; const shadowIterator = _createIterator(fragment); /* Execute a hook if present */ _executeHook('beforeSanitizeShadowDOM', fragment, null); while (shadowNode = shadowIterator.nextNode()) { /* Execute a hook if present */ _executeHook('uponSanitizeShadowNode', shadowNode, null); /* Sanitize tags and elements */ if (_sanitizeElements(shadowNode)) { continue; } /* Deep shadow DOM detected */ if (shadowNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(shadowNode.content); } /* Check attributes, sanitize if necessary */ _sanitizeAttributes(shadowNode); } /* Execute a hook if present */ _executeHook('afterSanitizeShadowDOM', fragment, null); }; /** * Sanitize * Public method providing core sanitation functionality * * @param {String|Node} dirty string or DOM node * @param {Object} configuration object */ // eslint-disable-next-line complexity DOMPurify.sanitize = function (dirty) { let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; let body; let importedNode; let currentNode; let returnNode; /* Make sure we have a string to sanitize. DO NOT return early, as this will return the wrong type if the user has requested a DOM object rather than a string */ IS_EMPTY_INPUT = !dirty; if (IS_EMPTY_INPUT) { dirty = '<!-->'; } /* Stringify, in case dirty is an object */ if (typeof dirty !== 'string' && !_isNode(dirty)) { // eslint-disable-next-line no-negated-condition if (typeof dirty.toString !== 'function') { throw typeErrorCreate('toString is not a function'); } else { dirty = dirty.toString(); if (typeof dirty !== 'string') { throw typeErrorCreate('dirty is not a string, aborting'); } } } /* Return dirty HTML if DOMPurify cannot run */ if (!DOMPurify.isSupported) { return dirty; } /* Assign config vars */ if (!SET_CONFIG) { _parseConfig(cfg); } /* Clean up removed elements */ DOMPurify.removed = []; /* Check if dirty is correctly typed for IN_PLACE */ if (typeof dirty === 'string') { IN_PLACE = false; } if (IN_PLACE) { /* Do some early pre-sanitization to avoid unsafe root nodes */ if (dirty.nodeName) { const tagName = transformCaseFunc(dirty.nodeName); if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); } } } else if (dirty instanceof Node) { /* If dirty is a DOM element, append to an empty document to avoid elements being stripped by the parser */ body = _initDocument('<!---->'); importedNode = body.ownerDocument.importNode(dirty, true); if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') { /* Node is already a body, use as is */ body = importedNode; } else if (importedNode.nodeName === 'HTML') { body = importedNode; } else { // eslint-disable-next-line unicorn/prefer-dom-node-append body.appendChild(importedNode); } } else { /* Exit directly if we have nothing to do */ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes dirty.indexOf('<') === -1) { return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; } /* Initialize the document to work on */ body = _initDocument(dirty); /* Check we have a DOM node from the data */ if (!body) { return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; } } /* Remove first element node (ours) if FORCE_BODY is set */ if (body && FORCE_BODY) { _forceRemove(body.firstChild); } /* Get node iterator */ const nodeIterator = _createIterator(IN_PLACE ? dirty : body); /* Now start iterating over the created document */ while (currentNode = nodeIterator.nextNode()) { /* Sanitize tags and elements */ if (_sanitizeElements(currentNode)) { continue; } /* Shadow DOM detected, sanitize it */ if (currentNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(currentNode.content); } /* Check attributes, sanitize if necessary */ _sanitizeAttributes(currentNode); } /* If we sanitized `dirty` in-place, return it. */ if (IN_PLACE) { return dirty; } /* Return sanitized string or DOM */ if (RETURN_DOM) { if (RETURN_DOM_FRAGMENT) { returnNode = createDocumentFragment.call(body.ownerDocument); while (body.firstChild) { // eslint-disable-next-line unicorn/prefer-dom-node-append returnNode.appendChild(body.firstChild); } } else { returnNode = body; } if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) { /* AdoptNode() is not used because internal state is not reset (e.g. the past names map of a HTMLFormElement), this is safe in theory but we would rather not risk another attack vector. The state that is cloned by importNode() is explicitly defined by the specs. */ returnNode = importNode.call(originalDocument, returnNode, true); } return returnNode; } let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; /* Serialize doctype if allowed */ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; } /* Sanitize final string template-safe */ if (SAFE_FOR_TEMPLATES) { serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' '); serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' '); serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' '); } return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; }; /** * Public method to set the configuration once * setConfig * * @param {Object} cfg configuration object */ DOMPurify.setConfig = function (cfg) { _parseConfig(cfg); SET_CONFIG = true; }; /** * Public method to remove the configuration * clearConfig * */ DOMPurify.clearConfig = function () { CONFIG = null; SET_CONFIG = false; }; /** * Public method to check if an attribute value is valid. * Uses last set config, if any. Otherwise, uses config defaults. * isValidAttribute * * @param {string} tag Tag name of containing element. * @param {string} attr Attribute name. * @param {string} value Attribute value. * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false. */ DOMPurify.isValidAttribute = function (tag, attr, value) { /* Initialize shared config vars if necessary. */ if (!CONFIG) { _parseConfig({}); } const lcTag = transformCaseFunc(tag); const lcName = transformCaseFunc(attr); return _isValidAttribute(lcTag, lcName, value); }; /** * AddHook * Public method to add DOMPurify hooks * * @param {String} entryPoint entry point for the hook to add * @param {Function} hookFunction function to execute */ DOMPurify.addHook = function (entryPoint, hookFunction) { if (typeof hookFunction !== 'function') { return; } hooks[entryPoint] = hooks[entryPoint] || []; arrayPush(hooks[entryPoint], hookFunction); }; /** * RemoveHook * Public method to remove a DOMPurify hook at a given entryPoint * (pops it from the stack of hooks if more are present) * * @param {String} entryPoint entry point for the hook to remove * @return {Function} removed(popped) hook */ DOMPurify.removeHook = function (entryPoint) { if (hooks[entryPoint]) { return arrayPop(hooks[entryPoint]); } }; /** * RemoveHooks * Public method to remove all DOMPurify hooks at a given entryPoint * * @param {String} entryPoint entry point for the hooks to remove */ DOMPurify.removeHooks = function (entryPoint) { if (hooks[entryPoint]) { hooks[entryPoint] = []; } }; /** * RemoveAllHooks * Public method to remove all DOMPurify hooks * */ DOMPurify.removeAllHooks = function () { hooks = {}; }; return DOMPurify; } var purify = createDOMPurify(); export { purify as default }; //# sourceMappingURL=purify.es.js.map {"version":3,"file":"purify.es.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","addToSet","set","array","transformCaseFunc","l","length","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childCount","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":"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"} /*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory()); })(this, (function () { 'use strict'; const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object; let { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports let { apply, construct } = typeof Reflect !== 'undefined' && Reflect; if (!apply) { apply = function apply(fun, thisValue, args) { return fun.apply(thisValue, args); }; } if (!freeze) { freeze = function freeze(x) { return x; }; } if (!seal) { seal = function seal(x) { return x; }; } if (!construct) { construct = function construct(Func, args) { return new Func(...args); }; } const arrayForEach = unapply(Array.prototype.forEach); const arrayPop = unapply(Array.prototype.pop); const arrayPush = unapply(Array.prototype.push); const stringToLowerCase = unapply(String.prototype.toLowerCase); const stringToString = unapply(String.prototype.toString); const stringMatch = unapply(String.prototype.match); const stringReplace = unapply(String.prototype.replace); const stringIndexOf = unapply(String.prototype.indexOf); const stringTrim = unapply(String.prototype.trim); const regExpTest = unapply(RegExp.prototype.test); const typeErrorCreate = unconstruct(TypeError); function unapply(func) { return function (thisArg) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return apply(func, thisArg, args); }; } function unconstruct(func) { return function () { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } return construct(func, args); }; } /* Add properties to a lookup table */ function addToSet(set, array, transformCaseFunc) { transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase; if (setPrototypeOf) { // Make 'in' and truthy checks like Boolean(set.constructor) // independent of any properties defined on Object.prototype. // Prevent prototype setters from intercepting set as a this value. setPrototypeOf(set, null); } let l = array.length; while (l--) { let element = array[l]; if (typeof element === 'string') { const lcElement = transformCaseFunc(element); if (lcElement !== element) { // Config presets (e.g. tags.js, attrs.js) are immutable. if (!isFrozen(array)) { array[l] = lcElement; } element = lcElement; } } set[element] = true; } return set; } /* Shallow clone an object */ function clone(object) { const newObject = create(null); for (const [property, value] of entries(object)) { newObject[property] = value; } return newObject; } /* This method automatically checks if the prop is function * or getter and behaves accordingly. */ function lookupGetter(object, prop) { while (object !== null) { const desc = getOwnPropertyDescriptor(object, prop); if (desc) { if (desc.get) { return unapply(desc.get); } if (typeof desc.value === 'function') { return unapply(desc.value); } } object = getPrototypeOf(object); } function fallbackValue(element) { console.warn('fallback value for', element); return null; } return fallbackValue; } const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. // We still need to know them so that we can do namespace // checks properly in case one wants to add them to // allow-list. const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, // even those that we disallow by default. const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); const text = freeze(['#text']); const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']); const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape ); const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex ); const DOCTYPE_NAME = seal(/^html$/i); var EXPRESSIONS = /*#__PURE__*/Object.freeze({ __proto__: null, MUSTACHE_EXPR: MUSTACHE_EXPR, ERB_EXPR: ERB_EXPR, TMPLIT_EXPR: TMPLIT_EXPR, DATA_ATTR: DATA_ATTR, ARIA_ATTR: ARIA_ATTR, IS_ALLOWED_URI: IS_ALLOWED_URI, IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, ATTR_WHITESPACE: ATTR_WHITESPACE, DOCTYPE_NAME: DOCTYPE_NAME }); const getGlobal = () => typeof window === 'undefined' ? null : window; /** * Creates a no-op policy for internal use only. * Don't export this function outside this module! * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory. * @param {Document} document The document object (to determine policy name suffix) * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types * are not supported). */ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) { if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { return null; } // Allow the callers to control the unique policy name // by adding a data-tt-policy-suffix to the script element with the DOMPurify. // Policy creation with duplicate names throws in Trusted Types. let suffix = null; const ATTR_NAME = 'data-tt-policy-suffix'; if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) { suffix = document.currentScript.getAttribute(ATTR_NAME); } const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); try { return trustedTypes.createPolicy(policyName, { createHTML(html) { return html; }, createScriptURL(scriptUrl) { return scriptUrl; } }); } catch (_) { // Policy creation failed (most likely another DOMPurify script has // already run). Skip creating the policy, as this will only cause errors // if TT are enforced. console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); return null; } }; function createDOMPurify() { let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); const DOMPurify = root => createDOMPurify(root); /** * Version label, exposed for easier checks * if DOMPurify is up to date or not */ DOMPurify.version = '3.0.2'; /** * Array of elements that DOMPurify removed during sanitation. * Empty if nothing was removed. */ DOMPurify.removed = []; if (!window || !window.document || window.document.nodeType !== 9) { // Not running in a browser, provide a factory function // so that you can pass your own Window DOMPurify.isSupported = false; return DOMPurify; } const originalDocument = window.document; let { document } = window; const { DocumentFragment, HTMLTemplateElement, Node, Element, NodeFilter, NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, HTMLFormElement, DOMParser, trustedTypes } = window; const ElementPrototype = Element.prototype; const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a // new document created via createHTMLDocument. As per the spec // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) // a new empty registry is used when creating a template contents owner // document, so we use that as our parent document to ensure nothing // is inherited. if (typeof HTMLTemplateElement === 'function') { const template = document.createElement('template'); if (template.content && template.content.ownerDocument) { document = template.content.ownerDocument; } } const trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument); const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : ''; const { implementation, createNodeIterator, createDocumentFragment, getElementsByTagName } = document; const { importNode } = originalDocument; let hooks = {}; /** * Expose whether this browser supports running the full DOMPurify. */ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined'; const { MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE } = EXPRESSIONS; let { IS_ALLOWED_URI: IS_ALLOWED_URI$1 } = EXPRESSIONS; /** * We consider the elements and attributes below to be safe. Ideally * don't add any new ones but feel free to remove unwanted ones. */ /* allowed element names */ let ALLOWED_TAGS = null; const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); /* Allowed attribute names */ let ALLOWED_ATTR = null; const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); /* * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements. * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. */ let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { tagNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, attributeNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, allowCustomizedBuiltInElements: { writable: true, configurable: false, enumerable: true, value: false } })); /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ let FORBID_TAGS = null; /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ let FORBID_ATTR = null; /* Decide if ARIA attributes are okay */ let ALLOW_ARIA_ATTR = true; /* Decide if custom data attributes are okay */ let ALLOW_DATA_ATTR = true; /* Decide if unknown protocols are okay */ let ALLOW_UNKNOWN_PROTOCOLS = false; /* Decide if self-closing tags in attributes are allowed. * Usually removed due to a mXSS issue in jQuery 3.0 */ let ALLOW_SELF_CLOSE_IN_ATTR = true; /* Output should be safe for common template engines. * This means, DOMPurify removes data attributes, mustaches and ERB */ let SAFE_FOR_TEMPLATES = false; /* Decide if document with <html>... should be returned */ let WHOLE_DOCUMENT = false; /* Track whether config is already set on this instance of DOMPurify. */ let SET_CONFIG = false; /* Decide if all elements (e.g. style, script) must be children of * document.body. By default, browsers might move them to document.head */ let FORCE_BODY = false; /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported). * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead */ let RETURN_DOM = false; /* Decide if a DOM `DocumentFragment` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported) */ let RETURN_DOM_FRAGMENT = false; /* Try to return a Trusted Type object instead of a string, return a string in * case Trusted Types are not supported */ let RETURN_TRUSTED_TYPE = false; /* Output should be free from DOM clobbering attacks? * This sanitizes markups named with colliding, clobberable built-in DOM APIs. */ let SANITIZE_DOM = true; /* Achieve full DOM Clobbering protection by isolating the namespace of named * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. * * HTML/DOM spec rules that enable DOM Clobbering: * - Named Access on Window (§7.3.3) * - DOM Tree Accessors (§3.1.5) * - Form Element Parent-Child Relations (§4.10.3) * - Iframe srcdoc / Nested WindowProxies (§4.8.5) * - HTMLCollection (§4.2.10.2) * * Namespace isolation is implemented by prefixing `id` and `name` attributes * with a constant string, i.e., `user-content-` */ let SANITIZE_NAMED_PROPS = false; const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; /* Keep element content when removing element? */ let KEEP_CONTENT = true; /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead * of importing it into a new Document and returning a sanitized copy */ let IN_PLACE = false; /* Allow usage of profiles like html, svg and mathMl */ let USE_PROFILES = {}; /* Tags to ignore content of when KEEP_CONTENT is true */ let FORBID_CONTENTS = null; const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); /* Tags that are safe for data: URIs */ let DATA_URI_TAGS = null; const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); /* Attributes safe for values like "javascript:" */ let URI_SAFE_ATTRIBUTES = null; const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; /* Document namespace */ let NAMESPACE = HTML_NAMESPACE; let IS_EMPTY_INPUT = false; /* Allowed XHTML+XML namespaces */ let ALLOWED_NAMESPACES = null; const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); /* Parsing of strict XHTML documents */ let PARSER_MEDIA_TYPE; const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; let transformCaseFunc; /* Keep a reference to config to pass to hooks */ let CONFIG = null; /* Ideally, do not touch anything below this line */ /* ______________________________________________ */ const formElement = document.createElement('form'); const isRegexOrFunction = function isRegexOrFunction(testValue) { return testValue instanceof RegExp || testValue instanceof Function; }; /** * _parseConfig * * @param {Object} cfg optional config literal */ // eslint-disable-next-line complexity const _parseConfig = function _parseConfig(cfg) { if (CONFIG && CONFIG === cfg) { return; } /* Shield configuration object from tampering */ if (!cfg || typeof cfg !== 'object') { cfg = {}; } /* Shield configuration object from prototype pollution */ cfg = clone(cfg); PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; /* Set configuration parameters */ ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent transformCaseFunc // eslint-disable-line indent ) // eslint-disable-line indent : DEFAULT_URI_SAFE_ATTRIBUTES; DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent transformCaseFunc // eslint-disable-line indent ) // eslint-disable-line indent : DEFAULT_DATA_URI_TAGS; FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false; ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false RETURN_DOM = cfg.RETURN_DOM || false; // Default false RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false FORCE_BODY = cfg.FORCE_BODY || false; // Default false SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true IN_PLACE = cfg.IN_PLACE || false; // Default false IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; } if (SAFE_FOR_TEMPLATES) { ALLOW_DATA_ATTR = false; } if (RETURN_DOM_FRAGMENT) { RETURN_DOM = true; } /* Parse profile info */ if (USE_PROFILES) { ALLOWED_TAGS = addToSet({}, [...text]); ALLOWED_ATTR = []; if (USE_PROFILES.html === true) { addToSet(ALLOWED_TAGS, html$1); addToSet(ALLOWED_ATTR, html); } if (USE_PROFILES.svg === true) { addToSet(ALLOWED_TAGS, svg$1); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.svgFilters === true) { addToSet(ALLOWED_TAGS, svgFilters); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.mathMl === true) { addToSet(ALLOWED_TAGS, mathMl$1); addToSet(ALLOWED_ATTR, mathMl); addToSet(ALLOWED_ATTR, xml); } } /* Merge configuration parameters */ if (cfg.ADD_TAGS) { if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { ALLOWED_TAGS = clone(ALLOWED_TAGS); } addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); } if (cfg.ADD_ATTR) { if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { ALLOWED_ATTR = clone(ALLOWED_ATTR); } addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); } if (cfg.ADD_URI_SAFE_ATTR) { addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); } if (cfg.FORBID_CONTENTS) { if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { FORBID_CONTENTS = clone(FORBID_CONTENTS); } addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); } /* Add #text in case KEEP_CONTENT is set to true */ if (KEEP_CONTENT) { ALLOWED_TAGS['#text'] = true; } /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ if (WHOLE_DOCUMENT) { addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); } /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ if (ALLOWED_TAGS.table) { addToSet(ALLOWED_TAGS, ['tbody']); delete FORBID_TAGS.tbody; } // Prevent further manipulation of configuration. // Not available in IE8, Safari 5, etc. if (freeze) { freeze(cfg); } CONFIG = cfg; }; const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML // namespace. We need to specify them explicitly // so that they don't get erroneously deleted from // HTML namespace. const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); /* Keep track of all possible SVG and MathML tags * so that we can perform the namespace checks * correctly. */ const ALL_SVG_TAGS = addToSet({}, svg$1); addToSet(ALL_SVG_TAGS, svgFilters); addToSet(ALL_SVG_TAGS, svgDisallowed); const ALL_MATHML_TAGS = addToSet({}, mathMl$1); addToSet(ALL_MATHML_TAGS, mathMlDisallowed); /** * * * @param {Element} element a DOM element whose namespace is being checked * @returns {boolean} Return false if the element has a * namespace that a spec-compliant parser would never * return. Return true otherwise. */ const _checkValidNamespace = function _checkValidNamespace(element) { let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode // can be null. We just simulate parent in this case. if (!parent || !parent.tagName) { parent = { namespaceURI: NAMESPACE, tagName: 'template' }; } const tagName = stringToLowerCase(element.tagName); const parentTagName = stringToLowerCase(parent.tagName); if (!ALLOWED_NAMESPACES[element.namespaceURI]) { return false; } if (element.namespaceURI === SVG_NAMESPACE) { // The only way to switch from HTML namespace to SVG // is via <svg>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'svg'; } // The only way to switch from MathML to SVG is via` // svg if parent is either <annotation-xml> or MathML // text integration points. if (parent.namespaceURI === MATHML_NAMESPACE) { return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); } // We only allow elements that are defined in SVG // spec. All others are disallowed in SVG namespace. return Boolean(ALL_SVG_TAGS[tagName]); } if (element.namespaceURI === MATHML_NAMESPACE) { // The only way to switch from HTML namespace to MathML // is via <math>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'math'; } // The only way to switch from SVG to MathML is via // <math> and HTML integration points if (parent.namespaceURI === SVG_NAMESPACE) { return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; } // We only allow elements that are defined in MathML // spec. All others are disallowed in MathML namespace. return Boolean(ALL_MATHML_TAGS[tagName]); } if (element.namespaceURI === HTML_NAMESPACE) { // The only way to switch from SVG to HTML is via // HTML integration points, and from MathML to HTML // is via MathML text integration points if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { return false; } if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { return false; } // We disallow tags that are specific for MathML // or SVG and should never appear in HTML namespace return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); } // For XHTML and XML documents that support custom namespaces if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { return true; } // The code should never reach this place (this means // that the element somehow got namespace that is not // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). // Return false just in case. return false; }; /** * _forceRemove * * @param {Node} node a DOM node */ const _forceRemove = function _forceRemove(node) { arrayPush(DOMPurify.removed, { element: node }); try { // eslint-disable-next-line unicorn/prefer-dom-node-remove node.parentNode.removeChild(node); } catch (_) { node.remove(); } }; /** * _removeAttribute * * @param {String} name an Attribute name * @param {Node} node a DOM node */ const _removeAttribute = function _removeAttribute(name, node) { try { arrayPush(DOMPurify.removed, { attribute: node.getAttributeNode(name), from: node }); } catch (_) { arrayPush(DOMPurify.removed, { attribute: null, from: node }); } node.removeAttribute(name); // We void attribute values for unremovable "is"" attributes if (name === 'is' && !ALLOWED_ATTR[name]) { if (RETURN_DOM || RETURN_DOM_FRAGMENT) { try { _forceRemove(node); } catch (_) {} } else { try { node.setAttribute(name, ''); } catch (_) {} } } }; /** * _initDocument * * @param {String} dirty a string of dirty markup * @return {Document} a DOM, filled with the dirty markup */ const _initDocument = function _initDocument(dirty) { /* Create a HTML document */ let doc; let leadingWhitespace; if (FORCE_BODY) { dirty = '<remove></remove>' + dirty; } else { /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ const matches = stringMatch(dirty, /^[\r\n\t ]+/); leadingWhitespace = matches && matches[0]; } if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; } const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; /* * Use the DOMParser API by default, fallback later if needs be * DOMParser not work for svg when has multiple root element. */ if (NAMESPACE === HTML_NAMESPACE) { try { doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); } catch (_) {} } /* Use createHTMLDocument in case DOMParser is not available */ if (!doc || !doc.documentElement) { doc = implementation.createDocument(NAMESPACE, 'template', null); try { doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; } catch (_) {// Syntax error if dirtyPayload is invalid xml } } const body = doc.body || doc.documentElement; if (dirty && leadingWhitespace) { body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); } /* Work on whole document or just its body */ if (NAMESPACE === HTML_NAMESPACE) { return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; } return WHOLE_DOCUMENT ? doc.documentElement : body; }; /** * _createIterator * * @param {Document} root document/fragment to create iterator for * @return {Iterator} iterator instance */ const _createIterator = function _createIterator(root) { return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false); }; /** * _isClobbered * * @param {Node} elm element to check for clobbering attacks * @return {Boolean} true if clobbered, false if safe */ const _isClobbered = function _isClobbered(elm) { return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function'); }; /** * _isNode * * @param {Node} obj object to check whether it's a DOM node * @return {Boolean} true is object is a DOM node */ const _isNode = function _isNode(object) { return typeof Node === 'object' ? object instanceof Node : object && typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'; }; /** * _executeHook * Execute user configurable hooks * * @param {String} entryPoint Name of the hook's entry point * @param {Node} currentNode node to work on with the hook * @param {Object} data additional hook parameters */ const _executeHook = function _executeHook(entryPoint, currentNode, data) { if (!hooks[entryPoint]) { return; } arrayForEach(hooks[entryPoint], hook => { hook.call(DOMPurify, currentNode, data, CONFIG); }); }; /** * _sanitizeElements * * @protect nodeName * @protect textContent * @protect removeChild * * @param {Node} currentNode to check for permission to exist * @return {Boolean} true if node was killed, false if left alive */ const _sanitizeElements = function _sanitizeElements(currentNode) { let content; /* Execute a hook if present */ _executeHook('beforeSanitizeElements', currentNode, null); /* Check if element is clobbered or can clobber */ if (_isClobbered(currentNode)) { _forceRemove(currentNode); return true; } /* Now let's check the element's type and name */ const tagName = transformCaseFunc(currentNode.nodeName); /* Execute a hook if present */ _executeHook('uponSanitizeElement', currentNode, { tagName, allowedTags: ALLOWED_TAGS }); /* Detect mXSS attempts abusing namespace confusion */ if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { _forceRemove(currentNode); return true; } /* Remove element if anything forbids its presence */ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { /* Check if we have a custom element to handle */ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false; if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false; } /* Keep content except for bad-listed elements */ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { const parentNode = getParentNode(currentNode) || currentNode.parentNode; const childNodes = getChildNodes(currentNode) || currentNode.childNodes; if (childNodes && parentNode) { const childCount = childNodes.length; for (let i = childCount - 1; i >= 0; --i) { parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); } } } _forceRemove(currentNode); return true; } /* Check whether element has a valid namespace */ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { _forceRemove(currentNode); return true; } /* Make sure that older browsers don't get noscript mXSS */ if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) { _forceRemove(currentNode); return true; } /* Sanitize element content to be template-safe */ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { /* Get the element's text content */ content = currentNode.textContent; content = stringReplace(content, MUSTACHE_EXPR, ' '); content = stringReplace(content, ERB_EXPR, ' '); content = stringReplace(content, TMPLIT_EXPR, ' '); if (currentNode.textContent !== content) { arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() }); currentNode.textContent = content; } } /* Execute a hook if present */ _executeHook('afterSanitizeElements', currentNode, null); return false; }; /** * _isValidAttribute * * @param {string} lcTag Lowercase tag name of containing element. * @param {string} lcName Lowercase attribute name. * @param {string} value Attribute value. * @return {Boolean} Returns true if `value` is valid, otherwise false. */ // eslint-disable-next-line complexity const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { /* Make sure attribute cannot clobber */ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { return false; } /* Allow valid data-* attributes: At least one character after "-" (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) We don't need to check the value; it's always URI safe. */ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { return false; } /* Check value is safe. First, is attr inert? If so, is safe */ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (!value) ; else { return false; } return true; }; /** * _basicCustomElementCheck * checks if at least one dash is included in tagName, and it's not the first char * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name * @param {string} tagName name of the tag of the node to sanitize */ const _basicCustomElementTest = function _basicCustomElementTest(tagName) { return tagName.indexOf('-') > 0; }; /** * _sanitizeAttributes * * @protect attributes * @protect nodeName * @protect removeAttribute * @protect setAttribute * * @param {Node} currentNode to sanitize */ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { let attr; let value; let lcName; let l; /* Execute a hook if present */ _executeHook('beforeSanitizeAttributes', currentNode, null); const { attributes } = currentNode; /* Check if we have attributes; if not we might have a text node */ if (!attributes) { return; } const hookEvent = { attrName: '', attrValue: '', keepAttr: true, allowedAttributes: ALLOWED_ATTR }; l = attributes.length; /* Go backwards over all attributes; safely remove bad ones */ while (l--) { attr = attributes[l]; const { name, namespaceURI } = attr; value = name === 'value' ? attr.value : stringTrim(attr.value); lcName = transformCaseFunc(name); /* Execute a hook if present */ hookEvent.attrName = lcName; hookEvent.attrValue = value; hookEvent.keepAttr = true; hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set _executeHook('uponSanitizeAttribute', currentNode, hookEvent); value = hookEvent.attrValue; /* Did the hooks approve of the attribute? */ if (hookEvent.forceKeepAttr) { continue; } /* Remove attribute */ _removeAttribute(name, currentNode); /* Did the hooks approve of the attribute? */ if (!hookEvent.keepAttr) { continue; } /* Work around a security issue in jQuery 3.0 */ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { _removeAttribute(name, currentNode); continue; } /* Sanitize attribute content to be template-safe */ if (SAFE_FOR_TEMPLATES) { value = stringReplace(value, MUSTACHE_EXPR, ' '); value = stringReplace(value, ERB_EXPR, ' '); value = stringReplace(value, TMPLIT_EXPR, ' '); } /* Is `value` valid for this attribute? */ const lcTag = transformCaseFunc(currentNode.nodeName); if (!_isValidAttribute(lcTag, lcName, value)) { continue; } /* Full DOM Clobbering protection via namespace isolation, * Prefix id and name attributes with `user-content-` */ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { // Remove the attribute with this value _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value value = SANITIZE_NAMED_PROPS_PREFIX + value; } /* Handle attributes that require Trusted Types */ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { if (namespaceURI) ; else { switch (trustedTypes.getAttributeType(lcTag, lcName)) { case 'TrustedHTML': value = trustedTypesPolicy.createHTML(value); break; case 'TrustedScriptURL': value = trustedTypesPolicy.createScriptURL(value); break; } } } /* Handle invalid data-* attribute set by try-catching it */ try { if (namespaceURI) { currentNode.setAttributeNS(namespaceURI, name, value); } else { /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ currentNode.setAttribute(name, value); } arrayPop(DOMPurify.removed); } catch (_) {} } /* Execute a hook if present */ _executeHook('afterSanitizeAttributes', currentNode, null); }; /** * _sanitizeShadowDOM * * @param {DocumentFragment} fragment to iterate over recursively */ const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { let shadowNode; const shadowIterator = _createIterator(fragment); /* Execute a hook if present */ _executeHook('beforeSanitizeShadowDOM', fragment, null); while (shadowNode = shadowIterator.nextNode()) { /* Execute a hook if present */ _executeHook('uponSanitizeShadowNode', shadowNode, null); /* Sanitize tags and elements */ if (_sanitizeElements(shadowNode)) { continue; } /* Deep shadow DOM detected */ if (shadowNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(shadowNode.content); } /* Check attributes, sanitize if necessary */ _sanitizeAttributes(shadowNode); } /* Execute a hook if present */ _executeHook('afterSanitizeShadowDOM', fragment, null); }; /** * Sanitize * Public method providing core sanitation functionality * * @param {String|Node} dirty string or DOM node * @param {Object} configuration object */ // eslint-disable-next-line complexity DOMPurify.sanitize = function (dirty) { let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; let body; let importedNode; let currentNode; let returnNode; /* Make sure we have a string to sanitize. DO NOT return early, as this will return the wrong type if the user has requested a DOM object rather than a string */ IS_EMPTY_INPUT = !dirty; if (IS_EMPTY_INPUT) { dirty = '<!-->'; } /* Stringify, in case dirty is an object */ if (typeof dirty !== 'string' && !_isNode(dirty)) { // eslint-disable-next-line no-negated-condition if (typeof dirty.toString !== 'function') { throw typeErrorCreate('toString is not a function'); } else { dirty = dirty.toString(); if (typeof dirty !== 'string') { throw typeErrorCreate('dirty is not a string, aborting'); } } } /* Return dirty HTML if DOMPurify cannot run */ if (!DOMPurify.isSupported) { return dirty; } /* Assign config vars */ if (!SET_CONFIG) { _parseConfig(cfg); } /* Clean up removed elements */ DOMPurify.removed = []; /* Check if dirty is correctly typed for IN_PLACE */ if (typeof dirty === 'string') { IN_PLACE = false; } if (IN_PLACE) { /* Do some early pre-sanitization to avoid unsafe root nodes */ if (dirty.nodeName) { const tagName = transformCaseFunc(dirty.nodeName); if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); } } } else if (dirty instanceof Node) { /* If dirty is a DOM element, append to an empty document to avoid elements being stripped by the parser */ body = _initDocument('<!---->'); importedNode = body.ownerDocument.importNode(dirty, true); if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') { /* Node is already a body, use as is */ body = importedNode; } else if (importedNode.nodeName === 'HTML') { body = importedNode; } else { // eslint-disable-next-line unicorn/prefer-dom-node-append body.appendChild(importedNode); } } else { /* Exit directly if we have nothing to do */ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes dirty.indexOf('<') === -1) { return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; } /* Initialize the document to work on */ body = _initDocument(dirty); /* Check we have a DOM node from the data */ if (!body) { return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; } } /* Remove first element node (ours) if FORCE_BODY is set */ if (body && FORCE_BODY) { _forceRemove(body.firstChild); } /* Get node iterator */ const nodeIterator = _createIterator(IN_PLACE ? dirty : body); /* Now start iterating over the created document */ while (currentNode = nodeIterator.nextNode()) { /* Sanitize tags and elements */ if (_sanitizeElements(currentNode)) { continue; } /* Shadow DOM detected, sanitize it */ if (currentNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(currentNode.content); } /* Check attributes, sanitize if necessary */ _sanitizeAttributes(currentNode); } /* If we sanitized `dirty` in-place, return it. */ if (IN_PLACE) { return dirty; } /* Return sanitized string or DOM */ if (RETURN_DOM) { if (RETURN_DOM_FRAGMENT) { returnNode = createDocumentFragment.call(body.ownerDocument); while (body.firstChild) { // eslint-disable-next-line unicorn/prefer-dom-node-append returnNode.appendChild(body.firstChild); } } else { returnNode = body; } if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) { /* AdoptNode() is not used because internal state is not reset (e.g. the past names map of a HTMLFormElement), this is safe in theory but we would rather not risk another attack vector. The state that is cloned by importNode() is explicitly defined by the specs. */ returnNode = importNode.call(originalDocument, returnNode, true); } return returnNode; } let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; /* Serialize doctype if allowed */ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; } /* Sanitize final string template-safe */ if (SAFE_FOR_TEMPLATES) { serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' '); serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' '); serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' '); } return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; }; /** * Public method to set the configuration once * setConfig * * @param {Object} cfg configuration object */ DOMPurify.setConfig = function (cfg) { _parseConfig(cfg); SET_CONFIG = true; }; /** * Public method to remove the configuration * clearConfig * */ DOMPurify.clearConfig = function () { CONFIG = null; SET_CONFIG = false; }; /** * Public method to check if an attribute value is valid. * Uses last set config, if any. Otherwise, uses config defaults. * isValidAttribute * * @param {string} tag Tag name of containing element. * @param {string} attr Attribute name. * @param {string} value Attribute value. * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false. */ DOMPurify.isValidAttribute = function (tag, attr, value) { /* Initialize shared config vars if necessary. */ if (!CONFIG) { _parseConfig({}); } const lcTag = transformCaseFunc(tag); const lcName = transformCaseFunc(attr); return _isValidAttribute(lcTag, lcName, value); }; /** * AddHook * Public method to add DOMPurify hooks * * @param {String} entryPoint entry point for the hook to add * @param {Function} hookFunction function to execute */ DOMPurify.addHook = function (entryPoint, hookFunction) { if (typeof hookFunction !== 'function') { return; } hooks[entryPoint] = hooks[entryPoint] || []; arrayPush(hooks[entryPoint], hookFunction); }; /** * RemoveHook * Public method to remove a DOMPurify hook at a given entryPoint * (pops it from the stack of hooks if more are present) * * @param {String} entryPoint entry point for the hook to remove * @return {Function} removed(popped) hook */ DOMPurify.removeHook = function (entryPoint) { if (hooks[entryPoint]) { return arrayPop(hooks[entryPoint]); } }; /** * RemoveHooks * Public method to remove all DOMPurify hooks at a given entryPoint * * @param {String} entryPoint entry point for the hooks to remove */ DOMPurify.removeHooks = function (entryPoint) { if (hooks[entryPoint]) { hooks[entryPoint] = []; } }; /** * RemoveAllHooks * Public method to remove all DOMPurify hooks * */ DOMPurify.removeAllHooks = function () { hooks = {}; }; return DOMPurify; } var purify = createDOMPurify(); return purify; })); //# sourceMappingURL=purify.js.map {"version":3,"file":"purify.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","addToSet","set","array","transformCaseFunc","l","length","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childCount","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":"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"} /*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t){return new e(...t)});const m=N(Array.prototype.forEach),u=N(Array.prototype.pop),p=N(Array.prototype.push),f=N(String.prototype.toLowerCase),d=N(String.prototype.toString),h=N(String.prototype.match),g=N(String.prototype.replace),y=N(String.prototype.indexOf),T=N(String.prototype.trim),E=N(RegExp.prototype.test),A=(b=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(b,t)});var b;function N(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function _(e,o,r){r=r||f,t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function w(t){const n=l(null);for(const[o,r]of e(t))n[o]=r;return n}function R(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=o(e)}return function(e){return console.warn("fallback value for",e),null}}const S=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),v=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=i(["#text"]),O=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),M=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),P=a(/<%[\w\W]*|[\w\W]*%>/gm),H=a(/\${[\w\W]*}/gm),z=a(/^data-[\-\w.\u00B7-\uFFFF]/),B=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),j=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:H,DATA_ATTR:z,ARIA_ATTR:B,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:j,DOCTYPE_NAME:q});const Y=()=>"undefined"==typeof window?null:window,K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(o)&&(n=t.currentScript.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var V=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const o=e=>t(e);if(o.version="3.0.2",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;const r=n.document;let{document:a}=n;const{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:b,NodeFilter:N,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:P,DOMParser:H,trustedTypes:z}=n,B=b.prototype,G=R(B,"cloneNode"),j=R(B,"nextSibling"),V=R(B,"childNodes"),$=R(B,"parentNode");if("function"==typeof c){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}const Z=K(z,r),J=Z?Z.createHTML(""):"",{implementation:Q,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=a,{importNode:oe}=r;let re={};o.isSupported="function"==typeof e&&"function"==typeof $&&Q&&void 0!==Q.createHTMLDocument;const{MUSTACHE_EXPR:ie,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ue}=X;let{IS_ALLOWED_URI:pe}=X,fe=null;const de=_({},[...S,...x,...D,...v,...L]);let he=null;const ge=_({},[...O,...M,...I,...U]);let ye=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ee=null,Ae=!0,be=!0,Ne=!1,_e=!0,we=!1,Re=!1,Se=!1,xe=!1,De=!1,ke=!1,ve=!1,Ce=!0,Le=!1;const Oe="user-content-";let Me=!0,Ie=!1,Ue={},Fe=null;const Pe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const ze=_({},["audio","video","img","source","image","track"]);let Be=null;const We=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Xe=qe,Ye=!1,Ke=null;const Ve=_({},[Ge,je,qe],d);let $e;const Ze=["application/xhtml+xml","text/html"],Je="text/html";let Qe,et=null;const tt=a.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){et&&et===e||(e&&"object"==typeof e||(e={}),e=w(e),$e=$e=-1===Ze.indexOf(e.PARSER_MEDIA_TYPE)?Je:e.PARSER_MEDIA_TYPE,Qe="application/xhtml+xml"===$e?d:f,fe="ALLOWED_TAGS"in e?_({},e.ALLOWED_TAGS,Qe):de,he="ALLOWED_ATTR"in e?_({},e.ALLOWED_ATTR,Qe):ge,Ke="ALLOWED_NAMESPACES"in e?_({},e.ALLOWED_NAMESPACES,d):Ve,Be="ADD_URI_SAFE_ATTR"in e?_(w(We),e.ADD_URI_SAFE_ATTR,Qe):We,He="ADD_DATA_URI_TAGS"in e?_(w(ze),e.ADD_DATA_URI_TAGS,Qe):ze,Fe="FORBID_CONTENTS"in e?_({},e.FORBID_CONTENTS,Qe):Pe,Te="FORBID_TAGS"in e?_({},e.FORBID_TAGS,Qe):{},Ee="FORBID_ATTR"in e?_({},e.FORBID_ATTR,Qe):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,be=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,we=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,ve=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,Ie=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||W,Xe=e.NAMESPACE||qe,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(be=!1),ke&&(De=!0),Ue&&(fe=_({},[...L]),he=[],!0===Ue.html&&(_(fe,S),_(he,O)),!0===Ue.svg&&(_(fe,x),_(he,M),_(he,U)),!0===Ue.svgFilters&&(_(fe,D),_(he,M),_(he,U)),!0===Ue.mathMl&&(_(fe,v),_(he,I),_(he,U))),e.ADD_TAGS&&(fe===de&&(fe=w(fe)),_(fe,e.ADD_TAGS,Qe)),e.ADD_ATTR&&(he===ge&&(he=w(he)),_(he,e.ADD_ATTR,Qe)),e.ADD_URI_SAFE_ATTR&&_(Be,e.ADD_URI_SAFE_ATTR,Qe),e.FORBID_CONTENTS&&(Fe===Pe&&(Fe=w(Fe)),_(Fe,e.FORBID_CONTENTS,Qe)),Me&&(fe["#text"]=!0),Re&&_(fe,["html","head","body"]),fe.table&&(_(fe,["tbody"]),delete Te.tbody),i&&i(e),et=e)},rt=_({},["mi","mo","mn","ms","mtext"]),it=_({},["foreignobject","desc","title","annotation-xml"]),at=_({},["title","style","font","a","script"]),lt=_({},x);_(lt,D),_(lt,k);const ct=_({},v);_(ct,C);const st=function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=f(e.tagName),o=f(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI===qe?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===o||rt[o]):Boolean(lt[n]):e.namespaceURI===Ge?t.namespaceURI===qe?"math"===n:t.namespaceURI===je?"math"===n&&it[o]:Boolean(ct[n]):e.namespaceURI===qe?!(t.namespaceURI===je&&!it[o])&&(!(t.namespaceURI===Ge&&!rt[o])&&(!ct[n]&&(at[n]||!lt[n]))):!("application/xhtml+xml"!==$e||!Ke[e.namespaceURI]))},mt=function(e){p(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ut=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!he[e])if(De||ke)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){let t,n;if(xe)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===$e&&Xe===qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Z?Z.createHTML(e):e;if(Xe===qe)try{t=(new H).parseFromString(o,$e)}catch(e){}if(!t||!t.documentElement){t=Q.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ye?J:o}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(a.createTextNode(n),r.childNodes[0]||null),Xe===qe?ne.call(t,Re?"html":"body")[0]:Re?t.documentElement:r},ft=function(e){return ee.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT,null,!1)},dt=function(e){return e instanceof P&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ht=function(e){return"object"==typeof s?e instanceof s:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){re[e]&&m(re[e],(e=>{e.call(o,t,n,et)}))},yt=function(e){let t;if(gt("beforeSanitizeElements",e,null),dt(e))return mt(e),!0;const n=Qe(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:n,allowedTags:fe}),e.hasChildNodes()&&!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return mt(e),!0;if(!fe[n]||Te[n]){if(!Te[n]&&Et(n)){if(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,n))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))return!1}if(Me&&!Fe[n]){const t=$(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o)t.insertBefore(G(n[o],!0),j(e))}}return mt(e),!0}return e instanceof b&&!st(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n||!E(/<\/no(script|embed)/i,e.innerHTML)?(we&&3===e.nodeType&&(t=e.textContent,t=g(t,ie," "),t=g(t,ae," "),t=g(t,le," "),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Tt=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in a||n in tt))return!1;if(be&&!Ee[t]&&E(ce,t));else if(Ae&&E(se,t));else if(!he[t]||Ee[t]){if(!(Et(e)&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&E(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Be[t]);else if(E(pe,g(n,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!He[e]){if(Ne&&!E(me,g(n,ue,"")));else if(n)return!1}else;return!0},Et=function(e){return e.indexOf("-")>0},At=function(e){let t,n,r,i;gt("beforeSanitizeAttributes",e,null);const{attributes:a}=e;if(!a)return;const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he};for(i=a.length;i--;){t=a[i];const{name:c,namespaceURI:s}=t;if(n="value"===c?t.value:T(t.value),r=Qe(c),l.attrName=r,l.attrValue=n,l.keepAttr=!0,l.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,l),n=l.attrValue,l.forceKeepAttr)continue;if(ut(c,e),!l.keepAttr)continue;if(!_e&&E(/\/>/i,n)){ut(c,e);continue}we&&(n=g(n,ie," "),n=g(n,ae," "),n=g(n,le," "));const m=Qe(e.nodeName);if(Tt(m,r,n)){if(!Le||"id"!==r&&"name"!==r||(ut(c,e),n=Oe+n),Z&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(m,r)){case"TrustedHTML":n=Z.createHTML(n);break;case"TrustedScriptURL":n=Z.createScriptURL(n)}try{s?e.setAttributeNS(s,c,n):e.setAttribute(c,n),u(o.removed)}catch(e){}}}gt("afterSanitizeAttributes",e,null)},bt=function e(t){let n;const o=ft(t);for(gt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)gt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof l&&e(n.content),At(n));gt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t,n,i,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ht(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Se||ot(c),o.removed=[],"string"==typeof e&&(Ie=!1),Ie){if(e.nodeName){const t=Qe(e.nodeName);if(!fe[t]||Te[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)t=pt("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!De&&!we&&!Re&&-1===e.indexOf("<"))return Z&&ve?Z.createHTML(e):e;if(t=pt(e),!t)return De?null:ve?J:""}t&&xe&&mt(t.firstChild);const m=ft(Ie?e:t);for(;i=m.nextNode();)yt(i)||(i.content instanceof l&&bt(i.content),At(i));if(Ie)return e;if(De){if(ke)for(a=te.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(he.shadowroot||he.shadowrootmod)&&(a=oe.call(r,a,!0)),a}let u=Re?t.outerHTML:t.innerHTML;return Re&&fe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&E(q,t.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+u),we&&(u=g(u,ie," "),u=g(u,ae," "),u=g(u,le," ")),Z&&ve?Z.createHTML(u):u},o.setConfig=function(e){ot(e),Se=!0},o.clearConfig=function(){et=null,Se=!1},o.isValidAttribute=function(e,t,n){et||ot({});const o=Qe(e),r=Qe(t);return Tt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],p(re[e],t))},o.removeHook=function(e){if(re[e])return u(re[e])},o.removeHooks=function(e){re[e]&&(re[e]=[])},o.removeAllHooks=function(){re={}},o}();return V})); //# sourceMappingURL=purify.min.js.map {"version":3,"file":"purify.min.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n for (const [property, value] of entries(object)) {\n newObject[property] = value;\n }\n\n return newObject;\n}\n\n/* This method automatically checks if the prop is function\n * or getter and behaves accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n entries,\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n 'mprescripts',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nexport const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nexport const DOCTYPE_NAME = seal(/^html$/i);\n","import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n entries,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringToString,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof entries === 'function' &&\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined';\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet(\n {},\n [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE],\n stringToString\n );\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? stringToString\n : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc)\n : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES =\n 'ALLOWED_NAMESPACES' in cfg\n ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString)\n : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(\n clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(\n clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS =\n 'FORBID_TAGS' in cfg\n ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc)\n : {};\n FORBID_ATTR =\n 'FORBID_ATTR' in cfg\n ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc)\n : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || EXPRESSIONS.IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n ALLOWED_NAMESPACES[element.namespaceURI]\n ) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (\n PARSER_MEDIA_TYPE === 'application/xhtml+xml' &&\n NAMESPACE === HTML_NAMESPACE\n ) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' +\n dirty +\n '</body></html>';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT\n ? emptyHTML\n : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function' ||\n typeof elm.hasChildNodes !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n currentNode.hasChildNodes() &&\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)\n )\n return false;\n if (\n CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)\n )\n return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(\n cloneNode(childNodes[i], true),\n getNextSibling(currentNode)\n );\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get noscript mXSS */\n if (\n (tagName === 'noscript' || tagName === 'noembed') &&\n regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n content = stringReplace(content, TMPLIT_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (\n ALLOW_DATA_ATTR &&\n !FORBID_ATTR[lcName] &&\n regExpTest(DATA_ATTR, lcName)\n ) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n (_basicCustomElementTest(lcTag) &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag))) &&\n ((CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName)) ||\n (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)))) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n (lcName === 'is' &&\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&\n ((CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp &&\n regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)) ||\n (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function &&\n CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))))\n ) {\n // If user has supplied a regexp or function in CUSTOM_ELEMENT_HANDLING.tagNameCheck, we need to also allow derived custom elements using the same tagName test.\n // Additionally, we need to allow attributes passing the CUSTOM_ELEMENT_HANDLING.attributeNameCheck user has configured, as custom elements can define these at their own discretion.\n } else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n const _basicCustomElementTest = function (tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n const { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n value = stringReplace(value, TMPLIT_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (\n trustedTypesPolicy &&\n typeof trustedTypes === 'object' &&\n typeof trustedTypes.getAttributeType === 'function'\n ) {\n if (namespaceURI) {\n /* Namespaces are not yet supported, see https://bugs.chromium.org/p/chromium/issues/detail?id=1305293 */\n } else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n default:\n break;\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg = {}) {\n let body;\n let importedNode;\n let currentNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate(\n 'root node is forbidden and cannot be sanitized in-place'\n );\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (\n WHOLE_DOCUMENT &&\n ALLOWED_TAGS['!doctype'] &&\n body.ownerDocument &&\n body.ownerDocument.doctype &&\n body.ownerDocument.doctype.name &&\n regExpTest(EXPRESSIONS.DOCTYPE_NAME, body.ownerDocument.doctype.name)\n ) {\n serializedHTML =\n '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["entries","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","Object","freeze","seal","create","apply","construct","Reflect","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringToString","toString","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","func","TypeError","_len2","arguments","length","_key2","thisArg","_len","_key","addToSet","set","array","transformCaseFunc","l","element","lcElement","clone","object","newObject","property","value","lookupGetter","prop","desc","get","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","createScriptURL","scriptUrl","_","purify","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","createHTMLDocument","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","CUSTOM_ELEMENT_HANDLING","tagNameCheck","writable","configurable","enumerable","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","Function","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","_forceRemove","node","parentNode","removeChild","remove","_removeAttribute","name","attribute","getAttributeNode","from","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","call","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","hasChildNodes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","i","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","undefined","getAttributeType","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","appendChild","firstChild","nodeIterator","shadowroot","shadowrootmod","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":";0OAAA,MAAMA,QACJA,EADIC,eAEJA,EAFIC,SAGJA,EAHIC,eAIJA,EAJIC,yBAKJA,GACEC,OAEJ,IAAIC,OAAEA,EAAFC,KAAUA,EAAVC,OAAgBA,GAAWH,QAC3BI,MAAEA,EAAFC,UAASA,GAAiC,oBAAZC,SAA2BA,QAExDF,IACHA,EAAQ,SAAUG,EAAKC,EAAWC,GAChC,OAAOF,EAAIH,MAAMI,EAAWC,EAC7B,GAGER,IACHA,EAAS,SAAUS,GACjB,OAAOA,CACR,GAGER,IACHA,EAAO,SAAUQ,GACf,OAAOA,CACR,GAGEL,IACHA,EAAY,SAAUM,EAAMF,GAC1B,OAAO,IAAIE,KAAQF,EACpB,GAGH,MAAMG,EAAeC,EAAQC,MAAMC,UAAUC,SAEvCC,EAAWJ,EAAQC,MAAMC,UAAUG,KACnCC,EAAYN,EAAQC,MAAMC,UAAUK,MAGpCC,EAAoBR,EAAQS,OAAOP,UAAUQ,aAC7CC,EAAiBX,EAAQS,OAAOP,UAAUU,UAC1CC,EAAcb,EAAQS,OAAOP,UAAUY,OACvCC,EAAgBf,EAAQS,OAAOP,UAAUc,SACzCC,EAAgBjB,EAAQS,OAAOP,UAAUgB,SACzCC,EAAanB,EAAQS,OAAOP,UAAUkB,MAEtCC,EAAarB,EAAQsB,OAAOpB,UAAUqB,MAEtCC,GAMsBC,EANQC,UAO3B,WAAA,IAAA,IAAAC,EAAAC,UAAAC,OAAIjC,EAAJ,IAAAK,MAAA0B,GAAAG,EAAA,EAAAA,EAAAH,EAAAG,IAAIlC,EAAJkC,GAAAF,UAAAE,GAAA,OAAatC,EAAUiC,EAAM7B,EAA7B,GADF,IAAqB6B,EAJrB,SAASzB,EAAQyB,GACtB,OAAO,SAACM,GAAD,IAAA,IAAAC,EAAAJ,UAAAC,OAAajC,EAAb,IAAAK,MAAA+B,EAAA,EAAAA,EAAA,EAAA,GAAAC,EAAA,EAAAA,EAAAD,EAAAC,IAAarC,EAAbqC,EAAA,GAAAL,UAAAK,GAAA,OAAsB1C,EAAMkC,EAAMM,EAASnC,EAA3C,CACR,CAOM,SAASsC,EAASC,EAAKC,EAAOC,GACnCA,EAAoBA,GAAwC7B,EACxDzB,GAIFA,EAAeoD,EAAK,MAGtB,IAAIG,EAAIF,EAAMP,OACPS,KAAAA,KAAK,CACV,IAAIC,EAAUH,EAAME,GACpB,GAAuB,iBAAZC,EAAsB,CAC/B,MAAMC,EAAYH,EAAkBE,GAChCC,IAAcD,IAEXvD,EAASoD,KACZA,EAAME,GAAKE,GAGbD,EAAUC,EAEb,CAEDL,EAAII,IAAW,CAChB,CAED,OAAOJ,CACR,CAGM,SAASM,EAAMC,GACpB,MAAMC,EAAYrD,EAAO,MAEpB,IAAA,MAAOsD,EAAUC,KAAU/D,EAAQ4D,GACtCC,EAAUC,GAAYC,EAGxB,OAAOF,CACR,CAID,SAASG,EAAaJ,EAAQK,GACrBL,KAAW,OAAXA,GAAiB,CACtB,MAAMM,EAAO9D,EAAyBwD,EAAQK,GAC9C,GAAIC,EAAM,CACJA,GAAAA,EAAKC,IACP,OAAOjD,EAAQgD,EAAKC,KAGtB,GAA0B,mBAAfD,EAAKH,MACd,OAAO7C,EAAQgD,EAAKH,MAEvB,CAEDH,EAASzD,EAAeyD,EACzB,CAOD,OALSQ,SAAcX,GAErB,OADAY,QAAQC,KAAK,qBAAsBb,GAC5B,IACR,CAGF,CC5HM,MAAMc,EAAOjE,EAAO,CACzB,IACA,OACA,UACA,UACA,OACA,UACA,QACA,QACA,IACA,MACA,MACA,MACA,QACA,aACA,OACA,KACA,SACA,SACA,UACA,SACA,OACA,OACA,MACA,WACA,UACA,OACA,WACA,KACA,YACA,MACA,UACA,MACA,SACA,MACA,MACA,KACA,KACA,UACA,KACA,WACA,aACA,SACA,OACA,SACA,OACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,OACA,IACA,MACA,QACA,MACA,MACA,QACA,SACA,KACA,OACA,MACA,OACA,UACA,OACA,WACA,QACA,MACA,OACA,KACA,WACA,SACA,SACA,IACA,UACA,MACA,WACA,IACA,KACA,KACA,OACA,IACA,OACA,UACA,SACA,SACA,QACA,SACA,SACA,OACA,SACA,SACA,QACA,MACA,UACA,MACA,QACA,QACA,KACA,WACA,WACA,QACA,KACA,QACA,OACA,KACA,QACA,KACA,IACA,KACA,MACA,QACA,QAIWkE,EAAMlE,EAAO,CACxB,MACA,IACA,WACA,cACA,eACA,eACA,gBACA,mBACA,SACA,WACA,OACA,OACA,UACA,SACA,OACA,IACA,QACA,WACA,QACA,QACA,OACA,iBACA,SACA,OACA,WACA,QACA,OACA,UACA,UACA,WACA,iBACA,OACA,OACA,QACA,SACA,SACA,OACA,WACA,QACA,OACA,QACA,OACA,UAGWmE,EAAanE,EAAO,CAC/B,UACA,gBACA,sBACA,cACA,mBACA,oBACA,oBACA,iBACA,UACA,UACA,UACA,UACA,UACA,iBACA,UACA,UACA,cACA,eACA,WACA,eACA,qBACA,cACA,SACA,iBAOWoE,EAAgBpE,EAAO,CAClC,UACA,gBACA,SACA,UACA,eACA,YACA,mBACA,iBACA,gBACA,gBACA,gBACA,QACA,YACA,OACA,eACA,YACA,UACA,gBACA,SACA,MACA,aACA,UACA,QAGWqE,EAASrE,EAAO,CAC3B,OACA,WACA,SACA,UACA,QACA,SACA,KACA,aACA,gBACA,KACA,KACA,QACA,UACA,WACA,QACA,OACA,KACA,SACA,QACA,SACA,OACA,OACA,UACA,SACA,MACA,QACA,MACA,SACA,aACA,gBAKWsE,EAAmBtE,EAAO,CACrC,UACA,cACA,aACA,WACA,YACA,UACA,UACA,SACA,SACA,QACA,YACA,aACA,iBACA,cACA,SAGWuE,EAAOvE,EAAO,CAAC,UCrRfiE,EAAOjE,EAAO,CACzB,SACA,SACA,QACA,MACA,iBACA,eACA,uBACA,WACA,aACA,UACA,SACA,UACA,cACA,cACA,UACA,OACA,QACA,QACA,QACA,OACA,UACA,WACA,eACA,SACA,cACA,WACA,WACA,UACA,MACA,WACA,0BACA,wBACA,WACA,YACA,UACA,eACA,OACA,MACA,UACA,SACA,SACA,OACA,OACA,WACA,KACA,YACA,YACA,QACA,OACA,QACA,OACA,OACA,UACA,OACA,MACA,MACA,YACA,QACA,SACA,MACA,YACA,WACA,QACA,OACA,QACA,UACA,aACA,SACA,OACA,UACA,UACA,cACA,cACA,SACA,UACA,UACA,aACA,WACA,MACA,WACA,MACA,WACA,OACA,OACA,UACA,aACA,QACA,WACA,QACA,OACA,QACA,OACA,UACA,QACA,MACA,SACA,OACA,QACA,UACA,WACA,QACA,YACA,OACA,SACA,SACA,QACA,QACA,QACA,SAGWkE,EAAMlE,EAAO,CACxB,gBACA,aACA,WACA,qBACA,SACA,gBACA,gBACA,UACA,gBACA,iBACA,QACA,OACA,KACA,QACA,OACA,gBACA,YACA,YACA,QACA,sBACA,8BACA,gBACA,kBACA,KACA,KACA,IACA,KACA,KACA,kBACA,YACA,UACA,UACA,MACA,WACA,YACA,MACA,OACA,eACA,YACA,SACA,cACA,cACA,gBACA,cACA,YACA,mBACA,eACA,aACA,eACA,cACA,KACA,KACA,KACA,KACA,aACA,WACA,gBACA,oBACA,SACA,OACA,KACA,kBACA,KACA,MACA,IACA,KACA,KACA,KACA,KACA,UACA,YACA,aACA,WACA,OACA,eACA,iBACA,eACA,mBACA,iBACA,QACA,aACA,aACA,eACA,eACA,cACA,cACA,mBACA,YACA,MACA,OACA,QACA,SACA,OACA,MACA,OACA,aACA,SACA,WACA,UACA,QACA,SACA,cACA,SACA,WACA,cACA,OACA,aACA,sBACA,mBACA,eACA,SACA,gBACA,sBACA,iBACA,IACA,KACA,KACA,SACA,OACA,OACA,cACA,YACA,UACA,SACA,SACA,QACA,OACA,kBACA,mBACA,mBACA,eACA,cACA,eACA,cACA,aACA,eACA,mBACA,oBACA,iBACA,kBACA,oBACA,iBACA,SACA,eACA,QACA,eACA,iBACA,WACA,UACA,UACA,YACA,mBACA,cACA,kBACA,iBACA,aACA,OACA,KACA,KACA,UACA,SACA,UACA,aACA,UACA,aACA,gBACA,gBACA,QACA,eACA,OACA,eACA,mBACA,mBACA,IACA,KACA,KACA,QACA,IACA,KACA,KACA,IACA,eAGWqE,EAASrE,EAAO,CAC3B,SACA,cAC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"}
[]
CVE-2023-2591
57a977c6323656e5dc06ab5c227e75c3465a1a4a
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitHub repository nilsteampassnet/teampass prior to 3.0.7."}]
null
5.4
2023-05-09T10:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.7 Fix potential vulnerability in item label field
2023-05-09 10:34:40 +0200
57a977c63
8,325
3
[ "pages/items.js.php" ]
PHP
{"pages/items.js.php": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/pages/items.js.php b/pages/items.js.php index 6ae72589f..6f8404cc6 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -2792,19 +2792,19 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- } //prepare data var data = { 'anyone_can_modify': $('#form-item-anyoneCanModify').is(':checked') ? 1 : 0, 'complexity_level': parseInt($('#form-item-password-complex').val()), - 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true}}) : '', + 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true, svg: false, svgFilters: false}}) : '', 'diffusion_list': diffusion, 'diffusion_list_names': diffusionNames, 'folder': parseInt($('#form-item-folder').val()), 'email': DOMPurify.sanitize($('#form-item-email').val()), 'fields': fields, 'folder_is_personal': store.get('teampassItem').IsPersonalFolder === 1 ? 1 : 0, 'id': store.get('teampassItem').id, - 'label': DOMPurify.sanitize($('#form-item-label').val()), + 'label': DOMPurify.sanitize($('#form-item-label').val(), {USE_PROFILES: {html:false, svg: false, svgFilters: false}}), 'login': DOMPurify.sanitize($('#form-item-login').val()), 'pw': $('#form-item-password').val(), 'restricted_to': restriction, 'restricted_to_roles': restrictionRole, 'tags': DOMPurify.sanitize($('#form-item-tags').val()),
'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true}}) : '', 'label': DOMPurify.sanitize($('#form-item-label').val()),
'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true, svg: false, svgFilters: false}}) : '', 'label': DOMPurify.sanitize($('#form-item-label').val(), {USE_PROFILES: {html:false, svg: false, svgFilters: false}}),
[]
CVE-2023-2859
1f51482a0c4d152ca876844212b0f8f3cb9387af
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Code Injection in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
8.8
2023-05-24T08:15Z
nan
CWE-94
Improper Control of Generation of Code ('Code Injection')
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
3.0.9 Fix vulnerability in form folder creation
2023-05-24 08:59:22 +0200
1f51482a0
8,325
3
[ "includes/config/include.php", "pages/items.js.php", "pages/users.js.php", "sources/main.functions.php" ]
PHP
{"includes/config/include.php": {"lines_added": 1, "lines_deleted": 1}, "{install1 => install}/css/install.css": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/animated-overlay.gif": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-icons_3383bb_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-icons_454545_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-icons_70b2e1_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-icons_999999_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/images/ui-icons_fbc856_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/css/overcast/jquery-ui-1.10.3.custom.min.css": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/76.gif": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/ajax-loader.gif": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/cross.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/error.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/exclamation-red.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/information-white.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/minus-circle.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/tick-circle.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/images/tick.png": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/install.js": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/install.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/install.queries.php": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/js/aes.min.js": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/js/crypt/aes.class.php": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/js/crypt/aes.min.js": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/js/crypt/aesctr.class.php": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/js/jquery-ui.min.js": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/js/jquery.min.js": {"lines_added": 0, "lines_deleted": 0}, "{install1/install => install}/libs/aesctr.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/migrate_users_to_v3.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/tp.functions.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_ajax.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0_fields.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0_files.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0_logs.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0_passwords.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0_suggestions.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.0_users.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_run_3.0.php": {"lines_added": 0, "lines_deleted": 0}, "{install1 => install}/upgrade_scripts_manager.php": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/install.css": {"lines_added": 0, "lines_deleted": 123}, "install1/install/css/overcast/images/animated-overlay.gif": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-icons_3383bb_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-icons_454545_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-icons_70b2e1_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-icons_999999_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/images/ui-icons_fbc856_256x240.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/css/overcast/jquery-ui-1.10.3.custom.min.css": {"lines_added": 0, "lines_deleted": 5}, "install1/install/images/76.gif": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/ajax-loader.gif": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/cross.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/error.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/exclamation-red.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/information-white.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/minus-circle.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/tick-circle.png": {"lines_added": 0, "lines_deleted": 0}, "install1/install/images/tick.png": {"lines_added": 0, "lines_deleted": 0}, "install1/js/aes.min.js": {"lines_added": 0, "lines_deleted": 457}, "install1/js/crypt/aes.class.php": {"lines_added": 0, "lines_deleted": 207}, "install1/js/crypt/aes.min.js": {"lines_added": 0, "lines_deleted": 457}, "install1/js/crypt/aesctr.class.php": {"lines_added": 0, "lines_deleted": 191}, "install1/js/jquery-ui.min.js": {"lines_added": 0, "lines_deleted": 638}, "install1/js/jquery.min.js": {"lines_added": 0, "lines_deleted": 18}, "install1/libs/aesctr.php": {"lines_added": 0, "lines_deleted": 406}, "pages/items.js.php": {"lines_added": 5, "lines_deleted": 5}, "pages/users.js.php": {"lines_added": 1, "lines_deleted": 1}, "sources/main.functions.php": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/includes/config/include.php b/includes/config/include.php index e39d33a29..6d1528975 100755 --- a/includes/config/include.php +++ b/includes/config/include.php @@ -27,11 +27,11 @@ define('TP_ADMIN_FULL_RIGHT', false); define('TP_ADMIN_NO_INFO', false); define('TP_COPYRIGHT', '2009-'.date('Y')); define('TP_ALLOWED_TAGS', '<b><i><sup><sub><em><strong><u><br><br /><a><strike><ul><blockquote><blockquote><img><li><h1><h2><h3><h4><h5><ol><small><font>'); define('TP_FILE_PREFIX', 'EncryptedFile_'); define('NUMBER_ITEMS_IN_BATCH', 100); -define('WIP', true); +define('WIP', false); define('ERR_NOT_ALLOWED', '1000'); define('ERR_NOT_EXIST', '1001'); define('ERR_SESS_EXPIRED', '1002'); define('ERR_NO_MCRYPT', '1003'); diff --git a/install1/css/install.css b/install/css/install.css similarity index 100% rename from install1/css/install.css rename to install/css/install.css diff --git a/install1/css/overcast/images/animated-overlay.gif b/install/css/overcast/images/animated-overlay.gif similarity index 100% rename from install1/css/overcast/images/animated-overlay.gif rename to install/css/overcast/images/animated-overlay.gif diff --git a/install1/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png b/install/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png similarity index 100% rename from install1/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png rename to install/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png diff --git a/install1/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png b/install/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png similarity index 100% rename from install1/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png rename to install/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png diff --git a/install1/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png b/install/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png similarity index 100% rename from install1/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png rename to install/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png diff --git a/install1/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png b/install/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png similarity index 100% rename from install1/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png rename to install/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png diff --git a/install1/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png b/install/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png similarity index 100% rename from install1/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png rename to install/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png diff --git a/install1/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png b/install/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png similarity index 100% rename from install1/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png rename to install/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png diff --git a/install1/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png b/install/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png similarity index 100% rename from install1/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png rename to install/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png diff --git a/install1/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png b/install/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png similarity index 100% rename from install1/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png rename to install/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png diff --git a/install1/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png b/install/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png similarity index 100% rename from install1/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png rename to install/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png diff --git a/install1/css/overcast/images/ui-icons_3383bb_256x240.png b/install/css/overcast/images/ui-icons_3383bb_256x240.png similarity index 100% rename from install1/css/overcast/images/ui-icons_3383bb_256x240.png rename to install/css/overcast/images/ui-icons_3383bb_256x240.png diff --git a/install1/css/overcast/images/ui-icons_454545_256x240.png b/install/css/overcast/images/ui-icons_454545_256x240.png similarity index 100% rename from install1/css/overcast/images/ui-icons_454545_256x240.png rename to install/css/overcast/images/ui-icons_454545_256x240.png diff --git a/install1/css/overcast/images/ui-icons_70b2e1_256x240.png b/install/css/overcast/images/ui-icons_70b2e1_256x240.png similarity index 100% rename from install1/css/overcast/images/ui-icons_70b2e1_256x240.png rename to install/css/overcast/images/ui-icons_70b2e1_256x240.png diff --git a/install1/css/overcast/images/ui-icons_999999_256x240.png b/install/css/overcast/images/ui-icons_999999_256x240.png similarity index 100% rename from install1/css/overcast/images/ui-icons_999999_256x240.png rename to install/css/overcast/images/ui-icons_999999_256x240.png diff --git a/install1/css/overcast/images/ui-icons_fbc856_256x240.png b/install/css/overcast/images/ui-icons_fbc856_256x240.png similarity index 100% rename from install1/css/overcast/images/ui-icons_fbc856_256x240.png rename to install/css/overcast/images/ui-icons_fbc856_256x240.png diff --git a/install1/css/overcast/jquery-ui-1.10.3.custom.min.css b/install/css/overcast/jquery-ui-1.10.3.custom.min.css similarity index 100% rename from install1/css/overcast/jquery-ui-1.10.3.custom.min.css rename to install/css/overcast/jquery-ui-1.10.3.custom.min.css diff --git a/install1/images/76.gif b/install/images/76.gif similarity index 100% rename from install1/images/76.gif rename to install/images/76.gif diff --git a/install1/images/ajax-loader.gif b/install/images/ajax-loader.gif similarity index 100% rename from install1/images/ajax-loader.gif rename to install/images/ajax-loader.gif diff --git a/install1/images/cross.png b/install/images/cross.png similarity index 100% rename from install1/images/cross.png rename to install/images/cross.png diff --git a/install1/images/error.png b/install/images/error.png similarity index 100% rename from install1/images/error.png rename to install/images/error.png diff --git a/install1/images/exclamation-red.png b/install/images/exclamation-red.png similarity index 100% rename from install1/images/exclamation-red.png rename to install/images/exclamation-red.png diff --git a/install1/images/information-white.png b/install/images/information-white.png similarity index 100% rename from install1/images/information-white.png rename to install/images/information-white.png diff --git a/install1/images/minus-circle.png b/install/images/minus-circle.png similarity index 100% rename from install1/images/minus-circle.png rename to install/images/minus-circle.png diff --git a/install1/images/tick-circle.png b/install/images/tick-circle.png similarity index 100% rename from install1/images/tick-circle.png rename to install/images/tick-circle.png diff --git a/install1/images/tick.png b/install/images/tick.png similarity index 100% rename from install1/images/tick.png rename to install/images/tick.png diff --git a/install1/install.js b/install/install.js similarity index 100% rename from install1/install.js rename to install/install.js diff --git a/install1/install.php b/install/install.php similarity index 100% rename from install1/install.php rename to install/install.php diff --git a/install1/install.queries.php b/install/install.queries.php similarity index 100% rename from install1/install.queries.php rename to install/install.queries.php diff --git a/install1/install/js/aes.min.js b/install/js/aes.min.js similarity index 100% rename from install1/install/js/aes.min.js rename to install/js/aes.min.js diff --git a/install1/install/js/crypt/aes.class.php b/install/js/crypt/aes.class.php similarity index 100% rename from install1/install/js/crypt/aes.class.php rename to install/js/crypt/aes.class.php diff --git a/install1/install/js/crypt/aes.min.js b/install/js/crypt/aes.min.js similarity index 100% rename from install1/install/js/crypt/aes.min.js rename to install/js/crypt/aes.min.js diff --git a/install1/install/js/crypt/aesctr.class.php b/install/js/crypt/aesctr.class.php similarity index 100% rename from install1/install/js/crypt/aesctr.class.php rename to install/js/crypt/aesctr.class.php diff --git a/install1/install/js/jquery-ui.min.js b/install/js/jquery-ui.min.js similarity index 100% rename from install1/install/js/jquery-ui.min.js rename to install/js/jquery-ui.min.js diff --git a/install1/install/js/jquery.min.js b/install/js/jquery.min.js similarity index 100% rename from install1/install/js/jquery.min.js rename to install/js/jquery.min.js diff --git a/install1/install/libs/aesctr.php b/install/libs/aesctr.php similarity index 100% rename from install1/install/libs/aesctr.php rename to install/libs/aesctr.php diff --git a/install1/migrate_users_to_v3.php b/install/migrate_users_to_v3.php similarity index 100% rename from install1/migrate_users_to_v3.php rename to install/migrate_users_to_v3.php diff --git a/install1/tp.functions.php b/install/tp.functions.php similarity index 100% rename from install1/tp.functions.php rename to install/tp.functions.php diff --git a/install1/upgrade.php b/install/upgrade.php similarity index 100% rename from install1/upgrade.php rename to install/upgrade.php diff --git a/install1/upgrade_ajax.php b/install/upgrade_ajax.php similarity index 100% rename from install1/upgrade_ajax.php rename to install/upgrade_ajax.php diff --git a/install1/upgrade_run_3.0.0.php b/install/upgrade_run_3.0.0.php similarity index 100% rename from install1/upgrade_run_3.0.0.php rename to install/upgrade_run_3.0.0.php diff --git a/install1/upgrade_run_3.0.0_fields.php b/install/upgrade_run_3.0.0_fields.php similarity index 100% rename from install1/upgrade_run_3.0.0_fields.php rename to install/upgrade_run_3.0.0_fields.php diff --git a/install1/upgrade_run_3.0.0_files.php b/install/upgrade_run_3.0.0_files.php similarity index 100% rename from install1/upgrade_run_3.0.0_files.php rename to install/upgrade_run_3.0.0_files.php diff --git a/install1/upgrade_run_3.0.0_logs.php b/install/upgrade_run_3.0.0_logs.php similarity index 100% rename from install1/upgrade_run_3.0.0_logs.php rename to install/upgrade_run_3.0.0_logs.php diff --git a/install1/upgrade_run_3.0.0_passwords.php b/install/upgrade_run_3.0.0_passwords.php similarity index 100% rename from install1/upgrade_run_3.0.0_passwords.php rename to install/upgrade_run_3.0.0_passwords.php diff --git a/install1/upgrade_run_3.0.0_suggestions.php b/install/upgrade_run_3.0.0_suggestions.php similarity index 100% rename from install1/upgrade_run_3.0.0_suggestions.php rename to install/upgrade_run_3.0.0_suggestions.php diff --git a/install1/upgrade_run_3.0.0_users.php b/install/upgrade_run_3.0.0_users.php similarity index 100% rename from install1/upgrade_run_3.0.0_users.php rename to install/upgrade_run_3.0.0_users.php diff --git a/install1/upgrade_run_3.0.php b/install/upgrade_run_3.0.php similarity index 100% rename from install1/upgrade_run_3.0.php rename to install/upgrade_run_3.0.php diff --git a/install1/upgrade_scripts_manager.php b/install/upgrade_scripts_manager.php similarity index 100% rename from install1/upgrade_scripts_manager.php rename to install/upgrade_scripts_manager.php diff --git a/install1/install/css/install.css b/install1/install/css/install.css deleted file mode 100755 index 3b50c52f2..000000000 --- a/install1/install/css/install.css +++ /dev/null @@ -1,123 +0,0 @@ -body{ - width: 1000px; - margin-left: auto; - margin-right: auto; - background-image: url(../../includes/images/install_background.jpg); - -webkit-background-size: cover; - background-size: cover; - font-family: sans-serif; -} - -#top{ - width: 1000px; - margin-left: auto; - margin-right: auto; - padding: 10px; - font-family: sans-serif; - display:block; - color: #404d63; -} - -.lcol { - vertical-align:middle; - display:inline-block; - margin-bottom: 15px; -} - -.header-title{ - font-size: 42px; - letter-spacing: 10px; - color: #84AAB7; -} - -.header-title-small{ - font-size: 16px; - letter-spacing: 2px; -} - -#title { - font: bold 270%/100% "Lucida Grande"; - color: #464646; - float:left; - margin-top:3px; -} - -#main { - width: 1000px; - margin-top:15px; - margin-left: auto; - margin-right: auto; - background-color:white; - color:#464646; - height:90%; - overflow:hidden; - padding:10px; - display:block; - height:100%; -} - -#menu { - float: left; - width: 25%; - margin-left:-20px; - height:100%; -} - -#menu li { - margin-top:5px; -} - -.li_inprogress { - font-weight: bold; - color: #5283BB; -} - -.li_done { - font-weight: normal; - color: #464646; -} - -#content { - /*float:left; - width: 75%; - height:100%;*/ -} - -#step_name { - font-weight: bold; - text-align: center; - font-size: 15px; -} - -#step_content { - margin-top: 10px; -} - -#action_buttons { - width: 1000px; - padding: 10px; - margin:0 auto 0 auto; - background-color:white; - color:#464646; - height: 30px; - text-align: right; -} -h5 { - margin-bottom: 10px; -} - -.label_block { - display: inline-block; - width: 200px; - margin-bottom: 2px; -} - -.label_block_big { - display: inline-block; - width: 270px; - margin-bottom: 2px; -} - -.hidden { - display: none; -} diff --git a/install1/install/css/overcast/images/animated-overlay.gif b/install1/install/css/overcast/images/animated-overlay.gif deleted file mode 100755 index d441f75eb..000000000 Binary files a/install1/install/css/overcast/images/animated-overlay.gif and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png b/install1/install/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png deleted file mode 100755 index 414803b7e..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png b/install1/install/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png deleted file mode 100755 index 93120f5fd..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png b/install1/install/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png deleted file mode 100755 index 7e0695656..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png b/install1/install/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png deleted file mode 100755 index f92fcfdff..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png b/install1/install/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png deleted file mode 100755 index 5faa7443d..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png b/install1/install/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png deleted file mode 100755 index 7f16ad905..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png b/install1/install/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png deleted file mode 100755 index 5f2c14a1a..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png b/install1/install/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png deleted file mode 100755 index 88a85630e..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png b/install1/install/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png deleted file mode 100755 index d11e1ba19..000000000 Binary files a/install1/install/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-icons_3383bb_256x240.png b/install1/install/css/overcast/images/ui-icons_3383bb_256x240.png deleted file mode 100755 index af7039ded..000000000 Binary files a/install1/install/css/overcast/images/ui-icons_3383bb_256x240.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-icons_454545_256x240.png b/install1/install/css/overcast/images/ui-icons_454545_256x240.png deleted file mode 100755 index d17a92766..000000000 Binary files a/install1/install/css/overcast/images/ui-icons_454545_256x240.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-icons_70b2e1_256x240.png b/install1/install/css/overcast/images/ui-icons_70b2e1_256x240.png deleted file mode 100755 index aa5282eb9..000000000 Binary files a/install1/install/css/overcast/images/ui-icons_70b2e1_256x240.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-icons_999999_256x240.png b/install1/install/css/overcast/images/ui-icons_999999_256x240.png deleted file mode 100755 index 675b2648f..000000000 Binary files a/install1/install/css/overcast/images/ui-icons_999999_256x240.png and /dev/null differ diff --git a/install1/install/css/overcast/images/ui-icons_fbc856_256x240.png b/install1/install/css/overcast/images/ui-icons_fbc856_256x240.png deleted file mode 100755 index 616135553..000000000 Binary files a/install1/install/css/overcast/images/ui-icons_fbc856_256x240.png and /dev/null differ diff --git a/install1/install/css/overcast/jquery-ui-1.10.3.custom.min.css b/install1/install/css/overcast/jquery-ui-1.10.3.custom.min.css deleted file mode 100755 index 8bf80e7fc..000000000 --- a/install1/install/css/overcast/jquery-ui-1.10.3.custom.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! jQuery UI - v1.10.3 - 2013-07-15 -* http://jqueryui.com -* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css -* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CHelvetica%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=6px&bgColorHeader=dddddd&bgTextureHeader=glass&bgImgOpacityHeader=35&borderColorHeader=bbbbbb&fcHeader=444444&iconColorHeader=999999&bgColorContent=c9c9c9&bgTextureContent=inset_soft&bgImgOpacityContent=50&borderColorContent=aaaaaa&fcContent=333333&iconColorContent=999999&bgColorDefault=eeeeee&bgTextureDefault=glass&bgImgOpacityDefault=60&borderColorDefault=cccccc&fcDefault=3383bb&iconColorDefault=70b2e1&bgColorHover=f8f8f8&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=bbbbbb&fcHover=599fcf&iconColorHover=3383bb&bgColorActive=999999&bgTextureActive=inset_hard&bgImgOpacityActive=75&borderColorActive=999999&fcActive=ffffff&iconColorActive=454545&bgColorHighlight=eeeeee&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=ffffff&fcHighlight=444444&iconColorHighlight=3383bb&bgColorError=c0402a&bgTextureError=flat&bgImgOpacityError=55&borderColorError=c0402a&fcError=ffffff&iconColorError=fbc856&bgColorOverlay=eeeeee&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=80&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=60&thicknessShadow=4px&offsetTopShadow=-4px&offsetLeftShadow=-4px&cornerRadiusShadow=0px -* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:0.9em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Trebuchet MS,Helvetica,Arial,sans-serif;font-size:0.9em}.ui-widget .ui-widget{font-size:0.9em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Trebuchet MS,Helvetica,Arial,sans-serif;font-size:0.9em}.ui-widget-content{border:1px solid #aaa;background:#c9c9c9 url(images/ui-bg_inset-soft_50_c9c9c9_1x100.png) 50% bottom repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #bbb;background:#ddd url(images/ui-bg_glass_35_dddddd_1x400.png) 50% 50% repeat-x;color:#444;font-weight:bold}.ui-widget-header a{color:#444}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#eee url(images/ui-bg_glass_60_eeeeee_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#3383bb}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#3383bb;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #bbb;background:#f8f8f8 url(images/ui-bg_glass_100_f8f8f8_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#599fcf}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#599fcf;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #999;background:#999 url(images/ui-bg_inset-hard_75_999999_1x100.png) 50% 50% repeat-x;font-weight:bold;color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fff;background:#eee url(images/ui-bg_flat_55_eeeeee_40x100.png) 50% 50% repeat-x;color:#444}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#444}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #c0402a;background:#c0402a url(images/ui-bg_flat_55_c0402a_40x100.png) 50% 50% repeat-x;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(images/ui-icons_999999_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_999999_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_70b2e1_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_3383bb_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_3383bb_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_fbc856_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:6px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:6px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:6px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:6px}.ui-widget-overlay{background:#eee url(images/ui-bg_flat_0_eeeeee_40x100.png) 50% 50% repeat-x;opacity:.8;filter:Alpha(Opacity=80)}.ui-widget-shadow{margin:-4px 0 0 -4px;padding:4px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.6;filter:Alpha(Opacity=60);border-radius:0} \ No newline at end of file diff --git a/install1/install/images/76.gif b/install1/install/images/76.gif deleted file mode 100755 index 5a7d542e0..000000000 Binary files a/install1/install/images/76.gif and /dev/null differ diff --git a/install1/install/images/ajax-loader.gif b/install1/install/images/ajax-loader.gif deleted file mode 100755 index 0dae02306..000000000 Binary files a/install1/install/images/ajax-loader.gif and /dev/null differ diff --git a/install1/install/images/cross.png b/install1/install/images/cross.png deleted file mode 100755 index 1514d51a3..000000000 Binary files a/install1/install/images/cross.png and /dev/null differ diff --git a/install1/install/images/error.png b/install1/install/images/error.png deleted file mode 100755 index 628cf2dae..000000000 Binary files a/install1/install/images/error.png and /dev/null differ diff --git a/install1/install/images/exclamation-red.png b/install1/install/images/exclamation-red.png deleted file mode 100755 index 517725822..000000000 Binary files a/install1/install/images/exclamation-red.png and /dev/null differ diff --git a/install1/install/images/information-white.png b/install1/install/images/information-white.png deleted file mode 100755 index bd4f552a8..000000000 Binary files a/install1/install/images/information-white.png and /dev/null differ diff --git a/install1/install/images/minus-circle.png b/install1/install/images/minus-circle.png deleted file mode 100755 index 0cd0ca2ba..000000000 Binary files a/install1/install/images/minus-circle.png and /dev/null differ diff --git a/install1/install/images/tick-circle.png b/install1/install/images/tick-circle.png deleted file mode 100755 index 210b1a6c3..000000000 Binary files a/install1/install/images/tick-circle.png and /dev/null differ diff --git a/install1/install/images/tick.png b/install1/install/images/tick.png deleted file mode 100755 index 2414885b8..000000000 Binary files a/install1/install/images/tick.png and /dev/null differ diff --git a/install1/js/aes.min.js b/install1/js/aes.min.js deleted file mode 100755 index 672cb4744..000000000 --- a/install1/js/aes.min.js +++ /dev/null @@ -1,457 +0,0 @@ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES implementation in JavaScript (c) Chris Veness 2005-2010 */ -/* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -var Aes = {}; // Aes namespace - -/** - * AES Cipher function: encrypt 'input' state with Rijndael algorithm - * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage - * - * @param {Number[]} input 16-byte (128-bit) input state array - * @param {Number[][]} w Key schedule as 2D byte-array (Nr+1 x Nb bytes) - * @returns {Number[]} Encrypted output state array - */ -Aes.cipher = function(input, w) { // main Cipher function [§5.1] - var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - var Nr = w.length/Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys - - var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] - for (var i=0; i<4*Nb; i++) state[i%4][Math.floor(i/4)] = input[i]; - - state = Aes.addRoundKey(state, w, 0, Nb); - - for (var round=1; round<Nr; round++) { - state = Aes.subBytes(state, Nb); - state = Aes.shiftRows(state, Nb); - state = Aes.mixColumns(state, Nb); - state = Aes.addRoundKey(state, w, round, Nb); - } - - state = Aes.subBytes(state, Nb); - state = Aes.shiftRows(state, Nb); - state = Aes.addRoundKey(state, w, Nr, Nb); - - var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] - for (var i=0; i<4*Nb; i++) output[i] = state[i%4][Math.floor(i/4)]; - return output; -} - -/** - * Perform Key Expansion to generate a Key Schedule - * - * @param {Number[]} key Key as 16/24/32-byte array - * @returns {Number[][]} Expanded key schedule as 2D byte-array (Nr+1 x Nb bytes) - */ -Aes.keyExpansion = function(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2] - var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - var Nk = key.length/4 // key length (in words): 4/6/8 for 128/192/256-bit keys - var Nr = Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys - - var w = new Array(Nb*(Nr+1)); - var temp = new Array(4); - - for (var i=0; i<Nk; i++) { - var r = [key[4*i], key[4*i+1], key[4*i+2], key[4*i+3]]; - w[i] = r; - } - - for (var i=Nk; i<(Nb*(Nr+1)); i++) { - w[i] = new Array(4); - for (var t=0; t<4; t++) temp[t] = w[i-1][t]; - if (i % Nk == 0) { - temp = Aes.subWord(Aes.rotWord(temp)); - for (var t=0; t<4; t++) temp[t] ^= Aes.rCon[i/Nk][t]; - } else if (Nk > 6 && i%Nk == 4) { - temp = Aes.subWord(temp); - } - for (var t=0; t<4; t++) w[i][t] = w[i-Nk][t] ^ temp[t]; - } - - return w; -} - -/* - * ---- remaining routines are private, not called externally ---- - */ - -Aes.subBytes = function(s, Nb) { // apply SBox to state S [§5.1.1] - for (var r=0; r<4; r++) { - for (var c=0; c<Nb; c++) s[r][c] = Aes.sBox[s[r][c]]; - } - return s; -} - -Aes.shiftRows = function(s, Nb) { // shift row r of state S left by r bytes [§5.1.2] - var t = new Array(4); - for (var r=1; r<4; r++) { - for (var c=0; c<4; c++) t[c] = s[r][(c+r)%Nb]; // shift into temp copy - for (var c=0; c<4; c++) s[r][c] = t[c]; // and copy back - } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): - return s; // see asmaes.sourceforge.net/rijndael/rijndaelImplementation.pdf -} - -Aes.mixColumns = function(s, Nb) { // combine bytes of each col of state S [§5.1.3] - for (var c=0; c<4; c++) { - var a = new Array(4); // 'a' is a copy of the current column from 's' - var b = new Array(4); // 'b' is a•{02} in GF(2^8) - for (var i=0; i<4; i++) { - a[i] = s[i][c]; - b[i] = s[i][c]&0x80 ? s[i][c]<<1 ^ 0x011b : s[i][c]<<1; - - } - // a[n] ^ b[n] is a•{03} in GF(2^8) - s[0][c] = b[0] ^ a[1] ^ b[1] ^ a[2] ^ a[3]; // 2*a0 + 3*a1 + a2 + a3 - s[1][c] = a[0] ^ b[1] ^ a[2] ^ b[2] ^ a[3]; // a0 * 2*a1 + 3*a2 + a3 - s[2][c] = a[0] ^ a[1] ^ b[2] ^ a[3] ^ b[3]; // a0 + a1 + 2*a2 + 3*a3 - s[3][c] = a[0] ^ b[0] ^ a[1] ^ a[2] ^ b[3]; // 3*a0 + a1 + a2 + 2*a3 - } - return s; -} - -Aes.addRoundKey = function(state, w, rnd, Nb) { // xor Round Key into state S [§5.1.4] - for (var r=0; r<4; r++) { - for (var c=0; c<Nb; c++) state[r][c] ^= w[rnd*4+c][r]; - } - return state; -} - -Aes.subWord = function(w) { // apply SBox to 4-byte word w - for (var i=0; i<4; i++) w[i] = Aes.sBox[w[i]]; - return w; -} - -Aes.rotWord = function(w) { // rotate 4-byte word w left by one byte - var tmp = w[0]; - for (var i=0; i<3; i++) w[i] = w[i+1]; - w[3] = tmp; - return w; -} - -// sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [§5.1.1] -Aes.sBox = [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, - 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, - 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, - 0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75, - 0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84, - 0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf, - 0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8, - 0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2, - 0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73, - 0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb, - 0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79, - 0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08, - 0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a, - 0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e, - 0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf, - 0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16]; - -// rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] -Aes.rCon = [ [0x00, 0x00, 0x00, 0x00], - [0x01, 0x00, 0x00, 0x00], - [0x02, 0x00, 0x00, 0x00], - [0x04, 0x00, 0x00, 0x00], - [0x08, 0x00, 0x00, 0x00], - [0x10, 0x00, 0x00, 0x00], - [0x20, 0x00, 0x00, 0x00], - [0x40, 0x00, 0x00, 0x00], - [0x80, 0x00, 0x00, 0x00], - [0x1b, 0x00, 0x00, 0x00], - [0x36, 0x00, 0x00, 0x00] ]; - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES Counter-mode implementation in JavaScript (c) Chris Veness 2005-2009 */ -/* - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -Aes.Ctr = {}; // Aes.Ctr namespace: a subclass or extension of Aes - -/** - * Encrypt a text using AES encryption in Counter mode of operation - * - * Unicode multi-byte character safe - * - * @param {String} plaintext Source text to be encrypted - * @param {String} password The password to use to generate a key - * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) - * @returns {string} Encrypted text - */ -Aes.Ctr.encrypt = function(plaintext, password, nBits) { - var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys - plaintext = Utf8.encode(plaintext); - password = Utf8.encode(password); - //var t = new Date(); // timer - - // use AES itself to encrypt password to get cipher key (using plain password as source for key - // expansion) - gives us well encrypted key - var nBytes = nBits/8; // no bytes in key - var pwBytes = new Array(nBytes); - for (var i=0; i<nBytes; i++) { - pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); - } - var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); // gives us 16-byte key - key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long - - // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in 1st 8 bytes, - // block counter in 2nd 8 bytes - var counterBlock = new Array(blockSize); - var nonce = (new Date()).getTime(); // timestamp: milliseconds since 1-Jan-1970 - var nonceSec = Math.floor(nonce/1000); - var nonceMs = nonce%1000; - // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes - for (var i=0; i<4; i++) counterBlock[i] = (nonceSec >>> i*8) & 0xff; - for (var i=0; i<4; i++) counterBlock[i+4] = nonceMs & 0xff; - // and convert it to a string to go on the front of the ciphertext - var ctrTxt = ''; - for (var i=0; i<8; i++) ctrTxt += String.fromCharCode(counterBlock[i]); - - // generate key schedule - an expansion of the key into distinct Key Rounds for each round - var keySchedule = Aes.keyExpansion(key); - - var blockCount = Math.ceil(plaintext.length/blockSize); - var ciphertxt = new Array(blockCount); // ciphertext as array of strings - - for (var b=0; b<blockCount; b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) - for (var c=0; c<4; c++) counterBlock[15-c] = (b >>> c*8) & 0xff; - for (var c=0; c<4; c++) counterBlock[15-c-4] = (b/0x100000000 >>> c*8) - - var cipherCntr = Aes.cipher(counterBlock, keySchedule); // -- encrypt counter block -- - - // block size is reduced on final block - var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1; - var cipherChar = new Array(blockLength); - - for (var i=0; i<blockLength; i++) { // -- xor plaintext with ciphered counter char-by-char -- - cipherChar[i] = cipherCntr[i] ^ plaintext.charCodeAt(b*blockSize+i); - cipherChar[i] = String.fromCharCode(cipherChar[i]); - } - ciphertxt[b] = cipherChar.join(''); - } - - // Array.join is more efficient than repeated string concatenation in IE - var ciphertext = ctrTxt + ciphertxt.join(''); - ciphertext = Base64.encode(ciphertext); // encode in base64 - - //alert((new Date()) - t); - return ciphertext; -} - -/** - * Decrypt a text encrypted by AES in counter mode of operation - * - * @param {String} ciphertext Source text to be encrypted - * @param {String} password The password to use to generate a key - * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) - * @returns {String} Decrypted text - */ -Aes.Ctr.decrypt = function(ciphertext, password, nBits) { - var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys - ciphertext = Base64.decode(ciphertext); - password = Utf8.encode(password); - //var t = new Date(); // timer - - // use AES to encrypt password (mirroring encrypt routine) - var nBytes = nBits/8; // no bytes in key - var pwBytes = new Array(nBytes); - for (var i=0; i<nBytes; i++) { - pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); - } - var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); - key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long - - // recover nonce from 1st 8 bytes of ciphertext - var counterBlock = new Array(8); - ctrTxt = ciphertext.slice(0, 8); - for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i); - - // generate key schedule - var keySchedule = Aes.keyExpansion(key); - - // separate ciphertext into blocks (skipping past initial 8 bytes) - var nBlocks = Math.ceil((ciphertext.length-8) / blockSize); - var ct = new Array(nBlocks); - for (var b=0; b<nBlocks; b++) ct[b] = ciphertext.slice(8+b*blockSize, 8+b*blockSize+blockSize); - ciphertext = ct; // ciphertext is now array of block-length strings - - // plaintext will get generated block-by-block into array of block-length strings - var plaintxt = new Array(ciphertext.length); - - for (var b=0; b<nBlocks; b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - for (var c=0; c<4; c++) counterBlock[15-c] = ((b) >>> c*8) & 0xff; - for (var c=0; c<4; c++) counterBlock[15-c-4] = (((b+1)/0x100000000-1) >>> c*8) & 0xff; - - var cipherCntr = Aes.cipher(counterBlock, keySchedule); // encrypt counter block - - var plaintxtByte = new Array(ciphertext[b].length); - for (var i=0; i<ciphertext[b].length; i++) { - // -- xor plaintxt with ciphered counter byte-by-byte -- - plaintxtByte[i] = cipherCntr[i] ^ ciphertext[b].charCodeAt(i); - plaintxtByte[i] = String.fromCharCode(plaintxtByte[i]); - } - plaintxt[b] = plaintxtByte.join(''); - } - - // join array of blocks into single plaintext string - var plaintext = plaintxt.join(''); - plaintext = Utf8.decode(plaintext); // decode from UTF8 back to Unicode multi-byte chars - - //alert((new Date()) - t); - return plaintext; -} - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* Base64 class: Base 64 encoding / decoding (c) Chris Veness 2002-2010 */ -/* note: depends on Utf8 class */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -var Base64 = {}; // Base64 namespace - -Base64.code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - -/** - * Encode string into Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] - * (instance method extending String object). As per RFC 4648, no newlines are added. - * - * @param {String} str The string to be encoded as base-64 - * @param {Boolean} [utf8encode=false] Flag to indicate whether str is Unicode string to be encoded - * to UTF8 before conversion to base64; otherwise string is assumed to be 8-bit characters - * @returns {String} Base64-encoded string - */ -Base64.encode = function(str, utf8encode) { // http://tools.ietf.org/html/rfc4648 - utf8encode = (typeof utf8encode == 'undefined') ? false : utf8encode; - var o1, o2, o3, bits, h1, h2, h3, h4, e=[], pad = '', c, plain, coded; - var b64 = Base64.code; - - plain = utf8encode ? str.encodeUTF8() : str; - - c = plain.length % 3; // pad string to length of multiple of 3 - if (c > 0) { while (c++ < 3) { pad += '='; plain += '\0'; } } - // note: doing padding here saves us doing special-case packing for trailing 1 or 2 chars - - for (c=0; c<plain.length; c+=3) { // pack three octets into four hexets - o1 = plain.charCodeAt(c); - o2 = plain.charCodeAt(c+1); - o3 = plain.charCodeAt(c+2); - - bits = o1<<16 | o2<<8 | o3; - - h1 = bits>>18 & 0x3f; - h2 = bits>>12 & 0x3f; - h3 = bits>>6 & 0x3f; - h4 = bits & 0x3f; - - // use hextets to index into code string - e[c/3] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); - } - coded = e.join(''); // join() is far faster than repeated string concatenation in IE - - // replace 'A's from padded nulls with '='s - coded = coded.slice(0, coded.length-pad.length) + pad; - - return coded; -} - -/** - * Decode string from Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] - * (instance method extending String object). As per RFC 4648, newlines are not catered for. - * - * @param {String} str The string to be decoded from base-64 - * @param {Boolean} [utf8decode=false] Flag to indicate whether str is Unicode string to be decoded - * from UTF8 after conversion from base64 - * @returns {String} decoded string - */ -Base64.decode = function(str, utf8decode) { - utf8decode = (typeof utf8decode == 'undefined') ? false : utf8decode; - var o1, o2, o3, h1, h2, h3, h4, bits, d=[], plain, coded; - var b64 = Base64.code; - - coded = utf8decode ? str.decodeUTF8() : str; - - - for (var c=0; c<coded.length; c+=4) { // unpack four hexets into three octets - h1 = b64.indexOf(coded.charAt(c)); - h2 = b64.indexOf(coded.charAt(c+1)); - h3 = b64.indexOf(coded.charAt(c+2)); - h4 = b64.indexOf(coded.charAt(c+3)); - - bits = h1<<18 | h2<<12 | h3<<6 | h4; - - o1 = bits>>>16 & 0xff; - o2 = bits>>>8 & 0xff; - o3 = bits & 0xff; - - d[c/4] = String.fromCharCode(o1, o2, o3); - // check for padding - if (h4 == 0x40) d[c/4] = String.fromCharCode(o1, o2); - if (h3 == 0x40) d[c/4] = String.fromCharCode(o1); - } - plain = d.join(''); // join() is far faster than repeated string concatenation in IE - - return utf8decode ? plain.decodeUTF8() : plain; -} - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* Utf8 class: encode / decode between multi-byte Unicode characters and UTF-8 multiple */ -/* single-byte character encoding (c) Chris Veness 2002-2010 */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -var Utf8 = {}; // Utf8 namespace - -/** - * Encode multi-byte Unicode string into utf-8 multiple single-byte characters - * (BMP / basic multilingual plane only) - * - * Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars - * - * @param {String} strUni Unicode string to be encoded as UTF-8 - * @returns {String} encoded string - */ -Utf8.encode = function(strUni) { - // use regular expressions & String.replace callback function for better efficiency - // than procedural approaches - var strUtf = strUni.replace( - /[\u0080-\u07ff]/g, // U+0080 - U+07FF => 2 bytes 110yyyyy, 10zzzzzz - function(c) { - var cc = c.charCodeAt(0); - return String.fromCharCode(0xc0 | cc>>6, 0x80 | cc&0x3f); } - ); - strUtf = strUtf.replace( - /[\u0800-\uffff]/g, // U+0800 - U+FFFF => 3 bytes 1110xxxx, 10yyyyyy, 10zzzzzz - function(c) { - var cc = c.charCodeAt(0); - return String.fromCharCode(0xe0 | cc>>12, 0x80 | cc>>6&0x3F, 0x80 | cc&0x3f); } - ); - return strUtf; -} - -/** - * Decode utf-8 encoded string back into multi-byte Unicode characters - * - * @param {String} strUtf UTF-8 string to be decoded back to Unicode - * @returns {String} decoded string - */ -Utf8.decode = function(strUtf) { - // note: decode 3-byte chars first as decoded 2-byte strings could appear to be 3-byte char! - var strUni = strUtf.replace( - /[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, // 3-byte chars - function(c) { // (note parentheses for precence) - var cc = ((c.charCodeAt(0)&0x0f)<<12) | ((c.charCodeAt(1)&0x3f)<<6) | ( c.charCodeAt(2)&0x3f); - return String.fromCharCode(cc); } - ); - strUni = strUni.replace( - /[\u00c0-\u00df][\u0080-\u00bf]/g, // 2-byte chars - function(c) { // (note parentheses for precence) - var cc = (c.charCodeAt(0)&0x1f)<<6 | c.charCodeAt(1)&0x3f; - return String.fromCharCode(cc); } - ); - return strUni; -} diff --git a/install1/js/crypt/aes.class.php b/install1/js/crypt/aes.class.php deleted file mode 100755 index 4d0b9001b..000000000 --- a/install1/js/crypt/aes.class.php +++ /dev/null @@ -1,207 +0,0 @@ -<?php -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES implementation in PHP (c) Chris Veness 2005-2010. Right of free use is granted for all */ -/* commercial or non-commercial use under CC-BY licence. No warranty of any form is offered. */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -class Aes -{ - /** - * AES Cipher function: encrypt 'input' with Rijndael algorithm - * - * @param input message as byte-array (16 bytes) - * @param w key schedule as 2D byte-array (Nr+1 x Nb bytes) - - * generated from the cipher key by keyExpansion() - * @return ciphertext as byte-array (16 bytes) - */ - public static function cipher($input, $w) { // main cipher function [é5.1] - $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - $Nr = count($w) / $Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys - - $state = array(); // initialise 4xNb byte-array 'state' with input [é3.4] - for ($i = 0; $i < 4 * $Nb; $i++) { - $state[$i % 4][floor($i / 4)] = $input[$i]; - } - - $state = self::addRoundKey($state, $w, 0, $Nb); - - for ($round = 1; $round < $Nr; $round++) { // apply Nr rounds - $state = self::subBytes($state, $Nb); - $state = self::shiftRows($state, $Nb); - $state = self::mixColumns($state); - $state = self::addRoundKey($state, $w, $round, $Nb); - } - - $state = self::subBytes($state, $Nb); - $state = self::shiftRows($state, $Nb); - $state = self::addRoundKey($state, $w, $Nr, $Nb); - - $output = array(4 * $Nb); // convert state to 1-d array before returning [é3.4] - for ($i = 0; $i < 4 * $Nb; $i++) { - $output[$i] = $state[$i % 4][floor($i / 4)]; - } - - return $output; - } - - /** - * @param integer $rnd - * @param integer $Nb - */ - private static function addRoundKey($state, $w, $rnd, $Nb) { // xor Round Key into state S [é5.1.4] - for ($r = 0; $r < 4; $r++) { - for ($c = 0; $c < $Nb; $c++) { - $state[$r][$c] ^= $w[$rnd * 4 + $c][$r]; - } - } - - return $state; - } - - /** - * @param integer $Nb - */ - private static function subBytes($s, $Nb) { // apply SBox to state S [é5.1.1] - for ($r = 0; $r < 4; $r++) { - for ($c = 0; $c < $Nb; $c++) { - $s[$r][$c] = self::$sBox[$s[$r][$c]]; - } - } - - return $s; - } - - /** - * @param integer $Nb - */ - private static function shiftRows($s, $Nb) { // shift row r of state S left by r bytes [é5.1.2] - $t = array(4); - for ($r = 1; $r < 4; $r++) { - for ($c = 0; $c < 4; $c++) { - $t[$c] = $s[$r][($c + $r) % $Nb]; - } - // shift into temp copy - for ($c = 0; $c < 4; $c++) { - $s[$r][$c] = $t[$c]; - } - // and copy back - } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): - return $s; // see fp.gladman.plus.com/cryptography_technology/rijndael/aes.spec.311.pdf - } - - /** - * @param integer $Nb - */ - private static function mixColumns($s) { // combine bytes of each col of state S [é5.1.3] - for ($c = 0; $c < 4; $c++) { - $a = array(4); // 'a' is a copy of the current column from 's' - $b = array(4); // 'b' is aé{02} in GF(2^8) - for ($i = 0; $i < 4; $i++) { - $a[$i] = $s[$i][$c]; - $b[$i] = $s[$i][$c] & 0x80 ? $s[$i][$c] << 1 ^ 0x011b : $s[$i][$c] << 1; - } - // a[n] ^ b[n] is aé{03} in GF(2^8) - $s[0][$c] = $b[0] ^ $a[1] ^ $b[1] ^ $a[2] ^ $a[3]; // 2*a0 + 3*a1 + a2 + a3 - $s[1][$c] = $a[0] ^ $b[1] ^ $a[2] ^ $b[2] ^ $a[3]; // a0 * 2*a1 + 3*a2 + a3 - $s[2][$c] = $a[0] ^ $a[1] ^ $b[2] ^ $a[3] ^ $b[3]; // a0 + a1 + 2*a2 + 3*a3 - $s[3][$c] = $a[0] ^ $b[0] ^ $a[1] ^ $a[2] ^ $b[3]; // 3*a0 + a1 + a2 + 2*a3 - } - - return $s; - } - - /** - * Key expansion for Rijndael cipher(): performs key expansion on cipher key - * to generate a key schedule - * - * @param key cipher key byte-array (16 bytes) - * @return key schedule as 2D byte-array (Nr+1 x Nb bytes) - */ - public static function keyExpansion($key) { // generate Key Schedule from Cipher Key [é5.2] - $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - $Nk = count($key) / 4; // key length (in words): 4/6/8 for 128/192/256-bit keys - $Nr = $Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys - - $w = array(); - $temp = array(); - - for ($i = 0; $i < $Nk; $i++) { - $r = array($key[4 * $i], $key[4 * $i + 1], $key[4 * $i + 2], $key[4 * $i + 3]); - $w[$i] = $r; - } - - for ($i = $Nk; $i < ($Nb * ($Nr + 1)); $i++) { - $w[$i] = array(); - for ($t = 0; $t < 4; $t++) { - $temp[$t] = $w[$i - 1][$t]; - } - if ($i % $Nk == 0) { - $temp = self::subWord(self::rotWord($temp)); - for ($t = 0; $t < 4; $t++) { - $temp[$t] ^= self::$rCon[$i / $Nk][$t]; - } - } elseif ($Nk > 6 && $i % $Nk == 4) { - $temp = self::subWord($temp); - } - for ($t = 0; $t < 4; $t++) { - $w[$i][$t] = $w[$i - $Nk][$t] ^ $temp[$t]; - } - } - - return $w; - } - - private static function subWord($w) { // apply SBox to 4-byte word w - for ($i = 0; $i < 4; $i++) { - $w[$i] = self::$sBox[$w[$i]]; - } - - return $w; - } - - private static function rotWord($w) { // rotate 4-byte word w left by one byte - $tmp = $w[0]; - for ($i = 0; $i < 3; $i++) { - $w[$i] = $w[$i + 1]; - } - $w[3] = $tmp; - - return $w; - } - - // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [é5.1.1] - private static $sBox = array( - 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, - 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, - 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, - 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, - 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, - 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, - 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, - 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, - 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, - 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, - 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, - 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, - 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, - 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, - 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, - 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16); - - // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [é5.2] - private static $rCon = array( - array(0x00, 0x00, 0x00, 0x00), - array(0x01, 0x00, 0x00, 0x00), - array(0x02, 0x00, 0x00, 0x00), - array(0x04, 0x00, 0x00, 0x00), - array(0x08, 0x00, 0x00, 0x00), - array(0x10, 0x00, 0x00, 0x00), - array(0x20, 0x00, 0x00, 0x00), - array(0x40, 0x00, 0x00, 0x00), - array(0x80, 0x00, 0x00, 0x00), - array(0x1b, 0x00, 0x00, 0x00), - array(0x36, 0x00, 0x00, 0x00)); - -} - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ diff --git a/install1/js/crypt/aes.min.js b/install1/js/crypt/aes.min.js deleted file mode 100755 index 5ebd7ebb3..000000000 --- a/install1/js/crypt/aes.min.js +++ /dev/null @@ -1,457 +0,0 @@ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES implementation in JavaScript (c) Chris Veness 2005-2010 */ -/* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -var Aes = {}; // Aes namespace - -/** - * AES Cipher function: encrypt 'input' state with Rijndael algorithm - * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage - * - * @param {Number[]} input 16-byte (128-bit) input state array - * @param {Number[][]} w Key schedule as 2D byte-array (Nr+1 x Nb bytes) - * @returns {Number[]} Encrypted output state array - */ -Aes.cipher = function(input, w) { // main Cipher function [§5.1] - var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - var Nr = w.length/Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys - - var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] - for (var i=0; i<4*Nb; i++) state[i%4][Math.floor(i/4)] = input[i]; - - state = Aes.addRoundKey(state, w, 0, Nb); - - for (var round=1; round<Nr; round++) { - state = Aes.subBytes(state, Nb); - state = Aes.shiftRows(state, Nb); - state = Aes.mixColumns(state, Nb); - state = Aes.addRoundKey(state, w, round, Nb); - } - - state = Aes.subBytes(state, Nb); - state = Aes.shiftRows(state, Nb); - state = Aes.addRoundKey(state, w, Nr, Nb); - - var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] - for (var i=0; i<4*Nb; i++) output[i] = state[i%4][Math.floor(i/4)]; - return output; -} - -/** - * Perform Key Expansion to generate a Key Schedule - * - * @param {Number[]} key Key as 16/24/32-byte array - * @returns {Number[][]} Expanded key schedule as 2D byte-array (Nr+1 x Nb bytes) - */ -Aes.keyExpansion = function(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2] - var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - var Nk = key.length/4 // key length (in words): 4/6/8 for 128/192/256-bit keys - var Nr = Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys - - var w = new Array(Nb*(Nr+1)); - var temp = new Array(4); - - for (var i=0; i<Nk; i++) { - var r = [key[4*i], key[4*i+1], key[4*i+2], key[4*i+3]]; - w[i] = r; - } - - for (var i=Nk; i<(Nb*(Nr+1)); i++) { - w[i] = new Array(4); - for (var t=0; t<4; t++) temp[t] = w[i-1][t]; - if (i % Nk == 0) { - temp = Aes.subWord(Aes.rotWord(temp)); - for (var t=0; t<4; t++) temp[t] ^= Aes.rCon[i/Nk][t]; - } else if (Nk > 6 && i%Nk == 4) { - temp = Aes.subWord(temp); - } - for (var t=0; t<4; t++) w[i][t] = w[i-Nk][t] ^ temp[t]; - } - - return w; -} - -/* - * ---- remaining routines are private, not called externally ---- - */ - -Aes.subBytes = function(s, Nb) { // apply SBox to state S [§5.1.1] - for (var r=0; r<4; r++) { - for (var c=0; c<Nb; c++) s[r][c] = Aes.sBox[s[r][c]]; - } - return s; -} - -Aes.shiftRows = function(s, Nb) { // shift row r of state S left by r bytes [§5.1.2] - var t = new Array(4); - for (var r=1; r<4; r++) { - for (var c=0; c<4; c++) t[c] = s[r][(c+r)%Nb]; // shift into temp copy - for (var c=0; c<4; c++) s[r][c] = t[c]; // and copy back - } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): - return s; // see asmaes.sourceforge.net/rijndael/rijndaelImplementation.pdf -} - -Aes.mixColumns = function(s, Nb) { // combine bytes of each col of state S [§5.1.3] - for (var c=0; c<4; c++) { - var a = new Array(4); // 'a' is a copy of the current column from 's' - var b = new Array(4); // 'b' is a•{02} in GF(2^8) - for (var i=0; i<4; i++) { - a[i] = s[i][c]; - b[i] = s[i][c]&0x80 ? s[i][c]<<1 ^ 0x011b : s[i][c]<<1; - - } - // a[n] ^ b[n] is a•{03} in GF(2^8) - s[0][c] = b[0] ^ a[1] ^ b[1] ^ a[2] ^ a[3]; // 2*a0 + 3*a1 + a2 + a3 - s[1][c] = a[0] ^ b[1] ^ a[2] ^ b[2] ^ a[3]; // a0 * 2*a1 + 3*a2 + a3 - s[2][c] = a[0] ^ a[1] ^ b[2] ^ a[3] ^ b[3]; // a0 + a1 + 2*a2 + 3*a3 - s[3][c] = a[0] ^ b[0] ^ a[1] ^ a[2] ^ b[3]; // 3*a0 + a1 + a2 + 2*a3 - } - return s; -} - -Aes.addRoundKey = function(state, w, rnd, Nb) { // xor Round Key into state S [§5.1.4] - for (var r=0; r<4; r++) { - for (var c=0; c<Nb; c++) state[r][c] ^= w[rnd*4+c][r]; - } - return state; -} - -Aes.subWord = function(w) { // apply SBox to 4-byte word w - for (var i=0; i<4; i++) w[i] = Aes.sBox[w[i]]; - return w; -} - -Aes.rotWord = function(w) { // rotate 4-byte word w left by one byte - var tmp = w[0]; - for (var i=0; i<3; i++) w[i] = w[i+1]; - w[3] = tmp; - return w; -} - -// sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [§5.1.1] -Aes.sBox = [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, - 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, - 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, - 0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75, - 0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84, - 0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf, - 0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8, - 0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2, - 0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73, - 0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb, - 0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79, - 0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08, - 0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a, - 0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e, - 0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf, - 0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16]; - -// rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] -Aes.rCon = [ [0x00, 0x00, 0x00, 0x00], - [0x01, 0x00, 0x00, 0x00], - [0x02, 0x00, 0x00, 0x00], - [0x04, 0x00, 0x00, 0x00], - [0x08, 0x00, 0x00, 0x00], - [0x10, 0x00, 0x00, 0x00], - [0x20, 0x00, 0x00, 0x00], - [0x40, 0x00, 0x00, 0x00], - [0x80, 0x00, 0x00, 0x00], - [0x1b, 0x00, 0x00, 0x00], - [0x36, 0x00, 0x00, 0x00] ]; - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES Counter-mode implementation in JavaScript (c) Chris Veness 2005-2009 */ -/* - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -Aes.Ctr = {}; // Aes.Ctr namespace: a subclass or extension of Aes - -/** - * Encrypt a text using AES encryption in Counter mode of operation - * - * Unicode multi-byte character safe - * - * @param {String} plaintext Source text to be encrypted - * @param {String} password The password to use to generate a key - * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) - * @returns {string} Encrypted text - */ -Aes.Ctr.encrypt = function(plaintext, password, nBits) { - var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys - plaintext = Utf8.encode(plaintext); - password = Utf8.encode(password); - //var t = new Date(); // timer - - // use AES itself to encrypt password to get cipher key (using plain password as source for key - // expansion) - gives us well encrypted key - var nBytes = nBits/8; // no bytes in key - var pwBytes = new Array(nBytes); - for (var i=0; i<nBytes; i++) { - pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); - } - var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); // gives us 16-byte key - key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long - - // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in 1st 8 bytes, - // block counter in 2nd 8 bytes - var counterBlock = new Array(blockSize); - var nonce = (new Date()).getTime(); // timestamp: milliseconds since 1-Jan-1970 - var nonceSec = Math.floor(nonce/1000); - var nonceMs = nonce%1000; - // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes - for (var i=0; i<4; i++) counterBlock[i] = (nonceSec >>> i*8) & 0xff; - for (var i=0; i<4; i++) counterBlock[i+4] = nonceMs & 0xff; - // and convert it to a string to go on the front of the ciphertext - var ctrTxt = ''; - for (var i=0; i<8; i++) ctrTxt += String.fromCharCode(counterBlock[i]); - - // generate key schedule - an expansion of the key into distinct Key Rounds for each round - var keySchedule = Aes.keyExpansion(key); - - var blockCount = Math.ceil(plaintext.length/blockSize); - var ciphertxt = new Array(blockCount); // ciphertext as array of strings - - for (var b=0; b<blockCount; b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) - for (var c=0; c<4; c++) counterBlock[15-c] = (b >>> c*8) & 0xff; - for (var c=0; c<4; c++) counterBlock[15-c-4] = (b/0x100000000 >>> c*8) - - var cipherCntr = Aes.cipher(counterBlock, keySchedule); // -- encrypt counter block -- - - // block size is reduced on final block - var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1; - var cipherChar = new Array(blockLength); - - for (var i=0; i<blockLength; i++) { // -- xor plaintext with ciphered counter char-by-char -- - cipherChar[i] = cipherCntr[i] ^ plaintext.charCodeAt(b*blockSize+i); - cipherChar[i] = String.fromCharCode(cipherChar[i]); - } - ciphertxt[b] = cipherChar.join(''); - } - - // Array.join is more efficient than repeated string concatenation in IE - var ciphertext = ctrTxt + ciphertxt.join(''); - ciphertext = Base64.encode(ciphertext); // encode in base64 - - //alert((new Date()) - t); - return ciphertext; -} - -/** - * Decrypt a text encrypted by AES in counter mode of operation - * - * @param {String} ciphertext Source text to be encrypted - * @param {String} password The password to use to generate a key - * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) - * @returns {String} Decrypted text - */ -Aes.Ctr.decrypt = function(ciphertext, password, nBits) { - var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys - ciphertext = Base64.decode(ciphertext); - password = Utf8.encode(password); - //var t = new Date(); // timer - - // use AES to encrypt password (mirroring encrypt routine) - var nBytes = nBits/8; // no bytes in key - var pwBytes = new Array(nBytes); - for (var i=0; i<nBytes; i++) { - pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); - } - var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); - key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long - - // recover nonce from 1st 8 bytes of ciphertext - var counterBlock = new Array(8); - ctrTxt = ciphertext.slice(0, 8); - for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i); - - // generate key schedule - var keySchedule = Aes.keyExpansion(key); - - // separate ciphertext into blocks (skipping past initial 8 bytes) - var nBlocks = Math.ceil((ciphertext.length-8) / blockSize); - var ct = new Array(nBlocks); - for (var b=0; b<nBlocks; b++) ct[b] = ciphertext.slice(8+b*blockSize, 8+b*blockSize+blockSize); - ciphertext = ct; // ciphertext is now array of block-length strings - - // plaintext will get generated block-by-block into array of block-length strings - var plaintxt = new Array(ciphertext.length); - - for (var b=0; b<nBlocks; b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - for (var c=0; c<4; c++) counterBlock[15-c] = ((b) >>> c*8) & 0xff; - for (var c=0; c<4; c++) counterBlock[15-c-4] = (((b+1)/0x100000000-1) >>> c*8) & 0xff; - - var cipherCntr = Aes.cipher(counterBlock, keySchedule); // encrypt counter block - - var plaintxtByte = new Array(ciphertext[b].length); - for (var i=0; i<ciphertext[b].length; i++) { - // -- xor plaintxt with ciphered counter byte-by-byte -- - plaintxtByte[i] = cipherCntr[i] ^ ciphertext[b].charCodeAt(i); - plaintxtByte[i] = String.fromCharCode(plaintxtByte[i]); - } - plaintxt[b] = plaintxtByte.join(''); - } - - // join array of blocks into single plaintext string - var plaintext = plaintxt.join(''); - plaintext = Utf8.decode(plaintext); // decode from UTF8 back to Unicode multi-byte chars - - //alert((new Date()) - t); - return plaintext; -} - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* Base64 class: Base 64 encoding / decoding (c) Chris Veness 2002-2010 */ -/* note: depends on Utf8 class */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -var Base64 = {}; // Base64 namespace - -Base64.code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - -/** - * Encode string into Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] - * (instance method extending String object). As per RFC 4648, no newlines are added. - * - * @param {String} str The string to be encoded as base-64 - * @param {Boolean} [utf8encode=false] Flag to indicate whether str is Unicode string to be encoded - * to UTF8 before conversion to base64; otherwise string is assumed to be 8-bit characters - * @returns {String} Base64-encoded string - */ -Base64.encode = function(str, utf8encode) { // http://tools.ietf.org/html/rfc4648 - utf8encode = (typeof utf8encode == 'undefined') ? false : utf8encode; - var o1, o2, o3, bits, h1, h2, h3, h4, e=[], pad = '', c, plain, coded; - var b64 = Base64.code; - - plain = utf8encode ? str.encodeUTF8() : str; - - c = plain.length % 3; // pad string to length of multiple of 3 - if (c > 0) { while (c++ < 3) { pad += '='; plain += '\0'; } } - // note: doing padding here saves us doing special-case packing for trailing 1 or 2 chars - - for (c=0; c<plain.length; c+=3) { // pack three octets into four hexets - o1 = plain.charCodeAt(c); - o2 = plain.charCodeAt(c+1); - o3 = plain.charCodeAt(c+2); - - bits = o1<<16 | o2<<8 | o3; - - h1 = bits>>18 & 0x3f; - h2 = bits>>12 & 0x3f; - h3 = bits>>6 & 0x3f; - h4 = bits & 0x3f; - - // use hextets to index into code string - e[c/3] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); - } - coded = e.join(''); // join() is far faster than repeated string concatenation in IE - - // replace 'A's from padded nulls with '='s - coded = coded.slice(0, coded.length-pad.length) + pad; - - return coded; -} - -/** - * Decode string from Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] - * (instance method extending String object). As per RFC 4648, newlines are not catered for. - * - * @param {String} str The string to be decoded from base-64 - * @param {Boolean} [utf8decode=false] Flag to indicate whether str is Unicode string to be decoded - * from UTF8 after conversion from base64 - * @returns {String} decoded string - */ -Base64.decode = function(str, utf8decode) { - utf8decode = (typeof utf8decode == 'undefined') ? false : utf8decode; - var o1, o2, o3, h1, h2, h3, h4, bits, d=[], plain, coded; - var b64 = Base64.code; - - coded = utf8decode ? str.decodeUTF8() : str; - - - for (var c=0; c<coded.length; c+=4) { // unpack four hexets into three octets - h1 = b64.indexOf(coded.charAt(c)); - h2 = b64.indexOf(coded.charAt(c+1)); - h3 = b64.indexOf(coded.charAt(c+2)); - h4 = b64.indexOf(coded.charAt(c+3)); - - bits = h1<<18 | h2<<12 | h3<<6 | h4; - - o1 = bits>>>16 & 0xff; - o2 = bits>>>8 & 0xff; - o3 = bits & 0xff; - - d[c/4] = String.fromCharCode(o1, o2, o3); - // check for padding - if (h4 == 0x40) d[c/4] = String.fromCharCode(o1, o2); - if (h3 == 0x40) d[c/4] = String.fromCharCode(o1); - } - plain = d.join(''); // join() is far faster than repeated string concatenation in IE - - return utf8decode ? plain.decodeUTF8() : plain; -} - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* Utf8 class: encode / decode between multi-byte Unicode characters and UTF-8 multiple */ -/* single-byte character encoding (c) Chris Veness 2002-2010 */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -var Utf8 = {}; // Utf8 namespace - -/** - * Encode multi-byte Unicode string into utf-8 multiple single-byte characters - * (BMP / basic multilingual plane only) - * - * Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars - * - * @param {String} strUni Unicode string to be encoded as UTF-8 - * @returns {String} encoded string - */ -Utf8.encode = function(strUni) { - // use regular expressions & String.replace callback function for better efficiency - // than procedural approaches - var strUtf = strUni.replace( - /[\u0080-\u07ff]/g, // U+0080 - U+07FF => 2 bytes 110yyyyy, 10zzzzzz - function(c) { - var cc = c.charCodeAt(0); - return String.fromCharCode(0xc0 | cc>>6, 0x80 | cc&0x3f); } - ); - strUtf = strUtf.replace( - /[\u0800-\uffff]/g, // U+0800 - U+FFFF => 3 bytes 1110xxxx, 10yyyyyy, 10zzzzzz - function(c) { - var cc = c.charCodeAt(0); - return String.fromCharCode(0xe0 | cc>>12, 0x80 | cc>>6&0x3F, 0x80 | cc&0x3f); } - ); - return strUtf; -} - -/** - * Decode utf-8 encoded string back into multi-byte Unicode characters - * - * @param {String} strUtf UTF-8 string to be decoded back to Unicode - * @returns {String} decoded string - */ -Utf8.decode = function(strUtf) { - // note: decode 3-byte chars first as decoded 2-byte strings could appear to be 3-byte char! - var strUni = strUtf.replace( - /[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, // 3-byte chars - function(c) { // (note parentheses for precence) - var cc = ((c.charCodeAt(0)&0x0f)<<12) | ((c.charCodeAt(1)&0x3f)<<6) | ( c.charCodeAt(2)&0x3f); - return String.fromCharCode(cc); } - ); - strUni = strUni.replace( - /[\u00c0-\u00df][\u0080-\u00bf]/g, // 2-byte chars - function(c) { // (note parentheses for precence) - var cc = (c.charCodeAt(0)&0x1f)<<6 | c.charCodeAt(1)&0x3f; - return String.fromCharCode(cc); } - ); - return strUni; -} diff --git a/install1/js/crypt/aesctr.class.php b/install1/js/crypt/aesctr.class.php deleted file mode 100755 index 84b2521e8..000000000 --- a/install1/js/crypt/aesctr.class.php +++ /dev/null @@ -1,191 +0,0 @@ -<?php -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES counter (CTR) mode implementation in PHP (c) Chris Veness 2005-2010. Right of free use is */ -/* granted for all commercial or non-commercial use under CC-BY licence. No warranty of any */ -/* form is offered. */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -class AesCtr extends Aes -{ - /** - * Encrypt a text using AES encryption in Counter mode of operation - * - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf - * - * Unicode multi-byte character safe - * - * @param plaintext source text to be encrypted - * @param password the password to use to generate a key - * @param nBits number of bits to be used in the key (128, 192, or 256) - * @return string text - */ - public static function encrypt($plaintext, $password, $nBits) - { - $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { - return ''; - } - // standard allows 128/192/256 bit keys - // note PHP (5) gives us plaintext and password in UTF8 encoding! - - // use AES itself to encrypt password to get cipher key (using plain password as source for - // key expansion) - gives us well encrypted key - $nBytes = $nBits / 8; // no bytes in key - $pwBytes = array(); - for ($i = 0; $i < $nBytes; $i++) { - $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; - } - $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); - $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long - - // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in - // 1st 8 bytes, block counter in 2nd 8 bytes - $counterBlock = array(); - $nonce = floor(microtime(true) * 1000); // timestamp: milliseconds since 1-Jan-1970 - $nonceSec = floor($nonce / 1000); - $nonceMs = $nonce % 1000; - // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes - for ($i = 0; $i < 4; $i++) { - $counterBlock[$i] = self::urs($nonceSec, $i * 8) & 0xff; - } - for ($i = 0; $i < 4; $i++) { - $counterBlock[$i + 4] = $nonceMs & 0xff; - } - // and convert it to a string to go on the front of the ciphertext - $ctrTxt = ''; - for ($i = 0; $i < 8; $i++) { - $ctrTxt .= chr($counterBlock[$i]); - } - - // generate key schedule - an expansion of the key into distinct Key Rounds for each round - $keySchedule = Aes::keyExpansion($key); - //print_r($keySchedule); - - $blockCount = ceil(strlen($plaintext) / $blockSize); - $ciphertxt = array(); // ciphertext as array of strings - - for ($b = 0; $b < $blockCount; $b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; - } - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c - 4] = self::urs($b / 0x100000000, $c * 8); - } - - $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // -- encrypt counter block -- - - // block size is reduced on final block - $blockLength = $b < $blockCount - 1 ? $blockSize : (strlen($plaintext) - 1) % $blockSize + 1; - $cipherByte = array(); - - for ($i = 0; $i < $blockLength; $i++) { // -- xor plaintext with ciphered counter byte-by-byte -- - $cipherByte[$i] = $cipherCntr[$i] ^ ord(substr($plaintext, $b * $blockSize + $i, 1)); - $cipherByte[$i] = chr($cipherByte[$i]); - } - $ciphertxt[$b] = implode('', $cipherByte); // escape troublesome characters in ciphertext - } - - // implode is more efficient than repeated string concatenation - $ciphertext = $ctrTxt.implode('', $ciphertxt); - $ciphertext = base64_encode($ciphertext); - - return $ciphertext; - } - - /** - * Decrypt a text encrypted by AES in counter mode of operation - * - * @param ciphertext source text to be decrypted - * @param password the password to use to generate a key - * @param nBits number of bits to be used in the key (128, 192, or 256) - * @return string text - */ - public static function decrypt($ciphertext, $password, $nBits) - { - $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { - return ''; - } - // standard allows 128/192/256 bit keys - $ciphertext = base64_decode($ciphertext); - - // use AES to encrypt password (mirroring encrypt routine) - $nBytes = $nBits / 8; // no bytes in key - $pwBytes = array(); - for ($i = 0; $i < $nBytes; $i++) { - $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; - } - $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); - $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long - - // recover nonce from 1st element of ciphertext - $counterBlock = array(); - $ctrTxt = substr($ciphertext, 0, 8); - for ($i = 0; $i < 8; $i++) { - $counterBlock[$i] = ord(substr($ctrTxt, $i, 1)); - } - - // generate key schedule - $keySchedule = Aes::keyExpansion($key); - - // separate ciphertext into blocks (skipping past initial 8 bytes) - $nBlocks = ceil((strlen($ciphertext) - 8) / $blockSize); - $ct = array(); - for ($b = 0; $b < $nBlocks; $b++) { - $ct[$b] = substr($ciphertext, 8 + $b * $blockSize, 16); - } - $ciphertext = $ct; // ciphertext is now array of block-length strings - - // plaintext will get generated block-by-block into array of block-length strings - $plaintxt = array(); - - for ($b = 0; $b < $nBlocks; $b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; - } - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c - 4] = self::urs(($b + 1) / 0x100000000 - 1, $c * 8) & 0xff; - } - - $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // encrypt counter block - - $plaintxtByte = array(); - for ($i = 0; $i < strlen($ciphertext[$b]); $i++) { - // -- xor plaintext with ciphered counter byte-by-byte -- - $plaintxtByte[$i] = $cipherCntr[$i] ^ ord(substr($ciphertext[$b], $i, 1)); - $plaintxtByte[$i] = chr($plaintxtByte[$i]); - - } - $plaintxt[$b] = implode('', $plaintxtByte); - } - - // join array of blocks into single plaintext string - $plaintext = implode('', $plaintxt); - - return $plaintext; - } - - /* - * Unsigned right shift function, since PHP has neither >>> operator nor unsigned ints - * - * @param a number to be shifted (32-bit integer) - * @param b number of bits to shift a to the right (0..31) - * @return a right-shifted and zero-filled by b bits - */ - private static function urs($a, $b) - { - $a &= 0xffffffff; $b &= 0x1f; // (bounds check) - if ($a & 0x80000000 && $b > 0) { // if left-most bit set - $a = ($a >> 1) & 0x7fffffff; // right-shift one bit & clear left-most bit - $a = $a >> ($b - 1); // remaining right-shifts - } else { // otherwise - $a = ($a >> $b); // use normal right-shift - } - - return $a; - } - -} -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ diff --git a/install1/js/jquery-ui.min.js b/install1/js/jquery-ui.min.js deleted file mode 100755 index 6a06137c5..000000000 --- a/install1/js/jquery-ui.min.js +++ /dev/null @@ -1,638 +0,0 @@ -/*! - * jQuery UI 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI - */ -(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16", -keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d= -this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this, -"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart": -"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight, -outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a, -"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&& -a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&& -c.ui.isOverAxis(b,e,i)}})}})(jQuery); -;/*! - * jQuery UI Widget 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Widget - */ -(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]= -function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)): -d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options= -b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+ -"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled", -c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery); -;/*! - * jQuery UI Mouse 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Mouse - * - * Depends: - * jquery.ui.widget.js - */ -(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+ -this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted= -this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&& -!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted= -false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); -;/* - * jQuery UI Position 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Position - */ -(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY, -left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+= -k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-= -m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left= -d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+= -a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b), -g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery); -;/* - * jQuery UI Draggable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Draggables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper== -"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b= -this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;if(b.iframeFix)d(b.iframeFix===true?"iframe":b.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")});return true},_mouseStart:function(a){var b=this.options; -this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}); -this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return true}, -_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b= -false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration, -10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},_mouseUp:function(a){this.options.iframeFix===true&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle|| -!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&& -a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent= -this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"), -10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"), -10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[a.containment=="document"?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a.containment=="document"?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top, -(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){a=d(a.containment);var b=a[0];if(b){a.offset();var c=d(b).css("overflow")!= -"hidden";this.containment=[(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"), -10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+ -this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&& -!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(this.containment){if(this.relative_container){g=this.relative_container.offset();g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]}else g=this.containment;if(a.pageX-this.offset.click.left<g[0])e=g[0]+this.offset.click.left; -if(a.pageY-this.offset.click.top<g[1])h=g[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>g[2])e=g[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>g[3])h=g[3]+this.offset.click.top}if(b.grid){h=b.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY;h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-b.grid[1]:h+b.grid[1]:h;e=b.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/ -b.grid[0])*b.grid[0]:this.originalPageX;e=g?!(e-this.offset.click.left<g[0]||e-this.offset.click.left>g[2])?e:!(e-this.offset.click.left<g[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version< -526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b, -c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.16"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var h=d.data(this,"sortable");if(h&&!h.options.disabled){c.sortables.push({instance:h,shouldRevert:h.options.revert}); -h.refreshPositions();h._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval= -false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true); -this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top; -c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&& -this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity= -a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!= -"x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-b.overflowOffset.left< -c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()- -c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this, -width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,h=b.offset.left,g=h+c.helperProportions.width,n=b.offset.top,o=n+c.helperProportions.height,i=c.snapElements.length-1;i>=0;i--){var j=c.snapElements[i].left,l=j+c.snapElements[i].width,k=c.snapElements[i].top,m=k+c.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&& -o<m+e){if(f.snapMode!="inner"){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-g)<=e,s=Math.abs(l-h)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l}).left-c.margins.left}var t= -p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(k-n)<=e;q=Math.abs(m-o)<=e;r=Math.abs(j-h)<=e;s=Math.abs(l-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[i].snapping&& -(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=p||q||r||s||t}else{c.snapElements[i].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"), -10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery); -;/* - * jQuery UI Droppable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Droppables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.mouse.js - * jquery.ui.draggable.js - */ -(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this); -a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&& -this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass); -this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g= -d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop", -a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.16"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height; -switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>= -i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!= -"none";if(c[f].visible){e=="mousedown"&&c[f]._activate.call(c[f],b);c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight}}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem|| -a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},dragStart:function(a,b){a.element.parents(":not(body,html)").bind("scroll.droppable",function(){a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)})},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance); -if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})},dragStop:function(a,b){a.element.parents(":not(body,html)").unbind("scroll.droppable"); -a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)}}})(jQuery); -;/* - * jQuery UI Resizable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Resizables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(e){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element, -_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(), -top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle= -this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne", -nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== -String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); -this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){if(!a.disabled){e(this).removeClass("ui-resizable-autohide");b._handles.show()}},function(){if(!a.disabled)if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy(); -var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a= -false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"}); -this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff= -{width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis]; -if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false}, -_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f, -{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(b){var a=this.options,c,d,f;a={minWidth:k(a.minWidth)?a.minWidth:0,maxWidth:k(a.maxWidth)?a.maxWidth:Infinity,minHeight:k(a.minHeight)?a.minHeight:0,maxHeight:k(a.maxHeight)?a.maxHeight: -Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(c<a.maxWidth)a.maxWidth=c;if(f<a.maxHeight)a.maxHeight=f}this._vBoundaries=a},_updateCache:function(b){this.offset=this.helper.offset();if(k(b.left))this.position.left=b.left;if(k(b.top))this.position.top=b.top;if(k(b.height))this.size.height=b.height;if(k(b.width))this.size.width= -b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(k(b.height))b.width=b.height*this.aspectRatio;else if(k(b.width))b.height=b.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top=a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this._vBoundaries,c=this.axis,d=k(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=k(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=k(b.width)&&a.minWidth&& -a.minWidth>b.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&l)b.left=i-a.minWidth;if(d&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left= -null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)|| -0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+ -a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+ -c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]); -b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.16"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(), -10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top- -f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var l=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:l.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(l.css("position"))){c._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType? -e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a= -e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing, -step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement= -e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset; -var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left: -a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top- -d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition, -f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25, -display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b= -e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height= -d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery); -;/* - * jQuery UI Selectable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Selectables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"), -selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX, -c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting", -c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d= -this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting"); -a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&& -!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d= -e.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:"1.8.16"})})(jQuery); -;/* - * jQuery UI Sortable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Sortables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable"); -this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a=== -"disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&& -!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top, -left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]}; -this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!= -document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a); -return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top< -b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()- -b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this, -a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0], -e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset(); -c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"): -this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null, -dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")}, -toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers|| -this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection(); -var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)}, -_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith(); -if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), -this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element), -this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&& -this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b];if(!(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])){var e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b= -this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f= -d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")|| -0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out", -a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h- -f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b= -this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width== -""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top= -this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a= -{top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"), -10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"? -document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"), -10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b= -this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&& -this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset(); -var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g- -this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g- -this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0], -this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]= -"";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove", -f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this, -this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop", -a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()}, -_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.16"})})(jQuery); -;/* - * jQuery UI Accordion 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Accordion - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); -a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); -if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion", -function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a= -this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"); -this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); -b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); -a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ -c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; -if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); -if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(), -e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight|| -e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false", -"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16", -animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/); -f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide", -paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); -;/* - * jQuery UI Autocomplete 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Autocomplete - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.position.js - */ -(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.propAttr("readOnly"))){g= -false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!= -a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)}; -this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&& -a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"); -d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&& -b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source= -this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close(); -this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label|| -b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new d.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this; -d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, -"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery); -(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex", --1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id"); -this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b, -this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| -this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| -this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[d.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery); -;/* - * jQuery UI Button 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Button - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(b){var h,i,j,g,l=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},k=function(a){var c=a.name,e=a.form,f=b([]);if(c)f=e?b(e).find("[name='"+c+"']"):b("[name='"+c+"']",a.ownerDocument).filter(function(){return!this.form});return f};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",l);if(typeof this.options.disabled!== -"boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var a=this,c=this.options,e=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!e?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!c.disabled){b(this).addClass("ui-state-hover"); -this===h&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||b(this).removeClass(f)}).bind("click.button",function(d){if(c.disabled){d.preventDefault();d.stopImmediatePropagation()}});this.element.bind("focus.button",function(){a.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){a.buttonElement.removeClass("ui-state-focus")});if(e){this.element.bind("change.button",function(){g||a.refresh()});this.buttonElement.bind("mousedown.button",function(d){if(!c.disabled){g= -false;i=d.pageX;j=d.pageY}}).bind("mouseup.button",function(d){if(!c.disabled)if(i!==d.pageX||j!==d.pageY)g=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).addClass("ui-state-active");a.buttonElement.attr("aria-pressed","true"); -var d=a.element[0];k(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;b(this).addClass("ui-state-active");h=this;b(document).one("mouseup",function(){h=null})}).bind("mouseup.button",function(){if(c.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(d){if(c.disabled)return false;if(d.keyCode==b.ui.keyCode.SPACE|| -d.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(d){d.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",c.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type=== -"radio"){var a=this.element.parents().filter(":last"),c="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(c);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(c);if(!this.buttonElement.length)this.buttonElement=a.find(c)}this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=this.element}, -widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title"); -b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,arguments);if(a==="disabled")c?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);if(this.type==="radio")k(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed", -"true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"), -c=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),e=this.options.icons,f=e.primary&&e.secondary,d=[];if(e.primary||e.secondary){if(this.options.text)d.push("ui-button-text-icon"+(f?"s":e.primary?"-primary":"-secondary"));e.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>");e.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>");if(!this.options.text){d.push(f?"ui-button-icons-only": -"ui-button-icon-only");this.hasTitle||a.attr("title",c)}}else d.push("ui-button-text-only");a.addClass(d.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){a==="disabled"&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a=this.element.css("direction")=== -"ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(a?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"); -b.Widget.prototype.destroy.call(this)}})})(jQuery); -;/* - * jQuery UI Dialog 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Dialog - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.button.js - * jquery.ui.draggable.js - * jquery.ui.mouse.js - * jquery.ui.position.js - * jquery.ui.resizable.js - */ -(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, -position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||"&#160;",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ -b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), -h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id", -e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); -a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== -b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1; -d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== -f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, -function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('<button type="button"></button>').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", -handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, -originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", -f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): -[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); -if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): -e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= -this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- -b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), -create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()|| -c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&& -c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+ -"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery); -;/* - * jQuery UI Tabs 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Tabs - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& -e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= -d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| -(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); -this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= -this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); -if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); -this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ -g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", -function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; -this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= --1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; -d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= -d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, -e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); -j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); -if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, -this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, -load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, -"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, -url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.16"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&& -a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery); -;/* - * jQuery UI Datepicker 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Datepicker - * - * Depends: - * jquery.ui.core.js - */ -(function(d,C){function M(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass= -"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su", -"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10", -minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout", -function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"); -b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.16"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv}, -setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g, -"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker", -function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c== -"focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker(): -d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a, -b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+= -1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/ -2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b= -d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e= -a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a, -"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f== -a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"? -d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C)e.settings.minDate=this._formatDate(e,i);if(g!==null&&f.dateFormat!==C&&f.maxDate===C)e.settings.maxDate=this._formatDate(e,g);this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e); -this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl"); -b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]&&d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]);if(a=d.datepicker._get(b,"onSelect")){c=d.datepicker._formatDate(b);a.apply(b.input?b.input[0]:null,[c,b])}else d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target, -a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c= -a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b, -"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode); -return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input", -a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");c=c?c.apply(a,[a,b]):{};if(c!==false){H(b.settings,c);b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value= -"";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b); -c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing= -true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}); -a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&& -!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(), -h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b= -this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b)b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b); -this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")}, -_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"): -0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"? -"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a); -this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField"); -if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"? -b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1<a.length&&a.charAt(A+1)==p)&&A++;return p},m=function(p){var D= -o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p)throw"Missing number at position "+q;q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return-(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1)return E+1;else throw"Unknown name at position "+q;},s= -function(){if(b.charAt(q)!=a.charAt(A))throw"Unexpected literal at position "+q;q++},q=0,A=0;A<a.length;A++)if(k)if(a.charAt(A)=="'"&&!o("'"))k=false;else s();else switch(a.charAt(A)){case "d":l=m("d");break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":j=m("m");break;case "M":j=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();j=v.getMonth()+ -1;l=v.getDate();break;case "'":if(o("'"))s();else k=true;break;default:s()}if(q<b.length)throw"Extra/unparsed characters found in date: "+b.substring(q);if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd", -COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames: -null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]},l="",u=false;if(b)for(var k=0;k<a.length;k++)if(u)if(a.charAt(k)=="'"&&!i("'"))u=false;else l+=a.charAt(k);else switch(a.charAt(k)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=j("D",b.getDay(),e,f);break;case "o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()- -(new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=j("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+="'";else u=true;break;default:l+=a.charAt(k)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f= -0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a); -var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date; -i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case "d":case "D":g+=parseInt(k[1],10);break;case "w":case "W":g+=parseInt(k[1],10)*7;break;case "m":case "M":l+=parseInt(k[1],10);g= -Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case "y":case "Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()> -12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&& -a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay? -new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a)); -n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m, -g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&& -a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+B+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+ -B+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O= -"";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&& -x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay, -z);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()== -P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+B+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?"&#xa0;":L?'<span class="ui-state-default">'+ -r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>': -"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&& -(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b, -e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?"&#xa0;":"")+o;k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+ -(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input? -a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c, -e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a, -"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length)return this; -if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));return this.each(function(){typeof a== -"string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.16";window["DP_jQuery_"+B]=d})(jQuery); -;/* - * jQuery UI Progressbar 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Progressbar - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); -this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100* -this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.16"})})(jQuery); -;/* - * jQuery UI Effects 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/ - */ -jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], -16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, -a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= -a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor", -"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0, -0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211, -211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b, -d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})}; -f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this, -[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.16",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b= -0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}), -d=document.activeElement;c.wrap(b);if(c[0]===d||f.contains(c[0],d))f(d).focus();b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(e,g){a[g]=c.css(g);if(isNaN(parseInt(a[g],10)))a[g]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){var a,b=document.activeElement; -if(c.parent().is(".ui-effects-wrapper")){a=c.parent().replaceWith(c);if(c[0]===b||f.contains(c[0],b))f(b).focus();return a}return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)}); -return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this, -arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/ -2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b, -d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c, -a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b, -d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g= -0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158; -if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c, -a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery); -;/* - * jQuery UI Effects Blind 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Blind - * - * Depends: - * jquery.effects.core.js - */ -(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a, -g);b.effects.removeWrapper(a);c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery); -;/* - * jQuery UI Effects Drop 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Drop - * - * Depends: - * jquery.effects.core.js - */ -(function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e== -"show"?1:0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); -;/* - * jQuery UI Effects Fade 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Fade - * - * Depends: - * jquery.effects.core.js - */ -(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); -;/* - * jQuery UI Effects Slide 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Slide - * - * Depends: - * jquery.effects.core.js - */ -(function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e); -var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); -;/* - * jQuery UI Effects Transfer 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Transfer - * - * Depends: - * jquery.effects.core.js - */ -(function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments); -b.dequeue()})})}})(jQuery); -; \ No newline at end of file diff --git a/install1/js/jquery.min.js b/install1/js/jquery.min.js deleted file mode 100755 index 8cdc80eb8..000000000 --- a/install1/js/jquery.min.js +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * jQuery JavaScript Library v1.6.2 - * http://jquery.com/ - * - * Copyright 2011, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2011, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Thu Jun 30 14:16:56 2011 -0400 - */ -(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bC.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bR,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bX(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bX(a,c,d,e,"*",g));return l}function bW(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bN),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bA(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bv:bw;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bg(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function W(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(x,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(H)return H.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g](h)}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/\:|^on/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i. -shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,N(a.origType,a.selector),f.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?E:D):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E,this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},G=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?G:F,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?G:F)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&f(b).closest("form").length&&K("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&K("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var H,I=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var L={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||D,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=x.exec(h),k="",j&&(k=j[0],h=h.replace(x,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,L[h]?(a.push(L[h]+k),h=h+k):h=(L[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+N(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+N(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var O=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#\[\.,]*$/,S=Array.prototype.slice,T=f.expr.match.POS,U={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(W(this,a,!1),"not",a)},filter:function(a){return this.pushStack(W(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=T.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/<tbody/i,ba=/<|&#?\w+;/,bb=/<(?:script|object|embed|option|style)/i,bc=/checked\s*(?:[^=]|=\s*.checked.)/i,bd=/\/(java|ecma)script/i,be=/^\s*<!(?:\[CDATA\[|\-\-)/,bf={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bc.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bg(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bm)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!bb.test(a[0])&&(f.support.checkClone||!bc.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j -)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1></$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bl(k[i]);else bl(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bd.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bn=/alpha\([^)]*\)/i,bo=/opacity=([^)]*)/,bp=/([A-Z]|^ms)/g,bq=/^-?\d+(?:px)?$/i,br=/^-?\d/,bs=/^[+\-]=/,bt=/[^+\-\.\de]+/g,bu={position:"absolute",visibility:"hidden",display:"block"},bv=["Left","Right"],bw=["Top","Bottom"],bx,by,bz;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bx(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d;if(h==="number"&&isNaN(d)||d==null)return;h==="string"&&bs.test(d)&&(d=+d.replace(bt,"")+parseFloat(f.css(a,c)),h="number"),h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bx)return bx(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bA(a,b,d);f.swap(a,bu,function(){e=bA(a,b,d)});return e}},set:function(a,b){if(!bq.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cs(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cr("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cr("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cs(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cr("show",1),slideUp:cr("hide",1),slideToggle:cr("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cn||cp(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!cl&&(co?(cl=!0,g=function(){cl&&(co(g),e.tick())},co(g)):cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||cp(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var ct=/^t(?:able|d|h)$/i,cu=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cv(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!ct.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/install1/libs/aesctr.php b/install1/libs/aesctr.php deleted file mode 100755 index 3874fa95f..000000000 --- a/install1/libs/aesctr.php +++ /dev/null @@ -1,406 +0,0 @@ -<?php -namespace Encryption\Crypt; - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES counter (CTR) mode implementation in PHP (c) Chris Veness 2005-2010. Right of free use is */ -/* granted for all commercial or non-commercial use under CC-BY licence. No warranty of any */ -/* form is offered. */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -class Aes -{ - /** - * AES Cipher function: encrypt 'input' with Rijndael algorithm - * - * @param input message as byte-array (16 bytes) - * @param w key schedule as 2D byte-array (Nr+1 x Nb bytes) - - * generated from the cipher key by keyExpansion() - * @return ciphertext as byte-array (16 bytes) - */ - public static function cipher($input, $w) - { - // main cipher function [é5.1] - $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - $Nr = count($w) / $Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys - - $state = array(); // initialise 4xNb byte-array 'state' with input [é3.4] - for ($i = 0; $i < 4 * $Nb; $i++) { - $state[$i % 4][floor($i / 4)] = $input[$i]; - } - - $state = self::addRoundKey($state, $w, 0, $Nb); - - for ($round = 1; $round < $Nr; $round++) { // apply Nr rounds - $state = self::subBytes($state, $Nb); - $state = self::shiftRows($state, $Nb); - $state = self::mixColumns($state, $Nb); - $state = self::addRoundKey($state, $w, $round, $Nb); - } - - $state = self::subBytes($state, $Nb); - $state = self::shiftRows($state, $Nb); - $state = self::addRoundKey($state, $w, $Nr, $Nb); - - $output = array(4 * $Nb); // convert state to 1-d array before returning [é3.4] - for ($i = 0; $i < 4 * $Nb; $i++) { - $output[$i] = $state[$i % 4][floor($i / 4)]; - } - - return $output; - } - - /** - * @param integer $rnd - * @param integer $Nb - */ - private static function addRoundKey($state, $w, $rnd, $Nb) - { - // xor Round Key into state S [é5.1.4] - for ($r = 0; $r < 4; $r++) { - for ($c = 0; $c < $Nb; $c++) { - $state[$r][$c] ^= $w[$rnd * 4 + $c][$r]; - } - } - - return $state; - } - - /** - * @param integer $Nb - */ - private static function subBytes($s, $Nb) - { - // apply SBox to state S [é5.1.1] - for ($r = 0; $r < 4; $r++) { - for ($c = 0; $c < $Nb; $c++) { - $s[$r][$c] = self::$sBox[$s[$r][$c]]; - } - } - - return $s; - } - - /** - * @param integer $Nb - */ - private static function shiftRows($s, $Nb) - { - // shift row r of state S left by r bytes [é5.1.2] - $t = array(4); - for ($r = 1; $r < 4; $r++) { - for ($c = 0; $c < 4; $c++) { - $t[$c] = $s[$r][($c + $r) % $Nb]; // shift into temp copy - } - for ($c = 0; $c < 4; $c++) { - $s[$r][$c] = $t[$c]; // and copy back - } - } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): - return $s; // see fp.gladman.plus.com/cryptography_technology/rijndael/aes.spec.311.pdf - } - - /** - * @param integer $Nb - */ - private static function mixColumns($s, $Nb) - { - // combine bytes of each col of state S [é5.1.3] - for ($c = 0; $c < 4; $c++) { - $a = array(4); // 'a' is a copy of the current column from 's' - $b = array(4); // 'b' is aé{02} in GF(2^8) - for ($i = 0; $i < 4; $i++) { - $a[$i] = $s[$i][$c]; - $b[$i] = $s[$i][$c] & 0x80 ? $s[$i][$c] << 1 ^ 0x011b : $s[$i][$c] << 1; - } - // a[n] ^ b[n] is aé{03} in GF(2^8) - $s[0][$c] = $b[0] ^ $a[1] ^ $b[1] ^ $a[2] ^ $a[3]; // 2*a0 + 3*a1 + a2 + a3 - $s[1][$c] = $a[0] ^ $b[1] ^ $a[2] ^ $b[2] ^ $a[3]; // a0 * 2*a1 + 3*a2 + a3 - $s[2][$c] = $a[0] ^ $a[1] ^ $b[2] ^ $a[3] ^ $b[3]; // a0 + a1 + 2*a2 + 3*a3 - $s[3][$c] = $a[0] ^ $b[0] ^ $a[1] ^ $a[2] ^ $b[3]; // 3*a0 + a1 + a2 + 2*a3 - } - - return $s; - } - - /** - * Key expansion for Rijndael cipher(): performs key expansion on cipher key - * to generate a key schedule - * - * @param key cipher key byte-array (16 bytes) - * @return key schedule as 2D byte-array (Nr+1 x Nb bytes) - */ - public static function keyExpansion($key) - { - // generate Key Schedule from Cipher Key [é5.2] - $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) - $Nk = count($key) / 4; // key length (in words): 4/6/8 for 128/192/256-bit keys - $Nr = $Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys - - $w = array(); - $temp = array(); - - for ($i = 0; $i < $Nk; $i++) { - $r = array($key[4 * $i], $key[4 * $i + 1], $key[4 * $i + 2], $key[4 * $i + 3]); - $w[$i] = $r; - } - - for ($i = $Nk; $i < ($Nb * ($Nr + 1)); $i++) { - $w[$i] = array(); - for ($t = 0; $t < 4; $t++) { - $temp[$t] = $w[$i - 1][$t]; - } - if ($i % $Nk == 0) { - $temp = self::subWord(self::rotWord($temp)); - for ($t = 0; $t < 4; $t++) { - $temp[$t] ^= self::$rCon[$i / $Nk][$t]; - } - } elseif ($Nk > 6 && $i % $Nk == 4) { - $temp = self::subWord($temp); - } - for ($t = 0; $t < 4; $t++) { - $w[$i][$t] = $w[$i - $Nk][$t] ^ $temp[$t]; - } - } - - return $w; - } - - private static function subWord($w) - { - // apply SBox to 4-byte word w - for ($i = 0; $i < 4; $i++) { - $w[$i] = self::$sBox[$w[$i]]; - } - - return $w; - } - - private static function rotWord($w) - { - // rotate 4-byte word w left by one byte - $tmp = $w[0]; - for ($i = 0; $i < 3; $i++) { - $w[$i] = $w[$i + 1]; - } - $w[3] = $tmp; - - return $w; - } - - // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [é5.1.1] - private static $sBox = array( - 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, - 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, - 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, - 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, - 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, - 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, - 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, - 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, - 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, - 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, - 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, - 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, - 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, - 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, - 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, - 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16 - ); - - // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [é5.2] - private static $rCon = array( - array(0x00, 0x00, 0x00, 0x00), - array(0x01, 0x00, 0x00, 0x00), - array(0x02, 0x00, 0x00, 0x00), - array(0x04, 0x00, 0x00, 0x00), - array(0x08, 0x00, 0x00, 0x00), - array(0x10, 0x00, 0x00, 0x00), - array(0x20, 0x00, 0x00, 0x00), - array(0x40, 0x00, 0x00, 0x00), - array(0x80, 0x00, 0x00, 0x00), - array(0x1b, 0x00, 0x00, 0x00), - array(0x36, 0x00, 0x00, 0x00) - ); - -} - -class aesctr extends Aes -{ - - /** - * Encrypt a text using AES encryption in Counter mode of operation - * - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf - * - * Unicode multi-byte character safe - * - * @param plaintext string text to be encrypted - * @param password the password to use to generate a key - * @param nBits integer of bits to be used in the key (128, 192, or 256) - * @return string text - */ - public static function encrypt($plaintext, $password, $nBits) - { - $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { - return ''; // standard allows 128/192/256 bit keys - } - // note PHP (5) gives us plaintext and password in UTF8 encoding! - - // use AES itself to encrypt password to get cipher key (using plain password as source for - // key expansion) - gives us well encrypted key - $nBytes = $nBits / 8; // no bytes in key - $pwBytes = array(); - for ($i = 0; $i < $nBytes; $i++) { - $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; - } - $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); - $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long - - // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in - // 1st 8 bytes, block counter in 2nd 8 bytes - $counterBlock = array(); - $nonce = floor(microtime(true) * 1000); // timestamp: milliseconds since 1-Jan-1970 - $nonceSec = floor($nonce / 1000); - $nonceMs = $nonce % 1000; - // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes - for ($i = 0; $i < 4; $i++) { - $counterBlock[$i] = self::urs($nonceSec, $i * 8) & 0xff; - } - for ($i = 0; $i < 4; $i++) { - $counterBlock[$i + 4] = $nonceMs & 0xff; - } - // and convert it to a string to go on the front of the ciphertext - $ctrTxt = ''; - for ($i = 0; $i < 8; $i++) { - $ctrTxt .= chr($counterBlock[$i]); - } - - // generate key schedule - an expansion of the key into distinct Key Rounds for each round - $keySchedule = Aes::keyExpansion($key); - - $blockCount = ceil(strlen($plaintext) / $blockSize); - $ciphertxt = array(); // ciphertext as array of strings - - for ($b = 0; $b < $blockCount; $b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; - } - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c - 4] = self::urs($b / 0x100000000, $c * 8); - } - - $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // -- encrypt counter block -- - - // block size is reduced on final block - $blockLength = $b < $blockCount - 1 ? $blockSize : (strlen($plaintext) - 1) % $blockSize + 1; - $cipherByte = array(); - - for ($i = 0; $i < $blockLength; $i++) { // -- xor plaintext with ciphered counter byte-by-byte -- - $cipherByte[$i] = $cipherCntr[$i] ^ ord(substr($plaintext, $b * $blockSize + $i, 1)); - $cipherByte[$i] = chr($cipherByte[$i]); - } - $ciphertxt[$b] = implode('', $cipherByte); // escape troublesome characters in ciphertext - } - - // implode is more efficient than repeated string concatenation - $ciphertext = $ctrTxt.implode('', $ciphertxt); - $ciphertext = base64_encode($ciphertext); - - return $ciphertext; - } - - /** - * Decrypt a text encrypted by AES in counter mode of operation - * - * @param ciphertext source text to be decrypted - * @param password the password to use to generate a key - * @param nBits integer of bits to be used in the key (128, 192, or 256) - * @return string text - */ - public static function decrypt($ciphertext, $password, $nBits) - { - $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { - return ''; // standard allows 128/192/256 bit keys - } - $ciphertext = base64_decode($ciphertext); - - // use AES to encrypt password (mirroring encrypt routine) - $nBytes = $nBits / 8; // no bytes in key - $pwBytes = array(); - for ($i = 0; $i < $nBytes; $i++) { - $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; - } - $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); - $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long - - // recover nonce from 1st element of ciphertext - $counterBlock = array(); - $ctrTxt = substr($ciphertext, 0, 8); - for ($i = 0; $i < 8; $i++) { - $counterBlock[$i] = ord(substr($ctrTxt, $i, 1)); - } - - // generate key schedule - $keySchedule = Aes::keyExpansion($key); - - // separate ciphertext into blocks (skipping past initial 8 bytes) - $nBlocks = ceil((strlen($ciphertext) - 8) / $blockSize); - $ct = array(); - for ($b = 0; $b < $nBlocks; $b++) { - $ct[$b] = substr($ciphertext, 8 + $b * $blockSize, 16); - } - $ciphertext = $ct; // ciphertext is now array of block-length strings - - // plaintext will get generated block-by-block into array of block-length strings - $plaintxt = array(); - - for ($b = 0; $b < $nBlocks; $b++) { - // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; - } - for ($c = 0; $c < 4; $c++) { - $counterBlock[15 - $c - 4] = self::urs(($b + 1) / 0x100000000 - 1, $c * 8) & 0xff; - } - - $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // encrypt counter block - - $plaintxtByte = array(); - for ($i = 0; $i < strlen($ciphertext[$b]); $i++) { - // -- xor plaintext with ciphered counter byte-by-byte -- - $plaintxtByte[$i] = $cipherCntr[$i] ^ ord(substr($ciphertext[$b], $i, 1)); - $plaintxtByte[$i] = chr($plaintxtByte[$i]); - } - $plaintxt[$b] = implode('', $plaintxtByte); - } - - // join array of blocks into single plaintext string - $plaintext = implode('', $plaintxt); - - return $plaintext; - } - - /* - * Unsigned right shift function, since PHP has neither >>> operator nor unsigned ints - * - * @param a number to be shifted (32-bit integer) - * @param b number of bits to shift a to the right (0..31) - * @return a right-shifted and zero-filled by b bits - */ - private static function urs($a, $b) - { - $a &= 0xffffffff; - $b &= 0x1f; // (bounds check) - if ($a & 0x80000000 && $b > 0) { // if left-most bit set - $a = ($a >> 1) & 0x7fffffff; // right-shift one bit & clear left-most bit - $a = $a >> ($b - 1); // remaining right-shifts - } else { // otherwise - $a = ($a >> $b); // use normal right-shift - } - - return $a; - } -} -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ diff --git a/pages/items.js.php b/pages/items.js.php index 5eb867222..3d76a0295 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -74,11 +74,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- startedItemsListQuery = false, itemStorageInformation = '', applicationVars, initialPageLoad = true, previousSelectedFolder=-1, - debugJavascript = true; + debugJavascript = false; // Manage memory browserSession( 'init', 'teampassApplication', { @@ -1678,16 +1678,16 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Force user did a change to false userDidAChange = false; userUploadedFile = false; var data = { - 'title': DOMPurify.sanitize($('#form-folder-add-label').val()), + 'title': DOMPurify.sanitize($('#form-folder-add-label').val(), {USE_PROFILES: {html: false}}), 'parentId': $('#form-folder-add-parent option:selected').val(), 'complexity': $('#form-folder-add-complexicity option:selected').val(), //'access_rights_strategy': $('#form-folder-add-rights option:selected').val(), - 'icon': $('#form-folder-add-icon').val(), - 'iconSelected': $('#form-folder-add-icon-selected').val(), + 'icon': DOMPurify.sanitize($('#form-folder-add-icon').val(), {USE_PROFILES: {html: false}}), + 'iconSelected': DOMPurify.sanitize($('#form-folder-add-icon-selected').val(), {USE_PROFILES: {html: false}}), 'id': selectedFolderId, } if (debugJavascript === true) console.log(data); // Launch action @@ -1906,11 +1906,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- .info('<?php echo langHdl('loading_item'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); var data = { 'source_folder_id': $('#form-folder-copy-source option:selected').val(), 'target_folder_id': $('#form-folder-copy-destination option:selected').val(), - 'folder_label': DOMPurify.sanitize($('#form-folder-copy-label').val()), + 'folder_label': DOMPurify.sanitize($('#form-folder-copy-label').val(), {USE_PROFILES: {html: false}}), } // Launch action $.post( 'sources/folders.queries.php', { diff --git a/pages/users.js.php b/pages/users.js.php index 027ef5ea1..4649494c8 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -58,11 +58,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === var userDidAChange = false, userTemporaryCode = '', constVisibleOTP = false, userClipboard, ProcessInProgress = false, - debugJavascript = true; + debugJavascript = false; browserSession( 'init', 'teampassApplication', { foldersSelect: '', diff --git a/sources/main.functions.php b/sources/main.functions.php index f3c520fed..699350d41 100755 --- a/sources/main.functions.php +++ b/sources/main.functions.php @@ -4150,12 +4150,12 @@ function validateDataFields( $field = $row['Field']; $type = $row['Type']; $length = preg_replace('/[^0-9]/', '', $type); $type = explode('(', $type)[0]; - if (array_key_exists($field, $dataFields) === true && in_array($type, ['int', 'tinyint', 'smallint', 'bigint', 'float', 'double', 'varchar']) === true && is_array($dataFields[$field]) === false) { - if (strlen((string) $dataFields[$field]) > $length) { + if (isset($dataFields[$field]) === true && in_array($type, ['int', 'tinyint', 'smallint', 'bigint', 'float', 'double', 'varchar']) === true && is_array($dataFields[$field]) === false) { + if (empty($length) === false && strlen((string) $dataFields[$field]) > $length) { return [ 'state' => false, 'message' => 'Field '.strtoupper($field).' exceeds maximum length of '.$length, ]; }
define('WIP', true); body{ width: 1000px; margin-left: auto; margin-right: auto; background-image: url(../../includes/images/install_background.jpg); -webkit-background-size: cover; background-size: cover; font-family: sans-serif; } #top{ width: 1000px; margin-left: auto; margin-right: auto; padding: 10px; font-family: sans-serif; display:block; color: #404d63; } .lcol { vertical-align:middle; display:inline-block; margin-bottom: 15px; } .header-title{ font-size: 42px; letter-spacing: 10px; color: #84AAB7; } .header-title-small{ font-size: 16px; letter-spacing: 2px; } #title { font: bold 270%/100% "Lucida Grande"; color: #464646; float:left; margin-top:3px; } #main { width: 1000px; margin-top:15px; margin-left: auto; margin-right: auto; background-color:white; color:#464646; height:90%; overflow:hidden; padding:10px; display:block; height:100%; } #menu { float: left; width: 25%; margin-left:-20px; height:100%; } #menu li { margin-top:5px; } .li_inprogress { font-weight: bold; color: #5283BB; } .li_done { font-weight: normal; color: #464646; } #content { /*float:left; width: 75%; height:100%;*/ } #step_name { font-weight: bold; text-align: center; font-size: 15px; } #step_content { margin-top: 10px; } #action_buttons { width: 1000px; padding: 10px; margin:0 auto 0 auto; background-color:white; color:#464646; height: 30px; text-align: right; } h5 { margin-bottom: 10px; } .label_block { display: inline-block; width: 200px; margin-bottom: 2px; } .label_block_big { display: inline-block; width: 270px; margin-bottom: 2px; } .hidden { display: none; } /*! jQuery UI - v1.10.3 - 2013-07-15 * http://jqueryui.com * Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CHelvetica%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=6px&bgColorHeader=dddddd&bgTextureHeader=glass&bgImgOpacityHeader=35&borderColorHeader=bbbbbb&fcHeader=444444&iconColorHeader=999999&bgColorContent=c9c9c9&bgTextureContent=inset_soft&bgImgOpacityContent=50&borderColorContent=aaaaaa&fcContent=333333&iconColorContent=999999&bgColorDefault=eeeeee&bgTextureDefault=glass&bgImgOpacityDefault=60&borderColorDefault=cccccc&fcDefault=3383bb&iconColorDefault=70b2e1&bgColorHover=f8f8f8&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=bbbbbb&fcHover=599fcf&iconColorHover=3383bb&bgColorActive=999999&bgTextureActive=inset_hard&bgImgOpacityActive=75&borderColorActive=999999&fcActive=ffffff&iconColorActive=454545&bgColorHighlight=eeeeee&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=ffffff&fcHighlight=444444&iconColorHighlight=3383bb&bgColorError=c0402a&bgTextureError=flat&bgImgOpacityError=55&borderColorError=c0402a&fcError=ffffff&iconColorError=fbc856&bgColorOverlay=eeeeee&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=80&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=60&thicknessShadow=4px&offsetTopShadow=-4px&offsetLeftShadow=-4px&cornerRadiusShadow=0px * Copyright 2013 jQuery Foundation and other contributors Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:0.9em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Trebuchet MS,Helvetica,Arial,sans-serif;font-size:0.9em}.ui-widget .ui-widget{font-size:0.9em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Trebuchet MS,Helvetica,Arial,sans-serif;font-size:0.9em}.ui-widget-content{border:1px solid #aaa;background:#c9c9c9 url(images/ui-bg_inset-soft_50_c9c9c9_1x100.png) 50% bottom repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #bbb;background:#ddd url(images/ui-bg_glass_35_dddddd_1x400.png) 50% 50% repeat-x;color:#444;font-weight:bold}.ui-widget-header a{color:#444}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#eee url(images/ui-bg_glass_60_eeeeee_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#3383bb}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#3383bb;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #bbb;background:#f8f8f8 url(images/ui-bg_glass_100_f8f8f8_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#599fcf}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#599fcf;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #999;background:#999 url(images/ui-bg_inset-hard_75_999999_1x100.png) 50% 50% repeat-x;font-weight:bold;color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fff;background:#eee url(images/ui-bg_flat_55_eeeeee_40x100.png) 50% 50% repeat-x;color:#444}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#444}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #c0402a;background:#c0402a url(images/ui-bg_flat_55_c0402a_40x100.png) 50% 50% repeat-x;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(images/ui-icons_999999_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_999999_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_70b2e1_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_3383bb_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_3383bb_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_fbc856_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:6px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:6px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:6px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:6px}.ui-widget-overlay{background:#eee url(images/ui-bg_flat_0_eeeeee_40x100.png) 50% 50% repeat-x;opacity:.8;filter:Alpha(Opacity=80)}.ui-widget-shadow{margin:-4px 0 0 -4px;padding:4px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.6;filter:Alpha(Opacity=60);border-radius:0} /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES implementation in JavaScript (c) Chris Veness 2005-2010 */ /* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var Aes = {}; // Aes namespace /** * AES Cipher function: encrypt 'input' state with Rijndael algorithm * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage * * @param {Number[]} input 16-byte (128-bit) input state array * @param {Number[][]} w Key schedule as 2D byte-array (Nr+1 x Nb bytes) * @returns {Number[]} Encrypted output state array */ Aes.cipher = function(input, w) { // main Cipher function [§5.1] var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) var Nr = w.length/Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] for (var i=0; i<4*Nb; i++) state[i%4][Math.floor(i/4)] = input[i]; state = Aes.addRoundKey(state, w, 0, Nb); for (var round=1; round<Nr; round++) { state = Aes.subBytes(state, Nb); state = Aes.shiftRows(state, Nb); state = Aes.mixColumns(state, Nb); state = Aes.addRoundKey(state, w, round, Nb); } state = Aes.subBytes(state, Nb); state = Aes.shiftRows(state, Nb); state = Aes.addRoundKey(state, w, Nr, Nb); var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] for (var i=0; i<4*Nb; i++) output[i] = state[i%4][Math.floor(i/4)]; return output; } /** * Perform Key Expansion to generate a Key Schedule * * @param {Number[]} key Key as 16/24/32-byte array * @returns {Number[][]} Expanded key schedule as 2D byte-array (Nr+1 x Nb bytes) */ Aes.keyExpansion = function(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2] var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) var Nk = key.length/4 // key length (in words): 4/6/8 for 128/192/256-bit keys var Nr = Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys var w = new Array(Nb*(Nr+1)); var temp = new Array(4); for (var i=0; i<Nk; i++) { var r = [key[4*i], key[4*i+1], key[4*i+2], key[4*i+3]]; w[i] = r; } for (var i=Nk; i<(Nb*(Nr+1)); i++) { w[i] = new Array(4); for (var t=0; t<4; t++) temp[t] = w[i-1][t]; if (i % Nk == 0) { temp = Aes.subWord(Aes.rotWord(temp)); for (var t=0; t<4; t++) temp[t] ^= Aes.rCon[i/Nk][t]; } else if (Nk > 6 && i%Nk == 4) { temp = Aes.subWord(temp); } for (var t=0; t<4; t++) w[i][t] = w[i-Nk][t] ^ temp[t]; } return w; } /* * ---- remaining routines are private, not called externally ---- */ Aes.subBytes = function(s, Nb) { // apply SBox to state S [§5.1.1] for (var r=0; r<4; r++) { for (var c=0; c<Nb; c++) s[r][c] = Aes.sBox[s[r][c]]; } return s; } Aes.shiftRows = function(s, Nb) { // shift row r of state S left by r bytes [§5.1.2] var t = new Array(4); for (var r=1; r<4; r++) { for (var c=0; c<4; c++) t[c] = s[r][(c+r)%Nb]; // shift into temp copy for (var c=0; c<4; c++) s[r][c] = t[c]; // and copy back } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): return s; // see asmaes.sourceforge.net/rijndael/rijndaelImplementation.pdf } Aes.mixColumns = function(s, Nb) { // combine bytes of each col of state S [§5.1.3] for (var c=0; c<4; c++) { var a = new Array(4); // 'a' is a copy of the current column from 's' var b = new Array(4); // 'b' is a•{02} in GF(2^8) for (var i=0; i<4; i++) { a[i] = s[i][c]; b[i] = s[i][c]&0x80 ? s[i][c]<<1 ^ 0x011b : s[i][c]<<1; } // a[n] ^ b[n] is a•{03} in GF(2^8) s[0][c] = b[0] ^ a[1] ^ b[1] ^ a[2] ^ a[3]; // 2*a0 + 3*a1 + a2 + a3 s[1][c] = a[0] ^ b[1] ^ a[2] ^ b[2] ^ a[3]; // a0 * 2*a1 + 3*a2 + a3 s[2][c] = a[0] ^ a[1] ^ b[2] ^ a[3] ^ b[3]; // a0 + a1 + 2*a2 + 3*a3 s[3][c] = a[0] ^ b[0] ^ a[1] ^ a[2] ^ b[3]; // 3*a0 + a1 + a2 + 2*a3 } return s; } Aes.addRoundKey = function(state, w, rnd, Nb) { // xor Round Key into state S [§5.1.4] for (var r=0; r<4; r++) { for (var c=0; c<Nb; c++) state[r][c] ^= w[rnd*4+c][r]; } return state; } Aes.subWord = function(w) { // apply SBox to 4-byte word w for (var i=0; i<4; i++) w[i] = Aes.sBox[w[i]]; return w; } Aes.rotWord = function(w) { // rotate 4-byte word w left by one byte var tmp = w[0]; for (var i=0; i<3; i++) w[i] = w[i+1]; w[3] = tmp; return w; } // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [§5.1.1] Aes.sBox = [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, 0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75, 0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84, 0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf, 0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8, 0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2, 0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73, 0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb, 0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79, 0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08, 0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a, 0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e, 0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf, 0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16]; // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] Aes.rCon = [ [0x00, 0x00, 0x00, 0x00], [0x01, 0x00, 0x00, 0x00], [0x02, 0x00, 0x00, 0x00], [0x04, 0x00, 0x00, 0x00], [0x08, 0x00, 0x00, 0x00], [0x10, 0x00, 0x00, 0x00], [0x20, 0x00, 0x00, 0x00], [0x40, 0x00, 0x00, 0x00], [0x80, 0x00, 0x00, 0x00], [0x1b, 0x00, 0x00, 0x00], [0x36, 0x00, 0x00, 0x00] ]; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES Counter-mode implementation in JavaScript (c) Chris Veness 2005-2009 */ /* - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ Aes.Ctr = {}; // Aes.Ctr namespace: a subclass or extension of Aes /** * Encrypt a text using AES encryption in Counter mode of operation * * Unicode multi-byte character safe * * @param {String} plaintext Source text to be encrypted * @param {String} password The password to use to generate a key * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) * @returns {string} Encrypted text */ Aes.Ctr.encrypt = function(plaintext, password, nBits) { var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys plaintext = Utf8.encode(plaintext); password = Utf8.encode(password); //var t = new Date(); // timer // use AES itself to encrypt password to get cipher key (using plain password as source for key // expansion) - gives us well encrypted key var nBytes = nBits/8; // no bytes in key var pwBytes = new Array(nBytes); for (var i=0; i<nBytes; i++) { pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); } var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); // gives us 16-byte key key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in 1st 8 bytes, // block counter in 2nd 8 bytes var counterBlock = new Array(blockSize); var nonce = (new Date()).getTime(); // timestamp: milliseconds since 1-Jan-1970 var nonceSec = Math.floor(nonce/1000); var nonceMs = nonce%1000; // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes for (var i=0; i<4; i++) counterBlock[i] = (nonceSec >>> i*8) & 0xff; for (var i=0; i<4; i++) counterBlock[i+4] = nonceMs & 0xff; // and convert it to a string to go on the front of the ciphertext var ctrTxt = ''; for (var i=0; i<8; i++) ctrTxt += String.fromCharCode(counterBlock[i]); // generate key schedule - an expansion of the key into distinct Key Rounds for each round var keySchedule = Aes.keyExpansion(key); var blockCount = Math.ceil(plaintext.length/blockSize); var ciphertxt = new Array(blockCount); // ciphertext as array of strings for (var b=0; b<blockCount; b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) for (var c=0; c<4; c++) counterBlock[15-c] = (b >>> c*8) & 0xff; for (var c=0; c<4; c++) counterBlock[15-c-4] = (b/0x100000000 >>> c*8) var cipherCntr = Aes.cipher(counterBlock, keySchedule); // -- encrypt counter block -- // block size is reduced on final block var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1; var cipherChar = new Array(blockLength); for (var i=0; i<blockLength; i++) { // -- xor plaintext with ciphered counter char-by-char -- cipherChar[i] = cipherCntr[i] ^ plaintext.charCodeAt(b*blockSize+i); cipherChar[i] = String.fromCharCode(cipherChar[i]); } ciphertxt[b] = cipherChar.join(''); } // Array.join is more efficient than repeated string concatenation in IE var ciphertext = ctrTxt + ciphertxt.join(''); ciphertext = Base64.encode(ciphertext); // encode in base64 //alert((new Date()) - t); return ciphertext; } /** * Decrypt a text encrypted by AES in counter mode of operation * * @param {String} ciphertext Source text to be encrypted * @param {String} password The password to use to generate a key * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) * @returns {String} Decrypted text */ Aes.Ctr.decrypt = function(ciphertext, password, nBits) { var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys ciphertext = Base64.decode(ciphertext); password = Utf8.encode(password); //var t = new Date(); // timer // use AES to encrypt password (mirroring encrypt routine) var nBytes = nBits/8; // no bytes in key var pwBytes = new Array(nBytes); for (var i=0; i<nBytes; i++) { pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); } var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long // recover nonce from 1st 8 bytes of ciphertext var counterBlock = new Array(8); ctrTxt = ciphertext.slice(0, 8); for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i); // generate key schedule var keySchedule = Aes.keyExpansion(key); // separate ciphertext into blocks (skipping past initial 8 bytes) var nBlocks = Math.ceil((ciphertext.length-8) / blockSize); var ct = new Array(nBlocks); for (var b=0; b<nBlocks; b++) ct[b] = ciphertext.slice(8+b*blockSize, 8+b*blockSize+blockSize); ciphertext = ct; // ciphertext is now array of block-length strings // plaintext will get generated block-by-block into array of block-length strings var plaintxt = new Array(ciphertext.length); for (var b=0; b<nBlocks; b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) for (var c=0; c<4; c++) counterBlock[15-c] = ((b) >>> c*8) & 0xff; for (var c=0; c<4; c++) counterBlock[15-c-4] = (((b+1)/0x100000000-1) >>> c*8) & 0xff; var cipherCntr = Aes.cipher(counterBlock, keySchedule); // encrypt counter block var plaintxtByte = new Array(ciphertext[b].length); for (var i=0; i<ciphertext[b].length; i++) { // -- xor plaintxt with ciphered counter byte-by-byte -- plaintxtByte[i] = cipherCntr[i] ^ ciphertext[b].charCodeAt(i); plaintxtByte[i] = String.fromCharCode(plaintxtByte[i]); } plaintxt[b] = plaintxtByte.join(''); } // join array of blocks into single plaintext string var plaintext = plaintxt.join(''); plaintext = Utf8.decode(plaintext); // decode from UTF8 back to Unicode multi-byte chars //alert((new Date()) - t); return plaintext; } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Base64 class: Base 64 encoding / decoding (c) Chris Veness 2002-2010 */ /* note: depends on Utf8 class */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var Base64 = {}; // Base64 namespace Base64.code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; /** * Encode string into Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] * (instance method extending String object). As per RFC 4648, no newlines are added. * * @param {String} str The string to be encoded as base-64 * @param {Boolean} [utf8encode=false] Flag to indicate whether str is Unicode string to be encoded * to UTF8 before conversion to base64; otherwise string is assumed to be 8-bit characters * @returns {String} Base64-encoded string */ Base64.encode = function(str, utf8encode) { // http://tools.ietf.org/html/rfc4648 utf8encode = (typeof utf8encode == 'undefined') ? false : utf8encode; var o1, o2, o3, bits, h1, h2, h3, h4, e=[], pad = '', c, plain, coded; var b64 = Base64.code; plain = utf8encode ? str.encodeUTF8() : str; c = plain.length % 3; // pad string to length of multiple of 3 if (c > 0) { while (c++ < 3) { pad += '='; plain += '\0'; } } // note: doing padding here saves us doing special-case packing for trailing 1 or 2 chars for (c=0; c<plain.length; c+=3) { // pack three octets into four hexets o1 = plain.charCodeAt(c); o2 = plain.charCodeAt(c+1); o3 = plain.charCodeAt(c+2); bits = o1<<16 | o2<<8 | o3; h1 = bits>>18 & 0x3f; h2 = bits>>12 & 0x3f; h3 = bits>>6 & 0x3f; h4 = bits & 0x3f; // use hextets to index into code string e[c/3] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); } coded = e.join(''); // join() is far faster than repeated string concatenation in IE // replace 'A's from padded nulls with '='s coded = coded.slice(0, coded.length-pad.length) + pad; return coded; } /** * Decode string from Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] * (instance method extending String object). As per RFC 4648, newlines are not catered for. * * @param {String} str The string to be decoded from base-64 * @param {Boolean} [utf8decode=false] Flag to indicate whether str is Unicode string to be decoded * from UTF8 after conversion from base64 * @returns {String} decoded string */ Base64.decode = function(str, utf8decode) { utf8decode = (typeof utf8decode == 'undefined') ? false : utf8decode; var o1, o2, o3, h1, h2, h3, h4, bits, d=[], plain, coded; var b64 = Base64.code; coded = utf8decode ? str.decodeUTF8() : str; for (var c=0; c<coded.length; c+=4) { // unpack four hexets into three octets h1 = b64.indexOf(coded.charAt(c)); h2 = b64.indexOf(coded.charAt(c+1)); h3 = b64.indexOf(coded.charAt(c+2)); h4 = b64.indexOf(coded.charAt(c+3)); bits = h1<<18 | h2<<12 | h3<<6 | h4; o1 = bits>>>16 & 0xff; o2 = bits>>>8 & 0xff; o3 = bits & 0xff; d[c/4] = String.fromCharCode(o1, o2, o3); // check for padding if (h4 == 0x40) d[c/4] = String.fromCharCode(o1, o2); if (h3 == 0x40) d[c/4] = String.fromCharCode(o1); } plain = d.join(''); // join() is far faster than repeated string concatenation in IE return utf8decode ? plain.decodeUTF8() : plain; } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Utf8 class: encode / decode between multi-byte Unicode characters and UTF-8 multiple */ /* single-byte character encoding (c) Chris Veness 2002-2010 */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var Utf8 = {}; // Utf8 namespace /** * Encode multi-byte Unicode string into utf-8 multiple single-byte characters * (BMP / basic multilingual plane only) * * Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars * * @param {String} strUni Unicode string to be encoded as UTF-8 * @returns {String} encoded string */ Utf8.encode = function(strUni) { // use regular expressions & String.replace callback function for better efficiency // than procedural approaches var strUtf = strUni.replace( /[\u0080-\u07ff]/g, // U+0080 - U+07FF => 2 bytes 110yyyyy, 10zzzzzz function(c) { var cc = c.charCodeAt(0); return String.fromCharCode(0xc0 | cc>>6, 0x80 | cc&0x3f); } ); strUtf = strUtf.replace( /[\u0800-\uffff]/g, // U+0800 - U+FFFF => 3 bytes 1110xxxx, 10yyyyyy, 10zzzzzz function(c) { var cc = c.charCodeAt(0); return String.fromCharCode(0xe0 | cc>>12, 0x80 | cc>>6&0x3F, 0x80 | cc&0x3f); } ); return strUtf; } /** * Decode utf-8 encoded string back into multi-byte Unicode characters * * @param {String} strUtf UTF-8 string to be decoded back to Unicode * @returns {String} decoded string */ Utf8.decode = function(strUtf) { // note: decode 3-byte chars first as decoded 2-byte strings could appear to be 3-byte char! var strUni = strUtf.replace( /[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, // 3-byte chars function(c) { // (note parentheses for precence) var cc = ((c.charCodeAt(0)&0x0f)<<12) | ((c.charCodeAt(1)&0x3f)<<6) | ( c.charCodeAt(2)&0x3f); return String.fromCharCode(cc); } ); strUni = strUni.replace( /[\u00c0-\u00df][\u0080-\u00bf]/g, // 2-byte chars function(c) { // (note parentheses for precence) var cc = (c.charCodeAt(0)&0x1f)<<6 | c.charCodeAt(1)&0x3f; return String.fromCharCode(cc); } ); return strUni; } <?php /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES implementation in PHP (c) Chris Veness 2005-2010. Right of free use is granted for all */ /* commercial or non-commercial use under CC-BY licence. No warranty of any form is offered. */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ class Aes { /** * AES Cipher function: encrypt 'input' with Rijndael algorithm * * @param input message as byte-array (16 bytes) * @param w key schedule as 2D byte-array (Nr+1 x Nb bytes) - * generated from the cipher key by keyExpansion() * @return ciphertext as byte-array (16 bytes) */ public static function cipher($input, $w) { // main cipher function [é5.1] $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) $Nr = count($w) / $Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys $state = array(); // initialise 4xNb byte-array 'state' with input [é3.4] for ($i = 0; $i < 4 * $Nb; $i++) { $state[$i % 4][floor($i / 4)] = $input[$i]; } $state = self::addRoundKey($state, $w, 0, $Nb); for ($round = 1; $round < $Nr; $round++) { // apply Nr rounds $state = self::subBytes($state, $Nb); $state = self::shiftRows($state, $Nb); $state = self::mixColumns($state); $state = self::addRoundKey($state, $w, $round, $Nb); } $state = self::subBytes($state, $Nb); $state = self::shiftRows($state, $Nb); $state = self::addRoundKey($state, $w, $Nr, $Nb); $output = array(4 * $Nb); // convert state to 1-d array before returning [é3.4] for ($i = 0; $i < 4 * $Nb; $i++) { $output[$i] = $state[$i % 4][floor($i / 4)]; } return $output; } /** * @param integer $rnd * @param integer $Nb */ private static function addRoundKey($state, $w, $rnd, $Nb) { // xor Round Key into state S [é5.1.4] for ($r = 0; $r < 4; $r++) { for ($c = 0; $c < $Nb; $c++) { $state[$r][$c] ^= $w[$rnd * 4 + $c][$r]; } } return $state; } /** * @param integer $Nb */ private static function subBytes($s, $Nb) { // apply SBox to state S [é5.1.1] for ($r = 0; $r < 4; $r++) { for ($c = 0; $c < $Nb; $c++) { $s[$r][$c] = self::$sBox[$s[$r][$c]]; } } return $s; } /** * @param integer $Nb */ private static function shiftRows($s, $Nb) { // shift row r of state S left by r bytes [é5.1.2] $t = array(4); for ($r = 1; $r < 4; $r++) { for ($c = 0; $c < 4; $c++) { $t[$c] = $s[$r][($c + $r) % $Nb]; } // shift into temp copy for ($c = 0; $c < 4; $c++) { $s[$r][$c] = $t[$c]; } // and copy back } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): return $s; // see fp.gladman.plus.com/cryptography_technology/rijndael/aes.spec.311.pdf } /** * @param integer $Nb */ private static function mixColumns($s) { // combine bytes of each col of state S [é5.1.3] for ($c = 0; $c < 4; $c++) { $a = array(4); // 'a' is a copy of the current column from 's' $b = array(4); // 'b' is aé{02} in GF(2^8) for ($i = 0; $i < 4; $i++) { $a[$i] = $s[$i][$c]; $b[$i] = $s[$i][$c] & 0x80 ? $s[$i][$c] << 1 ^ 0x011b : $s[$i][$c] << 1; } // a[n] ^ b[n] is aé{03} in GF(2^8) $s[0][$c] = $b[0] ^ $a[1] ^ $b[1] ^ $a[2] ^ $a[3]; // 2*a0 + 3*a1 + a2 + a3 $s[1][$c] = $a[0] ^ $b[1] ^ $a[2] ^ $b[2] ^ $a[3]; // a0 * 2*a1 + 3*a2 + a3 $s[2][$c] = $a[0] ^ $a[1] ^ $b[2] ^ $a[3] ^ $b[3]; // a0 + a1 + 2*a2 + 3*a3 $s[3][$c] = $a[0] ^ $b[0] ^ $a[1] ^ $a[2] ^ $b[3]; // 3*a0 + a1 + a2 + 2*a3 } return $s; } /** * Key expansion for Rijndael cipher(): performs key expansion on cipher key * to generate a key schedule * * @param key cipher key byte-array (16 bytes) * @return key schedule as 2D byte-array (Nr+1 x Nb bytes) */ public static function keyExpansion($key) { // generate Key Schedule from Cipher Key [é5.2] $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) $Nk = count($key) / 4; // key length (in words): 4/6/8 for 128/192/256-bit keys $Nr = $Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys $w = array(); $temp = array(); for ($i = 0; $i < $Nk; $i++) { $r = array($key[4 * $i], $key[4 * $i + 1], $key[4 * $i + 2], $key[4 * $i + 3]); $w[$i] = $r; } for ($i = $Nk; $i < ($Nb * ($Nr + 1)); $i++) { $w[$i] = array(); for ($t = 0; $t < 4; $t++) { $temp[$t] = $w[$i - 1][$t]; } if ($i % $Nk == 0) { $temp = self::subWord(self::rotWord($temp)); for ($t = 0; $t < 4; $t++) { $temp[$t] ^= self::$rCon[$i / $Nk][$t]; } } elseif ($Nk > 6 && $i % $Nk == 4) { $temp = self::subWord($temp); } for ($t = 0; $t < 4; $t++) { $w[$i][$t] = $w[$i - $Nk][$t] ^ $temp[$t]; } } return $w; } private static function subWord($w) { // apply SBox to 4-byte word w for ($i = 0; $i < 4; $i++) { $w[$i] = self::$sBox[$w[$i]]; } return $w; } private static function rotWord($w) { // rotate 4-byte word w left by one byte $tmp = $w[0]; for ($i = 0; $i < 3; $i++) { $w[$i] = $w[$i + 1]; } $w[3] = $tmp; return $w; } // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [é5.1.1] private static $sBox = array( 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16); // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [é5.2] private static $rCon = array( array(0x00, 0x00, 0x00, 0x00), array(0x01, 0x00, 0x00, 0x00), array(0x02, 0x00, 0x00, 0x00), array(0x04, 0x00, 0x00, 0x00), array(0x08, 0x00, 0x00, 0x00), array(0x10, 0x00, 0x00, 0x00), array(0x20, 0x00, 0x00, 0x00), array(0x40, 0x00, 0x00, 0x00), array(0x80, 0x00, 0x00, 0x00), array(0x1b, 0x00, 0x00, 0x00), array(0x36, 0x00, 0x00, 0x00)); } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES implementation in JavaScript (c) Chris Veness 2005-2010 */ /* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var Aes = {}; // Aes namespace /** * AES Cipher function: encrypt 'input' state with Rijndael algorithm * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage * * @param {Number[]} input 16-byte (128-bit) input state array * @param {Number[][]} w Key schedule as 2D byte-array (Nr+1 x Nb bytes) * @returns {Number[]} Encrypted output state array */ Aes.cipher = function(input, w) { // main Cipher function [§5.1] var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) var Nr = w.length/Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys var state = [[],[],[],[]]; // initialise 4xNb byte-array 'state' with input [§3.4] for (var i=0; i<4*Nb; i++) state[i%4][Math.floor(i/4)] = input[i]; state = Aes.addRoundKey(state, w, 0, Nb); for (var round=1; round<Nr; round++) { state = Aes.subBytes(state, Nb); state = Aes.shiftRows(state, Nb); state = Aes.mixColumns(state, Nb); state = Aes.addRoundKey(state, w, round, Nb); } state = Aes.subBytes(state, Nb); state = Aes.shiftRows(state, Nb); state = Aes.addRoundKey(state, w, Nr, Nb); var output = new Array(4*Nb); // convert state to 1-d array before returning [§3.4] for (var i=0; i<4*Nb; i++) output[i] = state[i%4][Math.floor(i/4)]; return output; } /** * Perform Key Expansion to generate a Key Schedule * * @param {Number[]} key Key as 16/24/32-byte array * @returns {Number[][]} Expanded key schedule as 2D byte-array (Nr+1 x Nb bytes) */ Aes.keyExpansion = function(key) { // generate Key Schedule (byte-array Nr+1 x Nb) from Key [§5.2] var Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) var Nk = key.length/4 // key length (in words): 4/6/8 for 128/192/256-bit keys var Nr = Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys var w = new Array(Nb*(Nr+1)); var temp = new Array(4); for (var i=0; i<Nk; i++) { var r = [key[4*i], key[4*i+1], key[4*i+2], key[4*i+3]]; w[i] = r; } for (var i=Nk; i<(Nb*(Nr+1)); i++) { w[i] = new Array(4); for (var t=0; t<4; t++) temp[t] = w[i-1][t]; if (i % Nk == 0) { temp = Aes.subWord(Aes.rotWord(temp)); for (var t=0; t<4; t++) temp[t] ^= Aes.rCon[i/Nk][t]; } else if (Nk > 6 && i%Nk == 4) { temp = Aes.subWord(temp); } for (var t=0; t<4; t++) w[i][t] = w[i-Nk][t] ^ temp[t]; } return w; } /* * ---- remaining routines are private, not called externally ---- */ Aes.subBytes = function(s, Nb) { // apply SBox to state S [§5.1.1] for (var r=0; r<4; r++) { for (var c=0; c<Nb; c++) s[r][c] = Aes.sBox[s[r][c]]; } return s; } Aes.shiftRows = function(s, Nb) { // shift row r of state S left by r bytes [§5.1.2] var t = new Array(4); for (var r=1; r<4; r++) { for (var c=0; c<4; c++) t[c] = s[r][(c+r)%Nb]; // shift into temp copy for (var c=0; c<4; c++) s[r][c] = t[c]; // and copy back } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): return s; // see asmaes.sourceforge.net/rijndael/rijndaelImplementation.pdf } Aes.mixColumns = function(s, Nb) { // combine bytes of each col of state S [§5.1.3] for (var c=0; c<4; c++) { var a = new Array(4); // 'a' is a copy of the current column from 's' var b = new Array(4); // 'b' is a•{02} in GF(2^8) for (var i=0; i<4; i++) { a[i] = s[i][c]; b[i] = s[i][c]&0x80 ? s[i][c]<<1 ^ 0x011b : s[i][c]<<1; } // a[n] ^ b[n] is a•{03} in GF(2^8) s[0][c] = b[0] ^ a[1] ^ b[1] ^ a[2] ^ a[3]; // 2*a0 + 3*a1 + a2 + a3 s[1][c] = a[0] ^ b[1] ^ a[2] ^ b[2] ^ a[3]; // a0 * 2*a1 + 3*a2 + a3 s[2][c] = a[0] ^ a[1] ^ b[2] ^ a[3] ^ b[3]; // a0 + a1 + 2*a2 + 3*a3 s[3][c] = a[0] ^ b[0] ^ a[1] ^ a[2] ^ b[3]; // 3*a0 + a1 + a2 + 2*a3 } return s; } Aes.addRoundKey = function(state, w, rnd, Nb) { // xor Round Key into state S [§5.1.4] for (var r=0; r<4; r++) { for (var c=0; c<Nb; c++) state[r][c] ^= w[rnd*4+c][r]; } return state; } Aes.subWord = function(w) { // apply SBox to 4-byte word w for (var i=0; i<4; i++) w[i] = Aes.sBox[w[i]]; return w; } Aes.rotWord = function(w) { // rotate 4-byte word w left by one byte var tmp = w[0]; for (var i=0; i<3; i++) w[i] = w[i+1]; w[3] = tmp; return w; } // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [§5.1.1] Aes.sBox = [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, 0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75, 0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84, 0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf, 0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8, 0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2, 0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73, 0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb, 0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79, 0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08, 0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a, 0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e, 0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf, 0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16]; // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] Aes.rCon = [ [0x00, 0x00, 0x00, 0x00], [0x01, 0x00, 0x00, 0x00], [0x02, 0x00, 0x00, 0x00], [0x04, 0x00, 0x00, 0x00], [0x08, 0x00, 0x00, 0x00], [0x10, 0x00, 0x00, 0x00], [0x20, 0x00, 0x00, 0x00], [0x40, 0x00, 0x00, 0x00], [0x80, 0x00, 0x00, 0x00], [0x1b, 0x00, 0x00, 0x00], [0x36, 0x00, 0x00, 0x00] ]; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES Counter-mode implementation in JavaScript (c) Chris Veness 2005-2009 */ /* - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ Aes.Ctr = {}; // Aes.Ctr namespace: a subclass or extension of Aes /** * Encrypt a text using AES encryption in Counter mode of operation * * Unicode multi-byte character safe * * @param {String} plaintext Source text to be encrypted * @param {String} password The password to use to generate a key * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) * @returns {string} Encrypted text */ Aes.Ctr.encrypt = function(plaintext, password, nBits) { var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys plaintext = Utf8.encode(plaintext); password = Utf8.encode(password); //var t = new Date(); // timer // use AES itself to encrypt password to get cipher key (using plain password as source for key // expansion) - gives us well encrypted key var nBytes = nBits/8; // no bytes in key var pwBytes = new Array(nBytes); for (var i=0; i<nBytes; i++) { pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); } var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); // gives us 16-byte key key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in 1st 8 bytes, // block counter in 2nd 8 bytes var counterBlock = new Array(blockSize); var nonce = (new Date()).getTime(); // timestamp: milliseconds since 1-Jan-1970 var nonceSec = Math.floor(nonce/1000); var nonceMs = nonce%1000; // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes for (var i=0; i<4; i++) counterBlock[i] = (nonceSec >>> i*8) & 0xff; for (var i=0; i<4; i++) counterBlock[i+4] = nonceMs & 0xff; // and convert it to a string to go on the front of the ciphertext var ctrTxt = ''; for (var i=0; i<8; i++) ctrTxt += String.fromCharCode(counterBlock[i]); // generate key schedule - an expansion of the key into distinct Key Rounds for each round var keySchedule = Aes.keyExpansion(key); var blockCount = Math.ceil(plaintext.length/blockSize); var ciphertxt = new Array(blockCount); // ciphertext as array of strings for (var b=0; b<blockCount; b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) for (var c=0; c<4; c++) counterBlock[15-c] = (b >>> c*8) & 0xff; for (var c=0; c<4; c++) counterBlock[15-c-4] = (b/0x100000000 >>> c*8) var cipherCntr = Aes.cipher(counterBlock, keySchedule); // -- encrypt counter block -- // block size is reduced on final block var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1; var cipherChar = new Array(blockLength); for (var i=0; i<blockLength; i++) { // -- xor plaintext with ciphered counter char-by-char -- cipherChar[i] = cipherCntr[i] ^ plaintext.charCodeAt(b*blockSize+i); cipherChar[i] = String.fromCharCode(cipherChar[i]); } ciphertxt[b] = cipherChar.join(''); } // Array.join is more efficient than repeated string concatenation in IE var ciphertext = ctrTxt + ciphertxt.join(''); ciphertext = Base64.encode(ciphertext); // encode in base64 //alert((new Date()) - t); return ciphertext; } /** * Decrypt a text encrypted by AES in counter mode of operation * * @param {String} ciphertext Source text to be encrypted * @param {String} password The password to use to generate a key * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) * @returns {String} Decrypted text */ Aes.Ctr.decrypt = function(ciphertext, password, nBits) { var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys ciphertext = Base64.decode(ciphertext); password = Utf8.encode(password); //var t = new Date(); // timer // use AES to encrypt password (mirroring encrypt routine) var nBytes = nBits/8; // no bytes in key var pwBytes = new Array(nBytes); for (var i=0; i<nBytes; i++) { pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i); } var key = Aes.cipher(pwBytes, Aes.keyExpansion(pwBytes)); key = key.concat(key.slice(0, nBytes-16)); // expand key to 16/24/32 bytes long // recover nonce from 1st 8 bytes of ciphertext var counterBlock = new Array(8); ctrTxt = ciphertext.slice(0, 8); for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i); // generate key schedule var keySchedule = Aes.keyExpansion(key); // separate ciphertext into blocks (skipping past initial 8 bytes) var nBlocks = Math.ceil((ciphertext.length-8) / blockSize); var ct = new Array(nBlocks); for (var b=0; b<nBlocks; b++) ct[b] = ciphertext.slice(8+b*blockSize, 8+b*blockSize+blockSize); ciphertext = ct; // ciphertext is now array of block-length strings // plaintext will get generated block-by-block into array of block-length strings var plaintxt = new Array(ciphertext.length); for (var b=0; b<nBlocks; b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) for (var c=0; c<4; c++) counterBlock[15-c] = ((b) >>> c*8) & 0xff; for (var c=0; c<4; c++) counterBlock[15-c-4] = (((b+1)/0x100000000-1) >>> c*8) & 0xff; var cipherCntr = Aes.cipher(counterBlock, keySchedule); // encrypt counter block var plaintxtByte = new Array(ciphertext[b].length); for (var i=0; i<ciphertext[b].length; i++) { // -- xor plaintxt with ciphered counter byte-by-byte -- plaintxtByte[i] = cipherCntr[i] ^ ciphertext[b].charCodeAt(i); plaintxtByte[i] = String.fromCharCode(plaintxtByte[i]); } plaintxt[b] = plaintxtByte.join(''); } // join array of blocks into single plaintext string var plaintext = plaintxt.join(''); plaintext = Utf8.decode(plaintext); // decode from UTF8 back to Unicode multi-byte chars //alert((new Date()) - t); return plaintext; } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Base64 class: Base 64 encoding / decoding (c) Chris Veness 2002-2010 */ /* note: depends on Utf8 class */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var Base64 = {}; // Base64 namespace Base64.code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; /** * Encode string into Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] * (instance method extending String object). As per RFC 4648, no newlines are added. * * @param {String} str The string to be encoded as base-64 * @param {Boolean} [utf8encode=false] Flag to indicate whether str is Unicode string to be encoded * to UTF8 before conversion to base64; otherwise string is assumed to be 8-bit characters * @returns {String} Base64-encoded string */ Base64.encode = function(str, utf8encode) { // http://tools.ietf.org/html/rfc4648 utf8encode = (typeof utf8encode == 'undefined') ? false : utf8encode; var o1, o2, o3, bits, h1, h2, h3, h4, e=[], pad = '', c, plain, coded; var b64 = Base64.code; plain = utf8encode ? str.encodeUTF8() : str; c = plain.length % 3; // pad string to length of multiple of 3 if (c > 0) { while (c++ < 3) { pad += '='; plain += '\0'; } } // note: doing padding here saves us doing special-case packing for trailing 1 or 2 chars for (c=0; c<plain.length; c+=3) { // pack three octets into four hexets o1 = plain.charCodeAt(c); o2 = plain.charCodeAt(c+1); o3 = plain.charCodeAt(c+2); bits = o1<<16 | o2<<8 | o3; h1 = bits>>18 & 0x3f; h2 = bits>>12 & 0x3f; h3 = bits>>6 & 0x3f; h4 = bits & 0x3f; // use hextets to index into code string e[c/3] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); } coded = e.join(''); // join() is far faster than repeated string concatenation in IE // replace 'A's from padded nulls with '='s coded = coded.slice(0, coded.length-pad.length) + pad; return coded; } /** * Decode string from Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648] * (instance method extending String object). As per RFC 4648, newlines are not catered for. * * @param {String} str The string to be decoded from base-64 * @param {Boolean} [utf8decode=false] Flag to indicate whether str is Unicode string to be decoded * from UTF8 after conversion from base64 * @returns {String} decoded string */ Base64.decode = function(str, utf8decode) { utf8decode = (typeof utf8decode == 'undefined') ? false : utf8decode; var o1, o2, o3, h1, h2, h3, h4, bits, d=[], plain, coded; var b64 = Base64.code; coded = utf8decode ? str.decodeUTF8() : str; for (var c=0; c<coded.length; c+=4) { // unpack four hexets into three octets h1 = b64.indexOf(coded.charAt(c)); h2 = b64.indexOf(coded.charAt(c+1)); h3 = b64.indexOf(coded.charAt(c+2)); h4 = b64.indexOf(coded.charAt(c+3)); bits = h1<<18 | h2<<12 | h3<<6 | h4; o1 = bits>>>16 & 0xff; o2 = bits>>>8 & 0xff; o3 = bits & 0xff; d[c/4] = String.fromCharCode(o1, o2, o3); // check for padding if (h4 == 0x40) d[c/4] = String.fromCharCode(o1, o2); if (h3 == 0x40) d[c/4] = String.fromCharCode(o1); } plain = d.join(''); // join() is far faster than repeated string concatenation in IE return utf8decode ? plain.decodeUTF8() : plain; } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Utf8 class: encode / decode between multi-byte Unicode characters and UTF-8 multiple */ /* single-byte character encoding (c) Chris Veness 2002-2010 */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var Utf8 = {}; // Utf8 namespace /** * Encode multi-byte Unicode string into utf-8 multiple single-byte characters * (BMP / basic multilingual plane only) * * Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars * * @param {String} strUni Unicode string to be encoded as UTF-8 * @returns {String} encoded string */ Utf8.encode = function(strUni) { // use regular expressions & String.replace callback function for better efficiency // than procedural approaches var strUtf = strUni.replace( /[\u0080-\u07ff]/g, // U+0080 - U+07FF => 2 bytes 110yyyyy, 10zzzzzz function(c) { var cc = c.charCodeAt(0); return String.fromCharCode(0xc0 | cc>>6, 0x80 | cc&0x3f); } ); strUtf = strUtf.replace( /[\u0800-\uffff]/g, // U+0800 - U+FFFF => 3 bytes 1110xxxx, 10yyyyyy, 10zzzzzz function(c) { var cc = c.charCodeAt(0); return String.fromCharCode(0xe0 | cc>>12, 0x80 | cc>>6&0x3F, 0x80 | cc&0x3f); } ); return strUtf; } /** * Decode utf-8 encoded string back into multi-byte Unicode characters * * @param {String} strUtf UTF-8 string to be decoded back to Unicode * @returns {String} decoded string */ Utf8.decode = function(strUtf) { // note: decode 3-byte chars first as decoded 2-byte strings could appear to be 3-byte char! var strUni = strUtf.replace( /[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, // 3-byte chars function(c) { // (note parentheses for precence) var cc = ((c.charCodeAt(0)&0x0f)<<12) | ((c.charCodeAt(1)&0x3f)<<6) | ( c.charCodeAt(2)&0x3f); return String.fromCharCode(cc); } ); strUni = strUni.replace( /[\u00c0-\u00df][\u0080-\u00bf]/g, // 2-byte chars function(c) { // (note parentheses for precence) var cc = (c.charCodeAt(0)&0x1f)<<6 | c.charCodeAt(1)&0x3f; return String.fromCharCode(cc); } ); return strUni; } <?php /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES counter (CTR) mode implementation in PHP (c) Chris Veness 2005-2010. Right of free use is */ /* granted for all commercial or non-commercial use under CC-BY licence. No warranty of any */ /* form is offered. */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ class AesCtr extends Aes { /** * Encrypt a text using AES encryption in Counter mode of operation * - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf * * Unicode multi-byte character safe * * @param plaintext source text to be encrypted * @param password the password to use to generate a key * @param nBits number of bits to be used in the key (128, 192, or 256) * @return string text */ public static function encrypt($plaintext, $password, $nBits) { $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { return ''; } // standard allows 128/192/256 bit keys // note PHP (5) gives us plaintext and password in UTF8 encoding! // use AES itself to encrypt password to get cipher key (using plain password as source for // key expansion) - gives us well encrypted key $nBytes = $nBits / 8; // no bytes in key $pwBytes = array(); for ($i = 0; $i < $nBytes; $i++) { $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; } $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in // 1st 8 bytes, block counter in 2nd 8 bytes $counterBlock = array(); $nonce = floor(microtime(true) * 1000); // timestamp: milliseconds since 1-Jan-1970 $nonceSec = floor($nonce / 1000); $nonceMs = $nonce % 1000; // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes for ($i = 0; $i < 4; $i++) { $counterBlock[$i] = self::urs($nonceSec, $i * 8) & 0xff; } for ($i = 0; $i < 4; $i++) { $counterBlock[$i + 4] = $nonceMs & 0xff; } // and convert it to a string to go on the front of the ciphertext $ctrTxt = ''; for ($i = 0; $i < 8; $i++) { $ctrTxt .= chr($counterBlock[$i]); } // generate key schedule - an expansion of the key into distinct Key Rounds for each round $keySchedule = Aes::keyExpansion($key); //print_r($keySchedule); $blockCount = ceil(strlen($plaintext) / $blockSize); $ciphertxt = array(); // ciphertext as array of strings for ($b = 0; $b < $blockCount; $b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; } for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c - 4] = self::urs($b / 0x100000000, $c * 8); } $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // -- encrypt counter block -- // block size is reduced on final block $blockLength = $b < $blockCount - 1 ? $blockSize : (strlen($plaintext) - 1) % $blockSize + 1; $cipherByte = array(); for ($i = 0; $i < $blockLength; $i++) { // -- xor plaintext with ciphered counter byte-by-byte -- $cipherByte[$i] = $cipherCntr[$i] ^ ord(substr($plaintext, $b * $blockSize + $i, 1)); $cipherByte[$i] = chr($cipherByte[$i]); } $ciphertxt[$b] = implode('', $cipherByte); // escape troublesome characters in ciphertext } // implode is more efficient than repeated string concatenation $ciphertext = $ctrTxt.implode('', $ciphertxt); $ciphertext = base64_encode($ciphertext); return $ciphertext; } /** * Decrypt a text encrypted by AES in counter mode of operation * * @param ciphertext source text to be decrypted * @param password the password to use to generate a key * @param nBits number of bits to be used in the key (128, 192, or 256) * @return string text */ public static function decrypt($ciphertext, $password, $nBits) { $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { return ''; } // standard allows 128/192/256 bit keys $ciphertext = base64_decode($ciphertext); // use AES to encrypt password (mirroring encrypt routine) $nBytes = $nBits / 8; // no bytes in key $pwBytes = array(); for ($i = 0; $i < $nBytes; $i++) { $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; } $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long // recover nonce from 1st element of ciphertext $counterBlock = array(); $ctrTxt = substr($ciphertext, 0, 8); for ($i = 0; $i < 8; $i++) { $counterBlock[$i] = ord(substr($ctrTxt, $i, 1)); } // generate key schedule $keySchedule = Aes::keyExpansion($key); // separate ciphertext into blocks (skipping past initial 8 bytes) $nBlocks = ceil((strlen($ciphertext) - 8) / $blockSize); $ct = array(); for ($b = 0; $b < $nBlocks; $b++) { $ct[$b] = substr($ciphertext, 8 + $b * $blockSize, 16); } $ciphertext = $ct; // ciphertext is now array of block-length strings // plaintext will get generated block-by-block into array of block-length strings $plaintxt = array(); for ($b = 0; $b < $nBlocks; $b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; } for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c - 4] = self::urs(($b + 1) / 0x100000000 - 1, $c * 8) & 0xff; } $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // encrypt counter block $plaintxtByte = array(); for ($i = 0; $i < strlen($ciphertext[$b]); $i++) { // -- xor plaintext with ciphered counter byte-by-byte -- $plaintxtByte[$i] = $cipherCntr[$i] ^ ord(substr($ciphertext[$b], $i, 1)); $plaintxtByte[$i] = chr($plaintxtByte[$i]); } $plaintxt[$b] = implode('', $plaintxtByte); } // join array of blocks into single plaintext string $plaintext = implode('', $plaintxt); return $plaintext; } /* * Unsigned right shift function, since PHP has neither >>> operator nor unsigned ints * * @param a number to be shifted (32-bit integer) * @param b number of bits to shift a to the right (0..31) * @return a right-shifted and zero-filled by b bits */ private static function urs($a, $b) { $a &= 0xffffffff; $b &= 0x1f; // (bounds check) if ($a & 0x80000000 && $b > 0) { // if left-most bit set $a = ($a >> 1) & 0x7fffffff; // right-shift one bit & clear left-most bit $a = $a >> ($b - 1); // remaining right-shifts } else { // otherwise $a = ($a >> $b); // use normal right-shift } return $a; } } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /*! * jQuery UI 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */ (function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16", keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d= this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this, "overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart": "mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight, outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a, "tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&& a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&& c.ui.isOverAxis(b,e,i)}})}})(jQuery); ;/*! * jQuery UI Widget 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Widget */ (function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]= function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)): d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options= b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+ "-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled", c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery); ;/*! * jQuery UI Mouse 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Mouse * * Depends: * jquery.ui.widget.js */ (function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+ this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted= this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&& !(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted= false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); ;/* * jQuery UI Position 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Position */ (function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY, left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+= k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-= m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left= d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+= a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b), g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery); ;/* * jQuery UI Draggable 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Draggables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper== "original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b= this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;if(b.iframeFix)d(b.iframeFix===true?"iframe":b.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")});return true},_mouseStart:function(a){var b=this.options; this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}); this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return true}, _mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b= false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration, 10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},_mouseUp:function(a){this.options.iframeFix===true&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle|| !d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&& a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent= this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"), 10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"), 10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[a.containment=="document"?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a.containment=="document"?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top, (a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){a=d(a.containment);var b=a[0];if(b){a.offset();var c=d(b).css("overflow")!= "hidden";this.containment=[(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"), 10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+ this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&& !(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(this.containment){if(this.relative_container){g=this.relative_container.offset();g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]}else g=this.containment;if(a.pageX-this.offset.click.left<g[0])e=g[0]+this.offset.click.left; if(a.pageY-this.offset.click.top<g[1])h=g[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>g[2])e=g[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>g[3])h=g[3]+this.offset.click.top}if(b.grid){h=b.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY;h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-b.grid[1]:h+b.grid[1]:h;e=b.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/ b.grid[0])*b.grid[0]:this.originalPageX;e=g?!(e-this.offset.click.left<g[0]||e-this.offset.click.left>g[2])?e:!(e-this.offset.click.left<g[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version< 526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b, c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.16"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var h=d.data(this,"sortable");if(h&&!h.options.disabled){c.sortables.push({instance:h,shouldRevert:h.options.revert}); h.refreshPositions();h._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval= false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true); this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top; c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&& this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity= a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!= "x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-b.overflowOffset.left< c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()- c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this, width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,h=b.offset.left,g=h+c.helperProportions.width,n=b.offset.top,o=n+c.helperProportions.height,i=c.snapElements.length-1;i>=0;i--){var j=c.snapElements[i].left,l=j+c.snapElements[i].width,k=c.snapElements[i].top,m=k+c.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&& o<m+e){if(f.snapMode!="inner"){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-g)<=e,s=Math.abs(l-h)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l}).left-c.margins.left}var t= p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(k-n)<=e;q=Math.abs(m-o)<=e;r=Math.abs(j-h)<=e;s=Math.abs(l-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[i].snapping&& (p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=p||q||r||s||t}else{c.snapElements[i].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"), 10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery); ;/* * jQuery UI Droppable 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Droppables * * Depends: * jquery.ui.core.js * jquery.ui.widget.js * jquery.ui.mouse.js * jquery.ui.draggable.js */ (function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this); a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&& this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass); this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g= d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop", a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.16"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height; switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>= i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!= "none";if(c[f].visible){e=="mousedown"&&c[f]._activate.call(c[f],b);c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight}}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem|| a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},dragStart:function(a,b){a.element.parents(":not(body,html)").bind("scroll.droppable",function(){a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)})},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance); if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})},dragStop:function(a,b){a.element.parents(":not(body,html)").unbind("scroll.droppable"); a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)}}})(jQuery); ;/* * jQuery UI Resizable 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Resizables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function(e){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element, _proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(), top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle= this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne", nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){if(!a.disabled){e(this).removeClass("ui-resizable-autohide");b._handles.show()}},function(){if(!a.disabled)if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy(); var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a= false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"}); this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff= {width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis]; if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false}, _mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f, {top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(b){var a=this.options,c,d,f;a={minWidth:k(a.minWidth)?a.minWidth:0,maxWidth:k(a.maxWidth)?a.maxWidth:Infinity,minHeight:k(a.minHeight)?a.minHeight:0,maxHeight:k(a.maxHeight)?a.maxHeight: Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(c<a.maxWidth)a.maxWidth=c;if(f<a.maxHeight)a.maxHeight=f}this._vBoundaries=a},_updateCache:function(b){this.offset=this.helper.offset();if(k(b.left))this.position.left=b.left;if(k(b.top))this.position.top=b.top;if(k(b.height))this.size.height=b.height;if(k(b.width))this.size.width= b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(k(b.height))b.width=b.height*this.aspectRatio;else if(k(b.width))b.height=b.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top=a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this._vBoundaries,c=this.axis,d=k(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=k(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=k(b.width)&&a.minWidth&& a.minWidth>b.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&l)b.left=i-a.minWidth;if(d&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left= null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)|| 0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+ a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+ c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]); b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.16"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(), 10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top- f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var l=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:l.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(l.css("position"))){c._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType? e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a= e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing, step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement= e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset; var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left: a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top- d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition, f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25, display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b= e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height= d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery); ;/* * jQuery UI Selectable 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Selectables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"), selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX, c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting", c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d= this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting"); a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&& !a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d= e.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:"1.8.16"})})(jQuery); ;/* * jQuery UI Sortable 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Sortables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable"); this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a=== "disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&& !b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top, left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]}; this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!= document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a); return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top< b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()- b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this, a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0], e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset(); c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"): this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null, dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")}, toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers|| this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection(); var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)}, _getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith(); if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element), this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&& this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b];if(!(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])){var e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b= this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f= d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")|| 0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out", a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h- f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b= this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width== ""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top= this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a= {top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"), 10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"? document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"), 10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b= this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&& this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset(); var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g- this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g- this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0], this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]= "";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove", f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this, this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop", a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()}, _uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.16"})})(jQuery); ;/* * jQuery UI Accordion 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Accordion * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */ (function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion", function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a= this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"); this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(), e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight|| e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false", "aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16", animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/); f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide", paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); ;/* * jQuery UI Autocomplete 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Autocomplete * * Depends: * jquery.ui.core.js * jquery.ui.widget.js * jquery.ui.position.js */ (function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.propAttr("readOnly"))){g= false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!= a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)}; this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&& a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"); d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&& b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source= this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close(); this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label|| b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new d.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this; d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery); (function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex", -1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id"); this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b, this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[d.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery); ;/* * jQuery UI Button 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Button * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */ (function(b){var h,i,j,g,l=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},k=function(a){var c=a.name,e=a.form,f=b([]);if(c)f=e?b(e).find("[name='"+c+"']"):b("[name='"+c+"']",a.ownerDocument).filter(function(){return!this.form});return f};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",l);if(typeof this.options.disabled!== "boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var a=this,c=this.options,e=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!e?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!c.disabled){b(this).addClass("ui-state-hover"); this===h&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||b(this).removeClass(f)}).bind("click.button",function(d){if(c.disabled){d.preventDefault();d.stopImmediatePropagation()}});this.element.bind("focus.button",function(){a.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){a.buttonElement.removeClass("ui-state-focus")});if(e){this.element.bind("change.button",function(){g||a.refresh()});this.buttonElement.bind("mousedown.button",function(d){if(!c.disabled){g= false;i=d.pageX;j=d.pageY}}).bind("mouseup.button",function(d){if(!c.disabled)if(i!==d.pageX||j!==d.pageY)g=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).addClass("ui-state-active");a.buttonElement.attr("aria-pressed","true"); var d=a.element[0];k(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;b(this).addClass("ui-state-active");h=this;b(document).one("mouseup",function(){h=null})}).bind("mouseup.button",function(){if(c.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(d){if(c.disabled)return false;if(d.keyCode==b.ui.keyCode.SPACE|| d.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(d){d.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",c.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type=== "radio"){var a=this.element.parents().filter(":last"),c="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(c);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(c);if(!this.buttonElement.length)this.buttonElement=a.find(c)}this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=this.element}, widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title"); b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,arguments);if(a==="disabled")c?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);if(this.type==="radio")k(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed", "true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"), c=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),e=this.options.icons,f=e.primary&&e.secondary,d=[];if(e.primary||e.secondary){if(this.options.text)d.push("ui-button-text-icon"+(f?"s":e.primary?"-primary":"-secondary"));e.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>");e.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>");if(!this.options.text){d.push(f?"ui-button-icons-only": "ui-button-icon-only");this.hasTitle||a.attr("title",c)}}else d.push("ui-button-text-only");a.addClass(d.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){a==="disabled"&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a=this.element.css("direction")=== "ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(a?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"); b.Widget.prototype.destroy.call(this)}})})(jQuery); ;/* * jQuery UI Dialog 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Dialog * * Depends: * jquery.ui.core.js * jquery.ui.widget.js * jquery.ui.button.js * jquery.ui.draggable.js * jquery.ui.mouse.js * jquery.ui.position.js * jquery.ui.resizable.js */ (function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||"&#160;",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id", e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1; d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('<button type="button"></button>').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): [a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()|| c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&& c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+ "px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery); ;/* * jQuery UI Tabs 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Tabs * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */ (function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| (q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= -1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, "cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.16"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&& a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery); ;/* * jQuery UI Datepicker 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Datepicker * * Depends: * jquery.ui.core.js */ (function(d,C){function M(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass= "ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su", "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10", minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout", function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"); b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.16"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv}, setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g, "\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker", function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c== "focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker(): d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a, b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+= 1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/ 2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b= d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e= a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a, "datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f== a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"? d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C)e.settings.minDate=this._formatDate(e,i);if(g!==null&&f.dateFormat!==C&&f.maxDate===C)e.settings.maxDate=this._formatDate(e,g);this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e); this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl"); b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]&&d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]);if(a=d.datepicker._get(b,"onSelect")){c=d.datepicker._formatDate(b);a.apply(b.input?b.input[0]:null,[c,b])}else d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target, a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c= a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b, "stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode); return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input", a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");c=c?c.apply(a,[a,b]):{};if(c!==false){H(b.settings,c);b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value= "";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b); c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing= true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}); a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&& !a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(), h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b= this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b)b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b); this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")}, _checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"): 0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"? "Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a); this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField"); if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"? b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1<a.length&&a.charAt(A+1)==p)&&A++;return p},m=function(p){var D= o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p)throw"Missing number at position "+q;q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return-(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1)return E+1;else throw"Unknown name at position "+q;},s= function(){if(b.charAt(q)!=a.charAt(A))throw"Unexpected literal at position "+q;q++},q=0,A=0;A<a.length;A++)if(k)if(a.charAt(A)=="'"&&!o("'"))k=false;else s();else switch(a.charAt(A)){case "d":l=m("d");break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":j=m("m");break;case "M":j=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();j=v.getMonth()+ 1;l=v.getDate();break;case "'":if(o("'"))s();else k=true;break;default:s()}if(q<b.length)throw"Extra/unparsed characters found in date: "+b.substring(q);if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd", COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames: null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]},l="",u=false;if(b)for(var k=0;k<a.length;k++)if(u)if(a.charAt(k)=="'"&&!i("'"))u=false;else l+=a.charAt(k);else switch(a.charAt(k)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=j("D",b.getDay(),e,f);break;case "o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()- (new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=j("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+="'";else u=true;break;default:l+=a.charAt(k)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f= 0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a); var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date; i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case "d":case "D":g+=parseInt(k[1],10);break;case "w":case "W":g+=parseInt(k[1],10)*7;break;case "m":case "M":l+=parseInt(k[1],10);g= Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case "y":case "Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()> 12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&& a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay? new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a)); n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m, g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&& a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+B+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+ B+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O= "";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&& x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay, z);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()== P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+B+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?"&#xa0;":L?'<span class="ui-state-default">'+ r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>': "");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&& (!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b, e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?"&#xa0;":"")+o;k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+ (c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input? a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c, e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a, "dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length)return this; if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));return this.each(function(){typeof a== "string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.16";window["DP_jQuery_"+B]=d})(jQuery); ;/* * jQuery UI Progressbar 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Progressbar * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */ (function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100* this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.16"})})(jQuery); ;/* * jQuery UI Effects 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/ */ jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], 16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor", "borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0, 0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211, 211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b, d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})}; f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this, [{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.16",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b= 0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}), d=document.activeElement;c.wrap(b);if(c[0]===d||f.contains(c[0],d))f(d).focus();b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(e,g){a[g]=c.css(g);if(isNaN(parseInt(a[g],10)))a[g]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){var a,b=document.activeElement; if(c.parent().is(".ui-effects-wrapper")){a=c.parent().replaceWith(c);if(c[0]===b||f.contains(c[0],b))f(b).focus();return a}return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)}); return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this, arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/ 2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b, d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c, a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b, d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g= 0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158; if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c, a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery); ;/* * jQuery UI Effects Blind 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Blind * * Depends: * jquery.effects.core.js */ (function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a, g);b.effects.removeWrapper(a);c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery); ;/* * jQuery UI Effects Drop 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Drop * * Depends: * jquery.effects.core.js */ (function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e== "show"?1:0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); ;/* * jQuery UI Effects Fade 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Fade * * Depends: * jquery.effects.core.js */ (function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); ;/* * jQuery UI Effects Slide 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Slide * * Depends: * jquery.effects.core.js */ (function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e); var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); ;/* * jQuery UI Effects Transfer 1.8.16 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/Transfer * * Depends: * jquery.effects.core.js */ (function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments); b.dequeue()})})}})(jQuery); ; /*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Thu Jun 30 14:16:56 2011 -0400 */ (function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bC.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bR,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bX(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bX(a,c,d,e,"*",g));return l}function bW(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bN),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bA(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bv:bw;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bg(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function W(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(x,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(H)return H.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g](h)}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/\:|^on/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i. shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,N(a.origType,a.selector),f.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?E:D):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E,this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},G=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?G:F,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?G:F)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&f(b).closest("form").length&&K("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&K("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var H,I=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var L={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||D,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=x.exec(h),k="",j&&(k=j[0],h=h.replace(x,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,L[h]?(a.push(L[h]+k),h=h+k):h=(L[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+N(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+N(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var O=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#\[\.,]*$/,S=Array.prototype.slice,T=f.expr.match.POS,U={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(W(this,a,!1),"not",a)},filter:function(a){return this.pushStack(W(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=T.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/<tbody/i,ba=/<|&#?\w+;/,bb=/<(?:script|object|embed|option|style)/i,bc=/checked\s*(?:[^=]|=\s*.checked.)/i,bd=/\/(java|ecma)script/i,be=/^\s*<!(?:\[CDATA\[|\-\-)/,bf={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bc.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bg(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bm)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!bb.test(a[0])&&(f.support.checkClone||!bc.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j )}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1></$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bl(k[i]);else bl(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bd.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bn=/alpha\([^)]*\)/i,bo=/opacity=([^)]*)/,bp=/([A-Z]|^ms)/g,bq=/^-?\d+(?:px)?$/i,br=/^-?\d/,bs=/^[+\-]=/,bt=/[^+\-\.\de]+/g,bu={position:"absolute",visibility:"hidden",display:"block"},bv=["Left","Right"],bw=["Top","Bottom"],bx,by,bz;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bx(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d;if(h==="number"&&isNaN(d)||d==null)return;h==="string"&&bs.test(d)&&(d=+d.replace(bt,"")+parseFloat(f.css(a,c)),h="number"),h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bx)return bx(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bA(a,b,d);f.swap(a,bu,function(){e=bA(a,b,d)});return e}},set:function(a,b){if(!bq.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cs(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cr("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cr("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cs(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cr("show",1),slideUp:cr("hide",1),slideToggle:cr("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cn||cp(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!cl&&(co?(cl=!0,g=function(){cl&&(co(g),e.tick())},co(g)):cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||cp(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var ct=/^t(?:able|d|h)$/i,cu=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cv(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!ct.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); <?php namespace Encryption\Crypt; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES counter (CTR) mode implementation in PHP (c) Chris Veness 2005-2010. Right of free use is */ /* granted for all commercial or non-commercial use under CC-BY licence. No warranty of any */ /* form is offered. */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ class Aes { /** * AES Cipher function: encrypt 'input' with Rijndael algorithm * * @param input message as byte-array (16 bytes) * @param w key schedule as 2D byte-array (Nr+1 x Nb bytes) - * generated from the cipher key by keyExpansion() * @return ciphertext as byte-array (16 bytes) */ public static function cipher($input, $w) { // main cipher function [é5.1] $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) $Nr = count($w) / $Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys $state = array(); // initialise 4xNb byte-array 'state' with input [é3.4] for ($i = 0; $i < 4 * $Nb; $i++) { $state[$i % 4][floor($i / 4)] = $input[$i]; } $state = self::addRoundKey($state, $w, 0, $Nb); for ($round = 1; $round < $Nr; $round++) { // apply Nr rounds $state = self::subBytes($state, $Nb); $state = self::shiftRows($state, $Nb); $state = self::mixColumns($state, $Nb); $state = self::addRoundKey($state, $w, $round, $Nb); } $state = self::subBytes($state, $Nb); $state = self::shiftRows($state, $Nb); $state = self::addRoundKey($state, $w, $Nr, $Nb); $output = array(4 * $Nb); // convert state to 1-d array before returning [é3.4] for ($i = 0; $i < 4 * $Nb; $i++) { $output[$i] = $state[$i % 4][floor($i / 4)]; } return $output; } /** * @param integer $rnd * @param integer $Nb */ private static function addRoundKey($state, $w, $rnd, $Nb) { // xor Round Key into state S [é5.1.4] for ($r = 0; $r < 4; $r++) { for ($c = 0; $c < $Nb; $c++) { $state[$r][$c] ^= $w[$rnd * 4 + $c][$r]; } } return $state; } /** * @param integer $Nb */ private static function subBytes($s, $Nb) { // apply SBox to state S [é5.1.1] for ($r = 0; $r < 4; $r++) { for ($c = 0; $c < $Nb; $c++) { $s[$r][$c] = self::$sBox[$s[$r][$c]]; } } return $s; } /** * @param integer $Nb */ private static function shiftRows($s, $Nb) { // shift row r of state S left by r bytes [é5.1.2] $t = array(4); for ($r = 1; $r < 4; $r++) { for ($c = 0; $c < 4; $c++) { $t[$c] = $s[$r][($c + $r) % $Nb]; // shift into temp copy } for ($c = 0; $c < 4; $c++) { $s[$r][$c] = $t[$c]; // and copy back } } // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES): return $s; // see fp.gladman.plus.com/cryptography_technology/rijndael/aes.spec.311.pdf } /** * @param integer $Nb */ private static function mixColumns($s, $Nb) { // combine bytes of each col of state S [é5.1.3] for ($c = 0; $c < 4; $c++) { $a = array(4); // 'a' is a copy of the current column from 's' $b = array(4); // 'b' is aé{02} in GF(2^8) for ($i = 0; $i < 4; $i++) { $a[$i] = $s[$i][$c]; $b[$i] = $s[$i][$c] & 0x80 ? $s[$i][$c] << 1 ^ 0x011b : $s[$i][$c] << 1; } // a[n] ^ b[n] is aé{03} in GF(2^8) $s[0][$c] = $b[0] ^ $a[1] ^ $b[1] ^ $a[2] ^ $a[3]; // 2*a0 + 3*a1 + a2 + a3 $s[1][$c] = $a[0] ^ $b[1] ^ $a[2] ^ $b[2] ^ $a[3]; // a0 * 2*a1 + 3*a2 + a3 $s[2][$c] = $a[0] ^ $a[1] ^ $b[2] ^ $a[3] ^ $b[3]; // a0 + a1 + 2*a2 + 3*a3 $s[3][$c] = $a[0] ^ $b[0] ^ $a[1] ^ $a[2] ^ $b[3]; // 3*a0 + a1 + a2 + 2*a3 } return $s; } /** * Key expansion for Rijndael cipher(): performs key expansion on cipher key * to generate a key schedule * * @param key cipher key byte-array (16 bytes) * @return key schedule as 2D byte-array (Nr+1 x Nb bytes) */ public static function keyExpansion($key) { // generate Key Schedule from Cipher Key [é5.2] $Nb = 4; // block size (in words): no of columns in state (fixed at 4 for AES) $Nk = count($key) / 4; // key length (in words): 4/6/8 for 128/192/256-bit keys $Nr = $Nk + 6; // no of rounds: 10/12/14 for 128/192/256-bit keys $w = array(); $temp = array(); for ($i = 0; $i < $Nk; $i++) { $r = array($key[4 * $i], $key[4 * $i + 1], $key[4 * $i + 2], $key[4 * $i + 3]); $w[$i] = $r; } for ($i = $Nk; $i < ($Nb * ($Nr + 1)); $i++) { $w[$i] = array(); for ($t = 0; $t < 4; $t++) { $temp[$t] = $w[$i - 1][$t]; } if ($i % $Nk == 0) { $temp = self::subWord(self::rotWord($temp)); for ($t = 0; $t < 4; $t++) { $temp[$t] ^= self::$rCon[$i / $Nk][$t]; } } elseif ($Nk > 6 && $i % $Nk == 4) { $temp = self::subWord($temp); } for ($t = 0; $t < 4; $t++) { $w[$i][$t] = $w[$i - $Nk][$t] ^ $temp[$t]; } } return $w; } private static function subWord($w) { // apply SBox to 4-byte word w for ($i = 0; $i < 4; $i++) { $w[$i] = self::$sBox[$w[$i]]; } return $w; } private static function rotWord($w) { // rotate 4-byte word w left by one byte $tmp = $w[0]; for ($i = 0; $i < 3; $i++) { $w[$i] = $w[$i + 1]; } $w[3] = $tmp; return $w; } // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [é5.1.1] private static $sBox = array( 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16 ); // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [é5.2] private static $rCon = array( array(0x00, 0x00, 0x00, 0x00), array(0x01, 0x00, 0x00, 0x00), array(0x02, 0x00, 0x00, 0x00), array(0x04, 0x00, 0x00, 0x00), array(0x08, 0x00, 0x00, 0x00), array(0x10, 0x00, 0x00, 0x00), array(0x20, 0x00, 0x00, 0x00), array(0x40, 0x00, 0x00, 0x00), array(0x80, 0x00, 0x00, 0x00), array(0x1b, 0x00, 0x00, 0x00), array(0x36, 0x00, 0x00, 0x00) ); } class aesctr extends Aes { /** * Encrypt a text using AES encryption in Counter mode of operation * - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf * * Unicode multi-byte character safe * * @param plaintext string text to be encrypted * @param password the password to use to generate a key * @param nBits integer of bits to be used in the key (128, 192, or 256) * @return string text */ public static function encrypt($plaintext, $password, $nBits) { $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { return ''; // standard allows 128/192/256 bit keys } // note PHP (5) gives us plaintext and password in UTF8 encoding! // use AES itself to encrypt password to get cipher key (using plain password as source for // key expansion) - gives us well encrypted key $nBytes = $nBits / 8; // no bytes in key $pwBytes = array(); for ($i = 0; $i < $nBytes; $i++) { $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; } $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long // initialise counter block (NIST SP800-38A §B.2): millisecond time-stamp for nonce in // 1st 8 bytes, block counter in 2nd 8 bytes $counterBlock = array(); $nonce = floor(microtime(true) * 1000); // timestamp: milliseconds since 1-Jan-1970 $nonceSec = floor($nonce / 1000); $nonceMs = $nonce % 1000; // encode nonce with seconds in 1st 4 bytes, and (repeated) ms part filling 2nd 4 bytes for ($i = 0; $i < 4; $i++) { $counterBlock[$i] = self::urs($nonceSec, $i * 8) & 0xff; } for ($i = 0; $i < 4; $i++) { $counterBlock[$i + 4] = $nonceMs & 0xff; } // and convert it to a string to go on the front of the ciphertext $ctrTxt = ''; for ($i = 0; $i < 8; $i++) { $ctrTxt .= chr($counterBlock[$i]); } // generate key schedule - an expansion of the key into distinct Key Rounds for each round $keySchedule = Aes::keyExpansion($key); $blockCount = ceil(strlen($plaintext) / $blockSize); $ciphertxt = array(); // ciphertext as array of strings for ($b = 0; $b < $blockCount; $b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB) for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; } for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c - 4] = self::urs($b / 0x100000000, $c * 8); } $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // -- encrypt counter block -- // block size is reduced on final block $blockLength = $b < $blockCount - 1 ? $blockSize : (strlen($plaintext) - 1) % $blockSize + 1; $cipherByte = array(); for ($i = 0; $i < $blockLength; $i++) { // -- xor plaintext with ciphered counter byte-by-byte -- $cipherByte[$i] = $cipherCntr[$i] ^ ord(substr($plaintext, $b * $blockSize + $i, 1)); $cipherByte[$i] = chr($cipherByte[$i]); } $ciphertxt[$b] = implode('', $cipherByte); // escape troublesome characters in ciphertext } // implode is more efficient than repeated string concatenation $ciphertext = $ctrTxt.implode('', $ciphertxt); $ciphertext = base64_encode($ciphertext); return $ciphertext; } /** * Decrypt a text encrypted by AES in counter mode of operation * * @param ciphertext source text to be decrypted * @param password the password to use to generate a key * @param nBits integer of bits to be used in the key (128, 192, or 256) * @return string text */ public static function decrypt($ciphertext, $password, $nBits) { $blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES if (!($nBits == 128 || $nBits == 192 || $nBits == 256)) { return ''; // standard allows 128/192/256 bit keys } $ciphertext = base64_decode($ciphertext); // use AES to encrypt password (mirroring encrypt routine) $nBytes = $nBits / 8; // no bytes in key $pwBytes = array(); for ($i = 0; $i < $nBytes; $i++) { $pwBytes[$i] = ord(substr($password, $i, 1)) & 0xff; } $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes)); $key = array_merge($key, array_slice($key, 0, $nBytes - 16)); // expand key to 16/24/32 bytes long // recover nonce from 1st element of ciphertext $counterBlock = array(); $ctrTxt = substr($ciphertext, 0, 8); for ($i = 0; $i < 8; $i++) { $counterBlock[$i] = ord(substr($ctrTxt, $i, 1)); } // generate key schedule $keySchedule = Aes::keyExpansion($key); // separate ciphertext into blocks (skipping past initial 8 bytes) $nBlocks = ceil((strlen($ciphertext) - 8) / $blockSize); $ct = array(); for ($b = 0; $b < $nBlocks; $b++) { $ct[$b] = substr($ciphertext, 8 + $b * $blockSize, 16); } $ciphertext = $ct; // ciphertext is now array of block-length strings // plaintext will get generated block-by-block into array of block-length strings $plaintxt = array(); for ($b = 0; $b < $nBlocks; $b++) { // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes) for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c] = self::urs($b, $c * 8) & 0xff; } for ($c = 0; $c < 4; $c++) { $counterBlock[15 - $c - 4] = self::urs(($b + 1) / 0x100000000 - 1, $c * 8) & 0xff; } $cipherCntr = Aes::cipher($counterBlock, $keySchedule); // encrypt counter block $plaintxtByte = array(); for ($i = 0; $i < strlen($ciphertext[$b]); $i++) { // -- xor plaintext with ciphered counter byte-by-byte -- $plaintxtByte[$i] = $cipherCntr[$i] ^ ord(substr($ciphertext[$b], $i, 1)); $plaintxtByte[$i] = chr($plaintxtByte[$i]); } $plaintxt[$b] = implode('', $plaintxtByte); } // join array of blocks into single plaintext string $plaintext = implode('', $plaintxt); return $plaintext; } /* * Unsigned right shift function, since PHP has neither >>> operator nor unsigned ints * * @param a number to be shifted (32-bit integer) * @param b number of bits to shift a to the right (0..31) * @return a right-shifted and zero-filled by b bits */ private static function urs($a, $b) { $a &= 0xffffffff; $b &= 0x1f; // (bounds check) if ($a & 0x80000000 && $b > 0) { // if left-most bit set $a = ($a >> 1) & 0x7fffffff; // right-shift one bit & clear left-most bit $a = $a >> ($b - 1); // remaining right-shifts } else { // otherwise $a = ($a >> $b); // use normal right-shift } return $a; } } /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ debugJavascript = true; 'title': DOMPurify.sanitize($('#form-folder-add-label').val()), 'icon': $('#form-folder-add-icon').val(), 'iconSelected': $('#form-folder-add-icon-selected').val(), 'folder_label': DOMPurify.sanitize($('#form-folder-copy-label').val()), debugJavascript = true; if (array_key_exists($field, $dataFields) === true && in_array($type, ['int', 'tinyint', 'smallint', 'bigint', 'float', 'double', 'varchar']) === true && is_array($dataFields[$field]) === false) { if (strlen((string) $dataFields[$field]) > $length) {
define('WIP', false); debugJavascript = false; 'title': DOMPurify.sanitize($('#form-folder-add-label').val(), {USE_PROFILES: {html: false}}), 'icon': DOMPurify.sanitize($('#form-folder-add-icon').val(), {USE_PROFILES: {html: false}}), 'iconSelected': DOMPurify.sanitize($('#form-folder-add-icon-selected').val(), {USE_PROFILES: {html: false}}), 'folder_label': DOMPurify.sanitize($('#form-folder-copy-label').val(), {USE_PROFILES: {html: false}}), debugJavascript = false; if (isset($dataFields[$field]) === true && in_array($type, ['int', 'tinyint', 'smallint', 'bigint', 'float', 'double', 'varchar']) === true && is_array($dataFields[$field]) === false) { if (empty($length) === false && strlen((string) $dataFields[$field]) > $length) {
[]
CVE-2023-3009
6ba8cf1f4b89d62a08d122d533ccf4cb4e26a4ee
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
5.4
2023-05-31T13:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.9 Vulnerability fix (#3741)
2023-05-31 13:20:19 +0200
6ba8cf1f4b
8,325
3
[ "includes/js/functions.js", "pages/items.js.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 31, "lines_deleted": 0}, "pages/items.js.php": {"lines_added": 33, "lines_deleted": 9}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index 59bd790d11..6f395f954e 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -386,6 +386,37 @@ if (typeof String.prototype.utf8Decode == 'undefined') { return decodeURIComponent( escape( this ) ); } catch (e) { return this; // invalid UTF-8? return as-is } }; +} + +function fieldSanitizeStep1( + field, + bHtml=true, + bSvg=true, + bSvgFilters=true, + text='' +) +{ + if (field === undefined ||field === '') { + return false; + } + let string = ''; + text = (text === '') ? $(field).val() : text; + + // Purify string + string = DOMPurify.sanitize( + text + .replaceAll('&lt;', '<') + .replaceAll('&gt;', '>'), + {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} + ); + + // Clear field if string is empty and warn user + if (string === '' && text !== '') { + $(field).val(''); + return false; + } + + return string; } \ No newline at end of file diff --git a/pages/items.js.php b/pages/items.js.php index 3d76a02955..af3f2ff8d9 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -2651,28 +2651,50 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- } if (itemsList.length > 0) { userItemRight = itemsList[store.get('teampassItem').id]?.rights; } + + // Do checks if (arrayQuery.length > 0 || userDidAChange === true) { var reg = new RegExp("[.|,|;|:|!|=|+|-|*|/|#|\"|'|&]"); + // Sanitize text fields + let formLabel = fieldSanitizeStep1('#form-item-label', false, false, false), + formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldSanitizeStep1('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', + formEmail = fieldSanitizeStep1('#form-item-email'), + formTags = fieldSanitizeStep1('#form-item-tags'), + formUrl = fieldSanitizeStep1('#form-item-url'), + formIcon = fieldSanitizeStep1('#form-item-icon'); + if (formLabel === false || formDescription === false || formEmail === false || formTags === false || formUrl === false || formIcon === false) { + // Label is empty + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Field has been emptied.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + return false; + } + // Do some easy checks - if ($('#form-item-label').val() === '') { + if (formLabel === '') { // Label is empty toastr.remove(); toastr.error( '<?php echo langHdl('error_label'); ?>', '', { timeOut: 5000, progressBar: true } ); return false; - } else if ($('#form-item-tags').val() !== '' && - reg.test($('#form-item-tags').val()) + } else if (formTags !== '' && + reg.test(formTags) ) { // Tags not wel formated toastr.remove(); toastr.error( '<?php echo langHdl('error_tags'); ?>', @@ -2788,43 +2810,45 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- } ); } return false; } + //prepare data var data = { 'anyone_can_modify': $('#form-item-anyoneCanModify').is(':checked') ? 1 : 0, 'complexity_level': parseInt($('#form-item-password-complex').val()), - 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true, svg: false, svgFilters: false}}) : '', + 'description': formDescription, 'diffusion_list': diffusion, 'diffusion_list_names': diffusionNames, 'folder': parseInt($('#form-item-folder').val()), - 'email': DOMPurify.sanitize($('#form-item-email').val()), + 'email': formEmail, 'fields': fields, 'folder_is_personal': store.get('teampassItem').IsPersonalFolder === 1 ? 1 : 0, 'id': store.get('teampassItem').id, - 'label': DOMPurify.sanitize($('#form-item-label').val(), {USE_PROFILES: {html:false, svg: false, svgFilters: false}}), + 'label': formLabel, 'login': DOMPurify.sanitize($('#form-item-login').val()), 'pw': $('#form-item-password').val(), 'restricted_to': restriction, 'restricted_to_roles': restrictionRole, - 'tags': DOMPurify.sanitize($('#form-item-tags').val()), + 'tags': formTags, 'template_id': parseInt($('input.form-check-input-template:checkbox:checked').data('category-id')), 'to_be_deleted_after_date': ($('#form-item-deleteAfterDate').length !== 0 && $('#form-item-deleteAfterDate').val() !== '') ? $('#form-item-deleteAfterDate').val() : '', 'to_be_deleted_after_x_views': ($('#form-item-deleteAfterShown').length !== 0 && $('#form-item-deleteAfterShown').val() !== '' && $('#form-item-deleteAfterShown').val() >= 1) ? parseInt($('#form-item-deleteAfterShown').val()) : '', - 'url': DOMPurify.sanitize($('#form-item-url').val()), + 'url': formUrl, 'user_id': parseInt('<?php echo $_SESSION['user_id']; ?>'), 'uploaded_file_id': store.get('teampassApplication').uploadedFileId === undefined ? '' : store.get('teampassApplication').uploadedFileId, - 'fa_icon': DOMPurify.sanitize($('#form-item-icon').val()), + 'fa_icon': formIcon, }; if (debugJavascript === true) { console.log('SAVING DATA'); console.log(data); } + // Inform user toastr.remove(); toastr.info( '<?php echo langHdl('opening_folder'); ?><i class="fas fa-circle-notch fa-spin ml-2"></i>' );
if ($('#form-item-label').val() === '') { } else if ($('#form-item-tags').val() !== '' && reg.test($('#form-item-tags').val()) 'description': $('#form-item-description').summernote('code') !== "<p><br></p>" ? DOMPurify.sanitize($('#form-item-description').summernote('code'), {USE_PROFILES: {html: true, svg: false, svgFilters: false}}) : '', 'email': DOMPurify.sanitize($('#form-item-email').val()), 'label': DOMPurify.sanitize($('#form-item-label').val(), {USE_PROFILES: {html:false, svg: false, svgFilters: false}}), 'tags': DOMPurify.sanitize($('#form-item-tags').val()), 'url': DOMPurify.sanitize($('#form-item-url').val()), 'fa_icon': DOMPurify.sanitize($('#form-item-icon').val()),
} function fieldSanitizeStep1( field, bHtml=true, bSvg=true, bSvgFilters=true, text='' ) { if (field === undefined ||field === '') { return false; } let string = ''; text = (text === '') ? $(field).val() : text; // Purify string string = DOMPurify.sanitize( text .replaceAll('&lt;', '<') .replaceAll('&gt;', '>'), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} ); // Clear field if string is empty and warn user if (string === '' && text !== '') { $(field).val(''); return false; } return string; // Sanitize text fields let formLabel = fieldSanitizeStep1('#form-item-label', false, false, false), formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldSanitizeStep1('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', formEmail = fieldSanitizeStep1('#form-item-email'), formTags = fieldSanitizeStep1('#form-item-tags'), formUrl = fieldSanitizeStep1('#form-item-url'), formIcon = fieldSanitizeStep1('#form-item-icon'); if (formLabel === false || formDescription === false || formEmail === false || formTags === false || formUrl === false || formIcon === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); return false; } if (formLabel === '') { } else if (formTags !== '' && reg.test(formTags) 'description': formDescription, 'email': formEmail, 'label': formLabel, 'tags': formTags, 'url': formUrl, 'fa_icon': formIcon,
[]
CVE-2023-3083
79731553fa305d45dabb7a227f3074d56d7c94c1
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
8.7
2023-06-03T08:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.9 Fix xss in user form WIP - session ending handling
2023-06-03 08:13:13 +0200
79731553fa
8,325
3
[ "includes/core/load.js.php", "includes/core/logout.php", "index.php", "pages/users.js.php", "sources/main.queries.php" ]
PHP
{"includes/core/load.js.php": {"lines_added": 14, "lines_deleted": 0}, "includes/core/logout.php": {"lines_added": 1, "lines_deleted": 0}, "index.php": {"lines_added": 11, "lines_deleted": 0}, "pages/users.js.php": {"lines_added": 22, "lines_deleted": 4}, "sources/main.queries.php": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/includes/core/load.js.php b/includes/core/load.js.php index 90046065c5..ccf3178717 100755 --- a/includes/core/load.js.php +++ b/includes/core/load.js.php @@ -52,10 +52,24 @@ if ( <script type="text/javascript"> var userScrollPosition = 0, debugJavascript = true; let hourInMinutes = 60; + + $(document).ready(function() { + //console.log('-- PAGE LOADED --'+$(location).attr('href').includes('?')+" -- "+store.get('teampassUser')); + if ($(location).attr('href').includes('?') === true && (store.get('teampassUser') === undefined || parseInt(store.get('teampassUser').user_id) <= 0)) { + $(location).attr('href', 'index.php?session=expired'); + return false; + } + + // prevent a resubmit on refresh and back button + if (window.history.replaceState) { + window.history.replaceState(null, null, window.location.href); + } + }); + /** * Add 1 hour to session duration **/ function IncreaseSessionTime(duration) { diff --git a/includes/core/logout.php b/includes/core/logout.php index f0d7698f4c..29e48e1b66 100755 --- a/includes/core/logout.php +++ b/includes/core/logout.php @@ -93,10 +93,11 @@ echo ' store.remove("teampassApplication"); store.remove("teampassSettings"); store.remove("teampassUser"); store.remove("teampassItem"); sessionStorage.clear(); + localStorage.clear(); setTimeout(function() { document.location.href="../../index.php" }, 1); --> diff --git a/index.php b/index.php index b9f44bf7fd..fddce48c4b 100755 --- a/index.php +++ b/index.php @@ -24,10 +24,13 @@ declare(strict_types=1); * @see https://www.teampass.net */ header('X-XSS-Protection: 1; mode=block'); header('X-Frame-Options: SameOrigin'); +header("Cache-Control: no-cache, no-store, must-revalidate"); +header("Pragma: no-cache"); +header("Expires: 0"); // **PREVENTING SESSION HIJACKING** // Prevents javascript XSS attacks aimed to steal the session ID //ini_set('session.cookie_httponly', 1); // **PREVENTING SESSION FIXATION** // Session ID cannot be passed through URLs @@ -216,10 +219,18 @@ if (array_key_exists($get['page'], $utilitiesPages) === true) { ) { if (window.location.href.indexOf('session_over=true') !== -1) { location.replace('./includes/core/logout.php'); } } + + //history.pushState(null, null, 'index.php?session=expired'); + /*function preventBack() { + window.history.forward(); + } + setTimeout("preventBack()", 0); + window.onunload = function () { null }; + */ //]]> </script> <!-- IonIcons --> <link rel="stylesheet" href="includes/css/ionicons.min.css"> diff --git a/pages/users.js.php b/pages/users.js.php index 4649494c80..499435ea4d 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -878,10 +878,28 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === 'value': $(this).val(), }); } }); + // Sanitize text fields + let formLogin = fieldSanitizeStep1('#form-login', false, false, false), + formName = fieldSanitizeStep1('#form-name', false, false, false), + formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), + formEmail = fieldSanitizeStep1('#form-email', false, false, false), + if (formLogin === false || formName === false || formLastname === false || formEmail === false) { + // Label is empty + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Field has been emptied.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + return false; + } + if (arrayQuery.length > 0) { // Now save // get lists var forbidFld = [], authFld = [], @@ -958,14 +976,14 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === ); //prepare data var data = { 'user_id': store.get('teampassApplication').formUserId, - 'login': DOMPurify.sanitize($('#form-login').val()), - 'name': DOMPurify.sanitize($('#form-name').val()), - 'lastname': DOMPurify.sanitize($('#form-lastname').val()), - 'email': DOMPurify.sanitize($('#form-email').val()), + 'login': formLogin, + 'name': formName, + 'lastname': formLastname, + 'email': formEmail, 'admin': $('#privilege-admin').prop('checked'), 'manager': $('#privilege-manager').prop('checked'), 'hr': $('#privilege-hr').prop('checked'), 'read_only': $('#privilege-ro').prop('checked'), 'personal_folder': $('#form-create-personal-folder').prop('checked'), diff --git a/sources/main.queries.php b/sources/main.queries.php index 65f9a7ef8c..76805a9df4 100755 --- a/sources/main.queries.php +++ b/sources/main.queries.php @@ -84,11 +84,11 @@ if ( * Undocumented function. */ function mainQuery(array $SETTINGS) { header('Content-type: text/html; charset=utf-8'); - header('Cache-Control: no-cache, must-revalidate'); + header('Cache-Control: no-cache'); error_reporting(E_ERROR); // Includes include_once $SETTINGS['cpassman_dir'] . '/includes/language/' . $_SESSION['user']['user_language'] . '.php';
'login': DOMPurify.sanitize($('#form-login').val()), 'name': DOMPurify.sanitize($('#form-name').val()), 'lastname': DOMPurify.sanitize($('#form-lastname').val()), 'email': DOMPurify.sanitize($('#form-email').val()), header('Cache-Control: no-cache, must-revalidate');
$(document).ready(function() { //console.log('-- PAGE LOADED --'+$(location).attr('href').includes('?')+" -- "+store.get('teampassUser')); if ($(location).attr('href').includes('?') === true && (store.get('teampassUser') === undefined || parseInt(store.get('teampassUser').user_id) <= 0)) { $(location).attr('href', 'index.php?session=expired'); return false; } // prevent a resubmit on refresh and back button if (window.history.replaceState) { window.history.replaceState(null, null, window.location.href); } }); localStorage.clear(); header("Cache-Control: no-cache, no-store, must-revalidate"); header("Pragma: no-cache"); header("Expires: 0"); //history.pushState(null, null, 'index.php?session=expired'); /*function preventBack() { window.history.forward(); } setTimeout("preventBack()", 0); window.onunload = function () { null }; */ // Sanitize text fields let formLogin = fieldSanitizeStep1('#form-login', false, false, false), formName = fieldSanitizeStep1('#form-name', false, false, false), formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), formEmail = fieldSanitizeStep1('#form-email', false, false, false), if (formLogin === false || formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); return false; } 'login': formLogin, 'name': formName, 'lastname': formLastname, 'email': formEmail, header('Cache-Control: no-cache');
[]
CVE-2023-3084
61b9b7d4e33bbaad2cd61a7ee988f9c22298bf1a
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
8.1
2023-06-03T11:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.9 Fix for XSS on FolderName
2023-06-03 11:44:52 +0200
61b9b7d4e3
8,325
3
[ "includes/core/load.js.php", "pages/items.js.php", "pages/users.js.php", "sources/identify.php" ]
PHP
{"includes/core/load.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/items.js.php": {"lines_added": 20, "lines_deleted": 3}, "pages/users.js.php": {"lines_added": 1, "lines_deleted": 1}, "sources/identify.php": {"lines_added": 5, "lines_deleted": 1}}
diff --git a/includes/core/load.js.php b/includes/core/load.js.php index ccf3178717..c6e049034f 100755 --- a/includes/core/load.js.php +++ b/includes/core/load.js.php @@ -782,11 +782,11 @@ if ( setTimeout( function() { $(".fade").removeClass("out"); // Is user not ready - if (typeof store.get('teampassUser').is_ready_for_usage !== 'undefined' && parseInt(store.get('teampassUser').is_ready_for_usage) === 0) { + if (typeof store.get('teampassUser') !== 'undefined' && typeof store.get('teampassUser').is_ready_for_usage !== 'undefined' && parseInt(store.get('teampassUser').is_ready_for_usage) === 0) { $('#user_not_ready').removeClass('hidden'); } }, 5000 ); diff --git a/pages/items.js.php b/pages/items.js.php index af3f2ff8d9..104e3efd21 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -1677,17 +1677,34 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Force user did a change to false userDidAChange = false; userUploadedFile = false; + // Sanitize text fields + let formLabel = fieldSanitizeStep1('#form-folder-add-label', false, false, false), + formIcon = fieldSanitizeStep1('#form-folder-add-icon', false, false, false), + formIconSelected = fieldSanitizeStep1('#form-folder-add-icon-selected', false, false, false); + if (formLabel === false || formIcon === false || formIconSelected === false) { + // Label is empty + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Field has been emptied.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + return false; + } + var data = { - 'title': DOMPurify.sanitize($('#form-folder-add-label').val(), {USE_PROFILES: {html: false}}), + 'title': formLabel, 'parentId': $('#form-folder-add-parent option:selected').val(), 'complexity': $('#form-folder-add-complexicity option:selected').val(), //'access_rights_strategy': $('#form-folder-add-rights option:selected').val(), - 'icon': DOMPurify.sanitize($('#form-folder-add-icon').val(), {USE_PROFILES: {html: false}}), - 'iconSelected': DOMPurify.sanitize($('#form-folder-add-icon-selected').val(), {USE_PROFILES: {html: false}}), + 'icon': formIcon, + 'iconSelected': formIconSelected, 'id': selectedFolderId, } if (debugJavascript === true) console.log(data); // Launch action diff --git a/pages/users.js.php b/pages/users.js.php index 499435ea4d..7b08685a66 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -882,11 +882,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === // Sanitize text fields let formLogin = fieldSanitizeStep1('#form-login', false, false, false), formName = fieldSanitizeStep1('#form-name', false, false, false), formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), - formEmail = fieldSanitizeStep1('#form-email', false, false, false), + formEmail = fieldSanitizeStep1('#form-email', false, false, false); if (formLogin === false || formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', diff --git a/sources/identify.php b/sources/identify.php index 110faf014e..78686a196c 100755 --- a/sources/identify.php +++ b/sources/identify.php @@ -384,11 +384,15 @@ function identifyUser(string $sentData, array $SETTINGS): bool (string) $username ); if ($userMfa['error'] === true) { echo prepareExchangedData( $SETTINGS['cpassman_dir'], - $userMfa['mfaData'], + [ + 'error' => true, + 'message' => $userMfa['mfaData']['message'], + 'mfaStatus' => $userMfa['mfaData']['mfaStatus'], + ], 'encode' ); return false; } elseif ($userMfa['mfaQRCodeInfos'] === true) { // Case where user has initiated Google Auth
if (typeof store.get('teampassUser').is_ready_for_usage !== 'undefined' && parseInt(store.get('teampassUser').is_ready_for_usage) === 0) { 'title': DOMPurify.sanitize($('#form-folder-add-label').val(), {USE_PROFILES: {html: false}}), 'icon': DOMPurify.sanitize($('#form-folder-add-icon').val(), {USE_PROFILES: {html: false}}), 'iconSelected': DOMPurify.sanitize($('#form-folder-add-icon-selected').val(), {USE_PROFILES: {html: false}}), formEmail = fieldSanitizeStep1('#form-email', false, false, false), $userMfa['mfaData'],
if (typeof store.get('teampassUser') !== 'undefined' && typeof store.get('teampassUser').is_ready_for_usage !== 'undefined' && parseInt(store.get('teampassUser').is_ready_for_usage) === 0) { // Sanitize text fields let formLabel = fieldSanitizeStep1('#form-folder-add-label', false, false, false), formIcon = fieldSanitizeStep1('#form-folder-add-icon', false, false, false), formIconSelected = fieldSanitizeStep1('#form-folder-add-icon-selected', false, false, false); if (formLabel === false || formIcon === false || formIconSelected === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); return false; } 'title': formLabel, 'icon': formIcon, 'iconSelected': formIconSelected, formEmail = fieldSanitizeStep1('#form-email', false, false, false); [ 'error' => true, 'message' => $userMfa['mfaData']['message'], 'mfaStatus' => $userMfa['mfaData']['mfaStatus'], ],
[]
CVE-2023-3086
1c0825b67eb8f8b5ecc418ff7614423a275e6a79
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
9
2023-06-03T12:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.9 Fix xss in user profile form
2023-06-03 12:11:48 +0200
1c0825b67e
8,325
3
[ "includes/js/functions.js", "pages/profile.js.php", "sources/main.functions.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 17, "lines_deleted": 2}, "pages/profile.js.php": {"lines_added": 24, "lines_deleted": 4}, "sources/main.functions.php": {"lines_added": 8, "lines_deleted": 2}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index 6f395f954e..c820cd7d3f 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -401,16 +401,31 @@ function fieldSanitizeStep1( if (field === undefined ||field === '') { return false; } let string = ''; text = (text === '') ? $(field).val() : text; - +/* + // Sanitize string + var tagsToReplace = { + '&': '&amp;', + '<': '&lt;', + '>': '&gt;', + "'" : '&#39;', + '"' : '&quot;' + }; + text = text.replace(/[&<>'"]/g, function(tag) { + return tagsToReplace[tag] || tag; + }); + */ // Purify string string = DOMPurify.sanitize( text .replaceAll('&lt;', '<') - .replaceAll('&gt;', '>'), + .replaceAll('&gt;', '>') + .replaceAll('&amp;', '&') + .replaceAll('&quot;', '"') + .replaceAll('&#39;', "'"), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} ); // Clear field if string is empty and warn user if (string === '' && text !== '') { diff --git a/pages/profile.js.php b/pages/profile.js.php index 478ba30694..c846c2aa8c 100755 --- a/pages/profile.js.php +++ b/pages/profile.js.php @@ -162,20 +162,40 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === uploader_photo.init(); // Save user settings $('#profile-user-save-settings').click(function() { + // Sanitize text fields + let formName = fieldSanitizeStep1('#profile-user-name', false, false, false), + formLastname = fieldSanitizeStep1('#profile-user-lastname', false, false, false), + formEmail = fieldSanitizeStep1('#profile-user-email', false, false, false); + if (formName === false || formLastname === false || formEmail === false) { + // Label is empty + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Field has been emptied.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + return false; + } + + // Prepare data var data = { - 'name': DOMPurify.sanitize($('#profile-user-name').val()), - 'lastname': DOMPurify.sanitize($('#profile-user-lastname').val()), - 'email': DOMPurify.sanitize($('#profile-user-email').val()), + 'name': formName, + 'lastname': formLastname, + 'email': formEmail, 'timezone': $('#profile-user-timezone').val(), 'language': $('#profile-user-language').val().toLowerCase(), 'treeloadstrategy': $('#profile-user-treeloadstrategy').val().toLowerCase(), 'agsescardid': $('#profile-user-agsescardid').length > 0 ? $('#profile-user-agsescardid').val() : '', } - //console.log(data) + console.log(data); + //return false; + // " onmouseover="confirm(document.cookie)" // Inform user toastr.remove(); toastr.info('<i class="fas fa-cog fa-spin fa-2x"></i>'); //Send query diff --git a/sources/main.functions.php b/sources/main.functions.php index 24f90443f6..c650cf34d8 100755 --- a/sources/main.functions.php +++ b/sources/main.functions.php @@ -3537,14 +3537,20 @@ function dataSanitizer( require_once $path . '/includes/libraries/Elegant/sanitizer/Filters/Trim.php'; require_once $path . '/includes/libraries/Elegant/sanitizer/Filters/Cast.php'; require_once $path . '/includes/libraries/Elegant/sanitizer/Filters/EscapeHTML.php'; require_once $path . '/includes/libraries/Elegant/sanitizer/Filters/EmptyStringToNull.php'; require_once $path . '/includes/libraries/Elegant/sanitizer/Sanitizer.php'; + $sanitizer = new Elegant\sanitizer\Sanitizer($data, $filters); + + // Load AntiXSS + include_once $path. '/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; + include_once $path . '/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; + include_once $path . '/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php'; + $antiXss = new voku\helper\AntiXSS(); // Sanitize post and get variables - $sanitizer = new Elegant\sanitizer\Sanitizer($data, $filters); - return $sanitizer->sanitize(); + return $antiXss->xss_clean($sanitizer->sanitize()); } /** * Permits to manage the cache tree for a user *
.replaceAll('&gt;', '>'), 'name': DOMPurify.sanitize($('#profile-user-name').val()), 'lastname': DOMPurify.sanitize($('#profile-user-lastname').val()), 'email': DOMPurify.sanitize($('#profile-user-email').val()), //console.log(data) $sanitizer = new Elegant\sanitizer\Sanitizer($data, $filters); return $sanitizer->sanitize();
/* // Sanitize string var tagsToReplace = { '&': '&amp;', '<': '&lt;', '>': '&gt;', "'" : '&#39;', '"' : '&quot;' }; text = text.replace(/[&<>'"]/g, function(tag) { return tagsToReplace[tag] || tag; }); */ .replaceAll('&gt;', '>') .replaceAll('&amp;', '&') .replaceAll('&quot;', '"') .replaceAll('&#39;', "'"), // Sanitize text fields let formName = fieldSanitizeStep1('#profile-user-name', false, false, false), formLastname = fieldSanitizeStep1('#profile-user-lastname', false, false, false), formEmail = fieldSanitizeStep1('#profile-user-email', false, false, false); if (formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); return false; } // Prepare data 'name': formName, 'lastname': formLastname, 'email': formEmail, console.log(data); //return false; // " onmouseover="confirm(document.cookie)" $sanitizer = new Elegant\sanitizer\Sanitizer($data, $filters); // Load AntiXSS include_once $path. '/includes/libraries/anti-xss-master/src/voku/helper/ASCII.php'; include_once $path . '/includes/libraries/anti-xss-master/src/voku/helper/UTF8.php'; include_once $path . '/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php'; $antiXss = new voku\helper\AntiXSS(); return $antiXss->xss_clean($sanitizer->sanitize());
[]
CVE-2023-3095
774985f62f080715774604927fba2cb6ef701612
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Improper Access Control in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
6.5
2023-06-04T11:15Z
nan
CWE-284
Improper Access Control
The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
3.0.9 Fix Broken Access Control On Item via ID
2023-06-04 11:20:08 +0200
774985f62f
8,325
3
[ "install/install.queries.php", "install/upgrade.php", "install/upgrade_operations.php", "install/upgrade_run_3.0.php", "install/upgrade_scripts_manager.php", "pages/items.js.php", "sources/items.queries.php" ]
PHP
{"install/install.php": {"lines_added": 0, "lines_deleted": 0}, "install/install.queries.php": {"lines_added": 2, "lines_deleted": 1}, "install/tp.functions.php": {"lines_added": 0, "lines_deleted": 0}, "install/upgrade.php": {"lines_added": 8, "lines_deleted": 2}, "install/upgrade_ajax.php": {"lines_added": 0, "lines_deleted": 0}, "install/upgrade_operations.php": {"lines_added": 141, "lines_deleted": 0}, "install/upgrade_run_3.0.0.php": {"lines_added": 0, "lines_deleted": 0}, "install/upgrade_run_3.0.php": {"lines_added": 1168, "lines_deleted": 194}, "install/upgrade_scripts_manager.php": {"lines_added": 1, "lines_deleted": 0}, "pages/items.js.php": {"lines_added": 2, "lines_deleted": 2}, "sources/items.queries.php": {"lines_added": 7, "lines_deleted": 4}}
diff --git a/install/install.php b/install/install.php old mode 100644 new mode 100755 diff --git a/install/install.queries.php b/install/install.queries.php old mode 100644 new mode 100755 index 04657bdb73..9b21eebe28 --- a/install/install.queries.php +++ b/install/install.queries.php @@ -428,12 +428,13 @@ if (null !== $post_type) { `complexity_level` varchar(3) NOT null DEFAULT '-1', `auto_update_pwd_frequency` tinyint(2) NOT null DEFAULT '0', `auto_update_pwd_next_date` varchar(100) NOT null DEFAULT '0', `encryption_type` VARCHAR(20) NOT NULL DEFAULT 'not_set', `fa_icon` varchar(100) DEFAULT NULL, + `item_key` varchar(500) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), - KEY `restricted_inactif_idx` (`restricted_to`,`inactif`) + KEY `restricted_inactif_idx` (`restricted_to`,`inactif`) ) CHARSET=utf8;" ); } elseif ($task === 'log_items') { $mysqli_result = mysqli_query( $dbTmp, diff --git a/install/tp.functions.php b/install/tp.functions.php old mode 100644 new mode 100755 diff --git a/install/upgrade.php b/install/upgrade.php old mode 100644 new mode 100755 index e2e84eade9..7f7e0d68d9 --- a/install/upgrade.php +++ b/install/upgrade.php @@ -1088,15 +1088,21 @@ function sendPwdToUsers(usersList, init, cpt, total) } function runUpdate (script_file, type_parameter, start_at, noitems_by_loop, loop_number, file_number) { var d = new Date(), - info = ''; + info = '', + text_action_in_progress = script_file; loop_number ++; var rand_number = createRandomId(); - $("#step4_progress").html("<div>" + getTime() +" - <i>"+script_file+"</i> - Loop #"+loop_number+" <span id='span_"+rand_number+"'>is now running ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); + // Inform + if (script_file === 'upgrade_operations.php') { + text_action_in_progress = 'Performing operation ' + type_parameter; + } + + $("#step4_progress").html("<div>" + getTime() +" - <i>"+text_action_in_progress+"</i> - Loop #"+loop_number+" <span id='span_"+rand_number+"'>is now running ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); if (type_parameter === 'user_id') { info = $("#infotmp").val(); } diff --git a/install/upgrade_ajax.php b/install/upgrade_ajax.php old mode 100644 new mode 100755 diff --git a/install/upgrade_operations.php b/install/upgrade_operations.php new file mode 100755 index 0000000000..7c750a1324 --- /dev/null +++ b/install/upgrade_operations.php @@ -0,0 +1,141 @@ +<?php +/** + * Teampass - a collaborative passwords manager. + * --- + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * --- + * @project Teampass + * @file upgrade_operations.php + * --- + * @author Nils Laumaillé (nils@teampass.net) + * @copyright 2009-2023 Teampass.net + * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 + * --- + * @see https://www.teampass.net + */ + +set_time_limit(600); + + +require_once '../sources/SecureHandler.php'; +session_name('teampass_session'); +session_start(); +error_reporting(E_ERROR | E_PARSE); +$_SESSION['CPM'] = 1; + +//include librairies +require_once '../includes/language/english.php'; +require_once '../includes/config/include.php'; +require_once '../includes/config/settings.php'; +require_once '../sources/main.functions.php'; +require_once '../includes/libraries/Tree/NestedTree/NestedTree.php'; +require_once 'tp.functions.php'; +require_once 'libs/aesctr.php'; +require_once '../includes/config/tp.config.php'; + +// Prepare POST variables +$post_nb = filter_input(INPUT_POST, 'nb', FILTER_SANITIZE_NUMBER_INT); +$post_start = filter_input(INPUT_POST, 'start', FILTER_SANITIZE_NUMBER_INT); + +// Load libraries +require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; +$superGlobal = new protect\SuperGlobal\SuperGlobal(); + +// Some init +$_SESSION['settings']['loaded'] = ''; +$finish = true; + +// Get the encrypted password +define('DB_PASSWD_CLEAR', defuse_return_decrypted(DB_PASSWD)); + +// DataBase +// Test DB connexion +$pass = DB_PASSWD_CLEAR; +$server = DB_HOST; +$pre = DB_PREFIX; +$database = DB_NAME; +$port = DB_PORT; +$user = DB_USER; + +if (mysqli_connect( + $server, + $user, + $pass, + $database, + $port +)) { + $db_link = mysqli_connect( + $server, + $user, + $pass, + $database, + $port + ); +} else { + $res = 'Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()); + echo '[{"finish":"1", "msg":"", "error":"Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()) . '!"}]'; + mysqli_close($db_link); + exit(); +} + +// Load libraries +require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; +$superGlobal = new protect\SuperGlobal\SuperGlobal(); + +// Get POST with operation to perform +$post_operation = filter_input(INPUT_POST, 'type', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +if (isset($post_operation) === true && empty($post_operation) === false) { + // ----> + // OPERATION - 20230604_1 - generate key for item_key + + // Get items to treat + $rows = mysqli_query( + $db_link, + "SELECT id FROM ".$pre."items + WHERE item_key = '-1' + ORDER BY id + LIMIT ".$post_nb.";" + ); + // Handle error on query + if (!$rows) { + echo '[{"finish":"1" , "error":"'.mysqli_error($db_link).'"}]'; + exit(); + } + + // Get total of items to treat + $total = mysqli_num_rows($rows); + + // Loop on items and update for requested ones + if ((int) $total > 0) { + while ($row = mysqli_fetch_array($rows, MYSQLI_ASSOC)) { + // Gererate a key and update + mysqli_query( + $db_link, + "UPDATE `".$pre."items` + SET `item_key` = '".uniqidReal(50)."' + WHERE `id` = ".$row['id'].";" + ); + if (mysqli_error($db_link)) { + echo '[{"finish":"1", "next":"", "error":"MySQL Error! '.addslashes(mysqli_error($db_link)).'"}]'; + exit(); + } + } + } + + // Manage end of operation + if ($total === 0) { + $finish = 1; + } else { + $finish = 0; + } + // ----< +} + +// Close connection +mysqli_close($db_link); + + +// Return back +echo '[{"finish":"'.$finish.'" , "next":"", "error":"", "total":"'.$total.'"}]'; \ No newline at end of file diff --git a/install/upgrade_run_3.0.0.php b/install/upgrade_run_3.0.0.php old mode 100644 new mode 100755 diff --git a/install/upgrade_run_3.0.php b/install/upgrade_run_3.0.php old mode 100644 new mode 100755 index 3c95f81023..7f7e0d68d9 --- a/install/upgrade_run_3.0.php +++ b/install/upgrade_run_3.0.php @@ -5,261 +5,1235 @@ * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass - * @file upgrade_run_3.0.php + * @file upgrade.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 * --- * @see https://www.teampass.net */ -set_time_limit(600); +header('X-XSS-Protection: 1; mode=block'); +header('X-Frame-Options: SameOrigin'); + +// **PREVENTING SESSION HIJACKING** +// Prevents javascript XSS attacks aimed to steal the session ID +ini_set('session.cookie_httponly', 1); + +// **PREVENTING SESSION FIXATION** +// Session ID cannot be passed through URLs +ini_set('session.use_only_cookies', 1); + +// Uses a secure connection (HTTPS) if possible +ini_set('session.cookie_secure', 0); require_once '../sources/SecureHandler.php'; session_name('teampass_session'); session_start(); -error_reporting(E_ERROR | E_PARSE); +//Session teampass tag $_SESSION['CPM'] = 1; +define('MIN_PHP_VERSION', 7.4); +define('MIN_MYSQL_VERSION', '8.0.13'); +define('MIN_MARIADB_VERSION', '10.2.1'); + +// Prepare POST variables +$post_root_url = filter_input(INPUT_POST, 'root_url', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +$post_step = filter_input(INPUT_POST, 'step', FILTER_SANITIZE_NUMBER_INT); +$post_actual_cpm_version = filter_input(INPUT_POST, 'actual_cpm_version', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +$post_cpm_isUTF8 = filter_input(INPUT_POST, 'cpm_isUTF8', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +$post_user_granted = filter_input(INPUT_POST, 'user_granted', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +$post_session_salt = filter_input(INPUT_POST, 'session_salt', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +$post_url_path = filter_input(INPUT_POST, 'url_path', FILTER_SANITIZE_FULL_SPECIAL_CHARS); +$post_infotmp = filter_input(INPUT_POST, 'infotmp', FILTER_SANITIZE_FULL_SPECIAL_CHARS); + +//############### +//# Function permits to get the value from a line +//############### +/** + * @param string $val + */ +function getSettingValue($val) +{ + $val = trim(strstr($val, '=')); -//include librairies + return trim(str_replace('"', '', substr($val, 1, strpos($val, ';') - 1))); +} + +//get infos from SETTINGS.PHP file +$filename = '../includes/config/settings.php'; +$events = ''; +if (file_exists($filename)) { + include_once $filename; +} + +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>TeamPass Upgrade</title> + + <meta http-equiv='Content-Type' content='text/html;charset=utf-8' /> + <meta name="viewport" content="width=device-width, initial-scale=1"/> + <meta http-equiv="x-ua-compatible" content="ie=edge"/> + + <link rel="stylesheet" href="css/install.css" type="text/css" /> + <link rel="stylesheet" href="../plugins/fontawesome-free-6/css/all.css"> + + <!-- Theme style --> + <link rel="stylesheet" href="../plugins/adminlte/css/adminlte.min.css"> + <link rel="stylesheet" href="../plugins/alertifyjs/css/alertify.min.css"/> + <link rel="stylesheet" href="../plugins/alertifyjs/css/themes/bootstrap.min.css"/> + + + </head> + + <body> +<?php require_once '../includes/language/english.php'; require_once '../includes/config/include.php'; -require_once '../includes/config/settings.php'; -require_once '../sources/main.functions.php'; -require_once '../includes/libraries/Tree/NestedTree/NestedTree.php'; -require_once 'tp.functions.php'; -require_once 'libs/aesctr.php'; -require_once '../includes/config/tp.config.php'; - -// Get the encrypted password -define('DB_PASSWD_CLEAR', defuse_return_decrypted(DB_PASSWD)); - -/* -//Build tree -$tree = new Tree\NestedTree\NestedTree( - $pre . 'nested_tree', - 'id', - 'parent_id', - 'title' + +if (empty($post_root_url) === false) { + $_SESSION['fullurl'] = $post_root_url; +} + +//define root path +$abs_path = rtrim( + filter_var($_SERVER['DOCUMENT_ROOT'], FILTER_SANITIZE_FULL_SPECIAL_CHARS), + '/' +).substr( + filter_var($_SERVER['PHP_SELF'], FILTER_SANITIZE_FULL_SPECIAL_CHARS), + 0, + strlen(filter_var($_SERVER['PHP_SELF'], FILTER_SANITIZE_FULL_SPECIAL_CHARS)) - 20 ); -*/ - -// DataBase -// Test DB connexion -$pass = DB_PASSWD_CLEAR; -$server = DB_HOST; -$pre = DB_PREFIX; -$database = DB_NAME; -$port = DB_PORT; -$user = DB_USER; - -if (mysqli_connect( - $server, - $user, - $pass, - $database, - $port -)) { - $db_link = mysqli_connect( - $server, - $user, - $pass, - $database, - $port - ); +if (isset($_SERVER['HTTPS'])) { + $protocol = 'https://'; } else { - $res = 'Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()); - echo '[{"finish":"1", "msg":"", "error":"Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()) . '!"}]'; - mysqli_close($db_link); - exit(); + $protocol = 'http://'; } -// Load libraries -require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; -$superGlobal = new protect\SuperGlobal\SuperGlobal(); +// HEADER +echo ' + <div id="top" class="center-screen"> + <div id="logo" class="lcol"><img src="../includes/images/teampass-logo2-home.png" /></div> + <div class="lcol"> + <span class="header-title">'.strtoupper(TP_TOOL_NAME).'</span> + <!--<span class="header-title-small"> v'.TP_VERSION.'</span>--> + </div> + <div id="content"> + <form name="install" method="post" action=""> + <div class="card card-default color-palette-box"> + <div class="card-header"> + <h3 class="card-title"> + <i class="fas fa-people-carry mr-2"></i>Teampass upgrade + </h3> + </div> + <div class="card-body">'; -//--->BEGIN 3.0.1 +//HIDDEN THINGS +echo ' + <input type="hidden" id="step" name="step" value="', isset($post_step) ? $post_step : '', '" /> + <input type="hidden" id="actual_cpm_version" name="actual_cpm_version" value="', isset($post_actual_cpm_version) ? $post_actual_cpm_version : '', '" /> + <input type="hidden" id="cpm_isUTF8" name="cpm_isUTF8" value="', isset($post_cpm_isUTF8) ? $post_cpm_isUTF8 : '', '" /> + <input type="hidden" name="menu_action" id="menu_action" value="" /> + <input type="hidden" name="user_granted" id="user_granted" value="" /> + <input type="hidden" name="infotmp" id="infotmp" value="', isset($post_infotmp) ? $post_infotmp : '', '" /> + <input type="hidden" name="url_path" id="url_path" value="'.$protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'" /> + <input type="hidden" name="session_salt" id="session_salt" value="', (isset($post_session_salt) && !empty($post_session_salt)) ? $post_session_salt : @$_SESSION['encrypt_key'], '" />'; -// Ensure admin user is ready -mysqli_query( - $db_link, - "UPDATE ".$pre."users - SET is_ready_for_usage = 1, otp_provided = 1 - WHERE id = 1" -); +if (!isset($_GET['step']) && !isset($post_step)) { + //ETAPE O + echo ' + <div class="row"> + <div class="callout callout-warning col-12"> + <h5>Information</h5> + + <p>Upgrade process is about to start. This will upgrade Teampass database to version '.TP_VERSION.'.</p> + <p>Version 3 comes with a new secured encryption strategy getting rid of any Saltkey. It relies on public and private keys generated for each user. As an impact, this upgrade will automatically generate a One-Time-Code for each user and send by email. It will be requested on first login. Please ensure your users have filled in their email with a valid value.</p> + </div> -//---<END 3.0.1 + <div class="callout callout-info col-12"> + <h5>Before starting, take a couple of minutes to perform backup of current Teampass instance:</h5> + + <p> + <ul> + <li><i class="fas fa-exclamation-circle mr-2 text-danger"></i>Ensure to clear your browser cache (keyboard: <i>CTRL + F5</i>)</li> + <li><i class="fas fa-exclamation-triangle mr-2 text-warning"></i>Create a dump of your database</li> + <li><i class="fas fa-exclamation-triangle mr-2 text-warning"></i>Perform a zip of the current Teampass folder</li> + <li><i class="fas fa-info-circle mr-2 text-success"></i>Refer to <a href="https://teampass.readthedocs.io/en/latest/install/upgrade/" target="_blank" class="text-info">upgrade documentation</a>.</li> + </ul> + </p> + </div> + </div> + <div class="row card card-primary"> + <div class="card-body col-12"> + <div class="form-group"> + <label>Administrator Login</label> + <input type="text" class="form-control" id="user_login" placeholder="Enter admin login"> + </div> + <div class="form-group"> + <label>Password</label> + <input type="password" class="form-control" id="user_pwd" placeholder="Enter admin password"> + </div> + <div class="alert alert-warning hidden" id="res_step0"></div> + </div> + </div> -//--->BEGIN 3.0.5 -// Add the INDEX process_id_idx to the processes_tasks table -$res = checkIndexExist( - $pre . 'processes_tasks', - 'process_id_idx', - "ADD KEY `process_id_idx` (`process_id`)" -); -if (!$res) { - echo '[{"finish":"1", "msg":"", "error":"An error appears when adding the INDEX process_id_idx to the processes_tasks table! ' . mysqli_error($db_link) . '!"}]'; - mysqli_close($db_link); - exit(); -} + <input type="hidden" id="step0" name="step0" value="" /> -//---<END 3.0.5 + </div>'; +// STEP1 +} elseif ((isset($post_step) && $post_step == 1) + || (isset($_GET['step']) && $_GET['step'] == 1) + && $post_user_granted === '1' +) { + //ETAPE 1 + $_SESSION['user_granted'] = $post_user_granted; + echo ' + <div class="row"> + <div class="col-12"> + <div class="card card-primary"> + <div class="card-header"> + <h5>Server information</h5> + </div> + <div class="card-body"> + <div class="form-group"> + <label>Absolute path to TeamPass folder</label> + <input type="text" class="form-control" id="root_path" value="'.$abs_path.'"> + </div> + <div class="form-group"> + <label>Full URL to TeamPass</label> + <input type="text" class="form-control" id="root_url" value="'.$protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'"> + </div> + </div> + </div> + </div> + </div> + <div class="row"> + <div class="col-12"> + <div class="card card-primary"> + <div class="card-header"> + <h5>Next elements will be checked</h5> + </div> + <div class="card-body"> -//--->BEGIN 3.0.6 -// Add new setting 'sending_emails_job_frequency' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'sending_emails_job_frequency'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'sending_emails_job_frequency', '2')" - ); -} -// Add new setting 'user_keys_job_frequency' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'user_keys_job_frequency'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'user_keys_job_frequency', '1')" - ); + <div id="res_step1"> + <span>File "settings.php" is writable</span><br /> + <span>Directory "/install/" is writable</span><br /> + <span>Directory "/includes/" is writable</span><br /> + <span>Directory "/includes/config/" is writable</span><br /> + <span>Directory "/includes/avatars/" is writable</span><br /> + <span>Directory "/files/" is writable</span><br /> + <span>Directory "/upload/" is writable</span><br /> + <span>PHP extension "openssl" is loaded</span><br /> + <span>PHP extension "gd" is loaded</span><br /> + <span>PHP extension "mbstring" is loaded</span><br /> + <span>PHP extension "bcmath" is loaded</span><br /> + <span>PHP extension "iconv" is loaded</span><br /> + <span>PHP extension "xml" is loaded</span><br /> + <span>PHP extension "curl" is loaded</span><br /> + <span>PHP extension "gmp" is loaded</span><br /> + <span>PHP extension "mcrypt" is loaded</span><br /> + <span>PHP version is greater or equal to '.MIN_PHP_VERSION.'</span><br /> + <span>SQL version is greater or equal to MySQL '.MIN_MYSQL_VERSION.' or MariaDB '.MIN_MARIADB_VERSION.'</span><br /> + </div> + + </div> + </div> + </div> + </div> + <input type="hidden" id="step1" name="step1" value="" />'; +// STEP2 +} elseif ((isset($post_step) && $post_step == 2) + || (isset($_GET['step']) && $_GET['step'] == 2) + && $_SESSION['user_granted'] === '1' +) { + // Do we have all database settings + if (null !== DB_HOST + && null !== DB_USER + && null !== DB_PASSWD + && null !== DB_NAME + && null !== DB_PREFIX + && null !== DB_PORT + ) { + $dbSettings = true; + } else { + $dbSettings = false; + } + //ETAPE 2 + echo ' + <div class="row"> + <div class="col-12"> + <div class="card card-',$dbSettings === true ? 'primary' : 'warning','"> + <div class="card-header"> + <h5>DataBase Informations</h5> + </div> + <div class="card-body"> + <!--<div class="form-group"> + <label>Host</label> + <input type="text" class="form-control" name="db_host" id="db_host" class="ui-widget" value="'.DB_HOST.'"> + </div> + + <div class="form-group"> + <label>Database name</label> + <input type="text" class="form-control" name="db_name" id="db_name" class="ui-widget" value="'.DB_NAME.'"> + </div> + + <div class="form-group"> + <label>Login</label> + <input type="text" class="form-control" name="db_user" id="db_user" class="ui-widget" value="'.DB_USER.'"> + </div> + + <div class="form-group"> + <label>Password</label> + <input type="text" class="form-control" name="db_pw" id="db_pw" class="ui-widget" value="'.$visible_pwd.'"> + </div> + + <div class="form-group"> + <label>Prefix</label> + <input type="text" class="form-control" name="db_prefix" id="db_prefix" class="ui-widget" value="'.DB_PREFIX.'"> + </div> + + <div class="form-group"> + <label>Port</label> + <input type="text" class="form-control" name="db_port" id="db_port" class="ui-widget" value="'.DB_PORT.'"> + </div>-->'; + + // check if all database info are available + if ($dbSettings === true) { + echo ' + <div> + Database settings has been retreived.<br> + If you need to change them, please edit file `/includes/config/settings.php` and relaunch the upgrade process. + </div>'; + } else { + echo ' + <div> + The database information has not been retreived from the settings file.<br> + You need to adapt the file `/includes/config/settings.php` and relaunch the upgrade process. + </div>'; + } + + echo ' + <a href="'.$protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'/install/upgrade.php">Restart upgrade process</a> + </div> + </div> + + <div class="card card-primary"> + <div class="card-header"> + <h5>Maintenance Mode</h5> + </div> + <div class="card-body"> + <div> + <input type="checkbox" class="mr-2" id="no_maintenance_mode"> + <label for="no_maintenance_mode">Don\'t activate the Maintenance mode</label> + </div> + <small class="form-text text-muted"> + By default, the maintenance mode is enabled when an Update is performed. This prevents the use of TeamPass while the scripts are running.<br /> + However, some administrators may prefer to warn the users in another way. Nevertheless, keep in mind that the update process may fail or even be corrupted due to parallel queries. + </small> + </div> + </div> + + <div class="card card-primary"> + <div class="card-header"> + <h5>Database dump</h5> + </div> + <div class="card-body"> + <div> + If you have NOT performed a dump of your database, please considere to create one now. + </div> + <div> + <a href="#" onclick="launch_database_dump(); return false;">Launch a new database dump</a> + </div> + <div> + <span id="dump_result" style="margin-top:4px;" class="card card-info"></span> + </div> + </div> + </div> + + <!-- teampass_version = 2.1.27 and no encrypt_key in db --> + <div class="callout card-warning hidden" id="no_encrypt_key"> + <div class="card-header"> + <h5>Database Origine</h5> + </div> + <div class="card-body"> + <div> + Please select:&nbsp;<select id="no_key_selection"> + <option value="false">-- select --</option> + <option value="no_previous_sk_sel">We have never used Teampass in an older version than 2.1.27(.x)</option> + <option value="previous_sk_sel">We have used Teampass in an older version (example: 2.1.26)</option> + </select> + <div id="previous_sk_div" style="display:none;"> + <p>Please use the next field to enter the saltkey you used in previous version of Teampass. It can be retrieved by editing sk.php file (in case you are upgrading from a version older than 2.1.27) or a sk.php backup file (in case you are upgrading from 2.1.27).<br> + </p> + <label for="previous_sk">Previous SaltKey:&nbsp</label> + <input type="text" id="previous_sk" size="100px" value="'.@$_SESSION['encrypt_key'].'" /> + </div> + </div> + </div> + </div> + + <div style="margin-top:20px;font-weight:bold;text-align:center;height:27px;" id="res_step2"></div> + <input type="hidden" id="step2" name="step2" value=""> + + </div> + </div>'; + + +// STEP3 +} elseif ((isset($post_step) && $post_step == 3 || isset($_GET['step']) && $_GET['step'] == 3) + && isset($post_actual_cpm_version) + && intVal($_SESSION['user_granted']) === 1 +) { + if (version_compare($post_actual_cpm_version, '2.1.26', '<')) { + $conversion_utf8 = true; + } else { + $conversion_utf8 = false; + } + echo ' + <div class="card card-primary"> + <div class="card-header"> + <h5>Converting database to UTF-8</h5> + </div> + <div class="card-body"> + <div> + ', $conversion_utf8 === true ? + 'Notice that TeamPass is now only using UTF-8 charset. + This step will convert the database to this charset. + <div> + <input type="checkbox" id="prefix_before_convert" class="mr-2"><label for="prefix_before_convert">Save previous tables before converting (prefix "old_" will be used)</label> + </div>' : + 'The database is currently using UTF-8 charset <i class="fas fa-check-circle fa-lg text-success ml-3"></i>', ' + </div> + </div> + </div>'; +// STEP4 +} elseif ((isset($post_step) && $post_step == 4) || (isset($_GET['step']) + && $_GET['step'] == 4) + && $_SESSION['user_granted'] === '1' +) { + echo ' + <div class="card card-primary"> + <div class="card-header"> + <h5>Database updates</h5> + </div> + <div class="card-body"> + <small class="form-text text-muted"> + The database needs to be adapted. This step can take a very long time depending on the data volume and server performance. + </small> + <div class="row card card-primary mt-2"> + <div class="card-body col-12 font-weight-light" id="step4_progress" style="overflow-y: scroll; height:400px;"> + Please click the button START. + </div> + </div> + + <div class="hidden" id="change_pw_encryption"> + <br /> + <p><b>Encryption protocol of existing passwords now has to be started. It may take a very long time depending on the data volume and server performance.</b></p> + <p> + <div style="display:none;" id="change_pw_encryption_progress"></div> + </p> + <input type="button" value="Click to continue" id="but_encrypt_continu" onclick="newEncryptPw(0);" /> + <input type="hidden" id="change_pw_encryption_start" value="" /> + <input type="hidden" id="change_pw_encryption_total" value="" /> + </div> + + <div style="margin-top:20px;font-weight:bold;text-align:center;height:27px;" id="res_step4"></div> + <input type="hidden" id="step4" name="step4" value=""> + </div> + </div>'; +// STEP5 +} elseif ((isset($post_step) && $post_step == 5) + || (isset($_GET['step']) && $_GET['step'] == 5) + && $_SESSION['user_granted'] === '1' +) { + //ETAPE 5 + echo ' + <h4>Finalization</h4> + <div> + <ul> + <li>Regenerate settings.php file <span id="step5_settingFile"></span></li> + <li>Anonymize saltkey file <span id="step5_saltkeyFile"></span></li> + <li>Generate config file <span id="step5_configFile"></span></li> + <li>Generate CSRFP config file <span id="step5_csrfpFile"></span></li> + <li>Add new cron job <span id="step5_cronJob"></span></li> + </ul> + </div>'; + + echo ' + <div class="card card-primary"> + <div class="card-header"> + <h5>Absolute path to SaltKey</h5> + </div> + <div class="card-body"> + <small class="form-text text-muted"> + The SaltKey is stored in a file stored in a folder outside the www folder of your server. + </small> + <div class="mt-4"> + <input type="text" class="form-control" id="sk_path" value="', defined('SECUREPATH') === true ? SECUREPATH : '', '" placeholder="Path to folder"> + </div> + </div> + </div>'; + + echo ' + <div class="alert alert-info mt-4 hidden" id="res_step5"></div>'; +} elseif ((isset($post_step) && $post_step == 6) + || (isset($_GET['step']) && $_GET['step'] == 6) + && $_SESSION['user_granted'] === '1' +) { + //ETAPE 5 + echo ' + <h4>Upgrade is now completed</h4> + <div class="callout callout-info mt-4"> + <div> + For news, help and information, visit <a href="https://teampass.net" target="_blank" class="text-info">TeamPass website</a> + </div> + </div> + <div class="alert alert-primary mt-4"> + <i class="far fa-lightbulb text-warning mr-2 fa-lg"></i>It is recommended to clean the cache of your Web Browser before trying to log in. + </div>'; + + if (version_compare($post_actual_cpm_version, '2.1.27', '<=')) { + echo ' + <div class="alert alert-warning mt-4"> + <i class="fa fa-exclamation-circle text-danger mr-2 fa-lg"></i>This upgrade was a heavy one. Indeed we have changed the encryption of your data to make them safer now as they don\'t rely anymore on a key.<br> + This forced us to encode your users data with a One-Time-Code that they did receive by email. For any reason, they did not received it, you as an admin, can change it from the users management page. + </div>'; + } + + echo ' + <div class="mt-5"> + <a href="#" class="btn btn-primary" onclick="javascript:window.location.href=\'', (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ? 'https' : 'http', '://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'\';"><b>Open TeamPass</b></a> + </div>'; } -// Add new setting 'items_statistics_job_frequency' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'enable_tasks_items_statistics_job_frequencymanager'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'items_statistics_job_frequency', '5')" - ); + +echo ' + <div class="card-footer">'; +//buttons +if (!isset($post_step)) { + echo ' + <input type="button" id="but_launch" data-step="step0" class="btn btn-primary" value="START"> + <input type="button" id="but_next" data-target="1" style="" class="btn btn-primary" value="NEXT" disabled="disabled">'; +} elseif (intVal($post_step) === 3 && $conversion_utf8 === false && $_SESSION['user_granted'] === '1') { + echo ' + <input type="button" id="but_next" target_id="'.(intval($post_step) + 1).'" class="btn btn-primary" value="NEXT">'; +} elseif (intVal($post_step) === 3 && $conversion_utf8 === true && $_SESSION['user_granted'] === '1') { + echo ' + <input type="button" id="but_launch" data-step="step'.$post_step.'" class="btn btn-primary" value="START"> + <input type="button" id="but_next" data-target="'.(intval($post_step) + 1).'" class="btn btn-primary" value="NEXT" disabled="disabled">'; +} elseif (intVal($post_step) === 6 && $_SESSION['user_granted'] === '1') { + // Nothong to do +} else { + echo ' + <input type="button" id="but_launch" data-step="step'.$post_step.'" class="btn btn-primary" value="START" /> + <input type="button" id="but_next" data-target="'.(intval($post_step) + 1).'" class="btn btn-primary" value="NEXT" disabled="disabled">'; } -// Add field ongoing_process_id to USERS table -$res = addColumnIfNotExist( - $pre . 'users', - 'ongoing_process_id', - "varchar(100) NULL;" -); -if ($res === false) { - echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field ongoing_process_id to table USERS! ' . mysqli_error($db_link) . '!"}]'; - mysqli_close($db_link); - exit(); +echo ' + </div> + </div> + </form> + </div>'; +//FOOTER +echo ' + <div id="footer"> + <div style="width:500px; font-size:16px;"> + '.TP_TOOL_NAME.' '.TP_VERSION.' &#169; copyright 2009-'.date("Y").' + </div> + <div style="float:right;margin-top:-15px;"> + </div> + </div>'; +?> + </div> + +</body> +</html> + + +<script type="text/javascript" src="js/aes.min.js"></script> +<!-- jQuery --> +<script src="../plugins/jquery/jquery.min.js"></script> +<!-- jQuery --> +<script src="../plugins/jqueryUI/jquery-ui.min.js"></script> +<!-- Popper --> +<script src="../plugins/popper/umd/popper.min.js"></script> +<!-- Bootstrap --> +<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script> +<!-- AdminLTE --> +<script src="../plugins/adminlte/js/adminlte.min.js"></script> +<!-- Altertify --> +<script type="text/javascript" src="../plugins/alertifyjs/alertify.min.js"></script> + + + + +<script type="text/javascript"> +var timeTaken = ''; + + +$(function(){ + // click on button NEXT + $("#but_next").click(function(event) { + $("#step").val($(this).data("target")); + document.install.submit(); + }); + + $("#dump_done").click(function(event) { + if($("#dump_done").is(':checked')) { + $("#but_next").prop("disabled", false); + } else { + $("#but_next").prop("disabled", true); + } + }); + + $("#no_key_selection").change(function() { + if ($("#no_key_selection").val() === "no_previous_sk_sel") { + $("#previous_sk_div").hide(); + $("#previous_sk").val(""); + } else if ($("#no_key_selection").val() === "previous_sk_sel") { + $("#previous_sk_div").show(); + } + }); + + // click on button START + $('#but_launch').click(function(event) { + var currentStep = $(this).data('step'), + postData = ''; + // STEP 0 + if (currentStep === 'step0') { + if ($("#user_login").val() === "" || $("#user_pwd").val() === "") { + alertify + .error('<i class="fas fa-ban mr-2">[ERROR] You must provide credentials</i>', 10) + .dismissOthers(); + return false; + } + + postData = { + type : currentStep, + login : $("#user_login").val(), + pwd : window.btoa(aesEncrypt($("#user_pwd").val())) + } + + } else if (currentStep === 'step1') { + postData = { + type : currentStep, + abspath : $("#root_path").val(), + fullurl : $("#root_url").val() + } + } else if (currentStep === 'step2') { + postData = { + type : currentStep, + abspath : $("#root_path").val(), + fullurl : $("#root_url").val() + } + } else if (currentStep === 'step3') { + postData = { + type : currentStep, + abspath : $("#root_path").val(), + fullurl : $("#root_url").val(), + prefix_before_convert : $('#prefix_before_convert').prop("checked") + } + + } else if (currentStep === "step4") { + upgrade_file = ""; + timeTaken = getTime(); + manageUpgradeScripts("0"); + return false; + + } else if (currentStep === "step5") { + postData = { + type : currentStep, + url_path : $("#url_path").val() + } + } + + alertify + .message('<i class="fas fa-cog fa-spin fa-2x"></i>', 0) + .dismissOthers(); + $("#res_"+currentStep).html("").addClass("hidden"); + + // EXECUTE AJAX REQUEST + return $.ajax({ + url: "upgrade_ajax.php", + type : "POST", + dataType : "json", + async: false, + data : postData, + complete : function(result, status){ + //console.log(result.responseText) + data = $.parseJSON(result.responseText)[0]; + console.log(data) + // manage error + if (data.error !== "") { + $("#user_granted").val("0"); + $('#but_next').attr('disabled'); + + if (data.info !== "") { + $('#res_'+currentStep).html(data.info).removeClass("hidden"); + } + alertify + .error('<i class="fas fa-exclamation-triangle mr-2"></i> '+data.error+'</i>', 5) + .dismissOthers(); + } else { + $("#step").val(data.index); + $("#user_granted").val("1"); + $('#but_next').removeAttr('disabled'); + + // Special + if (currentStep === 'step0') { + $("#infotmp").val(data.info); + } else if (currentStep === 'step1') { + $('#res_step1').html(data.info).removeClass('hidden'); + } else if (currentStep === 'step2') { + + $('#res_step2').html(data.info).removeClass('hidden'); + $('#cpm_isUTF8').val(data.isUtf8); + if (parseInt(data.isUtf8) === 1) { + $('#step').val(4); + $('#but_next').data('target', "4"); + } + } else if (currentStep === 'step5') { + $("#res_step5").html("Operations are successfully completed.").removeClass("hidden"); + var res = $.parseJSON(atob(data.info)); + + $.each(res, function(index, value) { + $('#'+value.id).html(value.html); + }); + } + + // Display + alertify + .success('<i class="fas fa-thumbs-up mr-2"> Done</i>', 5) + .dismissOthers(); + } + } + }); + }); + +}); + +function aesEncrypt(text) +{ + return Aes.Ctr.encrypt(text, "cpm", 128); } -//---<END 3.0.6 -//--->BEGIN 3.0.7 -// Alter -try { - mysqli_query( - $db_link, - 'ALTER TABLE `' . $pre . 'cache_tree` CHANGE `data` `data` LONGTEXT DEFAULT NULL;' +function manageUpgradeScripts(file_number) +{ + var start_at = 0; + var noitems_by_loop = 100; + var loop_number = 0; + + if (file_number == 0) { + $("#step4_progress").html(""); + alertify + .success('Done', 1) + .dismissOthers(); + } + + request = $.post("upgrade_scripts_manager.php", + { + file_number : parseInt(file_number) + }, + function(data) { + console.log(data[0]) + // work not finished + if (data[0].finish !== "1") { + // loop + runUpdate(data[0].scriptname, data[0].parameter, start_at, noitems_by_loop, loop_number, file_number); + } + // work finished + else { + // refresh categories cache + rand_number = createRandomId(); + $("#step4_progress") + .html( + "<div>" + getTime() + " - <span id='user_"+rand_number+"'>Performing database update operations ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ + $("#step4_progress").html() + ); + $.ajax({ + url: "upgrade_ajax.php", + type : "POST", + dataType : "json", + async: false, + data : { + type : "perform_nestedtree_categories_population_3.0.0.18" + }, + complete : function(result, status) { + console.log("Tash perform_nestedtree_categories_population_3.0.0.18 DONE"); + $("#user_"+rand_number) + .html('Database update operations done <i class="fas fa-thumbs-up" style="color:green"></i>'); + migrateUsersToV3('step1', '', 'init', createRandomId(), 0, false, 0); + + alertify + .success('Done with initialization phase', 3) + .dismissOthers(); + } + }); + } + }, + "json" ); -} catch (Exception $e) { - // Do nothing } -// Fix for #3679 -mysqli_query( - $db_link, - "UPDATE `" . $pre . "users` SET `treeloadstrategy` = 'full' WHERE treeloadstrategy NOT IN ('full','sequential');" -); +var usersList = [], + previousStep = '', + usersRestList = []; +/** + * We need to migrate all users + * This will change the users encryption and generate a OTC + * + * @return void + */ +function migrateUsersToV3(step, data, number, rand_number, loop_start, loop_finished, tp_user_done) +{ + console.log("> "+step+" - Number: "+number + " - Previous step: "+previousStep); + console.log(usersList); + var d = new Date(), + count_in_loop = <?php echo (int) NUMBER_ITEMS_IN_BATCH;?>, + userSteps = {}; -//---<END 3.0.7 + // Decode data + var newData = ''; + if (data !== '' && step === 'step1') { + newData = JSON.parse(window.atob(data)); + } + console.log("TO DO : "+step+" -- "+number+" -- "+loop_start+" -- "+loop_finished+" -- "+newData.id) -//--->BEGIN 3.0.8 -// Add field mfa_disabled to USERS table -$res = addColumnIfNotExist( - $pre . 'users', - 'mfa_enabled', - "tinyint(1) NOT null DEFAULT '1';" -); -if ($res === false) { - echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field mfa_disabled to table USERS! ' . mysqli_error($db_link) . '!"}]'; - mysqli_close($db_link); - exit(); -} + if (step === 'step1') { + userInfo = ''; + // Show progress to user + $("#user_"+rand_number).html("User id " + newData.id + " done <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); + + if (newData !== '') { + usersList.push(newData); + } + console.log('List of users'); + console.log(JSON.stringify(usersList)) + + if (usersRestList.length > 0) { + number = usersRestList[0]; + usersRestList.shift(); + } else if (number !== 'init') { + number = 'end'; + } + //console.log('List of next users'); + //console.log(JSON.stringify(usersRestList) + " ; Number = "+number) + + rand_number = createRandomId(); + $("#step4_progress").html("<div>" + getTime() + " - <span id='user_"+rand_number+"'>Treating User account ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); + // -- + // -- + } else { + // Prepare array + if (usersList[number] !== undefined) { + userSteps = { + 'step1' : { + 'text' : 'Users public / private keys were generated if needed', + 'number' : 0, + 'start' : 0 + }, + 'step2' : { + 'text' : 'User '+usersList[number].id+' - All ITEMS keys generated', + 'number' : 0, + 'start' : 0 + }, + 'step3' : { + 'text' : 'User '+usersList[number].id+' - All LOGS keys generated', + 'number' : number, + 'start' : 0 + }, + 'step4' : { + 'text' : 'User '+usersList[number].id+' - All FIELDS keys generated', + 'number' : number, + 'start' : 0 + }, + 'step5' : { + 'text' : 'User '+usersList[number].id+' - All SUGGESTIONS keys generated', + 'number' : number, + 'start' : 0 + }, + 'step6' : { + 'text' : 'User '+usersList[number].id+' - All FILES keys generated', + 'number' : number, + 'start' : 0 + }, + 'nextUser' : { + 'number' : parseInt(number) + 1, + 'start' : 0 + } + }; + } + + // What strategy to have for next treatment + if (previousStep === 'step1') { + $("#user_"+rand_number).html("Users public / private keys were generated if needed <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); + + number = 0; + loop_start = 0; + // -- + } else if (previousStep === step) { + // IF we are in the same step and we continue + $("#user_"+rand_number).html(userSteps[previousStep].text + " until " + (loop_start + count_in_loop) + " done <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); + + loop_start += count_in_loop; + // -- + } else if (step !== 'nextUser' && loop_finished === "true") { + // The loop on current topic is finished but still with same user + $("#user_"+rand_number).html(userSteps[previousStep].text + " <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); + + number = userSteps[step].number; + loop_start = userSteps[step].start; + // -- + } else if (step === 'nextUser') { + // The treatment of current user is finished + // Select next user + $("#user_"+rand_number) + .html(userSteps[previousStep].text + " <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); + + $("#user_"+rand_number).parent() + .prepend('<div>' + getTime() +' - User ' + usersList[number].id + ' fully treated <i class="fas fa-thumbs-up" style="color:green"></i></div>'); + + // Have we handled all users + // If not then restart at step2 for next user + if ((parseInt(number)+1) < usersList.length) { + number = userSteps[step].number; + loop_start = userSteps[step].start; + step = 'step2'; + } else { + // Prepare list of users to be displayed + if (usersList.length === 1 && usersList[0].login === 'TP') { + // do nothing and finish + sendPwdToUsers(usersList, true, 0, usersList.length); + } else { + var htmlUsersList = '<i class="fas fa-info-circle mr-2"></i>You could provide those unique codes to users by your own.<br><ul>'; + $.each(usersList, function(index, user) { + htmlUsersList += '<li>User: '+user.name+' '+user.lastname+' (login: '+user.login+') ; OneTime code: '+user.otp+'</li>' + }); + htmlUsersList += '</ul>'; + + // Done + $("#user_"+rand_number).parent() + .prepend( + '<div>' + getTime() +' - All keys have been generated for users <i class="fas fa-thumbs-up" style="color:green"></i>'+ + '<br>'+ + '<div type="button" class="btn btn-primary btn-sm" id="buttonListOfUsers">Show/Hide list of users</div>'+ + '<div class="hidden alert alert-secondary mt-2" id="htmlListOfUsers" role="alert">'+htmlUsersList+'</div>'+ + '</div>' + ); + + // Act on button click + $(document).on('click', '#buttonListOfUsers', function() { + if ($('#htmlListOfUsers').hasClass('hidden') === true) { + $('#htmlListOfUsers').removeClass('hidden'); + } else { + $('#htmlListOfUsers').addClass('hidden'); + } + }); + + console.log(usersList); + // Now send passwords + console.log("Send emails to users from now"); + sendPwdToUsers(usersList, true, 0, usersList.length); + } -//---<END 3.0.8 + return; + } + } + + if (usersList.length === 0 && step === 'step2' && loop_finished === 'true' && number === 0 && loop_start === 0) { + /* Unlock this step */ + document.getElementById("but_next").disabled = ""; + document.getElementById("but_launch").disabled = "disabled"; + + $("#user_"+rand_number).parent() + .prepend('<div>' + getTime() +' - All steps have been successfully performed <i class="fas fa-thumbs-up" style="color:green"></i></div>'); + return; + } else { + // Show progress + rand_number = createRandomId(); + $("#step4_progress").html("<div>" + getTime() +" - <span id='user_"+rand_number+"'>User "+usersList[number].id+" - Creating keys until "+(loop_start + count_in_loop)+" ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); + // Prepare user information + userInfo = { + 'id' : usersList[number].id, + 'otp' : usersList[number].otp, + 'public_key' : usersList[number].public_key, + 'private_key' : usersList[number].private_key, + 'login' : usersList[number].login, + 'name' : encode_utf8(usersList[number].name), + 'lastname' : encode_utf8(usersList[number].lastname), + }; + } + } + // Migrate if needed all account to new AES encryption + //console.log('Posting number = '+number); + $.post( + "upgrade_run_3.0.0_users.php", + { + step : step, + number : number === 'init' ? '' : number, + userInfo : window.btoa(unescape(encodeURIComponent(JSON.stringify(userInfo)))), + start : loop_start, + count_in_loop : count_in_loop, + info : $('#infotmp').val(), + extra : number === 'end' ? 'all_users_created' : '', + tp_user_done : tp_user_done, + }, + function(data) { + console.log(data[0]); + //console.log(JSON.parse(window.atob(data[0].rest))); + //console.log(JSON.parse(window.atob(data[0].data))); + previousStep = step; -//--->BEGIN 3.0.9 -// Add new setting 'reload_cache_table_task' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'reload_cache_table_task'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'reload_cache_table_task', '')" + if (data[0].finish !== "1") { + // Manage list of users that is provide on number = 0 + if (number === 'init' && step === 'step1') { + if (data[0].rest !== '') { + usersRestList = JSON.parse(window.atob(data[0].rest)); + }else { + usersRestList = ''; + } + console.log("USERLIST = "+usersRestList); + } + + // loop + migrateUsersToV3( + data[0].next, + data[0].data, + data[0].number, + rand_number, + loop_start, + data[0].loop_finished, + 1 + ); + } else { + // Done + /* Unlock this step */ + document.getElementById("but_next").disabled = ""; + document.getElementById("but_launch").disabled = "disabled"; + } + }, + "json" ); } -// Add new setting 'rebuild_config_file' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'rebuild_config_file'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'rebuild_config_file', '')" - ); -}// Add new setting 'purge_temporary_files_task' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'purge_temporary_files_task'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'purge_temporary_files_task', '')" + +/** +* + */ +function sendPwdToUsers(usersList, init, cpt, total) +{ + var d = new Date(); + + // Inform + if (init === true) { + rand_number = createRandomId(); + $("#step4_progress").html("<div>" + getTime() +" - <span id='user_"+rand_number+"'>Now sending new users password by email ... " + + "<i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i><span id='sending_emails_pct' class='ml-3'>0%</span></div>"+ $("#step4_progress").html()); + } + + // Prepare user data to be sent + userInfo = { + 'id' : usersList[0].id, + 'otp' : usersList[0].otp, + }; + //console.log('Envoi email pour : '); + //console.log(userInfo); + + // Remove user from list + usersList.shift(); + + // Send email for each user + $.post( + "upgrade_run_3.0.0_users.php", + { + step : 'send_pwd_by_email', + userInfo : window.btoa(JSON.stringify(userInfo)) + }, + function(data) { + //console.log(data); + //console.log('----'); + // Done with sending the user email + if (usersList.length === 0) { + // all users have received their email + $("#user_"+rand_number) + .html("Emails were sent <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); + + /* Unlock this step */ + document.getElementById("but_next").disabled = ""; + document.getElementById("but_launch").disabled = "disabled"; + + $("#user_"+rand_number).parent() + .prepend('<div>' + getTime() +' - All steps have been successfully performed <i class="fas fa-thumbs-up" style="color:green"></i></div>'); + + } else { + // current user received his email + // Send to the next one + $("#sending_emails_pct").text(Math.round((cpt / total) * 100) + "%"); + + sendPwdToUsers(usersList, false, cpt++, total); + } + }, + "json" ); } -// Add new setting 'clean_orphan_objects_task' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'clean_orphan_objects_task'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'clean_orphan_objects_task', '')" + +function runUpdate (script_file, type_parameter, start_at, noitems_by_loop, loop_number, file_number) +{ + var d = new Date(), + info = '', + text_action_in_progress = script_file; + loop_number ++; + var rand_number = createRandomId(); + + // Inform + if (script_file === 'upgrade_operations.php') { + text_action_in_progress = 'Performing operation ' + type_parameter; + } + + $("#step4_progress").html("<div>" + getTime() +" - <i>"+text_action_in_progress+"</i> - Loop #"+loop_number+" <span id='span_"+rand_number+"'>is now running ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); + + if (type_parameter === 'user_id') { + info = $("#infotmp").val(); + } + + request = $.post( + script_file, + { + type : type_parameter, + start : start_at, + total : start_at, + nb : noitems_by_loop, + session_salt: $("#session_salt").val(), + info : info, + }, + function(data) { + console.info(type_parameter) + console.log(data) + // work not finished + if (data[0].finish !== "1") { + $("#span_"+rand_number).html("<i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>") + // loop + runUpdate(script_file, type_parameter, data[0].next, noitems_by_loop, loop_number, file_number); + // is there an error + } else if (data[0].finish === "1" && data[0].error !== "") { + $("#span_"+rand_number).html("<i class=\"fas fa-thumbs-down\" style=\"color:red\"></i>"); + $("#step4_progress").html("<div style=\"margin:15px 0 15px 0; font-style:italic;\">"+getTime() +" - <b>ERROR</b>: "+data[0].error+"</div>"+ $("#step4_progress").html()); + $("#step4_progress").html("<div>An error occurred. Please check and relaunch.</div>"+ $("#step4_progress").html()); + // work finished + } else { + $("#span_"+rand_number).html("<i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>") + // continue with next script file + file_number ++; + manageUpgradeScripts(file_number); + } + }, + "json" ); } -// Add new setting 'users_personal_folder_task' -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'users_personal_folder_task'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'users_personal_folder_task', '')" + +function newEncryptPw(suggestion) +{ + var nb = 20; + var start = 0; + + if ($("#change_pw_encryption_start").val() != "") { + start = $("#change_pw_encryption_start").val(); + } else { + $("#change_pw_encryption_progress").html('Progress: 0% <i class="fas fa-cog fa-spin fa-2x"></i>'); + } + var request = $.post("upgrade_ajax.php", + { + type : "new_encryption_of_pw", + start : start, + total : $("#change_pw_encryption_total").val(), + suggestion : suggestion, + nb : nb + }, + function(data) { + if (data[0].finish != 1 && data[0].finish != "suggestion") { + // handle re-encryption of passwords in Items table + $("#change_pw_encryption_start").val(data[0].next); + $("#change_pw_encryption_progress").html('Progress: '+data[0].progress+'% <i class="fas fa-cog fa-spin fa-2x"></i>'); + if (parseInt(start) < parseInt($("#change_pw_encryption_total").val())) { + newEncryptPw("0"); + } + } else if (data[0].finish == "suggestion") { + // handle the re-encryption of passwords in suggestion table + newEncryptPw("1"); + } else { + // handle finishing + $("#change_pw_encryption_progress").html("Done"); + $("#but_encrypt_continu").hide(); + /* Unlock this step */ + document.getElementById("but_next").disabled = ""; + document.getElementById("but_launch").disabled = "disabled"; + document.getElementById("res_step4").innerHTML = "dataBase has been populated"; + document.getElementById("loader").style.display = "none"; + } + }, + "json" ); + } -// Remove unused settings -mysqli_query( - $db_link, - "DELETE FROM `" . $pre . "misc` WHERE `intitule`='maintenance_job_tasks';" -); -mysqli_query( - $db_link, - "DELETE FROM `" . $pre . "misc` WHERE `intitule`='maintenance_job_frequency';" -); +function launch_database_dump() { + alertify + .message('<i class="fas fa-cog fa-spin fa-2x"></i>', 0) + .dismissOthers(); -//---<END 3.0.9 + request = $.post( + "upgrade_ajax.php", + { + type : "perform_database_dump" + }, + function(data) { + console.log(data) + if (data[0].error !== "") { + // ERROR + $("#dump_result").html(data[0].error); -// Save timestamp -$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'upgrade_timestamp'")); -if (intval($tmp) === 0) { - mysqli_query( - $db_link, - "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'upgrade_timestamp', ".time().")" - ); -} else { - mysqli_query( - $db_link, - "UPDATE `" . $pre . "misc` SET valeur = ".time()." WHERE type = 'admin' AND intitule = 'upgrade_timestamp'" + alertify + .Error('Error', 1) + .dismissOthers(); + } else { + // DONE + $("#dump_result").html('<div class="alert alert-info mt-2">Dump is successfull. File stored in file <b>' + data[0].filename + '</b></div>'); + $('#but_next').attr("disabled", false); + alertify + .success('Success', 1) + .dismissOthers(); + } + }, + "json" ); } -//---< END 3.0.X upgrade steps +function createRandomId() +{ + var randLetter = String.fromCharCode(65 + Math.floor(Math.random() * 26)); + return randLetter + Date.now(); +} + +function getTime() +{ + var d = new Date(); + return ("0" +d.getHours()).slice(-2)+":"+("0" + d.getMinutes()).slice(-2)+":"+("0" + d.getSeconds()).slice(-2) +} + +function encode_utf8( s ) +{ + return unescape( encodeURIComponent( s ) ); +} -// Close connection -mysqli_close($db_link); +</script> -// Finished -echo '[{"finish":"1" , "next":"", "error":""}]'; \ No newline at end of file diff --git a/install/upgrade_scripts_manager.php b/install/upgrade_scripts_manager.php index 227ca38e24..2f156d7f71 100755 --- a/install/upgrade_scripts_manager.php +++ b/install/upgrade_scripts_manager.php @@ -36,10 +36,11 @@ $scripts_list = array( array('upgrade_run_3.0.0_logs.php', 'user_id'), array('upgrade_run_3.0.0_fields.php', 'user_id'), array('upgrade_run_3.0.0_suggestions.php', 'user_id'), array('upgrade_run_3.0.0_files.php', 'user_id'), array('upgrade_run_3.0.php', 'user_id'), + array('upgrade_operations.php', '20230604_1'), ); $param = ''; // test if finished if (intval($post_file_number) >= count($scripts_list)) { diff --git a/pages/items.js.php b/pages/items.js.php index 104e3efd21..4eaa57b7f4 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -3686,11 +3686,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- $.ajax({ type: "POST", async: false, url: 'sources/items.queries.php', - data: 'type=show_item_password&item_id=' + trigger.getAttribute('data-item-id') + + data: 'type=show_item_password&item_key=' + trigger.getAttribute('data-item-key') + '&key=<?php echo $_SESSION['key']; ?>', dataType: "", success: function(data) { //decrypt data try { @@ -3965,11 +3965,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- if (value.login !== '') { icon_login = '<span class="fa-stack fa-clickable fa-clickable-login pointer infotip mr-2" title="<?php echo langHdl('item_menu_copy_login'); ?>" data-clipboard-text="' + sanitizeString(value.login) + '"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-user fa-stack-1x fa-inverse"></i></span>'; } // Pwd icon if (value.pw_status !== 'pw_is_empty' && value.pw_status !== 'encryption_error') { - icon_pwd = '<span class="fa-stack fa-clickable fa-clickable-password pointer infotip mr-2" title="<?php echo langHdl('item_menu_copy_pw'); ?>" data-item-id="' + value.item_id + '" data-item-label="' + value.label + '"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-key fa-stack-1x fa-inverse"></i></span>'; + icon_pwd = '<span class="fa-stack fa-clickable fa-clickable-password pointer infotip mr-2" title="<?php echo langHdl('item_menu_copy_pw'); ?>" data-item-key="' + value.item_key + '" data-item-label="' + value.label + '"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-key fa-stack-1x fa-inverse"></i></span>'; } // Now check if pwd is empty. If it is then warn user if (value.pw_status === 'pw_is_empty') { pwd_error = '<span class="fa-stack fa-clickable fa-clickable-password pointer infotip mr-2" title="<?php echo langHdl('password_is_empty'); ?>"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-exclamation-triangle text-warning fa-stack-1x fa-inverse"></i></span>'; diff --git a/sources/items.queries.php b/sources/items.queries.php index b50499f17a..8620645e2d 100755 --- a/sources/items.queries.php +++ b/sources/items.queries.php @@ -446,10 +446,11 @@ if (is_null($inputData['type']) === false) { 'anyone_can_modify' => (isset($post_anyone_can_modify) === true && $post_anyone_can_modify === 'on') ? 1 : 0, 'complexity_level' => $post_complexity_level, 'encryption_type' => 'teampass_aes', 'fa_icon' => $post_fa_icon, + 'unique' => uniqidReal(50), ) ); $newID = DB::insertId(); // Create sharekeys for users @@ -2607,10 +2608,11 @@ if (is_null($inputData['type']) === false) { $arrData['id_restricted_to'] = $listeRestriction; $arrData['id_restricted_to_roles'] = $listRestrictionRoles; $arrData['tags'] = $tags; $arrData['folder'] = (int) $dataItem['id_tree']; $arrData['fa_icon'] = $dataItem['fa_icon']; + $arrData['item_key'] = $dataItem['item_key']; if ( isset($SETTINGS['enable_server_password_change']) && (int) $SETTINGS['enable_server_password_change'] === 1 ) { @@ -3813,11 +3815,11 @@ if (is_null($inputData['type']) === false) { $query_limit = ' LIMIT ' . $start . ',' . $post_nb_items_to_display_once; //db::debugmode(true); $rows = DB::query( - 'SELECT i.id AS id, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, + 'SELECT i.id AS id, i.item_key AS item_key, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, MIN(i.label) AS label, MIN(i.description) AS description, MIN(i.pw) AS pw, MIN(i.login) AS login, MIN(i.anyone_can_modify) AS anyone_can_modify, l.date AS date, i.id_tree AS tree_id, i.fa_icon AS fa_icon, MIN(n.renewal_period) AS renewal_period, MIN(l.action) AS log_action, l.id_user AS log_user, @@ -3834,11 +3836,11 @@ if (is_null($inputData['type']) === false) { } else { $post_nb_items_to_display_once = 'max'; $where->add('i.inactif=%i', 0); $rows = DB::query( - 'SELECT i.id AS id, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, + 'SELECT i.id AS id, i.item_key AS item_key, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, MIN(i.label) AS label, MIN(i.description) AS description, MIN(i.pw) AS pw, MIN(i.login) AS login, MIN(i.anyone_can_modify) AS anyone_can_modify,l.date AS date, i.id_tree AS tree_id, i.fa_icon AS fa_icon, MIN(n.renewal_period) AS renewal_period, MIN(l.action) AS log_action, l.id_user AS log_user, @@ -3921,10 +3923,11 @@ if (is_null($inputData['type']) === false) { $expired_item = 1; } // Init $html_json[$record['id']]['expired'] = (int) $expired_item; $html_json[$record['id']]['item_id'] = (int) $record['id']; + $html_json[$record['id']]['item_key'] = (string) $record['item_key']; $html_json[$record['id']]['tree_id'] = (int) $record['tree_id']; $html_json[$record['id']]['label'] = strip_tags($record['label']); if (isset($SETTINGS['show_description']) === true && (int) $SETTINGS['show_description'] === 1) { $html_json[$record['id']]['desc'] = substr(preg_replace('#<[^>]+>#', ' ', $record['description']), 0, 200); } else { @@ -4160,13 +4163,13 @@ if (is_null($inputData['type']) === false) { // Run query $dataItem = DB::queryfirstrow( 'SELECT i.pw AS pw, s.share_key AS share_key FROM ' . prefixTable('items') . ' AS i INNER JOIN ' . prefixTable('sharekeys_items') . ' AS s ON (s.object_id = i.id) - WHERE user_id = %i AND i.id = %i', + WHERE user_id = %i AND i.item_key = %i', $_SESSION['user_id'], - $inputData['itemId'] + $inputData['item_key'] ); // Uncrypt PW if (DB::count() === 0) { // No share key found
KEY `restricted_inactif_idx` (`restricted_to`,`inactif`) info = ''; $("#step4_progress").html("<div>" + getTime() +" - <i>"+script_file+"</i> - Loop #"+loop_number+" <span id='span_"+rand_number+"'>is now running ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); * @file upgrade_run_3.0.php set_time_limit(600); error_reporting(E_ERROR | E_PARSE); //include librairies require_once '../includes/config/settings.php'; require_once '../sources/main.functions.php'; require_once '../includes/libraries/Tree/NestedTree/NestedTree.php'; require_once 'tp.functions.php'; require_once 'libs/aesctr.php'; require_once '../includes/config/tp.config.php'; // Get the encrypted password define('DB_PASSWD_CLEAR', defuse_return_decrypted(DB_PASSWD)); /* //Build tree $tree = new Tree\NestedTree\NestedTree( $pre . 'nested_tree', 'id', 'parent_id', 'title' */ // DataBase // Test DB connexion $pass = DB_PASSWD_CLEAR; $server = DB_HOST; $pre = DB_PREFIX; $database = DB_NAME; $port = DB_PORT; $user = DB_USER; if (mysqli_connect( $server, $user, $pass, $database, $port )) { $db_link = mysqli_connect( $server, $user, $pass, $database, $port ); $res = 'Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()); echo '[{"finish":"1", "msg":"", "error":"Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()) . '!"}]'; mysqli_close($db_link); exit(); // Load libraries require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; $superGlobal = new protect\SuperGlobal\SuperGlobal(); //--->BEGIN 3.0.1 // Ensure admin user is ready mysqli_query( $db_link, "UPDATE ".$pre."users SET is_ready_for_usage = 1, otp_provided = 1 WHERE id = 1" ); //---<END 3.0.1 //--->BEGIN 3.0.5 // Add the INDEX process_id_idx to the processes_tasks table $res = checkIndexExist( $pre . 'processes_tasks', 'process_id_idx', "ADD KEY `process_id_idx` (`process_id`)" ); if (!$res) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding the INDEX process_id_idx to the processes_tasks table! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); } //---<END 3.0.5 //--->BEGIN 3.0.6 // Add new setting 'sending_emails_job_frequency' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'sending_emails_job_frequency'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'sending_emails_job_frequency', '2')" ); } // Add new setting 'user_keys_job_frequency' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'user_keys_job_frequency'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'user_keys_job_frequency', '1')" ); // Add new setting 'items_statistics_job_frequency' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'enable_tasks_items_statistics_job_frequencymanager'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'items_statistics_job_frequency', '5')" ); // Add field ongoing_process_id to USERS table $res = addColumnIfNotExist( $pre . 'users', 'ongoing_process_id', "varchar(100) NULL;" ); if ($res === false) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field ongoing_process_id to table USERS! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); //---<END 3.0.6 //--->BEGIN 3.0.7 // Alter try { mysqli_query( $db_link, 'ALTER TABLE `' . $pre . 'cache_tree` CHANGE `data` `data` LONGTEXT DEFAULT NULL;' } catch (Exception $e) { // Do nothing // Fix for #3679 mysqli_query( $db_link, "UPDATE `" . $pre . "users` SET `treeloadstrategy` = 'full' WHERE treeloadstrategy NOT IN ('full','sequential');" ); //---<END 3.0.7 //--->BEGIN 3.0.8 // Add field mfa_disabled to USERS table $res = addColumnIfNotExist( $pre . 'users', 'mfa_enabled', "tinyint(1) NOT null DEFAULT '1';" ); if ($res === false) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field mfa_disabled to table USERS! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); } //---<END 3.0.8 //--->BEGIN 3.0.9 // Add new setting 'reload_cache_table_task' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'reload_cache_table_task'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'reload_cache_table_task', '')" // Add new setting 'rebuild_config_file' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'rebuild_config_file'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'rebuild_config_file', '')" ); }// Add new setting 'purge_temporary_files_task' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'purge_temporary_files_task'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'purge_temporary_files_task', '')" // Add new setting 'clean_orphan_objects_task' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'clean_orphan_objects_task'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'clean_orphan_objects_task', '')" // Add new setting 'users_personal_folder_task' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'users_personal_folder_task'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'users_personal_folder_task', '')" // Remove unused settings mysqli_query( $db_link, "DELETE FROM `" . $pre . "misc` WHERE `intitule`='maintenance_job_tasks';" ); mysqli_query( $db_link, "DELETE FROM `" . $pre . "misc` WHERE `intitule`='maintenance_job_frequency';" ); //---<END 3.0.9 // Save timestamp $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'upgrade_timestamp'")); if (intval($tmp) === 0) { mysqli_query( $db_link, "INSERT INTO `" . $pre . "misc` (`type`, `intitule`, `valeur`) VALUES ('admin', 'upgrade_timestamp', ".time().")" ); } else { mysqli_query( $db_link, "UPDATE `" . $pre . "misc` SET valeur = ".time()." WHERE type = 'admin' AND intitule = 'upgrade_timestamp'" //---< END 3.0.X upgrade steps // Close connection mysqli_close($db_link); // Finished echo '[{"finish":"1" , "next":"", "error":""}]'; data: 'type=show_item_password&item_id=' + trigger.getAttribute('data-item-id') + icon_pwd = '<span class="fa-stack fa-clickable fa-clickable-password pointer infotip mr-2" title="<?php echo langHdl('item_menu_copy_pw'); ?>" data-item-id="' + value.item_id + '" data-item-label="' + value.label + '"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-key fa-stack-1x fa-inverse"></i></span>'; 'SELECT i.id AS id, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, 'SELECT i.id AS id, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, WHERE user_id = %i AND i.id = %i', $inputData['itemId']
`item_key` varchar(500) NOT NULL DEFAULT '1', KEY `restricted_inactif_idx` (`restricted_to`,`inactif`) info = '', text_action_in_progress = script_file; // Inform if (script_file === 'upgrade_operations.php') { text_action_in_progress = 'Performing operation ' + type_parameter; } $("#step4_progress").html("<div>" + getTime() +" - <i>"+text_action_in_progress+"</i> - Loop #"+loop_number+" <span id='span_"+rand_number+"'>is now running ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); <?php /** * Teampass - a collaborative passwords manager. * --- * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --- * @project Teampass * @file upgrade_operations.php * --- * @author Nils Laumaillé (nils@teampass.net) * @copyright 2009-2023 Teampass.net * @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0 * --- * @see https://www.teampass.net */ set_time_limit(600); require_once '../sources/SecureHandler.php'; session_name('teampass_session'); session_start(); error_reporting(E_ERROR | E_PARSE); $_SESSION['CPM'] = 1; //include librairies require_once '../includes/language/english.php'; require_once '../includes/config/include.php'; require_once '../includes/config/settings.php'; require_once '../sources/main.functions.php'; require_once '../includes/libraries/Tree/NestedTree/NestedTree.php'; require_once 'tp.functions.php'; require_once 'libs/aesctr.php'; require_once '../includes/config/tp.config.php'; // Prepare POST variables $post_nb = filter_input(INPUT_POST, 'nb', FILTER_SANITIZE_NUMBER_INT); $post_start = filter_input(INPUT_POST, 'start', FILTER_SANITIZE_NUMBER_INT); // Load libraries require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; $superGlobal = new protect\SuperGlobal\SuperGlobal(); // Some init $_SESSION['settings']['loaded'] = ''; $finish = true; // Get the encrypted password define('DB_PASSWD_CLEAR', defuse_return_decrypted(DB_PASSWD)); // DataBase // Test DB connexion $pass = DB_PASSWD_CLEAR; $server = DB_HOST; $pre = DB_PREFIX; $database = DB_NAME; $port = DB_PORT; $user = DB_USER; if (mysqli_connect( $server, $user, $pass, $database, $port )) { $db_link = mysqli_connect( $server, $user, $pass, $database, $port ); } else { $res = 'Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()); echo '[{"finish":"1", "msg":"", "error":"Impossible to get connected to server. Error is: ' . addslashes(mysqli_connect_error()) . '!"}]'; mysqli_close($db_link); exit(); } // Load libraries require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; $superGlobal = new protect\SuperGlobal\SuperGlobal(); // Get POST with operation to perform $post_operation = filter_input(INPUT_POST, 'type', FILTER_SANITIZE_FULL_SPECIAL_CHARS); if (isset($post_operation) === true && empty($post_operation) === false) { // ----> // OPERATION - 20230604_1 - generate key for item_key // Get items to treat $rows = mysqli_query( $db_link, "SELECT id FROM ".$pre."items WHERE item_key = '-1' ORDER BY id LIMIT ".$post_nb.";" ); // Handle error on query if (!$rows) { echo '[{"finish":"1" , "error":"'.mysqli_error($db_link).'"}]'; exit(); } // Get total of items to treat $total = mysqli_num_rows($rows); // Loop on items and update for requested ones if ((int) $total > 0) { while ($row = mysqli_fetch_array($rows, MYSQLI_ASSOC)) { // Gererate a key and update mysqli_query( $db_link, "UPDATE `".$pre."items` SET `item_key` = '".uniqidReal(50)."' WHERE `id` = ".$row['id'].";" ); if (mysqli_error($db_link)) { echo '[{"finish":"1", "next":"", "error":"MySQL Error! '.addslashes(mysqli_error($db_link)).'"}]'; exit(); } } } // Manage end of operation if ($total === 0) { $finish = 1; } else { $finish = 0; } // ----< } // Close connection mysqli_close($db_link); // Return back echo '[{"finish":"'.$finish.'" , "next":"", "error":"", "total":"'.$total.'"}]'; * @file upgrade.php header('X-XSS-Protection: 1; mode=block'); header('X-Frame-Options: SameOrigin'); // **PREVENTING SESSION HIJACKING** // Prevents javascript XSS attacks aimed to steal the session ID ini_set('session.cookie_httponly', 1); // **PREVENTING SESSION FIXATION** // Session ID cannot be passed through URLs ini_set('session.use_only_cookies', 1); // Uses a secure connection (HTTPS) if possible ini_set('session.cookie_secure', 0); //Session teampass tag define('MIN_PHP_VERSION', 7.4); define('MIN_MYSQL_VERSION', '8.0.13'); define('MIN_MARIADB_VERSION', '10.2.1'); // Prepare POST variables $post_root_url = filter_input(INPUT_POST, 'root_url', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $post_step = filter_input(INPUT_POST, 'step', FILTER_SANITIZE_NUMBER_INT); $post_actual_cpm_version = filter_input(INPUT_POST, 'actual_cpm_version', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $post_cpm_isUTF8 = filter_input(INPUT_POST, 'cpm_isUTF8', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $post_user_granted = filter_input(INPUT_POST, 'user_granted', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $post_session_salt = filter_input(INPUT_POST, 'session_salt', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $post_url_path = filter_input(INPUT_POST, 'url_path', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $post_infotmp = filter_input(INPUT_POST, 'infotmp', FILTER_SANITIZE_FULL_SPECIAL_CHARS); //############### //# Function permits to get the value from a line //############### /** * @param string $val */ function getSettingValue($val) { $val = trim(strstr($val, '=')); return trim(str_replace('"', '', substr($val, 1, strpos($val, ';') - 1))); } //get infos from SETTINGS.PHP file $filename = '../includes/config/settings.php'; $events = ''; if (file_exists($filename)) { include_once $filename; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>TeamPass Upgrade</title> <meta http-equiv='Content-Type' content='text/html;charset=utf-8' /> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta http-equiv="x-ua-compatible" content="ie=edge"/> <link rel="stylesheet" href="css/install.css" type="text/css" /> <link rel="stylesheet" href="../plugins/fontawesome-free-6/css/all.css"> <!-- Theme style --> <link rel="stylesheet" href="../plugins/adminlte/css/adminlte.min.css"> <link rel="stylesheet" href="../plugins/alertifyjs/css/alertify.min.css"/> <link rel="stylesheet" href="../plugins/alertifyjs/css/themes/bootstrap.min.css"/> </head> <body> <?php if (empty($post_root_url) === false) { $_SESSION['fullurl'] = $post_root_url; } //define root path $abs_path = rtrim( filter_var($_SERVER['DOCUMENT_ROOT'], FILTER_SANITIZE_FULL_SPECIAL_CHARS), '/' ).substr( filter_var($_SERVER['PHP_SELF'], FILTER_SANITIZE_FULL_SPECIAL_CHARS), 0, strlen(filter_var($_SERVER['PHP_SELF'], FILTER_SANITIZE_FULL_SPECIAL_CHARS)) - 20 if (isset($_SERVER['HTTPS'])) { $protocol = 'https://'; $protocol = 'http://'; // HEADER echo ' <div id="top" class="center-screen"> <div id="logo" class="lcol"><img src="../includes/images/teampass-logo2-home.png" /></div> <div class="lcol"> <span class="header-title">'.strtoupper(TP_TOOL_NAME).'</span> <!--<span class="header-title-small"> v'.TP_VERSION.'</span>--> </div> <div id="content"> <form name="install" method="post" action=""> <div class="card card-default color-palette-box"> <div class="card-header"> <h3 class="card-title"> <i class="fas fa-people-carry mr-2"></i>Teampass upgrade </h3> </div> <div class="card-body">'; //HIDDEN THINGS echo ' <input type="hidden" id="step" name="step" value="', isset($post_step) ? $post_step : '', '" /> <input type="hidden" id="actual_cpm_version" name="actual_cpm_version" value="', isset($post_actual_cpm_version) ? $post_actual_cpm_version : '', '" /> <input type="hidden" id="cpm_isUTF8" name="cpm_isUTF8" value="', isset($post_cpm_isUTF8) ? $post_cpm_isUTF8 : '', '" /> <input type="hidden" name="menu_action" id="menu_action" value="" /> <input type="hidden" name="user_granted" id="user_granted" value="" /> <input type="hidden" name="infotmp" id="infotmp" value="', isset($post_infotmp) ? $post_infotmp : '', '" /> <input type="hidden" name="url_path" id="url_path" value="'.$protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'" /> <input type="hidden" name="session_salt" id="session_salt" value="', (isset($post_session_salt) && !empty($post_session_salt)) ? $post_session_salt : @$_SESSION['encrypt_key'], '" />'; if (!isset($_GET['step']) && !isset($post_step)) { //ETAPE O echo ' <div class="row"> <div class="callout callout-warning col-12"> <h5>Information</h5> <p>Upgrade process is about to start. This will upgrade Teampass database to version '.TP_VERSION.'.</p> <p>Version 3 comes with a new secured encryption strategy getting rid of any Saltkey. It relies on public and private keys generated for each user. As an impact, this upgrade will automatically generate a One-Time-Code for each user and send by email. It will be requested on first login. Please ensure your users have filled in their email with a valid value.</p> </div> <div class="callout callout-info col-12"> <h5>Before starting, take a couple of minutes to perform backup of current Teampass instance:</h5> <p> <ul> <li><i class="fas fa-exclamation-circle mr-2 text-danger"></i>Ensure to clear your browser cache (keyboard: <i>CTRL + F5</i>)</li> <li><i class="fas fa-exclamation-triangle mr-2 text-warning"></i>Create a dump of your database</li> <li><i class="fas fa-exclamation-triangle mr-2 text-warning"></i>Perform a zip of the current Teampass folder</li> <li><i class="fas fa-info-circle mr-2 text-success"></i>Refer to <a href="https://teampass.readthedocs.io/en/latest/install/upgrade/" target="_blank" class="text-info">upgrade documentation</a>.</li> </ul> </p> </div> </div> <div class="row card card-primary"> <div class="card-body col-12"> <div class="form-group"> <label>Administrator Login</label> <input type="text" class="form-control" id="user_login" placeholder="Enter admin login"> </div> <div class="form-group"> <label>Password</label> <input type="password" class="form-control" id="user_pwd" placeholder="Enter admin password"> </div> <div class="alert alert-warning hidden" id="res_step0"></div> </div> </div> <input type="hidden" id="step0" name="step0" value="" /> </div>'; // STEP1 } elseif ((isset($post_step) && $post_step == 1) || (isset($_GET['step']) && $_GET['step'] == 1) && $post_user_granted === '1' ) { //ETAPE 1 $_SESSION['user_granted'] = $post_user_granted; echo ' <div class="row"> <div class="col-12"> <div class="card card-primary"> <div class="card-header"> <h5>Server information</h5> </div> <div class="card-body"> <div class="form-group"> <label>Absolute path to TeamPass folder</label> <input type="text" class="form-control" id="root_path" value="'.$abs_path.'"> </div> <div class="form-group"> <label>Full URL to TeamPass</label> <input type="text" class="form-control" id="root_url" value="'.$protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'"> </div> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card card-primary"> <div class="card-header"> <h5>Next elements will be checked</h5> </div> <div class="card-body"> <div id="res_step1"> <span>File "settings.php" is writable</span><br /> <span>Directory "/install/" is writable</span><br /> <span>Directory "/includes/" is writable</span><br /> <span>Directory "/includes/config/" is writable</span><br /> <span>Directory "/includes/avatars/" is writable</span><br /> <span>Directory "/files/" is writable</span><br /> <span>Directory "/upload/" is writable</span><br /> <span>PHP extension "openssl" is loaded</span><br /> <span>PHP extension "gd" is loaded</span><br /> <span>PHP extension "mbstring" is loaded</span><br /> <span>PHP extension "bcmath" is loaded</span><br /> <span>PHP extension "iconv" is loaded</span><br /> <span>PHP extension "xml" is loaded</span><br /> <span>PHP extension "curl" is loaded</span><br /> <span>PHP extension "gmp" is loaded</span><br /> <span>PHP extension "mcrypt" is loaded</span><br /> <span>PHP version is greater or equal to '.MIN_PHP_VERSION.'</span><br /> <span>SQL version is greater or equal to MySQL '.MIN_MYSQL_VERSION.' or MariaDB '.MIN_MARIADB_VERSION.'</span><br /> </div> </div> </div> </div> </div> <input type="hidden" id="step1" name="step1" value="" />'; // STEP2 } elseif ((isset($post_step) && $post_step == 2) || (isset($_GET['step']) && $_GET['step'] == 2) && $_SESSION['user_granted'] === '1' ) { // Do we have all database settings if (null !== DB_HOST && null !== DB_USER && null !== DB_PASSWD && null !== DB_NAME && null !== DB_PREFIX && null !== DB_PORT ) { $dbSettings = true; } else { $dbSettings = false; } //ETAPE 2 echo ' <div class="row"> <div class="col-12"> <div class="card card-',$dbSettings === true ? 'primary' : 'warning','"> <div class="card-header"> <h5>DataBase Informations</h5> </div> <div class="card-body"> <!--<div class="form-group"> <label>Host</label> <input type="text" class="form-control" name="db_host" id="db_host" class="ui-widget" value="'.DB_HOST.'"> </div> <div class="form-group"> <label>Database name</label> <input type="text" class="form-control" name="db_name" id="db_name" class="ui-widget" value="'.DB_NAME.'"> </div> <div class="form-group"> <label>Login</label> <input type="text" class="form-control" name="db_user" id="db_user" class="ui-widget" value="'.DB_USER.'"> </div> <div class="form-group"> <label>Password</label> <input type="text" class="form-control" name="db_pw" id="db_pw" class="ui-widget" value="'.$visible_pwd.'"> </div> <div class="form-group"> <label>Prefix</label> <input type="text" class="form-control" name="db_prefix" id="db_prefix" class="ui-widget" value="'.DB_PREFIX.'"> </div> <div class="form-group"> <label>Port</label> <input type="text" class="form-control" name="db_port" id="db_port" class="ui-widget" value="'.DB_PORT.'"> </div>-->'; // check if all database info are available if ($dbSettings === true) { echo ' <div> Database settings has been retreived.<br> If you need to change them, please edit file `/includes/config/settings.php` and relaunch the upgrade process. </div>'; } else { echo ' <div> The database information has not been retreived from the settings file.<br> You need to adapt the file `/includes/config/settings.php` and relaunch the upgrade process. </div>'; } echo ' <a href="'.$protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'/install/upgrade.php">Restart upgrade process</a> </div> </div> <div class="card card-primary"> <div class="card-header"> <h5>Maintenance Mode</h5> </div> <div class="card-body"> <div> <input type="checkbox" class="mr-2" id="no_maintenance_mode"> <label for="no_maintenance_mode">Don\'t activate the Maintenance mode</label> </div> <small class="form-text text-muted"> By default, the maintenance mode is enabled when an Update is performed. This prevents the use of TeamPass while the scripts are running.<br /> However, some administrators may prefer to warn the users in another way. Nevertheless, keep in mind that the update process may fail or even be corrupted due to parallel queries. </small> </div> </div> <div class="card card-primary"> <div class="card-header"> <h5>Database dump</h5> </div> <div class="card-body"> <div> If you have NOT performed a dump of your database, please considere to create one now. </div> <div> <a href="#" onclick="launch_database_dump(); return false;">Launch a new database dump</a> </div> <div> <span id="dump_result" style="margin-top:4px;" class="card card-info"></span> </div> </div> </div> <!-- teampass_version = 2.1.27 and no encrypt_key in db --> <div class="callout card-warning hidden" id="no_encrypt_key"> <div class="card-header"> <h5>Database Origine</h5> </div> <div class="card-body"> <div> Please select:&nbsp;<select id="no_key_selection"> <option value="false">-- select --</option> <option value="no_previous_sk_sel">We have never used Teampass in an older version than 2.1.27(.x)</option> <option value="previous_sk_sel">We have used Teampass in an older version (example: 2.1.26)</option> </select> <div id="previous_sk_div" style="display:none;"> <p>Please use the next field to enter the saltkey you used in previous version of Teampass. It can be retrieved by editing sk.php file (in case you are upgrading from a version older than 2.1.27) or a sk.php backup file (in case you are upgrading from 2.1.27).<br> </p> <label for="previous_sk">Previous SaltKey:&nbsp</label> <input type="text" id="previous_sk" size="100px" value="'.@$_SESSION['encrypt_key'].'" /> </div> </div> </div> </div> <div style="margin-top:20px;font-weight:bold;text-align:center;height:27px;" id="res_step2"></div> <input type="hidden" id="step2" name="step2" value=""> </div> </div>'; // STEP3 } elseif ((isset($post_step) && $post_step == 3 || isset($_GET['step']) && $_GET['step'] == 3) && isset($post_actual_cpm_version) && intVal($_SESSION['user_granted']) === 1 ) { if (version_compare($post_actual_cpm_version, '2.1.26', '<')) { $conversion_utf8 = true; } else { $conversion_utf8 = false; } echo ' <div class="card card-primary"> <div class="card-header"> <h5>Converting database to UTF-8</h5> </div> <div class="card-body"> <div> ', $conversion_utf8 === true ? 'Notice that TeamPass is now only using UTF-8 charset. This step will convert the database to this charset. <div> <input type="checkbox" id="prefix_before_convert" class="mr-2"><label for="prefix_before_convert">Save previous tables before converting (prefix "old_" will be used)</label> </div>' : 'The database is currently using UTF-8 charset <i class="fas fa-check-circle fa-lg text-success ml-3"></i>', ' </div> </div> </div>'; // STEP4 } elseif ((isset($post_step) && $post_step == 4) || (isset($_GET['step']) && $_GET['step'] == 4) && $_SESSION['user_granted'] === '1' ) { echo ' <div class="card card-primary"> <div class="card-header"> <h5>Database updates</h5> </div> <div class="card-body"> <small class="form-text text-muted"> The database needs to be adapted. This step can take a very long time depending on the data volume and server performance. </small> <div class="row card card-primary mt-2"> <div class="card-body col-12 font-weight-light" id="step4_progress" style="overflow-y: scroll; height:400px;"> Please click the button START. </div> </div> <div class="hidden" id="change_pw_encryption"> <br /> <p><b>Encryption protocol of existing passwords now has to be started. It may take a very long time depending on the data volume and server performance.</b></p> <p> <div style="display:none;" id="change_pw_encryption_progress"></div> </p> <input type="button" value="Click to continue" id="but_encrypt_continu" onclick="newEncryptPw(0);" /> <input type="hidden" id="change_pw_encryption_start" value="" /> <input type="hidden" id="change_pw_encryption_total" value="" /> </div> <div style="margin-top:20px;font-weight:bold;text-align:center;height:27px;" id="res_step4"></div> <input type="hidden" id="step4" name="step4" value=""> </div> </div>'; // STEP5 } elseif ((isset($post_step) && $post_step == 5) || (isset($_GET['step']) && $_GET['step'] == 5) && $_SESSION['user_granted'] === '1' ) { //ETAPE 5 echo ' <h4>Finalization</h4> <div> <ul> <li>Regenerate settings.php file <span id="step5_settingFile"></span></li> <li>Anonymize saltkey file <span id="step5_saltkeyFile"></span></li> <li>Generate config file <span id="step5_configFile"></span></li> <li>Generate CSRFP config file <span id="step5_csrfpFile"></span></li> <li>Add new cron job <span id="step5_cronJob"></span></li> </ul> </div>'; echo ' <div class="card card-primary"> <div class="card-header"> <h5>Absolute path to SaltKey</h5> </div> <div class="card-body"> <small class="form-text text-muted"> The SaltKey is stored in a file stored in a folder outside the www folder of your server. </small> <div class="mt-4"> <input type="text" class="form-control" id="sk_path" value="', defined('SECUREPATH') === true ? SECUREPATH : '', '" placeholder="Path to folder"> </div> </div> </div>'; echo ' <div class="alert alert-info mt-4 hidden" id="res_step5"></div>'; } elseif ((isset($post_step) && $post_step == 6) || (isset($_GET['step']) && $_GET['step'] == 6) && $_SESSION['user_granted'] === '1' ) { //ETAPE 5 echo ' <h4>Upgrade is now completed</h4> <div class="callout callout-info mt-4"> <div> For news, help and information, visit <a href="https://teampass.net" target="_blank" class="text-info">TeamPass website</a> </div> </div> <div class="alert alert-primary mt-4"> <i class="far fa-lightbulb text-warning mr-2 fa-lg"></i>It is recommended to clean the cache of your Web Browser before trying to log in. </div>'; if (version_compare($post_actual_cpm_version, '2.1.27', '<=')) { echo ' <div class="alert alert-warning mt-4"> <i class="fa fa-exclamation-circle text-danger mr-2 fa-lg"></i>This upgrade was a heavy one. Indeed we have changed the encryption of your data to make them safer now as they don\'t rely anymore on a key.<br> This forced us to encode your users data with a One-Time-Code that they did receive by email. For any reason, they did not received it, you as an admin, can change it from the users management page. </div>'; } echo ' <div class="mt-5"> <a href="#" class="btn btn-primary" onclick="javascript:window.location.href=\'', (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ? 'https' : 'http', '://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/') - 8).'\';"><b>Open TeamPass</b></a> </div>'; echo ' <div class="card-footer">'; //buttons if (!isset($post_step)) { echo ' <input type="button" id="but_launch" data-step="step0" class="btn btn-primary" value="START"> <input type="button" id="but_next" data-target="1" style="" class="btn btn-primary" value="NEXT" disabled="disabled">'; } elseif (intVal($post_step) === 3 && $conversion_utf8 === false && $_SESSION['user_granted'] === '1') { echo ' <input type="button" id="but_next" target_id="'.(intval($post_step) + 1).'" class="btn btn-primary" value="NEXT">'; } elseif (intVal($post_step) === 3 && $conversion_utf8 === true && $_SESSION['user_granted'] === '1') { echo ' <input type="button" id="but_launch" data-step="step'.$post_step.'" class="btn btn-primary" value="START"> <input type="button" id="but_next" data-target="'.(intval($post_step) + 1).'" class="btn btn-primary" value="NEXT" disabled="disabled">'; } elseif (intVal($post_step) === 6 && $_SESSION['user_granted'] === '1') { // Nothong to do } else { echo ' <input type="button" id="but_launch" data-step="step'.$post_step.'" class="btn btn-primary" value="START" /> <input type="button" id="but_next" data-target="'.(intval($post_step) + 1).'" class="btn btn-primary" value="NEXT" disabled="disabled">'; echo ' </div> </div> </form> </div>'; //FOOTER echo ' <div id="footer"> <div style="width:500px; font-size:16px;"> '.TP_TOOL_NAME.' '.TP_VERSION.' &#169; copyright 2009-'.date("Y").' </div> <div style="float:right;margin-top:-15px;"> </div> </div>'; ?> </div> </body> </html> <script type="text/javascript" src="js/aes.min.js"></script> <!-- jQuery --> <script src="../plugins/jquery/jquery.min.js"></script> <!-- jQuery --> <script src="../plugins/jqueryUI/jquery-ui.min.js"></script> <!-- Popper --> <script src="../plugins/popper/umd/popper.min.js"></script> <!-- Bootstrap --> <script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- AdminLTE --> <script src="../plugins/adminlte/js/adminlte.min.js"></script> <!-- Altertify --> <script type="text/javascript" src="../plugins/alertifyjs/alertify.min.js"></script> <script type="text/javascript"> var timeTaken = ''; $(function(){ // click on button NEXT $("#but_next").click(function(event) { $("#step").val($(this).data("target")); document.install.submit(); }); $("#dump_done").click(function(event) { if($("#dump_done").is(':checked')) { $("#but_next").prop("disabled", false); } else { $("#but_next").prop("disabled", true); } }); $("#no_key_selection").change(function() { if ($("#no_key_selection").val() === "no_previous_sk_sel") { $("#previous_sk_div").hide(); $("#previous_sk").val(""); } else if ($("#no_key_selection").val() === "previous_sk_sel") { $("#previous_sk_div").show(); } }); // click on button START $('#but_launch').click(function(event) { var currentStep = $(this).data('step'), postData = ''; // STEP 0 if (currentStep === 'step0') { if ($("#user_login").val() === "" || $("#user_pwd").val() === "") { alertify .error('<i class="fas fa-ban mr-2">[ERROR] You must provide credentials</i>', 10) .dismissOthers(); return false; } postData = { type : currentStep, login : $("#user_login").val(), pwd : window.btoa(aesEncrypt($("#user_pwd").val())) } } else if (currentStep === 'step1') { postData = { type : currentStep, abspath : $("#root_path").val(), fullurl : $("#root_url").val() } } else if (currentStep === 'step2') { postData = { type : currentStep, abspath : $("#root_path").val(), fullurl : $("#root_url").val() } } else if (currentStep === 'step3') { postData = { type : currentStep, abspath : $("#root_path").val(), fullurl : $("#root_url").val(), prefix_before_convert : $('#prefix_before_convert').prop("checked") } } else if (currentStep === "step4") { upgrade_file = ""; timeTaken = getTime(); manageUpgradeScripts("0"); return false; } else if (currentStep === "step5") { postData = { type : currentStep, url_path : $("#url_path").val() } } alertify .message('<i class="fas fa-cog fa-spin fa-2x"></i>', 0) .dismissOthers(); $("#res_"+currentStep).html("").addClass("hidden"); // EXECUTE AJAX REQUEST return $.ajax({ url: "upgrade_ajax.php", type : "POST", dataType : "json", async: false, data : postData, complete : function(result, status){ //console.log(result.responseText) data = $.parseJSON(result.responseText)[0]; console.log(data) // manage error if (data.error !== "") { $("#user_granted").val("0"); $('#but_next').attr('disabled'); if (data.info !== "") { $('#res_'+currentStep).html(data.info).removeClass("hidden"); } alertify .error('<i class="fas fa-exclamation-triangle mr-2"></i> '+data.error+'</i>', 5) .dismissOthers(); } else { $("#step").val(data.index); $("#user_granted").val("1"); $('#but_next').removeAttr('disabled'); // Special if (currentStep === 'step0') { $("#infotmp").val(data.info); } else if (currentStep === 'step1') { $('#res_step1').html(data.info).removeClass('hidden'); } else if (currentStep === 'step2') { $('#res_step2').html(data.info).removeClass('hidden'); $('#cpm_isUTF8').val(data.isUtf8); if (parseInt(data.isUtf8) === 1) { $('#step').val(4); $('#but_next').data('target', "4"); } } else if (currentStep === 'step5') { $("#res_step5").html("Operations are successfully completed.").removeClass("hidden"); var res = $.parseJSON(atob(data.info)); $.each(res, function(index, value) { $('#'+value.id).html(value.html); }); } // Display alertify .success('<i class="fas fa-thumbs-up mr-2"> Done</i>', 5) .dismissOthers(); } } }); }); }); function aesEncrypt(text) { return Aes.Ctr.encrypt(text, "cpm", 128); function manageUpgradeScripts(file_number) { var start_at = 0; var noitems_by_loop = 100; var loop_number = 0; if (file_number == 0) { $("#step4_progress").html(""); alertify .success('Done', 1) .dismissOthers(); } request = $.post("upgrade_scripts_manager.php", { file_number : parseInt(file_number) }, function(data) { console.log(data[0]) // work not finished if (data[0].finish !== "1") { // loop runUpdate(data[0].scriptname, data[0].parameter, start_at, noitems_by_loop, loop_number, file_number); } // work finished else { // refresh categories cache rand_number = createRandomId(); $("#step4_progress") .html( "<div>" + getTime() + " - <span id='user_"+rand_number+"'>Performing database update operations ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html() ); $.ajax({ url: "upgrade_ajax.php", type : "POST", dataType : "json", async: false, data : { type : "perform_nestedtree_categories_population_3.0.0.18" }, complete : function(result, status) { console.log("Tash perform_nestedtree_categories_population_3.0.0.18 DONE"); $("#user_"+rand_number) .html('Database update operations done <i class="fas fa-thumbs-up" style="color:green"></i>'); migrateUsersToV3('step1', '', 'init', createRandomId(), 0, false, 0); alertify .success('Done with initialization phase', 3) .dismissOthers(); } }); } }, "json" var usersList = [], previousStep = '', usersRestList = []; /** * We need to migrate all users * This will change the users encryption and generate a OTC * * @return void */ function migrateUsersToV3(step, data, number, rand_number, loop_start, loop_finished, tp_user_done) { console.log("> "+step+" - Number: "+number + " - Previous step: "+previousStep); console.log(usersList); var d = new Date(), count_in_loop = <?php echo (int) NUMBER_ITEMS_IN_BATCH;?>, userSteps = {}; // Decode data var newData = ''; if (data !== '' && step === 'step1') { newData = JSON.parse(window.atob(data)); } console.log("TO DO : "+step+" -- "+number+" -- "+loop_start+" -- "+loop_finished+" -- "+newData.id) if (step === 'step1') { userInfo = ''; // Show progress to user $("#user_"+rand_number).html("User id " + newData.id + " done <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); if (newData !== '') { usersList.push(newData); } console.log('List of users'); console.log(JSON.stringify(usersList)) if (usersRestList.length > 0) { number = usersRestList[0]; usersRestList.shift(); } else if (number !== 'init') { number = 'end'; } //console.log('List of next users'); //console.log(JSON.stringify(usersRestList) + " ; Number = "+number) rand_number = createRandomId(); $("#step4_progress").html("<div>" + getTime() + " - <span id='user_"+rand_number+"'>Treating User account ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); // -- // -- } else { // Prepare array if (usersList[number] !== undefined) { userSteps = { 'step1' : { 'text' : 'Users public / private keys were generated if needed', 'number' : 0, 'start' : 0 }, 'step2' : { 'text' : 'User '+usersList[number].id+' - All ITEMS keys generated', 'number' : 0, 'start' : 0 }, 'step3' : { 'text' : 'User '+usersList[number].id+' - All LOGS keys generated', 'number' : number, 'start' : 0 }, 'step4' : { 'text' : 'User '+usersList[number].id+' - All FIELDS keys generated', 'number' : number, 'start' : 0 }, 'step5' : { 'text' : 'User '+usersList[number].id+' - All SUGGESTIONS keys generated', 'number' : number, 'start' : 0 }, 'step6' : { 'text' : 'User '+usersList[number].id+' - All FILES keys generated', 'number' : number, 'start' : 0 }, 'nextUser' : { 'number' : parseInt(number) + 1, 'start' : 0 } }; } // What strategy to have for next treatment if (previousStep === 'step1') { $("#user_"+rand_number).html("Users public / private keys were generated if needed <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); number = 0; loop_start = 0; // -- } else if (previousStep === step) { // IF we are in the same step and we continue $("#user_"+rand_number).html(userSteps[previousStep].text + " until " + (loop_start + count_in_loop) + " done <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); loop_start += count_in_loop; // -- } else if (step !== 'nextUser' && loop_finished === "true") { // The loop on current topic is finished but still with same user $("#user_"+rand_number).html(userSteps[previousStep].text + " <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); number = userSteps[step].number; loop_start = userSteps[step].start; // -- } else if (step === 'nextUser') { // The treatment of current user is finished // Select next user $("#user_"+rand_number) .html(userSteps[previousStep].text + " <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); $("#user_"+rand_number).parent() .prepend('<div>' + getTime() +' - User ' + usersList[number].id + ' fully treated <i class="fas fa-thumbs-up" style="color:green"></i></div>'); // Have we handled all users // If not then restart at step2 for next user if ((parseInt(number)+1) < usersList.length) { number = userSteps[step].number; loop_start = userSteps[step].start; step = 'step2'; } else { // Prepare list of users to be displayed if (usersList.length === 1 && usersList[0].login === 'TP') { // do nothing and finish sendPwdToUsers(usersList, true, 0, usersList.length); } else { var htmlUsersList = '<i class="fas fa-info-circle mr-2"></i>You could provide those unique codes to users by your own.<br><ul>'; $.each(usersList, function(index, user) { htmlUsersList += '<li>User: '+user.name+' '+user.lastname+' (login: '+user.login+') ; OneTime code: '+user.otp+'</li>' }); htmlUsersList += '</ul>'; // Done $("#user_"+rand_number).parent() .prepend( '<div>' + getTime() +' - All keys have been generated for users <i class="fas fa-thumbs-up" style="color:green"></i>'+ '<br>'+ '<div type="button" class="btn btn-primary btn-sm" id="buttonListOfUsers">Show/Hide list of users</div>'+ '<div class="hidden alert alert-secondary mt-2" id="htmlListOfUsers" role="alert">'+htmlUsersList+'</div>'+ '</div>' ); // Act on button click $(document).on('click', '#buttonListOfUsers', function() { if ($('#htmlListOfUsers').hasClass('hidden') === true) { $('#htmlListOfUsers').removeClass('hidden'); } else { $('#htmlListOfUsers').addClass('hidden'); } }); console.log(usersList); // Now send passwords console.log("Send emails to users from now"); sendPwdToUsers(usersList, true, 0, usersList.length); } return; } } if (usersList.length === 0 && step === 'step2' && loop_finished === 'true' && number === 0 && loop_start === 0) { /* Unlock this step */ document.getElementById("but_next").disabled = ""; document.getElementById("but_launch").disabled = "disabled"; $("#user_"+rand_number).parent() .prepend('<div>' + getTime() +' - All steps have been successfully performed <i class="fas fa-thumbs-up" style="color:green"></i></div>'); return; } else { // Show progress rand_number = createRandomId(); $("#step4_progress").html("<div>" + getTime() +" - <span id='user_"+rand_number+"'>User "+usersList[number].id+" - Creating keys until "+(loop_start + count_in_loop)+" ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); // Prepare user information userInfo = { 'id' : usersList[number].id, 'otp' : usersList[number].otp, 'public_key' : usersList[number].public_key, 'private_key' : usersList[number].private_key, 'login' : usersList[number].login, 'name' : encode_utf8(usersList[number].name), 'lastname' : encode_utf8(usersList[number].lastname), }; } } // Migrate if needed all account to new AES encryption //console.log('Posting number = '+number); $.post( "upgrade_run_3.0.0_users.php", { step : step, number : number === 'init' ? '' : number, userInfo : window.btoa(unescape(encodeURIComponent(JSON.stringify(userInfo)))), start : loop_start, count_in_loop : count_in_loop, info : $('#infotmp').val(), extra : number === 'end' ? 'all_users_created' : '', tp_user_done : tp_user_done, }, function(data) { console.log(data[0]); //console.log(JSON.parse(window.atob(data[0].rest))); //console.log(JSON.parse(window.atob(data[0].data))); previousStep = step; if (data[0].finish !== "1") { // Manage list of users that is provide on number = 0 if (number === 'init' && step === 'step1') { if (data[0].rest !== '') { usersRestList = JSON.parse(window.atob(data[0].rest)); }else { usersRestList = ''; } console.log("USERLIST = "+usersRestList); } // loop migrateUsersToV3( data[0].next, data[0].data, data[0].number, rand_number, loop_start, data[0].loop_finished, 1 ); } else { // Done /* Unlock this step */ document.getElementById("but_next").disabled = ""; document.getElementById("but_launch").disabled = "disabled"; } }, "json" /** * */ function sendPwdToUsers(usersList, init, cpt, total) { var d = new Date(); // Inform if (init === true) { rand_number = createRandomId(); $("#step4_progress").html("<div>" + getTime() +" - <span id='user_"+rand_number+"'>Now sending new users password by email ... " + "<i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i><span id='sending_emails_pct' class='ml-3'>0%</span></div>"+ $("#step4_progress").html()); } // Prepare user data to be sent userInfo = { 'id' : usersList[0].id, 'otp' : usersList[0].otp, }; //console.log('Envoi email pour : '); //console.log(userInfo); // Remove user from list usersList.shift(); // Send email for each user $.post( "upgrade_run_3.0.0_users.php", { step : 'send_pwd_by_email', userInfo : window.btoa(JSON.stringify(userInfo)) }, function(data) { //console.log(data); //console.log('----'); // Done with sending the user email if (usersList.length === 0) { // all users have received their email $("#user_"+rand_number) .html("Emails were sent <i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>"); /* Unlock this step */ document.getElementById("but_next").disabled = ""; document.getElementById("but_launch").disabled = "disabled"; $("#user_"+rand_number).parent() .prepend('<div>' + getTime() +' - All steps have been successfully performed <i class="fas fa-thumbs-up" style="color:green"></i></div>'); } else { // current user received his email // Send to the next one $("#sending_emails_pct").text(Math.round((cpt / total) * 100) + "%"); sendPwdToUsers(usersList, false, cpt++, total); } }, "json" function runUpdate (script_file, type_parameter, start_at, noitems_by_loop, loop_number, file_number) { var d = new Date(), info = '', text_action_in_progress = script_file; loop_number ++; var rand_number = createRandomId(); // Inform if (script_file === 'upgrade_operations.php') { text_action_in_progress = 'Performing operation ' + type_parameter; } $("#step4_progress").html("<div>" + getTime() +" - <i>"+text_action_in_progress+"</i> - Loop #"+loop_number+" <span id='span_"+rand_number+"'>is now running ... <i class=\"fas fa-cog fa-spin\" style=\"color:orange\"></i></span></div>"+ $("#step4_progress").html()); if (type_parameter === 'user_id') { info = $("#infotmp").val(); } request = $.post( script_file, { type : type_parameter, start : start_at, total : start_at, nb : noitems_by_loop, session_salt: $("#session_salt").val(), info : info, }, function(data) { console.info(type_parameter) console.log(data) // work not finished if (data[0].finish !== "1") { $("#span_"+rand_number).html("<i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>") // loop runUpdate(script_file, type_parameter, data[0].next, noitems_by_loop, loop_number, file_number); // is there an error } else if (data[0].finish === "1" && data[0].error !== "") { $("#span_"+rand_number).html("<i class=\"fas fa-thumbs-down\" style=\"color:red\"></i>"); $("#step4_progress").html("<div style=\"margin:15px 0 15px 0; font-style:italic;\">"+getTime() +" - <b>ERROR</b>: "+data[0].error+"</div>"+ $("#step4_progress").html()); $("#step4_progress").html("<div>An error occurred. Please check and relaunch.</div>"+ $("#step4_progress").html()); // work finished } else { $("#span_"+rand_number).html("<i class=\"fas fa-thumbs-up\" style=\"color:green\"></i>") // continue with next script file file_number ++; manageUpgradeScripts(file_number); } }, "json" function newEncryptPw(suggestion) { var nb = 20; var start = 0; if ($("#change_pw_encryption_start").val() != "") { start = $("#change_pw_encryption_start").val(); } else { $("#change_pw_encryption_progress").html('Progress: 0% <i class="fas fa-cog fa-spin fa-2x"></i>'); } var request = $.post("upgrade_ajax.php", { type : "new_encryption_of_pw", start : start, total : $("#change_pw_encryption_total").val(), suggestion : suggestion, nb : nb }, function(data) { if (data[0].finish != 1 && data[0].finish != "suggestion") { // handle re-encryption of passwords in Items table $("#change_pw_encryption_start").val(data[0].next); $("#change_pw_encryption_progress").html('Progress: '+data[0].progress+'% <i class="fas fa-cog fa-spin fa-2x"></i>'); if (parseInt(start) < parseInt($("#change_pw_encryption_total").val())) { newEncryptPw("0"); } } else if (data[0].finish == "suggestion") { // handle the re-encryption of passwords in suggestion table newEncryptPw("1"); } else { // handle finishing $("#change_pw_encryption_progress").html("Done"); $("#but_encrypt_continu").hide(); /* Unlock this step */ document.getElementById("but_next").disabled = ""; document.getElementById("but_launch").disabled = "disabled"; document.getElementById("res_step4").innerHTML = "dataBase has been populated"; document.getElementById("loader").style.display = "none"; } }, "json" function launch_database_dump() { alertify .message('<i class="fas fa-cog fa-spin fa-2x"></i>', 0) .dismissOthers(); request = $.post( "upgrade_ajax.php", { type : "perform_database_dump" }, function(data) { console.log(data) if (data[0].error !== "") { // ERROR $("#dump_result").html(data[0].error); alertify .Error('Error', 1) .dismissOthers(); } else { // DONE $("#dump_result").html('<div class="alert alert-info mt-2">Dump is successfull. File stored in file <b>' + data[0].filename + '</b></div>'); $('#but_next').attr("disabled", false); alertify .success('Success', 1) .dismissOthers(); } }, "json" function createRandomId() { var randLetter = String.fromCharCode(65 + Math.floor(Math.random() * 26)); return randLetter + Date.now(); } function getTime() { var d = new Date(); return ("0" +d.getHours()).slice(-2)+":"+("0" + d.getMinutes()).slice(-2)+":"+("0" + d.getSeconds()).slice(-2) } function encode_utf8( s ) { return unescape( encodeURIComponent( s ) ); } </script> array('upgrade_operations.php', '20230604_1'), data: 'type=show_item_password&item_key=' + trigger.getAttribute('data-item-key') + icon_pwd = '<span class="fa-stack fa-clickable fa-clickable-password pointer infotip mr-2" title="<?php echo langHdl('item_menu_copy_pw'); ?>" data-item-key="' + value.item_key + '" data-item-label="' + value.label + '"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-key fa-stack-1x fa-inverse"></i></span>'; 'unique' => uniqidReal(50), $arrData['item_key'] = $dataItem['item_key']; 'SELECT i.id AS id, i.item_key AS item_key, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, 'SELECT i.id AS id, i.item_key AS item_key, MIN(i.restricted_to) AS restricted_to, MIN(i.perso) AS perso, $html_json[$record['id']]['item_key'] = (string) $record['item_key']; WHERE user_id = %i AND i.item_key = %i', $inputData['item_key']
[ "authorization" ]
CVE-2023-3190
241dbd4159a5d63b55af426464d30dbb53925705
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Improper Encoding or Escaping of Output in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
4.6
2023-06-10T09:15Z
nan
CWE-116
Improper Encoding or Escaping of Output
The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
3.0.9 Fix xss vulnerabilities in several text inputs
2023-06-10 09:30:21 +0200
241dbd4159
8,325
3
[ "includes/js/functions.js", "pages/admin.js.php", "pages/api.js.php", "pages/api.php", "pages/backups.js.php", "pages/emails.js.php", "pages/folders.js.php", "pages/folders.php", "pages/items.js.php", "pages/profile.js.php", "pages/roles.js.php", "pages/users.js.php", "pages/users.php", "sources/admin.queries.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 123, "lines_deleted": 26}, "pages/admin.js.php": {"lines_added": 7, "lines_deleted": 0}, "pages/api.js.php": {"lines_added": 19, "lines_deleted": 5}, "pages/api.php": {"lines_added": 4, "lines_deleted": 4}, "pages/backups.js.php": {"lines_added": 3, "lines_deleted": 3}, "pages/emails.js.php": {"lines_added": 0, "lines_deleted": 47}, "pages/folders.js.php": {"lines_added": 26, "lines_deleted": 11}, "pages/folders.php": {"lines_added": 4, "lines_deleted": 4}, "pages/items.js.php": {"lines_added": 45, "lines_deleted": 18}, "pages/profile.js.php": {"lines_added": 3, "lines_deleted": 3}, "pages/roles.js.php": {"lines_added": 8, "lines_deleted": 1}, "pages/users.js.php": {"lines_added": 23, "lines_deleted": 27}, "pages/users.php": {"lines_added": 5, "lines_deleted": 5}, "sources/admin.queries.php": {"lines_added": 3, "lines_deleted": 3}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index c820cd7d3f..9a307a8993 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -388,50 +388,147 @@ if (typeof String.prototype.utf8Decode == 'undefined') { return this; // invalid UTF-8? return as-is } }; } -function fieldSanitizeStep1( - field, - bHtml=true, - bSvg=true, - bSvgFilters=true, - text='' +function simplePurifier( + text, + bHtml = false, + bSvg = false, + bSvgFilters = false ) { - if (field === undefined ||field === '') { - return false; - } - let string = ''; - text = (text === '') ? $(field).val() : text; -/* - // Sanitize string - var tagsToReplace = { - '&': '&amp;', - '<': '&lt;', - '>': '&gt;', - "'" : '&#39;', - '"' : '&quot;' - }; - text = text.replace(/[&<>'"]/g, function(tag) { - return tagsToReplace[tag] || tag; - }); - */ - // Purify string - string = DOMPurify.sanitize( + return DOMPurify.sanitize( text .replaceAll('&lt;', '<') .replaceAll('&gt;', '>') .replaceAll('&amp;', '&') .replaceAll('&quot;', '"') .replaceAll('&#39;', "'"), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} ); +} + +/** + * Permits to purify the content of a string using domPurify + * @param {*} field + * @param {*} bHtml + * @param {*} bSvg + * @param {*} bSvgFilters + * @param {*} text + * @returns bool||string + */ +function fieldDomPurifier( + field, + bHtml = false, + bSvg = false, + bSvgFilters = false, + text = '' +) +{ + if (field === undefined ||field === '') { + return false; + } + let string = ''; + text = (text === '') ? $(field).val() : text; + + // Purify string + string = simplePurifier(text, bHtml, bSvg, bSvgFilters); // Clear field if string is empty and warn user if (string === '' && text !== '') { $(field).val(''); return false; } + return string; +} + +/** + * Permits to get all fields of a class and purify them + * @param {*} elementClass + * @returns array + */ +function fieldDomPurifierLoop(elementClass) +{ + let purifyStop = false, + arrFields = []; + $.each($(elementClass), function(index, element) { + purifiedField = fieldDomPurifier( + '#' + $(element).attr('id'), + $(element).hasClass('purifyHtml') === true ? true : false, + $(element).hasClass('purifySvg') === true ? true : false, + $(element).hasClass('purifySvgFilter') === true ? true : false, + typeof $(element).data('purify-text') !== undefined ? $(element).data('purify-text') : '' + ); + + if (purifiedField === false) { + // Label is empty + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Please remove all special characters from your input.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + $('#' + $(element).attr('id')).focus(); + purifyStop = true; + return { + 'purifyStop' : purifyStop, + 'arrFields' : arrFields + }; + } else { + $(element).val(purifiedField); + arrFields[$(element).data('field')] = purifiedField; + } + }); + + // return + return { + 'purifyStop' : purifyStop, + 'arrFields' : arrFields + }; +} + +/** + * Permits to purify the content of a string using domPurify + * @param {*} field + * @param {*} bHtml + * @param {*} bSvg + * @param {*} bSvgFilters + * @returns bool||string + */ +function fieldDomPurifierWithWarning( + field, + bHtml = false, + bSvg = false, + bSvgFilters = false, +) +{ + if (field === undefined || field === '') { + return false; + } + if ($(field).val() === '') { + return ''; + } + let string = ''; + + // Purify string + string = simplePurifier($(field).val(), bHtml, bSvg, bSvgFilters); + + // Clear field if string is empty and warn user + if (string === '') { + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Please remove all special characters from your input.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + $(field).focus(); + return false; + } + return string; } \ No newline at end of file diff --git a/pages/admin.js.php b/pages/admin.js.php index 0aad38e396..852dab00a9 100755 --- a/pages/admin.js.php +++ b/pages/admin.js.php @@ -132,10 +132,17 @@ declare(strict_types=1); // prevent launch of similar query in case of doubleclick if (requestRunning === true) { return false; } + // Sanitize value + value = fieldDomPurifierWithWarning('#' + field); + if (value === false) { + return false; + } + $('#' + field).val(value); + requestRunning = true; var data = { "field": field, "value": value, diff --git a/pages/api.js.php b/pages/api.js.php index 425d1fe497..1c8c1e5383 100755 --- a/pages/api.js.php +++ b/pages/api.js.php @@ -63,14 +63,21 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals $(document).on('click', '#button-new-api-key', function() { // IS form field? if ($('#new_api_key_label') === '') { return false; } + + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#new_api_key_label'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } // Prepare data var data = { - 'label': $('#new_api_key_label').val(), + 'label': purifyRes.arrFields['label'], //$('#new_api_key_label').val(), 'action': 'add', } $('#table-api-keys').removeClass('hidden'); $('#api-no-keys').addClass('hidden'); @@ -194,20 +201,20 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals $('.new-api-key').val(oldLabel); }); $(document).on('click', '#new-api-key-save', function() { var keyId = $(this).closest('tr').data('id'), - label = $(this).prev('input').val(), + label = simplePurifier($(this).prev('input').val()), cell = $(this).closest('td'); // Prepare data var data = { 'id': keyId, 'label': label, 'action': 'update', } - + // Launch action $.post( 'sources/admin.queries.php', { type: 'admin_action_api_save_key', data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), @@ -256,13 +263,20 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals } ); return false; } + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#new-api-ip .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // Prepare data var data = { - 'label': $('#new_api_ip_label').val(), + 'label': purifyRes.arrFields['label'], 'ip': $('#new_api_ip_value').val(), 'action': 'add', } $('#table-api-ips').removeClass('hidden'); @@ -396,11 +410,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals cell = $(this).closest('td'); // Prepare data var data = { 'id': ipId, - 'value': label, + 'value': simplePurifier(label), 'field': field, 'action': 'update', } // Launch action diff --git a/pages/api.php b/pages/api.php index 09883013c5..a81ca0df99 100755 --- a/pages/api.php +++ b/pages/api.php @@ -159,11 +159,11 @@ require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; <div class="form-group mt-4"> <div class="callout callout-info"> <span class="text-bold"><?php echo langHdl('adding_new_api_key'); ?></span> <div class="row mt-1 ml-1"> - <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm" id="new_api_key_label"> + <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm purify" id="new_api_key_label" data-field="label"> <span class="fa-stack ml-2 infotip pointer" title="<?php echo langHdl('adding_new_api_key'); ?>" id="button-new-api-key"> <i class="fas fa-square fa-stack-2x"></i> <i class="fas fa-plus fa-stack-1x fa-inverse"></i> </span> </div> @@ -209,17 +209,17 @@ require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; <div class="mt-2<?php echo DB::count() > 0 ? ' hidden' : ''; ?>" id="api-no-ips"> <i class="fas fa-info mr-2 text-warning"></i><?php echo langHdl('no_data_defined'); ?> </div> </div> - <div class="form-group mt-4"> + <div class="form-group mt-4" id="new-api-ip"> <div class="callout callout-info"> <span class="text-bold"><?php echo langHdl('adding_new_api_ip'); ?></span> <div class="row mt-1 ml-1"> - <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'" data-mask> - <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2" id="new_api_ip_label"> + <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'"> + <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2 purify" id="new_api_ip_label" data-field="label"> <span class="fa-stack ml-2 infotip pointer" title="<?php echo langHdl('settings_api_add_ip'); ?>" id="button-new-api-ip"> <i class="fas fa-square fa-stack-2x"></i> <i class="fas fa-plus fa-stack-1x fa-inverse"></i> </span> </div> diff --git a/pages/backups.js.php b/pages/backups.js.php index 7ec96ea7ef..dda4d792c7 100755 --- a/pages/backups.js.php +++ b/pages/backups.js.php @@ -94,11 +94,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals toastr.remove(); toastr.info('<?php echo langHdl('in_progress'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Prepare data var data = { - 'encryptionKey': $('#onthefly-backup-key').val(), + 'encryptionKey': simplePurifier($('#onthefly-backup-key').val()), }; //send query $.post( "sources/backups.queries.php", { @@ -123,11 +123,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals ); } else { // Store KEY in DB var newData = { "field": 'bck_script_passkey', - "value": $('#onthefly-backup-key').val(), + "value": simplePurifier($('#onthefly-backup-key').val()), } $.post( "sources/admin.queries.php", { type: "save_option_change", @@ -191,11 +191,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals toastr.remove(); toastr.info('<?php echo langHdl('in_progress'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Prepare data var data = { - 'encryptionKey': $('#onthefly-restore-key').val(), + 'encryptionKey': simplePurifier($('#onthefly-restore-key').val()), 'backupFile': $('#onthefly-restore-file').data('operation-id') }; console.log(data); //send query $.post( diff --git a/pages/emails.js.php b/pages/emails.js.php index 578d3f48ae..71f4f2cda5 100755 --- a/pages/emails.js.php +++ b/pages/emails.js.php @@ -143,54 +143,7 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals } } ); } - - $(document).on('click', '#button-duo-save', function() { - // Prepare data - var data = { - 'akey': $('#duo_akey').val(), - 'ikey': $('#duo_ikey').val(), - 'skey': $('#duo_skey').val(), - 'host': $('#duo_host').val(), - } - console.log(data); - - // Launch action - $.post( - 'sources/admin.queries.php', { - type: 'save_duo_in_sk_file', - data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), - key: '<?php echo $_SESSION['key']; ?>' - }, - function(data) { - //decrypt data - data = decodeQueryReturn(data, '<?php echo $_SESSION['key']; ?>'); - - if (data.error === true) { - // ERROR - toastr.remove(); - toastr.warning( - '<?php echo langHdl('none_selected_text'); ?>', - '', { - timeOut: 5000, - progressBar: true - } - ); - } else { - // Inform user - toastr.remove(); - toastr.success( - '<?php echo langHdl('done'); ?>', - '', { - timeOut: 1000 - } - ); - } - } - ); - }); - - //]]> </script> diff --git a/pages/folders.js.php b/pages/folders.js.php index f0dba143cf..adcfb3bb3d 100755 --- a/pages/folders.js.php +++ b/pages/folders.js.php @@ -94,21 +94,29 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === $('#folders-list').addClass('hidden'); $('#new-title').focus(); } else if ($(this).data('action') === 'new-submit') { //--- SAVE NEW FOLDER + + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#folder-new .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // Prepare data var data = { - 'title': DOMPurify.sanitize($('#new-title').val()), + 'title': purifyRes.arrFields['title'], 'parentId': parseInt($('#new-parent').val()), 'complexity': parseInt($('#new-complexity').val()), 'accessRight': $('#new-access-right').val(), - 'renewalPeriod': DOMPurify.sanitize($('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val())), + 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'addRestriction': $('#new-add-restriction').prop("checked") === true ? 1 : 0, 'editRestriction': $('#new-edit-restriction').prop("checked") === true ? 1 : 0, - 'icon': DOMPurify.sanitize($('#new-folder-add-icon').val(), {USE_PROFILES: {html: true}}), - 'iconSelected': DOMPurify.sanitize($('#new-folder-add-icon-selected').val(), {USE_PROFILES: {html: true}}), + 'icon': purifyRes.arrFields['icon'], + 'iconSelected': purifyRes.arrFields['iconSelected'], } console.log(data) // Launch action $.post( 'sources/folders.queries.php', { @@ -645,11 +653,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === '<tr class="temp-row"><td colspan="' + $(currentRow).children('td').length + '">' + '<div class="card card-warning card-outline form">' + '<div class="card-body">' + '<div class="form-group ml-2">' + '<label for="folder-edit-title"><?php echo langHdl('label'); ?></label>' + - '<input type="text" class="form-control clear-me" id="folder-edit-title" value="' + folderTitle + '">' + + '<input type="text" class="form-control clear-me purify" id="folder-edit-title" data-field="title" value="' + folderTitle + '">' + '</div>' + '<div class="form-group ml-2">' + '<label for="folder-edit-parent"><?php echo langHdl('parent'); ?></label><br>' + '<select id="folder-edit-parent" class="form-control form-item-control select2 clear-me">' + store.get('teampassApplication').foldersSelect + '</select>' + '</div>' + @@ -661,18 +669,18 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === '<label for="folder-edit-renewal"><?php echo langHdl('renewal_delay'); ?></label>' + '<input type="text" class="form-control clear-me" id="folder-edit-renewal" value="' + folderRenewal + '">' + '</div>' + '<div class="form-group ml-2">' + '<label><?php echo langHdl('icon'); ?></label>' + - '<input type="text" class="form-control form-folder-control" id="folder-edit-icon" value="'+folderIcon+'">' + + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon" data-field="icon" value="'+folderIcon+'">' + '<small class="form-text text-muted">' + '<?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + '</small>' + '</div>' + '<div class="form-group ml-2">' + '<label><?php echo langHdl('icon_on_selection'); ?></label>' + - '<input type="text" class="form-control form-folder-control" id="folder-edit-icon-selected" value="'+folderIconSelection+'">' + + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon-selected" data-field="iconSelected" value="'+folderIconSelection+'">' + '<small class="form-text text-muted">' + '<?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + '</small>' + '</div>' + '<div class="form-group ml-2" id="folder-rights-tuned">' + @@ -736,21 +744,28 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === var selectedFolders = []; $("input:checkbox[class=checkbox-folder]:checked").each(function() { selectedFolders.push($(this).data('id')); }); + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#table-folders .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // Prepare data var data = { 'id': currentFolderId, - 'title': DOMPurify.sanitize($('#folder-edit-title').val()), + 'title': purifyRes.arrFields['title'], //$('#folder-edit-title').val(), 'parentId': $('#folder-edit-parent').val(), 'complexity': $('#folder-edit-complexity').val(), - 'renewalPeriod': DOMPurify.sanitize($('#folder-edit-renewal').val()), + 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'addRestriction': $('#folder-edit-add-restriction').prop("checked") === true ? 1 : 0, 'editRestriction': $('#folder-edit-edit-restriction').prop("checked") === true ? 1 : 0, - 'icon': DOMPurify.sanitize($('#folder-edit-icon').val(), {USE_PROFILES: {html: true}}), - 'iconSelected': DOMPurify.sanitize($('#folder-edit-icon-selected').val(), {USE_PROFILES: {html: true}}) + 'icon': purifyRes.arrFields['icon'], //$('#folder-edit-icon').val(), + 'iconSelected': purifyRes.arrFields['iconSelected'], //$('#folder-edit-icon-selected').val(), } console.log(data) // Launch action $.post( 'sources/folders.queries.php', { diff --git a/pages/folders.php b/pages/folders.php index 90d2b195c0..80b8c357b7 100755 --- a/pages/folders.php +++ b/pages/folders.php @@ -141,11 +141,11 @@ foreach ($tst as $t) { <!-- form start --> <form role="form"> <div class="card-body"> <div class="form-group"> <label for="new-title"><?php echo langHdl('label'); ?></label> - <input type="text" class="form-control clear-me" id="new-title"> + <input type="text" class="form-control clear-me purify" id="new-title" data-field="title"> </div> <div class="form-group"> <label for="new-parent"><?php echo langHdl('parent'); ?></label> <select id="new-parent" class="form-control form-item-control select2 no-root" style="width:100%;"> <?php echo $droplist; ?> @@ -169,18 +169,18 @@ foreach ($tst as $t) { <label for="new-renewal"><?php echo langHdl('renewal_delay'); ?></label> <input type="number" class="form-control clear-me" id="new-renewal" value="0" min="0" data-bind="value:replyNumber"> </div> <div class="form-group"> <label><?php echo langHdl('icon'); ?></label> - <input type="text" class="form-control form-folder-control" id="new-folder-add-icon"> + <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon" data-field="icon"> <small class='form-text text-muted'> <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a> </small> </div> <div class="form-group"> <label><?php echo langHdl('icon_on_selection'); ?></label> - <input type="text" class="form-control form-folder-control" id="new-folder-add-icon-selected"> + <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon-selected" data-field="iconSelected"> <small class='form-text text-muted'> <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a> </small> </div> <div class="form-group"> @@ -191,11 +191,11 @@ foreach ($tst as $t) { </div> <div class="form-check"> <input type="checkbox" class="form-check-input form-control" id="new-edit-restriction"> <label for="new-edit-restriction" class="form-check-label pointer ml-2"><?php echo langHdl('edit_without_password_minimal_complexity_target'); ?></label> </div> -</div> + </div> </div> <!-- /.card-body --> <div class="card-footer"> <button type="button" class="btn btn-primary tp-action" data-action="new-submit"><?php echo langHdl('submit'); ?></button> diff --git a/pages/items.js.php b/pages/items.js.php index 4eaa57b7f4..fb80138d6b 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -1678,13 +1678,13 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Force user did a change to false userDidAChange = false; userUploadedFile = false; // Sanitize text fields - let formLabel = fieldSanitizeStep1('#form-folder-add-label', false, false, false), - formIcon = fieldSanitizeStep1('#form-folder-add-icon', false, false, false), - formIconSelected = fieldSanitizeStep1('#form-folder-add-icon-selected', false, false, false); + let formLabel = fieldDomPurifier('#form-folder-add-label', false, false, false), + formIcon = fieldDomPurifier('#form-folder-add-icon', false, false, false), + formIconSelected = fieldDomPurifier('#form-folder-add-icon-selected', false, false, false); if (formLabel === false || formIcon === false || formIconSelected === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', @@ -2113,10 +2113,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- toastr.remove(); toastr.info('<?php echo langHdl('loading_item'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Load item info Details( + //$(this).hasClass('but-prev-item') === true ? $('#list-item-row_' + $(this).attr('data-prev-item-key')) : $('#list-item-row_' + $(this).attr('data-next-item-key')), $(this).hasClass('but-prev-item') === true ? $('#list-item-row_' + $(this).attr('data-prev-item-id')) : $('#list-item-row_' + $(this).attr('data-next-item-id')), 'show' ); $('.but-navigate-item').addClass('hidden'); @@ -2675,16 +2676,16 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Do checks if (arrayQuery.length > 0 || userDidAChange === true) { var reg = new RegExp("[.|,|;|:|!|=|+|-|*|/|#|\"|'|&]"); // Sanitize text fields - let formLabel = fieldSanitizeStep1('#form-item-label', false, false, false), - formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldSanitizeStep1('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', - formEmail = fieldSanitizeStep1('#form-item-email'), - formTags = fieldSanitizeStep1('#form-item-tags'), - formUrl = fieldSanitizeStep1('#form-item-url'), - formIcon = fieldSanitizeStep1('#form-item-icon'); + let formLabel = fieldDomPurifier('#form-item-label', false, false, false), + formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldDomPurifier('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', + formEmail = fieldDomPurifier('#form-item-email'), + formTags = fieldDomPurifier('#form-item-tags'), + formUrl = fieldDomPurifier('#form-item-url'), + formIcon = fieldDomPurifier('#form-item-icon'); if (formLabel === false || formDescription === false || formEmail === false || formTags === false || formUrl === false || formIcon === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', @@ -3946,12 +3947,16 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- if (debugJavascript === true) { console.log('current id: '+value.item_id); console.log(prevIdForNextItem); } if (prevIdForNextItem !== -1) { - $('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); - $('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); + //$('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); + //$('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); + $('[data-item-key="'+value.item_key+'"]') + //.attr('data-next-item-id', prevIdForNextItem.item_id) + .attr('data-next-item-key', prevIdForNextItem.item_key) + .attr('data-next-item-label', value.label); } // Prepare anyone can modify icon if (value.anyone_can_modify === 1 || value.open_edit === 1) { icon_all_can_modify = '<span class="fa-stack fa-clickable pointer infotip list-item-clicktoedit mr-2" title="<?php echo langHdl('edit'); ?>"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-pen fa-stack-1x fa-inverse"></i></span>'; @@ -3984,23 +3989,23 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Prepare Favorite icon if (store.get('teampassSettings') !== undefined && parseInt(store.get('teampassSettings').enable_favourites) === 1 && value.rights > 10 ) { if (value.is_favourited === 1) { - icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; + icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; } else { - icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; + icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; } } // Prepare Description if (value.desc !== '') { value.desc = ' <span class="text-secondary small">- ' + value.desc + '</span>'; } $('#teampass_items_list').append( - '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + + '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + '<td class="list-item-description" style="width: 100%;">' + // Show user a grippy bar to move item (value.canMove === 1 ? '<i class="fas fa-ellipsis-v mr-2 dragndrop"></i>' : '') + //&& value.is_result_of_search === 0 // Show user a ban icon if expired (value.expired === 1 ? '<i class="far fa-calendar-times mr-2 text-warning infotip" title="<?php echo langHdl('not_allowed_to_see_pw_is_expired'); ?>"></i>' : '') + @@ -4009,11 +4014,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Show user that password is badly encrypted (value.pw_status === 'encryption_error' ? '<i class="fas fa-exclamation-triangle fa-xs text-danger infotip mr-1" title="<?php echo langHdl('pw_encryption_error'); ?>"></i>' : '') + // Show item fa_icon if set (value.fa_icon !== '' ? '<i class="'+value.fa_icon+' mr-1"></i>' : '') + // Prepare item info - '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '">' + + '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '">' + '<span class="list-item-row-description' + (value.rights === 10 ? ' font-weight-light' : '') + '">' + value.label + '</span>' + (value.rights === 10 ? '' : value.desc) + '</span>' + '<span class="list-item-actions hidden">' + (value.rights === 10 ? '<span class="fa-stack fa-clickable fa-clickable-access-request pointer infotip mr-2" title="<?php echo langHdl('need_access'); ?>"><i class="fas fa-circle fa-stack-2x text-danger"></i><i class="far fa-handshake fa-stack-1x fa-inverse"></i></span>' : pwd_error + icon_all_can_modify + icon_login + icon_pwd + icon_link + icon_favorite) + @@ -4025,11 +4030,12 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- '</tr>' ); // Save id for usage prevIdForNextItem = { - 'item_id' : value.item_id, + //'item_id' : value.item_id, + 'item_key' : value.item_key, 'label': value.label, }; //--------------------- } @@ -4214,25 +4220,30 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- /** * */ function Details(itemDefinition, actionType, hotlink = false) { - if (debugJavascript === true) console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- ') + if (debugJavascript === true) { + console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- '); + console.log(itemDefinition); + } // Init if (hotlink === false) { var itemId = parseInt($(itemDefinition).data('item-id')) || ''; + var itemKey = parseInt($(itemDefinition).data('item-key')) || ''; var itemTreeId = parseInt($(itemDefinition).data('item-tree-id')) || ''; var itemSk = parseInt($(itemDefinition).data('item-sk')) || 0; var itemExpired = parseInt($(itemDefinition).data('item-expired')) || ''; var itemRestricted = parseInt($(itemDefinition).data('item-restricted-id')) || ''; var itemDisplay = parseInt($(itemDefinition).data('item-display')) || 0; var itemOpenEdit = parseInt($(itemDefinition).data('item-open-edit')) || 0; var itemReload = parseInt($(itemDefinition).data('item-reload')) || 0; var itemRights = parseInt($(itemDefinition).data('item-rights')) || 10; } else { var itemId = itemDefinition || ''; + var itemKey = itemDefinition || ''; var itemTreeId = store.get('teampassApplication').selectedFolder || ''; var itemSk = 0; var itemExpired = ''; var itemRestricted = ''; var itemDisplay = 1; @@ -4883,12 +4894,28 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- $('.but-next-item') .html('<i class="fas fa-arrow-right mr-2"></i>' + unescape($('#list-item-row_'+data.id).next('.list-item-row').attr('data-label'))) .attr('data-next-item-id', $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')) .removeClass('hidden'); } + + /* + dataItemKey = $('[data-item-key="'+data.item_key+'"]'); + if (dataItemKey.prev('.list-item-row').attr('data-item-key') !== undefined) { + $('.but-prev-item') + .html('<i class="fas fa-arrow-left mr-2"></i>' + unescape(dataItemKey.prev('.list-item-row').attr('data-label'))) + .attr('data-prev-item-key', dataItemKey.attr('data-item-key')) + .removeClass('hidden'); + } + if (dataItemKey.next('.list-item-row').attr('data-item-key') !== undefined) { + $('.but-next-item') + .html('<i class="fas fa-arrow-right mr-2"></i>' + unescape(dataItemKey.next('.list-item-row').attr('data-label'))) + .attr('data-next-item-id', dataItemKey.next('.list-item-row').attr('data-item-id')) + .removeClass('hidden'); + } + */ if (debugJavascript === true) { - console.log("PREV: " + $('#list-item-row_'+data.id).prev('.list-item-row').attr('data-item-id') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); + //console.log("PREV: " + dataItemKey.attr('data-item-key') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); } // Inform user toastr.remove(); toastr.info( diff --git a/pages/profile.js.php b/pages/profile.js.php index c846c2aa8c..e6964df174 100755 --- a/pages/profile.js.php +++ b/pages/profile.js.php @@ -163,13 +163,13 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === // Save user settings $('#profile-user-save-settings').click(function() { // Sanitize text fields - let formName = fieldSanitizeStep1('#profile-user-name', false, false, false), - formLastname = fieldSanitizeStep1('#profile-user-lastname', false, false, false), - formEmail = fieldSanitizeStep1('#profile-user-email', false, false, false); + let formName = fieldDomPurifier('#profile-user-name', false, false, false), + formLastname = fieldDomPurifier('#profile-user-lastname', false, false, false), + formEmail = fieldDomPurifier('#profile-user-email', false, false, false); if (formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', diff --git a/pages/roles.js.php b/pages/roles.js.php index 68ea82b645..42aa311e06 100755 --- a/pages/roles.js.php +++ b/pages/roles.js.php @@ -472,13 +472,20 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === // Show spinner toastr.remove(); toastr.info('<?php echo langHdl('in_progress'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); + // Sanitize value + value = fieldDomPurifierWithWarning('#form-role-label'); + if (value === false) { + return false; + } + $('#form-role-label').val(value); + // Prepare data var data = { - 'label': DOMPurify.sanitize($('#form-role-label').val()), + 'label': value, 'complexity': $('#form-complexity-list').val() === null ? 0 : $('#form-complexity-list').val(), 'folderId': $('#roles-list').find(':selected').val(), 'allowEdit': $('#form-role-privilege').is(":checked") === true ? 1 : 0, 'action': store.get('teampassApplication').formUserAction } diff --git a/pages/users.js.php b/pages/users.js.php index 7b08685a66..365f92ac79 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -878,28 +878,10 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === 'value': $(this).val(), }); } }); - // Sanitize text fields - let formLogin = fieldSanitizeStep1('#form-login', false, false, false), - formName = fieldSanitizeStep1('#form-name', false, false, false), - formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), - formEmail = fieldSanitizeStep1('#form-email', false, false, false); - if (formLogin === false || formName === false || formLastname === false || formEmail === false) { - // Label is empty - toastr.remove(); - toastr.warning( - 'XSS attempt detected. Field has been emptied.', - 'Error', { - timeOut: 5000, - progressBar: true - } - ); - return false; - } - if (arrayQuery.length > 0) { // Now save // get lists var forbidFld = [], authFld = [], @@ -973,17 +955,24 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === } ); } ); + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#form-user .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + //prepare data var data = { 'user_id': store.get('teampassApplication').formUserId, - 'login': formLogin, - 'name': formName, - 'lastname': formLastname, - 'email': formEmail, + 'login': purifyRes.arrFields['login'], + 'name': purifyRes.arrFields['name'], + 'lastname': purifyRes.arrFields['lastname'], + 'email': purifyRes.arrFields['email'], 'admin': $('#privilege-admin').prop('checked'), 'manager': $('#privilege-manager').prop('checked'), 'hr': $('#privilege-hr').prop('checked'), 'read_only': $('#privilege-ro').prop('checked'), 'personal_folder': $('#form-create-personal-folder').prop('checked'), @@ -1676,11 +1665,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === } else { // Add new role to Teampass // Prepare data var data = { - 'label': DOMPurify.sanitize($('#ldap-new-role-selection').val()), + 'label': simplePurifier($('#ldap-new-role-selection').val()), 'complexity': $('#ldap-new-role-complexity').val(), 'allowEdit': 0, 'action': 'add_role', 'folderId' : -1, } @@ -2271,16 +2260,23 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === var roles = []; $("#ldap-user-roles option:selected").each(function() { roles.push($(this).val()) }); + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#form-user .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // prepare data var data = { - 'login': DOMPurify.sanitize($('.selected-user').data('user-login')), - 'name': DOMPurify.sanitize($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), - 'lastname': DOMPurify.sanitize($('.selected-user').data('user-lastname')), - 'email': DOMPurify.sanitize($('.selected-user').data('user-email')), + 'login': simplePurifier($('.selected-user').data('user-login')), + 'name': simplePurifier($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), + 'lastname': simplePurifier($('.selected-user').data('user-lastname')), + 'email': simplePurifier($('.selected-user').data('user-email')), 'roles' : roles, }; if (debugJavascript === true) console.log(data) $.post( diff --git a/pages/users.php b/pages/users.php index 0b92b6f729..1746e5e4b5 100755 --- a/pages/users.php +++ b/pages/users.php @@ -269,27 +269,27 @@ foreach ($treeDesc as $t) { <div class="card-body"> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for="form-name"><?php echo langHdl('name'); ?></label> - <input type="text" class="form-control clear-me required track-change" id="form-name"> + <input type="text" class="form-control clear-me required track-change purify" id="form-name" data-field="name"> </div> <div class="form-group"> <label for="form-login"><?php echo langHdl('login'); ?></label> - <input type="text" class="form-control clear-me required build-login track-change" id="form-login"> + <input type="text" class="form-control clear-me required build-login track-change purify" id="form-login" data-field="login"> <input type="hidden" id="form-login-conform" value="0"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="form-lastname"><?php echo langHdl('lastname'); ?></label> - <input type="text" class="form-control clear-me required track-change" id="form-lastname"> + <input type="text" class="form-control clear-me required track-change purify" id="form-lastname" data-field="lastname"> </div> <div class="form-group"> <label for="form-login"><?php echo langHdl('email'); ?></label> - <input type="email" class="form-control clear-me required track-change validate-email" id="form-email"> + <input type="email" class="form-control clear-me required track-change validate-email purify" id="form-email" data-field="email"> </div> </div> </div> <div class="form-group"> <label for="form-login" class="mr-2"><?php echo langHdl('privileges'); ?></label> @@ -340,11 +340,11 @@ foreach ($treeDesc as $t) { <label class="form-check-label mr-2" for="form-create-personal-folder"><?php echo langHdl('enable_personal_folder_for_this_user'); ?></label> </div> <div class="form-group not-for-admin" id="group-create-special-folder"> <input type="checkbox" class="form-check-input form-control flat-blue track-change" id="form-create-special-folder"> <label class="form-check-label mr-2" for="form-create-special-folder"><?php echo langHdl('auto_create_folder_role'); ?></label> - <input type="text" class="form-control clear-me mt-1" id="form-special-folder" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> + <input type="text" class="form-control clear-me mt-1 purify" id="form-special-folder" data-field="" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> </div> <div class="form-group not-for-admin" id="form-create-mfa-enabled-div"> <input type="checkbox" class="form-check-input form-control flat-blue track-change" id="form-create-mfa-enabled"> <label class="form-check-label mr-2" for="form-create-mfa-enabled"><?php echo langHdl('mfa_enabled'); ?></label> </div> diff --git a/sources/admin.queries.php b/sources/admin.queries.php index e59771d15e..1e8ca57f67 100755 --- a/sources/admin.queries.php +++ b/sources/admin.queries.php @@ -1872,24 +1872,24 @@ switch ($post_type) { ); $post_id = DB::insertId(); // Update existing key } elseif (null !== $post_action && $post_action === 'update') { - $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); + $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT); DB::update( prefixTable('api'), array( 'label' => $post_label, 'timestamp' => $timestamp, ), - 'id=%i', + 'increment_id=%i', $post_id ); // Delete existing key } elseif (null !== $post_action && $post_action === 'delete') { - $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); + $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT); DB::query( 'DELETE FROM ' . prefixTable('api') . ' WHERE increment_id = %i', $post_id );
function fieldSanitizeStep1( field, bHtml=true, bSvg=true, bSvgFilters=true, text='' if (field === undefined ||field === '') { return false; } let string = ''; text = (text === '') ? $(field).val() : text; /* // Sanitize string var tagsToReplace = { '&': '&amp;', '<': '&lt;', '>': '&gt;', "'" : '&#39;', '"' : '&quot;' }; text = text.replace(/[&<>'"]/g, function(tag) { return tagsToReplace[tag] || tag; }); */ // Purify string string = DOMPurify.sanitize( 'label': $('#new_api_key_label').val(), label = $(this).prev('input').val(), 'label': $('#new_api_ip_label').val(), 'value': label, <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm" id="new_api_key_label"> <div class="form-group mt-4"> <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'" data-mask> <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2" id="new_api_ip_label"> 'encryptionKey': $('#onthefly-backup-key').val(), "value": $('#onthefly-backup-key').val(), 'encryptionKey': $('#onthefly-restore-key').val(), $(document).on('click', '#button-duo-save', function() { // Prepare data var data = { 'akey': $('#duo_akey').val(), 'ikey': $('#duo_ikey').val(), 'skey': $('#duo_skey').val(), 'host': $('#duo_host').val(), } console.log(data); // Launch action $.post( 'sources/admin.queries.php', { type: 'save_duo_in_sk_file', data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), key: '<?php echo $_SESSION['key']; ?>' }, function(data) { //decrypt data data = decodeQueryReturn(data, '<?php echo $_SESSION['key']; ?>'); if (data.error === true) { // ERROR toastr.remove(); toastr.warning( '<?php echo langHdl('none_selected_text'); ?>', '', { timeOut: 5000, progressBar: true } ); } else { // Inform user toastr.remove(); toastr.success( '<?php echo langHdl('done'); ?>', '', { timeOut: 1000 } ); } } ); }); 'title': DOMPurify.sanitize($('#new-title').val()), 'renewalPeriod': DOMPurify.sanitize($('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val())), 'icon': DOMPurify.sanitize($('#new-folder-add-icon').val(), {USE_PROFILES: {html: true}}), 'iconSelected': DOMPurify.sanitize($('#new-folder-add-icon-selected').val(), {USE_PROFILES: {html: true}}), '<input type="text" class="form-control clear-me" id="folder-edit-title" value="' + folderTitle + '">' + '<input type="text" class="form-control form-folder-control" id="folder-edit-icon" value="'+folderIcon+'">' + '<input type="text" class="form-control form-folder-control" id="folder-edit-icon-selected" value="'+folderIconSelection+'">' + 'title': DOMPurify.sanitize($('#folder-edit-title').val()), 'renewalPeriod': DOMPurify.sanitize($('#folder-edit-renewal').val()), 'icon': DOMPurify.sanitize($('#folder-edit-icon').val(), {USE_PROFILES: {html: true}}), 'iconSelected': DOMPurify.sanitize($('#folder-edit-icon-selected').val(), {USE_PROFILES: {html: true}}) <input type="text" class="form-control clear-me" id="new-title"> <input type="text" class="form-control form-folder-control" id="new-folder-add-icon"> <input type="text" class="form-control form-folder-control" id="new-folder-add-icon-selected"> </div> let formLabel = fieldSanitizeStep1('#form-folder-add-label', false, false, false), formIcon = fieldSanitizeStep1('#form-folder-add-icon', false, false, false), formIconSelected = fieldSanitizeStep1('#form-folder-add-icon-selected', false, false, false); let formLabel = fieldSanitizeStep1('#form-item-label', false, false, false), formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldSanitizeStep1('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', formEmail = fieldSanitizeStep1('#form-item-email'), formTags = fieldSanitizeStep1('#form-item-tags'), formUrl = fieldSanitizeStep1('#form-item-url'), formIcon = fieldSanitizeStep1('#form-item-icon'); $('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); $('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '">' + 'item_id' : value.item_id, if (debugJavascript === true) console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- ') console.log("PREV: " + $('#list-item-row_'+data.id).prev('.list-item-row').attr('data-item-id') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); let formName = fieldSanitizeStep1('#profile-user-name', false, false, false), formLastname = fieldSanitizeStep1('#profile-user-lastname', false, false, false), formEmail = fieldSanitizeStep1('#profile-user-email', false, false, false); 'label': DOMPurify.sanitize($('#form-role-label').val()), // Sanitize text fields let formLogin = fieldSanitizeStep1('#form-login', false, false, false), formName = fieldSanitizeStep1('#form-name', false, false, false), formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), formEmail = fieldSanitizeStep1('#form-email', false, false, false); if (formLogin === false || formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); return false; } 'login': formLogin, 'name': formName, 'lastname': formLastname, 'email': formEmail, 'label': DOMPurify.sanitize($('#ldap-new-role-selection').val()), 'login': DOMPurify.sanitize($('.selected-user').data('user-login')), 'name': DOMPurify.sanitize($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), 'lastname': DOMPurify.sanitize($('.selected-user').data('user-lastname')), 'email': DOMPurify.sanitize($('.selected-user').data('user-email')), <input type="text" class="form-control clear-me required track-change" id="form-name"> <input type="text" class="form-control clear-me required build-login track-change" id="form-login"> <input type="text" class="form-control clear-me required track-change" id="form-lastname"> <input type="email" class="form-control clear-me required track-change validate-email" id="form-email"> <input type="text" class="form-control clear-me mt-1" id="form-special-folder" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); 'id=%i', $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
function simplePurifier( text, bHtml = false, bSvg = false, bSvgFilters = false return DOMPurify.sanitize( } /** * Permits to purify the content of a string using domPurify * @param {*} field * @param {*} bHtml * @param {*} bSvg * @param {*} bSvgFilters * @param {*} text * @returns bool||string */ function fieldDomPurifier( field, bHtml = false, bSvg = false, bSvgFilters = false, text = '' ) { if (field === undefined ||field === '') { return false; } let string = ''; text = (text === '') ? $(field).val() : text; // Purify string string = simplePurifier(text, bHtml, bSvg, bSvgFilters); return string; } /** * Permits to get all fields of a class and purify them * @param {*} elementClass * @returns array */ function fieldDomPurifierLoop(elementClass) { let purifyStop = false, arrFields = []; $.each($(elementClass), function(index, element) { purifiedField = fieldDomPurifier( '#' + $(element).attr('id'), $(element).hasClass('purifyHtml') === true ? true : false, $(element).hasClass('purifySvg') === true ? true : false, $(element).hasClass('purifySvgFilter') === true ? true : false, typeof $(element).data('purify-text') !== undefined ? $(element).data('purify-text') : '' ); if (purifiedField === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Please remove all special characters from your input.', 'Error', { timeOut: 5000, progressBar: true } ); $('#' + $(element).attr('id')).focus(); purifyStop = true; return { 'purifyStop' : purifyStop, 'arrFields' : arrFields }; } else { $(element).val(purifiedField); arrFields[$(element).data('field')] = purifiedField; } }); // return return { 'purifyStop' : purifyStop, 'arrFields' : arrFields }; } /** * Permits to purify the content of a string using domPurify * @param {*} field * @param {*} bHtml * @param {*} bSvg * @param {*} bSvgFilters * @returns bool||string */ function fieldDomPurifierWithWarning( field, bHtml = false, bSvg = false, bSvgFilters = false, ) { if (field === undefined || field === '') { return false; } if ($(field).val() === '') { return ''; } let string = ''; // Purify string string = simplePurifier($(field).val(), bHtml, bSvg, bSvgFilters); // Clear field if string is empty and warn user if (string === '') { toastr.remove(); toastr.warning( 'XSS attempt detected. Please remove all special characters from your input.', 'Error', { timeOut: 5000, progressBar: true } ); $(field).focus(); return false; } // Sanitize value value = fieldDomPurifierWithWarning('#' + field); if (value === false) { return false; } $('#' + field).val(value); // Sanitize text fields purifyRes = fieldDomPurifierLoop('#new_api_key_label'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'label': purifyRes.arrFields['label'], //$('#new_api_key_label').val(), label = simplePurifier($(this).prev('input').val()), // Sanitize text fields purifyRes = fieldDomPurifierLoop('#new-api-ip .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'label': purifyRes.arrFields['label'], 'value': simplePurifier(label), <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm purify" id="new_api_key_label" data-field="label"> <div class="form-group mt-4" id="new-api-ip"> <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'"> <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2 purify" id="new_api_ip_label" data-field="label"> 'encryptionKey': simplePurifier($('#onthefly-backup-key').val()), "value": simplePurifier($('#onthefly-backup-key').val()), 'encryptionKey': simplePurifier($('#onthefly-restore-key').val()), // Sanitize text fields purifyRes = fieldDomPurifierLoop('#folder-new .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'title': purifyRes.arrFields['title'], 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'icon': purifyRes.arrFields['icon'], 'iconSelected': purifyRes.arrFields['iconSelected'], '<input type="text" class="form-control clear-me purify" id="folder-edit-title" data-field="title" value="' + folderTitle + '">' + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon" data-field="icon" value="'+folderIcon+'">' + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon-selected" data-field="iconSelected" value="'+folderIconSelection+'">' + // Sanitize text fields purifyRes = fieldDomPurifierLoop('#table-folders .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'title': purifyRes.arrFields['title'], //$('#folder-edit-title').val(), 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'icon': purifyRes.arrFields['icon'], //$('#folder-edit-icon').val(), 'iconSelected': purifyRes.arrFields['iconSelected'], //$('#folder-edit-icon-selected').val(), <input type="text" class="form-control clear-me purify" id="new-title" data-field="title"> <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon" data-field="icon"> <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon-selected" data-field="iconSelected"> </div> let formLabel = fieldDomPurifier('#form-folder-add-label', false, false, false), formIcon = fieldDomPurifier('#form-folder-add-icon', false, false, false), formIconSelected = fieldDomPurifier('#form-folder-add-icon-selected', false, false, false); //$(this).hasClass('but-prev-item') === true ? $('#list-item-row_' + $(this).attr('data-prev-item-key')) : $('#list-item-row_' + $(this).attr('data-next-item-key')), let formLabel = fieldDomPurifier('#form-item-label', false, false, false), formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldDomPurifier('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', formEmail = fieldDomPurifier('#form-item-email'), formTags = fieldDomPurifier('#form-item-tags'), formUrl = fieldDomPurifier('#form-item-url'), formIcon = fieldDomPurifier('#form-item-icon'); //$('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); //$('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); $('[data-item-key="'+value.item_key+'"]') //.attr('data-next-item-id', prevIdForNextItem.item_id) .attr('data-next-item-key', prevIdForNextItem.item_key) .attr('data-next-item-label', value.label); icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '">' + //'item_id' : value.item_id, 'item_key' : value.item_key, if (debugJavascript === true) { console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- '); console.log(itemDefinition); } var itemKey = parseInt($(itemDefinition).data('item-key')) || ''; var itemKey = itemDefinition || ''; /* dataItemKey = $('[data-item-key="'+data.item_key+'"]'); if (dataItemKey.prev('.list-item-row').attr('data-item-key') !== undefined) { $('.but-prev-item') .html('<i class="fas fa-arrow-left mr-2"></i>' + unescape(dataItemKey.prev('.list-item-row').attr('data-label'))) .attr('data-prev-item-key', dataItemKey.attr('data-item-key')) .removeClass('hidden'); } if (dataItemKey.next('.list-item-row').attr('data-item-key') !== undefined) { $('.but-next-item') .html('<i class="fas fa-arrow-right mr-2"></i>' + unescape(dataItemKey.next('.list-item-row').attr('data-label'))) .attr('data-next-item-id', dataItemKey.next('.list-item-row').attr('data-item-id')) .removeClass('hidden'); } */ //console.log("PREV: " + dataItemKey.attr('data-item-key') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); let formName = fieldDomPurifier('#profile-user-name', false, false, false), formLastname = fieldDomPurifier('#profile-user-lastname', false, false, false), formEmail = fieldDomPurifier('#profile-user-email', false, false, false); // Sanitize value value = fieldDomPurifierWithWarning('#form-role-label'); if (value === false) { return false; } $('#form-role-label').val(value); 'label': value, // Sanitize text fields purifyRes = fieldDomPurifierLoop('#form-user .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'login': purifyRes.arrFields['login'], 'name': purifyRes.arrFields['name'], 'lastname': purifyRes.arrFields['lastname'], 'email': purifyRes.arrFields['email'], 'label': simplePurifier($('#ldap-new-role-selection').val()), // Sanitize text fields purifyRes = fieldDomPurifierLoop('#form-user .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'login': simplePurifier($('.selected-user').data('user-login')), 'name': simplePurifier($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), 'lastname': simplePurifier($('.selected-user').data('user-lastname')), 'email': simplePurifier($('.selected-user').data('user-email')), <input type="text" class="form-control clear-me required track-change purify" id="form-name" data-field="name"> <input type="text" class="form-control clear-me required build-login track-change purify" id="form-login" data-field="login"> <input type="text" class="form-control clear-me required track-change purify" id="form-lastname" data-field="lastname"> <input type="email" class="form-control clear-me required track-change validate-email purify" id="form-email" data-field="email"> <input type="text" class="form-control clear-me mt-1 purify" id="form-special-folder" data-field="" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT); 'increment_id=%i', $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT);
[ "input_handling" ]
CVE-2023-3191
241dbd4159a5d63b55af426464d30dbb53925705
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.9.'}]
null
5.4
2023-06-10T09:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.9 Fix xss vulnerabilities in several text inputs
2023-06-10 09:30:21 +0200
241dbd4159
8,325
3
[ "includes/js/functions.js", "pages/admin.js.php", "pages/api.js.php", "pages/api.php", "pages/backups.js.php", "pages/emails.js.php", "pages/folders.js.php", "pages/folders.php", "pages/items.js.php", "pages/profile.js.php", "pages/roles.js.php", "pages/users.js.php", "pages/users.php", "sources/admin.queries.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 123, "lines_deleted": 26}, "pages/admin.js.php": {"lines_added": 7, "lines_deleted": 0}, "pages/api.js.php": {"lines_added": 19, "lines_deleted": 5}, "pages/api.php": {"lines_added": 4, "lines_deleted": 4}, "pages/backups.js.php": {"lines_added": 3, "lines_deleted": 3}, "pages/emails.js.php": {"lines_added": 0, "lines_deleted": 47}, "pages/folders.js.php": {"lines_added": 26, "lines_deleted": 11}, "pages/folders.php": {"lines_added": 4, "lines_deleted": 4}, "pages/items.js.php": {"lines_added": 45, "lines_deleted": 18}, "pages/profile.js.php": {"lines_added": 3, "lines_deleted": 3}, "pages/roles.js.php": {"lines_added": 8, "lines_deleted": 1}, "pages/users.js.php": {"lines_added": 23, "lines_deleted": 27}, "pages/users.php": {"lines_added": 5, "lines_deleted": 5}, "sources/admin.queries.php": {"lines_added": 3, "lines_deleted": 3}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index c820cd7d3f..9a307a8993 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -388,50 +388,147 @@ if (typeof String.prototype.utf8Decode == 'undefined') { return this; // invalid UTF-8? return as-is } }; } -function fieldSanitizeStep1( - field, - bHtml=true, - bSvg=true, - bSvgFilters=true, - text='' +function simplePurifier( + text, + bHtml = false, + bSvg = false, + bSvgFilters = false ) { - if (field === undefined ||field === '') { - return false; - } - let string = ''; - text = (text === '') ? $(field).val() : text; -/* - // Sanitize string - var tagsToReplace = { - '&': '&amp;', - '<': '&lt;', - '>': '&gt;', - "'" : '&#39;', - '"' : '&quot;' - }; - text = text.replace(/[&<>'"]/g, function(tag) { - return tagsToReplace[tag] || tag; - }); - */ - // Purify string - string = DOMPurify.sanitize( + return DOMPurify.sanitize( text .replaceAll('&lt;', '<') .replaceAll('&gt;', '>') .replaceAll('&amp;', '&') .replaceAll('&quot;', '"') .replaceAll('&#39;', "'"), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} ); +} + +/** + * Permits to purify the content of a string using domPurify + * @param {*} field + * @param {*} bHtml + * @param {*} bSvg + * @param {*} bSvgFilters + * @param {*} text + * @returns bool||string + */ +function fieldDomPurifier( + field, + bHtml = false, + bSvg = false, + bSvgFilters = false, + text = '' +) +{ + if (field === undefined ||field === '') { + return false; + } + let string = ''; + text = (text === '') ? $(field).val() : text; + + // Purify string + string = simplePurifier(text, bHtml, bSvg, bSvgFilters); // Clear field if string is empty and warn user if (string === '' && text !== '') { $(field).val(''); return false; } + return string; +} + +/** + * Permits to get all fields of a class and purify them + * @param {*} elementClass + * @returns array + */ +function fieldDomPurifierLoop(elementClass) +{ + let purifyStop = false, + arrFields = []; + $.each($(elementClass), function(index, element) { + purifiedField = fieldDomPurifier( + '#' + $(element).attr('id'), + $(element).hasClass('purifyHtml') === true ? true : false, + $(element).hasClass('purifySvg') === true ? true : false, + $(element).hasClass('purifySvgFilter') === true ? true : false, + typeof $(element).data('purify-text') !== undefined ? $(element).data('purify-text') : '' + ); + + if (purifiedField === false) { + // Label is empty + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Please remove all special characters from your input.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + $('#' + $(element).attr('id')).focus(); + purifyStop = true; + return { + 'purifyStop' : purifyStop, + 'arrFields' : arrFields + }; + } else { + $(element).val(purifiedField); + arrFields[$(element).data('field')] = purifiedField; + } + }); + + // return + return { + 'purifyStop' : purifyStop, + 'arrFields' : arrFields + }; +} + +/** + * Permits to purify the content of a string using domPurify + * @param {*} field + * @param {*} bHtml + * @param {*} bSvg + * @param {*} bSvgFilters + * @returns bool||string + */ +function fieldDomPurifierWithWarning( + field, + bHtml = false, + bSvg = false, + bSvgFilters = false, +) +{ + if (field === undefined || field === '') { + return false; + } + if ($(field).val() === '') { + return ''; + } + let string = ''; + + // Purify string + string = simplePurifier($(field).val(), bHtml, bSvg, bSvgFilters); + + // Clear field if string is empty and warn user + if (string === '') { + toastr.remove(); + toastr.warning( + 'XSS attempt detected. Please remove all special characters from your input.', + 'Error', { + timeOut: 5000, + progressBar: true + } + ); + $(field).focus(); + return false; + } + return string; } \ No newline at end of file diff --git a/pages/admin.js.php b/pages/admin.js.php index 0aad38e396..852dab00a9 100755 --- a/pages/admin.js.php +++ b/pages/admin.js.php @@ -132,10 +132,17 @@ declare(strict_types=1); // prevent launch of similar query in case of doubleclick if (requestRunning === true) { return false; } + // Sanitize value + value = fieldDomPurifierWithWarning('#' + field); + if (value === false) { + return false; + } + $('#' + field).val(value); + requestRunning = true; var data = { "field": field, "value": value, diff --git a/pages/api.js.php b/pages/api.js.php index 425d1fe497..1c8c1e5383 100755 --- a/pages/api.js.php +++ b/pages/api.js.php @@ -63,14 +63,21 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals $(document).on('click', '#button-new-api-key', function() { // IS form field? if ($('#new_api_key_label') === '') { return false; } + + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#new_api_key_label'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } // Prepare data var data = { - 'label': $('#new_api_key_label').val(), + 'label': purifyRes.arrFields['label'], //$('#new_api_key_label').val(), 'action': 'add', } $('#table-api-keys').removeClass('hidden'); $('#api-no-keys').addClass('hidden'); @@ -194,20 +201,20 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals $('.new-api-key').val(oldLabel); }); $(document).on('click', '#new-api-key-save', function() { var keyId = $(this).closest('tr').data('id'), - label = $(this).prev('input').val(), + label = simplePurifier($(this).prev('input').val()), cell = $(this).closest('td'); // Prepare data var data = { 'id': keyId, 'label': label, 'action': 'update', } - + // Launch action $.post( 'sources/admin.queries.php', { type: 'admin_action_api_save_key', data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), @@ -256,13 +263,20 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals } ); return false; } + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#new-api-ip .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // Prepare data var data = { - 'label': $('#new_api_ip_label').val(), + 'label': purifyRes.arrFields['label'], 'ip': $('#new_api_ip_value').val(), 'action': 'add', } $('#table-api-ips').removeClass('hidden'); @@ -396,11 +410,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'api', $SETTINGS) === fals cell = $(this).closest('td'); // Prepare data var data = { 'id': ipId, - 'value': label, + 'value': simplePurifier(label), 'field': field, 'action': 'update', } // Launch action diff --git a/pages/api.php b/pages/api.php index 09883013c5..a81ca0df99 100755 --- a/pages/api.php +++ b/pages/api.php @@ -159,11 +159,11 @@ require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; <div class="form-group mt-4"> <div class="callout callout-info"> <span class="text-bold"><?php echo langHdl('adding_new_api_key'); ?></span> <div class="row mt-1 ml-1"> - <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm" id="new_api_key_label"> + <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm purify" id="new_api_key_label" data-field="label"> <span class="fa-stack ml-2 infotip pointer" title="<?php echo langHdl('adding_new_api_key'); ?>" id="button-new-api-key"> <i class="fas fa-square fa-stack-2x"></i> <i class="fas fa-plus fa-stack-1x fa-inverse"></i> </span> </div> @@ -209,17 +209,17 @@ require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; <div class="mt-2<?php echo DB::count() > 0 ? ' hidden' : ''; ?>" id="api-no-ips"> <i class="fas fa-info mr-2 text-warning"></i><?php echo langHdl('no_data_defined'); ?> </div> </div> - <div class="form-group mt-4"> + <div class="form-group mt-4" id="new-api-ip"> <div class="callout callout-info"> <span class="text-bold"><?php echo langHdl('adding_new_api_ip'); ?></span> <div class="row mt-1 ml-1"> - <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'" data-mask> - <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2" id="new_api_ip_label"> + <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'"> + <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2 purify" id="new_api_ip_label" data-field="label"> <span class="fa-stack ml-2 infotip pointer" title="<?php echo langHdl('settings_api_add_ip'); ?>" id="button-new-api-ip"> <i class="fas fa-square fa-stack-2x"></i> <i class="fas fa-plus fa-stack-1x fa-inverse"></i> </span> </div> diff --git a/pages/backups.js.php b/pages/backups.js.php index 7ec96ea7ef..dda4d792c7 100755 --- a/pages/backups.js.php +++ b/pages/backups.js.php @@ -94,11 +94,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals toastr.remove(); toastr.info('<?php echo langHdl('in_progress'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Prepare data var data = { - 'encryptionKey': $('#onthefly-backup-key').val(), + 'encryptionKey': simplePurifier($('#onthefly-backup-key').val()), }; //send query $.post( "sources/backups.queries.php", { @@ -123,11 +123,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals ); } else { // Store KEY in DB var newData = { "field": 'bck_script_passkey', - "value": $('#onthefly-backup-key').val(), + "value": simplePurifier($('#onthefly-backup-key').val()), } $.post( "sources/admin.queries.php", { type: "save_option_change", @@ -191,11 +191,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals toastr.remove(); toastr.info('<?php echo langHdl('in_progress'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Prepare data var data = { - 'encryptionKey': $('#onthefly-restore-key').val(), + 'encryptionKey': simplePurifier($('#onthefly-restore-key').val()), 'backupFile': $('#onthefly-restore-file').data('operation-id') }; console.log(data); //send query $.post( diff --git a/pages/emails.js.php b/pages/emails.js.php index 578d3f48ae..71f4f2cda5 100755 --- a/pages/emails.js.php +++ b/pages/emails.js.php @@ -143,54 +143,7 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals } } ); } - - $(document).on('click', '#button-duo-save', function() { - // Prepare data - var data = { - 'akey': $('#duo_akey').val(), - 'ikey': $('#duo_ikey').val(), - 'skey': $('#duo_skey').val(), - 'host': $('#duo_host').val(), - } - console.log(data); - - // Launch action - $.post( - 'sources/admin.queries.php', { - type: 'save_duo_in_sk_file', - data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), - key: '<?php echo $_SESSION['key']; ?>' - }, - function(data) { - //decrypt data - data = decodeQueryReturn(data, '<?php echo $_SESSION['key']; ?>'); - - if (data.error === true) { - // ERROR - toastr.remove(); - toastr.warning( - '<?php echo langHdl('none_selected_text'); ?>', - '', { - timeOut: 5000, - progressBar: true - } - ); - } else { - // Inform user - toastr.remove(); - toastr.success( - '<?php echo langHdl('done'); ?>', - '', { - timeOut: 1000 - } - ); - } - } - ); - }); - - //]]> </script> diff --git a/pages/folders.js.php b/pages/folders.js.php index f0dba143cf..adcfb3bb3d 100755 --- a/pages/folders.js.php +++ b/pages/folders.js.php @@ -94,21 +94,29 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === $('#folders-list').addClass('hidden'); $('#new-title').focus(); } else if ($(this).data('action') === 'new-submit') { //--- SAVE NEW FOLDER + + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#folder-new .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // Prepare data var data = { - 'title': DOMPurify.sanitize($('#new-title').val()), + 'title': purifyRes.arrFields['title'], 'parentId': parseInt($('#new-parent').val()), 'complexity': parseInt($('#new-complexity').val()), 'accessRight': $('#new-access-right').val(), - 'renewalPeriod': DOMPurify.sanitize($('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val())), + 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'addRestriction': $('#new-add-restriction').prop("checked") === true ? 1 : 0, 'editRestriction': $('#new-edit-restriction').prop("checked") === true ? 1 : 0, - 'icon': DOMPurify.sanitize($('#new-folder-add-icon').val(), {USE_PROFILES: {html: true}}), - 'iconSelected': DOMPurify.sanitize($('#new-folder-add-icon-selected').val(), {USE_PROFILES: {html: true}}), + 'icon': purifyRes.arrFields['icon'], + 'iconSelected': purifyRes.arrFields['iconSelected'], } console.log(data) // Launch action $.post( 'sources/folders.queries.php', { @@ -645,11 +653,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === '<tr class="temp-row"><td colspan="' + $(currentRow).children('td').length + '">' + '<div class="card card-warning card-outline form">' + '<div class="card-body">' + '<div class="form-group ml-2">' + '<label for="folder-edit-title"><?php echo langHdl('label'); ?></label>' + - '<input type="text" class="form-control clear-me" id="folder-edit-title" value="' + folderTitle + '">' + + '<input type="text" class="form-control clear-me purify" id="folder-edit-title" data-field="title" value="' + folderTitle + '">' + '</div>' + '<div class="form-group ml-2">' + '<label for="folder-edit-parent"><?php echo langHdl('parent'); ?></label><br>' + '<select id="folder-edit-parent" class="form-control form-item-control select2 clear-me">' + store.get('teampassApplication').foldersSelect + '</select>' + '</div>' + @@ -661,18 +669,18 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === '<label for="folder-edit-renewal"><?php echo langHdl('renewal_delay'); ?></label>' + '<input type="text" class="form-control clear-me" id="folder-edit-renewal" value="' + folderRenewal + '">' + '</div>' + '<div class="form-group ml-2">' + '<label><?php echo langHdl('icon'); ?></label>' + - '<input type="text" class="form-control form-folder-control" id="folder-edit-icon" value="'+folderIcon+'">' + + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon" data-field="icon" value="'+folderIcon+'">' + '<small class="form-text text-muted">' + '<?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + '</small>' + '</div>' + '<div class="form-group ml-2">' + '<label><?php echo langHdl('icon_on_selection'); ?></label>' + - '<input type="text" class="form-control form-folder-control" id="folder-edit-icon-selected" value="'+folderIconSelection+'">' + + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon-selected" data-field="iconSelected" value="'+folderIconSelection+'">' + '<small class="form-text text-muted">' + '<?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + '</small>' + '</div>' + '<div class="form-group ml-2" id="folder-rights-tuned">' + @@ -736,21 +744,28 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === var selectedFolders = []; $("input:checkbox[class=checkbox-folder]:checked").each(function() { selectedFolders.push($(this).data('id')); }); + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#table-folders .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // Prepare data var data = { 'id': currentFolderId, - 'title': DOMPurify.sanitize($('#folder-edit-title').val()), + 'title': purifyRes.arrFields['title'], //$('#folder-edit-title').val(), 'parentId': $('#folder-edit-parent').val(), 'complexity': $('#folder-edit-complexity').val(), - 'renewalPeriod': DOMPurify.sanitize($('#folder-edit-renewal').val()), + 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'addRestriction': $('#folder-edit-add-restriction').prop("checked") === true ? 1 : 0, 'editRestriction': $('#folder-edit-edit-restriction').prop("checked") === true ? 1 : 0, - 'icon': DOMPurify.sanitize($('#folder-edit-icon').val(), {USE_PROFILES: {html: true}}), - 'iconSelected': DOMPurify.sanitize($('#folder-edit-icon-selected').val(), {USE_PROFILES: {html: true}}) + 'icon': purifyRes.arrFields['icon'], //$('#folder-edit-icon').val(), + 'iconSelected': purifyRes.arrFields['iconSelected'], //$('#folder-edit-icon-selected').val(), } console.log(data) // Launch action $.post( 'sources/folders.queries.php', { diff --git a/pages/folders.php b/pages/folders.php index 90d2b195c0..80b8c357b7 100755 --- a/pages/folders.php +++ b/pages/folders.php @@ -141,11 +141,11 @@ foreach ($tst as $t) { <!-- form start --> <form role="form"> <div class="card-body"> <div class="form-group"> <label for="new-title"><?php echo langHdl('label'); ?></label> - <input type="text" class="form-control clear-me" id="new-title"> + <input type="text" class="form-control clear-me purify" id="new-title" data-field="title"> </div> <div class="form-group"> <label for="new-parent"><?php echo langHdl('parent'); ?></label> <select id="new-parent" class="form-control form-item-control select2 no-root" style="width:100%;"> <?php echo $droplist; ?> @@ -169,18 +169,18 @@ foreach ($tst as $t) { <label for="new-renewal"><?php echo langHdl('renewal_delay'); ?></label> <input type="number" class="form-control clear-me" id="new-renewal" value="0" min="0" data-bind="value:replyNumber"> </div> <div class="form-group"> <label><?php echo langHdl('icon'); ?></label> - <input type="text" class="form-control form-folder-control" id="new-folder-add-icon"> + <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon" data-field="icon"> <small class='form-text text-muted'> <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a> </small> </div> <div class="form-group"> <label><?php echo langHdl('icon_on_selection'); ?></label> - <input type="text" class="form-control form-folder-control" id="new-folder-add-icon-selected"> + <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon-selected" data-field="iconSelected"> <small class='form-text text-muted'> <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a> </small> </div> <div class="form-group"> @@ -191,11 +191,11 @@ foreach ($tst as $t) { </div> <div class="form-check"> <input type="checkbox" class="form-check-input form-control" id="new-edit-restriction"> <label for="new-edit-restriction" class="form-check-label pointer ml-2"><?php echo langHdl('edit_without_password_minimal_complexity_target'); ?></label> </div> -</div> + </div> </div> <!-- /.card-body --> <div class="card-footer"> <button type="button" class="btn btn-primary tp-action" data-action="new-submit"><?php echo langHdl('submit'); ?></button> diff --git a/pages/items.js.php b/pages/items.js.php index 4eaa57b7f4..fb80138d6b 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -1678,13 +1678,13 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Force user did a change to false userDidAChange = false; userUploadedFile = false; // Sanitize text fields - let formLabel = fieldSanitizeStep1('#form-folder-add-label', false, false, false), - formIcon = fieldSanitizeStep1('#form-folder-add-icon', false, false, false), - formIconSelected = fieldSanitizeStep1('#form-folder-add-icon-selected', false, false, false); + let formLabel = fieldDomPurifier('#form-folder-add-label', false, false, false), + formIcon = fieldDomPurifier('#form-folder-add-icon', false, false, false), + formIconSelected = fieldDomPurifier('#form-folder-add-icon-selected', false, false, false); if (formLabel === false || formIcon === false || formIconSelected === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', @@ -2113,10 +2113,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- toastr.remove(); toastr.info('<?php echo langHdl('loading_item'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Load item info Details( + //$(this).hasClass('but-prev-item') === true ? $('#list-item-row_' + $(this).attr('data-prev-item-key')) : $('#list-item-row_' + $(this).attr('data-next-item-key')), $(this).hasClass('but-prev-item') === true ? $('#list-item-row_' + $(this).attr('data-prev-item-id')) : $('#list-item-row_' + $(this).attr('data-next-item-id')), 'show' ); $('.but-navigate-item').addClass('hidden'); @@ -2675,16 +2676,16 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Do checks if (arrayQuery.length > 0 || userDidAChange === true) { var reg = new RegExp("[.|,|;|:|!|=|+|-|*|/|#|\"|'|&]"); // Sanitize text fields - let formLabel = fieldSanitizeStep1('#form-item-label', false, false, false), - formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldSanitizeStep1('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', - formEmail = fieldSanitizeStep1('#form-item-email'), - formTags = fieldSanitizeStep1('#form-item-tags'), - formUrl = fieldSanitizeStep1('#form-item-url'), - formIcon = fieldSanitizeStep1('#form-item-icon'); + let formLabel = fieldDomPurifier('#form-item-label', false, false, false), + formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldDomPurifier('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', + formEmail = fieldDomPurifier('#form-item-email'), + formTags = fieldDomPurifier('#form-item-tags'), + formUrl = fieldDomPurifier('#form-item-url'), + formIcon = fieldDomPurifier('#form-item-icon'); if (formLabel === false || formDescription === false || formEmail === false || formTags === false || formUrl === false || formIcon === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', @@ -3946,12 +3947,16 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- if (debugJavascript === true) { console.log('current id: '+value.item_id); console.log(prevIdForNextItem); } if (prevIdForNextItem !== -1) { - $('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); - $('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); + //$('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); + //$('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); + $('[data-item-key="'+value.item_key+'"]') + //.attr('data-next-item-id', prevIdForNextItem.item_id) + .attr('data-next-item-key', prevIdForNextItem.item_key) + .attr('data-next-item-label', value.label); } // Prepare anyone can modify icon if (value.anyone_can_modify === 1 || value.open_edit === 1) { icon_all_can_modify = '<span class="fa-stack fa-clickable pointer infotip list-item-clicktoedit mr-2" title="<?php echo langHdl('edit'); ?>"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-pen fa-stack-1x fa-inverse"></i></span>'; @@ -3984,23 +3989,23 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Prepare Favorite icon if (store.get('teampassSettings') !== undefined && parseInt(store.get('teampassSettings').enable_favourites) === 1 && value.rights > 10 ) { if (value.is_favourited === 1) { - icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; + icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; } else { - icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; + icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; } } // Prepare Description if (value.desc !== '') { value.desc = ' <span class="text-secondary small">- ' + value.desc + '</span>'; } $('#teampass_items_list').append( - '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + + '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + '<td class="list-item-description" style="width: 100%;">' + // Show user a grippy bar to move item (value.canMove === 1 ? '<i class="fas fa-ellipsis-v mr-2 dragndrop"></i>' : '') + //&& value.is_result_of_search === 0 // Show user a ban icon if expired (value.expired === 1 ? '<i class="far fa-calendar-times mr-2 text-warning infotip" title="<?php echo langHdl('not_allowed_to_see_pw_is_expired'); ?>"></i>' : '') + @@ -4009,11 +4014,11 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Show user that password is badly encrypted (value.pw_status === 'encryption_error' ? '<i class="fas fa-exclamation-triangle fa-xs text-danger infotip mr-1" title="<?php echo langHdl('pw_encryption_error'); ?>"></i>' : '') + // Show item fa_icon if set (value.fa_icon !== '' ? '<i class="'+value.fa_icon+' mr-1"></i>' : '') + // Prepare item info - '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '">' + + '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '">' + '<span class="list-item-row-description' + (value.rights === 10 ? ' font-weight-light' : '') + '">' + value.label + '</span>' + (value.rights === 10 ? '' : value.desc) + '</span>' + '<span class="list-item-actions hidden">' + (value.rights === 10 ? '<span class="fa-stack fa-clickable fa-clickable-access-request pointer infotip mr-2" title="<?php echo langHdl('need_access'); ?>"><i class="fas fa-circle fa-stack-2x text-danger"></i><i class="far fa-handshake fa-stack-1x fa-inverse"></i></span>' : pwd_error + icon_all_can_modify + icon_login + icon_pwd + icon_link + icon_favorite) + @@ -4025,11 +4030,12 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- '</tr>' ); // Save id for usage prevIdForNextItem = { - 'item_id' : value.item_id, + //'item_id' : value.item_id, + 'item_key' : value.item_key, 'label': value.label, }; //--------------------- } @@ -4214,25 +4220,30 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- /** * */ function Details(itemDefinition, actionType, hotlink = false) { - if (debugJavascript === true) console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- ') + if (debugJavascript === true) { + console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- '); + console.log(itemDefinition); + } // Init if (hotlink === false) { var itemId = parseInt($(itemDefinition).data('item-id')) || ''; + var itemKey = parseInt($(itemDefinition).data('item-key')) || ''; var itemTreeId = parseInt($(itemDefinition).data('item-tree-id')) || ''; var itemSk = parseInt($(itemDefinition).data('item-sk')) || 0; var itemExpired = parseInt($(itemDefinition).data('item-expired')) || ''; var itemRestricted = parseInt($(itemDefinition).data('item-restricted-id')) || ''; var itemDisplay = parseInt($(itemDefinition).data('item-display')) || 0; var itemOpenEdit = parseInt($(itemDefinition).data('item-open-edit')) || 0; var itemReload = parseInt($(itemDefinition).data('item-reload')) || 0; var itemRights = parseInt($(itemDefinition).data('item-rights')) || 10; } else { var itemId = itemDefinition || ''; + var itemKey = itemDefinition || ''; var itemTreeId = store.get('teampassApplication').selectedFolder || ''; var itemSk = 0; var itemExpired = ''; var itemRestricted = ''; var itemDisplay = 1; @@ -4883,12 +4894,28 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- $('.but-next-item') .html('<i class="fas fa-arrow-right mr-2"></i>' + unescape($('#list-item-row_'+data.id).next('.list-item-row').attr('data-label'))) .attr('data-next-item-id', $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')) .removeClass('hidden'); } + + /* + dataItemKey = $('[data-item-key="'+data.item_key+'"]'); + if (dataItemKey.prev('.list-item-row').attr('data-item-key') !== undefined) { + $('.but-prev-item') + .html('<i class="fas fa-arrow-left mr-2"></i>' + unescape(dataItemKey.prev('.list-item-row').attr('data-label'))) + .attr('data-prev-item-key', dataItemKey.attr('data-item-key')) + .removeClass('hidden'); + } + if (dataItemKey.next('.list-item-row').attr('data-item-key') !== undefined) { + $('.but-next-item') + .html('<i class="fas fa-arrow-right mr-2"></i>' + unescape(dataItemKey.next('.list-item-row').attr('data-label'))) + .attr('data-next-item-id', dataItemKey.next('.list-item-row').attr('data-item-id')) + .removeClass('hidden'); + } + */ if (debugJavascript === true) { - console.log("PREV: " + $('#list-item-row_'+data.id).prev('.list-item-row').attr('data-item-id') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); + //console.log("PREV: " + dataItemKey.attr('data-item-key') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); } // Inform user toastr.remove(); toastr.info( diff --git a/pages/profile.js.php b/pages/profile.js.php index c846c2aa8c..e6964df174 100755 --- a/pages/profile.js.php +++ b/pages/profile.js.php @@ -163,13 +163,13 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === // Save user settings $('#profile-user-save-settings').click(function() { // Sanitize text fields - let formName = fieldSanitizeStep1('#profile-user-name', false, false, false), - formLastname = fieldSanitizeStep1('#profile-user-lastname', false, false, false), - formEmail = fieldSanitizeStep1('#profile-user-email', false, false, false); + let formName = fieldDomPurifier('#profile-user-name', false, false, false), + formLastname = fieldDomPurifier('#profile-user-lastname', false, false, false), + formEmail = fieldDomPurifier('#profile-user-email', false, false, false); if (formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', diff --git a/pages/roles.js.php b/pages/roles.js.php index 68ea82b645..42aa311e06 100755 --- a/pages/roles.js.php +++ b/pages/roles.js.php @@ -472,13 +472,20 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'profile', $SETTINGS) === // Show spinner toastr.remove(); toastr.info('<?php echo langHdl('in_progress'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); + // Sanitize value + value = fieldDomPurifierWithWarning('#form-role-label'); + if (value === false) { + return false; + } + $('#form-role-label').val(value); + // Prepare data var data = { - 'label': DOMPurify.sanitize($('#form-role-label').val()), + 'label': value, 'complexity': $('#form-complexity-list').val() === null ? 0 : $('#form-complexity-list').val(), 'folderId': $('#roles-list').find(':selected').val(), 'allowEdit': $('#form-role-privilege').is(":checked") === true ? 1 : 0, 'action': store.get('teampassApplication').formUserAction } diff --git a/pages/users.js.php b/pages/users.js.php index 7b08685a66..365f92ac79 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -878,28 +878,10 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === 'value': $(this).val(), }); } }); - // Sanitize text fields - let formLogin = fieldSanitizeStep1('#form-login', false, false, false), - formName = fieldSanitizeStep1('#form-name', false, false, false), - formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), - formEmail = fieldSanitizeStep1('#form-email', false, false, false); - if (formLogin === false || formName === false || formLastname === false || formEmail === false) { - // Label is empty - toastr.remove(); - toastr.warning( - 'XSS attempt detected. Field has been emptied.', - 'Error', { - timeOut: 5000, - progressBar: true - } - ); - return false; - } - if (arrayQuery.length > 0) { // Now save // get lists var forbidFld = [], authFld = [], @@ -973,17 +955,24 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === } ); } ); + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#form-user .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + //prepare data var data = { 'user_id': store.get('teampassApplication').formUserId, - 'login': formLogin, - 'name': formName, - 'lastname': formLastname, - 'email': formEmail, + 'login': purifyRes.arrFields['login'], + 'name': purifyRes.arrFields['name'], + 'lastname': purifyRes.arrFields['lastname'], + 'email': purifyRes.arrFields['email'], 'admin': $('#privilege-admin').prop('checked'), 'manager': $('#privilege-manager').prop('checked'), 'hr': $('#privilege-hr').prop('checked'), 'read_only': $('#privilege-ro').prop('checked'), 'personal_folder': $('#form-create-personal-folder').prop('checked'), @@ -1676,11 +1665,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === } else { // Add new role to Teampass // Prepare data var data = { - 'label': DOMPurify.sanitize($('#ldap-new-role-selection').val()), + 'label': simplePurifier($('#ldap-new-role-selection').val()), 'complexity': $('#ldap-new-role-complexity').val(), 'allowEdit': 0, 'action': 'add_role', 'folderId' : -1, } @@ -2271,16 +2260,23 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === var roles = []; $("#ldap-user-roles option:selected").each(function() { roles.push($(this).val()) }); + // Sanitize text fields + purifyRes = fieldDomPurifierLoop('#form-user .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop + return false; + } + // prepare data var data = { - 'login': DOMPurify.sanitize($('.selected-user').data('user-login')), - 'name': DOMPurify.sanitize($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), - 'lastname': DOMPurify.sanitize($('.selected-user').data('user-lastname')), - 'email': DOMPurify.sanitize($('.selected-user').data('user-email')), + 'login': simplePurifier($('.selected-user').data('user-login')), + 'name': simplePurifier($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), + 'lastname': simplePurifier($('.selected-user').data('user-lastname')), + 'email': simplePurifier($('.selected-user').data('user-email')), 'roles' : roles, }; if (debugJavascript === true) console.log(data) $.post( diff --git a/pages/users.php b/pages/users.php index 0b92b6f729..1746e5e4b5 100755 --- a/pages/users.php +++ b/pages/users.php @@ -269,27 +269,27 @@ foreach ($treeDesc as $t) { <div class="card-body"> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for="form-name"><?php echo langHdl('name'); ?></label> - <input type="text" class="form-control clear-me required track-change" id="form-name"> + <input type="text" class="form-control clear-me required track-change purify" id="form-name" data-field="name"> </div> <div class="form-group"> <label for="form-login"><?php echo langHdl('login'); ?></label> - <input type="text" class="form-control clear-me required build-login track-change" id="form-login"> + <input type="text" class="form-control clear-me required build-login track-change purify" id="form-login" data-field="login"> <input type="hidden" id="form-login-conform" value="0"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="form-lastname"><?php echo langHdl('lastname'); ?></label> - <input type="text" class="form-control clear-me required track-change" id="form-lastname"> + <input type="text" class="form-control clear-me required track-change purify" id="form-lastname" data-field="lastname"> </div> <div class="form-group"> <label for="form-login"><?php echo langHdl('email'); ?></label> - <input type="email" class="form-control clear-me required track-change validate-email" id="form-email"> + <input type="email" class="form-control clear-me required track-change validate-email purify" id="form-email" data-field="email"> </div> </div> </div> <div class="form-group"> <label for="form-login" class="mr-2"><?php echo langHdl('privileges'); ?></label> @@ -340,11 +340,11 @@ foreach ($treeDesc as $t) { <label class="form-check-label mr-2" for="form-create-personal-folder"><?php echo langHdl('enable_personal_folder_for_this_user'); ?></label> </div> <div class="form-group not-for-admin" id="group-create-special-folder"> <input type="checkbox" class="form-check-input form-control flat-blue track-change" id="form-create-special-folder"> <label class="form-check-label mr-2" for="form-create-special-folder"><?php echo langHdl('auto_create_folder_role'); ?></label> - <input type="text" class="form-control clear-me mt-1" id="form-special-folder" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> + <input type="text" class="form-control clear-me mt-1 purify" id="form-special-folder" data-field="" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> </div> <div class="form-group not-for-admin" id="form-create-mfa-enabled-div"> <input type="checkbox" class="form-check-input form-control flat-blue track-change" id="form-create-mfa-enabled"> <label class="form-check-label mr-2" for="form-create-mfa-enabled"><?php echo langHdl('mfa_enabled'); ?></label> </div> diff --git a/sources/admin.queries.php b/sources/admin.queries.php index e59771d15e..1e8ca57f67 100755 --- a/sources/admin.queries.php +++ b/sources/admin.queries.php @@ -1872,24 +1872,24 @@ switch ($post_type) { ); $post_id = DB::insertId(); // Update existing key } elseif (null !== $post_action && $post_action === 'update') { - $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); + $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT); DB::update( prefixTable('api'), array( 'label' => $post_label, 'timestamp' => $timestamp, ), - 'id=%i', + 'increment_id=%i', $post_id ); // Delete existing key } elseif (null !== $post_action && $post_action === 'delete') { - $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); + $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT); DB::query( 'DELETE FROM ' . prefixTable('api') . ' WHERE increment_id = %i', $post_id );
function fieldSanitizeStep1( field, bHtml=true, bSvg=true, bSvgFilters=true, text='' if (field === undefined ||field === '') { return false; } let string = ''; text = (text === '') ? $(field).val() : text; /* // Sanitize string var tagsToReplace = { '&': '&amp;', '<': '&lt;', '>': '&gt;', "'" : '&#39;', '"' : '&quot;' }; text = text.replace(/[&<>'"]/g, function(tag) { return tagsToReplace[tag] || tag; }); */ // Purify string string = DOMPurify.sanitize( 'label': $('#new_api_key_label').val(), label = $(this).prev('input').val(), 'label': $('#new_api_ip_label').val(), 'value': label, <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm" id="new_api_key_label"> <div class="form-group mt-4"> <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'" data-mask> <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2" id="new_api_ip_label"> 'encryptionKey': $('#onthefly-backup-key').val(), "value": $('#onthefly-backup-key').val(), 'encryptionKey': $('#onthefly-restore-key').val(), $(document).on('click', '#button-duo-save', function() { // Prepare data var data = { 'akey': $('#duo_akey').val(), 'ikey': $('#duo_ikey').val(), 'skey': $('#duo_skey').val(), 'host': $('#duo_host').val(), } console.log(data); // Launch action $.post( 'sources/admin.queries.php', { type: 'save_duo_in_sk_file', data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), key: '<?php echo $_SESSION['key']; ?>' }, function(data) { //decrypt data data = decodeQueryReturn(data, '<?php echo $_SESSION['key']; ?>'); if (data.error === true) { // ERROR toastr.remove(); toastr.warning( '<?php echo langHdl('none_selected_text'); ?>', '', { timeOut: 5000, progressBar: true } ); } else { // Inform user toastr.remove(); toastr.success( '<?php echo langHdl('done'); ?>', '', { timeOut: 1000 } ); } } ); }); 'title': DOMPurify.sanitize($('#new-title').val()), 'renewalPeriod': DOMPurify.sanitize($('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val())), 'icon': DOMPurify.sanitize($('#new-folder-add-icon').val(), {USE_PROFILES: {html: true}}), 'iconSelected': DOMPurify.sanitize($('#new-folder-add-icon-selected').val(), {USE_PROFILES: {html: true}}), '<input type="text" class="form-control clear-me" id="folder-edit-title" value="' + folderTitle + '">' + '<input type="text" class="form-control form-folder-control" id="folder-edit-icon" value="'+folderIcon+'">' + '<input type="text" class="form-control form-folder-control" id="folder-edit-icon-selected" value="'+folderIconSelection+'">' + 'title': DOMPurify.sanitize($('#folder-edit-title').val()), 'renewalPeriod': DOMPurify.sanitize($('#folder-edit-renewal').val()), 'icon': DOMPurify.sanitize($('#folder-edit-icon').val(), {USE_PROFILES: {html: true}}), 'iconSelected': DOMPurify.sanitize($('#folder-edit-icon-selected').val(), {USE_PROFILES: {html: true}}) <input type="text" class="form-control clear-me" id="new-title"> <input type="text" class="form-control form-folder-control" id="new-folder-add-icon"> <input type="text" class="form-control form-folder-control" id="new-folder-add-icon-selected"> </div> let formLabel = fieldSanitizeStep1('#form-folder-add-label', false, false, false), formIcon = fieldSanitizeStep1('#form-folder-add-icon', false, false, false), formIconSelected = fieldSanitizeStep1('#form-folder-add-icon-selected', false, false, false); let formLabel = fieldSanitizeStep1('#form-item-label', false, false, false), formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldSanitizeStep1('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', formEmail = fieldSanitizeStep1('#form-item-email'), formTags = fieldSanitizeStep1('#form-item-tags'), formUrl = fieldSanitizeStep1('#form-item-url'), formIcon = fieldSanitizeStep1('#form-item-icon'); $('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); $('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '">' + 'item_id' : value.item_id, if (debugJavascript === true) console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- ') console.log("PREV: " + $('#list-item-row_'+data.id).prev('.list-item-row').attr('data-item-id') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); let formName = fieldSanitizeStep1('#profile-user-name', false, false, false), formLastname = fieldSanitizeStep1('#profile-user-lastname', false, false, false), formEmail = fieldSanitizeStep1('#profile-user-email', false, false, false); 'label': DOMPurify.sanitize($('#form-role-label').val()), // Sanitize text fields let formLogin = fieldSanitizeStep1('#form-login', false, false, false), formName = fieldSanitizeStep1('#form-name', false, false, false), formLastname = fieldSanitizeStep1('#form-lastname', false, false, false), formEmail = fieldSanitizeStep1('#form-email', false, false, false); if (formLogin === false || formName === false || formLastname === false || formEmail === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); return false; } 'login': formLogin, 'name': formName, 'lastname': formLastname, 'email': formEmail, 'label': DOMPurify.sanitize($('#ldap-new-role-selection').val()), 'login': DOMPurify.sanitize($('.selected-user').data('user-login')), 'name': DOMPurify.sanitize($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), 'lastname': DOMPurify.sanitize($('.selected-user').data('user-lastname')), 'email': DOMPurify.sanitize($('.selected-user').data('user-email')), <input type="text" class="form-control clear-me required track-change" id="form-name"> <input type="text" class="form-control clear-me required build-login track-change" id="form-login"> <input type="text" class="form-control clear-me required track-change" id="form-lastname"> <input type="email" class="form-control clear-me required track-change validate-email" id="form-email"> <input type="text" class="form-control clear-me mt-1" id="form-special-folder" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); 'id=%i', $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
function simplePurifier( text, bHtml = false, bSvg = false, bSvgFilters = false return DOMPurify.sanitize( } /** * Permits to purify the content of a string using domPurify * @param {*} field * @param {*} bHtml * @param {*} bSvg * @param {*} bSvgFilters * @param {*} text * @returns bool||string */ function fieldDomPurifier( field, bHtml = false, bSvg = false, bSvgFilters = false, text = '' ) { if (field === undefined ||field === '') { return false; } let string = ''; text = (text === '') ? $(field).val() : text; // Purify string string = simplePurifier(text, bHtml, bSvg, bSvgFilters); return string; } /** * Permits to get all fields of a class and purify them * @param {*} elementClass * @returns array */ function fieldDomPurifierLoop(elementClass) { let purifyStop = false, arrFields = []; $.each($(elementClass), function(index, element) { purifiedField = fieldDomPurifier( '#' + $(element).attr('id'), $(element).hasClass('purifyHtml') === true ? true : false, $(element).hasClass('purifySvg') === true ? true : false, $(element).hasClass('purifySvgFilter') === true ? true : false, typeof $(element).data('purify-text') !== undefined ? $(element).data('purify-text') : '' ); if (purifiedField === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Please remove all special characters from your input.', 'Error', { timeOut: 5000, progressBar: true } ); $('#' + $(element).attr('id')).focus(); purifyStop = true; return { 'purifyStop' : purifyStop, 'arrFields' : arrFields }; } else { $(element).val(purifiedField); arrFields[$(element).data('field')] = purifiedField; } }); // return return { 'purifyStop' : purifyStop, 'arrFields' : arrFields }; } /** * Permits to purify the content of a string using domPurify * @param {*} field * @param {*} bHtml * @param {*} bSvg * @param {*} bSvgFilters * @returns bool||string */ function fieldDomPurifierWithWarning( field, bHtml = false, bSvg = false, bSvgFilters = false, ) { if (field === undefined || field === '') { return false; } if ($(field).val() === '') { return ''; } let string = ''; // Purify string string = simplePurifier($(field).val(), bHtml, bSvg, bSvgFilters); // Clear field if string is empty and warn user if (string === '') { toastr.remove(); toastr.warning( 'XSS attempt detected. Please remove all special characters from your input.', 'Error', { timeOut: 5000, progressBar: true } ); $(field).focus(); return false; } // Sanitize value value = fieldDomPurifierWithWarning('#' + field); if (value === false) { return false; } $('#' + field).val(value); // Sanitize text fields purifyRes = fieldDomPurifierLoop('#new_api_key_label'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'label': purifyRes.arrFields['label'], //$('#new_api_key_label').val(), label = simplePurifier($(this).prev('input').val()), // Sanitize text fields purifyRes = fieldDomPurifierLoop('#new-api-ip .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'label': purifyRes.arrFields['label'], 'value': simplePurifier(label), <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control form-control-sm purify" id="new_api_key_label" data-field="label"> <div class="form-group mt-4" id="new-api-ip"> <input type="text" placeholder="<?php echo langHdl('ip'); ?>" class="col-4 form-control" id="new_api_ip_value" data-inputmask="'alias': 'ip'"> <input type="text" placeholder="<?php echo langHdl('label'); ?>" class="col-4 form-control ml-2 purify" id="new_api_ip_label" data-field="label"> 'encryptionKey': simplePurifier($('#onthefly-backup-key').val()), "value": simplePurifier($('#onthefly-backup-key').val()), 'encryptionKey': simplePurifier($('#onthefly-restore-key').val()), // Sanitize text fields purifyRes = fieldDomPurifierLoop('#folder-new .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'title': purifyRes.arrFields['title'], 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'icon': purifyRes.arrFields['icon'], 'iconSelected': purifyRes.arrFields['iconSelected'], '<input type="text" class="form-control clear-me purify" id="folder-edit-title" data-field="title" value="' + folderTitle + '">' + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon" data-field="icon" value="'+folderIcon+'">' + '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon-selected" data-field="iconSelected" value="'+folderIconSelection+'">' + // Sanitize text fields purifyRes = fieldDomPurifierLoop('#table-folders .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'title': purifyRes.arrFields['title'], //$('#folder-edit-title').val(), 'renewalPeriod': $('#new-renewal').val() === '' ? 0 : parseInt($('#new-renewal').val()), 'icon': purifyRes.arrFields['icon'], //$('#folder-edit-icon').val(), 'iconSelected': purifyRes.arrFields['iconSelected'], //$('#folder-edit-icon-selected').val(), <input type="text" class="form-control clear-me purify" id="new-title" data-field="title"> <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon" data-field="icon"> <input type="text" class="form-control form-folder-control purify" id="new-folder-add-icon-selected" data-field="iconSelected"> </div> let formLabel = fieldDomPurifier('#form-folder-add-label', false, false, false), formIcon = fieldDomPurifier('#form-folder-add-icon', false, false, false), formIconSelected = fieldDomPurifier('#form-folder-add-icon-selected', false, false, false); //$(this).hasClass('but-prev-item') === true ? $('#list-item-row_' + $(this).attr('data-prev-item-key')) : $('#list-item-row_' + $(this).attr('data-next-item-key')), let formLabel = fieldDomPurifier('#form-item-label', false, false, false), formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldDomPurifier('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', formEmail = fieldDomPurifier('#form-item-email'), formTags = fieldDomPurifier('#form-item-tags'), formUrl = fieldDomPurifier('#form-item-url'), formIcon = fieldDomPurifier('#form-item-icon'); //$('#list-item-row_' + value.item_id).attr('data-next-item-id', prevIdForNextItem.item_id); //$('#list-item-row_' + value.item_id).attr('data-next-item-label', value.label); $('[data-item-key="'+value.item_key+'"]') //.attr('data-next-item-id', prevIdForNextItem.item_id) .attr('data-next-item-key', prevIdForNextItem.item_key) .attr('data-next-item-label', value.label); icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('unfavorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="1"><i class="fas fa-circle fa-stack-2x"></i><i class="fas fa-star fa-stack-1x fa-inverse text-warning"></i></span>'; icon_favorite = '<span class="fa-stack fa-clickable item-favourite pointer infotip mr-2" title="<?php echo langHdl('favorite'); ?>" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-favourited="0"><i class="fas fa-circle fa-stack-2x"></i><i class="far fa-star fa-stack-1x fa-inverse"></i></span>'; '<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + '" id="list-item-row_' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' + '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '">' + //'item_id' : value.item_id, 'item_key' : value.item_key, if (debugJavascript === true) { console.info('EXPECTED ACTION on ' + itemDefinition + ' is ' + actionType + ' -- '); console.log(itemDefinition); } var itemKey = parseInt($(itemDefinition).data('item-key')) || ''; var itemKey = itemDefinition || ''; /* dataItemKey = $('[data-item-key="'+data.item_key+'"]'); if (dataItemKey.prev('.list-item-row').attr('data-item-key') !== undefined) { $('.but-prev-item') .html('<i class="fas fa-arrow-left mr-2"></i>' + unescape(dataItemKey.prev('.list-item-row').attr('data-label'))) .attr('data-prev-item-key', dataItemKey.attr('data-item-key')) .removeClass('hidden'); } if (dataItemKey.next('.list-item-row').attr('data-item-key') !== undefined) { $('.but-next-item') .html('<i class="fas fa-arrow-right mr-2"></i>' + unescape(dataItemKey.next('.list-item-row').attr('data-label'))) .attr('data-next-item-id', dataItemKey.next('.list-item-row').attr('data-item-id')) .removeClass('hidden'); } */ //console.log("PREV: " + dataItemKey.attr('data-item-key') + " - NEXT: " + $('#list-item-row_'+data.id).next('.list-item-row').attr('data-item-id')); let formName = fieldDomPurifier('#profile-user-name', false, false, false), formLastname = fieldDomPurifier('#profile-user-lastname', false, false, false), formEmail = fieldDomPurifier('#profile-user-email', false, false, false); // Sanitize value value = fieldDomPurifierWithWarning('#form-role-label'); if (value === false) { return false; } $('#form-role-label').val(value); 'label': value, // Sanitize text fields purifyRes = fieldDomPurifierLoop('#form-user .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'login': purifyRes.arrFields['login'], 'name': purifyRes.arrFields['name'], 'lastname': purifyRes.arrFields['lastname'], 'email': purifyRes.arrFields['email'], 'label': simplePurifier($('#ldap-new-role-selection').val()), // Sanitize text fields purifyRes = fieldDomPurifierLoop('#form-user .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop return false; } 'login': simplePurifier($('.selected-user').data('user-login')), 'name': simplePurifier($('.selected-user').data('user-name') === '' ? $('#ldap-user-name').val() : $('.selected-user').data('user-name')), 'lastname': simplePurifier($('.selected-user').data('user-lastname')), 'email': simplePurifier($('.selected-user').data('user-email')), <input type="text" class="form-control clear-me required track-change purify" id="form-name" data-field="name"> <input type="text" class="form-control clear-me required build-login track-change purify" id="form-login" data-field="login"> <input type="text" class="form-control clear-me required track-change purify" id="form-lastname" data-field="lastname"> <input type="email" class="form-control clear-me required track-change validate-email purify" id="form-email" data-field="email"> <input type="text" class="form-control clear-me mt-1 purify" id="form-special-folder" data-field="" disabled="true" placeholder="<?php echo langHdl('label'); ?>"> $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT); 'increment_id=%i', $post_id = filter_var($dataReceived['id'], FILTER_SANITIZE_NUMBER_INT);
[ "input_handling" ]
CVE-2023-3531
cb8ea5ccca61653895bb6881547e463baa50293d
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Stored in GitHub repository nilsteampassnet/teampass prior to 3.0.10.'}]
null
5.4
2023-07-06T20:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.10 Including new time related fields Improving XSS protection
2023-07-06 21:16:02 +0200
cb8ea5ccca
8,325
3
[ "includes/js/functions.js", "install/install.queries.php", "install/upgrade_operations.php", "install/upgrade_run_3.0.php", "install/upgrade_scripts_manager.php", "pages/items.js.php", "pages/items.php", "sources/items.queries.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 14, "lines_deleted": 2}, "install/install.queries.php": {"lines_added": 3, "lines_deleted": 0}, "install/upgrade_operations.php": {"lines_added": 123, "lines_deleted": 37}, "install/upgrade_run_3.0.php": {"lines_added": 56, "lines_deleted": 4}, "install/upgrade_scripts_manager.php": {"lines_added": 3, "lines_deleted": 0}, "pages/items.js.php": {"lines_added": 25, "lines_deleted": 33}, "pages/items.php": {"lines_added": 16, "lines_deleted": 9}, "sources/items.queries.php": {"lines_added": 17, "lines_deleted": 18}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index 9a307a8993..0340b87ba8 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -398,13 +398,21 @@ function simplePurifier( ) { return DOMPurify.sanitize( text .replaceAll('&lt;', '<') + .replaceAll('&#x3C;', '<') + .replaceAll('&#60;', '<') .replaceAll('&gt;', '>') + .replaceAll('&#x3E;', '>') + .replaceAll('&#62;', '>') .replaceAll('&amp;', '&') + .replaceAll('&#38;', '&') + .replaceAll('&#x26;', '&') .replaceAll('&quot;', '"') + .replaceAll('&#34;;', '"') + .replaceAll('&#x22;', '"') .replaceAll('&#39;', "'"), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} ); } @@ -456,11 +464,11 @@ function fieldDomPurifierLoop(elementClass) purifiedField = fieldDomPurifier( '#' + $(element).attr('id'), $(element).hasClass('purifyHtml') === true ? true : false, $(element).hasClass('purifySvg') === true ? true : false, $(element).hasClass('purifySvgFilter') === true ? true : false, - typeof $(element).data('purify-text') !== undefined ? $(element).data('purify-text') : '' + typeof $(element).data('purify-text') !== 'undefined' ? $(element).data('purify-text') : '' ); if (purifiedField === false) { // Label is empty toastr.remove(); @@ -477,11 +485,15 @@ function fieldDomPurifierLoop(elementClass) 'purifyStop' : purifyStop, 'arrFields' : arrFields }; } else { $(element).val(purifiedField); - arrFields[$(element).data('field')] = purifiedField; + if (typeof $(element).data('field') !== 'undefined') { + arrFields[$(element).data('field')] = purifiedField; + } else if (typeof $(element).data('field-name') !== 'undefined') { + arrFields[$(element).data('field-name')] = purifiedField; + } } }); // return return { diff --git a/install/install.queries.php b/install/install.queries.php index 6e72e793e4..66d207fd8d 100755 --- a/install/install.queries.php +++ b/install/install.queries.php @@ -429,10 +429,13 @@ if (null !== $post_type) { `auto_update_pwd_frequency` tinyint(2) NOT null DEFAULT '0', `auto_update_pwd_next_date` varchar(100) NOT null DEFAULT '0', `encryption_type` VARCHAR(20) NOT NULL DEFAULT 'not_set', `fa_icon` varchar(100) DEFAULT NULL, `item_key` varchar(500) NOT NULL DEFAULT '-1', + `created_at` varchar(30) NULL, + `updated_at` varchar(30) NULL, + `deleted_at` varchar(30) NULL, PRIMARY KEY (`id`), KEY `restricted_inactif_idx` (`restricted_to`,`inactif`) ) CHARSET=utf8;" ); } elseif ($task === 'log_items') { diff --git a/install/upgrade_operations.php b/install/upgrade_operations.php old mode 100755 new mode 100644 index 7c750a1324..79a2f455d5 --- a/install/upgrade_operations.php +++ b/install/upgrade_operations.php @@ -85,57 +85,143 @@ require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; $superGlobal = new protect\SuperGlobal\SuperGlobal(); // Get POST with operation to perform $post_operation = filter_input(INPUT_POST, 'type', FILTER_SANITIZE_FULL_SPECIAL_CHARS); if (isset($post_operation) === true && empty($post_operation) === false) { - // ----> - // OPERATION - 20230604_1 - generate key for item_key + if ($post_operation === '20230604_1') { + // ----> + // OPERATION - 20230604_1 - generate key for item_key + + // Get items to treat + $rows = mysqli_query( + $db_link, + "SELECT id FROM ".$pre."items + WHERE item_key = '-1' + ORDER BY id + LIMIT ".$post_nb.";" + ); + // Handle error on query + if (!$rows) { + echo '[{"finish":"1" , "error":"'.mysqli_error($db_link).'"}]'; + exit(); + } + + // Get total of items to treat + $total = mysqli_num_rows($rows); + + // Loop on items and update for requested ones + if ((int) $total > 0) { + while ($row = mysqli_fetch_array($rows, MYSQLI_ASSOC)) { + // Gererate a key and update + mysqli_query( + $db_link, + "UPDATE `".$pre."items` + SET `item_key` = '".uniqidReal(50)."' + WHERE `id` = ".$row['id'].";" + ); + if (mysqli_error($db_link)) { + echo '[{"finish":"1", "next":"", "error":"MySQL Error! '.addslashes(mysqli_error($db_link)).'"}]'; + exit(); + } + } + } + + // Manage end of operation + if ($total === 0) { + $finish = 1; + } else { + $finish = 0; + } + // ----< + } elseif ($post_operation === 'populateItemsTable_CreatedAt') { + $finish = populateItemsTable_CreatedAt($pre, $post_nb); + } elseif ($post_operation === 'populateItemsTable_UpdatedAt') { + $finish = populateItemsTable_UpdatedAt($pre); + } elseif ($post_operation === 'populateItemsTable_DeletedAt') { + $finish = populateItemsTable_DeletedAt($pre); + } +} - // Get items to treat - $rows = mysqli_query( +// Close connection +mysqli_close($db_link); + + +// Return back +echo '[{"finish":"'.$finish.'" , "next":"", "error":"", "total":"'.$total.'"}]'; + + + +function populateItemsTable_CreatedAt($pre, $post_nb) +{ + global $db_link; + // loop on items - created_at + $items = mysqli_query( $db_link, - "SELECT id FROM ".$pre."items - WHERE item_key = '-1' - ORDER BY id - LIMIT ".$post_nb.";" + "select i.id as id, ls.date as datetime + from `" . $pre . "items` as i + inner join `" . $pre . "log_items` as ls on ls.id_item = i.id + WHERE ls.action = 'at_creation' AND i.created_at IS NULL + LIMIT " . $post_nb.";" ); - // Handle error on query - if (!$rows) { - echo '[{"finish":"1" , "error":"'.mysqli_error($db_link).'"}]'; - exit(); + while ($item = mysqli_fetch_assoc($items)) { + if (empty((string) $item['datetime']) === false && is_null($item['datetime']) === false) { + // update created_at field + mysqli_query( + $db_link, + "UPDATE `" . $pre . "items` SET created_at = '".$item['datetime']."' WHERE id = ".$item['id'] + ); + } } - // Get total of items to treat - $total = mysqli_num_rows($rows); + // Is it finished? + $remainingItems = mysqli_num_rows( + mysqli_query( + $db_link, + "SELECT * FROM `" . $pre . "items` WHERE created_at IS NULL" + ) + ); + return $remainingItems > 0 ? 0 : 1; +} - // Loop on items and update for requested ones - if ((int) $total > 0) { - while ($row = mysqli_fetch_array($rows, MYSQLI_ASSOC)) { - // Gererate a key and update +function populateItemsTable_UpdatedAt($pre) +{ + global $db_link; + // loop on items - updated_at + $items = mysqli_query( + $db_link, + "select i.id as id, (select date from " . $pre . "log_items where action = 'at_modification' and id_item=id order by date DESC limit 1) as datetime + from `" . $pre . "items` as i;" + ); + while ($item = mysqli_fetch_assoc($items)) { + if (is_null($item['datetime']) === false) { + // update updated_at field mysqli_query( $db_link, - "UPDATE `".$pre."items` - SET `item_key` = '".uniqidReal(50)."' - WHERE `id` = ".$row['id'].";" + "UPDATE `" . $pre . "items` SET updated_at = '".$item['datetime']."' WHERE id = ".$item['id'] ); - if (mysqli_error($db_link)) { - echo '[{"finish":"1", "next":"", "error":"MySQL Error! '.addslashes(mysqli_error($db_link)).'"}]'; - exit(); - } } } - // Manage end of operation - if ($total === 0) { - $finish = 1; - } else { - $finish = 0; - } - // ----< + return 1; } -// Close connection -mysqli_close($db_link); - +function populateItemsTable_DeletedAt($pre) +{ + global $db_link; + // loop on items - deleted_at + $items = mysqli_query( + $db_link, + "select i.id as id, (select date from " . $pre . "log_items where action = 'at_deleted' and id_item=id order by date DESC limit 1) as datetime + from `" . $pre . "items` as i;" + ); + while ($item = mysqli_fetch_assoc($items)) { + if (is_null($item['datetime']) === false) { + // update updated_at field + mysqli_query( + $db_link, + "UPDATE `" . $pre . "items` SET deleted_at = '".$item['datetime']."' WHERE id = ".$item['id'] + ); + } + } -// Return back -echo '[{"finish":"'.$finish.'" , "next":"", "error":"", "total":"'.$total.'"}]'; \ No newline at end of file + return 1; +} \ No newline at end of file diff --git a/install/upgrade_run_3.0.php b/install/upgrade_run_3.0.php index 30e7177a4f..89b47f481a 100755 --- a/install/upgrade_run_3.0.php +++ b/install/upgrade_run_3.0.php @@ -81,10 +81,12 @@ if (mysqli_connect( // Load libraries require_once '../includes/libraries/protect/SuperGlobal/SuperGlobal.php'; $superGlobal = new protect\SuperGlobal\SuperGlobal(); +//--------------------------------------------------------------------- + //--->BEGIN 3.0.1 // Ensure admin user is ready mysqli_query( $db_link, @@ -93,10 +95,11 @@ mysqli_query( WHERE id = 1" ); //---<END 3.0.1 +//--------------------------------------------------------------------- //--->BEGIN 3.0.5 // Add the INDEX process_id_idx to the processes_tasks table $res = checkIndexExist( @@ -110,10 +113,11 @@ if (!$res) { exit(); } //---<END 3.0.5 +//--------------------------------------------------------------------- //--->BEGIN 3.0.6 // Add new setting 'sending_emails_job_frequency' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'sending_emails_job_frequency'")); if (intval($tmp) === 0) { @@ -150,10 +154,11 @@ if ($res === false) { mysqli_close($db_link); exit(); } //---<END 3.0.6 +//--------------------------------------------------------------------- //--->BEGIN 3.0.7 // Alter try { mysqli_query( @@ -170,10 +175,11 @@ mysqli_query( "UPDATE `" . $pre . "users` SET `treeloadstrategy` = 'full' WHERE treeloadstrategy NOT IN ('full','sequential');" ); //---<END 3.0.7 +//--------------------------------------------------------------------- //--->BEGIN 3.0.8 // Add field mfa_disabled to USERS table $res = addColumnIfNotExist( $pre . 'users', @@ -186,10 +192,11 @@ if ($res === false) { exit(); } //---<END 3.0.8 +//--------------------------------------------------------------------- //--->BEGIN 3.0.9 // Add new setting 'reload_cache_table_task' $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'reload_cache_table_task'")); if (intval($tmp) === 0) { @@ -348,20 +355,65 @@ if ($res === false) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field deleted_at to table USERS! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); } -// +// populate created_at, updated_at and deleted_at fields in USERS table $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "users` WHERE created_at IS NOT NULL")); if (intval($tmp) === 0) { populateUsersTable($pre); } +//---<END 3.0.9 +//--------------------------------------------------------------------- -// populate created_at, updated_at and deleted_at fields in USERS table +//--->BEGIN 3.0.10 -//---<END 3.0.9 +// Add field created_at to ITEMS table +$res = addColumnIfNotExist( + $pre . 'items', + 'created_at', + "varchar(30) NULL;" +); +if ($res === false) { + echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field created_at to table ITEMS! ' . mysqli_error($db_link) . '!"}]'; + mysqli_close($db_link); + exit(); +} + +// Add field updated_at to ITEMS table +$res = addColumnIfNotExist( + $pre . 'items', + 'updated_at', + "varchar(30) NULL;" +); +if ($res === false) { + echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field updated_at to table ITEMS! ' . mysqli_error($db_link) . '!"}]'; + mysqli_close($db_link); + exit(); +} + +// Add field deleted_at to ITEMS table +$res = addColumnIfNotExist( + $pre . 'items', + 'deleted_at', + "varchar(30) NULL;" +); +if ($res === false) { + echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field deleted_at to table ITEMS! ' . mysqli_error($db_link) . '!"}]'; + mysqli_close($db_link); + exit(); +} +/* +// populate created_at, updated_at and deleted_at fields in ITEMS table +$tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "items` WHERE created_at IS NOT NULL")); +if (intval($tmp) === 0) { + populateItemsTable($pre); +}*/ +//---<END 3.0.10 + +//--------------------------------------------------------------------- // Save timestamp $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "misc` WHERE type = 'admin' AND intitule = 'upgrade_timestamp'")); if (intval($tmp) === 0) { mysqli_query( @@ -419,6 +471,6 @@ function populateUsersTable($pre) $db_link, "UPDATE `" . $pre . "users` SET updated_at = '".$user['datetime']."' WHERE id = ".$user['uid'] ); } } -} \ No newline at end of file +} diff --git a/install/upgrade_scripts_manager.php b/install/upgrade_scripts_manager.php index 2f156d7f71..76296487ed 100755 --- a/install/upgrade_scripts_manager.php +++ b/install/upgrade_scripts_manager.php @@ -37,10 +37,13 @@ $scripts_list = array( array('upgrade_run_3.0.0_fields.php', 'user_id'), array('upgrade_run_3.0.0_suggestions.php', 'user_id'), array('upgrade_run_3.0.0_files.php', 'user_id'), array('upgrade_run_3.0.php', 'user_id'), array('upgrade_operations.php', '20230604_1'), + array('upgrade_operations.php', 'populateItemsTable_CreatedAt'), + array('upgrade_operations.php', 'populateItemsTable_UpdatedAt'), + array('upgrade_operations.php', 'populateItemsTable_DeletedAt'), ); $param = ''; // test if finished if (intval($post_file_number) >= count($scripts_list)) { diff --git a/pages/items.js.php b/pages/items.js.php index 7c5dfc9cb4..cb92cb50d4 100755 --- a/pages/items.js.php +++ b/pages/items.js.php @@ -700,10 +700,20 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- $('#form-item-category-' + category).removeClass('hidden'); }) } else { $('#form-item-field, .form-item-category').addClass('hidden'); } + + + + // Prepare datePicker + $('#form-item-deleteAfterDate, .datepicker').datepicker({ + format: '<?php echo str_replace(['Y', 'M'], ['yyyy', 'mm'], $SETTINGS['date_format']); ?>', + todayHighlight: true, + todayBtn: true, + language: '<?php echo isset($_SESSION['user_language_code']) === true ? $_SESSION['user_language_code'] : 'en'; ?>' + }); // Add track-change class //$('#form-item-label, #form-item-description, #form-item-login, #form-item-password, #form-item-email, #form-item-url, #form-item-folder, #form-item-restrictedto, #form-item-tags, #form-item-anyoneCanModify, #form-item-deleteAfterShown, #form-item-deleteAfterDate, #form-item-anounce, .form-item-field-custom').addClass('track-change'); // Update variable @@ -1267,14 +1277,13 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- userUploadedFile = false; var data = { 'item_id': store.get('teampassItem').id, 'folder_id': selectedFolderId, - 'label': DOMPurify.sanitize($('#form-item-copy-new-label').val()), 'access_level': store.get('teampassItem').hasAccessLevel, } - + // Launch action $.post( 'sources/items.queries.php', { type: 'delete_item', data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"), @@ -2676,43 +2685,29 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- // Do checks if (arrayQuery.length > 0 || userDidAChange === true) { var reg = new RegExp("[.|,|;|:|!|=|+|-|*|/|#|\"|'|&]"); // Sanitize text fields - let formLabel = fieldDomPurifier('#form-item-label', false, false, false), - formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldDomPurifier('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', - formEmail = fieldDomPurifier('#form-item-email'), - formTags = fieldDomPurifier('#form-item-tags'), - formUrl = fieldDomPurifier('#form-item-url'), - formIcon = fieldDomPurifier('#form-item-icon'); - if (formLabel === false || formDescription === false || formEmail === false || formTags === false || formUrl === false || formIcon === false) { - // Label is empty - toastr.remove(); - toastr.warning( - 'XSS attempt detected. Field has been emptied.', - 'Error', { - timeOut: 5000, - progressBar: true - } - ); + purifyRes = fieldDomPurifierLoop('#form-item .purify'); + if (purifyRes.purifyStop === true) { + // if purify failed, stop return false; } // Do some easy checks - if (formLabel === '') { + if (purifyRes.arrFields['label'] === '') { // Label is empty toastr.remove(); toastr.error( '<?php echo langHdl('error_label'); ?>', '', { timeOut: 5000, progressBar: true } ); return false; - } else if (formTags !== '' && - reg.test(formTags) + } else if (purifyRes.arrFields['tags'] !== '' && reg.test(purifyRes.arrFields['tags']) ) { // Tags not wel formated toastr.remove(); toastr.error( '<?php echo langHdl('error_tags'); ?>', @@ -2833,34 +2828,31 @@ $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa- //prepare data var data = { 'anyone_can_modify': $('#form-item-anyoneCanModify').is(':checked') ? 1 : 0, 'complexity_level': parseInt($('#form-item-password-complex').val()), - 'description': formDescription, + 'description': $('#form-item-description').summernote('code'), 'diffusion_list': diffusion, 'diffusion_list_names': diffusionNames, 'folder': parseInt($('#form-item-folder').val()), - 'email': formEmail, + 'email': purifyRes.arrFields['email'], 'fields': fields, 'folder_is_personal': store.get('teampassItem').IsPersonalFolder === 1 ? 1 : 0, 'id': store.get('teampassItem').id, - 'label': formLabel, - 'login': DOMPurify.sanitize($('#form-item-login').val()), + 'label': purifyRes.arrFields['label'], + 'login': purifyRes.arrFields['login'], 'pw': $('#form-item-password').val(), 'restricted_to': restriction, 'restricted_to_roles': restrictionRole, - 'tags': formTags, + 'tags': purifyRes.arrFields['tags'], 'template_id': parseInt($('input.form-check-input-template:checkbox:checked').data('category-id')), - 'to_be_deleted_after_date': ($('#form-item-deleteAfterDate').length !== 0 && - $('#form-item-deleteAfterDate').val() !== '') ? $('#form-item-deleteAfterDate').val() : '', - 'to_be_deleted_after_x_views': ($('#form-item-deleteAfterShown').length !== 0 && - $('#form-item-deleteAfterShown').val() !== '' && $('#form-item-deleteAfterShown').val() >= 1) ? - parseInt($('#form-item-deleteAfterShown').val()) : '', - 'url': formUrl, + 'to_be_deleted_after_date': purifyRes.arrFields['deleteAfterDate'] !== '' ? purifyRes.arrFields['deleteAfterDate'] : '', + 'to_be_deleted_after_x_views': parseInt(purifyRes.arrFields['deleteAfterShown']) > 0 ? parseInt(purifyRes.arrFields['deleteAfterShown']) : '', + 'url': purifyRes.arrFields['url'], 'user_id': parseInt('<?php echo $_SESSION['user_id']; ?>'), 'uploaded_file_id': store.get('teampassApplication').uploadedFileId === undefined ? '' : store.get('teampassApplication').uploadedFileId, - 'fa_icon': formIcon, + 'fa_icon': purifyRes.arrFields['icon'], }; if (debugJavascript === true) { console.log('SAVING DATA'); console.log(data); } diff --git a/pages/items.php b/pages/items.php index 2dc1e91cad..826494eabb 100755 --- a/pages/items.php +++ b/pages/items.php @@ -173,22 +173,22 @@ foreach ($rows as $reccord) { <!-- LABEL --> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('label'); ?></span> </div> - <input id="form-item-label" type="text" class="form-control form-item-control" data-change-ongoing="" data-field-name="label"> + <input id="form-item-label" type="text" class="form-control form-item-control purify" data-change-ongoing="" data-field-name="label"> </div> <!-- DESCRIPTION --> <div class="mb-3"> - <div id="form-item-description" class="form-item-control w-100 clear-me-html" data-field-name="description" data-change-ongoing=""></div> + <div id="form-item-description" class="form-item-control w-100 clear-me-html purify purifyHtml" data-field-name="description" data-change-ongoing=""></div> </div> <!-- LOGIN --> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('login'); ?></span> </div> - <input id="form-item-login" type="text" class="form-control form-item-control" data-field-name="login" data-change-ongoing=""> + <input id="form-item-login" type="text" class="form-control form-item-control purify" data-field-name="login" data-change-ongoing=""> </div> <!-- PASSWORD --> <div class="input-group mb-2"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('password'); ?></span> @@ -241,25 +241,25 @@ foreach ($rows as $reccord) { <!-- EMAIL --> <div class="input-group mb-3 mt-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('email'); ?></span> </div> - <input id="form-item-email" type="email" class="form-control form-item-control" data-field-name="email" data-change-ongoing=""> + <input id="form-item-email" type="email" class="form-control form-item-control purify" data-field-name="email" data-change-ongoing=""> </div> <!-- URL --> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('url'); ?></span> </div> - <input id="form-item-url" type="url" class="form-control form-item-control" data-field-name="url" data-change-ongoing=""> + <input id="form-item-url" type="url" class="form-control form-item-control purify" data-field-name="url" data-change-ongoing=""> </div> <!-- ICON --> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('icon'); ?></span> </div> - <input id="form-item-icon" type="text" class="form-control form-item-control" data-field-name="icon" data-change-ongoing=""> + <input id="form-item-icon" type="text" class="form-control form-item-control " data-field-name="icon" data-change-ongoing=""> <span class="ml-2 col-md-1 clear-me-html" id="form-item-icon-show"></span> </div> <small class='form-text text-muted'> <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a> </small> @@ -282,11 +282,11 @@ foreach ($rows as $reccord) { <!-- TAGS --> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><?php echo langHdl('tags'); ?></span> </div> - <input id="form-item-tags" type="text" class="form-control form-item-control autocomplete" data-change-ongoing=""> + <input id="form-item-tags" type="text" class="form-control form-item-control autocomplete purify" data-change-ongoing="" data-field-name="tags"> </div> <!-- ANYONE CAN MODIFY --> <?php if ( isset($SETTINGS['anyone_can_modify']) === true @@ -321,11 +321,11 @@ foreach ($rows as $reccord) { <div class="row"> <div class="d-inline p-2"> <?php echo langHdl('item_deleted_after_being_viewed_x_times'); ?> </div> <div class="d-inline p-2"> - <input type="text" class="form-control form-item-control" id="form-item-deleteAfterShown" data-change-ongoing=""> + <input type="text" class="form-control form-item-control purify" data-field-name="deleteAfterShown" id="form-item-deleteAfterShown" data-change-ongoing=""> </div> </div> <div class="row"> <div class="d-inline p-2"> <?php echo langHdl('item_deleted_after_date'); ?> @@ -335,11 +335,11 @@ foreach ($rows as $reccord) { <div class="input-group-prepend"> <span class="input-group-text"> <i class="fas fa-calendar"></i> </span> </div> - <input type="text" class="form-control float-right form-item-control" id="form-item-deleteAfterDate" data-change-ongoing=""> + <input type="text" class="form-control float-right form-item-control purify" data-field-name="deleteAfterDate" id="form-item-deleteAfterDate" data-change-ongoing=""> </div> </div> </div> </div> </div> @@ -406,10 +406,11 @@ foreach ($rows as $reccord) { <!-- CUSTOM FIELDS --> <div class="tab-pane" id="tab_4"> <div id="form-item-field" class="hidden"> <?php + echo "coucou ".count($_SESSION['item_fields']); if (isset($_SESSION['item_fields']) === true) { foreach ($_SESSION['item_fields'] as $category) { echo ' <div class="callout callout-info form-item-category hidden" id="form-item-category-' . $category['id'] . '"> <h5>' . $category['title'] . '</h5> @@ -455,10 +456,16 @@ foreach ($rows as $reccord) { } echo ' </p> </div>'; } + } else { + echo + '<div class="alert alert-info"> + <h5><i class="icon fa fa-info mr-3"></i>' . langHdl('information') . '</h5> + ' . langHdl('no_fields') . ' + </div>'; } ?> </div> <div class="alert alert-info hidden no-item-fields"> <h5><i class="icon fa fa-info mr-3"></i><?php echo langHdl('information'); ?></h5> <?php echo langHdl('no_fields'); ?> diff --git a/sources/items.queries.php b/sources/items.queries.php index 31dfd0bb77..f1737ffb9e 100755 --- a/sources/items.queries.php +++ b/sources/items.queries.php @@ -448,10 +448,11 @@ switch ($inputData['type']) { && $post_anyone_can_modify === 'on') ? 1 : 0, 'complexity_level' => $post_complexity_level, 'encryption_type' => 'teampass_aes', 'fa_icon' => $post_fa_icon, 'item_key' => uniqidReal(50), + 'created_at' => time(), ) ); $newID = DB::insertId(); // Create sharekeys for users @@ -1192,10 +1193,11 @@ switch ($inputData['type']) { 'anyone_can_modify' => (int) $post_anyone_can_modify, 'complexity_level' => (int) $post_complexity_level, 'encryption_type' => TP_ENCRYPTION_NAME, 'perso' => in_array($inputData['folderId'], $_SESSION['personal_folders']) === true ? 1 : 0, 'fa_icon' => $post_fa_icon, + 'updated_at' => time(), ), 'id=%i', $inputData['itemId'] ); @@ -2028,10 +2030,11 @@ switch ($inputData['type']) { // reaffect pw $originalRecord['pw'] = $cryptedStuff['encrypted']; // generate the query to update the new record with the previous values $aSet = array(); + $aSet['created_at'] = time(); foreach ($originalRecord as $key => $value) { if ($key === 'id_tree') { $aSet['id_tree'] = $post_dest_id; } elseif ($key === 'label') { $aSet[$key] = $post_new_label; @@ -2639,10 +2642,11 @@ switch ($inputData['type']) { // statistics DB::update( prefixTable('items'), array( 'viewed_no' => $dataItem['viewed_no'] + 1, + 'updated_at' => time(), ), 'id = %i', $inputData['id'] ); $arrData['viewed_no'] = $dataItem['viewed_no'] + 1; @@ -2791,10 +2795,11 @@ switch ($inputData['type']) { // make inactive object DB::update( prefixTable('items'), array( 'inactif' => 1, + 'deleted_at' => time(), ), 'id = %i', $inputData['id'] ); @@ -3167,31 +3172,14 @@ switch ($inputData['type']) { $inputData['data'], 'decode' ); // Prepare POST variables - $inputData['label'] = filter_var($dataReceived['label'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); $inputData['folderId'] = (int) filter_var($dataReceived['folder_id'], FILTER_SANITIZE_NUMBER_INT); $inputData['itemId'] = (int) filter_var($dataReceived['item_id'], FILTER_SANITIZE_NUMBER_INT); $post_access_level = (int) filter_var($dataReceived['access_level'], FILTER_SANITIZE_NUMBER_INT); - // perform a check in case of Read-Only user creating an item in his PF - if (($_SESSION['user_read_only'] === true - && in_array($inputData['label'], $_SESSION['personal_folders']) === false) - || (int) $post_access_level <= 20 - ) { - echo (string) prepareExchangedData( - $SETTINGS['cpassman_dir'], - array( - 'error' => true, - 'message' => langHdl('error_not_allowed_to'), - ), - 'encode' - ); - break; - } - // Check that user can access this item $granted = accessToItemIsGranted($inputData['itemId'], $SETTINGS); if ($granted !== true) { echo (string) prepareExchangedData( $SETTINGS['cpassman_dir'], @@ -3215,10 +3203,11 @@ switch ($inputData['type']) { // delete item consists in disabling it DB::update( prefixTable('items'), array( 'inactif' => '1', + 'deleted_at' => time(), ), 'id = %i', $inputData['itemId'] ); @@ -3865,10 +3854,11 @@ $SETTINGS['cpassman_dir'],$inputData['data'], 'decode'); if ((int) $record['perso'] !== 1 && (int) $folder_is_personal === 1) { DB::update( prefixTable('items'), array( 'perso' => 1, + 'updated_at' => time(), ), 'id=%i', $record['id'] ); $record['perso'] = 1; @@ -4740,10 +4730,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); // Just update is needed. Item key is the same DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], + 'updated_at' => time(), ), 'id=%i', $inputData['itemId'] ); // --- @@ -4799,10 +4790,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], 'perso' => 1, + 'updated_at' => time(), ), 'id=%i', $inputData['itemId'] ); // --- @@ -4812,10 +4804,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); // just update is needed. Item key is the same DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], + 'updated_at' => time(), ), 'id=%i', $inputData['itemId'] ); // --- @@ -4939,10 +4932,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], 'perso' => 0, + 'updated_at' => time(), ), 'id=%i', $inputData['itemId'] ); } @@ -5058,10 +5052,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); // just update is needed. Item key is the same DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], + 'updated_at' => time(), ), 'id = %i', $item_id ); // --- @@ -5121,10 +5116,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], 'perso' => 1, + 'updated_at' => time(), ), 'id = %i', $item_id ); // --- @@ -5138,10 +5134,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); // just update is needed. Item key is the same DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], + 'updated_at' => time(), ), 'id = %i', $item_id ); // --- @@ -5269,10 +5266,11 @@ $SETTINGS['cpassman_dir'],$returnValues, 'encode'); DB::update( prefixTable('items'), array( 'id_tree' => $inputData['folderId'], 'perso' => 0, + 'updated_at' => time(), ), 'id=%i', $item_id ); } @@ -5367,11 +5365,11 @@ $SETTINGS['cpassman_dir'], // Check that user can access this folder if ( in_array($dataSource['id_tree'], $_SESSION['groupes_visibles']) === false ) { echo (string) prepareExchangedData( -$SETTINGS['cpassman_dir'], + $SETTINGS['cpassman_dir'], array( 'error' => true, 'message' => langHdl('error_not_allowed_to'), ), 'encode' @@ -5382,10 +5380,11 @@ $SETTINGS['cpassman_dir'], // delete item consists in disabling it DB::update( prefixTable('items'), array( 'inactif' => '1', + 'deleted_at' => time(), ), 'id = %i', $item_id );
typeof $(element).data('purify-text') !== undefined ? $(element).data('purify-text') : '' arrFields[$(element).data('field')] = purifiedField; // ----> // OPERATION - 20230604_1 - generate key for item_key // Get items to treat $rows = mysqli_query( "SELECT id FROM ".$pre."items WHERE item_key = '-1' ORDER BY id LIMIT ".$post_nb.";" // Handle error on query if (!$rows) { echo '[{"finish":"1" , "error":"'.mysqli_error($db_link).'"}]'; exit(); // Get total of items to treat $total = mysqli_num_rows($rows); // Loop on items and update for requested ones if ((int) $total > 0) { while ($row = mysqli_fetch_array($rows, MYSQLI_ASSOC)) { // Gererate a key and update "UPDATE `".$pre."items` SET `item_key` = '".uniqidReal(50)."' WHERE `id` = ".$row['id'].";" if (mysqli_error($db_link)) { echo '[{"finish":"1", "next":"", "error":"MySQL Error! '.addslashes(mysqli_error($db_link)).'"}]'; exit(); } // Manage end of operation if ($total === 0) { $finish = 1; } else { $finish = 0; } // ----< // Close connection mysqli_close($db_link); // Return back echo '[{"finish":"'.$finish.'" , "next":"", "error":"", "total":"'.$total.'"}]'; // // populate created_at, updated_at and deleted_at fields in USERS table //---<END 3.0.9 } 'label': DOMPurify.sanitize($('#form-item-copy-new-label').val()), let formLabel = fieldDomPurifier('#form-item-label', false, false, false), formDescription = $('#form-item-description').summernote('code') !== "<p><br></p>" ? fieldDomPurifier('#form-item-description', true, false, false, $('#form-item-description').summernote('code')) : '', formEmail = fieldDomPurifier('#form-item-email'), formTags = fieldDomPurifier('#form-item-tags'), formUrl = fieldDomPurifier('#form-item-url'), formIcon = fieldDomPurifier('#form-item-icon'); if (formLabel === false || formDescription === false || formEmail === false || formTags === false || formUrl === false || formIcon === false) { // Label is empty toastr.remove(); toastr.warning( 'XSS attempt detected. Field has been emptied.', 'Error', { timeOut: 5000, progressBar: true } ); if (formLabel === '') { } else if (formTags !== '' && reg.test(formTags) 'description': formDescription, 'email': formEmail, 'label': formLabel, 'login': DOMPurify.sanitize($('#form-item-login').val()), 'tags': formTags, 'to_be_deleted_after_date': ($('#form-item-deleteAfterDate').length !== 0 && $('#form-item-deleteAfterDate').val() !== '') ? $('#form-item-deleteAfterDate').val() : '', 'to_be_deleted_after_x_views': ($('#form-item-deleteAfterShown').length !== 0 && $('#form-item-deleteAfterShown').val() !== '' && $('#form-item-deleteAfterShown').val() >= 1) ? parseInt($('#form-item-deleteAfterShown').val()) : '', 'url': formUrl, 'fa_icon': formIcon, <input id="form-item-label" type="text" class="form-control form-item-control" data-change-ongoing="" data-field-name="label"> <div id="form-item-description" class="form-item-control w-100 clear-me-html" data-field-name="description" data-change-ongoing=""></div> <input id="form-item-login" type="text" class="form-control form-item-control" data-field-name="login" data-change-ongoing=""> <input id="form-item-email" type="email" class="form-control form-item-control" data-field-name="email" data-change-ongoing=""> <input id="form-item-url" type="url" class="form-control form-item-control" data-field-name="url" data-change-ongoing=""> <input id="form-item-icon" type="text" class="form-control form-item-control" data-field-name="icon" data-change-ongoing=""> <input id="form-item-tags" type="text" class="form-control form-item-control autocomplete" data-change-ongoing=""> <input type="text" class="form-control form-item-control" id="form-item-deleteAfterShown" data-change-ongoing=""> <input type="text" class="form-control float-right form-item-control" id="form-item-deleteAfterDate" data-change-ongoing=""> $inputData['label'] = filter_var($dataReceived['label'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); // perform a check in case of Read-Only user creating an item in his PF if (($_SESSION['user_read_only'] === true && in_array($inputData['label'], $_SESSION['personal_folders']) === false) || (int) $post_access_level <= 20 ) { echo (string) prepareExchangedData( $SETTINGS['cpassman_dir'], array( 'error' => true, 'message' => langHdl('error_not_allowed_to'), ), 'encode' ); break; } $SETTINGS['cpassman_dir'],
.replaceAll('&#x3C;', '<') .replaceAll('&#60;', '<') .replaceAll('&#x3E;', '>') .replaceAll('&#62;', '>') .replaceAll('&#38;', '&') .replaceAll('&#x26;', '&') .replaceAll('&#34;;', '"') .replaceAll('&#x22;', '"') typeof $(element).data('purify-text') !== 'undefined' ? $(element).data('purify-text') : '' if (typeof $(element).data('field') !== 'undefined') { arrFields[$(element).data('field')] = purifiedField; } else if (typeof $(element).data('field-name') !== 'undefined') { arrFields[$(element).data('field-name')] = purifiedField; } `created_at` varchar(30) NULL, `updated_at` varchar(30) NULL, `deleted_at` varchar(30) NULL, if ($post_operation === '20230604_1') { // ----> // OPERATION - 20230604_1 - generate key for item_key // Get items to treat $rows = mysqli_query( $db_link, "SELECT id FROM ".$pre."items WHERE item_key = '-1' ORDER BY id LIMIT ".$post_nb.";" ); // Handle error on query if (!$rows) { echo '[{"finish":"1" , "error":"'.mysqli_error($db_link).'"}]'; exit(); } // Get total of items to treat $total = mysqli_num_rows($rows); // Loop on items and update for requested ones if ((int) $total > 0) { while ($row = mysqli_fetch_array($rows, MYSQLI_ASSOC)) { // Gererate a key and update mysqli_query( $db_link, "UPDATE `".$pre."items` SET `item_key` = '".uniqidReal(50)."' WHERE `id` = ".$row['id'].";" ); if (mysqli_error($db_link)) { echo '[{"finish":"1", "next":"", "error":"MySQL Error! '.addslashes(mysqli_error($db_link)).'"}]'; exit(); } } } // Manage end of operation if ($total === 0) { $finish = 1; } else { $finish = 0; } // ----< } elseif ($post_operation === 'populateItemsTable_CreatedAt') { $finish = populateItemsTable_CreatedAt($pre, $post_nb); } elseif ($post_operation === 'populateItemsTable_UpdatedAt') { $finish = populateItemsTable_UpdatedAt($pre); } elseif ($post_operation === 'populateItemsTable_DeletedAt') { $finish = populateItemsTable_DeletedAt($pre); } } // Close connection mysqli_close($db_link); // Return back echo '[{"finish":"'.$finish.'" , "next":"", "error":"", "total":"'.$total.'"}]'; function populateItemsTable_CreatedAt($pre, $post_nb) { global $db_link; // loop on items - created_at $items = mysqli_query( "select i.id as id, ls.date as datetime from `" . $pre . "items` as i inner join `" . $pre . "log_items` as ls on ls.id_item = i.id WHERE ls.action = 'at_creation' AND i.created_at IS NULL LIMIT " . $post_nb.";" while ($item = mysqli_fetch_assoc($items)) { if (empty((string) $item['datetime']) === false && is_null($item['datetime']) === false) { // update created_at field mysqli_query( $db_link, "UPDATE `" . $pre . "items` SET created_at = '".$item['datetime']."' WHERE id = ".$item['id'] ); } // Is it finished? $remainingItems = mysqli_num_rows( mysqli_query( $db_link, "SELECT * FROM `" . $pre . "items` WHERE created_at IS NULL" ) ); return $remainingItems > 0 ? 0 : 1; } function populateItemsTable_UpdatedAt($pre) { global $db_link; // loop on items - updated_at $items = mysqli_query( $db_link, "select i.id as id, (select date from " . $pre . "log_items where action = 'at_modification' and id_item=id order by date DESC limit 1) as datetime from `" . $pre . "items` as i;" ); while ($item = mysqli_fetch_assoc($items)) { if (is_null($item['datetime']) === false) { // update updated_at field "UPDATE `" . $pre . "items` SET updated_at = '".$item['datetime']."' WHERE id = ".$item['id'] return 1; function populateItemsTable_DeletedAt($pre) { global $db_link; // loop on items - deleted_at $items = mysqli_query( $db_link, "select i.id as id, (select date from " . $pre . "log_items where action = 'at_deleted' and id_item=id order by date DESC limit 1) as datetime from `" . $pre . "items` as i;" ); while ($item = mysqli_fetch_assoc($items)) { if (is_null($item['datetime']) === false) { // update updated_at field mysqli_query( $db_link, "UPDATE `" . $pre . "items` SET deleted_at = '".$item['datetime']."' WHERE id = ".$item['id'] ); } } return 1; } //--------------------------------------------------------------------- //--------------------------------------------------------------------- //--------------------------------------------------------------------- //--------------------------------------------------------------------- //--------------------------------------------------------------------- //--------------------------------------------------------------------- // populate created_at, updated_at and deleted_at fields in USERS table //---<END 3.0.9 //--------------------------------------------------------------------- //--->BEGIN 3.0.10 // Add field created_at to ITEMS table $res = addColumnIfNotExist( $pre . 'items', 'created_at', "varchar(30) NULL;" ); if ($res === false) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field created_at to table ITEMS! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); } // Add field updated_at to ITEMS table $res = addColumnIfNotExist( $pre . 'items', 'updated_at', "varchar(30) NULL;" ); if ($res === false) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field updated_at to table ITEMS! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); } // Add field deleted_at to ITEMS table $res = addColumnIfNotExist( $pre . 'items', 'deleted_at', "varchar(30) NULL;" ); if ($res === false) { echo '[{"finish":"1", "msg":"", "error":"An error appears when adding field deleted_at to table ITEMS! ' . mysqli_error($db_link) . '!"}]'; mysqli_close($db_link); exit(); } /* // populate created_at, updated_at and deleted_at fields in ITEMS table $tmp = mysqli_num_rows(mysqli_query($db_link, "SELECT * FROM `" . $pre . "items` WHERE created_at IS NOT NULL")); if (intval($tmp) === 0) { populateItemsTable($pre); }*/ //---<END 3.0.10 //--------------------------------------------------------------------- } array('upgrade_operations.php', 'populateItemsTable_CreatedAt'), array('upgrade_operations.php', 'populateItemsTable_UpdatedAt'), array('upgrade_operations.php', 'populateItemsTable_DeletedAt'), // Prepare datePicker $('#form-item-deleteAfterDate, .datepicker').datepicker({ format: '<?php echo str_replace(['Y', 'M'], ['yyyy', 'mm'], $SETTINGS['date_format']); ?>', todayHighlight: true, todayBtn: true, language: '<?php echo isset($_SESSION['user_language_code']) === true ? $_SESSION['user_language_code'] : 'en'; ?>' }); purifyRes = fieldDomPurifierLoop('#form-item .purify'); if (purifyRes.purifyStop === true) { // if purify failed, stop if (purifyRes.arrFields['label'] === '') { } else if (purifyRes.arrFields['tags'] !== '' && reg.test(purifyRes.arrFields['tags']) 'description': $('#form-item-description').summernote('code'), 'email': purifyRes.arrFields['email'], 'label': purifyRes.arrFields['label'], 'login': purifyRes.arrFields['login'], 'tags': purifyRes.arrFields['tags'], 'to_be_deleted_after_date': purifyRes.arrFields['deleteAfterDate'] !== '' ? purifyRes.arrFields['deleteAfterDate'] : '', 'to_be_deleted_after_x_views': parseInt(purifyRes.arrFields['deleteAfterShown']) > 0 ? parseInt(purifyRes.arrFields['deleteAfterShown']) : '', 'url': purifyRes.arrFields['url'], 'fa_icon': purifyRes.arrFields['icon'], <input id="form-item-label" type="text" class="form-control form-item-control purify" data-change-ongoing="" data-field-name="label"> <div id="form-item-description" class="form-item-control w-100 clear-me-html purify purifyHtml" data-field-name="description" data-change-ongoing=""></div> <input id="form-item-login" type="text" class="form-control form-item-control purify" data-field-name="login" data-change-ongoing=""> <input id="form-item-email" type="email" class="form-control form-item-control purify" data-field-name="email" data-change-ongoing=""> <input id="form-item-url" type="url" class="form-control form-item-control purify" data-field-name="url" data-change-ongoing=""> <input id="form-item-icon" type="text" class="form-control form-item-control " data-field-name="icon" data-change-ongoing=""> <input id="form-item-tags" type="text" class="form-control form-item-control autocomplete purify" data-change-ongoing="" data-field-name="tags"> <input type="text" class="form-control form-item-control purify" data-field-name="deleteAfterShown" id="form-item-deleteAfterShown" data-change-ongoing=""> <input type="text" class="form-control float-right form-item-control purify" data-field-name="deleteAfterDate" id="form-item-deleteAfterDate" data-change-ongoing=""> echo "coucou ".count($_SESSION['item_fields']); } else { echo '<div class="alert alert-info"> <h5><i class="icon fa fa-info mr-3"></i>' . langHdl('information') . '</h5> ' . langHdl('no_fields') . ' </div>'; 'created_at' => time(), 'updated_at' => time(), $aSet['created_at'] = time(); 'updated_at' => time(), 'deleted_at' => time(), 'deleted_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), 'updated_at' => time(), $SETTINGS['cpassman_dir'], 'deleted_at' => time(),
[]
CVE-2023-3551
cc6abc76aa46ed4a27736c1d2f21e432a5d54e6f
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': ' Code Injection in GitHub repository nilsteampassnet/teampass prior to 3.0.10.'}]
null
7.2
2023-07-08T09:15Z
nan
CWE-94
Improper Control of Generation of Code ('Code Injection')
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
3.0.10 Fix for #3779, #3775 Fix for improper handling of input in admin setting pages
2023-07-08 10:02:56 +0200
cc6abc76aa
8,325
3
[ "includes/js/functions.js", "includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php", "pages/2fa.js.php", "pages/2fa.php", "pages/admin.js.php", "pages/users.js.php", "sources/logs.datatables.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 25, "lines_deleted": 4}, "includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php": {"lines_added": 1, "lines_deleted": 0}, "pages/2fa.js.php": {"lines_added": 6, "lines_deleted": 25}, "pages/2fa.php": {"lines_added": 4, "lines_deleted": 4}, "pages/admin.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/users.js.php": {"lines_added": 1, "lines_deleted": 1}, "sources/logs.datatables.php": {"lines_added": 6, "lines_deleted": 6}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index 0340b87ba8..8d06dc008b 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -393,14 +393,14 @@ if (typeof String.prototype.utf8Decode == 'undefined') { function simplePurifier( text, bHtml = false, bSvg = false, bSvgFilters = false -) +) { return DOMPurify.sanitize( - text + sanitizeDom(text) .replaceAll('&lt;', '<') .replaceAll('&#x3C;', '<') .replaceAll('&#60;', '<') .replaceAll('&gt;', '>') .replaceAll('&#x3E;', '>') @@ -513,22 +513,35 @@ function fieldDomPurifierLoop(elementClass) function fieldDomPurifierWithWarning( field, bHtml = false, bSvg = false, bSvgFilters = false, + bSetting = false, ) { if (field === undefined || field === '') { return false; } if ($(field).val() === '') { return ''; } - let string = ''; + let string = '', + currentString = $(field).val(); + + // if bSetting is true, we use the setting value + // remove any closing ', string that could corrupt the setting + if (bSetting === true) { + currentString = currentString.replace(/',/g, ''); + } // Purify string - string = simplePurifier($(field).val(), bHtml, bSvg, bSvgFilters); + string = simplePurifier( + sanitizeDom(currentString), + bHtml, + bSvg, + bSvgFilters + ); // Clear field if string is empty and warn user if (string === '') { toastr.remove(); toastr.warning( @@ -541,6 +554,14 @@ function fieldDomPurifierWithWarning( $(field).focus(); return false; } return string; +} + +const sanitizeDom = (str) => { + const div = document.createElement('div'); + div.textContent = str; + newString = div.innerHTML; + div.remove(); + return newString; } \ No newline at end of file diff --git a/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php b/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php index 5f3b8d8c19..364a476491 100644 --- a/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php +++ b/includes/libraries/anti-xss-master/src/voku/helper/AntiXSS.php @@ -453,10 +453,11 @@ final class AntiXSS */ public function __construct() { $this->_initNeverAllowedStr(); $this->_initNeverAllowedRegex(); + UTF8::checkForSupport(); } /** * Compact any exploded words. * diff --git a/pages/2fa.js.php b/pages/2fa.js.php index 02ae8ae743..8e323c7364 100755 --- a/pages/2fa.js.php +++ b/pages/2fa.js.php @@ -53,38 +53,19 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals <script type='text/javascript'> //<![CDATA[ - console.log('2FA loaded') - - $(document).on('click', '.generate-key', function() { - var size = $(this).data('length'), - target = $(this).closest('.input-group').find('input').attr('id'); - - $.post( - 'sources/main.queries.php', { - type: 'generate_new_key', - type_category: 'action_key', - size: size - }, - function(data) { - $('#' + target).val(data[0].key); - }, - 'json' - ); - }) - - $(document).on('click', '#button-duo-config-check', function() { - var data = "{\"ikey\":\"" + sanitizeString($("#duo_ikey").val()) + "\", \"skey\":\"" + sanitizeString($("#duo_skey").val()) + "\", \"host\":\"" + sanitizeString($("#duo_host").val()) + "\"}"; + toastr + .info('<?php echo langHdl('loading_item'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); // Prepare data var data = { - 'duo_ikey': $('#duo_ikey').val(), - 'duo_skey': $('#duo_skey').val(), - 'duo_host': $('#duo_host').val() + 'duo_ikey': sanitizeString($('#duo_ikey').val()), + 'duo_skey': sanitizeString($('#duo_skey').val()), + 'duo_host': sanitizeString($('#duo_host').val()) } console.log(data); // Launch action $.post( @@ -108,11 +89,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], '2fa', $SETTINGS) === fals } ); } else { // Inform user toastr.remove(); - toastr.info( + toastr.success( '<?php echo langHdl('duo-config-check-success'); ?>', '', { timeOut: 5000 } ); diff --git a/pages/2fa.php b/pages/2fa.php index 4c3500faf7..6d101aecb8 100755 --- a/pages/2fa.php +++ b/pages/2fa.php @@ -155,11 +155,11 @@ require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; <small class='form-text text-muted'> <?php echo langHdl('admin_ga_website_name_tip'); ?> </small> </div> <div class="col-3"> - <input type="text" class="form-control form-control-sm" id="ga_website_name" value="<?php echo isset($SETTINGS['ga_website_name']) === true ? $SETTINGS['ga_website_name'] : ''; ?>"> + <input type="text" class="form-control form-control-sm purify" data-field="label" id="ga_website_name" value="<?php echo isset($SETTINGS['ga_website_name']) === true ? $SETTINGS['ga_website_name'] : ''; ?>"> </div> </div> <div class="row mb-2"> <div class="col-9"> @@ -203,27 +203,27 @@ require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; <div class="row mb-2"> <div class="col-5"> <?php echo langHdl('admin_duo_ikey'); ?> </div> <div class="col-7"> - <input type="text" class="form-control form-control-sm" id="duo_ikey" value="<?php echo isset($SETTINGS['duo_ikey']) === true ? $SETTINGS['duo_ikey'] : ''; ?>"> + <input type="text" class="form-control form-control-sm purify" data-field="label" id="duo_ikey" value="<?php echo isset($SETTINGS['duo_ikey']) === true ? $SETTINGS['duo_ikey'] : ''; ?>"> </div> </div> <div class="row mb-2"> <div class="col-5"> <?php echo langHdl('admin_duo_skey'); ?> </div> <div class="col-7"> - <input type="text" class="form-control form-control-sm" id="duo_skey" value="<?php echo isset($SETTINGS['duo_skey']) === true ? $SETTINGS['duo_skey'] : ''; ?>"> + <input type="text" class="form-control form-control-sm purify" data-field="label" id="duo_skey" value="<?php echo isset($SETTINGS['duo_skey']) === true ? $SETTINGS['duo_skey'] : ''; ?>"> </div> </div> <div class="row mb-2"> <div class="col-5"> <?php echo langHdl('admin_duo_host'); ?> </div> <div class="col-7"> - <input type="text" class="form-control form-control-sm" id="duo_host" value="<?php echo isset($SETTINGS['duo_host']) === true ? $SETTINGS['duo_host'] : ''; ?>"> + <input type="text" class="form-control form-control-sm purify" data-field="label" id="duo_host" value="<?php echo isset($SETTINGS['duo_host']) === true ? $SETTINGS['duo_host'] : ''; ?>"> </div> </div> <div class="row mb-2"> <button class="btn btn-primary" id="button-duo-config-check"> diff --git a/pages/admin.js.php b/pages/admin.js.php index 852dab00a9..a0fb8189f8 100755 --- a/pages/admin.js.php +++ b/pages/admin.js.php @@ -133,11 +133,11 @@ declare(strict_types=1); if (requestRunning === true) { return false; } // Sanitize value - value = fieldDomPurifierWithWarning('#' + field); + value = fieldDomPurifierWithWarning('#' + field, false, false, false, true); if (value === false) { return false; } $('#' + field).val(value); diff --git a/pages/users.js.php b/pages/users.js.php index 365f92ac79..6648d6eebd 100755 --- a/pages/users.js.php +++ b/pages/users.js.php @@ -896,11 +896,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === forbidFld.push($(this).val()) }); // Mandatory? var validated = true, - validEmailRegex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; + validEmailRegex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,15})+$/; $('.required').each(function(i, obj) { if ($(this).val() === '' && $(this).hasClass('select2') === false) { $(this).addClass('is-invalid'); validated = false; } else if ($('#' + $(this).attr('id') + ' :selected').length === 0 && $(this).hasClass('select2') === true) { diff --git a/sources/logs.datatables.php b/sources/logs.datatables.php index 89b028519c..649abf8828 100755 --- a/sources/logs.datatables.php +++ b/sources/logs.datatables.php @@ -836,11 +836,11 @@ if (isset($_GET['action']) === true && $_GET['action'] === 'connections') { } else { $sOutput .= '[] }'; } } elseif (isset($_GET['action']) && $_GET['action'] === 'tasks_in_progress') { //Columns name - $aColumns = ['increment_id', 'created_at', 'updated_at', 'process_type', 'is_in_progress']; + $aColumns = ['p.increment_id', 'p.created_at', 'p.updated_at', 'p.process_type', 'p.is_in_progress']; //Ordering if (isset($_GET['order'][0]['dir']) === true && in_array($_GET['order'][0]['dir'], $aSortTypes) === true && isset($_GET['order'][0]['column']) === true && (int) $_GET['order'][0]['column'] !== 0 @@ -852,28 +852,28 @@ if (isset($_GET['action']) === true && $_GET['action'] === 'connections') { } else { $sOrder = 'ORDER BY '. $aColumns[0].' DESC'; } - $sWhere = ' WHERE ((finished_at = "")'; + $sWhere = ' WHERE ((p.finished_at = "")'; if (isset($_GET['search']['value']) === true && $_GET['search']['value'] !== '') { $sWhere .= ' AND ('; for ($i = 0; $i < count($aColumns); ++$i) { $sWhere .= $aColumns[$i]." LIKE '%".filter_var($_GET['search']['value'], FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR "; } $sWhere = substr_replace($sWhere, '', -3).') '; } $sWhere .= ') '; DB::debugmode(false); $iTotal = DB::queryFirstField( - 'SELECT COUNT(increment_id) + 'SELECT COUNT(p.increment_id) FROM '.prefixTable('processes').' AS p LEFT JOIN '.prefixTable('users').' AS u ON u.id = json_extract(p.arguments, "$[0]")'. $sWhere ); $rows = DB::query( - 'SELECT * + 'SELECT p.* FROM '.prefixTable('processes').' AS p LEFT JOIN '.prefixTable('users').' AS u ON u.id = json_extract(p.arguments, "$[0]")'. $sWhere. $sOrder. $sLimit @@ -949,18 +949,18 @@ if (isset($_GET['action']) === true && $_GET['action'] === 'connections') { } $sWhere .= ') '; DB::debugmode(false); $iTotal = DB::queryFirstField( - 'SELECT COUNT(increment_id) + 'SELECT COUNT(p.increment_id) FROM '.prefixTable('processes').' AS p LEFT JOIN '.prefixTable('users').' AS u ON u.id = json_extract(p.arguments, "$[0]")'. $sWhere ); $rows = DB::query( - 'SELECT * + 'SELECT p.* FROM '.prefixTable('processes').' AS p LEFT JOIN '.prefixTable('users').' AS u ON u.id = json_extract(p.arguments, "$[0]")'. $sWhere. $sOrder. $sLimit
) text let string = ''; string = simplePurifier($(field).val(), bHtml, bSvg, bSvgFilters); console.log('2FA loaded') $(document).on('click', '.generate-key', function() { var size = $(this).data('length'), target = $(this).closest('.input-group').find('input').attr('id'); $.post( 'sources/main.queries.php', { type: 'generate_new_key', type_category: 'action_key', size: size }, function(data) { $('#' + target).val(data[0].key); }, 'json' ); }) var data = "{\"ikey\":\"" + sanitizeString($("#duo_ikey").val()) + "\", \"skey\":\"" + sanitizeString($("#duo_skey").val()) + "\", \"host\":\"" + sanitizeString($("#duo_host").val()) + "\"}"; 'duo_ikey': $('#duo_ikey').val(), 'duo_skey': $('#duo_skey').val(), 'duo_host': $('#duo_host').val() toastr.info( <input type="text" class="form-control form-control-sm" id="ga_website_name" value="<?php echo isset($SETTINGS['ga_website_name']) === true ? $SETTINGS['ga_website_name'] : ''; ?>"> <input type="text" class="form-control form-control-sm" id="duo_ikey" value="<?php echo isset($SETTINGS['duo_ikey']) === true ? $SETTINGS['duo_ikey'] : ''; ?>"> <input type="text" class="form-control form-control-sm" id="duo_skey" value="<?php echo isset($SETTINGS['duo_skey']) === true ? $SETTINGS['duo_skey'] : ''; ?>"> <input type="text" class="form-control form-control-sm" id="duo_host" value="<?php echo isset($SETTINGS['duo_host']) === true ? $SETTINGS['duo_host'] : ''; ?>"> value = fieldDomPurifierWithWarning('#' + field); validEmailRegex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; $aColumns = ['increment_id', 'created_at', 'updated_at', 'process_type', 'is_in_progress']; $sWhere = ' WHERE ((finished_at = "")'; 'SELECT COUNT(increment_id) 'SELECT * 'SELECT COUNT(increment_id) 'SELECT *
) sanitizeDom(text) bSetting = false, let string = '', currentString = $(field).val(); // if bSetting is true, we use the setting value // remove any closing ', string that could corrupt the setting if (bSetting === true) { currentString = currentString.replace(/',/g, ''); } string = simplePurifier( sanitizeDom(currentString), bHtml, bSvg, bSvgFilters ); } const sanitizeDom = (str) => { const div = document.createElement('div'); div.textContent = str; newString = div.innerHTML; div.remove(); return newString; UTF8::checkForSupport(); toastr .info('<?php echo langHdl('loading_item'); ?> ... <i class="fas fa-circle-notch fa-spin fa-2x"></i>'); 'duo_ikey': sanitizeString($('#duo_ikey').val()), 'duo_skey': sanitizeString($('#duo_skey').val()), 'duo_host': sanitizeString($('#duo_host').val()) toastr.success( <input type="text" class="form-control form-control-sm purify" data-field="label" id="ga_website_name" value="<?php echo isset($SETTINGS['ga_website_name']) === true ? $SETTINGS['ga_website_name'] : ''; ?>"> <input type="text" class="form-control form-control-sm purify" data-field="label" id="duo_ikey" value="<?php echo isset($SETTINGS['duo_ikey']) === true ? $SETTINGS['duo_ikey'] : ''; ?>"> <input type="text" class="form-control form-control-sm purify" data-field="label" id="duo_skey" value="<?php echo isset($SETTINGS['duo_skey']) === true ? $SETTINGS['duo_skey'] : ''; ?>"> <input type="text" class="form-control form-control-sm purify" data-field="label" id="duo_host" value="<?php echo isset($SETTINGS['duo_host']) === true ? $SETTINGS['duo_host'] : ''; ?>"> value = fieldDomPurifierWithWarning('#' + field, false, false, false, true); validEmailRegex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,15})+$/; $aColumns = ['p.increment_id', 'p.created_at', 'p.updated_at', 'p.process_type', 'p.is_in_progress']; $sWhere = ' WHERE ((p.finished_at = "")'; 'SELECT COUNT(p.increment_id) 'SELECT p.* 'SELECT COUNT(p.increment_id) 'SELECT p.*
[ "input_handling" ]
CVE-2023-3552
8acb4dacc2d008a4186a4e13cc143e978f113955
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Improper Encoding or Escaping of Output in GitHub repository nilsteampassnet/teampass prior to 3.0.10.'}]
null
5.4
2023-07-08T09:15Z
nan
CWE-116
Improper Encoding or Escaping of Output
The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
3.0.10 Fix possible xss in folder page
2023-07-08 10:17:10 +0200
8acb4dacc2
8,325
3
[ "includes/js/functions.js", "pages/folders.js.php" ]
PHP
{"includes/js/functions.js": {"lines_added": 20, "lines_deleted": 16}, "pages/folders.js.php": {"lines_added": 1, "lines_deleted": 0}}
diff --git a/includes/js/functions.js b/includes/js/functions.js index 8d06dc008b..e394e64a92 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -395,26 +395,30 @@ function simplePurifier( bHtml = false, bSvg = false, bSvgFilters = false ) { - return DOMPurify.sanitize( - sanitizeDom(text) - .replaceAll('&lt;', '<') - .replaceAll('&#x3C;', '<') - .replaceAll('&#60;', '<') - .replaceAll('&gt;', '>') - .replaceAll('&#x3E;', '>') - .replaceAll('&#62;', '>') - .replaceAll('&amp;', '&') - .replaceAll('&#38;', '&') - .replaceAll('&#x26;', '&') - .replaceAll('&quot;', '"') - .replaceAll('&#34;;', '"') - .replaceAll('&#x22;', '"') - .replaceAll('&#39;', "'"), - {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} + return sanitizeDom( + DOMPurify.sanitize( + text + .replaceAll('&lt;', '<') + .replaceAll('&#x3C;', '<') + .replaceAll('&#x3c;', '<') + .replaceAll('&#60;', '<') + .replaceAll('&gt;', '>') + .replaceAll('&#x3E;', '>') + .replaceAll('&#x3e;', '>') + .replaceAll('&#62;', '>') + .replaceAll('&amp;', '&') + .replaceAll('&#38;', '&') + .replaceAll('&#x26;', '&') + .replaceAll('&quot;', '"') + .replaceAll('&#34;;', '"') + .replaceAll('&#x22;', '"') + .replaceAll('&#39;', "'"), + {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} + ) ); } /** * Permits to purify the content of a string using domPurify diff --git a/pages/folders.js.php b/pages/folders.js.php index adcfb3bb3d..69a92257cf 100755 --- a/pages/folders.js.php +++ b/pages/folders.js.php @@ -115,10 +115,11 @@ if (checkUser($_SESSION['user_id'], $_SESSION['key'], 'folders', $SETTINGS) === 'editRestriction': $('#new-edit-restriction').prop("checked") === true ? 1 : 0, 'icon': purifyRes.arrFields['icon'], 'iconSelected': purifyRes.arrFields['iconSelected'], } console.log(data) + return false; // Launch action $.post( 'sources/folders.queries.php', { type: 'add_folder', data: prepareExchangedData(JSON.stringify(data), "encode", "<?php echo $_SESSION['key']; ?>"),
return DOMPurify.sanitize( sanitizeDom(text) .replaceAll('&lt;', '<') .replaceAll('&#x3C;', '<') .replaceAll('&#60;', '<') .replaceAll('&gt;', '>') .replaceAll('&#x3E;', '>') .replaceAll('&#62;', '>') .replaceAll('&amp;', '&') .replaceAll('&#38;', '&') .replaceAll('&#x26;', '&') .replaceAll('&quot;', '"') .replaceAll('&#34;;', '"') .replaceAll('&#x22;', '"') .replaceAll('&#39;', "'"), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}}
return sanitizeDom( DOMPurify.sanitize( text .replaceAll('&lt;', '<') .replaceAll('&#x3C;', '<') .replaceAll('&#x3c;', '<') .replaceAll('&#60;', '<') .replaceAll('&gt;', '>') .replaceAll('&#x3E;', '>') .replaceAll('&#x3e;', '>') .replaceAll('&#62;', '>') .replaceAll('&amp;', '&') .replaceAll('&#38;', '&') .replaceAll('&#x26;', '&') .replaceAll('&quot;', '"') .replaceAll('&#34;;', '"') .replaceAll('&#x22;', '"') .replaceAll('&#39;', "'"), {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} ) return false;
[]
CVE-2023-3553
e9f90b746fdde135da3c7fbe4fa22fe2bd32e66b
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository nilsteampassnet/teampass prior to 3.0.10.'}]
null
7.5
2023-07-08T09:15Z
nan
CWE-200
Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
3.0.10 Fix directory listing
2023-07-08 10:32:15 +0200
e9f90b746f
8,325
3
[ "api/Controller/index.html", "api/Model/index.html", "api/inc/index.html", "includes/config/index.html", "includes/index.html", "pages/index.html", "plugins/index.html", "scripts/index.html", "sources/index.html" ]
HTML
{"api/Controller/index.html": {"lines_added": 23, "lines_deleted": 0}, "api/Model/index.html": {"lines_added": 23, "lines_deleted": 0}, "api/inc/index.html": {"lines_added": 23, "lines_deleted": 0}, "includes/config/index.html": {"lines_added": 23, "lines_deleted": 0}, "includes/index.html": {"lines_added": 23, "lines_deleted": 0}, "pages/index.html": {"lines_added": 23, "lines_deleted": 0}, "plugins/index.html": {"lines_added": 23, "lines_deleted": 0}, "scripts/index.html": {"lines_added": 23, "lines_deleted": 0}, "sources/index.html": {"lines_added": 23, "lines_deleted": 0}}
diff --git a/api/Controller/index.html b/api/Controller/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/api/Controller/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/api/Model/index.html b/api/Model/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/api/Model/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/api/inc/index.html b/api/inc/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/api/inc/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/includes/config/index.html b/includes/config/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/includes/config/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/includes/index.html b/includes/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/includes/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/pages/index.html b/pages/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/pages/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/plugins/index.html b/plugins/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/plugins/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/scripts/index.html b/scripts/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/scripts/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file diff --git a/sources/index.html b/sources/index.html new file mode 100644 index 0000000000..c98b5bd8b2 --- /dev/null +++ b/sources/index.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>Teampass Incorrect Path</title> + <style> + body { + font-family: Arial, sans-serif; + text-align: center; + padding: 50px; + } + + h1 { + color: #FF0000; + } + </style> +</head> +<body> + <h1>Teampass Incorrect Path</h1> + <p>Sorry, but it seems that you are trying to access an incorrect path.</p> + <p>Please verify the URL or contact the website administrator for assistance.</p> +</body> +</html> \ No newline at end of file
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Teampass Incorrect Path</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } h1 { color: #FF0000; } </style> </head> <body> <h1>Teampass Incorrect Path</h1> <p>Sorry, but it seems that you are trying to access an incorrect path.</p> <p>Please verify the URL or contact the website administrator for assistance.</p> </body> </html>
[]
CVE-2023-3565
820bb49a362a566c9038e4a3048b26d654babb0e
https://github.com/nilsteampassnet/teampass
[{'lang': 'en', 'value': 'Cross-site Scripting (XSS) - Generic in GitHub repository nilsteampassnet/teampass prior to 3.0.10.'}]
null
5.4
2023-07-10T16:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
3.0.10 Fix possible xss
2023-07-08 15:23:13 +0200
820bb49a36
8,325
3
[ "includes/core/load.js.php", "pages/options.php" ]
PHP
{"includes/core/load.js.php": {"lines_added": 1, "lines_deleted": 1}, "pages/options.php": {"lines_added": 11, "lines_deleted": 11}}
diff --git a/includes/core/load.js.php b/includes/core/load.js.php index c6e049034f..4562405d03 100755 --- a/includes/core/load.js.php +++ b/includes/core/load.js.php @@ -1513,11 +1513,11 @@ if ( ); // Perform action $.when( IncreaseSessionTime( - $('#warningModal-input').val() + fieldDomPurifierWithWarning('#warningModal-input') ) ).then(function() { toastr.remove(); toastr.success( '<?php echo langHdl('done'); ?>', diff --git a/pages/options.php b/pages/options.php index a534268fdf..1a087c5755 100755 --- a/pages/options.php +++ b/pages/options.php @@ -184,11 +184,11 @@ $zones = timezone_list(); <div class='row mb-2 option' data-keywords="server setting session expiration time"> <div class='col-10'> <?php echo langHdl('settings_default_session_expiration_time'); ?> </div> <div class='col-2 mb-2'> - <input type='text' class='form-control form-control-sm' id='default_session_expiration_time' value='<?php echo $SETTINGS['default_session_expiration_time'] ?? '60'; ?>'> + <input type='number' class='form-control form-control-sm' id='default_session_expiration_time' value='<?php echo $SETTINGS['default_session_expiration_time'] ?? '60'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="server setting "> <div class='col-10'> @@ -229,11 +229,11 @@ $zones = timezone_list(); <small id='passwordHelpBlock' class='form-text text-muted'> <?php echo langHdl('admin_proxy_port_tip'); ?> </small> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='proxy_port' value='<?php echo $SETTINGS['proxy_port'] ?? '60'; ?>'> + <input type='number' class='form-control form-control-sm' id='proxy_port' value='<?php echo $SETTINGS['proxy_port'] ?? '60'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="user ui setting login length password"> <div class='col-10'> @@ -241,11 +241,11 @@ $zones = timezone_list(); <small id='passwordHelpBlock' class='form-text text-muted'> <?php echo langHdl('admin_pwd_maximum_length_tip'); ?> </small> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='pwd_maximum_length' value='<?php echo $SETTINGS['pwd_maximum_length'] ?? '60'; ?>'> + <input type='number' class='form-control form-control-sm' id='pwd_maximum_length' value='<?php echo $SETTINGS['pwd_maximum_length'] ?? '60'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="user ui setting time date"> <div class='col-4'> @@ -330,20 +330,20 @@ $zones = timezone_list(); <div class='row mb-2 option' data-keywords="user login password duration"> <div class='col-10'> <?php echo langHdl('pw_life_duration'); ?> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='pw_life_duration' value='<?php echo $SETTINGS['pw_life_duration'] ?? '5'; ?>'> + <input type='number' class='form-control form-control-sm' id='pw_life_duration' value='<?php echo $SETTINGS['pw_life_duration'] ?? '5'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="log user login password security"> <div class='col-10'> <?php echo langHdl('nb_false_login_attempts'); ?> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='nb_bad_authentication' value='<?php echo $SETTINGS['nb_bad_authentication'] ?? '0'; ?>'> + <input type='number' class='form-control form-control-sm' id='nb_bad_authentication' value='<?php echo $SETTINGS['nb_bad_authentication'] ?? '0'; ?>'> </div> </div> <!-- <div class='row mb-2 option' data-keywords="log user login"> @@ -498,11 +498,11 @@ $zones = timezone_list(); <small id='passwordHelpBlock' class='form-text text-muted'> <?php echo langHdl('settings_delay_for_item_edition_tip'); ?> </small> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='delay_item_edition' value='<?php echo $SETTINGS['delay_item_edition'] ?? '9'; ?>'> + <input type='number' class='form-control form-control-sm' id='delay_item_edition' value='<?php echo $SETTINGS['delay_item_edition'] ?? '9'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="one time"> <div class='col-10'> @@ -516,11 +516,11 @@ $zones = timezone_list(); <div class='row mb-2 option' data-keywords="one time period expiration"> <div class='col-10'> <?php echo langHdl('settings_otv_expiration_period'); ?> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='otv_expiration_period' value='<?php echo $SETTINGS['otv_expiration_period'] ?? '7'; ?>'> + <input type='number' class='form-control form-control-sm' id='otv_expiration_period' value='<?php echo $SETTINGS['otv_expiration_period'] ?? '7'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="right manager item"> <div class='col-10'> @@ -543,11 +543,11 @@ $zones = timezone_list(); <div class='row mb-2 option' data-keywords="password last"> <div class='col-10'> <?php echo langHdl('max_last_items'); ?> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='max_last_items' value='<?php echo isset($SETTINGS['max_last_items']) === true ? $SETTINGS['max_last_items'] : '7'; ?>'> + <input type='number' class='form-control form-control-sm' id='max_last_items' value='<?php echo isset($SETTINGS['max_last_items']) === true ? $SETTINGS['max_last_items'] : '7'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="create duplicate folder"> <div class='col-10'> @@ -654,11 +654,11 @@ $zones = timezone_list(); <small class='form-text text-muted'> <?php echo langHdl('password_overview_delay_tip'); ?> </small> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='password_overview_delay' value='<?php echo isset($SETTINGS['password_overview_delay']) === true ? $SETTINGS['password_overview_delay'] : '4'; ?>'> + <input type='number' class='form-control form-control-sm' id='password_overview_delay' value='<?php echo isset($SETTINGS['password_overview_delay']) === true ? $SETTINGS['password_overview_delay'] : '4'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="password delete view expiration"> <div class='col-10'> @@ -794,11 +794,11 @@ $zones = timezone_list(); <small class='form-text text-muted'> <?php echo langHdl('clipboard_password_life_duration_tip'); ?> </small> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='clipboard_life_duration' value='<?php echo isset($SETTINGS['clipboard_life_duration']) === true ? $SETTINGS['clipboard_life_duration'] : '30'; ?>'> + <input type='number' class='form-control form-control-sm' id='clipboard_life_duration' value='<?php echo isset($SETTINGS['clipboard_life_duration']) === true ? $SETTINGS['clipboard_life_duration'] : '30'; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="display optimization description"> <div class='col-10'> @@ -925,11 +925,11 @@ if (isset($SETTINGS['show_description']) === true && $SETTINGS['show_description <div class='row mb-5 option' data-keywords="syslog port"> <div class='col-10'> <?php echo langHdl('syslog_port'); ?> </div> <div class='col-2'> - <input type='text' class='form-control form-control-sm' id='syslog_port' value='<?php echo isset($SETTINGS['syslog_port']) === true ? $SETTINGS['syslog_port'] : ''; ?>'> + <input type='number' class='form-control form-control-sm' id='syslog_port' value='<?php echo isset($SETTINGS['syslog_port']) === true ? $SETTINGS['syslog_port'] : ''; ?>'> </div> </div> <div class='row mb-2 option' data-keywords="password server"> <div class='col-10'>
$('#warningModal-input').val() <input type='text' class='form-control form-control-sm' id='default_session_expiration_time' value='<?php echo $SETTINGS['default_session_expiration_time'] ?? '60'; ?>'> <input type='text' class='form-control form-control-sm' id='proxy_port' value='<?php echo $SETTINGS['proxy_port'] ?? '60'; ?>'> <input type='text' class='form-control form-control-sm' id='pwd_maximum_length' value='<?php echo $SETTINGS['pwd_maximum_length'] ?? '60'; ?>'> <input type='text' class='form-control form-control-sm' id='pw_life_duration' value='<?php echo $SETTINGS['pw_life_duration'] ?? '5'; ?>'> <input type='text' class='form-control form-control-sm' id='nb_bad_authentication' value='<?php echo $SETTINGS['nb_bad_authentication'] ?? '0'; ?>'> <input type='text' class='form-control form-control-sm' id='delay_item_edition' value='<?php echo $SETTINGS['delay_item_edition'] ?? '9'; ?>'> <input type='text' class='form-control form-control-sm' id='otv_expiration_period' value='<?php echo $SETTINGS['otv_expiration_period'] ?? '7'; ?>'> <input type='text' class='form-control form-control-sm' id='max_last_items' value='<?php echo isset($SETTINGS['max_last_items']) === true ? $SETTINGS['max_last_items'] : '7'; ?>'> <input type='text' class='form-control form-control-sm' id='password_overview_delay' value='<?php echo isset($SETTINGS['password_overview_delay']) === true ? $SETTINGS['password_overview_delay'] : '4'; ?>'> <input type='text' class='form-control form-control-sm' id='clipboard_life_duration' value='<?php echo isset($SETTINGS['clipboard_life_duration']) === true ? $SETTINGS['clipboard_life_duration'] : '30'; ?>'> <input type='text' class='form-control form-control-sm' id='syslog_port' value='<?php echo isset($SETTINGS['syslog_port']) === true ? $SETTINGS['syslog_port'] : ''; ?>'>
fieldDomPurifierWithWarning('#warningModal-input') <input type='number' class='form-control form-control-sm' id='default_session_expiration_time' value='<?php echo $SETTINGS['default_session_expiration_time'] ?? '60'; ?>'> <input type='number' class='form-control form-control-sm' id='proxy_port' value='<?php echo $SETTINGS['proxy_port'] ?? '60'; ?>'> <input type='number' class='form-control form-control-sm' id='pwd_maximum_length' value='<?php echo $SETTINGS['pwd_maximum_length'] ?? '60'; ?>'> <input type='number' class='form-control form-control-sm' id='pw_life_duration' value='<?php echo $SETTINGS['pw_life_duration'] ?? '5'; ?>'> <input type='number' class='form-control form-control-sm' id='nb_bad_authentication' value='<?php echo $SETTINGS['nb_bad_authentication'] ?? '0'; ?>'> <input type='number' class='form-control form-control-sm' id='delay_item_edition' value='<?php echo $SETTINGS['delay_item_edition'] ?? '9'; ?>'> <input type='number' class='form-control form-control-sm' id='otv_expiration_period' value='<?php echo $SETTINGS['otv_expiration_period'] ?? '7'; ?>'> <input type='number' class='form-control form-control-sm' id='max_last_items' value='<?php echo isset($SETTINGS['max_last_items']) === true ? $SETTINGS['max_last_items'] : '7'; ?>'> <input type='number' class='form-control form-control-sm' id='password_overview_delay' value='<?php echo isset($SETTINGS['password_overview_delay']) === true ? $SETTINGS['password_overview_delay'] : '4'; ?>'> <input type='number' class='form-control form-control-sm' id='clipboard_life_duration' value='<?php echo isset($SETTINGS['clipboard_life_duration']) === true ? $SETTINGS['clipboard_life_duration'] : '30'; ?>'> <input type='number' class='form-control form-control-sm' id='syslog_port' value='<?php echo isset($SETTINGS['syslog_port']) === true ? $SETTINGS['syslog_port'] : ''; ?>'>
[]
CVE-2015-6941
c0689e32154c41f59840ae10ffc5fbfa30618710
https://github.com/twangboy/salt
[{'lang': 'en', 'value': 'win_useradd, salt-cloud and the Linode driver in salt 2015.5.x before 2015.5.6, and 2015.8.x before 2015.8.1 leak password information in debug logs.'}]
5
9.8
2017-08-09T16:29Z
MEDIUM
CWE-534
DEPRECATED: Information Exposure Through Debug Log Files
This entry has been deprecated because its abstraction was too low-level. See CWE-532.
Replaced password with redacted when displayed
2015-09-11 16:48:21 -0600
c0689e321
6,766
2
[ "salt/states/user.py" ]
Python
{"salt/states/user.py": {"lines_added": 6, "lines_deleted": 4}}
diff --git a/salt/states/user.py b/salt/states/user.py index 1f269b3aa..b31ec0c69 100644 --- a/salt/states/user.py +++ b/salt/states/user.py @@ -365,10 +365,12 @@ def present(name, if __opts__['test']: ret['result'] = None ret['comment'] = ('The following user attributes are set to be ' 'changed:\n') for key, val in changes.items(): + if key == 'password': + val = 'XXX-REDACTED-XXX' ret['comment'] += '{0}: {1}\n'.format(key, val) return ret # The user is present if 'shadow.info' in __salt__: lshad = __salt__['shadow.info'](name) @@ -486,13 +488,13 @@ def present(name, __salt__['shadow.set_password'](name, password) spost = __salt__['shadow.info'](name) if spost['passwd'] != password: ret['comment'] = 'User {0} created but failed to set' \ ' password to' \ - ' {1}'.format(name, password) + ' {1}'.format(name, 'XXX-REDACTED-XXX') ret['result'] = False - ret['changes']['password'] = password + ret['changes']['password'] = 'XXX-REDACTED-XXX' if date: __salt__['shadow.set_date'](name, date) spost = __salt__['shadow.info'](name) if spost['lstchg'] != date: ret['comment'] = 'User {0} created but failed to set' \ @@ -548,13 +550,13 @@ def present(name, elif salt.utils.is_windows(): if password and not empty_password: if not __salt__['user.setpassword'](name, password): ret['comment'] = 'User {0} created but failed to set' \ ' password to' \ - ' {1}'.format(name, password) + ' {1}'.format(name, 'XXX-REDACTED-XXX') ret['result'] = False - ret['changes']['passwd'] = password + ret['changes']['passwd'] = 'XXX-REDACTED-XXX' else: ret['comment'] = 'Failed to create new user {0}'.format(name) ret['result'] = False return ret
' {1}'.format(name, password) ret['changes']['password'] = password ' {1}'.format(name, password) ret['changes']['passwd'] = password
if key == 'password': val = 'XXX-REDACTED-XXX' ' {1}'.format(name, 'XXX-REDACTED-XXX') ret['changes']['password'] = 'XXX-REDACTED-XXX' ' {1}'.format(name, 'XXX-REDACTED-XXX') ret['changes']['passwd'] = 'XXX-REDACTED-XXX'
[]
CVE-2020-15095
a9857b8f6869451ff058789c4631fadfde5bbcbc
https://github.com/npm/cli
[{'lang': 'en', 'value': 'Versions of the npm CLI prior to 6.14.6 are vulnerable to an information exposure vulnerability through log files. The CLI supports URLs like "<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>". The password value is not redacted and is printed to stdout and also to any generated log files.'}]
1.9
4.4
2020-07-07T19:15Z
LOW
CWE-532
Insertion of Sensitive Information into Log File
Information written to log files can be of a sensitive nature and give valuable guidance to an attacker or expose sensitive user information.
chore: remove auth info from logs
2020-06-30 13:38:27 -0500
a9857b8f6
7,037
2
[ "bin/npm-cli.js", "lib/fetch-package-metadata.js", "lib/utils/error-handler.js", "lib/utils/error-message.js", "lib/utils/replace-info.js" ]
JavaScript
{"bin/npm-cli.js": {"lines_added": 3, "lines_deleted": 1}, "lib/fetch-package-metadata.js": {"lines_added": 6, "lines_deleted": 3}, "lib/utils/error-handler.js": {"lines_added": 4, "lines_deleted": 1}, "lib/utils/error-message.js": {"lines_added": 5, "lines_deleted": 0}, "lib/utils/replace-info.js": {"lines_added": 22, "lines_deleted": 0}}
diff --git a/bin/npm-cli.js b/bin/npm-cli.js index 93eddc7a3..c0d9be004 100755 --- a/bin/npm-cli.js +++ b/bin/npm-cli.js @@ -26,10 +26,11 @@ unsupported.checkForUnsupportedNode() var npm = require('../lib/npm.js') var npmconf = require('../lib/config/core.js') var errorHandler = require('../lib/utils/error-handler.js') + var replaceInfo = require('../lib/utils/replace-info.js') var configDefs = npmconf.defs var shorthands = configDefs.shorthands var types = configDefs.types var nopt = require('nopt') @@ -38,11 +39,12 @@ // run in global mode. if (process.argv[1][process.argv[1].length - 1] === 'g') { process.argv.splice(1, 1, 'npm', '-g') } - log.verbose('cli', process.argv) + var args = replaceInfo(process.argv) + log.verbose('cli', args) var conf = nopt(types, shorthands) npm.argv = conf.argv.remain if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift() else conf.usage = true diff --git a/lib/fetch-package-metadata.js b/lib/fetch-package-metadata.js index c4f46f513..ebb378647 100644 --- a/lib/fetch-package-metadata.js +++ b/lib/fetch-package-metadata.js @@ -1,27 +1,30 @@ 'use strict' const deprCheck = require('./utils/depr-check') const path = require('path') const log = require('npmlog') +const pacote = require('pacote') const readPackageTree = require('read-package-tree') const rimraf = require('rimraf') const validate = require('aproba') const npa = require('npm-package-arg') const npm = require('./npm') let npmConfig const npmlog = require('npmlog') const limit = require('call-limit') -const tempFilename = require('./utils/temp-filename') -const pacote = require('pacote') +const tempFilename = require('./utils/temp-filename.js') +const replaceInfo = require('./utils/replace-info.js') const isWindows = require('./utils/is-windows.js') function andLogAndFinish (spec, tracker, done) { validate('SOF|SZF|OOF|OZF', [spec, tracker, done]) return (er, pkg) => { if (er) { - log.silly('fetchPackageMetaData', 'error for ' + String(spec), er.message) + er.message = replaceInfo(er.message) + var spc = replaceInfo(String(spec)) + log.silly('fetchPackageMetaData', 'error for ' + spc, er.message) if (tracker) tracker.finish() } return done(er, pkg) } } diff --git a/lib/utils/error-handler.js b/lib/utils/error-handler.js index 3e6f176ef..902ad7af9 100644 --- a/lib/utils/error-handler.js +++ b/lib/utils/error-handler.js @@ -10,10 +10,11 @@ var path = require('path') var wroteLogFile = false var exitCode = 0 var rollbacks = npm.rollbacks var chain = require('slide').chain var errorMessage = require('./error-message.js') +var replaceInfo = require('./replace-info.js') var stopMetrics = require('./metrics.js').stop const cacheFile = require('./cache-file.js') var logFileName @@ -173,18 +174,20 @@ function errorHandler (er) { 'statusCode', 'pkgid' ].forEach(function (k) { var v = er[k] if (!v) return + v = replaceInfo(v) log.verbose(k, v) }) log.verbose('cwd', process.cwd()) var os = require('os') + var args = replaceInfo(process.argv) log.verbose('', os.type() + ' ' + os.release()) - log.verbose('argv', process.argv.map(JSON.stringify).join(' ')) + log.verbose('argv', args.map(JSON.stringify).join(' ')) log.verbose('node', process.version) log.verbose('npm ', 'v' + npm.version) ;[ 'code', diff --git a/lib/utils/error-message.js b/lib/utils/error-message.js index 3faa78f30..78ccdeeb5 100644 --- a/lib/utils/error-message.js +++ b/lib/utils/error-message.js @@ -1,16 +1,21 @@ 'use strict' var npm = require('../npm.js') var util = require('util') var nameValidator = require('validate-npm-package-name') var npmlog = require('npmlog') +var replaceInfo = require('./replace-info.js') module.exports = errorMessage function errorMessage (er) { var short = [] var detail = [] + + er.message = replaceInfo(er.message) + er.stack = replaceInfo(er.stack) + switch (er.code) { case 'ENOAUDIT': short.push(['audit', er.message]) break case 'EAUDITNOPJSON': diff --git a/lib/utils/replace-info.js b/lib/utils/replace-info.js new file mode 100644 index 000000000..a613a3755 --- /dev/null +++ b/lib/utils/replace-info.js @@ -0,0 +1,22 @@ +const URL = require('url') + +// replaces auth info in an array +// of arguments or in a strings +function replaceInfo (arg) { + const isArray = Array.isArray(arg) + const isString = typeof arg === 'string' + + if (!isArray && !isString) return arg + + const args = isString ? arg.split(' ') : arg + const info = args.map(arg => { + try { + const url = new URL(arg) + return url.password === '' ? arg : arg.replace(url.password, '***') + } catch (e) { return arg } + }) + + return isString ? info.join(' ') : info +} + +module.exports = replaceInfo
log.verbose('cli', process.argv) const tempFilename = require('./utils/temp-filename') const pacote = require('pacote') log.silly('fetchPackageMetaData', 'error for ' + String(spec), er.message) log.verbose('argv', process.argv.map(JSON.stringify).join(' '))
var replaceInfo = require('../lib/utils/replace-info.js') var args = replaceInfo(process.argv) log.verbose('cli', args) const pacote = require('pacote') const tempFilename = require('./utils/temp-filename.js') const replaceInfo = require('./utils/replace-info.js') er.message = replaceInfo(er.message) var spc = replaceInfo(String(spec)) log.silly('fetchPackageMetaData', 'error for ' + spc, er.message) var replaceInfo = require('./replace-info.js') v = replaceInfo(v) var args = replaceInfo(process.argv) log.verbose('argv', args.map(JSON.stringify).join(' ')) var replaceInfo = require('./replace-info.js') er.message = replaceInfo(er.message) er.stack = replaceInfo(er.stack) const URL = require('url') // replaces auth info in an array // of arguments or in a strings function replaceInfo (arg) { const isArray = Array.isArray(arg) const isString = typeof arg === 'string' if (!isArray && !isString) return arg const args = isString ? arg.split(' ') : arg const info = args.map(arg => { try { const url = new URL(arg) return url.password === '' ? arg : arg.replace(url.password, '***') } catch (e) { return arg } }) return isString ? info.join(' ') : info } module.exports = replaceInfo
[ "authentication" ]
CVE-2021-43616
457e0ae61bbc55846f5af44afa4066921923490f
https://github.com/npm/cli
[{'lang': 'en', 'value': 'The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in package-lock.json differs from package.json. This behavior is inconsistent with the documentation, and makes it easier for attackers to install malware that was supposed to have been blocked by an exact version match requirement in package-lock.json. NOTE: The npm team believes this is not a vulnerability. It would require someone to socially engineer package.json which has different dependencies than package-lock.json. That user would have to have file system or write access to change dependencies. The npm team states preventing malicious actors from socially engineering or gaining file system access is outside the scope of the npm CLI.'}]
7.5
9.8
2021-11-13T18:15Z
HIGH
CWE-345
Insufficient Verification of Data Authenticity
The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.
fix(ci): lock file validation Make sure to validate any lock file (either package-lock.json or npm-shrinkwrap.json) against the current install. This will properly throw an error in case any of the dependencies being installed don't match the dependencies that are currently listed in the lock file. Fixes: https://github.com/npm/cli/issues/2701 Fixes: https://github.com/npm/cli/issues/3947
2022-02-03 14:23:46 -0500
457e0ae61
7,037
2
[ "lib/commands/ci.js", "lib/utils/validate-lockfile.js", "smoke-tests/index.js", "tap-snapshots/smoke-tests/index.js.test.cjs", "tap-snapshots/test/lib/commands/ci.js.test.cjs", "tap-snapshots/test/lib/utils/validate-lockfile.js.test.cjs", "test/lib/commands/ci.js", "test/lib/utils/validate-lockfile.js" ]
JavaScript
{"lib/commands/ci.js": {"lines_added": 23, "lines_deleted": 0}, "lib/utils/validate-lockfile.js": {"lines_added": 29, "lines_deleted": 0}, "smoke-tests/index.js": {"lines_added": 29, "lines_deleted": 0}, "tap-snapshots/smoke-tests/index.js.test.cjs": {"lines_added": 11, "lines_deleted": 0}, "tap-snapshots/test/lib/commands/ci.js.test.cjs": {"lines_added": 13, "lines_deleted": 0}, "tap-snapshots/test/lib/utils/validate-lockfile.js.test.cjs": {"lines_added": 35, "lines_deleted": 0}, "test/lib/commands/ci.js": {"lines_added": 82, "lines_deleted": 0}, "test/lib/utils/validate-lockfile.js": {"lines_added": 82, "lines_deleted": 0}}
diff --git a/lib/commands/ci.js b/lib/commands/ci.js index 2c2f8da86..376a85d60 100644 --- a/lib/commands/ci.js +++ b/lib/commands/ci.js @@ -4,10 +4,11 @@ const rimraf = util.promisify(require('rimraf')) const reifyFinish = require('../utils/reify-finish.js') const runScript = require('@npmcli/run-script') const fs = require('fs') const readdir = util.promisify(fs.readdir) const log = require('../utils/log-shim.js') +const validateLockfile = require('../utils/validate-lockfile.js') const removeNodeModules = async where => { const rimrafOpts = { glob: false } process.emit('time', 'npm-ci:rm') const path = `${where}/node_modules` @@ -53,10 +54,32 @@ class CI extends ArboristWorkspaceCmd { 'later to generate a package-lock.json file, then try again.' throw new Error(msg) }), removeNodeModules(where), ]) + + // retrieves inventory of packages from loaded virtual tree (lock file) + const virtualInventory = new Map(arb.virtualTree.inventory) + + // build ideal tree step needs to come right after retrieving the virtual + // inventory since it's going to erase the previous ref to virtualTree + await arb.buildIdealTree() + + // verifies that the packages from the ideal tree will match + // the same versions that are present in the virtual tree (lock file) + // throws a validation error in case of mismatches + const errors = validateLockfile(virtualInventory, arb.idealTree.inventory) + if (errors.length) { + throw new Error( + '`npm ci` can only install packages when your package.json and ' + + 'package-lock.json or npm-shrinkwrap.json are in sync. Please ' + + 'update your lock file with `npm install` ' + + 'before continuing.\n\n' + + errors.join('\n') + '\n' + ) + } + await arb.reify(opts) const ignoreScripts = this.npm.config.get('ignore-scripts') // run the same set of scripts that `npm install` runs. if (!ignoreScripts) { diff --git a/lib/utils/validate-lockfile.js b/lib/utils/validate-lockfile.js new file mode 100644 index 000000000..29161ec55 --- /dev/null +++ b/lib/utils/validate-lockfile.js @@ -0,0 +1,29 @@ +// compares the inventory of package items in the tree +// that is about to be installed (idealTree) with the inventory +// of items stored in the package-lock file (virtualTree) +// +// Returns empty array if no errors found or an array populated +// with an entry for each validation error found. +function validateLockfile (virtualTree, idealTree) { + const errors = [] + + // loops through the inventory of packages resulted by ideal tree, + // for each package compares the versions with the version stored in the + // package-lock and adds an error to the list in case of mismatches + for (const [key, entry] of idealTree.entries()) { + const lock = virtualTree.get(key) + + if (!lock) { + errors.push(`Missing: ${entry.name}@${entry.version} from lock file`) + continue + } + + if (entry.version !== lock.version) { + errors.push(`Invalid: lock file's ${lock.name}@${lock.version} does ` + + `not satisfy ${entry.name}@${entry.version}`) + } + } + return errors +} + +module.exports = validateLockfile diff --git a/smoke-tests/index.js b/smoke-tests/index.js index 83e54ae9f..464187da0 100644 --- a/smoke-tests/index.js +++ b/smoke-tests/index.js @@ -19,10 +19,11 @@ t.cleanSnapshot = s => .join('{CWD}') .replace(/\\+/g, '/') .replace(/\r\n/g, '\n') .replace(/ \(in a browser\)/g, '') .replace(/^npm@.* /gm, 'npm ') + .replace(/^.*debug-[0-9]+.log$/gm, '') // setup server const { start, stop, registry } = require('./server.js') t.before(start) t.teardown(stop) @@ -318,5 +319,33 @@ t.test('npm update --save', async t => { JSON.parse(readFile('package-lock.json')).packages['node_modules/abbrev'].version, '1.1.1', 'should have expected update --save lockfile result' ) }) + +t.test('npm ci', async t => { + await exec(`${npmBin} uninstall abbrev`) + await exec(`${npmBin} install abbrev@1.0.4 --save-exact`) + + t.equal( + JSON.parse(readFile('package-lock.json')).packages['node_modules/abbrev'].version, + '1.0.4', + 'should have stored exact installed version' + ) + + await exec(`${npmBin} pkg set "dependencies.abbrev=^1.1.1"`) + + try { + const npmOpts = [ + `--registry=${registry}`, + `--cache="${cacheLocation}"`, + `--userconfig="${userconfigLocation}"`, + '--no-audit', + '--no-update-notifier', + '--loglevel=error', + ].join(' ') + const npmBin = `"${process.execPath}" "${npmLocation}" ${npmOpts}` + await exec(`${npmBin} ci`) + } catch (err) { + t.matchSnapshot(err.stderr, 'should throw mismatch deps in lock file error') + } +}) diff --git a/tap-snapshots/smoke-tests/index.js.test.cjs b/tap-snapshots/smoke-tests/index.js.test.cjs index c1316e04d..5fa3977a8 100644 --- a/tap-snapshots/smoke-tests/index.js.test.cjs +++ b/tap-snapshots/smoke-tests/index.js.test.cjs @@ -38,10 +38,21 @@ or on the command line via: npm <command> --key=value More configuration info: npm help config Configuration fields: npm help 7 config npm {CWD} +` + +exports[`smoke-tests/index.js TAP npm ci > should throw mismatch deps in lock file error 1`] = ` +npm ERR! \`npm ci\` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with \`npm install\` before continuing. +npm ERR! +npm ERR! Invalid: lock file's abbrev@1.0.4 does not satisfy abbrev@1.1.1 +npm ERR! + +npm ERR! A complete log of this run can be found in: + + ` exports[`smoke-tests/index.js TAP npm diff > should have expected diff output 1`] = ` diff --git a/package.json b/package.json index v1.0.4..v1.1.1 100644 diff --git a/tap-snapshots/test/lib/commands/ci.js.test.cjs b/tap-snapshots/test/lib/commands/ci.js.test.cjs new file mode 100644 index 000000000..d6a747177 --- /dev/null +++ b/tap-snapshots/test/lib/commands/ci.js.test.cjs @@ -0,0 +1,13 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/lib/commands/ci.js TAP should throw error when ideal inventory mismatches virtual > must match snapshot 1`] = ` +\`npm ci\` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with \`npm install\` before continuing. + +Invalid: lock file's foo@1.0.0 does not satisfy foo@2.0.0 + +` diff --git a/tap-snapshots/test/lib/utils/validate-lockfile.js.test.cjs b/tap-snapshots/test/lib/utils/validate-lockfile.js.test.cjs new file mode 100644 index 000000000..98a51267b --- /dev/null +++ b/tap-snapshots/test/lib/utils/validate-lockfile.js.test.cjs @@ -0,0 +1,35 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/lib/utils/validate-lockfile.js TAP extra inventory items on idealTree > should have missing entries error 1`] = ` +Array [ + "Missing: baz@3.0.0 from lock file", +] +` + +exports[`test/lib/utils/validate-lockfile.js TAP extra inventory items on virtualTree > should have no errors if finding virtualTree extra items 1`] = ` +Array [] +` + +exports[`test/lib/utils/validate-lockfile.js TAP identical inventory for both idealTree and virtualTree > should have no errors on identical inventories 1`] = ` +Array [] +` + +exports[`test/lib/utils/validate-lockfile.js TAP mismatching versions on inventory > should have errors for each mismatching version 1`] = ` +Array [ + "Invalid: lock file's foo@1.0.0 does not satisfy foo@2.0.0", + "Invalid: lock file's bar@2.0.0 does not satisfy bar@3.0.0", +] +` + +exports[`test/lib/utils/validate-lockfile.js TAP missing virtualTree inventory > should have errors for each mismatching version 1`] = ` +Array [ + "Missing: foo@1.0.0 from lock file", + "Missing: bar@2.0.0 from lock file", + "Missing: baz@3.0.0 from lock file", +] +` diff --git a/test/lib/commands/ci.js b/test/lib/commands/ci.js index 537d0784f..e077c99ee 100644 --- a/test/lib/commands/ci.js +++ b/test/lib/commands/ci.js @@ -17,10 +17,21 @@ t.test('should ignore scripts with --ignore-scripts', async t => { '@npmcli/arborist': function () { this.loadVirtual = async () => {} this.reify = () => { REIFY_CALLED = true } + this.buildIdealTree = () => {} + this.virtualTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } + this.idealTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } }, }) const npm = mockNpm({ globalDir: 'path/to/node_modules/', @@ -97,10 +108,21 @@ t.test('should use Arborist and run-script', async t => { return Promise.resolve(true) } this.reify = () => { t.ok(true, 'reify is called') } + this.buildIdealTree = () => {} + this.virtualTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } + this.idealTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } }, rimraf: (path, ...args) => { actualRimrafs++ t.ok(path, 'rimraf called with path') // callback is always last arg @@ -136,10 +158,21 @@ t.test('should pass flatOptions to Arborist.reify', async t => { '@npmcli/arborist': function () { this.loadVirtual = () => Promise.resolve(true) this.reify = async (options) => { t.equal(options.production, true, 'should pass flatOptions to Arborist.reify') } + this.buildIdealTree = () => {} + this.virtualTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } + this.idealTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } }, }) const npm = mockNpm({ prefix: 'foo', flatOptions: { @@ -216,10 +249,21 @@ t.test('should remove existing node_modules before installing', async t => { // check if node_modules was removed before reifying const contents = await readdir(testDir) const nodeModules = contents.filter((path) => path.startsWith('node_modules')) t.same(nodeModules, ['node_modules'], 'should only have the node_modules directory') } + this.buildIdealTree = () => {} + this.virtualTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } + this.idealTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } }, }) const npm = mockNpm({ prefix: testDir, @@ -229,5 +273,43 @@ t.test('should remove existing node_modules before installing', async t => { }) const ci = new CI(npm) await ci.exec(null) }) + +t.test('should throw error when ideal inventory mismatches virtual', async t => { + const CI = t.mock('../../../lib/commands/ci.js', { + '../../../lib/utils/reify-finish.js': async () => {}, + '@npmcli/run-script': ({ event }) => {}, + '@npmcli/arborist': function () { + this.loadVirtual = async () => {} + this.reify = () => {} + this.buildIdealTree = () => {} + this.virtualTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ]), + } + this.idealTree = { + inventory: new Map([ + ['foo', { name: 'foo', version: '2.0.0' }], + ]), + } + }, + }) + + const npm = mockNpm({ + globalDir: 'path/to/node_modules/', + prefix: 'foo', + config: { + global: false, + 'ignore-scripts': true, + }, + }) + const ci = new CI(npm) + + try { + await ci.exec([]) + } catch (err) { + t.matchSnapshot(err.message) + } +}) diff --git a/test/lib/utils/validate-lockfile.js b/test/lib/utils/validate-lockfile.js new file mode 100644 index 000000000..25939c5f8 --- /dev/null +++ b/test/lib/utils/validate-lockfile.js @@ -0,0 +1,82 @@ +const t = require('tap') +const validateLockfile = require('../../../lib/utils/validate-lockfile.js') + +t.test('identical inventory for both idealTree and virtualTree', async t => { + t.matchSnapshot( + validateLockfile( + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ]), + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ]) + ), + 'should have no errors on identical inventories' + ) +}) + +t.test('extra inventory items on idealTree', async t => { + t.matchSnapshot( + validateLockfile( + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ]), + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ['baz', { name: 'baz', version: '3.0.0' }], + ]) + ), + 'should have missing entries error' + ) +}) + +t.test('extra inventory items on virtualTree', async t => { + t.matchSnapshot( + validateLockfile( + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ['baz', { name: 'baz', version: '3.0.0' }], + ]), + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ]) + ), + 'should have no errors if finding virtualTree extra items' + ) +}) + +t.test('mismatching versions on inventory', async t => { + t.matchSnapshot( + validateLockfile( + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ]), + new Map([ + ['foo', { name: 'foo', version: '2.0.0' }], + ['bar', { name: 'bar', version: '3.0.0' }], + ]) + ), + 'should have errors for each mismatching version' + ) +}) + +t.test('missing virtualTree inventory', async t => { + t.matchSnapshot( + validateLockfile( + new Map([]), + new Map([ + ['foo', { name: 'foo', version: '1.0.0' }], + ['bar', { name: 'bar', version: '2.0.0' }], + ['baz', { name: 'baz', version: '3.0.0' }], + ]) + ), + 'should have errors for each mismatching version' + ) +})
const validateLockfile = require('../utils/validate-lockfile.js') // retrieves inventory of packages from loaded virtual tree (lock file) const virtualInventory = new Map(arb.virtualTree.inventory) // build ideal tree step needs to come right after retrieving the virtual // inventory since it's going to erase the previous ref to virtualTree await arb.buildIdealTree() // verifies that the packages from the ideal tree will match // the same versions that are present in the virtual tree (lock file) // throws a validation error in case of mismatches const errors = validateLockfile(virtualInventory, arb.idealTree.inventory) if (errors.length) { throw new Error( '`npm ci` can only install packages when your package.json and ' + 'package-lock.json or npm-shrinkwrap.json are in sync. Please ' + 'update your lock file with `npm install` ' + 'before continuing.\n\n' + errors.join('\n') + '\n' ) } // compares the inventory of package items in the tree // that is about to be installed (idealTree) with the inventory // of items stored in the package-lock file (virtualTree) // // Returns empty array if no errors found or an array populated // with an entry for each validation error found. function validateLockfile (virtualTree, idealTree) { const errors = [] // loops through the inventory of packages resulted by ideal tree, // for each package compares the versions with the version stored in the // package-lock and adds an error to the list in case of mismatches for (const [key, entry] of idealTree.entries()) { const lock = virtualTree.get(key) if (!lock) { errors.push(`Missing: ${entry.name}@${entry.version} from lock file`) continue } if (entry.version !== lock.version) { errors.push(`Invalid: lock file's ${lock.name}@${lock.version} does ` + `not satisfy ${entry.name}@${entry.version}`) } } return errors } module.exports = validateLockfile .replace(/^.*debug-[0-9]+.log$/gm, '') t.test('npm ci', async t => { await exec(`${npmBin} uninstall abbrev`) await exec(`${npmBin} install abbrev@1.0.4 --save-exact`) t.equal( JSON.parse(readFile('package-lock.json')).packages['node_modules/abbrev'].version, '1.0.4', 'should have stored exact installed version' ) await exec(`${npmBin} pkg set "dependencies.abbrev=^1.1.1"`) try { const npmOpts = [ `--registry=${registry}`, `--cache="${cacheLocation}"`, `--userconfig="${userconfigLocation}"`, '--no-audit', '--no-update-notifier', '--loglevel=error', ].join(' ') const npmBin = `"${process.execPath}" "${npmLocation}" ${npmOpts}` await exec(`${npmBin} ci`) } catch (err) { t.matchSnapshot(err.stderr, 'should throw mismatch deps in lock file error') } }) ` exports[`smoke-tests/index.js TAP npm ci > should throw mismatch deps in lock file error 1`] = ` npm ERR! \`npm ci\` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with \`npm install\` before continuing. npm ERR! npm ERR! Invalid: lock file's abbrev@1.0.4 does not satisfy abbrev@1.1.1 npm ERR! npm ERR! A complete log of this run can be found in: /* IMPORTANT * This snapshot file is auto-generated, but designed for humans. * It should be checked into source control and tracked carefully. * Re-generate by setting TAP_SNAPSHOT=1 and running tests. * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' exports[`test/lib/commands/ci.js TAP should throw error when ideal inventory mismatches virtual > must match snapshot 1`] = ` \`npm ci\` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with \`npm install\` before continuing. Invalid: lock file's foo@1.0.0 does not satisfy foo@2.0.0 ` /* IMPORTANT * This snapshot file is auto-generated, but designed for humans. * It should be checked into source control and tracked carefully. * Re-generate by setting TAP_SNAPSHOT=1 and running tests. * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' exports[`test/lib/utils/validate-lockfile.js TAP extra inventory items on idealTree > should have missing entries error 1`] = ` Array [ "Missing: baz@3.0.0 from lock file", ] ` exports[`test/lib/utils/validate-lockfile.js TAP extra inventory items on virtualTree > should have no errors if finding virtualTree extra items 1`] = ` Array [] ` exports[`test/lib/utils/validate-lockfile.js TAP identical inventory for both idealTree and virtualTree > should have no errors on identical inventories 1`] = ` Array [] ` exports[`test/lib/utils/validate-lockfile.js TAP mismatching versions on inventory > should have errors for each mismatching version 1`] = ` Array [ "Invalid: lock file's foo@1.0.0 does not satisfy foo@2.0.0", "Invalid: lock file's bar@2.0.0 does not satisfy bar@3.0.0", ] ` exports[`test/lib/utils/validate-lockfile.js TAP missing virtualTree inventory > should have errors for each mismatching version 1`] = ` Array [ "Missing: foo@1.0.0 from lock file", "Missing: bar@2.0.0 from lock file", "Missing: baz@3.0.0 from lock file", ] ` this.buildIdealTree = () => {} this.virtualTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.idealTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.buildIdealTree = () => {} this.virtualTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.idealTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.buildIdealTree = () => {} this.virtualTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.idealTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.buildIdealTree = () => {} this.virtualTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.idealTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } t.test('should throw error when ideal inventory mismatches virtual', async t => { const CI = t.mock('../../../lib/commands/ci.js', { '../../../lib/utils/reify-finish.js': async () => {}, '@npmcli/run-script': ({ event }) => {}, '@npmcli/arborist': function () { this.loadVirtual = async () => {} this.reify = () => {} this.buildIdealTree = () => {} this.virtualTree = { inventory: new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ]), } this.idealTree = { inventory: new Map([ ['foo', { name: 'foo', version: '2.0.0' }], ]), } }, }) const npm = mockNpm({ globalDir: 'path/to/node_modules/', prefix: 'foo', config: { global: false, 'ignore-scripts': true, }, }) const ci = new CI(npm) try { await ci.exec([]) } catch (err) { t.matchSnapshot(err.message) } }) const t = require('tap') const validateLockfile = require('../../../lib/utils/validate-lockfile.js') t.test('identical inventory for both idealTree and virtualTree', async t => { t.matchSnapshot( validateLockfile( new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ]), new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ]) ), 'should have no errors on identical inventories' ) }) t.test('extra inventory items on idealTree', async t => { t.matchSnapshot( validateLockfile( new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ]), new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ['baz', { name: 'baz', version: '3.0.0' }], ]) ), 'should have missing entries error' ) }) t.test('extra inventory items on virtualTree', async t => { t.matchSnapshot( validateLockfile( new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ['baz', { name: 'baz', version: '3.0.0' }], ]), new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ]) ), 'should have no errors if finding virtualTree extra items' ) }) t.test('mismatching versions on inventory', async t => { t.matchSnapshot( validateLockfile( new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ]), new Map([ ['foo', { name: 'foo', version: '2.0.0' }], ['bar', { name: 'bar', version: '3.0.0' }], ]) ), 'should have errors for each mismatching version' ) }) t.test('missing virtualTree inventory', async t => { t.matchSnapshot( validateLockfile( new Map([]), new Map([ ['foo', { name: 'foo', version: '1.0.0' }], ['bar', { name: 'bar', version: '2.0.0' }], ['baz', { name: 'baz', version: '3.0.0' }], ]) ), 'should have errors for each mismatching version' ) })
[ "validation" ]
CVE-2018-1000041
f9d69eadd2b16b00d1a1f9f286122123f8e547dd
https://github.com/ImageMagick/librsvg
[{'lang': 'en', 'value': "GNOME librsvg version before commit c6ddf2ed4d768fd88adbea2b63f575cd523022ea contains a Improper input validation vulnerability in rsvg-io.c that can result in the victim's Windows username and NTLM password hash being leaked to remote attackers through SMB. This attack appear to be exploitable via The victim must process a specially crafted SVG file containing an UNC path on Windows."}]
4.3
8.8
2018-02-09T23:29Z
MEDIUM
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
Fixed possible credentials leaking reported by Alex Birsan.
2017-11-27 21:18:43 +0100
f9d69ea
423
2
[ "rsvg-io.c" ]
C
{"rsvg-io.c": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/rsvg-io.c b/rsvg-io.c index 7452b73..6e68b6f 100644 --- a/rsvg-io.c +++ b/rsvg-io.c @@ -128,11 +128,11 @@ gchar * _rsvg_io_get_file_path (const gchar * filename, const gchar * base_uri) { gchar *absolute_filename; - if (g_file_test (filename, G_FILE_TEST_EXISTS) || g_path_is_absolute (filename)) { + if (g_path_is_absolute (filename)) { absolute_filename = g_strdup (filename); } else { gchar *tmpcdir; gchar *base_filename;
if (g_file_test (filename, G_FILE_TEST_EXISTS) || g_path_is_absolute (filename)) {
if (g_path_is_absolute (filename)) {
[ "authentication" ]
CVE-2021-21403
9a125624f219e496bdf4b07b404816d5a309bdc1
https://github.com/kongchuanhujiao/server
[{'lang': 'en', 'value': 'In github.com/kongchuanhujiao/server before version 1.3.21 there is an authentication Bypass by Primary Weakness vulnerability. All users are impacted. This is fixed in version 1.3.21.'}]
7.5
9.8
2021-03-26T18:15Z
HIGH
CWE-287
Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
重构:优化验证码生成逻辑,最小化权责
2021-03-16 19:18:48 +0800
9a12562
57
2
[ "internal/app/datahub/pkg/account/memory.go", "internal/app/kongchuanhujiao/account/apis.go", "internal/app/kongchuanhujiao/account/utils.go" ]
Go
{"internal/app/datahub/pkg/account/memory.go": {"lines_added": 32, "lines_deleted": 8}, "internal/app/kongchuanhujiao/account/apis.go": {"lines_added": 1, "lines_deleted": 1}, "internal/app/kongchuanhujiao/account/utils.go": {"lines_added": 1, "lines_deleted": 18}}
diff --git a/internal/app/datahub/pkg/account/memory.go b/internal/app/datahub/pkg/account/memory.go index cca1457..1e89024 100644 --- a/internal/app/datahub/pkg/account/memory.go +++ b/internal/app/datahub/pkg/account/memory.go @@ -1,15 +1,39 @@ package account -import "github.com/kongchuanhujiao/server/internal/app/datahub/internal/memory" +import ( + "math/rand" + "strconv" + "time" -func GetCode(id string) string { - return memory.Code[id] -} + "github.com/kongchuanhujiao/server/internal/app/datahub/internal/memory" +) + +// GenerateCode 写入验证码返回一个验证码 +func GenerateCode(id string) (c string) { + + rand.Seed(time.Now().UnixNano()) + c = strconv.FormatFloat(rand.Float64(), 'f', -1, 64)[2:6] -func WriteCode(id string, code string) { - memory.Code[id] = code + memory.Code[id] = c + + go func() { + timer := time.NewTimer(5 * time.Minute) + defer timer.Stop() + <-timer.C + deleteCode(id) + }() + + return } -func DeleteCode(id string) { - delete(memory.Code, id) +// VerifyCode 验证验证码 +func VerifyCode(id string, code string) (ok bool) { + if code == memory.Code[id] { + ok = true + deleteCode(id) + } + return } + +// deleteCode 删除验证码 +func deleteCode(id string) { delete(memory.Code, id) } diff --git a/internal/app/kongchuanhujiao/account/apis.go b/internal/app/kongchuanhujiao/account/apis.go index c1e53d3..272b259 100644 --- a/internal/app/kongchuanhujiao/account/apis.go +++ b/internal/app/kongchuanhujiao/account/apis.go @@ -39,11 +39,11 @@ type PostLoginReq struct { // PostLogin 登录验证 APIs。 // 调用方法:POST apis/accounts/login func (a *APIs) PostLogin(v *PostLoginReq) *kongchuanhujiao.Response { - if v.Code != account.GetCode(v.ID) || v.Code == "" { // FIXME datahub 鉴权 + if account.VerifyCode(v.ID, v.Code) || v.Code == "" { return kongchuanhujiao.GenerateErrResp(1, "验证码有误") } now := time.Now() t, err := jwt.NewTokenWithClaims(jwt.SigningMethodES256, jwt.MapClaims{ diff --git a/internal/app/kongchuanhujiao/account/utils.go b/internal/app/kongchuanhujiao/account/utils.go index da6574c..364432e 100644 --- a/internal/app/kongchuanhujiao/account/utils.go +++ b/internal/app/kongchuanhujiao/account/utils.go @@ -1,13 +1,9 @@ package account import ( "errors" - "math/rand" - "strconv" - "time" - "github.com/kongchuanhujiao/server/internal/app/client" "github.com/kongchuanhujiao/server/internal/app/client/message" "github.com/kongchuanhujiao/server/internal/app/datahub/pkg/account" "github.com/kongchuanhujiao/server/internal/pkg/logger" @@ -20,29 +16,16 @@ func sendCode(id string) (err error) { a, err := account.SelectAccount(id, 0) if err != nil { logger.Error("发送验证码失败", zap.Error(err)) return } - if len(a) == 0 { return errors.New("账号不存在") } - rand.Seed(time.Now().UnixNano()) - c := strconv.FormatFloat(rand.Float64(), 'f', -1, 64)[2:6] - client.GetClient().SendMessage( - message.NewTextMessage("您的验证码是:" + c + ",请勿泄露给他人。有效期5分钟"). + message.NewTextMessage("您的验证码是:" + account.GenerateCode(id) + ",请勿泄露给他人。有效期5分钟"). SetTarget(&message.Target{ID: a[0].QQ}), ) - account.WriteCode(id, c) - - go func() { - timer := time.NewTimer(5 * time.Minute) - defer timer.Stop() - <-timer.C - account.DeleteCode(id) - }() - return }
import "github.com/kongchuanhujiao/server/internal/app/datahub/internal/memory" func GetCode(id string) string { return memory.Code[id] } func WriteCode(id string, code string) { memory.Code[id] = code func DeleteCode(id string) { delete(memory.Code, id) if v.Code != account.GetCode(v.ID) || v.Code == "" { // FIXME datahub 鉴权 "math/rand" "strconv" "time" rand.Seed(time.Now().UnixNano()) c := strconv.FormatFloat(rand.Float64(), 'f', -1, 64)[2:6] message.NewTextMessage("您的验证码是:" + c + ",请勿泄露给他人。有效期5分钟"). account.WriteCode(id, c) go func() { timer := time.NewTimer(5 * time.Minute) defer timer.Stop() <-timer.C account.DeleteCode(id) }()
import ( "math/rand" "strconv" "time" "github.com/kongchuanhujiao/server/internal/app/datahub/internal/memory" ) // GenerateCode 写入验证码返回一个验证码 func GenerateCode(id string) (c string) { rand.Seed(time.Now().UnixNano()) c = strconv.FormatFloat(rand.Float64(), 'f', -1, 64)[2:6] memory.Code[id] = c go func() { timer := time.NewTimer(5 * time.Minute) defer timer.Stop() <-timer.C deleteCode(id) }() return // VerifyCode 验证验证码 func VerifyCode(id string, code string) (ok bool) { if code == memory.Code[id] { ok = true deleteCode(id) } return // deleteCode 删除验证码 func deleteCode(id string) { delete(memory.Code, id) } if account.VerifyCode(v.ID, v.Code) || v.Code == "" { message.NewTextMessage("您的验证码是:" + account.GenerateCode(id) + ",请勿泄露给他人。有效期5分钟").
[]
CVE-2021-32851
073485269ac83af24371f35bd08507defa885655
https://github.com/ssshooter/mind-elixir-core
[{'lang': 'en', 'value': 'Mind-elixir is a free, open source mind map core. Prior to version 0.18.1, mind-elixir is prone to cross-site scripting when handling untrusted menus. This issue is patched in version 0.18.1'}]
null
6.1
2023-02-20T22:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
fix: prevent XSS
2021-11-25 15:03:34 +0800
0734852
137
2
[ "package.json", "readme.md", "src/plugin/contextMenu.ts", "src/plugin/nodeMenu.ts", "src/plugin/toolBar.ts", "src/utils/dom.ts", "src/utils/index.ts" ]
TypeScript
{"package.json": {"lines_added": 1, "lines_deleted": 1}, "readme.md": {"lines_added": 0, "lines_deleted": 1}, "src/plugin/contextMenu.ts": {"lines_added": 3, "lines_deleted": 2}, "src/plugin/nodeMenu.ts": {"lines_added": 6, "lines_deleted": 11}, "src/plugin/toolBar.ts": {"lines_added": 1, "lines_deleted": 1}, "src/utils/dom.ts": {"lines_added": 7, "lines_deleted": 7}, "src/utils/index.ts": {"lines_added": 4, "lines_deleted": 0}}
diff --git a/package.json b/package.json index 3621c61..7c93416 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "mind-elixir", - "version": "0.18.0", + "version": "0.18.1", "description": "Mind elixir is a free open source mind map core.", "main": "dist/MindElixir.js", "scripts": { "start": "webpack-dev-server --mode development --env.dist=0", "startd": "webpack-dev-server --mode development --env.dist=1", diff --git a/readme.md b/readme.md index 8077059..f7f907f 100644 --- a/readme.md +++ b/readme.md @@ -49,11 +49,10 @@ import MindElixir, { E } from 'mind-elixir' ``` #### Script tag ```html -<script src="https://cdn.jsdelivr.net/npm/regenerator-runtime"></script> <script src="https://cdn.jsdelivr.net/npm/mind-elixir/dist/mind-elixir.js"></script> ``` ### HTML structure diff --git a/src/plugin/contextMenu.ts b/src/plugin/contextMenu.ts index 07d40be..67cb637 100644 --- a/src/plugin/contextMenu.ts +++ b/src/plugin/contextMenu.ts @@ -1,18 +1,19 @@ import i18n from '../i18n' +import { encodeHTML } from '../utils/index' export default function(mind, option) { const createTips = words => { const div = document.createElement('div') - div.innerHTML = words + div.innerText = words div.style.cssText = 'position:absolute;bottom:20px;left:50%;transform:translateX(-50%);' return div } const createLi = (id, name, keyname) => { const li = document.createElement('li') li.id = id - li.innerHTML = `<span>${name}</span><span>${keyname}</span>` + li.innerHTML = `<span>${encodeHTML(name)}</span><span>${encodeHTML(keyname)}</span>` return li } const locale = i18n[mind.locale] ? mind.locale : 'en' const add_child = createLi('cm-add_child', i18n[locale].addChild, 'tab') diff --git a/src/plugin/nodeMenu.ts b/src/plugin/nodeMenu.ts index 2304add..ba6c13d 100644 --- a/src/plugin/nodeMenu.ts +++ b/src/plugin/nodeMenu.ts @@ -1,11 +1,10 @@ import i18n from '../i18n' -const createDiv = (id, name) => { +const createDiv = (id) => { const div = document.createElement('div') div.id = id - div.innerHTML = `<span>${name}</span>` return div } const colorList = [ '#2c3e50', @@ -29,13 +28,13 @@ const colorList = [ ] export default function(mind) { const locale = i18n[mind.locale] ? mind.locale : 'en' let bgOrFont - const styleDiv = createDiv('nm-style', 'style') - const tagDiv = createDiv('nm-tag', 'tag') - const iconDiv = createDiv('nm-icon', 'icon') + const styleDiv = createDiv('nm-style') + const tagDiv = createDiv('nm-tag') + const iconDiv = createDiv('nm-icon') styleDiv.innerHTML = ` <div class="nm-fontsize-container"> ${['15', '24', '32'] .map(size => { @@ -58,16 +57,12 @@ export default function(mind) { <div class="bof"> <span class="font">${i18n[locale].font}</span> <span class="background">${i18n[locale].background}</span> </div> ` - tagDiv.innerHTML = ` - ${i18n[locale].tag}<input class="nm-tag" tabindex="-1" placeholder="${i18n[locale].tagsSeparate}" /><br> - ` - iconDiv.innerHTML = ` - ${i18n[locale].icon}<input class="nm-icon" tabindex="-1" placeholder="${i18n[locale].iconsSeparate}" /><br> - ` + tagDiv.innerHTML = `${i18n[locale].tag}<input class="nm-tag" tabindex="-1" placeholder="${i18n[locale].tagsSeparate}" /><br>` + iconDiv.innerHTML = `${i18n[locale].icon}<input class="nm-icon" tabindex="-1" placeholder="${i18n[locale].iconsSeparate}" /><br>` const menuContainer = document.createElement('nmenu') menuContainer.innerHTML = ` <div class="button-container"><svg class="icon" aria-hidden="true"> <use xlink:href="#icon-close"></use> diff --git a/src/plugin/toolBar.ts b/src/plugin/toolBar.ts index 2bc5095..206ca81 100644 --- a/src/plugin/toolBar.ts +++ b/src/plugin/toolBar.ts @@ -12,11 +12,11 @@ function createToolBarRBContainer(mind) { const fc = createButton('fullscreen', 'full') const gc = createButton('toCenter', 'living') const zo = createButton('zoomout', 'move') const zi = createButton('zoomin', 'add') const percentage = document.createElement('span') - percentage.innerHTML = '100%' + percentage.innerText = '100%' toolBarRBContainer.appendChild(fc) toolBarRBContainer.appendChild(gc) toolBarRBContainer.appendChild(zo) toolBarRBContainer.appendChild(zi) // toolBarRBContainer.appendChild(percentage) diff --git a/src/utils/dom.ts b/src/utils/dom.ts index 475c567..fe1725c 100644 --- a/src/utils/dom.ts +++ b/src/utils/dom.ts @@ -1,9 +1,9 @@ import { LEFT, RIGHT, SIDE } from '../const' import vari from '../var' import { NodeObj } from '../index' - +import { encodeHTML } from '../utils/index' export type Top = HTMLElement export type Group = HTMLElement export interface Topic extends HTMLElement { @@ -34,11 +34,11 @@ export const createGroup = function(nodeObj: NodeObj) { } return { grp, top } } export const shapeTpc = function(tpc: Topic, nodeObj: NodeObj) { - tpc.innerHTML = nodeObj.topic + tpc.innerText = nodeObj.topic if (nodeObj.style) { tpc.style.color = nodeObj.style.color || 'inherit' tpc.style.background = nodeObj.style.background || 'inherit' tpc.style.fontSize = nodeObj.style.fontSize + 'px' @@ -54,27 +54,27 @@ export const shapeTpc = function(tpc: Topic, nodeObj: NodeObj) { // } if (nodeObj.hyperLink) { const linkContainer = $d.createElement('a') linkContainer.className = 'hyper-link' linkContainer.target = '_blank' - linkContainer.innerHTML = '🔗' + linkContainer.innerText = '🔗' linkContainer.href = nodeObj.hyperLink tpc.appendChild(linkContainer) } if (nodeObj.icons) { const iconsContainer = $d.createElement('span') iconsContainer.className = 'icons' iconsContainer.innerHTML = nodeObj.icons - .map(icon => `<span>${icon}</span>`) + .map(icon => `<span>${encodeHTML(icon)}</span>`) .join('') tpc.appendChild(iconsContainer) } if (nodeObj.tags) { const tagsContainer = $d.createElement('div') tagsContainer.className = 'tags' tagsContainer.innerHTML = nodeObj.tags - .map(tag => `<span>${tag}</span>`) + .map(tag => `<span>${encodeHTML(tag)}</span>`) .join('') tpc.appendChild(tagsContainer) } } @@ -108,11 +108,11 @@ export function createInputDiv(tpc: Topic) { console.time('createInputDiv') if (!tpc) return let div = $d.createElement('div') const origin = tpc.childNodes[0].textContent as string tpc.appendChild(div) - div.innerHTML = origin + div.innerText = origin div.contentEditable = 'true' div.spellcheck = false div.style.cssText = `min-width:${tpc.offsetWidth - 8}px;` if (this.direction === LEFT) div.style.right = '0' div.focus() @@ -159,11 +159,11 @@ export function createInputDiv(tpc: Topic) { } export const createExpander = function(expanded: boolean | undefined): Expander { const expander: Expander = $d.createElement('epd') // 包含未定义 expanded 的情况,未定义视为展开 - expander.innerHTML = expanded !== false ? '-' : '+' + expander.innerText = expanded !== false ? '-' : '+' expander.expanded = expanded !== false expander.className = expanded !== false ? 'minus' : '' return expander } diff --git a/src/utils/index.ts b/src/utils/index.ts index 0a8904c..5c41ad2 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,8 +1,12 @@ import vari from '../var' import { NodeObj } from '../index' +export function encodeHTML(s) { + return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;') +} + export const isMobile = (): boolean => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent )
"version": "0.18.0", <script src="https://cdn.jsdelivr.net/npm/regenerator-runtime"></script> div.innerHTML = words li.innerHTML = `<span>${name}</span><span>${keyname}</span>` const createDiv = (id, name) => { div.innerHTML = `<span>${name}</span>` const styleDiv = createDiv('nm-style', 'style') const tagDiv = createDiv('nm-tag', 'tag') const iconDiv = createDiv('nm-icon', 'icon') tagDiv.innerHTML = ` ${i18n[locale].tag}<input class="nm-tag" tabindex="-1" placeholder="${i18n[locale].tagsSeparate}" /><br> ` iconDiv.innerHTML = ` ${i18n[locale].icon}<input class="nm-icon" tabindex="-1" placeholder="${i18n[locale].iconsSeparate}" /><br> ` percentage.innerHTML = '100%' tpc.innerHTML = nodeObj.topic linkContainer.innerHTML = '🔗' .map(icon => `<span>${icon}</span>`) .map(tag => `<span>${tag}</span>`) div.innerHTML = origin expander.innerHTML = expanded !== false ? '-' : '+'
"version": "0.18.1", import { encodeHTML } from '../utils/index' div.innerText = words li.innerHTML = `<span>${encodeHTML(name)}</span><span>${encodeHTML(keyname)}</span>` const createDiv = (id) => { const styleDiv = createDiv('nm-style') const tagDiv = createDiv('nm-tag') const iconDiv = createDiv('nm-icon') tagDiv.innerHTML = `${i18n[locale].tag}<input class="nm-tag" tabindex="-1" placeholder="${i18n[locale].tagsSeparate}" /><br>` iconDiv.innerHTML = `${i18n[locale].icon}<input class="nm-icon" tabindex="-1" placeholder="${i18n[locale].iconsSeparate}" /><br>` percentage.innerText = '100%' import { encodeHTML } from '../utils/index' tpc.innerText = nodeObj.topic linkContainer.innerText = '🔗' .map(icon => `<span>${encodeHTML(icon)}</span>`) .map(tag => `<span>${encodeHTML(tag)}</span>`) div.innerText = origin expander.innerText = expanded !== false ? '-' : '+' export function encodeHTML(s) { return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;') }
[]
CVE-2020-29074
69eeb9f7baa14ca03b16c9de821f9876def7a36a
https://github.com/LibVNC/x11vnc
[{'lang': 'en', 'value': 'scan.c in x11vnc 0.9.16 uses IPC_CREAT|0777 in shmget calls, which allows access by actors other than the current user.'}]
6.5
8.8
2020-11-25T23:15Z
MEDIUM
CWE-732
Incorrect Permission Assignment for Critical Resource
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
scan: limit access to shared memory segments to current user
2020-11-18 08:40:45 +0100
69eeb9f
200
2
[ "src/scan.c" ]
C
{"src/scan.c": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/src/scan.c b/src/scan.c index 43e00d2..12994d5 100644 --- a/src/scan.c +++ b/src/scan.c @@ -318,11 +318,11 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h, *ximg_ptr = xim; #if HAVE_XSHM shm->shmid = shmget(IPC_PRIVATE, - xim->bytes_per_line * xim->height, IPC_CREAT | 0777); + xim->bytes_per_line * xim->height, IPC_CREAT | 0600); if (shm->shmid == -1) { rfbErr("shmget(%s) failed.\n", name); rfbLogPerror("shmget");
xim->bytes_per_line * xim->height, IPC_CREAT | 0777);
xim->bytes_per_line * xim->height, IPC_CREAT | 0600);
[]
CVE-2021-4286
dba52642f5e95d3da7af1780561213ee6053195f
https://github.com/cocagne/pysrp
[{'lang': 'en', 'value': 'A vulnerability, which was classified as problematic, has been found in cocagne pysrp up to 1.0.16. This issue affects the function calculate_x of the file srp/_ctsrp.py. The manipulation leads to information exposure through discrepancy. Upgrading to version 1.0.17 is able to address this issue. The name of the patch is dba52642f5e95d3da7af1780561213ee6053195f. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-216875.'}]
null
7.5
2022-12-27T11:15Z
nan
CWE-203
Observable Discrepancy
The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor, which exposes security-relevant information about the state of the product, such as whether a particular operation was successful or not.
Merge pull request #43 from ddealmei/fix-srp-vuln Fix side channel leaks
2021-02-01 10:15:45 -0600
dba5264
13
3
[]
Unknown
{"srp/_ctsrp.py": {"lines_added": 6, "lines_deleted": 0}}
[]
CVE-2013-4509
6aae0a9f145f536515e268dd6b25aa740a5edfe7
https://github.com/ibus/ibus-anthy
[{'lang': 'en', 'value': 'The default configuration of IBUS 1.5.4, and possibly 1.5.2 and earlier, when IBus.InputPurpose.PASSWORD is not set and used with GNOME 3, does not obscure the entered password characters, which allows physically proximate attackers to obtain a user password by reading the lockscreen.'}]
1.9
null
2013-11-23T19:55Z
LOW
CWE-255
Credentials Management Errors
Weaknesses in this category are related to the management of credentials.
Added to check the input purpose for gnome-shell password dialog.
2013-08-30 11:13:31 +0900
6aae0a9
127
2
[ "engine/engine.py" ]
Python
{"engine/engine.py": {"lines_added": 14, "lines_deleted": 0}}
diff --git a/engine/engine.py b/engine/engine.py index a42f642..be66738 100644 --- a/engine/engine.py +++ b/engine/engine.py @@ -124,10 +124,14 @@ class Engine(IBus.EngineSimple): self.__context.set_encoding(Anthy.UTF8_ENCODING) # init state self.__idle_id = 0 self.__prop_dict = {} + self.__input_purpose = 0 + self.__has_input_purpose = False + if hasattr(IBus, 'InputPurpose'): + self.__has_input_purpose = True try: self.__is_utf8 = (getpreferredencoding().lower() == 'utf-8') except: self.__is_utf8 = False self.__ibus_version = 0.0 @@ -961,15 +965,21 @@ class Engine(IBus.EngineSimple): size = self.__prefs.get_value('common', 'page_size') if size != self.__lookup_table.get_page_size(): self.__lookup_table.set_page_size(size) def do_focus_out(self): + if self.__has_input_purpose: + self.__input_purpose = 0 mode = self.__prefs.get_value('common', 'behavior_on_focus_out') if mode == 0 or mode == 1: self.__reset() self.__invalidate() + def do_set_content_type(self, purpose, hints): + if self.__has_input_purpose: + self.__input_purpose = purpose + def do_disable(self): self.__reset() self.__invalidate() def do_reset(self): @@ -1805,10 +1815,14 @@ class Engine(IBus.EngineSimple): return True return False return True def __process_key_event_internal2(self, keyval, keycode, state): + if self.__has_input_purpose and \ + self.__input_purpose == IBus.InputPurpose.PASSWORD: + return False + if Engine.__typing_mode == jastring.TYPING_MODE_THUMB_SHIFT and \ Engine.__input_mode not in [INPUT_MODE_LATIN, INPUT_MODE_WIDE_LATIN]: return self.process_key_event_thumb(keyval, keycode, state) is_press = (state & IBus.ModifierType.RELEASE_MASK) == 0
self.__input_purpose = 0 self.__has_input_purpose = False if hasattr(IBus, 'InputPurpose'): self.__has_input_purpose = True if self.__has_input_purpose: self.__input_purpose = 0 def do_set_content_type(self, purpose, hints): if self.__has_input_purpose: self.__input_purpose = purpose if self.__has_input_purpose and \ self.__input_purpose == IBus.InputPurpose.PASSWORD: return False
[ "validation", "input_handling" ]
CVE-2021-29451
8c754a0ad234555e813dcbf9e57d637f9f23d8fb
https://github.com/ManyDesigns/Portofino
[{'lang': 'en', 'value': 'Portofino is an open source web development framework. Portofino before version 5.2.1 did not properly verify the signature of JSON Web Tokens. This allows forging a valid JWT. The issue will be patched in the upcoming 5.2.1 release.'}]
6.4
9.1
2021-04-16T22:15Z
MEDIUM
CWE-347
Improper Verification of Cryptographic Signature
The product does not verify, or incorrectly verifies, the cryptographic signature for data.
Fix security vulnerability
2021-04-01 18:16:16 +0200
8c754a0ad
1,260
3
[ "CHANGELOG.md", "dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java", "portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java" ]
Java
{"CHANGELOG.md": {"lines_added": 2, "lines_deleted": 1}, "dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java": {"lines_added": 4, "lines_deleted": 6}, "portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java": {"lines_added": 5, "lines_deleted": 8}}
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b6acf06f..befeadada 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,12 +11,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Render internal links in text pages with no target attribute (that the Quill editor adds by default). - The welcome page is now a standard text page. - Security.groovy can now have user beans injected with @Autowired. ### Fixed -- Backwards compatibility: revert `T extends Serializable` in CRUD actions, introduced in v5.2.0. [#428](https://github.com/ManyDesigns/Portofino/issues/428) +- Important security vulnerability that may have allowed access with forged tokens. - Authentication token refresh after expiration. [#430](https://github.com/ManyDesigns/Portofino/issues/430) +- Backwards compatibility: revert `T extends Serializable` in CRUD actions, introduced in v5.2.0. [#428](https://github.com/ManyDesigns/Portofino/issues/428) ## [5.2.0] – 2020-11-30 ### Added diff --git a/dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java b/dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java index 7fd45e3b2..c51a6d6b2 100644 --- a/dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java +++ b/dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java @@ -1,11 +1,9 @@ package com.manydesigns.portofino.dispatcher.security.jwt; import com.manydesigns.portofino.dispatcher.security.RolesPermission; -import io.jsonwebtoken.Jwt; -import io.jsonwebtoken.Jwts; -import io.jsonwebtoken.SignatureAlgorithm; +import io.jsonwebtoken.*; import io.jsonwebtoken.io.Decoders; import org.apache.commons.configuration2.Configuration; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; @@ -51,22 +49,22 @@ public class JWTRealm extends AuthorizingRealm { @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { String secret = getSecret(); Key key = new SecretKeySpec(Decoders.BASE64.decode(secret), getSignatureAlgorithm().getJcaName()); - Jwt jwt = Jwts.parser(). + Jws<Claims> jwt = Jwts.parser(). setSigningKey(key). - parse((String) token.getPrincipal()); + parseClaimsJws((String) token.getPrincipal()); Map<String, Serializable> principal = getPrincipal(jwt); return new SimpleAuthenticationInfo(principal, ((String) token.getCredentials()).toCharArray(), getName()); } protected SignatureAlgorithm getSignatureAlgorithm() { return SignatureAlgorithm.HS512; } - protected Map<String, Serializable> getPrincipal(Jwt jwt) { + protected Map<String, Serializable> getPrincipal(Jws<Claims> jwt) { Map<String, Serializable> principal = new HashMap<>(); principal.put("jwt", (Serializable) jwt.getBody()); return principal; } diff --git a/portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java b/portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java index 923cca3d5..0bd777a53 100644 --- a/portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java +++ b/portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java @@ -22,14 +22,11 @@ package com.manydesigns.portofino.shiro; import com.manydesigns.elements.reflection.ClassAccessor; import com.manydesigns.elements.reflection.JavaClassAccessor; import com.manydesigns.portofino.code.CodeBase; import com.manydesigns.portofino.security.SecurityLogic; -import io.jsonwebtoken.Jwt; -import io.jsonwebtoken.JwtException; -import io.jsonwebtoken.Jwts; -import io.jsonwebtoken.SignatureAlgorithm; +import io.jsonwebtoken.*; import io.jsonwebtoken.io.Decoders; import org.apache.commons.configuration2.Configuration; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; @@ -98,23 +95,23 @@ public abstract class AbstractPortofinoRealm extends AuthorizingRealm implements return token instanceof JSONWebToken || super.supports(token); } public AuthenticationInfo loadAuthenticationInfo(JSONWebToken token) { Key key = getJWTKey(); - Jwt jwt; + Jws<Claims> jwt; try { - jwt = Jwts.parser().setSigningKey(key).parse(token.getPrincipal()); + jwt = Jwts.parser().setSigningKey(key).parseClaimsJws(token.getPrincipal()); } catch (JwtException e) { throw new AuthenticationException(e); } String credentials = legacyHashing ? token.getCredentials() : encryptPassword(token.getCredentials()); Object principal = extractPrincipalFromWebToken(jwt); return new SimpleAuthenticationInfo(principal, credentials, getName()); } - protected Object extractPrincipalFromWebToken(Jwt jwt) { - Map body = (Map) jwt.getBody(); + protected Object extractPrincipalFromWebToken(Jws<Claims> jwt) { + Map<String, Object> body = jwt.getBody(); String base64Principal = (String) body.get("serialized-principal"); byte[] serializedPrincipal = Base64.decode(base64Principal); Object principal; ClassLoader loader = Thread.currentThread().getContextClassLoader(); try {
- Backwards compatibility: revert `T extends Serializable` in CRUD actions, introduced in v5.2.0. [#428](https://github.com/ManyDesigns/Portofino/issues/428) import io.jsonwebtoken.Jwt; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; Jwt jwt = Jwts.parser(). parse((String) token.getPrincipal()); protected Map<String, Serializable> getPrincipal(Jwt jwt) { import io.jsonwebtoken.Jwt; import io.jsonwebtoken.JwtException; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; Jwt jwt; jwt = Jwts.parser().setSigningKey(key).parse(token.getPrincipal()); protected Object extractPrincipalFromWebToken(Jwt jwt) { Map body = (Map) jwt.getBody();
- Important security vulnerability that may have allowed access with forged tokens. - Backwards compatibility: revert `T extends Serializable` in CRUD actions, introduced in v5.2.0. [#428](https://github.com/ManyDesigns/Portofino/issues/428) import io.jsonwebtoken.*; Jws<Claims> jwt = Jwts.parser(). parseClaimsJws((String) token.getPrincipal()); protected Map<String, Serializable> getPrincipal(Jws<Claims> jwt) { import io.jsonwebtoken.*; Jws<Claims> jwt; jwt = Jwts.parser().setSigningKey(key).parseClaimsJws(token.getPrincipal()); protected Object extractPrincipalFromWebToken(Jws<Claims> jwt) { Map<String, Object> body = jwt.getBody();
[]
CVE-2022-3952
94653cb357806c9cf24d8d294e6afea33f8f0775
https://github.com/ManyDesigns/Portofino
[{'lang': 'en', 'value': 'A vulnerability has been found in ManyDesigns Portofino 5.3.2 and classified as problematic. Affected by this vulnerability is the function createTempDir of the file WarFileLauncher.java. The manipulation leads to creation of temporary file in directory with insecure permissions. Upgrading to version 5.3.3 is able to address this issue. The name of the patch is 94653cb357806c9cf24d8d294e6afea33f8f0775. It is recommended to upgrade the affected component. The identifier VDB-213457 was assigned to this vulnerability.'}]
null
7.1
2022-11-11T14:15Z
nan
CWE-668
Exposure of Resource to Wrong Sphere
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
vuln-fix: Temporary Directory Hijacking or Information Disclosure This fixes either Temporary Directory Hijacking, or Temporary Directory Local Information Disclosure. Weakness: CWE-379: Creation of Temporary File in Directory with Insecure Permissions Severity: High CVSSS: 7.3 Detection: CodeQL & OpenRewrite (https://public.moderne.io/recipes/org.openrewrite.java.security.UseFilesCreateTempDirectory) Reported-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com> Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com> Bug-tracker: https://github.com/JLLeitschuh/security-research/issues/10 Co-authored-by: Moderne <team@moderne.io>
2022-10-04 00:22:10 +0000
94653cb35
1,260
3
[ "microservices/launcher/src/main/java/com/manydesigns/portofino/microservices/launcher/WarFileLauncher.java" ]
Java
{"microservices/launcher/src/main/java/com/manydesigns/portofino/microservices/launcher/WarFileLauncher.java": {"lines_added": 2, "lines_deleted": 3}}
diff --git a/microservices/launcher/src/main/java/com/manydesigns/portofino/microservices/launcher/WarFileLauncher.java b/microservices/launcher/src/main/java/com/manydesigns/portofino/microservices/launcher/WarFileLauncher.java index 5e8ea8c8e..dec746aef 100644 --- a/microservices/launcher/src/main/java/com/manydesigns/portofino/microservices/launcher/WarFileLauncher.java +++ b/microservices/launcher/src/main/java/com/manydesigns/portofino/microservices/launcher/WarFileLauncher.java @@ -7,10 +7,11 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.net.URLClassLoader; +import java.nio.file.Files; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import java.util.jar.JarEntry; import java.util.jar.JarFile; @@ -78,13 +79,11 @@ public class WarFileLauncher { /** * Returns the absolute path to the temp directory. */ public static File createTempDir(int port) throws IOException { - File tempDir = File.createTempFile("portofino.tomcat.", "." + port); - tempDir.delete(); - tempDir.mkdir(); + File tempDir = Files.createTempDirectory("portofino.tomcat." + "." + port).toFile(); tempDir.deleteOnExit(); return tempDir; } }
File tempDir = File.createTempFile("portofino.tomcat.", "." + port); tempDir.delete(); tempDir.mkdir();
import java.nio.file.Files; File tempDir = Files.createTempDirectory("portofino.tomcat." + "." + port).toFile();
[ "authentication", "authorization" ]
CVE-2022-22984
e8dd2a330b40d7fc0ab47e34413e80a0146d7ac3
https://github.com/snyk/snyk-hex-plugin
[{'lang': 'en', 'value': 'The package snyk before 1.1064.0; the package snyk-mvn-plugin before 2.31.3; the package snyk-gradle-plugin before 3.24.5; the package @snyk/snyk-cocoapods-plugin before 2.5.3; the package snyk-sbt-plugin before 2.16.2; the package snyk-python-plugin before 1.24.2; the package snyk-docker-plugin before 5.6.5; the package @snyk/snyk-hex-plugin before 1.1.6 are vulnerable to Command Injection due to an incomplete fix for [CVE-2022-40764](https://security.snyk.io/vuln/SNYK-JS-SNYK-3037342). A successful exploit allows attackers to run arbitrary commands on the host system where the Snyk CLI is installed by passing in crafted command line flags. In order to exploit this vulnerability, a user would have to execute the snyk test command on untrusted files. In most cases, an attacker positioned to control the command line arguments to the Snyk CLI would already be positioned to execute arbitrary commands. However, this could be abused in specific scenarios, such as continuous integration pipelines, where developers can control the arguments passed to the Snyk CLI to leverage this component as part of a wider attack against an integration/build pipeline. This issue has been addressed in the latest Snyk Docker images available at https://hub.docker.com/r/snyk/snyk as of 2022-11-29. Images downloaded and built prior to that date should be updated. The issue has also been addressed in the Snyk TeamCity CI/CD plugin as of version v20221130.093605.'}]
null
6.3
2022-11-30T13:15Z
nan
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
fix: quote spawn args
2022-11-29 10:27:21 +0100
e8dd2a3
67
3
[ ".snyk", "lib/sub-process.ts", "package.json" ]
Other
{".snyk": {"lines_added": 8, "lines_deleted": 3}, "lib/sub-process.ts": {"lines_added": 2, "lines_deleted": 0}, "package.json": {"lines_added": 1, "lines_deleted": 0}}
diff --git a/.snyk b/.snyk index ceb0a97..4b826da 100644 --- a/.snyk +++ b/.snyk @@ -1,5 +1,10 @@ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.13.5 -ignore: {} -# patches apply the minimum changes required to fix a vulnerability +version: v1.25.0 +# ignores vulnerabilities until expiry date; change duration by modifying expiry date +ignore: + 'snyk:lic:npm:shescape:MPL-2.0': + - '*': + reason: None Given + expires: 2122-12-29T08:08:41.608Z + created: 2022-11-29T08:08:41.611Z patch: {} diff --git a/lib/sub-process.ts b/lib/sub-process.ts index 22a99e9..9588470 100644 --- a/lib/sub-process.ts +++ b/lib/sub-process.ts @@ -1,7 +1,8 @@ import * as childProcess from 'child_process'; import { debug } from './debug'; +import { quoteAll } from 'shescape'; export function execute( command: string, args: string[], options?: { cwd?: string }, @@ -10,10 +11,11 @@ export function execute( const spawnOptions: childProcess.SpawnOptions = { shell: true }; if (options && options.cwd) { spawnOptions.cwd = options.cwd; } + args = quoteAll(args, spawnOptions); return new Promise((resolve, reject) => { let stdout = ''; let stderr = ''; diff --git a/package.json b/package.json index 153cd55..36f5017 100644 --- a/package.json +++ b/package.json @@ -31,10 +31,11 @@ }, "dependencies": { "@snyk/dep-graph": "^1.28.0", "@snyk/mix-parser": "^1.1.1", "debug": "^4.3.1", + "shescape": "1.6.1", "tmp": "^0.0.33", "tslib": "^2.0.0", "upath": "2.0.1" }, "devDependencies": {
version: v1.13.5 ignore: {} # patches apply the minimum changes required to fix a vulnerability
version: v1.25.0 # ignores vulnerabilities until expiry date; change duration by modifying expiry date ignore: 'snyk:lic:npm:shescape:MPL-2.0': - '*': reason: None Given expires: 2122-12-29T08:08:41.608Z created: 2022-11-29T08:08:41.611Z import { quoteAll } from 'shescape'; args = quoteAll(args, spawnOptions); "shescape": "1.6.1",
[]
CVE-2022-4639
b19f8a6046b080e4c2e28354a58556bb26040c6f
https://github.com/yrutschle/sslh
[{'lang': 'en', 'value': 'A vulnerability, which was classified as critical, has been found in sslh. This issue affects the function hexdump of the file probe.c of the component Packet Dumping Handler. The manipulation of the argument msg_info leads to format string. The attack may be initiated remotely. The name of the patch is b19f8a6046b080e4c2e28354a58556bb26040c6f. It is recommended to apply a patch to fix this issue. The identifier VDB-216497 was assigned to this vulnerability.'}]
null
9.8
2022-12-21T22:15Z
nan
CWE-134
Use of Externally-Controlled Format String
The product uses a function that accepts a format string as an argument, but the format string originates from an external source.
fix possible format string exploit if packet dumping enabled Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2022-09-10 12:53:57 +0200
b19f8a6
138
2
[ "probe.c" ]
C
{"probe.c": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/probe.c b/probe.c index bef73af..da35d3d 100644 --- a/probe.c +++ b/probe.c @@ -114,11 +114,11 @@ void hexdump(msg_info msg_info, const char *mem, unsigned int len) else /* other char */ str[c++] = '.'; } str[c++] = '\n'; str[c++] = 0; - print_message(msg_info, str); + print_message(msg_info, "%s", str); c = 0; } } }
print_message(msg_info, str);
print_message(msg_info, "%s", str);
[]
CVE-2022-1650
10ee0c4881a6ba2fe65ec18ed195ac35889583c4
https://github.com/eventsource/eventsource
[{'lang': 'en', 'value': 'Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository eventsource/eventsource prior to v2.0.2.\n\n'}]
5.8
9.3
2022-05-12T11:15Z
MEDIUM
CWE-212
Improper Removal of Sensitive Information Before Storage or Transfer
The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.
fix: strip sensitive headers on redirect to different origin
2022-05-12 06:39:46 +0200
10ee0c4
44
2
[ "lib/eventsource.js", "test/eventsource_test.js" ]
JavaScript
{"lib/eventsource.js": {"lines_added": 38, "lines_deleted": 10}, "test/eventsource_test.js": {"lines_added": 43, "lines_deleted": 0}}
diff --git a/lib/eventsource.js b/lib/eventsource.js index ffcbe37..d6836bb 100644 --- a/lib/eventsource.js +++ b/lib/eventsource.js @@ -30,10 +30,12 @@ function hasBom (buf) { * @param {Object} [eventSourceInitDict] extra init params. See README for details. * @api public **/ function EventSource (url, eventSourceInitDict) { var readyState = EventSource.CONNECTING + var headers = eventSourceInitDict && eventSourceInitDict.headers + var hasNewOrigin = false Object.defineProperty(this, 'readyState', { get: function () { return readyState } }) @@ -51,15 +53,16 @@ function EventSource (url, eventSourceInitDict) { function onConnectionClosed (message) { if (readyState === EventSource.CLOSED) return readyState = EventSource.CONNECTING _emit('error', new Event('error', {message: message})) - // The url may have been changed by a temporary - // redirect. If that's the case, revert it now. + // The url may have been changed by a temporary redirect. If that's the case, + // revert it now, and flag that we are no longer pointing to a new origin if (reconnectUrl) { url = reconnectUrl reconnectUrl = null + hasNewOrigin = false } setTimeout(function () { if (readyState !== EventSource.CONNECTING || self.connectionInProgress) { return } @@ -68,13 +71,13 @@ function EventSource (url, eventSourceInitDict) { }, self.reconnectInterval) } var req var lastEventId = '' - if (eventSourceInitDict && eventSourceInitDict.headers && eventSourceInitDict.headers['Last-Event-ID']) { - lastEventId = eventSourceInitDict.headers['Last-Event-ID'] - delete eventSourceInitDict.headers['Last-Event-ID'] + if (headers && headers['Last-Event-ID']) { + lastEventId = headers['Last-Event-ID'] + delete headers['Last-Event-ID'] } var discardTrailingNewline = false var data = '' var eventName = '' @@ -84,13 +87,14 @@ function EventSource (url, eventSourceInitDict) { function connect () { var options = parse(url) var isSecure = options.protocol === 'https:' options.headers = { 'Cache-Control': 'no-cache', 'Accept': 'text/event-stream' } if (lastEventId) options.headers['Last-Event-ID'] = lastEventId - if (eventSourceInitDict && eventSourceInitDict.headers) { - for (var i in eventSourceInitDict.headers) { - var header = eventSourceInitDict.headers[i] + if (headers) { + var reqHeaders = hasNewOrigin ? removeUnsafeHeaders(headers) : headers + for (var i in reqHeaders) { + var header = reqHeaders[i] if (header) { options.headers[i] = header } } } @@ -146,17 +150,21 @@ function EventSource (url, eventSourceInitDict) { return } // Handle HTTP redirects if (res.statusCode === 301 || res.statusCode === 302 || res.statusCode === 307) { - if (!res.headers.location) { + var location = res.headers.location + if (!location) { // Server sent redirect response without Location header. _emit('error', new Event('error', {status: res.statusCode, message: res.statusMessage})) return } + var prevOrigin = new URL(url).origin + var nextOrigin = new URL(location).origin + hasNewOrigin = prevOrigin !== nextOrigin if (res.statusCode === 307) reconnectUrl = url - url = res.headers.location + url = location process.nextTick(connect) return } if (res.statusCode !== 200) { @@ -461,5 +469,25 @@ function MessageEvent (type, eventInitDict) { if (eventInitDict.hasOwnProperty(f)) { Object.defineProperty(this, f, { writable: false, value: eventInitDict[f], enumerable: true }) } } } + +/** + * Returns a new object of headers that does not include any authorization and cookie headers + * + * @param {Object} headers An object of headers ({[headerName]: headerValue}) + * @return {Object} a new object of headers + * @api private + */ +function removeUnsafeHeaders (headers) { + var safe = {} + for (var key in headers) { + if (/^(cookie|authorization)$/i.test(key)) { + continue + } + + safe[key] = headers[key] + } + + return safe +} diff --git a/test/eventsource_test.js b/test/eventsource_test.js index 31f6eea..8900042 100644 --- a/test/eventsource_test.js +++ b/test/eventsource_test.js @@ -579,10 +579,53 @@ describe('HTTP Request', function () { server.close(done) } }) }) + it('follows http ' + status + ' redirects, drops sensitive headers on origin change', function (done) { + var redirectSuffix = '/foobar' + var clientRequestedRedirectUrl = false + var receivedHeaders = {} + createServer(function (err, server) { + if (err) return done(err) + + var newServerUrl = server.url.replace('http://localhost', 'http://127.0.0.1') + + server.on('request', function (req, res) { + if (req.url === '/') { + res.writeHead(status, { + 'Connection': 'Close', + 'Location': newServerUrl + redirectSuffix + }) + res.end() + } else if (req.url === redirectSuffix) { + clientRequestedRedirectUrl = true + receivedHeaders = req.headers + res.writeHead(200, {'Content-Type': 'text/event-stream'}) + res.end() + } + }) + + var es = new EventSource(server.url, { + headers: { + keep: 'me', + authorization: 'Bearer someToken', + cookie: 'some-cookie=yep' + } + }) + + es.onopen = function () { + assert.ok(clientRequestedRedirectUrl) + assert.equal(newServerUrl + redirectSuffix, es.url) + assert.equal(receivedHeaders.keep, 'me', 'safe header no longer present') + assert.equal(typeof receivedHeaders.authorization, 'undefined', 'authorization header still present') + assert.equal(typeof receivedHeaders.cookie, 'undefined', 'cookie header still present') + server.close(done) + } + }) + }) + it('causes error event when response is ' + status + ' with missing location', function (done) { createServer(function (err, server) { if (err) return done(err) server.on('request', function (req, res) {
// The url may have been changed by a temporary // redirect. If that's the case, revert it now. if (eventSourceInitDict && eventSourceInitDict.headers && eventSourceInitDict.headers['Last-Event-ID']) { lastEventId = eventSourceInitDict.headers['Last-Event-ID'] delete eventSourceInitDict.headers['Last-Event-ID'] if (eventSourceInitDict && eventSourceInitDict.headers) { for (var i in eventSourceInitDict.headers) { var header = eventSourceInitDict.headers[i] if (!res.headers.location) { url = res.headers.location
var headers = eventSourceInitDict && eventSourceInitDict.headers var hasNewOrigin = false // The url may have been changed by a temporary redirect. If that's the case, // revert it now, and flag that we are no longer pointing to a new origin hasNewOrigin = false if (headers && headers['Last-Event-ID']) { lastEventId = headers['Last-Event-ID'] delete headers['Last-Event-ID'] if (headers) { var reqHeaders = hasNewOrigin ? removeUnsafeHeaders(headers) : headers for (var i in reqHeaders) { var header = reqHeaders[i] var location = res.headers.location if (!location) { var prevOrigin = new URL(url).origin var nextOrigin = new URL(location).origin hasNewOrigin = prevOrigin !== nextOrigin url = location /** * Returns a new object of headers that does not include any authorization and cookie headers * * @param {Object} headers An object of headers ({[headerName]: headerValue}) * @return {Object} a new object of headers * @api private */ function removeUnsafeHeaders (headers) { var safe = {} for (var key in headers) { if (/^(cookie|authorization)$/i.test(key)) { continue } safe[key] = headers[key] } return safe } it('follows http ' + status + ' redirects, drops sensitive headers on origin change', function (done) { var redirectSuffix = '/foobar' var clientRequestedRedirectUrl = false var receivedHeaders = {} createServer(function (err, server) { if (err) return done(err) var newServerUrl = server.url.replace('http://localhost', 'http://127.0.0.1') server.on('request', function (req, res) { if (req.url === '/') { res.writeHead(status, { 'Connection': 'Close', 'Location': newServerUrl + redirectSuffix }) res.end() } else if (req.url === redirectSuffix) { clientRequestedRedirectUrl = true receivedHeaders = req.headers res.writeHead(200, {'Content-Type': 'text/event-stream'}) res.end() } }) var es = new EventSource(server.url, { headers: { keep: 'me', authorization: 'Bearer someToken', cookie: 'some-cookie=yep' } }) es.onopen = function () { assert.ok(clientRequestedRedirectUrl) assert.equal(newServerUrl + redirectSuffix, es.url) assert.equal(receivedHeaders.keep, 'me', 'safe header no longer present') assert.equal(typeof receivedHeaders.authorization, 'undefined', 'authorization header still present') assert.equal(typeof receivedHeaders.cookie, 'undefined', 'cookie header still present') server.close(done) } }) })
[]
CVE-2020-26298
a699c82292b17c8e6a62e1914d5eccc252272793
https://github.com/vmg/redcarpet
[{'lang': 'en', 'value': 'Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.'}]
3.5
5.4
2021-01-11T19:15Z
LOW
CWE-74
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Fix a security issue using `:quote` with `:escape_html` Reported by @johan-smits.
2020-12-15 21:01:19 +0100
a699c82
134
2
[ "CHANGELOG.md", "ext/redcarpet/html.c", "lib/redcarpet.rb", "redcarpet.gemspec", "test/markdown_test.rb" ]
Ruby
{"CHANGELOG.md": {"lines_added": 7, "lines_deleted": 0}, "ext/redcarpet/html.c": {"lines_added": 8, "lines_deleted": 1}, "lib/redcarpet.rb": {"lines_added": 1, "lines_deleted": 1}, "redcarpet.gemspec": {"lines_added": 2, "lines_deleted": 2}, "test/markdown_test.rb": {"lines_added": 10, "lines_deleted": 0}}
diff --git a/CHANGELOG.md b/CHANGELOG.md index e7203c6..4ff6958 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ # Changelog +## Version 3.5.1 (Security) + +* Fix a security vulnerability using `:quote` in combination with the + `:escape_html` option. + + Reported by *Johan Smits*. + ## Version 3.5.0 * Avoid mutating the options hash passed to a render object. Refs #663. diff --git a/ext/redcarpet/html.c b/ext/redcarpet/html.c index 805ddd8..785f780 100644 --- a/ext/redcarpet/html.c +++ b/ext/redcarpet/html.c @@ -253,12 +253,19 @@ static int rndr_quote(struct buf *ob, const struct buf *text, void *opaque) { if (!text || !text->size) return 0; + struct html_renderopt *options = opaque; + BUFPUTSL(ob, "<q>"); - bufput(ob, text->data, text->size); + + if (options->flags & HTML_ESCAPE) + escape_html(ob, text->data, text->size); + else + bufput(ob, text->data, text->size); + BUFPUTSL(ob, "</q>"); return 1; } diff --git a/lib/redcarpet.rb b/lib/redcarpet.rb index 4a494a4..c166147 100644 --- a/lib/redcarpet.rb +++ b/lib/redcarpet.rb @@ -1,10 +1,10 @@ require 'redcarpet.so' require 'redcarpet/compat' module Redcarpet - VERSION = '3.5.0' + VERSION = '3.5.1' class Markdown attr_reader :renderer end diff --git a/redcarpet.gemspec b/redcarpet.gemspec index bb0453b..322782b 100644 --- a/redcarpet.gemspec +++ b/redcarpet.gemspec @@ -1,12 +1,12 @@ # encoding: utf-8 Gem::Specification.new do |s| s.name = 'redcarpet' - s.version = '3.5.0' + s.version = '3.5.1' s.summary = "Markdown that smells nice" s.description = 'A fast, safe and extensible Markdown to (X)HTML parser' - s.date = '2019-07-29' + s.date = '2020-12-15' s.email = 'vicent@github.com' s.homepage = 'http://github.com/vmg/redcarpet' s.authors = ["Natacha Porté", "Vicent Martí"] s.license = 'MIT' s.required_ruby_version = '>= 1.9.2' diff --git a/test/markdown_test.rb b/test/markdown_test.rb index 4347be9..68de125 100644 --- a/test/markdown_test.rb +++ b/test/markdown_test.rb @@ -218,10 +218,20 @@ class MarkdownTest < Redcarpet::TestCase refute render(text).include? '<q>quote</q>' assert_equal '<p>this is a <q>quote</q></p>', output end + def test_quote_flag_honors_escape_html + text = 'We are not "<svg/onload=pwned>"' + + output_enabled = render(text, with: [:quote, :escape_html]) + output_disabled = render(text, with: [:quote]) + + assert_equal "<p>We are not <q>&lt;svg/onload=pwned&gt;</q></p>", output_enabled + assert_equal "<p>We are not <q><svg/onload=pwned></q></p>", output_disabled + end + def test_that_fenced_flag_works text = <<-fenced.strip_heredoc This is a simple test ~~~~~
bufput(ob, text->data, text->size); VERSION = '3.5.0' s.version = '3.5.0' s.date = '2019-07-29'
## Version 3.5.1 (Security) * Fix a security vulnerability using `:quote` in combination with the `:escape_html` option. Reported by *Johan Smits*. struct html_renderopt *options = opaque; if (options->flags & HTML_ESCAPE) escape_html(ob, text->data, text->size); else bufput(ob, text->data, text->size); VERSION = '3.5.1' s.version = '3.5.1' s.date = '2020-12-15' def test_quote_flag_honors_escape_html text = 'We are not "<svg/onload=pwned>"' output_enabled = render(text, with: [:quote, :escape_html]) output_disabled = render(text, with: [:quote]) assert_equal "<p>We are not <q>&lt;svg/onload=pwned&gt;</q></p>", output_enabled assert_equal "<p>We are not <q><svg/onload=pwned></q></p>", output_disabled end
[ "sanitization" ]
CVE-2020-26298
a699c82292b17c8e6a62e1914d5eccc252272793
https://github.com/vmg/redcarpet
[{'lang': 'en', 'value': 'Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.'}]
3.5
5.4
2021-01-11T19:15Z
LOW
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Fix a security issue using `:quote` with `:escape_html` Reported by @johan-smits.
2020-12-15 21:01:19 +0100
a699c82
134
2
[ "CHANGELOG.md", "ext/redcarpet/html.c", "lib/redcarpet.rb", "redcarpet.gemspec", "test/markdown_test.rb" ]
Ruby
{"CHANGELOG.md": {"lines_added": 7, "lines_deleted": 0}, "ext/redcarpet/html.c": {"lines_added": 8, "lines_deleted": 1}, "lib/redcarpet.rb": {"lines_added": 1, "lines_deleted": 1}, "redcarpet.gemspec": {"lines_added": 2, "lines_deleted": 2}, "test/markdown_test.rb": {"lines_added": 10, "lines_deleted": 0}}
diff --git a/CHANGELOG.md b/CHANGELOG.md index e7203c6..4ff6958 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ # Changelog +## Version 3.5.1 (Security) + +* Fix a security vulnerability using `:quote` in combination with the + `:escape_html` option. + + Reported by *Johan Smits*. + ## Version 3.5.0 * Avoid mutating the options hash passed to a render object. Refs #663. diff --git a/ext/redcarpet/html.c b/ext/redcarpet/html.c index 805ddd8..785f780 100644 --- a/ext/redcarpet/html.c +++ b/ext/redcarpet/html.c @@ -253,12 +253,19 @@ static int rndr_quote(struct buf *ob, const struct buf *text, void *opaque) { if (!text || !text->size) return 0; + struct html_renderopt *options = opaque; + BUFPUTSL(ob, "<q>"); - bufput(ob, text->data, text->size); + + if (options->flags & HTML_ESCAPE) + escape_html(ob, text->data, text->size); + else + bufput(ob, text->data, text->size); + BUFPUTSL(ob, "</q>"); return 1; } diff --git a/lib/redcarpet.rb b/lib/redcarpet.rb index 4a494a4..c166147 100644 --- a/lib/redcarpet.rb +++ b/lib/redcarpet.rb @@ -1,10 +1,10 @@ require 'redcarpet.so' require 'redcarpet/compat' module Redcarpet - VERSION = '3.5.0' + VERSION = '3.5.1' class Markdown attr_reader :renderer end diff --git a/redcarpet.gemspec b/redcarpet.gemspec index bb0453b..322782b 100644 --- a/redcarpet.gemspec +++ b/redcarpet.gemspec @@ -1,12 +1,12 @@ # encoding: utf-8 Gem::Specification.new do |s| s.name = 'redcarpet' - s.version = '3.5.0' + s.version = '3.5.1' s.summary = "Markdown that smells nice" s.description = 'A fast, safe and extensible Markdown to (X)HTML parser' - s.date = '2019-07-29' + s.date = '2020-12-15' s.email = 'vicent@github.com' s.homepage = 'http://github.com/vmg/redcarpet' s.authors = ["Natacha Porté", "Vicent Martí"] s.license = 'MIT' s.required_ruby_version = '>= 1.9.2' diff --git a/test/markdown_test.rb b/test/markdown_test.rb index 4347be9..68de125 100644 --- a/test/markdown_test.rb +++ b/test/markdown_test.rb @@ -218,10 +218,20 @@ class MarkdownTest < Redcarpet::TestCase refute render(text).include? '<q>quote</q>' assert_equal '<p>this is a <q>quote</q></p>', output end + def test_quote_flag_honors_escape_html + text = 'We are not "<svg/onload=pwned>"' + + output_enabled = render(text, with: [:quote, :escape_html]) + output_disabled = render(text, with: [:quote]) + + assert_equal "<p>We are not <q>&lt;svg/onload=pwned&gt;</q></p>", output_enabled + assert_equal "<p>We are not <q><svg/onload=pwned></q></p>", output_disabled + end + def test_that_fenced_flag_works text = <<-fenced.strip_heredoc This is a simple test ~~~~~
bufput(ob, text->data, text->size); VERSION = '3.5.0' s.version = '3.5.0' s.date = '2019-07-29'
## Version 3.5.1 (Security) * Fix a security vulnerability using `:quote` in combination with the `:escape_html` option. Reported by *Johan Smits*. struct html_renderopt *options = opaque; if (options->flags & HTML_ESCAPE) escape_html(ob, text->data, text->size); else bufput(ob, text->data, text->size); VERSION = '3.5.1' s.version = '3.5.1' s.date = '2020-12-15' def test_quote_flag_honors_escape_html text = 'We are not "<svg/onload=pwned>"' output_enabled = render(text, with: [:quote, :escape_html]) output_disabled = render(text, with: [:quote]) assert_equal "<p>We are not <q>&lt;svg/onload=pwned&gt;</q></p>", output_enabled assert_equal "<p>We are not <q><svg/onload=pwned></q></p>", output_disabled end
[ "sanitization" ]
CVE-2014-125079
e52a758f96861dcef2dabfecb9da191bb2e07761
https://github.com/agy/pontifex.http
[{'lang': 'en', 'value': 'A vulnerability was found in agy pontifex.http. It has been declared as critical. This vulnerability affects unknown code of the file lib/Http.coffee. The manipulation leads to sql injection. Upgrading to version 0.1.0 is able to address this issue. The name of the patch is e52a758f96861dcef2dabfecb9da191bb2e07761. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-218356.'}]
null
9.8
2023-01-15T09:15Z
nan
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Fixed SQL Injection Hole
2014-07-30 13:47:31 -0400
e52a758
6
2
[ "lib/Http.coffee" ]
Other
{"lib/Http.coffee": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/lib/Http.coffee b/lib/Http.coffee index d089d5e..0442cbc 100644 --- a/lib/Http.coffee +++ b/lib/Http.coffee @@ -24,11 +24,11 @@ Http = (Bridge,Url) => self.server.stats.push [ 'wrote_connection', req.url, req.session, domain, req.socket.bytesWritten, new Date().getTime()] self.server.stats.push [ 'closed_connection', req.url, req.session, domain, "#{req.socket.remoteAddress}:#{req.socket.remotePort}", new Date().getTime()] return token = req.headers.authorization.match(/bearer (.*)/i)[1] auth_req = - url: "http://auth.wot.io/authenticate_token/#{token}/#{command}/#{path}" + url: "http://auth.wot.io/authenticate_token/#{token}/#{command}/#{path}".replace("'", "''") json: true try request auth_req, (error, response, body) -> if !error and response.statusCode == 200 console.log body
url: "http://auth.wot.io/authenticate_token/#{token}/#{command}/#{path}"
url: "http://auth.wot.io/authenticate_token/#{token}/#{command}/#{path}".replace("'", "''")
[]
CVE-2023-7166
c62da9bb3a9b3603014d0edb436146512631100d
https://github.com/201206030/novel-plus
[{'lang': 'en', 'value': 'A vulnerability classified as problematic has been found in Novel-Plus up to 4.2.0. This affects an unknown part of the file /user/updateUserInfo of the component HTTP POST Request Handler. The manipulation of the argument nickName leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of the patch is c62da9bb3a9b3603014d0edb436146512631100d. It is recommended to apply a patch to fix this issue. The identifier VDB-249201 was assigned to this vulnerability.'}]
null
5.4
2023-12-29T09:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
fix: nickName、userPhoto 更新校验
2023-12-29 00:11:01 +0800
c62da9b
3,605
2
[ "novel-common/src/main/java/com/java2nb/novel/entity/User.java" ]
Java
{"novel-common/src/main/java/com/java2nb/novel/entity/User.java": {"lines_added": 14, "lines_deleted": 9}}
diff --git a/novel-common/src/main/java/com/java2nb/novel/entity/User.java b/novel-common/src/main/java/com/java2nb/novel/entity/User.java index fd3805e..04b93af 100644 --- a/novel-common/src/main/java/com/java2nb/novel/entity/User.java +++ b/novel-common/src/main/java/com/java2nb/novel/entity/User.java @@ -12,47 +12,52 @@ public class User { @Null(groups = {AddGroup.class, UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private Long id; - @NotBlank(groups = {AddGroup.class},message="手机号不能为空!") - @Pattern(groups = {AddGroup.class},regexp="^1[3|4|5|6|7|8|9][0-9]{9}$",message="手机号格式不正确!") + @NotBlank(groups = {AddGroup.class}, message = "手机号不能为空!") + @Pattern(groups = {AddGroup.class}, regexp = "^1[3|4|5|6|7|8|9][0-9]{9}$", message = "手机号格式不正确!") + @Null(groups = {UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private String username; - @NotBlank(groups = {AddGroup.class},message="密码不能为空!") + @NotBlank(groups = {AddGroup.class}, message = "密码不能为空!") @Null(groups = {UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private String password; @Null(groups = {AddGroup.class}) + @Pattern(groups = { + UpdateGroup.class}, regexp = "[\u4E00-\u9FA5A-Za-z0-9_]{1,20}", message = "昵称格式不正确!") @Generated("org.mybatis.generator.api.MyBatisGenerator") private String nickName; @Null(groups = {AddGroup.class}) + @Pattern(groups = { + UpdateGroup.class}, regexp = "^/localPic/\\d{4}/\\d{2}/\\d{2}/[A-Za-z0-9]+\\.(jpg|jpeg|swf|gif|png|JPG|JPEG|SWF|GIF|PNG)$", message = "只能上传图片格式的文件!") @Generated("org.mybatis.generator.api.MyBatisGenerator") private String userPhoto; @Null(groups = {AddGroup.class}) - @Min(value = 0,groups = {UpdateGroup.class}) - @Max(value = 1,groups = {UpdateGroup.class}) + @Min(value = 0, groups = {UpdateGroup.class}) + @Max(value = 1, groups = {UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private Byte userSex; - @Null(groups = {AddGroup.class,UpdateGroup.class}) + @Null(groups = {AddGroup.class, UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private Long accountBalance; - @Null(groups = {AddGroup.class,UpdateGroup.class}) + @Null(groups = {AddGroup.class, UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private Byte status; - @Null(groups = {AddGroup.class,UpdateGroup.class}) + @Null(groups = {AddGroup.class, UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private Date createTime; - @Null(groups = {AddGroup.class,UpdateGroup.class}) + @Null(groups = {AddGroup.class, UpdateGroup.class}) @Generated("org.mybatis.generator.api.MyBatisGenerator") private Date updateTime; @Generated("org.mybatis.generator.api.MyBatisGenerator") public Long getId() {
@NotBlank(groups = {AddGroup.class},message="手机号不能为空!") @Pattern(groups = {AddGroup.class},regexp="^1[3|4|5|6|7|8|9][0-9]{9}$",message="手机号格式不正确!") @NotBlank(groups = {AddGroup.class},message="密码不能为空!") @Min(value = 0,groups = {UpdateGroup.class}) @Max(value = 1,groups = {UpdateGroup.class}) @Null(groups = {AddGroup.class,UpdateGroup.class}) @Null(groups = {AddGroup.class,UpdateGroup.class}) @Null(groups = {AddGroup.class,UpdateGroup.class}) @Null(groups = {AddGroup.class,UpdateGroup.class})
@NotBlank(groups = {AddGroup.class}, message = "手机号不能为空!") @Pattern(groups = {AddGroup.class}, regexp = "^1[3|4|5|6|7|8|9][0-9]{9}$", message = "手机号格式不正确!") @Null(groups = {UpdateGroup.class}) @NotBlank(groups = {AddGroup.class}, message = "密码不能为空!") @Pattern(groups = { UpdateGroup.class}, regexp = "[\u4E00-\u9FA5A-Za-z0-9_]{1,20}", message = "昵称格式不正确!") @Pattern(groups = { UpdateGroup.class}, regexp = "^/localPic/\\d{4}/\\d{2}/\\d{2}/[A-Za-z0-9]+\\.(jpg|jpeg|swf|gif|png|JPG|JPEG|SWF|GIF|PNG)$", message = "只能上传图片格式的文件!") @Min(value = 0, groups = {UpdateGroup.class}) @Max(value = 1, groups = {UpdateGroup.class}) @Null(groups = {AddGroup.class, UpdateGroup.class}) @Null(groups = {AddGroup.class, UpdateGroup.class}) @Null(groups = {AddGroup.class, UpdateGroup.class}) @Null(groups = {AddGroup.class, UpdateGroup.class})
[]
CVE-2023-7171
d6093d8182362422370d7eaf6c53afde9ee45215
https://github.com/201206030/novel-plus
[{'lang': 'en', 'value': 'A vulnerability was found in Novel-Plus up to 4.2.0. It has been declared as problematic. Affected by this vulnerability is an unknown functionality of the file novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java of the component Friendly Link Handler. The manipulation leads to cross site scripting. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The patch is named d6093d8182362422370d7eaf6c53afde9ee45215. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-249307.'}]
null
4.8
2023-12-29T18:15Z
nan
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
fix(novel-admin): 友情链接URL格式校验
2023-12-29 18:54:53 +0800
d6093d8
3,605
2
[ "novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java", "novel-admin/src/main/java/com/java2nb/novel/domain/FriendLinkDO.java", "novel-admin/src/main/resources/templates/novel/friendLink/add.html", "novel-admin/src/main/resources/templates/novel/friendLink/edit.html" ]
Java
{"novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java": {"lines_added": 3, "lines_deleted": 2}, "novel-admin/src/main/java/com/java2nb/novel/domain/FriendLinkDO.java": {"lines_added": 160, "lines_deleted": 148}, "novel-admin/src/main/resources/templates/novel/friendLink/add.html": {"lines_added": 1, "lines_deleted": 1}, "novel-admin/src/main/resources/templates/novel/friendLink/edit.html": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java b/novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java index a26a40a..dd86893 100644 --- a/novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java +++ b/novel-admin/src/main/java/com/java2nb/novel/controller/FriendLinkController.java @@ -10,10 +10,11 @@ import io.swagger.annotations.ApiOperation; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; @@ -81,11 +82,11 @@ public class FriendLinkController { */ @ApiOperation(value = "新增", notes = "新增") @ResponseBody @PostMapping("/save") @RequiresPermissions("novel:friendLink:add") - public R save(FriendLinkDO friendLink) { + public R save(@Validated FriendLinkDO friendLink) { if (friendLinkService.save(friendLink) > 0) { redisTemplate.delete(CacheKey.INDEX_LINK_KEY); return R.ok(); } return R.error(); @@ -96,11 +97,11 @@ public class FriendLinkController { */ @ApiOperation(value = "修改", notes = "修改") @ResponseBody @RequestMapping("/update") @RequiresPermissions("novel:friendLink:edit") - public R update(FriendLinkDO friendLink) { + public R update(@Validated FriendLinkDO friendLink) { friendLinkService.update(friendLink); redisTemplate.delete(CacheKey.INDEX_LINK_KEY); return R.ok(); } diff --git a/novel-admin/src/main/java/com/java2nb/novel/domain/FriendLinkDO.java b/novel-admin/src/main/java/com/java2nb/novel/domain/FriendLinkDO.java index b0b9d73..d026566 100644 --- a/novel-admin/src/main/java/com/java2nb/novel/domain/FriendLinkDO.java +++ b/novel-admin/src/main/java/com/java2nb/novel/domain/FriendLinkDO.java @@ -1,163 +1,175 @@ package com.java2nb.novel.domain; -import java.io.Serializable; - - -import java.math.BigDecimal; - import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.java2nb.common.jsonserializer.LongToStringSerializer; - - +import org.hibernate.validator.constraints.URL; import org.springframework.format.annotation.DateTimeFormat; -import java.util.Date; +import java.io.Serializable; +import java.util.Date; /** - * - * * @author xiongxy * @email 1179705413@qq.com * @date 2023-04-14 15:12:25 */ public class FriendLinkDO implements Serializable { - private static final long serialVersionUID = 1L; - - - //主键 - private Integer id; - //链接名 - private String linkName; - //链接url - private String linkUrl; - //排序号 - private Integer sort; - //是否开启,0:不开启,1:开启 - private Integer isOpen; - //创建人id - //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) - //所以通过序列化成字符串来解决 - @JsonSerialize(using = LongToStringSerializer.class) - private Long createUserId; - //创建时间 - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date createTime; - //更新者用户id - //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) - //所以通过序列化成字符串来解决 - @JsonSerialize(using = LongToStringSerializer.class) - private Long updateUserId; - //更新时间 - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date updateTime; - - /** - * 设置:主键 - */ - public void setId(Integer id) { - this.id = id; - } - /** - * 获取:主键 - */ - public Integer getId() { - return id; - } - /** - * 设置:链接名 - */ - public void setLinkName(String linkName) { - this.linkName = linkName; - } - /** - * 获取:链接名 - */ - public String getLinkName() { - return linkName; - } - /** - * 设置:链接url - */ - public void setLinkUrl(String linkUrl) { - this.linkUrl = linkUrl; - } - /** - * 获取:链接url - */ - public String getLinkUrl() { - return linkUrl; - } - /** - * 设置:排序号 - */ - public void setSort(Integer sort) { - this.sort = sort; - } - /** - * 获取:排序号 - */ - public Integer getSort() { - return sort; - } - /** - * 设置:是否开启,0:不开启,1:开启 - */ - public void setIsOpen(Integer isOpen) { - this.isOpen = isOpen; - } - /** - * 获取:是否开启,0:不开启,1:开启 - */ - public Integer getIsOpen() { - return isOpen; - } - /** - * 设置:创建人id - */ - public void setCreateUserId(Long createUserId) { - this.createUserId = createUserId; - } - /** - * 获取:创建人id - */ - public Long getCreateUserId() { - return createUserId; - } - /** - * 设置:创建时间 - */ - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } - /** - * 获取:创建时间 - */ - public Date getCreateTime() { - return createTime; - } - /** - * 设置:更新者用户id - */ - public void setUpdateUserId(Long updateUserId) { - this.updateUserId = updateUserId; - } - /** - * 获取:更新者用户id - */ - public Long getUpdateUserId() { - return updateUserId; - } - /** - * 设置:更新时间 - */ - public void setUpdateTime(Date updateTime) { - this.updateTime = updateTime; - } - /** - * 获取:更新时间 - */ - public Date getUpdateTime() { - return updateTime; - } + + private static final long serialVersionUID = 1L; + + + //主键 + private Integer id; + //链接名 + private String linkName; + //链接url + @URL + private String linkUrl; + //排序号 + private Integer sort; + //是否开启,0:不开启,1:开启 + private Integer isOpen; + //创建人id + //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) + //所以通过序列化成字符串来解决 + @JsonSerialize(using = LongToStringSerializer.class) + private Long createUserId; + //创建时间 + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + //更新者用户id + //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) + //所以通过序列化成字符串来解决 + @JsonSerialize(using = LongToStringSerializer.class) + private Long updateUserId; + //更新时间 + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date updateTime; + + /** + * 设置:主键 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + + /** + * 设置:链接名 + */ + public void setLinkName(String linkName) { + this.linkName = linkName; + } + + /** + * 获取:链接名 + */ + public String getLinkName() { + return linkName; + } + + /** + * 设置:链接url + */ + public void setLinkUrl(String linkUrl) { + this.linkUrl = linkUrl; + } + + /** + * 获取:链接url + */ + public String getLinkUrl() { + return linkUrl; + } + + /** + * 设置:排序号 + */ + public void setSort(Integer sort) { + this.sort = sort; + } + + /** + * 获取:排序号 + */ + public Integer getSort() { + return sort; + } + + /** + * 设置:是否开启,0:不开启,1:开启 + */ + public void setIsOpen(Integer isOpen) { + this.isOpen = isOpen; + } + + /** + * 获取:是否开启,0:不开启,1:开启 + */ + public Integer getIsOpen() { + return isOpen; + } + + /** + * 设置:创建人id + */ + public void setCreateUserId(Long createUserId) { + this.createUserId = createUserId; + } + + /** + * 获取:创建人id + */ + public Long getCreateUserId() { + return createUserId; + } + + /** + * 设置:创建时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + + /** + * 设置:更新者用户id + */ + public void setUpdateUserId(Long updateUserId) { + this.updateUserId = updateUserId; + } + + /** + * 获取:更新者用户id + */ + public Long getUpdateUserId() { + return updateUserId; + } + + /** + * 设置:更新时间 + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * 获取:更新时间 + */ + public Date getUpdateTime() { + return updateTime; + } } diff --git a/novel-admin/src/main/resources/templates/novel/friendLink/add.html b/novel-admin/src/main/resources/templates/novel/friendLink/add.html index 66e3d11..10096e1 100644 --- a/novel-admin/src/main/resources/templates/novel/friendLink/add.html +++ b/novel-admin/src/main/resources/templates/novel/friendLink/add.html @@ -21,11 +21,11 @@ <div class="form-group"> <label class="col-sm-3 control-label">链接url:</label> <div class="col-sm-8"> <input id="linkUrl" name="linkUrl" class="form-control" - type="text" required> + type="url" required> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">排序号:</label> diff --git a/novel-admin/src/main/resources/templates/novel/friendLink/edit.html b/novel-admin/src/main/resources/templates/novel/friendLink/edit.html index cef908d..f04ff49 100644 --- a/novel-admin/src/main/resources/templates/novel/friendLink/edit.html +++ b/novel-admin/src/main/resources/templates/novel/friendLink/edit.html @@ -24,11 +24,11 @@ <label class="col-sm-3 control-label">链接url:</label> <div class="col-sm-8"> <input id="linkUrl" name="linkUrl" th:value="${friendLink.linkUrl}" class="form-control" - type="text" required> + type="url" required> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">排序号:</label> <div class="col-sm-8">
public R save(FriendLinkDO friendLink) { public R update(FriendLinkDO friendLink) { import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; * * private static final long serialVersionUID = 1L; //主键 private Integer id; //链接名 private String linkName; //链接url private String linkUrl; //排序号 private Integer sort; //是否开启,0:不开启,1:开启 private Integer isOpen; //创建人id //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) //所以通过序列化成字符串来解决 @JsonSerialize(using = LongToStringSerializer.class) private Long createUserId; //创建时间 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; //更新者用户id //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) //所以通过序列化成字符串来解决 @JsonSerialize(using = LongToStringSerializer.class) private Long updateUserId; //更新时间 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; /** * 设置:主键 */ public void setId(Integer id) { this.id = id; } /** * 获取:主键 */ public Integer getId() { return id; } /** * 设置:链接名 */ public void setLinkName(String linkName) { this.linkName = linkName; } /** * 获取:链接名 */ public String getLinkName() { return linkName; } /** * 设置:链接url */ public void setLinkUrl(String linkUrl) { this.linkUrl = linkUrl; } /** * 获取:链接url */ public String getLinkUrl() { return linkUrl; } /** * 设置:排序号 */ public void setSort(Integer sort) { this.sort = sort; } /** * 获取:排序号 */ public Integer getSort() { return sort; } /** * 设置:是否开启,0:不开启,1:开启 */ public void setIsOpen(Integer isOpen) { this.isOpen = isOpen; } /** * 获取:是否开启,0:不开启,1:开启 */ public Integer getIsOpen() { return isOpen; } /** * 设置:创建人id */ public void setCreateUserId(Long createUserId) { this.createUserId = createUserId; } /** * 获取:创建人id */ public Long getCreateUserId() { return createUserId; } /** * 设置:创建时间 */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * 获取:创建时间 */ public Date getCreateTime() { return createTime; } /** * 设置:更新者用户id */ public void setUpdateUserId(Long updateUserId) { this.updateUserId = updateUserId; } /** * 获取:更新者用户id */ public Long getUpdateUserId() { return updateUserId; } /** * 设置:更新时间 */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } /** * 获取:更新时间 */ public Date getUpdateTime() { return updateTime; } type="text" required> type="text" required>
import org.springframework.validation.annotation.Validated; public R save(@Validated FriendLinkDO friendLink) { public R update(@Validated FriendLinkDO friendLink) { import org.hibernate.validator.constraints.URL; import java.io.Serializable; import java.util.Date; private static final long serialVersionUID = 1L; //主键 private Integer id; //链接名 private String linkName; //链接url @URL private String linkUrl; //排序号 private Integer sort; //是否开启,0:不开启,1:开启 private Integer isOpen; //创建人id //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) //所以通过序列化成字符串来解决 @JsonSerialize(using = LongToStringSerializer.class) private Long createUserId; //创建时间 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; //更新者用户id //java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值) //所以通过序列化成字符串来解决 @JsonSerialize(using = LongToStringSerializer.class) private Long updateUserId; //更新时间 @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; /** * 设置:主键 */ public void setId(Integer id) { this.id = id; } /** * 获取:主键 */ public Integer getId() { return id; } /** * 设置:链接名 */ public void setLinkName(String linkName) { this.linkName = linkName; } /** * 获取:链接名 */ public String getLinkName() { return linkName; } /** * 设置:链接url */ public void setLinkUrl(String linkUrl) { this.linkUrl = linkUrl; } /** * 获取:链接url */ public String getLinkUrl() { return linkUrl; } /** * 设置:排序号 */ public void setSort(Integer sort) { this.sort = sort; } /** * 获取:排序号 */ public Integer getSort() { return sort; } /** * 设置:是否开启,0:不开启,1:开启 */ public void setIsOpen(Integer isOpen) { this.isOpen = isOpen; } /** * 获取:是否开启,0:不开启,1:开启 */ public Integer getIsOpen() { return isOpen; } /** * 设置:创建人id */ public void setCreateUserId(Long createUserId) { this.createUserId = createUserId; } /** * 获取:创建人id */ public Long getCreateUserId() { return createUserId; } /** * 设置:创建时间 */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * 获取:创建时间 */ public Date getCreateTime() { return createTime; } /** * 设置:更新者用户id */ public void setUpdateUserId(Long updateUserId) { this.updateUserId = updateUserId; } /** * 获取:更新者用户id */ public Long getUpdateUserId() { return updateUserId; } /** * 设置:更新时间 */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } /** * 获取:更新时间 */ public Date getUpdateTime() { return updateTime; } type="url" required> type="url" required>
[]
CVE-2021-22204
cf0f4e7dcd024ca99615bfd1102a841a25dde031
https://github.com/exiftool/exiftool
[{'lang': 'en', 'value': 'Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up allows arbitrary code execution when parsing the malicious image'}]
6.8
7.8
2021-04-23T18:15Z
MEDIUM
CWE-94
Improper Control of Generation of Code ('Code Injection')
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Update to 12.24
2021-04-13 11:11:46 -0400
cf0f4e7d
1,246
2
[ "Changes", "META.json", "META.yml", "README", "config_files/acdsee.config", "exiftool", "html/ExifTool.html", "html/ExifTool.pdf", "html/Shift.pdf", "html/TagNames/FujiFilm.html", "html/TagNames/Jpeg2000.html", "html/TagNames/MacOS.html", "html/TagNames/Panasonic.html", "html/TagNames/PhaseOne.html", "html/TagNames/Sony.html", "html/TagNames/index.html", "html/exiftool_pod.html", "html/exiftool_pod.pdf", "html/history.html", "html/index.html", "html/install.html", "lib/Image/ExifTool.pm", "lib/Image/ExifTool.pod", "lib/Image/ExifTool/DjVu.pm", "lib/Image/ExifTool/FujiFilm.pm", "lib/Image/ExifTool/Jpeg2000.pm", "lib/Image/ExifTool/MacOS.pm", "lib/Image/ExifTool/Microsoft.pm", "lib/Image/ExifTool/Panasonic.pm", "lib/Image/ExifTool/PhaseOne.pm", "lib/Image/ExifTool/Sony.pm", "lib/Image/ExifTool/TagLookup.pm", "lib/Image/ExifTool/TagNames.pod", "lib/Image/ExifTool/Writer.pl", "perl-Image-ExifTool.spec", "t/ExifTool_2.out", "t/ExifTool_29.out", "t/Writer_51.out", "windows_exiftool" ]
HTML
{"Changes": {"lines_added": 11, "lines_deleted": 0}, "META.json": {"lines_added": 1, "lines_deleted": 1}, "META.yml": {"lines_added": 1, "lines_deleted": 1}, "README": {"lines_added": 2, "lines_deleted": 2}, "config_files/acdsee.config": {"lines_added": 193, "lines_deleted": 6}, "exiftool": {"lines_added": 2, "lines_deleted": 2}, "html/ExifTool.html": {"lines_added": 2, "lines_deleted": 2}, "html/ExifTool.pdf": {"lines_added": 268, "lines_deleted": 266}, "html/Shift.pdf": {"lines_added": 3, "lines_deleted": 3}, "html/TagNames/FujiFilm.html": {"lines_added": 26, "lines_deleted": 9}, "html/TagNames/Jpeg2000.html": {"lines_added": 18, "lines_deleted": 10}, "html/TagNames/MacOS.html": {"lines_added": 2, "lines_deleted": 2}, "html/TagNames/Panasonic.html": {"lines_added": 16, "lines_deleted": 1}, "html/TagNames/PhaseOne.html": {"lines_added": 8, "lines_deleted": 5}, "html/TagNames/Sony.html": {"lines_added": 181, "lines_deleted": 74}, "html/TagNames/index.html": {"lines_added": 2, "lines_deleted": 2}, "html/exiftool_pod.html": {"lines_added": 1, "lines_deleted": 1}, "html/exiftool_pod.pdf": {"lines_added": 44, "lines_deleted": 44}, "html/history.html": {"lines_added": 13, "lines_deleted": 1}, "html/index.html": {"lines_added": 6, "lines_deleted": 6}, "html/install.html": {"lines_added": 11, "lines_deleted": 11}, "lib/Image/ExifTool.pm": {"lines_added": 12, "lines_deleted": 9}, "lib/Image/ExifTool.pod": {"lines_added": 4, "lines_deleted": 3}, "lib/Image/ExifTool/DjVu.pm": {"lines_added": 6, "lines_deleted": 5}, "lib/Image/ExifTool/FujiFilm.pm": {"lines_added": 18, "lines_deleted": 8}, "lib/Image/ExifTool/Jpeg2000.pm": {"lines_added": 69, "lines_deleted": 21}, "lib/Image/ExifTool/MacOS.pm": {"lines_added": 1, "lines_deleted": 1}, "lib/Image/ExifTool/Microsoft.pm": {"lines_added": 3, "lines_deleted": 1}, "lib/Image/ExifTool/Panasonic.pm": {"lines_added": 14, "lines_deleted": 1}, "lib/Image/ExifTool/PhaseOne.pm": {"lines_added": 4, "lines_deleted": 3}, "lib/Image/ExifTool/Sony.pm": {"lines_added": 88, "lines_deleted": 22}, "lib/Image/ExifTool/TagLookup.pm": {"lines_added": 22, "lines_deleted": 12}, "lib/Image/ExifTool/TagNames.pod": {"lines_added": 28, "lines_deleted": 13}, "lib/Image/ExifTool/Writer.pl": {"lines_added": 1, "lines_deleted": 0}, "perl-Image-ExifTool.spec": {"lines_added": 1, "lines_deleted": 1}, "t/ExifTool_2.out": {"lines_added": 20, "lines_deleted": 14}, "t/ExifTool_29.out": {"lines_added": 18, "lines_deleted": 12}, "t/Writer_51.out": {"lines_added": 22, "lines_deleted": 16}, "windows_exiftool": {"lines_added": 2, "lines_deleted": 2}}
diff --git a/Changes b/Changes index 3e694fe7..16922a81 100644 --- a/Changes +++ b/Changes @@ -5,10 +5,21 @@ ExifTool Version History RSS feed: https://exiftool.org/rss.xml Note: The most recent production release is Version 12.16. (Other versions are considered development releases, and are not uploaded to MetaCPAN.) +Apr. 13, 2021 - Version 12.24 + + - Added a new PhaseOne RawFormat value (thanks LibRaw) + - Decode a new Sony tag (thanks Jos Roost) + - Decode a few new Panasonic and FujiFilm tags (thanks LibRaw and Greybeard) + - Patched security vulnerability in DjVu reader + - Updated acdsee.config in distribution (thanks StarGeek) + - Recognize AutoCAD DXF files + - More work on experimental JUMBF read support + - More work on experimental JXL read/write support + Apr. 1, 2021 - Version 12.23 - Added support for Olympus ORI files - Added experimental read/write support for JPEG XL images - Added experimental read support for JUMBF metadata in JPEG and Jpeg2000 diff --git a/META.json b/META.json index f7969da4..f59bd9cd 100644 --- a/META.json +++ b/META.json @@ -45,8 +45,8 @@ "perl" : "5.004" } } }, "release_status" : "stable", - "version" : "12.23", + "version" : "12.24", "x_serialization_backend" : "JSON::PP version 4.02" } diff --git a/META.yml b/META.yml index 3211347e..c874781e 100644 --- a/META.yml +++ b/META.yml @@ -26,7 +26,7 @@ recommends: IO::Uncompress::RawInflate: 0 POSIX::strptime: 0 Time::HiRes: 0 requires: perl: 5.004 -version: 12.23 +version: 12.24 x_serialization_backend: 'JSON::PP version 4.02' diff --git a/README b/README index 7e6d3873..bad3817d 100644 --- a/README +++ b/README @@ -104,12 +104,12 @@ the directory where you downloaded the ExifTool distribution package. Assuming, for example, you downloaded it to a folder called "Desktop" in your home directory, then you would type the following commands in a terminal window to extract and run ExifTool: cd ~/Desktop - gzip -dc Image-ExifTool-12.23.tar.gz | tar -xf - - cd Image-ExifTool-12.23 + gzip -dc Image-ExifTool-12.24.tar.gz | tar -xf - + cd Image-ExifTool-12.24 ./exiftool t/images/ExifTool.jpg Note: These commands extract meta information from one of the test images. To use one of your images instead, enter the full path name of your file in place of "t/images/ExifTool.jpg". diff --git a/config_files/acdsee.config b/config_files/acdsee.config index f05fdba9..86330f2e 100644 --- a/config_files/acdsee.config +++ b/config_files/acdsee.config @@ -1,23 +1,79 @@ #------------------------------------------------------------------------------ # File: acdsee.config # # Description: This config file defines ACDSee XMP region tags for writing. +# The following tags are created in the XMP-acdsee-rs group # -# Usage: exiftool -config acdsee.config -ACDSEETAG=VALUE FILE ... +# RegionInfoACDSee : The structured tag for the ACDSee regions +# (similar to XMP-mwg-rs:RegionInfo) +# +# The following tags are the width, height, and unit of the +# image at the time of processing when storing image region +# metadata. They are similar to the AppliedToDimensions tags +# of the MWG regions. +# ACDSeeRegionAppliedToDimensionsH : Height of the image +# ACDSeeRegionAppliedToDimensionsUnit : Unit of the image +# ACDSeeRegionAppliedToDimensionsW : Width of the image +# +# Actual region data, stored in an array. These flattened tags +# are treated as List Type tags. There are two region types, +# the ALYArea and the DLYArea. The ALYArea tags tags assigned +# by ACDSee and are usually square in dimensions. The DLYArea +# tags are both the tags assigned by ACDSee (but possibly +# rectangular instead of square) as well as any manual +# assigned tags. They are similar to the area tags of the MWG +# regions. +# ACDSeeRegionDLYAreaH : Height of DLY region +# ACDSeeRegionDLYAreaW : Width of DLY region +# ACDSeeRegionDLYAreaX : X centerpoint of DLY region +# ACDSeeRegionDLYAreaY : Y centerpoint of DLY region +# ACDSeeRegionALYAreaH : Height of ALY region +# ACDSeeRegionALYAreaW : Width of ALY region +# ACDSeeRegionALYAreaX : X centerpoint of ALY region +# ACDSeeRegionALYAreaY : Y centerpoint of ALY region +# ACDSeeRegionName : Name of region +# ACDSeeRegionType : Type of region +# ACDSeeRegionNameAssignType : How the type was assigned. +# "Manual" is the only known +# entry at this time +# +# Conversion tags. These tags can be used to convert other region +# type tags to ACDSee regions. +# MPRegion2ACDSeeRegion : Converts a Microsoft RegionInfoMP +# IPTCRegion2ACDSeeRegion : Converts an IPTC ImageRegion +# MWGRegion2ACDSeeRegion : Converts a MWG RegionInfo +# +# Usage: To set individual tags +# exiftool -config acdsee.config -ACDSEETAG=VALUE FILE ... +# +# To convert Microsoft Regions to ACDSee regions +# exiftool -config acdsee.config "-RegionInfoACDSee<MPRegion2ACDSeeRegion" File ... +# To convert IPTC regions to ACDSee regions +# exiftool -config acdsee.config "-RegionInfoACDSee<IPTCRegion2ACDSeeRegion" File ... +# To convert MWG Regions to ACDSee regions +# exiftool -config acdsee.config "-RegionInfoACDSee<MWGRegion2ACDSeeRegion" File ... # # Requires: ExifTool version 10.28 or later # # Revisions: 2020/01/28 - Bryan K. Williams (aka StarGeek) Created +# 2021/04/08 - BKW Added tags to convert from Microsoft, IPTC, +# and MWG regions to ACDSee regions based upon +# convert_regions.config. Expanded docs. +# Shortened ADCSee tag names and added shortcuts +# from original names to new names, for example +# "RegionInfoACDSeeAppliedToDimensions*" -> "ACDSeeRegionAppliedToDimensions*" +# "RegionInfoACDSeeRegionList* -> "ACDSeeRegion*" #------------------------------------------------------------------------------ +use Data::Dumper; my %sACDSeeDimensions = ( STRUCT_NAME => 'ACDSee Dimensions', NAMESPACE => {'acdsee-stDim' => 'http://ns.acdsee.com/sType/Dimensions#'}, - 'w' => { Writable => 'real' }, - 'h' => { Writable => 'real' }, - 'unit' => { }, + 'w' => { Writable => 'real' }, + 'h' => { Writable => 'real' }, + 'unit' => { }, ); my %sACDSeeArea = ( STRUCT_NAME => 'ACDSee Area', NAMESPACE => { 'acdsee-stArea' => 'http://ns.acdsee.com/sType/Area#' }, @@ -36,36 +92,167 @@ my %sACDSeeRegionStruct = ( NameAssignType => { }, Type => { }, ); %Image::ExifTool::UserDefined = ( - # new XMP namespaces (eg. xxx) must be added to the Main XMP table: + # new XMP namespaces for ACDSee regions 'Image::ExifTool::XMP::Main' => { 'acdsee-rs' => { # <-- must be the same as the NAMESPACE prefix SubDirectory => { TagTable => 'Image::ExifTool::UserDefined::ACDSeeRegions' }, }, }, + 'Image::ExifTool::Composite' => { + # create an ACDSee RegionInfo structure from a Microsoft RegionInfoMP structure + MPRegion2ACDSeeRegion => { + Require => { + 0 => 'RegionInfoMP', + 1 => 'ImageWidth', + 2 => 'ImageHeight', + }, + ValueConv => q{ + my ($rgn, @newRgns); + foreach $rgn (@{$val[0]{Regions}}) { + my $name = $$rgn{PersonDisplayName}; + next unless $$rgn{Rectangle} or defined $name; + my %newRgn = ( Type => 'Face' ); + if (defined $name) { + # don't add ignored faces + next if $name eq 'ffffffffffffffff'; + $newRgn{Name} = $name; + } + if ($$rgn{Rectangle}) { + my @rect = split /\s*,\s*/, $$rgn{Rectangle}; + $newRgn{DLYArea} = { + X => $rect[0] + $rect[2]/2, + Y => $rect[1] + $rect[3]/2, + W => $rect[2], + H => $rect[3], + } if @rect == 4; + } + push @newRgns, \%newRgn; + } + return { + AppliedToDimensions => { W => $val[1], H => $val[2], Unit => 'pixel' }, + RegionList => \@newRgns, + }; + }, + }, + # create an ACDSee RegionInfo structure from an IPTC ImageRegion list + IPTCRegion2ACDSeeRegion => { + Require => { + 0 => 'ImageRegion', + 1 => 'ImageWidth', + 2 => 'ImageHeight', + }, + ValueConv => q{ + my ($rgn, @newRgns); + my $rgns = ref $val[0] eq 'ARRAY' ? $val[0] : [ $val[0] ]; + foreach $rgn (@$rgns) { + my %newRgn = ( Type => 'Face' ); + if ($$rgn{RegionBoundary} and $$rgn{RegionBoundary}{RbShape} eq 'rectangle') { + my @rect = @{$$rgn{RegionBoundary}}{'RbX','RbY','RbW','RbH'}; + if ($$rgn{RegionBoundary}{RbUnit} eq 'pixel') { + $rect[0] /= $val[1], $rect[2] /= $val[1]; + $rect[1] /= $val[2]; $rect[3] /= $val[2]; + } + $newRgn{'DLYArea'} = { + X => $rect[0] + $rect[2]/2, + Y => $rect[1] + $rect[3]/2, + W => $rect[2], + H => $rect[3], + }; + } else { + next unless defined $$rgn{Name}; + } + $newRgn{Name} = $$rgn{Name} if defined $$rgn{Name}; + push @newRgns, \%newRgn; + } + return { + AppliedToDimensions => { 'W' => $val[1], 'H' => $val[2], 'Unit' => 'pixel' }, + RegionList => \@newRgns, + }; + }, + }, + + # create an MWG RegionInfo structure from an IPTC ImageRegion list + MWGRegion2ACDSeeRegion => { + Require => { + 0 => 'RegionInfo', + 1 => 'ImageWidth', + 2 => 'ImageHeight', + }, + ValueConv => q{ + my ($rgn, @newRgns); + my %newRgn; + foreach $rgn (@{$val[0]{RegionList}}) { + next unless $$rgn{Area} or defined $$rgn{Name}; + my %newRgn; + if ($$rgn{Area}) { + $newRgn{'DLYArea'} = { + 'X' => $$rgn{Area}{'X'}, + 'Y' => $$rgn{Area}{'Y'}, + 'W' => $$rgn{Area}{'W'}, + 'H' => $$rgn{Area}{'H'}, + }; + }; + $newRgn{Name} = $$rgn{Name} if defined $$rgn{Name}; + $newRgn{'Type'} = $$rgn{'Type'} if defined $$rgn{'Type'}; + push @newRgns, \%newRgn; + } + return { + 'AppliedToDimensions' => $val[0]{'AppliedToDimensions'}, + RegionList => \@newRgns, + } + }, + }, + #### + }, ); %Image::ExifTool::UserDefined::ACDSeeRegions = ( GROUPS => { 0 => 'XMP', 1 => 'XMP-acdsee', 2 => 'Image' }, NAMESPACE => { 'acdsee-rs' => 'http://ns.acdsee.com/regions/' }, WRITABLE => 'string', # (default to string-type tags) Regions => { Name => 'RegionInfoACDSee', + FlatName => 'ACDSee', # the "Struct" entry defines the structure fields Struct => { # optional structure name (used for warning messages only) STRUCT_NAME => 'ACDSee RegionInfo', RegionList => { + FlatName => 'Region', Struct => \%sACDSeeRegionStruct, List => 'Bag', }, - AppliedToDimensions => { Struct => \%sACDSeeDimensions }, + AppliedToDimensions => { + FlatName => 'RegionAppliedToDimensions',Struct => \%sACDSeeDimensions }, }, }, ); +# Shortcuts to old names added so as not to break previously used commands +%Image::ExifTool::UserDefined::Shortcuts = ( + RegionInfoACDSeeAppliedToDimensionsH => 'ACDSeeRegionAppliedToDimensionsH', + RegionInfoACDSeeAppliedToDimensionsUnit => 'ACDSeeRegionAppliedToDimensionsUnit', + RegionInfoACDSeeAppliedToDimensionsW => 'ACDSeeRegionAppliedToDimensionsW', + RegionInfoACDSeeRegionListDLYAreaH => 'ACDSeeRegionDLYAreaH', + RegionInfoACDSeeRegionListDLYAreaW => 'ACDSeeRegionDLYAreaW', + RegionInfoACDSeeRegionListDLYAreaX => 'ACDSeeRegionDLYAreaX', + RegionInfoACDSeeRegionListDLYAreaY => 'ACDSeeRegionDLYAreaY', + RegionInfoACDSeeRegionListALGAreaH => 'ACDSeeRegionALGAreaH', + RegionInfoACDSeeRegionListALGAreaW => 'ACDSeeRegionALGAreaW', + RegionInfoACDSeeRegionListALGAreaX => 'ACDSeeRegionALGAreaX', + RegionInfoACDSeeRegionListALGAreaY => 'ACDSeeRegionALGAreaY', + RegionInfoACDSeeRegionListName => 'ACDSeeRegionName', + RegionInfoACDSeeRegionListType => 'ACDSeeRegionType', + RegionInfoACDSeeRegionListNameAssignType => 'ACDSeeRegionNameAssignType', +); + +# Forced -struct option during debugging +#%Image::ExifTool::UserDefined::Options = ( +# Struct => 1, +#); #------------------------------------------------------------------------------ 1; #end \ No newline at end of file diff --git a/exiftool b/exiftool index 1df77e34..f6a4caea 100755 --- a/exiftool +++ b/exiftool @@ -8,11 +8,11 @@ # (See html/history.html for revision history) #------------------------------------------------------------------------------ use strict; require 5.004; -my $version = '12.23'; +my $version = '12.24'; # add our 'lib' directory to the include list BEFORE 'use Image::ExifTool' my $exeDir; BEGIN { # (undocumented -xpath option added in 11.91, must come before other options) @@ -5391,11 +5391,11 @@ with this command: exiftool -p test.fmt a.jpg b.jpg produces output like this: - -- Generated by ExifTool 12.23 -- + -- Generated by ExifTool 12.24 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end -- diff --git a/html/ExifTool.html b/html/ExifTool.html index ce0cb898..3b71f3b8 100644 --- a/html/ExifTool.html +++ b/html/ExifTool.html @@ -427,11 +427,11 @@ numerical options.</p> Tag values representing large binary data blocks (eg. ThumbnailImage) are not necessarily extracted unless this option is set or the tag is specifically requested by name.</td> <td align=center>0 or 1</td><td align=center>undef</td></tr> <tr id="BlockExtract"><td>BlockExtract</td><td>Flag to extract some directories - (mentioned in the Tag Name documentation) as a block.</td> + (mentioned in the <a href="TagNames/index.html">Tag Name documentation</a>) as a block.</td> <td align=center><table class=clear> <tr><td valign=top align=right><b>0</b>&nbsp;=</td><td>Extract as block only if tag specified by name</td></tr> <tr><td valign=top align=right><b>1</b>&nbsp;=</td><td>Extract as block, and extract contained tags</td></tr> <tr><td valign=top align=right><b>2</b>&nbsp;=</td><td>Extract as block without contained tags</td></tr> </table></td><td align=center>undef</td></tr> @@ -785,11 +785,11 @@ numerical options.</p> <td align=center>undef</td></tr> <tr id="RequestAll"><td>RequestAll</td><td>Flag to request all tags to be extracted. This causes some tags to be generated which normally would not be unless specifically requested (by passing the tag name to <a href="#ImageInfo">ImageInfo</a> or <a href="#ExtractInfo">ExtractInfo</a>). May be set to 2 or 3 to enable generation - of some additional tags as mentioned in the tag name documentation.</td> + of some additional tags as mentioned in the <a href="TagNames/index.html">Tag Name documentation</a>.</td> <td align=center>0, 1, 2 or 3</td><td align=center>undef</td></tr> <tr id="RequestTags"><td>RequestTags</td><td>List of additional tag and/or group names to request in the next call to <a href="#ExtractInfo">ExtractInfo</a>. This option is useful only for tags/groups which aren't extracted unless specifically requested. Groups are requested by adding a colon after the name (eg. "MacOS:"). Names are converted to lower diff --git a/html/ExifTool.pdf b/html/ExifTool.pdf index c1735324..82f1a631 100644 --- a/html/ExifTool.pdf +++ b/html/ExifTool.pdf @@ -10,11 +10,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 1)Tj +( -- Image::ExifTool 12.24 -- 1)Tj /TT4 1 Tf 0 -1.6333 TD (EXIFTOOL\(1\) User Contributed Perl Documentation EXIFTOOL\(1\))Tj 0 -4.4 TD (N)Tj @@ -187,11 +187,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 2)Tj +( -- Image::ExifTool 12.24 -- 2)Tj /TT4 1 Tf 0 -1.6333 TD ( ARW r/w | EXV r/w/c | M2TS r | PBM r/w | SRW r/w)Tj 0 -1.1 TD ( ASF r | F4A/V r/w | M4A/V r/w | PCD r | SVG r)Tj @@ -382,11 +382,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 3)Tj +( -- Image::ExifTool 12.24 -- 3)Tj /TT4 1 Tf 0 -1.6333 TD ( be exported with the ":Public" export list.)Tj 0 -2.2 TD (M)Tj @@ -617,11 +617,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 4)Tj +( -- Image::ExifTool 12.24 -- 4)Tj /TT4 1 Tf 0 -1.6333 TD ( Advantages of using the object-oriented form are that options)Tj 0 -1.1 TD ( may be set before calling "ImageInfo", and the object may be)Tj @@ -768,11 +768,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 5)Tj +( -- Image::ExifTool 12.24 -- 5)Tj /TT4 1 Tf 0 -1.6333 TD ( "Sort" settings the entries may not be in the same order as)Tj 0 -1.1 TD ( requested.\) If a requested tag doesn't exist, a tag key is)Tj @@ -953,21 +953,21 @@ endobj >> >> endobj 21 0 obj << -/Length 3832 +/Length 3828 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 6)Tj +( -- Image::ExifTool 12.24 -- 6)Tj /TT4 1 Tf 0 -1.6333 TD ( As well as tags representing information extracted from the image,)Tj 0 -1.1 TD ( the following Extra tags generated by ExifTool may be returned:)Tj @@ -1078,17 +1078,17 @@ T* T* ( is specifically requested by name. Default is undef.)Tj 0 -2.2 TD ( BlockExtract)Tj 0 -1.1 TD -( Flag to extract some directories \(mentioned in the Tag Name)Tj +( Flag to extract some directories \(mentioned in the ExifTool tag)Tj T* -( documentation\) as a block. Setting this to a value of 2 also)Tj +( name documentation\) as a block. Setting this to a value of 2)Tj T* -( prevents parsing the block to extract tags contained within.)Tj -0 -2.2 TD -( ByteOrder)Tj +( also prevents parsing the block to extract tags contained)Tj +T* +( within.)Tj ET endstream endobj 22 0 obj << @@ -1102,25 +1102,27 @@ endobj >> >> endobj 24 0 obj << -/Length 4804 +/Length 4742 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 7)Tj +( -- Image::ExifTool 12.24 -- 7)Tj /TT4 1 Tf 0 -1.6333 TD -( The byte order for newly created EXIF segments when writing.)Tj +( ByteOrder)Tj 0 -1.1 TD +( The byte order for newly created EXIF segments when writing.)Tj +T* ( Note that if EXIF information already exists, the existing)Tj T* ( order is maintained. Valid values are 'MM', 'II' and undef.)Tj T* ( If ByteOrder is not defined \(the default\), then the maker note)Tj @@ -1236,12 +1238,10 @@ T* ( Fallback internal IPTC character set to assume if IPTC)Tj T* ( information contains no CodedCharacterSet tag. Possible values)Tj T* ( are the same as the "Charset" option. Default is 'Latin'.)Tj -0 -2.2 TD -( Note that this option affects some types of information when)Tj ET endstream endobj 25 0 obj << @@ -1255,25 +1255,27 @@ endobj >> >> endobj 27 0 obj << -/Length 4420 +/Length 4413 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 8)Tj +( -- Image::ExifTool 12.24 -- 8)Tj /TT4 1 Tf 0 -1.6333 TD -( reading/writing the file and other types when getting/setting)Tj +( Note that this option affects some types of information when)Tj 0 -1.1 TD +( reading/writing the file and other types when getting/setting)Tj +T* ( tag values, so it must be defined for both types of access.)Tj 0 -2.2 TD ( CharsetPhotoshop)Tj 0 -1.1 TD ( Internal encoding to assume for Photoshop IRB resource names.)Tj @@ -1383,12 +1385,10 @@ T* ( format is different when copying tags with)Tj T* ( "SetNewValuesFromFile".)Tj 0 -2.2 TD ( DateFormat)Tj -0 -1.1 TD -( Format for printing date/time values. See "strftime" in the)Tj ET endstream endobj 28 0 obj << @@ -1402,25 +1402,27 @@ endobj >> >> endobj 30 0 obj << -/Length 4972 +/Length 4970 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 9)Tj +( -- Image::ExifTool 12.24 -- 9)Tj /TT4 1 Tf 0 -1.6333 TD -( POSIX package for details about the format string. If date can)Tj +( Format for printing date/time values. See "strftime" in the)Tj 0 -1.1 TD +( POSIX package for details about the format string. If date can)Tj +T* ( not be converted, value is left unchanged unless the StrictDate)Tj T* ( option is set. Timezones are ignored. The inverse conversion)Tj T* ( \(ie. when calling "SetNewValue"\) is performed only if)Tj @@ -1538,12 +1540,10 @@ T* ( specification, metadata is allowed after IDAT, but ExifTool)Tj T* ( always writes it before because some utilities will ignore it)Tj T* ( otherwise.\) When set to 3 or higher, only pseudo system tags)Tj -T* -( and FileType are generated. For 3, the file header is read to)Tj ET endstream endobj 31 0 obj << @@ -1557,25 +1557,27 @@ endobj >> >> endobj 33 0 obj << -/Length 4475 +/Length 4500 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 10)Tj +( -- Image::ExifTool 12.24 -- 10)Tj /TT4 1 Tf 0 -1.6333 TD -( provide an educated guess at FileType. For 4, the file is not)Tj +( and FileType are generated. For 3, the file header is read to)Tj 0 -1.1 TD +( provide an educated guess at FileType. For 4, the file is not)Tj +T* ( read at all and FileType is determined based on the file's)Tj T* ( extension. For 5, generation of Composite tags is also)Tj T* ( disabled \(like setting "Composite" to 0\). Default is undef.)Tj @@ -1687,12 +1689,10 @@ T* ( Default is undef.)Tj 0 -2.2 TD ( GeoSpeedRef)Tj 0 -1.1 TD ( Reference units for writing GPSSpeed when geotagging:)Tj -0 -2.2 TD -( 'K', 'k' or 'km/h' - km/h)Tj ET endstream endobj 34 0 obj << @@ -1706,25 +1706,27 @@ endobj >> >> endobj 36 0 obj << -/Length 4726 +/Length 4721 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 11)Tj +( -- Image::ExifTool 12.24 -- 11)Tj /TT4 1 Tf 0 -1.6333 TD -( 'M', 'm' or 'mph' - mph)Tj +( 'K', 'k' or 'km/h' - km/h)Tj 0 -1.1 TD +( 'M', 'm' or 'mph' - mph)Tj +T* ( <anything else> - knots \(default undef\))Tj 0 -2.2 TD ( GlobalTimeShift)Tj 0 -1.1 TD ( Time shift to apply to all extracted date/time PrintConv)Tj @@ -1880,12 +1882,10 @@ T* ( Separator used to join the PrintConv value of multi-item List-)Tj T* ( type tags into a single string. If not defined, multi-item)Tj T* ( lists are returned as a list reference. Does not affect)Tj -T* -( ValueConv values. Default is ', '.)Tj ET endstream endobj 37 0 obj << @@ -1899,23 +1899,25 @@ endobj >> >> endobj 41 0 obj << -/Length 4332 +/Length 4308 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 12)Tj +( -- Image::ExifTool 12.24 -- 12)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( ValueConv values. Default is ', '.)Tj +0 -2.2 TD ( ListSplit)Tj 0 -1.1 TD ( Regular expression used to split values of list-type tags into)Tj T* ( individual items when writing. \(eg. use ',\\\\s*' to split a)Tj @@ -2025,12 +2027,10 @@ T* ( date/time values, and enforces a time zero of 1904 as per the)Tj T* ( QuickTime specification.)Tj 0 -2.2 TD ( RequestAll)Tj -0 -1.1 TD -( Flag to request all tags to be extracted. This causes some)Tj ET endstream endobj 42 0 obj << @@ -2044,25 +2044,27 @@ endobj >> >> endobj 44 0 obj << -/Length 4470 +/Length 4459 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 13)Tj +( -- Image::ExifTool 12.24 -- 13)Tj /TT4 1 Tf 0 -1.6333 TD -( tags to be generated which normally would not be unless)Tj +( Flag to request all tags to be extracted. This causes some)Tj 0 -1.1 TD +( tags to be generated which normally would not be unless)Tj +T* ( specifically requested \(by passing the tag name to "ImageInfo")Tj T* ( or "ExtractInfo"\). May be set to 2 or 3 to enable generation)Tj T* ( of some additional tags as mentioned in the tag name)Tj @@ -2170,12 +2172,10 @@ T* ( POSIX::strptime or Time::Piece is available and can)Tj T* ( successfully convert the value.)Tj 0 -2.2 TD ( For PNG CreationTime, a setting of 1 has the additional effect)Tj -0 -1.1 TD -( of causing the date/time to be reformatted according to PNG 1.2)Tj ET endstream endobj 45 0 obj << @@ -2189,25 +2189,27 @@ endobj >> >> endobj 47 0 obj << -/Length 4239 +/Length 4325 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 14)Tj +( -- Image::ExifTool 12.24 -- 14)Tj /TT4 1 Tf 0 -1.6333 TD -( recommendation \(RFC-1123\) when writing, and a warning to be)Tj +( of causing the date/time to be reformatted according to PNG 1.2)Tj 0 -1.1 TD +( recommendation \(RFC-1123\) when writing, and a warning to be)Tj +T* ( issued for any non-standard value when reading \(but note that)Tj T* ( Windows may not recognize PNG date/time values in standard)Tj T* ( format\).)Tj @@ -2344,23 +2346,23 @@ endobj >> >> endobj 50 0 obj << -/Length 4249 +/Length 4218 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 15)Tj +( -- Image::ExifTool 12.24 -- 15)Tj /TT4 1 Tf -0 -1.6333 TD +0 -2.7333 TD ( Verbose)Tj 0 -1.1 TD ( Print verbose messages to file specified by TextOut option.)Tj T* ( Value may be from 0 to 5 for increasingly verbose messages.)Tj @@ -2512,12 +2514,10 @@ T* ( MakerNotes, MDItemTags, NoPDFList, Password, QuickTimeUTC \(enforced)Tj T* ( 1904 time zero\), RequestAll, RequestTags, SaveFormat, SavePath,)Tj T* ( ScanForXMP, Struct, TextOut, Unknown, Verbose, XAttrTags and)Tj -T* -( XMPAutoConv.)Tj ET endstream endobj 51 0 obj << @@ -2531,23 +2531,25 @@ endobj >> >> endobj 53 0 obj << -/Length 4130 +/Length 4168 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 16)Tj +( -- Image::ExifTool 12.24 -- 16)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( XMPAutoConv.)Tj +0 -2.2 TD ( Return Value:)Tj 0 -1.1 TD ( 1 if this was a recognized file format, 0 otherwise \(and 'Error')Tj T* ( tag set\).)Tj @@ -2696,23 +2698,23 @@ endobj >> >> endobj 56 0 obj << -/Length 4045 +/Length 4009 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 17)Tj +( -- Image::ExifTool 12.24 -- 17)Tj /TT4 1 Tf -0 -1.6333 TD +0 -2.7333 TD ( Inputs:)Tj 0 -1.1 TD ( 0\) ExifTool object reference)Tj 0 -2.2 TD ( 1\) Source file name, file reference, scalar reference, or undef to)Tj @@ -2832,12 +2834,10 @@ T* ( 0\) ExifTool object reference)Tj 0 -2.2 TD ( 1\) [optional] Information hash reference or tag list reference)Tj T* ( 2\) [optional] Sort order \('Input', 'File', 'Tag', 'Descr' or)Tj -0 -1.1 TD -( 'Group#'\))Tj ET endstream endobj 57 0 obj << @@ -2851,25 +2851,27 @@ endobj >> >> endobj 59 0 obj << -/Length 4391 +/Length 4352 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 18)Tj +( -- Image::ExifTool 12.24 -- 18)Tj /TT4 1 Tf -0 -2.7333 TD -( 3\) [optional] Secondary sort order \('File', 'Tag' or 'Descr'\))Tj +0 -1.6333 TD +( 'Group#'\))Tj 0 -2.2 TD +( 3\) [optional] Secondary sort order \('File', 'Tag' or 'Descr'\))Tj +T* ( If the information hash or tag list reference is not provided, then)Tj 0 -1.1 TD ( the list of found tags from the last call to "ImageInfo",)Tj T* ( "ExtractInfo" or "GetInfo" is used instead, and the result is the)Tj @@ -3039,12 +3041,10 @@ T* ( "GetValue" always returns the list itself.)Tj 0 -2.2 TD ( Note that "GetValue" requires a case-sensitive tag key as an argument.)Tj 0 -1.1 TD ( To retrieve tag information based on a case-insensitive tag name \(with)Tj -T* -( an optional group specifier\), use "GetInfo" instead.)Tj ET endstream endobj 60 0 obj << @@ -3058,23 +3058,25 @@ endobj >> >> endobj 62 0 obj << -/Length 3962 +/Length 3961 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 19)Tj +( -- Image::ExifTool 12.24 -- 19)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( an optional group specifier\), use "GetInfo" instead.)Tj +0 -2.2 TD ( # PrintConv example)Tj 0 -1.1 TD ( my $val = $exifTool->GetValue\($tag\);)Tj T* ( if \(ref $val eq 'SCALAR'\) {)Tj @@ -3202,12 +3204,10 @@ T* ( same tag name for each value, or call with a reference to the list of)Tj T* ( values.)Tj 0 -2.2 TD ( # set a new value for a tag \(errors go to STDERR\))Tj -0 -1.1 TD -( $success = $exifTool->SetNewValue\($tag, $value\);)Tj ET endstream endobj 63 0 obj << @@ -3221,23 +3221,25 @@ endobj >> >> endobj 65 0 obj << -/Length 4036 +/Length 4027 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 20)Tj +( -- Image::ExifTool 12.24 -- 20)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( $success = $exifTool->SetNewValue\($tag, $value\);)Tj +0 -2.2 TD ( # set a new value and capture any error message)Tj 0 -1.1 TD ( \($success, $errStr\) = $exifTool->SetNewValue\($tag, $value\);)Tj 0 -2.2 TD ( # delete information for specified tag if it exists in image)Tj @@ -3337,12 +3339,10 @@ T* ( values. The tag name may be prefixed by one or more family 0, 1 or)Tj T* ( 2 group names with optional leading family numbers, separated by)Tj T* ( colons \(eg. 'EXIF:Artist', 'XMP:Time:*'\), which is equivalent to)Tj -T* -( using a Group option argument. Also, a '#' may be appended to the)Tj ET endstream endobj 66 0 obj << @@ -3366,15 +3366,17 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 21)Tj +( -- Image::ExifTool 12.24 -- 21)Tj /TT4 1 Tf 0 -1.6333 TD -( tag name \(eg. 'EXIF:Orientation#'\), with the same effect as setting)Tj +( using a Group option argument. Also, a '#' may be appended to the)Tj 0 -1.1 TD +( tag name \(eg. 'EXIF:Orientation#'\), with the same effect as setting)Tj +T* ( Type to 'ValueConv'. Wildcards \('*' and '?'\) may be used in the)Tj T* ( tag name to assign multiple tags simultaneously. A tag name of '*')Tj T* ( is special when deleting information, and will delete an entire)Tj @@ -3486,12 +3488,10 @@ T* ( "SetNewValuesFromFile"\). Bit 0x02 allows writing of)Tj T* ( 'protected' tags, and should only be used internally by)Tj T* ( ExifTool. See Image::ExifTool::TagNames, for a list of tag)Tj -T* -( names indicating 'unsafe' and 'protected' tags. Default is 0.)Tj ET endstream endobj 69 0 obj << @@ -3515,13 +3515,15 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 22)Tj +( -- Image::ExifTool 12.24 -- 22)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( names indicating 'unsafe' and 'protected' tags. Default is 0.)Tj +0 -2.2 TD ( ProtectSaved)Tj 0 -1.1 TD ( Avoid setting new values which were saved after the Nth call to)Tj T* ( "SaveNewValues". Has no effect on unsaved values, or values)Tj @@ -3693,12 +3695,10 @@ T* ( @rawVals = $exifTool->GetNewValue\($tag\);)Tj T* ( Inputs:)Tj 0 -1.1 TD ( 0\) ExifTool object reference)Tj -0 -2.2 TD -( 1\) Tag name \(case sensitive, may be prefixed by family 0, 1 or 7)Tj ET endstream endobj 73 0 obj << @@ -3712,23 +3712,25 @@ endobj >> >> endobj 75 0 obj << -/Length 4649 +/Length 4656 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 23)Tj +( -- Image::ExifTool 12.24 -- 23)Tj /TT4 1 Tf 0 -1.6333 TD +( 1\) Tag name \(case sensitive, may be prefixed by family 0, 1 or 7)Tj +0 -1.1 TD ( group names, separated by colons\))Tj 0 -2.2 TD ( Return Values:)Tj 0 -1.1 TD ( List of new Raw tag values, or first value in list when called in)Tj @@ -3872,12 +3874,10 @@ T* ( information to a tag with a different name or a specified group.)Tj T* ( Both 'SRCTAG' and 'DSTTAG' may contain wildcards and/or be prefixed)Tj T* ( by a group name \(eg. 'fileModifyDate<modifyDate' or 'xmp:*<*'\),)Tj -T* -( and/or suffixed by a '#' to disable print conversion. Copied tags)Tj ET endstream endobj 76 0 obj << @@ -3891,25 +3891,27 @@ endobj >> >> endobj 78 0 obj << -/Length 4484 +/Length 4480 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 24)Tj +( -- Image::ExifTool 12.24 -- 24)Tj /TT4 1 Tf 0 -1.6333 TD -( may also be added or deleted from a list with arguments of the form)Tj +( and/or suffixed by a '#' to disable print conversion. Copied tags)Tj 0 -1.1 TD +( may also be added or deleted from a list with arguments of the form)Tj +T* ( 'DSTTAG+<SRCTAG' or 'DSTTAG-<SRCTAG'. Tags are evaluated in order,)Tj T* ( so exclusions apply only to tags included earlier in the list. An)Tj T* ( extension of this feature allows the tag value to be set from a)Tj @@ -4015,12 +4017,10 @@ T* ( specifying '*:*' for the tags to set.)Tj 0 -2.2 TD ( The "Duplicates" option is always in effect for tags extracted from)Tj 0 -1.1 TD ( the source file using this routine.)Tj -0 -2.2 TD -( The "Struct" option is enabled by default for tags extracted by)Tj ET endstream endobj 79 0 obj << @@ -4034,25 +4034,27 @@ endobj >> >> endobj 81 0 obj << -/Length 4317 +/Length 4371 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 25)Tj +( -- Image::ExifTool 12.24 -- 25)Tj /TT4 1 Tf 0 -1.6333 TD -( this routine. This allows the hierarchy of complex structures to)Tj +( The "Struct" option is enabled by default for tags extracted by)Tj 0 -1.1 TD +( this routine. This allows the hierarchy of complex structures to)Tj +T* ( be preserved when copying, but the Struct option may be set to 0 to)Tj T* ( override this behaviour and copy as flattened tags instead.)Tj 0 -2.2 TD ( C)Tj @@ -4266,12 +4268,10 @@ T* ( Return Value:)Tj 0 -1.1 TD ( 1 if the time was changed, 0 if nothing was done, or -1 if there)Tj T* ( was an error setting the time.)Tj -0 -2.2 TD -( Notes:)Tj ET endstream endobj 82 0 obj << @@ -4285,25 +4285,27 @@ endobj >> >> endobj 84 0 obj << -/Length 4138 +/Length 4104 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 26)Tj +( -- Image::ExifTool 12.24 -- 26)Tj /TT4 1 Tf 0 -1.6333 TD -( Equivalent to, but more efficient than calling "WriteInfo" when)Tj +( Notes:)Tj 0 -1.1 TD +( Equivalent to, but more efficient than calling "WriteInfo" when)Tj +T* ( only the FileModifyDate or FileCreateDate tag has been set. If a)Tj T* ( timezone is not specified, local time is assumed. When shifting,)Tj T* ( the time of the original file is used unless the optional base time)Tj @@ -4471,12 +4473,10 @@ T* ( Get current group priority list.)Tj 0 -2.2 TD ( @groups = $exifTool->GetNewGroups\(\);)Tj T* ( Inputs:)Tj -0 -1.1 TD -( 0\) ExifTool object reference)Tj ET endstream endobj 85 0 obj << @@ -4490,23 +4490,25 @@ endobj >> >> endobj 87 0 obj << -/Length 3762 +/Length 3733 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 27)Tj +( -- Image::ExifTool 12.24 -- 27)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( 0\) ExifTool object reference)Tj +0 -2.2 TD ( Return Values:)Tj 0 -1.1 TD ( List of group names in order of write priority. Highest priority)Tj T* ( first.)Tj @@ -4662,12 +4664,10 @@ T* ( when called in scalar context, or the names of groups for all)Tj T* ( families in list context. Returns a string of group names)Tj T* ( separated by colons if the input group family contains a colon.)Tj -T* -( The string is simplified to remove a leading 'Main:' and adjacent)Tj ET endstream endobj 88 0 obj << @@ -4681,23 +4681,25 @@ endobj >> >> endobj 90 0 obj << -/Length 5018 +/Length 5021 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 28)Tj +( -- Image::ExifTool 12.24 -- 28)Tj /TT4 1 Tf 0 -1.6333 TD +( The string is simplified to remove a leading 'Main:' and adjacent)Tj +0 -1.1 TD ( identical group names unless the family string begins with a colon.)Tj 0 -2.2 TD ( Notes:)Tj 0 -1.1 TD ( The group family numbers are currently available:)Tj @@ -4811,12 +4813,10 @@ T* ( or may not have characters other than [-_A-Za-z0-9] converted to)Tj T* ( hex. Note that unlike other group names, the tag ID's of family 7)Tj T* ( group names are case sensitive \(but the leading "ID-" is not\).)Tj -0 -2.2 TD -( See "GetAllGroups [static]" for complete lists of group names.)Tj ET endstream endobj 91 0 obj << @@ -4830,23 +4830,25 @@ endobj >> >> endobj 93 0 obj << -/Length 4328 +/Length 4380 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 29)Tj +( -- Image::ExifTool 12.24 -- 29)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( See "GetAllGroups [static]" for complete lists of group names.)Tj +0 -2.2 TD ( G)Tj 1.8 0 TD (Ge)Tj 0.6 0 TD (et)Tj @@ -5072,12 +5074,10 @@ T* ( Get a list of shortcut tags.)Tj 0 -2.2 TD ( Inputs:)Tj 0 -1.1 TD ( \(none\))Tj -0 -2.2 TD -( Return Values:)Tj ET endstream endobj 94 0 obj << @@ -5091,23 +5091,25 @@ endobj >> >> endobj 96 0 obj << -/Length 4933 +/Length 4886 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 30)Tj +( -- Image::ExifTool 12.24 -- 30)Tj /TT4 1 Tf 0 -1.6333 TD +( Return Values:)Tj +0 -1.1 TD ( List of shortcut tags \(as defined in Image::ExifTool::Shortcuts\).)Tj 0 -2.2 TD ( G)Tj 1.8 0 TD (Ge)Tj @@ -5333,12 +5335,10 @@ T* ( GIMP, GPS, GeoTiff, GlobParamIFD, GoPro, GraphConv, H264, HP, HTC,)Tj T* ( HTML, HTML-dc, HTML-ncc, HTML-office, HTML-prod, HTML-vw96, HTTP-)Tj T* ( equiv, ICC-chrm, ICC-clrt, ICC-header, ICC-meas, ICC-meta, ICC-)Tj -T* -( view, ICC_Profile, ICC_Profile#, ID3, ID3v1, ID3v1_Enh, ID3v2_2,)Tj ET endstream endobj 97 0 obj << @@ -5352,25 +5352,27 @@ endobj >> >> endobj 99 0 obj << -/Length 4765 +/Length 4812 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 31)Tj +( -- Image::ExifTool 12.24 -- 31)Tj /TT4 1 Tf 0 -1.6333 TD -( ID3v2_3, ID3v2_4, IFD0, IFD1, IPTC, IPTC#, ISO, ITC, Insta360,)Tj +( view, ICC_Profile, ICC_Profile#, ID3, ID3v1, ID3v1_Enh, ID3v2_2,)Tj 0 -1.1 TD +( ID3v2_3, ID3v2_4, IFD0, IFD1, IPTC, IPTC#, ISO, ITC, Insta360,)Tj +T* ( InteropIFD, ItemList, JFIF, JFXX, JPEG, JPEG-HDR, JSON, JUMBF, JVC,)Tj T* ( Jpeg2000, KDC_IFD, Keys, Kodak, KodakBordersIFD, KodakEffectsIFD,)Tj T* ( KodakIFD, KyoceraRaw, LNK, Leaf, LeafSubIFD, Leica, Lyrics3, Lytro,)Tj @@ -5526,12 +5528,10 @@ T* ( @delGroups = Image::ExifTool::GetDeleteGroups\(\);)Tj T* ( Inputs:)Tj 0 -1.1 TD ( None.)Tj -0 -2.2 TD -( Return Values:)Tj ET endstream endobj 100 0 obj << @@ -5545,25 +5545,27 @@ endobj >> >> endobj 103 0 obj << -/Length 4949 +/Length 4896 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 32)Tj +( -- Image::ExifTool 12.24 -- 32)Tj /TT4 1 Tf 0 -1.6333 TD -( A list of deletable group names in alphabetical order. The current)Tj +( Return Values:)Tj 0 -1.1 TD +( A list of deletable group names in alphabetical order. The current)Tj +T* ( list of deletable group names is:)Tj 0 -2.2 TD ( Adobe, AFCP, APP0, APP1, APP10, APP11, APP12, APP13, APP14, APP15,)Tj 0 -1.1 TD ( APP2, APP3, APP4, APP5, APP6, APP7, APP8, APP9, Audio, Author,)Tj @@ -5769,12 +5771,10 @@ T* (c])Tj 0.6 0 TD (])Tj -12 -1.1 TD ( Can the specified file be created?)Tj -0 -2.2 TD -( my $creatable = Image::ExifTool::CanCreate\($filename\);)Tj ET endstream endobj 104 0 obj << @@ -5788,23 +5788,25 @@ endobj >> >> endobj 106 0 obj << -/Length 4693 +/Length 4690 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 33)Tj +( -- Image::ExifTool 12.24 -- 33)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( my $creatable = Image::ExifTool::CanCreate\($filename\);)Tj +0 -2.2 TD ( Inputs:)Tj 0 -1.1 TD ( 0\) File name or extension)Tj 0 -2.2 TD ( Return Value:)Tj @@ -6000,12 +6002,10 @@ T* ( activating Unicode filename support via the special Windows wide-)Tj T* ( character i/o routines if Win32API::File is available.)Tj 0 -2.2 TD ( Internal Character Sets:)Tj -0 -1.1 TD -( The encodings used to store strings in the various metadata)Tj ET endstream endobj 107 0 obj << @@ -6019,25 +6019,27 @@ endobj >> >> endobj 109 0 obj << -/Length 5318 +/Length 5396 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 34)Tj +( -- Image::ExifTool 12.24 -- 34)Tj /TT4 1 Tf 0 -1.6333 TD -( formats. These encodings may be changed for certain types of)Tj +( The encodings used to store strings in the various metadata)Tj 0 -1.1 TD +( formats. These encodings may be changed for certain types of)Tj +T* ( metadata via the "CharsetEXIF", "CharsetID3", "CharsetIPTC",)Tj T* ( "CharsetPhotoshop", "CharsetQuickTime" and "CharsetRIFF" options.)Tj 0 -2.2 TD ( Values are returned as byte strings of encoded characters. Perl wide)Tj @@ -6226,23 +6228,23 @@ endobj >> >> endobj 112 0 obj << -/Length 4720 +/Length 4692 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 35)Tj +( -- Image::ExifTool 12.24 -- 35)Tj /TT4 1 Tf -0 -1.6333 TD +0 -2.7333 TD ( exiftool -tagsfromfile @ -iptc:all -codedcharacterset=utf8 \\)Tj 0 -1.1 TD ( -charset iptc=latin2 a.jpg)Tj 0 -2.2 TD ( and this command changes it back from UTF-8 to Windows Latin1 \(cp1252\):)Tj @@ -6416,12 +6418,10 @@ T* ( encoding. By default, ExifTool assumes MacRoman encoding and converts)Tj T* ( this to UTF-8, but the internal and external character sets may be)Tj T* ( specified with the "CharsetPhotoshop" and "Charset" options)Tj -T* -( respectively.)Tj ET endstream endobj 113 0 obj << @@ -6435,23 +6435,25 @@ endobj >> >> endobj 115 0 obj << -/Length 5222 +/Length 5257 >> stream BT /TT2 1 Tf 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.23 -- 36)Tj +( -- Image::ExifTool 12.24 -- 36)Tj /TT4 1 Tf -0 -2.7333 TD +0 -1.6333 TD +( respectively.)Tj +0 -2.2 TD ( Q)Tj 1.8 0 TD (Qu)Tj 0.6 0 TD (ui)Tj @@ -6858,11 +6860,11 @@ T* 0.6 0 TD (E_)Tj 0.6 0 TD (G\(3pm\))Tj -27 -4.4 TD -(perl v5.18.4 2021-04-01 EXIFTOOL\(1\))Tj +(perl v5.18.4 2021-04-13 EXIFTOOL\(1\))Tj ET endstream endobj 116 0 obj << @@ -7294,12 +7296,12 @@ endobj /MediaBox [0 0 595 842] >> endobj 121 0 obj << -/CreationDate (D:20210401142149-04'00') -/ModDate (D:20210401142149-04'00') +/CreationDate (D:20210413110922-04'00') +/ModDate (D:20210413110922-04'00') /Producer (Apple pstopdf) >> endobj 122 0 obj << @@ -7309,137 +7311,137 @@ endobj >> endobj xref 0 123 0000000000 65535 f -0000170483 00000 n +0000170479 00000 n 0000000016 00000 n 0000004112 00000 n -0000169484 00000 n -0000169885 00000 n -0000168949 00000 n -0000173585 00000 n -0000170563 00000 n +0000169480 00000 n +0000169881 00000 n +0000168945 00000 n +0000173581 00000 n +0000170559 00000 n 0000004218 00000 n 0000009568 00000 n -0000170644 00000 n +0000170640 00000 n 0000009675 00000 n 0000014402 00000 n -0000170727 00000 n +0000170723 00000 n 0000014509 00000 n 0000019439 00000 n -0000170810 00000 n +0000170806 00000 n 0000019546 00000 n 0000024260 00000 n -0000170893 00000 n +0000170889 00000 n 0000024367 00000 n -0000028252 00000 n -0000170976 00000 n -0000028359 00000 n -0000033216 00000 n -0000171059 00000 n -0000033323 00000 n -0000037796 00000 n -0000171142 00000 n -0000037903 00000 n -0000042928 00000 n -0000171225 00000 n -0000043035 00000 n -0000047563 00000 n -0000171308 00000 n -0000047670 00000 n -0000052449 00000 n -0000174111 00000 n -0000173720 00000 n -0000171392 00000 n -0000052556 00000 n -0000056941 00000 n -0000171476 00000 n -0000057048 00000 n -0000061571 00000 n -0000171560 00000 n -0000061678 00000 n -0000065970 00000 n -0000171644 00000 n -0000066077 00000 n -0000070379 00000 n -0000171728 00000 n -0000070486 00000 n -0000074669 00000 n -0000171812 00000 n -0000074776 00000 n -0000078874 00000 n -0000171896 00000 n -0000078981 00000 n -0000083425 00000 n -0000171980 00000 n -0000083532 00000 n -0000087547 00000 n -0000172064 00000 n -0000087654 00000 n -0000091743 00000 n -0000172148 00000 n -0000091850 00000 n -0000096542 00000 n -0000173858 00000 n -0000172232 00000 n -0000096649 00000 n -0000101295 00000 n -0000172316 00000 n -0000101402 00000 n -0000106104 00000 n -0000172400 00000 n -0000106211 00000 n -0000110748 00000 n -0000172484 00000 n -0000110855 00000 n -0000115225 00000 n -0000172568 00000 n -0000115332 00000 n -0000119523 00000 n -0000172652 00000 n -0000119630 00000 n -0000123445 00000 n -0000172736 00000 n -0000123552 00000 n -0000128623 00000 n -0000172820 00000 n -0000128730 00000 n -0000133111 00000 n -0000172904 00000 n -0000133218 00000 n -0000138204 00000 n -0000172988 00000 n -0000138311 00000 n -0000143129 00000 n -0000173996 00000 n -0000173074 00000 n -0000143237 00000 n -0000148240 00000 n -0000173162 00000 n -0000148348 00000 n -0000153095 00000 n -0000173250 00000 n -0000153203 00000 n -0000158575 00000 n -0000173338 00000 n -0000158683 00000 n -0000163457 00000 n -0000173426 00000 n -0000163565 00000 n -0000168841 00000 n -0000169089 00000 n -0000169292 00000 n -0000173514 00000 n -0000173543 00000 n -0000174217 00000 n -0000174341 00000 n +0000028248 00000 n +0000170972 00000 n +0000028355 00000 n +0000033150 00000 n +0000171055 00000 n +0000033257 00000 n +0000037723 00000 n +0000171138 00000 n +0000037830 00000 n +0000042853 00000 n +0000171221 00000 n +0000042960 00000 n +0000047513 00000 n +0000171304 00000 n +0000047620 00000 n +0000052394 00000 n +0000174107 00000 n +0000173716 00000 n +0000171388 00000 n +0000052501 00000 n +0000056862 00000 n +0000171472 00000 n +0000056969 00000 n +0000061481 00000 n +0000171556 00000 n +0000061588 00000 n +0000065966 00000 n +0000171640 00000 n +0000066073 00000 n +0000070344 00000 n +0000171724 00000 n +0000070451 00000 n +0000074672 00000 n +0000171808 00000 n +0000074779 00000 n +0000078841 00000 n +0000171892 00000 n +0000078948 00000 n +0000083353 00000 n +0000171976 00000 n +0000083460 00000 n +0000087474 00000 n +0000172060 00000 n +0000087581 00000 n +0000091661 00000 n +0000172144 00000 n +0000091768 00000 n +0000096460 00000 n +0000173854 00000 n +0000172228 00000 n +0000096567 00000 n +0000101213 00000 n +0000172312 00000 n +0000101320 00000 n +0000106029 00000 n +0000172396 00000 n +0000106136 00000 n +0000110669 00000 n +0000172480 00000 n +0000110776 00000 n +0000115200 00000 n +0000172564 00000 n +0000115307 00000 n +0000119464 00000 n +0000172648 00000 n +0000119571 00000 n +0000123357 00000 n +0000172732 00000 n +0000123464 00000 n +0000128538 00000 n +0000172816 00000 n +0000128645 00000 n +0000133078 00000 n +0000172900 00000 n +0000133185 00000 n +0000138124 00000 n +0000172984 00000 n +0000138231 00000 n +0000143096 00000 n +0000173992 00000 n +0000173070 00000 n +0000143204 00000 n +0000148154 00000 n +0000173158 00000 n +0000148262 00000 n +0000153006 00000 n +0000173246 00000 n +0000153114 00000 n +0000158564 00000 n +0000173334 00000 n +0000158672 00000 n +0000163418 00000 n +0000173422 00000 n +0000163526 00000 n +0000168837 00000 n +0000169085 00000 n +0000169288 00000 n +0000173510 00000 n +0000173539 00000 n +0000174213 00000 n +0000174337 00000 n trailer << /Size 123 /Root 122 0 R /Info 121 0 R -/ID [<b0cc62a5be0c1030b6f351e712d1e1cb><b0cc62a5be0c1030b6f351e712d1e1cb>] +/ID [<560ec6fe6e5440771a95f440aabbe0e8><560ec6fe6e5440771a95f440aabbe0e8>] >> startxref -174413 +174409 %%EOF diff --git a/html/Shift.pdf b/html/Shift.pdf index 0322a8c8..5c2a3dbe 100644 --- a/html/Shift.pdf +++ b/html/Shift.pdf @@ -591,12 +591,12 @@ endobj /MediaBox [0 0 595 842] >> endobj 16 0 obj << -/CreationDate (D:20210401142150-04'00') -/ModDate (D:20210401142150-04'00') +/CreationDate (D:20210413110922-04'00') +/ModDate (D:20210413110922-04'00') /Producer (Apple pstopdf) >> endobj 17 0 obj << @@ -628,10 +628,10 @@ xref trailer << /Size 18 /Root 17 0 R /Info 16 0 R -/ID [<89c8b97ce96c2a9e18d602ed3bb880d8><89c8b97ce96c2a9e18d602ed3bb880d8>] +/ID [<aaba228f321479095b428dfe7ef65dcb><aaba228f321479095b428dfe7ef65dcb>] >> startxref 11800 %%EOF diff --git a/html/TagNames/FujiFilm.html b/html/TagNames/FujiFilm.html index 7214fa43..486c7a41 100644 --- a/html/TagNames/FujiFilm.html +++ b/html/TagNames/FujiFilm.html @@ -375,11 +375,12 @@ the date of manufacture)</span></span></td></tr> <br>1 = On <br>2 = Pre-shot <br><span class=n>(other models)</span> <br>0 = Off <br>1 = On - <br>2 = No flash &amp; flash</span></td></tr> + <br>2 = No flash &amp; flash + <br>6 = Pixel Shift</span></td></tr> <tr class=b> <td title='0x1101 = 4353'>0x1101</td> <td>SequenceNumber</td> <td class=c>int16u</td> <td>&nbsp;</td></tr> @@ -387,10 +388,20 @@ the date of manufacture)</span></span></td></tr> <td title='0x1103 = 4355'>0x1103</td> <td>DriveSettings</td> <td class=c>-</td> <td>--&gt; <a href='FujiFilm.html#DriveSettings'>FujiFilm DriveSettings Tags</a></td></tr> <tr class=b> +<td title='0x1105 = 4357'>0x1105</td> +<td>PixelShiftShots</td> +<td class=c>int16u</td> +<td>&nbsp;</td></tr> +<tr> +<td title='0x1106 = 4358'>0x1106</td> +<td>PixelShiftOffset</td> +<td class=c>rational64s[2]</td> +<td>&nbsp;</td></tr> +<tr class=b> <td title='0x1153 = 4435'>0x1153</td> <td>PanoramaAngle</td> <td class=c>int16u</td> <td>&nbsp;</td></tr> <tr> @@ -716,31 +727,37 @@ element)</span></span></td></tr> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> <tr> <td class=r title='0 = 0x0'>0.1</td> <td>FocusMode2</td> <td class=c>int32u</td> -<td><span class=s>[val &amp; 0xff] +<td><span class=s>[val &amp; 0xf] <br>0 = AF-M <br>1 = AF-S - <br>2 = AF-C - <br>17 = AF-S (Auto)</span></td></tr> + <br>2 = AF-C</span></td></tr> <tr class=b> <td class=r title='0 = 0x0'>0.2</td> +<td>PreAF</td> +<td class=c>int32u</td> +<td><span class=s>[val &gt;&gt; 4 &amp; 0xf] + <br>0 = Off + <br>1 = On</span></td></tr> +<tr> +<td class=r title='0 = 0x0'>0.3</td> <td>AFAreaMode</td> <td class=c>int32u</td> <td><span class=s>[val &gt;&gt; 8 &amp; 0xf] <br>0 = Single Point <br>1 = Zone <br>2 = Wide/Tracking</span></td></tr> -<tr> -<td class=r title='0 = 0x0'>0.3</td> +<tr class=b> +<td class=r title='0 = 0x0'>0.4</td> <td>AFAreaPointSize</td> <td class=c>int32u</td> <td><span class=s>[val &gt;&gt; 12 &amp; 0xf] <br>0 = n/a</span></td></tr> -<tr class=b> -<td class=r title='0 = 0x0'>0.4</td> +<tr> +<td class=r title='0 = 0x0'>0.5</td> <td>AFAreaZoneSize</td> <td class=c>int32u</td> <td><span class=s>[val &gt;&gt; 16 &amp; 0xf] <br>0 = n/a</span></td></tr> </table></td></tr></table></blockquote> @@ -1187,9 +1204,9 @@ RAF-format information.</p> <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Feb 3, 2021</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/Jpeg2000.html b/html/TagNames/Jpeg2000.html index 9fc3c186..accae7ed 100644 --- a/html/TagNames/Jpeg2000.html +++ b/html/TagNames/Jpeg2000.html @@ -428,27 +428,35 @@ may exist)</span> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Tag&nbsp;ID</th><th>Tag Name</th> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> <tr> -<td>'id'</td> -<td>JUMBFID</td> +<td>'jumd-flags'</td> +<td>JUMDFlags</td> <td class=c>no</td> -<td>&nbsp;</td></tr> +<td><span class=s>Bit 0 = Requestable + <br>Bit 1 = Label + <br>Bit 2 = ID + <br>Bit 3 = Signature</span></td></tr> <tr class=b> -<td>'label'</td> -<td>JUMBFLabel</td> +<td>'jumd-id'</td> +<td>JUMDID</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr> -<td>'signature'</td> -<td>JUMBFSignature</td> +<td>'jumd-label'</td> +<td>JUMDLabel</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr class=b> -<td>'type'</td> -<td>JUMBFType</td> +<td>'jumd-sig'</td> +<td>JUMDSignature</td> +<td class=c>no</td> +<td>&nbsp;</td></tr> +<tr> +<td>'jumd-type'</td> +<td>JUMDType</td> <td class=c>no</td> <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <h2><a name='CaptureResolution'>Jpeg2000 CaptureResolution Tags</a></h2> @@ -526,9 +534,9 @@ may exist)</span> <td>--&gt; <a href='Jpeg2000.html#ResolutionUnit'>Jpeg2000 ResolutionUnit Values</a></td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Apr 1, 2021</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/MacOS.html b/html/TagNames/MacOS.html index 0df5018a..9fdc188f 100644 --- a/html/TagNames/MacOS.html +++ b/html/TagNames/MacOS.html @@ -44,11 +44,11 @@ options, but these files are not writable directly.</p> <h2><a name='XAttr'>MacOS XAttr Tags</a></h2> <p>XAttr tags are extracted using the &quot;xattr&quot; utility. They are extracted if any &quot;XAttr*&quot; tag or the MacOS group is specifically requested, or by setting the <a href="../ExifTool.html#XAttrTags">XAttrTags</a> API option to 1 or the <a href="../ExifTool.html#RequestAll">RequestAll</a> API option to 2 or higher. -And they extracted by default from MacOS &quot;._&quot; files when reading +And they are extracted by default from MacOS &quot;._&quot; files when reading these files directly.</p> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Tag Name</th> @@ -652,9 +652,9 @@ not be written)</span></span></td></tr> <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Oct 15, 2020</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/Panasonic.html b/html/TagNames/Panasonic.html index 612ebecb..602b108a 100644 --- a/html/TagNames/Panasonic.html +++ b/html/TagNames/Panasonic.html @@ -1872,10 +1872,25 @@ images.</p> <tr class=b> <td title='0x035a = 858'>0x035a</td> <td>FNumber</td> <td class=c>int32s</td> <td>&nbsp;</td></tr> +<tr> +<td title='0x035b = 859'>0x035b</td> +<td>CorrelatedColorTemp</td> +<td class=c>int16u</td> +<td>&nbsp;</td></tr> +<tr class=b> +<td title='0x035c = 860'>0x035c</td> +<td>ColorTint</td> +<td class=c>int16s</td> +<td>&nbsp;</td></tr> +<tr> +<td title='0x035d = 861'>0x035d</td> +<td>WhitePoint</td> +<td class=c>rational64u[2]</td> +<td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <h2><a name='Type2'>Panasonic Type2 Tags</a></h2> <p>This type of maker notes is used by models such as the NV-DS65, PV-D2002, PV-DC3000, PV-DV203, PV-DV401, PV-DV702, PV-L2001, PV-SD4090, PV-SD5000 and @@ -2088,9 +2103,9 @@ various Panasonic and Leica models.</p> <td class=b>&nbsp;</td><td class=b>&nbsp;</td> </tr></table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Oct 2, 2020</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/PhaseOne.html b/html/TagNames/PhaseOne.html index 0b765427..4903d0f3 100644 --- a/html/TagNames/PhaseOne.html +++ b/html/TagNames/PhaseOne.html @@ -74,15 +74,18 @@ <td>&nbsp;</td></tr> <tr class=b> <td title='0x010e = 270'>0x010e</td> <td>RawFormat</td> <td class=c>int32s</td> -<td><span class=s>1 = RAW 1 +<td><table class=cols><tr> + <td>1 = RAW 1 <br>2 = RAW 2 - <br>3 = IIQ L - <br>5 = IIQ S - <br>6 = IIQ Sv2</span></td></tr> + <br>3 = IIQ L</td><td>&nbsp;&nbsp;</td> + <td>5 = IIQ S + <br>6 = IIQ Sv2 + <br>8 = IIQ L16</td></tr></table> +</td></tr> <tr> <td title='0x010f = 271'>0x010f</td> <td>RawData</td> <td class=c>no</td> <td>&nbsp;</td></tr> @@ -256,9 +259,9 @@ <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Apr 9, 2019</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/Sony.html b/html/TagNames/Sony.html index 00d011bc..bb39d71c 100644 --- a/html/TagNames/Sony.html +++ b/html/TagNames/Sony.html @@ -43,13 +43,14 @@ MakerNotes.</p> <br>1 = Super Fine <br>2 = Fine <br>3 = Standard <br>4 = Economy <br>5 = Extra Fine - <br>6 = RAW + JPEG + <br>6 = RAW + JPEG/HEIF <br>7 = Compressed RAW <br>8 = Compressed RAW + JPEG + <br>9 = Light <br>4294967295 = n/a</td></tr></table> </td></tr> <tr class=b> <td title='0x0104 = 260'>0x0104</td> <td>FlashExposureComp</td> @@ -783,17 +784,19 @@ toward magenta)</span></span></td></tr> <td title='0x202e = 8238'>0x202e</td> <td>Quality</td> <td class=c>int16u[2]</td> <td><table class=cols><tr> <td>&#39;0 0&#39; = n/a - <br>&#39;0 1&#39; = Standard JPEG - <br>&#39;0 2&#39; = Fine JPEG - <br>&#39;0 3&#39; = Extra Fine JPEG + <br>&#39;0 1&#39; = Standard + <br>&#39;0 2&#39; = Fine + <br>&#39;0 3&#39; = Extra Fine + <br>&#39;0 4&#39; = Light <br>&#39;1 0&#39; = RAW - <br>&#39;1 1&#39; = RAW + Standard JPEG - <br>&#39;1 2&#39; = RAW + Fine JPEG - <br>&#39;1 3&#39; = RAW + Extra Fine JPEG</td></tr></table> + <br>&#39;1 1&#39; = RAW + Standard + <br>&#39;1 2&#39; = RAW + Fine + <br>&#39;1 3&#39; = RAW + Extra Fine + <br>&#39;1 4&#39; = RAW + Light</td></tr></table> </td></tr> <tr class=b> <td title='0x202f = 8239'>0x202f</td> <td>PixelShiftInfo</td> <td class=c>undef</td> @@ -802,96 +805,133 @@ toward magenta)</span></span></td></tr> <td title='0x2031 = 8241'>0x2031</td> <td>SerialNumber</td> <td class=c>string</td> <td>&nbsp;</td></tr> <tr class=b> +<td title='0x2032 = 8242'>0x2032</td> +<td>Shadows</td> +<td class=c>int32s</td> +<td>&nbsp;</td></tr> +<tr> +<td title='0x2033 = 8243'>0x2033</td> +<td>Highlights</td> +<td class=c>int32s</td> +<td>&nbsp;</td></tr> +<tr class=b> +<td title='0x2034 = 8244'>0x2034</td> +<td>Fade</td> +<td class=c>int32s</td> +<td>&nbsp;</td></tr> +<tr> +<td title='0x2035 = 8245'>0x2035</td> +<td>SharpnessRange</td> +<td class=c>int32s</td> +<td>&nbsp;</td></tr> +<tr class=b> +<td title='0x2036 = 8246'>0x2036</td> +<td>Clarity</td> +<td class=c>int32s</td> +<td>&nbsp;</td></tr> +<tr> +<td title='0x2037 = 8247'>0x2037</td> +<td>FocusFrameSize</td> +<td class=c>no</td> +<td>&nbsp;</td></tr> +<tr class=b> +<td title='0x2039 = 8249'>0x2039</td> +<td>JPEG-HEIFSwitch</td> +<td class=c>int16u</td> +<td><span class=s>0 = JPEG + <br>1 = HEIF + <br>65535 = n/a</span></td></tr> +<tr> <td title='0x3000 = 12288'>0x3000</td> <td>ShotInfo</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#ShotInfo'>Sony ShotInfo Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x900b = 36875'>0x900b</td> <td>Tag900b</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag900b'>Sony Tag900b Tags</a></td></tr> -<tr class=b> +<tr> <td title='0x9050 = 36944'>0x9050</td> <td>Tag9050a <br>Tag9050b <br>Tag9050c</td> <td class=c>-<br>-<br>-</td> <td>--&gt; <a href='Sony.html#Tag9050a'>Sony Tag9050a Tags</a> <br>--&gt; <a href='Sony.html#Tag9050b'>Sony Tag9050b Tags</a> <br>--&gt; <a href='Sony.html#Tag9050c'>Sony Tag9050c Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x9400 = 37888'>0x9400</td> <td>Tag9400a <br>Tag9400b <br>Tag9400c</td> <td class=c>-<br>-<br>-</td> <td>--&gt; <a href='Sony.html#Tag9400a'>Sony Tag9400a Tags</a> <br>--&gt; <a href='Sony.html#Tag9400b'>Sony Tag9400b Tags</a> <br>--&gt; <a href='Sony.html#Tag9400c'>Sony Tag9400c Tags</a></td></tr> -<tr class=b> +<tr> <td title='0x9401 = 37889'>0x9401</td> <td>Tag9401</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag9401'>Sony Tag9401 Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x9402 = 37890'>0x9402</td> <td>Tag9402</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag9402'>Sony Tag9402 Tags</a></td></tr> -<tr class=b> +<tr> <td title='0x9403 = 37891'>0x9403</td> <td>Tag9403</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag9403'>Sony Tag9403 Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x9404 = 37892'>0x9404</td> <td>Tag9404a <br>Tag9404b <br>Tag9404c</td> <td class=c>-<br>-<br>-</td> <td>--&gt; <a href='Sony.html#Tag9404a'>Sony Tag9404a Tags</a> <br>--&gt; <a href='Sony.html#Tag9404b'>Sony Tag9404b Tags</a> <br>--&gt; <a href='Sony.html#Tag9404c'>Sony Tag9404c Tags</a></td></tr> -<tr class=b> +<tr> <td title='0x9405 = 37893'>0x9405</td> <td>Tag9405a <br>Tag9405b</td> <td class=c>-<br>-</td> <td>--&gt; <a href='Sony.html#Tag9405a'>Sony Tag9405a Tags</a> <br>--&gt; <a href='Sony.html#Tag9405b'>Sony Tag9405b Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x9406 = 37894'>0x9406</td> <td>Tag9406</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag9406'>Sony Tag9406 Tags</a></td></tr> -<tr class=b> +<tr> <td title='0x940a = 37898'>0x940a</td> <td>Tag940a</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag940a'>Sony Tag940a Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x940c = 37900'>0x940c</td> <td>Tag940c</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag940c'>Sony Tag940c Tags</a></td></tr> -<tr class=b> +<tr> <td title='0x940e = 37902'>0x940e</td> <td>AFInfo <br>Tag940e</td> <td class=c>-<br>-</td> <td>--&gt; <a href='Sony.html#AFInfo'>Sony AFInfo Tags</a> <br>--&gt; <a href='Sony.html#Tag940e'>Sony Tag940e Tags</a></td></tr> -<tr> +<tr class=b> <td title='0x9416 = 37910'>0x9416</td> <td>Sony_0x9416</td> <td class=c>-</td> <td>--&gt; <a href='Sony.html#Tag9416'>Sony Tag9416 Tags</a></td></tr> -<tr class=b> +<tr> <td title='0xb000 = 45056'>0xb000</td> <td>FileFormat</td> <td class=c>int8u[4]</td> <td><table class=cols><tr> <td>&#39;0 0 0 2&#39; = JPEG @@ -905,11 +945,11 @@ toward magenta)</span></span></td></tr> <br>&#39;3 3 2 0&#39; = ARW 2.3.2 <br>&#39;3 3 3 0&#39; = ARW 2.3.3 <br>&#39;3 3 5 0&#39; = ARW 2.3.5 <br>&#39;4 0 0 0&#39; = ARW 4.0</td></tr></table> </td></tr> -<tr> +<tr class=b> <td title='0xb001 = 45057'>0xb001</td> <td>SonyModelID</td> <td class=c>int16u</td> <td><table class=cols><tr> <td>2 = DSC-R1 @@ -999,11 +1039,11 @@ toward magenta)</span></span></td></tr> <br>381 = ILCE-7C <br>383 = ILCE-7SM3 <br>384 = ILCE-1 <br>385 = ILME-FX3</td></tr></table> </td></tr> -<tr class=b> +<tr> <td title='0xb020 = 45088'>0xb020</td> <td>CreativeStyle</td> <td class=c>string</td> <td><table class=cols><tr> <td>&#39;AdobeRGB&#39; = Adobe RGB @@ -1025,21 +1065,21 @@ toward magenta)</span></span></td></tr> <br>&#39;Standard&#39; = Standard <br>&#39;Sunset&#39; = Sunset <br>&#39;VV2&#39; = Vivid 2 <br>&#39;Vivid&#39; = Vivid</td></tr></table> </td></tr> -<tr> +<tr class=b> <td title='0xb021 = 45089'>0xb021</td> <td>ColorTemperature</td> <td class=c>int32u</td> <td>&nbsp;</td></tr> -<tr class=b> +<tr> <td title='0xb022 = 45090'>0xb022</td> <td>ColorCompensationFilter</td> <td class=c>int32u</td> <td><span class=s><span class=n>(negative is green, positive is magenta)</span></span></td></tr> -<tr> +<tr class=b> <td title='0xb023 = 45091'>0xb023</td> <td>SceneMode</td> <td class=c>int32u</td> <td><table class=cols><tr> <td>0 = Standard @@ -1066,18 +1106,18 @@ toward magenta)</span></span></td></tr> <br>27 = Food <br>28 = Pet <br>33 = HDR <br>65535 = n/a</td></tr></table> </td></tr> -<tr class=b> +<tr> <td title='0xb024 = 45092'>0xb024</td> <td>ZoneMatching</td> <td class=c>int32u</td> <td><span class=s>0 = ISO Setting Used <br>1 = High Key <br>2 = Low Key</span></td></tr> -<tr> +<tr class=b> <td title='0xb025 = 45093'>0xb025</td> <td>DynamicRangeOptimizer</td> <td class=c>int32u</td> <td><table class=cols><tr> <td>0 = Off @@ -1093,28 +1133,28 @@ toward magenta)</span></span></td></tr> <br>17 = Lv2 <br>18 = Lv3 <br>19 = Lv4 <br>20 = Lv5</td></tr></table> </td></tr> -<tr class=b> +<tr> <td title='0xb026 = 45094'>0xb026</td> <td>ImageStabilization</td> <td class=c>int32u</td> <td><span class=s>0 = Off <br>1 = On <br>4294967295 = n/a</span></td></tr> -<tr> +<tr class=b> <td title='0xb027 = 45095'>0xb027</td> <td>LensType</td> <td class=c>int32u</td> <td>--&gt; <a href='Sony.html#LensType'>Sony LensType Values</a></td></tr> -<tr class=b> +<tr> <td title='0xb028 = 45096'>0xb028</td> <td>MinoltaMakerNote</td> <td class=c>-</td> <td>--&gt; <a href='Minolta.html'>Minolta Tags</a></td></tr> -<tr> +<tr class=b> <td title='0xb029 = 45097'>0xb029</td> <td>ColorMode</td> <td class=c>int32u</td> <td><table class=cols><tr> <td>0 = Standard @@ -1142,35 +1182,35 @@ toward magenta)</span></span></td></tr> <br>104 = Night View <br>105 = Autumn Leaves <br>255 = Off <br>4294967295 = n/a</td></tr></table> </td></tr> -<tr class=b> +<tr> <td title='0xb02a = 45098'>0xb02a</td> <td>LensSpec</td> <td class=c>int8u[8]</td> <td><span class=s><span class=n>(like LensInfo, but also specifies lens features: DT, E, ZA, G, SSM, SAM, OSS, STF, Reflex, Macro and Fisheye)</span></span></td></tr> -<tr> +<tr class=b> <td title='0xb02b = 45099'>0xb02b</td> <td>FullImageSize</td> <td class=c>int32u[2]</td> <td>&nbsp;</td></tr> -<tr class=b> +<tr> <td title='0xb02c = 45100'>0xb02c</td> <td>PreviewImageSize</td> <td class=c>int32u[2]</td> <td>&nbsp;</td></tr> -<tr> +<tr class=b> <td title='0xb040 = 45120'>0xb040</td> <td>Macro</td> <td class=c>int16u</td> <td><span class=s>0 = Off <br>1 = On <br>2 = Close Focus <br>65535 = n/a</span></td></tr> -<tr class=b> +<tr> <td title='0xb041 = 45121'>0xb041</td> <td>ExposureMode</td> <td class=c>int16u</td> <td><table class=cols><tr> <td>0 = Program AE @@ -1203,20 +1243,20 @@ OSS, STF, Reflex, Macro and Fisheye)</span></span></td></tr> <br>40 = Background Defocus <br>41 = Soft Skin <br>42 = 3D Image <br>65535 = n/a</td></tr></table> </td></tr> -<tr> +<tr class=b> <td title='0xb042 = 45122'>0xb042</td> <td>FocusMode</td> <td class=c>int16u</td> <td><span class=s><span class=n>(not valid for all models)</span> <br>1 = AF-S <br>2 = AF-C <br>4 = Permanent-AF <br>65535 = n/a</span></td></tr> -<tr class=b> +<tr> <td title='0xb043 = 45123'>0xb043</td> <td>AFAreaMode</td> <td class=c>int16u</td> <td><span class=s><span class=n>(older models)</span></span><table class=cols><tr> <td>0 = Default @@ -1236,26 +1276,26 @@ OSS, STF, Reflex, Macro and Fisheye)</span></span></td></tr> <br>10 = Selective (for Miniature effect) <br>14 = Tracking <br>15 = Face Tracking <br>255 = Manual</td></tr></table> </td></tr> -<tr> +<tr class=b> <td title='0xb044 = 45124'>0xb044</td> <td>AFIlluminator</td> <td class=c>int16u</td> <td><span class=s>0 = Off <br>1 = Auto <br>65535 = n/a</span></td></tr> -<tr class=b> +<tr> <td title='0xb047 = 45127'>0xb047</td> <td>JPEGQuality</td> <td class=c>int16u</td> <td><span class=s>0 = Standard <br>1 = Fine <br>2 = Extra Fine <br>65535 = n/a</span></td></tr> -<tr> +<tr class=b> <td title='0xb048 = 45128'>0xb048</td> <td>FlashLevel</td> <td class=c>int16s</td> <td><table class=cols><tr> <td>-32768 = Low @@ -1275,11 +1315,11 @@ OSS, STF, Reflex, Macro and Fisheye)</span></span></td></tr> <br>6 = +6/3 <br>9 = +9/3 <br>128 = n/a <br>32767 = High</td></tr></table> </td></tr> -<tr class=b> +<tr> <td title='0xb049 = 45129'>0xb049</td> <td>ReleaseMode</td> <td class=c>int16u</td> <td><table class=cols><tr> <td>0 = Normal @@ -1287,60 +1327,60 @@ OSS, STF, Reflex, Macro and Fisheye)</span></span></td></tr> <br>5 = Exposure Bracketing <br>6 = White Balance Bracketing <br>8 = DRO Bracketing <br>65535 = n/a</td></tr></table> </td></tr> -<tr> +<tr class=b> <td title='0xb04a = 45130'>0xb04a</td> <td>SequenceNumber</td> <td class=c>int16u</td> <td><span class=s><span class=n>(shot number in continuous burst)</span> <br>0 = Single <br>65535 = n/a</span></td></tr> -<tr class=b> +<tr> <td title='0xb04b = 45131'>0xb04b</td> <td>Anti-Blur</td> <td class=c>int16u</td> <td><span class=s>0 = Off <br>1 = On (Continuous) <br>2 = On (Shooting) <br>65535 = n/a</span></td></tr> -<tr> +<tr class=b> <td title='0xb04e = 45134'>0xb04e</td> <td>FocusMode</td> <td class=c>int16u</td> <td><span class=s><span class=n>(valid for DSC-HX9V generation and newer)</span> <br>0 = Manual <br>2 = AF-S <br>3 = AF-C <br>5 = Semi-manual <br>6 = DMF</span></td></tr> -<tr class=b> +<tr> <td title='0xb04f = 45135'>0xb04f</td> <td>DynamicRangeOptimizer</td> <td class=c>int16u</td> <td><span class=s>0 = Off <br>1 = Standard <br>2 = Plus</span></td></tr> -<tr> +<tr class=b> <td title='0xb050 = 45136'>0xb050</td> <td>HighISONoiseReduction2</td> <td class=c>int16u</td> <td><span class=s><span class=n>(DSC models only)</span> <br>0 = Normal <br>1 = High <br>2 = Low <br>3 = Off <br>65535 = n/a</span></td></tr> -<tr class=b> +<tr> <td title='0xb052 = 45138'>0xb052</td> <td>IntelligentAuto</td> <td class=c>int16u</td> <td><span class=s>0 = Off <br>1 = On <br>2 = Advanced</span></td></tr> -<tr> +<tr class=b> <td title='0xb054 = 45140'>0xb054</td> <td>WhiteBalance</td> <td class=c>int16u</td> <td><span class=s><span class=n>(decoding of the Fluorescent settings matches the EXIF standard, which is different than the names used by Sony for some models)</span></span><table class=cols><tr> @@ -5275,11 +5315,14 @@ rotation -- the width is always the longer dimension.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='4447 = 0x115f'>4447</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -5301,11 +5344,14 @@ rotation -- the width is always the longer dimension.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='4451 = 0x1163'>4451</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -5669,11 +5715,14 @@ option is used.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='4451 = 0x1163'>4451</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -5695,11 +5744,14 @@ option is used.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='4455 = 0x1167'>4455</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -5895,11 +5947,14 @@ option is used.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='4415 = 0x113f'>4415</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -5921,11 +5976,14 @@ option is used.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='4419 = 0x1143'>4419</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -6107,11 +6165,14 @@ not valid for panorama images.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='4539 = 0x11bb'>4539</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -6133,11 +6194,14 @@ not valid for panorama images.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='4543 = 0x11bf'>4543</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -6323,11 +6387,14 @@ WX300, but not for panorama images.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='4503 = 0x1197'>4503</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -6349,11 +6416,14 @@ WX300, but not for panorama images.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='4507 = 0x119b'>4507</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -6590,11 +6660,14 @@ WX300, but not for panorama images.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='4175 = 0x104f'>4175</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -6616,11 +6689,14 @@ WX300, but not for panorama images.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='4179 = 0x1053'>4179</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -6802,11 +6878,14 @@ ILCE-7/7R/7S/7M2/5000/5100/6000/QX1, ILCA-68/77M2.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='583 = 0x247'>583</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -6828,11 +6907,14 @@ ILCE-7/7R/7S/7M2/5000/5100/6000/QX1, ILCA-68/77M2.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='587 = 0x24b'>587</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -7060,11 +7142,14 @@ ILCE-6300/6500/7RM2/7SM2, ILCA-99M2.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='583 = 0x247'>583</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -7086,11 +7171,14 @@ ILCE-6300/6500/7RM2/7SM2, ILCA-99M2.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='587 = 0x24b'>587</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -7323,11 +7411,14 @@ RX100M5A/RX100M7/HX99.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='568 = 0x238'>568</td> <td>PictureProfile</td> <td class=c>int8u</td> @@ -7349,11 +7440,14 @@ RX100M5A/RX100M7/HX99.</p> <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr class=b> <td class=r title='572 = 0x23c'>572</td> <td>PictureEffect2</td> <td class=c>int8u</td> @@ -8155,11 +8249,11 @@ models)</span></span></td></tr> <td class=c>undef[2]</td> <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <h2><a name='Tag9050c'>Sony Tag9050c Tags</a></h2> -<p>Valid from July 2020 for ILCE-1/7SM3.</p> +<p>Valid from July 2020 for ILCE-1/7SM3, ILME-FX3.</p> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Index1</th><th>Tag Name</th> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> @@ -8224,10 +8318,15 @@ models)</span></span></td></tr> <tr> <td class=r title='136 = 0x88'>136</td> <td>InternalSerialNumber</td> <td class=c title=' ~ = Writable only with -n'>int8u[6]~</td> <td>&nbsp;</td></tr> +<tr class=b> +<td class=r title='138 = 0x8a'>138</td> +<td>InternalSerialNumber</td> +<td class=c title=' ~ = Writable only with -n'>int8u[6]~</td> +<td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <h2><a name='Tag9400a'>Sony Tag9400a Tags</a></h2> <p>Valid for many DSC, NEX and SLT models</p> <blockquote> @@ -8460,11 +8559,16 @@ WX350/WX500, ILCE-1/7/7C/7R/7S/7M2/7M3/7RM2/7RM3/7RM4/7SM2/7SM3/9/9M2/5000/ <td>Quality2</td> <td class=c>int8u</td> <td><span class=s>0 = JPEG <br>1 = RAW <br>2 = RAW + JPEG - <br>3 = JPEG + MPO</span></td></tr> + <br>3 = JPEG + MPO + <br>1 = JPEG + <br>2 = RAW + <br>3 = RAW + JPEG + <br>4 = HEIF + <br>6 = RAW + HEIF</span></td></tr> <tr> <td class=r title='71 = 0x47'>71</td> <td>SonyImageHeight</td> <td class=c title=' ~ = Writable only with -n'>int16u~</td> <td>&nbsp;</td></tr> @@ -9044,11 +9148,11 @@ ILCE-7/7M2/7M3/7R/7RM2/7RM3/7RM4/7S/7SM2/9/9M2/5000/5100/6000/6100/6300/ <br>Bit 18 = Upper Far Left</td></tr></table> </td></tr> </table></td></tr></table></blockquote> <h2><a name='Tag940c'>Sony Tag940c Tags</a></h2> -<p>NEX and ILCE models only.</p> +<p>E-mount cameras only.</p> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Index1</th><th>Tag Name</th> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> @@ -10814,11 +10918,11 @@ ILCE-7/7M2/7M3/7R/7RM2/7RM3/7RM4/7S/7SM2/9/9M2/5000/5100/6000/6100/6300/ <td><span class=s><span class=n>(13(?)-bit intensity data from 1320 (1200) metering segments, extracted as a 16-bit TIFF image)</span></span></td></tr> </table></td></tr></table></blockquote> <h2><a name='Tag9416'>Sony Tag9416 Tags</a></h2> -<p>Valid for the ILCE-1/7SM3.</p> +<p>Valid for the ILCE-1/7SM3, ILME-FX3.</p> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Index1</th><th>Tag Name</th> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> @@ -10926,11 +11030,14 @@ ILCE-7/7M2/7M3/7R/7RM2/7RM3/7RM4/7S/7SM2/9/9M2/5000/5100/6000/6100/6300/ <br>27 = Gamma Cine4 <br>28 = Gamma S-Log2 (PP7) <br>29 = Gamma ITU709 (800%) <br>31 = Gamma S-Log3 (PP8 or PP9) <br>33 = Gamma HLG2 (PP10) - <br>34 = Gamma HLG3</td></tr></table> + <br>34 = Gamma HLG3 + <br>37 = FL + <br>39 = IN + <br>40 = SH</td></tr></table> </td></tr> <tr> <td class=r title='113 = 0x71'>113</td> <td>FocalLength</td> <td class=c>no</td> @@ -11646,9 +11753,9 @@ some models when the <a href="../ExifTool.html#ExtractEmbedded">ExtractEmbedded< <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Apr 1, 2021</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/index.html b/html/TagNames/index.html index aeb37210..14cd2554 100644 --- a/html/TagNames/index.html +++ b/html/TagNames/index.html @@ -8,11 +8,11 @@ </head> <body> <h2 class=top>ExifTool Tag Names</h2> <p> The tables listed below give the names of all tags recognized by ExifTool. -They contain a total of 24102 tags, with 15604 unique tag names. +They contain a total of 24118 tags, with 15614 unique tag names. </p> <blockquote> <table width='100%' class=frame><tr><td> <table width='100%' class=inner cellspacing=1><tr class=h> <th colspan=6><span class=l>Tag Table Index</span></th></tr> @@ -231,9 +231,9 @@ as accurate and complete as possible, and feed any new discoveries back to ExifTool. A big thanks to everyone who has helped with this so far!)</i> </p> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) <br><i>Created Feb 15, 2005</i> -<br><i>Last revised Apr 1, 2021</i> +<br><i>Last revised Apr 13, 2021</i> <p class=lf><a href='../index.html'>&lt;-- Back to ExifTool home page</a></p> </body> </html> diff --git a/html/exiftool_pod.html b/html/exiftool_pod.html index aae72ef2..e52652e2 100644 --- a/html/exiftool_pod.html +++ b/html/exiftool_pod.html @@ -683,11 +683,11 @@ <pre><code> exiftool -p test.fmt a.jpg b.jpg</code></pre> <p>produces output like this:</p> -<pre><code> -- Generated by ExifTool 12.23 -- +<pre><code> -- Generated by ExifTool 12.24 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end --</code></pre> diff --git a/html/exiftool_pod.pdf b/html/exiftool_pod.pdf index 227c878a..8448225c 100644 --- a/html/exiftool_pod.pdf +++ b/html/exiftool_pod.pdf @@ -10,11 +10,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 1)Tj +( -- ExifTool 12.24 -- 1)Tj /TT4 1 Tf 0 -1.6333 TD (EXIFTOOL\(1\) User Contributed Perl Documentation EXIFTOOL\(1\))Tj 0 -4.4 TD (N)Tj @@ -635,11 +635,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 2)Tj +( -- ExifTool 12.24 -- 2)Tj /TT4 1 Tf 0 -1.6333 TD ( AVIF r/w | FITS r | MAX r | PDB r | THM r/w)Tj 0 -1.1 TD ( AZW r | FLA r | MEF r/w | PDF r/w | TIFF r/w)Tj @@ -832,11 +832,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 3)Tj +( -- ExifTool 12.24 -- 3)Tj /TT4 1 Tf 0 -1.6333 TD ( -charset [[TYPE=]CHARSET] Specify encoding for special characters)Tj 0 -1.1 TD ( -csv[[+]=CSVFILE] Export/import tags in CSV format)Tj @@ -989,11 +989,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 4)Tj +( -- ExifTool 12.24 -- 4)Tj /TT4 1 Tf 0 -1.6333 TD ( -globalTimeShift SHIFT Shift all formatted date/time values)Tj 0 -1.1 TD ( -use MODULE Add features from plug-in module)Tj @@ -1280,11 +1280,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 5)Tj +( -- ExifTool 12.24 -- 5)Tj /TT4 1 Tf 0 -1.6333 TD ( the -)Tj 9.6 0 TD (-t)Tj @@ -1613,11 +1613,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 6)Tj +( -- ExifTool 12.24 -- 6)Tj /TT4 1 Tf 0 -1.6333 TD ( deletable Time tags except those in the EXIF. This difference)Tj 0 -1.1 TD ( also applies if family 2 is specified when deleting all groups.)Tj @@ -2050,11 +2050,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 7)Tj +( -- ExifTool 12.24 -- 7)Tj /TT4 1 Tf 0 -1.6333 TD ( specified for each copied tag. With this feature, information may)Tj 0 -1.1 TD ( be written to a tag with a different name or group. This is done)Tj @@ -2537,11 +2537,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 8)Tj +( -- ExifTool 12.24 -- 8)Tj /TT4 1 Tf 0 -1.6333 TD ( groups of tags from a file containing redundant information, it)Tj 0 -1.1 TD ( also prevents values of different tags from being copied into the)Tj @@ -3040,11 +3040,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 9)Tj +( -- ExifTool 12.24 -- 9)Tj /TT4 1 Tf 0 -1.6333 TD ( "unsafe". For instance, the FileName and Directory tags are)Tj 0 -1.1 TD ( excluded in the example above to avoid renaming and moving the)Tj @@ -3461,11 +3461,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 10)Tj +( -- ExifTool 12.24 -- 10)Tj /TT4 1 Tf 0 -1.6333 TD ( Vietnam cp1258 Windows Vietnamese)Tj 0 -1.1 TD ( Thai cp874 Windows Thai)Tj @@ -3746,11 +3746,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 11)Tj +( -- ExifTool 12.24 -- 11)Tj /TT4 1 Tf 0 -1.6333 TD ( names, the duplicate tags are only included in the CSV output if)Tj 0 -1.1 TD ( the column headings are unique. Adding the -)Tj @@ -4219,11 +4219,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 12)Tj +( -- ExifTool 12.24 -- 12)Tj /TT4 1 Tf 0 -1.6333 TD ( option, a dash \("-"\) is printed for the value of any missing tag,)Tj 0 -1.1 TD ( but the dash may be changed via the API MissingTagValue option.)Tj @@ -4836,11 +4836,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 13)Tj +( -- ExifTool 12.24 -- 13)Tj /TT4 1 Tf 0 -1.6333 TD ( UTF-8 regardless of any -)Tj 21.6 0 TD (-L)Tj @@ -5225,11 +5225,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 14)Tj +( -- ExifTool 12.24 -- 14)Tj /TT4 1 Tf 0 -2.7333 TD ( push @INC, 'lib';)Tj 0 -1.1 TD ( require Image::ExifTool::TagInfoXML;)Tj @@ -5490,11 +5490,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 15)Tj +( -- ExifTool 12.24 -- 15)Tj /TT4 1 Tf 0 -1.6333 TD ( A section is defined as a group of consecutive files with the same)Tj 0 -1.1 TD ( section header \(eg. files are grouped by directory if "#[SECT]")Tj @@ -5523,11 +5523,11 @@ T* T* ( exiftool -p test.fmt a.jpg b.jpg)Tj T* ( produces output like this:)Tj T* -( -- Generated by ExifTool 12.23 --)Tj +( -- Generated by ExifTool 12.24 --)Tj 0 -1.1 TD ( File: a.jpg - 2003:10:31 15:44:19)Tj T* ( \(f/5.6, 1/60s, ISO 100\))Tj T* @@ -5869,11 +5869,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 16)Tj +( -- ExifTool 12.24 -- 16)Tj /TT4 1 Tf 0 -1.6333 TD ( to column-align values.)Tj 0 -2.2 TD ( -)Tj @@ -6412,11 +6412,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 17)Tj +( -- ExifTool 12.24 -- 17)Tj /TT4 1 Tf 0 -1.6333 TD ( the source file extension \(including the '.'\) with the specified)Tj 0 -1.1 TD ( extension \(and a '.' is added to the start of _)Tj @@ -6643,11 +6643,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 18)Tj +( -- ExifTool 12.24 -- 18)Tj /TT4 1 Tf 0 -1.6333 TD ( For %d and %D, the field width/position specifiers may be applied)Tj 0 -1.1 TD ( to the directory levels instead of substring position by using a)Tj @@ -6874,11 +6874,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 19)Tj +( -- ExifTool 12.24 -- 19)Tj /TT4 1 Tf 0 -1.6333 TD ( the output file \(based on the format of the data\). The %g code)Tj 0 -1.1 TD ( may be followed by a single digit to specify the group family)Tj @@ -7381,11 +7381,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 20)Tj +( -- ExifTool 12.24 -- 20)Tj /TT4 1 Tf 0 -1.6333 TD ( -)Tj 4.2 0 TD (-a)Tj @@ -7882,11 +7882,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 21)Tj +( -- ExifTool 12.24 -- 21)Tj /TT4 1 Tf 0 -1.6333 TD ( that exiftool will automatically fix the offsets for images which)Tj 0 -1.1 TD ( store original offset information \(eg. newer Canon models\).)Tj @@ -8439,11 +8439,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 22)Tj +( -- ExifTool 12.24 -- 22)Tj /TT4 1 Tf 0 -1.6333 TD ( character to disable print conversion. The expression $GROUP:all)Tj 0 -1.1 TD ( evaluates to 1 if any tag exists in the specified "GROUP", or 0)Tj @@ -8754,11 +8754,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 23)Tj +( -- ExifTool 12.24 -- 23)Tj /TT4 1 Tf 0 -1.6333 TD ( with minor errors and disables some validation checks which could)Tj 0 -1.1 TD ( result in minor warnings. Generally, minor errors/warnings)Tj @@ -9309,11 +9309,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 24)Tj +( -- ExifTool 12.24 -- 24)Tj /TT4 1 Tf 0 -1.6333 TD ( necessary.)Tj 0 -2.2 TD ( Note that this option reverts to the behaviour of the)Tj @@ -9884,11 +9884,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 25)Tj +( -- ExifTool 12.24 -- 25)Tj /TT4 1 Tf 0 -1.6333 TD ( to tags with numerical tag ID's, and causes tag names like)Tj 0 -1.1 TD ( "Exif_0xc5d9" to be generated for unknown information. It has no)Tj @@ -10265,11 +10265,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 26)Tj +( -- ExifTool 12.24 -- 26)Tj /TT4 1 Tf 0 -1.6333 TD ( used to prevent the command window from closing when run as a)Tj 0 -1.1 TD ( Windows drag and drop application.)Tj @@ -10870,11 +10870,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 27)Tj +( -- ExifTool 12.24 -- 27)Tj /TT4 1 Tf 0 -1.6333 TD ( they are supported by the destination metadata format\):)Tj 0 -1.1 TD ( GPSLatitude, GPSLatitudeRef, GPSLongitude, GPSLongitudeRef,)Tj @@ -11237,11 +11237,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 28)Tj +( -- ExifTool 12.24 -- 28)Tj /TT4 1 Tf 0 -1.6333 TD ( -)Tj 4.2 0 TD (-d)Tj @@ -11904,11 +11904,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 29)Tj +( -- ExifTool 12.24 -- 29)Tj /TT4 1 Tf 0 -1.6333 TD ( -)Tj 7.2 0 TD (-e)Tj @@ -12537,11 +12537,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 30)Tj +( -- ExifTool 12.24 -- 30)Tj /TT4 1 Tf 0 -1.6333 TD ( per line \(see the -)Tj 18 0 TD (-@)Tj @@ -13094,11 +13094,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 31)Tj +( -- ExifTool 12.24 -- 31)Tj /TT4 1 Tf 0 -1.6333 TD ( with spaces translated to underlines, and multiple consecutive)Tj 0 -1.1 TD ( underlines replaced by a single underline:)Tj @@ -13293,11 +13293,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 32)Tj +( -- ExifTool 12.24 -- 32)Tj /TT4 1 Tf 0 -1.6333 TD ( valid ExifTool character set, preferably "UTF8" \(see the -)Tj 38.4 0 TD (-c)Tj @@ -13802,11 +13802,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 33)Tj +( -- ExifTool 12.24 -- 33)Tj /TT4 1 Tf 0 -1.6333 TD ( quotes as below around arguments containing special characters.)Tj 0 -2.2 TD ( exiftool -a -u -g1 a.jpg)Tj @@ -13939,11 +13939,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 34)Tj +( -- ExifTool 12.24 -- 34)Tj /TT4 1 Tf 0 -2.7333 TD ( exiftool -icc_profile -b -w icc image.jpg)Tj 0 -1.1 TD ( Save complete ICC_Profile from an image to an output file with the)Tj @@ -14106,11 +14106,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 35)Tj +( -- ExifTool 12.24 -- 35)Tj /TT4 1 Tf 0 -1.6333 TD ( exiftool -r -XMP-crss:all= DIR)Tj 0 -1.1 TD ( Recursively delete all XMP-crss information from images in a)Tj @@ -14273,11 +14273,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 36)Tj +( -- ExifTool 12.24 -- 36)Tj /TT4 1 Tf 0 -1.6333 TD ( Copy the values of all writable tags from "src.cr2" to "dst.jpg",)Tj 0 -1.1 TD ( writing the information to same-named tags in the preferred)Tj @@ -14442,11 +14442,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 37)Tj +( -- ExifTool 12.24 -- 37)Tj /TT4 1 Tf 0 -1.6333 TD ( Recursively rewrite all "JPG" images in "dir" with information)Tj 0 -1.1 TD ( copied from the corresponding "CR2" images in the same)Tj @@ -14689,11 +14689,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 38)Tj +( -- ExifTool 12.24 -- 38)Tj /TT4 1 Tf 0 -1.6333 TD ( exiftool -o . '-Directory<DateTimeOriginal' -d %Y/%m/%d dir)Tj 0 -1.1 TD ( Same effect as above except files are copied instead of moved.)Tj @@ -14866,11 +14866,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.23 -- 39)Tj +( -- ExifTool 12.24 -- 39)Tj /TT4 1 Tf 0 -1.6333 TD ( exiftool -xmp:geotag=track.log a.jpg)Tj 0 -1.1 TD ( Geotag an image with XMP tags, using the time from)Tj @@ -15241,11 +15241,11 @@ T* 0.6 0 TD (t_)Tj 0.6 0 TD (s\(3pm\), Image::ExifTool::Shift.pl)Tj -19.2 -4.4 TD -(perl v5.18.4 2021-04-01 EXIFTOOL\(1\))Tj +(perl v5.18.4 2021-04-13 EXIFTOOL\(1\))Tj ET endstream endobj 125 0 obj << @@ -15701,12 +15701,12 @@ endobj /MediaBox [0 0 595 842] >> endobj 130 0 obj << -/CreationDate (D:20210401142148-04'00') -/ModDate (D:20210401142148-04'00') +/CreationDate (D:20210413110921-04'00') +/ModDate (D:20210413110921-04'00') /Producer (Apple pstopdf) >> endobj 131 0 obj << @@ -15852,10 +15852,10 @@ xref trailer << /Size 132 /Root 131 0 R /Info 130 0 R -/ID [<ab798910bbf7ddf1029ca400262164d7><ab798910bbf7ddf1029ca400262164d7>] +/ID [<88f6ccfb20ef49d8fb5d8a90914f5aa9><88f6ccfb20ef49d8fb5d8a90914f5aa9>] >> startxref 267700 %%EOF diff --git a/html/history.html b/html/history.html index b79d5245..ae5b647f 100644 --- a/html/history.html +++ b/html/history.html @@ -15,10 +15,22 @@ considered development releases, and are not uploaded to <a href="https://metacpan.org/release/Image-ExifTool">MetaCPAN</a>.)</p> <!-- Use line width of 80 --> <!-- *********************************************************************** --> +<a name='v12.24'><b>Apr. 13, 2021 - Version 12.24</b></a> +<ul> +<li>Added a new PhaseOne RawFormat value (thanks LibRaw) +<li>Decode a new Sony tag (thanks Jos Roost) +<li>Decode a few new Panasonic and FujiFilm tags (thanks LibRaw and Greybeard) +<li>Patched security vulnerability in DjVu reader +<li>Updated acdsee.config in distribution (thanks StarGeek) +<li>Recognize AutoCAD DXF files +<li>More work on experimental JUMBF read support +<li>More work on experimental JXL read/write support +</ul> + <a name='v12.23'><b>Apr. 1, 2021 - Version 12.23</b></a> <ul> <li>Added support for Olympus ORI files <li>Added experimental read/write support for JPEG XL images <li>Added experimental read support for JUMBF metadata in JPEG and Jpeg2000 @@ -32,11 +44,11 @@ considered development releases, and are not uploaded to <a href="https://metacp <li>Patched to avoid escaping ',' in "Binary data" message when -struct is used <li>Removed Unknown flag from MXF VideoCodingSchemeID tag <li>Fixed -forcewrite=EXIF to apply to EXIF in binary header of EPS files <li>API Changes: <ul> - <li>Added BlockExtract option + <li>Added <a href="ExifTool.html#BlockExtract">BlockExtract option</a> </ul> </ul> <a name='v12.22'><b>Mar. 17, 2021 - Version 12.22</b></a> <ul> diff --git a/html/index.html b/html/index.html index e9dd5878..725aca3c 100644 --- a/html/index.html +++ b/html/index.html @@ -79,13 +79,13 @@ span.sup { font-size: 0.8em; font-weight: normal; position: relative; top <br><a href="#donate">Donate</a> <br><a href="#contact">Contact Me</a> </div> <blockquote><table class='dl lg'><tr><td><b> -<a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.23.tar.gz/download"> -Download Version 12.23</a> (4.7 MB) - -<a href="history.html">Apr. 1, 2021</a></b></td></tr></table></blockquote> +<a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.24.tar.gz/download"> +Download Version 12.24</a> (4.7 MB) - +<a href="history.html">Apr. 13, 2021</a></b></td></tr></table></blockquote> <p><b>ExifTool is a platform-independent <a href="ExifTool.html">Perl library</a> plus a <a href="exiftool_pod.html">command-line application</a> for reading, writing and editing meta information in a <a href="#supported">wide variety of files</a>.</b> @@ -134,12 +134,12 @@ as well as the maker notes of many digital cameras by only, and do not include the HTML documentation or other files of the full distribution above.)</i></p> <blockquote><table class='dl lg'><tr><td><b> <a name="alone">Windows Executable:</a> -<a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.23.zip/download"> - exiftool-12.23.zip</a> (6.4 MB)</b></td></tr></table></blockquote> +<a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.24.zip/download"> + exiftool-12.24.zip</a> (6.4 MB)</b></td></tr></table></blockquote> <p><b>The stand-alone Windows executable</b> does not require Perl. Just download and un-zip the archive then double-click on "<code>exiftool(-k).exe</code>" to read the application documentation, drag-and-drop files and folders to view meta information, or rename to @@ -153,11 +153,11 @@ that avoids some problems of the self-extracting archive version above. Please if you have any problems/comments with this version.)</i></p> <blockquote><table class='dl lg'><tr><td><b> MacOS Package: <a href="http://sourceforge.net/projects/exiftool/files/ExifTool-9.70.dmg/download"> - ExifTool-12.23.dmg</a> (3.0 MB)</b></td></tr></table></blockquote> + ExifTool-12.24.dmg</a> (3.0 MB)</b></td></tr></table></blockquote> <p><b>The MacOS package</b> installs the ExifTool command-line application and libraries in /usr/local/bin. After installing, type "<code>exiftool</code>" in a Terminal window to run exiftool and read the application documentation.</p> diff --git a/html/install.html b/html/install.html index f24fc89f..fc49abba 100644 --- a/html/install.html +++ b/html/install.html @@ -50,14 +50,14 @@ executable, but note that the stand-alone version doesn't include the HTML documentation or some other files of the full distribution.</p> <h3>Stand-Alone Executable</h3> <ol> <li><b>Download</b> the <b>Windows Executable</b> from the <a href="index.html">ExifTool home page</a>. -<br><span class=lt>(The file you download should be named "<code>exiftool-12.23.zip</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>exiftool-12.24.zip</code>".)</span></li> <li><b>Extract "<code>exiftool(-k).exe</code>"</b> from the "<code>.zip</code>" file, and place it <b>on your Desktop</b>. -<br><span class=lt>(Double-click on "<code>exiftool-12.23.zip</code>" to open +<br><span class=lt>(Double-click on "<code>exiftool-12.24.zip</code>" to open the archive, then drag "<code>exiftool(-k).exe</code>" to your Desktop.)</span></li> </ol> <p>You can now double-click on "<code>exiftool(-k).exe</code>" to read the application documentation, or drag-and-drop files and folders to run exiftool on selected files. To install exiftool for <b>use from the command line</b>, @@ -107,11 +107,11 @@ or later). Alternately, this command may be used to delete these files: <p>You must have Perl installed to use this version. (A free version of Perl can be downloaded from <a href="http://www.activestate.com/activeperl/">activeperl.com</a>.)</p> <ol> <li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> -<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.23.tar.gz</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.24.tar.gz</code>".)</span></li> <li><b>Extract the ExifTool files</b> from the archive. <br><span class=lt>(The archive is a gzipped tar file, and can be opened with various Windows utilities, including WinZip.)</span></li> <li><b>Rename</b> "<code>exiftool</code>" to <b>"<code>exiftool.pl</code>"</b> in the exiftool distribution.</li> @@ -149,11 +149,11 @@ full distribution includes HTML documentation and some other files not included in the MacOS package. Both versions run natively on PPC and Intel Macs.</p> <h3>MacOS Package</h3> <ol> <li><b>Download</b> the <b>ExifTool MacOS Package</b> from the <a href="index.html">ExifTool home page</a>. -<br><span class=lt>(The file you download should be named "<code>ExifTool-12.23.dmg</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>ExifTool-12.24.dmg</code>".)</span></li> <li><b>Install</b> as a normal <b>MacOS package</b>. <br><span class=lt>(Open the disk image, double-click on the install package, and follow the instructions. See the second item in the Notes section below if you are stopped with an "unidentified developer" message.) </span></li> </ol> @@ -165,16 +165,16 @@ See the second item in the Notes section below if you are stopped with an "unide <h3>Full Perl Distribution</h3> <ol> <li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> to your Desktop. -<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.23.tar.gz</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.24.tar.gz</code>".)</span></li> <li><b>Launch</b> the <b>Terminal</b> application from the Utilities folder in your Applications folder.</li> <li>In the Terminal window, <b>type the following</b>: <pre class='code'> cd ~/Desktop - tar -xzf Image-ExifTool-12.23.tar.gz - cd Image-ExifTool-12.23 + tar -xzf Image-ExifTool-12.24.tar.gz + cd Image-ExifTool-12.24 sudo cp -r exiftool lib /usr/local/bin </pre> <span class=lt>(Note: The last step above will require you to enter your password.)</span></li> </ol> @@ -186,11 +186,11 @@ exiftool and its lib directory in /usr/local/bin, while the standard Unix /usr/local/bin and the individual libraries in /Library/Perl/#.#.#, where "#.#.#" is your Perl version. If both sets of libraries exist, /usr/local/bin/lib takes precedence for exiftool, but /Library/Perl/#.#.# is the default for any other Perl scripts.</li> <li>In MacOS 10.8 or later, you may see this message when you try to open the install package: -<blockquote class=red>"ExifTool-12.23.pkg" can't be opened because it is from an +<blockquote class=red>"ExifTool-12.24.pkg" can't be opened because it is from an unidentified developer.</blockquote> The solution is to control-click on the pkg then select "Open" from the pop-up menu instead of just double-clicking. An alternative is to lower the security settings by changing "Allow applications downloaded from" to "Anywhere" in the General "Security &amp; Privacy" System Preferences. (<a href="https://support.apple.com/en-us/HT202491">Read here</a> or @@ -213,15 +213,15 @@ have the wrong "<code>lib</code>" folder.</li> <hr> <h2><a name="Unix">Unix Platforms</a></h2> <ol> <li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> -<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.23.tar.gz</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.24.tar.gz</code>".)</span></li> <li><b>Unpack the distribution</b> and <b>make it your current directory</b> by typing: <pre class='code'> cd <i>&lt;your download directory&gt;</i> - gzip -dc Image-ExifTool-12.23.tar.gz | tar -xf - - cd Image-ExifTool-12.23 + gzip -dc Image-ExifTool-12.24.tar.gz | tar -xf - + cd Image-ExifTool-12.24 </pre> <span class=lt>(At this point you may run exiftool by typing "<code>./exiftool <i>&lt;image file name&gt;</i></code>".)</span></li> <li><b>Test and install ExifTool</b> by typing: <pre class='code'> diff --git a/lib/Image/ExifTool.pm b/lib/Image/ExifTool.pm index 5325f10e..9f3aedfa 100644 --- a/lib/Image/ExifTool.pm +++ b/lib/Image/ExifTool.pm @@ -26,11 +26,11 @@ use vars qw($VERSION $RELEASE @ISA @EXPORT_OK %EXPORT_TAGS $AUTOLOAD @fileTypes $psAPP13hdr $psAPP13old @loadAllTables %UserDefined $evalWarning %noWriteFile %magicNumber @langs $defaultLang %langName %charsetName %mimeType $swapBytes $swapWords $currentByteOrder %unpackStd %jpegMarker %specialTags %fileTypeLookup $testLen $exePath); -$VERSION = '12.23'; +$VERSION = '12.24'; $RELEASE = ''; @ISA = qw(Exporter); %EXPORT_TAGS = ( # all public non-object-oriented functions: Public => [qw( @@ -187,23 +187,23 @@ $defaultLang = 'en'; # default language @fileTypes = qw(JPEG EXV CRW DR4 TIFF GIF MRW RAF X3F JP2 PNG MIE MIFF PS PDF PSD XMP BMP BPG PPM RIFF AIFF ASF MOV MPEG Real SWF PSP FLV OGG FLAC APE MPC MKV MXF DV PMP IND PGF ICC ITC FLIR FLIF FPF LFP HTML VRD RTF FITS XCF DSS QTIF FPX PICT ZIP GZIP PLIST RAR BZ2 CZI TAR EXE EXR HDR CHM LNK WMF AVC DEX DPX RAW Font RSRC M2TS - MacOS PHP PCX DCX DWF DWG WTV Torrent VCard LRI R3D AA PDB MOI - ISO ALIAS JSON MP3 DICOM PCD TXT); + MacOS PHP PCX DCX DWF DWG DXF WTV Torrent VCard LRI R3D AA PDB + JXL MOI ISO ALIAS JSON MP3 DICOM PCD TXT); # file types that we can write (edit) my @writeTypes = qw(JPEG TIFF GIF CRW MRW ORF RAF RAW PNG MIE PSD XMP PPM EPS - X3F PS PDF ICC VRD DR4 JP2 EXIF AI AIT IND MOV EXV FLIF); + X3F PS PDF ICC VRD DR4 JP2 JXL EXIF AI AIT IND MOV EXV FLIF); my %writeTypes; # lookup for writable file types (hash filled if required) # file extensions that we can't write for various base types %noWriteFile = ( TIFF => [ qw(3FR DCR K25 KDC SRF) ], XMP => [ qw(SVG INX) ], - JP2 => [ qw(J2C JPC JXC) ], + JP2 => [ qw(J2C JPC) ], MOV => [ qw(INSV) ], ); # file types that we can create from scratch # - must update CanCreate() documentation if this list is changed! @@ -290,10 +290,11 @@ my %createTypes = map { $_ => 1 } qw(XMP ICC MIE VRD DR4 EXIF EXV); DVB => ['MOV', 'Digital Video Broadcasting'], 'DVR-MS'=>['ASF', 'Microsoft Digital Video recording'], DWF => ['DWF', 'Autodesk drawing (Design Web Format)'], DWG => ['DWG', 'AutoCAD Drawing'], DYLIB=> ['EXE', 'Mach-O Dynamic Link Library'], + DXF => ['DXF', 'AutoCAD Drawing Exchange Format'], EIP => ['ZIP', 'Capture One Enhanced Image Package'], EPS => ['EPS', 'Encapsulated PostScript Format'], EPS2 => 'EPS', EPS3 => 'EPS', EPSF => 'EPS', @@ -353,12 +354,11 @@ my %createTypes = map { $_ => 1 } qw(XMP ICC MIE VRD DR4 EXIF EXV); JPF => 'JP2', JPG => 'JPEG', JPM => ['JP2', 'JPEG 2000 compound image'], JPX => ['JP2', 'JPEG 2000 with extensions'], JSON => ['JSON', 'JavaScript Object Notation'], - JXC => ['JP2', 'JPEG XL Codestream'], # (JXC = PH invention, not a real extension) - JXL => ['JP2', 'JPEG XL'], + JXL => ['JXL', 'JPEG XL'], JXR => ['TIFF', 'JPEG XR'], K25 => ['TIFF', 'Kodak DC25 RAW'], KDC => ['TIFF', 'Kodak Digital Camera RAW'], KEY => ['ZIP', 'Apple Keynote presentation'], KTH => ['ZIP', 'Apple Keynote Theme'], @@ -615,10 +615,11 @@ my %fileDescription = ( DSS => 'audio/x-dss', DV => 'video/x-dv', 'DVR-MS' => 'video/x-ms-dvr', DWF => 'model/vnd.dwf', DWG => 'image/vnd.dwg', + DXF => 'application/dxf', EIP => 'application/x-captureone', #(NC) EPS => 'application/postscript', ERF => 'image/x-epson-erf', EXE => 'application/octet-stream', EXR => 'image/x-exr', @@ -652,11 +653,10 @@ my %fileDescription = ( JP2 => 'image/jp2', JPEG => 'image/jpeg', JPM => 'image/jpm', JPX => 'image/jpx', JSON => 'application/json', - JXC => 'image/x-jxc', #PH (invented) JXL => 'image/jxl', #PH (NC) JXR => 'image/jxr', K25 => 'image/x-kodak-k25', KDC => 'image/x-kodak-kdc', KEY => 'application/x-iwork-keynote-sffkey', @@ -803,10 +803,11 @@ my %moduleName = ( DCX => 0, DR4 => 'CanonVRD', DSS => 'Olympus', DWF => 0, DWG => 0, + DXF => 0, EPS => 'PostScript', EXIF => '', EXR => 'OpenEXR', EXV => '', ICC => 'ICC_Profile', @@ -878,10 +879,11 @@ $testLen = 1024; # number of bytes to read when testing for magic number DR4 => 'IIII\x04\0\x04\0', DSS => '(\x02dss|\x03ds2)', DV => '\x1f\x07\0[\x3f\xbf]', # (not tested if extension recognized) DWF => '\(DWF V\d', DWG => 'AC10\d{2}\0', + DXF => '\s*0\s+\0?\s*SECTION\s+2\s+HEADER', EPS => '(%!PS|%!Ad|\xc5\xd0\xd3\xc6)', EXE => '(MZ|\xca\xfe\xba\xbe|\xfe\xed\xfa[\xce\xcf]|[\xce\xcf]\xfa\xed\xfe|Joy!peff|\x7fELF|#!\s*/\S*bin/|!<arch>\x0a)', EXIF => '(II\x2a\0|MM\0\x2a)', EXR => '\x76\x2f\x31\x01', EXV => '\xff\x01Exiv2', @@ -900,13 +902,14 @@ $testLen = 1024; # number of bytes to read when testing for magic number HTML => '(\xef\xbb\xbf)?\s*(?i)<(!DOCTYPE\s+HTML|HTML|\?xml)', # (case insensitive) ICC => '.{12}(scnr|mntr|prtr|link|spac|abst|nmcl|nkpf)(XYZ |Lab |Luv |YCbr|Yxy |RGB |GRAY|HSV |HLS |CMYK|CMY |[2-9A-F]CLR){2}', IND => '\x06\x06\xed\xf5\xd8\x1d\x46\xe5\xbd\x31\xef\xe7\xfe\x74\xb7\x1d', # ISO => signature is at byte 32768 ITC => '.{4}itch', - JP2 => '(\0\0\0\x0cjP( |\x1a\x1a)\x0d\x0a\x87\x0a|\xff\x4f\xff\x51\0|\xff\x0a|\0\0\0\x0cJXL \x0d\x0a......ftypjxl )', + JP2 => '(\0\0\0\x0cjP( |\x1a\x1a)\x0d\x0a\x87\x0a|\xff\x4f\xff\x51\0)', JPEG => '\xff\xd8\xff', JSON => '(\xef\xbb\xbf)?\s*(\[\s*)?\{\s*"[^"]*"\s*:', + JXL => '\xff\x0a|\0\0\0\x0cJXL \x0d\x0a......ftypjxl ', LFP => '\x89LFP\x0d\x0a\x1a\x0a', LNK => '.{4}\x01\x14\x02\0{5}\xc0\0{6}\x46', LRI => 'LELR \0', M2TS => '(....)?\x47', MIE => '~[\x10\x18]\x04.0MIE', diff --git a/lib/Image/ExifTool.pod b/lib/Image/ExifTool.pod index 25e27205..ebf3d071 100644 --- a/lib/Image/ExifTool.pod +++ b/lib/Image/ExifTool.pod @@ -439,13 +439,14 @@ large binary data blocks (eg. ThumbnailImage) are not necessarily extracted unless this option is set or the tag is specifically requested by name. Default is undef. =item BlockExtract -Flag to extract some directories (mentioned in the Tag Name documentation) -as a block. Setting this to a value of 2 also prevents parsing the block to -extract tags contained within. +Flag to extract some directories (mentioned in the +L<ExifTool tag name documentation|Image::ExifTool::TagNames>) as a block. +Setting this to a value of 2 also prevents parsing the block to extract tags +contained within. =item ByteOrder The byte order for newly created EXIF segments when writing. Note that if EXIF information already exists, the existing order is maintained. Valid diff --git a/lib/Image/ExifTool/DjVu.pm b/lib/Image/ExifTool/DjVu.pm index c284d104..03b3f9f0 100644 --- a/lib/Image/ExifTool/DjVu.pm +++ b/lib/Image/ExifTool/DjVu.pm @@ -16,11 +16,11 @@ package Image::ExifTool::DjVu; use strict; use vars qw($VERSION); use Image::ExifTool qw(:DataAccess :Utils); -$VERSION = '1.06'; +$VERSION = '1.07'; sub ParseAnt($); sub ProcessAnt($$$); sub ProcessMeta($$$); sub ProcessBZZ($$$); @@ -225,14 +225,15 @@ Tok: for (;;) { $tok .= substr($$dataPt, $pos, pos($$dataPt)-1-$pos); # we're good unless quote was escaped by odd number of backslashes last unless $tok =~ /(\\+)$/ and length($1) & 0x01; $tok .= '"'; # quote is part of the string } - # must protect unescaped "$" and "@" symbols, and "\" at end of string - $tok =~ s{\\(.)|([\$\@]|\\$)}{'\\'.($2 || $1)}sge; - # convert C escape sequences (allowed in quoted text) - $tok = eval qq{"$tok"}; + # convert C escape sequences, allowed in quoted text + # (note: this only converts a few of them!) + my %esc = ( a => "\a", b => "\b", f => "\f", n => "\n", + r => "\r", t => "\t", '"' => '"', '\\' => '\\' ); + $tok =~ s/\\(.)/$esc{$1}||'\\'.$1/egs; } else { # key name pos($$dataPt) = pos($$dataPt) - 1; # allow anything in key but whitespace, braces and double quotes # (this is one of those assumptions I mentioned) $tok = $$dataPt =~ /([^\s()"]+)/sg ? $1 : undef; diff --git a/lib/Image/ExifTool/FujiFilm.pm b/lib/Image/ExifTool/FujiFilm.pm index baf488bd..d21b2108 100644 --- a/lib/Image/ExifTool/FujiFilm.pm +++ b/lib/Image/ExifTool/FujiFilm.pm @@ -29,11 +29,11 @@ package Image::ExifTool::FujiFilm; use strict; use vars qw($VERSION); use Image::ExifTool qw(:DataAccess :Utils); use Image::ExifTool::Exif; -$VERSION = '1.79'; +$VERSION = '1.80'; sub ProcessFujiDir($$$); sub ProcessFaceRec($$$); # the following RAF version numbers have been tested for writing: @@ -505,20 +505,23 @@ my %faceCategories = ( Writable => 'int16u', PrintConv => { 0 => 'Off', 1 => 'On', 2 => 'No flash & flash', #3 + 6 => 'Pixel Shift', #IB (GFX100S) }, }], 0x1101 => { Name => 'SequenceNumber', Writable => 'int16u', }, 0x1103 => { Name => 'DriveSettings', SubDirectory => { TagTable => 'Image::ExifTool::FujiFilm::DriveSettings' }, }, + 0x1105 => { Name => 'PixelShiftShots', Writable => 'int16u' }, #IB + 0x1106 => { Name => 'PixelShiftOffset', Writable => 'rational64s', Count => 2 }, #IB # (0x1150-0x1152 exist only for Pro Low-light and Pro Focus PictureModes) # 0x1150 - Pro Low-light - val=1; Pro Focus - val=2 (ref 7); HDR - val=128 (forum10799) # 0x1151 - Pro Low-light - val=4 (number of pictures taken?); Pro Focus - val=2,3 (ref 7); HDR - val=3 (forum10799) # 0x1152 - Pro Low-light - val=1,3,4 (stacked pictures used?); Pro Focus - val=1,2 (ref 7); HDR - val=3 (forum10799) 0x1153 => { #forum7668 @@ -913,36 +916,43 @@ my %faceCategories = ( GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' }, FORMAT => 'int32u', WRITABLE => 1, 0.1 => { Name => 'FocusMode2', - Mask => 0x000000ff, + Mask => 0x0000000f, PrintConv => { - 0x00 => 'AF-M', - 0x01 => 'AF-S', - 0x02 => 'AF-C', - 0x11 => 'AF-S (Auto)', + 0x0 => 'AF-M', + 0x1 => 'AF-S', + 0x2 => 'AF-C', }, }, 0.2 => { + Name => 'PreAF', + Mask => 0x00f0, + PrintConv => { + 0 => 'Off', + 1 => 'On', + }, + }, + 0.3 => { Name => 'AFAreaMode', Mask => 0x0f00, PrintConv => { 0 => 'Single Point', 1 => 'Zone', 2 => 'Wide/Tracking', }, }, - 0.3 => { + 0.4 => { Name => 'AFAreaPointSize', Mask => 0xf000, PrintConv => { 0 => 'n/a', OTHER => sub { return $_[0] }, }, }, - 0.4 => { + 0.5 => { Name => 'AFAreaZoneSize', Mask => 0xf0000, PrintConv => { 0 => 'n/a', OTHER => sub { diff --git a/lib/Image/ExifTool/Jpeg2000.pm b/lib/Image/ExifTool/Jpeg2000.pm index fc38cab0..ba141244 100644 --- a/lib/Image/ExifTool/Jpeg2000.pm +++ b/lib/Image/ExifTool/Jpeg2000.pm @@ -605,12 +605,12 @@ my %jumbfTypes = ( # JUMBF description box %Image::ExifTool::Jpeg2000::JUMD = ( PROCESS_PROC => \&ProcessJUMD, GROUPS => { 0 => 'JUMBF', 1 => 'JUMBF', 2 => 'Image' }, NOTES => 'Information extracted from the JUMBF description box.', - type => { - Name => 'JUMBFType', + 'jumd-type' => { + Name => 'JUMDType', ValueConv => 'unpack "H*", $val', PrintConv => q{ my @a = $val =~ /^(\w{8})(\w{4})(\w{4})(\w{16})$/; return $val unless @a; my $ascii = pack 'H*', $a[0]; @@ -619,13 +619,22 @@ my %jumbfTypes = ( }, # seen: # cacb/cast/caas/cacl/casg/json-00110010800000aa00389b71 # 6579d6fbdba2446bb2ac1b82feeb89d1 - JPEG image }, - label => { Name => 'JUMBFLabel' }, - id => { Name => 'JUMBFID', Description => 'JUMBF ID' }, - signature => { Name => 'JUMBFSignature', PrintConv => 'unpack "H*", $val' }, + 'jumd-label' => { Name => 'JUMDLabel' }, + 'jumd-flags' => { + Name => 'JUMDFlags', + PrintConv => { BITMASK => { + 0 => 'Requestable', + 1 => 'Label', + 2 => 'ID', + 3 => 'Signature', + }}, + }, + 'jumd-id' => { Name => 'JUMDID', Description => 'JUMD ID' }, + 'jumd-sig' => { Name => 'JUMDSignature', PrintConv => 'unpack "H*", $val' }, ); #------------------------------------------------------------------------------ # Read JUMBF box to keep track of sub-document numbers # Inputs: 0) ExifTool ref, 1) dirInfo ref, 2) tag table ref @@ -664,19 +673,20 @@ sub ProcessJUMD($$$) my $end = $pos + $$dirInfo{DirLen}; $et->VerboseDir('JUMD', 0, $end-$pos); delete $$et{JUMBFLabel}; $$dirInfo{DirLen} < 17 and $et->Warn('Truncated JUMD directory'), return 0; my $type = substr($$dataPt, $pos, 4); - $et->HandleTag($tagTablePtr, 'type', substr($$dataPt, $pos, 16)); + $et->HandleTag($tagTablePtr, 'jumd-type', substr($$dataPt, $pos, 16)); $pos += 16; my $flags = Get8u($dataPt, $pos++); + $et->HandleTag($tagTablePtr, 'jumd-flags', $flags); if ($flags & 0x02) { # label exists? pos($$dataPt) = $pos; $$dataPt =~ /\0/g or $et->Warn('Missing JUMD label terminator'), return 0; my $len = pos($$dataPt) - $pos; my $name = substr($$dataPt, $pos, $len); - $et->HandleTag($tagTablePtr, 'label', $name); + $et->HandleTag($tagTablePtr, 'jumd-label', $name); $pos += $len; if ($len) { $name =~ s/[^-_a-zA-Z0-9]([a-z])/\U$1/g; # capitalize characters after illegal characters $name =~ tr/-_a-zA-Z0-9//dc; # remove other illegal characters $name = ucfirst $name; # capitalize first letter @@ -684,16 +694,16 @@ sub ProcessJUMD($$$) $$et{JUMBFLabel} = $name; } } if ($flags & 0x04) { # ID exists? $pos + 4 > $end and $et->Warn('Missing JUMD ID'), return 0; - $et->HandleTag($tagTablePtr, 'id', Get32u($dataPt, $pos)); + $et->HandleTag($tagTablePtr, 'jumd-id', Get32u($dataPt, $pos)); $pos += 4; } if ($flags & 0x08) { # signature exists? $pos + 32 > $end and $et->Warn('Missing JUMD signature'), return 0; - $et->HandleTag($tagTablePtr, 'signature', substr($$dataPt, $pos, 32)); + $et->HandleTag($tagTablePtr, 'jumd-sig', substr($$dataPt, $pos, 32)); $pos += 32; } $pos == $end or $et->Warn('Extra data in JUMD box'." $pos $end", 1); return 1; } @@ -1041,10 +1051,11 @@ sub GetBits($$) } #------------------------------------------------------------------------------ # Extract parameters from JPEG XL codestream [unverified!] # Inputs: 0) ExifTool ref, 1) codestream ref +# Returns: 1 sub ProcessJXLCodestream($$) { my ($et, $dataPt) = @_; # add padding if necessary to avoid unpacking past end of data if (length $$dataPt < 14) { @@ -1074,10 +1085,11 @@ sub ProcessJXLCodestream($$) my $r = [[1,1],[12,10],[4,3],[3,2],[16,9],[5,4],[2,1]]->[$ratio-1]; $x = int($y * $$r[0] / $$r[1]); } $et->FoundTag(ImageWidth => $x); $et->FoundTag(ImageHeight => $y); + return 1; } #------------------------------------------------------------------------------ # Read/write meta information from a JPEG 2000 image # Inputs: 0) ExifTool object reference, 1) dirInfo reference @@ -1092,20 +1104,12 @@ sub ProcessJP2($$) # check to be sure this is a valid JPG2000 file return 0 unless $raf->Read($hdr,12) == 12; unless ($hdr eq "\0\0\0\x0cjP \x0d\x0a\x87\x0a" or # (ref 1) $hdr eq "\0\0\0\x0cjP\x1a\x1a\x0d\x0a\x87\x0a" or # (ref 2) - ($hdr eq "\0\0\0\x0cJXL \x0d\x0a\x87\x0a" and $$et{IsJXL} = 1)) # (JPEG XL) + $$et{IsJXL}) { - if ($hdr =~ /^\xff\x0a/) { - $outfile and $et->Error('Writing of JPEG XL codestream files is not yet supported'), return 0; - # JPEG XL codestream - $et->SetFileType('JXC',undef,'JXL'); # (PH invention) - $et->Warn('JPEG XL codestream support is currently experimental',1); - ProcessJXLCodestream($et, \$hdr); - return 1; - } return 0 unless $hdr =~ /^\xff\x4f\xff\x51\0/; # check for JP2 codestream format if ($outfile) { $et->Error('Writing of J2C files is not yet supported'); return 0 } @@ -1115,11 +1119,10 @@ sub ProcessJP2($$) } $et->SetFileType('J2C'); $raf->Seek(0,0); return $et->ProcessJPEG($dirInfo); # decode with JPEG processor } - $et->Warn('JPEG XL support is currently experimental',1) if $$et{IsJXL}; if ($outfile) { Write($outfile, $hdr) or return -1; if ($$et{IsJXL}) { $et->InitWriteDirs(\%jxlMap); $$et{AddJp2Tags} = { }; # (don't add JP2 tags in JXL files) @@ -1152,15 +1155,60 @@ sub ProcessJP2($$) } #------------------------------------------------------------------------------ # Read meta information from a JPEG XL image # Inputs: 0) ExifTool object reference, 1) dirInfo reference -# Returns: 1 on success, 0 if this wasn't a valid JPEG XL file +# Returns: 1 on success, 0 if this wasn't a valid JPEG XL file, -1 on write error sub ProcessJXL($$) { my ($et, $dirInfo) = @_; - return ProcessJP2($et, $dirInfo); + my $raf = $$dirInfo{RAF}; + my $outfile = $$dirInfo{OutFile}; + my ($hdr, $buff); + + return 0 unless $raf->Read($hdr,12) == 12; + if ($hdr eq "\0\0\0\x0cJXL \x0d\x0a\x87\x0a") { + # JPEG XL in ISO BMFF container + $$et{IsJXL} = 1; + } elsif ($hdr =~ /^\xff\x0a/) { + # JPEG XL codestream + if ($outfile) { + if ($$et{OPTIONS}{IgnoreMinorErrors}) { + $et->Warn('Wrapped JXL codestream in ISO BMFF container'); + } else { + $et->Error('Will wrap JXL codestream in ISO BMFF container for writing',1); + return 0; + } + $$et{IsJXL} = 2; + my $buff = "\0\0\0\x0cJXL \x0d\x0a\x87\x0a\0\0\0\x14ftypjxl \0\0\0\0jxl "; + # add metadata to empty ISO BMFF container + $$dirInfo{RAF} = new File::RandomAccess(\$buff); + } else { + $et->Warn('JPEG XL codestream support is currently experimental',1); + $et->SetFileType('JXL Codestream','image/jxl', 'jxl'); + return ProcessJXLCodestream($et, \$hdr); + } + } else { + return 0; + } + $raf->Seek(0,0) or $et->Error('Seek error'), return 0; + $et->Warn('JPEG XL support is currently experimental',1); + + my $success = ProcessJP2($et, $dirInfo); + + if ($outfile and $success > 0 and $$et{IsJXL} == 2) { + # attach the JXL codestream box to the ISO BMFF file + $raf->Seek(0,2) or return -1; + my $size = $raf->Tell(); + $raf->Seek(0,0) or return -1; + SetByteOrder('MM'); + Write($outfile, Set32u($size + 8), 'jxlc') or return -1; + while ($raf->Read($buff, 65536)) { + Write($outfile, $buff) or return -1; + } + } + return $success; } 1; # end __END__ diff --git a/lib/Image/ExifTool/MacOS.pm b/lib/Image/ExifTool/MacOS.pm index dc2f2e3c..c28584b8 100644 --- a/lib/Image/ExifTool/MacOS.pm +++ b/lib/Image/ExifTool/MacOS.pm @@ -243,11 +243,11 @@ my %mdDateInfo = ( VARS => { NO_ID => 1 }, # (id's are too long) NOTES => q{ XAttr tags are extracted using the "xattr" utility. They are extracted if any "XAttr*" tag or the MacOS group is specifically requested, or by setting the L<XAttrTags|../ExifTool.html#XAttrTags> API option to 1 or the L<RequestAll|../ExifTool.html#RequestAll> API option to 2 or higher. - And they extracted by default from MacOS "._" files when reading + And they are extracted by default from MacOS "._" files when reading these files directly. }, 'com.apple.FinderInfo' => { Name => 'XAttrFinderInfo', ConvertBinary => 1, diff --git a/lib/Image/ExifTool/Microsoft.pm b/lib/Image/ExifTool/Microsoft.pm index cb1fba06..5de05129 100644 --- a/lib/Image/ExifTool/Microsoft.pm +++ b/lib/Image/ExifTool/Microsoft.pm @@ -887,16 +887,18 @@ sub WriteXtraValue($$$) $type = 19; } } elsif ($format eq 'date') { $dat = Image::ExifTool::GetUnixTime($val, 1); # (convert to UTC, NC) if ($dat) { + # 100ns intervals since Jan 1, 1601 $dat = Set64u(($dat + 11644473600) * 1e7); $type = 21; } - } elsif ($format eq 'vt_filetime') { + } elsif ($format eq 'vt_filetime') { # 'date' value inside a VT_VARIANT $dat = Image::ExifTool::GetUnixTime($val); # (leave as local time, NC) if ($dat) { + # 100ns intervals since Jan 1, 1601 $dat = Set32u(64) . Set64u(($dat + 11644473600) * 1e7); $type = 65; } } elsif ($format eq 'GUID') { ($dat = $val) =~ tr/-//d; diff --git a/lib/Image/ExifTool/Panasonic.pm b/lib/Image/ExifTool/Panasonic.pm index 54554a40..6ad8619b 100644 --- a/lib/Image/ExifTool/Panasonic.pm +++ b/lib/Image/ExifTool/Panasonic.pm @@ -2116,10 +2116,11 @@ my %shootingMode = ( # 0x340 - ImageUniqueID 0x34c => { #23 Name => 'UserProfile', Writable => 'string', }, + # 0x357 int32u - 0=DNG, 3162=JPG (ref 23) 0x359 => { #23 Name => 'ISOSelected', Writable => 'int32s', PrintConv => { 0 => 'Auto', @@ -2132,11 +2133,23 @@ my %shootingMode = ( ValueConv => '$val / 1000', ValueConvInv => '$val * 1000', PrintConv => 'sprintf("%.1f", $val)', PrintConvInv => '$val', }, - # 0x357 int32u - 0=DNG, 3162=JPG (ref 23) + 0x035b => { #IB + Name => 'CorrelatedColorTemp', # (in Kelvin) + Writable => 'int16u', + }, + 0x035c => { #IB + Name => 'ColorTint', # (same units as Adobe is using) + Writable => 'int16s', + }, + 0x035d => { #IB + Name => 'WhitePoint', # (x/y) + Writable => 'rational64u', + Count => 2, + }, ); # Type 2 tags (ref PH) %Image::ExifTool::Panasonic::Type2 = ( PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData, diff --git a/lib/Image/ExifTool/PhaseOne.pm b/lib/Image/ExifTool/PhaseOne.pm index c95831ac..29a07869 100644 --- a/lib/Image/ExifTool/PhaseOne.pm +++ b/lib/Image/ExifTool/PhaseOne.pm @@ -13,11 +13,11 @@ package Image::ExifTool::PhaseOne; use strict; use vars qw($VERSION); use Image::ExifTool qw(:DataAccess :Utils); use Image::ExifTool::Exif; -$VERSION = '1.06'; +$VERSION = '1.07'; sub WritePhaseOne($$$); sub ProcessPhaseOne($$$); # default formats based on PhaseOne format size @@ -71,14 +71,15 @@ my @formatName = ( undef, 'string', 'int16s', undef, 'int32s' ); # >2 = compressed # 5 = non-linear PrintConv => { #PH 1 => 'RAW 1', #? (encrypted) 2 => 'RAW 2', #? (encrypted) - 3 => 'IIQ L', + 3 => 'IIQ L', # (now "L14", ref IB) # 4? 5 => 'IIQ S', - 6 => 'IIQ Sv2', + 6 => 'IIQ Sv2', # (now "S14" for "IIQ 14 Smart" and "IIQ 14 Sensor+", ref IB) + 8 => 'IIQ L16', #IB ("IIQ 16 Extended" and "IIQ 16 Large") }, }, 0x010f => { Name => 'RawData', Format => 'undef', # (actually 2-byte integers, but don't convert) diff --git a/lib/Image/ExifTool/Sony.pm b/lib/Image/ExifTool/Sony.pm index 28a7f25a..0962b88c 100644 --- a/lib/Image/ExifTool/Sony.pm +++ b/lib/Image/ExifTool/Sony.pm @@ -32,11 +32,11 @@ use strict; use vars qw($VERSION %sonyLensTypes %sonyLensTypes2); use Image::ExifTool qw(:DataAccess :Utils); use Image::ExifTool::Exif; use Image::ExifTool::Minolta; -$VERSION = '3.39'; +$VERSION = '3.40'; sub ProcessSRF($$$); sub ProcessSR2($$$); sub ProcessSonyPIC($$$); sub ProcessMoreInfo($$$); @@ -631,13 +631,14 @@ my %hidUnk = ( Hidden => 1, Unknown => 1 ); 1 => 'Super Fine', 2 => 'Fine', 3 => 'Standard', 4 => 'Economy', 5 => 'Extra Fine', - 6 => 'RAW + JPEG', + 6 => 'RAW + JPEG/HEIF', 7 => 'Compressed RAW', 8 => 'Compressed RAW + JPEG', + 9 => 'Light', #JR 0xffffffff => 'n/a', #PH (SLT-A57 panorama) }, }, 0x0104 => { #5/JD Name => 'FlashExposureComp', @@ -1177,11 +1178,11 @@ my %hidUnk = ( Hidden => 1, Unknown => 1 ); # Selected AF Zone for NEX/ILCE/ILCA when AFAreaMode = 'Zone', # but also with Expanded Flexible Spot for ILCE-7RM2/7SM2/9 ... # doesn't seem to apply to DSC models (always 0) Name => 'AFPointSelected', Condition => q{ - ($$self{Model} =~ /^(SLT-|HV)/) or ($$self{Model} =~ /^ILCE-/ and + ($$self{Model} =~ /^(SLT-|HV)/) or ($$self{Model} =~ /^(ILCE-|ILME-)/ and defined $$self{AFAreaILCE} and $$self{AFAreaILCE} == 4) }, Notes => 'SLT models or ILCE with LA-EA2/EA4', Writable => 'int8u', PrintConvColumns => 2, @@ -1460,17 +1461,19 @@ my %hidUnk = ( Hidden => 1, Unknown => 1 ); Name => 'Quality', Writable => 'int16u', Count => 2, PrintConv => { '0 0' => 'n/a', - '0 1' => 'Standard JPEG', - '0 2' => 'Fine JPEG', - '0 3' => 'Extra Fine JPEG', + '0 1' => 'Standard', + '0 2' => 'Fine', + '0 3' => 'Extra Fine', + '0 4' => 'Light', #JR '1 0' => 'RAW', - '1 1' => 'RAW + Standard JPEG', - '1 2' => 'RAW + Fine JPEG', - '1 3' => 'RAW + Extra Fine JPEG', + '1 1' => 'RAW + Standard', + '1 2' => 'RAW + Fine', + '1 3' => 'RAW + Extra Fine', + '1 4' => 'RAW + Light', #JR }, }, 0x202f => { #JR (ILCE-7RM3) Name => 'PixelShiftInfo', Writable => 'undef', @@ -1512,17 +1515,60 @@ my %hidUnk = ( Hidden => 1, Unknown => 1 ); ValueConv => '$val=~s/(\d{2})(\d{2})(\d{2})(\d{2})/$4$3$2$1/; $val=~s/^0//; $val', ValueConvInv => '$val="0$val" if length($val)==7; $val=~s/(\d{2})(\d{2})(\d{2})(\d{2})/$4$3$2$1/; $val', PrintConv => 'sprintf("%.8d",$val)', PrintConvInv => '$val', }, -# 0x2032 - first seen for ILCE-7SM3, July 2020 -# 0x2033 - first seen for ILCE-7SM3, July 2020 -# 0x2034 - first seen for ILCE-7SM3, July 2020 -# 0x2035 - first seen for ILCE-7SM3, July 2020 -# 0x2036 - first seen for ILCE-7SM3, July 2020 -# 0x2037 - first seen for ILCE-7SM3, July 2020 -# 0x2039 - first seen for ILCE-7SM3, July 2020 +# 0x2032 - 0x2039: from July 2020 for ILCE-7SM3, ILCE-1, ILME-FX3 and newer + 0x2032 => { + Name => 'Shadows', + Writable => 'int32s', + PrintConv => '$val > 0 ? "+$val" : $val', + PrintConvInv => '$val', + }, + 0x2033 => { + Name => 'Highlights', + Writable => 'int32s', + PrintConv => '$val > 0 ? "+$val" : $val', + PrintConvInv => '$val', + }, + 0x2034 => { + Name => 'Fade', + Writable => 'int32s', + PrintConv => '$val > 0 ? "+$val" : $val', + PrintConvInv => '$val', + }, + 0x2035 => { + Name => 'SharpnessRange', + Writable => 'int32s', + PrintConv => '$val > 0 ? "+$val" : $val', + PrintConvInv => '$val', + }, + 0x2036 => { + Name => 'Clarity', + Writable => 'int32s', + PrintConv => '$val > 0 ? "+$val" : $val', + PrintConvInv => '$val', + }, + 0x2037 => { + Name => 'FocusFrameSize', + Format => 'int16u', + Count => '3', + PrintConv => q{ + my @a = split ' ', $val; + return $a[2] ? sprintf('%3dx%3d', $a[0], $a[1]) : 'n/a'; + }, + PrintConvInv => '$val =~ /(\d+)x(\d+)/ ? "$1 $2 257" : "0 0 0"', + }, + 0x2039 => { #JR + Name => 'JPEG-HEIFSwitch', # (name used in camera menus) + Writable => 'int16u', + PrintConv => { + 0 => 'JPEG', + 1 => 'HEIF', + 65535 => 'n/a', + }, + }, 0x3000 => { Name => 'ShotInfo', SubDirectory => { TagTable => 'Image::ExifTool::Sony::ShotInfo' }, }, # 0x3000: data block that includes DateTimeOriginal string @@ -1581,11 +1627,11 @@ my %hidUnk = ( Hidden => 1, Unknown => 1 ); # 0xd0 (e) H90, W650, W690: tag9400 decoding appears not valid/different # 0x23 (e) for DSC-RX10/HX60V/HX350/HX400V/WX220/WX350, ILCE-7/7R/5000/6000, ILCA-68/77M2 # 0x24 (e) for ILCA-99M2,ILCE-5100/6300/6500/7M2/7RM2/7S/7SM2/QX1, DSC-HX80/HX90V/QX30/RX0/RX100M3/RX100M4/RX100M5/RX10M2/RX10M3/RX1RM2/WX500 # 0x26 (e) for ILCE-6100/6400/6600/7M3/7RM3/9, DSC-RX0M2/RX10M4/RX100M5A/RX100M6/HX99 # 0x28 (e) for ILCE-7RM4/9M2, DSC-RX100M7, ZV-1 - # 0x31 (e) for ILCE-1, 7SM3 + # 0x31 (e) for ILCE-1/7SM3, ILME-FX3 # first byte decoded: 40, 204, 202, 27, 58, 62, 48, 215, 28, 106 respectively { Name => 'Tag9400a', Condition => q{ $$valPt =~ /^[\x07\x09\x0a]/ or @@ -6078,10 +6124,13 @@ my %pictureProfile2010 = ( 28 => 'Gamma S-Log2 (PP7)', 29 => 'Gamma ITU709 (800%)', 31 => 'Gamma S-Log3 (PP8 or PP9)', #14 33 => 'Gamma HLG2 (PP10)', #14 34 => 'Gamma HLG3', #IB + 37 => 'FL', + 39 => 'IN', + 40 => 'SH', }, ); my %isoSetting2010 = ( 0 => 'Auto', 5 => 25, @@ -7799,11 +7848,11 @@ my %isoSetting2010 = ( PROCESS_PROC => \&ProcessEnciphered, WRITE_PROC => \&WriteEnciphered, CHECK_PROC => \&Image::ExifTool::CheckBinaryData, FORMAT => 'int8u', NOTES => q{ - Valid from July 2020 for ILCE-1/7SM3. + Valid from July 2020 for ILCE-1/7SM3, ILME-FX3. }, WRITABLE => 1, FIRST_ENTRY => 0, GROUPS => { 0 => 'MakerNotes', 2 => 'Image' }, DATAMEMBER => [ 0x0039 ], @@ -7886,10 +7935,17 @@ my %isoSetting2010 = ( Name => 'ReleaseMode2', %releaseMode2, }, 0x0088 => { Name => 'InternalSerialNumber', #(NC) + Condition => '$$self{Model} =~ /^(ILCE-7SM3|ILME-FX3)/', + Format => 'int8u[6]', + PrintConv => 'unpack "H*", pack "C*", split " ", $val', + }, + 0x008a => { + Name => 'InternalSerialNumber', #(NC) + Condition => '$$self{Model} =~ /^(ILCE-1)/', Format => 'int8u[6]', PrintConv => 'unpack "H*", pack "C*", split " ", $val', }, ); @@ -8115,20 +8171,30 @@ my %isoSetting2010 = ( 3 => 'Rotate 180', 6 => 'Rotate 90 CW', 8 => 'Rotate 270 CW', }, }, - 0x002a => { + 0x002a => [{ Name => 'Quality2', Condition => '$$self{Model} !~ /^(ILCE-(1|7SM3)|ILME-FX3)\b/', PrintConv => { 0 => 'JPEG', 1 => 'RAW', 2 => 'RAW + JPEG', 3 => 'JPEG + MPO', # 3D images }, - }, + },{ + Name => 'Quality2', + Condition => '$$self{Model} =~ /^(ILCE-(1|7SM3)|ILME-FX3)\b/', + PrintConv => { + 1 => 'JPEG', + 2 => 'RAW', + 3 => 'RAW + JPEG', + 4 => 'HEIF', + 6 => 'RAW + HEIF', + }, + }], 0x0047 => { Name => 'SonyImageHeight', Condition => '$$self{Model} !~ /^(ILCE-(1|7SM3)|ILME-FX3)\b/', Format => 'int16u', PrintConv => '$val > 0 ? 8*$val : "n.a."', @@ -8793,11 +8859,11 @@ my %isoSetting2010 = ( FORMAT => 'int8u', WRITABLE => 1, FIRST_ENTRY => 0, GROUPS => { 0 => 'MakerNotes', 2 => 'Image' }, DATAMEMBER => [ 0x0008 ], - NOTES => 'NEX and ILCE models only.', + NOTES => 'E-mount cameras only.', # 0x0001 - 0 for all NEX and ILCE-3000/3500, 20 for all other ILCE (17 for ILCE samples from Sony.net) # 0x0008 - LensMount, but different values from Tag9405-0x0105 and Tag9050-0x0604. # don't know what difference is between values '1' and '5' ... 0x0008 => { @@ -9420,11 +9486,11 @@ my %isoSetting2010 = ( %Image::ExifTool::Sony::Tag9416 = ( PROCESS_PROC => \&ProcessEnciphered, WRITE_PROC => \&WriteEnciphered, CHECK_PROC => \&Image::ExifTool::CheckBinaryData, FORMAT => 'int8u', - NOTES => 'Valid for the ILCE-1/7SM3.', + NOTES => 'Valid for the ILCE-1/7SM3, ILME-FX3.', FIRST_ENTRY => 0, GROUPS => { 0 => 'MakerNotes', 2 => 'Image' }, 0x0000 => { Name => 'Tag9416_0000', PrintConv => 'sprintf("%3d",$val)', RawConv => '$$self{TagVersion} = $val' }, 0x0004 => { Name => 'SonyISO', diff --git a/lib/Image/ExifTool/TagLookup.pm b/lib/Image/ExifTool/TagLookup.pm index fa7f2be5..767d349d 100644 --- a/lib/Image/ExifTool/TagLookup.pm +++ b/lib/Image/ExifTool/TagLookup.pm @@ -629,22 +629,22 @@ my %tagLookup = ( 'afadjustment' => { 346 => 0x72, 355 => 0x267 }, 'afandmeteringbuttons' => { 82 => 0x701 }, 'afaperture' => { 215 => 0x5, 216 => 0x5, 220 => 0x5 }, 'afareaheight' => { 190 => [0x1a,0x34,0x50] }, 'afareaillumination' => { 181 => 0x4b, 282 => '15.3' }, - 'afareamode' => { 124 => '0.2', 177 => 0x33, 181 => 0xe, 189 => 0x0, 190 => 0x5, 311 => 0xf, 378 => 0x1205, 391 => [0xa,0x3a], 398 => 0x11, 399 => 0x10, 400 => 0x24, 411 => 0xb043, 435 => 0x17 }, + 'afareamode' => { 124 => '0.3', 177 => 0x33, 181 => 0xe, 189 => 0x0, 190 => 0x5, 311 => 0xf, 378 => 0x1205, 391 => [0xa,0x3a], 398 => 0x11, 399 => 0x10, 400 => 0x24, 411 => 0xb043, 435 => 0x17 }, 'afareamodesetting' => { 273 => '11.1', 276 => '0.1', 282 => '16.1', 286 => '2.1', 411 => 0x201c }, - 'afareapointsize' => { 124 => '0.3' }, + 'afareapointsize' => { 124 => '0.4' }, 'afareas' => { 288 => 0x304 }, 'afareaselectionmethod' => { 2 => 0xd }, 'afareaselectmethod' => { 82 => 0x51b }, 'afareawidth' => { 190 => [0x18,0x32,0x4e] }, 'afareaxposition' => { 190 => [0x14,0x2e,0x4a], 378 => 0x1203 }, 'afareaxposition1' => { 378 => 0x1201 }, 'afareayposition' => { 190 => [0x16,0x30,0x4c], 378 => 0x1204 }, 'afareayposition1' => { 378 => 0x1202 }, - 'afareazonesize' => { 124 => '0.4' }, + 'afareazonesize' => { 124 => '0.5' }, 'afassist' => { 80 => 0x5, 88 => 0x5, 181 => 0x48, 271 => '2.5', 273 => '0.2', 276 => '0.2', 277 => '1.1', 278 => '1.1', 279 => '1.3', 280 => '2.4', 281 => '1.3', 282 => '0.2', 284 => '2.4', 286 => '2.3' }, 'afassistbeam' => { 2 => 0x8, 82 => 0x50e, 83 => 0x4, 84 => 0x5, 85 => 0x4, 86 => 0x4, 87 => 0x5 }, 'afassistlamp' => { 311 => 0x31 }, 'afbuttonpressed' => { 400 => [0x83,0x283] }, 'afconfigtool' => { 2 => 0x1 }, @@ -1451,11 +1451,11 @@ my %tagLookup = ( 'circgradbasedcorrwhat' => { 468 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'], 470 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'] }, 'circgradbasedcorrwhites2012' => { 468 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'], 470 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'] }, 'circulargradientbasedcorrections' => { 468 => 'CircularGradientBasedCorrections', 470 => 'CircularGradientBasedCorrections' }, 'city' => { 129 => 0x5a, 158 => 'City', 311 => 0x6d, 482 => 'City' }, 'city2' => { 311 => 0x80 }, - 'clarity' => { 225 => 0x35, 226 => 0x3d, 468 => 'Clarity', 470 => 'Clarity' }, + 'clarity' => { 225 => 0x35, 226 => 0x3d, 411 => 0x2036, 468 => 'Clarity', 470 => 'Clarity' }, 'clarity2012' => { 468 => 'Clarity2012', 470 => 'Clarity2012' }, 'claritycontrol' => { 346 => 0x96 }, 'classifystate' => { 129 => 0xe1 }, 'clearretouch' => { 311 => 0x7c }, 'clearretouchvalue' => { 311 => 0xa3 }, @@ -1618,10 +1618,11 @@ my %tagLookup = ( 'colortempunknown5' => { 38 => 0x4a, 39 => 0x77, 41 => 0x7c, 42 => 0x5d, 46 => 0x66, 47 => 0x66, 48 => 0x66, 49 => 0x6e }, 'colortempunknown6' => { 38 => 0x4f, 39 => 0x7f, 41 => 0x81, 42 => 0x62, 46 => 0x8e, 47 => 0x6b, 48 => 0x6b, 49 => 0x73 }, 'colortempunknown7' => { 38 => 0x54, 39 => 0x87, 41 => 0x86, 42 => 0x67, 46 => 0x93, 47 => 0x70, 48 => 0x70, 49 => 0x78 }, 'colortempunknown8' => { 38 => 0x59, 39 => 0x8f, 41 => 0x8b, 42 => 0x6c, 46 => 0x98, 47 => 0x75, 48 => 0x75, 49 => 0x7d }, 'colortempunknown9' => { 38 => 0x5e, 39 => 0x97, 41 => 0x90, 42 => 0x71, 46 => 0x9d, 47 => 0x7a, 48 => 0x7a, 49 => 0x82 }, + 'colortint' => { 310 => 0x35c }, 'colortone' => { 10 => 0x6f, 12 => 0x77, 34 => 0x2a, 50 => 0x2 }, 'colortoneadj' => { 101 => 0x20304, 106 => 0x11e }, 'colortoneauto' => { 69 => 0x9c }, 'colortonefaithful' => { 19 => 0x107, 68 => 0x6c, 69 => 0x6c }, 'colortonelandscape' => { 19 => 0x105, 68 => 0x3c, 69 => 0x3c }, @@ -1784,10 +1785,11 @@ my %tagLookup = ( 'copyrightstatus' => { 298 => 'CopyrightStatus' }, 'copyrightyear' => { 480 => 'CopyrightYear', 484 => 'copyrightYear' }, 'coringfilter' => { 292 => 0x310, 293 => 0x102d, 296 => 0x310 }, 'coringvalues' => { 292 => 0x311, 296 => 0x311 }, 'corporateentity' => { 484 => 'corporateEntity' }, + 'correlatedcolortemp' => { 310 => 0x35b }, 'country' => { 158 => 'Country', 311 => 0x69, 482 => 'Country' }, 'country-primarylocationcode' => { 129 => 0x64 }, 'country-primarylocationname' => { 129 => 0x65 }, 'countrycode' => { 221 => 0x5, 358 => 'CountryCode', 479 => 'CountryCode' }, 'course' => { 486 => 'course' }, @@ -2527,10 +2529,11 @@ my %tagLookup = ( 'facepositions' => { 125 => 0x4103 }, 'facerecognition' => { 385 => 0x120 }, 'facesdetected' => { 53 => 0x2, 54 => 0x2, 55 => 0x3, 108 => 0x0, 109 => 0x2, 111 => 0x211c, 125 => 0x4100, 203 => 0x3, 292 => 0x1200, 311 => 0x3f, 330 => 0x0, 375 => 0xb5, 386 => 0x0, 405 => 0x0, 408 => 0x3, 418 => 0x30 }, 'facesrecognized' => { 304 => 0x0 }, 'facewidth' => { 54 => 0x1 }, + 'fade' => { 411 => 0x2034 }, 'faithfuloutputhighlightpoint' => { 107 => 0x38 }, 'faithfuloutputshadowpoint' => { 107 => 0x39 }, 'faithfulrawcolortone' => { 107 => 0x31 }, 'faithfulrawcontrast' => { 107 => 0x33 }, 'faithfulrawhighlight' => { 107 => 0x79 }, @@ -3057,11 +3060,11 @@ my %tagLookup = ( 'highlightadj' => { 101 => 0x2030c }, 'highlightcolordistortreduct' => { 445 => 0x8026 }, 'highlightlinearitylimit' => { 385 => 0xa025 }, 'highlightprotection' => { 263 => 0x6 }, 'highlightrecovery' => { 468 => 'HighlightRecovery', 470 => 'HighlightRecovery' }, - 'highlights' => { 462 => 'Highlights' }, + 'highlights' => { 411 => 0x2033, 462 => 'Highlights' }, 'highlights2012' => { 468 => 'Highlights2012', 470 => 'Highlights2012' }, 'highlightsadj' => { 445 => 0x9019 }, 'highlightshadow' => { 311 => 0xad }, 'highlighttone' => { 125 => 0x1041 }, 'highlighttonepriority' => { 13 => 0x7, 16 => 0x7, 17 => 0x7, 18 => 0x7, 20 => 0x7, 22 => 0x7, 28 => 0x7, 61 => 0x3, 82 => 0x203 }, @@ -3302,11 +3305,11 @@ my %tagLookup = ( 'internalflashmode' => { 334 => 0x1 }, 'internalflashstrength' => { 334 => 0x3 }, 'internalflashtable' => { 293 => 0x1024 }, 'internallensserialnumber' => { 385 => 0xa005 }, 'internalndfilter' => { 311 => 0x9d }, - 'internalserialnumber' => { 62 => 0x96, 74 => 0x9, 125 => 0x10, 184 => 0x49dc, 287 => 0x18, 289 => 0x102, 308 => 0x500, 311 => 0x25, 326 => 0x4, 378 => 0x5, 429 => [0x7c,0xf0], 430 => 0x88, 431 => 0x88 }, + 'internalserialnumber' => { 62 => 0x96, 74 => 0x9, 125 => 0x10, 184 => 0x49dc, 287 => 0x18, 289 => 0x102, 308 => 0x500, 311 => 0x25, 326 => 0x4, 378 => 0x5, 429 => [0x7c,0xf0], 430 => 0x88, 431 => [0x88,0x8a] }, 'interopindex' => { 117 => 0x1, 475 => 'InteroperabilityIndex' }, 'interopversion' => { 117 => 0x2 }, 'intervallength' => { 178 => 0x10 }, 'intervalmode' => { 178 => 0x26 }, 'intervalnumber' => { 178 => 0x11 }, @@ -3372,10 +3375,11 @@ my %tagLookup = ( 'jobref' => { 493 => 'JobRef' }, 'jobrefid' => { 493 => [\'JobRef','JobRefId'] }, 'jobrefname' => { 493 => [\'JobRef','JobRefName'] }, 'jobrefurl' => { 493 => [\'JobRef','JobRefUrl'] }, 'jobstatus' => { 476 => 'JobStatus' }, + 'jpeg-heifswitch' => { 411 => 0x2039 }, 'jpeghandling' => { 468 => 'JPEGHandling', 470 => 'JPEGHandling' }, 'jpegquality' => { 10 => 0x66, 311 => 0x43, 313 => 0x3034, 411 => 0xb047 }, 'jpegsize' => { 313 => 0x303a }, 'jpgcompression' => { 241 => 0x7d4 }, 'jpgfromraw' => { 95 => 0x2007, 112 => 'Exif-JpgFromRaw', 316 => 0x2e }, @@ -4653,11 +4657,13 @@ my %tagLookup = ( 'pixelclockfrequency' => { 135 => 0x40b }, 'pixelcorrectionoffset' => { 135 => 0x972 }, 'pixelcorrectionscale' => { 135 => 0x971 }, 'pixelscale' => { 117 => 0x830e }, 'pixelshiftinfo' => { 411 => 0x202f }, + 'pixelshiftoffset' => { 125 => 0x1106 }, 'pixelshiftresolution' => { 347 => 0x0 }, + 'pixelshiftshots' => { 125 => 0x1105 }, 'pixelsperunitx' => { 300 => 0x0 }, 'pixelsperunity' => { 300 => 0x4 }, 'pixelunits' => { 300 => 0x8 }, 'planarconfiguration' => { 117 => 0x11c, 490 => 'PlanarConfiguration' }, 'plane' => { 448 => [\'Planes','PlanesPlane'] }, @@ -4744,10 +4750,11 @@ my %tagLookup = ( 'potentialface6position' => { 408 => 0x3d }, 'potentialface7position' => { 408 => 0x47 }, 'potentialface8position' => { 408 => 0x51 }, 'powersource' => { 325 => '0.1' }, 'poweruptime' => { 222 => 0xb6 }, + 'preaf' => { 124 => '0.2' }, 'precaptureframes' => { 293 => 0x300 }, 'predictor' => { 117 => 0x13d }, 'preflashreturnstrength' => { 238 => 0x28a }, 'prefs' => { 129 => 0xdd, 358 => 'Prefs' }, 'prereadfastresetcount' => { 135 => 0x187e }, @@ -5349,11 +5356,11 @@ my %tagLookup = ( 'shadingcompensation2' => { 292 => 0x1012 }, 'shadow' => { 388 => 0xe }, 'shadowadj' => { 101 => 0x2030b }, 'shadowcorrection' => { 346 => 0x79 }, 'shadowprotection' => { 263 => 0x0 }, - 'shadows' => { 117 => 0xfe52, 462 => 'Shadows', 468 => 'Shadows', 470 => 'Shadows' }, + 'shadows' => { 117 => 0xfe52, 411 => 0x2032, 462 => 'Shadows', 468 => 'Shadows', 470 => 'Shadows' }, 'shadows2012' => { 468 => 'Shadows2012', 470 => 'Shadows2012' }, 'shadowsadj' => { 445 => 0x901a }, 'shadowscale' => { 117 => 0xc633 }, 'shadowtint' => { 468 => 'ShadowTint', 470 => 'ShadowTint' }, 'shadowtone' => { 125 => 0x1040 }, @@ -5375,10 +5382,11 @@ my %tagLookup = ( 'sharpnesslandscape' => { 19 => 0xf3, 68 => 0x34, 69 => 0x34 }, 'sharpnessmonochrome' => { 19 => 0xf6, 68 => 0x7c, 69 => 0x7c }, 'sharpnessneutral' => { 19 => 0xf4, 68 => 0x4c, 69 => 0x4c }, 'sharpnessovershoot' => { 445 => 0x801b }, 'sharpnessportrait' => { 19 => 0xf2, 68 => 0x1c, 69 => 0x1c }, + 'sharpnessrange' => { 411 => 0x2035 }, 'sharpnesssetting' => { 288 => 0x506, 296 => 0x1013, 400 => 0x12, 416 => 0xa }, 'sharpnessstandard' => { 19 => 0xf1, 68 => 0x4, 69 => 0x4 }, 'sharpnessstrength' => { 101 => 0x20311 }, 'sharpnessthreshold' => { 445 => 0x801d }, 'sharpnessundershoot' => { 445 => 0x801c }, @@ -6352,11 +6360,11 @@ my %tagLookup = ( 'whitebalancesetting' => { 181 => 0x23, 398 => 0x5, 399 => 0x4, 400 => 0x16, 416 => 0xd }, 'whitebalancesetup' => { 385 => 0x41 }, 'whitebalancetemperature' => { 288 => 0x501 }, 'whiteboard' => { 293 => 0x301 }, 'whitelevel' => { 117 => 0xc61d, 346 => 0x7e }, - 'whitepoint' => { 117 => 0x13e, 346 => 0x201, 490 => 'WhitePoint' }, + 'whitepoint' => { 117 => 0x13e, 310 => 0x35d, 346 => 0x201, 490 => 'WhitePoint' }, 'whites2012' => { 468 => 'Whites2012', 470 => 'Whites2012' }, 'whitesadj' => { 445 => 0x9017 }, 'wideadapter' => { 378 => 0x1017 }, 'widefocuszone' => { 178 => 0x2f }, 'widerange' => { 387 => 0x20f }, @@ -8115,10 +8123,11 @@ my %tagExists = ( 'focallength35mm' => 1, 'focalplanecolorimetryestimates' => 1, 'focalrange' => 1, 'focusdistance2' => 1, 'focusedgemap' => 1, + 'focusframesize' => 1, 'focusinfo' => 1, 'focusinfoifd' => 1, 'focuspeakinghighlightcolor' => 1, 'focuspeakinglevel' => 1, 'focuspointbrightness' => 1, @@ -8701,14 +8710,15 @@ my %tagExists = ( 'jsondata' => 1, 'jsonmetadata' => 1, 'jumbf' => 1, 'jumbfbox' => 1, 'jumbfdescr' => 1, - 'jumbfid' => 1, - 'jumbflabel' => 1, - 'jumbfsignature' => 1, - 'jumbftype' => 1, + 'jumdflags' => 1, + 'jumdid' => 1, + 'jumdlabel' => 1, + 'jumdsignature' => 1, + 'jumdtype' => 1, 'jumptoxpep' => 1, 'junk' => 1, 'jxlcodestream' => 1, 'k1' => 1, 'k2' => 1, diff --git a/lib/Image/ExifTool/TagNames.pod b/lib/Image/ExifTool/TagNames.pod index d1e8a1e5..f1e52e1c 100644 --- a/lib/Image/ExifTool/TagNames.pod +++ b/lib/Image/ExifTool/TagNames.pod @@ -10,11 +10,11 @@ tables based on information type. Tag names are used to reference specific meta information extracted from or written to a file. =head1 TAG TABLES The tables listed below give the names of all tags recognized by ExifTool. -They contain a total of 24102 tags, with 15604 unique tag names. +They contain a total of 24118 tags, with 15614 unique tag names. B<Tag ID>, B<Index#> or B<Sequence> is given in the first column of each table. A B<Tag ID> is the computer-readable equivalent of a tag name, and is the identifier that is actually stored in the file. B<Index#> refers to the offset of a value when found at a fixed position within a data block @@ -9931,10 +9931,12 @@ Tags extracted from FLIR Public image Format (FPF) files. 0x104e ColorChromeFXBlue int32s 0x1050 ShutterType int16u 0x1100 AutoBracketing int16u 0x1101 SequenceNumber int16u 0x1103 DriveSettings FujiFilm DriveSettings + 0x1105 PixelShiftShots int16u + 0x1106 PixelShiftOffset rational64s[2] 0x1153 PanoramaAngle int16u 0x1154 PanoramaDirection int16u 0x1201 AdvancedFilter int32u 0x1210 ColorMode int16u 0x1300 BlurWarning int16u @@ -9987,14 +9989,15 @@ Tags extracted from FLIR Public image Format (FPF) files. =head3 FujiFilm FocusSettings Tags Index4 Tag Name Writable ------ -------- -------- - 0.1 FocusMode2 int32u & 0xff - 0.2 AFAreaMode int32u & 0xf00 - 0.3 AFAreaPointSize int32u & 0xf000 - 0.4 AFAreaZoneSize int32u & 0xf0000 + 0.1 FocusMode2 int32u & 0x0f + 0.2 PreAF int32u & 0xf0 + 0.3 AFAreaMode int32u & 0xf00 + 0.4 AFAreaPointSize int32u & 0xf000 + 0.5 AFAreaZoneSize int32u & 0xf0000 =head3 FujiFilm AFCSettings Tags Index4 Tag Name Writable ------ -------- -------- @@ -15800,10 +15803,13 @@ This information is written by the Leica S (Typ 007) and M10 models. 0x0311 ExternalSensorBrightnessValue rational64s 0x0312 MeasuredLV rational64s 0x034c UserProfile string 0x0359 ISOSelected int32s 0x035a FNumber int32s + 0x035b CorrelatedColorTemp int16u + 0x035c ColorTint int16s + 0x035d WhitePoint rational64u[2] =head3 Panasonic Type2 Tags This type of maker notes is used by models such as the NV-DS65, PV-D2002, PV-DC3000, PV-DV203, PV-DV401, PV-DV702, PV-L2001, PV-SD4090, PV-SD5000 and @@ -17512,10 +17518,17 @@ MakerNotes. 0x202c MeteringMode2 int16u 0x202d ExposureStandardAdjustment rational64s 0x202e Quality int16u[2] 0x202f PixelShiftInfo undef 0x2031 SerialNumber string + 0x2032 Shadows int32s + 0x2033 Highlights int32s + 0x2034 Fade int32s + 0x2035 SharpnessRange int32s + 0x2036 Clarity int32s + 0x2037 FocusFrameSize no + 0x2039 JPEG-HEIFSwitch int16u 0x3000 ShotInfo Sony ShotInfo 0x900b Tag900b Sony Tag900b 0x9050 Tag9050a Sony Tag9050a Tag9050b Sony Tag9050b Tag9050c Sony Tag9050c @@ -18598,11 +18611,11 @@ Valid from July 2015 for ILCE-6100/6300/6400/6500/6600/7C/7M3/7RM2/7RM3/7RM4/ APS-CSizeCapture int8u 542 LensSpecFeatures undef[2] =head3 Sony Tag9050c Tags -Valid from July 2020 for ILCE-1/7SM3. +Valid from July 2020 for ILCE-1/7SM3, ILME-FX3. Index1 Tag Name Writable ------ -------- -------- 38 Shutter int16u[3] 57 FlashStatus int8u @@ -18613,10 +18626,11 @@ Valid from July 2020 for ILCE-1/7SM3. 80 ShutterCount2 int32u 102 SonyExposureTime int16u 104 SonyFNumber int16u 107 ReleaseMode2 int8u 136 InternalSerialNumber int8u[6]~ + 138 InternalSerialNumber int8u[6]~ =head3 Sony Tag9400a Tags Valid for many DSC, NEX and SLT models @@ -18814,11 +18828,11 @@ These tags are currently extracted for SLT models only. ------ -------- -------- 4 AFPointsSelected int32u =head3 Sony Tag940c Tags -NEX and ILCE models only. +E-mount cameras only. Index1 Tag Name Writable ------ -------- -------- 8 LensMount2 int8u 9 LensType3 int16u @@ -19004,11 +19018,11 @@ E-mount models. 6663 TiffMeteringImageHeight no 6664 TiffMeteringImage no =head3 Sony Tag9416 Tags -Valid for the ILCE-1/7SM3. +Valid for the ILCE-1/7SM3, ILME-FX3. Index1 Tag Name Writable ------ -------- -------- 0 Tag9416_0000 no 4 SonyISO no @@ -21875,14 +21889,15 @@ tags in Jpeg2000 images. Information extracted from the JUMBF description box. Tag ID Tag Name Writable ------ -------- -------- - 'id' JUMBFID no - 'label' JUMBFLabel no - 'signature' JUMBFSignature no - 'type' JUMBFType no + 'jumd-flags' JUMDFlags no + 'jumd-id' JUMDID no + 'jumd-label' JUMDLabel no + 'jumd-sig' JUMDSignature no + 'jumd-type' JUMDType no =head3 Jpeg2000 CaptureResolution Tags Index1 Tag Name Writable ------ -------- -------- @@ -34895,11 +34910,11 @@ options, but these files are not writable directly. =head3 MacOS XAttr Tags XAttr tags are extracted using the "xattr" utility. They are extracted if any "XAttr*" tag or the MacOS group is specifically requested, or by setting the XAttrTags API option to 1 or the RequestAll API option to 2 or higher. -And they extracted by default from MacOS "._" files when reading +And they are extracted by default from MacOS "._" files when reading these files directly. Tag Name Writable -------- -------- XAttrAppleMailDateReceived no diff --git a/lib/Image/ExifTool/Writer.pl b/lib/Image/ExifTool/Writer.pl index fa85bc55..6bc7055d 100644 --- a/lib/Image/ExifTool/Writer.pl +++ b/lib/Image/ExifTool/Writer.pl @@ -103,10 +103,11 @@ my %writableType = ( FLIF=> [ undef, 'WriteFLIF'], GIF => undef, ICC => [ 'ICC_Profile', 'WriteICC' ], IND => 'InDesign', JP2 => 'Jpeg2000', + JXL => 'Jpeg2000', MIE => undef, MOV => [ 'QuickTime', 'WriteMOV' ], MRW => 'MinoltaRaw', PDF => [ undef, 'WritePDF' ], PNG => undef, diff --git a/perl-Image-ExifTool.spec b/perl-Image-ExifTool.spec index 889f47d4..2c9491e4 100644 --- a/perl-Image-ExifTool.spec +++ b/perl-Image-ExifTool.spec @@ -1,8 +1,8 @@ Summary: perl module for image data extraction Name: perl-Image-ExifTool -Version: 12.23 +Version: 12.24 Release: 1 License: Artistic/GPL Group: Development/Libraries/Perl URL: https://exiftool.org/ Source0: Image-ExifTool-%{version}.tar.gz diff --git a/t/ExifTool_2.out b/t/ExifTool_2.out index ed218740..699f9064 100644 --- a/t/ExifTool_2.out +++ b/t/ExifTool_2.out @@ -1,11 +1,11 @@ -[ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.23 +[ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.24 [File, System, Other] FileName - File Name: ExifTool.jpg [File, System, Other] Directory - Directory: t/images [File, System, Other] FileSize - File Size: 25 KiB [File, System, Time] FileModifyDate - File Modification Date/Time: 2021:03:19 14:14:12-04:00 -[File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:01 13:20:48-04:00 +[File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:12 12:43:44-04:00 [File, System, Time] FileInodeChangeDate - File Inode Change Date/Time: 2021:03:19 14:31:48-04:00 [File, System, Other] FilePermissions - File Permissions: -rw-r--r-- [File, File, Other] FileType - File Type: JPEG [File, File, Other] FileTypeExtension - File Type Extension: jpg [File, File, Other] MIMEType - MIME Type: image/jpeg @@ -257,24 +257,30 @@ [APP11, JPEG-HDR, Image] s2n - S2n: 2.269635e+03 [APP11, JPEG-HDR, Image] alp - Alpha: 1.000000 [APP11, JPEG-HDR, Image] bet - Beta: 1.000000 [APP11, JPEG-HDR, Image] cor - Correction Method: 0 [APP11, JPEG-HDR, Preview] RatioImage - Ratio Image: (Binary data 19 bytes) -[JUMBF, JUMBF, Image] type - JUMBF Type: cacb-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai -[JUMBF, JUMBF, Image] type - JUMBF Type: cast-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cb.reuters_1 -[JUMBF, JUMBF, Image] type - JUMBF Type: caas-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.assertions -[JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: adobe.asset.info +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: cacb-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: cast-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cb.reuters_1 +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: caas-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.assertions +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: adobe.asset.info [JUMBF, JSON, Other] title - Title: HEALTHCORONAVIRUSUSAOREGON_SALEM_08.jpg -[JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.location.broad +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.location.broad [JUMBF, JSON, Other] location - Location: Salem, Oregon -[JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.rights +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.rights [JUMBF, JSON, Other] copyright - Copyright: Alisha Jucevic [APP12, PictureInfo, Time] TimeDate - Date/Time Original: 1998:12:31 15:17:20 [APP12, PictureInfo, Image] Shutter - Exposure Time: 1/155 [APP12, PictureInfo, Image] Flash - Flash: Off [APP12, PictureInfo, Image] Resolution - Resolution: 5 diff --git a/t/ExifTool_29.out b/t/ExifTool_29.out index 3f4cca6d..c032073b 100644 --- a/t/ExifTool_29.out +++ b/t/ExifTool_29.out @@ -256,24 +256,30 @@ [APP11, JPEG-HDR, Image] s2n - S2n: #.######e+## [APP11, JPEG-HDR, Image] alp - Alpha: #.###### [APP11, JPEG-HDR, Image] bet - Beta: #.###### [APP11, JPEG-HDR, Image] cor - Correction Method: # [APP11, JPEG-HDR, Preview] RatioImage - Ratio Image: (Binary data 19 bytes) -[JUMBF, JUMBF, Image] type - JUMBF Type: cacb-####-####-######aa#####b## -[JUMBF, JUMBF, Image] label - JUMBF Label: cai -[JUMBF, JUMBF, Image] type - JUMBF Type: cast-####-####-######aa#####b## -[JUMBF, JUMBF, Image] label - JUMBF Label: cb.reuters_# -[JUMBF, JUMBF, Image] type - JUMBF Type: caas-####-####-######aa#####b## -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.assertions -[JUMBF, JUMBF, Image] type - JUMBF Type: json-####-####-######aa#####b## -[JUMBF, JUMBF, Image] label - JUMBF Label: adobe.asset.info +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: cacb-####-####-######aa#####b## +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: cast-####-####-######aa#####b## +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cb.reuters_# +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: caas-####-####-######aa#####b## +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.assertions +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-####-####-######aa#####b## +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: adobe.asset.info [JUMBF, JSON, Other] title - Title: HEALTHCORONAVIRUSUSAOREGON_SALEM_##.jpg -[JUMBF, JUMBF, Image] type - JUMBF Type: json-####-####-######aa#####b## -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.location.broad +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-####-####-######aa#####b## +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.location.broad [JUMBF, JSON, Other] location - Location: Salem,_Oregon -[JUMBF, JUMBF, Image] type - JUMBF Type: json-####-####-######aa#####b## -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.rights +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-####-####-######aa#####b## +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.rights [JUMBF, JSON, Other] copyright - Copyright: Alisha_Jucevic [APP12, PictureInfo, Time] TimeDate - Date/Time Original: ####:##:##_##:##:## [APP12, PictureInfo, Image] Shutter - Exposure Time: #/### [APP12, PictureInfo, Image] Flash - Flash: Off [APP12, PictureInfo, Image] Resolution - Resolution: # diff --git a/t/Writer_51.out b/t/Writer_51.out index 7e2484ed..beb5127e 100644 --- a/t/Writer_51.out +++ b/t/Writer_51.out @@ -1,12 +1,12 @@ -[ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.23 +[ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.24 [File, System, Other] FileName - File Name: Writer_51_failed.jpg [File, System, Other] Directory - Directory: t [File, System, Other] FileSize - File Size: 25 KiB -[File, System, Time] FileModifyDate - File Modification Date/Time: 2021:04:01 13:21:08-04:00 -[File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:01 13:21:08-04:00 -[File, System, Time] FileInodeChangeDate - File Inode Change Date/Time: 2021:04:01 13:21:08-04:00 +[File, System, Time] FileModifyDate - File Modification Date/Time: 2021:04:12 12:44:05-04:00 +[File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:12 12:44:05-04:00 +[File, System, Time] FileInodeChangeDate - File Inode Change Date/Time: 2021:04:12 12:44:05-04:00 [File, System, Other] FilePermissions - File Permissions: -rw-r--r-- [File, File, Other] FileType - File Type: JPEG [File, File, Other] FileTypeExtension - File Type Extension: jpg [File, File, Other] MIMEType - MIME Type: image/jpeg [File, File, Image] ExifByteOrder - Exif Byte Order: Little-endian (Intel, II) @@ -244,24 +244,30 @@ [APP11, JPEG-HDR, Image] s2n - S2n: 2.269635e+03 [APP11, JPEG-HDR, Image] alp - Alpha: 1.000000 [APP11, JPEG-HDR, Image] bet - Beta: 1.000000 [APP11, JPEG-HDR, Image] cor - Correction Method: 0 [APP11, JPEG-HDR, Preview] RatioImage - Ratio Image: (Binary data 19 bytes) -[JUMBF, JUMBF, Image] type - JUMBF Type: cacb-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai -[JUMBF, JUMBF, Image] type - JUMBF Type: cast-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cb.reuters_1 -[JUMBF, JUMBF, Image] type - JUMBF Type: caas-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.assertions -[JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: adobe.asset.info +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: cacb-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: cast-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cb.reuters_1 +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: caas-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.assertions +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: adobe.asset.info [JUMBF, JSON, Other] title - Title: HEALTHCORONAVIRUSUSAOREGON_SALEM_08.jpg -[JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.location.broad +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.location.broad [JUMBF, JSON, Other] location - Location: Salem, Oregon -[JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 -[JUMBF, JUMBF, Image] label - JUMBF Label: cai.rights +[JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 +[JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label +[JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.rights [JUMBF, JSON, Other] copyright - Copyright: Alisha Jucevic [APP12, PictureInfo, Time] TimeDate - Date/Time Original: 1998:12:31 15:17:20 [APP12, PictureInfo, Image] Shutter - Exposure Time: 1/155 [APP12, PictureInfo, Image] Flash - Flash: Off [APP12, PictureInfo, Image] Resolution - Resolution: 5 diff --git a/windows_exiftool b/windows_exiftool index 480dc72d..a90dae76 100755 --- a/windows_exiftool +++ b/windows_exiftool @@ -8,11 +8,11 @@ # (See html/history.html for revision history) #------------------------------------------------------------------------------ use strict; require 5.004; -my $version = '12.23'; +my $version = '12.24'; # add our 'lib' directory to the include list BEFORE 'use Image::ExifTool' my $exeDir; BEGIN { # (undocumented -xpath option added in 11.91, must come before other options) @@ -5415,11 +5415,11 @@ OPTIONS exiftool -p test.fmt a.jpg b.jpg produces output like this: - -- Generated by ExifTool 12.23 -- + -- Generated by ExifTool 12.24 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end --
"version" : "12.23", version: 12.23 gzip -dc Image-ExifTool-12.23.tar.gz | tar -xf - cd Image-ExifTool-12.23 # Usage: exiftool -config acdsee.config -ACDSEETAG=VALUE FILE ... 'w' => { Writable => 'real' }, 'h' => { Writable => 'real' }, 'unit' => { }, # new XMP namespaces (eg. xxx) must be added to the Main XMP table: AppliedToDimensions => { Struct => \%sACDSeeDimensions }, my $version = '12.23'; -- Generated by ExifTool 12.23 -- (mentioned in the Tag Name documentation) as a block.</td> of some additional tags as mentioned in the tag name documentation.</td> ( -- Image::ExifTool 12.23 -- 1)Tj ( -- Image::ExifTool 12.23 -- 2)Tj ( -- Image::ExifTool 12.23 -- 3)Tj ( -- Image::ExifTool 12.23 -- 4)Tj ( -- Image::ExifTool 12.23 -- 5)Tj /Length 3832 ( -- Image::ExifTool 12.23 -- 6)Tj ( Flag to extract some directories \(mentioned in the Tag Name)Tj ( documentation\) as a block. Setting this to a value of 2 also)Tj ( prevents parsing the block to extract tags contained within.)Tj 0 -2.2 TD ( ByteOrder)Tj /Length 4804 ( -- Image::ExifTool 12.23 -- 7)Tj ( The byte order for newly created EXIF segments when writing.)Tj 0 -2.2 TD ( Note that this option affects some types of information when)Tj /Length 4420 ( -- Image::ExifTool 12.23 -- 8)Tj ( reading/writing the file and other types when getting/setting)Tj 0 -1.1 TD ( Format for printing date/time values. See "strftime" in the)Tj /Length 4972 ( -- Image::ExifTool 12.23 -- 9)Tj ( POSIX package for details about the format string. If date can)Tj T* ( and FileType are generated. For 3, the file header is read to)Tj /Length 4475 ( -- Image::ExifTool 12.23 -- 10)Tj ( provide an educated guess at FileType. For 4, the file is not)Tj 0 -2.2 TD ( 'K', 'k' or 'km/h' - km/h)Tj /Length 4726 ( -- Image::ExifTool 12.23 -- 11)Tj ( 'M', 'm' or 'mph' - mph)Tj T* ( ValueConv values. Default is ', '.)Tj /Length 4332 ( -- Image::ExifTool 12.23 -- 12)Tj 0 -2.7333 TD 0 -1.1 TD ( Flag to request all tags to be extracted. This causes some)Tj /Length 4470 ( -- Image::ExifTool 12.23 -- 13)Tj ( tags to be generated which normally would not be unless)Tj 0 -1.1 TD ( of causing the date/time to be reformatted according to PNG 1.2)Tj /Length 4239 ( -- Image::ExifTool 12.23 -- 14)Tj ( recommendation \(RFC-1123\) when writing, and a warning to be)Tj /Length 4249 ( -- Image::ExifTool 12.23 -- 15)Tj 0 -1.6333 TD T* ( XMPAutoConv.)Tj /Length 4130 ( -- Image::ExifTool 12.23 -- 16)Tj 0 -2.7333 TD /Length 4045 ( -- Image::ExifTool 12.23 -- 17)Tj 0 -1.6333 TD 0 -1.1 TD ( 'Group#'\))Tj /Length 4391 ( -- Image::ExifTool 12.23 -- 18)Tj 0 -2.7333 TD ( 3\) [optional] Secondary sort order \('File', 'Tag' or 'Descr'\))Tj T* ( an optional group specifier\), use "GetInfo" instead.)Tj /Length 3962 ( -- Image::ExifTool 12.23 -- 19)Tj 0 -2.7333 TD 0 -1.1 TD ( $success = $exifTool->SetNewValue\($tag, $value\);)Tj /Length 4036 ( -- Image::ExifTool 12.23 -- 20)Tj 0 -2.7333 TD T* ( using a Group option argument. Also, a '#' may be appended to the)Tj ( -- Image::ExifTool 12.23 -- 21)Tj ( tag name \(eg. 'EXIF:Orientation#'\), with the same effect as setting)Tj T* ( names indicating 'unsafe' and 'protected' tags. Default is 0.)Tj ( -- Image::ExifTool 12.23 -- 22)Tj 0 -2.7333 TD 0 -2.2 TD ( 1\) Tag name \(case sensitive, may be prefixed by family 0, 1 or 7)Tj /Length 4649 ( -- Image::ExifTool 12.23 -- 23)Tj T* ( and/or suffixed by a '#' to disable print conversion. Copied tags)Tj /Length 4484 ( -- Image::ExifTool 12.23 -- 24)Tj ( may also be added or deleted from a list with arguments of the form)Tj 0 -2.2 TD ( The "Struct" option is enabled by default for tags extracted by)Tj /Length 4317 ( -- Image::ExifTool 12.23 -- 25)Tj ( this routine. This allows the hierarchy of complex structures to)Tj 0 -2.2 TD ( Notes:)Tj /Length 4138 ( -- Image::ExifTool 12.23 -- 26)Tj ( Equivalent to, but more efficient than calling "WriteInfo" when)Tj 0 -1.1 TD ( 0\) ExifTool object reference)Tj /Length 3762 ( -- Image::ExifTool 12.23 -- 27)Tj 0 -2.7333 TD T* ( The string is simplified to remove a leading 'Main:' and adjacent)Tj /Length 5018 ( -- Image::ExifTool 12.23 -- 28)Tj 0 -2.2 TD ( See "GetAllGroups [static]" for complete lists of group names.)Tj /Length 4328 ( -- Image::ExifTool 12.23 -- 29)Tj 0 -2.7333 TD 0 -2.2 TD ( Return Values:)Tj /Length 4933 ( -- Image::ExifTool 12.23 -- 30)Tj T* ( view, ICC_Profile, ICC_Profile#, ID3, ID3v1, ID3v1_Enh, ID3v2_2,)Tj /Length 4765 ( -- Image::ExifTool 12.23 -- 31)Tj ( ID3v2_3, ID3v2_4, IFD0, IFD1, IPTC, IPTC#, ISO, ITC, Insta360,)Tj 0 -2.2 TD ( Return Values:)Tj /Length 4949 ( -- Image::ExifTool 12.23 -- 32)Tj ( A list of deletable group names in alphabetical order. The current)Tj 0 -2.2 TD ( my $creatable = Image::ExifTool::CanCreate\($filename\);)Tj /Length 4693 ( -- Image::ExifTool 12.23 -- 33)Tj 0 -2.7333 TD 0 -1.1 TD ( The encodings used to store strings in the various metadata)Tj /Length 5318 ( -- Image::ExifTool 12.23 -- 34)Tj ( formats. These encodings may be changed for certain types of)Tj /Length 4720 ( -- Image::ExifTool 12.23 -- 35)Tj 0 -1.6333 TD T* ( respectively.)Tj /Length 5222 ( -- Image::ExifTool 12.23 -- 36)Tj 0 -2.7333 TD (perl v5.18.4 2021-04-01 EXIFTOOL\(1\))Tj /CreationDate (D:20210401142149-04'00') /ModDate (D:20210401142149-04'00') 0000170483 00000 n 0000169484 00000 n 0000169885 00000 n 0000168949 00000 n 0000173585 00000 n 0000170563 00000 n 0000170644 00000 n 0000170727 00000 n 0000170810 00000 n 0000170893 00000 n 0000028252 00000 n 0000170976 00000 n 0000028359 00000 n 0000033216 00000 n 0000171059 00000 n 0000033323 00000 n 0000037796 00000 n 0000171142 00000 n 0000037903 00000 n 0000042928 00000 n 0000171225 00000 n 0000043035 00000 n 0000047563 00000 n 0000171308 00000 n 0000047670 00000 n 0000052449 00000 n 0000174111 00000 n 0000173720 00000 n 0000171392 00000 n 0000052556 00000 n 0000056941 00000 n 0000171476 00000 n 0000057048 00000 n 0000061571 00000 n 0000171560 00000 n 0000061678 00000 n 0000065970 00000 n 0000171644 00000 n 0000066077 00000 n 0000070379 00000 n 0000171728 00000 n 0000070486 00000 n 0000074669 00000 n 0000171812 00000 n 0000074776 00000 n 0000078874 00000 n 0000171896 00000 n 0000078981 00000 n 0000083425 00000 n 0000171980 00000 n 0000083532 00000 n 0000087547 00000 n 0000172064 00000 n 0000087654 00000 n 0000091743 00000 n 0000172148 00000 n 0000091850 00000 n 0000096542 00000 n 0000173858 00000 n 0000172232 00000 n 0000096649 00000 n 0000101295 00000 n 0000172316 00000 n 0000101402 00000 n 0000106104 00000 n 0000172400 00000 n 0000106211 00000 n 0000110748 00000 n 0000172484 00000 n 0000110855 00000 n 0000115225 00000 n 0000172568 00000 n 0000115332 00000 n 0000119523 00000 n 0000172652 00000 n 0000119630 00000 n 0000123445 00000 n 0000172736 00000 n 0000123552 00000 n 0000128623 00000 n 0000172820 00000 n 0000128730 00000 n 0000133111 00000 n 0000172904 00000 n 0000133218 00000 n 0000138204 00000 n 0000172988 00000 n 0000138311 00000 n 0000143129 00000 n 0000173996 00000 n 0000173074 00000 n 0000143237 00000 n 0000148240 00000 n 0000173162 00000 n 0000148348 00000 n 0000153095 00000 n 0000173250 00000 n 0000153203 00000 n 0000158575 00000 n 0000173338 00000 n 0000158683 00000 n 0000163457 00000 n 0000173426 00000 n 0000163565 00000 n 0000168841 00000 n 0000169089 00000 n 0000169292 00000 n 0000173514 00000 n 0000173543 00000 n 0000174217 00000 n 0000174341 00000 n /ID [<b0cc62a5be0c1030b6f351e712d1e1cb><b0cc62a5be0c1030b6f351e712d1e1cb>] 174413 /CreationDate (D:20210401142150-04'00') /ModDate (D:20210401142150-04'00') /ID [<89c8b97ce96c2a9e18d602ed3bb880d8><89c8b97ce96c2a9e18d602ed3bb880d8>] <br>2 = No flash &amp; flash</span></td></tr> <td><span class=s>[val &amp; 0xff] <br>2 = AF-C <br>17 = AF-S (Auto)</span></td></tr> <tr> <td class=r title='0 = 0x0'>0.3</td> <tr class=b> <td class=r title='0 = 0x0'>0.4</td> <br><i>Last revised Feb 3, 2021</i> <td>'id'</td> <td>JUMBFID</td> <td>&nbsp;</td></tr> <td>'label'</td> <td>JUMBFLabel</td> <td>'signature'</td> <td>JUMBFSignature</td> <td>'type'</td> <td>JUMBFType</td> <br><i>Last revised Apr 1, 2021</i> And they extracted by default from MacOS &quot;._&quot; files when reading <br><i>Last revised Oct 15, 2020</i> <br><i>Last revised Oct 2, 2020</i> <td><span class=s>1 = RAW 1 <br>3 = IIQ L <br>5 = IIQ S <br>6 = IIQ Sv2</span></td></tr> <br><i>Last revised Apr 9, 2019</i> <br>6 = RAW + JPEG <br>&#39;0 1&#39; = Standard JPEG <br>&#39;0 2&#39; = Fine JPEG <br>&#39;0 3&#39; = Extra Fine JPEG <br>&#39;1 1&#39; = RAW + Standard JPEG <br>&#39;1 2&#39; = RAW + Fine JPEG <br>&#39;1 3&#39; = RAW + Extra Fine JPEG</td></tr></table> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <br>34 = Gamma HLG3</td></tr></table> <p>Valid from July 2020 for ILCE-1/7SM3.</p> <br>3 = JPEG + MPO</span></td></tr> <p>NEX and ILCE models only.</p> <p>Valid for the ILCE-1/7SM3.</p> <br>34 = Gamma HLG3</td></tr></table> <br><i>Last revised Apr 1, 2021</i> They contain a total of 24102 tags, with 15604 unique tag names. <br><i>Last revised Apr 1, 2021</i> <pre><code> -- Generated by ExifTool 12.23 -- ( -- ExifTool 12.23 -- 1)Tj ( -- ExifTool 12.23 -- 2)Tj ( -- ExifTool 12.23 -- 3)Tj ( -- ExifTool 12.23 -- 4)Tj ( -- ExifTool 12.23 -- 5)Tj ( -- ExifTool 12.23 -- 6)Tj ( -- ExifTool 12.23 -- 7)Tj ( -- ExifTool 12.23 -- 8)Tj ( -- ExifTool 12.23 -- 9)Tj ( -- ExifTool 12.23 -- 10)Tj ( -- ExifTool 12.23 -- 11)Tj ( -- ExifTool 12.23 -- 12)Tj ( -- ExifTool 12.23 -- 13)Tj ( -- ExifTool 12.23 -- 14)Tj ( -- ExifTool 12.23 -- 15)Tj ( -- Generated by ExifTool 12.23 --)Tj ( -- ExifTool 12.23 -- 16)Tj ( -- ExifTool 12.23 -- 17)Tj ( -- ExifTool 12.23 -- 18)Tj ( -- ExifTool 12.23 -- 19)Tj ( -- ExifTool 12.23 -- 20)Tj ( -- ExifTool 12.23 -- 21)Tj ( -- ExifTool 12.23 -- 22)Tj ( -- ExifTool 12.23 -- 23)Tj ( -- ExifTool 12.23 -- 24)Tj ( -- ExifTool 12.23 -- 25)Tj ( -- ExifTool 12.23 -- 26)Tj ( -- ExifTool 12.23 -- 27)Tj ( -- ExifTool 12.23 -- 28)Tj ( -- ExifTool 12.23 -- 29)Tj ( -- ExifTool 12.23 -- 30)Tj ( -- ExifTool 12.23 -- 31)Tj ( -- ExifTool 12.23 -- 32)Tj ( -- ExifTool 12.23 -- 33)Tj ( -- ExifTool 12.23 -- 34)Tj ( -- ExifTool 12.23 -- 35)Tj ( -- ExifTool 12.23 -- 36)Tj ( -- ExifTool 12.23 -- 37)Tj ( -- ExifTool 12.23 -- 38)Tj ( -- ExifTool 12.23 -- 39)Tj (perl v5.18.4 2021-04-01 EXIFTOOL\(1\))Tj /CreationDate (D:20210401142148-04'00') /ModDate (D:20210401142148-04'00') /ID [<ab798910bbf7ddf1029ca400262164d7><ab798910bbf7ddf1029ca400262164d7>] <li>Added BlockExtract option <a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.23.tar.gz/download"> Download Version 12.23</a> (4.7 MB) - <a href="history.html">Apr. 1, 2021</a></b></td></tr></table></blockquote> <a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.23.zip/download"> exiftool-12.23.zip</a> (6.4 MB)</b></td></tr></table></blockquote> ExifTool-12.23.dmg</a> (3.0 MB)</b></td></tr></table></blockquote> <br><span class=lt>(The file you download should be named "<code>exiftool-12.23.zip</code>".)</span></li> <br><span class=lt>(Double-click on "<code>exiftool-12.23.zip</code>" to open <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.23.tar.gz</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>ExifTool-12.23.dmg</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.23.tar.gz</code>".)</span></li> tar -xzf Image-ExifTool-12.23.tar.gz cd Image-ExifTool-12.23 <blockquote class=red>"ExifTool-12.23.pkg" can't be opened because it is from an <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.23.tar.gz</code>".)</span></li> gzip -dc Image-ExifTool-12.23.tar.gz | tar -xf - cd Image-ExifTool-12.23 $VERSION = '12.23'; MacOS PHP PCX DCX DWF DWG WTV Torrent VCard LRI R3D AA PDB MOI ISO ALIAS JSON MP3 DICOM PCD TXT); X3F PS PDF ICC VRD DR4 JP2 EXIF AI AIT IND MOV EXV FLIF); JP2 => [ qw(J2C JPC JXC) ], JXC => ['JP2', 'JPEG XL Codestream'], # (JXC = PH invention, not a real extension) JXL => ['JP2', 'JPEG XL'], JXC => 'image/x-jxc', #PH (invented) JP2 => '(\0\0\0\x0cjP( |\x1a\x1a)\x0d\x0a\x87\x0a|\xff\x4f\xff\x51\0|\xff\x0a|\0\0\0\x0cJXL \x0d\x0a......ftypjxl )', Flag to extract some directories (mentioned in the Tag Name documentation) as a block. Setting this to a value of 2 also prevents parsing the block to extract tags contained within. $VERSION = '1.06'; # must protect unescaped "$" and "@" symbols, and "\" at end of string $tok =~ s{\\(.)|([\$\@]|\\$)}{'\\'.($2 || $1)}sge; # convert C escape sequences (allowed in quoted text) $tok = eval qq{"$tok"}; $VERSION = '1.79'; Mask => 0x000000ff, 0x00 => 'AF-M', 0x01 => 'AF-S', 0x02 => 'AF-C', 0x11 => 'AF-S (Auto)', 0.3 => { 0.4 => { type => { Name => 'JUMBFType', label => { Name => 'JUMBFLabel' }, id => { Name => 'JUMBFID', Description => 'JUMBF ID' }, signature => { Name => 'JUMBFSignature', PrintConv => 'unpack "H*", $val' }, $et->HandleTag($tagTablePtr, 'type', substr($$dataPt, $pos, 16)); $et->HandleTag($tagTablePtr, 'label', $name); $et->HandleTag($tagTablePtr, 'id', Get32u($dataPt, $pos)); $et->HandleTag($tagTablePtr, 'signature', substr($$dataPt, $pos, 32)); ($hdr eq "\0\0\0\x0cJXL \x0d\x0a\x87\x0a" and $$et{IsJXL} = 1)) # (JPEG XL) if ($hdr =~ /^\xff\x0a/) { $outfile and $et->Error('Writing of JPEG XL codestream files is not yet supported'), return 0; # JPEG XL codestream $et->SetFileType('JXC',undef,'JXL'); # (PH invention) $et->Warn('JPEG XL codestream support is currently experimental',1); ProcessJXLCodestream($et, \$hdr); return 1; } $et->Warn('JPEG XL support is currently experimental',1) if $$et{IsJXL}; # Returns: 1 on success, 0 if this wasn't a valid JPEG XL file return ProcessJP2($et, $dirInfo); And they extracted by default from MacOS "._" files when reading } elsif ($format eq 'vt_filetime') { # 0x357 int32u - 0=DNG, 3162=JPG (ref 23) $VERSION = '1.06'; 3 => 'IIQ L', 6 => 'IIQ Sv2', $VERSION = '3.39'; 6 => 'RAW + JPEG', ($$self{Model} =~ /^(SLT-|HV)/) or ($$self{Model} =~ /^ILCE-/ and '0 1' => 'Standard JPEG', '0 2' => 'Fine JPEG', '0 3' => 'Extra Fine JPEG', '1 1' => 'RAW + Standard JPEG', '1 2' => 'RAW + Fine JPEG', '1 3' => 'RAW + Extra Fine JPEG', # 0x2032 - first seen for ILCE-7SM3, July 2020 # 0x2033 - first seen for ILCE-7SM3, July 2020 # 0x2034 - first seen for ILCE-7SM3, July 2020 # 0x2035 - first seen for ILCE-7SM3, July 2020 # 0x2036 - first seen for ILCE-7SM3, July 2020 # 0x2037 - first seen for ILCE-7SM3, July 2020 # 0x2039 - first seen for ILCE-7SM3, July 2020 # 0x31 (e) for ILCE-1, 7SM3 Valid from July 2020 for ILCE-1/7SM3. 0x002a => { }, NOTES => 'NEX and ILCE models only.', NOTES => 'Valid for the ILCE-1/7SM3.', 'afareamode' => { 124 => '0.2', 177 => 0x33, 181 => 0xe, 189 => 0x0, 190 => 0x5, 311 => 0xf, 378 => 0x1205, 391 => [0xa,0x3a], 398 => 0x11, 399 => 0x10, 400 => 0x24, 411 => 0xb043, 435 => 0x17 }, 'afareapointsize' => { 124 => '0.3' }, 'afareazonesize' => { 124 => '0.4' }, 'clarity' => { 225 => 0x35, 226 => 0x3d, 468 => 'Clarity', 470 => 'Clarity' }, 'highlights' => { 462 => 'Highlights' }, 'internalserialnumber' => { 62 => 0x96, 74 => 0x9, 125 => 0x10, 184 => 0x49dc, 287 => 0x18, 289 => 0x102, 308 => 0x500, 311 => 0x25, 326 => 0x4, 378 => 0x5, 429 => [0x7c,0xf0], 430 => 0x88, 431 => 0x88 }, 'shadows' => { 117 => 0xfe52, 462 => 'Shadows', 468 => 'Shadows', 470 => 'Shadows' }, 'whitepoint' => { 117 => 0x13e, 346 => 0x201, 490 => 'WhitePoint' }, 'jumbfid' => 1, 'jumbflabel' => 1, 'jumbfsignature' => 1, 'jumbftype' => 1, They contain a total of 24102 tags, with 15604 unique tag names. 0.1 FocusMode2 int32u & 0xff 0.2 AFAreaMode int32u & 0xf00 0.3 AFAreaPointSize int32u & 0xf000 0.4 AFAreaZoneSize int32u & 0xf0000 Valid from July 2020 for ILCE-1/7SM3. NEX and ILCE models only. Valid for the ILCE-1/7SM3. 'id' JUMBFID no 'label' JUMBFLabel no 'signature' JUMBFSignature no 'type' JUMBFType no And they extracted by default from MacOS "._" files when reading Version: 12.23 [ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.23 [File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:01 13:20:48-04:00 [JUMBF, JUMBF, Image] type - JUMBF Type: cacb-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai [JUMBF, JUMBF, Image] type - JUMBF Type: cast-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cb.reuters_1 [JUMBF, JUMBF, Image] type - JUMBF Type: caas-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai.assertions [JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: adobe.asset.info [JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai.location.broad [JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai.rights [JUMBF, JUMBF, Image] type - JUMBF Type: cacb-####-####-######aa#####b## [JUMBF, JUMBF, Image] label - JUMBF Label: cai [JUMBF, JUMBF, Image] type - JUMBF Type: cast-####-####-######aa#####b## [JUMBF, JUMBF, Image] label - JUMBF Label: cb.reuters_# [JUMBF, JUMBF, Image] type - JUMBF Type: caas-####-####-######aa#####b## [JUMBF, JUMBF, Image] label - JUMBF Label: cai.assertions [JUMBF, JUMBF, Image] type - JUMBF Type: json-####-####-######aa#####b## [JUMBF, JUMBF, Image] label - JUMBF Label: adobe.asset.info [JUMBF, JUMBF, Image] type - JUMBF Type: json-####-####-######aa#####b## [JUMBF, JUMBF, Image] label - JUMBF Label: cai.location.broad [JUMBF, JUMBF, Image] type - JUMBF Type: json-####-####-######aa#####b## [JUMBF, JUMBF, Image] label - JUMBF Label: cai.rights [ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.23 [File, System, Time] FileModifyDate - File Modification Date/Time: 2021:04:01 13:21:08-04:00 [File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:01 13:21:08-04:00 [File, System, Time] FileInodeChangeDate - File Inode Change Date/Time: 2021:04:01 13:21:08-04:00 [JUMBF, JUMBF, Image] type - JUMBF Type: cacb-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai [JUMBF, JUMBF, Image] type - JUMBF Type: cast-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cb.reuters_1 [JUMBF, JUMBF, Image] type - JUMBF Type: caas-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai.assertions [JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: adobe.asset.info [JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai.location.broad [JUMBF, JUMBF, Image] type - JUMBF Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] label - JUMBF Label: cai.rights my $version = '12.23'; -- Generated by ExifTool 12.23 --
Apr. 13, 2021 - Version 12.24 - Added a new PhaseOne RawFormat value (thanks LibRaw) - Decode a new Sony tag (thanks Jos Roost) - Decode a few new Panasonic and FujiFilm tags (thanks LibRaw and Greybeard) - Patched security vulnerability in DjVu reader - Updated acdsee.config in distribution (thanks StarGeek) - Recognize AutoCAD DXF files - More work on experimental JUMBF read support - More work on experimental JXL read/write support "version" : "12.24", version: 12.24 gzip -dc Image-ExifTool-12.24.tar.gz | tar -xf - cd Image-ExifTool-12.24 # The following tags are created in the XMP-acdsee-rs group # RegionInfoACDSee : The structured tag for the ACDSee regions # (similar to XMP-mwg-rs:RegionInfo) # # The following tags are the width, height, and unit of the # image at the time of processing when storing image region # metadata. They are similar to the AppliedToDimensions tags # of the MWG regions. # ACDSeeRegionAppliedToDimensionsH : Height of the image # ACDSeeRegionAppliedToDimensionsUnit : Unit of the image # ACDSeeRegionAppliedToDimensionsW : Width of the image # # Actual region data, stored in an array. These flattened tags # are treated as List Type tags. There are two region types, # the ALYArea and the DLYArea. The ALYArea tags tags assigned # by ACDSee and are usually square in dimensions. The DLYArea # tags are both the tags assigned by ACDSee (but possibly # rectangular instead of square) as well as any manual # assigned tags. They are similar to the area tags of the MWG # regions. # ACDSeeRegionDLYAreaH : Height of DLY region # ACDSeeRegionDLYAreaW : Width of DLY region # ACDSeeRegionDLYAreaX : X centerpoint of DLY region # ACDSeeRegionDLYAreaY : Y centerpoint of DLY region # ACDSeeRegionALYAreaH : Height of ALY region # ACDSeeRegionALYAreaW : Width of ALY region # ACDSeeRegionALYAreaX : X centerpoint of ALY region # ACDSeeRegionALYAreaY : Y centerpoint of ALY region # ACDSeeRegionName : Name of region # ACDSeeRegionType : Type of region # ACDSeeRegionNameAssignType : How the type was assigned. # "Manual" is the only known # entry at this time # # Conversion tags. These tags can be used to convert other region # type tags to ACDSee regions. # MPRegion2ACDSeeRegion : Converts a Microsoft RegionInfoMP # IPTCRegion2ACDSeeRegion : Converts an IPTC ImageRegion # MWGRegion2ACDSeeRegion : Converts a MWG RegionInfo # # Usage: To set individual tags # exiftool -config acdsee.config -ACDSEETAG=VALUE FILE ... # # To convert Microsoft Regions to ACDSee regions # exiftool -config acdsee.config "-RegionInfoACDSee<MPRegion2ACDSeeRegion" File ... # To convert IPTC regions to ACDSee regions # exiftool -config acdsee.config "-RegionInfoACDSee<IPTCRegion2ACDSeeRegion" File ... # To convert MWG Regions to ACDSee regions # exiftool -config acdsee.config "-RegionInfoACDSee<MWGRegion2ACDSeeRegion" File ... # 2021/04/08 - BKW Added tags to convert from Microsoft, IPTC, # and MWG regions to ACDSee regions based upon # convert_regions.config. Expanded docs. # Shortened ADCSee tag names and added shortcuts # from original names to new names, for example # "RegionInfoACDSeeAppliedToDimensions*" -> "ACDSeeRegionAppliedToDimensions*" # "RegionInfoACDSeeRegionList* -> "ACDSeeRegion*" use Data::Dumper; 'w' => { Writable => 'real' }, 'h' => { Writable => 'real' }, 'unit' => { }, # new XMP namespaces for ACDSee regions 'Image::ExifTool::Composite' => { # create an ACDSee RegionInfo structure from a Microsoft RegionInfoMP structure MPRegion2ACDSeeRegion => { Require => { 0 => 'RegionInfoMP', 1 => 'ImageWidth', 2 => 'ImageHeight', }, ValueConv => q{ my ($rgn, @newRgns); foreach $rgn (@{$val[0]{Regions}}) { my $name = $$rgn{PersonDisplayName}; next unless $$rgn{Rectangle} or defined $name; my %newRgn = ( Type => 'Face' ); if (defined $name) { # don't add ignored faces next if $name eq 'ffffffffffffffff'; $newRgn{Name} = $name; } if ($$rgn{Rectangle}) { my @rect = split /\s*,\s*/, $$rgn{Rectangle}; $newRgn{DLYArea} = { X => $rect[0] + $rect[2]/2, Y => $rect[1] + $rect[3]/2, W => $rect[2], H => $rect[3], } if @rect == 4; } push @newRgns, \%newRgn; } return { AppliedToDimensions => { W => $val[1], H => $val[2], Unit => 'pixel' }, RegionList => \@newRgns, }; }, }, # create an ACDSee RegionInfo structure from an IPTC ImageRegion list IPTCRegion2ACDSeeRegion => { Require => { 0 => 'ImageRegion', 1 => 'ImageWidth', 2 => 'ImageHeight', }, ValueConv => q{ my ($rgn, @newRgns); my $rgns = ref $val[0] eq 'ARRAY' ? $val[0] : [ $val[0] ]; foreach $rgn (@$rgns) { my %newRgn = ( Type => 'Face' ); if ($$rgn{RegionBoundary} and $$rgn{RegionBoundary}{RbShape} eq 'rectangle') { my @rect = @{$$rgn{RegionBoundary}}{'RbX','RbY','RbW','RbH'}; if ($$rgn{RegionBoundary}{RbUnit} eq 'pixel') { $rect[0] /= $val[1], $rect[2] /= $val[1]; $rect[1] /= $val[2]; $rect[3] /= $val[2]; } $newRgn{'DLYArea'} = { X => $rect[0] + $rect[2]/2, Y => $rect[1] + $rect[3]/2, W => $rect[2], H => $rect[3], }; } else { next unless defined $$rgn{Name}; } $newRgn{Name} = $$rgn{Name} if defined $$rgn{Name}; push @newRgns, \%newRgn; } return { AppliedToDimensions => { 'W' => $val[1], 'H' => $val[2], 'Unit' => 'pixel' }, RegionList => \@newRgns, }; }, }, # create an MWG RegionInfo structure from an IPTC ImageRegion list MWGRegion2ACDSeeRegion => { Require => { 0 => 'RegionInfo', 1 => 'ImageWidth', 2 => 'ImageHeight', }, ValueConv => q{ my ($rgn, @newRgns); my %newRgn; foreach $rgn (@{$val[0]{RegionList}}) { next unless $$rgn{Area} or defined $$rgn{Name}; my %newRgn; if ($$rgn{Area}) { $newRgn{'DLYArea'} = { 'X' => $$rgn{Area}{'X'}, 'Y' => $$rgn{Area}{'Y'}, 'W' => $$rgn{Area}{'W'}, 'H' => $$rgn{Area}{'H'}, }; }; $newRgn{Name} = $$rgn{Name} if defined $$rgn{Name}; $newRgn{'Type'} = $$rgn{'Type'} if defined $$rgn{'Type'}; push @newRgns, \%newRgn; } return { 'AppliedToDimensions' => $val[0]{'AppliedToDimensions'}, RegionList => \@newRgns, } }, }, #### }, FlatName => 'ACDSee', FlatName => 'Region', AppliedToDimensions => { FlatName => 'RegionAppliedToDimensions',Struct => \%sACDSeeDimensions }, # Shortcuts to old names added so as not to break previously used commands %Image::ExifTool::UserDefined::Shortcuts = ( RegionInfoACDSeeAppliedToDimensionsH => 'ACDSeeRegionAppliedToDimensionsH', RegionInfoACDSeeAppliedToDimensionsUnit => 'ACDSeeRegionAppliedToDimensionsUnit', RegionInfoACDSeeAppliedToDimensionsW => 'ACDSeeRegionAppliedToDimensionsW', RegionInfoACDSeeRegionListDLYAreaH => 'ACDSeeRegionDLYAreaH', RegionInfoACDSeeRegionListDLYAreaW => 'ACDSeeRegionDLYAreaW', RegionInfoACDSeeRegionListDLYAreaX => 'ACDSeeRegionDLYAreaX', RegionInfoACDSeeRegionListDLYAreaY => 'ACDSeeRegionDLYAreaY', RegionInfoACDSeeRegionListALGAreaH => 'ACDSeeRegionALGAreaH', RegionInfoACDSeeRegionListALGAreaW => 'ACDSeeRegionALGAreaW', RegionInfoACDSeeRegionListALGAreaX => 'ACDSeeRegionALGAreaX', RegionInfoACDSeeRegionListALGAreaY => 'ACDSeeRegionALGAreaY', RegionInfoACDSeeRegionListName => 'ACDSeeRegionName', RegionInfoACDSeeRegionListType => 'ACDSeeRegionType', RegionInfoACDSeeRegionListNameAssignType => 'ACDSeeRegionNameAssignType', ); # Forced -struct option during debugging #%Image::ExifTool::UserDefined::Options = ( # Struct => 1, #); my $version = '12.24'; -- Generated by ExifTool 12.24 -- (mentioned in the <a href="TagNames/index.html">Tag Name documentation</a>) as a block.</td> of some additional tags as mentioned in the <a href="TagNames/index.html">Tag Name documentation</a>.</td> ( -- Image::ExifTool 12.24 -- 1)Tj ( -- Image::ExifTool 12.24 -- 2)Tj ( -- Image::ExifTool 12.24 -- 3)Tj ( -- Image::ExifTool 12.24 -- 4)Tj ( -- Image::ExifTool 12.24 -- 5)Tj /Length 3828 ( -- Image::ExifTool 12.24 -- 6)Tj ( Flag to extract some directories \(mentioned in the ExifTool tag)Tj ( name documentation\) as a block. Setting this to a value of 2)Tj ( also prevents parsing the block to extract tags contained)Tj T* ( within.)Tj /Length 4742 ( -- Image::ExifTool 12.24 -- 7)Tj ( ByteOrder)Tj ( The byte order for newly created EXIF segments when writing.)Tj T* /Length 4413 ( -- Image::ExifTool 12.24 -- 8)Tj ( Note that this option affects some types of information when)Tj ( reading/writing the file and other types when getting/setting)Tj T* /Length 4970 ( -- Image::ExifTool 12.24 -- 9)Tj ( Format for printing date/time values. See "strftime" in the)Tj ( POSIX package for details about the format string. If date can)Tj T* /Length 4500 ( -- Image::ExifTool 12.24 -- 10)Tj ( and FileType are generated. For 3, the file header is read to)Tj ( provide an educated guess at FileType. For 4, the file is not)Tj T* /Length 4721 ( -- Image::ExifTool 12.24 -- 11)Tj ( 'K', 'k' or 'km/h' - km/h)Tj ( 'M', 'm' or 'mph' - mph)Tj T* /Length 4308 ( -- Image::ExifTool 12.24 -- 12)Tj 0 -1.6333 TD ( ValueConv values. Default is ', '.)Tj 0 -2.2 TD /Length 4459 ( -- Image::ExifTool 12.24 -- 13)Tj ( Flag to request all tags to be extracted. This causes some)Tj ( tags to be generated which normally would not be unless)Tj T* /Length 4325 ( -- Image::ExifTool 12.24 -- 14)Tj ( of causing the date/time to be reformatted according to PNG 1.2)Tj ( recommendation \(RFC-1123\) when writing, and a warning to be)Tj T* /Length 4218 ( -- Image::ExifTool 12.24 -- 15)Tj 0 -2.7333 TD /Length 4168 ( -- Image::ExifTool 12.24 -- 16)Tj 0 -1.6333 TD ( XMPAutoConv.)Tj 0 -2.2 TD /Length 4009 ( -- Image::ExifTool 12.24 -- 17)Tj 0 -2.7333 TD /Length 4352 ( -- Image::ExifTool 12.24 -- 18)Tj 0 -1.6333 TD ( 'Group#'\))Tj ( 3\) [optional] Secondary sort order \('File', 'Tag' or 'Descr'\))Tj T* /Length 3961 ( -- Image::ExifTool 12.24 -- 19)Tj 0 -1.6333 TD ( an optional group specifier\), use "GetInfo" instead.)Tj 0 -2.2 TD /Length 4027 ( -- Image::ExifTool 12.24 -- 20)Tj 0 -1.6333 TD ( $success = $exifTool->SetNewValue\($tag, $value\);)Tj 0 -2.2 TD ( -- Image::ExifTool 12.24 -- 21)Tj ( using a Group option argument. Also, a '#' may be appended to the)Tj ( tag name \(eg. 'EXIF:Orientation#'\), with the same effect as setting)Tj T* ( -- Image::ExifTool 12.24 -- 22)Tj 0 -1.6333 TD ( names indicating 'unsafe' and 'protected' tags. Default is 0.)Tj 0 -2.2 TD /Length 4656 ( -- Image::ExifTool 12.24 -- 23)Tj ( 1\) Tag name \(case sensitive, may be prefixed by family 0, 1 or 7)Tj 0 -1.1 TD /Length 4480 ( -- Image::ExifTool 12.24 -- 24)Tj ( and/or suffixed by a '#' to disable print conversion. Copied tags)Tj ( may also be added or deleted from a list with arguments of the form)Tj T* /Length 4371 ( -- Image::ExifTool 12.24 -- 25)Tj ( The "Struct" option is enabled by default for tags extracted by)Tj ( this routine. This allows the hierarchy of complex structures to)Tj T* /Length 4104 ( -- Image::ExifTool 12.24 -- 26)Tj ( Notes:)Tj ( Equivalent to, but more efficient than calling "WriteInfo" when)Tj T* /Length 3733 ( -- Image::ExifTool 12.24 -- 27)Tj 0 -1.6333 TD ( 0\) ExifTool object reference)Tj 0 -2.2 TD /Length 5021 ( -- Image::ExifTool 12.24 -- 28)Tj ( The string is simplified to remove a leading 'Main:' and adjacent)Tj 0 -1.1 TD /Length 4380 ( -- Image::ExifTool 12.24 -- 29)Tj 0 -1.6333 TD ( See "GetAllGroups [static]" for complete lists of group names.)Tj 0 -2.2 TD /Length 4886 ( -- Image::ExifTool 12.24 -- 30)Tj ( Return Values:)Tj 0 -1.1 TD /Length 4812 ( -- Image::ExifTool 12.24 -- 31)Tj ( view, ICC_Profile, ICC_Profile#, ID3, ID3v1, ID3v1_Enh, ID3v2_2,)Tj ( ID3v2_3, ID3v2_4, IFD0, IFD1, IPTC, IPTC#, ISO, ITC, Insta360,)Tj T* /Length 4896 ( -- Image::ExifTool 12.24 -- 32)Tj ( Return Values:)Tj ( A list of deletable group names in alphabetical order. The current)Tj T* /Length 4690 ( -- Image::ExifTool 12.24 -- 33)Tj 0 -1.6333 TD ( my $creatable = Image::ExifTool::CanCreate\($filename\);)Tj 0 -2.2 TD /Length 5396 ( -- Image::ExifTool 12.24 -- 34)Tj ( The encodings used to store strings in the various metadata)Tj ( formats. These encodings may be changed for certain types of)Tj T* /Length 4692 ( -- Image::ExifTool 12.24 -- 35)Tj 0 -2.7333 TD /Length 5257 ( -- Image::ExifTool 12.24 -- 36)Tj 0 -1.6333 TD ( respectively.)Tj 0 -2.2 TD (perl v5.18.4 2021-04-13 EXIFTOOL\(1\))Tj /CreationDate (D:20210413110922-04'00') /ModDate (D:20210413110922-04'00') 0000170479 00000 n 0000169480 00000 n 0000169881 00000 n 0000168945 00000 n 0000173581 00000 n 0000170559 00000 n 0000170640 00000 n 0000170723 00000 n 0000170806 00000 n 0000170889 00000 n 0000028248 00000 n 0000170972 00000 n 0000028355 00000 n 0000033150 00000 n 0000171055 00000 n 0000033257 00000 n 0000037723 00000 n 0000171138 00000 n 0000037830 00000 n 0000042853 00000 n 0000171221 00000 n 0000042960 00000 n 0000047513 00000 n 0000171304 00000 n 0000047620 00000 n 0000052394 00000 n 0000174107 00000 n 0000173716 00000 n 0000171388 00000 n 0000052501 00000 n 0000056862 00000 n 0000171472 00000 n 0000056969 00000 n 0000061481 00000 n 0000171556 00000 n 0000061588 00000 n 0000065966 00000 n 0000171640 00000 n 0000066073 00000 n 0000070344 00000 n 0000171724 00000 n 0000070451 00000 n 0000074672 00000 n 0000171808 00000 n 0000074779 00000 n 0000078841 00000 n 0000171892 00000 n 0000078948 00000 n 0000083353 00000 n 0000171976 00000 n 0000083460 00000 n 0000087474 00000 n 0000172060 00000 n 0000087581 00000 n 0000091661 00000 n 0000172144 00000 n 0000091768 00000 n 0000096460 00000 n 0000173854 00000 n 0000172228 00000 n 0000096567 00000 n 0000101213 00000 n 0000172312 00000 n 0000101320 00000 n 0000106029 00000 n 0000172396 00000 n 0000106136 00000 n 0000110669 00000 n 0000172480 00000 n 0000110776 00000 n 0000115200 00000 n 0000172564 00000 n 0000115307 00000 n 0000119464 00000 n 0000172648 00000 n 0000119571 00000 n 0000123357 00000 n 0000172732 00000 n 0000123464 00000 n 0000128538 00000 n 0000172816 00000 n 0000128645 00000 n 0000133078 00000 n 0000172900 00000 n 0000133185 00000 n 0000138124 00000 n 0000172984 00000 n 0000138231 00000 n 0000143096 00000 n 0000173992 00000 n 0000173070 00000 n 0000143204 00000 n 0000148154 00000 n 0000173158 00000 n 0000148262 00000 n 0000153006 00000 n 0000173246 00000 n 0000153114 00000 n 0000158564 00000 n 0000173334 00000 n 0000158672 00000 n 0000163418 00000 n 0000173422 00000 n 0000163526 00000 n 0000168837 00000 n 0000169085 00000 n 0000169288 00000 n 0000173510 00000 n 0000173539 00000 n 0000174213 00000 n 0000174337 00000 n /ID [<560ec6fe6e5440771a95f440aabbe0e8><560ec6fe6e5440771a95f440aabbe0e8>] 174409 /CreationDate (D:20210413110922-04'00') /ModDate (D:20210413110922-04'00') /ID [<aaba228f321479095b428dfe7ef65dcb><aaba228f321479095b428dfe7ef65dcb>] <br>2 = No flash &amp; flash <br>6 = Pixel Shift</span></td></tr> <td title='0x1105 = 4357'>0x1105</td> <td>PixelShiftShots</td> <td class=c>int16u</td> <td>&nbsp;</td></tr> <tr> <td title='0x1106 = 4358'>0x1106</td> <td>PixelShiftOffset</td> <td class=c>rational64s[2]</td> <td>&nbsp;</td></tr> <tr class=b> <td><span class=s>[val &amp; 0xf] <br>2 = AF-C</span></td></tr> <td>PreAF</td> <td class=c>int32u</td> <td><span class=s>[val &gt;&gt; 4 &amp; 0xf] <br>0 = Off <br>1 = On</span></td></tr> <tr> <td class=r title='0 = 0x0'>0.3</td> <tr class=b> <td class=r title='0 = 0x0'>0.4</td> <tr> <td class=r title='0 = 0x0'>0.5</td> <br><i>Last revised Apr 13, 2021</i> <td>'jumd-flags'</td> <td>JUMDFlags</td> <td><span class=s>Bit 0 = Requestable <br>Bit 1 = Label <br>Bit 2 = ID <br>Bit 3 = Signature</span></td></tr> <td>'jumd-id'</td> <td>JUMDID</td> <td>'jumd-label'</td> <td>JUMDLabel</td> <td>'jumd-sig'</td> <td>JUMDSignature</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr> <td>'jumd-type'</td> <td>JUMDType</td> <br><i>Last revised Apr 13, 2021</i> And they are extracted by default from MacOS &quot;._&quot; files when reading <br><i>Last revised Apr 13, 2021</i> <tr> <td title='0x035b = 859'>0x035b</td> <td>CorrelatedColorTemp</td> <td class=c>int16u</td> <td>&nbsp;</td></tr> <tr class=b> <td title='0x035c = 860'>0x035c</td> <td>ColorTint</td> <td class=c>int16s</td> <td>&nbsp;</td></tr> <tr> <td title='0x035d = 861'>0x035d</td> <td>WhitePoint</td> <td class=c>rational64u[2]</td> <td>&nbsp;</td></tr> <br><i>Last revised Apr 13, 2021</i> <td><table class=cols><tr> <td>1 = RAW 1 <br>3 = IIQ L</td><td>&nbsp;&nbsp;</td> <td>5 = IIQ S <br>6 = IIQ Sv2 <br>8 = IIQ L16</td></tr></table> </td></tr> <br><i>Last revised Apr 13, 2021</i> <br>6 = RAW + JPEG/HEIF <br>9 = Light <br>&#39;0 1&#39; = Standard <br>&#39;0 2&#39; = Fine <br>&#39;0 3&#39; = Extra Fine <br>&#39;0 4&#39; = Light <br>&#39;1 1&#39; = RAW + Standard <br>&#39;1 2&#39; = RAW + Fine <br>&#39;1 3&#39; = RAW + Extra Fine <br>&#39;1 4&#39; = RAW + Light</td></tr></table> <td title='0x2032 = 8242'>0x2032</td> <td>Shadows</td> <td class=c>int32s</td> <td>&nbsp;</td></tr> <tr> <td title='0x2033 = 8243'>0x2033</td> <td>Highlights</td> <td class=c>int32s</td> <td>&nbsp;</td></tr> <tr class=b> <td title='0x2034 = 8244'>0x2034</td> <td>Fade</td> <td class=c>int32s</td> <td>&nbsp;</td></tr> <tr> <td title='0x2035 = 8245'>0x2035</td> <td>SharpnessRange</td> <td class=c>int32s</td> <td>&nbsp;</td></tr> <tr class=b> <td title='0x2036 = 8246'>0x2036</td> <td>Clarity</td> <td class=c>int32s</td> <td>&nbsp;</td></tr> <tr> <td title='0x2037 = 8247'>0x2037</td> <td>FocusFrameSize</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr class=b> <td title='0x2039 = 8249'>0x2039</td> <td>JPEG-HEIFSwitch</td> <td class=c>int16u</td> <td><span class=s>0 = JPEG <br>1 = HEIF <br>65535 = n/a</span></td></tr> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <tr> <tr class=b> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <p>Valid from July 2020 for ILCE-1/7SM3, ILME-FX3.</p> <tr class=b> <td class=r title='138 = 0x8a'>138</td> <td>InternalSerialNumber</td> <td class=c title=' ~ = Writable only with -n'>int8u[6]~</td> <td>&nbsp;</td></tr> <br>3 = JPEG + MPO <br>1 = JPEG <br>2 = RAW <br>3 = RAW + JPEG <br>4 = HEIF <br>6 = RAW + HEIF</span></td></tr> <p>E-mount cameras only.</p> <p>Valid for the ILCE-1/7SM3, ILME-FX3.</p> <br>34 = Gamma HLG3 <br>37 = FL <br>39 = IN <br>40 = SH</td></tr></table> <br><i>Last revised Apr 13, 2021</i> They contain a total of 24118 tags, with 15614 unique tag names. <br><i>Last revised Apr 13, 2021</i> <pre><code> -- Generated by ExifTool 12.24 -- ( -- ExifTool 12.24 -- 1)Tj ( -- ExifTool 12.24 -- 2)Tj ( -- ExifTool 12.24 -- 3)Tj ( -- ExifTool 12.24 -- 4)Tj ( -- ExifTool 12.24 -- 5)Tj ( -- ExifTool 12.24 -- 6)Tj ( -- ExifTool 12.24 -- 7)Tj ( -- ExifTool 12.24 -- 8)Tj ( -- ExifTool 12.24 -- 9)Tj ( -- ExifTool 12.24 -- 10)Tj ( -- ExifTool 12.24 -- 11)Tj ( -- ExifTool 12.24 -- 12)Tj ( -- ExifTool 12.24 -- 13)Tj ( -- ExifTool 12.24 -- 14)Tj ( -- ExifTool 12.24 -- 15)Tj ( -- Generated by ExifTool 12.24 --)Tj ( -- ExifTool 12.24 -- 16)Tj ( -- ExifTool 12.24 -- 17)Tj ( -- ExifTool 12.24 -- 18)Tj ( -- ExifTool 12.24 -- 19)Tj ( -- ExifTool 12.24 -- 20)Tj ( -- ExifTool 12.24 -- 21)Tj ( -- ExifTool 12.24 -- 22)Tj ( -- ExifTool 12.24 -- 23)Tj ( -- ExifTool 12.24 -- 24)Tj ( -- ExifTool 12.24 -- 25)Tj ( -- ExifTool 12.24 -- 26)Tj ( -- ExifTool 12.24 -- 27)Tj ( -- ExifTool 12.24 -- 28)Tj ( -- ExifTool 12.24 -- 29)Tj ( -- ExifTool 12.24 -- 30)Tj ( -- ExifTool 12.24 -- 31)Tj ( -- ExifTool 12.24 -- 32)Tj ( -- ExifTool 12.24 -- 33)Tj ( -- ExifTool 12.24 -- 34)Tj ( -- ExifTool 12.24 -- 35)Tj ( -- ExifTool 12.24 -- 36)Tj ( -- ExifTool 12.24 -- 37)Tj ( -- ExifTool 12.24 -- 38)Tj ( -- ExifTool 12.24 -- 39)Tj (perl v5.18.4 2021-04-13 EXIFTOOL\(1\))Tj /CreationDate (D:20210413110921-04'00') /ModDate (D:20210413110921-04'00') /ID [<88f6ccfb20ef49d8fb5d8a90914f5aa9><88f6ccfb20ef49d8fb5d8a90914f5aa9>] <a name='v12.24'><b>Apr. 13, 2021 - Version 12.24</b></a> <ul> <li>Added a new PhaseOne RawFormat value (thanks LibRaw) <li>Decode a new Sony tag (thanks Jos Roost) <li>Decode a few new Panasonic and FujiFilm tags (thanks LibRaw and Greybeard) <li>Patched security vulnerability in DjVu reader <li>Updated acdsee.config in distribution (thanks StarGeek) <li>Recognize AutoCAD DXF files <li>More work on experimental JUMBF read support <li>More work on experimental JXL read/write support </ul> <li>Added <a href="ExifTool.html#BlockExtract">BlockExtract option</a> <a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.24.tar.gz/download"> Download Version 12.24</a> (4.7 MB) - <a href="history.html">Apr. 13, 2021</a></b></td></tr></table></blockquote> <a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.24.zip/download"> exiftool-12.24.zip</a> (6.4 MB)</b></td></tr></table></blockquote> ExifTool-12.24.dmg</a> (3.0 MB)</b></td></tr></table></blockquote> <br><span class=lt>(The file you download should be named "<code>exiftool-12.24.zip</code>".)</span></li> <br><span class=lt>(Double-click on "<code>exiftool-12.24.zip</code>" to open <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.24.tar.gz</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>ExifTool-12.24.dmg</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.24.tar.gz</code>".)</span></li> tar -xzf Image-ExifTool-12.24.tar.gz cd Image-ExifTool-12.24 <blockquote class=red>"ExifTool-12.24.pkg" can't be opened because it is from an <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.24.tar.gz</code>".)</span></li> gzip -dc Image-ExifTool-12.24.tar.gz | tar -xf - cd Image-ExifTool-12.24 $VERSION = '12.24'; MacOS PHP PCX DCX DWF DWG DXF WTV Torrent VCard LRI R3D AA PDB JXL MOI ISO ALIAS JSON MP3 DICOM PCD TXT); X3F PS PDF ICC VRD DR4 JP2 JXL EXIF AI AIT IND MOV EXV FLIF); JP2 => [ qw(J2C JPC) ], DXF => ['DXF', 'AutoCAD Drawing Exchange Format'], JXL => ['JXL', 'JPEG XL'], DXF => 'application/dxf', DXF => 0, DXF => '\s*0\s+\0?\s*SECTION\s+2\s+HEADER', JP2 => '(\0\0\0\x0cjP( |\x1a\x1a)\x0d\x0a\x87\x0a|\xff\x4f\xff\x51\0)', JXL => '\xff\x0a|\0\0\0\x0cJXL \x0d\x0a......ftypjxl ', Flag to extract some directories (mentioned in the L<ExifTool tag name documentation|Image::ExifTool::TagNames>) as a block. Setting this to a value of 2 also prevents parsing the block to extract tags contained within. $VERSION = '1.07'; # convert C escape sequences, allowed in quoted text # (note: this only converts a few of them!) my %esc = ( a => "\a", b => "\b", f => "\f", n => "\n", r => "\r", t => "\t", '"' => '"', '\\' => '\\' ); $tok =~ s/\\(.)/$esc{$1}||'\\'.$1/egs; $VERSION = '1.80'; 6 => 'Pixel Shift', #IB (GFX100S) 0x1105 => { Name => 'PixelShiftShots', Writable => 'int16u' }, #IB 0x1106 => { Name => 'PixelShiftOffset', Writable => 'rational64s', Count => 2 }, #IB Mask => 0x0000000f, 0x0 => 'AF-M', 0x1 => 'AF-S', 0x2 => 'AF-C', Name => 'PreAF', Mask => 0x00f0, PrintConv => { 0 => 'Off', 1 => 'On', }, }, 0.3 => { 0.4 => { 0.5 => { 'jumd-type' => { Name => 'JUMDType', 'jumd-label' => { Name => 'JUMDLabel' }, 'jumd-flags' => { Name => 'JUMDFlags', PrintConv => { BITMASK => { 0 => 'Requestable', 1 => 'Label', 2 => 'ID', 3 => 'Signature', }}, }, 'jumd-id' => { Name => 'JUMDID', Description => 'JUMD ID' }, 'jumd-sig' => { Name => 'JUMDSignature', PrintConv => 'unpack "H*", $val' }, $et->HandleTag($tagTablePtr, 'jumd-type', substr($$dataPt, $pos, 16)); $et->HandleTag($tagTablePtr, 'jumd-flags', $flags); $et->HandleTag($tagTablePtr, 'jumd-label', $name); $et->HandleTag($tagTablePtr, 'jumd-id', Get32u($dataPt, $pos)); $et->HandleTag($tagTablePtr, 'jumd-sig', substr($$dataPt, $pos, 32)); # Returns: 1 return 1; $$et{IsJXL}) # Returns: 1 on success, 0 if this wasn't a valid JPEG XL file, -1 on write error my $raf = $$dirInfo{RAF}; my $outfile = $$dirInfo{OutFile}; my ($hdr, $buff); return 0 unless $raf->Read($hdr,12) == 12; if ($hdr eq "\0\0\0\x0cJXL \x0d\x0a\x87\x0a") { # JPEG XL in ISO BMFF container $$et{IsJXL} = 1; } elsif ($hdr =~ /^\xff\x0a/) { # JPEG XL codestream if ($outfile) { if ($$et{OPTIONS}{IgnoreMinorErrors}) { $et->Warn('Wrapped JXL codestream in ISO BMFF container'); } else { $et->Error('Will wrap JXL codestream in ISO BMFF container for writing',1); return 0; } $$et{IsJXL} = 2; my $buff = "\0\0\0\x0cJXL \x0d\x0a\x87\x0a\0\0\0\x14ftypjxl \0\0\0\0jxl "; # add metadata to empty ISO BMFF container $$dirInfo{RAF} = new File::RandomAccess(\$buff); } else { $et->Warn('JPEG XL codestream support is currently experimental',1); $et->SetFileType('JXL Codestream','image/jxl', 'jxl'); return ProcessJXLCodestream($et, \$hdr); } } else { return 0; } $raf->Seek(0,0) or $et->Error('Seek error'), return 0; $et->Warn('JPEG XL support is currently experimental',1); my $success = ProcessJP2($et, $dirInfo); if ($outfile and $success > 0 and $$et{IsJXL} == 2) { # attach the JXL codestream box to the ISO BMFF file $raf->Seek(0,2) or return -1; my $size = $raf->Tell(); $raf->Seek(0,0) or return -1; SetByteOrder('MM'); Write($outfile, Set32u($size + 8), 'jxlc') or return -1; while ($raf->Read($buff, 65536)) { Write($outfile, $buff) or return -1; } } return $success; And they are extracted by default from MacOS "._" files when reading # 100ns intervals since Jan 1, 1601 } elsif ($format eq 'vt_filetime') { # 'date' value inside a VT_VARIANT # 100ns intervals since Jan 1, 1601 # 0x357 int32u - 0=DNG, 3162=JPG (ref 23) 0x035b => { #IB Name => 'CorrelatedColorTemp', # (in Kelvin) Writable => 'int16u', }, 0x035c => { #IB Name => 'ColorTint', # (same units as Adobe is using) Writable => 'int16s', }, 0x035d => { #IB Name => 'WhitePoint', # (x/y) Writable => 'rational64u', Count => 2, }, $VERSION = '1.07'; 3 => 'IIQ L', # (now "L14", ref IB) 6 => 'IIQ Sv2', # (now "S14" for "IIQ 14 Smart" and "IIQ 14 Sensor+", ref IB) 8 => 'IIQ L16', #IB ("IIQ 16 Extended" and "IIQ 16 Large") $VERSION = '3.40'; 6 => 'RAW + JPEG/HEIF', 9 => 'Light', #JR ($$self{Model} =~ /^(SLT-|HV)/) or ($$self{Model} =~ /^(ILCE-|ILME-)/ and '0 1' => 'Standard', '0 2' => 'Fine', '0 3' => 'Extra Fine', '0 4' => 'Light', #JR '1 1' => 'RAW + Standard', '1 2' => 'RAW + Fine', '1 3' => 'RAW + Extra Fine', '1 4' => 'RAW + Light', #JR # 0x2032 - 0x2039: from July 2020 for ILCE-7SM3, ILCE-1, ILME-FX3 and newer 0x2032 => { Name => 'Shadows', Writable => 'int32s', PrintConv => '$val > 0 ? "+$val" : $val', PrintConvInv => '$val', }, 0x2033 => { Name => 'Highlights', Writable => 'int32s', PrintConv => '$val > 0 ? "+$val" : $val', PrintConvInv => '$val', }, 0x2034 => { Name => 'Fade', Writable => 'int32s', PrintConv => '$val > 0 ? "+$val" : $val', PrintConvInv => '$val', }, 0x2035 => { Name => 'SharpnessRange', Writable => 'int32s', PrintConv => '$val > 0 ? "+$val" : $val', PrintConvInv => '$val', }, 0x2036 => { Name => 'Clarity', Writable => 'int32s', PrintConv => '$val > 0 ? "+$val" : $val', PrintConvInv => '$val', }, 0x2037 => { Name => 'FocusFrameSize', Format => 'int16u', Count => '3', PrintConv => q{ my @a = split ' ', $val; return $a[2] ? sprintf('%3dx%3d', $a[0], $a[1]) : 'n/a'; }, PrintConvInv => '$val =~ /(\d+)x(\d+)/ ? "$1 $2 257" : "0 0 0"', }, 0x2039 => { #JR Name => 'JPEG-HEIFSwitch', # (name used in camera menus) Writable => 'int16u', PrintConv => { 0 => 'JPEG', 1 => 'HEIF', 65535 => 'n/a', }, }, # 0x31 (e) for ILCE-1/7SM3, ILME-FX3 37 => 'FL', 39 => 'IN', 40 => 'SH', Valid from July 2020 for ILCE-1/7SM3, ILME-FX3. Condition => '$$self{Model} =~ /^(ILCE-7SM3|ILME-FX3)/', Format => 'int8u[6]', PrintConv => 'unpack "H*", pack "C*", split " ", $val', }, 0x008a => { Name => 'InternalSerialNumber', #(NC) Condition => '$$self{Model} =~ /^(ILCE-1)/', 0x002a => [{ },{ Name => 'Quality2', Condition => '$$self{Model} =~ /^(ILCE-(1|7SM3)|ILME-FX3)\b/', PrintConv => { 1 => 'JPEG', 2 => 'RAW', 3 => 'RAW + JPEG', 4 => 'HEIF', 6 => 'RAW + HEIF', }, }], NOTES => 'E-mount cameras only.', NOTES => 'Valid for the ILCE-1/7SM3, ILME-FX3.', 'afareamode' => { 124 => '0.3', 177 => 0x33, 181 => 0xe, 189 => 0x0, 190 => 0x5, 311 => 0xf, 378 => 0x1205, 391 => [0xa,0x3a], 398 => 0x11, 399 => 0x10, 400 => 0x24, 411 => 0xb043, 435 => 0x17 }, 'afareapointsize' => { 124 => '0.4' }, 'afareazonesize' => { 124 => '0.5' }, 'clarity' => { 225 => 0x35, 226 => 0x3d, 411 => 0x2036, 468 => 'Clarity', 470 => 'Clarity' }, 'colortint' => { 310 => 0x35c }, 'correlatedcolortemp' => { 310 => 0x35b }, 'fade' => { 411 => 0x2034 }, 'highlights' => { 411 => 0x2033, 462 => 'Highlights' }, 'internalserialnumber' => { 62 => 0x96, 74 => 0x9, 125 => 0x10, 184 => 0x49dc, 287 => 0x18, 289 => 0x102, 308 => 0x500, 311 => 0x25, 326 => 0x4, 378 => 0x5, 429 => [0x7c,0xf0], 430 => 0x88, 431 => [0x88,0x8a] }, 'jpeg-heifswitch' => { 411 => 0x2039 }, 'pixelshiftoffset' => { 125 => 0x1106 }, 'pixelshiftshots' => { 125 => 0x1105 }, 'preaf' => { 124 => '0.2' }, 'shadows' => { 117 => 0xfe52, 411 => 0x2032, 462 => 'Shadows', 468 => 'Shadows', 470 => 'Shadows' }, 'sharpnessrange' => { 411 => 0x2035 }, 'whitepoint' => { 117 => 0x13e, 310 => 0x35d, 346 => 0x201, 490 => 'WhitePoint' }, 'focusframesize' => 1, 'jumdflags' => 1, 'jumdid' => 1, 'jumdlabel' => 1, 'jumdsignature' => 1, 'jumdtype' => 1, They contain a total of 24118 tags, with 15614 unique tag names. 0x1105 PixelShiftShots int16u 0x1106 PixelShiftOffset rational64s[2] 0.1 FocusMode2 int32u & 0x0f 0.2 PreAF int32u & 0xf0 0.3 AFAreaMode int32u & 0xf00 0.4 AFAreaPointSize int32u & 0xf000 0.5 AFAreaZoneSize int32u & 0xf0000 0x035b CorrelatedColorTemp int16u 0x035c ColorTint int16s 0x035d WhitePoint rational64u[2] 0x2032 Shadows int32s 0x2033 Highlights int32s 0x2034 Fade int32s 0x2035 SharpnessRange int32s 0x2036 Clarity int32s 0x2037 FocusFrameSize no 0x2039 JPEG-HEIFSwitch int16u Valid from July 2020 for ILCE-1/7SM3, ILME-FX3. 138 InternalSerialNumber int8u[6]~ E-mount cameras only. Valid for the ILCE-1/7SM3, ILME-FX3. 'jumd-flags' JUMDFlags no 'jumd-id' JUMDID no 'jumd-label' JUMDLabel no 'jumd-sig' JUMDSignature no 'jumd-type' JUMDType no And they are extracted by default from MacOS "._" files when reading JXL => 'Jpeg2000', Version: 12.24 [ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.24 [File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:12 12:43:44-04:00 [JUMBF, JUMBF, Image] jumd-type - JUMD Type: cacb-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai [JUMBF, JUMBF, Image] jumd-type - JUMD Type: cast-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cb.reuters_1 [JUMBF, JUMBF, Image] jumd-type - JUMD Type: caas-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.assertions [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: adobe.asset.info [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.location.broad [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.rights [JUMBF, JUMBF, Image] jumd-type - JUMD Type: cacb-####-####-######aa#####b## [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai [JUMBF, JUMBF, Image] jumd-type - JUMD Type: cast-####-####-######aa#####b## [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cb.reuters_# [JUMBF, JUMBF, Image] jumd-type - JUMD Type: caas-####-####-######aa#####b## [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.assertions [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-####-####-######aa#####b## [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: adobe.asset.info [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-####-####-######aa#####b## [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.location.broad [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-####-####-######aa#####b## [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable,_Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.rights [ExifTool, ExifTool, ExifTool] ExifToolVersion - ExifTool Version Number: 12.24 [File, System, Time] FileModifyDate - File Modification Date/Time: 2021:04:12 12:44:05-04:00 [File, System, Time] FileAccessDate - File Access Date/Time: 2021:04:12 12:44:05-04:00 [File, System, Time] FileInodeChangeDate - File Inode Change Date/Time: 2021:04:12 12:44:05-04:00 [JUMBF, JUMBF, Image] jumd-type - JUMD Type: cacb-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai [JUMBF, JUMBF, Image] jumd-type - JUMD Type: cast-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cb.reuters_1 [JUMBF, JUMBF, Image] jumd-type - JUMD Type: caas-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.assertions [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: adobe.asset.info [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.location.broad [JUMBF, JUMBF, Image] jumd-type - JUMD Type: json-0011-0010-800000aa00389b71 [JUMBF, JUMBF, Image] jumd-flags - JUMD Flags: Requestable, Label [JUMBF, JUMBF, Image] jumd-label - JUMD Label: cai.rights my $version = '12.24'; -- Generated by ExifTool 12.24 --
[]
CVE-2022-23935
74dbab1d2766d6422bb05b033ac6634bf8d1f582
https://github.com/exiftool/exiftool
[{'lang': 'en', 'value': 'lib/Image/ExifTool.pm in ExifTool before 12.38 mishandles a $file =~ /\\|$/ check, leading to command injection.'}]
7.6
7.8
2022-01-25T06:15Z
HIGH
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Update to 12.38
2021-12-20 09:20:55 -0500
74dbab1d
1,246
2
[ "Changes", "META.json", "META.yml", "README", "exiftool", "html/ExifTool.pdf", "html/Shift.pdf", "html/TagNames/CanonCustom.html", "html/TagNames/Nikon.html", "html/TagNames/XMP.html", "html/TagNames/index.html", "html/exiftool_pod.html", "html/exiftool_pod.pdf", "html/history.html", "html/index.html", "html/install.html", "lib/Image/ExifTool.pm", "lib/Image/ExifTool/CanonCustom.pm", "lib/Image/ExifTool/Nikon.pm", "lib/Image/ExifTool/OpenEXR.pm", "lib/Image/ExifTool/TagLookup.pm", "lib/Image/ExifTool/TagNames.pod", "lib/Image/ExifTool/XMP.pm", "perl-Image-ExifTool.spec", "pp_build_exe.args", "windows_exiftool" ]
HTML
{"Changes": {"lines_added": 11, "lines_deleted": 0}, "META.json": {"lines_added": 1, "lines_deleted": 1}, "META.yml": {"lines_added": 1, "lines_deleted": 1}, "README": {"lines_added": 2, "lines_deleted": 2}, "exiftool": {"lines_added": 6, "lines_deleted": 4}, "html/ExifTool.pdf": {"lines_added": 39, "lines_deleted": 39}, "html/Shift.pdf": {"lines_added": 3, "lines_deleted": 3}, "html/TagNames/CanonCustom.html": {"lines_added": 8, "lines_deleted": 3}, "html/TagNames/Nikon.html": {"lines_added": 85, "lines_deleted": 23}, "html/TagNames/XMP.html": {"lines_added": 3, "lines_deleted": 3}, "html/TagNames/index.html": {"lines_added": 2, "lines_deleted": 2}, "html/exiftool_pod.html": {"lines_added": 2, "lines_deleted": 2}, "html/exiftool_pod.pdf": {"lines_added": 46, "lines_deleted": 46}, "html/history.html": {"lines_added": 15, "lines_deleted": 3}, "html/index.html": {"lines_added": 6, "lines_deleted": 6}, "html/install.html": {"lines_added": 11, "lines_deleted": 11}, "lib/Image/ExifTool.pm": {"lines_added": 4, "lines_deleted": 3}, "lib/Image/ExifTool/CanonCustom.pm": {"lines_added": 12, "lines_deleted": 2}, "lib/Image/ExifTool/Nikon.pm": {"lines_added": 148, "lines_deleted": 15}, "lib/Image/ExifTool/OpenEXR.pm": {"lines_added": 4, "lines_deleted": 2}, "lib/Image/ExifTool/TagLookup.pm": {"lines_added": 4322, "lines_deleted": 4319}, "lib/Image/ExifTool/TagNames.pod": {"lines_added": 22, "lines_deleted": 2}, "lib/Image/ExifTool/XMP.pm": {"lines_added": 3, "lines_deleted": 3}, "perl-Image-ExifTool.spec": {"lines_added": 1, "lines_deleted": 1}, "pp_build_exe.args": {"lines_added": 4, "lines_deleted": 4}, "windows_exiftool": {"lines_added": 6, "lines_deleted": 4}}
diff --git a/Changes b/Changes index 5ff3f303..5d8ee4fc 100644 --- a/Changes +++ b/Changes @@ -5,10 +5,21 @@ ExifTool Version History RSS feed: https://exiftool.org/rss.xml Note: The most recent production release is Version 12.30. (Other versions are considered development releases, and are not uploaded to MetaCPAN.) +Dec. 20, 2021 - Version 12.38 + + - Decode a number of new tags for the Nikon Z9 (thanks Warren Hatch) + - Patched incorrect decoding of AEBShotCount for the Canon EOS 90D + - Patched EXR reader to support long tag names + - Patched security issue (thanks Joe Lothan) + - Fixed an incorrect tag ID for a new Nikon MakerNote tag (github #108) + - Fixed XMP-exif:GPSMeasureMode conversions to match EXIF + - Fixed problem where some namespaces may be undeclared in the -X output when + using the -struct option + Dec. 8, 2021 - Version 12.37 - Decode timed GPS from Vantrue S1 dashcam MP4 videos - Decode ColorData tags for the Canon EOS R3 (thanks LibRaw) - Decode more makernotes tags for Nikon Z cameras (thanks Warren Hatch) diff --git a/META.json b/META.json index 5e28b8d9..3a767ec2 100644 --- a/META.json +++ b/META.json @@ -45,8 +45,8 @@ "perl" : "5.004" } } }, "release_status" : "stable", - "version" : "12.37", + "version" : "12.38", "x_serialization_backend" : "JSON::PP version 4.02" } diff --git a/META.yml b/META.yml index 3fd8b685..20f3f911 100644 --- a/META.yml +++ b/META.yml @@ -26,7 +26,7 @@ recommends: IO::Uncompress::RawInflate: 0 POSIX::strptime: 0 Time::HiRes: 0 requires: perl: 5.004 -version: 12.37 +version: 12.38 x_serialization_backend: 'JSON::PP version 4.02' diff --git a/README b/README index dc8c1f7a..82db546a 100644 --- a/README +++ b/README @@ -105,12 +105,12 @@ the directory where you downloaded the ExifTool distribution package. Assuming, for example, you downloaded it to a folder called "Desktop" in your home directory, then you would type the following commands in a terminal window to extract and run ExifTool: cd ~/Desktop - gzip -dc Image-ExifTool-12.37.tar.gz | tar -xf - - cd Image-ExifTool-12.37 + gzip -dc Image-ExifTool-12.38.tar.gz | tar -xf - + cd Image-ExifTool-12.38 ./exiftool t/images/ExifTool.jpg Note: These commands extract meta information from one of the test images. To use one of your images instead, enter the full path name of your file in place of "t/images/ExifTool.jpg". diff --git a/exiftool b/exiftool index 72bb87b8..8a3f6c12 100755 --- a/exiftool +++ b/exiftool @@ -8,11 +8,11 @@ # (See html/history.html for revision history) #------------------------------------------------------------------------------ use strict; require 5.004; -my $version = '12.37'; +my $version = '12.38'; # add our 'lib' directory to the include list BEFORE 'use Image::ExifTool' BEGIN { # (undocumented -xpath option added in 11.91, must come before other options) my $exePath = @ARGV && lc($ARGV[0]) eq '-xpath' && shift() ? $^X : $0; @@ -1967,10 +1967,11 @@ sub GetImageInfo($$) if ($type eq 'gz') { $pipe = qq{gzip -dc "$file" |}; } else { $pipe = qq{bzip2 -dc "$file" |}; } + $$et{TRUST_PIPE} = 1; } } # evaluate -if expression for conditional processing if (@condition) { unless ($file eq '-' or $et->Exists($file)) { @@ -2237,16 +2238,17 @@ sub GetImageInfo($$) ($grp0, $grp1) = $et->GetGroup($tag); unless ($grp1) { next unless defined $forcePrint; $grp0 = $grp1 = 'Unknown'; } + # add groups from structure fields + AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; next if $groups{$grp1}; # include family 0 and 1 groups in URI except for internal tags # (this will put internal tags in the "XML" group on readback) $groups{$grp1} = $grp0; push @groups, $grp1; - AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; } foreach $grp1 (@groups) { my $grp = $groups{$grp1}; unless ($grp eq $grp1 and $grp =~ /^(ExifTool|File|Composite|Unknown)$/) { $grp .= "/$grp1"; @@ -5432,11 +5434,11 @@ with this command: exiftool -p test.fmt a.jpg b.jpg produces output like this: - -- Generated by ExifTool 12.37 -- + -- Generated by ExifTool 12.38 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end -- @@ -5714,11 +5716,11 @@ example, the following pairs of commands give the same result: exiftool test.jpg -W+ out.txt # equivalent -W option 4) Adding the B<-v> option to B<-W> sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using -B<-W+> with an output file I<FMT> that does not contain %t, $g, %s or %o.) +B<-W+> with an output file I<FMT> that does not contain %t, %g, %s or %o.) 5) Individual list items are stored in separate files when B<-W> is combined with B<-b>, but note that for separate files to be created %c or %C must be used in I<FMT> to give the files unique names. diff --git a/html/ExifTool.pdf b/html/ExifTool.pdf index 4d7d6ffa..5ed1be04 100644 --- a/html/ExifTool.pdf +++ b/html/ExifTool.pdf @@ -10,11 +10,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 1)Tj +( -- Image::ExifTool 12.38 -- 1)Tj /TT4 1 Tf 0 -1.6333 TD (EXIFTOOL\(1\) User Contributed Perl Documentation EXIFTOOL\(1\))Tj 0 -4.4 TD (N)Tj @@ -187,11 +187,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 2)Tj +( -- Image::ExifTool 12.38 -- 2)Tj /TT4 1 Tf 0 -1.6333 TD ( ARW r/w | F4A/V r/w | M4A/V r/w | PCD r | SWF r)Tj 0 -1.1 TD ( ASF r | FFF r/w | MACOS r | PCX r | THM r/w)Tj @@ -382,11 +382,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 3)Tj +( -- Image::ExifTool 12.38 -- 3)Tj /TT4 1 Tf 0 -1.6333 TD ( Exports nothing by default, but "ImageInfo" and all static methods may)Tj 0 -1.1 TD ( be exported with the ":Public" export list.)Tj @@ -617,11 +617,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 4)Tj +( -- Image::ExifTool 12.38 -- 4)Tj /TT4 1 Tf 0 -1.6333 TD ( are interpreted:)Tj 0 -2.2 TD ( ExifTool ref)Tj @@ -766,11 +766,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 5)Tj +( -- Image::ExifTool 12.38 -- 5)Tj /TT4 1 Tf 0 -1.6333 TD ( There will be 1:1 correspondence between the requested tags and)Tj 0 -1.1 TD ( the returned tag keys only if the "Duplicates" option is 0 and)Tj @@ -921,11 +921,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 6)Tj +( -- Image::ExifTool 12.38 -- 6)Tj /TT4 1 Tf 0 -1.6333 TD ( details about the encodings. By default, most returned values are)Tj 0 -1.1 TD ( encoded in UTF-8. For these, _)Tj @@ -1112,11 +1112,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 7)Tj +( -- Image::ExifTool 12.38 -- 7)Tj /TT4 1 Tf 0 -1.6333 TD ( name documentation\) as a block. Setting this to a value of 2)Tj 0 -1.1 TD ( also prevents parsing the block to extract tags contained)Tj @@ -1265,11 +1265,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 8)Tj +( -- Image::ExifTool 12.38 -- 8)Tj /TT4 1 Tf 0 -1.6333 TD ( Fallback internal IPTC character set to assume if IPTC)Tj 0 -1.1 TD ( information contains no CodedCharacterSet tag. Possible values)Tj @@ -1412,11 +1412,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 9)Tj +( -- Image::ExifTool 12.38 -- 9)Tj /TT4 1 Tf 0 -1.6333 TD ( format is different when copying tags with)Tj 0 -1.1 TD ( "SetNewValuesFromFile".)Tj @@ -1565,11 +1565,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 10)Tj +( -- Image::ExifTool 12.38 -- 10)Tj /TT4 1 Tf 0 -1.6333 TD ( stop parsing at the IDAT chunk of PNG images. \(By the PNG)Tj 0 -1.1 TD ( specification, metadata is allowed after IDAT, but ExifTool)Tj @@ -1718,11 +1718,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 11)Tj +( -- Image::ExifTool 12.38 -- 11)Tj /TT4 1 Tf 0 -2.7333 TD ( GeoSpeedRef)Tj 0 -1.1 TD ( Reference units for writing GPSSpeed when geotagging:)Tj @@ -1907,11 +1907,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 12)Tj +( -- Image::ExifTool 12.38 -- 12)Tj /TT4 1 Tf 0 -1.6333 TD ( ListJoin)Tj 0 -1.1 TD ( Separator used to join the PrintConv value of multi-item List-)Tj @@ -2052,11 +2052,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 13)Tj +( -- Image::ExifTool 12.38 -- 13)Tj /TT4 1 Tf 0 -1.6333 TD ( as UTC, causing conversion to local time when they are)Tj 0 -1.1 TD ( extracted and from local time when written. According to the)Tj @@ -2201,11 +2201,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 14)Tj +( -- Image::ExifTool 12.38 -- 14)Tj /TT4 1 Tf 0 -1.6333 TD ( undef.)Tj 0 -2.2 TD ( undef - Same as 0 for reading/writing, or 1 for copying)Tj @@ -2354,11 +2354,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 15)Tj +( -- Image::ExifTool 12.38 -- 15)Tj /TT4 1 Tf 0 -1.6333 TD ( normal tags, or via the API by calling)Tj 0 -1.1 TD ( "Options\('UserParam','PARAM'\)". Appending a hash tag \("#"\) to)Tj @@ -2539,11 +2539,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 16)Tj +( -- Image::ExifTool 12.38 -- 16)Tj /TT4 1 Tf 0 -1.6333 TD ( "ExtractInfo" takes exactly the same arguments as "ImageInfo". The)Tj 0 -1.1 TD ( only difference is that a list of tag keys is not returned if an)Tj @@ -2710,11 +2710,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 17)Tj +( -- Image::ExifTool 12.38 -- 17)Tj /TT4 1 Tf 0 -1.6333 TD ( To be clear, it is NOT necessary to call "ExtractInfo" or "ImageInfo")Tj 0 -1.1 TD ( before "WriteInfo". "WriteInfo" changes only metadata specified by)Tj @@ -2845,11 +2845,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 18)Tj +( -- Image::ExifTool 12.38 -- 18)Tj /TT4 1 Tf 0 -1.6333 TD ( G)Tj 1.8 0 TD (Ge)Tj @@ -3068,11 +3068,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 19)Tj +( -- Image::ExifTool 12.38 -- 19)Tj /TT4 1 Tf 0 -1.6333 TD ( values are same as the values returned by "ImageInfo" and "GetInfo" in)Tj 0 -1.1 TD ( the tag/value hash unless the PrintConv option is disabled.)Tj @@ -3211,11 +3211,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 20)Tj +( -- Image::ExifTool 12.38 -- 20)Tj /TT4 1 Tf 0 -1.6333 TD ( exist if the tag exists.)Tj 0 -2.2 TD ( S)Tj @@ -3368,11 +3368,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 21)Tj +( -- Image::ExifTool 12.38 -- 21)Tj /TT4 1 Tf 0 -1.6333 TD ( $exifTool->SetNewValue\('XMP:Flash'=>'{mode=on,fired=true,return=not}'\);)Tj 0 -2.2 TD ( \(See <https://exiftool.org/struct.html#Serialize> for a description of)Tj @@ -3515,11 +3515,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 22)Tj +( -- Image::ExifTool 12.38 -- 22)Tj /TT4 1 Tf 0 -1.6333 TD ( Treat flattened tags as 'unsafe'.)Tj 0 -2.2 TD ( NoShortcut)Tj @@ -3704,11 +3704,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 23)Tj +( -- Image::ExifTool 12.38 -- 23)Tj /TT4 1 Tf 0 -1.6333 TD ( G)Tj 1.8 0 TD (Ge)Tj @@ -3897,11 +3897,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 24)Tj +( -- Image::ExifTool 12.38 -- 24)Tj /TT4 1 Tf 0 -1.6333 TD ( more family 0, 1, 2 or 7 group names with optional leading family)Tj 0 -1.1 TD ( numbers, separated by colons \(eg. 'exif:iso'\). A leading '-')Tj @@ -4048,11 +4048,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 25)Tj +( -- Image::ExifTool 12.38 -- 25)Tj /TT4 1 Tf 0 -2.7333 TD ( If a preview image exists, it is not copied. The preview image)Tj 0 -1.1 TD ( must be transferred separately if desired, in a separate call to)Tj @@ -4301,11 +4301,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 26)Tj +( -- Image::ExifTool 12.38 -- 26)Tj /TT4 1 Tf 0 -2.7333 TD ( 1\) File name)Tj 0 -2.2 TD ( 2\) [optional] Base time if applying shift \(days before $^T\))Tj @@ -4480,11 +4480,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 27)Tj +( -- Image::ExifTool 12.38 -- 27)Tj /TT4 1 Tf 0 -1.6333 TD ( 1-N\) Groups in order of priority. If no groups are specified, the)Tj 0 -1.1 TD ( priorities are reset to the defaults.)Tj @@ -4693,11 +4693,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 28)Tj +( -- Image::ExifTool 12.38 -- 28)Tj /TT4 1 Tf 0 -2.7333 TD ( 1\) Tag key)Tj 0 -2.2 TD ( 2\) [optional] Group family number, or string of numbers separated)Tj @@ -4840,11 +4840,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 29)Tj +( -- Image::ExifTool 12.38 -- 29)Tj /TT4 1 Tf 0 -1.6333 TD ( "SaveFormat" option is used when extracting.)Tj 0 -2.2 TD ( Family 7 is used for tag ID's. The group names are the actual tag)Tj @@ -5065,11 +5065,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 30)Tj +( -- Image::ExifTool 12.38 -- 30)Tj /TT4 1 Tf 0 -1.6333 TD ( 0\) Tag key)Tj 0 -2.2 TD ( Return Value:)Tj @@ -5360,11 +5360,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 31)Tj +( -- Image::ExifTool 12.38 -- 31)Tj /TT4 1 Tf 0 -1.6333 TD ( Stim, Theora, Torrent, Trailer, UserParam, VCard, Vorbis, WTV, XML,)Tj 0 -1.1 TD ( XMP, ZIP)Tj @@ -5515,11 +5515,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 32)Tj +( -- Image::ExifTool 12.38 -- 32)Tj /TT4 1 Tf 0 -2.7333 TD ( Note: This function may also be called as an ExifTool member function)Tj 0 -1.1 TD ( to allow the HexTagIDs option to be set when retrieving family 7 group)Tj @@ -5770,11 +5770,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 33)Tj +( -- Image::ExifTool 12.38 -- 33)Tj /TT4 1 Tf 0 -2.7333 TD ( my $writable = Image::ExifTool::CanWrite\($filename\);)Tj 0 -2.2 TD ( Inputs:)Tj @@ -6027,11 +6027,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 34)Tj +( -- Image::ExifTool 12.38 -- 34)Tj /TT4 1 Tf 0 -1.6333 TD ( option. By default, "CharsetFileName" is not defined, and file)Tj 0 -1.1 TD ( names passed to ExifTool are used directly in calls to the system)Tj @@ -6240,11 +6240,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 35)Tj +( -- Image::ExifTool 12.38 -- 35)Tj /TT4 1 Tf 0 -1.6333 TD ( is issued and the string is not converted if an ISO 2022 shift code is)Tj 0 -1.1 TD ( encountered. See <http://www.iptc.org/IIM/> for the official IPTC)Tj @@ -6419,11 +6419,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- Image::ExifTool 12.37 -- 36)Tj +( -- Image::ExifTool 12.38 -- 36)Tj /TT4 1 Tf 0 -1.6333 TD ( P)Tj 1.8 0 TD (PD)Tj @@ -7318,12 +7318,12 @@ endobj /MediaBox [0 0 595 842] >> endobj 121 0 obj << -/CreationDate (D:20211208084216-05'00') -/ModDate (D:20211208084216-05'00') +/CreationDate (D:20211220091758-05'00') +/ModDate (D:20211220091758-05'00') /Producer (Apple pstopdf) >> endobj 122 0 obj << @@ -7460,10 +7460,10 @@ xref trailer << /Size 123 /Root 122 0 R /Info 121 0 R -/ID [<fce7540a206eb2b24772d6bc057b8426><fce7540a206eb2b24772d6bc057b8426>] +/ID [<045a477e90d5dc19d250e85fec576a29><045a477e90d5dc19d250e85fec576a29>] >> startxref 175282 %%EOF diff --git a/html/Shift.pdf b/html/Shift.pdf index 7dced9ae..98c587f5 100644 --- a/html/Shift.pdf +++ b/html/Shift.pdf @@ -591,12 +591,12 @@ endobj /MediaBox [0 0 595 842] >> endobj 16 0 obj << -/CreationDate (D:20211208084216-05'00') -/ModDate (D:20211208084216-05'00') +/CreationDate (D:20211220091759-05'00') +/ModDate (D:20211220091759-05'00') /Producer (Apple pstopdf) >> endobj 17 0 obj << @@ -628,10 +628,10 @@ xref trailer << /Size 18 /Root 17 0 R /Info 16 0 R -/ID [<6dd9b26ea01595e9aa96e9186dc21ed7><6dd9b26ea01595e9aa96e9186dc21ed7>] +/ID [<8d6bced53aaea0d921a7e98a82a7dcca><8d6bced53aaea0d921a7e98a82a7dcca>] >> startxref 11800 %%EOF diff --git a/html/TagNames/CanonCustom.html b/html/TagNames/CanonCustom.html index cb69cb1e..0742d7b0 100644 --- a/html/TagNames/CanonCustom.html +++ b/html/TagNames/CanonCustom.html @@ -1350,16 +1350,21 @@ well as newer tags and values added by later models.</p> <tr class=b> <td title='0x0106 = 262'>0x0106</td> <td>AEBShotCount <br>AEBShotCount</td> <td class=c>int32s<br>int32s[2]</td> -<td><span class=s><span class=n>(one value for some models...)</span> +<td><span class=s><span class=n>(EOS 90D)</span> + <br>2 = 2 shots + <br>3 = 3 shots + <br>5 = 5 shots + <br>7 = 7 shots + <br><span class=n>(other models storing a single value)</span> <br>0 = 3 shots <br>1 = 2 shots <br>2 = 5 shots <br>3 = 7 shots - <br><span class=n>(two values for others)</span> + <br><span class=n>(models storing two values)</span> <br>&#39;2 1&#39; = 2 shots <br>&#39;3 0&#39; = 3 shots <br>&#39;5 2&#39; = 5 shots <br>&#39;7 3&#39; = 7 shots</span></td></tr> <tr> @@ -2211,9 +2216,9 @@ well as newer tags and values added by later models.</p> <br>1 = Disable</span></td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Feb 3, 2021</i> +<br><i>Last revised Dec 20, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/Nikon.html b/html/TagNames/Nikon.html index 86a871fe..aca4f18f 100644 --- a/html/TagNames/Nikon.html +++ b/html/TagNames/Nikon.html @@ -429,13 +429,14 @@ causes the other information to be re-encrypted with the new key)</span></span>< <br>ShotInfoD5 <br>ShotInfoD500 <br>ShotInfoD6 <br>ShotInfoD610 <br>ShotInfoZ7_2 + <br>ShotInfoZ9 <br>ShotInfo02xx <br>ShotInfoUnknown</td> -<td class=c>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-</td> +<td class=c>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-</td> <td>--&gt; <a href='Nikon.html#ShotInfoD40'>Nikon ShotInfoD40 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD80'>Nikon ShotInfoD80 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD90'>Nikon ShotInfoD90 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD3a'>Nikon ShotInfoD3a Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD3b'>Nikon ShotInfoD3b Tags</a> @@ -457,10 +458,11 @@ causes the other information to be re-encrypted with the new key)</span></span>< <br>--&gt; <a href='Nikon.html#ShotInfoD500'>Nikon ShotInfoD500 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD500'>Nikon ShotInfoD500 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD6'>Nikon ShotInfoD6 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoD610'>Nikon ShotInfoD610 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfoZ7_2'>Nikon ShotInfoZ7_2 Tags</a> + <br>--&gt; <a href='Nikon.html#ShotInfoZ9'>Nikon ShotInfoZ9 Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfo'>Nikon ShotInfo Tags</a> <br>--&gt; <a href='Nikon.html#ShotInfo'>Nikon ShotInfo Tags</a></td></tr> <tr> <td title='0x0092 = 146'>0x0092</td> <td>HueAdjustment</td> @@ -468,22 +470,11 @@ causes the other information to be re-encrypted with the new key)</span></span>< <td>&nbsp;</td></tr> <tr class=b> <td title='0x0093 = 147'>0x0093</td> <td>NEFCompression</td> <td class=c>int16u</td> -<td><table class=cols><tr> - <td>1 = Lossy (type 1) - <br>2 = Uncompressed - <br>3 = Lossless - <br>4 = Lossy (type 2) - <br>5 = Striped packed 12 bits - <br>6 = Uncompressed (reduced to 12 bit) - <br>7 = Unpacked 12 bits - <br>8 = Small - <br>9 = Packed 12 bits - <br>10 = Packed 14 bits</td></tr></table> -</td></tr> +<td>--&gt; <a href='Nikon.html#NEFCompression'>Nikon NEFCompression Values</a></td></tr> <tr> <td title='0x0094 = 148'>0x0094</td> <td>SaturationAdj</td> <td class=c>int16s</td> <td>&nbsp;</td></tr> @@ -813,10 +804,29 @@ edit versions, otherwise this is extracted as a binary data block)</span> <br>&#39;12 0 0 0&#39; = 12 <br>&#39;14 0 0 0&#39; = 14 <br>&#39;16 16 16 0&#39; = 16 x 3</span></td></tr> </table></td></tr></table></blockquote> +<h2><a name='NEFCompression'>Nikon NEFCompression Values</a></h2> +<blockquote> +<table class=frame><tr><td> +<table class='inner sep' cellspacing=1> +<tr class=h><th>Value</th><th>NEFCompression</th><th>Value</th><th>NEFCompression</th></tr> +<tr><td class=r>1</td><td>= Lossy (type 1)</td> +<td class='r b'>7</td><td class=b>= Unpacked 12 bits</td> +</tr><tr><td class=r>2</td><td>= Uncompressed</td> +<td class='r b'>8</td><td class=b>= Small</td> +</tr><tr><td class=r>3</td><td>= Lossless</td> +<td class='r b'>9</td><td class=b>= Packed 12 bits</td> +</tr><tr><td class=r>4</td><td>= Lossy (type 2)</td> +<td class='r b'>10</td><td class=b>= Packed 14 bits</td> +</tr><tr><td class=r>5</td><td>= Striped packed 12 bits</td> +<td class='r b'>13</td><td class=b>= High Efficiency</td> +</tr><tr><td class=r>6</td><td>= Uncompressed (reduced to 12 bit)</td> +<td class='r b'>14</td><td class=b>= High Efficiency*</td> +</tr></table></td></tr></table></blockquote> + <h2><a name='PreviewIFD'>Nikon PreviewIFD Tags</a></h2> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Tag&nbsp;ID</th><th>Tag Name</th> @@ -1701,10 +1711,28 @@ FaceDetectFrameSize)</span></span></td></tr> <td>Location</td> <td class=c>undef[70]</td> <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> +<h2><a name='MakerNotes0x51'>Nikon MakerNotes0x51 Tags</a></h2> +<blockquote> +<table class=frame><tr><td> +<table class=inner cellspacing=1> +<tr class=h><th>Index1</th><th>Tag Name</th> +<th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> +<tr> +<td class=r title='0 = 0x0'>0</td> +<td>FirmwareVersion</td> +<td class=c>no</td> +<td>&nbsp;</td></tr> +<tr class=b> +<td class=r title='10 = 0xa'>10</td> +<td>NEFCompression</td> +<td class=c>int16u[0.5]</td> +<td>--&gt; <a href='Nikon.html#NEFCompression'>Nikon NEFCompression Values</a></td></tr> +</table></td></tr></table></blockquote> + <h2><a name='AFInfo'>Nikon AFInfo Tags</a></h2> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Index1</th><th>Tag Name</th> @@ -3994,48 +4022,82 @@ firmware 1.01b.</p> <td>MovieVignetteControlSameAsPhoto?</td> <td class=c>int8u</td> <td><span class=s>0 = No <br>1 = Yes</span></td></tr> <tr class=b> +<td class=r title='577 = 0x241'>577</td> +<td>MovieDiffractionCompensation?</td> +<td class=c>int8u</td> +<td><span class=s>0 = Off + <br>1 = On</span></td></tr> +<tr> <td class=r title='578 = 0x242'>578</td> <td>MovieAutoDistortionControl?</td> <td class=c>int8u</td> <td><span class=s>0 = Off <br>1 = On</span></td></tr> -<tr> +<tr class=b> <td class=r title='584 = 0x248'>584</td> <td>MovieFocusMode?</td> <td class=c>int8u</td> <td><span class=s>0 = Manual <br>1 = AF-S <br>2 = AF-C <br>4 = AF-F</span></td></tr> -<tr class=b> +<tr> <td class=r title='590 = 0x24e'>590</td> <td>MovieVibrationReduction?</td> <td class=c>int8u</td> <td><span class=s>0 = Off <br>1 = On (Normal) <br>2 = On (Sport)</span></td></tr> -<tr> +<tr class=b> <td class=r title='591 = 0x24f'>591</td> <td>MovieVibrationReductionSameAsPhoto?</td> <td class=c>int8u</td> <td><span class=s>0 = No <br>1 = Yes</span></td></tr> -<tr class=b> +<tr> <td class=r title='858 = 0x35a'>858</td> <td>HDMIOutputN-Log?</td> <td class=c>int8u</td> <td><span class=s>0 = Off <br>1 = On</span></td></tr> +</table></td></tr></table></blockquote> + +<h2><a name='ShotInfoZ9'>Nikon ShotInfoZ9 Tags</a></h2> +<p>These tags are extracted from encrypted data in images from the Z9.</p> +<blockquote> +<table class=frame><tr><td> +<table class=inner cellspacing=1> +<tr class=h><th>Index</th><th>Tag Name</th> +<th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> <tr> -<td class=r title='5771 = 0x168b'>5771</td> -<td>MovieDiffrationCompensation?</td> -<td class=c>int8u</td> -<td><span class=s>0 = Off - <br>1 = On</span></td></tr> +<td class=r title='0 = 0x0'>0</td> +<td>ShotInfoVersion</td> +<td class=c>no</td> +<td>&nbsp;</td></tr> +<tr class=b> +<td class=r title='4 = 0x4'>4</td> +<td>FirmwareVersion</td> +<td class=c>no</td> +<td>&nbsp;</td></tr> +<tr> +<td class=r title='60139 = 0xeaeb'>60139</td> +<td>RollAngle</td> +<td class=c>fixed32u</td> +<td><span class=s><span class=n>(converted to degrees of clockwise camera roll)</span></span></td></tr> +<tr class=b> +<td class=r title='60143 = 0xeaef'>60143</td> +<td>PitchAngle</td> +<td class=c>fixed32u</td> +<td><span class=s><span class=n>(converted to degrees of upward camera tilt)</span></span></td></tr> +<tr> +<td class=r title='60147 = 0xeaf3'>60147</td> +<td>YawAngle</td> +<td class=c>fixed32u</td> +<td><span class=s><span class=n>(the camera yaw angle when shooting in portrait orientation)</span></span></td></tr> </table></td></tr></table></blockquote> <h2><a name='ShotInfo'>Nikon ShotInfo Tags</a></h2> <p>This information is encrypted for ShotInfoVersion 02xx, and some tags are only valid for specific models.</p> @@ -7947,9 +8009,9 @@ used to specify the lens for ExifTool to choose in these cases (see the </tr><tr><td>'FF 40 2D 80 2C 40 4B 06'</td><td>= Sigma 18-200mm F3.5-6.3 DC</td> </tr></table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Dec 8, 2021</i> +<br><i>Last revised Dec 20, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/XMP.html b/html/TagNames/XMP.html index 3a582f45..3617082e 100644 --- a/html/TagNames/XMP.html +++ b/html/TagNames/XMP.html @@ -11720,12 +11720,12 @@ for the specification.</p> <td class=c>string</td> <td>&nbsp;</td></tr> <tr class=b> <td>GPSMeasureMode</td> <td class=c>integer</td> -<td><span class=s>2 = 2-Dimensional - <br>3 = 3-Dimensional</span></td></tr> +<td><span class=s>2 = 2-Dimensional Measurement + <br>3 = 3-Dimensional Measurement</span></td></tr> <tr> <td>GPSProcessingMethod</td> <td class=c>string</td> <td>&nbsp;</td></tr> <tr class=b> @@ -19417,9 +19417,9 @@ XMP module for convenience. (see <a href="http://www.w3.org/TR/SVG11/">http://w <td>&nbsp;</td></tr> </table></td></tr></table></blockquote> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) -<br><i>Last revised Dec 8, 2021</i> +<br><i>Last revised Dec 20, 2021</i> <p class=lf><a href='index.html'>&lt;-- ExifTool Tag Names</a></p> </body> </html> diff --git a/html/TagNames/index.html b/html/TagNames/index.html index 63780151..da07cd97 100644 --- a/html/TagNames/index.html +++ b/html/TagNames/index.html @@ -8,11 +8,11 @@ </head> <body> <h2 class=top>ExifTool Tag Names</h2> <p> The tables listed below give the names of all tags recognized by ExifTool. -They contain a total of 25513 tags, with 16386 unique tag names. +They contain a total of 25521 tags, with 16386 unique tag names. </p> <blockquote> <table width='100%' class=frame><tr><td> <table width='100%' class=inner cellspacing=1><tr class=h> <th colspan=6><span class=l>Tag Table Index</span></th></tr> @@ -235,9 +235,9 @@ as accurate and complete as possible, and feed any new discoveries back to ExifTool. A big thanks to everyone who has helped with this so far!)</i> </p> <hr> (This document generated automatically by Image::ExifTool::BuildTagLookup) <br><i>Created Feb 15, 2005</i> -<br><i>Last revised Dec 8, 2021</i> +<br><i>Last revised Dec 20, 2021</i> <p class=lf><a href='../index.html'>&lt;-- Back to ExifTool home page</a></p> </body> </html> diff --git a/html/exiftool_pod.html b/html/exiftool_pod.html index 8871a870..856f7640 100644 --- a/html/exiftool_pod.html +++ b/html/exiftool_pod.html @@ -686,11 +686,11 @@ <pre><code> exiftool -p test.fmt a.jpg b.jpg</code></pre> <p>produces output like this:</p> -<pre><code> -- Generated by ExifTool 12.37 -- +<pre><code> -- Generated by ExifTool 12.38 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end --</code></pre> @@ -871,11 +871,11 @@ # append to existing text file exiftool test.jpg &gt;&gt; out.txt # shell redirection exiftool test.jpg -W+ out.txt # equivalent -W option</code></pre> -<p>4) Adding the <b>-v</b> option to <b>-W</b> sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using <b>-W+</b> with an output file <i>FMT</i> that does not contain %t, $g, %s or %o.)</p> +<p>4) Adding the <b>-v</b> option to <b>-W</b> sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using <b>-W+</b> with an output file <i>FMT</i> that does not contain %t, %g, %s or %o.)</p> <p>5) Individual list items are stored in separate files when <b>-W</b> is combined with <b>-b</b>, but note that for separate files to be created %c or %C must be used in <i>FMT</i> to give the files unique names.</p> </dd> <dt id="Wext-EXT---Wext-EXT--tagOutExt"><b>-Wext</b> <i>EXT</i>, <b>--Wext</b> <i>EXT</i> (<b>-tagOutExt</b>)</dt> diff --git a/html/exiftool_pod.pdf b/html/exiftool_pod.pdf index 3fad6a35..63ac5e82 100644 --- a/html/exiftool_pod.pdf +++ b/html/exiftool_pod.pdf @@ -10,11 +10,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 1)Tj +( -- ExifTool 12.38 -- 1)Tj /TT4 1 Tf 0 -1.6333 TD (EXIFTOOL\(1\) User Contributed Perl Documentation EXIFTOOL\(1\))Tj 0 -4.4 TD (N)Tj @@ -635,11 +635,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 2)Tj +( -- ExifTool 12.38 -- 2)Tj /TT4 1 Tf 0 -1.6333 TD ( AVIF r/w | FLA r | MEF r/w | PDF r/w | TORRENT r)Tj 0 -1.1 TD ( AZW r | FLAC r | MIE r/w/ | PEF r/w | TTC r)Tj @@ -832,11 +832,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 3)Tj +( -- ExifTool 12.38 -- 3)Tj /TT4 1 Tf 0 -1.6333 TD ( -c FMT \(-coordFormat\) Set format for GPS coordinates)Tj 0 -1.1 TD ( -charset [[TYPE=]CHARSET] Specify encoding for special characters)Tj @@ -989,11 +989,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 4)Tj +( -- ExifTool 12.38 -- 4)Tj /TT4 1 Tf 0 -1.6333 TD ( -geotag TRKFILE Geotag images from specified GPS log)Tj 0 -1.1 TD ( -globalTimeShift SHIFT Shift all formatted date/time values)Tj @@ -1280,11 +1280,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 5)Tj +( -- ExifTool 12.38 -- 5)Tj /TT4 1 Tf 0 -1.6333 TD ( note 4 below\). Instead, individual tags may be recovered using)Tj 0 -1.1 TD ( the -)Tj @@ -1615,11 +1615,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 6)Tj +( -- ExifTool 12.38 -- 6)Tj /TT4 1 Tf 0 -1.6333 TD ( information it expects to find in the maker notes.)Tj 0 -2.2 TD ( 3\) Changes to PDF files by ExifTool are reversible \(by deleting)Tj @@ -1996,11 +1996,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 7)Tj +( -- ExifTool 12.38 -- 7)Tj /TT4 1 Tf 0 -1.6333 TD ( _)Tj 7.2 0 TD (S_)Tj @@ -2541,11 +2541,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 8)Tj +( -- ExifTool 12.38 -- 8)Tj /TT4 1 Tf 0 -1.6333 TD ( order One, Two, Three then Four with this command:)Tj 0 -2.2 TD ( exiftool -One=1 -tagsFromFile s.jpg -Two -Four=4 -Three d.jpg)Tj @@ -3034,11 +3034,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 9)Tj +( -- ExifTool 12.38 -- 9)Tj /TT4 1 Tf 0 -1.6333 TD ( Output information in the form of exiftool arguments, suitable for)Tj 0 -1.1 TD ( use with the -)Tj @@ -3447,11 +3447,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 10)Tj +( -- ExifTool 12.38 -- 10)Tj /TT4 1 Tf 0 -1.6333 TD ( Valid _)Tj 10.8 0 TD (C_)Tj @@ -3728,11 +3728,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 11)Tj +( -- ExifTool 12.38 -- 11)Tj /TT4 1 Tf 0 -1.6333 TD ( exiftool -csv=a.csv dir)Tj 0 -2.2 TD ( Empty values are ignored when importing \(unless the -)Tj @@ -4087,11 +4087,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 12)Tj +( -- ExifTool 12.38 -- 12)Tj /TT4 1 Tf 0 -1.6333 TD ( Show tag ID number in decimal when extracting information.)Tj 0 -2.2 TD ( -)Tj @@ -4764,11 +4764,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 13)Tj +( -- ExifTool 12.38 -- 13)Tj /TT4 1 Tf 0 -1.6333 TD ( group, or -)Tj 13.2 0 TD (-G)Tj @@ -5233,11 +5233,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 14)Tj +( -- ExifTool 12.38 -- 14)Tj /TT4 1 Tf 0 -1.6333 TD ( welcome to help improve this by submitting their own translations.)Tj 0 -1.1 TD ( To submit a translation, follow these steps \(you must have Perl)Tj @@ -5438,11 +5438,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 15)Tj +( -- ExifTool 12.38 -- 15)Tj /TT4 1 Tf 0 -1.6333 TD ( -)Tj 4.2 0 TD (-p)Tj @@ -5555,11 +5555,11 @@ T* T* ( exiftool -p test.fmt a.jpg b.jpg)Tj T* ( produces output like this:)Tj T* -( -- Generated by ExifTool 12.37 --)Tj +( -- Generated by ExifTool 12.38 --)Tj 0 -1.1 TD ( File: a.jpg - 2003:10:31 15:44:19)Tj T* ( \(f/5.6, 1/60s, ISO 100\))Tj T* @@ -5785,11 +5785,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 16)Tj +( -- ExifTool 12.38 -- 16)Tj /TT4 1 Tf 0 -1.6333 TD ( eval\('$array=' . `exiftool -php -q image.jpg`\);)Tj 0 -1.1 TD ( print_r\($array\);)Tj @@ -6278,11 +6278,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 17)Tj +( -- ExifTool 12.38 -- 17)Tj /TT4 1 Tf 0 -1.6333 TD ( -)Tj 4.2 0 TD (-T)Tj @@ -6647,11 +6647,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 18)Tj +( -- ExifTool 12.38 -- 18)Tj /TT4 1 Tf 0 -1.6333 TD ( A substring of the original file name, directory or extension may)Tj 0 -1.1 TD ( be taken by specifying a field width immediately following the '%')Tj @@ -6796,11 +6796,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 19)Tj +( -- ExifTool 12.38 -- 19)Tj /TT4 1 Tf 0 -1.6333 TD ( alphabetical base \(see example H above\). Also, %c and %C may be)Tj 0 -1.1 TD ( modified by 'n' to count using natural numbers starting from 1,)Tj @@ -6985,11 +6985,11 @@ T* 0.6 0 TD (M_)Tj 0.6 0 TD (T that does not)Tj -35.4 -1.1 TD -( contain %t, $g, %s or %o.\))Tj +( contain %t, %g, %s or %o.\))Tj 0 -2.2 TD ( 5\) Individual list items are stored in separate files when -)Tj 42.6 0 TD (-W)Tj 0.6 0 TD @@ -7285,11 +7285,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 20)Tj +( -- ExifTool 12.38 -- 20)Tj /TT4 1 Tf 0 -1.6333 TD ( By default, -)Tj 14.4 0 TD (-X)Tj @@ -7810,11 +7810,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 21)Tj +( -- ExifTool 12.38 -- 21)Tj /TT4 1 Tf 0 -1.6333 TD ( exiftool -ext "*" --ext xml DIR # process all but XML files)Tj 0 -1.1 TD ( exiftool -ext "*" --ext . DIR # all but those with no ext)Tj @@ -8353,11 +8353,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 22)Tj +( -- ExifTool 12.38 -- 22)Tj /TT4 1 Tf 0 -2.7333 TD ( -)Tj 4.2 0 TD (-i)Tj @@ -8702,11 +8702,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 23)Tj +( -- ExifTool 12.38 -- 23)Tj /TT4 1 Tf 0 -2.7333 TD ( 4\) The condition may only test tags from the file being processed.)Tj 0 -1.1 TD ( To process one file based on tags from another, two steps are)Tj @@ -9173,11 +9173,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 24)Tj +( -- ExifTool 12.38 -- 24)Tj /TT4 1 Tf 0 -1.6333 TD ( image. Caution: This option should only be used if you already)Tj 0 -1.1 TD ( have separate backup copies of your image files. The overwrite is)Tj @@ -9768,11 +9768,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 25)Tj +( -- ExifTool 12.38 -- 25)Tj /TT4 1 Tf 0 -2.7333 TD ( -)Tj 4.2 0 TD (-r)Tj @@ -10157,11 +10157,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 26)Tj +( -- ExifTool 12.38 -- 26)Tj /TT4 1 Tf 0 -1.6333 TD ( character. _)Tj 14.4 0 TD (A_)Tj @@ -10800,11 +10800,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 27)Tj +( -- ExifTool 12.38 -- 27)Tj /TT4 1 Tf 0 -2.7333 TD ( _)Tj 4.2 0 TD (S_)Tj @@ -11143,11 +11143,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 28)Tj +( -- ExifTool 12.38 -- 28)Tj /TT4 1 Tf 0 -1.6333 TD ( exiftool -globalTimeShift -1 -time:all a.jpg)Tj 0 -2.2 TD ( # set the file name from the shifted CreateDate \(-1 day\) for)Tj @@ -11712,11 +11712,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 29)Tj +( -- ExifTool 12.38 -- 29)Tj /TT4 1 Tf 0 -1.6333 TD ( commands. The _)Tj 16.2 0 TD (C_)Tj @@ -12415,11 +12415,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 30)Tj +( -- ExifTool 12.38 -- 30)Tj /TT4 1 Tf 0 -1.6333 TD ( A _)Tj 8.4 0 TD (F_)Tj @@ -12984,11 +12984,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 31)Tj +( -- ExifTool 12.38 -- 31)Tj /TT4 1 Tf 0 -1.6333 TD ( to the -)Tj 11.4 0 TD (-a)Tj @@ -13255,11 +13255,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 32)Tj +( -- ExifTool 12.38 -- 32)Tj /TT4 1 Tf 0 -1.6333 TD ( list items when writing to a list-type tag.)Tj 0 -2.2 TD ( An optional flag argument may be set to 1 to cause "NoDups" to set $_)Tj @@ -13670,11 +13670,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 33)Tj +( -- ExifTool 12.38 -- 33)Tj /TT4 1 Tf 0 -2.7333 TD ( 3\) On Windows if the file has Unicode characters in its name, and a\))Tj 0 -1.1 TD ( the -)Tj @@ -13947,11 +13947,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 34)Tj +( -- ExifTool 12.38 -- 34)Tj /TT4 1 Tf 0 -1.6333 TD ( image IFD\).)Tj 0 -2.2 TD ( exiftool '-*resolution*' image.jpg)Tj @@ -14114,11 +14114,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 35)Tj +( -- ExifTool 12.38 -- 35)Tj /TT4 1 Tf 0 -1.6333 TD ( escaping to input special characters.)Tj 0 -2.2 TD ( exiftool -all= dst.jpg)Tj @@ -14251,11 +14251,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 36)Tj +( -- ExifTool 12.38 -- 36)Tj /TT4 1 Tf 0 -2.7333 TD ( exiftool '-ICC_Profile<=%d%f.icc' image.jpg)Tj 0 -1.1 TD ( Write ICC_Profile to an image from a ".icc" file of the same name.)Tj @@ -14446,11 +14446,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 37)Tj +( -- ExifTool 12.38 -- 37)Tj /TT4 1 Tf 0 -1.6333 TD ( Copy all possible information from "src.jpg" and write in XMP)Tj 0 -1.1 TD ( format to "dst.jpg".)Tj @@ -14695,11 +14695,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 38)Tj +( -- ExifTool 12.38 -- 38)Tj /TT4 1 Tf 0 -1.6333 TD ( within a date format string, an extra '%' must be added to pass these)Tj 0 -1.1 TD ( codes through the date/time parser. \(And further note that in a)Tj @@ -14874,11 +14874,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 39)Tj +( -- ExifTool 12.38 -- 39)Tj /TT4 1 Tf 0 -1.6333 TD ( which were 20 seconds ahead of GPS.)Tj 0 -2.2 TD ( exiftool -geotag a.log -geosync=1.jpg -geosync=2.jpg dir)Tj @@ -15133,11 +15133,11 @@ BT 10 0 0 10 29 806.3333 Tm 0 g /GS1 gs 0 Tc 0 Tw -( -- ExifTool 12.37 -- 40)Tj +( -- ExifTool 12.38 -- 40)Tj /TT4 1 Tf 0 -2.7333 TD (A)Tj 0 0 TD (AU)Tj @@ -15308,11 +15308,11 @@ BT 0.6 0 TD (t_)Tj 0.6 0 TD (s\(3pm\), Image::ExifTool::Shift.pl)Tj -19.2 -4.4 TD -(perl v5.18.4 2021-12-08 EXIFTOOL\(1\))Tj +(perl v5.18.4 2021-12-20 EXIFTOOL\(1\))Tj ET endstream endobj 128 0 obj << @@ -15776,12 +15776,12 @@ endobj /MediaBox [0 0 595 842] >> endobj 133 0 obj << -/CreationDate (D:20211208084215-05'00') -/ModDate (D:20211208084215-05'00') +/CreationDate (D:20211220091758-05'00') +/ModDate (D:20211220091758-05'00') /Producer (Apple pstopdf) >> endobj 134 0 obj << @@ -15930,10 +15930,10 @@ xref trailer << /Size 135 /Root 134 0 R /Info 133 0 R -/ID [<e7d8a9c31bc587c7a180529b93797d8a><e7d8a9c31bc587c7a180529b93797d8a>] +/ID [<d539a0bca295c908e8eb624683f14b7e><d539a0bca295c908e8eb624683f14b7e>] >> startxref 269529 %%EOF diff --git a/html/history.html b/html/history.html index f1708061..51623423 100644 --- a/html/history.html +++ b/html/history.html @@ -15,24 +15,36 @@ considered development releases, and are not uploaded to <a href="https://metacpan.org/release/Image-ExifTool">MetaCPAN</a>.)</p> <!-- Use line width of 80 --> <!-- *********************************************************************** --> +<a name='v12.38'><b>Dec. 20, 2021 - Version 12.38</b></a> +<ul> +<li>Decode a number of new tags for the Nikon Z9 (thanks Warren Hatch) +<li>Patched incorrect decoding of AEBShotCount for the Canon EOS 90D +<li>Patched EXR reader to support long tag names +<li>Patched security issue (thanks Joe Lothan) +<li>Fixed an incorrect tag ID for a new Nikon MakerNote tag (github #108) +<li>Fixed XMP-exif:GPSMeasureMode conversions to match EXIF +<li>Fixed problem where some namespaces may be undeclared in the -X output when + using the -struct option +</ul> + <a name='v12.37'><b>Dec. 8, 2021 - Version 12.37</b></a> <ul> <li>Decode timed GPS from Vantrue S1 dashcam MP4 videos <li>Decode ColorData tags for the Canon EOS R3 (thanks LibRaw) <li>Decode more makernotes tags for Nikon Z cameras (thanks Warren Hatch) <li>Extract TransparentColor from GIF images <li>Improved parsing of input time values for GPSTimeStamp to properly handle a "." separator -<li>Improved warning when incorrectly using "<" instead of "=" to write FileName - or Directory with a format string +<li>Improved warning when incorrectly using "<" instead of "=" to assign a tag + value <li>Shortened a few of the new obscenely-long XMP-crs tag names <li>Avoid writing XMP-dwc:EventID and XMP-tiff:NativeDigest <li>Avoid printing same structure twice in -j and -X output when -l is used -<li>Fixed typo in a QuickTime tag name +<li>Fixed typo in a QuickTime tag name (thanks Hubert) <li>Fixed two XMP-crs tag names and typo in a NikonSettings value (thanks Herb) <li>Fixed patch of version 12.25 to avoid writing XMP which contains an undefined namespace </ul> diff --git a/html/index.html b/html/index.html index 3a4d9d37..a93cac5f 100644 --- a/html/index.html +++ b/html/index.html @@ -89,13 +89,13 @@ the site with a moderate load. An alternate ExifTool homepage is available at <br><a href="#donate">Donate</a> <br><a href="#contact">Contact Me</a> </div> <blockquote><table class='dl lg'><tr><td><b> -<a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.37.tar.gz/download"> -Download Version 12.37</a> (4.8 MB) - -<a href="history.html">Dec. 8, 2021</a></b></td></tr></table></blockquote> +<a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.38.tar.gz/download"> +Download Version 12.38</a> (4.8 MB) - +<a href="history.html">Dec. 20, 2021</a></b></td></tr></table></blockquote> <p><b>ExifTool is a platform-independent <a href="ExifTool.html">Perl library</a> plus a <a href="exiftool_pod.html">command-line application</a> for reading, writing and editing meta information in a <a href="#supported">wide variety of files</a>.</b> @@ -144,12 +144,12 @@ as well as the maker notes of many digital cameras by only, and do not include the HTML documentation or other files of the full distribution above.)</i></p> <blockquote><table class='dl lg'><tr><td><b> <a name="alone">Windows Executable:</a> -<a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.37.zip/download"> - exiftool-12.37.zip</a> (6.4 MB)</b></td></tr></table></blockquote> +<a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.38.zip/download"> + exiftool-12.38.zip</a> (6.4 MB)</b></td></tr></table></blockquote> <p><b>The stand-alone Windows executable</b> does not require Perl. Just download and un-zip the archive then double-click on "<code>exiftool(-k).exe</code>" to read the application documentation, drag-and-drop files and folders to view meta information, or rename to @@ -163,11 +163,11 @@ that avoids some problems of the self-extracting archive version above. Please if you have any problems/comments with this version.)</i></p> <blockquote><table class='dl lg'><tr><td><b> MacOS Package: <a href="http://sourceforge.net/projects/exiftool/files/ExifTool-9.70.dmg/download"> - ExifTool-12.37.dmg</a> (3.0 MB)</b></td></tr></table></blockquote> + ExifTool-12.38.dmg</a> (3.1 MB)</b></td></tr></table></blockquote> <p><b>The MacOS package</b> installs the ExifTool command-line application and libraries in /usr/local/bin. After installing, type "<code>exiftool</code>" in a Terminal window to run exiftool and read the application documentation.</p> diff --git a/html/install.html b/html/install.html index 78953c37..7c2b6e54 100644 --- a/html/install.html +++ b/html/install.html @@ -50,14 +50,14 @@ executable, but note that the stand-alone version doesn't include the HTML documentation or some other files of the full distribution.</p> <h3>Stand-Alone Executable</h3> <ol> <li><b>Download</b> the <b>Windows Executable</b> from the <a href="index.html">ExifTool home page</a>. -<br><span class=lt>(The file you download should be named "<code>exiftool-12.37.zip</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>exiftool-12.38.zip</code>".)</span></li> <li><b>Extract "<code>exiftool(-k).exe</code>"</b> from the "<code>.zip</code>" file, and place it <b>on your Desktop</b>. -<br><span class=lt>(Double-click on "<code>exiftool-12.37.zip</code>" to open +<br><span class=lt>(Double-click on "<code>exiftool-12.38.zip</code>" to open the archive, then drag "<code>exiftool(-k).exe</code>" to your Desktop.)</span></li> </ol> <p>You can now double-click on "<code>exiftool(-k).exe</code>" to read the application documentation, or drag-and-drop files and folders to run exiftool on selected files. To install exiftool for <b>use from the command line</b>, @@ -107,11 +107,11 @@ or later). Alternately, this command may be used to delete these files: <p>You must have Perl installed to use this version. (A free version of Perl can be downloaded from <a href="http://www.activestate.com/activeperl/">activeperl.com</a>.)</p> <ol> <li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> -<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.37.tar.gz</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.38.tar.gz</code>".)</span></li> <li><b>Extract the ExifTool files</b> from the archive. <br><span class=lt>(The archive is a gzipped tar file, and can be opened with various Windows utilities, including WinZip.)</span></li> <li><b>Rename</b> "<code>exiftool</code>" to <b>"<code>exiftool.pl</code>"</b> in the exiftool distribution.</li> @@ -149,11 +149,11 @@ full distribution includes HTML documentation and some other files not included in the MacOS package. Both versions run natively on PPC and Intel Macs.</p> <h3>MacOS Package</h3> <ol> <li><b>Download</b> the <b>ExifTool MacOS Package</b> from the <a href="index.html">ExifTool home page</a>. -<br><span class=lt>(The file you download should be named "<code>ExifTool-12.37.dmg</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>ExifTool-12.38.dmg</code>".)</span></li> <li><b>Install</b> as a normal <b>MacOS package</b>. <br><span class=lt>(Open the disk image, double-click on the install package, and follow the instructions. See the second item in the Notes section below if you are stopped with an "unidentified developer" message.) </span></li> </ol> @@ -165,16 +165,16 @@ See the second item in the Notes section below if you are stopped with an "unide <h3>Full Perl Distribution</h3> <ol> <li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> to your Desktop. -<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.37.tar.gz</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.38.tar.gz</code>".)</span></li> <li><b>Launch</b> the <b>Terminal</b> application from the Utilities folder in your Applications folder.</li> <li>In the Terminal window, <b>type the following</b>: <pre class='code'> cd ~/Desktop - tar -xzf Image-ExifTool-12.37.tar.gz - cd Image-ExifTool-12.37 + tar -xzf Image-ExifTool-12.38.tar.gz + cd Image-ExifTool-12.38 sudo cp -r exiftool lib /usr/local/bin </pre> <span class=lt>(Note: The last step above will require you to enter your password.)</span></li> </ol> @@ -186,11 +186,11 @@ exiftool and its lib directory in /usr/local/bin, while the standard Unix /usr/local/bin and the individual libraries in /Library/Perl/#.#.#, where "#.#.#" is your Perl version. If both sets of libraries exist, /usr/local/bin/lib takes precedence for exiftool, but /Library/Perl/#.#.# is the default for any other Perl scripts.</li> <li>In MacOS 10.8 or later, you may see this message when you try to open the install package: -<blockquote class=red>"ExifTool-12.37.pkg" can't be opened because it is from an +<blockquote class=red>"ExifTool-12.38.pkg" can't be opened because it is from an unidentified developer.</blockquote> The solution is to control-click on the pkg then select "Open" from the pop-up menu instead of just double-clicking. An alternative is to lower the security settings by changing "Allow applications downloaded from" to "Anywhere" in the General "Security &amp; Privacy" System Preferences. (<a href="https://support.apple.com/en-us/HT202491">Read here</a> or @@ -213,15 +213,15 @@ have the wrong "<code>lib</code>" folder.</li> <hr> <h2><a name="Unix">Unix Platforms</a></h2> <ol> <li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> -<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.37.tar.gz</code>".)</span></li> +<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.38.tar.gz</code>".)</span></li> <li><b>Unpack the distribution</b> and <b>make it your current directory</b> by typing: <pre class='code'> cd <i>&lt;your download directory&gt;</i> - gzip -dc Image-ExifTool-12.37.tar.gz | tar -xf - - cd Image-ExifTool-12.37 + gzip -dc Image-ExifTool-12.38.tar.gz | tar -xf - + cd Image-ExifTool-12.38 </pre> <span class=lt>(At this point you may run exiftool by typing "<code>./exiftool <i>&lt;image file name&gt;</i></code>".)</span></li> <li><b>Test and install ExifTool</b> by typing: <pre class='code'> diff --git a/lib/Image/ExifTool.pm b/lib/Image/ExifTool.pm index 38082429..641824ce 100644 --- a/lib/Image/ExifTool.pm +++ b/lib/Image/ExifTool.pm @@ -27,11 +27,11 @@ use vars qw($VERSION $RELEASE @ISA @EXPORT_OK %EXPORT_TAGS $AUTOLOAD @fileTypes %noWriteFile %magicNumber @langs $defaultLang %langName %charsetName %mimeType $swapBytes $swapWords $currentByteOrder %unpackStd %jpegMarker %specialTags %fileTypeLookup $testLen $exeDir %static_vars); -$VERSION = '12.37'; +$VERSION = '12.38'; $RELEASE = ''; @ISA = qw(Exporter); %EXPORT_TAGS = ( # all public non-object-oriented functions: Public => [qw( @@ -4086,12 +4086,13 @@ sub EncodeFileName($$;$) sub Open($*$;$) { my ($self, $fh, $file, $mode) = @_; $file =~ s/^([\s&])/.\/$1/; # protect leading whitespace or ampersand - # default to read mode ('<') unless input is a pipe - $mode = ($file =~ /\|$/ ? '' : '<') unless $mode; + # default to read mode ('<') unless input is a trusted pipe + $mode = (($file =~ /\|$/ and $$self{TRUST_PIPE}) ? '' : '<') unless $mode; + undef $$self{TRUST_PIPE}; if ($mode) { if ($self->EncodeFileName($file)) { # handle Windows Unicode file name local $SIG{'__WARN__'} = \&SetWarning; my ($access, $create); diff --git a/lib/Image/ExifTool/CanonCustom.pm b/lib/Image/ExifTool/CanonCustom.pm index 49381246..90a2fa8b 100644 --- a/lib/Image/ExifTool/CanonCustom.pm +++ b/lib/Image/ExifTool/CanonCustom.pm @@ -1288,23 +1288,33 @@ my %convPFn = ( PrintConv => \&ConvertPfn, PrintConvInv => \&ConvertPfnInv ); 1 => '-,0,+', 2 => '+,0,-', }, }, 0x0106 => [{ + Name => 'AEBShotCount', + Condition => '$$self{Model} =~ /\b90D\b/', + Notes => 'EOS 90D', # (and who knows what others?) + PrintConv => { + 2 => '2 shots', + 3 => '3 shots', + 5 => '5 shots', + 7 => '7 shots', + }, + },{ Name => 'AEBShotCount', Condition => '$count == 1', - Notes => 'one value for some models...', + Notes => 'other models storing a single value', PrintConv => { 0 => '3 shots', 1 => '2 shots', 2 => '5 shots', 3 => '7 shots', }, },{ Name => 'AEBShotCount', Count => 2, - Notes => 'two values for others', + Notes => 'models storing two values', PrintConv => { '3 0' => '3 shots', '2 1' => '2 shots', '5 2' => '5 shots', '7 3' => '7 shots', diff --git a/lib/Image/ExifTool/Nikon.pm b/lib/Image/ExifTool/Nikon.pm index ad2fd64c..392ed6ce 100644 --- a/lib/Image/ExifTool/Nikon.pm +++ b/lib/Image/ExifTool/Nikon.pm @@ -60,11 +60,11 @@ use strict; use vars qw($VERSION %nikonLensIDs %nikonTextEncoding); use Image::ExifTool qw(:DataAccess :Utils); use Image::ExifTool::Exif; use Image::ExifTool::GPS; -$VERSION = '4.02'; +$VERSION = '4.03'; sub LensIDConv($$$); sub ProcessNikonAVI($$$); sub ProcessNikonMOV($$$); sub FormatString($); @@ -1065,10 +1065,25 @@ my %flashGroupOptionsMode = ( 1 => 'Manual', 2 => 'Auto', 3 => 'Off', ); +my %nefCompression = ( #28 relocated to MakerNotes_0x51 at offset x'0a (Z9) + 1 => 'Lossy (type 1)', # (older models) + 2 => 'Uncompressed', #JD - D100 (even though TIFF compression is set!) + 3 => 'Lossless', + 4 => 'Lossy (type 2)', + 5 => 'Striped packed 12 bits', #IB + 6 => 'Uncompressed (reduced to 12 bit)', #IB + 7 => 'Unpacked 12 bits', #IB (padded to 16) + 8 => 'Small', #IB + 9 => 'Packed 12 bits', #IB (2 pixels in 3 bytes) + 10 => 'Packed 14 bits', #28 (4 pixels in 7 bytes, eg. D6 uncompressed 14 bit) + 13 => 'High Efficiency', #28 + 14 => 'High Efficiency*', #28 +); + my %noYes = ( 0 => 'No' , 1 => 'Yes', ); my %offOn = ( 0 => 'Off', 1 => 'On' ); my %onOff = ( 0 => 'On', 1 => 'Off' ); # common attributes for writable BinaryData directories @@ -1474,10 +1489,18 @@ my %binaryDataAttrs = ( }, 0x004f => { #IB (D850) Name => 'ColorTemperatureAuto', Writable => 'int16u', }, + 0x0051 => { #28 (Z9) + Name => 'MakerNotes0x51', + Writable => 'undef', + Hidden => 1, + Permanent => 0, + Flags => [ 'Binary', 'Protected' ], + SubDirectory => { TagTable => 'Image::ExifTool::Nikon::MakerNotes0x51' }, + }, #0x0053 #28 possibly a secondary DistortionControl block (in addition to DistortInfo)? Certainly offset 0x04 within block contains tag AutoDistortionControl for Z72 and D6 (1=>On; 2=> Off) #0x005e #28 possibly DiffractionCompensation block? Certainly offset 0x04 within block contains tag DiffractionCompensation 0x0080 => { Name => 'ImageAdjustment', Writable => 'string' }, 0x0081 => { Name => 'ToneComp', Writable => 'string' }, #2 0x0082 => { Name => 'AuxiliaryLens', Writable => 'string' }, @@ -1898,10 +1921,20 @@ my %binaryDataAttrs = ( DecryptStart => 4, DecryptLen => 0xcea6 + 1050, # thru decoded parts of Offset31 ByteOrder => 'LittleEndian', }, }, + { # (Z9 firmware version 1.00 ref 28) + Condition => '$$valPt =~ /^0805/', + Name => 'ShotInfoZ9', + SubDirectory => { + TagTable => 'Image::ExifTool::Nikon::ShotInfoZ9', + DecryptStart => 4, + DecryptLen => 0xeb5b + 1050, # thru decoded parts of Offset27 + ByteOrder => 'LittleEndian', + }, + }, { # D7100=0227, Z6/Z7=0800 Condition => '$$valPt =~ /^0[28]/', Name => 'ShotInfo02xx', SubDirectory => { TagTable => 'Image::ExifTool::Nikon::ShotInfo', @@ -1927,22 +1960,12 @@ my %binaryDataAttrs = ( }, # 0x0093 - ref 15 calls this Saturation, but this is wrong - PH 0x0093 => { #21 Name => 'NEFCompression', Writable => 'int16u', - PrintConv => { - 1 => 'Lossy (type 1)', # (older models) - 2 => 'Uncompressed', #JD - D100 (even though TIFF compression is set!) - 3 => 'Lossless', - 4 => 'Lossy (type 2)', - 5 => 'Striped packed 12 bits', #IB - 6 => 'Uncompressed (reduced to 12 bit)', #IB - 7 => 'Unpacked 12 bits', #IB (padded to 16) - 8 => 'Small', #IB - 9 => 'Packed 12 bits', #IB (2 pixels in 3 bytes) - 10 => 'Packed 14 bits', #28 (4 pixels in 7 bytes, eg. D6 uncompressed 14 bit) - }, + SeparateTable => 'NEFCompression', + PrintConv => \%nefCompression, }, 0x0094 => { Name => 'SaturationAdj', Writable => 'int16s' }, 0x0095 => { Name => 'NoiseReduction', Writable => 'string' }, # ("Off" or "FPNR"=long exposure NR) 0x0096 => { Name => 'NEFLinearizationTable', # same table as DNG LinearizationTable (ref JD) @@ -7754,10 +7777,101 @@ my %nikonFocalConversions = ( }, } # note: DecryptLen currently set to 0xcea6 + 1050 ); +# shot information for the Z9 firmware 1.00 (encrypted) - ref 28 +%Image::ExifTool::Nikon::ShotInfoZ9 = ( + PROCESS_PROC => \&Image::ExifTool::Nikon::ProcessNikonEncrypted, + WRITE_PROC => \&Image::ExifTool::Nikon::ProcessNikonEncrypted, + CHECK_PROC => \&Image::ExifTool::CheckBinaryData, + VARS => { ID_LABEL => 'Index' }, + DATAMEMBER => [ 0x04, 0x0e, 0x18, 0x84, 0xeaea], + WRITABLE => 1, + FIRST_ENTRY => 0, + GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' }, + NOTES => 'These tags are extracted from encrypted data in images from the Z9.', + 0x00 => { + Name => 'ShotInfoVersion', + Format => 'string[4]', + Writable => 0, + }, + 0x04 => { + Name => 'FirmwareVersion', + DataMember => 'FirmwareVersion', + Format => 'string[8]', + Writable => 0, + RawConv => '$$self{FirmwareVersion} = $val', + }, + 0x0e => { + Name => 'FirmwareVersion2', + Format => 'string[8]', + Writable => 0, + RawConv => '$$self{FirmwareVersion2} = $val', + Hidden => 1, + }, + 0x18 => { + Name => 'FirmwareVersion3', + Format => 'string[8]', + Writable => 0, + RawConv => '$$self{FirmwareVersion3} = $val', + Hidden => 1, + }, + 0x24 => { + Name => 'NumberOffsets', # number of entries in offset table. offsets are from start of ShotInfo data. + DataMember => 'NumberOffsets', + Format => 'int32u', + Writable => 0, + Hidden => 1, + }, + 0x84 => { + Name => 'OrientationOffset', #offset24 - length 108 + DataMember => 'OrientationOffset', + Format => 'int32u', + Writable => 0, + Hidden => 1, + RawConv => '$$self{OrientationOffset} = $val || 0x10000000; undef', # (ignore if 0) + }, + ### 0xce32 - OrientationInfo start (Z9 firmware 1.00) + 0xeaea => { + Name => 'Hook1', + Hidden => 1, + RawConv => 'undef', + # account for variable location of OrientationInfo data + Hook => '$varSize = $$self{OrientationOffset} - 0xeaeb', + }, + + 0xeaeb => { + Name => 'RollAngle', + Format => 'fixed32u', + Notes => 'converted to degrees of clockwise camera roll', + ValueConv => '$val <= 180 ? $val : $val - 360', + ValueConvInv => '$val >= 0 ? $val : $val + 360', + PrintConv => 'sprintf("%.1f", $val)', + PrintConvInv => '$val', + }, + 0xeaef => { + Name => 'PitchAngle', + Format => 'fixed32u', + Notes => 'converted to degrees of upward camera tilt', + ValueConv => '$val <= 180 ? $val : $val - 360', + ValueConvInv => '$val >= 0 ? $val : $val + 360', + PrintConv => 'sprintf("%.1f", $val)', + PrintConvInv => '$val', + }, + 0xeaf3 => { + Name => 'YawAngle', + Format => 'fixed32u', + Notes => 'the camera yaw angle when shooting in portrait orientation', + ValueConv => '$val <= 180 ? $val : $val - 360', + ValueConvInv => '$val >= 0 ? $val : $val + 360', + PrintConv => 'sprintf("%.1f", $val)', + PrintConvInv => '$val', + }, + # note: DecryptLen currently set to 0xeb5b + 1050 +); + %Image::ExifTool::Nikon::ZMenuSettings = ( %binaryDataAttrs, GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' }, NOTES => q{ These tags are used by the Z5 Z6 Z7 Z6II Z7II Z50 Zfc @@ -8038,12 +8152,12 @@ my %nikonFocalConversions = ( 576 => { Name => 'MovieVignetteControlSameAsPhoto', Unknown => 1, PrintConv => \%noYes }, - 5771 => { - Name => 'MovieDiffrationCompensation', + 577 => { + Name => 'MovieDiffractionCompensation', Unknown => 1, PrintConv => \%offOn }, 578 => { Name => 'MovieAutoDistortionControl', @@ -9464,10 +9578,29 @@ my %nikonFocalConversions = ( RawConv => '$$self{TextEncoding} ? $self->Decode($val,$$self{TextEncoding},"MM") : $val', RawConvInv => '$$self{TextEncoding} ? $self->Encode($val,$$self{TextEncoding},"MM") : $val', }, ); +# MakerNotes0x51 - compression info for Z9 +%Image::ExifTool::Nikon::MakerNotes0x51 = ( + %binaryDataAttrs, + DATAMEMBER => [ 0 ], + GROUPS => { 0 => 'MakerNotes' }, + 0 => { + Name => 'FirmwareVersion', + Format => 'string[8]', + Writable => 0, + RawConv => '$$self{FirmwareVersion} = $val', + }, + 10 => { + Name => 'NEFCompression', + Writable => 'int16u', + SeparateTable => 'NEFCompression', + PrintConv => \%nefCompression, + }, +); + # extra info found in IFD0 of NEF files (ref PH, Z6/Z7) %Image::ExifTool::Nikon::NEFInfo = ( GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' }, NOTES => q{ As-yet unknown information found in SubIFD1 tag 0xc7d5 of NEF images from diff --git a/lib/Image/ExifTool/OpenEXR.pm b/lib/Image/ExifTool/OpenEXR.pm index 425f1c9e..6e4335cc 100644 --- a/lib/Image/ExifTool/OpenEXR.pm +++ b/lib/Image/ExifTool/OpenEXR.pm @@ -13,11 +13,11 @@ package Image::ExifTool::OpenEXR; use strict; use vars qw($VERSION); use Image::ExifTool qw(:DataAccess :Utils); use Image::ExifTool::GPS; -$VERSION = '1.02'; +$VERSION = '1.03'; # supported EXR value format types (other types are extracted as undef binary data) my %formatType = ( box2f => 'float[4]', box2i => 'int32s[4]', @@ -170,16 +170,17 @@ sub ProcessEXR($$) # extract information from header my $ver = unpack('x4V', $buff); $et->HandleTag($tagTablePtr, '_ver', $ver & 0xff); $et->HandleTag($tagTablePtr, '_lay', $ver & 0x200); + my $maxLen = ($ver & 0x400) ? 255 : 31; # extract attributes for (;;) { $raf->Read($buff, 68) or last; last if $buff =~ /^\0/; - unless ($buff =~ /^([^\0]{1,31})\0([^\0]{1,31})\0(.{4})/sg) { + unless ($buff =~ /^([^\0]{1,$maxLen})\0([^\0]{1,$maxLen})\0(.{4})/sg) { $et->Warn('EXR format error'); last; } my ($tag, $type, $size) = ($1, $2, unpack('V', $3)); unless ($raf->Seek(pos($buff) - length($buff), 1)) { @@ -187,10 +188,11 @@ sub ProcessEXR($$) last; } my $tagInfo = $et->GetTagInfo($tagTablePtr, $tag); unless ($tagInfo) { my $name = ucfirst $tag; + $name =~ s/([^a-zA-Z])([a-z])/$1\U$2/g; # capitalize first letter of each word $name =~ tr/-_a-zA-Z0-9//dc; if (length $name <= 1) { if (length $name) { $name = "Tag$name"; } else { diff --git a/lib/Image/ExifTool/TagLookup.pm b/lib/Image/ExifTool/TagLookup.pm index a78f1fdd..db8e2081 100644 --- a/lib/Image/ExifTool/TagLookup.pm +++ b/lib/Image/ExifTool/TagLookup.pm @@ -255,10 +255,11 @@ my @tableList = ( 'Image::ExifTool::Nikon::LensData0402', 'Image::ExifTool::Nikon::LensData0403', 'Image::ExifTool::Nikon::LensData0800', 'Image::ExifTool::Nikon::LocationInfo', 'Image::ExifTool::Nikon::Main', + 'Image::ExifTool::Nikon::MakerNotes0x51', 'Image::ExifTool::Nikon::MultiExposure', 'Image::ExifTool::Nikon::PictureControl', 'Image::ExifTool::Nikon::PictureControl2', 'Image::ExifTool::Nikon::PictureControl3', 'Image::ExifTool::Nikon::PreviewIFD', @@ -286,10 +287,11 @@ my @tableList = ( 'Image::ExifTool::Nikon::ShotInfoD800', 'Image::ExifTool::Nikon::ShotInfoD810', 'Image::ExifTool::Nikon::ShotInfoD850', 'Image::ExifTool::Nikon::ShotInfoD90', 'Image::ExifTool::Nikon::ShotInfoZ7_2', + 'Image::ExifTool::Nikon::ShotInfoZ9', 'Image::ExifTool::Nikon::Type2', 'Image::ExifTool::Nikon::VRInfo', 'Image::ExifTool::Nikon::WorldTime', 'Image::ExifTool::Nikon::ZMenuSettings', 'Image::ExifTool::NikonCapture::Brightness', @@ -538,665 +540,665 @@ my @tableList = ( ); # lookup for all writable tags my %tagLookup = ( 'aberrationcorrectiondistance' => { 108 => 0x69 }, - 'about' => { 491 => 'about' }, - 'aboutcvterm' => { 483 => 'AboutCvTerm' }, - 'aboutcvtermcvid' => { 483 => [\'AboutCvTerm','AboutCvTermCvId'] }, - 'aboutcvtermid' => { 483 => [\'AboutCvTerm','AboutCvTermCvTermId'] }, - 'aboutcvtermname' => { 483 => [\'AboutCvTerm','AboutCvTermCvTermName'] }, - 'aboutcvtermrefinedabout' => { 483 => [\'AboutCvTerm','AboutCvTermCvTermRefinedAbout'] }, + 'about' => { 493 => 'about' }, + 'aboutcvterm' => { 485 => 'AboutCvTerm' }, + 'aboutcvtermcvid' => { 485 => [\'AboutCvTerm','AboutCvTermCvId'] }, + 'aboutcvtermid' => { 485 => [\'AboutCvTerm','AboutCvTermCvTermId'] }, + 'aboutcvtermname' => { 485 => [\'AboutCvTerm','AboutCvTermCvTermName'] }, + 'aboutcvtermrefinedabout' => { 485 => [\'AboutCvTerm','AboutCvTermCvTermRefinedAbout'] }, 'absolutealtitude' => { 115 => 'AbsoluteAltitude' }, - 'abspeakaudiofilepath' => { 497 => 'absPeakAudioFilePath' }, - 'academicfield' => { 487 => 'academicField' }, - 'acceleration' => { 118 => 0x9404, 478 => 'Acceleration' }, + 'abspeakaudiofilepath' => { 499 => 'absPeakAudioFilePath' }, + 'academicfield' => { 489 => 'academicField' }, + 'acceleration' => { 118 => 0x9404, 480 => 'Acceleration' }, 'accelerationtracking' => { 83 => 0x518 }, 'accelerationvector' => { 1 => 0x8 }, - 'accelerometer' => { 384 => 0x3 }, - 'accelerometerdata' => { 374 => 'vrot' }, - 'accelerometerx' => { 314 => 0x8d }, - 'accelerometery' => { 314 => 0x8e }, - 'accelerometerz' => { 314 => 0x8c }, - 'accessoryserialnumber' => { 314 => 0x54 }, - 'accessorytype' => { 314 => 0x53 }, + 'accelerometer' => { 386 => 0x3 }, + 'accelerometerdata' => { 376 => 'vrot' }, + 'accelerometerx' => { 316 => 0x8d }, + 'accelerometery' => { 316 => 0x8e }, + 'accelerometerz' => { 316 => 0x8c }, + 'accessoryserialnumber' => { 316 => 0x54 }, + 'accessorytype' => { 316 => 0x53 }, 'actionadvised' => { 130 => 0x2a }, 'activearea' => { 118 => 0xc68d }, - 'actived-lighting' => { 224 => 0x22, 265 => 0x24 }, - 'actived-lightingmode' => { 265 => 0x25 }, + 'actived-lighting' => { 224 => 0x22, 267 => 0x24 }, + 'actived-lightingmode' => { 267 => 0x25 }, 'adaptervoltage' => { 137 => 0x407 }, 'addaspectratioinfo' => { 83 => 0x80e }, 'addiptcinformation' => { 83 => 0x815 }, - 'additionalmodelinformation' => { 483 => 'AddlModelInfo' }, + 'additionalmodelinformation' => { 485 => 'AddlModelInfo' }, 'addoriginaldecisiondata' => { 83 => 0x80f, 84 => 0x11, 85 => 0x13, 88 => 0x14 }, 'address' => { 160 => 'Address' }, - 'adjustmentmode' => { 391 => 0x15 }, - 'adlbracketingstep' => { 243 => 0x883 }, - 'adlbracketingtype' => { 243 => 0x884 }, + 'adjustmentmode' => { 393 => 0x15 }, + 'adlbracketingstep' => { 244 => 0x883 }, + 'adlbracketingtype' => { 244 => 0x884 }, 'adobe' => { 119 => 'Adobe' }, - 'adultcontentwarning' => { 301 => 'AdultContentWarning', 490 => 'adultContentWarning' }, + 'adultcontentwarning' => { 303 => 'AdultContentWarning', 492 => 'adultContentWarning' }, 'advancedfilter' => { 126 => 0x1201 }, - 'advancedraw' => { 267 => 0x76a43203 }, - 'advancedscenetype' => { 314 => 0x3d }, - 'advisory' => { 495 => 'Advisory' }, - 'ae_iso' => { 322 => 0x2, 323 => 0x4, 324 => 0x12 }, - 'aeaperture' => { 322 => 0x1, 323 => 0x3, 324 => 0x11 }, - 'aeaperturesteps' => { 322 => 0x8, 323 => 0xb }, + 'advancedraw' => { 269 => 0x76a43203 }, + 'advancedscenetype' => { 316 => 0x3d }, + 'advisory' => { 497 => 'Advisory' }, + 'ae_iso' => { 324 => 0x2, 325 => 0x4, 326 => 0x12 }, + 'aeaperture' => { 324 => 0x1, 325 => 0x3, 326 => 0x11 }, + 'aeaperturesteps' => { 324 => 0x8, 325 => 0xb }, 'aebautocancel' => { 83 => 0x104 }, 'aebbracketvalue' => { 76 => 0x11 }, - 'aebracketingsteps' => { 242 => 0x174c, 243 => 0x87b, 252 => 0x1756 }, + 'aebracketingsteps' => { 243 => 0x174c, 244 => 0x87b, 253 => 0x1756 }, 'aebsequence' => { 83 => 0x105 }, 'aebsequenceautocancel' => { 81 => 0x9, 82 => 0x9, 84 => 0x8, 85 => 0x9, 88 => 0x9, 89 => 0x7 }, 'aebshotcount' => { 83 => 0x106 }, - 'aebxv' => { 322 => 0x4, 323 => 0x6 }, - 'aeerror' => { 323 => 0x8 }, - 'aeexposuretime' => { 322 => 0x0, 323 => 0x2, 324 => 0x10 }, + 'aebxv' => { 324 => 0x4, 325 => 0x6 }, + 'aeerror' => { 325 => 0x8 }, + 'aeexposuretime' => { 324 => 0x0, 325 => 0x2, 326 => 0x10 }, 'aelbutton' => { 183 => 0x45 }, 'aelexposureindicator' => { 183 => 0x51 }, - 'aelock' => { 183 => 0x5b, 276 => '4.2', 285 => '4.2', 291 => 0x201, 349 => 0x48, 401 => 0x40, 402 => 0x40, 403 => [0x86,0x286] }, - 'aelockbutton' => { 274 => '16.1', 276 => '4.1', 279 => '15.1', 280 => '16.1', 281 => '16.1', 283 => '30.1', 284 => '16.1', 285 => '4.1', 287 => '17.1', 289 => '17.1' }, - 'aelockbuttonplusdials' => { 274 => '16.2', 283 => '32.1', 287 => '44.1' }, - 'aelockformb-d80' => { 289 => '3.1' }, + 'aelock' => { 183 => 0x5b, 278 => '4.2', 287 => '4.2', 293 => 0x201, 351 => 0x48, 403 => 0x40, 404 => 0x40, 405 => [0x86,0x286] }, + 'aelockbutton' => { 276 => '16.1', 278 => '4.1', 281 => '15.1', 282 => '16.1', 283 => '16.1', 285 => '30.1', 286 => '16.1', 287 => '4.1', 289 => '17.1', 291 => '17.1' }, + 'aelockbuttonplusdials' => { 276 => '16.2', 285 => '32.1', 289 => '44.1' }, + 'aelockformb-d80' => { 291 => '3.1' }, 'aelockmetermodeafterfocus' => { 83 => 0x114 }, - 'aemaxaperture' => { 322 => 0x9, 323 => 0x10, 324 => 0x1c }, - 'aemaxaperture2' => { 322 => 0xa, 323 => 0x11, 324 => 0x1d }, - 'aemeteringmode' => { 322 => 0xc }, - 'aemeteringmode2' => { 322 => '13.1' }, - 'aemeteringsegments' => { 186 => 0x628, 349 => 0x209 }, + 'aemaxaperture' => { 324 => 0x9, 325 => 0x10, 326 => 0x1c }, + 'aemaxaperture2' => { 324 => 0xa, 325 => 0x11, 326 => 0x1d }, + 'aemeteringmode' => { 324 => 0xc }, + 'aemeteringmode2' => { 324 => '13.1' }, + 'aemeteringsegments' => { 186 => 0x628, 351 => 0x209 }, 'aemicroadjustment' => { 83 => 0x110 }, - 'aeminaperture' => { 322 => 0xb, 323 => 0x12, 324 => 0x1e }, - 'aeminexposuretime' => { 322 => 0x5, 323 => 0x13, 324 => 0x1f }, - 'aeprogrammode' => { 322 => 0x6 }, - 'aeprojectlink' => { 472 => 'aeProjectLink' }, - 'aeprojectlinkcompositionid' => { 472 => [\'aeProjectLink','aeProjectLinkCompositionID'] }, - 'aeprojectlinkfullpath' => { 472 => [\'aeProjectLink','aeProjectLinkFullPath'] }, - 'aeprojectlinkrenderoutputmoduleindex' => { 472 => [\'aeProjectLink','aeProjectLinkRenderOutputModuleIndex'] }, - 'aeprojectlinkrenderqueueitemid' => { 472 => [\'aeProjectLink','aeProjectLinkRenderQueueItemID'] }, - 'aeprojectlinkrendertimestamp' => { 472 => [\'aeProjectLink','aeProjectLinkRenderTimeStamp'] }, + 'aeminaperture' => { 324 => 0xb, 325 => 0x12, 326 => 0x1e }, + 'aeminexposuretime' => { 324 => 0x5, 325 => 0x13, 326 => 0x1f }, + 'aeprogrammode' => { 324 => 0x6 }, + 'aeprojectlink' => { 474 => 'aeProjectLink' }, + 'aeprojectlinkcompositionid' => { 474 => [\'aeProjectLink','aeProjectLinkCompositionID'] }, + 'aeprojectlinkfullpath' => { 474 => [\'aeProjectLink','aeProjectLinkFullPath'] }, + 'aeprojectlinkrenderoutputmoduleindex' => { 474 => [\'aeProjectLink','aeProjectLinkRenderOutputModuleIndex'] }, + 'aeprojectlinkrenderqueueitemid' => { 474 => [\'aeProjectLink','aeProjectLinkRenderQueueItemID'] }, + 'aeprojectlinkrendertimestamp' => { 474 => [\'aeProjectLink','aeProjectLinkRenderTimeStamp'] }, 'aesetting' => { 34 => 0x21 }, - 'aewhitebalance' => { 322 => 0xd }, - 'aexv' => { 322 => 0x3, 323 => 0x5 }, + 'aewhitebalance' => { 324 => 0xd }, + 'aexv' => { 324 => 0x3, 325 => 0x5 }, 'af-cpriority' => { 127 => '0.2' }, - 'af-cpriorityselection' => { 274 => '1.1', 275 => '1.1', 277 => '1.1', 278 => '1.1', 280 => '0.1', 281 => '0.1', 282 => '0.1', 283 => '1.1', 284 => '0.1', 287 => '1.1', 288 => '1.1' }, + 'af-cpriorityselection' => { 276 => '1.1', 277 => '1.1', 279 => '1.1', 280 => '1.1', 282 => '0.1', 283 => '0.1', 284 => '0.1', 285 => '1.1', 286 => '0.1', 289 => '1.1', 290 => '1.1' }, 'af-csetting' => { 123 => 0x0 }, 'af-cspeedtrackingsensitivity' => { 123 => '0.2' }, 'af-ctrackingsensitivity' => { 123 => '0.1' }, 'af-czoneareaswitching' => { 123 => '0.3' }, - 'af-onbutton' => { 277 => '70.1', 278 => '70.1', 288 => '70.1' }, - 'af-onformb-d10' => { 274 => '3.3', 283 => '3.2' }, - 'af-onformb-d11' => { 284 => '2.2' }, - 'af-onformb-d12' => { 287 => '50.1' }, + 'af-onbutton' => { 279 => '70.1', 280 => '70.1', 290 => '70.1' }, + 'af-onformb-d10' => { 276 => '3.3', 285 => '3.2' }, + 'af-onformb-d11' => { 286 => '2.2' }, + 'af-onformb-d12' => { 289 => '50.1' }, 'af-spriority' => { 127 => '0.1' }, - 'af-spriorityselection' => { 274 => '1.2', 275 => '1.2', 277 => '1.2', 278 => '1.2', 282 => '0.2', 283 => '1.2', 284 => '0.2', 287 => '1.2', 288 => '1.2' }, + 'af-spriorityselection' => { 276 => '1.2', 277 => '1.2', 279 => '1.2', 280 => '1.2', 284 => '0.2', 285 => '1.2', 286 => '0.2', 289 => '1.2', 290 => '1.2' }, 'afacceldeceltracking' => { 2 => 0x3 }, - 'afactivation' => { 274 => '2.1', 275 => '2.1', 277 => '78.3', 278 => '78.3', 283 => '2.1', 287 => '2.1', 288 => '78.3' }, - 'afadjustment' => { 349 => 0x72, 358 => 0x267 }, + 'afactivation' => { 276 => '2.1', 277 => '2.1', 279 => '78.3', 280 => '78.3', 285 => '2.1', 289 => '2.1', 290 => '78.3' }, + 'afadjustment' => { 351 => 0x72, 360 => 0x267 }, 'afandmeteringbuttons' => { 83 => 0x701 }, 'afaperture' => { 217 => 0x5, 218 => 0x5, 222 => 0x5 }, 'afareaheight' => { 192 => [0x1a,0x34,0x50] }, - 'afareaillumination' => { 183 => 0x4b, 285 => '15.3' }, - 'afareamode' => { 125 => '0.3', 179 => 0x33, 183 => 0xe, 191 => 0x0, 192 => 0x5, 314 => 0xf, 381 => 0x1205, 394 => [0xa,0x3a], 401 => 0x11, 402 => 0x10, 403 => 0x24, 414 => 0xb043, 438 => 0x17 }, - 'afareamodesetting' => { 276 => '11.1', 279 => '0.1', 285 => '16.1', 289 => '2.1', 414 => 0x201c }, + 'afareaillumination' => { 183 => 0x4b, 287 => '15.3' }, + 'afareamode' => { 125 => '0.3', 179 => 0x33, 183 => 0xe, 191 => 0x0, 192 => 0x5, 316 => 0xf, 383 => 0x1205, 396 => [0xa,0x3a], 403 => 0x11, 404 => 0x10, 405 => 0x24, 416 => 0xb043, 440 => 0x17 }, + 'afareamodesetting' => { 278 => '11.1', 281 => '0.1', 287 => '16.1', 291 => '2.1', 416 => 0x201c }, 'afareapointsize' => { 125 => '0.4' }, - 'afareas' => { 291 => 0x304 }, + 'afareas' => { 293 => 0x304 }, 'afareaselectionmethod' => { 2 => 0xd }, 'afareaselectmethod' => { 83 => 0x51b }, 'afareawidth' => { 192 => [0x18,0x32,0x4e] }, - 'afareaxposition' => { 192 => [0x14,0x2e,0x4a], 381 => 0x1203 }, - 'afareaxposition1' => { 381 => 0x1201 }, - 'afareayposition' => { 192 => [0x16,0x30,0x4c], 381 => 0x1204 }, - 'afareayposition1' => { 381 => 0x1202 }, + 'afareaxposition' => { 192 => [0x14,0x2e,0x4a], 383 => 0x1203 }, + 'afareaxposition1' => { 383 => 0x1201 }, + 'afareayposition' => { 192 => [0x16,0x30,0x4c], 383 => 0x1204 }, + 'afareayposition1' => { 383 => 0x1202 }, 'afareazonesize' => { 125 => '0.5' }, - 'afassist' => { 81 => 0x5, 89 => 0x5, 183 => 0x48, 274 => '2.5', 276 => '0.2', 279 => '0.2', 280 => '1.1', 281 => '1.1', 282 => '1.3', 283 => '2.4', 284 => '1.3', 285 => '0.2', 287 => '2.4', 289 => '2.3' }, + 'afassist' => { 81 => 0x5, 89 => 0x5, 183 => 0x48, 276 => '2.5', 278 => '0.2', 281 => '0.2', 282 => '1.1', 283 => '1.1', 284 => '1.3', 285 => '2.4', 286 => '1.3', 287 => '0.2', 289 => '2.4', 291 => '2.3' }, 'afassistbeam' => { 2 => 0x8, 83 => 0x50e, 84 => 0x4, 85 => 0x5, 86 => 0x4, 87 => 0x4, 88 => 0x5 }, - 'afassistlamp' => { 314 => 0x31 }, - 'afbuttonpressed' => { 403 => [0x83,0x283] }, + 'afassistlamp' => { 316 => 0x31 }, + 'afbuttonpressed' => { 405 => [0x83,0x283] }, 'afconfigtool' => { 2 => 0x1 }, - 'afdefocus' => { 325 => 0x6 }, + 'afdefocus' => { 327 => 0x6 }, 'afduringliveview' => { 83 => 0x511 }, - 'affinea' => { 465 => 'AffineA' }, - 'affineb' => { 465 => 'AffineB' }, - 'affinec' => { 465 => 'AffineC' }, - 'affined' => { 465 => 'AffineD' }, - 'affinetune' => { 193 => 0x0, 291 => 0x306 }, - 'affinetuneadj' => { 193 => 0x2, 235 => 0x2d1, 236 => 0x2dc, 291 => 0x307 }, + 'affinea' => { 467 => 'AffineA' }, + 'affineb' => { 467 => 'AffineB' }, + 'affinec' => { 467 => 'AffineC' }, + 'affined' => { 467 => 'AffineD' }, + 'affinetune' => { 193 => 0x0, 293 => 0x306 }, + 'affinetuneadj' => { 193 => 0x2, 236 => 0x2d1, 237 => 0x2dc, 293 => 0x307 }, 'affinetuneadjtele' => { 193 => 0x3 }, 'affinetuneindex' => { 193 => 0x1 }, - 'affinex' => { 465 => 'AffineX' }, - 'affiney' => { 465 => 'AffineY' }, + 'affinex' => { 467 => 'AffineX' }, + 'affiney' => { 467 => 'AffineY' }, 'affocuspointxposition' => { 192 => 0x2f }, 'affocuspointyposition' => { 192 => 0x31 }, - 'afhold' => { 325 => 0x1fd }, - 'afilluminator' => { 401 => 0x29, 414 => 0xb044 }, + 'afhold' => { 327 => 0x1fd }, + 'afilluminator' => { 403 => 0x29, 416 => 0xb044 }, 'afimageheight' => { 192 => [0x12,0x2c,0x48] }, 'afimagewidth' => { 192 => [0x10,0x2a,0x46] }, - 'afintegrationtime' => { 325 => 0x7 }, - 'afmicroadj' => { 394 => [0x17d,0x50] }, - 'afmicroadjmode' => { 3 => 0x1, 398 => 0x131 }, - 'afmicroadjregisteredlenses' => { 398 => '305.1' }, + 'afintegrationtime' => { 327 => 0x7 }, + 'afmicroadj' => { 396 => [0x17d,0x50] }, + 'afmicroadjmode' => { 3 => 0x1, 400 => 0x131 }, + 'afmicroadjregisteredlenses' => { 400 => '305.1' }, 'afmicroadjustment' => { 83 => 0x507 }, - 'afmicroadjvalue' => { 3 => 0x2, 398 => 0x130 }, - 'afmode' => { 112 => 0x3009, 126 => 0x1022, 179 => 0x16, 391 => 0x5 }, - 'afmoderestrictions' => { 275 => '50.3', 277 => '48.3', 278 => '48.3', 287 => '48.3', 288 => '48.3' }, + 'afmicroadjvalue' => { 3 => 0x2, 400 => 0x130 }, + 'afmode' => { 112 => 0x3009, 126 => 0x1022, 179 => 0x16, 393 => 0x5 }, + 'afmoderestrictions' => { 277 => '50.3', 279 => '48.3', 280 => '48.3', 289 => '48.3', 290 => '48.3' }, 'afonaelockbuttonswitch' => { 83 => 0x702 }, - 'afonbutton' => { 274 => '3.1', 275 => '47.1' }, - 'afpoint' => { 34 => 0x13, 111 => 0x18, 179 => 0x15, 191 => 0x1, 294 => 0x308, 391 => 0x1f, 394 => [0x37,0x7], 398 => 0x19, 399 => 0x18, 400 => [0x18,0x20] }, + 'afonbutton' => { 276 => '3.1', 277 => '47.1' }, + 'afpoint' => { 34 => 0x13, 111 => 0x18, 179 => 0x15, 191 => 0x1, 296 => 0x308, 393 => 0x1f, 396 => [0x37,0x7], 400 => 0x19, 401 => 0x18, 402 => [0x18,0x20] }, 'afpointactivationarea' => { 82 => 0x11, 88 => 0x11 }, 'afpointareaexpansion' => { 83 => 0x508 }, - 'afpointatshutterrelease' => { 394 => [0x39,0x9] }, + 'afpointatshutterrelease' => { 396 => [0x39,0x9] }, 'afpointautoselection' => { 83 => 0x50b }, - 'afpointbrightness' => { 83 => 0x50d, 274 => '2.4', 275 => '46.5', 277 => '2.2', 278 => '2.2', 287 => '2.3', 288 => '2.2' }, + 'afpointbrightness' => { 83 => 0x50d, 276 => '2.4', 277 => '46.5', 279 => '2.2', 280 => '2.2', 289 => '2.3', 290 => '2.2' }, 'afpointdisplayduringfocus' => { 2 => 0x10, 83 => 0x50c }, - 'afpointillumination' => { 82 => 0xa, 274 => '2.3', 275 => '46.2', 277 => '47.2', 278 => '47.2', 282 => '1.2', 283 => '2.3', 284 => '1.2', 287 => '47.2', 288 => '47.2', 289 => '2.4' }, - 'afpointinfocus' => { 394 => [0x38,0x8] }, - 'afpointmode' => { 330 => 0x3 }, - 'afpointposition' => { 112 => 0x2021, 314 => 0x4d }, + 'afpointillumination' => { 82 => 0xa, 276 => '2.3', 277 => '46.2', 279 => '47.2', 280 => '47.2', 284 => '1.2', 285 => '2.3', 286 => '1.2', 289 => '47.2', 290 => '47.2', 291 => '2.4' }, + 'afpointinfocus' => { 396 => [0x38,0x8] }, + 'afpointmode' => { 332 => 0x3 }, + 'afpointposition' => { 112 => 0x2021, 316 => 0x4d }, 'afpointregistration' => { 81 => 0x7 }, 'afpoints' => { 182 => 0x10 }, - 'afpointselected' => { 183 => 0xd, 291 => 0x305, 349 => 0xe, 398 => 0x15, 399 => 0x14, 400 => [0x14,0x1c], 414 => 0x201e }, - 'afpointselected2' => { 330 => 0x4 }, - 'afpointselection' => { 82 => 0xb, 274 => '1.3', 275 => '1.3', 283 => '1.3', 287 => '1.3', 288 => '1.3' }, + 'afpointselected' => { 183 => 0xd, 293 => 0x305, 351 => 0xe, 400 => 0x15, 401 => 0x14, 402 => [0x14,0x1c], 416 => 0x201e }, + 'afpointselected2' => { 332 => 0x4 }, + 'afpointselection' => { 82 => 0xb, 276 => '1.3', 277 => '1.3', 285 => '1.3', 289 => '1.3', 290 => '1.3' }, 'afpointselectionmethod' => { 83 => 0x50f, 84 => 0xc, 85 => 0xd, 88 => 0xd }, - 'afpointsetting' => { 401 => 0x12, 402 => 0x11 }, - 'afpointsinfocus' => { 76 => 0xe, 191 => 0x2, 192 => 0x30, 325 => 0xb, 326 => 0x4, 349 => [0xf,0x3c] }, + 'afpointsetting' => { 403 => 0x12, 404 => 0x11 }, + 'afpointsinfocus' => { 76 => 0xe, 191 => 0x2, 192 => 0x30, 327 => 0xb, 328 => 0x4, 351 => [0xf,0x3c] }, 'afpointsinfocus5d' => { 19 => 0x38 }, 'afpointspotmetering' => { 82 => 0xd }, - 'afpointsselected' => { 192 => 0x1c, 326 => '4.1', 446 => 0x4 }, - 'afpointsspecial' => { 326 => '4.2' }, - 'afpointsunknown1' => { 325 => 0x0 }, - 'afpointsunknown2' => { 325 => 0x2 }, - 'afpointsused' => { 192 => [0xa,0x8], 394 => [0x10,0x16e] }, + 'afpointsselected' => { 192 => 0x1c, 328 => '4.1', 448 => 0x4 }, + 'afpointsspecial' => { 328 => '4.2' }, + 'afpointsunknown1' => { 327 => 0x0 }, + 'afpointsunknown2' => { 327 => 0x2 }, + 'afpointsused' => { 192 => [0xa,0x8], 396 => [0x10,0x16e] }, 'afpointswitching' => { 2 => 0x4 }, - 'afpredictor' => { 325 => 0x4 }, + 'afpredictor' => { 327 => 0x4 }, 'afresponse' => { 224 => 0xad }, - 'afresult' => { 296 => 0x1038 }, - 'afsearch' => { 291 => 0x303 }, + 'afresult' => { 298 => 0x1038 }, + 'afsearch' => { 293 => 0x303 }, 'afsensoractive' => { 179 => 0x1 }, - 'afstatus' => { 381 => 0x1200 }, - 'afstatus_00_b4' => { 397 => 0x0 }, - 'afstatus_01_c4' => { 397 => 0x2 }, - 'afstatus_02_d4' => { 397 => 0x4 }, - 'afstatus_03_e4' => { 397 => 0x6 }, - 'afstatus_04_f4' => { 397 => 0x8 }, - 'afstatus_05_g4' => { 397 => 0xa }, - 'afstatus_06_h4' => { 397 => 0xc }, - 'afstatus_07_b3' => { 397 => 0xe }, - 'afstatus_08_c3' => { 397 => 0x10 }, - 'afstatus_09_d3' => { 397 => 0x12 }, - 'afstatus_10_e3' => { 397 => 0x14 }, - 'afstatus_11_f3' => { 397 => 0x16 }, - 'afstatus_12_g3' => { 397 => 0x18 }, - 'afstatus_13_h3' => { 397 => 0x1a }, - 'afstatus_14_b2' => { 397 => 0x1c }, - 'afstatus_15_c2' => { 397 => 0x1e }, - 'afstatus_16_d2' => { 397 => 0x20 }, - 'afstatus_17_e2' => { 397 => 0x22 }, - 'afstatus_18_f2' => { 397 => 0x24 }, - 'afstatus_19_g2' => { 397 => 0x26 }, - 'afstatus_20_h2' => { 397 => 0x28 }, - 'afstatus_21_c1' => { 397 => 0x2a }, - 'afstatus_22_d1' => { 397 => 0x2c }, - 'afstatus_23_e1' => { 397 => 0x2e }, - 'afstatus_24_f1' => { 397 => 0x30 }, - 'afstatus_25_g1' => { 397 => 0x32 }, - 'afstatus_26_a7_vertical' => { 397 => 0x34 }, - 'afstatus_27_a6_vertical' => { 397 => 0x36 }, - 'afstatus_28_a5_vertical' => { 397 => 0x38 }, - 'afstatus_29_c7_vertical' => { 397 => 0x3a }, - 'afstatus_30_c6_vertical' => { 397 => 0x3c }, - 'afstatus_31_c5_vertical' => { 397 => 0x3e }, - 'afstatus_32_e7_vertical' => { 397 => 0x40 }, - 'afstatus_33_e6_center_vertical' => { 397 => 0x42 }, - 'afstatus_34_e5_vertical' => { 397 => 0x44 }, - 'afstatus_35_g7_vertical' => { 397 => 0x46 }, - 'afstatus_36_g6_vertical' => { 397 => 0x48 }, - 'afstatus_37_g5_vertical' => { 397 => 0x4a }, - 'afstatus_38_i7_vertical' => { 397 => 0x4c }, - 'afstatus_39_i6_vertical' => { 397 => 0x4e }, - 'afstatus_40_i5_vertical' => { 397 => 0x50 }, - 'afstatus_41_a7' => { 397 => 0x52 }, - 'afstatus_42_b7' => { 397 => 0x54 }, - 'afstatus_43_c7' => { 397 => 0x56 }, - 'afstatus_44_d7' => { 397 => 0x58 }, - 'afstatus_45_e7' => { 397 => 0x5a }, - 'afstatus_46_f7' => { 397 => 0x5c }, - 'afstatus_47_g7' => { 397 => 0x5e }, - 'afstatus_48_h7' => { 397 => 0x60 }, - 'afstatus_49_i7' => { 397 => 0x62 }, - 'afstatus_50_a6' => { 397 => 0x64 }, - 'afstatus_51_b6' => { 397 => 0x66 }, - 'afstatus_52_c6' => { 397 => 0x68 }, - 'afstatus_53_d6' => { 397 => 0x6a }, - 'afstatus_54_e6_center' => { 397 => 0x6c }, - 'afstatus_55_f6' => { 397 => 0x6e }, - 'afstatus_56_g6' => { 397 => 0x70 }, - 'afstatus_57_h6' => { 397 => 0x72 }, - 'afstatus_58_i6' => { 397 => 0x74 }, - 'afstatus_59_a5' => { 397 => 0x76 }, - 'afstatus_60_b5' => { 397 => 0x78 }, - 'afstatus_61_c5' => { 397 => 0x7a }, - 'afstatus_62_d5' => { 397 => 0x7c }, - 'afstatus_63_e5' => { 397 => 0x7e }, - 'afstatus_64_f5' => { 397 => 0x80 }, - 'afstatus_65_g5' => { 397 => 0x82 }, - 'afstatus_66_h5' => { 397 => 0x84 }, - 'afstatus_67_i5' => { 397 => 0x86 }, - 'afstatus_68_c11' => { 397 => 0x88 }, - 'afstatus_69_d11' => { 397 => 0x8a }, - 'afstatus_70_e11' => { 397 => 0x8c }, - 'afstatus_71_f11' => { 397 => 0x8e }, - 'afstatus_72_g11' => { 397 => 0x90 }, - 'afstatus_73_b10' => { 397 => 0x92 }, - 'afstatus_74_c10' => { 397 => 0x94 }, - 'afstatus_75_d10' => { 397 => 0x96 }, - 'afstatus_76_e10' => { 397 => 0x98 }, - 'afstatus_77_f10' => { 397 => 0x9a }, - 'afstatus_78_g10' => { 397 => 0x9c }, - 'afstatus_79_h10' => { 397 => 0x9e }, - 'afstatus_80_b9' => { 397 => 0xa0 }, - 'afstatus_81_c9' => { 397 => 0xa2 }, - 'afstatus_82_d9' => { 397 => 0xa4 }, - 'afstatus_83_e9' => { 397 => 0xa6 }, - 'afstatus_84_f9' => { 397 => 0xa8 }, - 'afstatus_85_g9' => { 397 => 0xaa }, - 'afstatus_86_h9' => { 397 => 0xac }, - 'afstatus_87_b8' => { 397 => 0xae }, - 'afstatus_88_c8' => { 397 => 0xb0 }, - 'afstatus_89_d8' => { 397 => 0xb2 }, - 'afstatus_90_e8' => { 397 => 0xb4 }, - 'afstatus_91_f8' => { 397 => 0xb6 }, - 'afstatus_92_g8' => { 397 => 0xb8 }, - 'afstatus_93_h8' => { 397 => 0xba }, - 'afstatus_94_e6_center_f2-8' => { 397 => 0xbc }, - 'afstatusactivesensor' => { 179 => 0x2, 394 => [0x4,0x3b], 398 => 0x1e, 399 => 0x1b, 400 => [0x1b,0x21] }, - 'afstatusbottom' => { 179 => 0x8, 398 => 0x2a, 399 => 0x21, 400 => 0x21 }, - 'afstatusbottom-left' => { 179 => 0x12, 399 => 0x2b, 400 => 0x2b }, - 'afstatusbottom-right' => { 179 => 0x6, 399 => 0x1f, 400 => 0x1f }, - 'afstatusbottomassist-left' => { 398 => 0x28 }, - 'afstatusbottomassist-right' => { 398 => 0x2c }, - 'afstatusbottomhorizontal' => { 395 => 0x10, 396 => 0x1c }, - 'afstatusbottomvertical' => { 395 => 0x16, 396 => 0x26 }, - 'afstatuscenter-10' => { 398 => 0x34 }, - 'afstatuscenter-11' => { 398 => 0x36 }, - 'afstatuscenter-12' => { 398 => 0x38 }, - 'afstatuscenter-14' => { 398 => 0x3c }, - 'afstatuscenter-7' => { 398 => 0x2e }, - 'afstatuscenter-9' => { 398 => 0x32 }, - 'afstatuscenter-horizontal' => { 398 => 0x30 }, - 'afstatuscenter-vertical' => { 398 => 0x3a }, - 'afstatuscenterf2-8' => { 398 => 0x4c }, - 'afstatuscenterhorizontal' => { 179 => 0x2f, 395 => 0xc, 396 => 0x18, 399 => 0x2f, 400 => 0x2f }, - 'afstatuscentervertical' => { 179 => 0xc, 395 => 0x14, 396 => 0x22, 399 => 0x25, 400 => 0x25 }, - 'afstatusfarleft' => { 395 => 0x6, 398 => 0x26 }, - 'afstatusfarlefthorizontal' => { 396 => 0x4 }, - 'afstatusfarleftvertical' => { 396 => 0x12 }, - 'afstatusfarright' => { 395 => 0x18, 398 => 0x44 }, - 'afstatusfarrighthorizontal' => { 396 => 0x2c }, - 'afstatusfarrightvertical' => { 396 => 0x34 }, - 'afstatusleft' => { 179 => 0x2d, 395 => 0x2, 398 => 0x22, 399 => 0x2d, 400 => 0x2d }, - 'afstatuslefthorizontal' => { 396 => 0x6 }, - 'afstatusleftvertical' => { 396 => 0xe }, - 'afstatuslower-left' => { 395 => 0x4, 398 => 0x24 }, - 'afstatuslower-lefthorizontal' => { 396 => 0xa }, - 'afstatuslower-leftvertical' => { 396 => 0x10 }, - 'afstatuslower-middle' => { 395 => 0x22, 396 => 0x24 }, - 'afstatuslower-right' => { 395 => 0x1e, 398 => 0x4a }, - 'afstatuslower-righthorizontal' => { 396 => 0x32 }, - 'afstatuslower-rightvertical' => { 396 => 0x3a }, - 'afstatuslowerfarleft' => { 396 => 0x8 }, - 'afstatuslowerfarright' => { 396 => 0x30 }, - 'afstatusmiddlehorizontal' => { 179 => 0xa, 399 => 0x23, 400 => 0x23 }, - 'afstatusnearleft' => { 395 => 0xe, 396 => 0x1a }, - 'afstatusnearright' => { 395 => 0xa, 396 => 0x16 }, - 'afstatusright' => { 179 => 0x31, 395 => 0x1c, 398 => 0x48, 399 => 0x31, 400 => 0x31 }, - 'afstatusrighthorizontal' => { 396 => 0x2e }, - 'afstatusrightvertical' => { 396 => 0x38 }, - 'afstatustop' => { 179 => 0xe, 398 => 0x40, 399 => 0x27, 400 => 0x27 }, - 'afstatustop-left' => { 179 => 0x10, 399 => 0x29, 400 => 0x29 }, - 'afstatustop-right' => { 179 => 0x4, 399 => 0x1d, 400 => 0x1d }, - 'afstatustopassist-left' => { 398 => 0x3e }, - 'afstatustopassist-right' => { 398 => 0x42 }, - 'afstatustophorizontal' => { 395 => 0x8, 396 => 0x14 }, - 'afstatustopvertical' => { 395 => 0x12, 396 => 0x1e }, - 'afstatusupper-left' => { 395 => 0x0, 398 => 0x20 }, - 'afstatusupper-lefthorizontal' => { 396 => 0x2 }, - 'afstatusupper-leftvertical' => { 396 => 0xc }, - 'afstatusupper-middle' => { 395 => 0x20, 396 => 0x20 }, - 'afstatusupper-right' => { 395 => 0x1a, 398 => 0x46 }, - 'afstatusupper-righthorizontal' => { 396 => 0x2a }, - 'afstatusupper-rightvertical' => { 396 => 0x36 }, - 'afstatusupperfarleft' => { 396 => 0x0 }, - 'afstatusupperfarright' => { 396 => 0x28 }, + 'afstatus' => { 383 => 0x1200 }, + 'afstatus_00_b4' => { 399 => 0x0 }, + 'afstatus_01_c4' => { 399 => 0x2 }, + 'afstatus_02_d4' => { 399 => 0x4 }, + 'afstatus_03_e4' => { 399 => 0x6 }, + 'afstatus_04_f4' => { 399 => 0x8 }, + 'afstatus_05_g4' => { 399 => 0xa }, + 'afstatus_06_h4' => { 399 => 0xc }, + 'afstatus_07_b3' => { 399 => 0xe }, + 'afstatus_08_c3' => { 399 => 0x10 }, + 'afstatus_09_d3' => { 399 => 0x12 }, + 'afstatus_10_e3' => { 399 => 0x14 }, + 'afstatus_11_f3' => { 399 => 0x16 }, + 'afstatus_12_g3' => { 399 => 0x18 }, + 'afstatus_13_h3' => { 399 => 0x1a }, + 'afstatus_14_b2' => { 399 => 0x1c }, + 'afstatus_15_c2' => { 399 => 0x1e }, + 'afstatus_16_d2' => { 399 => 0x20 }, + 'afstatus_17_e2' => { 399 => 0x22 }, + 'afstatus_18_f2' => { 399 => 0x24 }, + 'afstatus_19_g2' => { 399 => 0x26 }, + 'afstatus_20_h2' => { 399 => 0x28 }, + 'afstatus_21_c1' => { 399 => 0x2a }, + 'afstatus_22_d1' => { 399 => 0x2c }, + 'afstatus_23_e1' => { 399 => 0x2e }, + 'afstatus_24_f1' => { 399 => 0x30 }, + 'afstatus_25_g1' => { 399 => 0x32 }, + 'afstatus_26_a7_vertical' => { 399 => 0x34 }, + 'afstatus_27_a6_vertical' => { 399 => 0x36 }, + 'afstatus_28_a5_vertical' => { 399 => 0x38 }, + 'afstatus_29_c7_vertical' => { 399 => 0x3a }, + 'afstatus_30_c6_vertical' => { 399 => 0x3c }, + 'afstatus_31_c5_vertical' => { 399 => 0x3e }, + 'afstatus_32_e7_vertical' => { 399 => 0x40 }, + 'afstatus_33_e6_center_vertical' => { 399 => 0x42 }, + 'afstatus_34_e5_vertical' => { 399 => 0x44 }, + 'afstatus_35_g7_vertical' => { 399 => 0x46 }, + 'afstatus_36_g6_vertical' => { 399 => 0x48 }, + 'afstatus_37_g5_vertical' => { 399 => 0x4a }, + 'afstatus_38_i7_vertical' => { 399 => 0x4c }, + 'afstatus_39_i6_vertical' => { 399 => 0x4e }, + 'afstatus_40_i5_vertical' => { 399 => 0x50 }, + 'afstatus_41_a7' => { 399 => 0x52 }, + 'afstatus_42_b7' => { 399 => 0x54 }, + 'afstatus_43_c7' => { 399 => 0x56 }, + 'afstatus_44_d7' => { 399 => 0x58 }, + 'afstatus_45_e7' => { 399 => 0x5a }, + 'afstatus_46_f7' => { 399 => 0x5c }, + 'afstatus_47_g7' => { 399 => 0x5e }, + 'afstatus_48_h7' => { 399 => 0x60 }, + 'afstatus_49_i7' => { 399 => 0x62 }, + 'afstatus_50_a6' => { 399 => 0x64 }, + 'afstatus_51_b6' => { 399 => 0x66 }, + 'afstatus_52_c6' => { 399 => 0x68 }, + 'afstatus_53_d6' => { 399 => 0x6a }, + 'afstatus_54_e6_center' => { 399 => 0x6c }, + 'afstatus_55_f6' => { 399 => 0x6e }, + 'afstatus_56_g6' => { 399 => 0x70 }, + 'afstatus_57_h6' => { 399 => 0x72 }, + 'afstatus_58_i6' => { 399 => 0x74 }, + 'afstatus_59_a5' => { 399 => 0x76 }, + 'afstatus_60_b5' => { 399 => 0x78 }, + 'afstatus_61_c5' => { 399 => 0x7a }, + 'afstatus_62_d5' => { 399 => 0x7c }, + 'afstatus_63_e5' => { 399 => 0x7e }, + 'afstatus_64_f5' => { 399 => 0x80 }, + 'afstatus_65_g5' => { 399 => 0x82 }, + 'afstatus_66_h5' => { 399 => 0x84 }, + 'afstatus_67_i5' => { 399 => 0x86 }, + 'afstatus_68_c11' => { 399 => 0x88 }, + 'afstatus_69_d11' => { 399 => 0x8a }, + 'afstatus_70_e11' => { 399 => 0x8c }, + 'afstatus_71_f11' => { 399 => 0x8e }, + 'afstatus_72_g11' => { 399 => 0x90 }, + 'afstatus_73_b10' => { 399 => 0x92 }, + 'afstatus_74_c10' => { 399 => 0x94 }, + 'afstatus_75_d10' => { 399 => 0x96 }, + 'afstatus_76_e10' => { 399 => 0x98 }, + 'afstatus_77_f10' => { 399 => 0x9a }, + 'afstatus_78_g10' => { 399 => 0x9c }, + 'afstatus_79_h10' => { 399 => 0x9e }, + 'afstatus_80_b9' => { 399 => 0xa0 }, + 'afstatus_81_c9' => { 399 => 0xa2 }, + 'afstatus_82_d9' => { 399 => 0xa4 }, + 'afstatus_83_e9' => { 399 => 0xa6 }, + 'afstatus_84_f9' => { 399 => 0xa8 }, + 'afstatus_85_g9' => { 399 => 0xaa }, + 'afstatus_86_h9' => { 399 => 0xac }, + 'afstatus_87_b8' => { 399 => 0xae }, + 'afstatus_88_c8' => { 399 => 0xb0 }, + 'afstatus_89_d8' => { 399 => 0xb2 }, + 'afstatus_90_e8' => { 399 => 0xb4 }, + 'afstatus_91_f8' => { 399 => 0xb6 }, + 'afstatus_92_g8' => { 399 => 0xb8 }, + 'afstatus_93_h8' => { 399 => 0xba }, + 'afstatus_94_e6_center_f2-8' => { 399 => 0xbc }, + 'afstatusactivesensor' => { 179 => 0x2, 396 => [0x4,0x3b], 400 => 0x1e, 401 => 0x1b, 402 => [0x1b,0x21] }, + 'afstatusbottom' => { 179 => 0x8, 400 => 0x2a, 401 => 0x21, 402 => 0x21 }, + 'afstatusbottom-left' => { 179 => 0x12, 401 => 0x2b, 402 => 0x2b }, + 'afstatusbottom-right' => { 179 => 0x6, 401 => 0x1f, 402 => 0x1f }, + 'afstatusbottomassist-left' => { 400 => 0x28 }, + 'afstatusbottomassist-right' => { 400 => 0x2c }, + 'afstatusbottomhorizontal' => { 397 => 0x10, 398 => 0x1c }, + 'afstatusbottomvertical' => { 397 => 0x16, 398 => 0x26 }, + 'afstatuscenter-10' => { 400 => 0x34 }, + 'afstatuscenter-11' => { 400 => 0x36 }, + 'afstatuscenter-12' => { 400 => 0x38 }, + 'afstatuscenter-14' => { 400 => 0x3c }, + 'afstatuscenter-7' => { 400 => 0x2e }, + 'afstatuscenter-9' => { 400 => 0x32 }, + 'afstatuscenter-horizontal' => { 400 => 0x30 }, + 'afstatuscenter-vertical' => { 400 => 0x3a }, + 'afstatuscenterf2-8' => { 400 => 0x4c }, + 'afstatuscenterhorizontal' => { 179 => 0x2f, 397 => 0xc, 398 => 0x18, 401 => 0x2f, 402 => 0x2f }, + 'afstatuscentervertical' => { 179 => 0xc, 397 => 0x14, 398 => 0x22, 401 => 0x25, 402 => 0x25 }, + 'afstatusfarleft' => { 397 => 0x6, 400 => 0x26 }, + 'afstatusfarlefthorizontal' => { 398 => 0x4 }, + 'afstatusfarleftvertical' => { 398 => 0x12 }, + 'afstatusfarright' => { 397 => 0x18, 400 => 0x44 }, + 'afstatusfarrighthorizontal' => { 398 => 0x2c }, + 'afstatusfarrightvertical' => { 398 => 0x34 }, + 'afstatusleft' => { 179 => 0x2d, 397 => 0x2, 400 => 0x22, 401 => 0x2d, 402 => 0x2d }, + 'afstatuslefthorizontal' => { 398 => 0x6 }, + 'afstatusleftvertical' => { 398 => 0xe }, + 'afstatuslower-left' => { 397 => 0x4, 400 => 0x24 }, + 'afstatuslower-lefthorizontal' => { 398 => 0xa }, + 'afstatuslower-leftvertical' => { 398 => 0x10 }, + 'afstatuslower-middle' => { 397 => 0x22, 398 => 0x24 }, + 'afstatuslower-right' => { 397 => 0x1e, 400 => 0x4a }, + 'afstatuslower-righthorizontal' => { 398 => 0x32 }, + 'afstatuslower-rightvertical' => { 398 => 0x3a }, + 'afstatuslowerfarleft' => { 398 => 0x8 }, + 'afstatuslowerfarright' => { 398 => 0x30 }, + 'afstatusmiddlehorizontal' => { 179 => 0xa, 401 => 0x23, 402 => 0x23 }, + 'afstatusnearleft' => { 397 => 0xe, 398 => 0x1a }, + 'afstatusnearright' => { 397 => 0xa, 398 => 0x16 }, + 'afstatusright' => { 179 => 0x31, 397 => 0x1c, 400 => 0x48, 401 => 0x31, 402 => 0x31 }, + 'afstatusrighthorizontal' => { 398 => 0x2e }, + 'afstatusrightvertical' => { 398 => 0x38 }, + 'afstatustop' => { 179 => 0xe, 400 => 0x40, 401 => 0x27, 402 => 0x27 }, + 'afstatustop-left' => { 179 => 0x10, 401 => 0x29, 402 => 0x29 }, + 'afstatustop-right' => { 179 => 0x4, 401 => 0x1d, 402 => 0x1d }, + 'afstatustopassist-left' => { 400 => 0x3e }, + 'afstatustopassist-right' => { 400 => 0x42 }, + 'afstatustophorizontal' => { 397 => 0x8, 398 => 0x14 }, + 'afstatustopvertical' => { 397 => 0x12, 398 => 0x1e }, + 'afstatusupper-left' => { 397 => 0x0, 400 => 0x20 }, + 'afstatusupper-lefthorizontal' => { 398 => 0x2 }, + 'afstatusupper-leftvertical' => { 398 => 0xc }, + 'afstatusupper-middle' => { 397 => 0x20, 398 => 0x20 }, + 'afstatusupper-right' => { 397 => 0x1a, 400 => 0x46 }, + 'afstatusupper-righthorizontal' => { 398 => 0x2a }, + 'afstatusupper-rightvertical' => { 398 => 0x36 }, + 'afstatusupperfarleft' => { 398 => 0x0 }, + 'afstatusupperfarright' => { 398 => 0x28 }, 'afstatusviewfinder' => { 2 => 0x12 }, - 'aftracking' => { 414 => 0x2021 }, + 'aftracking' => { 416 => 0x2021 }, 'aftrackingsensitivity' => { 2 => 0x2 }, - 'aftype' => { 394 => 0x2 }, - 'afwithshutter' => { 401 => 0x2a }, - 'aggregateissuenumber' => { 487 => 'aggregateIssueNumber' }, - 'aggregationtype' => { 487 => 'aggregationType' }, - 'agreement' => { 490 => 'agreement' }, + 'aftype' => { 396 => 0x2 }, + 'afwithshutter' => { 403 => 0x2a }, + 'aggregateissuenumber' => { 489 => 'aggregateIssueNumber' }, + 'aggregationtype' => { 489 => 'aggregationType' }, + 'agreement' => { 492 => 'agreement' }, 'ah2greeninterpolationthreshold' => { 137 => 0xe4e }, 'aiservocontinuousshooting' => { 82 => 0x15 }, 'aiservofirstimage' => { 2 => 0x5 }, 'aiservofirstimagepriority' => { 83 => 0x519 }, 'aiservoimagepriority' => { 83 => 0x503 }, 'aiservosecondimage' => { 2 => 0x6 }, 'aiservosecondimagepriority' => { 83 => 0x51a }, 'aiservotrackingmethod' => { 83 => 0x504 }, 'aiservotrackingsensitivity' => { 82 => 0x14, 83 => 0x502 }, - 'album' => { 366 => ['albm',"\xa9alb"], 368 => 'album', 374 => ['albm',"\xa9alb"], 497 => 'album' }, - 'albumartist' => { 178 => 'WM/AlbumArtist', 366 => 'aART', 374 => 'albr' }, + 'album' => { 368 => ['albm',"\xa9alb"], 370 => 'album', 376 => ['albm',"\xa9alb"], 499 => 'album' }, + 'albumartist' => { 178 => 'WM/AlbumArtist', 368 => 'aART', 376 => 'albr' }, 'albumcoverurl' => { 178 => 'WM/AlbumCoverURL' }, 'albumtitle' => { 178 => 'WM/AlbumTitle' }, - 'albumtitleid' => { 366 => 'atID' }, - 'alreadyapplied' => { 471 => 'AlreadyApplied', 473 => 'AlreadyApplied' }, - 'alternatetitle' => { 487 => 'alternateTitle' }, - 'alternatetitlea-lang' => { 487 => [\'alternateTitle','alternateTitleA-lang'] }, - 'alternatetitlea-platform' => { 487 => [\'alternateTitle','alternateTitleA-platform'] }, - 'alternatetitletext' => { 487 => [\'alternateTitle','alternateTitleText'] }, + 'albumtitleid' => { 368 => 'atID' }, + 'alreadyapplied' => { 473 => 'AlreadyApplied', 475 => 'AlreadyApplied' }, + 'alternatetitle' => { 489 => 'alternateTitle' }, + 'alternatetitlea-lang' => { 489 => [\'alternateTitle','alternateTitleA-lang'] }, + 'alternatetitlea-platform' => { 489 => [\'alternateTitle','alternateTitleA-platform'] }, + 'alternatetitletext' => { 489 => [\'alternateTitle','alternateTitleText'] }, 'altitude' => { 194 => 0x6 }, - 'alttapename' => { 497 => 'altTapeName' }, - 'alttextaccessibility' => { 482 => 'AltTextAccessibility' }, - 'alttimecode' => { 497 => 'altTimecode' }, - 'alttimecodetimeformat' => { 497 => [\'altTimecode','altTimecodeTimeFormat'] }, - 'alttimecodetimevalue' => { 497 => [\'altTimecode','altTimecodeTimeValue'] }, - 'alttimecodevalue' => { 497 => [\'altTimecode','altTimecodeValue'] }, + 'alttapename' => { 499 => 'altTapeName' }, + 'alttextaccessibility' => { 484 => 'AltTextAccessibility' }, + 'alttimecode' => { 499 => 'altTimecode' }, + 'alttimecodetimeformat' => { 499 => [\'altTimecode','altTimecodeTimeFormat'] }, + 'alttimecodetimevalue' => { 499 => [\'altTimecode','altTimecodeTimeValue'] }, + 'alttimecodevalue' => { 499 => [\'altTimecode','altTimecodeValue'] }, 'ambienceselection' => { 4 => 0x1 }, - 'ambientinfrared' => { 377 => 0x5c }, - 'ambientlight' => { 377 => 0x5e }, - 'ambienttemperature' => { 118 => 0x9400, 375 => 0x14, 376 => 0x46, 377 => 0x50, 438 => 0x4, 478 => 'Temperature' }, - 'ambienttemperaturefahrenheit' => { 375 => 0x13, 376 => 0x44, 377 => 0x4e }, + 'ambientinfrared' => { 379 => 0x5c }, + 'ambientlight' => { 379 => 0x5e }, + 'ambienttemperature' => { 118 => 0x9400, 377 => 0x14, 378 => 0x46, 379 => 0x50, 440 => 0x4, 480 => 'Temperature' }, + 'ambienttemperaturefahrenheit' => { 377 => 0x13, 378 => 0x44, 379 => 0x4e }, 'analogbalance' => { 118 => 0xc627 }, 'analogcaptureiso' => { 137 => 0x89e }, 'analogisotable' => { 137 => 0x89d }, - 'androidversion' => { 368 => 'com.android.version' }, + 'androidversion' => { 370 => 'com.android.version' }, 'angleadj' => { 102 => 0x10003, 108 => 0x8b }, - 'angleinforoll' => { 467 => 'AngleInfoRoll' }, - 'angleinfoyaw' => { 467 => 'AngleInfoYaw' }, - 'anti-blur' => { 414 => 0xb04b }, + 'angleinforoll' => { 469 => 'AngleInfoRoll' }, + 'angleinfoyaw' => { 469 => 'AngleInfoYaw' }, + 'anti-blur' => { 416 => 0xb04b }, 'antialiasstrength' => { 118 => 0xc632 }, - 'aperturelock' => { 275 => '38.2', 277 => '38.2', 278 => '38.2', 287 => '38.2', 288 => '38.2' }, - 'aperturemode' => { 374 => 'apmd' }, + 'aperturelock' => { 277 => '38.2', 279 => '38.2', 280 => '38.2', 289 => '38.2', 290 => '38.2' }, + 'aperturemode' => { 376 => 'apmd' }, 'aperturerange' => { 83 => 0x10d }, - 'apertureringuse' => { 330 => '1.4' }, - 'aperturesetting' => { 183 => 0x7, 401 => 0x30, 402 => 0x29, 403 => 0x1 }, - 'aperturevalue' => { 92 => 0x2, 118 => 0x9202, 296 => 0x1002, 358 => 0x401, 477 => 'ApertureValue' }, - 'appinfo' => { 451 => 'AppInfo' }, - 'appinfoapplication' => { 451 => [\'AppInfo','AppInfoApplication'] }, - 'appinfoitemuri' => { 451 => [\'AppInfo','AppInfoItemURI'] }, - 'appinfoversion' => { 451 => [\'AppInfo','AppInfoVersion'] }, - 'applekeywords' => { 300 => 'AAPL:Keywords' }, - 'applephotosvariationidentifier' => { 368 => 'apple.photos.variation-identifier' }, - 'applestoreaccount' => { 366 => 'apID' }, - 'applestoreaccounttype' => { 366 => 'akID' }, - 'applestorecatalogid' => { 366 => 'cnID' }, - 'applestorecountry' => { 366 => 'sfID' }, + 'apertureringuse' => { 332 => '1.4' }, + 'aperturesetting' => { 183 => 0x7, 403 => 0x30, 404 => 0x29, 405 => 0x1 }, + 'aperturevalue' => { 92 => 0x2, 118 => 0x9202, 298 => 0x1002, 360 => 0x401, 479 => 'ApertureValue' }, + 'appinfo' => { 453 => 'AppInfo' }, + 'appinfoapplication' => { 453 => [\'AppInfo','AppInfoApplication'] }, + 'appinfoitemuri' => { 453 => [\'AppInfo','AppInfoItemURI'] }, + 'appinfoversion' => { 453 => [\'AppInfo','AppInfoVersion'] }, + 'applekeywords' => { 302 => 'AAPL:Keywords' }, + 'applephotosvariationidentifier' => { 370 => 'apple.photos.variation-identifier' }, + 'applestoreaccount' => { 368 => 'apID' }, + 'applestoreaccounttype' => { 368 => 'akID' }, + 'applestorecatalogid' => { 368 => 'cnID' }, + 'applestorecountry' => { 368 => 'sfID' }, 'applicationkeystring' => { 137 => 0x400 }, - 'applicationnotes' => { 118 => 0x2bc, 319 => 0x2bc }, + 'applicationnotes' => { 118 => 0x2bc, 321 => 0x2bc }, 'applicationrecordversion' => { 130 => 0x0 }, 'applyshootingmeteringmode' => { 83 => 0x10e }, - 'approved' => { 479 => 'Approved' }, - 'approvedby' => { 479 => 'ApprovedBy' }, - 'approximatefnumber' => { 309 => 0x313, 316 => 0x3406 }, - 'approximatefocusdistance' => { 468 => 'ApproximateFocusDistance' }, - 'appversion' => { 481 => 'AppVersion' }, - 'aps-csizecapture' => { 432 => 0x114, 433 => [0x114,0x1eb,0x1ee,0x21a,0x21c] }, + 'approved' => { 481 => 'Approved' }, + 'approvedby' => { 481 => 'ApprovedBy' }, + 'approximatefnumber' => { 311 => 0x313, 318 => 0x3406 }, + 'approximatefocusdistance' => { 470 => 'ApproximateFocusDistance' }, + 'appversion' => { 483 => 'AppVersion' }, + 'aps-csizecapture' => { 434 => 0x114, 435 => [0x114,0x1eb,0x1ee,0x21a,0x21c] }, 'aquahsl' => { 102 => 0x20914 }, 'armidentifier' => { 131 => 0x78 }, 'armversion' => { 131 => 0x7a }, - 'arranger' => { 366 => "\xa9arg", 374 => "\xa9arg" }, - 'arrangerkeywords' => { 374 => "\xa9ark" }, - 'artdirector' => { 366 => "\xa9ard" }, - 'artfilter' => { 291 => 0x529 }, - 'artfiltereffect' => { 291 => 0x52f }, - 'artist' => { 118 => 0x13b, 304 => 'Artist', 349 => 0x22e, 366 => "\xa9ART", 368 => 'artist', 374 => "\xa9ART", 493 => 'Artist', 497 => 'artist' }, + 'arranger' => { 368 => "\xa9arg", 376 => "\xa9arg" }, + 'arrangerkeywords' => { 376 => "\xa9ark" }, + 'artdirector' => { 368 => "\xa9ard" }, + 'artfilter' => { 293 => 0x529 }, + 'artfiltereffect' => { 293 => 0x52f }, + 'artist' => { 118 => 0x13b, 306 => 'Artist', 351 => 0x22e, 368 => "\xa9ART", 370 => 'artist', 376 => "\xa9ART", 495 => 'Artist', 499 => 'artist' }, 'artmode' => { 112 => 0x301b }, 'artmodeparameters' => { 112 => 0x310b }, - 'artwork' => { 368 => 'artwork' }, - 'artworkcircadatecreated' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCircaDateCreated'] }, - 'artworkcontentdescription' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOContentDescription'] }, - 'artworkcontributiondescription' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOContributionDescription'] }, - 'artworkcopyrightnotice' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCopyrightNotice'] }, - 'artworkcopyrightownerid' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerId'] }, - 'artworkcopyrightownername' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerName'] }, - 'artworkcreator' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCreator'] }, - 'artworkcreatorid' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCreatorId'] }, - 'artworkdatecreated' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAODateCreated'] }, - 'artworklicensorid' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorId'] }, - 'artworklicensorname' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorName'] }, - 'artworkorobject' => { 483 => 'ArtworkOrObject' }, - 'artworkphysicaldescription' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOPhysicalDescription'] }, - 'artworksource' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOSource'] }, - 'artworksourceinventoryno' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvNo'] }, - 'artworksourceinvurl' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvURL'] }, - 'artworkstyleperiod' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOStylePeriod'] }, - 'artworktitle' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOTitle'] }, - 'aspectframe' => { 295 => 0x1113 }, - 'aspectratio' => { 5 => 0x0, 295 => 0x1112, 349 => 0x80, 401 => 0x55, 402 => 0x55, 403 => 0xa }, - 'assetid' => { 461 => 'AssetID' }, + 'artwork' => { 370 => 'artwork' }, + 'artworkcircadatecreated' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCircaDateCreated'] }, + 'artworkcontentdescription' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOContentDescription'] }, + 'artworkcontributiondescription' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOContributionDescription'] }, + 'artworkcopyrightnotice' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCopyrightNotice'] }, + 'artworkcopyrightownerid' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerId'] }, + 'artworkcopyrightownername' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerName'] }, + 'artworkcreator' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCreator'] }, + 'artworkcreatorid' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCreatorId'] }, + 'artworkdatecreated' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAODateCreated'] }, + 'artworklicensorid' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorId'] }, + 'artworklicensorname' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorName'] }, + 'artworkorobject' => { 485 => 'ArtworkOrObject' }, + 'artworkphysicaldescription' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOPhysicalDescription'] }, + 'artworksource' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOSource'] }, + 'artworksourceinventoryno' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvNo'] }, + 'artworksourceinvurl' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvURL'] }, + 'artworkstyleperiod' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOStylePeriod'] }, + 'artworktitle' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOTitle'] }, + 'aspectframe' => { 297 => 0x1113 }, + 'aspectratio' => { 5 => 0x0, 297 => 0x1112, 351 => 0x80, 403 => 0x55, 404 => 0x55, 405 => 0xa }, + 'assetid' => { 463 => 'AssetID' }, 'asshoticcprofile' => { 118 => 0xc68f }, 'asshotneutral' => { 118 => 0xc628 }, 'asshotpreprofilematrix' => { 118 => 0xc690 }, 'asshotprofilename' => { 118 => 0xc6f6 }, 'asshotwhitexy' => { 118 => 0xc629 }, - 'assignbktbutton' => { 274 => '4.2', 275 => '16.1', 277 => '16.1', 278 => '16.1', 287 => '16.1', 288 => '16.1' }, + 'assignbktbutton' => { 276 => '4.2', 277 => '16.1', 279 => '16.1', 280 => '16.1', 289 => '16.1', 290 => '16.1' }, 'assignfuncbutton' => { 83 => 0x70b }, - 'assignmb-d17af-onbutton' => { 278 => '79.1' }, - 'assignmb-d17funcbutton' => { 278 => '67.1' }, - 'assignmb-d17funcbuttonplusdials' => { 278 => '68.1' }, - 'assignmb-d18af-onbutton' => { 288 => '79.1' }, - 'assignmb-d18funcbutton' => { 288 => '67.1' }, - 'assignmb-d18funcbuttonplusdials' => { 288 => '68.1' }, - 'assignmoviefunc1buttonplusdials' => { 277 => '75.1', 278 => '75.1', 288 => '75.1' }, - 'assignmoviefunc2button' => { 277 => '82.1', 278 => '82.1', 288 => '82.1' }, - 'assignmoviepreviewbuttonplusdials' => { 277 => '75.2', 278 => '75.2', 288 => '75.2' }, - 'assignmovierecordbutton' => { 275 => '43.2', 287 => '45.1' }, - 'assignmovierecordbuttonplusdials' => { 277 => '45.1', 278 => '45.1', 288 => '45.1' }, - 'assignmoviesubselector' => { 277 => '74.1', 278 => '74.1', 288 => '74.1' }, - 'assignmoviesubselectorplusdials' => { 277 => '76.1', 278 => '76.1', 288 => '76.1' }, - 'assignremotefnbutton' => { 275 => '54.1', 287 => '51.1' }, + 'assignmb-d17af-onbutton' => { 280 => '79.1' }, + 'assignmb-d17funcbutton' => { 280 => '67.1' }, + 'assignmb-d17funcbuttonplusdials' => { 280 => '68.1' }, + 'assignmb-d18af-onbutton' => { 290 => '79.1' }, + 'assignmb-d18funcbutton' => { 290 => '67.1' }, + 'assignmb-d18funcbuttonplusdials' => { 290 => '68.1' }, + 'assignmoviefunc1buttonplusdials' => { 279 => '75.1', 280 => '75.1', 290 => '75.1' }, + 'assignmoviefunc2button' => { 279 => '82.1', 280 => '82.1', 290 => '82.1' }, + 'assignmoviepreviewbuttonplusdials' => { 279 => '75.2', 280 => '75.2', 290 => '75.2' }, + 'assignmovierecordbutton' => { 277 => '43.2', 289 => '45.1' }, + 'assignmovierecordbuttonplusdials' => { 279 => '45.1', 280 => '45.1', 290 => '45.1' }, + 'assignmoviesubselector' => { 279 => '74.1', 280 => '74.1', 290 => '74.1' }, + 'assignmoviesubselectorplusdials' => { 279 => '76.1', 280 => '76.1', 290 => '76.1' }, + 'assignremotefnbutton' => { 277 => '54.1', 289 => '51.1' }, 'assistbuttonfunction' => { 81 => 0xd }, 'atcaptureusercrop' => { 137 => 0x943 }, - 'attributionname' => { 469 => 'attributionName' }, - 'attributionurl' => { 469 => 'attributionURL' }, - 'audio' => { 314 => 0x20 }, - 'audiobitrate' => { 66 => 0x6c, 483 => 'audioBitRate' }, - 'audiobitratemode' => { 483 => 'audioBitRateMode' }, - 'audiobitspersample' => { 483 => 'audioBitsPerSample' }, - 'audiochannelcount' => { 483 => 'audioChannelCount' }, + 'attributionname' => { 471 => 'attributionName' }, + 'attributionurl' => { 471 => 'attributionURL' }, + 'audio' => { 316 => 0x20 }, + 'audiobitrate' => { 66 => 0x6c, 485 => 'audioBitRate' }, + 'audiobitratemode' => { 485 => 'audioBitRateMode' }, + 'audiobitspersample' => { 485 => 'audioBitsPerSample' }, + 'audiochannelcount' => { 485 => 'audioChannelCount' }, 'audiochannels' => { 66 => 0x70 }, - 'audiochanneltype' => { 497 => 'audioChannelType' }, + 'audiochanneltype' => { 499 => 'audioChannelType' }, 'audiocompression' => { 83 => 0x816, 154 => 'Compression' }, - 'audiocompressor' => { 497 => 'audioCompressor' }, - 'audiodata' => { 453 => 'Data' }, + 'audiocompressor' => { 499 => 'audioCompressor' }, + 'audiodata' => { 455 => 'Data' }, 'audioduration' => { 130 => 0x99 }, - 'audiogain' => { 368 => 'player.movie.audio.gain' }, - 'audiomimetype' => { 453 => 'Mime' }, - 'audiomoddate' => { 497 => 'audioModDate' }, + 'audiogain' => { 370 => 'player.movie.audio.gain' }, + 'audiomimetype' => { 455 => 'Mime' }, + 'audiomoddate' => { 499 => 'audioModDate' }, 'audiooutcue' => { 130 => 0x9a }, - 'audiosamplerate' => { 66 => 0x6e, 497 => 'audioSampleRate' }, - 'audiosampletype' => { 497 => 'audioSampleType' }, + 'audiosamplerate' => { 66 => 0x6e, 499 => 'audioSampleRate' }, + 'audiosampletype' => { 499 => 'audioSampleType' }, 'audiosamplingrate' => { 130 => 0x97 }, 'audiosamplingresolution' => { 130 => 0x98 }, 'audiotype' => { 130 => 0x96 }, - 'author' => { 156 => 'Author', 300 => 'Author', 304 => 'Author', 365 => 'Author', 366 => ['auth',"\xa9aut"], 368 => 'author', 374 => 'auth', 466 => 'author', 484 => 'Author', 495 => 'Author' }, - 'authorsposition' => { 485 => 'AuthorsPosition' }, + 'author' => { 156 => 'Author', 302 => 'Author', 306 => 'Author', 367 => 'Author', 368 => ['auth',"\xa9aut"], 370 => 'author', 376 => 'auth', 468 => 'author', 486 => 'Author', 497 => 'Author' }, + 'authorsposition' => { 487 => 'AuthorsPosition' }, 'authorurl' => { 178 => 'WM/AuthorURL' }, 'autoafpointcolortracking' => { 83 => 0x51c }, 'autoafpointseleositraf' => { 2 => 0xa }, - 'autoaperture' => { 340 => '0.1' }, - 'autobracket' => { 391 => 0x19 }, - 'autobracketing' => { 126 => 0x1100, 349 => 0x18, 381 => 0x1007 }, - 'autobracketingmode' => { 286 => '12.3' }, - 'autobracketingset' => { 286 => '12.1' }, - 'autobracketmodem' => { 274 => '21.2', 275 => '13.3', 277 => '13.2', 278 => '13.2', 283 => '26.2', 287 => '13.3', 288 => '13.2' }, - 'autobracketorder' => { 183 => 0x43, 274 => '21.3', 275 => '13.2', 277 => '13.1', 278 => '13.1', 283 => '26.3', 284 => '12.2', 285 => '2.2', 286 => '12.2', 287 => '13.2', 288 => '13.1', 289 => '13.2' }, - 'autobracketset' => { 274 => '21.1', 275 => '13.1', 279 => '11.1', 280 => '12.1', 281 => '12.1', 283 => '26.1', 284 => '12.1', 285 => '2.1', 287 => '13.1', 289 => '13.1' }, - 'autobrightness' => { 471 => 'AutoBrightness', 473 => 'AutoBrightness' }, - 'autocontrast' => { 471 => 'AutoContrast', 473 => 'AutoContrast' }, - 'autodistortioncontrol' => { 204 => 0x4, 259 => 0x143 }, + 'autoaperture' => { 342 => '0.1' }, + 'autobracket' => { 393 => 0x19 }, + 'autobracketing' => { 126 => 0x1100, 351 => 0x18, 383 => 0x1007 }, + 'autobracketingmode' => { 288 => '12.3' }, + 'autobracketingset' => { 288 => '12.1' }, + 'autobracketmodem' => { 276 => '21.2', 277 => '13.3', 279 => '13.2', 280 => '13.2', 285 => '26.2', 289 => '13.3', 290 => '13.2' }, + 'autobracketorder' => { 183 => 0x43, 276 => '21.3', 277 => '13.2', 279 => '13.1', 280 => '13.1', 285 => '26.3', 286 => '12.2', 287 => '2.2', 288 => '12.2', 289 => '13.2', 290 => '13.1', 291 => '13.2' }, + 'autobracketset' => { 276 => '21.1', 277 => '13.1', 281 => '11.1', 282 => '12.1', 283 => '12.1', 285 => '26.1', 286 => '12.1', 287 => '2.1', 289 => '13.1', 291 => '13.1' }, + 'autobrightness' => { 473 => 'AutoBrightness', 475 => 'AutoBrightness' }, + 'autocontrast' => { 473 => 'AutoContrast', 475 => 'AutoContrast' }, + 'autodistortioncontrol' => { 204 => 0x4, 261 => 0x143 }, 'autodynamicrange' => { 126 => 0x140b }, - 'autoexposure' => { 471 => 'AutoExposure', 473 => 'AutoExposure' }, + 'autoexposure' => { 473 => 'AutoExposure', 475 => 'AutoExposure' }, 'autoexposurebracketing' => { 76 => 0x10 }, - 'autoflashisosensitivity' => { 277 => '38.5', 278 => '38.5', 288 => '38.5' }, - 'autofocus' => { 294 => 0x209 }, - 'autofp' => { 285 => '7.3', 289 => '31.4' }, - 'autoiso' => { 76 => 0x1, 112 => 0x3008, 276 => '1.1', 285 => '1.1' }, - 'autoisomax' => { 276 => '1.2', 285 => '1.2' }, - 'autoisominshutterspeed' => { 276 => '1.3', 285 => '1.3' }, - 'autolateralca' => { 471 => 'AutoLateralCA', 473 => 'AutoLateralCA' }, + 'autoflashisosensitivity' => { 279 => '38.5', 280 => '38.5', 290 => '38.5' }, + 'autofocus' => { 296 => 0x209 }, + 'autofp' => { 287 => '7.3', 291 => '31.4' }, + 'autoiso' => { 76 => 0x1, 112 => 0x3008, 278 => '1.1', 287 => '1.1' }, + 'autoisomax' => { 278 => '1.2', 287 => '1.2' }, + 'autoisominshutterspeed' => { 278 => '1.3', 287 => '1.3' }, + 'autolateralca' => { 473 => 'AutoLateralCA', 475 => 'AutoLateralCA' }, 'autolightingoptimizer' => { 16 => 0xbe, 17 => 0xbf, 20 => 0xbf, 62 => 0x2, 83 => 0x204, 102 => 0x20500, 108 => 0x6f }, 'autolightingoptimizeron' => { 102 => '0x20500.0', 108 => 0x6e }, - 'autoportraitframed' => { 414 => 0x2016 }, - 'autoredeye' => { 267 => 0xfe28a44f }, + 'autoportraitframed' => { 416 => 0x2016 }, + 'autoredeye' => { 269 => 0xfe28a44f }, 'autorotate' => { 76 => 0x1b }, - 'autoshadows' => { 471 => 'AutoShadows', 473 => 'AutoShadows' }, - 'autotone' => { 471 => 'AutoTone', 473 => 'AutoTone' }, - 'autotonedigest' => { 471 => 'AutoToneDigest', 473 => 'AutoToneDigest' }, - 'autotonedigestnosat' => { 471 => 'AutoToneDigestNoSat', 473 => 'AutoToneDigestNoSat' }, - 'autowhiteversion' => { 471 => 'AutoWhiteVersion', 473 => 'AutoWhiteVersion' }, + 'autoshadows' => { 473 => 'AutoShadows', 475 => 'AutoShadows' }, + 'autotone' => { 473 => 'AutoTone', 475 => 'AutoTone' }, + 'autotonedigest' => { 473 => 'AutoToneDigest', 475 => 'AutoToneDigest' }, + 'autotonedigestnosat' => { 473 => 'AutoToneDigestNoSat', 475 => 'AutoToneDigestNoSat' }, + 'autowhiteversion' => { 473 => 'AutoWhiteVersion', 475 => 'AutoWhiteVersion' }, 'auxiliarylens' => { 224 => 0x82 }, - 'avaperturesetting' => { 330 => 0x13 }, + 'avaperturesetting' => { 332 => 0x13 }, 'averageblacklevel' => { 45 => 0xe7, 47 => 0xfb, 48 => 0x114, 49 => 0x146 }, 'averagelv' => { 186 => 0x38 }, 'avsettingwithoutlens' => { 83 => 0x707 }, 'azimuth' => { 164 => 'Azimuth' }, - 'babyage' => { 314 => [0x8010,0x33] }, - 'babyname' => { 314 => 0x66 }, - 'backgroundalpha' => { 492 => 'bgalpha' }, - 'balance' => { 368 => 'player.movie.audio.balance' }, - 'baseexposurecompensation' => { 330 => 0x15 }, - 'baseiso' => { 76 => 0x2, 96 => 0x101c, 137 => 0x903, 316 => 0x312a, 444 => 0x6 }, + 'babyage' => { 316 => [0x8010,0x33] }, + 'babyname' => { 316 => 0x66 }, + 'backgroundalpha' => { 494 => 'bgalpha' }, + 'balance' => { 370 => 'player.movie.audio.balance' }, + 'baseexposurecompensation' => { 332 => 0x15 }, + 'baseiso' => { 76 => 0x2, 96 => 0x101c, 137 => 0x903, 318 => 0x312a, 446 => 0x6 }, 'baseisodaylight' => { 137 => 0x910 }, 'baseisoflash' => { 137 => 0x913 }, 'baseisofluorescent' => { 137 => 0x912 }, 'baseisotungsten' => { 137 => 0x911 }, 'baselineexposure' => { 118 => 0xc62a }, 'baselineexposureoffset' => { 118 => 0xc7a5 }, 'baselinenoise' => { 118 => 0xc62b }, 'baselinesharpness' => { 118 => 0xc62c }, - 'baseurl' => { 495 => 'BaseURL' }, - 'bass' => { 368 => 'player.movie.audio.bass' }, - 'batterylevel' => { 314 => 0x38, 401 => 0x51, 405 => 0xc, 406 => 0x4, 407 => 0x4, 445 => 0x7 }, - 'batterylevelgrip1' => { 445 => 0x6 }, - 'batterylevelgrip2' => { 445 => 0x8 }, - 'batteryorder' => { 274 => '12.5', 283 => '13.2', 284 => '2.1', 287 => '3.1' }, - 'batterystate' => { 183 => 0x60, 401 => 0x50, 407 => 0x14 }, - 'batterytemperature' => { 405 => 0x1, 407 => 0x2, 445 => 0x5 }, - 'batterytype' => { 63 => 0x38, 377 => 0x66 }, - 'batteryunknown' => { 405 => 0x2, 407 => 0x0 }, - 'batteryvoltage' => { 137 => 0x408, 375 => 0x2a, 376 => 0x49, 377 => 0x62, 405 => 0x8 }, - 'batteryvoltage1' => { 407 => 0x6 }, - 'batteryvoltage2' => { 407 => 0x8 }, - 'batteryvoltageavg' => { 377 => 0x64 }, + 'baseurl' => { 497 => 'BaseURL' }, + 'bass' => { 370 => 'player.movie.audio.bass' }, + 'batterylevel' => { 316 => 0x38, 403 => 0x51, 407 => 0xc, 408 => 0x4, 409 => 0x4, 447 => 0x7 }, + 'batterylevelgrip1' => { 447 => 0x6 }, + 'batterylevelgrip2' => { 447 => 0x8 }, + 'batteryorder' => { 276 => '12.5', 285 => '13.2', 286 => '2.1', 289 => '3.1' }, + 'batterystate' => { 183 => 0x60, 403 => 0x50, 409 => 0x14 }, + 'batterytemperature' => { 407 => 0x1, 409 => 0x2, 447 => 0x5 }, + 'batterytype' => { 63 => 0x38, 379 => 0x66 }, + 'batteryunknown' => { 407 => 0x2, 409 => 0x0 }, + 'batteryvoltage' => { 137 => 0x408, 377 => 0x2a, 378 => 0x49, 379 => 0x62, 407 => 0x8 }, + 'batteryvoltage1' => { 409 => 0x6 }, + 'batteryvoltage2' => { 409 => 0x8 }, + 'batteryvoltageavg' => { 379 => 0x64 }, 'bayergreensplit' => { 118 => 0xc62d }, 'bayerpattern' => { 136 => 0xf902, 187 => 0x17 }, - 'beatsperminute' => { 366 => 'tmpo' }, - 'beatspliceparams' => { 497 => 'beatSpliceParams' }, - 'beatspliceparamsriseindecibel' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInDecibel'] }, - 'beatspliceparamsriseintimeduration' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDuration'] }, - 'beatspliceparamsriseintimedurationscale' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationScale'] }, - 'beatspliceparamsriseintimedurationvalue' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationValue'] }, - 'beatspliceparamsusefilebeatsmarker' => { 497 => [\'beatSpliceParams','beatSpliceParamsUseFileBeatsMarker'] }, - 'beep' => { 274 => '13.1', 275 => '5.4', 276 => '0.1', 279 => '2.1', 280 => '3.1', 281 => '3.1', 283 => '10.1', 285 => '0.1', 287 => '5.5', 289 => '4.1' }, - 'beeppitch' => { 284 => '3.1' }, - 'beepvolume' => { 284 => '4.5' }, + 'beatsperminute' => { 368 => 'tmpo' }, + 'beatspliceparams' => { 499 => 'beatSpliceParams' }, + 'beatspliceparamsriseindecibel' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInDecibel'] }, + 'beatspliceparamsriseintimeduration' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDuration'] }, + 'beatspliceparamsriseintimedurationscale' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationScale'] }, + 'beatspliceparamsriseintimedurationvalue' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationValue'] }, + 'beatspliceparamsusefilebeatsmarker' => { 499 => [\'beatSpliceParams','beatSpliceParamsUseFileBeatsMarker'] }, + 'beep' => { 276 => '13.1', 277 => '5.4', 278 => '0.1', 281 => '2.1', 282 => '3.1', 283 => '3.1', 285 => '10.1', 287 => '0.1', 289 => '5.5', 291 => '4.1' }, + 'beeppitch' => { 286 => '3.1' }, + 'beepvolume' => { 286 => '4.5' }, 'bestqualityscale' => { 118 => 0xc65c }, 'bestshotmode' => { 112 => 0x3007 }, - 'bitdepth' => { 161 => 'BitDepth', 187 => 0x11, 232 => 0x41 }, + 'bitdepth' => { 161 => 'BitDepth', 187 => 0x11, 233 => 0x41 }, 'bitspercomponent' => { 132 => 0x87 }, - 'bitspersample' => { 118 => 0x102, 319 => 0xa, 493 => 'BitsPerSample' }, + 'bitspersample' => { 118 => 0x102, 321 => 0xa, 495 => 'BitsPerSample' }, 'blackacquirerows' => { 137 => 0x18ba }, - 'blacklevel' => { 118 => 0xc61a, 202 => 0x20, 224 => 0x3d, 296 => [0x401,0x1012], 358 => 0x21d }, - 'blacklevel2' => { 295 => 0x600, 299 => 0x600 }, - 'blacklevelblue' => { 319 => 0x1e }, + 'blacklevel' => { 118 => 0xc61a, 202 => 0x20, 224 => 0x3d, 298 => [0x401,0x1012], 360 => 0x21d }, + 'blacklevel2' => { 297 => 0x600, 301 => 0x600 }, + 'blacklevelblue' => { 321 => 0x1e }, 'blacklevelbottom' => { 137 => 0x3f0 }, - 'blackleveldata' => { 358 => 0x223 }, + 'blackleveldata' => { 360 => 0x223 }, 'blackleveldeltah' => { 118 => 0xc61b }, 'blackleveldeltav' => { 118 => 0xc61c }, - 'blacklevelgreen' => { 319 => 0x1d }, - 'blacklevelred' => { 319 => 0x1c }, + 'blacklevelgreen' => { 321 => 0x1d }, + 'blacklevelred' => { 321 => 0x1c }, 'blacklevelrepeatdim' => { 118 => 0xc619 }, 'blacklevelrough' => { 137 => 0x40e }, 'blacklevelroughafter' => { 137 => 0x416 }, 'blacklevels' => { 35 => 0x1d }, 'blackleveltop' => { 137 => 0x3ef }, - 'blackpoint' => { 349 => 0x200 }, - 'blacks2012' => { 471 => 'Blacks2012', 473 => 'Blacks2012' }, - 'blacksadj' => { 448 => 0x9018 }, - 'bleachbypasstoning' => { 349 => 0x7f }, - 'blockshotafresponse' => { 277 => '1.5', 278 => '1.5', 288 => '1.5' }, - 'blogtitle' => { 487 => 'blogTitle' }, - 'blogurl' => { 487 => 'blogURL' }, - 'bluebalance' => { 296 => 0x1018, 319 => 0x12, 349 => 0x1b }, + 'blackpoint' => { 351 => 0x200 }, + 'blacks2012' => { 473 => 'Blacks2012', 475 => 'Blacks2012' }, + 'blacksadj' => { 450 => 0x9018 }, + 'bleachbypasstoning' => { 351 => 0x7f }, + 'blockshotafresponse' => { 279 => '1.5', 280 => '1.5', 290 => '1.5' }, + 'blogtitle' => { 489 => 'blogTitle' }, + 'blogurl' => { 489 => 'blogURL' }, + 'bluebalance' => { 298 => 0x1018, 321 => 0x12, 351 => 0x1b }, 'bluecurvelimits' => { 107 => 0x1fe }, 'bluecurvepoints' => { 106 => 0x79, 107 => 0x1d4 }, 'bluehsl' => { 102 => 0x20915 }, - 'bluehue' => { 471 => 'BlueHue', 473 => 'BlueHue' }, - 'bluesaturation' => { 471 => 'BlueSaturation', 473 => 'BlueSaturation' }, - 'bluratinfinity' => { 457 => 'BlurAtInfinity' }, - 'blurcontrol' => { 349 => 0x82 }, + 'bluehue' => { 473 => 'BlueHue', 475 => 'BlueHue' }, + 'bluesaturation' => { 473 => 'BlueSaturation', 475 => 'BlueSaturation' }, + 'bluratinfinity' => { 459 => 'BlurAtInfinity' }, + 'blurcontrol' => { 351 => 0x82 }, 'blurwarning' => { 126 => 0x1300 }, - 'bodybatteryadload' => { 328 => 0x3 }, - 'bodybatteryadnoload' => { 328 => 0x2 }, - 'bodybatterystate' => { 328 => '1.1' }, - 'bodybatteryvoltage1' => { 328 => 0x2 }, - 'bodybatteryvoltage2' => { 328 => 0x4 }, - 'bodybatteryvoltage3' => { 328 => 0x6 }, - 'bodybatteryvoltage4' => { 328 => 0x8 }, - 'bodyfirmware' => { 382 => 0x0 }, - 'bodyfirmwareversion' => { 292 => 0x104, 293 => 0x100, 296 => 0x104 }, - 'bodyserialnumber' => { 382 => 0x10 }, - 'bookedition' => { 487 => 'bookEdition' }, - 'bootloaderversion' => { 376 => 0x26 }, + 'bodybatteryadload' => { 330 => 0x3 }, + 'bodybatteryadnoload' => { 330 => 0x2 }, + 'bodybatterystate' => { 330 => '1.1' }, + 'bodybatteryvoltage1' => { 330 => 0x2 }, + 'bodybatteryvoltage2' => { 330 => 0x4 }, + 'bodybatteryvoltage3' => { 330 => 0x6 }, + 'bodybatteryvoltage4' => { 330 => 0x8 }, + 'bodyfirmware' => { 384 => 0x0 }, + 'bodyfirmwareversion' => { 294 => 0x104, 295 => 0x100, 298 => 0x104 }, + 'bodyserialnumber' => { 384 => 0x10 }, + 'bookedition' => { 489 => 'bookEdition' }, + 'bootloaderversion' => { 378 => 0x26 }, 'bracketmode' => { 57 => 0x3 }, 'bracketsequence' => { 112 => 0x301d }, - 'bracketsettings' => { 314 => 0x45 }, - 'bracketshotnumber' => { 57 => 0x5, 330 => 0x9, 412 => 0x2b }, - 'bracketshotnumber2' => { 412 => 0x2d }, + 'bracketsettings' => { 316 => 0x45 }, + 'bracketshotnumber' => { 57 => 0x5, 332 => 0x9, 414 => 0x2b }, + 'bracketshotnumber2' => { 414 => 0x2d }, 'bracketstep' => { 180 => 0xe }, 'bracketvalue' => { 57 => 0x4 }, - 'brightness' => { 118 => 0xfe53, 155 => 'Brightness', 175 => 'Brightness', 180 => 0x2c, 226 => 0x34, 227 => 0x39, 228 => 0x41, 368 => 'player.movie.visual.brightness', 375 => 0x25, 377 => 0x54, 401 => 0x22, 414 => 0x2007, 471 => 'Brightness', 473 => 'Brightness' }, - 'brightnessadj' => { 107 => 0x114, 260 => 0x0, 270 => 0x2d, 448 => 0x8018 }, - 'brightnessvalue' => { 118 => 0x9203, 186 => [0x691,0x49c3], 296 => 0x1003, 419 => 0x1e, 422 => 0x1140, 423 => 0x1140, 424 => 0x111c, 425 => 0x1198, 426 => 0x1174, 427 => 0x102c, 428 => 0x224, 429 => 0x224, 430 => 0x219, 477 => 'BrightnessValue' }, + 'brightness' => { 118 => 0xfe53, 155 => 'Brightness', 175 => 'Brightness', 180 => 0x2c, 227 => 0x34, 228 => 0x39, 229 => 0x41, 370 => 'player.movie.visual.brightness', 377 => 0x25, 379 => 0x54, 403 => 0x22, 416 => 0x2007, 473 => 'Brightness', 475 => 'Brightness' }, + 'brightnessadj' => { 107 => 0x114, 262 => 0x0, 272 => 0x2d, 450 => 0x8018 }, + 'brightnessvalue' => { 118 => 0x9203, 186 => [0x691,0x49c3], 298 => 0x1003, 421 => 0x1e, 424 => 0x1140, 425 => 0x1140, 426 => 0x111c, 427 => 0x1198, 428 => 0x1174, 429 => 0x102c, 430 => 0x224, 431 => 0x224, 432 => 0x219, 479 => 'BrightnessValue' }, 'buildnumber' => { 190 => 0x5500 }, 'bulbduration' => { 76 => 0x18 }, 'burstcount' => { 137 => 0x40d }, - 'burstid' => { 454 => 'BurstID' }, - 'burstmode' => { 139 => 0xa, 314 => 0x2a }, + 'burstid' => { 456 => 'BurstID' }, + 'burstmode' => { 139 => 0xa, 316 => 0x2a }, 'burstmode2' => { 139 => 0x18 }, - 'burstprimary' => { 454 => 'BurstPrimary' }, - 'burstshot' => { 391 => 0x34 }, - 'burstspeed' => { 314 => 0x77 }, + 'burstprimary' => { 456 => 'BurstPrimary' }, + 'burstshot' => { 393 => 0x34 }, + 'burstspeed' => { 316 => 0x77 }, 'burstuuid' => { 1 => 0xb }, 'buttonfunctioncontroloff' => { 83 => 0x70a }, 'bwadjustment' => { 126 => 0x1049 }, 'bwfilter' => { 180 => 0x2a, 188 => 0x39 }, - 'bwmode' => { 296 => 0x203 }, + 'bwmode' => { 298 => 0x203 }, 'by-line' => { 130 => 0x50 }, 'by-linetitle' => { 130 => 0x55 }, - 'bytecount' => { 487 => 'byteCount' }, + 'bytecount' => { 489 => 'byteCount' }, 'c14configuration' => { 137 => 0x1964 }, 'cacheversion' => { 118 => 0xc7aa }, 'calibratedfocallength' => { 115 => 'CalibratedFocalLength' }, 'calibratedopticalcenterx' => { 115 => 'CalibratedOpticalCenterX' }, 'calibratedopticalcentery' => { 115 => 'CalibratedOpticalCenterY' }, - 'calibration' => { 391 => [0x24,0x30] }, + 'calibration' => { 393 => [0x24,0x30] }, 'calibrationhistory' => { 137 => 0x9c9 }, 'calibrationilluminant1' => { 118 => 0xc65a }, 'calibrationilluminant2' => { 118 => 0xc65b }, 'calibrationilluminant3' => { 118 => 0xcd31 }, 'calibrationversion' => { 137 => 0x9c6 }, - 'callforimage' => { 461 => 'CallForImage' }, - 'camera' => { 451 => [\'Cameras','CamerasCamera'] }, - 'cameraangle' => { 374 => 'angl', 497 => 'cameraAngle' }, - 'cameraappinfo' => { 451 => [\'Cameras','CamerasCameraAppInfo'] }, - 'cameraappinfoapplication' => { 451 => [\'Cameras','CamerasCameraAppInfoApplication'] }, - 'cameraappinfoitemuri' => { 451 => [\'Cameras','CamerasCameraAppInfoItemURI'] }, - 'cameraappinfoversion' => { 451 => [\'Cameras','CamerasCameraAppInfoVersion'] }, - 'cameraburstid' => { 455 => 'CameraBurstID' }, - 'cameracalibration' => { 391 => 0x11f }, + 'callforimage' => { 463 => 'CallForImage' }, + 'camera' => { 453 => [\'Cameras','CamerasCamera'] }, + 'cameraangle' => { 376 => 'angl', 499 => 'cameraAngle' }, + 'cameraappinfo' => { 453 => [\'Cameras','CamerasCameraAppInfo'] }, + 'cameraappinfoapplication' => { 453 => [\'Cameras','CamerasCameraAppInfoApplication'] }, + 'cameraappinfoitemuri' => { 453 => [\'Cameras','CamerasCameraAppInfoItemURI'] }, + 'cameraappinfoversion' => { 453 => [\'Cameras','CamerasCameraAppInfoVersion'] }, + 'cameraburstid' => { 457 => 'CameraBurstID' }, + 'cameracalibration' => { 393 => 0x11f }, 'cameracalibration1' => { 118 => 0xc623 }, 'cameracalibration2' => { 118 => 0xc624 }, 'cameracalibration3' => { 118 => 0xcd32 }, 'cameracalibrationsig' => { 118 => 0xc6f3 }, 'cameracolorcalibration01' => { 36 => 0x0, 37 => 0x0 }, @@ -1212,101 +1214,101 @@ my %tagLookup = ( 'cameracolorcalibration11' => { 36 => 0x28, 37 => 0x32 }, 'cameracolorcalibration12' => { 36 => 0x2c, 37 => 0x37 }, 'cameracolorcalibration13' => { 36 => 0x30, 37 => 0x3c }, 'cameracolorcalibration14' => { 36 => 0x34, 37 => 0x41 }, 'cameracolorcalibration15' => { 36 => 0x38, 37 => 0x46 }, - 'cameradepthmap' => { 451 => [\'Cameras','CamerasCameraDepthMap'] }, - 'cameradepthmapconfidenceuri' => { 451 => [\'Cameras','CamerasCameraDepthMapConfidenceURI'] }, - 'cameradepthmapdepthuri' => { 451 => [\'Cameras','CamerasCameraDepthMapDepthURI'] }, - 'cameradepthmapfar' => { 451 => [\'Cameras','CamerasCameraDepthMapFar'] }, - 'cameradepthmapfocaltable' => { 451 => [\'Cameras','CamerasCameraDepthMapFocalTable'] }, - 'cameradepthmapfocaltableentrycount' => { 451 => [\'Cameras','CamerasCameraDepthMapFocalTableEntryCount'] }, - 'cameradepthmapformat' => { 451 => [\'Cameras','CamerasCameraDepthMapFormat'] }, - 'cameradepthmapitemsemantic' => { 451 => [\'Cameras','CamerasCameraDepthMapItemSemantic'] }, - 'cameradepthmapmeasuretype' => { 451 => [\'Cameras','CamerasCameraDepthMapMeasureType'] }, - 'cameradepthmapnear' => { 451 => [\'Cameras','CamerasCameraDepthMapNear'] }, - 'cameradepthmapsoftware' => { 451 => [\'Cameras','CamerasCameraDepthMapSoftware'] }, - 'cameradepthmapunits' => { 451 => [\'Cameras','CamerasCameraDepthMapUnits'] }, - 'cameradirection' => { 368 => 'direction.facing' }, - 'camerae-mountversion' => { 447 => 0xb }, - 'cameraelevationangle' => { 118 => 0x9405, 478 => 'CameraElevationAngle' }, - 'camerafilename' => { 461 => 'CameraFilename' }, - 'cameraid' => { 296 => 0x209, 374 => 'cmid', 390 => 0x209 }, - 'cameraidentifier' => { 368 => 'camera.identifier' }, - 'cameraimage' => { 451 => [\'Cameras','CamerasCameraImage'] }, - 'cameraimageitemsemantic' => { 451 => [\'Cameras','CamerasCameraImageItemSemantic'] }, - 'cameraimageitemuri' => { 451 => [\'Cameras','CamerasCameraImageItemURI'] }, - 'cameraimagingmodel' => { 451 => [\'Cameras','CamerasCameraImagingModel'] }, - 'cameraimagingmodeldistortion' => { 451 => [\'Cameras','CamerasCameraImagingModelDistortion'] }, - 'cameraimagingmodeldistortioncount' => { 451 => [\'Cameras','CamerasCameraImagingModelDistortionCount'] }, - 'cameraimagingmodelfocallengthx' => { 451 => [\'Cameras','CamerasCameraImagingModelFocalLengthX'] }, - 'cameraimagingmodelfocallengthy' => { 451 => [\'Cameras','CamerasCameraImagingModelFocalLengthY'] }, - 'cameraimagingmodelimageheight' => { 451 => [\'Cameras','CamerasCameraImagingModelImageHeight'] }, - 'cameraimagingmodelimagewidth' => { 451 => [\'Cameras','CamerasCameraImagingModelImageWidth'] }, - 'cameraimagingmodelpixelaspectratio' => { 451 => [\'Cameras','CamerasCameraImagingModelPixelAspectRatio'] }, - 'cameraimagingmodelprincipalpointx' => { 451 => [\'Cameras','CamerasCameraImagingModelPrincipalPointX'] }, - 'cameraimagingmodelprincipalpointy' => { 451 => [\'Cameras','CamerasCameraImagingModelPrincipalPointY'] }, - 'cameraimagingmodelskew' => { 451 => [\'Cameras','CamerasCameraImagingModelSkew'] }, + 'cameradepthmap' => { 453 => [\'Cameras','CamerasCameraDepthMap'] }, + 'cameradepthmapconfidenceuri' => { 453 => [\'Cameras','CamerasCameraDepthMapConfidenceURI'] }, + 'cameradepthmapdepthuri' => { 453 => [\'Cameras','CamerasCameraDepthMapDepthURI'] }, + 'cameradepthmapfar' => { 453 => [\'Cameras','CamerasCameraDepthMapFar'] }, + 'cameradepthmapfocaltable' => { 453 => [\'Cameras','CamerasCameraDepthMapFocalTable'] }, + 'cameradepthmapfocaltableentrycount' => { 453 => [\'Cameras','CamerasCameraDepthMapFocalTableEntryCount'] }, + 'cameradepthmapformat' => { 453 => [\'Cameras','CamerasCameraDepthMapFormat'] }, + 'cameradepthmapitemsemantic' => { 453 => [\'Cameras','CamerasCameraDepthMapItemSemantic'] }, + 'cameradepthmapmeasuretype' => { 453 => [\'Cameras','CamerasCameraDepthMapMeasureType'] }, + 'cameradepthmapnear' => { 453 => [\'Cameras','CamerasCameraDepthMapNear'] }, + 'cameradepthmapsoftware' => { 453 => [\'Cameras','CamerasCameraDepthMapSoftware'] }, + 'cameradepthmapunits' => { 453 => [\'Cameras','CamerasCameraDepthMapUnits'] }, + 'cameradirection' => { 370 => 'direction.facing' }, + 'camerae-mountversion' => { 449 => 0xb }, + 'cameraelevationangle' => { 118 => 0x9405, 480 => 'CameraElevationAngle' }, + 'camerafilename' => { 463 => 'CameraFilename' }, + 'cameraid' => { 298 => 0x209, 376 => 'cmid', 392 => 0x209 }, + 'cameraidentifier' => { 370 => 'camera.identifier' }, + 'cameraimage' => { 453 => [\'Cameras','CamerasCameraImage'] }, + 'cameraimageitemsemantic' => { 453 => [\'Cameras','CamerasCameraImageItemSemantic'] }, + 'cameraimageitemuri' => { 453 => [\'Cameras','CamerasCameraImageItemURI'] }, + 'cameraimagingmodel' => { 453 => [\'Cameras','CamerasCameraImagingModel'] }, + 'cameraimagingmodeldistortion' => { 453 => [\'Cameras','CamerasCameraImagingModelDistortion'] }, + 'cameraimagingmodeldistortioncount' => { 453 => [\'Cameras','CamerasCameraImagingModelDistortionCount'] }, + 'cameraimagingmodelfocallengthx' => { 453 => [\'Cameras','CamerasCameraImagingModelFocalLengthX'] }, + 'cameraimagingmodelfocallengthy' => { 453 => [\'Cameras','CamerasCameraImagingModelFocalLengthY'] }, + 'cameraimagingmodelimageheight' => { 453 => [\'Cameras','CamerasCameraImagingModelImageHeight'] }, + 'cameraimagingmodelimagewidth' => { 453 => [\'Cameras','CamerasCameraImagingModelImageWidth'] }, + 'cameraimagingmodelpixelaspectratio' => { 453 => [\'Cameras','CamerasCameraImagingModelPixelAspectRatio'] }, + 'cameraimagingmodelprincipalpointx' => { 453 => [\'Cameras','CamerasCameraImagingModelPrincipalPointX'] }, + 'cameraimagingmodelprincipalpointy' => { 453 => [\'Cameras','CamerasCameraImagingModelPrincipalPointY'] }, + 'cameraimagingmodelskew' => { 453 => [\'Cameras','CamerasCameraImagingModelSkew'] }, 'cameraiso' => { 34 => 0x10 }, - 'cameralabel' => { 118 => 0xc7a1, 497 => 'cameraLabel' }, - 'cameralightestimate' => { 451 => [\'Cameras','CamerasCameraLightEstimate'] }, - 'cameralightestimatecolorcorrectionb' => { 451 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionB'] }, - 'cameralightestimatecolorcorrectiong' => { 451 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionG'] }, - 'cameralightestimatecolorcorrectionr' => { 451 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionR'] }, - 'cameralightestimatepixelintensity' => { 451 => [\'Cameras','CamerasCameraLightEstimatePixelIntensity'] }, - 'cameramakemodel' => { 461 => 'CameraMakeModel' }, - 'cameramodel' => { 358 => 0x410, 497 => 'cameraModel' }, + 'cameralabel' => { 118 => 0xc7a1, 499 => 'cameraLabel' }, + 'cameralightestimate' => { 453 => [\'Cameras','CamerasCameraLightEstimate'] }, + 'cameralightestimatecolorcorrectionb' => { 453 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionB'] }, + 'cameralightestimatecolorcorrectiong' => { 453 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionG'] }, + 'cameralightestimatecolorcorrectionr' => { 453 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionR'] }, + 'cameralightestimatepixelintensity' => { 453 => [\'Cameras','CamerasCameraLightEstimatePixelIntensity'] }, + 'cameramakemodel' => { 463 => 'CameraMakeModel' }, + 'cameramodel' => { 360 => 0x410, 499 => 'cameraModel' }, 'cameramodelid' => { 175 => 'CameraModelID' }, - 'cameramodelrestriction' => { 471 => 'CameraModelRestriction', 473 => 'CameraModelRestriction' }, - 'cameramotion' => { 368 => 'direction.motion' }, - 'cameramove' => { 497 => 'cameraMove' }, - 'cameraorientation' => { 7 => 0x30, 9 => 0x7d, 11 => 0x30, 13 => 0x35, 14 => 0x30, 15 => 0x30, 16 => 0x31, 17 => 0x31, 18 => 0x35, 19 => 0x27, 20 => 0x31, 21 => 0x7d, 22 => 0x38, 23 => [0x36,0x3a], 24 => 0x7d, 25 => 0x83, 26 => 0x84, 27 => 0x96, 28 => 0x35, 29 => 0x96, 314 => 0x8f, 353 => 0x1, 358 => 0x100, 407 => [0x16,0x18], 435 => 0x28, 436 => 0x24, 437 => 0x29 }, + 'cameramodelrestriction' => { 473 => 'CameraModelRestriction', 475 => 'CameraModelRestriction' }, + 'cameramotion' => { 370 => 'direction.motion' }, + 'cameramove' => { 499 => 'cameraMove' }, + 'cameraorientation' => { 7 => 0x30, 9 => 0x7d, 11 => 0x30, 13 => 0x35, 14 => 0x30, 15 => 0x30, 16 => 0x31, 17 => 0x31, 18 => 0x35, 19 => 0x27, 20 => 0x31, 21 => 0x7d, 22 => 0x38, 23 => [0x36,0x3a], 24 => 0x7d, 25 => 0x83, 26 => 0x84, 27 => 0x96, 28 => 0x35, 29 => 0x96, 316 => 0x8f, 355 => 0x1, 360 => 0x100, 409 => [0x16,0x18], 437 => 0x28, 438 => 0x24, 439 => 0x29 }, 'cameraowner' => { 140 => 0xc353 }, - 'cameraparameters' => { 296 => 0x2050 }, + 'cameraparameters' => { 298 => 0x2050 }, 'camerapicturestyle' => { 28 => 0xaf }, - 'camerapitch' => { 114 => 0x9, 374 => "\xa9gpt" }, - 'camerapointcloud' => { 451 => [\'Cameras','CamerasCameraPointCloud'] }, - 'camerapointcloudmetric' => { 451 => [\'Cameras','CamerasCameraPointCloudMetric'] }, - 'camerapointcloudpointcloud' => { 451 => [\'Cameras','CamerasCameraPointCloudPointCloud'] }, - 'camerapointcloudpoints' => { 451 => [\'Cameras','CamerasCameraPointCloudPoints'] }, - 'camerapose' => { 451 => [\'Cameras','CamerasCameraPose'] }, - 'cameraposepositionx' => { 451 => [\'Cameras','CamerasCameraPosePositionX'] }, - 'cameraposepositiony' => { 451 => [\'Cameras','CamerasCameraPosePositionY'] }, - 'cameraposepositionz' => { 451 => [\'Cameras','CamerasCameraPosePositionZ'] }, - 'cameraposerotationw' => { 451 => [\'Cameras','CamerasCameraPoseRotationW'] }, - 'cameraposerotationx' => { 451 => [\'Cameras','CamerasCameraPoseRotationX'] }, - 'cameraposerotationy' => { 451 => [\'Cameras','CamerasCameraPoseRotationY'] }, - 'cameraposerotationz' => { 451 => [\'Cameras','CamerasCameraPoseRotationZ'] }, - 'cameraposetimestamp' => { 451 => [\'Cameras','CamerasCameraPoseTimestamp'] }, - 'cameraprofile' => { 471 => 'CameraProfile', 473 => 'CameraProfile' }, - 'cameraprofiledigest' => { 471 => 'CameraProfileDigest', 473 => 'CameraProfileDigest' }, + 'camerapitch' => { 114 => 0x9, 376 => "\xa9gpt" }, + 'camerapointcloud' => { 453 => [\'Cameras','CamerasCameraPointCloud'] }, + 'camerapointcloudmetric' => { 453 => [\'Cameras','CamerasCameraPointCloudMetric'] }, + 'camerapointcloudpointcloud' => { 453 => [\'Cameras','CamerasCameraPointCloudPointCloud'] }, + 'camerapointcloudpoints' => { 453 => [\'Cameras','CamerasCameraPointCloudPoints'] }, + 'camerapose' => { 453 => [\'Cameras','CamerasCameraPose'] }, + 'cameraposepositionx' => { 453 => [\'Cameras','CamerasCameraPosePositionX'] }, + 'cameraposepositiony' => { 453 => [\'Cameras','CamerasCameraPosePositionY'] }, + 'cameraposepositionz' => { 453 => [\'Cameras','CamerasCameraPosePositionZ'] }, + 'cameraposerotationw' => { 453 => [\'Cameras','CamerasCameraPoseRotationW'] }, + 'cameraposerotationx' => { 453 => [\'Cameras','CamerasCameraPoseRotationX'] }, + 'cameraposerotationy' => { 453 => [\'Cameras','CamerasCameraPoseRotationY'] }, + 'cameraposerotationz' => { 453 => [\'Cameras','CamerasCameraPoseRotationZ'] }, + 'cameraposetimestamp' => { 453 => [\'Cameras','CamerasCameraPoseTimestamp'] }, + 'cameraprofile' => { 473 => 'CameraProfile', 475 => 'CameraProfile' }, + 'cameraprofiledigest' => { 473 => 'CameraProfileDigest', 475 => 'CameraProfileDigest' }, 'camerarawcolortone' => { 108 => 0xe1 }, 'camerarawcontrast' => { 108 => 0xe3 }, 'camerarawhighlightpoint' => { 108 => 0xe6 }, 'camerarawlinear' => { 108 => 0xe4 }, 'camerarawoutputhighlightpoint' => { 108 => 0xe8 }, 'camerarawoutputshadowpoint' => { 108 => 0xe9 }, 'camerarawsaturation' => { 108 => 0xe2 }, 'camerarawshadowpoint' => { 108 => 0xe7 }, 'camerarawsharpness' => { 108 => 0xe5 }, - 'cameraroll' => { 114 => 0xb, 374 => "\xa9grl" }, - 'cameras' => { 451 => 'Cameras' }, - 'cameraserialnumber' => { 118 => 0xc62f, 177 => 'CameraSerialNumber', 461 => 'CameraSerialNumber' }, - 'camerasettingsversion' => { 291 => 0x0 }, - 'cameratemperature' => { 7 => 0x18, 9 => 0x1b, 11 => 0x18, 13 => 0x19, 14 => 0x18, 15 => 0x18, 16 => 0x19, 17 => 0x19, 18 => 0x19, 19 => 0x17, 20 => 0x19, 21 => 0x1b, 22 => 0x19, 23 => 0x19, 24 => 0x1b, 25 => 0x1b, 26 => 0x1b, 27 => 0x1b, 28 => 0x19, 29 => 0x1b, 30 => [0x87,0x91], 31 => [0x99,0x9f,0xa4,0xa8,0x105], 33 => ['-3',0x64,0x47,0x53,0x5b,0x5c], 76 => 0xc, 137 => 0x406, 295 => 0x1306, 309 => 0x320, 316 => 0x3402, 349 => 0x47, 388 => 0x43, 439 => 0x5 }, - 'cameratemperature4' => { 354 => 0x14 }, - 'cameratemperature5' => { 354 => 0x16 }, + 'cameraroll' => { 114 => 0xb, 376 => "\xa9grl" }, + 'cameras' => { 453 => 'Cameras' }, + 'cameraserialnumber' => { 118 => 0xc62f, 177 => 'CameraSerialNumber', 463 => 'CameraSerialNumber' }, + 'camerasettingsversion' => { 293 => 0x0 }, + 'cameratemperature' => { 7 => 0x18, 9 => 0x1b, 11 => 0x18, 13 => 0x19, 14 => 0x18, 15 => 0x18, 16 => 0x19, 17 => 0x19, 18 => 0x19, 19 => 0x17, 20 => 0x19, 21 => 0x1b, 22 => 0x19, 23 => 0x19, 24 => 0x1b, 25 => 0x1b, 26 => 0x1b, 27 => 0x1b, 28 => 0x19, 29 => 0x1b, 30 => [0x87,0x91], 31 => [0x99,0x9f,0xa4,0xa8,0x105], 33 => ['-3',0x64,0x47,0x53,0x5b,0x5c], 76 => 0xc, 137 => 0x406, 297 => 0x1306, 311 => 0x320, 318 => 0x3402, 351 => 0x47, 390 => 0x43, 441 => 0x5 }, + 'cameratemperature4' => { 356 => 0x14 }, + 'cameratemperature5' => { 356 => 0x16 }, 'cameratemperaturerangemax' => { 120 => 0x5 }, 'cameratemperaturerangemin' => { 120 => 0x6 }, - 'cameratrait' => { 451 => [\'Cameras','CamerasCameraTrait'] }, - 'cameratype' => { 76 => 0x1a, 296 => 0x207 }, - 'cameratype2' => { 292 => 0x100 }, - 'cameravendorinfo' => { 451 => [\'Cameras','CamerasCameraVendorInfo'] }, - 'cameravendorinfomanufacturer' => { 451 => [\'Cameras','CamerasCameraVendorInfoManufacturer'] }, - 'cameravendorinfomodel' => { 451 => [\'Cameras','CamerasCameraVendorInfoModel'] }, - 'cameravendorinfonotes' => { 451 => [\'Cameras','CamerasCameraVendorInfoNotes'] }, - 'camerayaw' => { 114 => 0xa, 374 => "\xa9gyw" }, + 'cameratrait' => { 453 => [\'Cameras','CamerasCameraTrait'] }, + 'cameratype' => { 76 => 0x1a, 298 => 0x207 }, + 'cameratype2' => { 294 => 0x100 }, + 'cameravendorinfo' => { 453 => [\'Cameras','CamerasCameraVendorInfo'] }, + 'cameravendorinfomanufacturer' => { 453 => [\'Cameras','CamerasCameraVendorInfoManufacturer'] }, + 'cameravendorinfomodel' => { 453 => [\'Cameras','CamerasCameraVendorInfoModel'] }, + 'cameravendorinfonotes' => { 453 => [\'Cameras','CamerasCameraVendorInfoNotes'] }, + 'camerayaw' => { 114 => 0xa, 376 => "\xa9gyw" }, 'camreverse' => { 115 => 'CamReverse' }, 'canondr4' => { 119 => 'CanonDR4' }, 'canonexposuremode' => { 34 => 0x14 }, 'canonfiledescription' => { 96 => 0x805 }, 'canonfilelength' => { 63 => 0xe }, @@ -1315,377 +1317,377 @@ my %tagLookup = ( 'canonflashmode' => { 34 => 0x4 }, 'canonimagesize' => { 10 => 0x39, 34 => 0xa }, 'canonimagetype' => { 63 => 0x6, 96 => 0x815 }, 'canonmodelid' => { 63 => 0x10, 96 => 0x1834 }, 'canonvrd' => { 119 => 'CanonVRD' }, - 'caption' => { 466 => 'caption' }, + 'caption' => { 468 => 'caption' }, 'caption-abstract' => { 130 => 0x78 }, - 'captionsauthornames' => { 476 => 'CaptionsAuthorNames' }, - 'captionsdatetimestamps' => { 476 => 'CaptionsDateTimeStamps' }, - 'captionwriter' => { 485 => 'CaptionWriter' }, + 'captionsauthornames' => { 478 => 'CaptionsAuthorNames' }, + 'captionsdatetimestamps' => { 478 => 'CaptionsDateTimeStamps' }, + 'captionwriter' => { 487 => 'CaptionWriter' }, 'captureframerate' => { 112 => 0x4001 }, 'captureheightnormal' => { 137 => 0x1839 }, 'capturelook' => { 137 => 0xc48 }, - 'capturemode' => { 368 => 'com.apple.photos.captureMode' }, - 'capturesoftware' => { 459 => 'CaptureSoftware' }, + 'capturemode' => { 370 => 'com.apple.photos.captureMode' }, + 'capturesoftware' => { 461 => 'CaptureSoftware' }, 'capturewidthnormal' => { 137 => 0x1838 }, 'capturewidthtest' => { 137 => 0x1842 }, 'cardshutterlock' => { 183 => 0x49 }, 'casioimagesize' => { 112 => 0x9 }, - 'catalogsets' => { 130 => 0xff, 452 => 'CatalogSets', 464 => 'CatalogSets' }, - 'categories' => { 63 => 0x23, 466 => 'categories' }, - 'category' => { 130 => 0xf, 178 => 'WM/Category', 290 => 0x30, 366 => 'catg', 485 => 'Category' }, - 'cbcrgain' => { 388 => 0xa036 }, - 'cbcrgaindefault' => { 388 => 0xa035 }, - 'cbcrmatrix' => { 388 => 0xa034 }, - 'cbcrmatrixdefault' => { 388 => 0xa033 }, - 'ccdboardversion' => { 309 => 0x331 }, - 'ccdscanmode' => { 296 => 0x1039 }, - 'ccdsensitivity' => { 256 => 0x6 }, - 'ccdversion' => { 309 => 0x330 }, - 'cellglobalid' => { 470 => 'cgi' }, + 'catalogsets' => { 130 => 0xff, 454 => 'CatalogSets', 466 => 'CatalogSets' }, + 'categories' => { 63 => 0x23, 468 => 'categories' }, + 'category' => { 130 => 0xf, 178 => 'WM/Category', 292 => 0x30, 368 => 'catg', 487 => 'Category' }, + 'cbcrgain' => { 390 => 0xa036 }, + 'cbcrgaindefault' => { 390 => 0xa035 }, + 'cbcrmatrix' => { 390 => 0xa034 }, + 'cbcrmatrixdefault' => { 390 => 0xa033 }, + 'ccdboardversion' => { 311 => 0x331 }, + 'ccdscanmode' => { 298 => 0x1039 }, + 'ccdsensitivity' => { 258 => 0x6 }, + 'ccdversion' => { 311 => 0x330 }, + 'cellglobalid' => { 472 => 'cgi' }, 'celllength' => { 118 => 0x109 }, - 'cellr' => { 470 => 'r' }, - 'celltowerid' => { 470 => 'cellid' }, + 'cellr' => { 472 => 'r' }, + 'celltowerid' => { 472 => 'cellid' }, 'cellwidth' => { 118 => 0x108 }, - 'centerafarea' => { 285 => '15.1' }, - 'centerfocuspoint' => { 289 => '2.2' }, + 'centerafarea' => { 287 => '15.1' }, + 'centerfocuspoint' => { 291 => '2.2' }, 'centerpixel' => { 137 => 0x40c }, - 'centerweightedareasize' => { 274 => '7.1', 275 => '8.1', 277 => '8.1', 278 => '8.1', 282 => '7.1', 283 => '5.1', 284 => '7.1', 285 => '6.3', 287 => '8.1', 288 => '8.1', 289 => '8.1' }, - 'certificate' => { 501 => 'Certificate' }, + 'centerweightedareasize' => { 276 => '7.1', 277 => '8.1', 279 => '8.1', 280 => '8.1', 284 => '7.1', 285 => '5.1', 286 => '7.1', 287 => '6.3', 289 => '8.1', 290 => '8.1', 291 => '8.1' }, + 'certificate' => { 503 => 'Certificate' }, 'cfainterpolationalgorithm' => { 137 => 0xe60 }, 'cfainterpolationmetric' => { 137 => 0xe61 }, 'cfaoffsetcols' => { 137 => 0xc71 }, 'cfaoffsetrows' => { 137 => 0xc6f }, - 'cfapattern' => { 118 => 0xa302, 319 => 0x9, 477 => 'CFAPattern' }, + 'cfapattern' => { 118 => 0xa302, 321 => 0x9, 479 => 'CFAPattern' }, 'cfapattern2' => { 118 => 0x828e }, - 'cfapatterncolumns' => { 477 => [\'CFAPattern','CFAPatternColumns'] }, - 'cfapatternrows' => { 477 => [\'CFAPattern','CFAPatternRows'] }, - 'cfapatternvalues' => { 477 => [\'CFAPattern','CFAPatternValues'] }, + 'cfapatterncolumns' => { 479 => [\'CFAPattern','CFAPatternColumns'] }, + 'cfapatternrows' => { 479 => [\'CFAPattern','CFAPatternRows'] }, + 'cfapatternvalues' => { 479 => [\'CFAPattern','CFAPatternValues'] }, 'cfarepeatpatterndim' => { 118 => 0x828d }, 'cfazipperfixthreshold' => { 137 => 0xe62 }, - 'channel' => { 487 => 'channel' }, - 'channela-lang' => { 487 => [\'channel','channelA-lang'] }, - 'channelchannel' => { 487 => [\'channel','channelChannel'] }, + 'channel' => { 489 => 'channel' }, + 'channela-lang' => { 489 => [\'channel','channelA-lang'] }, + 'channelchannel' => { 489 => [\'channel','channelChannel'] }, 'channels' => { 154 => 'Channels' }, - 'channelsubchannel1' => { 487 => [\'channel','channelSubchannel1'] }, - 'channelsubchannel2' => { 487 => [\'channel','channelSubchannel2'] }, - 'channelsubchannel3' => { 487 => [\'channel','channelSubchannel3'] }, - 'channelsubchannel4' => { 487 => [\'channel','channelSubchannel4'] }, - 'chapterlist' => { 374 => 'chpl' }, + 'channelsubchannel1' => { 489 => [\'channel','channelSubchannel1'] }, + 'channelsubchannel2' => { 489 => [\'channel','channelSubchannel2'] }, + 'channelsubchannel3' => { 489 => [\'channel','channelSubchannel3'] }, + 'channelsubchannel4' => { 489 => [\'channel','channelSubchannel4'] }, + 'chapterlist' => { 376 => 'chpl' }, 'checkmark' => { 102 => 0x10101, 107 => 0x26a }, 'checkmark2' => { 108 => 0x8e }, - 'childfontfiles' => { 502 => [\'Fonts','FontsChildFontFiles'] }, - 'chmodeshootingspeed' => { 274 => '10.3', 275 => '11.2' }, + 'childfontfiles' => { 504 => [\'Fonts','FontsChildFontFiles'] }, + 'chmodeshootingspeed' => { 276 => '10.3', 277 => '11.2' }, 'chromablurradius' => { 118 => 0xc631 }, 'chromanoisecolorspace' => { 137 => 0xe6d }, 'chromanoiseedgemapthresh' => { 137 => 0xe6c }, 'chromanoisehighfthresh' => { 137 => 0xe6a }, 'chromanoiselowfthresh' => { 137 => 0xe6b }, - 'chromaticaberration' => { 102 => 0x20703, 108 => 0x66, 388 => 0xa051 }, - 'chromaticaberrationb' => { 471 => 'ChromaticAberrationB', 473 => 'ChromaticAberrationB' }, + 'chromaticaberration' => { 102 => 0x20703, 108 => 0x66, 390 => 0xa051 }, + 'chromaticaberrationb' => { 473 => 'ChromaticAberrationB', 475 => 'ChromaticAberrationB' }, 'chromaticaberrationblue' => { 102 => 0x20708, 108 => 0x6b }, 'chromaticaberrationcorr' => { 78 => [0x4,0x5] }, - 'chromaticaberrationcorrection' => { 118 => 0x7034, 339 => 0x1, 448 => 0x900d }, - 'chromaticaberrationcorrparams' => { 118 => 0x7035, 443 => 0x66a, 444 => [0x37c,0x384,0x39c,0x3b0,0x3b8] }, + 'chromaticaberrationcorrection' => { 118 => 0x7034, 341 => 0x1, 450 => 0x900d }, + 'chromaticaberrationcorrparams' => { 118 => 0x7035, 445 => 0x66a, 446 => [0x37c,0x384,0x39c,0x3b0,0x3b8] }, 'chromaticaberrationon' => { 102 => '0x20703.0', 108 => 0x62 }, - 'chromaticaberrationr' => { 471 => 'ChromaticAberrationR', 473 => 'ChromaticAberrationR' }, + 'chromaticaberrationr' => { 473 => 'ChromaticAberrationR', 475 => 'ChromaticAberrationR' }, 'chromaticaberrationred' => { 102 => 0x20707, 108 => 0x6a }, 'chromaticaberrationsetting' => { 79 => 0x6 }, - 'chrominancenoisereduction' => { 102 => 0x20601, 108 => 0x5e, 391 => 0x1a }, + 'chrominancenoisereduction' => { 102 => 0x20601, 108 => 0x5e, 393 => 0x1a }, 'chrominancenr_tiff_jpeg' => { 108 => 0x60 }, - 'circadatecreated' => { 483 => 'CircaDateCreated' }, - 'circgradbasedcorractive' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'] }, - 'circgradbasedcorramount' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'] }, - 'circgradbasedcorrblacks2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'] }, - 'circgradbasedcorrbrightness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'] }, - 'circgradbasedcorrclarity' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'] }, - 'circgradbasedcorrclarity2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'] }, - 'circgradbasedcorrcontrast' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'] }, - 'circgradbasedcorrcontrast2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'] }, - 'circgradbasedcorrcorrectionname' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'] }, - 'circgradbasedcorrcorrectionsyncid' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'] }, - 'circgradbasedcorrdefringe' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'] }, - 'circgradbasedcorrdehaze' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'] }, - 'circgradbasedcorrexposure' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'] }, - 'circgradbasedcorrexposure2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'] }, - 'circgradbasedcorrhighlights2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'] }, - 'circgradbasedcorrhue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'] }, - 'circgradbasedcorrluminancenoise' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'] }, - 'circgradbasedcorrmaskalpha' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'] }, - 'circgradbasedcorrmaskangle' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'] }, - 'circgradbasedcorrmaskbottom' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'] }, - 'circgradbasedcorrmaskcentervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'] }, - 'circgradbasedcorrmaskcenterweight' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'] }, - 'circgradbasedcorrmaskdabs' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'] }, - 'circgradbasedcorrmaskfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'] }, - 'circgradbasedcorrmaskflipped' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'] }, - 'circgradbasedcorrmaskflow' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'] }, - 'circgradbasedcorrmaskfullx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'] }, - 'circgradbasedcorrmaskfully' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'] }, - 'circgradbasedcorrmaskinputdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'] }, - 'circgradbasedcorrmaskleft' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'] }, - 'circgradbasedcorrmaskmaskactive' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'] }, - 'circgradbasedcorrmaskmaskblendmode' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, - 'circgradbasedcorrmaskmaskdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'] }, - 'circgradbasedcorrmaskmaskinverted' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'] }, - 'circgradbasedcorrmaskmaskname' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'] }, - 'circgradbasedcorrmaskmasks' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'] }, - 'circgradbasedcorrmaskmasksalpha' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, - 'circgradbasedcorrmaskmasksangle' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'] }, - 'circgradbasedcorrmaskmasksbottom' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'] }, - 'circgradbasedcorrmaskmaskscentervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, - 'circgradbasedcorrmaskmaskscenterweight' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, - 'circgradbasedcorrmaskmasksdabs' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'] }, - 'circgradbasedcorrmaskmasksfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'] }, - 'circgradbasedcorrmaskmasksflipped' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, - 'circgradbasedcorrmaskmasksflow' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'] }, - 'circgradbasedcorrmaskmasksfullx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'] }, - 'circgradbasedcorrmaskmasksfully' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'] }, - 'circgradbasedcorrmaskmasksinputdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, - 'circgradbasedcorrmaskmasksleft' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'] }, - 'circgradbasedcorrmaskmasksmaskactive' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, - 'circgradbasedcorrmaskmasksmaskblendmode' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, - 'circgradbasedcorrmaskmasksmaskdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, - 'circgradbasedcorrmaskmasksmaskinverted' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, - 'circgradbasedcorrmaskmasksmaskname' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, - 'circgradbasedcorrmaskmasksmasksubtype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, - 'circgradbasedcorrmaskmasksmasksyncid' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, - 'circgradbasedcorrmaskmasksmaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, - 'circgradbasedcorrmaskmasksmidpoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, - 'circgradbasedcorrmaskmasksorigin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, - 'circgradbasedcorrmaskmasksperimetervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, - 'circgradbasedcorrmaskmasksradius' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'] }, - 'circgradbasedcorrmaskmasksreferencepoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, - 'circgradbasedcorrmaskmasksright' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'] }, - 'circgradbasedcorrmaskmasksroundness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, - 'circgradbasedcorrmaskmaskssizex' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, - 'circgradbasedcorrmaskmaskssizey' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, - 'circgradbasedcorrmaskmaskstop' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'] }, - 'circgradbasedcorrmaskmasksubtype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'] }, - 'circgradbasedcorrmaskmasksvalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, - 'circgradbasedcorrmaskmasksversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'] }, - 'circgradbasedcorrmaskmaskswhat' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'] }, - 'circgradbasedcorrmaskmaskswholeimagearea' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, - 'circgradbasedcorrmaskmasksx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'] }, - 'circgradbasedcorrmaskmasksy' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'] }, - 'circgradbasedcorrmaskmasksyncid' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, - 'circgradbasedcorrmaskmaskszerox' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, - 'circgradbasedcorrmaskmaskszeroy' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, - 'circgradbasedcorrmaskmaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'] }, - 'circgradbasedcorrmaskmidpoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'] }, - 'circgradbasedcorrmaskorigin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'] }, - 'circgradbasedcorrmaskperimetervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, - 'circgradbasedcorrmaskradius' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'] }, - 'circgradbasedcorrmaskrange' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, - 'circgradbasedcorrmaskrangeareamodels' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, - 'circgradbasedcorrmaskrangeareamodelscolorsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'circgradbasedcorrmaskrangeareamodelscomponents' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'circgradbasedcorrmaskrangecoloramount' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, - 'circgradbasedcorrmaskrangedepthfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, - 'circgradbasedcorrmaskrangedepthmax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, - 'circgradbasedcorrmaskrangedepthmin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, - 'circgradbasedcorrmaskrangeinvert' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, - 'circgradbasedcorrmaskrangelumfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, - 'circgradbasedcorrmaskrangeluminancedepthsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'circgradbasedcorrmaskrangelummax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, - 'circgradbasedcorrmaskrangelummin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, - 'circgradbasedcorrmaskrangelumrange' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, - 'circgradbasedcorrmaskrangesampletype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, - 'circgradbasedcorrmaskrangetype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, - 'circgradbasedcorrmaskrangeversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, - 'circgradbasedcorrmaskreferencepoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'] }, - 'circgradbasedcorrmaskright' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'] }, - 'circgradbasedcorrmaskroundness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'] }, - 'circgradbasedcorrmasks' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'] }, - 'circgradbasedcorrmasksizex' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'] }, - 'circgradbasedcorrmasksizey' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'] }, - 'circgradbasedcorrmasktop' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'] }, - 'circgradbasedcorrmaskvalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'] }, - 'circgradbasedcorrmaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'] }, - 'circgradbasedcorrmaskwhat' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'] }, - 'circgradbasedcorrmaskwholeimagearea' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, - 'circgradbasedcorrmaskx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'] }, - 'circgradbasedcorrmasky' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'] }, - 'circgradbasedcorrmaskzerox' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'] }, - 'circgradbasedcorrmaskzeroy' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'] }, - 'circgradbasedcorrmoire' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'] }, - 'circgradbasedcorrrangemask' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'] }, - 'circgradbasedcorrrangemaskareamodels' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, - 'circgradbasedcorrrangemaskareamodelscolorsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'circgradbasedcorrrangemaskareamodelscomponents' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'circgradbasedcorrrangemaskcoloramount' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, - 'circgradbasedcorrrangemaskdepthfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, - 'circgradbasedcorrrangemaskdepthmax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, - 'circgradbasedcorrrangemaskdepthmin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, - 'circgradbasedcorrrangemaskinvert' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'] }, - 'circgradbasedcorrrangemasklumfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, - 'circgradbasedcorrrangemaskluminancedepthsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'circgradbasedcorrrangemasklummax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, - 'circgradbasedcorrrangemasklummin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, - 'circgradbasedcorrrangemasklumrange' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, - 'circgradbasedcorrrangemasksampletype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, - 'circgradbasedcorrrangemasktype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'] }, - 'circgradbasedcorrrangemaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'] }, - 'circgradbasedcorrsaturation' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'] }, - 'circgradbasedcorrshadows2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'] }, - 'circgradbasedcorrsharpness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'] }, - 'circgradbasedcorrtemperature' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'] }, - 'circgradbasedcorrtexture' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'] }, - 'circgradbasedcorrtint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'] }, - 'circgradbasedcorrtoninghue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'] }, - 'circgradbasedcorrtoningsaturation' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'] }, - 'circgradbasedcorrwhat' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'] }, - 'circgradbasedcorrwhites2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'] }, - 'circulargradientbasedcorrections' => { 471 => 'CircularGradientBasedCorrections', 473 => 'CircularGradientBasedCorrections' }, - 'city' => { 130 => 0x5a, 160 => 'City', 314 => 0x6d, 485 => 'City' }, - 'city2' => { 314 => 0x80 }, - 'clarity' => { 227 => 0x35, 228 => 0x3d, 414 => 0x2036, 471 => 'Clarity', 473 => 'Clarity' }, - 'clarity2012' => { 471 => 'Clarity2012', 473 => 'Clarity2012' }, - 'claritycontrol' => { 349 => 0x96 }, - 'classification' => { 374 => 'clsf' }, + 'circadatecreated' => { 485 => 'CircaDateCreated' }, + 'circgradbasedcorractive' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'] }, + 'circgradbasedcorramount' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'] }, + 'circgradbasedcorrblacks2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'] }, + 'circgradbasedcorrbrightness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'] }, + 'circgradbasedcorrclarity' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'] }, + 'circgradbasedcorrclarity2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'] }, + 'circgradbasedcorrcontrast' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'] }, + 'circgradbasedcorrcontrast2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'] }, + 'circgradbasedcorrcorrectionname' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'] }, + 'circgradbasedcorrcorrectionsyncid' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'] }, + 'circgradbasedcorrdefringe' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'] }, + 'circgradbasedcorrdehaze' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'] }, + 'circgradbasedcorrexposure' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'] }, + 'circgradbasedcorrexposure2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'] }, + 'circgradbasedcorrhighlights2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'] }, + 'circgradbasedcorrhue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'] }, + 'circgradbasedcorrluminancenoise' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'] }, + 'circgradbasedcorrmaskalpha' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'] }, + 'circgradbasedcorrmaskangle' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'] }, + 'circgradbasedcorrmaskbottom' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'] }, + 'circgradbasedcorrmaskcentervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'] }, + 'circgradbasedcorrmaskcenterweight' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'] }, + 'circgradbasedcorrmaskdabs' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'] }, + 'circgradbasedcorrmaskfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'] }, + 'circgradbasedcorrmaskflipped' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'] }, + 'circgradbasedcorrmaskflow' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'] }, + 'circgradbasedcorrmaskfullx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'] }, + 'circgradbasedcorrmaskfully' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'] }, + 'circgradbasedcorrmaskinputdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'] }, + 'circgradbasedcorrmaskleft' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'] }, + 'circgradbasedcorrmaskmaskactive' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'] }, + 'circgradbasedcorrmaskmaskblendmode' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, + 'circgradbasedcorrmaskmaskdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'] }, + 'circgradbasedcorrmaskmaskinverted' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'] }, + 'circgradbasedcorrmaskmaskname' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'] }, + 'circgradbasedcorrmaskmasks' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'] }, + 'circgradbasedcorrmaskmasksalpha' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, + 'circgradbasedcorrmaskmasksangle' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'] }, + 'circgradbasedcorrmaskmasksbottom' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'] }, + 'circgradbasedcorrmaskmaskscentervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, + 'circgradbasedcorrmaskmaskscenterweight' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, + 'circgradbasedcorrmaskmasksdabs' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'] }, + 'circgradbasedcorrmaskmasksfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'] }, + 'circgradbasedcorrmaskmasksflipped' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, + 'circgradbasedcorrmaskmasksflow' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'] }, + 'circgradbasedcorrmaskmasksfullx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'] }, + 'circgradbasedcorrmaskmasksfully' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'] }, + 'circgradbasedcorrmaskmasksinputdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, + 'circgradbasedcorrmaskmasksleft' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'] }, + 'circgradbasedcorrmaskmasksmaskactive' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, + 'circgradbasedcorrmaskmasksmaskblendmode' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, + 'circgradbasedcorrmaskmasksmaskdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, + 'circgradbasedcorrmaskmasksmaskinverted' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, + 'circgradbasedcorrmaskmasksmaskname' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, + 'circgradbasedcorrmaskmasksmasksubtype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, + 'circgradbasedcorrmaskmasksmasksyncid' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, + 'circgradbasedcorrmaskmasksmaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, + 'circgradbasedcorrmaskmasksmidpoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, + 'circgradbasedcorrmaskmasksorigin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, + 'circgradbasedcorrmaskmasksperimetervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, + 'circgradbasedcorrmaskmasksradius' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'] }, + 'circgradbasedcorrmaskmasksreferencepoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, + 'circgradbasedcorrmaskmasksright' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'] }, + 'circgradbasedcorrmaskmasksroundness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, + 'circgradbasedcorrmaskmaskssizex' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, + 'circgradbasedcorrmaskmaskssizey' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, + 'circgradbasedcorrmaskmaskstop' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'] }, + 'circgradbasedcorrmaskmasksubtype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'] }, + 'circgradbasedcorrmaskmasksvalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, + 'circgradbasedcorrmaskmasksversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'] }, + 'circgradbasedcorrmaskmaskswhat' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'] }, + 'circgradbasedcorrmaskmaskswholeimagearea' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, + 'circgradbasedcorrmaskmasksx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'] }, + 'circgradbasedcorrmaskmasksy' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'] }, + 'circgradbasedcorrmaskmasksyncid' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, + 'circgradbasedcorrmaskmaskszerox' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, + 'circgradbasedcorrmaskmaskszeroy' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, + 'circgradbasedcorrmaskmaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'] }, + 'circgradbasedcorrmaskmidpoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'] }, + 'circgradbasedcorrmaskorigin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'] }, + 'circgradbasedcorrmaskperimetervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, + 'circgradbasedcorrmaskradius' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'] }, + 'circgradbasedcorrmaskrange' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, + 'circgradbasedcorrmaskrangeareamodels' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, + 'circgradbasedcorrmaskrangeareamodelscolorsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'circgradbasedcorrmaskrangeareamodelscomponents' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'circgradbasedcorrmaskrangecoloramount' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, + 'circgradbasedcorrmaskrangedepthfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, + 'circgradbasedcorrmaskrangedepthmax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, + 'circgradbasedcorrmaskrangedepthmin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, + 'circgradbasedcorrmaskrangeinvert' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, + 'circgradbasedcorrmaskrangelumfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, + 'circgradbasedcorrmaskrangeluminancedepthsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'circgradbasedcorrmaskrangelummax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, + 'circgradbasedcorrmaskrangelummin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, + 'circgradbasedcorrmaskrangelumrange' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, + 'circgradbasedcorrmaskrangesampletype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, + 'circgradbasedcorrmaskrangetype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, + 'circgradbasedcorrmaskrangeversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, + 'circgradbasedcorrmaskreferencepoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'] }, + 'circgradbasedcorrmaskright' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'] }, + 'circgradbasedcorrmaskroundness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'] }, + 'circgradbasedcorrmasks' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'] }, + 'circgradbasedcorrmasksizex' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'] }, + 'circgradbasedcorrmasksizey' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'] }, + 'circgradbasedcorrmasktop' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'] }, + 'circgradbasedcorrmaskvalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'] }, + 'circgradbasedcorrmaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'] }, + 'circgradbasedcorrmaskwhat' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'] }, + 'circgradbasedcorrmaskwholeimagearea' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, + 'circgradbasedcorrmaskx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'] }, + 'circgradbasedcorrmasky' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'] }, + 'circgradbasedcorrmaskzerox' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'] }, + 'circgradbasedcorrmaskzeroy' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'] }, + 'circgradbasedcorrmoire' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'] }, + 'circgradbasedcorrrangemask' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'] }, + 'circgradbasedcorrrangemaskareamodels' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, + 'circgradbasedcorrrangemaskareamodelscolorsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'circgradbasedcorrrangemaskareamodelscomponents' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'circgradbasedcorrrangemaskcoloramount' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, + 'circgradbasedcorrrangemaskdepthfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, + 'circgradbasedcorrrangemaskdepthmax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, + 'circgradbasedcorrrangemaskdepthmin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, + 'circgradbasedcorrrangemaskinvert' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'] }, + 'circgradbasedcorrrangemasklumfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, + 'circgradbasedcorrrangemaskluminancedepthsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'circgradbasedcorrrangemasklummax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, + 'circgradbasedcorrrangemasklummin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, + 'circgradbasedcorrrangemasklumrange' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, + 'circgradbasedcorrrangemasksampletype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, + 'circgradbasedcorrrangemasktype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'] }, + 'circgradbasedcorrrangemaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'] }, + 'circgradbasedcorrsaturation' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'] }, + 'circgradbasedcorrshadows2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'] }, + 'circgradbasedcorrsharpness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'] }, + 'circgradbasedcorrtemperature' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'] }, + 'circgradbasedcorrtexture' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'] }, + 'circgradbasedcorrtint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'] }, + 'circgradbasedcorrtoninghue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'] }, + 'circgradbasedcorrtoningsaturation' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'] }, + 'circgradbasedcorrwhat' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'] }, + 'circgradbasedcorrwhites2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'] }, + 'circulargradientbasedcorrections' => { 473 => 'CircularGradientBasedCorrections', 475 => 'CircularGradientBasedCorrections' }, + 'city' => { 130 => 0x5a, 160 => 'City', 316 => 0x6d, 487 => 'City' }, + 'city2' => { 316 => 0x80 }, + 'clarity' => { 228 => 0x35, 229 => 0x3d, 416 => 0x2036, 473 => 'Clarity', 475 => 'Clarity' }, + 'clarity2012' => { 473 => 'Clarity2012', 475 => 'Clarity2012' }, + 'claritycontrol' => { 351 => 0x96 }, + 'classification' => { 376 => 'clsf' }, 'classifystate' => { 130 => 0xe1 }, - 'clearretouch' => { 314 => 0x7c }, - 'clearretouchvalue' => { 314 => 0xa3 }, - 'client' => { 497 => 'client' }, - 'clientname' => { 479 => 'ClientName' }, - 'clipboardaspectratio' => { 471 => 'ClipboardAspectRatio', 473 => 'ClipboardAspectRatio' }, - 'clipboardorientation' => { 471 => 'ClipboardOrientation', 473 => 'ClipboardOrientation' }, - 'clipfilename' => { 374 => 'clfn' }, - 'clipid' => { 374 => 'clid' }, - 'clmodeshootingspeed' => { 274 => '10.2', 275 => '11.3', 277 => '11.2', 278 => '11.2', 283 => '11.2', 284 => '10.2', 287 => '11.2', 288 => '11.2', 289 => '11.1' }, - 'cluster' => { 471 => 'Cluster', 473 => 'Cluster' }, - 'cmcontrast' => { 299 => 0x2022 }, - 'cmexposurecompensation' => { 299 => 0x2000 }, - 'cmhue' => { 299 => 0x2021 }, - 'cmsaturation' => { 299 => 0x2020 }, - 'cmsharpness' => { 299 => 0x2023 }, - 'cmwhitebalance' => { 299 => 0x2001 }, - 'cmwhitebalancecomp' => { 299 => 0x2002 }, - 'cmwhitebalancegraypoint' => { 299 => 0x2010 }, + 'clearretouch' => { 316 => 0x7c }, + 'clearretouchvalue' => { 316 => 0xa3 }, + 'client' => { 499 => 'client' }, + 'clientname' => { 481 => 'ClientName' }, + 'clipboardaspectratio' => { 473 => 'ClipboardAspectRatio', 475 => 'ClipboardAspectRatio' }, + 'clipboardorientation' => { 473 => 'ClipboardOrientation', 475 => 'ClipboardOrientation' }, + 'clipfilename' => { 376 => 'clfn' }, + 'clipid' => { 376 => 'clid' }, + 'clmodeshootingspeed' => { 276 => '10.2', 277 => '11.3', 279 => '11.2', 280 => '11.2', 285 => '11.2', 286 => '10.2', 289 => '11.2', 290 => '11.2', 291 => '11.1' }, + 'cluster' => { 473 => 'Cluster', 475 => 'Cluster' }, + 'cmcontrast' => { 301 => 0x2022 }, + 'cmexposurecompensation' => { 301 => 0x2000 }, + 'cmhue' => { 301 => 0x2021 }, + 'cmsaturation' => { 301 => 0x2020 }, + 'cmsharpness' => { 301 => 0x2023 }, + 'cmwhitebalance' => { 301 => 0x2001 }, + 'cmwhitebalancecomp' => { 301 => 0x2002 }, + 'cmwhitebalancegraypoint' => { 301 => 0x2010 }, 'codec' => { 168 => 'Codec' }, 'codedcharacterset' => { 131 => 0x5a }, - 'codeversion' => { 374 => 'cver' }, - 'collection' => { 304 => 'Collection' }, - 'collectionname' => { 169 => [\'Collections','CollectionsCollectionName'], 374 => 'coll' }, - 'collections' => { 169 => 'Collections', 466 => 'collections' }, + 'codeversion' => { 376 => 'cver' }, + 'collection' => { 306 => 'Collection' }, + 'collectionname' => { 169 => [\'Collections','CollectionsCollectionName'], 376 => 'coll' }, + 'collections' => { 169 => 'Collections', 468 => 'collections' }, 'collectionuri' => { 169 => [\'Collections','CollectionsCollectionURI'] }, - 'color' => { 368 => 'player.movie.visual.color', 486 => 'color' }, - 'coloraberrationcontrol' => { 267 => 0xc89224b }, - 'coloradjustment' => { 391 => 0x14 }, - 'coloradjustmentmode' => { 390 => 0x210 }, - 'coloranta' => { 502 => [\'Colorants','ColorantsA'] }, - 'colorantb' => { 502 => [\'Colorants','ColorantsB'] }, - 'colorantblack' => { 502 => [\'Colorants','ColorantsBlack'] }, - 'colorantblue' => { 502 => [\'Colorants','ColorantsBlue'] }, - 'colorantcyan' => { 502 => [\'Colorants','ColorantsCyan'] }, - 'colorantgray' => { 502 => [\'Colorants','ColorantsGray'] }, - 'colorantgreen' => { 502 => [\'Colorants','ColorantsGreen'] }, - 'colorantl' => { 502 => [\'Colorants','ColorantsL'] }, - 'colorantmagenta' => { 502 => [\'Colorants','ColorantsMagenta'] }, - 'colorantmode' => { 502 => [\'Colorants','ColorantsMode'] }, - 'colorantred' => { 502 => [\'Colorants','ColorantsRed'] }, - 'colorants' => { 502 => 'Colorants' }, - 'colorantswatchname' => { 502 => [\'Colorants','ColorantsSwatchName'] }, - 'coloranttint' => { 502 => [\'Colorants','ColorantsTint'] }, - 'coloranttype' => { 502 => [\'Colorants','ColorantsType'] }, - 'colorantyellow' => { 502 => [\'Colorants','ColorantsYellow'] }, + 'color' => { 370 => 'player.movie.visual.color', 488 => 'color' }, + 'coloraberrationcontrol' => { 269 => 0xc89224b }, + 'coloradjustment' => { 393 => 0x14 }, + 'coloradjustmentmode' => { 392 => 0x210 }, + 'coloranta' => { 504 => [\'Colorants','ColorantsA'] }, + 'colorantb' => { 504 => [\'Colorants','ColorantsB'] }, + 'colorantblack' => { 504 => [\'Colorants','ColorantsBlack'] }, + 'colorantblue' => { 504 => [\'Colorants','ColorantsBlue'] }, + 'colorantcyan' => { 504 => [\'Colorants','ColorantsCyan'] }, + 'colorantgray' => { 504 => [\'Colorants','ColorantsGray'] }, + 'colorantgreen' => { 504 => [\'Colorants','ColorantsGreen'] }, + 'colorantl' => { 504 => [\'Colorants','ColorantsL'] }, + 'colorantmagenta' => { 504 => [\'Colorants','ColorantsMagenta'] }, + 'colorantmode' => { 504 => [\'Colorants','ColorantsMode'] }, + 'colorantred' => { 504 => [\'Colorants','ColorantsRed'] }, + 'colorants' => { 504 => 'Colorants' }, + 'colorantswatchname' => { 504 => [\'Colorants','ColorantsSwatchName'] }, + 'coloranttint' => { 504 => [\'Colorants','ColorantsTint'] }, + 'coloranttype' => { 504 => [\'Colorants','ColorantsType'] }, + 'colorantyellow' => { 504 => [\'Colorants','ColorantsYellow'] }, 'colorbalance' => { 155 => 'ColorBalance' }, - 'colorbalanceadj' => { 267 => 0x76a43202 }, + 'colorbalanceadj' => { 269 => 0x76a43202 }, 'colorbalanceblue' => { 180 => 0x1e }, 'colorbalancegreen' => { 180 => 0x1d }, 'colorbalancered' => { 180 => 0x1c }, 'colorbalanceversion' => { 201 => 0x4, 202 => 0x4, 203 => 0x0 }, 'colorblur' => { 108 => 0x65 }, 'colorbluron' => { 102 => 0x20704 }, - 'colorbooster' => { 267 => 0x5f0e7d23 }, - 'colorboostlevel' => { 261 => 0x1 }, - 'colorboosttype' => { 261 => 0x0 }, + 'colorbooster' => { 269 => 0x5f0e7d23 }, + 'colorboostlevel' => { 263 => 0x1 }, + 'colorboosttype' => { 263 => 0x0 }, 'colorchromeeffect' => { 126 => 0x1048 }, 'colorchromefxblue' => { 126 => 0x104e }, - 'colorclass' => { 360 => 0xde, 361 => 'ColorClass' }, - 'colorcompensationfilter' => { 183 => [0x3a,0x5f], 185 => 0x111, 414 => 0xb022 }, - 'colorcompensationfiltercustom' => { 401 => 0xd, 402 => 0xc }, - 'colorcompensationfilterset' => { 401 => 0x8, 402 => 0x7, 403 => 0x18, 419 => 0xf }, - 'colorcontrol' => { 296 => 0x102b }, - 'colorcorrection' => { 448 => 0x8015 }, - 'colorcreatoreffect' => { 291 => 0x532 }, + 'colorclass' => { 362 => 0xde, 363 => 'ColorClass' }, + 'colorcompensationfilter' => { 183 => [0x3a,0x5f], 185 => 0x111, 416 => 0xb022 }, + 'colorcompensationfiltercustom' => { 403 => 0xd, 404 => 0xc }, + 'colorcompensationfilterset' => { 403 => 0x8, 404 => 0x7, 405 => 0x18, 421 => 0xf }, + 'colorcontrol' => { 298 => 0x102b }, + 'colorcorrection' => { 450 => 0x8015 }, + 'colorcreatoreffect' => { 293 => 0x532 }, 'colordataversion' => { 41 => 0x0, 42 => 0x0, 44 => 0x0, 45 => 0x0, 46 => 0x0, 47 => 0x0, 48 => 0x0, 49 => 0x0, 50 => 0x0 }, - 'coloreffect' => { 314 => 0x28 }, - 'colorfilter' => { 111 => 0x17, 112 => 0x3017, 180 => 0x29, 188 => [0x38,0x4d,0x4f], 356 => 0x17 }, - 'colorgain' => { 232 => 0x51 }, - 'colorgradeblending' => { 471 => 'ColorGradeBlending', 473 => 'ColorGradeBlending' }, - 'colorgradeglobalhue' => { 471 => 'ColorGradeGlobalHue', 473 => 'ColorGradeGlobalHue' }, - 'colorgradegloballum' => { 471 => 'ColorGradeGlobalLum', 473 => 'ColorGradeGlobalLum' }, - 'colorgradeglobalsat' => { 471 => 'ColorGradeGlobalSat', 473 => 'ColorGradeGlobalSat' }, - 'colorgradehighlightlum' => { 471 => 'ColorGradeHighlightLum', 473 => 'ColorGradeHighlightLum' }, - 'colorgrademidtonehue' => { 471 => 'ColorGradeMidtoneHue', 473 => 'ColorGradeMidtoneHue' }, - 'colorgrademidtonelum' => { 471 => 'ColorGradeMidtoneLum', 473 => 'ColorGradeMidtoneLum' }, - 'colorgrademidtonesat' => { 471 => 'ColorGradeMidtoneSat', 473 => 'ColorGradeMidtoneSat' }, - 'colorgradeshadowlum' => { 471 => 'ColorGradeShadowLum', 473 => 'ColorGradeShadowLum' }, + 'coloreffect' => { 316 => 0x28 }, + 'colorfilter' => { 111 => 0x17, 112 => 0x3017, 180 => 0x29, 188 => [0x38,0x4d,0x4f], 358 => 0x17 }, + 'colorgain' => { 233 => 0x51 }, + 'colorgradeblending' => { 473 => 'ColorGradeBlending', 475 => 'ColorGradeBlending' }, + 'colorgradeglobalhue' => { 473 => 'ColorGradeGlobalHue', 475 => 'ColorGradeGlobalHue' }, + 'colorgradegloballum' => { 473 => 'ColorGradeGlobalLum', 475 => 'ColorGradeGlobalLum' }, + 'colorgradeglobalsat' => { 473 => 'ColorGradeGlobalSat', 475 => 'ColorGradeGlobalSat' }, + 'colorgradehighlightlum' => { 473 => 'ColorGradeHighlightLum', 475 => 'ColorGradeHighlightLum' }, + 'colorgrademidtonehue' => { 473 => 'ColorGradeMidtoneHue', 475 => 'ColorGradeMidtoneHue' }, + 'colorgrademidtonelum' => { 473 => 'ColorGradeMidtoneLum', 475 => 'ColorGradeMidtoneLum' }, + 'colorgrademidtonesat' => { 473 => 'ColorGradeMidtoneSat', 475 => 'ColorGradeMidtoneSat' }, + 'colorgradeshadowlum' => { 473 => 'ColorGradeShadowLum', 475 => 'ColorGradeShadowLum' }, 'colorhue' => { 102 => 0x20900, 224 => 0x8d }, 'colorimetricreference' => { 118 => 0xc6bf }, - 'colorlabel' => { 476 => 'ColorLabel' }, - 'colormatrix' => { 295 => 0x200, 296 => 0x1011, 388 => 0xa030 }, - 'colormatrix1' => { 118 => 0xc621, 358 => 0x106 }, - 'colormatrix2' => { 118 => 0xc622, 299 => 0x200, 358 => 0x226 }, + 'colorlabel' => { 478 => 'ColorLabel' }, + 'colormatrix' => { 297 => 0x200, 298 => 0x1011, 390 => 0xa030 }, + 'colormatrix1' => { 118 => 0xc621, 360 => 0x106 }, + 'colormatrix2' => { 118 => 0xc622, 301 => 0x200, 360 => 0x226 }, 'colormatrix3' => { 118 => 0xcd33 }, - 'colormatrixa' => { 349 => 0x203 }, - 'colormatrixa2' => { 349 => 0x21c }, - 'colormatrixadobergb' => { 388 => 0xa032 }, - 'colormatrixb' => { 349 => 0x204 }, - 'colormatrixb2' => { 349 => 0x21d }, - 'colormatrixnumber' => { 296 => 0x1019 }, - 'colormatrixsrgb' => { 388 => 0xa031 }, - 'colormode' => { 112 => 0x3015, 126 => 0x1210, 139 => 0x66, 180 => 0x28, 183 => 0x16, 185 => 0x101, 186 => 0x36, 188 => 0x7, 224 => 0x3, 256 => 0x4, 314 => 0x32, 391 => 0x2c, 414 => 0xb029, 485 => 'ColorMode' }, - 'colormoirereduction' => { 102 => 0x20670, 268 => 0x15 }, - 'colormoirereductionmode' => { 268 => 0x5 }, + 'colormatrixa' => { 351 => 0x203 }, + 'colormatrixa2' => { 351 => 0x21c }, + 'colormatrixadobergb' => { 390 => 0xa032 }, + 'colormatrixb' => { 351 => 0x204 }, + 'colormatrixb2' => { 351 => 0x21d }, + 'colormatrixnumber' => { 298 => 0x1019 }, + 'colormatrixsrgb' => { 390 => 0xa031 }, + 'colormode' => { 112 => 0x3015, 126 => 0x1210, 139 => 0x66, 180 => 0x28, 183 => 0x16, 185 => 0x101, 186 => 0x36, 188 => 0x7, 224 => 0x3, 258 => 0x4, 316 => 0x32, 393 => 0x2c, 416 => 0xb029, 487 => 'ColorMode' }, + 'colormoirereduction' => { 102 => 0x20670, 270 => 0x15 }, + 'colormoirereductionmode' => { 270 => 0x5 }, 'colormoirereductionon' => { 102 => '0x20670.0' }, - 'colornoisereduction' => { 448 => 0x8029, 471 => 'ColorNoiseReduction', 473 => 'ColorNoiseReduction' }, - 'colornoisereductiondetail' => { 471 => 'ColorNoiseReductionDetail', 473 => 'ColorNoiseReductionDetail' }, - 'colornoisereductionintensity' => { 268 => 0x18 }, - 'colornoisereductionsharpness' => { 268 => 0x1c }, - 'colornoisereductionsmoothness' => { 471 => 'ColorNoiseReductionSmoothness', 473 => 'ColorNoiseReductionSmoothness' }, + 'colornoisereduction' => { 450 => 0x8029, 473 => 'ColorNoiseReduction', 475 => 'ColorNoiseReduction' }, + 'colornoisereductiondetail' => { 473 => 'ColorNoiseReductionDetail', 475 => 'ColorNoiseReductionDetail' }, + 'colornoisereductionintensity' => { 270 => 0x18 }, + 'colornoisereductionsharpness' => { 270 => 0x1c }, + 'colornoisereductionsmoothness' => { 473 => 'ColorNoiseReductionSmoothness', 475 => 'ColorNoiseReductionSmoothness' }, 'colorplanes' => { 122 => 0x2 }, 'colorprofile' => { 180 => 0x33 }, - 'colorprofilesettings' => { 291 => 0x539 }, + 'colorprofilesettings' => { 293 => 0x539 }, 'colorrepresentation' => { 132 => 0x3c }, 'colorsaturationadj' => { 102 => 0x20305 }, 'colorsequence' => { 132 => 0x41 }, - 'colorspace' => { 51 => 0x3, 63 => 0xb4, 96 => 0x10b4, 118 => 0xa001, 134 => 0x3, 161 => 'ColorSpace', 181 => 0x2f, 182 => 0x25, 183 => 0x17, 224 => 0x1e, 291 => 0x507, 349 => 0x37, 388 => 0xa011, 391 => 0xb, 401 => 0x1b, 402 => 0x83, 403 => 0xe, 419 => 0x6, 477 => 'ColorSpace' }, + 'colorspace' => { 51 => 0x3, 63 => 0xb4, 96 => 0x10b4, 118 => 0xa001, 134 => 0x3, 161 => 'ColorSpace', 181 => 0x2f, 182 => 0x25, 183 => 0x17, 224 => 0x1e, 293 => 0x507, 351 => 0x37, 390 => 0xa011, 393 => 0xb, 403 => 0x1b, 404 => 0x83, 405 => 0xe, 421 => 0x6, 479 => 'ColorSpace' }, 'colorspecapproximation' => { 134 => 0x2 }, 'colorspecdata' => { 134 => 0x3 }, 'colorspecmethod' => { 134 => 0x0 }, 'colorspecprecedence' => { 134 => 0x1 }, 'colortempasshot' => { 38 => 0x4, 39 => 0x7, 40 => 0x1d, 41 => 0x59, 42 => 0x6d, 43 => 0x26, 44 => 0x43, 47 => 0x43, 48 => 0x43, 49 => 0x43, 50 => 0x4b }, 'colortempauto' => { 38 => 0x9, 39 => 0xf, 40 => 0x22, 41 => 0x5e, 42 => 0x72, 43 => 0x1c, 44 => 0x48, 47 => 0x48, 48 => 0x48, 49 => 0x48, 50 => 0x50 }, - 'colortempcloudy' => { 38 => 0x22, 39 => 0x37, 40 => 0x31, 41 => 0xa4, 42 => 0xdb, 43 => 0x35, 44 => 0x5c, 47 => 0x75, 48 => 0x8e, 49 => 0x93, 50 => 0x96, 349 => 0x55 }, + 'colortempcloudy' => { 38 => 0x22, 39 => 0x37, 40 => 0x31, 41 => 0xa4, 42 => 0xdb, 43 => 0x35, 44 => 0x5c, 47 => 0x75, 48 => 0x8e, 49 => 0x93, 50 => 0x96, 351 => 0x55 }, 'colortempcustom' => { 44 => 0x84 }, 'colortempcustom1' => { 40 => 0x45 }, 'colortempcustom2' => { 40 => 0x4a }, - 'colortempdaylight' => { 38 => 0x18, 39 => 0x27, 40 => 0x27, 41 => 0x9a, 42 => 0xd1, 43 => 0x2b, 44 => 0x52, 47 => 0x6b, 48 => 0x84, 49 => 0x89, 50 => 0x8c, 349 => 0x53 }, - 'colortemperature' => { 7 => 0x73, 8 => [0x48,0x4e], 9 => 0xc0, 10 => 0x37, 11 => 0x62, 12 => 0x37, 13 => 0x7c, 14 => 0x73, 15 => 0x73, 16 => 0x77, 17 => 0x73, 18 => 0x7c, 19 => 0x58, 20 => 0x73, 21 => 0xc0, 22 => 0x7f, 23 => 0x7d, 24 => 0xc0, 25 => 0xc6, 26 => 0xc7, 27 => 0x135, 28 => 0x7b, 29 => 0x13a, 63 => 0xae, 73 => 0x9, 96 => 0x10ae, 126 => 0x1005, 137 => 0x846, 155 => 'ColorTemperature', 181 => [0x6e,0x49], 182 => 0x3f, 183 => [0x39,0x5e], 185 => 0x10b, 188 => [0x3c,0x4c,0x4e], 309 => 0x321, 349 => 0x50, 381 => 0x1308, 414 => 0xb021, 471 => 'Temperature', 473 => 'Temperature' }, - 'colortemperatureadj' => { 448 => 0x8013 }, + 'colortempdaylight' => { 38 => 0x18, 39 => 0x27, 40 => 0x27, 41 => 0x9a, 42 => 0xd1, 43 => 0x2b, 44 => 0x52, 47 => 0x6b, 48 => 0x84, 49 => 0x89, 50 => 0x8c, 351 => 0x53 }, + 'colortemperature' => { 7 => 0x73, 8 => [0x48,0x4e], 9 => 0xc0, 10 => 0x37, 11 => 0x62, 12 => 0x37, 13 => 0x7c, 14 => 0x73, 15 => 0x73, 16 => 0x77, 17 => 0x73, 18 => 0x7c, 19 => 0x58, 20 => 0x73, 21 => 0xc0, 22 => 0x7f, 23 => 0x7d, 24 => 0xc0, 25 => 0xc6, 26 => 0xc7, 27 => 0x135, 28 => 0x7b, 29 => 0x13a, 63 => 0xae, 73 => 0x9, 96 => 0x10ae, 126 => 0x1005, 137 => 0x846, 155 => 'ColorTemperature', 181 => [0x6e,0x49], 182 => 0x3f, 183 => [0x39,0x5e], 185 => 0x10b, 188 => [0x3c,0x4c,0x4e], 311 => 0x321, 351 => 0x50, 383 => 0x1308, 416 => 0xb021, 473 => 'Temperature', 475 => 'Temperature' }, + 'colortemperatureadj' => { 450 => 0x8013 }, 'colortemperatureauto' => { 224 => 0x4f }, - 'colortemperaturebg' => { 296 => 0x1013 }, - 'colortemperaturecustom' => { 401 => 0xc, 402 => 0xb }, - 'colortemperaturerg' => { 296 => 0x1014 }, - 'colortemperatureset' => { 401 => 0x7, 402 => 0x6 }, - 'colortemperaturesetting' => { 183 => 0x25, 403 => 0x17, 419 => 0xe }, - 'colortempflash' => { 38 => 0x36, 39 => 0x57, 40 => 0x40, 41 => 0xb8, 42 => 0xef, 43 => 0x49, 44 => 0x70, 47 => 0x89, 48 => 0xa2, 49 => 0xa7, 50 => 0xaa, 349 => 0x5a }, + 'colortemperaturebg' => { 298 => 0x1013 }, + 'colortemperaturecustom' => { 403 => 0xc, 404 => 0xb }, + 'colortemperaturerg' => { 298 => 0x1014 }, + 'colortemperatureset' => { 403 => 0x7, 404 => 0x6 }, + 'colortemperaturesetting' => { 183 => 0x25, 405 => 0x17, 421 => 0xe }, + 'colortempflash' => { 38 => 0x36, 39 => 0x57, 40 => 0x40, 41 => 0xb8, 42 => 0xef, 43 => 0x49, 44 => 0x70, 47 => 0x89, 48 => 0xa2, 49 => 0xa7, 50 => 0xaa, 351 => 0x5a }, 'colortempflashdata' => { 44 => 0x24a }, 'colortempfluorescent' => { 38 => 0x2c, 39 => 0x47, 40 => 0x3b, 41 => 0xae, 42 => 0xe5, 43 => 0x3f, 44 => 0x66, 47 => 0x7f, 48 => 0x98, 49 => 0x9d, 50 => 0xa0 }, - 'colortempfluorescentd' => { 349 => 0x57 }, - 'colortempfluorescentn' => { 349 => 0x58 }, - 'colortempfluorescentw' => { 349 => 0x59 }, - 'colortempkelvin' => { 38 => 0x31, 39 => 0x4f, 41 => 0xb3, 42 => 0xea, 43 => 0x44, 44 => 0x6b, 47 => 0x84, 48 => 0x9d, 49 => 0xa2, 50 => 0xa5, 314 => 0x44, 381 => 0x1307 }, + 'colortempfluorescentd' => { 351 => 0x57 }, + 'colortempfluorescentn' => { 351 => 0x58 }, + 'colortempfluorescentw' => { 351 => 0x59 }, + 'colortempkelvin' => { 38 => 0x31, 39 => 0x4f, 41 => 0xb3, 42 => 0xea, 43 => 0x44, 44 => 0x6b, 47 => 0x84, 48 => 0x9d, 49 => 0xa2, 50 => 0xa5, 316 => 0x44, 383 => 0x1307 }, 'colortempmeasured' => { 38 => 0xe, 39 => 0x17, 41 => 0x63, 42 => 0x77, 44 => 0x4d, 47 => 0x4d, 48 => 0x4d, 49 => 0x4d, 50 => 0x55 }, 'colortemppc1' => { 43 => 0x94, 44 => 0x75 }, 'colortemppc2' => { 43 => 0x99, 44 => 0x7a }, 'colortemppc3' => { 43 => 0x9e, 44 => 0x7f }, - 'colortempshade' => { 38 => 0x1d, 39 => 0x2f, 40 => 0x2c, 41 => 0x9f, 42 => 0xd6, 43 => 0x30, 44 => 0x57, 47 => 0x70, 48 => 0x89, 49 => 0x8e, 50 => 0x91, 349 => 0x54 }, - 'colortemptungsten' => { 38 => 0x27, 39 => 0x3f, 40 => 0x36, 41 => 0xa9, 42 => 0xe0, 43 => 0x3a, 44 => 0x61, 47 => 0x7a, 48 => 0x93, 49 => 0x98, 50 => 0x9b, 349 => 0x56 }, + 'colortempshade' => { 38 => 0x1d, 39 => 0x2f, 40 => 0x2c, 41 => 0x9f, 42 => 0xd6, 43 => 0x30, 44 => 0x57, 47 => 0x70, 48 => 0x89, 49 => 0x8e, 50 => 0x91, 351 => 0x54 }, + 'colortemptungsten' => { 38 => 0x27, 39 => 0x3f, 40 => 0x36, 41 => 0xa9, 42 => 0xe0, 43 => 0x3a, 44 => 0x61, 47 => 0x7a, 48 => 0x93, 49 => 0x98, 50 => 0x9b, 351 => 0x56 }, 'colortempunknown' => { 38 => 0x13, 39 => 0x1f, 41 => 0x68, 42 => 0x7c, 43 => 0x21, 47 => 0x52, 48 => 0x52, 49 => 0x52, 50 => 0x5a }, 'colortempunknown10' => { 38 => 0x63, 39 => 0x9f, 41 => 0x95, 42 => 0xa9, 43 => 0x76, 47 => 0xa2, 48 => 0x7f, 49 => 0x7f, 50 => 0x87 }, 'colortempunknown11' => { 38 => 0x68, 39 => 0xa7, 41 => 0xbd, 42 => [0xae,0xb3], 43 => 0x7b, 47 => 0xa7, 48 => 0xa7, 49 => 0x84, 50 => 0xaf }, 'colortempunknown12' => { 38 => 0x6d, 39 => 0xaf, 41 => 0xc2, 42 => 0xb8, 43 => 0x80, 47 => 0xac, 48 => 0xac, 49 => 0xac, 50 => 0xb4 }, 'colortempunknown13' => { 38 => 0x72, 39 => 0xb7, 41 => 0xc7, 42 => 0xbd, 43 => 0x85, 47 => 0xb1, 48 => 0xb1, 49 => 0xb1, 50 => 0xb9 }, @@ -1712,11 +1714,11 @@ my %tagLookup = ( 'colortempunknown5' => { 38 => 0x4a, 39 => 0x77, 41 => 0x7c, 42 => 0x90, 43 => 0x5d, 47 => 0x66, 48 => 0x66, 49 => 0x66, 50 => 0x6e }, 'colortempunknown6' => { 38 => 0x4f, 39 => 0x7f, 41 => 0x81, 42 => 0x95, 43 => 0x62, 47 => 0x8e, 48 => 0x6b, 49 => 0x6b, 50 => 0x73 }, 'colortempunknown7' => { 38 => 0x54, 39 => 0x87, 41 => 0x86, 42 => 0x9a, 43 => 0x67, 47 => 0x93, 48 => 0x70, 49 => 0x70, 50 => 0x78 }, 'colortempunknown8' => { 38 => 0x59, 39 => 0x8f, 41 => 0x8b, 42 => 0x9f, 43 => 0x6c, 47 => 0x98, 48 => 0x75, 49 => 0x75, 50 => 0x7d }, 'colortempunknown9' => { 38 => 0x5e, 39 => 0x97, 41 => 0x90, 42 => 0xa4, 43 => 0x71, 47 => 0x9d, 48 => 0x7a, 49 => 0x7a, 50 => 0x82 }, - 'colortint' => { 313 => 0x35c }, + 'colortint' => { 315 => 0x35c }, 'colortone' => { 10 => 0x6f, 12 => 0x77, 34 => 0x2a, 51 => 0x2 }, 'colortoneadj' => { 102 => 0x20304, 107 => 0x11e }, 'colortoneauto' => { 70 => 0x9c }, 'colortonefaithful' => { 19 => 0x107, 69 => 0x6c, 70 => 0x6c }, 'colortonelandscape' => { 19 => 0x105, 69 => 0x3c, 70 => 0x3c }, @@ -1726,281 +1728,281 @@ my %tagLookup = ( 'colortonestandard' => { 19 => 0x103, 69 => 0xc, 70 => 0xc }, 'colortoneuserdef1' => { 19 => 0x109, 69 => 0x9c, 70 => 0xb4 }, 'colortoneuserdef2' => { 19 => 0x10a, 69 => 0xb4, 70 => 0xcc }, 'colortoneuserdef3' => { 19 => 0x10b, 69 => 0xcc, 70 => 0xe4 }, 'comlenblksize' => { 137 => 0xfde8 }, - 'commanddials' => { 285 => '5.1' }, - 'commanddialsaperturesetting' => { 274 => '17.3', 275 => '18.3', 277 => '18.3', 278 => '18.3', 283 => '33.3', 284 => '17.3', 287 => '18.3', 288 => '18.3' }, - 'commanddialschangemainsub' => { 274 => '17.2', 275 => '18.1', 277 => '18.1', 278 => '18.1', 283 => '33.2', 284 => '17.2', 287 => '18.1', 288 => '18.1' }, - 'commanddialsmenuandplayback' => { 274 => '17.4', 275 => '18.2', 277 => '18.2', 278 => '18.2', 283 => '33.4', 284 => '17.4', 287 => '18.2', 288 => '18.2' }, - 'commanddialsreverserotation' => { 274 => '17.1', 275 => '6.4', 277 => '6.2', 278 => '6.2', 279 => '16.2', 280 => '17.2', 283 => '33.1', 284 => '17.1', 287 => '6.2', 288 => '6.2', 289 => '18.1' }, - 'commanderchannel' => { 285 => '10.2', 286 => '25.2' }, - 'commandergroupa_ttl-aacomp' => { 285 => '13.1', 286 => '31.1' }, - 'commandergroupa_ttlcomp' => { 289 => '32.1' }, - 'commandergroupamanualoutput' => { 285 => '13.2', 286 => '28.2' }, - 'commandergroupamode' => { 285 => '11.2', 286 => '28.1' }, - 'commandergroupb_ttl-aacomp' => { 285 => '14.1', 286 => '32.1' }, - 'commandergroupb_ttlcomp' => { 289 => '33.1' }, - 'commandergroupbmanualoutput' => { 285 => '14.2', 286 => '29.2' }, - 'commandergroupbmode' => { 285 => '11.3', 286 => '29.1' }, - 'commanderinternalflash' => { 285 => '11.1', 286 => '27.1' }, - 'commanderinternalmanualoutput' => { 285 => '12.2', 286 => '27.2' }, - 'commanderinternalttlchannel' => { 283 => '18.2' }, - 'commanderinternalttlcomp' => { 285 => '12.1', 286 => '30.2', 289 => '31.2' }, - 'commanderinternalttlcompbuiltin' => { 283 => '20.1', 284 => '26.1' }, - 'commanderinternalttlcompgroupa' => { 283 => '21.1', 284 => '27.1' }, - 'commanderinternalttlcompgroupb' => { 283 => '22.1', 284 => '28.1' }, - 'comment' => { 0 => 0x2, 119 => 'Comment', 156 => 'Comment', 304 => 'Comment', 366 => "\xa9cmt", 368 => 'comment', 374 => "\xa9cmt" }, - 'compass' => { 384 => 0x4 }, - 'compatibleversion' => { 471 => 'CompatibleVersion', 473 => 'CompatibleVersion' }, - 'compilation' => { 366 => 'cpil' }, - 'compimageimagespersequence' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfImagesInSequences'] }, - 'compimagemaxexposureall' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfAll'] }, - 'compimagemaxexposureused' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfUsed'] }, - 'compimageminexposureall' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfAll'] }, - 'compimageminexposureused' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfUsed'] }, - 'compimagenumsequences' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfSequences'] }, - 'compimagesumexposureall' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfAll'] }, - 'compimagesumexposureused' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfUsed'] }, - 'compimagetotalexposureperiod' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesTotalExposurePeriod'] }, - 'compimagevalues' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesValues'] }, - 'complianceprofile' => { 487 => 'complianceProfile' }, - 'componentsconfiguration' => { 118 => 0x9101, 161 => 'Components', 477 => 'ComponentsConfiguration' }, + 'commanddials' => { 287 => '5.1' }, + 'commanddialsaperturesetting' => { 276 => '17.3', 277 => '18.3', 279 => '18.3', 280 => '18.3', 285 => '33.3', 286 => '17.3', 289 => '18.3', 290 => '18.3' }, + 'commanddialschangemainsub' => { 276 => '17.2', 277 => '18.1', 279 => '18.1', 280 => '18.1', 285 => '33.2', 286 => '17.2', 289 => '18.1', 290 => '18.1' }, + 'commanddialsmenuandplayback' => { 276 => '17.4', 277 => '18.2', 279 => '18.2', 280 => '18.2', 285 => '33.4', 286 => '17.4', 289 => '18.2', 290 => '18.2' }, + 'commanddialsreverserotation' => { 276 => '17.1', 277 => '6.4', 279 => '6.2', 280 => '6.2', 281 => '16.2', 282 => '17.2', 285 => '33.1', 286 => '17.1', 289 => '6.2', 290 => '6.2', 291 => '18.1' }, + 'commanderchannel' => { 287 => '10.2', 288 => '25.2' }, + 'commandergroupa_ttl-aacomp' => { 287 => '13.1', 288 => '31.1' }, + 'commandergroupa_ttlcomp' => { 291 => '32.1' }, + 'commandergroupamanualoutput' => { 287 => '13.2', 288 => '28.2' }, + 'commandergroupamode' => { 287 => '11.2', 288 => '28.1' }, + 'commandergroupb_ttl-aacomp' => { 287 => '14.1', 288 => '32.1' }, + 'commandergroupb_ttlcomp' => { 291 => '33.1' }, + 'commandergroupbmanualoutput' => { 287 => '14.2', 288 => '29.2' }, + 'commandergroupbmode' => { 287 => '11.3', 288 => '29.1' }, + 'commanderinternalflash' => { 287 => '11.1', 288 => '27.1' }, + 'commanderinternalmanualoutput' => { 287 => '12.2', 288 => '27.2' }, + 'commanderinternalttlchannel' => { 285 => '18.2' }, + 'commanderinternalttlcomp' => { 287 => '12.1', 288 => '30.2', 291 => '31.2' }, + 'commanderinternalttlcompbuiltin' => { 285 => '20.1', 286 => '26.1' }, + 'commanderinternalttlcompgroupa' => { 285 => '21.1', 286 => '27.1' }, + 'commanderinternalttlcompgroupb' => { 285 => '22.1', 286 => '28.1' }, + 'comment' => { 0 => 0x2, 119 => 'Comment', 156 => 'Comment', 306 => 'Comment', 368 => "\xa9cmt", 370 => 'comment', 376 => "\xa9cmt" }, + 'compass' => { 386 => 0x4 }, + 'compatibleversion' => { 473 => 'CompatibleVersion', 475 => 'CompatibleVersion' }, + 'compilation' => { 368 => 'cpil' }, + 'compimageimagespersequence' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfImagesInSequences'] }, + 'compimagemaxexposureall' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfAll'] }, + 'compimagemaxexposureused' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfUsed'] }, + 'compimageminexposureall' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfAll'] }, + 'compimageminexposureused' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfUsed'] }, + 'compimagenumsequences' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfSequences'] }, + 'compimagesumexposureall' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfAll'] }, + 'compimagesumexposureused' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfUsed'] }, + 'compimagetotalexposureperiod' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesTotalExposurePeriod'] }, + 'compimagevalues' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesValues'] }, + 'complianceprofile' => { 489 => 'complianceProfile' }, + 'componentsconfiguration' => { 118 => 0x9101, 161 => 'Components', 479 => 'ComponentsConfiguration' }, 'componentversion' => { 96 => 0x80c }, - 'composer' => { 178 => 'WM/Composer', 366 => ["\xa9com","\xa9wrt"], 374 => ["\xa9com","\xa9wrt"], 497 => 'composer' }, - 'composerkeywords' => { 374 => "\xa9cok" }, - 'compositeimage' => { 118 => 0xa460, 478 => 'CompositeImage' }, - 'compositeimagecount' => { 118 => 0xa461, 478 => 'CompositeImageCount' }, - 'compositeimageexposuretimes' => { 118 => 0xa462, 478 => 'CompositeImageExposureTimes' }, - 'composition' => { 461 => 'Composition' }, - 'compositionadjust' => { 348 => '0.1' }, - 'compositionadjustrotation' => { 348 => 0x7 }, - 'compositionadjustx' => { 348 => 0x5 }, - 'compositionadjusty' => { 348 => 0x6 }, - 'compressedbitsperpixel' => { 118 => 0x9102, 477 => 'CompressedBitsPerPixel' }, - 'compressedimagesize' => { 185 => 0x40, 296 => 0x40 }, - 'compression' => { 118 => 0x103, 319 => 0xb, 493 => 'Compression' }, - 'compressionfactor' => { 291 => 0x50d }, - 'compressionratio' => { 161 => 'Compression', 296 => 0x1034 }, - 'compressorversion' => { 374 => 'CNCV' }, + 'composer' => { 178 => 'WM/Composer', 368 => ["\xa9com","\xa9wrt"], 376 => ["\xa9com","\xa9wrt"], 499 => 'composer' }, + 'composerkeywords' => { 376 => "\xa9cok" }, + 'compositeimage' => { 118 => 0xa460, 480 => 'CompositeImage' }, + 'compositeimagecount' => { 118 => 0xa461, 480 => 'CompositeImageCount' }, + 'compositeimageexposuretimes' => { 118 => 0xa462, 480 => 'CompositeImageExposureTimes' }, + 'composition' => { 463 => 'Composition' }, + 'compositionadjust' => { 350 => '0.1' }, + 'compositionadjustrotation' => { 350 => 0x7 }, + 'compositionadjustx' => { 350 => 0x5 }, + 'compositionadjusty' => { 350 => 0x6 }, + 'compressedbitsperpixel' => { 118 => 0x9102, 479 => 'CompressedBitsPerPixel' }, + 'compressedimagesize' => { 185 => 0x40, 298 => 0x40 }, + 'compression' => { 118 => 0x103, 321 => 0xb, 495 => 'Compression' }, + 'compressionfactor' => { 293 => 0x50d }, + 'compressionratio' => { 161 => 'Compression', 298 => 0x1034 }, + 'compressorversion' => { 376 => 'CNCV' }, 'condadobvfactor' => { 137 => 0xf3e }, 'condadodaybvthresh' => { 137 => 0xf3c }, 'condadodayoffsets' => { 137 => 0xf42 }, 'condadofluoffsets' => { 137 => 0xf44 }, 'condadofluthresh' => { 137 => 0xf41 }, 'condadoillfactor' => { 137 => 0xf3f }, 'condadoneurange' => { 137 => 0xf3d }, 'condadotunoffsets' => { 137 => 0xf43 }, 'condadotunthresh' => { 137 => 0xf40 }, - 'conductor' => { 178 => 'WM/Conductor', 366 => "\xa9con" }, - 'confidence' => { 456 => 'Confidence' }, - 'confidencelevel' => { 467 => 'ConfidenceLevel' }, - 'confidencemime' => { 456 => 'ConfidenceMime' }, - 'constrainedcropheight' => { 107 => 0x266, 360 => 0xd6 }, - 'constrainedcropwidth' => { 107 => 0x262, 360 => 0xd5 }, + 'conductor' => { 178 => 'WM/Conductor', 368 => "\xa9con" }, + 'confidence' => { 458 => 'Confidence' }, + 'confidencelevel' => { 469 => 'ConfidenceLevel' }, + 'confidencemime' => { 458 => 'ConfidenceMime' }, + 'constrainedcropheight' => { 107 => 0x266, 362 => 0xd6 }, + 'constrainedcropwidth' => { 107 => 0x262, 362 => 0xd5 }, 'contact' => { 130 => 0x76 }, - 'contactinfo' => { 471 => 'ContactInfo', 473 => 'ContactInfo', 486 => 'contactInfo' }, - 'container' => { 451 => 'Container' }, - 'containerdirectory' => { 451 => [\'Container','ContainerDirectory'] }, - 'containerdirectoryitem' => { 451 => [\'Container','ContainerDirectoryItem'] }, - 'containerdirectoryitemdatauri' => { 451 => [\'Container','ContainerDirectoryItemDataURI'] }, - 'containerdirectoryitemlength' => { 451 => [\'Container','ContainerDirectoryItemLength'] }, - 'containerdirectoryitemmime' => { 451 => [\'Container','ContainerDirectoryItemMime'] }, - 'containerdirectoryitempadding' => { 451 => [\'Container','ContainerDirectoryItemPadding'] }, - 'containerformat' => { 483 => 'ContainerFormat' }, - 'containerformatidentifier' => { 483 => [\'ContainerFormat','ContainerFormatIdentifier'] }, - 'containerformatname' => { 483 => [\'ContainerFormat','ContainerFormatName'] }, - 'contentcreatedate' => { 366 => "\xa9day", 374 => ['@day',"\xa9day"] }, + 'contactinfo' => { 473 => 'ContactInfo', 475 => 'ContactInfo', 488 => 'contactInfo' }, + 'container' => { 453 => 'Container' }, + 'containerdirectory' => { 453 => [\'Container','ContainerDirectory'] }, + 'containerdirectoryitem' => { 453 => [\'Container','ContainerDirectoryItem'] }, + 'containerdirectoryitemdatauri' => { 453 => [\'Container','ContainerDirectoryItemDataURI'] }, + 'containerdirectoryitemlength' => { 453 => [\'Container','ContainerDirectoryItemLength'] }, + 'containerdirectoryitemmime' => { 453 => [\'Container','ContainerDirectoryItemMime'] }, + 'containerdirectoryitempadding' => { 453 => [\'Container','ContainerDirectoryItemPadding'] }, + 'containerformat' => { 485 => 'ContainerFormat' }, + 'containerformatidentifier' => { 485 => [\'ContainerFormat','ContainerFormatIdentifier'] }, + 'containerformatname' => { 485 => [\'ContainerFormat','ContainerFormatName'] }, + 'contentcreatedate' => { 368 => "\xa9day", 376 => ['@day',"\xa9day"] }, 'contentdistributor' => { 178 => 'WM/ContentDistributor' }, - 'contentdistributorid' => { 374 => 'cdis' }, - 'contentid' => { 374 => 'ccid' }, + 'contentdistributorid' => { 376 => 'cdis' }, + 'contentid' => { 376 => 'ccid' }, 'contentlocationcode' => { 130 => 0x1a }, 'contentlocationname' => { 130 => 0x1b }, - 'contenttype' => { 487 => 'contentType' }, + 'contenttype' => { 489 => 'contentType' }, 'continuousbracketing' => { 183 => 0x20 }, 'continuousdrive' => { 34 => 0x5 }, - 'continuousmodeliveview' => { 288 => '77.2' }, + 'continuousmodeliveview' => { 290 => '77.2' }, 'continuousshootingspeed' => { 83 => 0x610 }, 'continuousshotlimit' => { 83 => 0x611 }, - 'contrast' => { 10 => 0x73, 12 => 0x75, 34 => 0xd, 111 => 0xc, 112 => [0x3012,0x20], 118 => [0xa408,0xfe54], 126 => [0x1004,0x1006], 155 => 'Contrast', 175 => 'Contrast', 180 => 0x20, 181 => 0x31, 182 => 0x27, 183 => 0x19, 188 => 0x2, 226 => 0x33, 227 => 0x37, 228 => 0x3f, 296 => 0x1029, 314 => 0x39, 316 => 0x300a, 349 => 0x20, 356 => 0xc, 368 => 'player.movie.visual.contrast', 375 => 0x24, 377 => 0x52, 381 => 0x1012, 391 => 0xd, 401 => 0x1d, 402 => 0x1a, 414 => 0x2004, 471 => 'Contrast', 473 => 'Contrast', 477 => 'Contrast' }, - 'contrast2012' => { 471 => 'Contrast2012', 473 => 'Contrast2012' }, - 'contrastadj' => { 102 => 0x20303, 107 => 0x115, 270 => 0x2c, 448 => 0x8017 }, + 'contrast' => { 10 => 0x73, 12 => 0x75, 34 => 0xd, 111 => 0xc, 112 => [0x3012,0x20], 118 => [0xa408,0xfe54], 126 => [0x1004,0x1006], 155 => 'Contrast', 175 => 'Contrast', 180 => 0x20, 181 => 0x31, 182 => 0x27, 183 => 0x19, 188 => 0x2, 227 => 0x33, 228 => 0x37, 229 => 0x3f, 298 => 0x1029, 316 => 0x39, 318 => 0x300a, 351 => 0x20, 358 => 0xc, 370 => 'player.movie.visual.contrast', 377 => 0x24, 379 => 0x52, 383 => 0x1012, 393 => 0xd, 403 => 0x1d, 404 => 0x1a, 416 => 0x2004, 473 => 'Contrast', 475 => 'Contrast', 479 => 'Contrast' }, + 'contrast2012' => { 473 => 'Contrast2012', 475 => 'Contrast2012' }, + 'contrastadj' => { 102 => 0x20303, 107 => 0x115, 272 => 0x2c, 450 => 0x8017 }, 'contrastauto' => { 70 => 0x90 }, 'contrastcurve' => { 224 => 0x8c }, 'contrastdetectaf' => { 192 => 0x4 }, - 'contrastdetectafarea' => { 349 => 0x231 }, + 'contrastdetectafarea' => { 351 => 0x231 }, 'contrastdetectafinfocus' => { 192 => [0x1c,0x52] }, 'contrastfaithful' => { 19 => 0xec, 69 => 0x60, 70 => 0x60 }, - 'contrasthighlight' => { 349 => 0x6d }, - 'contrasthighlightshadowadj' => { 349 => 0x6f }, + 'contrasthighlight' => { 351 => 0x6d }, + 'contrasthighlightshadowadj' => { 351 => 0x6f }, 'contrastlandscape' => { 19 => 0xea, 69 => 0x30, 70 => 0x30 }, - 'contrastmode' => { 314 => 0x2c }, + 'contrastmode' => { 316 => 0x2c }, 'contrastmonochrome' => { 19 => 0xed, 69 => 0x78, 70 => 0x78 }, 'contrastneutral' => { 19 => 0xeb, 69 => 0x48, 70 => 0x48 }, 'contrastportrait' => { 19 => 0xe9, 69 => 0x18, 70 => 0x18 }, - 'contrastsetting' => { 291 => 0x505, 299 => 0x1012, 403 => 0x10, 419 => 0x8 }, - 'contrastshadow' => { 349 => 0x6e }, + 'contrastsetting' => { 293 => 0x505, 301 => 0x1012, 405 => 0x10, 421 => 0x8 }, + 'contrastshadow' => { 351 => 0x6e }, 'contraststandard' => { 19 => 0xe8, 69 => 0x0, 70 => 0x0 }, 'contrastuserdef1' => { 19 => 0xee, 69 => 0x90, 70 => 0xa8 }, 'contrastuserdef2' => { 19 => 0xef, 69 => 0xa8, 70 => 0xc0 }, 'contrastuserdef3' => { 19 => 0xf0, 69 => 0xc0, 70 => 0xd8 }, - 'contributedmedia' => { 497 => 'contributedMedia' }, - 'contributedmediaduration' => { 497 => [\'contributedMedia','contributedMediaDuration'] }, - 'contributedmediadurationscale' => { 497 => [\'contributedMedia','contributedMediaDurationScale'] }, - 'contributedmediadurationvalue' => { 497 => [\'contributedMedia','contributedMediaDurationValue'] }, - 'contributedmediamanaged' => { 497 => [\'contributedMedia','contributedMediaManaged'] }, - 'contributedmediapath' => { 497 => [\'contributedMedia','contributedMediaPath'] }, - 'contributedmediastarttime' => { 497 => [\'contributedMedia','contributedMediaStartTime'] }, - 'contributedmediastarttimescale' => { 497 => [\'contributedMedia','contributedMediaStartTimeScale'] }, - 'contributedmediastarttimevalue' => { 497 => [\'contributedMedia','contributedMediaStartTimeValue'] }, - 'contributedmediatrack' => { 497 => [\'contributedMedia','contributedMediaTrack'] }, - 'contributedmediawebstatement' => { 497 => [\'contributedMedia','contributedMediaWebStatement'] }, - 'contributor' => { 474 => 'contributor', 483 => 'Contributor' }, - 'contributoridentifier' => { 483 => [\'Contributor','ContributorIdentifier'] }, - 'contributorname' => { 483 => [\'Contributor','ContributorName'] }, - 'contributorrole' => { 483 => [\'Contributor','ContributorRole'] }, + 'contributedmedia' => { 499 => 'contributedMedia' }, + 'contributedmediaduration' => { 499 => [\'contributedMedia','contributedMediaDuration'] }, + 'contributedmediadurationscale' => { 499 => [\'contributedMedia','contributedMediaDurationScale'] }, + 'contributedmediadurationvalue' => { 499 => [\'contributedMedia','contributedMediaDurationValue'] }, + 'contributedmediamanaged' => { 499 => [\'contributedMedia','contributedMediaManaged'] }, + 'contributedmediapath' => { 499 => [\'contributedMedia','contributedMediaPath'] }, + 'contributedmediastarttime' => { 499 => [\'contributedMedia','contributedMediaStartTime'] }, + 'contributedmediastarttimescale' => { 499 => [\'contributedMedia','contributedMediaStartTimeScale'] }, + 'contributedmediastarttimevalue' => { 499 => [\'contributedMedia','contributedMediaStartTimeValue'] }, + 'contributedmediatrack' => { 499 => [\'contributedMedia','contributedMediaTrack'] }, + 'contributedmediawebstatement' => { 499 => [\'contributedMedia','contributedMediaWebStatement'] }, + 'contributor' => { 476 => 'contributor', 485 => 'Contributor' }, + 'contributoridentifier' => { 485 => [\'Contributor','ContributorIdentifier'] }, + 'contributorname' => { 485 => [\'Contributor','ContributorName'] }, + 'contributorrole' => { 485 => [\'Contributor','ContributorRole'] }, 'contributors' => { 156 => 'Contributors' }, 'controldialset' => { 183 => 0x46 }, - 'controlledvocabularyterm' => { 483 => 'CVterm' }, - 'controllerboardversion' => { 309 => 0x332 }, + 'controlledvocabularyterm' => { 485 => 'CVterm' }, + 'controllerboardversion' => { 311 => 0x332 }, 'controlmode' => { 76 => 0x12 }, 'controlringrotation' => { 83 => 0x712 }, - 'conversionlens' => { 292 => 0x403, 314 => 0x35 }, - 'converter' => { 118 => 0xfe4d, 256 => 0xb, 471 => 'Converter', 473 => 'Converter' }, - 'converttograyscale' => { 471 => 'ConvertToGrayscale', 473 => 'ConvertToGrayscale' }, - 'cookingequipment' => { 489 => 'cookingEquipment' }, - 'cookingmethod' => { 489 => 'cookingMethod' }, - 'copyright' => { 0 => 0x3, 118 => 0x8298, 156 => 'Copyright', 304 => 'Copyright', 349 => 0x22f, 365 => 'Copyright', 366 => ['cprt',"\xa9cpy"], 368 => 'copyright', 374 => ['cprt',"\xa9cpy"], 471 => 'Copyright', 473 => 'Copyright', 484 => 'Copyright', 490 => 'copyright', 493 => 'Copyright', 497 => 'copyright' }, - 'copyrightflag' => { 363 => 0x40a }, + 'conversionlens' => { 294 => 0x403, 316 => 0x35 }, + 'converter' => { 118 => 0xfe4d, 258 => 0xb, 473 => 'Converter', 475 => 'Converter' }, + 'converttograyscale' => { 473 => 'ConvertToGrayscale', 475 => 'ConvertToGrayscale' }, + 'cookingequipment' => { 491 => 'cookingEquipment' }, + 'cookingmethod' => { 491 => 'cookingMethod' }, + 'copyright' => { 0 => 0x3, 118 => 0x8298, 156 => 'Copyright', 306 => 'Copyright', 351 => 0x22f, 367 => 'Copyright', 368 => ['cprt',"\xa9cpy"], 370 => 'copyright', 376 => ['cprt',"\xa9cpy"], 473 => 'Copyright', 475 => 'Copyright', 486 => 'Copyright', 492 => 'copyright', 495 => 'Copyright', 499 => 'copyright' }, + 'copyrightflag' => { 365 => 0x40a }, 'copyrightnotice' => { 130 => 0x74 }, - 'copyrightowner' => { 301 => 'CopyrightOwner' }, - 'copyrightownerid' => { 301 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerID'] }, - 'copyrightownerimageid' => { 301 => 'CopyrightOwnerImageID' }, - 'copyrightownername' => { 301 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerName'] }, - 'copyrightregistrationnumber' => { 301 => 'CopyrightRegistrationNumber' }, - 'copyrightstatus' => { 301 => 'CopyrightStatus' }, - 'copyrightyear' => { 483 => 'CopyrightYear', 487 => 'copyrightYear' }, - 'coringfilter' => { 295 => 0x310, 296 => 0x102d, 299 => 0x310 }, - 'coringvalues' => { 295 => 0x311, 299 => 0x311 }, - 'corporateentity' => { 487 => 'corporateEntity' }, - 'correlatedcolortemp' => { 313 => 0x35b }, - 'country' => { 160 => 'Country', 314 => 0x69, 485 => 'Country' }, + 'copyrightowner' => { 303 => 'CopyrightOwner' }, + 'copyrightownerid' => { 303 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerID'] }, + 'copyrightownerimageid' => { 303 => 'CopyrightOwnerImageID' }, + 'copyrightownername' => { 303 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerName'] }, + 'copyrightregistrationnumber' => { 303 => 'CopyrightRegistrationNumber' }, + 'copyrightstatus' => { 303 => 'CopyrightStatus' }, + 'copyrightyear' => { 485 => 'CopyrightYear', 489 => 'copyrightYear' }, + 'coringfilter' => { 297 => 0x310, 298 => 0x102d, 301 => 0x310 }, + 'coringvalues' => { 297 => 0x311, 301 => 0x311 }, + 'corporateentity' => { 489 => 'corporateEntity' }, + 'correlatedcolortemp' => { 315 => 0x35b }, + 'country' => { 160 => 'Country', 316 => 0x69, 487 => 'Country' }, 'country-primarylocationcode' => { 130 => 0x64 }, 'country-primarylocationname' => { 130 => 0x65 }, - 'countrycode' => { 223 => 0x5, 361 => 'CountryCode', 482 => 'CountryCode' }, - 'course' => { 489 => 'course' }, - 'coverage' => { 474 => 'coverage' }, - 'coverart' => { 366 => 'covr' }, - 'coverdate' => { 487 => 'coverDate' }, - 'coverdisplaydate' => { 487 => 'coverDisplayDate' }, - 'coveruri' => { 374 => 'cvru' }, - 'cpufirmwareversion' => { 349 => 0x28 }, - 'crc32' => { 475 => 'crc32' }, - 'createdate' => { 118 => 0x9004, 156 => 'CreateDate', 300 => 'CreationDate', 304 => 'create-date', 365 => 'CreationDate', 371 => 0x1, 495 => 'CreateDate' }, - 'creationdate' => { 368 => 'creationdate', 484 => 'CreationDate', 487 => 'creationDate' }, - 'creationtime' => { 304 => 'Creation Time' }, - 'creativestyle' => { 401 => 0x1a, 402 => 0x18, 412 => 0x41, 414 => 0xb020, 444 => 0x4a }, - 'creativestylesetting' => { 403 => 0xf, 419 => 0x7 }, - 'creativestylewaschanged' => { 448 => 0x8001 }, - 'creator' => { 300 => 'Creator', 365 => 'Creator', 474 => 'creator', 483 => 'Creator', 484 => 'Creator' }, - 'creatoraddress' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrExtadr'] }, + 'countrycode' => { 223 => 0x5, 363 => 'CountryCode', 484 => 'CountryCode' }, + 'course' => { 491 => 'course' }, + 'coverage' => { 476 => 'coverage' }, + 'coverart' => { 368 => 'covr' }, + 'coverdate' => { 489 => 'coverDate' }, + 'coverdisplaydate' => { 489 => 'coverDisplayDate' }, + 'coveruri' => { 376 => 'cvru' }, + 'cpufirmwareversion' => { 351 => 0x28 }, + 'crc32' => { 477 => 'crc32' }, + 'createdate' => { 118 => 0x9004, 156 => 'CreateDate', 302 => 'CreationDate', 306 => 'create-date', 367 => 'CreationDate', 373 => 0x1, 497 => 'CreateDate' }, + 'creationdate' => { 370 => 'creationdate', 486 => 'CreationDate', 489 => 'creationDate' }, + 'creationtime' => { 306 => 'Creation Time' }, + 'creativestyle' => { 403 => 0x1a, 404 => 0x18, 414 => 0x41, 416 => 0xb020, 446 => 0x4a }, + 'creativestylesetting' => { 405 => 0xf, 421 => 0x7 }, + 'creativestylewaschanged' => { 450 => 0x8001 }, + 'creator' => { 302 => 'Creator', 367 => 'Creator', 476 => 'creator', 485 => 'Creator', 486 => 'Creator' }, + 'creatoraddress' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrExtadr'] }, 'creatorappid' => { 177 => 'CreatorAppId' }, - 'creatorcity' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCity'] }, - 'creatorcontactinfo' => { 482 => 'CreatorContactInfo' }, - 'creatorcountry' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCtry'] }, - 'creatoridentifier' => { 483 => [\'Creator','CreatorIdentifier'] }, - 'creatorname' => { 483 => [\'Creator','CreatorName'] }, + 'creatorcity' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCity'] }, + 'creatorcontactinfo' => { 484 => 'CreatorContactInfo' }, + 'creatorcountry' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCtry'] }, + 'creatoridentifier' => { 485 => [\'Creator','CreatorIdentifier'] }, + 'creatorname' => { 485 => [\'Creator','CreatorName'] }, 'creatoropenwithuioptions' => { 177 => 'CreatorOpenWithUIOptions' }, - 'creatorpostalcode' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrPcode'] }, - 'creatorregion' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrRegion'] }, - 'creatorrole' => { 483 => [\'Creator','CreatorRole'] }, - 'creatortool' => { 495 => 'CreatorTool' }, - 'creatorworkemail' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiEmailWork'] }, - 'creatorworktelephone' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiTelWork'] }, - 'creatorworkurl' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiUrlWork'] }, - 'credit' => { 130 => 0x6e, 485 => 'Credit' }, - 'creditline' => { 490 => 'creditLine' }, - 'creditlinereq' => { 500 => 'CreditLineReq' }, - 'creditlinerequired' => { 301 => 'CreditLineRequired' }, + 'creatorpostalcode' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrPcode'] }, + 'creatorregion' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrRegion'] }, + 'creatorrole' => { 485 => [\'Creator','CreatorRole'] }, + 'creatortool' => { 497 => 'CreatorTool' }, + 'creatorworkemail' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiEmailWork'] }, + 'creatorworktelephone' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiTelWork'] }, + 'creatorworkurl' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiUrlWork'] }, + 'credit' => { 130 => 0x6e, 487 => 'Credit' }, + 'creditline' => { 492 => 'creditLine' }, + 'creditlinereq' => { 502 => 'CreditLineReq' }, + 'creditlinerequired' => { 303 => 'CreditLineRequired' }, 'cropactive' => { 100 => 0x0, 107 => 0x244 }, - 'cropangle' => { 471 => 'CropAngle', 473 => 'CropAngle' }, - 'croparea' => { 224 => 0x45, 448 => 0x9011 }, + 'cropangle' => { 473 => 'CropAngle', 475 => 'CropAngle' }, + 'croparea' => { 224 => 0x45, 450 => 0x9011 }, 'cropaspectratio' => { 102 => 0x30101, 107 => 0x260 }, 'cropaspectratiocustom' => { 102 => 0x30102 }, - 'cropbottom' => { 122 => 0x9, 262 => 0x36, 319 => 0x31, 360 => 0xdc, 471 => 'CropBottom', 473 => 'CropBottom' }, + 'cropbottom' => { 122 => 0x9, 264 => 0x36, 321 => 0x31, 362 => 0xdc, 473 => 'CropBottom', 475 => 'CropBottom' }, 'cropbottommargin' => { 53 => 0x3 }, 'cropcircleactive' => { 108 => 0xd6 }, 'cropcircleradius' => { 108 => 0xd9 }, 'cropcirclex' => { 108 => 0xd7 }, 'cropcircley' => { 108 => 0xd8 }, - 'cropconstraintowarp' => { 471 => 'CropConstrainToWarp', 473 => 'CropConstrainToWarp' }, - 'croph' => { 465 => 'CropH' }, - 'cropheight' => { 100 => 0x6, 107 => 0x24c, 295 => 0x615, 299 => 0x615, 471 => 'CropHeight', 473 => 'CropHeight' }, + 'cropconstraintowarp' => { 473 => 'CropConstrainToWarp', 475 => 'CropConstrainToWarp' }, + 'croph' => { 467 => 'CropH' }, + 'cropheight' => { 100 => 0x6, 107 => 0x24c, 297 => 0x615, 301 => 0x615, 473 => 'CropHeight', 475 => 'CropHeight' }, 'crophispeed' => { 224 => 0x1b }, - 'cropleft' => { 107 => 0x246, 122 => 0x6, 262 => 0x1e, 295 => 0x612, 299 => 0x612, 319 => 0x30, 360 => 0xd9, 471 => 'CropLeft', 473 => 'CropLeft' }, + 'cropleft' => { 107 => 0x246, 122 => 0x6, 264 => 0x1e, 297 => 0x612, 301 => 0x612, 321 => 0x30, 362 => 0xd9, 473 => 'CropLeft', 475 => 'CropLeft' }, 'cropleftmargin' => { 53 => 0x0 }, - 'cropmode' => { 126 => 0x104d, 381 => 0x1018 }, + 'cropmode' => { 126 => 0x104d, 383 => 0x1018 }, 'croporiginalheight' => { 100 => 0xb }, 'croporiginalwidth' => { 100 => 0xa }, - 'cropoutputheight' => { 262 => 0xce }, - 'cropoutputheightinches' => { 262 => 0x96 }, - 'cropoutputpixels' => { 262 => 0xd6 }, - 'cropoutputresolution' => { 262 => 0xb6 }, - 'cropoutputscale' => { 262 => 0xbe }, - 'cropoutputwidth' => { 262 => 0xc6 }, - 'cropoutputwidthinches' => { 262 => 0x8e }, - 'croppedareaimageheightpixels' => { 459 => 'CroppedAreaImageHeightPixels', 460 => 'CroppedAreaImageHeightPixels' }, - 'croppedareaimagewidthpixels' => { 459 => 'CroppedAreaImageWidthPixels', 460 => 'CroppedAreaImageWidthPixels' }, - 'croppedarealeftpixels' => { 459 => 'CroppedAreaLeftPixels', 460 => 'CroppedAreaLeftPixels' }, - 'croppedareatoppixels' => { 459 => 'CroppedAreaTopPixels', 460 => 'CroppedAreaTopPixels' }, - 'croppedimageheight' => { 5 => 0x2, 381 => 0x1604 }, + 'cropoutputheight' => { 264 => 0xce }, + 'cropoutputheightinches' => { 264 => 0x96 }, + 'cropoutputpixels' => { 264 => 0xd6 }, + 'cropoutputresolution' => { 264 => 0xb6 }, + 'cropoutputscale' => { 264 => 0xbe }, + 'cropoutputwidth' => { 264 => 0xc6 }, + 'cropoutputwidthinches' => { 264 => 0x8e }, + 'croppedareaimageheightpixels' => { 461 => 'CroppedAreaImageHeightPixels', 462 => 'CroppedAreaImageHeightPixels' }, + 'croppedareaimagewidthpixels' => { 461 => 'CroppedAreaImageWidthPixels', 462 => 'CroppedAreaImageWidthPixels' }, + 'croppedarealeftpixels' => { 461 => 'CroppedAreaLeftPixels', 462 => 'CroppedAreaLeftPixels' }, + 'croppedareatoppixels' => { 461 => 'CroppedAreaTopPixels', 462 => 'CroppedAreaTopPixels' }, + 'croppedimageheight' => { 5 => 0x2, 383 => 0x1604 }, 'croppedimageleft' => { 5 => 0x3 }, 'croppedimagetop' => { 5 => 0x4 }, - 'croppedimagewidth' => { 5 => 0x1, 381 => 0x1603 }, - 'cropping' => { 448 => 0x9010 }, - 'cropright' => { 122 => 0x8, 262 => 0x2e, 319 => 0x32, 360 => 0xdb, 471 => 'CropRight', 473 => 'CropRight' }, + 'croppedimagewidth' => { 5 => 0x1, 383 => 0x1603 }, + 'cropping' => { 450 => 0x9010 }, + 'cropright' => { 122 => 0x8, 264 => 0x2e, 321 => 0x32, 362 => 0xdb, 473 => 'CropRight', 475 => 'CropRight' }, 'croprightmargin' => { 53 => 0x1 }, 'croprotatedoriginalheight' => { 100 => 0x2 }, 'croprotatedoriginalwidth' => { 100 => 0x1 }, 'croprotation' => { 100 => 0x8, 122 => 0xb }, - 'cropscaledresolution' => { 262 => 0x9e }, - 'cropsourceresolution' => { 262 => 0xae }, - 'croptop' => { 107 => 0x248, 122 => 0x7, 262 => 0x26, 295 => 0x613, 299 => 0x613, 319 => 0x2f, 360 => 0xda, 471 => 'CropTop', 473 => 'CropTop' }, + 'cropscaledresolution' => { 264 => 0x9e }, + 'cropsourceresolution' => { 264 => 0xae }, + 'croptop' => { 107 => 0x248, 122 => 0x7, 264 => 0x26, 297 => 0x613, 301 => 0x613, 321 => 0x2f, 362 => 0xda, 473 => 'CropTop', 475 => 'CropTop' }, 'croptopmargin' => { 53 => 0x2 }, - 'cropunit' => { 471 => 'CropUnit', 473 => 'CropUnit' }, - 'cropunits' => { 471 => 'CropUnits', 473 => 'CropUnits' }, - 'cropw' => { 465 => 'CropW' }, - 'cropwidth' => { 100 => 0x5, 107 => 0x24a, 295 => 0x614, 299 => 0x614, 471 => 'CropWidth', 473 => 'CropWidth' }, - 'cropx' => { 100 => 0x3, 465 => 'CropX' }, - 'cropy' => { 100 => 0x4, 465 => 'CropY' }, - 'crossprocess' => { 349 => 0x7b }, - 'crossprocessparams' => { 349 => 0x235 }, - 'cuisine' => { 489 => 'cuisine' }, + 'cropunit' => { 473 => 'CropUnit', 475 => 'CropUnit' }, + 'cropunits' => { 473 => 'CropUnits', 475 => 'CropUnits' }, + 'cropw' => { 467 => 'CropW' }, + 'cropwidth' => { 100 => 0x5, 107 => 0x24a, 297 => 0x614, 301 => 0x614, 473 => 'CropWidth', 475 => 'CropWidth' }, + 'cropx' => { 100 => 0x3, 467 => 'CropX' }, + 'cropy' => { 100 => 0x4, 467 => 'CropY' }, + 'crossprocess' => { 351 => 0x7b }, + 'crossprocessparams' => { 351 => 0x235 }, + 'cuisine' => { 491 => 'cuisine' }, 'currenticcprofile' => { 118 => 0xc691 }, 'currentpreprofilematrix' => { 118 => 0xc692 }, - 'currentversion' => { 448 => 0xd000 }, - 'curve0x' => { 465 => 'Curve0x' }, - 'curve0y' => { 465 => 'Curve0y' }, - 'curve1x' => { 465 => 'Curve1x' }, - 'curve1y' => { 465 => 'Curve1y' }, - 'curve2x' => { 465 => 'Curve2x' }, - 'curve2y' => { 465 => 'Curve2y' }, - 'curve3x' => { 465 => 'Curve3x' }, - 'curve3y' => { 465 => 'Curve3y' }, - 'curve4x' => { 465 => 'Curve4x' }, - 'curve4y' => { 465 => 'Curve4y' }, - 'curves' => { 267 => 0x76a43201 }, - 'custom1' => { 301 => 'Custom1' }, - 'custom10' => { 301 => 'Custom10' }, - 'custom2' => { 301 => 'Custom2' }, - 'custom3' => { 301 => 'Custom3' }, - 'custom4' => { 301 => 'Custom4' }, - 'custom5' => { 301 => 'Custom5' }, - 'custom6' => { 301 => 'Custom6' }, - 'custom7' => { 301 => 'Custom7' }, - 'custom8' => { 301 => 'Custom8' }, - 'custom9' => { 301 => 'Custom9' }, + 'currentversion' => { 450 => 0xd000 }, + 'curve0x' => { 467 => 'Curve0x' }, + 'curve0y' => { 467 => 'Curve0y' }, + 'curve1x' => { 467 => 'Curve1x' }, + 'curve1y' => { 467 => 'Curve1y' }, + 'curve2x' => { 467 => 'Curve2x' }, + 'curve2y' => { 467 => 'Curve2y' }, + 'curve3x' => { 467 => 'Curve3x' }, + 'curve3y' => { 467 => 'Curve3y' }, + 'curve4x' => { 467 => 'Curve4x' }, + 'curve4y' => { 467 => 'Curve4y' }, + 'curves' => { 269 => 0x76a43201 }, + 'custom1' => { 303 => 'Custom1' }, + 'custom10' => { 303 => 'Custom10' }, + 'custom2' => { 303 => 'Custom2' }, + 'custom3' => { 303 => 'Custom3' }, + 'custom4' => { 303 => 'Custom4' }, + 'custom5' => { 303 => 'Custom5' }, + 'custom6' => { 303 => 'Custom6' }, + 'custom7' => { 303 => 'Custom7' }, + 'custom8' => { 303 => 'Custom8' }, + 'custom9' => { 303 => 'Custom9' }, 'customcolortone' => { 108 => 0x4c }, 'customcontrast' => { 108 => 0x4e }, 'customcontrols' => { 83 => 0x70c }, 'customdefaultunsharpfineness' => { 108 => 0xbe }, 'customdefaultunsharpstrength' => { 108 => 0xbc }, @@ -2015,73 +2017,73 @@ my %tagLookup = ( 'custompicturestylefilename' => { 63 => 0x4010 }, 'customrawhighlight' => { 108 => 0x7c }, 'customrawhighlightpoint' => { 108 => 0x51 }, 'customrawshadow' => { 108 => 0x85 }, 'customrawshadowpoint' => { 108 => 0x52 }, - 'customrendered' => { 118 => 0xa401, 477 => 'CustomRendered' }, - 'customsaturation' => { 108 => 0x4d, 291 => 0x503 }, - 'customsettingsalldefault' => { 274 => '0.2', 283 => '0.2' }, - 'customsettingsbank' => { 274 => '0.1', 275 => '0.1', 277 => '0.1', 278 => '0.1', 283 => '0.1', 287 => '0.2', 288 => '0.2' }, + 'customrendered' => { 118 => 0xa401, 479 => 'CustomRendered' }, + 'customsaturation' => { 108 => 0x4d, 293 => 0x503 }, + 'customsettingsalldefault' => { 276 => '0.2', 285 => '0.2' }, + 'customsettingsbank' => { 276 => '0.1', 277 => '0.1', 279 => '0.1', 280 => '0.1', 285 => '0.1', 289 => '0.2', 290 => '0.2' }, 'customsharpness' => { 108 => 0x50 }, 'customunsharpmaskfineness' => { 108 => 0xb8 }, 'customunsharpmaskstrength' => { 108 => 0xb6 }, 'customunsharpmaskthreshold' => { 108 => 0xba }, - 'customwb_rblevels' => { 419 => 0x1a }, - 'customwb_rgblevels' => { 402 => 0x8, 403 => 0x19 }, + 'customwb_rblevels' => { 421 => 0x1a }, + 'customwb_rgblevels' => { 404 => 0x8, 405 => 0x19 }, 'customwbbluelevel' => { 183 => 0x36 }, 'customwberror' => { 183 => 0x37 }, 'customwbgreenlevel' => { 183 => 0x35 }, 'customwbredlevel' => { 183 => 0x34 }, 'customwbsetting' => { 183 => 0x26 }, - 'cx' => { 374 => '_cx_' }, - 'cy' => { 374 => '_cy_' }, - 'd-lightinghq' => { 267 => 0x2175eb78 }, - 'd-lightinghqcolorboost' => { 263 => 0x2 }, - 'd-lightinghqhighlight' => { 263 => 0x1 }, - 'd-lightinghqselected' => { 267 => 0x6a6e36b6 }, - 'd-lightinghqshadow' => { 263 => 0x0 }, - 'd-lightinghs' => { 267 => 0xce5554aa }, - 'd-lightinghsadjustment' => { 264 => 0x0 }, - 'd-lightinghscolorboost' => { 264 => 0x1 }, - 'd-rangeoptimizerhighlight' => { 448 => 0x8024 }, - 'd-rangeoptimizermode' => { 448 => 0x8022 }, - 'd-rangeoptimizershadow' => { 448 => 0x802d }, - 'd-rangeoptimizervalue' => { 448 => 0x8023 }, + 'cx' => { 376 => '_cx_' }, + 'cy' => { 376 => '_cy_' }, + 'd-lightinghq' => { 269 => 0x2175eb78 }, + 'd-lightinghqcolorboost' => { 265 => 0x2 }, + 'd-lightinghqhighlight' => { 265 => 0x1 }, + 'd-lightinghqselected' => { 269 => 0x6a6e36b6 }, + 'd-lightinghqshadow' => { 265 => 0x0 }, + 'd-lightinghs' => { 269 => 0xce5554aa }, + 'd-lightinghsadjustment' => { 266 => 0x0 }, + 'd-lightinghscolorboost' => { 266 => 0x1 }, + 'd-rangeoptimizerhighlight' => { 450 => 0x8024 }, + 'd-rangeoptimizermode' => { 450 => 0x8022 }, + 'd-rangeoptimizershadow' => { 450 => 0x802d }, + 'd-rangeoptimizervalue' => { 450 => 0x8023 }, 'darkblacksegrows' => { 137 => 0x18d8 }, - 'darkfocusenvironment' => { 314 => 0x8003 }, + 'darkfocusenvironment' => { 316 => 0x8003 }, 'darkframecountfactor' => { 137 => 0xc85 }, 'darkframelongexposure' => { 137 => 0xc84 }, 'darkframeshortexposure' => { 137 => 0xc83 }, 'darkpedestal' => { 137 => 0xc7f }, 'datacompressionmethod' => { 132 => 0x6e }, 'dataimprint' => { 180 => 0x34 }, - 'dataonscreen' => { 483 => 'DataOnScreen' }, - 'dataonscreenregion' => { 483 => [\'DataOnScreen','DataOnScreenRegion'] }, - 'dataonscreenregiond' => { 483 => [\'DataOnScreen','DataOnScreenRegionD'] }, - 'dataonscreenregionh' => { 483 => [\'DataOnScreen','DataOnScreenRegionH'] }, - 'dataonscreenregiontext' => { 483 => [\'DataOnScreen','DataOnScreenRegionText'] }, - 'dataonscreenregionunit' => { 483 => [\'DataOnScreen','DataOnScreenRegionUnit'] }, - 'dataonscreenregionw' => { 483 => [\'DataOnScreen','DataOnScreenRegionW'] }, - 'dataonscreenregionx' => { 483 => [\'DataOnScreen','DataOnScreenRegionX'] }, - 'dataonscreenregiony' => { 483 => [\'DataOnScreen','DataOnScreenRegionY'] }, - 'datascaling' => { 349 => 0x3d }, - 'date' => { 349 => 0x6, 474 => 'date' }, + 'dataonscreen' => { 485 => 'DataOnScreen' }, + 'dataonscreenregion' => { 485 => [\'DataOnScreen','DataOnScreenRegion'] }, + 'dataonscreenregiond' => { 485 => [\'DataOnScreen','DataOnScreenRegionD'] }, + 'dataonscreenregionh' => { 485 => [\'DataOnScreen','DataOnScreenRegionH'] }, + 'dataonscreenregiontext' => { 485 => [\'DataOnScreen','DataOnScreenRegionText'] }, + 'dataonscreenregionunit' => { 485 => [\'DataOnScreen','DataOnScreenRegionUnit'] }, + 'dataonscreenregionw' => { 485 => [\'DataOnScreen','DataOnScreenRegionW'] }, + 'dataonscreenregionx' => { 485 => [\'DataOnScreen','DataOnScreenRegionX'] }, + 'dataonscreenregiony' => { 485 => [\'DataOnScreen','DataOnScreenRegionY'] }, + 'datascaling' => { 351 => 0x3d }, + 'date' => { 351 => 0x6, 476 => 'date' }, 'dateacquired' => { 177 => 'DateAcquired', 178 => '{2CBAA8F5-D81F-47CA-B17A-F8D822300131} 100' }, - 'datecreated' => { 130 => 0x37, 485 => 'DateCreated' }, - 'datedisplayformat' => { 258 => 0x3 }, + 'datecreated' => { 130 => 0x37, 487 => 'DateCreated' }, + 'datedisplayformat' => { 260 => 0x3 }, 'dateidentified' => { 117 => [\'Identification','IdentificationDateIdentified'] }, - 'dateimprint' => { 279 => '4.2' }, - 'daterecieved' => { 487 => 'dateRecieved' }, + 'dateimprint' => { 281 => '4.2' }, + 'daterecieved' => { 489 => 'dateRecieved' }, 'datesent' => { 131 => 0x46 }, 'datestampmode' => { 63 => 0x1c, 224 => 0x9d }, - 'datetime' => { 466 => 'datetime', 493 => 'DateTime' }, - 'datetimedigitized' => { 477 => 'DateTimeDigitized' }, - 'datetimeoriginal' => { 99 => 0x0, 118 => 0x9003, 153 => 0x14, 156 => 'OriginalDate', 369 => 'IDIT', 374 => 'date', 375 => 0xb, 376 => 0x3b, 377 => 0x3e, 477 => 'DateTimeOriginal' }, + 'datetime' => { 468 => 'datetime', 495 => 'DateTime' }, + 'datetimedigitized' => { 479 => 'DateTimeDigitized' }, + 'datetimeoriginal' => { 99 => 0x0, 118 => 0x9003, 153 => 0x14, 156 => 'OriginalDate', 371 => 'IDIT', 376 => 'date', 377 => 0xb, 378 => 0x3b, 379 => 0x3e, 479 => 'DateTimeOriginal' }, 'datetimestamp' => { 139 => 0x64 }, - 'datetimeutc' => { 291 => 0x908 }, - 'daylightsavings' => { 77 => 0x3, 258 => 0x2 }, - 'dayofweek' => { 376 => 0x42, 377 => 0x4a }, + 'datetimeutc' => { 293 => 0x908 }, + 'daylightsavings' => { 77 => 0x3, 260 => 0x2 }, + 'dayofweek' => { 378 => 0x42, 379 => 0x4a }, 'dccontinent' => { 117 => [\'dctermsLocation','dctermsLocationContinent'] }, 'dccoordinateprecision' => { 117 => [\'dctermsLocation','dctermsLocationCoordinatePrecision'] }, 'dccoordinateuncertaintyinmeters' => { 117 => [\'dctermsLocation','dctermsLocationCoordinateUncertaintyInMeters'] }, 'dccountry' => { 117 => [\'dctermsLocation','dctermsLocationCountry'] }, 'dccountrycode' => { 117 => [\'dctermsLocation','dctermsLocationCountryCode'] }, @@ -2126,66 +2128,66 @@ my %tagLookup = ( 'dcverbatimlongitude' => { 117 => [\'dctermsLocation','dctermsLocationVerbatimLongitude'] }, 'dcverbatimsrs' => { 117 => [\'dctermsLocation','dctermsLocationVerbatimSRS'] }, 'dcwaterbody' => { 117 => [\'dctermsLocation','dctermsLocationWaterBody'] }, 'declination' => { 164 => 'Declination' }, 'decposition' => { 180 => 0x32 }, - 'defaultautogray' => { 471 => 'DefaultAutoGray', 473 => 'DefaultAutoGray' }, - 'defaultautotone' => { 471 => 'DefaultAutoTone', 473 => 'DefaultAutoTone' }, + 'defaultautogray' => { 473 => 'DefaultAutoGray', 475 => 'DefaultAutoGray' }, + 'defaultautotone' => { 473 => 'DefaultAutoTone', 475 => 'DefaultAutoTone' }, 'defaultblackrender' => { 118 => 0xc7a6 }, 'defaultcroporigin' => { 118 => 0xc61f }, 'defaultcropsize' => { 118 => 0xc620 }, 'defaulteraseoption' => { 83 => 0x813 }, 'defaultscale' => { 118 => 0xc61e }, - 'defaultsspecifictoiso' => { 471 => 'DefaultsSpecificToISO', 473 => 'DefaultsSpecificToISO' }, - 'defaultsspecifictoserial' => { 471 => 'DefaultsSpecificToSerial', 473 => 'DefaultsSpecificToSerial' }, + 'defaultsspecifictoiso' => { 473 => 'DefaultsSpecificToISO', 475 => 'DefaultsSpecificToISO' }, + 'defaultsspecifictoserial' => { 473 => 'DefaultsSpecificToSerial', 475 => 'DefaultsSpecificToSerial' }, 'defaultusercrop' => { 118 => 0xc7b5 }, 'defectisocode' => { 137 => 0x90f }, - 'defringe' => { 471 => 'Defringe', 473 => 'Defringe' }, - 'defringegreenamount' => { 471 => 'DefringeGreenAmount', 473 => 'DefringeGreenAmount' }, - 'defringegreenhuehi' => { 471 => 'DefringeGreenHueHi', 473 => 'DefringeGreenHueHi' }, - 'defringegreenhuelo' => { 471 => 'DefringeGreenHueLo', 473 => 'DefringeGreenHueLo' }, - 'defringepurpleamount' => { 471 => 'DefringePurpleAmount', 473 => 'DefringePurpleAmount' }, - 'defringepurplehuehi' => { 471 => 'DefringePurpleHueHi', 473 => 'DefringePurpleHueHi' }, - 'defringepurplehuelo' => { 471 => 'DefringePurpleHueLo', 473 => 'DefringePurpleHueLo' }, - 'dehaze' => { 471 => 'Dehaze', 473 => 'Dehaze' }, - 'deletedimagecount' => { 224 => 0xa6, 233 => 0x6e }, - 'deprecatedon' => { 469 => 'deprecatedOn' }, + 'defringe' => { 473 => 'Defringe', 475 => 'Defringe' }, + 'defringegreenamount' => { 473 => 'DefringeGreenAmount', 475 => 'DefringeGreenAmount' }, + 'defringegreenhuehi' => { 473 => 'DefringeGreenHueHi', 475 => 'DefringeGreenHueHi' }, + 'defringegreenhuelo' => { 473 => 'DefringeGreenHueLo', 475 => 'DefringeGreenHueLo' }, + 'defringepurpleamount' => { 473 => 'DefringePurpleAmount', 475 => 'DefringePurpleAmount' }, + 'defringepurplehuehi' => { 473 => 'DefringePurpleHueHi', 475 => 'DefringePurpleHueHi' }, + 'defringepurplehuelo' => { 473 => 'DefringePurpleHueLo', 475 => 'DefringePurpleHueLo' }, + 'dehaze' => { 473 => 'Dehaze', 475 => 'Dehaze' }, + 'deletedimagecount' => { 224 => 0xa6, 234 => 0x6e }, + 'deprecatedon' => { 471 => 'deprecatedOn' }, 'depthfar' => { 118 => 0xc7eb }, 'depthformat' => { 118 => 0xc7e9 }, - 'depthimage' => { 456 => 'Data' }, + 'depthimage' => { 458 => 'Data' }, 'depthmeasuretype' => { 118 => 0xc7ed }, 'depthnear' => { 118 => 0xc7ea }, 'depthunits' => { 118 => 0xc7ec }, - 'derivedfrom' => { 498 => 'DerivedFrom' }, - 'derivedfromalternatepaths' => { 498 => [\'DerivedFrom','DerivedFromAlternatePaths'] }, - 'derivedfromdocumentid' => { 498 => [\'DerivedFrom','DerivedFromDocumentID'] }, - 'derivedfromfilepath' => { 498 => [\'DerivedFrom','DerivedFromFilePath'] }, - 'derivedfromfrompart' => { 498 => [\'DerivedFrom','DerivedFromFromPart'] }, - 'derivedfrominstanceid' => { 498 => [\'DerivedFrom','DerivedFromInstanceID'] }, - 'derivedfromlastmodifydate' => { 498 => [\'DerivedFrom','DerivedFromLastModifyDate'] }, - 'derivedfromlasturl' => { 498 => [\'DerivedFrom','DerivedFromLastURL'] }, - 'derivedfromlinkcategory' => { 498 => [\'DerivedFrom','DerivedFromLinkCategory'] }, - 'derivedfromlinkform' => { 498 => [\'DerivedFrom','DerivedFromLinkForm'] }, - 'derivedfrommanager' => { 498 => [\'DerivedFrom','DerivedFromManager'] }, - 'derivedfrommanagervariant' => { 498 => [\'DerivedFrom','DerivedFromManagerVariant'] }, - 'derivedfrommanageto' => { 498 => [\'DerivedFrom','DerivedFromManageTo'] }, - 'derivedfrommanageui' => { 498 => [\'DerivedFrom','DerivedFromManageUI'] }, - 'derivedfrommaskmarkers' => { 498 => [\'DerivedFrom','DerivedFromMaskMarkers'] }, - 'derivedfromoriginaldocumentid' => { 498 => [\'DerivedFrom','DerivedFromOriginalDocumentID'] }, - 'derivedfrompartmapping' => { 498 => [\'DerivedFrom','DerivedFromPartMapping'] }, - 'derivedfromplacedresolutionunit' => { 498 => [\'DerivedFrom','DerivedFromPlacedResolutionUnit'] }, - 'derivedfromplacedxresolution' => { 498 => [\'DerivedFrom','DerivedFromPlacedXResolution'] }, - 'derivedfromplacedyresolution' => { 498 => [\'DerivedFrom','DerivedFromPlacedYResolution'] }, - 'derivedfromrenditionclass' => { 498 => [\'DerivedFrom','DerivedFromRenditionClass'] }, - 'derivedfromrenditionparams' => { 498 => [\'DerivedFrom','DerivedFromRenditionParams'] }, - 'derivedfromtopart' => { 498 => [\'DerivedFrom','DerivedFromToPart'] }, - 'derivedfromversionid' => { 498 => [\'DerivedFrom','DerivedFromVersionID'] }, - 'description' => { 304 => 'Description', 366 => ['desc','dscp',"\xa9des"], 368 => 'description', 374 => 'dscp', 471 => 'Description', 473 => 'Description', 474 => 'description', 495 => 'Description' }, + 'derivedfrom' => { 500 => 'DerivedFrom' }, + 'derivedfromalternatepaths' => { 500 => [\'DerivedFrom','DerivedFromAlternatePaths'] }, + 'derivedfromdocumentid' => { 500 => [\'DerivedFrom','DerivedFromDocumentID'] }, + 'derivedfromfilepath' => { 500 => [\'DerivedFrom','DerivedFromFilePath'] }, + 'derivedfromfrompart' => { 500 => [\'DerivedFrom','DerivedFromFromPart'] }, + 'derivedfrominstanceid' => { 500 => [\'DerivedFrom','DerivedFromInstanceID'] }, + 'derivedfromlastmodifydate' => { 500 => [\'DerivedFrom','DerivedFromLastModifyDate'] }, + 'derivedfromlasturl' => { 500 => [\'DerivedFrom','DerivedFromLastURL'] }, + 'derivedfromlinkcategory' => { 500 => [\'DerivedFrom','DerivedFromLinkCategory'] }, + 'derivedfromlinkform' => { 500 => [\'DerivedFrom','DerivedFromLinkForm'] }, + 'derivedfrommanager' => { 500 => [\'DerivedFrom','DerivedFromManager'] }, + 'derivedfrommanagervariant' => { 500 => [\'DerivedFrom','DerivedFromManagerVariant'] }, + 'derivedfrommanageto' => { 500 => [\'DerivedFrom','DerivedFromManageTo'] }, + 'derivedfrommanageui' => { 500 => [\'DerivedFrom','DerivedFromManageUI'] }, + 'derivedfrommaskmarkers' => { 500 => [\'DerivedFrom','DerivedFromMaskMarkers'] }, + 'derivedfromoriginaldocumentid' => { 500 => [\'DerivedFrom','DerivedFromOriginalDocumentID'] }, + 'derivedfrompartmapping' => { 500 => [\'DerivedFrom','DerivedFromPartMapping'] }, + 'derivedfromplacedresolutionunit' => { 500 => [\'DerivedFrom','DerivedFromPlacedResolutionUnit'] }, + 'derivedfromplacedxresolution' => { 500 => [\'DerivedFrom','DerivedFromPlacedXResolution'] }, + 'derivedfromplacedyresolution' => { 500 => [\'DerivedFrom','DerivedFromPlacedYResolution'] }, + 'derivedfromrenditionclass' => { 500 => [\'DerivedFrom','DerivedFromRenditionClass'] }, + 'derivedfromrenditionparams' => { 500 => [\'DerivedFrom','DerivedFromRenditionParams'] }, + 'derivedfromtopart' => { 500 => [\'DerivedFrom','DerivedFromToPart'] }, + 'derivedfromversionid' => { 500 => [\'DerivedFrom','DerivedFromVersionID'] }, + 'description' => { 306 => 'Description', 368 => ['desc','dscp',"\xa9des"], 370 => 'description', 376 => 'dscp', 473 => 'Description', 475 => 'Description', 476 => 'description', 497 => 'Description' }, 'destination' => { 131 => 0x5 }, - 'destinationcity' => { 349 => 0x24, 355 => 0x3 }, - 'destinationcitycode' => { 356 => 0x1001 }, - 'destinationdst' => { 349 => 0x26, 355 => '0.3' }, + 'destinationcity' => { 351 => 0x24, 357 => 0x3 }, + 'destinationcitycode' => { 358 => 0x1001 }, + 'destinationdst' => { 351 => 0x26, 357 => '0.3' }, 'developmentdynamicrange' => { 126 => 0x1403 }, 'deviantmatrixcustom' => { 137 => 0x7de }, 'deviantmatrixdaylight' => { 137 => 0x7da }, 'deviantmatrixflash' => { 137 => 0x7dd }, 'deviantmatrixfluorescent' => { 137 => 0x7dc }, @@ -2193,444 +2195,444 @@ my %tagLookup = ( 'deviantwhitecustom' => { 137 => 0x842 }, 'deviantwhitedaylight' => { 137 => 0x83e }, 'deviantwhiteflash' => { 137 => 0x841 }, 'deviantwhitefluorescent' => { 137 => 0x840 }, 'deviantwhitetungsten' => { 137 => 0x83f }, - 'device' => { 487 => 'device' }, - 'devicesettingdescription' => { 477 => 'DeviceSettingDescription' }, - 'devicesettingdescriptioncolumns' => { 477 => [\'DeviceSettingDescription','DeviceSettingDescriptionColumns'] }, - 'devicesettingdescriptionrows' => { 477 => [\'DeviceSettingDescription','DeviceSettingDescriptionRows'] }, - 'devicesettingdescriptionsettings' => { 477 => [\'DeviceSettingDescription','DeviceSettingDescriptionSettings'] }, - 'devicetype' => { 388 => 0x2 }, + 'device' => { 489 => 'device' }, + 'devicesettingdescription' => { 479 => 'DeviceSettingDescription' }, + 'devicesettingdescriptioncolumns' => { 479 => [\'DeviceSettingDescription','DeviceSettingDescriptionColumns'] }, + 'devicesettingdescriptionrows' => { 479 => [\'DeviceSettingDescription','DeviceSettingDescriptionRows'] }, + 'devicesettingdescriptionsettings' => { 479 => [\'DeviceSettingDescription','DeviceSettingDescriptionSettings'] }, + 'devicetype' => { 390 => 0x2 }, 'dewarpdata' => { 115 => 'DewarpData' }, 'dewarpflag' => { 115 => 'DewarpFlag' }, 'dialdirectiontvav' => { 83 => 0x706 }, - 'dietaryneeds' => { 489 => 'dietaryNeeds' }, - 'diffractioncompensation' => { 247 => 0xc4a0, 259 => 0x142 }, - 'diffractioncorrection' => { 314 => 0xbc, 339 => 0x3 }, + 'dietaryneeds' => { 491 => 'dietaryNeeds' }, + 'diffractioncompensation' => { 248 => 0xc4a0, 261 => 0x142 }, + 'diffractioncorrection' => { 316 => 0xbc, 341 => 0x3 }, 'diffractioncorrectionon' => { 102 => 0x2070b }, 'digitalcreationdate' => { 130 => 0x3e }, 'digitalcreationtime' => { 130 => 0x3f }, - 'digitaldeehighlightadj' => { 232 => 0x202 }, - 'digitaldeeshadowadj' => { 232 => 0x200 }, - 'digitaldeethreshold' => { 232 => 0x201 }, - 'digitalfilter' => { 391 => 0x59 }, - 'digitalfilter01' => { 336 => 0x5 }, - 'digitalfilter02' => { 336 => 0x16 }, - 'digitalfilter03' => { 336 => 0x27 }, - 'digitalfilter04' => { 336 => 0x38 }, - 'digitalfilter05' => { 336 => 0x49 }, - 'digitalfilter06' => { 336 => 0x5a }, - 'digitalfilter07' => { 336 => 0x6b }, - 'digitalfilter08' => { 336 => 0x7c }, - 'digitalfilter09' => { 336 => 0x8d }, - 'digitalfilter10' => { 336 => 0x9e }, - 'digitalfilter11' => { 336 => 0xaf }, - 'digitalfilter12' => { 336 => 0xc0 }, - 'digitalfilter13' => { 336 => 0xd1 }, - 'digitalfilter14' => { 336 => 0xe2 }, - 'digitalfilter15' => { 336 => 0xf3 }, - 'digitalfilter16' => { 336 => 0x104 }, - 'digitalfilter17' => { 336 => 0x115 }, - 'digitalfilter18' => { 336 => 0x126 }, - 'digitalfilter19' => { 336 => 0x137 }, - 'digitalfilter20' => { 336 => 0x148 }, + 'digitaldeehighlightadj' => { 233 => 0x202 }, + 'digitaldeeshadowadj' => { 233 => 0x200 }, + 'digitaldeethreshold' => { 233 => 0x201 }, + 'digitalfilter' => { 393 => 0x59 }, + 'digitalfilter01' => { 338 => 0x5 }, + 'digitalfilter02' => { 338 => 0x16 }, + 'digitalfilter03' => { 338 => 0x27 }, + 'digitalfilter04' => { 338 => 0x38 }, + 'digitalfilter05' => { 338 => 0x49 }, + 'digitalfilter06' => { 338 => 0x5a }, + 'digitalfilter07' => { 338 => 0x6b }, + 'digitalfilter08' => { 338 => 0x7c }, + 'digitalfilter09' => { 338 => 0x8d }, + 'digitalfilter10' => { 338 => 0x9e }, + 'digitalfilter11' => { 338 => 0xaf }, + 'digitalfilter12' => { 338 => 0xc0 }, + 'digitalfilter13' => { 338 => 0xd1 }, + 'digitalfilter14' => { 338 => 0xe2 }, + 'digitalfilter15' => { 338 => 0xf3 }, + 'digitalfilter16' => { 338 => 0x104 }, + 'digitalfilter17' => { 338 => 0x115 }, + 'digitalfilter18' => { 338 => 0x126 }, + 'digitalfilter19' => { 338 => 0x137 }, + 'digitalfilter20' => { 338 => 0x148 }, 'digitalgain' => { 73 => 0xb }, 'digitalgem' => { 213 => 0x0 }, - 'digitalice' => { 232 => 0x100 }, - 'digitalimageguid' => { 483 => 'DigImageGUID' }, - 'digitalroc' => { 230 => 0x0 }, - 'digitalsourcefiletype' => { 483 => 'DigitalSourcefileType' }, - 'digitalsourcetype' => { 483 => 'DigitalSourceType' }, - 'digitalzoom' => { 34 => 0xc, 111 => 0xa, 126 => 0x1044, 139 => 0x68, 150 => 0x22, 151 => 0x1e, 155 => 'DigitalZoom', 180 => 0xc, 224 => 0x86, 256 => 0xa, 296 => 0x204, 349 => 0x1e, 356 => 0xa, 390 => 0x204, 435 => 0x12, 436 => 0x12 }, - 'digitalzoomon' => { 390 => 0x21b }, - 'digitalzoomratio' => { 118 => 0xa404, 424 => 0x200, 426 => 0x21c, 477 => 'DigitalZoomRatio' }, - 'director' => { 178 => 'WM/Director', 366 => "\xa9dir", 368 => 'director', 374 => "\xa9dir", 497 => 'director' }, - 'directorphotography' => { 497 => 'directorPhotography' }, + 'digitalice' => { 233 => 0x100 }, + 'digitalimageguid' => { 485 => 'DigImageGUID' }, + 'digitalroc' => { 231 => 0x0 }, + 'digitalsourcefiletype' => { 485 => 'DigitalSourcefileType' }, + 'digitalsourcetype' => { 485 => 'DigitalSourceType' }, + 'digitalzoom' => { 34 => 0xc, 111 => 0xa, 126 => 0x1044, 139 => 0x68, 150 => 0x22, 151 => 0x1e, 155 => 'DigitalZoom', 180 => 0xc, 224 => 0x86, 258 => 0xa, 298 => 0x204, 351 => 0x1e, 358 => 0xa, 392 => 0x204, 437 => 0x12, 438 => 0x12 }, + 'digitalzoomon' => { 392 => 0x21b }, + 'digitalzoomratio' => { 118 => 0xa404, 426 => 0x200, 428 => 0x21c, 479 => 'DigitalZoomRatio' }, + 'director' => { 178 => 'WM/Director', 368 => "\xa9dir", 370 => 'director', 376 => "\xa9dir", 499 => 'director' }, + 'directorphotography' => { 499 => 'directorPhotography' }, 'directory' => { 119 => 'Directory' }, 'directoryindex' => { 7 => 0x137, 9 => 0x2dc, 11 => 0x17e, 13 => 0x238, 14 => 0x13f, 15 => 0x133, 16 => 0x1df, 17 => 0x1a7, 18 => 0x1f0, 19 => 0xcc, 20 => 0x1c7, 21 => 0x298, 22 => 0x1e7, 23 => 0x1e5, 24 => [0x27c,0x280], 25 => 0x2b6, 26 => 0x2bf, 28 => 0x1f7, 29 => 0x4ba }, 'directoryindex2' => { 21 => 0x29c }, - 'directorynumber' => { 206 => 0x3, 377 => 0x12 }, - 'disableautocreation' => { 454 => 'DisableAutoCreation' }, - 'disclaimer' => { 304 => 'Disclaimer' }, - 'discnumber' => { 497 => 'discNumber' }, - 'dishtype' => { 489 => 'dishType' }, - 'disknumber' => { 366 => 'disk' }, + 'directorynumber' => { 206 => 0x3, 379 => 0x12 }, + 'disableautocreation' => { 456 => 'DisableAutoCreation' }, + 'disclaimer' => { 306 => 'Disclaimer' }, + 'discnumber' => { 499 => 'discNumber' }, + 'dishtype' => { 491 => 'dishType' }, + 'disknumber' => { 368 => 'disk' }, 'displayallafpoints' => { 83 => 0x514 }, 'displayaperture' => { 34 => 0x23 }, - 'displayedunitsx' => { 364 => 0x2 }, - 'displayedunitsy' => { 364 => 0x6 }, - 'displayname' => { 368 => 'displayname', 486 => 'displayName' }, + 'displayedunitsx' => { 366 => 0x2 }, + 'displayedunitsy' => { 366 => 0x6 }, + 'displayname' => { 370 => 'displayname', 488 => 'displayName' }, 'distance1' => { 139 => 0x28 }, 'distance2' => { 139 => 0x2c }, 'distance3' => { 139 => 0x30 }, 'distance4' => { 139 => 0x34 }, - 'distortion' => { 388 => 0xa050 }, - 'distortioncompensation' => { 448 => 0x8040 }, - 'distortioncontrol' => { 233 => 0x10 }, - 'distortioncorrection' => { 78 => 0x3, 102 => 0x20705, 108 => 0x67, 118 => 0x7036, 291 => 0x50b, 318 => '7.1', 339 => 0x0, 443 => 0x601, 444 => 0x5b }, - 'distortioncorrection2' => { 295 => 0x1011 }, - 'distortioncorrectionalreadyapplied' => { 468 => 'DistortionCorrectionAlreadyApplied' }, + 'distortion' => { 390 => 0xa050 }, + 'distortioncompensation' => { 450 => 0x8040 }, + 'distortioncontrol' => { 234 => 0x10 }, + 'distortioncorrection' => { 78 => 0x3, 102 => 0x20705, 108 => 0x67, 118 => 0x7036, 293 => 0x50b, 320 => '7.1', 341 => 0x0, 445 => 0x601, 446 => 0x5b }, + 'distortioncorrection2' => { 297 => 0x1011 }, + 'distortioncorrectionalreadyapplied' => { 470 => 'DistortionCorrectionAlreadyApplied' }, 'distortioncorrectionon' => { 102 => '0x20705.0', 108 => 0x63 }, - 'distortioncorrectionsetting' => { 79 => 0x7, 414 => 0x2013 }, + 'distortioncorrectionsetting' => { 79 => 0x7, 416 => 0x2013 }, 'distortioncorrectionvalue' => { 78 => 0x9 }, - 'distortioncorrparams' => { 118 => 0x7037, 423 => 0x1a23, 426 => 0x1870, 428 => 0x189c, 429 => 0x18cc, 430 => 0x17d0, 443 => 0x6ca, 444 => 0x64 }, - 'distortioncorrparamsnumber' => { 426 => 0x1899, 428 => 0x18c5, 429 => 0x18f5, 430 => 0x17f9 }, - 'distortioncorrparamspresent' => { 426 => 0x1898, 428 => 0x18c4, 429 => 0x18f4, 430 => 0x17f8, 432 => 0x10b, 433 => 0x10b, 443 => 0x600, 444 => 0x5a }, + 'distortioncorrparams' => { 118 => 0x7037, 425 => 0x1a23, 428 => 0x1870, 430 => 0x189c, 431 => 0x18cc, 432 => 0x17d0, 445 => 0x6ca, 446 => 0x64 }, + 'distortioncorrparamsnumber' => { 428 => 0x1899, 430 => 0x18c5, 431 => 0x18f5, 432 => 0x17f9 }, + 'distortioncorrparamspresent' => { 428 => 0x1898, 430 => 0x18c4, 431 => 0x18f4, 432 => 0x17f8, 434 => 0x10b, 435 => 0x10b, 445 => 0x600, 446 => 0x5a }, 'distortioneffect' => { 102 => 0x20709 }, - 'distortionn' => { 318 => 0xc }, - 'distortionparam02' => { 318 => 0x2 }, - 'distortionparam04' => { 318 => 0x4 }, - 'distortionparam08' => { 318 => 0x8 }, - 'distortionparam09' => { 318 => 0x9 }, - 'distortionparam11' => { 318 => 0xb }, - 'distortionscale' => { 318 => 0x5 }, - 'distributor' => { 487 => 'distributor' }, - 'distributorproductid' => { 486 => 'distributorProductID' }, + 'distortionn' => { 320 => 0xc }, + 'distortionparam02' => { 320 => 0x2 }, + 'distortionparam04' => { 320 => 0x4 }, + 'distortionparam08' => { 320 => 0x8 }, + 'distortionparam09' => { 320 => 0x9 }, + 'distortionparam11' => { 320 => 0xb }, + 'distortionscale' => { 320 => 0x5 }, + 'distributor' => { 489 => 'distributor' }, + 'distributorproductid' => { 488 => 'distributorProductID' }, 'dloon' => { 102 => '0x20706.0', 108 => 0xdc }, 'dlosetting' => { 102 => 0x20706, 108 => 0xdd }, 'dlosettingapplied' => { 101 => 0x4 }, 'dloshootingdistance' => { 108 => 0xde }, 'dloversion' => { 101 => 0x5 }, - 'dmcomment' => { 497 => 'comment' }, + 'dmcomment' => { 499 => 'comment' }, 'dmdithermatrix' => { 137 => 0xc7a }, 'dmdithermatrixheight' => { 137 => 0xc7c }, 'dmdithermatrixwidth' => { 137 => 0xc7b }, 'dngadobedata' => { 118 => 0xc634 }, 'dngbackwardversion' => { 118 => 0xc613 }, - 'dngignoresidecars' => { 471 => 'DNGIgnoreSidecars', 473 => 'DNGIgnoreSidecars' }, + 'dngignoresidecars' => { 473 => 'DNGIgnoreSidecars', 475 => 'DNGIgnoreSidecars' }, 'dnglensinfo' => { 118 => 0xc630 }, 'dngprivatedata' => { 118 => 0xc634 }, 'dngversion' => { 118 => 0xc612 }, - 'document' => { 304 => 'Document' }, - 'documentancestors' => { 485 => 'DocumentAncestors' }, + 'document' => { 306 => 'Document' }, + 'documentancestors' => { 487 => 'DocumentAncestors' }, 'documenthistory' => { 130 => 0xe7 }, - 'documentid' => { 498 => 'DocumentID' }, + 'documentid' => { 500 => 'DocumentID' }, 'documentname' => { 118 => 0x10d }, 'documentnotes' => { 130 => 0xe6 }, - 'doi' => { 487 => 'doi' }, - 'dopesheet' => { 483 => 'Dopesheet' }, - 'dopesheetlink' => { 483 => 'DopesheetLink' }, - 'dopesheetlinklink' => { 483 => [\'DopesheetLink','DopesheetLinkLink'] }, - 'dopesheetlinklinkqualifier' => { 483 => [\'DopesheetLink','DopesheetLinkLinkQualifier'] }, + 'doi' => { 489 => 'doi' }, + 'dopesheet' => { 485 => 'Dopesheet' }, + 'dopesheetlink' => { 485 => 'DopesheetLink' }, + 'dopesheetlinklink' => { 485 => [\'DopesheetLink','DopesheetLinkLink'] }, + 'dopesheetlinklinkqualifier' => { 485 => [\'DopesheetLink','DopesheetLinkLinkQualifier'] }, 'doublingmicrovolts' => { 137 => 0xc82 }, - 'dpp' => { 466 => 'dpp' }, + 'dpp' => { 468 => 'dpp' }, 'dr4cameramodel' => { 103 => 0x3 }, 'drangepriority' => { 126 => 0x1443 }, 'drangepriorityauto' => { 126 => 0x1444 }, 'drangepriorityfixed' => { 126 => 0x1445 }, - 'drivemode' => { 112 => 0x3103, 124 => '0.1', 180 => 0x6, 183 => 0x1e, 186 => 0xe, 291 => 0x600, 349 => 0x34, 381 => 0x1002, 391 => 0x3, 401 => 0x4, 402 => 0x7e, 403 => 0x34 }, - 'drivemode2' => { 183 => 0xa, 330 => 0x7, 412 => 0xe, 419 => 0x1 }, - 'drivemodesetting' => { 403 => 0x4 }, + 'drivemode' => { 112 => 0x3103, 124 => '0.1', 180 => 0x6, 183 => 0x1e, 186 => 0xe, 293 => 0x600, 351 => 0x34, 383 => 0x1002, 393 => 0x3, 403 => 0x4, 404 => 0x7e, 405 => 0x34 }, + 'drivemode2' => { 183 => 0xa, 332 => 0x7, 414 => 0xe, 421 => 0x1 }, + 'drivemodesetting' => { 405 => 0x4 }, 'drivespeed' => { 124 => '0.2' }, - 'dspfirmwareversion' => { 349 => 0x27 }, - 'duration' => { 66 => 0x6a, 154 => 'Duration', 168 => 'Duration', 489 => 'duration', 497 => 'duration' }, - 'durationscale' => { 497 => [\'duration','durationScale'] }, - 'durationvalue' => { 497 => [\'duration','durationValue'] }, + 'dspfirmwareversion' => { 351 => 0x27 }, + 'duration' => { 66 => 0x6a, 154 => 'Duration', 168 => 'Duration', 491 => 'duration', 499 => 'duration' }, + 'durationscale' => { 499 => [\'duration','durationScale'] }, + 'durationvalue' => { 499 => [\'duration','durationValue'] }, 'dustremovaldata' => { 63 => 0x97 }, - 'dynamicafarea' => { 274 => '1.4', 283 => '1.4' }, - 'dynamicareaafdisplay' => { 275 => '46.1', 277 => '47.1', 278 => '47.1', 287 => '47.1', 288 => '47.1' }, + 'dynamicafarea' => { 276 => '1.4', 285 => '1.4' }, + 'dynamicareaafdisplay' => { 277 => '46.1', 279 => '47.1', 280 => '47.1', 289 => '47.1', 290 => '47.1' }, 'dynamicrange' => { 126 => 0x1400 }, - 'dynamicrangeexpansion' => { 349 => 0x69, 381 => 0x100e }, + 'dynamicrangeexpansion' => { 351 => 0x69, 383 => 0x100e }, 'dynamicrangemax' => { 107 => 0x7c }, 'dynamicrangemin' => { 107 => 0x7a }, - 'dynamicrangeoptimizer' => { 183 => 0x15, 414 => [0xb025,0xb04f], 422 => 0x1144, 423 => [0x1144,0x324], 424 => [0x1120,0x300], 425 => [0x119c,0x37c], 426 => [0x1178,0x328], 427 => [0x1030,0x50], 428 => [0x228,0x50], 429 => [0x228,0x50], 430 => [0x21b,0x4e] }, - 'dynamicrangeoptimizerbracket' => { 412 => 0x2e }, - 'dynamicrangeoptimizerlevel' => { 401 => 0x19, 402 => 0x17, 403 => 0xd, 412 => 0x79, 419 => 0x5 }, - 'dynamicrangeoptimizermode' => { 186 => 0x15, 401 => 0x18, 402 => 0x16, 412 => [0x77,0x15] }, - 'dynamicrangeoptimizersetting' => { 183 => 0x27, 403 => 0xc, 419 => 0x4 }, + 'dynamicrangeoptimizer' => { 183 => 0x15, 416 => [0xb025,0xb04f], 424 => 0x1144, 425 => [0x1144,0x324], 426 => [0x1120,0x300], 427 => [0x119c,0x37c], 428 => [0x1178,0x328], 429 => [0x1030,0x50], 430 => [0x228,0x50], 431 => [0x228,0x50], 432 => [0x21b,0x4e] }, + 'dynamicrangeoptimizerbracket' => { 414 => 0x2e }, + 'dynamicrangeoptimizerlevel' => { 403 => 0x19, 404 => 0x17, 405 => 0xd, 414 => 0x79, 421 => 0x5 }, + 'dynamicrangeoptimizermode' => { 186 => 0x15, 403 => 0x18, 404 => 0x16, 414 => [0x77,0x15] }, + 'dynamicrangeoptimizersetting' => { 183 => 0x27, 405 => 0xc, 421 => 0x4 }, 'dynamicrangesetting' => { 126 => 0x1402 }, - 'e-dialinprogram' => { 330 => '1.3' }, + 'e-dialinprogram' => { 332 => '1.3' }, 'earliestageorloweststage' => { 117 => [\'GeologicalContext','GeologicalContextEarliestAgeOrLowestStage'] }, 'earliesteonorlowesteonothem' => { 117 => [\'GeologicalContext','GeologicalContextEarliestEonOrLowestEonothem'] }, 'earliestepochorlowestseries' => { 117 => [\'GeologicalContext','GeologicalContextEarliestEpochOrLowestSeries'] }, 'earliesteraorlowesterathem' => { 117 => [\'GeologicalContext','GeologicalContextEarliestEraOrLowestErathem'] }, 'earliestperiodorlowestsystem' => { 117 => [\'GeologicalContext','GeologicalContextEarliestPeriodOrLowestSystem'] }, - 'earthpos' => { 451 => 'EarthPos' }, - 'earthposaltitude' => { 451 => [\'EarthPos','EarthPosAltitude'] }, - 'earthposlatitude' => { 451 => [\'EarthPos','EarthPosLatitude'] }, - 'earthposlongitude' => { 451 => [\'EarthPos','EarthPosLongitude'] }, - 'earthposrotationw' => { 451 => [\'EarthPos','EarthPosRotationW'] }, - 'earthposrotationx' => { 451 => [\'EarthPos','EarthPosRotationX'] }, - 'earthposrotationy' => { 451 => [\'EarthPos','EarthPosRotationY'] }, - 'earthposrotationz' => { 451 => [\'EarthPos','EarthPosRotationZ'] }, - 'earthpostimestamp' => { 451 => [\'EarthPos','EarthPosTimestamp'] }, - 'easyexposurecomp' => { 289 => '6.1' }, - 'easyexposurecompensation' => { 274 => '6.4', 275 => '6.5', 277 => '6.3', 278 => '6.3', 282 => '5.1', 283 => '4.4', 284 => '5.2', 287 => '6.3', 288 => '6.3' }, + 'earthpos' => { 453 => 'EarthPos' }, + 'earthposaltitude' => { 453 => [\'EarthPos','EarthPosAltitude'] }, + 'earthposlatitude' => { 453 => [\'EarthPos','EarthPosLatitude'] }, + 'earthposlongitude' => { 453 => [\'EarthPos','EarthPosLongitude'] }, + 'earthposrotationw' => { 453 => [\'EarthPos','EarthPosRotationW'] }, + 'earthposrotationx' => { 453 => [\'EarthPos','EarthPosRotationX'] }, + 'earthposrotationy' => { 453 => [\'EarthPos','EarthPosRotationY'] }, + 'earthposrotationz' => { 453 => [\'EarthPos','EarthPosRotationZ'] }, + 'earthpostimestamp' => { 453 => [\'EarthPos','EarthPosTimestamp'] }, + 'easyexposurecomp' => { 291 => '6.1' }, + 'easyexposurecompensation' => { 276 => '6.4', 277 => '6.5', 279 => '6.3', 280 => '6.3', 284 => '5.1', 285 => '4.4', 286 => '5.2', 289 => '6.3', 290 => '6.3' }, 'easymode' => { 34 => 0xb }, 'edgemapslope' => { 137 => 0x930 }, 'edgemapx1' => { 137 => 0x931 }, 'edgemapx2' => { 137 => 0x932 }, 'edgemapx3' => { 137 => 0x934 }, 'edgemapx4' => { 137 => 0x935 }, - 'edgenoisereduction' => { 268 => 0x4, 448 => 0x8028 }, - 'edit1' => { 374 => "\xa9ed1" }, - 'edit2' => { 374 => "\xa9ed2" }, - 'edit3' => { 374 => "\xa9ed3" }, - 'edit4' => { 374 => "\xa9ed4" }, - 'edit5' => { 374 => "\xa9ed5" }, - 'edit6' => { 374 => "\xa9ed6" }, - 'edit7' => { 374 => "\xa9ed7" }, - 'edit8' => { 374 => "\xa9ed8" }, - 'edit9' => { 374 => "\xa9ed9" }, - 'edition' => { 487 => 'edition' }, + 'edgenoisereduction' => { 270 => 0x4, 450 => 0x8028 }, + 'edit1' => { 376 => "\xa9ed1" }, + 'edit2' => { 376 => "\xa9ed2" }, + 'edit3' => { 376 => "\xa9ed3" }, + 'edit4' => { 376 => "\xa9ed4" }, + 'edit5' => { 376 => "\xa9ed5" }, + 'edit6' => { 376 => "\xa9ed6" }, + 'edit7' => { 376 => "\xa9ed7" }, + 'edit8' => { 376 => "\xa9ed8" }, + 'edit9' => { 376 => "\xa9ed9" }, + 'edition' => { 489 => 'edition' }, 'editorialupdate' => { 130 => 0x8 }, - 'editstatus' => { 130 => 0x7, 361 => 'EditStatus', 466 => 'EditStatus' }, - 'editversionname' => { 267 => 0x3d136244 }, - 'effectivelv' => { 349 => 0x2d }, + 'editstatus' => { 130 => 0x7, 363 => 'EditStatus', 468 => 'EditStatus' }, + 'editversionname' => { 269 => 0x3d136244 }, + 'effectivelv' => { 351 => 0x2d }, 'effectivemaxaperture' => { 217 => 0x12, 218 => 0x13, 222 => 0x14 }, - 'eissn' => { 487 => 'eIssn' }, + 'eissn' => { 489 => 'eIssn' }, 'electricalblackcolumns' => { 137 => 0x1810 }, - 'electronicfront-curtainshutter' => { 277 => '5.2', 278 => '5.2', 287 => '5.3', 288 => '5.2' }, - 'electronicfrontcurtainshutter' => { 414 => 0x201a }, + 'electronicfront-curtainshutter' => { 279 => '5.2', 280 => '5.2', 289 => '5.3', 290 => '5.2' }, + 'electronicfrontcurtainshutter' => { 416 => 0x201a }, 'elevation' => { 164 => 'Elevation' }, 'email' => { 156 => 'EMail' }, - 'embargodate' => { 490 => 'embargoDate' }, - 'embdencrightsexpr' => { 483 => 'EmbdEncRightsExpr' }, - 'embeddedencodedrightsexpr' => { 483 => [\'EmbdEncRightsExpr','EmbdEncRightsExprEncRightsExpr'] }, - 'embeddedencodedrightsexprlangid' => { 483 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprLangId'] }, - 'embeddedencodedrightsexprtype' => { 483 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprEncType'] }, - 'embeddedxmpdigest' => { 485 => 'EmbeddedXMPDigest' }, + 'embargodate' => { 492 => 'embargoDate' }, + 'embdencrightsexpr' => { 485 => 'EmbdEncRightsExpr' }, + 'embeddedencodedrightsexpr' => { 485 => [\'EmbdEncRightsExpr','EmbdEncRightsExprEncRightsExpr'] }, + 'embeddedencodedrightsexprlangid' => { 485 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprLangId'] }, + 'embeddedencodedrightsexprtype' => { 485 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprEncType'] }, + 'embeddedxmpdigest' => { 487 => 'EmbeddedXMPDigest' }, 'emissivity' => { 120 => 0x3 }, 'enablechromanoisereduction' => { 137 => 0xe6e }, 'enablesharpening' => { 137 => 0x92e }, - 'encodedby' => { 178 => 'WM/EncodedBy', 366 => "\xa9enc" }, - 'encodedwith' => { 368 => 'Encoded_With' }, - 'encoder' => { 366 => "\xa9too", 374 => "\xa9too" }, - 'encoderid' => { 374 => "\xa9enc" }, + 'encodedby' => { 178 => 'WM/EncodedBy', 368 => "\xa9enc" }, + 'encodedwith' => { 370 => 'Encoded_With' }, + 'encoder' => { 368 => "\xa9too", 376 => "\xa9too" }, + 'encoderid' => { 376 => "\xa9enc" }, 'encodingtime' => { 178 => 'WM/EncodingTime' }, - 'encryptionkey' => { 388 => 0xa020 }, - 'endingpage' => { 487 => 'endingPage' }, - 'enduser' => { 301 => 'EndUser' }, - 'enduserid' => { 301 => [\'EndUser','EndUserEndUserID'] }, - 'endusername' => { 301 => [\'EndUser','EndUserEndUserName'] }, - 'engineer' => { 497 => 'engineer' }, - 'enhancedarktones' => { 260 => 0x8 }, + 'encryptionkey' => { 390 => 0xa020 }, + 'endingpage' => { 489 => 'endingPage' }, + 'enduser' => { 303 => 'EndUser' }, + 'enduserid' => { 303 => [\'EndUser','EndUserEndUserID'] }, + 'endusername' => { 303 => [\'EndUser','EndUserEndUserName'] }, + 'engineer' => { 499 => 'engineer' }, + 'enhancedarktones' => { 262 => 0x8 }, 'enhancement' => { 111 => 0x16, 112 => 0x3016 }, 'enhanceparams' => { 118 => 0xc7ee }, - 'enhancer' => { 295 => 0x300 }, - 'enhancervalues' => { 295 => 0x301 }, + 'enhancer' => { 297 => 0x300 }, + 'enhancervalues' => { 297 => 0x301 }, 'envelopenumber' => { 131 => 0x28 }, 'envelopepriority' => { 131 => 0x3c }, 'enveloperecordversion' => { 131 => 0x0 }, - 'episode' => { 483 => 'Episode' }, - 'episodeglobaluniqueid' => { 366 => 'egid' }, - 'episodeidentifier' => { 483 => [\'Episode','EpisodeIdentifier'] }, - 'episodename' => { 483 => [\'Episode','EpisodeName'] }, - 'episodenumber' => { 483 => [\'Episode','EpisodeNumber'] }, - 'epsonimageheight' => { 296 => 0x20c }, - 'epsonimagewidth' => { 296 => 0x20b }, - 'epsonsoftware' => { 296 => 0x20d }, - 'equipmentinstitution' => { 450 => 'EquipmentInstitution' }, - 'equipmentmanufacturer' => { 450 => 'EquipmentManufacturer' }, - 'equipmentversion' => { 292 => 0x0 }, + 'episode' => { 485 => 'Episode' }, + 'episodeglobaluniqueid' => { 368 => 'egid' }, + 'episodeidentifier' => { 485 => [\'Episode','EpisodeIdentifier'] }, + 'episodename' => { 485 => [\'Episode','EpisodeName'] }, + 'episodenumber' => { 485 => [\'Episode','EpisodeNumber'] }, + 'epsonimageheight' => { 298 => 0x20c }, + 'epsonimagewidth' => { 298 => 0x20b }, + 'epsonsoftware' => { 298 => 0x20d }, + 'equipmentinstitution' => { 452 => 'EquipmentInstitution' }, + 'equipmentmanufacturer' => { 452 => 'EquipmentManufacturer' }, + 'equipmentversion' => { 294 => 0x0 }, 'ettlii' => { 83 => 0x304, 84 => 0xd, 85 => 0xe, 86 => 0x7, 87 => 0x7, 88 => 0xe }, - 'event' => { 452 => 'Event', 464 => 'Event', 483 => 'Event', 487 => 'event' }, - 'eventalias' => { 486 => 'eventAlias' }, + 'event' => { 454 => 'Event', 466 => 'Event', 485 => 'Event', 489 => 'event' }, + 'eventalias' => { 488 => 'eventAlias' }, 'eventdate' => { 117 => [\'Event','EventEventDate'] }, 'eventday' => { 117 => [\'Event','EventDay'] }, 'eventearliestdate' => { 117 => [\'Event','EventEarliestDate'] }, - 'eventend' => { 486 => 'eventEnd' }, + 'eventend' => { 488 => 'eventEnd' }, 'eventenddayofyear' => { 117 => [\'Event','EventEndDayOfYear'] }, 'eventfieldnotes' => { 117 => [\'Event','EventFieldNotes'] }, 'eventfieldnumber' => { 117 => [\'Event','EventFieldNumber'] }, 'eventhabitat' => { 117 => [\'Event','EventHabitat'] }, - 'eventid' => { 117 => [\'Event','EventEventID'], 483 => 'EventId' }, + 'eventid' => { 117 => [\'Event','EventEventID'], 485 => 'EventId' }, 'eventlatestdate' => { 117 => [\'Event','EventLatestDate'] }, 'eventmonth' => { 117 => [\'Event','EventMonth'] }, - 'eventnumber' => { 375 => 0x9, 376 => 0x37, 377 => 0x3a }, + 'eventnumber' => { 377 => 0x9, 378 => 0x37, 379 => 0x3a }, 'eventparenteventid' => { 117 => [\'Event','EventParentEventID'] }, 'eventremarks' => { 117 => [\'Event','EventEventRemarks'] }, 'eventsamplesizeunit' => { 117 => [\'Event','EventSampleSizeUnit'] }, 'eventsamplesizevalue' => { 117 => [\'Event','EventSampleSizeValue'] }, 'eventsamplingeffort' => { 117 => [\'Event','EventSamplingEffort'] }, 'eventsamplingprotocol' => { 117 => [\'Event','EventSamplingProtocol'] }, - 'eventstart' => { 486 => 'eventStart' }, + 'eventstart' => { 488 => 'eventStart' }, 'eventstartdayofyear' => { 117 => [\'Event','EventStartDayOfYear'] }, - 'eventsubtype' => { 486 => 'eventSubtype' }, + 'eventsubtype' => { 488 => 'eventSubtype' }, 'eventtime' => { 117 => [\'Event','EventEventTime'] }, - 'eventtype' => { 486 => 'eventType' }, + 'eventtype' => { 488 => 'eventType' }, 'eventverbatimeventdate' => { 117 => [\'Event','EventVerbatimEventDate'] }, 'eventyear' => { 117 => [\'Event','EventYear'] }, - 'evsteps' => { 330 => '1.2', 332 => 0x0 }, - 'evstepsize' => { 279 => '5.1', 280 => '6.1', 281 => '6.1', 285 => '0.7' }, - 'exclusivecoverage' => { 461 => 'ExclusiveCoverage' }, - 'exclusivityenddate' => { 490 => 'exclusivityEndDate' }, + 'evsteps' => { 332 => '1.2', 334 => 0x0 }, + 'evstepsize' => { 281 => '5.1', 282 => '6.1', 283 => '6.1', 287 => '0.7' }, + 'exclusivecoverage' => { 463 => 'ExclusiveCoverage' }, + 'exclusivityenddate' => { 492 => 'exclusivityEndDate' }, 'excursiontolerance' => { 132 => 0x82 }, - 'executiveproducer' => { 366 => "\xa9xpd" }, + 'executiveproducer' => { 368 => "\xa9xpd" }, 'exif' => { 119 => 'EXIF' }, 'exifbyteorder' => { 119 => 'ExifByteOrder' }, 'exifcamerainfo' => { 130 => 0xe8 }, - 'exifimageheight' => { 118 => 0xa003, 477 => 'PixelYDimension' }, - 'exifimagewidth' => { 118 => 0xa002, 477 => 'PixelXDimension' }, + 'exifimageheight' => { 118 => 0xa003, 479 => 'PixelYDimension' }, + 'exifimagewidth' => { 118 => 0xa002, 479 => 'PixelXDimension' }, 'exifunicodebyteorder' => { 119 => 'ExifUnicodeByteOrder' }, - 'exifversion' => { 118 => 0x9000, 477 => 'ExifVersion' }, + 'exifversion' => { 118 => 0x9000, 479 => 'ExifVersion' }, 'exitpupilposition' => { 217 => 0x4, 218 => 0x4, 222 => 0x4 }, - 'expirationdate' => { 130 => 0x25, 490 => 'expirationDate' }, + 'expirationdate' => { 130 => 0x25, 492 => 'expirationDate' }, 'expirationtime' => { 130 => 0x26 }, - 'exposure' => { 118 => 0xfe51, 471 => 'Exposure', 473 => 'Exposure' }, - 'exposure2012' => { 471 => 'Exposure2012', 473 => 'Exposure2012' }, - 'exposureadj' => { 265 => 0x0 }, - 'exposureadj2' => { 265 => 0x12 }, - 'exposureadjust' => { 391 => 0xc }, + 'exposure' => { 118 => 0xfe51, 473 => 'Exposure', 475 => 'Exposure' }, + 'exposure2012' => { 473 => 'Exposure2012', 475 => 'Exposure2012' }, + 'exposureadj' => { 267 => 0x0 }, + 'exposureadj2' => { 267 => 0x12 }, + 'exposureadjust' => { 393 => 0xc }, 'exposurebracketingindicatorlast' => { 183 => 0x52 }, - 'exposurebracketshotnumber' => { 186 => 0x2d, 412 => 0x2f }, - 'exposurebracketstepsize' => { 330 => 0x8 }, + 'exposurebracketshotnumber' => { 186 => 0x2d, 414 => 0x2f }, + 'exposurebracketstepsize' => { 332 => 0x8 }, 'exposurebracketvalue' => { 224 => 0x19 }, 'exposurecompautocancel' => { 83 => 0x113 }, - 'exposurecompensation' => { 76 => 0x6, 92 => 0x0, 118 => 0x9204, 139 => 0x24, 155 => 'ExposureComp', 175 => 'ExposureCompensation', 180 => 0xd, 181 => 0x53, 182 => 0x1e, 186 => 0x49c0, 296 => 0x1006, 349 => 0x16, 358 => 0x402, 388 => 0xa013, 391 => [0xc,0x35,0x4d], 422 => 0x114c, 423 => 0x114c, 424 => 0x1128, 426 => 0x1180, 427 => 0x1038, 428 => 0x230, 429 => 0x230, 430 => 0x223, 477 => 'ExposureBiasValue' }, - 'exposurecompensation2' => { 419 => [0x24,0x26,0x2a] }, + 'exposurecompensation' => { 76 => 0x6, 92 => 0x0, 118 => 0x9204, 139 => 0x24, 155 => 'ExposureComp', 175 => 'ExposureCompensation', 180 => 0xd, 181 => 0x53, 182 => 0x1e, 186 => 0x49c0, 298 => 0x1006, 351 => 0x16, 360 => 0x402, 390 => 0xa013, 393 => [0xc,0x35,0x4d], 424 => 0x114c, 425 => 0x114c, 426 => 0x1128, 428 => 0x1180, 429 => 0x1038, 430 => 0x230, 431 => 0x230, 432 => 0x223, 479 => 'ExposureBiasValue' }, + 'exposurecompensation2' => { 421 => [0x24,0x26,0x2a] }, 'exposurecompensationmode' => { 183 => 0x47, 186 => 0x2a }, - 'exposurecompensationset' => { 401 => 0x3, 402 => 0x3, 403 => 0x3, 419 => 0x1e }, + 'exposurecompensationset' => { 403 => 0x3, 404 => 0x3, 405 => 0x3, 421 => 0x1e }, 'exposurecompensationsetting' => { 183 => 0x1 }, - 'exposurecompstepsize' => { 274 => '6.3', 275 => '7.3', 277 => '7.3', 278 => '7.3', 283 => '4.3', 287 => '7.3', 288 => '7.3' }, - 'exposurecontrolstep' => { 282 => '6.1', 284 => '6.1' }, - 'exposurecontrolstepsize' => { 274 => '6.2', 275 => '7.1', 277 => '7.1', 278 => '7.1', 283 => '4.2', 287 => '7.1', 288 => '7.1', 289 => '7.1' }, + 'exposurecompstepsize' => { 276 => '6.3', 277 => '7.3', 279 => '7.3', 280 => '7.3', 285 => '4.3', 289 => '7.3', 290 => '7.3' }, + 'exposurecontrolstep' => { 284 => '6.1', 286 => '6.1' }, + 'exposurecontrolstepsize' => { 276 => '6.2', 277 => '7.1', 279 => '7.1', 280 => '7.1', 285 => '4.2', 289 => '7.1', 290 => '7.1', 291 => '7.1' }, 'exposurecount' => { 126 => 0x1032 }, - 'exposuredelaymode' => { 274 => '10.1', 275 => '11.1', 277 => '11.1', 278 => '11.1', 279 => '9.1', 280 => '10.1', 281 => '10.1', 283 => '10.4', 284 => '10.1', 285 => '6.4', 287 => '11.1', 288 => '11.1', 289 => '11.2' }, + 'exposuredelaymode' => { 276 => '10.1', 277 => '11.1', 279 => '11.1', 280 => '11.1', 281 => '9.1', 282 => '10.1', 283 => '10.1', 285 => '10.4', 286 => '10.1', 287 => '6.4', 289 => '11.1', 290 => '11.1', 291 => '11.2' }, 'exposuredifference' => { 224 => 0xe }, 'exposuregaincustom' => { 137 => 0x89c }, 'exposuregaindaylight' => { 137 => 0x898 }, 'exposuregainflash' => { 137 => 0x89b }, 'exposuregainfluorescent' => { 137 => 0x89a }, 'exposuregaintungsten' => { 137 => 0x899 }, - 'exposureindex' => { 118 => 0xa215, 477 => 'ExposureIndex' }, + 'exposureindex' => { 118 => 0xa215, 479 => 'ExposureIndex' }, 'exposureindicator' => { 183 => 0x50 }, - 'exposurelevelincrements' => { 81 => 0x6, 82 => 0x6, 83 => 0x101, 84 => 0x5, 85 => 0x6, 86 => 0x5, 87 => 0x5, 88 => 0x6, 89 => 0x4, 401 => 0x58, 402 => 0x58 }, - 'exposurelockused' => { 459 => 'ExposureLockUsed' }, - 'exposuremode' => { 118 => 0xa402, 155 => 'ExposureMode', 180 => 0x1, 181 => 0xa, 182 => 0x0, 183 => 0x0, 186 => 0x34, 291 => 0x200, 311 => 0x40d, 391 => 0x8, 414 => 0xb041, 477 => 'ExposureMode' }, + 'exposurelevelincrements' => { 81 => 0x6, 82 => 0x6, 83 => 0x101, 84 => 0x5, 85 => 0x6, 86 => 0x5, 87 => 0x5, 88 => 0x6, 89 => 0x4, 403 => 0x58, 404 => 0x58 }, + 'exposurelockused' => { 461 => 'ExposureLockUsed' }, + 'exposuremode' => { 118 => 0xa402, 155 => 'ExposureMode', 180 => 0x1, 181 => 0xa, 182 => 0x0, 183 => 0x0, 186 => 0x34, 293 => 0x200, 313 => 0x40d, 393 => 0x8, 416 => 0xb041, 479 => 'ExposureMode' }, 'exposuremodeinmanual' => { 83 => 0x10b }, - 'exposureprogram' => { 118 => 0x8822, 381 => 0x1001, 394 => [0x17e,0x43], 401 => 0x3c, 402 => 0x3c, 403 => 0x5, 407 => 0x14, 412 => 0x3f, 419 => 0x2, 422 => 0x1175, 423 => 0x1179, 424 => 0x1155, 425 => 0x11d1, 426 => 0x11ad, 427 => 0x1065, 428 => 0x25d, 429 => 0x25d, 430 => 0x24c, 440 => 0xb, 441 => 0xc, 442 => 0xb, 444 => 0x48, 477 => 'ExposureProgram' }, - 'exposureshift' => { 291 => 0x203 }, - 'exposurestandardadjustment' => { 414 => 0x202d }, - 'exposuretime' => { 7 => 0x4, 8 => 0x4, 9 => 0x4, 10 => 0x4, 11 => 0x4, 12 => 0x4, 13 => 0x4, 14 => 0x4, 15 => 0x4, 16 => 0x4, 17 => 0x4, 18 => 0x4, 19 => 0x4, 20 => 0x4, 21 => 0x4, 22 => 0x4, 23 => 0x4, 24 => 0x4, 25 => 0x4, 26 => 0x4, 27 => 0x4, 28 => 0x4, 29 => 0x4, 30 => 0x6, 31 => 0x7, 76 => 0x16, 118 => 0x829a, 136 => 0xfd05, 139 => 0x20, 141 => 0xfa24, 143 => 0xf104, 146 => 0x12, 148 => 0x38, 150 => 0x14, 151 => 0x10, 153 => 0x10, 155 => 'ExposureTime', 180 => 0x9, 181 => 0x35, 182 => 0x48, 183 => 0x8, 186 => 0x49b8, 349 => 0x12, 388 => 0xa018, 391 => [0x32,0x4a], 401 => 0x0, 402 => 0x0, 419 => [0x21,0x23,0x27], 444 => 0x10, 477 => 'ExposureTime' }, - 'exposuretime2' => { 391 => [0x33,0x4b] }, + 'exposureprogram' => { 118 => 0x8822, 383 => 0x1001, 396 => [0x17e,0x43], 403 => 0x3c, 404 => 0x3c, 405 => 0x5, 409 => 0x14, 414 => 0x3f, 421 => 0x2, 424 => 0x1175, 425 => 0x1179, 426 => 0x1155, 427 => 0x11d1, 428 => 0x11ad, 429 => 0x1065, 430 => 0x25d, 431 => 0x25d, 432 => 0x24c, 442 => 0xb, 443 => 0xc, 444 => 0xb, 446 => 0x48, 479 => 'ExposureProgram' }, + 'exposureshift' => { 293 => 0x203 }, + 'exposurestandardadjustment' => { 416 => 0x202d }, + 'exposuretime' => { 7 => 0x4, 8 => 0x4, 9 => 0x4, 10 => 0x4, 11 => 0x4, 12 => 0x4, 13 => 0x4, 14 => 0x4, 15 => 0x4, 16 => 0x4, 17 => 0x4, 18 => 0x4, 19 => 0x4, 20 => 0x4, 21 => 0x4, 22 => 0x4, 23 => 0x4, 24 => 0x4, 25 => 0x4, 26 => 0x4, 27 => 0x4, 28 => 0x4, 29 => 0x4, 30 => 0x6, 31 => 0x7, 76 => 0x16, 118 => 0x829a, 136 => 0xfd05, 139 => 0x20, 141 => 0xfa24, 143 => 0xf104, 146 => 0x12, 148 => 0x38, 150 => 0x14, 151 => 0x10, 153 => 0x10, 155 => 'ExposureTime', 180 => 0x9, 181 => 0x35, 182 => 0x48, 183 => 0x8, 186 => 0x49b8, 351 => 0x12, 390 => 0xa018, 393 => [0x32,0x4a], 403 => 0x0, 404 => 0x0, 421 => [0x21,0x23,0x27], 446 => 0x10, 479 => 'ExposureTime' }, + 'exposuretime2' => { 393 => [0x33,0x4b] }, 'exposuretuning' => { 224 => 0x1c }, 'exposurevalue' => { 137 => 0x3 }, 'exposurewarning' => { 126 => 0x1302 }, 'exrauto' => { 126 => 0x1033 }, 'exrmode' => { 126 => 0x1034 }, - 'extdescraccessibility' => { 482 => 'ExtDescrAccessibility' }, - 'extendedwbdetect' => { 291 => 0x902 }, - 'extender' => { 292 => 0x301 }, - 'extenderfirmwareversion' => { 292 => 0x304 }, + 'extdescraccessibility' => { 484 => 'ExtDescrAccessibility' }, + 'extendedwbdetect' => { 293 => 0x902 }, + 'extender' => { 294 => 0x301 }, + 'extenderfirmwareversion' => { 294 => 0x304 }, 'extendermagnification' => { 157 => 'Magnification' }, 'extendermake' => { 157 => 'Make' }, - 'extendermodel' => { 157 => 'Model', 292 => 0x303 }, - 'extenderserialnumber' => { 157 => 'SerialNumber', 292 => 0x302 }, - 'extenderstatus' => { 347 => 0x3 }, - 'externalflash' => { 294 => 0x1201 }, - 'externalflashae1' => { 296 => 0x101f }, - 'externalflashae1_0' => { 296 => 0x101b }, - 'externalflashae2' => { 296 => 0x1020 }, - 'externalflashae2_0' => { 296 => 0x101c }, - 'externalflashbounce' => { 294 => 0x1204, 296 => 0x1026, 337 => 0x1a }, + 'extendermodel' => { 157 => 'Model', 294 => 0x303 }, + 'extenderserialnumber' => { 157 => 'SerialNumber', 294 => 0x302 }, + 'extenderstatus' => { 349 => 0x3 }, + 'externalflash' => { 296 => 0x1201 }, + 'externalflashae1' => { 298 => 0x101f }, + 'externalflashae1_0' => { 298 => 0x101b }, + 'externalflashae2' => { 298 => 0x1020 }, + 'externalflashae2_0' => { 298 => 0x101c }, + 'externalflashbounce' => { 296 => 0x1204, 298 => 0x1026, 339 => 0x1a }, 'externalflashcompensation' => { 209 => 0x1b }, - 'externalflashexposurecomp' => { 224 => 0x17, 337 => 0x19 }, + 'externalflashexposurecomp' => { 224 => 0x17, 339 => 0x19 }, 'externalflashfirmware' => { 207 => 0x6, 208 => 0x6, 209 => 0x6, 210 => 0x6, 211 => 0x6, 212 => 0x6 }, 'externalflashflags' => { 207 => 0x8, 208 => 0x8, 209 => 0x8, 210 => 0x8 }, - 'externalflashguidenumber' => { 294 => 0x1203, 337 => '24.1' }, - 'externalflashgvalue' => { 296 => 0x1025 }, - 'externalflashmode' => { 296 => 0x1028, 337 => 0x2 }, + 'externalflashguidenumber' => { 296 => 0x1203, 339 => '24.1' }, + 'externalflashgvalue' => { 298 => 0x1025 }, + 'externalflashmode' => { 298 => 0x1028, 339 => 0x2 }, 'externalflashreadystate' => { 211 => '9.1' }, 'externalflashstatus' => { 211 => '8.2' }, - 'externalflashzoom' => { 294 => 0x1205, 296 => 0x1027 }, + 'externalflashzoom' => { 296 => 0x1205, 298 => 0x1027 }, 'externalflashzoomoverride' => { 211 => '8.1' }, - 'externalmetadatalink' => { 483 => 'ExternalMetadataLink' }, - 'externalsensorbrightnessvalue' => { 309 => 0x311, 312 => 0x311, 313 => 0x311, 316 => 0x3408 }, - 'extrainfoversion' => { 405 => 0x1a }, + 'externalmetadatalink' => { 485 => 'ExternalMetadataLink' }, + 'externalsensorbrightnessvalue' => { 311 => 0x311, 314 => 0x311, 315 => 0x311, 318 => 0x3408 }, + 'extrainfoversion' => { 407 => 0x1a }, 'eyestartaf' => { 183 => 0x40 }, 'fac100per' => { 137 => 0xe94 }, 'fac170per' => { 137 => 0xe93 }, 'fac18per' => { 137 => 0xe92 }, - 'face10position' => { 109 => 0x3f4, 110 => 0x1ec, 205 => 0x28, 334 => 0x12 }, - 'face10size' => { 335 => 0x12 }, - 'face11position' => { 205 => 0x2c, 334 => 0x14 }, - 'face11size' => { 335 => 0x14 }, - 'face12position' => { 205 => 0x30, 334 => 0x16 }, - 'face12size' => { 335 => 0x16 }, - 'face13position' => { 334 => 0x18 }, - 'face13size' => { 335 => 0x18 }, - 'face14position' => { 334 => 0x1a }, - 'face14size' => { 335 => 0x1a }, - 'face15position' => { 334 => 0x1c }, - 'face15size' => { 335 => 0x1c }, - 'face16position' => { 334 => 0x1e }, - 'face16size' => { 335 => 0x1e }, - 'face17position' => { 334 => 0x20 }, - 'face17size' => { 335 => 0x20 }, - 'face18position' => { 334 => 0x22 }, - 'face18size' => { 335 => 0x22 }, - 'face19position' => { 334 => 0x24 }, - 'face19size' => { 335 => 0x24 }, - 'face1position' => { 54 => 0x8, 109 => 0xd, 110 => 0x18, 205 => 0x4, 306 => 0x1, 334 => 0x0, 378 => 0xbc, 408 => 0x1, 409 => 0x0, 410 => 0x0, 411 => 0x5b }, - 'face1size' => { 335 => 0x0 }, - 'face20position' => { 334 => 0x26 }, - 'face20size' => { 335 => 0x26 }, - 'face21position' => { 334 => 0x28 }, - 'face21size' => { 335 => 0x28 }, - 'face22position' => { 334 => 0x2a }, - 'face22size' => { 335 => 0x2a }, - 'face23position' => { 334 => 0x2c }, - 'face23size' => { 335 => 0x2c }, - 'face24position' => { 334 => 0x2e }, - 'face24size' => { 335 => 0x2e }, - 'face25position' => { 334 => 0x30 }, - 'face25size' => { 335 => 0x30 }, - 'face26position' => { 334 => 0x32 }, - 'face26size' => { 335 => 0x32 }, - 'face27position' => { 334 => 0x34 }, - 'face27size' => { 335 => 0x34 }, - 'face28position' => { 334 => 0x36 }, - 'face28size' => { 335 => 0x36 }, - 'face29position' => { 334 => 0x38 }, - 'face29size' => { 335 => 0x38 }, - 'face2position' => { 54 => 0xa, 109 => 0x7c, 110 => 0x4c, 205 => 0x8, 306 => 0x5, 334 => 0x2, 378 => 0xc8, 408 => 0x6, 409 => 0x20, 410 => 0x25, 411 => 0x65 }, - 'face2size' => { 335 => 0x2 }, - 'face30position' => { 334 => 0x3a }, - 'face30size' => { 335 => 0x3a }, - 'face31position' => { 334 => 0x3c }, - 'face31size' => { 335 => 0x3c }, - 'face32position' => { 334 => 0x3e }, - 'face32size' => { 335 => 0x3e }, - 'face3position' => { 54 => 0xc, 109 => 0xeb, 110 => 0x80, 205 => 0xc, 306 => 0x9, 334 => 0x4, 378 => 0xd4, 408 => 0xb, 409 => 0x40, 410 => 0x4a, 411 => 0x6f }, - 'face3size' => { 335 => 0x4 }, - 'face4position' => { 54 => 0xe, 109 => 0x15a, 110 => 0xb4, 205 => 0x10, 306 => 0xd, 334 => 0x6, 378 => 0xe0, 408 => 0x10, 409 => 0x60, 410 => 0x6f, 411 => 0x79 }, - 'face4size' => { 335 => 0x6 }, - 'face5position' => { 54 => 0x10, 109 => 0x1c9, 110 => 0xe8, 205 => 0x14, 306 => 0x11, 334 => 0x8, 378 => 0xec, 408 => 0x15, 409 => 0x80, 410 => 0x94 }, - 'face5size' => { 335 => 0x8 }, - 'face6position' => { 54 => 0x12, 109 => 0x238, 110 => 0x11c, 205 => 0x18, 334 => 0xa, 378 => 0xf8, 408 => 0x1a, 409 => 0xa0, 410 => 0xb9 }, - 'face6size' => { 335 => 0xa }, - 'face7position' => { 54 => 0x14, 109 => 0x2a7, 110 => 0x150, 205 => 0x1c, 334 => 0xc, 378 => 0x104, 408 => 0x1f, 409 => 0xc0, 410 => 0xde }, - 'face7size' => { 335 => 0xc }, - 'face8position' => { 54 => 0x16, 109 => 0x316, 110 => 0x184, 205 => 0x20, 334 => 0xe, 378 => 0x110, 408 => 0x24, 409 => 0xe0, 410 => 0x103 }, - 'face8size' => { 335 => 0xe }, - 'face9position' => { 54 => 0x18, 109 => 0x385, 110 => 0x1b8, 205 => 0x24, 334 => 0x10 }, - 'face9size' => { 335 => 0x10 }, - 'facebalanceorigi' => { 465 => 'FaceBalanceOrigI' }, - 'facebalanceorigq' => { 465 => 'FaceBalanceOrigQ' }, - 'facebalancestrength' => { 465 => 'FaceBalanceStrength' }, - 'facebalancewarmth' => { 465 => 'FaceBalanceWarmth' }, - 'facedetect' => { 349 => 0x76, 388 => 0x100 }, - 'facedetectarea' => { 295 => 0x1201 }, - 'facedetectframecrop' => { 295 => 0x1207 }, - 'facedetectframesize' => { 54 => 0x3, 109 => 0x1, 110 => 0x4, 205 => 0x1, 295 => 0x1203, 349 => 0x77, 378 => 0xb6 }, - 'facedetection' => { 403 => 0x30, 419 => 0x19 }, + 'face10position' => { 109 => 0x3f4, 110 => 0x1ec, 205 => 0x28, 336 => 0x12 }, + 'face10size' => { 337 => 0x12 }, + 'face11position' => { 205 => 0x2c, 336 => 0x14 }, + 'face11size' => { 337 => 0x14 }, + 'face12position' => { 205 => 0x30, 336 => 0x16 }, + 'face12size' => { 337 => 0x16 }, + 'face13position' => { 336 => 0x18 }, + 'face13size' => { 337 => 0x18 }, + 'face14position' => { 336 => 0x1a }, + 'face14size' => { 337 => 0x1a }, + 'face15position' => { 336 => 0x1c }, + 'face15size' => { 337 => 0x1c }, + 'face16position' => { 336 => 0x1e }, + 'face16size' => { 337 => 0x1e }, + 'face17position' => { 336 => 0x20 }, + 'face17size' => { 337 => 0x20 }, + 'face18position' => { 336 => 0x22 }, + 'face18size' => { 337 => 0x22 }, + 'face19position' => { 336 => 0x24 }, + 'face19size' => { 337 => 0x24 }, + 'face1position' => { 54 => 0x8, 109 => 0xd, 110 => 0x18, 205 => 0x4, 308 => 0x1, 336 => 0x0, 380 => 0xbc, 410 => 0x1, 411 => 0x0, 412 => 0x0, 413 => 0x5b }, + 'face1size' => { 337 => 0x0 }, + 'face20position' => { 336 => 0x26 }, + 'face20size' => { 337 => 0x26 }, + 'face21position' => { 336 => 0x28 }, + 'face21size' => { 337 => 0x28 }, + 'face22position' => { 336 => 0x2a }, + 'face22size' => { 337 => 0x2a }, + 'face23position' => { 336 => 0x2c }, + 'face23size' => { 337 => 0x2c }, + 'face24position' => { 336 => 0x2e }, + 'face24size' => { 337 => 0x2e }, + 'face25position' => { 336 => 0x30 }, + 'face25size' => { 337 => 0x30 }, + 'face26position' => { 336 => 0x32 }, + 'face26size' => { 337 => 0x32 }, + 'face27position' => { 336 => 0x34 }, + 'face27size' => { 337 => 0x34 }, + 'face28position' => { 336 => 0x36 }, + 'face28size' => { 337 => 0x36 }, + 'face29position' => { 336 => 0x38 }, + 'face29size' => { 337 => 0x38 }, + 'face2position' => { 54 => 0xa, 109 => 0x7c, 110 => 0x4c, 205 => 0x8, 308 => 0x5, 336 => 0x2, 380 => 0xc8, 410 => 0x6, 411 => 0x20, 412 => 0x25, 413 => 0x65 }, + 'face2size' => { 337 => 0x2 }, + 'face30position' => { 336 => 0x3a }, + 'face30size' => { 337 => 0x3a }, + 'face31position' => { 336 => 0x3c }, + 'face31size' => { 337 => 0x3c }, + 'face32position' => { 336 => 0x3e }, + 'face32size' => { 337 => 0x3e }, + 'face3position' => { 54 => 0xc, 109 => 0xeb, 110 => 0x80, 205 => 0xc, 308 => 0x9, 336 => 0x4, 380 => 0xd4, 410 => 0xb, 411 => 0x40, 412 => 0x4a, 413 => 0x6f }, + 'face3size' => { 337 => 0x4 }, + 'face4position' => { 54 => 0xe, 109 => 0x15a, 110 => 0xb4, 205 => 0x10, 308 => 0xd, 336 => 0x6, 380 => 0xe0, 410 => 0x10, 411 => 0x60, 412 => 0x6f, 413 => 0x79 }, + 'face4size' => { 337 => 0x6 }, + 'face5position' => { 54 => 0x10, 109 => 0x1c9, 110 => 0xe8, 205 => 0x14, 308 => 0x11, 336 => 0x8, 380 => 0xec, 410 => 0x15, 411 => 0x80, 412 => 0x94 }, + 'face5size' => { 337 => 0x8 }, + 'face6position' => { 54 => 0x12, 109 => 0x238, 110 => 0x11c, 205 => 0x18, 336 => 0xa, 380 => 0xf8, 410 => 0x1a, 411 => 0xa0, 412 => 0xb9 }, + 'face6size' => { 337 => 0xa }, + 'face7position' => { 54 => 0x14, 109 => 0x2a7, 110 => 0x150, 205 => 0x1c, 336 => 0xc, 380 => 0x104, 410 => 0x1f, 411 => 0xc0, 412 => 0xde }, + 'face7size' => { 337 => 0xc }, + 'face8position' => { 54 => 0x16, 109 => 0x316, 110 => 0x184, 205 => 0x20, 336 => 0xe, 380 => 0x110, 410 => 0x24, 411 => 0xe0, 412 => 0x103 }, + 'face8size' => { 337 => 0xe }, + 'face9position' => { 54 => 0x18, 109 => 0x385, 110 => 0x1b8, 205 => 0x24, 336 => 0x10 }, + 'face9size' => { 337 => 0x10 }, + 'facebalanceorigi' => { 467 => 'FaceBalanceOrigI' }, + 'facebalanceorigq' => { 467 => 'FaceBalanceOrigQ' }, + 'facebalancestrength' => { 467 => 'FaceBalanceStrength' }, + 'facebalancewarmth' => { 467 => 'FaceBalanceWarmth' }, + 'facedetect' => { 351 => 0x76, 390 => 0x100 }, + 'facedetectarea' => { 297 => 0x1201 }, + 'facedetectframecrop' => { 297 => 0x1207 }, + 'facedetectframesize' => { 54 => 0x3, 109 => 0x1, 110 => 0x4, 205 => 0x1, 297 => 0x1203, 351 => 0x77, 380 => 0xb6 }, + 'facedetection' => { 405 => 0x30, 421 => 0x19 }, 'faceelementpositions' => { 126 => 0x4203 }, 'faceelementselected' => { 126 => 0x4005 }, 'faceelementtypes' => { 126 => 0x4201 }, - 'faceid' => { 467 => 'FaceID' }, + 'faceid' => { 469 => 'FaceID' }, 'faceinfounknown' => { 112 => 0x2089 }, - 'facename' => { 388 => 0x123 }, + 'facename' => { 390 => 0x123 }, 'faceorientation' => { 110 => 0x8 }, - 'faceposition' => { 333 => 0x2, 389 => 0x4 }, + 'faceposition' => { 335 => 0x2, 391 => 0x4 }, 'facepositions' => { 126 => 0x4103 }, - 'facerecognition' => { 388 => 0x120 }, - 'facesdetected' => { 54 => 0x2, 55 => 0x2, 56 => 0x3, 109 => 0x0, 110 => 0x2, 112 => 0x211c, 126 => 0x4100, 205 => 0x3, 295 => 0x1200, 314 => 0x3f, 333 => 0x0, 378 => 0xb5, 389 => 0x0, 408 => 0x0, 411 => 0x3, 421 => 0x30 }, - 'facesrecognized' => { 307 => 0x0 }, + 'facerecognition' => { 390 => 0x120 }, + 'facesdetected' => { 54 => 0x2, 55 => 0x2, 56 => 0x3, 109 => 0x0, 110 => 0x2, 112 => 0x211c, 126 => 0x4100, 205 => 0x3, 297 => 0x1200, 316 => 0x3f, 335 => 0x0, 380 => 0xb5, 391 => 0x0, 410 => 0x0, 413 => 0x3, 423 => 0x30 }, + 'facesrecognized' => { 309 => 0x0 }, 'facewidth' => { 55 => 0x1 }, - 'fade' => { 414 => 0x2034 }, + 'fade' => { 416 => 0x2034 }, 'faithfuloutputhighlightpoint' => { 108 => 0x38 }, 'faithfuloutputshadowpoint' => { 108 => 0x39 }, 'faithfulrawcolortone' => { 108 => 0x31 }, 'faithfulrawcontrast' => { 108 => 0x33 }, 'faithfulrawhighlight' => { 108 => 0x79 }, @@ -2641,42 +2643,42 @@ my %tagLookup = ( 'faithfulrawshadowpoint' => { 108 => 0x37 }, 'faithfulrawsharpness' => { 108 => 0x35 }, 'faithfulunsharpmaskfineness' => { 108 => 0xac }, 'faithfulunsharpmaskstrength' => { 108 => 0xaa }, 'faithfulunsharpmaskthreshold' => { 108 => 0xae }, - 'far' => { 456 => 'Far' }, + 'far' => { 458 => 'Far' }, 'fastresetlinetime' => { 137 => 0x1860 }, - 'feedidentifier' => { 483 => 'FeedIdentifier' }, + 'feedidentifier' => { 485 => 'FeedIdentifier' }, 'femicroadjustment' => { 83 => 0x111 }, - 'ffid' => { 475 => 'ffid' }, - 'field' => { 486 => 'field' }, - 'fieldcount' => { 296 => 0x103f }, - 'fieldofview' => { 374 => "FOV\x00" }, + 'ffid' => { 477 => 'ffid' }, + 'field' => { 488 => 'field' }, + 'fieldcount' => { 298 => 0x103f }, + 'fieldofview' => { 376 => "FOV\x00" }, 'fifoenonepixeldelay' => { 137 => 0x1901 }, 'filecreatedate' => { 119 => 'FileCreateDate' }, - 'filedatarate' => { 497 => 'fileDataRate' }, - 'fileformat' => { 94 => 0x0, 131 => 0x14, 391 => [0x22,0x26], 414 => 0xb000 }, + 'filedatarate' => { 499 => 'fileDataRate' }, + 'fileformat' => { 94 => 0x0, 131 => 0x14, 393 => [0x22,0x26], 416 => 0xb000 }, 'filegroupid' => { 119 => 'FileGroupID' }, - 'fileindex' => { 7 => 0x143, 9 => 0x2d0, 11 => 0x172, 13 => 0x22c, 14 => 0x133, 15 => 0x13f, 16 => 0x1d3, 17 => 0x19b, 18 => 0x1e4, 19 => 0xd0, 20 => 0x1bb, 21 => 0x28c, 22 => 0x1db, 23 => 0x1d9, 24 => [0x270,0x274], 25 => 0x2aa, 26 => 0x2b3, 28 => 0x1eb, 29 => 0x4ae, 315 => 0x0 }, + 'fileindex' => { 7 => 0x143, 9 => 0x2d0, 11 => 0x172, 13 => 0x22c, 14 => 0x133, 15 => 0x13f, 16 => 0x1d3, 17 => 0x19b, 18 => 0x1e4, 19 => 0xd0, 20 => 0x1bb, 21 => 0x28c, 22 => 0x1db, 23 => 0x1d9, 24 => [0x270,0x274], 25 => 0x2aa, 26 => 0x2b3, 28 => 0x1eb, 29 => 0x4ae, 317 => 0x0 }, 'fileindex2' => { 21 => 0x290 }, 'filemodifydate' => { 119 => 'FileModifyDate' }, 'filename' => { 119 => 'FileName' }, - 'filenameasdelivered' => { 301 => 'FileNameAsDelivered' }, - 'filenumber' => { 57 => 0x1, 63 => 0x8, 96 => 0x1817, 113 => 'Canon-FileNumber', 206 => 0x4, 377 => 0x10 }, + 'filenameasdelivered' => { 303 => 'FileNameAsDelivered' }, + 'filenumber' => { 57 => 0x1, 63 => 0x8, 96 => 0x1817, 113 => 'Canon-FileNumber', 206 => 0x4, 379 => 0x10 }, 'filenumbermemory' => { 180 => 0x1a }, - 'filenumbersequence' => { 274 => '12.2', 279 => '3.1', 280 => '4.1', 281 => '4.1', 283 => '11.1', 284 => '4.3', 289 => '5.2' }, + 'filenumbersequence' => { 276 => '12.2', 281 => '3.1', 282 => '4.1', 283 => '4.1', 285 => '11.1', 286 => '4.3', 291 => '5.2' }, 'filepermissions' => { 119 => 'FilePermissions' }, - 'filesource' => { 118 => 0xa300, 126 => 0x8000, 477 => 'FileSource' }, + 'filesource' => { 118 => 0xa300, 126 => 0x8000, 479 => 'FileSource' }, 'fileuserid' => { 119 => 'FileUserID' }, 'fileversion' => { 131 => 0x16 }, 'fillflashautoreduction' => { 81 => 0xe, 82 => 0xe, 89 => 0xa }, - 'filllight' => { 471 => 'FillLight', 473 => 'FillLight' }, + 'filllight' => { 473 => 'FillLight', 475 => 'FillLight' }, 'fillorder' => { 118 => 0x10a }, - 'filmgraineffect' => { 291 => 0x538 }, - 'filmmode' => { 126 => 0x1401, 311 => 0x412, 314 => 0x42 }, - 'filmtype' => { 232 => 0x2 }, - 'filtereffect' => { 57 => 0xe, 226 => 0x37, 227 => 0x3f, 228 => 0x47, 314 => 0xa1 }, + 'filmgraineffect' => { 293 => 0x538 }, + 'filmmode' => { 126 => 0x1401, 313 => 0x412, 316 => 0x42 }, + 'filmtype' => { 233 => 0x2 }, + 'filtereffect' => { 57 => 0xe, 227 => 0x37, 228 => 0x3f, 229 => 0x47, 316 => 0xa1 }, 'filtereffectauto' => { 70 => 0xa0 }, 'filtereffectfaithful' => { 69 => 0x70, 70 => 0x70 }, 'filtereffectlandscape' => { 69 => 0x40, 70 => 0x40 }, 'filtereffectmonochrome' => { 19 => 0xff, 69 => 0x88, 70 => 0x88 }, 'filtereffectneutral' => { 69 => 0x58, 70 => 0x58 }, @@ -2684,247 +2686,247 @@ my %tagLookup = ( 'filtereffectstandard' => { 69 => 0x10, 70 => 0x10 }, 'filtereffectuserdef1' => { 69 => 0xa0, 70 => 0xb8 }, 'filtereffectuserdef2' => { 69 => 0xb8, 70 => 0xd0 }, 'filtereffectuserdef3' => { 69 => 0xd0, 70 => 0xe8 }, 'finderdisplayduringexposure' => { 82 => 0x1 }, - 'finesharpness' => { 349 => 0x70 }, - 'finetuneoptcenterweighted' => { 274 => '7.2', 275 => '9.1', 277 => '9.1', 278 => '9.1', 282 => '8.1', 287 => '9.1', 288 => '9.1', 289 => '9.1' }, - 'finetuneopthighlightweighted' => { 277 => '46.1', 278 => '46.1', 287 => '46.1', 288 => '46.1' }, - 'finetuneoptmatrixmetering' => { 274 => '8.1', 275 => '8.2', 277 => '8.2', 278 => '8.2', 282 => '7.2', 283 => '6.1', 287 => '8.2', 288 => '8.2', 289 => '8.2' }, - 'finetuneoptspotmetering' => { 274 => '8.2', 275 => '9.2', 277 => '9.2', 278 => '9.2', 282 => '8.2', 283 => '6.2', 287 => '9.2', 288 => '9.2', 289 => '9.2' }, + 'finesharpness' => { 351 => 0x70 }, + 'finetuneoptcenterweighted' => { 276 => '7.2', 277 => '9.1', 279 => '9.1', 280 => '9.1', 284 => '8.1', 289 => '9.1', 290 => '9.1', 291 => '9.1' }, + 'finetuneopthighlightweighted' => { 279 => '46.1', 280 => '46.1', 289 => '46.1', 290 => '46.1' }, + 'finetuneoptmatrixmetering' => { 276 => '8.1', 277 => '8.2', 279 => '8.2', 280 => '8.2', 284 => '7.2', 285 => '6.1', 289 => '8.2', 290 => '8.2', 291 => '8.2' }, + 'finetuneoptspotmetering' => { 276 => '8.2', 277 => '9.2', 279 => '9.2', 280 => '9.2', 284 => '8.2', 285 => '6.2', 289 => '9.2', 290 => '9.2', 291 => '9.2' }, 'finishexposure' => { 137 => 0xdbd }, 'finishfiletype' => { 137 => 0xdb8 }, 'finishlook' => { 137 => 0xdbc }, 'finishnoise' => { 137 => 0xdba }, 'finishresolution' => { 137 => 0xdb9 }, 'finishsharpening' => { 137 => 0xdbb }, - 'firmware' => { 296 => 0x405, 391 => [0x8c,0x17,0x3b], 468 => 'Firmware' }, - 'firmware2' => { 391 => 0x57 }, - 'firmwaredate' => { 111 => 0x15, 112 => 0x2001, 375 => 0x4, 377 => 0x30 }, + 'firmware' => { 298 => 0x405, 393 => [0x8c,0x17,0x3b], 470 => 'Firmware' }, + 'firmware2' => { 393 => 0x57 }, + 'firmwaredate' => { 111 => 0x15, 112 => 0x2001, 377 => 0x4, 379 => 0x30 }, 'firmwareid' => { 187 => 0x0 }, - 'firmwarename' => { 388 => 0xa001 }, - 'firmwarerevision' => { 19 => 0xa4, 63 => 0x1e, 379 => 0x0 }, - 'firmwarerevision2' => { 379 => 0xc }, - 'firmwareversion' => { 7 => 0x10b, 11 => 0x136, 14 => 0xff, 15 => 0x107, 137 => [0x415,0xce5], 153 => 0x57, 155 => 'FirmwareVersion', 312 => 0x320, 314 => 0x2, 316 => 0x3109, 349 => 0x230, 374 => ['CNFV','FIRM'], 376 => 0x18, 377 => 0x2a, 381 => 0x2 }, - 'firmwareversions' => { 358 => 0x301 }, - 'firstphotodate' => { 459 => 'FirstPhotoDate' }, - 'firstpublicationdate' => { 301 => 'FirstPublicationDate' }, - 'fixtureidentifier' => { 130 => 0x16, 466 => 'FixtureIdentifier' }, - 'flash' => { 113 => 'XMP-Flash', 118 => 0x9209, 151 => 0x22, 181 => 0x1f, 182 => 0x15, 377 => 0x5a, 477 => 'Flash' }, - 'flashaction' => { 401 => 0x3e, 402 => 0x3e, 414 => 0x2017, 419 => [0x2a,0x2c,0x30] }, - 'flashaction2' => { 401 => 0x4c, 402 => 0x4c, 419 => 0x77 }, - 'flashactionexternal' => { 419 => [0x78,0x7c] }, + 'firmwarename' => { 390 => 0xa001 }, + 'firmwarerevision' => { 19 => 0xa4, 63 => 0x1e, 381 => 0x0 }, + 'firmwarerevision2' => { 381 => 0xc }, + 'firmwareversion' => { 7 => 0x10b, 11 => 0x136, 14 => 0xff, 15 => 0x107, 137 => [0x415,0xce5], 153 => 0x57, 155 => 'FirmwareVersion', 314 => 0x320, 316 => 0x2, 318 => 0x3109, 351 => 0x230, 376 => ['CNFV','FIRM'], 378 => 0x18, 379 => 0x2a, 383 => 0x2 }, + 'firmwareversions' => { 360 => 0x301 }, + 'firstphotodate' => { 461 => 'FirstPhotoDate' }, + 'firstpublicationdate' => { 303 => 'FirstPublicationDate' }, + 'fixtureidentifier' => { 130 => 0x16, 468 => 'FixtureIdentifier' }, + 'flash' => { 113 => 'XMP-Flash', 118 => 0x9209, 151 => 0x22, 181 => 0x1f, 182 => 0x15, 379 => 0x5a, 479 => 'Flash' }, + 'flashaction' => { 403 => 0x3e, 404 => 0x3e, 416 => 0x2017, 421 => [0x2a,0x2c,0x30] }, + 'flashaction2' => { 403 => 0x4c, 404 => 0x4c, 421 => 0x77 }, + 'flashactionexternal' => { 421 => [0x78,0x7c] }, 'flashactivity' => { 34 => 0x1c }, 'flashbatterylevel' => { 44 => 0x249 }, - 'flashbias' => { 314 => 0x24 }, + 'flashbias' => { 316 => 0x24 }, 'flashbits' => { 34 => 0x1d }, 'flashbuttonfunction' => { 83 => 0x70e }, - 'flashchargelevel' => { 296 => 0x1010 }, + 'flashchargelevel' => { 298 => 0x1010 }, 'flashcolorfilter' => { 209 => 0x10, 210 => 0x10 }, 'flashcommandermode' => { 207 => '9.1', 208 => '9.1', 209 => '9.1', 210 => '9.1' }, - 'flashcompensation' => { 137 => 0x3f3, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 211 => 0xa, 212 => 0x1b, 468 => 'FlashCompensation' }, - 'flashcontrol' => { 401 => 0x23, 402 => 0x1f, 403 => 0x21 }, - 'flashcontrolbuilt-in' => { 283 => '16.1', 284 => '23.1', 286 => '23.1', 287 => '24.1' }, - 'flashcontrolmode' => { 207 => '9.2', 208 => '9.2', 209 => '9.2', 210 => '9.2', 247 => 0xc4a6, 259 => 0x148, 291 => 0x404 }, - 'flashcurtain' => { 314 => 0x48 }, + 'flashcompensation' => { 137 => 0x3f3, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 211 => 0xa, 212 => 0x1b, 470 => 'FlashCompensation' }, + 'flashcontrol' => { 403 => 0x23, 404 => 0x1f, 405 => 0x21 }, + 'flashcontrolbuilt-in' => { 285 => '16.1', 286 => '23.1', 288 => '23.1', 289 => '24.1' }, + 'flashcontrolmode' => { 207 => '9.2', 208 => '9.2', 209 => '9.2', 210 => '9.2', 248 => 0xc4a6, 261 => 0x148, 293 => 0x404 }, + 'flashcurtain' => { 316 => 0x48 }, 'flashdefault' => { 183 => 0x42 }, - 'flashdevice' => { 296 => 0x1005 }, + 'flashdevice' => { 298 => 0x1005 }, 'flashdistance' => { 112 => 0x2034 }, - 'flashenergy' => { 118 => 0xa20b, 477 => 'FlashEnergy' }, + 'flashenergy' => { 118 => 0xa20b, 479 => 'FlashEnergy' }, 'flashexposurebracketvalue' => { 224 => 0x18 }, - 'flashexposurecomp' => { 76 => 0xf, 126 => 0x1011, 158 => 'ExposureComp', 180 => 0x23, 185 => 0x104, 186 => 0x49c1, 224 => 0x12, 291 => 0x401, 296 => 0x1023, 349 => 0x4d, 381 => 0x100b, 391 => [0x3a,0x56], 414 => 0x104 }, - 'flashexposurecomp2' => { 251 => 0x4d2 }, + 'flashexposurecomp' => { 76 => 0xf, 126 => 0x1011, 158 => 'ExposureComp', 180 => 0x23, 185 => 0x104, 186 => 0x49c1, 224 => 0x12, 293 => 0x401, 298 => 0x1023, 351 => 0x4d, 383 => 0x100b, 393 => [0x3a,0x56], 416 => 0x104 }, + 'flashexposurecomp2' => { 252 => 0x4d2 }, 'flashexposurecomp3' => { 209 => 0x1d }, 'flashexposurecomp4' => { 209 => 0x27 }, - 'flashexposurecomparea' => { 275 => '38.4', 277 => '38.4', 278 => '38.4', 287 => '38.4', 288 => '38.4' }, - 'flashexposurecompset' => { 183 => 0x10, 322 => 0xe, 401 => 0x14, 402 => 0x12, 403 => 0x23, 419 => 0x1f }, - 'flashexposurecompset2' => { 419 => [0x26,0x2c] }, + 'flashexposurecomparea' => { 277 => '38.4', 279 => '38.4', 280 => '38.4', 289 => '38.4', 290 => '38.4' }, + 'flashexposurecompset' => { 183 => 0x10, 324 => 0xe, 403 => 0x14, 404 => 0x12, 405 => 0x23, 421 => 0x1f }, + 'flashexposurecompset2' => { 421 => [0x26,0x2c] }, 'flashexposureindicator' => { 183 => 0x54 }, 'flashexposureindicatorlast' => { 183 => 0x56 }, 'flashexposureindicatornext' => { 183 => 0x55 }, 'flashexposurelock' => { 57 => 0x19 }, - 'flashfired' => { 139 => 0x5d, 158 => 'Fired', 180 => 0x14, 250 => '590.3', 477 => [\'Flash','FlashFired'] }, + 'flashfired' => { 139 => 0x5d, 158 => 'Fired', 180 => 0x14, 251 => '590.3', 479 => [\'Flash','FlashFired'] }, 'flashfiring' => { 83 => 0x306, 84 => 0x6, 85 => 0x7, 88 => 0x7 }, - 'flashfirmwareversion' => { 292 => 0x1002 }, + 'flashfirmwareversion' => { 294 => 0x1002 }, 'flashfocallength' => { 207 => 0xb, 208 => 0xc, 209 => 0xc, 210 => 0xc, 211 => 0xc }, - 'flashfunction' => { 186 => 0x31, 477 => [\'Flash','FlashFunction'] }, - 'flashgndistance' => { 207 => 0xe, 208 => 0xf, 209 => 0xf, 210 => 0xf, 211 => 0xf, 247 => 0xc4ac, 259 => 0x14e }, + 'flashfunction' => { 186 => 0x31, 479 => [\'Flash','FlashFunction'] }, + 'flashgndistance' => { 207 => 0xe, 208 => 0xf, 209 => 0xf, 210 => 0xf, 211 => 0xf, 248 => 0xc4ac, 261 => 0x14e }, 'flashgroupacompensation' => { 207 => 0x11, 208 => 0x12, 209 => 0x13, 210 => 0x28, 211 => 0x28 }, 'flashgroupacontrolmode' => { 207 => 0xf, 208 => '16.1', 209 => '17.1', 210 => '17.1', 211 => '17.1' }, 'flashgroupaoutput' => { 207 => 0x11, 208 => 0x12, 209 => 0x13, 210 => 0x28, 211 => 0x28 }, 'flashgroupbcompensation' => { 207 => 0x12, 208 => 0x13, 209 => 0x14, 210 => 0x29, 211 => 0x29 }, 'flashgroupbcontrolmode' => { 207 => 0x10, 208 => '17.1', 209 => '18.1', 210 => '18.1', 211 => '18.1' }, 'flashgroupboutput' => { 207 => 0x12, 208 => 0x13, 209 => 0x14, 210 => 0x29, 211 => 0x29 }, 'flashgroupccompensation' => { 208 => 0x14, 209 => 0x15, 210 => 0x2a, 211 => 0x2a }, 'flashgroupccontrolmode' => { 208 => '17.2', 209 => '18.2', 210 => '18.2', 211 => '18.2' }, 'flashgroupcoutput' => { 208 => 0x14, 209 => 0x15, 210 => 0x2a, 211 => 0x2a }, 'flashguidenumber' => { 76 => 0xd, 93 => 0x0, 158 => 'GuideNumber' }, - 'flashintensity' => { 111 => [0x19,0x5], 291 => 0x405 }, - 'flashlevel' => { 276 => 0x9, 414 => 0xb048 }, + 'flashintensity' => { 111 => [0x19,0x5], 293 => 0x405 }, + 'flashlevel' => { 278 => 0x9, 416 => 0xb048 }, 'flashmake' => { 158 => 'Make' }, 'flashmanufacturer' => { 177 => 'FlashManufacturer' }, - 'flashmastercompensation' => { 247 => 0xc4c0, 259 => 0x162 }, - 'flashmastercontrolmode' => { 247 => 0xc4be, 259 => 0x160 }, - 'flashmasteroutput' => { 247 => 0xc4c4, 259 => 0x166 }, + 'flashmastercompensation' => { 248 => 0xc4c0, 261 => 0x162 }, + 'flashmastercontrolmode' => { 248 => 0xc4be, 261 => 0x160 }, + 'flashmasteroutput' => { 248 => 0xc4c4, 261 => 0x166 }, 'flashmetering' => { 180 => 0x3f, 183 => 0x1c }, 'flashmeteringmode' => { 7 => 0x15, 13 => 0x15, 14 => 0x15, 15 => 0x15, 16 => 0x15, 17 => 0x15, 18 => 0x15, 20 => 0x15, 22 => 0x15, 28 => 0x15 }, - 'flashmeteringsegments' => { 349 => 0x20a }, - 'flashmode' => { 111 => 0x4, 137 => 0x3f2, 139 => 0x5c, 150 => 0x27, 158 => 'Mode', 180 => 0x2, 181 => 0x20, 182 => 0x16, 183 => 0xf, 224 => 0x87, 291 => 0x400, 296 => 0x1004, 349 => 0xc, 356 => 0x4, 380 => 0x20, 381 => 0x100a, 390 => 0x225, 401 => 0x13, 402 => 0x7f, 403 => 0x20, 419 => 0x10, 422 => 0x1138, 423 => 0x1138, 424 => 0x1114, 425 => 0x1190, 426 => 0x116c, 427 => 0x1024, 428 => 0x21c, 429 => 0x21c, 430 => 0x211, 477 => [\'Flash','FlashMode'] }, - 'flashmodel' => { 158 => 'Model', 177 => 'FlashModel', 292 => 0x1001 }, - 'flashoptions' => { 330 => 0x2 }, - 'flashoptions2' => { 330 => 0x10 }, - 'flashoutput' => { 44 => 0x248, 76 => 0x21, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 247 => 0xc4b0, 259 => 0x152 }, - 'flashpixversion' => { 118 => 0xa000, 477 => 'FlashpixVersion' }, - 'flashredeyemode' => { 477 => [\'Flash','FlashRedEyeMode'] }, - 'flashremotecontrol' => { 247 => 0xc4ba, 259 => 0x15c, 291 => 0x403 }, - 'flashreturn' => { 477 => [\'Flash','FlashReturn'] }, - 'flashserialnumber' => { 158 => 'SerialNumber', 292 => 0x1003 }, + 'flashmeteringsegments' => { 351 => 0x20a }, + 'flashmode' => { 111 => 0x4, 137 => 0x3f2, 139 => 0x5c, 150 => 0x27, 158 => 'Mode', 180 => 0x2, 181 => 0x20, 182 => 0x16, 183 => 0xf, 224 => 0x87, 293 => 0x400, 298 => 0x1004, 351 => 0xc, 358 => 0x4, 382 => 0x20, 383 => 0x100a, 392 => 0x225, 403 => 0x13, 404 => 0x7f, 405 => 0x20, 421 => 0x10, 424 => 0x1138, 425 => 0x1138, 426 => 0x1114, 427 => 0x1190, 428 => 0x116c, 429 => 0x1024, 430 => 0x21c, 431 => 0x21c, 432 => 0x211, 479 => [\'Flash','FlashMode'] }, + 'flashmodel' => { 158 => 'Model', 177 => 'FlashModel', 294 => 0x1001 }, + 'flashoptions' => { 332 => 0x2 }, + 'flashoptions2' => { 332 => 0x10 }, + 'flashoutput' => { 44 => 0x248, 76 => 0x21, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 248 => 0xc4b0, 261 => 0x152 }, + 'flashpixversion' => { 118 => 0xa000, 479 => 'FlashpixVersion' }, + 'flashredeyemode' => { 479 => [\'Flash','FlashRedEyeMode'] }, + 'flashremotecontrol' => { 248 => 0xc4ba, 261 => 0x15c, 293 => 0x403 }, + 'flashreturn' => { 479 => [\'Flash','FlashReturn'] }, + 'flashserialnumber' => { 158 => 'SerialNumber', 294 => 0x1003 }, 'flashsetting' => { 224 => 0x8 }, - 'flashshutterspeed' => { 274 => '20.2', 275 => '23.2', 277 => '23.2', 278 => '23.2', 283 => '15.2', 284 => '22.2', 285 => '7.2', 286 => '22.2', 287 => '23.2', 288 => '23.2', 289 => '23.1' }, + 'flashshutterspeed' => { 276 => '20.2', 277 => '23.2', 279 => '23.2', 280 => '23.2', 285 => '15.2', 286 => '22.2', 287 => '7.2', 288 => '22.2', 289 => '23.2', 290 => '23.2', 291 => '23.1' }, 'flashsource' => { 207 => 0x4, 208 => 0x4, 209 => 0x4, 210 => 0x4, 211 => 0x4, 212 => 0x4 }, - 'flashstatus' => { 337 => 0x0, 419 => [0x82,0x86], 432 => 0x31, 433 => 0x39, 434 => 0x39 }, - 'flashstatusbuilt-in' => { 403 => [0x87,0x287] }, - 'flashstatusexternal' => { 403 => [0x88,0x288] }, - 'flashsyncspeed' => { 274 => '20.1', 275 => '23.1', 277 => '23.1', 278 => '23.1', 283 => '15.1', 284 => '22.1', 286 => '22.1', 287 => '23.1', 288 => '23.1' }, + 'flashstatus' => { 339 => 0x0, 421 => [0x82,0x86], 434 => 0x31, 435 => 0x39, 436 => 0x39 }, + 'flashstatusbuilt-in' => { 405 => [0x87,0x287] }, + 'flashstatusexternal' => { 405 => [0x88,0x288] }, + 'flashsyncspeed' => { 276 => '20.1', 277 => '23.1', 279 => '23.1', 280 => '23.1', 285 => '15.1', 286 => '22.1', 288 => '22.1', 289 => '23.1', 290 => '23.1' }, 'flashsyncspeedav' => { 81 => 0x3, 83 => 0x10f, 84 => 0x2, 85 => 0x3, 86 => 0x2, 87 => 0x2, 88 => 0x3, 89 => 0x6 }, 'flashthreshold' => { 93 => 0x1 }, - 'flashtype' => { 158 => 'Type', 183 => 0x59, 224 => 0x9, 292 => 0x1000 }, - 'flashwarning' => { 284 => '30.1', 285 => '7.1', 289 => '31.1', 314 => 0x62 }, - 'flashwirelessoption' => { 247 => 0xc4c6, 259 => 0x15a }, - 'flexiblespotposition' => { 414 => 0x201d }, - 'flickerreduce' => { 390 => 0x218 }, - 'flickerreduction' => { 126 => 0x1446, 243 => 0xe84 }, - 'flickerreductionindicator' => { 243 => 0x5e2 }, + 'flashtype' => { 158 => 'Type', 183 => 0x59, 224 => 0x9, 294 => 0x1000 }, + 'flashwarning' => { 286 => '30.1', 287 => '7.1', 291 => '31.1', 316 => 0x62 }, + 'flashwirelessoption' => { 248 => 0xc4c6, 261 => 0x15a }, + 'flexiblespotposition' => { 416 => 0x201d }, + 'flickerreduce' => { 392 => 0x218 }, + 'flickerreduction' => { 126 => 0x1446, 244 => 0xe84 }, + 'flickerreductionindicator' => { 244 => 0x5e2 }, 'flightpitchdegree' => { 115 => 'FlightPitchDegree' }, 'flightrolldegree' => { 115 => 'FlightRollDegree' }, 'flightxspeed' => { 115 => 'FlightXSpeed' }, 'flightyawdegree' => { 115 => 'FlightYawDegree' }, 'flightyspeed' => { 115 => 'FlightYSpeed' }, 'flightzspeed' => { 115 => 'FlightZSpeed' }, - 'fliphorizontal' => { 267 => 0x76a43206 }, - 'fnumber' => { 7 => 0x3, 9 => 0x3, 11 => 0x3, 13 => 0x3, 14 => 0x3, 15 => 0x3, 16 => 0x3, 17 => 0x3, 18 => 0x3, 19 => 0x3, 20 => 0x3, 21 => 0x3, 22 => 0x3, 23 => 0x3, 24 => 0x3, 25 => 0x3, 26 => 0x3, 27 => 0x3, 28 => 0x3, 29 => 0x3, 30 => 0x5, 31 => 0x6, 76 => 0x15, 118 => 0x829d, 136 => 0xfd04, 139 => 0x1e, 141 => 0xfa23, 143 => 0xf103, 146 => 0x13, 148 => 0x3c, 150 => 0x1c, 151 => 0x18, 153 => 0xc, 162 => 'FNumber', 180 => 0xa, 181 => 0x36, 182 => 0x47, 183 => 0x9, 186 => 0x49c7, 222 => 0x38, 313 => 0x35a, 349 => 0x13, 388 => 0xa019, 391 => [0x31,0x49], 401 => 0x1, 402 => 0x1, 419 => [0x20,0x22,0x26], 477 => 'FNumber' }, - 'focaldistance' => { 457 => 'FocalDistance' }, - 'focallength' => { 7 => 0x1d, 8 => 0xa, 9 => 0x23, 10 => 0x9, 11 => 0x1d, 12 => 0x9, 13 => 0x1e, 14 => 0x1d, 15 => 0x1d, 16 => 0x1e, 17 => 0x1e, 18 => 0x1e, 19 => 0x28, 20 => 0x1e, 21 => 0x23, 22 => 0x1e, 23 => 0x1e, 24 => 0x23, 25 => 0x23, 26 => 0x23, 27 => 0x23, 28 => 0x1e, 29 => 0x23, 59 => 0x1, 112 => 0x1d, 118 => 0x920a, 146 => 0x1d, 162 => 'FocalLength', 180 => 0x12, 217 => 0xa, 218 => 0xb, 222 => [0xc,0x3c], 308 => 0x1, 349 => 0x1d, 358 => 0x403, 381 => 0x1500, 400 => 0xe, 426 => 0x1278, 427 => 0x1134, 428 => 0x32c, 429 => 0x32c, 430 => 0x30a, 477 => 'FocalLength' }, - 'focallength2' => { 419 => [0x23,0x25,0x29] }, - 'focallengthin35mmformat' => { 118 => 0xa405, 388 => 0xa01a, 477 => 'FocalLengthIn35mmFilm' }, - 'focallengthtelezoom' => { 400 => 0x10 }, - 'focalplaneafpointarea' => { 431 => 0x2 }, - 'focalplaneafpointlocation1' => { 431 => 0x6 }, - 'focalplaneafpointlocation10' => { 431 => 0x2a }, - 'focalplaneafpointlocation11' => { 431 => 0x2e }, - 'focalplaneafpointlocation12' => { 431 => 0x32 }, - 'focalplaneafpointlocation13' => { 431 => 0x36 }, - 'focalplaneafpointlocation14' => { 431 => 0x3a }, - 'focalplaneafpointlocation15' => { 431 => 0x3e }, - 'focalplaneafpointlocation2' => { 431 => 0xa }, - 'focalplaneafpointlocation3' => { 431 => 0xe }, - 'focalplaneafpointlocation4' => { 431 => 0x12 }, - 'focalplaneafpointlocation5' => { 431 => 0x16 }, - 'focalplaneafpointlocation6' => { 431 => 0x1a }, - 'focalplaneafpointlocation7' => { 431 => 0x1e }, - 'focalplaneafpointlocation8' => { 431 => 0x22 }, - 'focalplaneafpointlocation9' => { 431 => 0x26 }, - 'focalplaneafpointsused' => { 431 => 0x1 }, - 'focalplanediagonal' => { 292 => 0x103, 296 => 0x205 }, - 'focalplaneresolutionunit' => { 118 => 0xa210, 477 => 'FocalPlaneResolutionUnit' }, - 'focalplanexresolution' => { 118 => 0xa20e, 477 => 'FocalPlaneXResolution' }, + 'fliphorizontal' => { 269 => 0x76a43206 }, + 'fnumber' => { 7 => 0x3, 9 => 0x3, 11 => 0x3, 13 => 0x3, 14 => 0x3, 15 => 0x3, 16 => 0x3, 17 => 0x3, 18 => 0x3, 19 => 0x3, 20 => 0x3, 21 => 0x3, 22 => 0x3, 23 => 0x3, 24 => 0x3, 25 => 0x3, 26 => 0x3, 27 => 0x3, 28 => 0x3, 29 => 0x3, 30 => 0x5, 31 => 0x6, 76 => 0x15, 118 => 0x829d, 136 => 0xfd04, 139 => 0x1e, 141 => 0xfa23, 143 => 0xf103, 146 => 0x13, 148 => 0x3c, 150 => 0x1c, 151 => 0x18, 153 => 0xc, 162 => 'FNumber', 180 => 0xa, 181 => 0x36, 182 => 0x47, 183 => 0x9, 186 => 0x49c7, 222 => 0x38, 315 => 0x35a, 351 => 0x13, 390 => 0xa019, 393 => [0x31,0x49], 403 => 0x1, 404 => 0x1, 421 => [0x20,0x22,0x26], 479 => 'FNumber' }, + 'focaldistance' => { 459 => 'FocalDistance' }, + 'focallength' => { 7 => 0x1d, 8 => 0xa, 9 => 0x23, 10 => 0x9, 11 => 0x1d, 12 => 0x9, 13 => 0x1e, 14 => 0x1d, 15 => 0x1d, 16 => 0x1e, 17 => 0x1e, 18 => 0x1e, 19 => 0x28, 20 => 0x1e, 21 => 0x23, 22 => 0x1e, 23 => 0x1e, 24 => 0x23, 25 => 0x23, 26 => 0x23, 27 => 0x23, 28 => 0x1e, 29 => 0x23, 59 => 0x1, 112 => 0x1d, 118 => 0x920a, 146 => 0x1d, 162 => 'FocalLength', 180 => 0x12, 217 => 0xa, 218 => 0xb, 222 => [0xc,0x3c], 310 => 0x1, 351 => 0x1d, 360 => 0x403, 383 => 0x1500, 402 => 0xe, 428 => 0x1278, 429 => 0x1134, 430 => 0x32c, 431 => 0x32c, 432 => 0x30a, 479 => 'FocalLength' }, + 'focallength2' => { 421 => [0x23,0x25,0x29] }, + 'focallengthin35mmformat' => { 118 => 0xa405, 390 => 0xa01a, 479 => 'FocalLengthIn35mmFilm' }, + 'focallengthtelezoom' => { 402 => 0x10 }, + 'focalplaneafpointarea' => { 433 => 0x2 }, + 'focalplaneafpointlocation1' => { 433 => 0x6 }, + 'focalplaneafpointlocation10' => { 433 => 0x2a }, + 'focalplaneafpointlocation11' => { 433 => 0x2e }, + 'focalplaneafpointlocation12' => { 433 => 0x32 }, + 'focalplaneafpointlocation13' => { 433 => 0x36 }, + 'focalplaneafpointlocation14' => { 433 => 0x3a }, + 'focalplaneafpointlocation15' => { 433 => 0x3e }, + 'focalplaneafpointlocation2' => { 433 => 0xa }, + 'focalplaneafpointlocation3' => { 433 => 0xe }, + 'focalplaneafpointlocation4' => { 433 => 0x12 }, + 'focalplaneafpointlocation5' => { 433 => 0x16 }, + 'focalplaneafpointlocation6' => { 433 => 0x1a }, + 'focalplaneafpointlocation7' => { 433 => 0x1e }, + 'focalplaneafpointlocation8' => { 433 => 0x22 }, + 'focalplaneafpointlocation9' => { 433 => 0x26 }, + 'focalplaneafpointsused' => { 433 => 0x1 }, + 'focalplanediagonal' => { 294 => 0x103, 298 => 0x205 }, + 'focalplaneresolutionunit' => { 118 => 0xa210, 479 => 'FocalPlaneResolutionUnit' }, + 'focalplanexresolution' => { 118 => 0xa20e, 479 => 'FocalPlaneXResolution' }, 'focalplanexsize' => { 59 => 0x2 }, 'focalplanexunknown' => { 59 => 0x2 }, - 'focalplaneyresolution' => { 118 => 0xa20f, 477 => 'FocalPlaneYResolution' }, + 'focalplaneyresolution' => { 118 => 0xa20f, 479 => 'FocalPlaneYResolution' }, 'focalplaneysize' => { 59 => 0x3 }, 'focalplaneyunknown' => { 59 => 0x3 }, - 'focalpointx' => { 457 => 'FocalPointX' }, - 'focalpointy' => { 457 => 'FocalPointY' }, + 'focalpointx' => { 459 => 'FocalPointX' }, + 'focalpointy' => { 459 => 'FocalPointY' }, 'focaltype' => { 10 => 0x2d, 59 => 0x0 }, 'focalunits' => { 34 => 0x19 }, - 'focus' => { 256 => 0x8 }, + 'focus' => { 258 => 0x8 }, 'focusarea' => { 180 => 0x31 }, - 'focusareaselection' => { 285 => '15.2' }, - 'focusbracket' => { 314 => 0xbd }, - 'focusbracketstepsize' => { 291 => 0x308 }, + 'focusareaselection' => { 287 => '15.2' }, + 'focusbracket' => { 316 => 0xbd }, + 'focusbracketstepsize' => { 293 => 0x308 }, 'focuscontinuous' => { 34 => 0x20 }, 'focusdisplayaiservoandmf' => { 83 => 0x515 }, - 'focusdistance' => { 162 => 'FocusDistance', 180 => 0x13, 186 => 0x49bb, 217 => 0x9, 218 => 0xa, 222 => [0xb,0x4f], 294 => 0x305, 308 => 0x0, 312 => 0x304, 313 => 0x304 }, + 'focusdistance' => { 162 => 'FocusDistance', 180 => 0x13, 186 => 0x49bb, 217 => 0x9, 218 => 0xa, 222 => [0xb,0x4f], 296 => 0x305, 310 => 0x0, 314 => 0x304, 315 => 0x304 }, 'focusdistancelower' => { 7 => 0x45, 9 => 0x8e, 11 => 0x45, 13 => 0x56, 14 => 0x45, 15 => 0x45, 16 => 0x52, 17 => 0x52, 18 => 0x56, 20 => 0x52, 21 => 0x8e, 22 => 0x59, 23 => 0x57, 24 => 0x8e, 25 => 0x94, 26 => 0x95, 27 => 0xa7, 28 => 0x56, 29 => 0xa7, 57 => 0x15, 76 => 0x14 }, 'focusdistanceupper' => { 7 => 0x43, 9 => 0x8c, 11 => 0x43, 13 => 0x54, 14 => 0x43, 15 => 0x43, 16 => 0x50, 17 => 0x50, 18 => 0x54, 20 => 0x50, 21 => 0x8c, 22 => 0x57, 23 => 0x55, 24 => 0x8c, 25 => 0x92, 26 => 0x93, 27 => 0xa5, 28 => 0x54, 29 => 0xa5, 57 => 0x14, 76 => 0x13 }, 'focusholdbutton' => { 183 => 0x44 }, - 'focusinfoversion' => { 294 => 0x0 }, + 'focusinfoversion' => { 296 => 0x0 }, 'focusingscreen' => { 82 => 0x0, 83 => 0x80b, 88 => 0x0 }, - 'focuslocation' => { 414 => 0x2027 }, + 'focuslocation' => { 416 => 0x2027 }, 'focuslocked' => { 179 => 0x14 }, - 'focusmode' => { 34 => 0x7, 111 => 0x3, 112 => [0x3003,0xd], 126 => 0x1021, 137 => 0x3f5, 139 => 0x38, 155 => 'FocusMode', 180 => 0x30, 182 => 0xe, 183 => 0xc, 224 => 0x7, 291 => 0x301, 296 => 0x100b, 314 => 0x7, 349 => 0xd, 356 => 0x3, 381 => 0x1006, 394 => [0xb,0x5], 400 => [0x15,0x1d], 401 => 0x4d, 402 => 0x4d, 414 => [0xb042,0xb04e,0x201b], 419 => 0x13, 438 => 0x16 }, - 'focusmode2' => { 125 => '0.1', 330 => '3.1', 419 => [0x2c,0x2e,0x32] }, - 'focusmodesetting' => { 276 => '10.1', 398 => 0x14, 399 => 0x15, 401 => 0x10, 402 => 0xf, 403 => 0x6 }, - 'focusmodeswitch' => { 183 => 0x58, 401 => 0x2e }, + 'focusmode' => { 34 => 0x7, 111 => 0x3, 112 => [0x3003,0xd], 126 => 0x1021, 137 => 0x3f5, 139 => 0x38, 155 => 'FocusMode', 180 => 0x30, 182 => 0xe, 183 => 0xc, 224 => 0x7, 293 => 0x301, 298 => 0x100b, 316 => 0x7, 351 => 0xd, 358 => 0x3, 383 => 0x1006, 396 => [0xb,0x5], 402 => [0x15,0x1d], 403 => 0x4d, 404 => 0x4d, 416 => [0xb042,0xb04e,0x201b], 421 => 0x13, 440 => 0x16 }, + 'focusmode2' => { 125 => '0.1', 332 => '3.1', 421 => [0x2c,0x2e,0x32] }, + 'focusmodesetting' => { 278 => '10.1', 400 => 0x14, 401 => 0x15, 403 => 0x10, 404 => 0xf, 405 => 0x6 }, + 'focusmodeswitch' => { 183 => 0x58, 403 => 0x2e }, 'focuspixel' => { 126 => 0x1023 }, - 'focuspointwrap' => { 274 => '2.2', 275 => '2.2', 277 => '2.1', 278 => '2.1', 282 => '1.1', 283 => '2.2', 284 => '1.1', 287 => '2.2', 288 => '2.1', 289 => '2.5' }, - 'focusposition' => { 217 => 0x8, 218 => 0x8, 222 => 0x9, 349 => 0x10, 412 => 0x9bb }, - 'focusposition2' => { 419 => [0x29,0x2b,0x2f], 438 => 0x2d, 441 => 0x20 }, - 'focusprocess' => { 291 => 0x302 }, - 'focusrange' => { 34 => 0x12, 296 => 0x100a }, - 'focusrangeindex' => { 340 => '3.1' }, + 'focuspointwrap' => { 276 => '2.2', 277 => '2.2', 279 => '2.1', 280 => '2.1', 284 => '1.1', 285 => '2.2', 286 => '1.1', 289 => '2.2', 290 => '2.1', 291 => '2.5' }, + 'focusposition' => { 217 => 0x8, 218 => 0x8, 222 => 0x9, 351 => 0x10, 414 => 0x9bb }, + 'focusposition2' => { 421 => [0x29,0x2b,0x2f], 440 => 0x2d, 443 => 0x20 }, + 'focusprocess' => { 293 => 0x302 }, + 'focusrange' => { 34 => 0x12, 298 => 0x100a }, + 'focusrangeindex' => { 342 => '3.1' }, 'focusringrotation' => { 83 => 0x713 }, - 'focussetting' => { 391 => 0x6 }, - 'focusshiftexposurelock' => { 247 => 0xc446, 259 => 0xe8 }, - 'focusshiftinterval' => { 247 => 0xc442, 259 => 0xe4 }, - 'focusshiftnumbershots' => { 247 => 0xc43a, 259 => 0xdc }, - 'focusshiftstepwidth' => { 247 => 0xc43e, 259 => 0xe0 }, - 'focusstatus' => { 400 => 0x19, 401 => 0x53, 402 => 0x53 }, - 'focusstepcount' => { 294 => 0x301, 296 => 0x100e }, - 'focusstepinfinity' => { 294 => 0x303, 296 => 0x103b }, - 'focusstepnear' => { 294 => 0x304, 296 => 0x103c }, - 'focustrackinglockon' => { 274 => ['1.5','4.1'], 275 => '1.4', 282 => '0.4', 283 => '3.1', 284 => '0.4', 287 => '1.4' }, + 'focussetting' => { 393 => 0x6 }, + 'focusshiftexposurelock' => { 248 => 0xc446, 261 => 0xe8 }, + 'focusshiftinterval' => { 248 => 0xc442, 261 => 0xe4 }, + 'focusshiftnumbershots' => { 248 => 0xc43a, 261 => 0xdc }, + 'focusshiftstepwidth' => { 248 => 0xc43e, 261 => 0xe0 }, + 'focusstatus' => { 402 => 0x19, 403 => 0x53, 404 => 0x53 }, + 'focusstepcount' => { 296 => 0x301, 298 => 0x100e }, + 'focusstepinfinity' => { 296 => 0x303, 298 => 0x103b }, + 'focusstepnear' => { 296 => 0x304, 298 => 0x103c }, + 'focustrackinglockon' => { 276 => ['1.5','4.1'], 277 => '1.4', 284 => '0.4', 285 => '3.1', 286 => '0.4', 289 => '1.4' }, 'focuswarning' => { 126 => 0x1301 }, 'foldername' => { 180 => 0x27 }, - 'foldernumber' => { 401 => 0x9a, 403 => [0x402,0x114,0x316] }, - 'fontcomposite' => { 502 => [\'Fonts','FontsComposite'] }, - 'fontface' => { 502 => [\'Fonts','FontsFontFace'] }, - 'fontfamily' => { 502 => [\'Fonts','FontsFontFamily'] }, - 'fontfilename' => { 502 => [\'Fonts','FontsFontFileName'] }, - 'fontname' => { 502 => [\'Fonts','FontsFontName'] }, - 'fonts' => { 502 => 'Fonts' }, - 'fonttype' => { 502 => [\'Fonts','FontsFontType'] }, - 'fontversion' => { 502 => [\'Fonts','FontsVersionString'] }, - 'for' => { 365 => 'For' }, + 'foldernumber' => { 403 => 0x9a, 405 => [0x402,0x114,0x316] }, + 'fontcomposite' => { 504 => [\'Fonts','FontsComposite'] }, + 'fontface' => { 504 => [\'Fonts','FontsFontFace'] }, + 'fontfamily' => { 504 => [\'Fonts','FontsFontFamily'] }, + 'fontfilename' => { 504 => [\'Fonts','FontsFontFileName'] }, + 'fontname' => { 504 => [\'Fonts','FontsFontName'] }, + 'fonts' => { 504 => 'Fonts' }, + 'fonttype' => { 504 => [\'Fonts','FontsFontType'] }, + 'fontversion' => { 504 => [\'Fonts','FontsVersionString'] }, + 'for' => { 367 => 'For' }, 'forcewrite' => { 119 => 'ForceWrite' }, - 'format' => { 374 => "\xa9fmt", 456 => 'Format', 474 => 'format', 495 => 'Format' }, - 'forwardlock' => { 492 => 'forwardlock' }, + 'format' => { 376 => "\xa9fmt", 458 => 'Format', 476 => 'format', 497 => 'Format' }, + 'forwardlock' => { 494 => 'forwardlock' }, 'forwardmatrix1' => { 118 => 0xc714 }, 'forwardmatrix2' => { 118 => 0xc715 }, 'forwardmatrix3' => { 118 => 0xcd34 }, 'fossilspecimen' => { 117 => 'FossilSpecimen' }, 'fossilspecimenmaterialsampleid' => { 117 => [\'FossilSpecimen','FossilSpecimenMaterialSampleID'] }, 'framecount' => { 66 => [0x2,0x4] }, 'frameheight' => { 126 => 0x3822 }, - 'framenum' => { 360 => 0xd7 }, - 'framenumber' => { 126 => 0x8003, 186 => 0x3c, 349 => 0x29 }, + 'framenum' => { 362 => 0xd7 }, + 'framenumber' => { 126 => 0x8003, 186 => 0x3c, 351 => 0x29 }, 'framerate' => { 66 => [0x1,0x6], 118 => 0xc764, 126 => 0x3820 }, - 'framereadouttime' => { 368 => 'camera.framereadouttimeinmicroseconds' }, + 'framereadouttime' => { 370 => 'camera.framereadouttimeinmicroseconds' }, 'framewidth' => { 126 => 0x3821 }, - 'framing' => { 486 => 'framing' }, + 'framing' => { 488 => 'framing' }, 'freebytes' => { 96 => 0x1 }, 'freememorycardimages' => { 181 => [0x37,0x54], 182 => [0x2d,0x4a], 183 => 0x32 }, 'fujiflashmode' => { 126 => 0x1010 }, 'fullhdhighspeedrec' => { 126 => 0x3824 }, - 'fullimagesize' => { 414 => 0xb02b }, - 'fullpanoheightpixels' => { 459 => 'FullPanoHeightPixels', 460 => 'FullPanoHeightPixels' }, - 'fullpanowidthpixels' => { 459 => 'FullPanoWidthPixels', 460 => 'FullPanoWidthPixels' }, - 'fullpresssnap' => { 381 => 0x100d }, + 'fullimagesize' => { 416 => 0xb02b }, + 'fullpanoheightpixels' => { 461 => 'FullPanoHeightPixels', 462 => 'FullPanoHeightPixels' }, + 'fullpanowidthpixels' => { 461 => 'FullPanoWidthPixels', 462 => 'FullPanoWidthPixels' }, + 'fullpresssnap' => { 383 => 0x100d }, 'fullsizeimage' => { 161 => 'data' }, 'fullsizeimagename' => { 161 => '1Name' }, 'fullsizeimagetype' => { 161 => '0Type' }, - 'func1button' => { 277 => '14.1', 278 => '14.1', 288 => '14.1' }, - 'func1buttonplusdials' => { 277 => '42.1', 278 => '42.1', 288 => '42.1' }, - 'func2button' => { 277 => '80.1', 278 => '80.1', 288 => '80.1' }, - 'func2buttonplusdials' => { 277 => '81.1' }, - 'func3button' => { 277 => '83.1' }, - 'funcbutton' => { 274 => ['14.1','15.1'], 275 => '14.1', 283 => '28.1', 284 => '13.1', 287 => '14.1', 289 => '14.1' }, - 'funcbuttonplusdials' => { 274 => ['14.2','15.2'], 275 => '14.2', 283 => '31.1', 287 => '42.1' }, - 'functionbutton' => { 281 => '13.1', 285 => '5.2' }, - 'gainbase' => { 295 => 0x610 }, - 'gaincontrol' => { 118 => 0xa407, 477 => 'GainControl' }, - 'gamma' => { 118 => 0xa500, 137 => 0x8fe, 319 => 0x11c, 478 => 'Gamma' }, + 'func1button' => { 279 => '14.1', 280 => '14.1', 290 => '14.1' }, + 'func1buttonplusdials' => { 279 => '42.1', 280 => '42.1', 290 => '42.1' }, + 'func2button' => { 279 => '80.1', 280 => '80.1', 290 => '80.1' }, + 'func2buttonplusdials' => { 279 => '81.1' }, + 'func3button' => { 279 => '83.1' }, + 'funcbutton' => { 276 => ['14.1','15.1'], 277 => '14.1', 285 => '28.1', 286 => '13.1', 289 => '14.1', 291 => '14.1' }, + 'funcbuttonplusdials' => { 276 => ['14.2','15.2'], 277 => '14.2', 285 => '31.1', 289 => '42.1' }, + 'functionbutton' => { 283 => '13.1', 287 => '5.2' }, + 'gainbase' => { 297 => 0x610 }, + 'gaincontrol' => { 118 => 0xa407, 479 => 'GainControl' }, + 'gamma' => { 118 => 0xa500, 137 => 0x8fe, 321 => 0x11c, 480 => 'Gamma' }, 'gammablackpoint' => { 104 => 0xc }, 'gammacolortone' => { 104 => 0x3 }, 'gammacompensatedvalue' => { 132 => 0x91 }, 'gammacontrast' => { 104 => 0x2 }, 'gammacurveoutputrange' => { 104 => 0xf }, @@ -2936,24 +2938,24 @@ my %tagLookup = ( 'gammasharpnessstrength' => { 104 => 0x8 }, 'gammaunsharpmaskfineness' => { 104 => 0x6 }, 'gammaunsharpmaskstrength' => { 104 => 0x5 }, 'gammaunsharpmaskthreshold' => { 104 => 0x7 }, 'gammawhitepoint' => { 104 => 0xd }, - 'garminsettings' => { 374 => 'pmcc' }, - 'garminsoftware' => { 374 => 'uuid' }, + 'garminsettings' => { 376 => 'pmcc' }, + 'garminsoftware' => { 376 => 'uuid' }, 'gdalmetadata' => { 118 => 0xa480 }, 'gdalnodata' => { 118 => 0xa481 }, 'geimagesize' => { 126 => 0x1304 }, 'gemake' => { 128 => 0x300 }, 'gemodel' => { 128 => 0x207 }, - 'genre' => { 366 => ['gnre',"\xa9gen"], 368 => 'genre', 374 => ['gnre',"\xa9gen"], 483 => 'Genre', 487 => 'genre', 497 => 'genre' }, - 'genrecvid' => { 483 => [\'Genre','GenreCvId'] }, - 'genrecvtermid' => { 483 => [\'Genre','GenreCvTermId'] }, - 'genrecvtermname' => { 483 => [\'Genre','GenreCvTermName'] }, - 'genrecvtermrefinedabout' => { 483 => [\'Genre','GenreCvTermRefinedAbout'] }, - 'genreid' => { 366 => 'geID' }, - 'geography' => { 488 => 'geography' }, + 'genre' => { 368 => ['gnre',"\xa9gen"], 370 => 'genre', 376 => ['gnre',"\xa9gen"], 485 => 'Genre', 489 => 'genre', 499 => 'genre' }, + 'genrecvid' => { 485 => [\'Genre','GenreCvId'] }, + 'genrecvtermid' => { 485 => [\'Genre','GenreCvTermId'] }, + 'genrecvtermname' => { 485 => [\'Genre','GenreCvTermName'] }, + 'genrecvtermrefinedabout' => { 485 => [\'Genre','GenreCvTermRefinedAbout'] }, + 'genreid' => { 368 => 'geID' }, + 'geography' => { 490 => 'geography' }, 'geologicalcontext' => { 117 => 'GeologicalContext' }, 'geologicalcontextbed' => { 117 => [\'GeologicalContext','GeologicalContextBed'] }, 'geologicalcontextformation' => { 117 => [\'GeologicalContext','GeologicalContextFormation'] }, 'geologicalcontextgroup' => { 117 => [\'GeologicalContext','GeologicalContextGroup'] }, 'geologicalcontextid' => { 117 => [\'GeologicalContext','GeologicalContextGeologicalContextID'] }, @@ -2962,264 +2964,264 @@ my %tagLookup = ( 'geotag' => { 119 => 'Geotag' }, 'geotiffasciiparams' => { 118 => 0x87b1 }, 'geotiffdirectory' => { 118 => 0x87af }, 'geotiffdoubleparams' => { 118 => 0x87b0 }, 'geotime' => { 119 => 'Geotime' }, - 'giftftppriority' => { 461 => 'GIFTFtpPriority' }, + 'giftftppriority' => { 463 => 'GIFTFtpPriority' }, 'gimbalpitchdegree' => { 115 => 'GimbalPitchDegree' }, 'gimbalreverse' => { 115 => 'GimbalReverse' }, 'gimbalrolldegree' => { 115 => 'GimbalRollDegree' }, 'gimbalyawdegree' => { 115 => 'GimbalYawDegree' }, - 'globalaltitude' => { 363 => 0x419 }, - 'globalangle' => { 363 => 0x40d }, - 'good' => { 497 => 'good' }, - 'googlehostheader' => { 366 => 'gshh' }, - 'googlepingmessage' => { 366 => 'gspm' }, - 'googlepingurl' => { 366 => 'gspu' }, + 'globalaltitude' => { 365 => 0x419 }, + 'globalangle' => { 365 => 0x40d }, + 'good' => { 499 => 'good' }, + 'googlehostheader' => { 368 => 'gshh' }, + 'googlepingmessage' => { 368 => 'gspm' }, + 'googlepingurl' => { 368 => 'gspu' }, 'googleplusuploadcode' => { 118 => 0x9009 }, - 'googlesourcedata' => { 366 => 'gssd' }, - 'googlestarttime' => { 366 => 'gsst' }, - 'googletrackduration' => { 366 => 'gstd' }, - 'goprotype' => { 374 => 'GoPr' }, - 'gpsaltitude' => { 129 => 0x6, 159 => 'Altitude', 477 => 'GPSAltitude' }, - 'gpsaltituderef' => { 129 => 0x5, 477 => 'GPSAltitudeRef' }, - 'gpsareainformation' => { 129 => 0x1c, 477 => 'GPSAreaInformation' }, - 'gpscoordinates' => { 366 => "\xa9xyz", 368 => 'location.ISO6709', 374 => ['@xyz',"\xa9xyz"] }, + 'googlesourcedata' => { 368 => 'gssd' }, + 'googlestarttime' => { 368 => 'gsst' }, + 'googletrackduration' => { 368 => 'gstd' }, + 'goprotype' => { 376 => 'GoPr' }, + 'gpsaltitude' => { 129 => 0x6, 159 => 'Altitude', 479 => 'GPSAltitude' }, + 'gpsaltituderef' => { 129 => 0x5, 479 => 'GPSAltitudeRef' }, + 'gpsareainformation' => { 129 => 0x1c, 479 => 'GPSAreaInformation' }, + 'gpscoordinates' => { 368 => "\xa9xyz", 370 => 'location.ISO6709', 376 => ['@xyz',"\xa9xyz"] }, 'gpsdatestamp' => { 129 => 0x1d }, - 'gpsdatetime' => { 159 => 'DateTime', 477 => 'GPSTimeStamp' }, - 'gpsdestbearing' => { 129 => 0x18, 159 => 'Bearing', 477 => 'GPSDestBearing' }, - 'gpsdestbearingref' => { 129 => 0x17, 477 => 'GPSDestBearingRef' }, - 'gpsdestdistance' => { 129 => 0x1a, 159 => 'Distance', 477 => 'GPSDestDistance' }, - 'gpsdestdistanceref' => { 129 => 0x19, 477 => 'GPSDestDistanceRef' }, - 'gpsdestlatitude' => { 129 => 0x14, 477 => 'GPSDestLatitude' }, + 'gpsdatetime' => { 159 => 'DateTime', 479 => 'GPSTimeStamp' }, + 'gpsdestbearing' => { 129 => 0x18, 159 => 'Bearing', 479 => 'GPSDestBearing' }, + 'gpsdestbearingref' => { 129 => 0x17, 479 => 'GPSDestBearingRef' }, + 'gpsdestdistance' => { 129 => 0x1a, 159 => 'Distance', 479 => 'GPSDestDistance' }, + 'gpsdestdistanceref' => { 129 => 0x19, 479 => 'GPSDestDistanceRef' }, + 'gpsdestlatitude' => { 129 => 0x14, 479 => 'GPSDestLatitude' }, 'gpsdestlatituderef' => { 129 => 0x13 }, - 'gpsdestlongitude' => { 129 => 0x16, 477 => 'GPSDestLongitude' }, + 'gpsdestlongitude' => { 129 => 0x16, 479 => 'GPSDestLongitude' }, 'gpsdestlongituderef' => { 129 => 0x15 }, - 'gpsdifferential' => { 129 => 0x1e, 159 => 'Differential', 477 => 'GPSDifferential' }, - 'gpsdop' => { 129 => 0xb, 477 => 'GPSDOP' }, - 'gpshpositioningerror' => { 129 => 0x1f, 477 => 'GPSHPositioningError' }, - 'gpsimgdirection' => { 129 => 0x11, 477 => 'GPSImgDirection' }, - 'gpsimgdirectionref' => { 129 => 0x10, 477 => 'GPSImgDirectionRef' }, - 'gpslatitude' => { 115 => 'GpsLatitude', 129 => 0x2, 159 => 'Latitude', 477 => 'GPSLatitude' }, + 'gpsdifferential' => { 129 => 0x1e, 159 => 'Differential', 479 => 'GPSDifferential' }, + 'gpsdop' => { 129 => 0xb, 479 => 'GPSDOP' }, + 'gpshpositioningerror' => { 129 => 0x1f, 479 => 'GPSHPositioningError' }, + 'gpsimgdirection' => { 129 => 0x11, 479 => 'GPSImgDirection' }, + 'gpsimgdirectionref' => { 129 => 0x10, 479 => 'GPSImgDirectionRef' }, + 'gpslatitude' => { 115 => 'GpsLatitude', 129 => 0x2, 159 => 'Latitude', 479 => 'GPSLatitude' }, 'gpslatituderef' => { 129 => 0x1 }, - 'gpslongitude' => { 115 => 'GpsLongitude', 129 => 0x4, 159 => 'Longitude', 477 => 'GPSLongitude' }, + 'gpslongitude' => { 115 => 'GpsLongitude', 129 => 0x4, 159 => 'Longitude', 479 => 'GPSLongitude' }, 'gpslongituderef' => { 129 => 0x3 }, 'gpslongtitude' => { 115 => 'GpsLongtitude' }, - 'gpsmapdatum' => { 129 => 0x12, 159 => 'Datum', 477 => 'GPSMapDatum' }, - 'gpsmeasuremode' => { 129 => 0xa, 159 => 'MeasureMode', 477 => 'GPSMeasureMode' }, + 'gpsmapdatum' => { 129 => 0x12, 159 => 'Datum', 479 => 'GPSMapDatum' }, + 'gpsmeasuremode' => { 129 => 0xa, 159 => 'MeasureMode', 479 => 'GPSMeasureMode' }, 'gpsposition' => { 113 => 'Exif-GPSPosition' }, - 'gpsprocessingmethod' => { 129 => 0x1b, 477 => 'GPSProcessingMethod' }, - 'gpssatellites' => { 129 => 0x8, 159 => 'Satellites', 477 => 'GPSSatellites' }, - 'gpsspeed' => { 129 => 0xd, 159 => 'Speed', 477 => 'GPSSpeed' }, - 'gpsspeedref' => { 129 => 0xc, 477 => 'GPSSpeedRef' }, - 'gpsstatus' => { 129 => 0x9, 477 => 'GPSStatus' }, + 'gpsprocessingmethod' => { 129 => 0x1b, 479 => 'GPSProcessingMethod' }, + 'gpssatellites' => { 129 => 0x8, 159 => 'Satellites', 479 => 'GPSSatellites' }, + 'gpsspeed' => { 129 => 0xd, 159 => 'Speed', 479 => 'GPSSpeed' }, + 'gpsspeedref' => { 129 => 0xc, 479 => 'GPSSpeedRef' }, + 'gpsstatus' => { 129 => 0x9, 479 => 'GPSStatus' }, 'gpsstring' => { 137 => 0x402 }, 'gpstimestamp' => { 129 => 0x7 }, - 'gpstrack' => { 129 => 0xf, 159 => 'Heading', 477 => 'GPSTrack' }, - 'gpstrackref' => { 129 => 0xe, 477 => 'GPSTrackRef' }, - 'gpsversionid' => { 129 => 0x0, 477 => 'GPSVersionID' }, - 'gradation' => { 291 => 0x50f }, - 'gradientbasedcorractive' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'] }, - 'gradientbasedcorramount' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'] }, - 'gradientbasedcorrblacks2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'] }, - 'gradientbasedcorrbrightness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'] }, - 'gradientbasedcorrclarity' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'] }, - 'gradientbasedcorrclarity2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'] }, - 'gradientbasedcorrcontrast' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'] }, - 'gradientbasedcorrcontrast2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'] }, - 'gradientbasedcorrcorrectionname' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'] }, - 'gradientbasedcorrcorrectionsyncid' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'] }, - 'gradientbasedcorrdefringe' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'] }, - 'gradientbasedcorrdehaze' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'] }, - 'gradientbasedcorrections' => { 471 => 'GradientBasedCorrections', 473 => 'GradientBasedCorrections' }, - 'gradientbasedcorrexposure' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'] }, - 'gradientbasedcorrexposure2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'] }, - 'gradientbasedcorrhighlights2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'] }, - 'gradientbasedcorrhue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'] }, - 'gradientbasedcorrluminancenoise' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'] }, - 'gradientbasedcorrmaskalpha' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'] }, - 'gradientbasedcorrmaskangle' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'] }, - 'gradientbasedcorrmaskbottom' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'] }, - 'gradientbasedcorrmaskcentervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'] }, - 'gradientbasedcorrmaskcenterweight' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'] }, - 'gradientbasedcorrmaskdabs' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'] }, - 'gradientbasedcorrmaskfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'] }, - 'gradientbasedcorrmaskflipped' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'] }, - 'gradientbasedcorrmaskflow' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'] }, - 'gradientbasedcorrmaskfullx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'] }, - 'gradientbasedcorrmaskfully' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'] }, - 'gradientbasedcorrmaskinputdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'] }, - 'gradientbasedcorrmaskleft' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'] }, - 'gradientbasedcorrmaskmaskactive' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'] }, - 'gradientbasedcorrmaskmaskblendmode' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, - 'gradientbasedcorrmaskmaskdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'] }, - 'gradientbasedcorrmaskmaskinverted' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'] }, - 'gradientbasedcorrmaskmaskname' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'] }, - 'gradientbasedcorrmaskmasks' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'] }, - 'gradientbasedcorrmaskmasksalpha' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, - 'gradientbasedcorrmaskmasksangle' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'] }, - 'gradientbasedcorrmaskmasksbottom' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'] }, - 'gradientbasedcorrmaskmaskscentervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, - 'gradientbasedcorrmaskmaskscenterweight' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, - 'gradientbasedcorrmaskmasksdabs' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'] }, - 'gradientbasedcorrmaskmasksfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'] }, - 'gradientbasedcorrmaskmasksflipped' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, - 'gradientbasedcorrmaskmasksflow' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'] }, - 'gradientbasedcorrmaskmasksfullx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'] }, - 'gradientbasedcorrmaskmasksfully' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'] }, - 'gradientbasedcorrmaskmasksinputdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, - 'gradientbasedcorrmaskmasksleft' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'] }, - 'gradientbasedcorrmaskmasksmaskactive' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, - 'gradientbasedcorrmaskmasksmaskblendmode' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, - 'gradientbasedcorrmaskmasksmaskdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, - 'gradientbasedcorrmaskmasksmaskinverted' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, - 'gradientbasedcorrmaskmasksmaskname' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, - 'gradientbasedcorrmaskmasksmasksubtype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, - 'gradientbasedcorrmaskmasksmasksyncid' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, - 'gradientbasedcorrmaskmasksmaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, - 'gradientbasedcorrmaskmasksmidpoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, - 'gradientbasedcorrmaskmasksorigin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, - 'gradientbasedcorrmaskmasksperimetervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, - 'gradientbasedcorrmaskmasksradius' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'] }, - 'gradientbasedcorrmaskmasksreferencepoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, - 'gradientbasedcorrmaskmasksright' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'] }, - 'gradientbasedcorrmaskmasksroundness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, - 'gradientbasedcorrmaskmaskssizex' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, - 'gradientbasedcorrmaskmaskssizey' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, - 'gradientbasedcorrmaskmaskstop' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'] }, - 'gradientbasedcorrmaskmasksubtype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'] }, - 'gradientbasedcorrmaskmasksvalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, - 'gradientbasedcorrmaskmasksversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'] }, - 'gradientbasedcorrmaskmaskswhat' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'] }, - 'gradientbasedcorrmaskmaskswholeimagearea' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, - 'gradientbasedcorrmaskmasksx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'] }, - 'gradientbasedcorrmaskmasksy' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'] }, - 'gradientbasedcorrmaskmasksyncid' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, - 'gradientbasedcorrmaskmaskszerox' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, - 'gradientbasedcorrmaskmaskszeroy' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, - 'gradientbasedcorrmaskmaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'] }, - 'gradientbasedcorrmaskmidpoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'] }, - 'gradientbasedcorrmaskorigin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'] }, - 'gradientbasedcorrmaskperimetervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, - 'gradientbasedcorrmaskradius' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'] }, - 'gradientbasedcorrmaskrange' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, - 'gradientbasedcorrmaskrangeareamodels' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, - 'gradientbasedcorrmaskrangeareamodelscolorsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'gradientbasedcorrmaskrangeareamodelscomponents' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'gradientbasedcorrmaskrangecoloramount' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, - 'gradientbasedcorrmaskrangedepthfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, - 'gradientbasedcorrmaskrangedepthmax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, - 'gradientbasedcorrmaskrangedepthmin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, - 'gradientbasedcorrmaskrangeinvert' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, - 'gradientbasedcorrmaskrangelumfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, - 'gradientbasedcorrmaskrangeluminancedepthsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'gradientbasedcorrmaskrangelummax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, - 'gradientbasedcorrmaskrangelummin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, - 'gradientbasedcorrmaskrangelumrange' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, - 'gradientbasedcorrmaskrangesampletype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, - 'gradientbasedcorrmaskrangetype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, - 'gradientbasedcorrmaskrangeversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, - 'gradientbasedcorrmaskreferencepoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'] }, - 'gradientbasedcorrmaskright' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'] }, - 'gradientbasedcorrmaskroundness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'] }, - 'gradientbasedcorrmasks' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'] }, - 'gradientbasedcorrmasksizex' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'] }, - 'gradientbasedcorrmasksizey' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'] }, - 'gradientbasedcorrmasktop' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'] }, - 'gradientbasedcorrmaskvalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'] }, - 'gradientbasedcorrmaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'] }, - 'gradientbasedcorrmaskwhat' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'] }, - 'gradientbasedcorrmaskwholeimagearea' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, - 'gradientbasedcorrmaskx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'] }, - 'gradientbasedcorrmasky' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'] }, - 'gradientbasedcorrmaskzerox' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'] }, - 'gradientbasedcorrmaskzeroy' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'] }, - 'gradientbasedcorrmoire' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'] }, - 'gradientbasedcorrrangemask' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'] }, - 'gradientbasedcorrrangemaskareamodels' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, - 'gradientbasedcorrrangemaskareamodelscolorsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'gradientbasedcorrrangemaskareamodelscomponents' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'gradientbasedcorrrangemaskcoloramount' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, - 'gradientbasedcorrrangemaskdepthfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, - 'gradientbasedcorrrangemaskdepthmax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, - 'gradientbasedcorrrangemaskdepthmin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, - 'gradientbasedcorrrangemaskinvert' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'] }, - 'gradientbasedcorrrangemasklumfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, - 'gradientbasedcorrrangemaskluminancedepthsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'gradientbasedcorrrangemasklummax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, - 'gradientbasedcorrrangemasklummin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, - 'gradientbasedcorrrangemasklumrange' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, - 'gradientbasedcorrrangemasksampletype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, - 'gradientbasedcorrrangemasktype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'] }, - 'gradientbasedcorrrangemaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'] }, - 'gradientbasedcorrsaturation' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'] }, - 'gradientbasedcorrshadows2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'] }, - 'gradientbasedcorrsharpness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'] }, - 'gradientbasedcorrtemperature' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'] }, - 'gradientbasedcorrtexture' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'] }, - 'gradientbasedcorrtint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'] }, - 'gradientbasedcorrtoninghue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'] }, - 'gradientbasedcorrtoningsaturation' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'] }, - 'gradientbasedcorrwhat' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'] }, - 'gradientbasedcorrwhites2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'] }, - 'grainamount' => { 471 => 'GrainAmount', 473 => 'GrainAmount' }, + 'gpstrack' => { 129 => 0xf, 159 => 'Heading', 479 => 'GPSTrack' }, + 'gpstrackref' => { 129 => 0xe, 479 => 'GPSTrackRef' }, + 'gpsversionid' => { 129 => 0x0, 479 => 'GPSVersionID' }, + 'gradation' => { 293 => 0x50f }, + 'gradientbasedcorractive' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'] }, + 'gradientbasedcorramount' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'] }, + 'gradientbasedcorrblacks2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'] }, + 'gradientbasedcorrbrightness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'] }, + 'gradientbasedcorrclarity' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'] }, + 'gradientbasedcorrclarity2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'] }, + 'gradientbasedcorrcontrast' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'] }, + 'gradientbasedcorrcontrast2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'] }, + 'gradientbasedcorrcorrectionname' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'] }, + 'gradientbasedcorrcorrectionsyncid' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'] }, + 'gradientbasedcorrdefringe' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'] }, + 'gradientbasedcorrdehaze' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'] }, + 'gradientbasedcorrections' => { 473 => 'GradientBasedCorrections', 475 => 'GradientBasedCorrections' }, + 'gradientbasedcorrexposure' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'] }, + 'gradientbasedcorrexposure2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'] }, + 'gradientbasedcorrhighlights2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'] }, + 'gradientbasedcorrhue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'] }, + 'gradientbasedcorrluminancenoise' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'] }, + 'gradientbasedcorrmaskalpha' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'] }, + 'gradientbasedcorrmaskangle' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'] }, + 'gradientbasedcorrmaskbottom' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'] }, + 'gradientbasedcorrmaskcentervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'] }, + 'gradientbasedcorrmaskcenterweight' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'] }, + 'gradientbasedcorrmaskdabs' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'] }, + 'gradientbasedcorrmaskfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'] }, + 'gradientbasedcorrmaskflipped' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'] }, + 'gradientbasedcorrmaskflow' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'] }, + 'gradientbasedcorrmaskfullx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'] }, + 'gradientbasedcorrmaskfully' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'] }, + 'gradientbasedcorrmaskinputdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'] }, + 'gradientbasedcorrmaskleft' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'] }, + 'gradientbasedcorrmaskmaskactive' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'] }, + 'gradientbasedcorrmaskmaskblendmode' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, + 'gradientbasedcorrmaskmaskdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'] }, + 'gradientbasedcorrmaskmaskinverted' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'] }, + 'gradientbasedcorrmaskmaskname' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'] }, + 'gradientbasedcorrmaskmasks' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'] }, + 'gradientbasedcorrmaskmasksalpha' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, + 'gradientbasedcorrmaskmasksangle' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'] }, + 'gradientbasedcorrmaskmasksbottom' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'] }, + 'gradientbasedcorrmaskmaskscentervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, + 'gradientbasedcorrmaskmaskscenterweight' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, + 'gradientbasedcorrmaskmasksdabs' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'] }, + 'gradientbasedcorrmaskmasksfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'] }, + 'gradientbasedcorrmaskmasksflipped' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, + 'gradientbasedcorrmaskmasksflow' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'] }, + 'gradientbasedcorrmaskmasksfullx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'] }, + 'gradientbasedcorrmaskmasksfully' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'] }, + 'gradientbasedcorrmaskmasksinputdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, + 'gradientbasedcorrmaskmasksleft' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'] }, + 'gradientbasedcorrmaskmasksmaskactive' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, + 'gradientbasedcorrmaskmasksmaskblendmode' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, + 'gradientbasedcorrmaskmasksmaskdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, + 'gradientbasedcorrmaskmasksmaskinverted' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, + 'gradientbasedcorrmaskmasksmaskname' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, + 'gradientbasedcorrmaskmasksmasksubtype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, + 'gradientbasedcorrmaskmasksmasksyncid' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, + 'gradientbasedcorrmaskmasksmaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, + 'gradientbasedcorrmaskmasksmidpoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, + 'gradientbasedcorrmaskmasksorigin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, + 'gradientbasedcorrmaskmasksperimetervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, + 'gradientbasedcorrmaskmasksradius' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'] }, + 'gradientbasedcorrmaskmasksreferencepoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, + 'gradientbasedcorrmaskmasksright' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'] }, + 'gradientbasedcorrmaskmasksroundness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, + 'gradientbasedcorrmaskmaskssizex' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, + 'gradientbasedcorrmaskmaskssizey' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, + 'gradientbasedcorrmaskmaskstop' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'] }, + 'gradientbasedcorrmaskmasksubtype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'] }, + 'gradientbasedcorrmaskmasksvalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, + 'gradientbasedcorrmaskmasksversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'] }, + 'gradientbasedcorrmaskmaskswhat' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'] }, + 'gradientbasedcorrmaskmaskswholeimagearea' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, + 'gradientbasedcorrmaskmasksx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'] }, + 'gradientbasedcorrmaskmasksy' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'] }, + 'gradientbasedcorrmaskmasksyncid' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, + 'gradientbasedcorrmaskmaskszerox' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, + 'gradientbasedcorrmaskmaskszeroy' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, + 'gradientbasedcorrmaskmaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'] }, + 'gradientbasedcorrmaskmidpoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'] }, + 'gradientbasedcorrmaskorigin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'] }, + 'gradientbasedcorrmaskperimetervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, + 'gradientbasedcorrmaskradius' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'] }, + 'gradientbasedcorrmaskrange' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, + 'gradientbasedcorrmaskrangeareamodels' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, + 'gradientbasedcorrmaskrangeareamodelscolorsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'gradientbasedcorrmaskrangeareamodelscomponents' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'gradientbasedcorrmaskrangecoloramount' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, + 'gradientbasedcorrmaskrangedepthfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, + 'gradientbasedcorrmaskrangedepthmax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, + 'gradientbasedcorrmaskrangedepthmin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, + 'gradientbasedcorrmaskrangeinvert' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, + 'gradientbasedcorrmaskrangelumfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, + 'gradientbasedcorrmaskrangeluminancedepthsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'gradientbasedcorrmaskrangelummax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, + 'gradientbasedcorrmaskrangelummin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, + 'gradientbasedcorrmaskrangelumrange' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, + 'gradientbasedcorrmaskrangesampletype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, + 'gradientbasedcorrmaskrangetype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, + 'gradientbasedcorrmaskrangeversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, + 'gradientbasedcorrmaskreferencepoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'] }, + 'gradientbasedcorrmaskright' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'] }, + 'gradientbasedcorrmaskroundness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'] }, + 'gradientbasedcorrmasks' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'] }, + 'gradientbasedcorrmasksizex' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'] }, + 'gradientbasedcorrmasksizey' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'] }, + 'gradientbasedcorrmasktop' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'] }, + 'gradientbasedcorrmaskvalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'] }, + 'gradientbasedcorrmaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'] }, + 'gradientbasedcorrmaskwhat' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'] }, + 'gradientbasedcorrmaskwholeimagearea' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, + 'gradientbasedcorrmaskx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'] }, + 'gradientbasedcorrmasky' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'] }, + 'gradientbasedcorrmaskzerox' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'] }, + 'gradientbasedcorrmaskzeroy' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'] }, + 'gradientbasedcorrmoire' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'] }, + 'gradientbasedcorrrangemask' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'] }, + 'gradientbasedcorrrangemaskareamodels' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, + 'gradientbasedcorrrangemaskareamodelscolorsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'gradientbasedcorrrangemaskareamodelscomponents' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'gradientbasedcorrrangemaskcoloramount' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, + 'gradientbasedcorrrangemaskdepthfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, + 'gradientbasedcorrrangemaskdepthmax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, + 'gradientbasedcorrrangemaskdepthmin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, + 'gradientbasedcorrrangemaskinvert' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'] }, + 'gradientbasedcorrrangemasklumfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, + 'gradientbasedcorrrangemaskluminancedepthsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'gradientbasedcorrrangemasklummax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, + 'gradientbasedcorrrangemasklummin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, + 'gradientbasedcorrrangemasklumrange' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, + 'gradientbasedcorrrangemasksampletype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, + 'gradientbasedcorrrangemasktype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'] }, + 'gradientbasedcorrrangemaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'] }, + 'gradientbasedcorrsaturation' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'] }, + 'gradientbasedcorrshadows2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'] }, + 'gradientbasedcorrsharpness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'] }, + 'gradientbasedcorrtemperature' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'] }, + 'gradientbasedcorrtexture' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'] }, + 'gradientbasedcorrtint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'] }, + 'gradientbasedcorrtoninghue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'] }, + 'gradientbasedcorrtoningsaturation' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'] }, + 'gradientbasedcorrwhat' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'] }, + 'gradientbasedcorrwhites2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'] }, + 'grainamount' => { 473 => 'GrainAmount', 475 => 'GrainAmount' }, 'graineffect' => { 126 => 0x1047 }, - 'grainfrequency' => { 471 => 'GrainFrequency', 473 => 'GrainFrequency' }, - 'grainseed' => { 471 => 'GrainSeed', 473 => 'GrainSeed' }, - 'grainsize' => { 471 => 'GrainSize', 473 => 'GrainSize' }, - 'graymixeraqua' => { 471 => 'GrayMixerAqua', 473 => 'GrayMixerAqua' }, - 'graymixerblue' => { 471 => 'GrayMixerBlue', 473 => 'GrayMixerBlue' }, - 'graymixergreen' => { 471 => 'GrayMixerGreen', 473 => 'GrayMixerGreen' }, - 'graymixermagenta' => { 471 => 'GrayMixerMagenta', 473 => 'GrayMixerMagenta' }, - 'graymixerorange' => { 471 => 'GrayMixerOrange', 473 => 'GrayMixerOrange' }, - 'graymixerpurple' => { 471 => 'GrayMixerPurple', 473 => 'GrayMixerPurple' }, - 'graymixerred' => { 471 => 'GrayMixerRed', 473 => 'GrayMixerRed' }, - 'graymixeryellow' => { 471 => 'GrayMixerYellow', 473 => 'GrayMixerYellow' }, - 'graypoint' => { 448 => 0x8021 }, + 'grainfrequency' => { 473 => 'GrainFrequency', 475 => 'GrainFrequency' }, + 'grainseed' => { 473 => 'GrainSeed', 475 => 'GrainSeed' }, + 'grainsize' => { 473 => 'GrainSize', 475 => 'GrainSize' }, + 'graymixeraqua' => { 473 => 'GrayMixerAqua', 475 => 'GrayMixerAqua' }, + 'graymixerblue' => { 473 => 'GrayMixerBlue', 475 => 'GrayMixerBlue' }, + 'graymixergreen' => { 473 => 'GrayMixerGreen', 475 => 'GrayMixerGreen' }, + 'graymixermagenta' => { 473 => 'GrayMixerMagenta', 475 => 'GrayMixerMagenta' }, + 'graymixerorange' => { 473 => 'GrayMixerOrange', 475 => 'GrayMixerOrange' }, + 'graymixerpurple' => { 473 => 'GrayMixerPurple', 475 => 'GrayMixerPurple' }, + 'graymixerred' => { 473 => 'GrayMixerRed', 475 => 'GrayMixerRed' }, + 'graymixeryellow' => { 473 => 'GrayMixerYellow', 475 => 'GrayMixerYellow' }, + 'graypoint' => { 450 => 0x8021 }, 'grayresponseunit' => { 118 => 0x122 }, 'greencurvelimits' => { 107 => 0x1c4 }, 'greencurvepoints' => { 106 => 0x53, 107 => 0x19a }, 'greenhsl' => { 102 => 0x20913 }, - 'greenhue' => { 471 => 'GreenHue', 473 => 'GreenHue' }, - 'greensaturation' => { 471 => 'GreenSaturation', 473 => 'GreenSaturation' }, - 'griddisplay' => { 274 => '13.3', 275 => '4.3', 277 => '4.2', 278 => '4.2', 279 => '2.2', 283 => '10.5', 284 => '3.4', 285 => '6.1', 287 => '4.4', 288 => '4.2', 289 => '4.2' }, - 'gripbatteryadload' => { 328 => 0x5 }, - 'gripbatteryadnoload' => { 328 => 0x4 }, - 'gripbatterystate' => { 328 => '1.2' }, - 'group' => { 471 => 'Group', 473 => 'Group' }, - 'groupareaafillumination' => { 275 => '46.4', 278 => '47.4', 287 => '47.4' }, - 'grouping' => { 366 => ['grup',"\xa9grp"], 374 => "\xa9grp" }, - 'guid' => { 366 => 'GUID' }, + 'greenhue' => { 473 => 'GreenHue', 475 => 'GreenHue' }, + 'greensaturation' => { 473 => 'GreenSaturation', 475 => 'GreenSaturation' }, + 'griddisplay' => { 276 => '13.3', 277 => '4.3', 279 => '4.2', 280 => '4.2', 281 => '2.2', 285 => '10.5', 286 => '3.4', 287 => '6.1', 289 => '4.4', 290 => '4.2', 291 => '4.2' }, + 'gripbatteryadload' => { 330 => 0x5 }, + 'gripbatteryadnoload' => { 330 => 0x4 }, + 'gripbatterystate' => { 330 => '1.2' }, + 'group' => { 473 => 'Group', 475 => 'Group' }, + 'groupareaafillumination' => { 277 => '46.4', 280 => '47.4', 289 => '47.4' }, + 'grouping' => { 368 => ['grup',"\xa9grp"], 376 => "\xa9grp" }, + 'guid' => { 368 => 'GUID' }, 'h2resetblackpixels' => { 137 => 0x18a6 }, 'h3resetblackcolumns' => { 137 => 0x18ce }, 'h3resetblackpixels' => { 137 => 0x18b0 }, 'halftonehints' => { 118 => 0x141 }, 'hardlink' => { 119 => 'HardLink' }, - 'hasalternative' => { 487 => 'hasAlternative' }, - 'hascorrection' => { 487 => 'hasCorrection' }, - 'hascorrectiona-lang' => { 487 => [\'hasCorrection','hasCorrectionA-lang'] }, - 'hascorrectiona-platform' => { 487 => [\'hasCorrection','hasCorrectionA-platform'] }, - 'hascorrectiontext' => { 487 => [\'hasCorrection','hasCorrectionText'] }, - 'hascrop' => { 471 => 'HasCrop', 473 => 'HasCrop' }, - 'hasextendedxmp' => { 499 => 'HasExtendedXMP' }, - 'hassettings' => { 471 => 'HasSettings', 473 => 'HasSettings' }, - 'hastranslation' => { 487 => 'hasTranslation' }, - 'hasvisibleoverprint' => { 502 => 'HasVisibleOverprint' }, - 'hasvisibletransparency' => { 502 => 'HasVisibleTransparency' }, - 'hdmioutputn-log' => { 259 => 0x35a }, - 'hdr' => { 60 => 0x1, 214 => 0x4, 314 => 0x9e, 349 => 0x85, 414 => 0x200a }, + 'hasalternative' => { 489 => 'hasAlternative' }, + 'hascorrection' => { 489 => 'hasCorrection' }, + 'hascorrectiona-lang' => { 489 => [\'hasCorrection','hasCorrectionA-lang'] }, + 'hascorrectiona-platform' => { 489 => [\'hasCorrection','hasCorrectionA-platform'] }, + 'hascorrectiontext' => { 489 => [\'hasCorrection','hasCorrectionText'] }, + 'hascrop' => { 473 => 'HasCrop', 475 => 'HasCrop' }, + 'hasextendedxmp' => { 501 => 'HasExtendedXMP' }, + 'hassettings' => { 473 => 'HasSettings', 475 => 'HasSettings' }, + 'hastranslation' => { 489 => 'hasTranslation' }, + 'hasvisibleoverprint' => { 504 => 'HasVisibleOverprint' }, + 'hasvisibletransparency' => { 504 => 'HasVisibleTransparency' }, + 'hdmioutputn-log' => { 261 => 0x35a }, + 'hdr' => { 60 => 0x1, 214 => 0x4, 316 => 0x9e, 351 => 0x85, 416 => 0x200a }, 'hdreffect' => { 60 => 0x2 }, 'hdrimagetype' => { 1 => 0xa }, 'hdrinfoversion' => { 214 => 0x0 }, - 'hdrlevel' => { 214 => 0x5, 403 => 0x2e, 419 => 0x17 }, + 'hdrlevel' => { 214 => 0x5, 405 => 0x2e, 421 => 0x17 }, 'hdrlevel2' => { 214 => 0x7 }, - 'hdrpmakernote' => { 454 => 'hdrp_makernote' }, - 'hdrsetting' => { 403 => 0x2d, 419 => 0x16, 422 => 0x1148, 423 => 0x1148, 424 => 0x1124, 425 => 0x11a0, 426 => 0x117c, 427 => 0x1034, 428 => 0x22c, 429 => 0x22c, 430 => 0x21f }, - 'hdrshot' => { 314 => 0x76 }, + 'hdrpmakernote' => { 456 => 'hdrp_makernote' }, + 'hdrsetting' => { 405 => 0x2d, 421 => 0x16, 424 => 0x1148, 425 => 0x1148, 426 => 0x1124, 427 => 0x11a0, 428 => 0x117c, 429 => 0x1034, 430 => 0x22c, 431 => 0x22c, 432 => 0x21f }, + 'hdrshot' => { 316 => 0x76 }, 'hdrsmoothing' => { 214 => 0x6 }, - 'hdvideo' => { 366 => 'hdvd' }, - 'headline' => { 130 => 0x69, 483 => 'Headline', 485 => 'Headline' }, + 'hdvideo' => { 368 => 'hdvd' }, + 'headline' => { 130 => 0x69, 485 => 'Headline', 487 => 'Headline' }, 'hierarchicalkeywords' => { 170 => [\'Keywords','KeywordsHierarchy'] }, 'hierarchicalkeywords1' => { 170 => [\'Keywords','KeywordsHierarchyKeyword'] }, 'hierarchicalkeywords1applied' => { 170 => [\'Keywords','KeywordsHierarchyApplied'] }, 'hierarchicalkeywords1children' => { 170 => [\'Keywords','KeywordsHierarchyChildren'] }, 'hierarchicalkeywords2' => { 170 => [\'Keywords','KeywordsHierarchyChildrenKeyword'] }, @@ -3234,62 +3236,62 @@ my %tagLookup = ( 'hierarchicalkeywords5' => { 170 => [\'Keywords','KeywordsHierarchyChildrenChildrenChildrenChildrenKeyword'] }, 'hierarchicalkeywords5applied' => { 170 => [\'Keywords','KeywordsHierarchyChildrenChildrenChildrenChildrenApplied'] }, 'hierarchicalkeywords5children' => { 170 => [\'Keywords','KeywordsHierarchyChildrenChildrenChildrenChildrenChildren'] }, 'hierarchicalkeywords6' => { 170 => [\'Keywords','KeywordsHierarchyChildrenChildrenChildrenChildrenChildrenKeyword'] }, 'hierarchicalkeywords6applied' => { 170 => [\'Keywords','KeywordsHierarchyChildrenChildrenChildrenChildrenChildrenApplied'] }, - 'hierarchicalsubject' => { 463 => 'hierarchicalSubject' }, + 'hierarchicalsubject' => { 465 => 'hierarchicalSubject' }, 'highestbiostratigraphiczone' => { 117 => [\'GeologicalContext','GeologicalContextHighestBiostratigraphicZone'] }, - 'highisomultiplierblue' => { 319 => 0x1a }, - 'highisomultipliergreen' => { 319 => 0x19 }, - 'highisomultiplierred' => { 319 => 0x18 }, - 'highisonoisereduction' => { 16 => 0xbc, 17 => 0xbd, 20 => 0xbd, 28 => 0xc9, 62 => 0x5, 83 => 0x202, 224 => 0xb1, 349 => 0x71, 401 => 0x2c, 402 => 0x26, 403 => 0x26, 414 => 0x2009, 419 => 0x12, 444 => 0x42 }, - 'highisonoisereduction2' => { 414 => 0xb050 }, - 'highlight' => { 391 => 0xf }, - 'highlight2012' => { 471 => 'Highlight2012', 473 => 'Highlight2012' }, + 'highisomultiplierblue' => { 321 => 0x1a }, + 'highisomultipliergreen' => { 321 => 0x19 }, + 'highisomultiplierred' => { 321 => 0x18 }, + 'highisonoisereduction' => { 16 => 0xbc, 17 => 0xbd, 20 => 0xbd, 28 => 0xc9, 62 => 0x5, 83 => 0x202, 224 => 0xb1, 351 => 0x71, 403 => 0x2c, 404 => 0x26, 405 => 0x26, 416 => 0x2009, 421 => 0x12, 446 => 0x42 }, + 'highisonoisereduction2' => { 416 => 0xb050 }, + 'highlight' => { 393 => 0xf }, + 'highlight2012' => { 473 => 'Highlight2012', 475 => 'Highlight2012' }, 'highlightadj' => { 102 => 0x2030c }, - 'highlightcolordistortreduct' => { 448 => 0x8026 }, - 'highlightlinearitylimit' => { 388 => 0xa025 }, - 'highlightprotection' => { 266 => 0x6 }, - 'highlightrecovery' => { 471 => 'HighlightRecovery', 473 => 'HighlightRecovery' }, - 'highlights' => { 414 => 0x2033, 465 => 'Highlights' }, - 'highlights2012' => { 471 => 'Highlights2012', 473 => 'Highlights2012' }, - 'highlightsadj' => { 448 => 0x9019 }, - 'highlightshadow' => { 314 => 0xad }, + 'highlightcolordistortreduct' => { 450 => 0x8026 }, + 'highlightlinearitylimit' => { 390 => 0xa025 }, + 'highlightprotection' => { 268 => 0x6 }, + 'highlightrecovery' => { 473 => 'HighlightRecovery', 475 => 'HighlightRecovery' }, + 'highlights' => { 416 => 0x2033, 467 => 'Highlights' }, + 'highlights2012' => { 473 => 'Highlights2012', 475 => 'Highlights2012' }, + 'highlightsadj' => { 450 => 0x9019 }, + 'highlightshadow' => { 316 => 0xad }, 'highlighttone' => { 126 => 0x1041 }, 'highlighttonepriority' => { 13 => 0x7, 16 => 0x7, 17 => 0x7, 18 => 0x7, 20 => 0x7, 22 => 0x7, 28 => 0x7, 62 => 0x3, 83 => 0x203 }, - 'highlightwarning' => { 314 => 0x8002 }, - 'highlowkeyadj' => { 349 => 0x6c }, - 'highspeedsync' => { 183 => 0x5, 401 => 0x2, 402 => 0x2 }, - 'hintversion' => { 374 => 'hinv' }, - 'histogramxml' => { 267 => 0x83a1a25 }, - 'history' => { 485 => 'History', 498 => 'History' }, - 'historyaction' => { 498 => [\'History','HistoryAction'] }, - 'historychanged' => { 498 => [\'History','HistoryChanged'] }, - 'historyinstanceid' => { 498 => [\'History','HistoryInstanceID'] }, - 'historyparameters' => { 498 => [\'History','HistoryParameters'] }, - 'historysoftwareagent' => { 498 => [\'History','HistorySoftwareAgent'] }, - 'historywhen' => { 498 => [\'History','HistoryWhen'] }, + 'highlightwarning' => { 316 => 0x8002 }, + 'highlowkeyadj' => { 351 => 0x6c }, + 'highspeedsync' => { 183 => 0x5, 403 => 0x2, 404 => 0x2 }, + 'hintversion' => { 376 => 'hinv' }, + 'histogramxml' => { 269 => 0x83a1a25 }, + 'history' => { 487 => 'History', 500 => 'History' }, + 'historyaction' => { 500 => [\'History','HistoryAction'] }, + 'historychanged' => { 500 => [\'History','HistoryChanged'] }, + 'historyinstanceid' => { 500 => [\'History','HistoryInstanceID'] }, + 'historyparameters' => { 500 => [\'History','HistoryParameters'] }, + 'historysoftwareagent' => { 500 => [\'History','HistorySoftwareAgent'] }, + 'historywhen' => { 500 => [\'History','HistoryWhen'] }, 'holefilldarkdeltathreshold' => { 137 => 0xc88 }, 'holefilldeltathreshold' => { 137 => 0xc7e }, - 'hometowncity' => { 112 => 0x3006, 349 => 0x23, 355 => 0x2 }, - 'hometowncitycode' => { 356 => 0x1000 }, - 'hometowndst' => { 349 => 0x25, 355 => '0.2' }, + 'hometowncity' => { 112 => 0x3006, 351 => 0x23, 357 => 0x2 }, + 'hometowncitycode' => { 358 => 0x1000 }, + 'hometowndst' => { 351 => 0x25, 357 => '0.2' }, 'hostcomputer' => { 118 => 0x13c }, 'hostsoftwarerendering' => { 137 => 0xce7 }, - 'hue' => { 188 => 0x3b, 227 => 0x3d, 228 => 0x45, 349 => 0x67 }, - 'hueadj' => { 270 => 0x2f, 448 => 0x8019 }, - 'hueadjust' => { 381 => 0x1016 }, - 'hueadjustment' => { 181 => 0x4a, 182 => 0x40, 224 => 0x92, 226 => 0x36 }, - 'hueadjustmentaqua' => { 471 => 'HueAdjustmentAqua', 473 => 'HueAdjustmentAqua' }, - 'hueadjustmentblue' => { 471 => 'HueAdjustmentBlue', 473 => 'HueAdjustmentBlue' }, - 'hueadjustmentgreen' => { 471 => 'HueAdjustmentGreen', 473 => 'HueAdjustmentGreen' }, - 'hueadjustmentmagenta' => { 471 => 'HueAdjustmentMagenta', 473 => 'HueAdjustmentMagenta' }, - 'hueadjustmentorange' => { 471 => 'HueAdjustmentOrange', 473 => 'HueAdjustmentOrange' }, - 'hueadjustmentpurple' => { 471 => 'HueAdjustmentPurple', 473 => 'HueAdjustmentPurple' }, - 'hueadjustmentred' => { 471 => 'HueAdjustmentRed', 473 => 'HueAdjustmentRed' }, - 'hueadjustmentyellow' => { 471 => 'HueAdjustmentYellow', 473 => 'HueAdjustmentYellow' }, - 'huesetting' => { 299 => 0x1011 }, + 'hue' => { 188 => 0x3b, 228 => 0x3d, 229 => 0x45, 351 => 0x67 }, + 'hueadj' => { 272 => 0x2f, 450 => 0x8019 }, + 'hueadjust' => { 383 => 0x1016 }, + 'hueadjustment' => { 181 => 0x4a, 182 => 0x40, 224 => 0x92, 227 => 0x36 }, + 'hueadjustmentaqua' => { 473 => 'HueAdjustmentAqua', 475 => 'HueAdjustmentAqua' }, + 'hueadjustmentblue' => { 473 => 'HueAdjustmentBlue', 475 => 'HueAdjustmentBlue' }, + 'hueadjustmentgreen' => { 473 => 'HueAdjustmentGreen', 475 => 'HueAdjustmentGreen' }, + 'hueadjustmentmagenta' => { 473 => 'HueAdjustmentMagenta', 475 => 'HueAdjustmentMagenta' }, + 'hueadjustmentorange' => { 473 => 'HueAdjustmentOrange', 475 => 'HueAdjustmentOrange' }, + 'hueadjustmentpurple' => { 473 => 'HueAdjustmentPurple', 475 => 'HueAdjustmentPurple' }, + 'hueadjustmentred' => { 473 => 'HueAdjustmentRed', 475 => 'HueAdjustmentRed' }, + 'hueadjustmentyellow' => { 473 => 'HueAdjustmentYellow', 475 => 'HueAdjustmentYellow' }, + 'huesetting' => { 301 => 0x1011 }, 'humanobservation' => { 117 => 'HumanObservation' }, 'humanobservationday' => { 117 => [\'HumanObservation','HumanObservationDay'] }, 'humanobservationearliestdate' => { 117 => [\'HumanObservation','HumanObservationEarliestDate'] }, 'humanobservationenddayofyear' => { 117 => [\'HumanObservation','HumanObservationEndDayOfYear'] }, 'humanobservationeventdate' => { 117 => [\'HumanObservation','HumanObservationEventDate'] }, @@ -3307,332 +3309,332 @@ my %tagLookup = ( 'humanobservationsamplingeffort' => { 117 => [\'HumanObservation','HumanObservationSamplingEffort'] }, 'humanobservationsamplingprotocol' => { 117 => [\'HumanObservation','HumanObservationSamplingProtocol'] }, 'humanobservationstartdayofyear' => { 117 => [\'HumanObservation','HumanObservationStartDayOfYear'] }, 'humanobservationverbatimeventdate' => { 117 => [\'HumanObservation','HumanObservationVerbatimEventDate'] }, 'humanobservationyear' => { 117 => [\'HumanObservation','HumanObservationYear'] }, - 'humidity' => { 118 => 0x9401, 478 => 'Humidity' }, + 'humidity' => { 118 => 0x9401, 480 => 'Humidity' }, 'icc_profile' => { 119 => 'ICC_Profile' }, - 'iccprofilename' => { 485 => 'ICCProfile' }, - 'iconuri' => { 374 => 'icnu' }, - 'idccreativestyle' => { 448 => 0x8000 }, - 'idcpreviewlength' => { 448 => 0x202 }, - 'idcpreviewstart' => { 448 => 0x201 }, + 'iccprofilename' => { 487 => 'ICCProfile' }, + 'iconuri' => { 376 => 'icnu' }, + 'idccreativestyle' => { 450 => 0x8000 }, + 'idcpreviewlength' => { 450 => 0x202 }, + 'idcpreviewstart' => { 450 => 0x201 }, 'identification' => { 117 => 'Identification' }, 'identificationid' => { 117 => [\'Identification','IdentificationIdentificationID'] }, 'identificationqualifier' => { 117 => [\'Identification','IdentificationIdentificationQualifier'] }, 'identificationreferences' => { 117 => [\'Identification','IdentificationIdentificationReferences'] }, 'identificationremarks' => { 117 => [\'Identification','IdentificationIdentificationRemarks'] }, 'identificationverificationstatus' => { 117 => [\'Identification','IdentificationIdentificationVerificationStatus'] }, 'identifiedby' => { 117 => [\'Identification','IdentificationIdentifiedBy'] }, - 'identifier' => { 474 => 'identifier', 495 => 'Identifier' }, + 'identifier' => { 476 => 'identifier', 497 => 'Identifier' }, 'ifcameramodel' => { 137 => 0x9c8 }, 'illuminantdata1' => { 118 => 0xcd35 }, 'illuminantdata2' => { 118 => 0xcd36 }, 'illuminantdata3' => { 118 => 0xcd37 }, - 'illumination' => { 285 => '0.5', 376 => 0x48 }, + 'illumination' => { 287 => '0.5', 378 => 0x48 }, 'imageabsolutex' => { 137 => 0x3fe }, 'imageabsolutey' => { 137 => 0x3ff }, - 'imageadjustment' => { 224 => 0x80, 256 => 0x5 }, - 'imagealterationconstraints' => { 301 => 'ImageAlterationConstraints' }, - 'imagearea' => { 237 => 0x10, 240 => 0x10 }, - 'imageareaoffset' => { 349 => 0x38 }, + 'imageadjustment' => { 224 => 0x80, 258 => 0x5 }, + 'imagealterationconstraints' => { 303 => 'ImageAlterationConstraints' }, + 'imagearea' => { 238 => 0x10, 241 => 0x10 }, + 'imageareaoffset' => { 351 => 0x38 }, 'imageauthentication' => { 224 => 0x20 }, 'imageboundary' => { 224 => 0x16 }, - 'imagecount' => { 126 => 0x1438, 224 => 0xa5, 417 => 0x11b }, - 'imagecreator' => { 301 => 'ImageCreator' }, - 'imagecreatorid' => { 301 => [\'ImageCreator','ImageCreatorImageCreatorID'] }, - 'imagecreatorimageid' => { 301 => 'ImageCreatorImageID' }, - 'imagecreatorname' => { 301 => [\'ImageCreator','ImageCreatorImageCreatorName'] }, + 'imagecount' => { 126 => 0x1438, 224 => 0xa5, 419 => 0x11b }, + 'imagecreator' => { 303 => 'ImageCreator' }, + 'imagecreatorid' => { 303 => [\'ImageCreator','ImageCreatorImageCreatorID'] }, + 'imagecreatorimageid' => { 303 => 'ImageCreatorImageID' }, + 'imagecreatorname' => { 303 => [\'ImageCreator','ImageCreatorImageCreatorName'] }, 'imagecropx' => { 137 => 0x41f }, 'imagecropy' => { 137 => 0x420 }, - 'imagedata' => { 458 => 'Data' }, + 'imagedata' => { 460 => 'Data' }, 'imagedatasize' => { 224 => 0xa2 }, - 'imagedescription' => { 118 => 0x10e, 493 => 'ImageDescription' }, - 'imageduplicationconstraints' => { 301 => 'ImageDuplicationConstraints' }, - 'imagedustoff' => { 267 => 0xfe443a45 }, - 'imageeditcount' => { 349 => 0x41 }, - 'imageediting' => { 349 => 0x32 }, - 'imageeffects' => { 381 => 0x1010 }, - 'imagefileconstraints' => { 301 => 'ImageFileConstraints' }, - 'imagefileformatasdelivered' => { 301 => 'ImageFileFormatAsDelivered' }, - 'imagefilesizeasdelivered' => { 301 => 'ImageFileSizeAsDelivered' }, + 'imagedescription' => { 118 => 0x10e, 495 => 'ImageDescription' }, + 'imageduplicationconstraints' => { 303 => 'ImageDuplicationConstraints' }, + 'imagedustoff' => { 269 => 0xfe443a45 }, + 'imageeditcount' => { 351 => 0x41 }, + 'imageediting' => { 351 => 0x32 }, + 'imageeffects' => { 383 => 0x1010 }, + 'imagefileconstraints' => { 303 => 'ImageFileConstraints' }, + 'imagefileformatasdelivered' => { 303 => 'ImageFileFormatAsDelivered' }, + 'imagefilesizeasdelivered' => { 303 => 'ImageFileSizeAsDelivered' }, 'imagegeneration' => { 126 => 0x1436 }, - 'imageheight' => { 118 => 0x101, 187 => 0xc, 358 => 0x10d, 456 => 'ImageHeight', 493 => 'ImageLength' }, - 'imagehistory' => { 118 => 0x9213, 476 => 'ImageHistory' }, - 'imageidnumber' => { 309 => 0x340 }, - 'imagemimetype' => { 458 => 'Mime' }, - 'imagenumber' => { 118 => 0x9211, 155 => 'ImageNumber', 181 => 0xae, 182 => 0x5e, 358 => 0x113, 401 => 0x9b, 403 => [0x400,'276.1',0x314], 468 => 'ImageNumber' }, + 'imageheight' => { 118 => 0x101, 187 => 0xc, 360 => 0x10d, 458 => 'ImageHeight', 495 => 'ImageLength' }, + 'imagehistory' => { 118 => 0x9213, 478 => 'ImageHistory' }, + 'imageidnumber' => { 311 => 0x340 }, + 'imagemimetype' => { 460 => 'Mime' }, + 'imagenumber' => { 118 => 0x9211, 155 => 'ImageNumber', 181 => 0xae, 182 => 0x5e, 360 => 0x113, 403 => 0x9b, 405 => [0x400,'276.1',0x314], 470 => 'ImageNumber' }, 'imagenumber2' => { 182 => 0x62 }, 'imageoptimization' => { 224 => 0xa9 }, 'imageorientation' => { 130 => 0x83 }, 'imageprocessing' => { 224 => 0x1a }, 'imageprocessingfiledatecreated' => { 137 => 0xc81 }, 'imageprocessingfiletagsversionnumber' => { 137 => 0xc80 }, - 'imageprocessingversion' => { 295 => 0x0 }, - 'imagequality' => { 155 => 'ImageQuality', 239 => '723.2', 240 => '732.2', 250 => '708.1', 314 => 0x1 }, - 'imagequality2' => { 291 => 0x603 }, - 'imagerank' => { 461 => 'ImageRank' }, + 'imageprocessingversion' => { 297 => 0x0 }, + 'imagequality' => { 155 => 'ImageQuality', 240 => '723.2', 241 => '732.2', 251 => '708.1', 316 => 0x1 }, + 'imagequality2' => { 293 => 0x603 }, + 'imagerank' => { 463 => 'ImageRank' }, 'imagerbiassettlingdelaymsec' => { 137 => 0x600 }, 'imagerboardversion' => { 137 => 0x439 }, 'imagercols' => { 137 => 0x17d4 }, - 'imageref' => { 481 => 'ImageRef' }, - 'imageregion' => { 483 => 'ImageRegion' }, - 'imageregionboundary' => { 483 => [\'ImageRegion','ImageRegionRegionBoundary'] }, - 'imageregionboundaryh' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbH'] }, - 'imageregionboundaryrx' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbRx'] }, - 'imageregionboundaryshape' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbShape'] }, - 'imageregionboundaryunit' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbUnit'] }, - 'imageregionboundaryvertices' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbVertices'] }, - 'imageregionboundaryverticesx' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbX'] }, - 'imageregionboundaryverticesy' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbY'] }, - 'imageregionboundaryw' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbW'] }, - 'imageregionboundaryx' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbX'] }, - 'imageregionboundaryy' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbY'] }, - 'imageregionctype' => { 483 => [\'ImageRegion','ImageRegionRCtype'] }, - 'imageregionctypeidentifier' => { 483 => [\'ImageRegion','ImageRegionRCtypeIdentifier'] }, - 'imageregionctypename' => { 483 => [\'ImageRegion','ImageRegionRCtypeName'] }, - 'imageregionid' => { 483 => [\'ImageRegion','ImageRegionRId'] }, - 'imageregionname' => { 483 => [\'ImageRegion','ImageRegionName'] }, - 'imageregionrole' => { 483 => [\'ImageRegion','ImageRegionRRole'] }, - 'imageregionroleidentifier' => { 483 => [\'ImageRegion','ImageRegionRRoleIdentifier'] }, - 'imageregionrolename' => { 483 => [\'ImageRegion','ImageRegionRRoleName'] }, + 'imageref' => { 483 => 'ImageRef' }, + 'imageregion' => { 485 => 'ImageRegion' }, + 'imageregionboundary' => { 485 => [\'ImageRegion','ImageRegionRegionBoundary'] }, + 'imageregionboundaryh' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbH'] }, + 'imageregionboundaryrx' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbRx'] }, + 'imageregionboundaryshape' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbShape'] }, + 'imageregionboundaryunit' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbUnit'] }, + 'imageregionboundaryvertices' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbVertices'] }, + 'imageregionboundaryverticesx' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbX'] }, + 'imageregionboundaryverticesy' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbY'] }, + 'imageregionboundaryw' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbW'] }, + 'imageregionboundaryx' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbX'] }, + 'imageregionboundaryy' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbY'] }, + 'imageregionctype' => { 485 => [\'ImageRegion','ImageRegionRCtype'] }, + 'imageregionctypeidentifier' => { 485 => [\'ImageRegion','ImageRegionRCtypeIdentifier'] }, + 'imageregionctypename' => { 485 => [\'ImageRegion','ImageRegionRCtypeName'] }, + 'imageregionid' => { 485 => [\'ImageRegion','ImageRegionRId'] }, + 'imageregionname' => { 485 => [\'ImageRegion','ImageRegionName'] }, + 'imageregionrole' => { 485 => [\'ImageRegion','ImageRegionRRole'] }, + 'imageregionroleidentifier' => { 485 => [\'ImageRegion','ImageRegionRRoleIdentifier'] }, + 'imageregionrolename' => { 485 => [\'ImageRegion','ImageRegionRRoleName'] }, 'imageresolution' => { 137 => 0x944 }, 'imageresolutionjpg' => { 137 => 0x945 }, - 'imagereview' => { 276 => '0.4', 285 => '0.4' }, - 'imagereviewmonitorofftime' => { 275 => '21.1', 277 => '21.1', 278 => '21.1', 282 => '20.1', 287 => '21.1', 288 => '21.1' }, - 'imagereviewtime' => { 274 => '25.1', 276 => '2.1', 279 => '19.1', 280 => '20.1', 281 => '20.1', 283 => '9.2', 284 => '20.1', 289 => '21.2' }, + 'imagereview' => { 278 => '0.4', 287 => '0.4' }, + 'imagereviewmonitorofftime' => { 277 => '21.1', 279 => '21.1', 280 => '21.1', 284 => '20.1', 289 => '21.1', 290 => '21.1' }, + 'imagereviewtime' => { 276 => '25.1', 278 => '2.1', 281 => '19.1', 282 => '20.1', 283 => '20.1', 285 => '9.2', 286 => '20.1', 291 => '21.2' }, 'imagerfiledatecreated' => { 137 => 0x9c5 }, 'imagerfileproductionlevel' => { 137 => 0x9c4 }, 'imagerfiletagsversionstandard' => { 137 => 0x9c7 }, 'imagerotated' => { 150 => 0x2a }, 'imagerpowerondelaymsec' => { 137 => 0x5fd }, 'imagerrows' => { 137 => 0x17de }, 'imagesegmentlines' => { 137 => 0x184d }, 'imagesegmentstartline' => { 137 => 0x184c }, 'imagesize' => { 161 => 'ImageSize' }, 'imagesizeraw' => { 224 => 0x3e }, - 'imagesizerestriction' => { 490 => 'imageSizeRestriction' }, + 'imagesizerestriction' => { 492 => 'imageSizeRestriction' }, 'imagesourcedata' => { 118 => 0x935c }, 'imagespace' => { 137 => 0x909 }, - 'imagestabilization' => { 34 => 0x22, 112 => 0x3020, 126 => 0x1422, 155 => 'ImageStabilization', 181 => 0xbd, 182 => 0x71, 183 => 0x57, 184 => 0x0, 185 => [0x18,0x107,0x113], 186 => 0x49c2, 224 => 0xac, 291 => 0x604, 294 => 0x1600, 314 => 0x1a, 406 => 0x12, 407 => 0x11, 414 => 0xb026 }, - 'imagestabilization2' => { 405 => 0xa }, - 'imagestabilizationsetting' => { 186 => 0x14, 401 => 0x3d, 402 => 0x3d, 412 => 0x14 }, - 'imagestyle' => { 401 => 0x2d, 402 => 0x27 }, - 'imagesupplier' => { 301 => 'ImageSupplier' }, - 'imagesupplierid' => { 301 => [\'ImageSupplier','ImageSupplierImageSupplierID'] }, - 'imagesupplierimageid' => { 301 => 'ImageSupplierImageID' }, - 'imagesuppliername' => { 301 => [\'ImageSupplier','ImageSupplierImageSupplierName'] }, + 'imagestabilization' => { 34 => 0x22, 112 => 0x3020, 126 => 0x1422, 155 => 'ImageStabilization', 181 => 0xbd, 182 => 0x71, 183 => 0x57, 184 => 0x0, 185 => [0x18,0x107,0x113], 186 => 0x49c2, 224 => 0xac, 293 => 0x604, 296 => 0x1600, 316 => 0x1a, 408 => 0x12, 409 => 0x11, 416 => 0xb026 }, + 'imagestabilization2' => { 407 => 0xa }, + 'imagestabilizationsetting' => { 186 => 0x14, 403 => 0x3d, 404 => 0x3d, 414 => 0x14 }, + 'imagestyle' => { 403 => 0x2d, 404 => 0x27 }, + 'imagesupplier' => { 303 => 'ImageSupplier' }, + 'imagesupplierid' => { 303 => [\'ImageSupplier','ImageSupplierImageSupplierID'] }, + 'imagesupplierimageid' => { 303 => 'ImageSupplierImageID' }, + 'imagesuppliername' => { 303 => [\'ImageSupplier','ImageSupplierImageSupplierName'] }, 'imagetemperaturemax' => { 120 => 0x1 }, 'imagetemperaturemin' => { 120 => 0x2 }, - 'imagetone' => { 349 => 0x4f }, - 'imagetype' => { 130 => 0x82, 301 => 'ImageType' }, - 'imageuniqueid' => { 1 => 0x15, 63 => 0x28, 118 => 0xa420, 476 => 'ImageUniqueID', 477 => 'ImageUniqueID' }, - 'imagewidth' => { 118 => 0x100, 187 => 0xe, 358 => 0x10c, 456 => 'ImageWidth', 493 => 'ImageWidth' }, - 'inclinationangle' => { 448 => 0x900f }, - 'inclinationcorrection' => { 448 => 0x900e }, - 'incrementaltemperature' => { 471 => 'IncrementalTemperature', 473 => 'IncrementalTemperature' }, - 'incrementaltint' => { 471 => 'IncrementalTint', 473 => 'IncrementalTint' }, - 'industry' => { 487 => 'industry', 488 => 'industry' }, + 'imagetone' => { 351 => 0x4f }, + 'imagetype' => { 130 => 0x82, 303 => 'ImageType' }, + 'imageuniqueid' => { 1 => 0x15, 63 => 0x28, 118 => 0xa420, 478 => 'ImageUniqueID', 479 => 'ImageUniqueID' }, + 'imagewidth' => { 118 => 0x100, 187 => 0xe, 360 => 0x10c, 458 => 'ImageWidth', 495 => 'ImageWidth' }, + 'inclinationangle' => { 450 => 0x900f }, + 'inclinationcorrection' => { 450 => 0x900e }, + 'incrementaltemperature' => { 473 => 'IncrementalTemperature', 475 => 'IncrementalTemperature' }, + 'incrementaltint' => { 473 => 'IncrementalTint', 475 => 'IncrementalTint' }, + 'industry' => { 489 => 'industry', 490 => 'industry' }, 'infobuttonwhenshooting' => { 83 => 0x409 }, - 'information' => { 368 => 'information', 374 => "\xa9inf" }, - 'infourl' => { 374 => 'infu' }, - 'infraredilluminator' => { 375 => 0x28 }, - 'ingredientexclusion' => { 489 => 'ingredientExclusion' }, - 'ingredients' => { 498 => 'Ingredients' }, - 'ingredientsalternatepaths' => { 498 => [\'Ingredients','IngredientsAlternatePaths'] }, - 'ingredientsdocumentid' => { 498 => [\'Ingredients','IngredientsDocumentID'] }, - 'ingredientsfilepath' => { 498 => [\'Ingredients','IngredientsFilePath'] }, - 'ingredientsfrompart' => { 498 => [\'Ingredients','IngredientsFromPart'] }, - 'ingredientsinstanceid' => { 498 => [\'Ingredients','IngredientsInstanceID'] }, - 'ingredientslastmodifydate' => { 498 => [\'Ingredients','IngredientsLastModifyDate'] }, - 'ingredientslasturl' => { 498 => [\'Ingredients','IngredientsLastURL'] }, - 'ingredientslinkcategory' => { 498 => [\'Ingredients','IngredientsLinkCategory'] }, - 'ingredientslinkform' => { 498 => [\'Ingredients','IngredientsLinkForm'] }, - 'ingredientsmanager' => { 498 => [\'Ingredients','IngredientsManager'] }, - 'ingredientsmanagervariant' => { 498 => [\'Ingredients','IngredientsManagerVariant'] }, - 'ingredientsmanageto' => { 498 => [\'Ingredients','IngredientsManageTo'] }, - 'ingredientsmanageui' => { 498 => [\'Ingredients','IngredientsManageUI'] }, - 'ingredientsmaskmarkers' => { 498 => [\'Ingredients','IngredientsMaskMarkers'] }, - 'ingredientsoriginaldocumentid' => { 498 => [\'Ingredients','IngredientsOriginalDocumentID'] }, - 'ingredientspartmapping' => { 498 => [\'Ingredients','IngredientsPartMapping'] }, - 'ingredientsplacedresolutionunit' => { 498 => [\'Ingredients','IngredientsPlacedResolutionUnit'] }, - 'ingredientsplacedxresolution' => { 498 => [\'Ingredients','IngredientsPlacedXResolution'] }, - 'ingredientsplacedyresolution' => { 498 => [\'Ingredients','IngredientsPlacedYResolution'] }, - 'ingredientsrenditionclass' => { 498 => [\'Ingredients','IngredientsRenditionClass'] }, - 'ingredientsrenditionparams' => { 498 => [\'Ingredients','IngredientsRenditionParams'] }, - 'ingredientstopart' => { 498 => [\'Ingredients','IngredientsToPart'] }, - 'ingredientsversionid' => { 498 => [\'Ingredients','IngredientsVersionID'] }, + 'information' => { 370 => 'information', 376 => "\xa9inf" }, + 'infourl' => { 376 => 'infu' }, + 'infraredilluminator' => { 377 => 0x28 }, + 'ingredientexclusion' => { 491 => 'ingredientExclusion' }, + 'ingredients' => { 500 => 'Ingredients' }, + 'ingredientsalternatepaths' => { 500 => [\'Ingredients','IngredientsAlternatePaths'] }, + 'ingredientsdocumentid' => { 500 => [\'Ingredients','IngredientsDocumentID'] }, + 'ingredientsfilepath' => { 500 => [\'Ingredients','IngredientsFilePath'] }, + 'ingredientsfrompart' => { 500 => [\'Ingredients','IngredientsFromPart'] }, + 'ingredientsinstanceid' => { 500 => [\'Ingredients','IngredientsInstanceID'] }, + 'ingredientslastmodifydate' => { 500 => [\'Ingredients','IngredientsLastModifyDate'] }, + 'ingredientslasturl' => { 500 => [\'Ingredients','IngredientsLastURL'] }, + 'ingredientslinkcategory' => { 500 => [\'Ingredients','IngredientsLinkCategory'] }, + 'ingredientslinkform' => { 500 => [\'Ingredients','IngredientsLinkForm'] }, + 'ingredientsmanager' => { 500 => [\'Ingredients','IngredientsManager'] }, + 'ingredientsmanagervariant' => { 500 => [\'Ingredients','IngredientsManagerVariant'] }, + 'ingredientsmanageto' => { 500 => [\'Ingredients','IngredientsManageTo'] }, + 'ingredientsmanageui' => { 500 => [\'Ingredients','IngredientsManageUI'] }, + 'ingredientsmaskmarkers' => { 500 => [\'Ingredients','IngredientsMaskMarkers'] }, + 'ingredientsoriginaldocumentid' => { 500 => [\'Ingredients','IngredientsOriginalDocumentID'] }, + 'ingredientspartmapping' => { 500 => [\'Ingredients','IngredientsPartMapping'] }, + 'ingredientsplacedresolutionunit' => { 500 => [\'Ingredients','IngredientsPlacedResolutionUnit'] }, + 'ingredientsplacedxresolution' => { 500 => [\'Ingredients','IngredientsPlacedXResolution'] }, + 'ingredientsplacedyresolution' => { 500 => [\'Ingredients','IngredientsPlacedYResolution'] }, + 'ingredientsrenditionclass' => { 500 => [\'Ingredients','IngredientsRenditionClass'] }, + 'ingredientsrenditionparams' => { 500 => [\'Ingredients','IngredientsRenditionParams'] }, + 'ingredientstopart' => { 500 => [\'Ingredients','IngredientsToPart'] }, + 'ingredientsversionid' => { 500 => [\'Ingredients','IngredientsVersionID'] }, 'initialafpointaiservoaf' => { 83 => 0x51e }, 'initialafpointinservo' => { 2 => 0x13 }, - 'initialcameradolly' => { 459 => 'InitialCameraDolly' }, - 'initialhorizontalfovdegrees' => { 459 => 'InitialHorizontalFOVDegrees' }, + 'initialcameradolly' => { 461 => 'InitialCameraDolly' }, + 'initialhorizontalfovdegrees' => { 461 => 'InitialHorizontalFOVDegrees' }, 'initialkey' => { 178 => 'WM/InitialKey' }, - 'initialverticalfovdegrees' => { 459 => 'InitialVerticalFOVDegrees' }, - 'initialviewheadingdegrees' => { 459 => 'InitialViewHeadingDegrees', 460 => 'InitialViewHeadingDegrees' }, - 'initialviewpitchdegrees' => { 459 => 'InitialViewPitchDegrees', 460 => 'InitialViewPitchDegrees' }, - 'initialviewrolldegrees' => { 459 => 'InitialViewRollDegrees', 460 => 'InitialViewRollDegrees' }, - 'initialzoomliveview' => { 274 => '4.4' }, - 'initialzoomsetting' => { 274 => '9.3', 283 => '27.3' }, + 'initialverticalfovdegrees' => { 461 => 'InitialVerticalFOVDegrees' }, + 'initialviewheadingdegrees' => { 461 => 'InitialViewHeadingDegrees', 462 => 'InitialViewHeadingDegrees' }, + 'initialviewpitchdegrees' => { 461 => 'InitialViewPitchDegrees', 462 => 'InitialViewPitchDegrees' }, + 'initialviewrolldegrees' => { 461 => 'InitialViewRollDegrees', 462 => 'InitialViewRollDegrees' }, + 'initialzoomliveview' => { 276 => '4.4' }, + 'initialzoomsetting' => { 276 => '9.3', 285 => '27.3' }, 'inkset' => { 118 => 0x14c }, 'inputprofile' => { 137 => 0x1389 }, - 'instanceid' => { 498 => 'InstanceID' }, + 'instanceid' => { 500 => 'InstanceID' }, 'instantplaybacksetup' => { 183 => 0x3e }, 'instantplaybacktime' => { 183 => 0x3d }, - 'instructions' => { 485 => 'Instructions' }, - 'instrument' => { 497 => 'instrument' }, + 'instructions' => { 487 => 'Instructions' }, + 'instrument' => { 499 => 'instrument' }, 'integrationtime' => { 137 => 0x423 }, - 'intellectualgenre' => { 482 => 'IntellectualGenre' }, - 'intelligentauto' => { 414 => 0xb052, 440 => 0xd, 441 => 0xe, 442 => 0xd }, + 'intellectualgenre' => { 484 => 'IntellectualGenre' }, + 'intelligentauto' => { 416 => 0xb052, 442 => 0xd, 443 => 0xe, 444 => 0xd }, 'intelligentcontrast' => { 52 => 0x4 }, - 'intelligentd-range' => { 314 => 0x79 }, - 'intelligentexposure' => { 314 => 0x5d }, - 'intelligentresolution' => { 314 => 0x70 }, + 'intelligentd-range' => { 316 => 0x79 }, + 'intelligentexposure' => { 316 => 0x5d }, + 'intelligentresolution' => { 316 => 0x70 }, 'interchangecolorspace' => { 132 => 0x40 }, 'intergraphmatrix' => { 118 => 0x8480 }, - 'internalflash' => { 180 => 0x2b, 274 => '23.1', 276 => '8.1', 279 => '22.1', 281 => '23.1', 285 => '8.1', 289 => '24.1', 294 => 0x1208 }, - 'internalflashae1' => { 296 => 0x1021 }, - 'internalflashae1_0' => { 296 => 0x101d }, - 'internalflashae2' => { 296 => 0x1022 }, - 'internalflashae2_0' => { 296 => 0x101e }, - 'internalflashmode' => { 337 => 0x1 }, - 'internalflashstrength' => { 337 => 0x3 }, - 'internalflashtable' => { 296 => 0x1024 }, - 'internallensserialnumber' => { 388 => 0xa005 }, - 'internalndfilter' => { 314 => 0x9d }, - 'internalserialnumber' => { 63 => 0x96, 75 => 0x9, 126 => 0x10, 186 => 0x49dc, 290 => 0x18, 292 => 0x102, 311 => 0x500, 314 => 0x25, 329 => 0x4, 381 => 0x5, 432 => [0x7c,0xf0], 433 => 0x88, 434 => [0x88,0x8a] }, - 'interopindex' => { 118 => 0x1, 478 => 'InteroperabilityIndex' }, + 'internalflash' => { 180 => 0x2b, 276 => '23.1', 278 => '8.1', 281 => '22.1', 283 => '23.1', 287 => '8.1', 291 => '24.1', 296 => 0x1208 }, + 'internalflashae1' => { 298 => 0x1021 }, + 'internalflashae1_0' => { 298 => 0x101d }, + 'internalflashae2' => { 298 => 0x1022 }, + 'internalflashae2_0' => { 298 => 0x101e }, + 'internalflashmode' => { 339 => 0x1 }, + 'internalflashstrength' => { 339 => 0x3 }, + 'internalflashtable' => { 298 => 0x1024 }, + 'internallensserialnumber' => { 390 => 0xa005 }, + 'internalndfilter' => { 316 => 0x9d }, + 'internalserialnumber' => { 63 => 0x96, 75 => 0x9, 126 => 0x10, 186 => 0x49dc, 292 => 0x18, 294 => 0x102, 313 => 0x500, 316 => 0x25, 331 => 0x4, 383 => 0x5, 434 => [0x7c,0xf0], 435 => 0x88, 436 => [0x88,0x8a] }, + 'interopindex' => { 118 => 0x1, 480 => 'InteroperabilityIndex' }, 'interopversion' => { 118 => 0x2 }, - 'interval' => { 243 => 0xd0 }, - 'intervaldurationhours' => { 259 => 0xa0 }, - 'intervaldurationminutes' => { 259 => 0xa4 }, - 'intervaldurationseconds' => { 259 => 0xa8 }, - 'intervalexposuresmoothing' => { 247 => 0xc416, 259 => 0xb8 }, - 'intervalframe' => { 243 => 0xd4 }, + 'interval' => { 244 => 0xd0 }, + 'intervaldurationhours' => { 261 => 0xa0 }, + 'intervaldurationminutes' => { 261 => 0xa4 }, + 'intervaldurationseconds' => { 261 => 0xa8 }, + 'intervalexposuresmoothing' => { 248 => 0xc416, 261 => 0xb8 }, + 'intervalframe' => { 244 => 0xd4 }, 'intervallength' => { 180 => 0x10 }, 'intervalmode' => { 180 => 0x26 }, 'intervalnumber' => { 180 => 0x11 }, - 'intervalpriority' => { 247 => 0xc418, 259 => 0xba }, - 'intervals' => { 247 => 0xc40e, 259 => 0xb0 }, - 'intervalshooting' => { 247 => 0x760c, 255 => 0x760c, 349 => 0x92 }, - 'introtime' => { 497 => 'introTime' }, - 'introtimescale' => { 497 => [\'introTime','introTimeScale'] }, - 'introtimevalue' => { 497 => [\'introTime','introTimeValue'] }, + 'intervalpriority' => { 248 => 0xc418, 261 => 0xba }, + 'intervals' => { 248 => 0xc40e, 261 => 0xb0 }, + 'intervalshooting' => { 248 => 0x760c, 256 => 0x760c, 351 => 0x92 }, + 'introtime' => { 499 => 'introTime' }, + 'introtimescale' => { 499 => [\'introTime','introTimeScale'] }, + 'introtimevalue' => { 499 => [\'introTime','introTimeValue'] }, 'ipaversion' => { 137 => 0xdae }, 'ipfcameramodel' => { 137 => 0xe4d }, 'iptc' => { 119 => 'IPTC' }, - 'iptc-naa' => { 118 => 0x83bb, 319 => 0x83bb }, + 'iptc-naa' => { 118 => 0x83bb, 321 => 0x83bb }, 'iptcbitspersample' => { 132 => 0x56 }, - 'iptcdigest' => { 363 => 0x425 }, + 'iptcdigest' => { 365 => 0x425 }, 'iptcimageheight' => { 132 => 0x1e }, 'iptcimagerotation' => { 132 => 0x66 }, 'iptcimagewidth' => { 132 => 0x14 }, - 'iptclastedited' => { 483 => 'IptcLastEdited' }, + 'iptclastedited' => { 485 => 'IptcLastEdited' }, 'iptcpicturenumber' => { 132 => 0xa }, 'iptcpixelheight' => { 132 => 0x32 }, 'iptcpixelwidth' => { 132 => 0x28 }, - 'isalternativeof' => { 487 => 'isAlternativeOf' }, - 'isbn' => { 487 => 'isbn' }, - 'iscorrectionof' => { 487 => 'isCorrectionOf' }, + 'isalternativeof' => { 489 => 'isAlternativeOf' }, + 'isbn' => { 489 => 'isbn' }, + 'iscorrectionof' => { 489 => 'isCorrectionOf' }, 'iscustompicturestyle' => { 108 => 0x3 }, - 'ismergedhdr' => { 468 => 'IsMergedHDR' }, - 'ismergedpanorama' => { 468 => 'IsMergedPanorama' }, - 'iso' => { 7 => 0x6, 9 => 0x6, 10 => 0x75, 11 => 0x6, 12 => 0x79, 13 => 0x6, 14 => 0x6, 15 => 0x6, 16 => 0x6, 17 => 0x6, 18 => 0x6, 19 => 0x6, 20 => 0x6, 21 => 0x6, 22 => 0x6, 23 => 0x6, 24 => 0x6, 25 => 0x6, 26 => 0x6, 27 => 0x6, 28 => 0x6, 29 => 0x6, 30 => 0x0, 31 => 0x1, 111 => 0x14, 112 => [0x3014,0x14], 118 => 0x8827, 136 => 0xfd06, 137 => 0x1784, 139 => 0x60, 141 => [0xfa2e,0xfa46], 142 => [0x27,0x28], 143 => 0xf105, 146 => 0x14, 148 => 0x4e, 150 => 0x1e, 151 => 0x1a, 153 => 0x34, 155 => 'ISO', 180 => 0x8, 186 => 0x49ba, 215 => 0x0, 224 => 0x2, 314 => 0xd1, 319 => 0x17, 349 => [0x8b,0x14], 356 => 0x14, 358 => 0x105, 388 => 0xa014, 391 => 0x86, 412 => 0x6f, 419 => [0x1f,0x21,0x25], 477 => 'ISOSpeedRatings' }, - 'iso2' => { 215 => 0x6, 234 => 0x265, 235 => 0x25c, 236 => 0x265, 237 => 0x221, 238 => 0x25d, 239 => 0x256, 240 => 0x25d, 244 => 0x2b5, 248 => 0x265, 254 => 0x2b5 }, - 'isoauto' => { 330 => '14.4' }, - 'isoautohilimit' => { 242 => 0x18eb, 243 => 0xe82, 252 => 0x185d }, - 'isoautomax' => { 413 => 0x4 }, - 'isoautomin' => { 413 => 0x2 }, - 'isoautoparameters' => { 349 => 0x7a }, - 'isoautoshuttertime' => { 242 => 0x18ea, 243 => 0xe81, 252 => 0x185c }, + 'ismergedhdr' => { 470 => 'IsMergedHDR' }, + 'ismergedpanorama' => { 470 => 'IsMergedPanorama' }, + 'iso' => { 7 => 0x6, 9 => 0x6, 10 => 0x75, 11 => 0x6, 12 => 0x79, 13 => 0x6, 14 => 0x6, 15 => 0x6, 16 => 0x6, 17 => 0x6, 18 => 0x6, 19 => 0x6, 20 => 0x6, 21 => 0x6, 22 => 0x6, 23 => 0x6, 24 => 0x6, 25 => 0x6, 26 => 0x6, 27 => 0x6, 28 => 0x6, 29 => 0x6, 30 => 0x0, 31 => 0x1, 111 => 0x14, 112 => [0x3014,0x14], 118 => 0x8827, 136 => 0xfd06, 137 => 0x1784, 139 => 0x60, 141 => [0xfa2e,0xfa46], 142 => [0x27,0x28], 143 => 0xf105, 146 => 0x14, 148 => 0x4e, 150 => 0x1e, 151 => 0x1a, 153 => 0x34, 155 => 'ISO', 180 => 0x8, 186 => 0x49ba, 215 => 0x0, 224 => 0x2, 316 => 0xd1, 321 => 0x17, 351 => [0x8b,0x14], 358 => 0x14, 360 => 0x105, 390 => 0xa014, 393 => 0x86, 414 => 0x6f, 421 => [0x1f,0x21,0x25], 479 => 'ISOSpeedRatings' }, + 'iso2' => { 215 => 0x6, 235 => 0x265, 236 => 0x25c, 237 => 0x265, 238 => 0x221, 239 => 0x25d, 240 => 0x256, 241 => 0x25d, 245 => 0x2b5, 249 => 0x265, 255 => 0x2b5 }, + 'isoauto' => { 332 => '14.4' }, + 'isoautohilimit' => { 243 => 0x18eb, 244 => 0xe82, 253 => 0x185d }, + 'isoautomax' => { 415 => 0x4 }, + 'isoautomin' => { 415 => 0x2 }, + 'isoautoparameters' => { 351 => 0x7a }, + 'isoautoshuttertime' => { 243 => 0x18ea, 244 => 0xe81, 253 => 0x185c }, 'isocalibrationgain' => { 137 => 0x89f }, - 'isodisplay' => { 277 => '4.1', 278 => '4.1', 279 => '2.3', 280 => '3.3', 281 => '3.3', 284 => '3.3', 287 => '4.3', 288 => '4.1', 289 => '4.3' }, + 'isodisplay' => { 279 => '4.1', 280 => '4.1', 281 => '2.3', 282 => '3.3', 283 => '3.3', 286 => '3.3', 289 => '4.3', 290 => '4.1', 291 => '4.3' }, 'isoexpansion' => { 83 => 0x103, 84 => 0x7, 85 => 0x8, 88 => 0x8, 215 => 0x4 }, 'isoexpansion2' => { 215 => 0xa }, - 'isofloor' => { 330 => 0x6 }, - 'isoselected' => { 313 => 0x359 }, + 'isofloor' => { 332 => 0x6 }, + 'isoselected' => { 315 => 0x359 }, 'isoselection' => { 224 => 0xf }, - 'isosensitivitystep' => { 282 => '6.2', 284 => '6.2' }, - 'isosetting' => { 139 => 0x5e, 151 => 0x14, 155 => 'ISOSetting', 180 => 0x24, 181 => 0x26, 182 => 0x1c, 183 => 0x13, 188 => 0x6, 224 => 0x13, 330 => '17.3', 380 => 0x27, 401 => 0x16, 402 => 0x14, 403 => 0x2, 412 => 0x6d, 413 => 0x0 }, - 'isospeed' => { 118 => 0x8833, 478 => 'ISOSpeed' }, + 'isosensitivitystep' => { 284 => '6.2', 286 => '6.2' }, + 'isosetting' => { 139 => 0x5e, 151 => 0x14, 155 => 'ISOSetting', 180 => 0x24, 181 => 0x26, 182 => 0x1c, 183 => 0x13, 188 => 0x6, 224 => 0x13, 332 => '17.3', 382 => 0x27, 403 => 0x16, 404 => 0x14, 405 => 0x2, 414 => 0x6d, 415 => 0x0 }, + 'isospeed' => { 118 => 0x8833, 480 => 'ISOSpeed' }, 'isospeedexpansion' => { 82 => 0x3 }, 'isospeedincrements' => { 83 => 0x102 }, - 'isospeedlatitudeyyy' => { 118 => 0x8834, 478 => 'ISOSpeedLatitudeyyy' }, - 'isospeedlatitudezzz' => { 118 => 0x8835, 478 => 'ISOSpeedLatitudezzz' }, + 'isospeedlatitudeyyy' => { 118 => 0x8834, 480 => 'ISOSpeedLatitudeyyy' }, + 'isospeedlatitudezzz' => { 118 => 0x8835, 480 => 'ISOSpeedLatitudezzz' }, 'isospeedrange' => { 83 => 0x103 }, - 'isostepsize' => { 274 => '6.1', 275 => '7.2', 277 => '7.2', 278 => '7.2', 283 => '4.1', 287 => '7.2', 288 => '7.2' }, - 'isovalue' => { 296 => 0x1001 }, - 'isrccode' => { 374 => "\xa9isr" }, - 'issn' => { 487 => 'issn' }, - 'issueidentifier' => { 487 => 'issueIdentifier' }, - 'issuename' => { 487 => 'issueName' }, - 'issueteaser' => { 487 => 'issueTeaser' }, - 'issuetype' => { 487 => 'issueType' }, - 'istranslationof' => { 487 => 'isTranslationOf' }, + 'isostepsize' => { 276 => '6.1', 277 => '7.2', 279 => '7.2', 280 => '7.2', 285 => '4.1', 289 => '7.2', 290 => '7.2' }, + 'isovalue' => { 298 => 0x1001 }, + 'isrccode' => { 376 => "\xa9isr" }, + 'issn' => { 489 => 'issn' }, + 'issueidentifier' => { 489 => 'issueIdentifier' }, + 'issuename' => { 489 => 'issueName' }, + 'issueteaser' => { 489 => 'issueTeaser' }, + 'issuetype' => { 489 => 'issueType' }, + 'istranslationof' => { 489 => 'isTranslationOf' }, 'itemsubtype' => { 177 => 'ItemSubType' }, - 'itunesu' => { 366 => 'itnu' }, + 'itunesu' => { 368 => 'itnu' }, 'jobid' => { 130 => 0xb8 }, - 'jobname' => { 479 => 'JobName' }, - 'jobref' => { 496 => 'JobRef' }, - 'jobrefid' => { 496 => [\'JobRef','JobRefId'] }, - 'jobrefname' => { 496 => [\'JobRef','JobRefName'] }, - 'jobrefurl' => { 496 => [\'JobRef','JobRefUrl'] }, - 'jobstatus' => { 479 => 'JobStatus' }, - 'jpeg-heifswitch' => { 414 => 0x2039 }, - 'jpeghandling' => { 471 => 'JPEGHandling', 473 => 'JPEGHandling' }, - 'jpegquality' => { 10 => 0x66, 314 => 0x43, 316 => 0x3034, 414 => 0xb047 }, - 'jpegsize' => { 316 => 0x303a }, - 'jpgcompression' => { 243 => 0x7d4 }, - 'jpgfromraw' => { 96 => 0x2007, 113 => 'Exif-JpgFromRaw', 319 => 0x2e }, + 'jobname' => { 481 => 'JobName' }, + 'jobref' => { 498 => 'JobRef' }, + 'jobrefid' => { 498 => [\'JobRef','JobRefId'] }, + 'jobrefname' => { 498 => [\'JobRef','JobRefName'] }, + 'jobrefurl' => { 498 => [\'JobRef','JobRefUrl'] }, + 'jobstatus' => { 481 => 'JobStatus' }, + 'jpeg-heifswitch' => { 416 => 0x2039 }, + 'jpeghandling' => { 473 => 'JPEGHandling', 475 => 'JPEGHandling' }, + 'jpegquality' => { 10 => 0x66, 316 => 0x43, 318 => 0x3034, 416 => 0xb047 }, + 'jpegsize' => { 318 => 0x303a }, + 'jpgcompression' => { 244 => 0x7d4 }, + 'jpgfromraw' => { 96 => 0x2007, 113 => 'Exif-JpgFromRaw', 321 => 0x2e }, 'jpgfromrawlength' => { 118 => [0x117,0x202] }, 'jpgfromrawstart' => { 118 => [0x111,0x201] }, - 'jpgrecordedpixels' => { 330 => '14.1' }, - 'jurisdiction' => { 469 => 'jurisdiction' }, - 'kelvinwb_01' => { 338 => 0x5 }, - 'kelvinwb_02' => { 338 => 0x9 }, - 'kelvinwb_03' => { 338 => 0xd }, - 'kelvinwb_04' => { 338 => 0x11 }, - 'kelvinwb_05' => { 338 => 0x15 }, - 'kelvinwb_06' => { 338 => 0x19 }, - 'kelvinwb_07' => { 338 => 0x1d }, - 'kelvinwb_08' => { 338 => 0x21 }, - 'kelvinwb_09' => { 338 => 0x25 }, - 'kelvinwb_10' => { 338 => 0x29 }, - 'kelvinwb_11' => { 338 => 0x2d }, - 'kelvinwb_12' => { 338 => 0x31 }, - 'kelvinwb_13' => { 338 => 0x35 }, - 'kelvinwb_14' => { 338 => 0x39 }, - 'kelvinwb_15' => { 338 => 0x3d }, - 'kelvinwb_16' => { 338 => 0x41 }, - 'kelvinwb_daylight' => { 338 => 0x1 }, + 'jpgrecordedpixels' => { 332 => '14.1' }, + 'jurisdiction' => { 471 => 'jurisdiction' }, + 'kelvinwb_01' => { 340 => 0x5 }, + 'kelvinwb_02' => { 340 => 0x9 }, + 'kelvinwb_03' => { 340 => 0xd }, + 'kelvinwb_04' => { 340 => 0x11 }, + 'kelvinwb_05' => { 340 => 0x15 }, + 'kelvinwb_06' => { 340 => 0x19 }, + 'kelvinwb_07' => { 340 => 0x1d }, + 'kelvinwb_08' => { 340 => 0x21 }, + 'kelvinwb_09' => { 340 => 0x25 }, + 'kelvinwb_10' => { 340 => 0x29 }, + 'kelvinwb_11' => { 340 => 0x2d }, + 'kelvinwb_12' => { 340 => 0x31 }, + 'kelvinwb_13' => { 340 => 0x35 }, + 'kelvinwb_14' => { 340 => 0x39 }, + 'kelvinwb_15' => { 340 => 0x3d }, + 'kelvinwb_16' => { 340 => 0x41 }, + 'kelvinwb_daylight' => { 340 => 0x1 }, 'kerneldenominators' => { 137 => 0x933 }, - 'key' => { 497 => 'key' }, - 'keystonecompensation' => { 295 => 0x1900 }, - 'keystonedirection' => { 295 => 0x1901 }, - 'keystonevalue' => { 295 => 0x1906 }, - 'keyword' => { 366 => 'keyw', 487 => 'keyword' }, + 'key' => { 499 => 'key' }, + 'keystonecompensation' => { 297 => 0x1900 }, + 'keystonedirection' => { 297 => 0x1901 }, + 'keystonevalue' => { 297 => 0x1906 }, + 'keyword' => { 368 => 'keyw', 489 => 'keyword' }, 'keywordinfo' => { 170 => 'Keywords' }, - 'keywords' => { 130 => 0x19, 156 => 'Keywords', 300 => 'Keywords', 365 => 'Keywords', 368 => 'keywords', 466 => 'keywords', 484 => 'Keywords', 495 => 'Keywords' }, - 'killdate' => { 487 => 'killDate' }, - 'killdatea-platform' => { 487 => [\'killDate','killDateA-platform'] }, - 'killdatedate' => { 487 => [\'killDate','killDateDate'] }, + 'keywords' => { 130 => 0x19, 156 => 'Keywords', 302 => 'Keywords', 367 => 'Keywords', 370 => 'keywords', 468 => 'keywords', 486 => 'Keywords', 497 => 'Keywords' }, + 'killdate' => { 489 => 'killDate' }, + 'killdatea-platform' => { 489 => [\'killDate','killDateA-platform'] }, + 'killdatedate' => { 489 => [\'killDate','killDateDate'] }, 'kodakimageheight' => { 136 => 0xf908, 139 => 0xe, 141 => [0xfa1e,0xfa52], 147 => 0x70 }, 'kodakimagewidth' => { 136 => 0xf907, 139 => 0xc, 141 => [0xfa1d,0xfa51], 147 => 0x6c }, 'kodakinfotype' => { 136 => 0xfa00 }, 'kodaklook' => { 137 => 0xe4c }, 'kodaklookprofile' => { 137 => 0x138a }, 'kodakmaker' => { 147 => 0x8 }, 'kodakmodel' => { 139 => 0x0, 147 => 0x28 }, 'kodaktag' => { 137 => 0x3ea }, 'kodakversion' => { 137 => 0x0 }, - 'label' => { 304 => 'Label', 495 => 'Label' }, - 'labelname1' => { 481 => [\'TagStructure','TagStructureLabelName'] }, - 'labelname2' => { 481 => [\'TagStructure','TagStructureSubLabelsLabelName'] }, - 'labelname3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsLabelName'] }, - 'labelname4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsLabelName'] }, - 'labelname5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, - 'labelname6' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, - 'landmark' => { 314 => 0x6f }, + 'label' => { 306 => 'Label', 497 => 'Label' }, + 'labelname1' => { 483 => [\'TagStructure','TagStructureLabelName'] }, + 'labelname2' => { 483 => [\'TagStructure','TagStructureSubLabelsLabelName'] }, + 'labelname3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsLabelName'] }, + 'labelname4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsLabelName'] }, + 'labelname5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, + 'labelname6' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, + 'landmark' => { 316 => 0x6f }, 'landscapeoutputhighlightpoint' => { 108 => 0x26 }, 'landscapeoutputshadowpoint' => { 108 => 0x27 }, 'landscaperawcolortone' => { 108 => 0x1f }, 'landscaperawcontrast' => { 108 => 0x21 }, 'landscaperawhighlight' => { 108 => 0x77 }, @@ -3643,276 +3645,276 @@ my %tagLookup = ( 'landscaperawshadowpoint' => { 108 => 0x25 }, 'landscaperawsharpness' => { 108 => 0x23 }, 'landscapeunsharpmaskfineness' => { 108 => 0xa0 }, 'landscapeunsharpmaskstrength' => { 108 => 0x9e }, 'landscapeunsharpmaskthreshold' => { 108 => 0xa2 }, - 'language' => { 474 => 'language' }, + 'language' => { 476 => 'language' }, 'languageidentifier' => { 130 => 0x87 }, - 'largestvalidinteriorrectheight' => { 459 => 'LargestValidInteriorRectHeight' }, - 'largestvalidinteriorrectleft' => { 459 => 'LargestValidInteriorRectLeft' }, - 'largestvalidinteriorrecttop' => { 459 => 'LargestValidInteriorRectTop' }, - 'largestvalidinteriorrectwidth' => { 459 => 'LargestValidInteriorRectWidth' }, + 'largestvalidinteriorrectheight' => { 461 => 'LargestValidInteriorRectHeight' }, + 'largestvalidinteriorrectleft' => { 461 => 'LargestValidInteriorRectLeft' }, + 'largestvalidinteriorrecttop' => { 461 => 'LargestValidInteriorRectTop' }, + 'largestvalidinteriorrectwidth' => { 461 => 'LargestValidInteriorRectWidth' }, 'lastfilenumber' => { 180 => 0x1b }, 'lastkeywordiptc' => { 177 => 'LastKeywordIPTC' }, 'lastkeywordxmp' => { 177 => 'LastKeywordXMP' }, - 'lastphotodate' => { 459 => 'LastPhotoDate' }, - 'lasturl' => { 498 => 'LastURL' }, - 'lateralchromaticaberration' => { 414 => 0x2012 }, - 'lateralchromaticaberrationcorrectionalreadyapplied' => { 468 => 'LateralChromaticAberrationCorrectionAlreadyApplied' }, + 'lastphotodate' => { 461 => 'LastPhotoDate' }, + 'lasturl' => { 500 => 'LastURL' }, + 'lateralchromaticaberration' => { 416 => 0x2012 }, + 'lateralchromaticaberrationcorrectionalreadyapplied' => { 470 => 'LateralChromaticAberrationCorrectionAlreadyApplied' }, 'latestageorhigheststage' => { 117 => [\'GeologicalContext','GeologicalContextLatestAgeOrHighestStage'] }, 'latesteonorhighesteonothem' => { 117 => [\'GeologicalContext','GeologicalContextLatestEonOrHighestEonothem'] }, 'latestepochorhighestseries' => { 117 => [\'GeologicalContext','GeologicalContextLatestEpochOrHighestSeries'] }, 'latesteraorhighesterathem' => { 117 => [\'GeologicalContext','GeologicalContextLatestEraOrHighestErathem'] }, 'latestperiodorhighestsystem' => { 117 => [\'GeologicalContext','GeologicalContextLatestPeriodOrHighestSystem'] }, 'latitude' => { 115 => 'Latitude' }, - 'lc1' => { 340 => 0x2 }, - 'lc10' => { 340 => 0xb }, - 'lc11' => { 340 => 0xc }, - 'lc12' => { 340 => 0xd }, - 'lc14' => { 340 => 0xf }, - 'lc15' => { 340 => 0x10 }, - 'lc3' => { 340 => 0x4 }, - 'lc4' => { 340 => 0x5 }, - 'lc5' => { 340 => 0x6 }, - 'lc6' => { 340 => 0x7 }, - 'lc7' => { 340 => 0x8 }, - 'lc8' => { 340 => 0x9 }, + 'lc1' => { 342 => 0x2 }, + 'lc10' => { 342 => 0xb }, + 'lc11' => { 342 => 0xc }, + 'lc12' => { 342 => 0xd }, + 'lc14' => { 342 => 0xf }, + 'lc15' => { 342 => 0x10 }, + 'lc3' => { 342 => 0x4 }, + 'lc4' => { 342 => 0x5 }, + 'lc5' => { 342 => 0x6 }, + 'lc6' => { 342 => 0x7 }, + 'lc7' => { 342 => 0x8 }, + 'lc8' => { 342 => 0x9 }, 'lcddisplayatpoweron' => { 83 => 0x811, 87 => 0xa }, 'lcddisplayreturntoshoot' => { 88 => 0x12 }, - 'lcdillumination' => { 274 => '17.5', 275 => '5.2', 277 => '5.1', 278 => '5.1', 283 => '10.3', 284 => '4.2', 287 => '5.2', 288 => '5.1', 289 => '5.4' }, + 'lcdillumination' => { 276 => '17.5', 277 => '5.2', 279 => '5.1', 280 => '5.1', 285 => '10.3', 286 => '4.2', 289 => '5.2', 290 => '5.1', 291 => '5.4' }, 'lcdilluminationduringbulb' => { 83 => 0x408 }, 'lcdmatrix' => { 137 => 0xe74 }, 'lcdmatrixchickfix' => { 137 => 0xe75 }, 'lcdmatrixmarvin' => { 137 => 0xe76 }, 'lcdpanels' => { 82 => 0x8 }, - 'lcheditor' => { 267 => 0x8ae85e }, - 'legacyiptcdigest' => { 485 => 'LegacyIPTCDigest' }, - 'legalcode' => { 469 => 'legalcode' }, - 'lens' => { 118 => 0xfdea, 224 => 0x84, 468 => 'Lens' }, + 'lcheditor' => { 269 => 0x8ae85e }, + 'legacyiptcdigest' => { 487 => 'LegacyIPTCDigest' }, + 'legalcode' => { 471 => 'legalcode' }, + 'lens' => { 118 => 0xfdea, 224 => 0x84, 470 => 'Lens' }, 'lensafstopbutton' => { 81 => 0x11, 82 => 0x13, 83 => 0x506, 84 => 0x10, 85 => 0x12, 88 => 0x13, 89 => 0x9 }, - 'lensaperturerange' => { 391 => [0x30,0x48] }, - 'lenscorrectionsettings' => { 476 => 'LensCorrectionSettings' }, - 'lensdistortinfo' => { 468 => 'LensDistortInfo' }, - 'lensdistortionparams' => { 296 => 0x206 }, + 'lensaperturerange' => { 393 => [0x30,0x48] }, + 'lenscorrectionsettings' => { 478 => 'LensCorrectionSettings' }, + 'lensdistortinfo' => { 470 => 'LensDistortInfo' }, + 'lensdistortionparams' => { 298 => 0x206 }, 'lensdrivenoaf' => { 83 => 0x505 }, 'lensdrivewhenafimpossible' => { 2 => 0xb }, - 'lense-mountversion' => { 403 => 0x3f0, 447 => 0xd }, - 'lensfirmware' => { 382 => 0x20, 388 => 0xa004 }, - 'lensfirmwareversion' => { 292 => 0x204, 314 => 0x60, 403 => 0x3f3, 447 => 0x14 }, - 'lensfocallength' => { 102 => 0xf0512, 340 => 0x9 }, - 'lensfocalrange' => { 391 => [0xa,0x2a] }, - 'lensfocusfunctionbuttons' => { 275 => '55.1', 277 => '52.1', 278 => '52.1', 287 => '52.1', 288 => '52.1' }, - 'lensformat' => { 426 => 0x1891, 428 => 0x18bd, 429 => 0x18ed, 430 => 0x17f1, 432 => 0x106, 433 => 0x106, 443 => 0x603, 444 => 0x5d }, - 'lensfstops' => { 216 => 0x7, 217 => 0xc, 218 => 0xd, 222 => 0xe, 224 => 0x8b, 340 => '0.3' }, - 'lensid' => { 222 => 0x30, 468 => 'LensID' }, + 'lense-mountversion' => { 405 => 0x3f0, 449 => 0xd }, + 'lensfirmware' => { 384 => 0x20, 390 => 0xa004 }, + 'lensfirmwareversion' => { 294 => 0x204, 316 => 0x60, 405 => 0x3f3, 449 => 0x14 }, + 'lensfocallength' => { 102 => 0xf0512, 342 => 0x9 }, + 'lensfocalrange' => { 393 => [0xa,0x2a] }, + 'lensfocusfunctionbuttons' => { 277 => '55.1', 279 => '52.1', 280 => '52.1', 289 => '52.1', 290 => '52.1' }, + 'lensformat' => { 428 => 0x1891, 430 => 0x18bd, 431 => 0x18ed, 432 => 0x17f1, 434 => 0x106, 435 => 0x106, 445 => 0x603, 446 => 0x5d }, + 'lensfstops' => { 216 => 0x7, 217 => 0xc, 218 => 0xd, 222 => 0xe, 224 => 0x8b, 342 => '0.3' }, + 'lensid' => { 222 => 0x30, 470 => 'LensID' }, 'lensidnumber' => { 216 => 0x6, 217 => 0xb, 218 => 0xc, 222 => 0xd }, - 'lensinfo' => { 118 => 0xa432, 346 => 0x2a, 468 => 'LensInfo', 478 => 'LensSpecification' }, - 'lenskind' => { 340 => 0x1 }, - 'lensmake' => { 118 => 0xa433, 162 => 'Make', 478 => 'LensMake' }, - 'lensmanualdistortionamount' => { 471 => 'LensManualDistortionAmount', 473 => 'LensManualDistortionAmount' }, + 'lensinfo' => { 118 => 0xa432, 348 => 0x2a, 470 => 'LensInfo', 480 => 'LensSpecification' }, + 'lenskind' => { 342 => 0x1 }, + 'lensmake' => { 118 => 0xa433, 162 => 'Make', 480 => 'LensMake' }, + 'lensmanualdistortionamount' => { 473 => 'LensManualDistortionAmount', 475 => 'LensManualDistortionAmount' }, 'lensmanufacturer' => { 177 => 'LensManufacturer' }, - 'lensmaxaperturerange' => { 391 => 0x2b }, - 'lensmodel' => { 7 => 0x937, 14 => 0x92b, 15 => 0x933, 63 => 0x95, 118 => 0xa434, 162 => 'Model', 177 => 'LensModel', 219 => 0x18a, 220 => 0x18b, 221 => 0x2ac, 292 => 0x203, 346 => 0xc, 358 => 0x412, 478 => 'LensModel' }, + 'lensmaxaperturerange' => { 393 => 0x2b }, + 'lensmodel' => { 7 => 0x937, 14 => 0x92b, 15 => 0x933, 63 => 0x95, 118 => 0xa434, 162 => 'Model', 177 => 'LensModel', 219 => 0x18a, 220 => 0x18b, 221 => 0x2ac, 294 => 0x203, 348 => 0xc, 360 => 0x412, 480 => 'LensModel' }, 'lensmodulationoptimizer' => { 126 => 0x1045 }, - 'lensmount' => { 403 => 0x99, 426 => 0x1892, 428 => 0x18be, 429 => 0x18ee, 430 => 0x17f2, 432 => 0x105, 433 => 0x105, 443 => 0x604, 444 => 0x5e }, - 'lensmount2' => { 447 => 0x8 }, - 'lensprofilechromaticaberrationscale' => { 471 => 'LensProfileChromaticAberrationScale', 473 => 'LensProfileChromaticAberrationScale' }, - 'lensprofiledigest' => { 471 => 'LensProfileDigest', 473 => 'LensProfileDigest' }, - 'lensprofiledistortionscale' => { 471 => 'LensProfileDistortionScale', 473 => 'LensProfileDistortionScale' }, - 'lensprofileenable' => { 471 => 'LensProfileEnable', 473 => 'LensProfileEnable' }, - 'lensprofilefilename' => { 471 => 'LensProfileFilename', 473 => 'LensProfileFilename' }, - 'lensprofileisembedded' => { 471 => 'LensProfileIsEmbedded', 473 => 'LensProfileIsEmbedded' }, - 'lensprofilematchkeycameramodelname' => { 471 => 'LensProfileMatchKeyCameraModelName', 473 => 'LensProfileMatchKeyCameraModelName' }, - 'lensprofilematchkeyexifmake' => { 471 => 'LensProfileMatchKeyExifMake', 473 => 'LensProfileMatchKeyExifMake' }, - 'lensprofilematchkeyexifmodel' => { 471 => 'LensProfileMatchKeyExifModel', 473 => 'LensProfileMatchKeyExifModel' }, - 'lensprofilematchkeyisraw' => { 471 => 'LensProfileMatchKeyIsRaw', 473 => 'LensProfileMatchKeyIsRaw' }, - 'lensprofilematchkeylensid' => { 471 => 'LensProfileMatchKeyLensID', 473 => 'LensProfileMatchKeyLensID' }, - 'lensprofilematchkeylensinfo' => { 471 => 'LensProfileMatchKeyLensInfo', 473 => 'LensProfileMatchKeyLensInfo' }, - 'lensprofilematchkeylensname' => { 471 => 'LensProfileMatchKeyLensName', 473 => 'LensProfileMatchKeyLensName' }, - 'lensprofilematchkeysensorformatfactor' => { 471 => 'LensProfileMatchKeySensorFormatFactor', 473 => 'LensProfileMatchKeySensorFormatFactor' }, - 'lensprofilename' => { 471 => 'LensProfileName', 473 => 'LensProfileName' }, - 'lensprofilesetup' => { 471 => 'LensProfileSetup', 473 => 'LensProfileSetup' }, - 'lensprofilevignettingscale' => { 471 => 'LensProfileVignettingScale', 473 => 'LensProfileVignettingScale' }, - 'lensproperties' => { 292 => 0x20b }, - 'lensserialnumber' => { 21 => 0x164, 32 => 0x16b, 61 => 0x0, 118 => 0xa435, 162 => 'SerialNumber', 292 => 0x202, 312 => 0x321, 314 => 0x52, 374 => 'LENS', 382 => 0x30, 468 => 'LensSerialNumber', 478 => 'LensSerialNumber' }, + 'lensmount' => { 405 => 0x99, 428 => 0x1892, 430 => 0x18be, 431 => 0x18ee, 432 => 0x17f2, 434 => 0x105, 435 => 0x105, 445 => 0x604, 446 => 0x5e }, + 'lensmount2' => { 449 => 0x8 }, + 'lensprofilechromaticaberrationscale' => { 473 => 'LensProfileChromaticAberrationScale', 475 => 'LensProfileChromaticAberrationScale' }, + 'lensprofiledigest' => { 473 => 'LensProfileDigest', 475 => 'LensProfileDigest' }, + 'lensprofiledistortionscale' => { 473 => 'LensProfileDistortionScale', 475 => 'LensProfileDistortionScale' }, + 'lensprofileenable' => { 473 => 'LensProfileEnable', 475 => 'LensProfileEnable' }, + 'lensprofilefilename' => { 473 => 'LensProfileFilename', 475 => 'LensProfileFilename' }, + 'lensprofileisembedded' => { 473 => 'LensProfileIsEmbedded', 475 => 'LensProfileIsEmbedded' }, + 'lensprofilematchkeycameramodelname' => { 473 => 'LensProfileMatchKeyCameraModelName', 475 => 'LensProfileMatchKeyCameraModelName' }, + 'lensprofilematchkeyexifmake' => { 473 => 'LensProfileMatchKeyExifMake', 475 => 'LensProfileMatchKeyExifMake' }, + 'lensprofilematchkeyexifmodel' => { 473 => 'LensProfileMatchKeyExifModel', 475 => 'LensProfileMatchKeyExifModel' }, + 'lensprofilematchkeyisraw' => { 473 => 'LensProfileMatchKeyIsRaw', 475 => 'LensProfileMatchKeyIsRaw' }, + 'lensprofilematchkeylensid' => { 473 => 'LensProfileMatchKeyLensID', 475 => 'LensProfileMatchKeyLensID' }, + 'lensprofilematchkeylensinfo' => { 473 => 'LensProfileMatchKeyLensInfo', 475 => 'LensProfileMatchKeyLensInfo' }, + 'lensprofilematchkeylensname' => { 473 => 'LensProfileMatchKeyLensName', 475 => 'LensProfileMatchKeyLensName' }, + 'lensprofilematchkeysensorformatfactor' => { 473 => 'LensProfileMatchKeySensorFormatFactor', 475 => 'LensProfileMatchKeySensorFormatFactor' }, + 'lensprofilename' => { 473 => 'LensProfileName', 475 => 'LensProfileName' }, + 'lensprofilesetup' => { 473 => 'LensProfileSetup', 475 => 'LensProfileSetup' }, + 'lensprofilevignettingscale' => { 473 => 'LensProfileVignettingScale', 475 => 'LensProfileVignettingScale' }, + 'lensproperties' => { 294 => 0x20b }, + 'lensserialnumber' => { 21 => 0x164, 32 => 0x16b, 61 => 0x0, 118 => 0xa435, 162 => 'SerialNumber', 294 => 0x202, 314 => 0x321, 316 => 0x52, 376 => 'LENS', 384 => 0x30, 470 => 'LensSerialNumber', 480 => 'LensSerialNumber' }, 'lensshutterlock' => { 183 => 0x4a }, - 'lensspec' => { 398 => 0x0, 399 => 0x0, 400 => 0x0, 414 => 0xb02a }, - 'lensspecfeatures' => { 432 => [0x115,0x116], 433 => [0x116,0x1ed,0x1f0,0x21c,0x21e] }, - 'lenstemperature' => { 296 => 0x1008 }, - 'lenstype' => { 7 => 0xe2, 8 => 0xd, 9 => 0x1a7, 10 => 0xc, 11 => 0x111, 12 => 0xc, 13 => 0x14f, 14 => 0xd6, 15 => 0xde, 16 => 0xf6, 17 => 0xea, 18 => 0xff, 19 => [0xc,0x97], 20 => 0xe6, 21 => 0x153, 22 => 0xea, 23 => 0xe8, 24 => 0x127, 25 => 0x161, 26 => 0x166, 27 => 0x184, 28 => 0x112, 29 => 0x189, 34 => 0x16, 185 => 0x10c, 186 => 0x49bd, 224 => 0x83, 292 => 0x201, 305 => 0x16, 309 => 0x310, 311 => 0x303, 312 => 0x303, 314 => 0x51, 316 => 0x3405, 341 => 0x0, 342 => 0x0, 343 => 0x1, 344 => 0x1, 345 => 0x1, 347 => 0x0, 388 => 0xa003, 391 => 0x27, 414 => 0xb027, 426 => 0x1896, 428 => 0x18c2, 429 => 0x18f2, 430 => 0x17f6, 432 => 0x109, 433 => 0x109, 443 => 0x608, 444 => 0x62 }, - 'lenstype2' => { 403 => 0x3f7, 426 => 0x1893, 428 => 0x18bf, 429 => 0x18ef, 430 => 0x17f3, 432 => 0x107, 433 => 0x107, 443 => 0x605, 444 => 0x60 }, - 'lenstype3' => { 447 => 0x9 }, - 'lenstypemake' => { 314 => 0xc4 }, - 'lenstypemodel' => { 314 => [0xc5,0xe4] }, - 'lenszoomposition' => { 440 => 0x19, 441 => 0x1e, 444 => [0x342,0x34e,0x35a] }, - 'levelindicator' => { 322 => 0x15 }, - 'levelmeter' => { 374 => ['Lvlm','lvlm'] }, - 'levelorientation' => { 348 => 0x0 }, - 'license' => { 469 => 'license' }, - 'licensee' => { 301 => 'Licensee' }, - 'licenseeid' => { 301 => [\'Licensee','LicenseeLicenseeID'] }, - 'licenseeimageid' => { 301 => 'LicenseeImageID' }, - 'licenseeimagenotes' => { 301 => 'LicenseeImageNotes' }, - 'licenseename' => { 301 => [\'Licensee','LicenseeLicenseeName'] }, - 'licenseenddate' => { 301 => 'LicenseEndDate' }, - 'licenseeprojectreference' => { 301 => 'LicenseeProjectReference' }, - 'licenseetransactionid' => { 301 => 'LicenseeTransactionID' }, - 'licenseid' => { 301 => 'LicenseID' }, - 'licensestartdate' => { 301 => 'LicenseStartDate' }, - 'licensetransactiondate' => { 301 => 'LicenseTransactionDate' }, - 'licensetype' => { 475 => 'licensetype' }, - 'licensor' => { 301 => 'Licensor' }, - 'licensorcity' => { 301 => [\'Licensor','LicensorLicensorCity'] }, - 'licensorcountry' => { 301 => [\'Licensor','LicensorLicensorCountry'] }, - 'licensoremail' => { 301 => [\'Licensor','LicensorLicensorEmail'] }, - 'licensorextendedaddress' => { 301 => [\'Licensor','LicensorLicensorExtendedAddress'] }, - 'licensorid' => { 301 => [\'Licensor','LicensorLicensorID'] }, - 'licensorimageid' => { 301 => 'LicensorImageID' }, - 'licensorname' => { 301 => [\'Licensor','LicensorLicensorName'] }, - 'licensornotes' => { 301 => 'LicensorNotes' }, - 'licensorpostalcode' => { 301 => [\'Licensor','LicensorLicensorPostalCode'] }, - 'licensorregion' => { 301 => [\'Licensor','LicensorLicensorRegion'] }, - 'licensorstreetaddress' => { 301 => [\'Licensor','LicensorLicensorStreetAddress'] }, - 'licensortelephone1' => { 301 => [\'Licensor','LicensorLicensorTelephone1'] }, - 'licensortelephone2' => { 301 => [\'Licensor','LicensorLicensorTelephone2'] }, - 'licensortelephonetype1' => { 301 => [\'Licensor','LicensorLicensorTelephoneType1'] }, - 'licensortelephonetype2' => { 301 => [\'Licensor','LicensorLicensorTelephoneType2'] }, - 'licensortransactionid' => { 301 => 'LicensorTransactionID' }, - 'licensorurl' => { 301 => [\'Licensor','LicensorLicensorURL'] }, - 'lightcondition' => { 296 => 0x1009 }, + 'lensspec' => { 400 => 0x0, 401 => 0x0, 402 => 0x0, 416 => 0xb02a }, + 'lensspecfeatures' => { 434 => [0x115,0x116], 435 => [0x116,0x1ed,0x1f0,0x21c,0x21e] }, + 'lenstemperature' => { 298 => 0x1008 }, + 'lenstype' => { 7 => 0xe2, 8 => 0xd, 9 => 0x1a7, 10 => 0xc, 11 => 0x111, 12 => 0xc, 13 => 0x14f, 14 => 0xd6, 15 => 0xde, 16 => 0xf6, 17 => 0xea, 18 => 0xff, 19 => [0xc,0x97], 20 => 0xe6, 21 => 0x153, 22 => 0xea, 23 => 0xe8, 24 => 0x127, 25 => 0x161, 26 => 0x166, 27 => 0x184, 28 => 0x112, 29 => 0x189, 34 => 0x16, 185 => 0x10c, 186 => 0x49bd, 224 => 0x83, 294 => 0x201, 307 => 0x16, 311 => 0x310, 313 => 0x303, 314 => 0x303, 316 => 0x51, 318 => 0x3405, 343 => 0x0, 344 => 0x0, 345 => 0x1, 346 => 0x1, 347 => 0x1, 349 => 0x0, 390 => 0xa003, 393 => 0x27, 416 => 0xb027, 428 => 0x1896, 430 => 0x18c2, 431 => 0x18f2, 432 => 0x17f6, 434 => 0x109, 435 => 0x109, 445 => 0x608, 446 => 0x62 }, + 'lenstype2' => { 405 => 0x3f7, 428 => 0x1893, 430 => 0x18bf, 431 => 0x18ef, 432 => 0x17f3, 434 => 0x107, 435 => 0x107, 445 => 0x605, 446 => 0x60 }, + 'lenstype3' => { 449 => 0x9 }, + 'lenstypemake' => { 316 => 0xc4 }, + 'lenstypemodel' => { 316 => [0xc5,0xe4] }, + 'lenszoomposition' => { 442 => 0x19, 443 => 0x1e, 446 => [0x342,0x34e,0x35a] }, + 'levelindicator' => { 324 => 0x15 }, + 'levelmeter' => { 376 => ['Lvlm','lvlm'] }, + 'levelorientation' => { 350 => 0x0 }, + 'license' => { 471 => 'license' }, + 'licensee' => { 303 => 'Licensee' }, + 'licenseeid' => { 303 => [\'Licensee','LicenseeLicenseeID'] }, + 'licenseeimageid' => { 303 => 'LicenseeImageID' }, + 'licenseeimagenotes' => { 303 => 'LicenseeImageNotes' }, + 'licenseename' => { 303 => [\'Licensee','LicenseeLicenseeName'] }, + 'licenseenddate' => { 303 => 'LicenseEndDate' }, + 'licenseeprojectreference' => { 303 => 'LicenseeProjectReference' }, + 'licenseetransactionid' => { 303 => 'LicenseeTransactionID' }, + 'licenseid' => { 303 => 'LicenseID' }, + 'licensestartdate' => { 303 => 'LicenseStartDate' }, + 'licensetransactiondate' => { 303 => 'LicenseTransactionDate' }, + 'licensetype' => { 477 => 'licensetype' }, + 'licensor' => { 303 => 'Licensor' }, + 'licensorcity' => { 303 => [\'Licensor','LicensorLicensorCity'] }, + 'licensorcountry' => { 303 => [\'Licensor','LicensorLicensorCountry'] }, + 'licensoremail' => { 303 => [\'Licensor','LicensorLicensorEmail'] }, + 'licensorextendedaddress' => { 303 => [\'Licensor','LicensorLicensorExtendedAddress'] }, + 'licensorid' => { 303 => [\'Licensor','LicensorLicensorID'] }, + 'licensorimageid' => { 303 => 'LicensorImageID' }, + 'licensorname' => { 303 => [\'Licensor','LicensorLicensorName'] }, + 'licensornotes' => { 303 => 'LicensorNotes' }, + 'licensorpostalcode' => { 303 => [\'Licensor','LicensorLicensorPostalCode'] }, + 'licensorregion' => { 303 => [\'Licensor','LicensorLicensorRegion'] }, + 'licensorstreetaddress' => { 303 => [\'Licensor','LicensorLicensorStreetAddress'] }, + 'licensortelephone1' => { 303 => [\'Licensor','LicensorLicensorTelephone1'] }, + 'licensortelephone2' => { 303 => [\'Licensor','LicensorLicensorTelephone2'] }, + 'licensortelephonetype1' => { 303 => [\'Licensor','LicensorLicensorTelephoneType1'] }, + 'licensortelephonetype2' => { 303 => [\'Licensor','LicensorLicensorTelephoneType2'] }, + 'licensortransactionid' => { 303 => 'LicensorTransactionID' }, + 'licensorurl' => { 303 => [\'Licensor','LicensorLicensorURL'] }, + 'lightcondition' => { 298 => 0x1009 }, 'lightingmode' => { 112 => 0x302a }, - 'lightreading' => { 349 => 0x15 }, - 'lightsource' => { 118 => 0x9208, 224 => 0x90, 299 => 0x1000, 477 => 'LightSource' }, - 'lightsourcespecial' => { 390 => 0x21d }, - 'lightswitch' => { 287 => '0.1', 289 => '0.1' }, - 'lightvaluecenter' => { 296 => 0x103d }, - 'lightvalueperiphery' => { 296 => 0x103e }, - 'limitafareamodeselection' => { 275 => '51.1', 277 => '49.1', 278 => '49.1', 287 => '49.1', 288 => '49.1' }, - 'linearitylimitblue' => { 319 => 0x10 }, - 'linearitylimitgreen' => { 319 => 0xf }, - 'linearitylimitred' => { 319 => 0xe }, + 'lightreading' => { 351 => 0x15 }, + 'lightsource' => { 118 => 0x9208, 224 => 0x90, 301 => 0x1000, 479 => 'LightSource' }, + 'lightsourcespecial' => { 392 => 0x21d }, + 'lightswitch' => { 289 => '0.1', 291 => '0.1' }, + 'lightvaluecenter' => { 298 => 0x103d }, + 'lightvalueperiphery' => { 298 => 0x103e }, + 'limitafareamodeselection' => { 277 => '51.1', 279 => '49.1', 280 => '49.1', 289 => '49.1', 290 => '49.1' }, + 'linearitylimitblue' => { 321 => 0x10 }, + 'linearitylimitgreen' => { 321 => 0xf }, + 'linearitylimitred' => { 321 => 0xe }, 'linearityuppermargin' => { 41 => 0x32c, 42 => 0x282, 45 => [0x2ba,0x2d1,0x2d5], 47 => 0x1e5, 48 => [0x1fe,0x2de], 49 => [0x232,0x310], 50 => 0x31e }, 'linearizationtable' => { 118 => 0xc618 }, 'linearresponselimit' => { 118 => 0xc62e }, - 'link' => { 487 => 'link' }, - 'linkaetoafpoint' => { 330 => '14.2' }, - 'linkedencodedrightsexpr' => { 483 => [\'LinkedEncRightsExpr','LinkedEncRightsExprLinkedRightsExpr'] }, - 'linkedencodedrightsexprlangid' => { 483 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprLangId'] }, - 'linkedencodedrightsexprtype' => { 483 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprEncType'] }, - 'linkedencrightsexpr' => { 483 => 'LinkedEncRightsExpr' }, + 'link' => { 489 => 'link' }, + 'linkaetoafpoint' => { 332 => '14.2' }, + 'linkedencodedrightsexpr' => { 485 => [\'LinkedEncRightsExpr','LinkedEncRightsExprLinkedRightsExpr'] }, + 'linkedencodedrightsexprlangid' => { 485 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprLangId'] }, + 'linkedencodedrightsexprtype' => { 485 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprEncType'] }, + 'linkedencrightsexpr' => { 485 => 'LinkedEncRightsExpr' }, 'linlogcoring' => { 137 => 0x904 }, 'lithostratigraphicterms' => { 117 => [\'GeologicalContext','GeologicalContextLithostratigraphicTerms'] }, - 'livephotoauto' => { 368 => 'live-photo.auto' }, - 'livephotovitalityscore' => { 368 => 'live-photo.vitality-score' }, - 'livephotovitalityscoringversion' => { 368 => 'live-photo.vitality-scoring-version' }, - 'liveviewaf' => { 279 => '32.1', 289 => '34.1' }, - 'liveviewafareamode' => { 284 => '34.1' }, - 'liveviewafmethod' => { 419 => 0x20 }, - 'liveviewafmode' => { 284 => '34.2' }, - 'liveviewafsetting' => { 403 => 0x36 }, - 'liveviewbuttonoptions' => { 275 => '50.2', 277 => '48.2', 278 => '48.2', 287 => '48.2', 288 => '48.2' }, + 'livephotoauto' => { 370 => 'live-photo.auto' }, + 'livephotovitalityscore' => { 370 => 'live-photo.vitality-score' }, + 'livephotovitalityscoringversion' => { 370 => 'live-photo.vitality-scoring-version' }, + 'liveviewaf' => { 281 => '32.1', 291 => '34.1' }, + 'liveviewafareamode' => { 286 => '34.1' }, + 'liveviewafmethod' => { 421 => 0x20 }, + 'liveviewafmode' => { 286 => '34.2' }, + 'liveviewafsetting' => { 405 => 0x36 }, + 'liveviewbuttonoptions' => { 277 => '50.2', 279 => '48.2', 280 => '48.2', 289 => '48.2', 290 => '48.2' }, 'liveviewexposuresimulation' => { 83 => 0x810 }, - 'liveviewfocusmode' => { 403 => [0x8b,0x28b] }, - 'liveviewmetering' => { 403 => [0x84,0x284] }, - 'liveviewmonitorofftime' => { 275 => '21.2', 277 => '21.2', 278 => '21.2', 280 => '20.2', 281 => '20.2', 282 => '20.2', 284 => '20.2', 287 => '21.2', 288 => '21.2' }, + 'liveviewfocusmode' => { 405 => [0x8b,0x28b] }, + 'liveviewmetering' => { 405 => [0x84,0x284] }, + 'liveviewmonitorofftime' => { 277 => '21.2', 279 => '21.2', 280 => '21.2', 282 => '20.2', 283 => '20.2', 284 => '20.2', 286 => '20.2', 289 => '21.2', 290 => '21.2' }, 'liveviewshooting' => { 57 => 0x13 }, 'livingspecimen' => { 117 => 'LivingSpecimen' }, 'livingspecimenmaterialsampleid' => { 117 => [\'LivingSpecimen','LivingSpecimenMaterialSampleID'] }, 'localcaption' => { 130 => 0x79 }, 'localizedcameramodel' => { 118 => 0xc615 }, - 'locallocationname' => { 388 => 0x30 }, - 'location' => { 223 => 0x9, 314 => 0x67, 464 => 'Location', 482 => 'Location', 486 => 'location', 487 => 'location' }, - 'locationaccuracyhorizontal' => { 368 => 'location.accuracy.horizontal' }, - 'locationareacode' => { 470 => 'lac' }, - 'locationbody' => { 368 => 'location.body' }, - 'locationcreated' => { 483 => 'LocationCreated' }, - 'locationcreatedcity' => { 483 => [\'LocationCreated','LocationCreatedCity'] }, - 'locationcreatedcountrycode' => { 483 => [\'LocationCreated','LocationCreatedCountryCode'] }, - 'locationcreatedcountryname' => { 483 => [\'LocationCreated','LocationCreatedCountryName'] }, - 'locationcreatedgpsaltitude' => { 483 => [\'LocationCreated','LocationCreatedGPSAltitude'] }, - 'locationcreatedgpslatitude' => { 483 => [\'LocationCreated','LocationCreatedGPSLatitude'] }, - 'locationcreatedgpslongitude' => { 483 => [\'LocationCreated','LocationCreatedGPSLongitude'] }, - 'locationcreatedidentifier' => { 483 => [\'LocationCreated','LocationCreatedIdentifier'] }, - 'locationcreatedlocationid' => { 483 => [\'LocationCreated','LocationCreatedLocationId'] }, - 'locationcreatedlocationname' => { 483 => [\'LocationCreated','LocationCreatedLocationName'] }, - 'locationcreatedprovincestate' => { 483 => [\'LocationCreated','LocationCreatedProvinceState'] }, - 'locationcreatedsublocation' => { 483 => [\'LocationCreated','LocationCreatedSublocation'] }, - 'locationcreatedworldregion' => { 483 => [\'LocationCreated','LocationCreatedWorldRegion'] }, - 'locationdate' => { 368 => 'location.date' }, - 'locationinformation' => { 374 => 'loci' }, + 'locallocationname' => { 390 => 0x30 }, + 'location' => { 223 => 0x9, 316 => 0x67, 466 => 'Location', 484 => 'Location', 488 => 'location', 489 => 'location' }, + 'locationaccuracyhorizontal' => { 370 => 'location.accuracy.horizontal' }, + 'locationareacode' => { 472 => 'lac' }, + 'locationbody' => { 370 => 'location.body' }, + 'locationcreated' => { 485 => 'LocationCreated' }, + 'locationcreatedcity' => { 485 => [\'LocationCreated','LocationCreatedCity'] }, + 'locationcreatedcountrycode' => { 485 => [\'LocationCreated','LocationCreatedCountryCode'] }, + 'locationcreatedcountryname' => { 485 => [\'LocationCreated','LocationCreatedCountryName'] }, + 'locationcreatedgpsaltitude' => { 485 => [\'LocationCreated','LocationCreatedGPSAltitude'] }, + 'locationcreatedgpslatitude' => { 485 => [\'LocationCreated','LocationCreatedGPSLatitude'] }, + 'locationcreatedgpslongitude' => { 485 => [\'LocationCreated','LocationCreatedGPSLongitude'] }, + 'locationcreatedidentifier' => { 485 => [\'LocationCreated','LocationCreatedIdentifier'] }, + 'locationcreatedlocationid' => { 485 => [\'LocationCreated','LocationCreatedLocationId'] }, + 'locationcreatedlocationname' => { 485 => [\'LocationCreated','LocationCreatedLocationName'] }, + 'locationcreatedprovincestate' => { 485 => [\'LocationCreated','LocationCreatedProvinceState'] }, + 'locationcreatedsublocation' => { 485 => [\'LocationCreated','LocationCreatedSublocation'] }, + 'locationcreatedworldregion' => { 485 => [\'LocationCreated','LocationCreatedWorldRegion'] }, + 'locationdate' => { 370 => 'location.date' }, + 'locationinformation' => { 376 => 'loci' }, 'locationinfoversion' => { 223 => 0x0 }, - 'locationname' => { 368 => 'location.name', 388 => 0x31 }, - 'locationnote' => { 368 => 'location.note' }, - 'locationrole' => { 368 => 'location.role' }, - 'locationshown' => { 483 => 'LocationShown' }, - 'locationshowncity' => { 483 => [\'LocationShown','LocationShownCity'] }, - 'locationshowncountrycode' => { 483 => [\'LocationShown','LocationShownCountryCode'] }, - 'locationshowncountryname' => { 483 => [\'LocationShown','LocationShownCountryName'] }, - 'locationshowngpsaltitude' => { 483 => [\'LocationShown','LocationShownGPSAltitude'] }, - 'locationshowngpslatitude' => { 483 => [\'LocationShown','LocationShownGPSLatitude'] }, - 'locationshowngpslongitude' => { 483 => [\'LocationShown','LocationShownGPSLongitude'] }, - 'locationshownidentifier' => { 483 => [\'LocationShown','LocationShownIdentifier'] }, - 'locationshownlocationid' => { 483 => [\'LocationShown','LocationShownLocationId'] }, - 'locationshownlocationname' => { 483 => [\'LocationShown','LocationShownLocationName'] }, - 'locationshownprovincestate' => { 483 => [\'LocationShown','LocationShownProvinceState'] }, - 'locationshownsublocation' => { 483 => [\'LocationShown','LocationShownSublocation'] }, - 'locationshownworldregion' => { 483 => [\'LocationShown','LocationShownWorldRegion'] }, + 'locationname' => { 370 => 'location.name', 390 => 0x31 }, + 'locationnote' => { 370 => 'location.note' }, + 'locationrole' => { 370 => 'location.role' }, + 'locationshown' => { 485 => 'LocationShown' }, + 'locationshowncity' => { 485 => [\'LocationShown','LocationShownCity'] }, + 'locationshowncountrycode' => { 485 => [\'LocationShown','LocationShownCountryCode'] }, + 'locationshowncountryname' => { 485 => [\'LocationShown','LocationShownCountryName'] }, + 'locationshowngpsaltitude' => { 485 => [\'LocationShown','LocationShownGPSAltitude'] }, + 'locationshowngpslatitude' => { 485 => [\'LocationShown','LocationShownGPSLatitude'] }, + 'locationshowngpslongitude' => { 485 => [\'LocationShown','LocationShownGPSLongitude'] }, + 'locationshownidentifier' => { 485 => [\'LocationShown','LocationShownIdentifier'] }, + 'locationshownlocationid' => { 485 => [\'LocationShown','LocationShownLocationId'] }, + 'locationshownlocationname' => { 485 => [\'LocationShown','LocationShownLocationName'] }, + 'locationshownprovincestate' => { 485 => [\'LocationShown','LocationShownProvinceState'] }, + 'locationshownsublocation' => { 485 => [\'LocationShown','LocationShownSublocation'] }, + 'locationshownworldregion' => { 485 => [\'LocationShown','LocationShownWorldRegion'] }, 'lockmicrophonebutton' => { 83 => 0x709 }, - 'logcomment' => { 497 => 'logComment' }, + 'logcomment' => { 499 => 'logComment' }, 'logscale' => { 137 => 0x902 }, - 'longdescription' => { 366 => 'ldes' }, - 'longexposurenoisereduction' => { 62 => 0x4, 83 => 0x201, 84 => 0x1, 85 => 0x2, 86 => 0x1, 87 => 0x1, 88 => 0x2, 89 => 0x1, 314 => 0x49, 401 => 0x2b, 402 => 0x25, 403 => 0x25, 414 => 0x2008, 419 => 0x11, 444 => 0x44 }, + 'longdescription' => { 368 => 'ldes' }, + 'longexposurenoisereduction' => { 62 => 0x4, 83 => 0x201, 84 => 0x1, 85 => 0x2, 86 => 0x1, 87 => 0x1, 88 => 0x2, 89 => 0x1, 316 => 0x49, 403 => 0x2b, 404 => 0x25, 405 => 0x25, 416 => 0x2008, 421 => 0x11, 446 => 0x44 }, 'longexposurenoisereduction2' => { 57 => 0x8 }, - 'longexposurenrused' => { 314 => 0xbe }, + 'longexposurenrused' => { 316 => 0xbe }, 'longitude' => { 115 => 'Longitude' }, - 'look' => { 471 => 'Look', 473 => 'Look' }, - 'lookamount' => { 471 => [\'Look','LookAmount'], 473 => [\'Look','LookAmount'] }, - 'lookcluster' => { 471 => [\'Look','LookCluster'], 473 => [\'Look','LookCluster'] }, - 'lookcopyright' => { 471 => [\'Look','LookCopyright'], 473 => [\'Look','LookCopyright'] }, - 'lookgroup' => { 471 => [\'Look','LookGroup'], 473 => [\'Look','LookGroup'] }, - 'lookname' => { 471 => 'LookName', 473 => 'LookName' }, - 'lookparameters' => { 471 => [\'Look','LookParameters'], 473 => [\'Look','LookParameters'] }, - 'lookparameterscameraprofile' => { 471 => [\'Look','LookParametersCameraProfile'], 473 => [\'Look','LookParametersCameraProfile'] }, - 'lookparametersclarity2012' => { 471 => [\'Look','LookParametersClarity2012'], 473 => [\'Look','LookParametersClarity2012'] }, - 'lookparametersconverttograyscale' => { 471 => [\'Look','LookParametersConvertToGrayscale'], 473 => [\'Look','LookParametersConvertToGrayscale'] }, - 'lookparameterslooktable' => { 471 => [\'Look','LookParametersLookTable'], 473 => [\'Look','LookParametersLookTable'] }, - 'lookparametersprocessversion' => { 471 => [\'Look','LookParametersProcessVersion'], 473 => [\'Look','LookParametersProcessVersion'] }, - 'lookparameterstonecurvepv2012' => { 471 => [\'Look','LookParametersToneCurvePV2012'], 473 => [\'Look','LookParametersToneCurvePV2012'] }, - 'lookparameterstonecurvepv2012blue' => { 471 => [\'Look','LookParametersToneCurvePV2012Blue'], 473 => [\'Look','LookParametersToneCurvePV2012Blue'] }, - 'lookparameterstonecurvepv2012green' => { 471 => [\'Look','LookParametersToneCurvePV2012Green'], 473 => [\'Look','LookParametersToneCurvePV2012Green'] }, - 'lookparameterstonecurvepv2012red' => { 471 => [\'Look','LookParametersToneCurvePV2012Red'], 473 => [\'Look','LookParametersToneCurvePV2012Red'] }, - 'lookparametersversion' => { 471 => [\'Look','LookParametersVersion'], 473 => [\'Look','LookParametersVersion'] }, - 'looksupportsamount' => { 471 => [\'Look','LookSupportsAmount'], 473 => [\'Look','LookSupportsAmount'] }, - 'looksupportsmonochrome' => { 471 => [\'Look','LookSupportsMonochrome'], 473 => [\'Look','LookSupportsMonochrome'] }, - 'looksupportsoutputreferred' => { 471 => [\'Look','LookSupportsOutputReferred'], 473 => [\'Look','LookSupportsOutputReferred'] }, - 'lookuuid' => { 471 => [\'Look','LookUUID'], 473 => [\'Look','LookUUID'] }, - 'loop' => { 497 => 'loop' }, - 'loopstyle' => { 374 => 'LOOP' }, + 'look' => { 473 => 'Look', 475 => 'Look' }, + 'lookamount' => { 473 => [\'Look','LookAmount'], 475 => [\'Look','LookAmount'] }, + 'lookcluster' => { 473 => [\'Look','LookCluster'], 475 => [\'Look','LookCluster'] }, + 'lookcopyright' => { 473 => [\'Look','LookCopyright'], 475 => [\'Look','LookCopyright'] }, + 'lookgroup' => { 473 => [\'Look','LookGroup'], 475 => [\'Look','LookGroup'] }, + 'lookname' => { 473 => 'LookName', 475 => 'LookName' }, + 'lookparameters' => { 473 => [\'Look','LookParameters'], 475 => [\'Look','LookParameters'] }, + 'lookparameterscameraprofile' => { 473 => [\'Look','LookParametersCameraProfile'], 475 => [\'Look','LookParametersCameraProfile'] }, + 'lookparametersclarity2012' => { 473 => [\'Look','LookParametersClarity2012'], 475 => [\'Look','LookParametersClarity2012'] }, + 'lookparametersconverttograyscale' => { 473 => [\'Look','LookParametersConvertToGrayscale'], 475 => [\'Look','LookParametersConvertToGrayscale'] }, + 'lookparameterslooktable' => { 473 => [\'Look','LookParametersLookTable'], 475 => [\'Look','LookParametersLookTable'] }, + 'lookparametersprocessversion' => { 473 => [\'Look','LookParametersProcessVersion'], 475 => [\'Look','LookParametersProcessVersion'] }, + 'lookparameterstonecurvepv2012' => { 473 => [\'Look','LookParametersToneCurvePV2012'], 475 => [\'Look','LookParametersToneCurvePV2012'] }, + 'lookparameterstonecurvepv2012blue' => { 473 => [\'Look','LookParametersToneCurvePV2012Blue'], 475 => [\'Look','LookParametersToneCurvePV2012Blue'] }, + 'lookparameterstonecurvepv2012green' => { 473 => [\'Look','LookParametersToneCurvePV2012Green'], 475 => [\'Look','LookParametersToneCurvePV2012Green'] }, + 'lookparameterstonecurvepv2012red' => { 473 => [\'Look','LookParametersToneCurvePV2012Red'], 475 => [\'Look','LookParametersToneCurvePV2012Red'] }, + 'lookparametersversion' => { 473 => [\'Look','LookParametersVersion'], 475 => [\'Look','LookParametersVersion'] }, + 'looksupportsamount' => { 473 => [\'Look','LookSupportsAmount'], 475 => [\'Look','LookSupportsAmount'] }, + 'looksupportsmonochrome' => { 473 => [\'Look','LookSupportsMonochrome'], 475 => [\'Look','LookSupportsMonochrome'] }, + 'looksupportsoutputreferred' => { 473 => [\'Look','LookSupportsOutputReferred'], 475 => [\'Look','LookSupportsOutputReferred'] }, + 'lookuuid' => { 473 => [\'Look','LookUUID'], 475 => [\'Look','LookUUID'] }, + 'loop' => { 499 => 'loop' }, + 'loopstyle' => { 376 => 'LOOP' }, 'lowestbiostratigraphiczone' => { 117 => [\'GeologicalContext','GeologicalContextLowestBiostratigraphicZone'] }, - 'luminanceadjustmentaqua' => { 471 => 'LuminanceAdjustmentAqua', 473 => 'LuminanceAdjustmentAqua' }, - 'luminanceadjustmentblue' => { 471 => 'LuminanceAdjustmentBlue', 473 => 'LuminanceAdjustmentBlue' }, - 'luminanceadjustmentgreen' => { 471 => 'LuminanceAdjustmentGreen', 473 => 'LuminanceAdjustmentGreen' }, - 'luminanceadjustmentmagenta' => { 471 => 'LuminanceAdjustmentMagenta', 473 => 'LuminanceAdjustmentMagenta' }, - 'luminanceadjustmentorange' => { 471 => 'LuminanceAdjustmentOrange', 473 => 'LuminanceAdjustmentOrange' }, - 'luminanceadjustmentpurple' => { 471 => 'LuminanceAdjustmentPurple', 473 => 'LuminanceAdjustmentPurple' }, - 'luminanceadjustmentred' => { 471 => 'LuminanceAdjustmentRed', 473 => 'LuminanceAdjustmentRed' }, - 'luminanceadjustmentyellow' => { 471 => 'LuminanceAdjustmentYellow', 473 => 'LuminanceAdjustmentYellow' }, + 'luminanceadjustmentaqua' => { 473 => 'LuminanceAdjustmentAqua', 475 => 'LuminanceAdjustmentAqua' }, + 'luminanceadjustmentblue' => { 473 => 'LuminanceAdjustmentBlue', 475 => 'LuminanceAdjustmentBlue' }, + 'luminanceadjustmentgreen' => { 473 => 'LuminanceAdjustmentGreen', 475 => 'LuminanceAdjustmentGreen' }, + 'luminanceadjustmentmagenta' => { 473 => 'LuminanceAdjustmentMagenta', 475 => 'LuminanceAdjustmentMagenta' }, + 'luminanceadjustmentorange' => { 473 => 'LuminanceAdjustmentOrange', 475 => 'LuminanceAdjustmentOrange' }, + 'luminanceadjustmentpurple' => { 473 => 'LuminanceAdjustmentPurple', 475 => 'LuminanceAdjustmentPurple' }, + 'luminanceadjustmentred' => { 473 => 'LuminanceAdjustmentRed', 475 => 'LuminanceAdjustmentRed' }, + 'luminanceadjustmentyellow' => { 473 => 'LuminanceAdjustmentYellow', 475 => 'LuminanceAdjustmentYellow' }, 'luminancecurvelimits' => { 107 => 0x150 }, 'luminancecurvepoints' => { 107 => 0x126 }, - 'luminancenoisereduction' => { 102 => 0x20600, 108 => 0x5f, 391 => 0x1b }, - 'luminancenoisereductioncontrast' => { 471 => 'LuminanceNoiseReductionContrast', 473 => 'LuminanceNoiseReductionContrast' }, - 'luminancenoisereductiondetail' => { 471 => 'LuminanceNoiseReductionDetail', 473 => 'LuminanceNoiseReductionDetail' }, + 'luminancenoisereduction' => { 102 => 0x20600, 108 => 0x5f, 393 => 0x1b }, + 'luminancenoisereductioncontrast' => { 473 => 'LuminanceNoiseReductionContrast', 475 => 'LuminanceNoiseReductionContrast' }, + 'luminancenoisereductiondetail' => { 473 => 'LuminanceNoiseReductionDetail', 475 => 'LuminanceNoiseReductionDetail' }, 'luminancenr_tiff_jpeg' => { 108 => 0x6d }, - 'luminancesmoothing' => { 471 => 'LuminanceSmoothing', 473 => 'LuminanceSmoothing' }, + 'luminancesmoothing' => { 473 => 'LuminanceSmoothing', 475 => 'LuminanceSmoothing' }, 'lvshootingareadisplay' => { 83 => [0x40b,0x40c] }, - 'lyrics' => { 366 => "\xa9lyr", 374 => "\xa9lyr", 497 => 'lyrics' }, - 'lyricsuri' => { 374 => 'lrcu' }, - 'm16cversion' => { 309 => 0x333 }, - 'macatom' => { 472 => 'macAtom' }, - 'macatomapplicationcode' => { 472 => [\'macAtom','macAtomApplicationCode'] }, - 'macatominvocationappleevent' => { 472 => [\'macAtom','macAtomInvocationAppleEvent'] }, - 'macatomposixprojectpath' => { 472 => [\'macAtom','macAtomPosixProjectPath'] }, + 'lyrics' => { 368 => "\xa9lyr", 376 => "\xa9lyr", 499 => 'lyrics' }, + 'lyricsuri' => { 376 => 'lrcu' }, + 'm16cversion' => { 311 => 0x333 }, + 'macatom' => { 474 => 'macAtom' }, + 'macatomapplicationcode' => { 474 => [\'macAtom','macAtomApplicationCode'] }, + 'macatominvocationappleevent' => { 474 => [\'macAtom','macAtomInvocationAppleEvent'] }, + 'macatomposixprojectpath' => { 474 => [\'macAtom','macAtomPosixProjectPath'] }, 'machineobservation' => { 117 => 'MachineObservation' }, 'machineobservationday' => { 117 => [\'MachineObservation','MachineObservationDay'] }, 'machineobservationearliestdate' => { 117 => [\'MachineObservation','MachineObservationEarliestDate'] }, 'machineobservationenddayofyear' => { 117 => [\'MachineObservation','MachineObservationEndDayOfYear'] }, 'machineobservationeventdate' => { 117 => [\'MachineObservation','MachineObservationEventDate'] }, @@ -3930,23 +3932,23 @@ my %tagLookup = ( 'machineobservationsamplingeffort' => { 117 => [\'MachineObservation','MachineObservationSamplingEffort'] }, 'machineobservationsamplingprotocol' => { 117 => [\'MachineObservation','MachineObservationSamplingProtocol'] }, 'machineobservationstartdayofyear' => { 117 => [\'MachineObservation','MachineObservationStartDayOfYear'] }, 'machineobservationverbatimeventdate' => { 117 => [\'MachineObservation','MachineObservationVerbatimEventDate'] }, 'machineobservationyear' => { 117 => [\'MachineObservation','MachineObservationYear'] }, - 'macro' => { 126 => 0x1020, 128 => 0x202, 150 => 0x2b, 296 => 0x202, 380 => 0x21, 390 => 0x202, 414 => 0xb040 }, - 'macroled' => { 294 => 0x120a }, + 'macro' => { 126 => 0x1020, 128 => 0x202, 150 => 0x2b, 298 => 0x202, 382 => 0x21, 392 => 0x202, 416 => 0xb040 }, + 'macroled' => { 296 => 0x120a }, 'macromagnification' => { 7 => 0x1b, 11 => 0x1b, 14 => 0x1b, 15 => 0x1b, 19 => 0x1b, 20 => 0x1b, 57 => 0x10 }, - 'macromode' => { 34 => 0x1, 180 => 0xb, 291 => 0x300, 314 => 0x1c, 381 => 0x1009 }, + 'macromode' => { 34 => 0x1, 180 => 0xb, 293 => 0x300, 316 => 0x1c, 383 => 0x1009 }, 'magentahsl' => { 102 => 0x20917 }, - 'magicfilter' => { 291 => 0x52c }, + 'magicfilter' => { 293 => 0x52c }, 'magnifiedview' => { 85 => 0x11, 87 => 0x9 }, 'mainboardversion' => { 137 => 0x438 }, - 'maindialexposurecomp' => { 285 => '0.6' }, - 'mainingredient' => { 489 => 'mainIngredient' }, - 'majorversion' => { 462 => 'MajorVersion' }, - 'make' => { 97 => 0x0, 114 => 0x1, 118 => 0x10f, 155 => 'Make', 304 => 'Make', 319 => 0x10f, 368 => 'make', 374 => ['@mak',"\xa9mak"], 486 => 'make', 493 => 'Make' }, - 'makernote' => { 477 => 'MakerNote' }, + 'maindialexposurecomp' => { 287 => '0.6' }, + 'mainingredient' => { 491 => 'mainIngredient' }, + 'majorversion' => { 464 => 'MajorVersion' }, + 'make' => { 97 => 0x0, 114 => 0x1, 118 => 0x10f, 155 => 'Make', 306 => 'Make', 321 => 0x10f, 370 => 'make', 376 => ['@mak',"\xa9mak"], 488 => 'make', 495 => 'Make' }, + 'makernote' => { 479 => 'MakerNote' }, 'makernoteapple' => { 116 => 'MakN', 118 => 0x927c }, 'makernotecanon' => { 116 => 'MakN', 118 => 0x927c }, 'makernotecasio' => { 116 => 'MakN', 118 => 0x927c }, 'makernotecasio2' => { 116 => 'MakN', 118 => 0x927c }, 'makernotedji' => { 116 => 'MakN', 118 => 0x927c }, @@ -3996,11 +3998,11 @@ my %tagLookup = ( 'makernotemotorola' => { 116 => 'MakN', 118 => 0x927c }, 'makernotenikon' => { 116 => 'MakN', 118 => 0x927c }, 'makernotenikon2' => { 116 => 'MakN', 118 => 0x927c }, 'makernotenikon3' => { 116 => 'MakN', 118 => 0x927c }, 'makernotenintendo' => { 116 => 'MakN', 118 => 0x927c }, - 'makernoteoffset' => { 390 => 0xff }, + 'makernoteoffset' => { 392 => 0xff }, 'makernoteolympus' => { 116 => 'MakN', 118 => 0x927c }, 'makernoteolympus2' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepanasonic' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepanasonic2' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepanasonic3' => { 116 => 'MakN', 118 => 0x927c }, @@ -4008,11 +4010,11 @@ my %tagLookup = ( 'makernotepentax2' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepentax3' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepentax4' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepentax5' => { 116 => 'MakN', 118 => 0x927c }, 'makernotepentax6' => { 116 => 'MakN', 118 => 0x927c }, - 'makernotepentaxunknown' => { 374 => 'PXMN' }, + 'makernotepentaxunknown' => { 376 => 'PXMN' }, 'makernotephaseone' => { 116 => 'MakN', 118 => 0x927c }, 'makernotereconyx' => { 116 => 'MakN', 118 => 0x927c }, 'makernotereconyx2' => { 116 => 'MakN', 118 => 0x927c }, 'makernotereconyx3' => { 116 => 'MakN', 118 => 0x927c }, 'makernotericoh' => { 116 => 'MakN', 118 => 0x927c }, @@ -4032,294 +4034,294 @@ my %tagLookup = ( 'makernotesony3' => { 116 => 'MakN', 118 => 0x927c }, 'makernotesony4' => { 116 => 'MakN', 118 => 0x927c }, 'makernotesony5' => { 116 => 'MakN', 118 => 0x927c }, 'makernotesonyericsson' => { 116 => 'MakN', 118 => 0x927c }, 'makernotesonysrf' => { 116 => 'MakN', 118 => 0x927c }, - 'makernotetype' => { 381 => 0x1 }, + 'makernotetype' => { 383 => 0x1 }, 'makernoteunknown' => { 116 => 'MakN', 118 => 0x927c }, 'makernoteunknownbinary' => { 116 => 'MakN', 118 => 0x927c }, 'makernoteunknowntext' => { 116 => 'MakN', 118 => 0x927c }, - 'makernoteversion' => { 185 => 0x0, 224 => 0x1, 296 => 0x0, 314 => 0x8000, 385 => 0x0, 388 => 0x1, 391 => [0x1d,0x1f], 404 => 0x2000 }, - 'makerurl' => { 374 => "\xa9mal" }, - 'managedfrom' => { 498 => 'ManagedFrom' }, - 'managedfromalternatepaths' => { 498 => [\'ManagedFrom','ManagedFromAlternatePaths'] }, - 'managedfromdocumentid' => { 498 => [\'ManagedFrom','ManagedFromDocumentID'] }, - 'managedfromfilepath' => { 498 => [\'ManagedFrom','ManagedFromFilePath'] }, - 'managedfromfrompart' => { 498 => [\'ManagedFrom','ManagedFromFromPart'] }, - 'managedfrominstanceid' => { 498 => [\'ManagedFrom','ManagedFromInstanceID'] }, - 'managedfromlastmodifydate' => { 498 => [\'ManagedFrom','ManagedFromLastModifyDate'] }, - 'managedfromlasturl' => { 498 => [\'ManagedFrom','ManagedFromLastURL'] }, - 'managedfromlinkcategory' => { 498 => [\'ManagedFrom','ManagedFromLinkCategory'] }, - 'managedfromlinkform' => { 498 => [\'ManagedFrom','ManagedFromLinkForm'] }, - 'managedfrommanager' => { 498 => [\'ManagedFrom','ManagedFromManager'] }, - 'managedfrommanagervariant' => { 498 => [\'ManagedFrom','ManagedFromManagerVariant'] }, - 'managedfrommanageto' => { 498 => [\'ManagedFrom','ManagedFromManageTo'] }, - 'managedfrommanageui' => { 498 => [\'ManagedFrom','ManagedFromManageUI'] }, - 'managedfrommaskmarkers' => { 498 => [\'ManagedFrom','ManagedFromMaskMarkers'] }, - 'managedfromoriginaldocumentid' => { 498 => [\'ManagedFrom','ManagedFromOriginalDocumentID'] }, - 'managedfrompartmapping' => { 498 => [\'ManagedFrom','ManagedFromPartMapping'] }, - 'managedfromplacedresolutionunit' => { 498 => [\'ManagedFrom','ManagedFromPlacedResolutionUnit'] }, - 'managedfromplacedxresolution' => { 498 => [\'ManagedFrom','ManagedFromPlacedXResolution'] }, - 'managedfromplacedyresolution' => { 498 => [\'ManagedFrom','ManagedFromPlacedYResolution'] }, - 'managedfromrenditionclass' => { 498 => [\'ManagedFrom','ManagedFromRenditionClass'] }, - 'managedfromrenditionparams' => { 498 => [\'ManagedFrom','ManagedFromRenditionParams'] }, - 'managedfromtopart' => { 498 => [\'ManagedFrom','ManagedFromToPart'] }, - 'managedfromversionid' => { 498 => [\'ManagedFrom','ManagedFromVersionID'] }, - 'manager' => { 498 => 'Manager' }, - 'managervariant' => { 498 => 'ManagerVariant' }, - 'manageto' => { 498 => 'ManageTo' }, - 'manageui' => { 498 => 'ManageUI' }, - 'manifest' => { 498 => 'Manifest' }, - 'manifestlinkform' => { 498 => [\'Manifest','ManifestLinkForm'] }, - 'manifestplacedresolutionunit' => { 498 => [\'Manifest','ManifestPlacedResolutionUnit'] }, - 'manifestplacedxresolution' => { 498 => [\'Manifest','ManifestPlacedXResolution'] }, - 'manifestplacedyresolution' => { 498 => [\'Manifest','ManifestPlacedYResolution'] }, - 'manifestreference' => { 498 => [\'Manifest','ManifestReference'] }, - 'manifestreferencealternatepaths' => { 498 => [\'Manifest','ManifestReferenceAlternatePaths'] }, - 'manifestreferencedocumentid' => { 498 => [\'Manifest','ManifestReferenceDocumentID'] }, - 'manifestreferencefilepath' => { 498 => [\'Manifest','ManifestReferenceFilePath'] }, - 'manifestreferencefrompart' => { 498 => [\'Manifest','ManifestReferenceFromPart'] }, - 'manifestreferenceinstanceid' => { 498 => [\'Manifest','ManifestReferenceInstanceID'] }, - 'manifestreferencelastmodifydate' => { 498 => [\'Manifest','ManifestReferenceLastModifyDate'] }, - 'manifestreferencelasturl' => { 498 => [\'Manifest','ManifestReferenceLastURL'] }, - 'manifestreferencelinkcategory' => { 498 => [\'Manifest','ManifestReferenceLinkCategory'] }, - 'manifestreferencelinkform' => { 498 => [\'Manifest','ManifestReferenceLinkForm'] }, - 'manifestreferencemanager' => { 498 => [\'Manifest','ManifestReferenceManager'] }, - 'manifestreferencemanagervariant' => { 498 => [\'Manifest','ManifestReferenceManagerVariant'] }, - 'manifestreferencemanageto' => { 498 => [\'Manifest','ManifestReferenceManageTo'] }, - 'manifestreferencemanageui' => { 498 => [\'Manifest','ManifestReferenceManageUI'] }, - 'manifestreferencemaskmarkers' => { 498 => [\'Manifest','ManifestReferenceMaskMarkers'] }, - 'manifestreferenceoriginaldocumentid' => { 498 => [\'Manifest','ManifestReferenceOriginalDocumentID'] }, - 'manifestreferencepartmapping' => { 498 => [\'Manifest','ManifestReferencePartMapping'] }, - 'manifestreferenceplacedresolutionunit' => { 498 => [\'Manifest','ManifestReferencePlacedResolutionUnit'] }, - 'manifestreferenceplacedxresolution' => { 498 => [\'Manifest','ManifestReferencePlacedXResolution'] }, - 'manifestreferenceplacedyresolution' => { 498 => [\'Manifest','ManifestReferencePlacedYResolution'] }, - 'manifestreferencerenditionclass' => { 498 => [\'Manifest','ManifestReferenceRenditionClass'] }, - 'manifestreferencerenditionparams' => { 498 => [\'Manifest','ManifestReferenceRenditionParams'] }, - 'manifestreferencetopart' => { 498 => [\'Manifest','ManifestReferenceToPart'] }, - 'manifestreferenceversionid' => { 498 => [\'Manifest','ManifestReferenceVersionID'] }, - 'manometerpressure' => { 291 => 0x900, 314 => 0x86 }, - 'manometerreading' => { 291 => 0x901 }, + 'makernoteversion' => { 185 => 0x0, 224 => 0x1, 298 => 0x0, 316 => 0x8000, 387 => 0x0, 390 => 0x1, 393 => [0x1d,0x1f], 406 => 0x2000 }, + 'makerurl' => { 376 => "\xa9mal" }, + 'managedfrom' => { 500 => 'ManagedFrom' }, + 'managedfromalternatepaths' => { 500 => [\'ManagedFrom','ManagedFromAlternatePaths'] }, + 'managedfromdocumentid' => { 500 => [\'ManagedFrom','ManagedFromDocumentID'] }, + 'managedfromfilepath' => { 500 => [\'ManagedFrom','ManagedFromFilePath'] }, + 'managedfromfrompart' => { 500 => [\'ManagedFrom','ManagedFromFromPart'] }, + 'managedfrominstanceid' => { 500 => [\'ManagedFrom','ManagedFromInstanceID'] }, + 'managedfromlastmodifydate' => { 500 => [\'ManagedFrom','ManagedFromLastModifyDate'] }, + 'managedfromlasturl' => { 500 => [\'ManagedFrom','ManagedFromLastURL'] }, + 'managedfromlinkcategory' => { 500 => [\'ManagedFrom','ManagedFromLinkCategory'] }, + 'managedfromlinkform' => { 500 => [\'ManagedFrom','ManagedFromLinkForm'] }, + 'managedfrommanager' => { 500 => [\'ManagedFrom','ManagedFromManager'] }, + 'managedfrommanagervariant' => { 500 => [\'ManagedFrom','ManagedFromManagerVariant'] }, + 'managedfrommanageto' => { 500 => [\'ManagedFrom','ManagedFromManageTo'] }, + 'managedfrommanageui' => { 500 => [\'ManagedFrom','ManagedFromManageUI'] }, + 'managedfrommaskmarkers' => { 500 => [\'ManagedFrom','ManagedFromMaskMarkers'] }, + 'managedfromoriginaldocumentid' => { 500 => [\'ManagedFrom','ManagedFromOriginalDocumentID'] }, + 'managedfrompartmapping' => { 500 => [\'ManagedFrom','ManagedFromPartMapping'] }, + 'managedfromplacedresolutionunit' => { 500 => [\'ManagedFrom','ManagedFromPlacedResolutionUnit'] }, + 'managedfromplacedxresolution' => { 500 => [\'ManagedFrom','ManagedFromPlacedXResolution'] }, + 'managedfromplacedyresolution' => { 500 => [\'ManagedFrom','ManagedFromPlacedYResolution'] }, + 'managedfromrenditionclass' => { 500 => [\'ManagedFrom','ManagedFromRenditionClass'] }, + 'managedfromrenditionparams' => { 500 => [\'ManagedFrom','ManagedFromRenditionParams'] }, + 'managedfromtopart' => { 500 => [\'ManagedFrom','ManagedFromToPart'] }, + 'managedfromversionid' => { 500 => [\'ManagedFrom','ManagedFromVersionID'] }, + 'manager' => { 500 => 'Manager' }, + 'managervariant' => { 500 => 'ManagerVariant' }, + 'manageto' => { 500 => 'ManageTo' }, + 'manageui' => { 500 => 'ManageUI' }, + 'manifest' => { 500 => 'Manifest' }, + 'manifestlinkform' => { 500 => [\'Manifest','ManifestLinkForm'] }, + 'manifestplacedresolutionunit' => { 500 => [\'Manifest','ManifestPlacedResolutionUnit'] }, + 'manifestplacedxresolution' => { 500 => [\'Manifest','ManifestPlacedXResolution'] }, + 'manifestplacedyresolution' => { 500 => [\'Manifest','ManifestPlacedYResolution'] }, + 'manifestreference' => { 500 => [\'Manifest','ManifestReference'] }, + 'manifestreferencealternatepaths' => { 500 => [\'Manifest','ManifestReferenceAlternatePaths'] }, + 'manifestreferencedocumentid' => { 500 => [\'Manifest','ManifestReferenceDocumentID'] }, + 'manifestreferencefilepath' => { 500 => [\'Manifest','ManifestReferenceFilePath'] }, + 'manifestreferencefrompart' => { 500 => [\'Manifest','ManifestReferenceFromPart'] }, + 'manifestreferenceinstanceid' => { 500 => [\'Manifest','ManifestReferenceInstanceID'] }, + 'manifestreferencelastmodifydate' => { 500 => [\'Manifest','ManifestReferenceLastModifyDate'] }, + 'manifestreferencelasturl' => { 500 => [\'Manifest','ManifestReferenceLastURL'] }, + 'manifestreferencelinkcategory' => { 500 => [\'Manifest','ManifestReferenceLinkCategory'] }, + 'manifestreferencelinkform' => { 500 => [\'Manifest','ManifestReferenceLinkForm'] }, + 'manifestreferencemanager' => { 500 => [\'Manifest','ManifestReferenceManager'] }, + 'manifestreferencemanagervariant' => { 500 => [\'Manifest','ManifestReferenceManagerVariant'] }, + 'manifestreferencemanageto' => { 500 => [\'Manifest','ManifestReferenceManageTo'] }, + 'manifestreferencemanageui' => { 500 => [\'Manifest','ManifestReferenceManageUI'] }, + 'manifestreferencemaskmarkers' => { 500 => [\'Manifest','ManifestReferenceMaskMarkers'] }, + 'manifestreferenceoriginaldocumentid' => { 500 => [\'Manifest','ManifestReferenceOriginalDocumentID'] }, + 'manifestreferencepartmapping' => { 500 => [\'Manifest','ManifestReferencePartMapping'] }, + 'manifestreferenceplacedresolutionunit' => { 500 => [\'Manifest','ManifestReferencePlacedResolutionUnit'] }, + 'manifestreferenceplacedxresolution' => { 500 => [\'Manifest','ManifestReferencePlacedXResolution'] }, + 'manifestreferenceplacedyresolution' => { 500 => [\'Manifest','ManifestReferencePlacedYResolution'] }, + 'manifestreferencerenditionclass' => { 500 => [\'Manifest','ManifestReferenceRenditionClass'] }, + 'manifestreferencerenditionparams' => { 500 => [\'Manifest','ManifestReferenceRenditionParams'] }, + 'manifestreferencetopart' => { 500 => [\'Manifest','ManifestReferenceToPart'] }, + 'manifestreferenceversionid' => { 500 => [\'Manifest','ManifestReferenceVersionID'] }, + 'manometerpressure' => { 293 => 0x900, 316 => 0x86 }, + 'manometerreading' => { 293 => 0x901 }, 'manualafpointselectpattern' => { 83 => 0x513 }, 'manualafpointselpattern' => { 2 => 0xf }, - 'manualflash' => { 294 => 0x1209 }, - 'manualflashoutput' => { 34 => 0x29, 276 => '8.2', 279 => '22.2', 280 => '23.1', 281 => '23.2', 283 => '16.2', 284 => '23.2', 285 => '8.2', 286 => '23.2', 289 => '24.2', 381 => 0x100c }, - 'manualflashstrength' => { 291 => 0x406 }, - 'manualfocusdistance' => { 224 => 0x85, 296 => 0x100c, 390 => 0x223 }, + 'manualflash' => { 296 => 0x1209 }, + 'manualflashoutput' => { 34 => 0x29, 278 => '8.2', 281 => '22.2', 282 => '23.1', 283 => '23.2', 285 => '16.2', 286 => '23.2', 287 => '8.2', 288 => '23.2', 291 => '24.2', 383 => 0x100c }, + 'manualflashstrength' => { 293 => 0x406 }, + 'manualfocusdistance' => { 224 => 0x85, 298 => 0x100c, 392 => 0x223 }, 'manualtv' => { 82 => 0x5, 83 => 0x705 }, - 'manufacturedate' => { 190 => 0x6705, 329 => 0x1 }, - 'manufacturedate1' => { 383 => 0x4 }, - 'manufacturedate2' => { 383 => 0x5 }, - 'manufacturer' => { 456 => 'Manufacturer', 486 => 'manufacturer' }, + 'manufacturedate' => { 190 => 0x6705, 331 => 0x1 }, + 'manufacturedate1' => { 385 => 0x4 }, + 'manufacturedate2' => { 385 => 0x5 }, + 'manufacturer' => { 458 => 'Manufacturer', 488 => 'manufacturer' }, 'mariahchromablursize' => { 137 => 0xf0d }, 'mariahmaphithreshold' => { 137 => 0xf0c }, 'mariahmaplothreshold' => { 137 => 0xf0b }, 'mariahsigmathreshold' => { 137 => 0xf0e }, 'mariahtexturethreshold' => { 137 => 0xf0a }, - 'marked' => { 484 => 'Marked', 501 => 'Marked' }, - 'markers' => { 497 => 'markers' }, - 'markerscomment' => { 497 => [\'markers','markersComment'] }, - 'markerscuepointparams' => { 497 => [\'markers','markersCuePointParams'] }, - 'markerscuepointparamskey' => { 497 => [\'markers','markersCuePointParamsKey'] }, - 'markerscuepointparamsvalue' => { 497 => [\'markers','markersCuePointParamsValue'] }, - 'markerscuepointtype' => { 497 => [\'markers','markersCuePointType'] }, - 'markersduration' => { 497 => [\'markers','markersDuration'] }, - 'markerslocation' => { 497 => [\'markers','markersLocation'] }, - 'markersname' => { 497 => [\'markers','markersName'] }, - 'markersprobability' => { 497 => [\'markers','markersProbability'] }, - 'markersspeaker' => { 497 => [\'markers','markersSpeaker'] }, - 'markersstarttime' => { 497 => [\'markers','markersStartTime'] }, - 'markerstarget' => { 497 => [\'markers','markersTarget'] }, - 'markerstype' => { 497 => [\'markers','markersType'] }, + 'marked' => { 486 => 'Marked', 503 => 'Marked' }, + 'markers' => { 499 => 'markers' }, + 'markerscomment' => { 499 => [\'markers','markersComment'] }, + 'markerscuepointparams' => { 499 => [\'markers','markersCuePointParams'] }, + 'markerscuepointparamskey' => { 499 => [\'markers','markersCuePointParamsKey'] }, + 'markerscuepointparamsvalue' => { 499 => [\'markers','markersCuePointParamsValue'] }, + 'markerscuepointtype' => { 499 => [\'markers','markersCuePointType'] }, + 'markersduration' => { 499 => [\'markers','markersDuration'] }, + 'markerslocation' => { 499 => [\'markers','markersLocation'] }, + 'markersname' => { 499 => [\'markers','markersName'] }, + 'markersprobability' => { 499 => [\'markers','markersProbability'] }, + 'markersspeaker' => { 499 => [\'markers','markersSpeaker'] }, + 'markersstarttime' => { 499 => [\'markers','markersStartTime'] }, + 'markerstarget' => { 499 => [\'markers','markersTarget'] }, + 'markerstype' => { 499 => [\'markers','markersType'] }, 'maskedareas' => { 118 => 0xc68e }, - 'maskgroupbasedcorractive' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'] }, - 'maskgroupbasedcorramount' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'] }, - 'maskgroupbasedcorrblacks2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'] }, - 'maskgroupbasedcorrbrightness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'] }, - 'maskgroupbasedcorrclarity' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'] }, - 'maskgroupbasedcorrclarity2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'] }, - 'maskgroupbasedcorrcontrast' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'] }, - 'maskgroupbasedcorrcontrast2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'] }, - 'maskgroupbasedcorrcorrectionname' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'] }, - 'maskgroupbasedcorrcorrectionsyncid' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'] }, - 'maskgroupbasedcorrdefringe' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'] }, - 'maskgroupbasedcorrdehaze' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'] }, - 'maskgroupbasedcorrections' => { 471 => 'MaskGroupBasedCorrections', 473 => 'MaskGroupBasedCorrections' }, - 'maskgroupbasedcorrexposure' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'] }, - 'maskgroupbasedcorrexposure2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'] }, - 'maskgroupbasedcorrhighlights2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'] }, - 'maskgroupbasedcorrhue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'] }, - 'maskgroupbasedcorrluminancenoise' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'] }, - 'maskgroupbasedcorrmask' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'] }, - 'maskgroupbasedcorrmaskalpha' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'] }, - 'maskgroupbasedcorrmaskangle' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'] }, - 'maskgroupbasedcorrmaskbottom' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'] }, - 'maskgroupbasedcorrmaskcentervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'] }, - 'maskgroupbasedcorrmaskcenterweight' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'] }, - 'maskgroupbasedcorrmaskdabs' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'] }, - 'maskgroupbasedcorrmaskfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'] }, - 'maskgroupbasedcorrmaskflipped' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'] }, - 'maskgroupbasedcorrmaskflow' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'] }, - 'maskgroupbasedcorrmaskfullx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'] }, - 'maskgroupbasedcorrmaskfully' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'] }, - 'maskgroupbasedcorrmaskinputdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'] }, - 'maskgroupbasedcorrmaskleft' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'] }, - 'maskgroupbasedcorrmaskmaskactive' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'] }, - 'maskgroupbasedcorrmaskmaskblendmode' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'] }, - 'maskgroupbasedcorrmaskmaskdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'] }, - 'maskgroupbasedcorrmaskmaskinverted' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'] }, - 'maskgroupbasedcorrmaskmaskname' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'] }, - 'maskgroupbasedcorrmaskmasks' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'] }, - 'maskgroupbasedcorrmaskmasksalpha' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'] }, - 'maskgroupbasedcorrmaskmasksangle' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'] }, - 'maskgroupbasedcorrmaskmasksbottom' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'] }, - 'maskgroupbasedcorrmaskmaskscentervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'] }, - 'maskgroupbasedcorrmaskmaskscenterweight' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, - 'maskgroupbasedcorrmaskmasksdabs' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'] }, - 'maskgroupbasedcorrmaskmasksfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'] }, - 'maskgroupbasedcorrmaskmasksflipped' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'] }, - 'maskgroupbasedcorrmaskmasksflow' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'] }, - 'maskgroupbasedcorrmaskmasksfullx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'] }, - 'maskgroupbasedcorrmaskmasksfully' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'] }, - 'maskgroupbasedcorrmaskmasksinputdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'] }, - 'maskgroupbasedcorrmaskmasksleft' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'] }, - 'maskgroupbasedcorrmaskmasksmaskactive' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'] }, - 'maskgroupbasedcorrmaskmasksmaskblendmode' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, - 'maskgroupbasedcorrmaskmasksmaskdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, - 'maskgroupbasedcorrmaskmasksmaskinverted' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, - 'maskgroupbasedcorrmaskmasksmaskname' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'] }, - 'maskgroupbasedcorrmaskmasksmasksubtype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, - 'maskgroupbasedcorrmaskmasksmasksyncid' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, - 'maskgroupbasedcorrmaskmasksmaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, - 'maskgroupbasedcorrmaskmasksmidpoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'] }, - 'maskgroupbasedcorrmaskmasksorigin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'] }, - 'maskgroupbasedcorrmaskmasksperimetervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, - 'maskgroupbasedcorrmaskmasksradius' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'] }, - 'maskgroupbasedcorrmaskmasksreferencepoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, - 'maskgroupbasedcorrmaskmasksright' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'] }, - 'maskgroupbasedcorrmaskmasksroundness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'] }, - 'maskgroupbasedcorrmaskmaskssizex' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'] }, - 'maskgroupbasedcorrmaskmaskssizey' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'] }, - 'maskgroupbasedcorrmaskmaskstop' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'] }, - 'maskgroupbasedcorrmaskmasksubtype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'] }, - 'maskgroupbasedcorrmaskmasksvalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'] }, - 'maskgroupbasedcorrmaskmasksversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'] }, - 'maskgroupbasedcorrmaskmaskswhat' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'] }, - 'maskgroupbasedcorrmaskmaskswholeimagearea' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, - 'maskgroupbasedcorrmaskmasksx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'] }, - 'maskgroupbasedcorrmaskmasksy' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'] }, - 'maskgroupbasedcorrmaskmasksyncid' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'] }, - 'maskgroupbasedcorrmaskmaskszerox' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'] }, - 'maskgroupbasedcorrmaskmaskszeroy' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'] }, - 'maskgroupbasedcorrmaskmaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'] }, - 'maskgroupbasedcorrmaskmidpoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'] }, - 'maskgroupbasedcorrmaskorigin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'] }, - 'maskgroupbasedcorrmaskperimetervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'] }, - 'maskgroupbasedcorrmaskradius' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'] }, - 'maskgroupbasedcorrmaskrange' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, - 'maskgroupbasedcorrmaskrangeareamodels' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, - 'maskgroupbasedcorrmaskrangeareamodelscolorsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'maskgroupbasedcorrmaskrangeareamodelscomponents' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'maskgroupbasedcorrmaskrangecoloramount' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, - 'maskgroupbasedcorrmaskrangedepthfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, - 'maskgroupbasedcorrmaskrangedepthmax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, - 'maskgroupbasedcorrmaskrangedepthmin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, - 'maskgroupbasedcorrmaskrangeinvert' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, - 'maskgroupbasedcorrmaskrangelumfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, - 'maskgroupbasedcorrmaskrangeluminancedepthsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'maskgroupbasedcorrmaskrangelummax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, - 'maskgroupbasedcorrmaskrangelummin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, - 'maskgroupbasedcorrmaskrangelumrange' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, - 'maskgroupbasedcorrmaskrangesampletype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, - 'maskgroupbasedcorrmaskrangetype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, - 'maskgroupbasedcorrmaskrangeversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, - 'maskgroupbasedcorrmaskreferencepoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'] }, - 'maskgroupbasedcorrmaskright' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'] }, - 'maskgroupbasedcorrmaskroundness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'] }, - 'maskgroupbasedcorrmasksizex' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'] }, - 'maskgroupbasedcorrmasksizey' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'] }, - 'maskgroupbasedcorrmasktop' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'] }, - 'maskgroupbasedcorrmaskvalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'] }, - 'maskgroupbasedcorrmaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'] }, - 'maskgroupbasedcorrmaskwhat' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'] }, - 'maskgroupbasedcorrmaskwholeimagearea' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'] }, - 'maskgroupbasedcorrmaskx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'] }, - 'maskgroupbasedcorrmasky' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'] }, - 'maskgroupbasedcorrmaskzerox' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'] }, - 'maskgroupbasedcorrmaskzeroy' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'] }, - 'maskgroupbasedcorrmoire' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'] }, - 'maskgroupbasedcorrrangemask' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'] }, - 'maskgroupbasedcorrrangemaskareamodels' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'] }, - 'maskgroupbasedcorrrangemaskareamodelscolorsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'maskgroupbasedcorrrangemaskareamodelscomponents' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'maskgroupbasedcorrrangemaskcoloramount' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'] }, - 'maskgroupbasedcorrrangemaskdepthfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, - 'maskgroupbasedcorrrangemaskdepthmax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'] }, - 'maskgroupbasedcorrrangemaskdepthmin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'] }, - 'maskgroupbasedcorrrangemaskinvert' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'] }, - 'maskgroupbasedcorrrangemasklumfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'] }, - 'maskgroupbasedcorrrangemaskluminancedepthsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'maskgroupbasedcorrrangemasklummax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'] }, - 'maskgroupbasedcorrrangemasklummin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'] }, - 'maskgroupbasedcorrrangemasklumrange' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'] }, - 'maskgroupbasedcorrrangemasksampletype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'] }, - 'maskgroupbasedcorrrangemasktype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'] }, - 'maskgroupbasedcorrrangemaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'] }, - 'maskgroupbasedcorrsaturation' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'] }, - 'maskgroupbasedcorrshadows2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'] }, - 'maskgroupbasedcorrsharpness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'] }, - 'maskgroupbasedcorrtemperature' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'] }, - 'maskgroupbasedcorrtexture' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'] }, - 'maskgroupbasedcorrtint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'] }, - 'maskgroupbasedcorrtoninghue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'] }, - 'maskgroupbasedcorrtoningsaturation' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'] }, - 'maskgroupbasedcorrwhat' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'] }, - 'maskgroupbasedcorrwhites2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'] }, + 'maskgroupbasedcorractive' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'] }, + 'maskgroupbasedcorramount' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'] }, + 'maskgroupbasedcorrblacks2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'] }, + 'maskgroupbasedcorrbrightness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'] }, + 'maskgroupbasedcorrclarity' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'] }, + 'maskgroupbasedcorrclarity2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'] }, + 'maskgroupbasedcorrcontrast' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'] }, + 'maskgroupbasedcorrcontrast2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'] }, + 'maskgroupbasedcorrcorrectionname' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'] }, + 'maskgroupbasedcorrcorrectionsyncid' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'] }, + 'maskgroupbasedcorrdefringe' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'] }, + 'maskgroupbasedcorrdehaze' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'] }, + 'maskgroupbasedcorrections' => { 473 => 'MaskGroupBasedCorrections', 475 => 'MaskGroupBasedCorrections' }, + 'maskgroupbasedcorrexposure' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'] }, + 'maskgroupbasedcorrexposure2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'] }, + 'maskgroupbasedcorrhighlights2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'] }, + 'maskgroupbasedcorrhue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'] }, + 'maskgroupbasedcorrluminancenoise' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'] }, + 'maskgroupbasedcorrmask' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'] }, + 'maskgroupbasedcorrmaskalpha' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'] }, + 'maskgroupbasedcorrmaskangle' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'] }, + 'maskgroupbasedcorrmaskbottom' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'] }, + 'maskgroupbasedcorrmaskcentervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'] }, + 'maskgroupbasedcorrmaskcenterweight' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'] }, + 'maskgroupbasedcorrmaskdabs' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'] }, + 'maskgroupbasedcorrmaskfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'] }, + 'maskgroupbasedcorrmaskflipped' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'] }, + 'maskgroupbasedcorrmaskflow' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'] }, + 'maskgroupbasedcorrmaskfullx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'] }, + 'maskgroupbasedcorrmaskfully' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'] }, + 'maskgroupbasedcorrmaskinputdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'] }, + 'maskgroupbasedcorrmaskleft' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'] }, + 'maskgroupbasedcorrmaskmaskactive' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'] }, + 'maskgroupbasedcorrmaskmaskblendmode' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'] }, + 'maskgroupbasedcorrmaskmaskdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'] }, + 'maskgroupbasedcorrmaskmaskinverted' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'] }, + 'maskgroupbasedcorrmaskmaskname' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'] }, + 'maskgroupbasedcorrmaskmasks' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'] }, + 'maskgroupbasedcorrmaskmasksalpha' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'] }, + 'maskgroupbasedcorrmaskmasksangle' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'] }, + 'maskgroupbasedcorrmaskmasksbottom' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'] }, + 'maskgroupbasedcorrmaskmaskscentervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'] }, + 'maskgroupbasedcorrmaskmaskscenterweight' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, + 'maskgroupbasedcorrmaskmasksdabs' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'] }, + 'maskgroupbasedcorrmaskmasksfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'] }, + 'maskgroupbasedcorrmaskmasksflipped' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'] }, + 'maskgroupbasedcorrmaskmasksflow' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'] }, + 'maskgroupbasedcorrmaskmasksfullx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'] }, + 'maskgroupbasedcorrmaskmasksfully' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'] }, + 'maskgroupbasedcorrmaskmasksinputdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'] }, + 'maskgroupbasedcorrmaskmasksleft' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'] }, + 'maskgroupbasedcorrmaskmasksmaskactive' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'] }, + 'maskgroupbasedcorrmaskmasksmaskblendmode' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, + 'maskgroupbasedcorrmaskmasksmaskdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, + 'maskgroupbasedcorrmaskmasksmaskinverted' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, + 'maskgroupbasedcorrmaskmasksmaskname' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'] }, + 'maskgroupbasedcorrmaskmasksmasksubtype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, + 'maskgroupbasedcorrmaskmasksmasksyncid' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, + 'maskgroupbasedcorrmaskmasksmaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, + 'maskgroupbasedcorrmaskmasksmidpoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'] }, + 'maskgroupbasedcorrmaskmasksorigin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'] }, + 'maskgroupbasedcorrmaskmasksperimetervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, + 'maskgroupbasedcorrmaskmasksradius' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'] }, + 'maskgroupbasedcorrmaskmasksreferencepoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, + 'maskgroupbasedcorrmaskmasksright' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'] }, + 'maskgroupbasedcorrmaskmasksroundness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'] }, + 'maskgroupbasedcorrmaskmaskssizex' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'] }, + 'maskgroupbasedcorrmaskmaskssizey' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'] }, + 'maskgroupbasedcorrmaskmaskstop' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'] }, + 'maskgroupbasedcorrmaskmasksubtype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'] }, + 'maskgroupbasedcorrmaskmasksvalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'] }, + 'maskgroupbasedcorrmaskmasksversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'] }, + 'maskgroupbasedcorrmaskmaskswhat' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'] }, + 'maskgroupbasedcorrmaskmaskswholeimagearea' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, + 'maskgroupbasedcorrmaskmasksx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'] }, + 'maskgroupbasedcorrmaskmasksy' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'] }, + 'maskgroupbasedcorrmaskmasksyncid' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'] }, + 'maskgroupbasedcorrmaskmaskszerox' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'] }, + 'maskgroupbasedcorrmaskmaskszeroy' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'] }, + 'maskgroupbasedcorrmaskmaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'] }, + 'maskgroupbasedcorrmaskmidpoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'] }, + 'maskgroupbasedcorrmaskorigin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'] }, + 'maskgroupbasedcorrmaskperimetervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'] }, + 'maskgroupbasedcorrmaskradius' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'] }, + 'maskgroupbasedcorrmaskrange' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, + 'maskgroupbasedcorrmaskrangeareamodels' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, + 'maskgroupbasedcorrmaskrangeareamodelscolorsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'maskgroupbasedcorrmaskrangeareamodelscomponents' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'maskgroupbasedcorrmaskrangecoloramount' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, + 'maskgroupbasedcorrmaskrangedepthfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, + 'maskgroupbasedcorrmaskrangedepthmax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, + 'maskgroupbasedcorrmaskrangedepthmin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, + 'maskgroupbasedcorrmaskrangeinvert' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, + 'maskgroupbasedcorrmaskrangelumfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, + 'maskgroupbasedcorrmaskrangeluminancedepthsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'maskgroupbasedcorrmaskrangelummax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, + 'maskgroupbasedcorrmaskrangelummin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, + 'maskgroupbasedcorrmaskrangelumrange' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, + 'maskgroupbasedcorrmaskrangesampletype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, + 'maskgroupbasedcorrmaskrangetype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, + 'maskgroupbasedcorrmaskrangeversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, + 'maskgroupbasedcorrmaskreferencepoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'] }, + 'maskgroupbasedcorrmaskright' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'] }, + 'maskgroupbasedcorrmaskroundness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'] }, + 'maskgroupbasedcorrmasksizex' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'] }, + 'maskgroupbasedcorrmasksizey' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'] }, + 'maskgroupbasedcorrmasktop' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'] }, + 'maskgroupbasedcorrmaskvalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'] }, + 'maskgroupbasedcorrmaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'] }, + 'maskgroupbasedcorrmaskwhat' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'] }, + 'maskgroupbasedcorrmaskwholeimagearea' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'] }, + 'maskgroupbasedcorrmaskx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'] }, + 'maskgroupbasedcorrmasky' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'] }, + 'maskgroupbasedcorrmaskzerox' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'] }, + 'maskgroupbasedcorrmaskzeroy' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'] }, + 'maskgroupbasedcorrmoire' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'] }, + 'maskgroupbasedcorrrangemask' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'] }, + 'maskgroupbasedcorrrangemaskareamodels' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'] }, + 'maskgroupbasedcorrrangemaskareamodelscolorsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'maskgroupbasedcorrrangemaskareamodelscomponents' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'maskgroupbasedcorrrangemaskcoloramount' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'] }, + 'maskgroupbasedcorrrangemaskdepthfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, + 'maskgroupbasedcorrrangemaskdepthmax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'] }, + 'maskgroupbasedcorrrangemaskdepthmin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'] }, + 'maskgroupbasedcorrrangemaskinvert' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'] }, + 'maskgroupbasedcorrrangemasklumfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'] }, + 'maskgroupbasedcorrrangemaskluminancedepthsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'maskgroupbasedcorrrangemasklummax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'] }, + 'maskgroupbasedcorrrangemasklummin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'] }, + 'maskgroupbasedcorrrangemasklumrange' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'] }, + 'maskgroupbasedcorrrangemasksampletype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'] }, + 'maskgroupbasedcorrrangemasktype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'] }, + 'maskgroupbasedcorrrangemaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'] }, + 'maskgroupbasedcorrsaturation' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'] }, + 'maskgroupbasedcorrshadows2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'] }, + 'maskgroupbasedcorrsharpness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'] }, + 'maskgroupbasedcorrtemperature' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'] }, + 'maskgroupbasedcorrtexture' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'] }, + 'maskgroupbasedcorrtint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'] }, + 'maskgroupbasedcorrtoninghue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'] }, + 'maskgroupbasedcorrtoningsaturation' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'] }, + 'maskgroupbasedcorrwhat' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'] }, + 'maskgroupbasedcorrwhites2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'] }, 'masterdocumentid' => { 130 => 0xb9 }, - 'mastergain' => { 232 => 0x50 }, + 'mastergain' => { 233 => 0x50 }, 'materialsample' => { 117 => 'MaterialSample' }, 'materialsampleid' => { 117 => [\'MaterialSample','MaterialSampleMaterialSampleID'] }, - 'matrixmetering' => { 275 => '50.1', 277 => '48.1', 278 => '48.1', 287 => '48.1', 288 => '48.1' }, + 'matrixmetering' => { 277 => '50.1', 279 => '48.1', 280 => '48.1', 289 => '48.1', 290 => '48.1' }, 'matrixselectk' => { 137 => 0x91b }, 'matrixselectthreshold' => { 137 => 0x91a }, 'matrixselectthreshold1' => { 137 => 0x91e }, 'matrixselectthreshold2' => { 137 => 0x91f }, - 'matrixstructure' => { 373 => 0xa }, - 'maxaperture' => { 34 => 0x1a, 137 => 0x3f9, 143 => 0x6103, 162 => 'MaxAperture', 180 => 0x17, 186 => 0x49c5, 222 => 0x36, 292 => 0x20a, 340 => '14.1' }, - 'maxapertureatmaxfocal' => { 126 => 0x1407, 162 => 'MaxApertureAtMaxFocal', 216 => 0xb, 217 => 0x10, 218 => 0x11, 222 => 0x12, 292 => 0x206 }, - 'maxapertureatminfocal' => { 126 => 0x1406, 216 => 0xa, 217 => 0xf, 218 => 0x10, 222 => 0x11, 292 => 0x205 }, - 'maxaperturevalue' => { 118 => 0x9205, 358 => 0x414, 477 => 'MaxApertureValue' }, - 'maxavailheight' => { 483 => 'MaxAvailHeight' }, - 'maxavailwidth' => { 483 => 'MaxAvailWidth' }, - 'maxcontinuousrelease' => { 274 => 0xb, 275 => 0xc, 277 => '12.1', 278 => '12.1', 283 => 0xc, 284 => 0xb, 287 => '12.1', 288 => '12.1' }, - 'maxfaces' => { 295 => 0x1202 }, - 'maxfocallength' => { 7 => 0xe6, 8 => 0x10, 9 => 0x1ab, 10 => 0x13, 11 => 0x115, 12 => 0x13, 13 => 0x153, 14 => 0xda, 16 => 0xfa, 17 => 0xee, 18 => 0x103, 19 => 0x95, 20 => 0xea, 21 => 0x157, 22 => 0xee, 23 => 0xec, 24 => 0x12b, 25 => 0x165, 26 => 0x16a, 27 => 0x188, 28 => 0x116, 29 => 0x18d, 34 => 0x17, 126 => 0x1405, 162 => 'MaxFocalLength', 216 => 0x9, 217 => 0xe, 218 => 0xf, 222 => 0x10, 292 => 0x208, 426 => 0x127c, 427 => 0x1138, 428 => 0x330, 429 => 0x330, 430 => 0x30e }, + 'matrixstructure' => { 375 => 0xa }, + 'maxaperture' => { 34 => 0x1a, 137 => 0x3f9, 143 => 0x6103, 162 => 'MaxAperture', 180 => 0x17, 186 => 0x49c5, 222 => 0x36, 294 => 0x20a, 342 => '14.1' }, + 'maxapertureatmaxfocal' => { 126 => 0x1407, 162 => 'MaxApertureAtMaxFocal', 216 => 0xb, 217 => 0x10, 218 => 0x11, 222 => 0x12, 294 => 0x206 }, + 'maxapertureatminfocal' => { 126 => 0x1406, 216 => 0xa, 217 => 0xf, 218 => 0x10, 222 => 0x11, 294 => 0x205 }, + 'maxaperturevalue' => { 118 => 0x9205, 360 => 0x414, 479 => 'MaxApertureValue' }, + 'maxavailheight' => { 485 => 'MaxAvailHeight' }, + 'maxavailwidth' => { 485 => 'MaxAvailWidth' }, + 'maxcontinuousrelease' => { 276 => 0xb, 277 => 0xc, 279 => '12.1', 280 => '12.1', 285 => 0xc, 286 => 0xb, 289 => '12.1', 290 => '12.1' }, + 'maxfaces' => { 297 => 0x1202 }, + 'maxfocallength' => { 7 => 0xe6, 8 => 0x10, 9 => 0x1ab, 10 => 0x13, 11 => 0x115, 12 => 0x13, 13 => 0x153, 14 => 0xda, 16 => 0xfa, 17 => 0xee, 18 => 0x103, 19 => 0x95, 20 => 0xea, 21 => 0x157, 22 => 0xee, 23 => 0xec, 24 => 0x12b, 25 => 0x165, 26 => 0x16a, 27 => 0x188, 28 => 0x116, 29 => 0x18d, 34 => 0x17, 126 => 0x1405, 162 => 'MaxFocalLength', 216 => 0x9, 217 => 0xe, 218 => 0xf, 222 => 0x10, 294 => 0x208, 428 => 0x127c, 429 => 0x1138, 430 => 0x330, 431 => 0x330, 432 => 0x30e }, 'maximumdensityrange' => { 132 => 0x8c }, - 'maxpagesize' => { 502 => 'MaxPageSize' }, - 'maxpagesizeh' => { 502 => [\'MaxPageSize','MaxPageSizeH'] }, - 'maxpagesizeunit' => { 502 => [\'MaxPageSize','MaxPageSizeUnit'] }, - 'maxpagesizew' => { 502 => [\'MaxPageSize','MaxPageSizeW'] }, + 'maxpagesize' => { 504 => 'MaxPageSize' }, + 'maxpagesizeh' => { 504 => [\'MaxPageSize','MaxPageSizeH'] }, + 'maxpagesizeunit' => { 504 => [\'MaxPageSize','MaxPageSizeUnit'] }, + 'maxpagesizew' => { 504 => [\'MaxPageSize','MaxPageSizeW'] }, 'maxpixelvaluethreshold' => { 137 => 0xc7d }, 'maxsamplevalue' => { 118 => 0x119 }, - 'maxstorage' => { 492 => 'maxstorage' }, - 'mb-d10batteries' => { 274 => '12.6' }, - 'mb-d10batterytype' => { 283 => '13.3' }, - 'mb-d11batterytype' => { 284 => '2.3' }, - 'mb-d12batterytype' => { 287 => '3.2' }, - 'mb-d80batteries' => { 285 => '6.5' }, - 'mb-d80batterytype' => { 289 => '3.2' }, + 'maxstorage' => { 494 => 'maxstorage' }, + 'mb-d10batteries' => { 276 => '12.6' }, + 'mb-d10batterytype' => { 285 => '13.3' }, + 'mb-d11batterytype' => { 286 => '2.3' }, + 'mb-d12batterytype' => { 289 => '3.2' }, + 'mb-d80batteries' => { 287 => '6.5' }, + 'mb-d80batterytype' => { 291 => '3.2' }, 'mcuversion' => { 216 => 0xc, 217 => 0x11, 218 => 0x12, 222 => 0x13 }, 'md5digest' => { 163 => 'zmd5' }, 'mditemfindercomment' => { 172 => 'MDItemFinderComment' }, 'mditemfscreationdate' => { 172 => 'MDItemFSCreationDate' }, 'mditemfslabel' => { 172 => 'MDItemFSLabel' }, 'mditemusertags' => { 172 => 'MDItemUserTags' }, - 'meal' => { 489 => 'meal' }, + 'meal' => { 491 => 'meal' }, 'measuredev' => { 28 => 0x9, 76 => 0x3, 96 => 0x1814, 155 => 'MeasuredEV' }, 'measuredev2' => { 13 => 0x8, 28 => 0x8, 76 => 0x17 }, 'measuredev3' => { 13 => 0x9 }, - 'measuredlv' => { 186 => 0x690, 309 => 0x312, 312 => 0x312, 313 => 0x312, 316 => 0x3407 }, + 'measuredlv' => { 186 => 0x690, 311 => 0x312, 314 => 0x312, 315 => 0x312, 318 => 0x3407 }, 'measuredrggb' => { 64 => 0x1 }, 'measuredrggbdata' => { 44 => 0x287 }, 'measurementaccuracy' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementAccuracy'] }, 'measurementdeterminedby' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementDeterminedBy'] }, 'measurementdetermineddate' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementDeterminedDate'] }, @@ -4328,195 +4330,195 @@ my %tagLookup = ( 'measurementorfact' => { 117 => 'MeasurementOrFact' }, 'measurementremarks' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementRemarks'] }, 'measurementtype' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementType'] }, 'measurementunit' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementUnit'] }, 'measurementvalue' => { 117 => [\'MeasurementOrFact','MeasurementOrFactMeasurementValue'] }, - 'measuretype' => { 456 => 'MeasureType' }, + 'measuretype' => { 458 => 'MeasureType' }, 'mechanicalshuttercount' => { 224 => 0x37 }, 'mediaclassprimaryid' => { 178 => 'WM/MediaClassPrimaryID' }, 'mediaclasssecondaryid' => { 178 => 'WM/MediaClassSecondaryID' }, - 'mediaconstraints' => { 301 => 'MediaConstraints' }, - 'mediacreatedate' => { 370 => 0x1 }, - 'mediaeventiddate' => { 461 => 'MediaEventIdDate' }, + 'mediaconstraints' => { 303 => 'MediaConstraints' }, + 'mediacreatedate' => { 372 => 0x1 }, + 'mediaeventiddate' => { 463 => 'MediaEventIdDate' }, 'mediagroupuuid' => { 1 => 0x11 }, - 'mediamodifydate' => { 370 => 0x2 }, - 'mediasummarycode' => { 301 => 'MediaSummaryCode' }, - 'mediatype' => { 366 => 'stik' }, + 'mediamodifydate' => { 372 => 0x2 }, + 'mediasummarycode' => { 303 => 'MediaSummaryCode' }, + 'mediatype' => { 368 => 'stik' }, 'memoaudioquality' => { 83 => 0x812 }, - 'memorycardconfiguration' => { 407 => 0x16 }, + 'memorycardconfiguration' => { 409 => 0x16 }, 'memorycardnumber' => { 206 => 0x2 }, 'menubuttondisplayposition' => { 81 => 0xb, 84 => 0xa, 85 => 0xb, 88 => 0xb }, 'menubuttonreturn' => { 89 => 0xb }, - 'menumonitorofftime' => { 274 => '26.1', 275 => '22.1', 277 => '22.1', 278 => '22.1', 282 => '21.1', 283 => '8.2', 284 => '21.1', 287 => '22.1', 288 => '22.1', 289 => '22.1' }, - 'metadatadate' => { 495 => 'MetadataDate' }, - 'metadatamoddate' => { 497 => 'metadataModDate' }, - 'metaversion' => { 421 => 0x34 }, - 'meterinfo1row1' => { 415 => 0x0, 416 => 0x0 }, - 'meterinfo1row2' => { 415 => 0x6c, 416 => 0x5a }, - 'meterinfo1row3' => { 415 => 0xd8, 416 => 0xb4 }, - 'meterinfo1row4' => { 415 => 0x144, 416 => 0x10e }, - 'meterinfo1row5' => { 415 => 0x1b0, 416 => 0x168 }, - 'meterinfo1row6' => { 415 => 0x21c, 416 => 0x1c2 }, - 'meterinfo1row7' => { 415 => 0x288, 416 => 0x21c }, - 'meterinfo2row1' => { 415 => 0x2f4, 416 => 0x276 }, - 'meterinfo2row2' => { 415 => 0x378, 416 => 0x2e4 }, - 'meterinfo2row3' => { 415 => 0x3fc, 416 => 0x352 }, - 'meterinfo2row4' => { 415 => 0x480, 416 => 0x3c0 }, - 'meterinfo2row5' => { 415 => 0x504, 416 => 0x42e }, - 'meterinfo2row6' => { 415 => 0x588, 416 => 0x49c }, - 'meterinfo2row7' => { 415 => 0x60c, 416 => 0x50a }, - 'meterinfo2row8' => { 415 => 0x690, 416 => 0x578 }, - 'meterinfo2row9' => { 415 => 0x714, 416 => 0x5e6 }, - 'metering' => { 276 => '6.1' }, - 'meteringmode' => { 34 => 0x11, 118 => 0x9207, 139 => 0x1c, 180 => 0x7, 181 => 0x25, 183 => 0x12, 291 => 0x202, 349 => 0x17, 391 => 0x9, 401 => 0x15, 402 => 0x13, 403 => 0x7, 419 => 0x3, 422 => 0x1174, 423 => 0x1178, 424 => 0x1154, 425 => 0x11d0, 426 => 0x11ac, 427 => 0x1064, 428 => 0x25c, 429 => 0x25c, 430 => 0x24b, 477 => 'MeteringMode' }, - 'meteringmode2' => { 330 => '2.1', 414 => 0x202c }, - 'meteringmode3' => { 330 => '16.1' }, + 'menumonitorofftime' => { 276 => '26.1', 277 => '22.1', 279 => '22.1', 280 => '22.1', 284 => '21.1', 285 => '8.2', 286 => '21.1', 289 => '22.1', 290 => '22.1', 291 => '22.1' }, + 'metadatadate' => { 497 => 'MetadataDate' }, + 'metadatamoddate' => { 499 => 'metadataModDate' }, + 'metaversion' => { 423 => 0x34 }, + 'meterinfo1row1' => { 417 => 0x0, 418 => 0x0 }, + 'meterinfo1row2' => { 417 => 0x6c, 418 => 0x5a }, + 'meterinfo1row3' => { 417 => 0xd8, 418 => 0xb4 }, + 'meterinfo1row4' => { 417 => 0x144, 418 => 0x10e }, + 'meterinfo1row5' => { 417 => 0x1b0, 418 => 0x168 }, + 'meterinfo1row6' => { 417 => 0x21c, 418 => 0x1c2 }, + 'meterinfo1row7' => { 417 => 0x288, 418 => 0x21c }, + 'meterinfo2row1' => { 417 => 0x2f4, 418 => 0x276 }, + 'meterinfo2row2' => { 417 => 0x378, 418 => 0x2e4 }, + 'meterinfo2row3' => { 417 => 0x3fc, 418 => 0x352 }, + 'meterinfo2row4' => { 417 => 0x480, 418 => 0x3c0 }, + 'meterinfo2row5' => { 417 => 0x504, 418 => 0x42e }, + 'meterinfo2row6' => { 417 => 0x588, 418 => 0x49c }, + 'meterinfo2row7' => { 417 => 0x60c, 418 => 0x50a }, + 'meterinfo2row8' => { 417 => 0x690, 418 => 0x578 }, + 'meterinfo2row9' => { 417 => 0x714, 418 => 0x5e6 }, + 'metering' => { 278 => '6.1' }, + 'meteringmode' => { 34 => 0x11, 118 => 0x9207, 139 => 0x1c, 180 => 0x7, 181 => 0x25, 183 => 0x12, 293 => 0x202, 351 => 0x17, 393 => 0x9, 403 => 0x15, 404 => 0x13, 405 => 0x7, 421 => 0x3, 424 => 0x1174, 425 => 0x1178, 426 => 0x1154, 427 => 0x11d0, 428 => 0x11ac, 429 => 0x1064, 430 => 0x25c, 431 => 0x25c, 432 => 0x24b, 479 => 'MeteringMode' }, + 'meteringmode2' => { 332 => '2.1', 416 => 0x202c }, + 'meteringmode3' => { 332 => '16.1' }, 'meteringoffscaleindicator' => { 183 => 0x53 }, - 'meteringtime' => { 274 => '22.2', 276 => '3.2', 279 => '17.1', 280 => '18.1', 283 => '7.3', 284 => '18.1', 285 => '3.2', 289 => '19.1' }, - 'micro1version' => { 376 => 0x1f }, - 'micro2version' => { 376 => 0x2d }, - 'microvideo' => { 454 => 'MicroVideo' }, - 'microvideooffset' => { 454 => 'MicroVideoOffset' }, - 'microvideopresentationtimestampus' => { 454 => 'MicroVideoPresentationTimestampUs' }, - 'microvideoversion' => { 454 => 'MicroVideoVersion' }, - 'midrangesharpness' => { 228 => 0x3b }, + 'meteringtime' => { 276 => '22.2', 278 => '3.2', 281 => '17.1', 282 => '18.1', 285 => '7.3', 286 => '18.1', 287 => '3.2', 291 => '19.1' }, + 'micro1version' => { 378 => 0x1f }, + 'micro2version' => { 378 => 0x2d }, + 'microvideo' => { 456 => 'MicroVideo' }, + 'microvideooffset' => { 456 => 'MicroVideoOffset' }, + 'microvideopresentationtimestampus' => { 456 => 'MicroVideoPresentationTimestampUs' }, + 'microvideoversion' => { 456 => 'MicroVideoVersion' }, + 'midrangesharpness' => { 229 => 0x3b }, 'mieversion' => { 163 => '0Vers' }, - 'mime' => { 456 => 'Mime' }, - 'minaperture' => { 34 => 0x1b, 137 => 0x3f8, 162 => 'MinAperture', 340 => '0.2' }, - 'minaperturevalue' => { 358 => 0x415 }, - 'minfocallength' => { 7 => 0xe4, 8 => 0xe, 9 => 0x1a9, 10 => 0x11, 11 => 0x113, 12 => 0x11, 13 => 0x151, 14 => 0xd8, 16 => 0xf8, 17 => 0xec, 18 => 0x101, 19 => 0x93, 20 => 0xe8, 21 => 0x155, 22 => 0xec, 23 => 0xea, 24 => 0x129, 25 => 0x163, 26 => 0x168, 27 => 0x186, 28 => 0x114, 29 => 0x18b, 34 => 0x18, 126 => 0x1404, 162 => 'MinFocalLength', 216 => 0x8, 217 => 0xd, 218 => 0xe, 222 => 0xf, 292 => 0x207, 426 => 0x127a, 427 => 0x1136, 428 => 0x32e, 429 => 0x32e, 430 => 0x30c }, - 'minfocusdistance' => { 340 => 0x3 }, + 'mime' => { 458 => 'Mime' }, + 'minaperture' => { 34 => 0x1b, 137 => 0x3f8, 162 => 'MinAperture', 342 => '0.2' }, + 'minaperturevalue' => { 360 => 0x415 }, + 'minfocallength' => { 7 => 0xe4, 8 => 0xe, 9 => 0x1a9, 10 => 0x11, 11 => 0x113, 12 => 0x11, 13 => 0x151, 14 => 0xd8, 16 => 0xf8, 17 => 0xec, 18 => 0x101, 19 => 0x93, 20 => 0xe8, 21 => 0x155, 22 => 0xec, 23 => 0xea, 24 => 0x129, 25 => 0x163, 26 => 0x168, 27 => 0x186, 28 => 0x114, 29 => 0x18b, 34 => 0x18, 126 => 0x1404, 162 => 'MinFocalLength', 216 => 0x8, 217 => 0xd, 218 => 0xe, 222 => 0xf, 294 => 0x207, 428 => 0x127a, 429 => 0x1136, 430 => 0x32e, 431 => 0x32e, 432 => 0x30c }, + 'minfocusdistance' => { 342 => 0x3 }, 'minintegrationrows' => { 137 => 0x1874 }, 'minoltadate' => { 180 => 0x15 }, 'minoltaimagesize' => { 180 => 0x4, 181 => 0xc, 182 => 0x2, 185 => 0x103 }, 'minoltamodelid' => { 180 => 0x25 }, 'minoltaquality' => { 180 => 0x5, 181 => 0xd, 182 => 0x3, 185 => [0x102,0x103] }, 'minoltatime' => { 180 => 0x16 }, - 'minormodelagedisclosure' => { 301 => 'MinorModelAgeDisclosure' }, - 'minorversion' => { 462 => 'MinorVersion' }, + 'minormodelagedisclosure' => { 303 => 'MinorModelAgeDisclosure' }, + 'minorversion' => { 464 => 'MinorVersion' }, 'minsamplevalue' => { 118 => 0x118 }, 'mirrorlockup' => { 81 => 0xc, 82 => 0xc, 83 => 0x60f, 84 => 0xb, 85 => 0xc, 86 => 0x6, 87 => 0x6, 88 => 0xc, 89 => 0x3 }, - 'mobilecountrycode' => { 470 => 'mcc' }, - 'mobilenetworkcode' => { 470 => 'mnc' }, - 'moddate' => { 304 => 'modify-date', 484 => 'ModDate' }, - 'modedialposition' => { 407 => 0x14 }, - 'model' => { 97 => 0x6, 118 => 0x110, 155 => 'Model', 304 => 'Model', 319 => 0x110, 349 => 0x23f, 368 => 'model', 374 => ['@mod','CNMN','cmnm',"\xa9mdl","\xa9mod"], 391 => 0x84, 456 => 'Model', 486 => 'model', 493 => 'Model' }, - 'modelage' => { 483 => 'ModelAge' }, - 'modelid' => { 290 => 0x0 }, - 'modelingflash' => { 274 => '21.4', 275 => '31.1', 277 => '31.1', 278 => '31.1', 283 => '26.4', 284 => '30.2', 285 => '7.4', 286 => '30.1', 287 => '31.1', 288 => '31.1', 289 => '31.3' }, - 'modelreleaseid' => { 301 => 'ModelReleaseID' }, - 'modelreleasestatus' => { 301 => 'ModelReleaseStatus' }, - 'modelreleaseyear' => { 435 => 0x52, 436 => 0x46, 437 => 0x53 }, + 'mobilecountrycode' => { 472 => 'mcc' }, + 'mobilenetworkcode' => { 472 => 'mnc' }, + 'moddate' => { 306 => 'modify-date', 486 => 'ModDate' }, + 'modedialposition' => { 409 => 0x14 }, + 'model' => { 97 => 0x6, 118 => 0x110, 155 => 'Model', 306 => 'Model', 321 => 0x110, 351 => 0x23f, 370 => 'model', 376 => ['@mod','CNMN','cmnm',"\xa9mdl","\xa9mod"], 393 => 0x84, 458 => 'Model', 488 => 'model', 495 => 'Model' }, + 'modelage' => { 485 => 'ModelAge' }, + 'modelid' => { 292 => 0x0 }, + 'modelingflash' => { 276 => '21.4', 277 => '31.1', 279 => '31.1', 280 => '31.1', 285 => '26.4', 286 => '30.2', 287 => '7.4', 288 => '30.1', 289 => '31.1', 290 => '31.1', 291 => '31.3' }, + 'modelreleaseid' => { 303 => 'ModelReleaseID' }, + 'modelreleasestatus' => { 303 => 'ModelReleaseStatus' }, + 'modelreleaseyear' => { 437 => 0x52, 438 => 0x46, 439 => 0x53 }, 'modeltiepoint' => { 118 => 0x8482 }, 'modeltransform' => { 118 => 0x85d8 }, - 'modelyear' => { 486 => 'modelYear' }, - 'modificationdate' => { 487 => 'modificationDate' }, + 'modelyear' => { 488 => 'modelYear' }, + 'modificationdate' => { 489 => 'modificationDate' }, 'modifiedcolortemp' => { 65 => 0x9 }, 'modifieddigitalgain' => { 65 => 0xb }, 'modifiedparamflag' => { 58 => 0x1 }, 'modifiedpicturestyle' => { 65 => 0xa }, - 'modifiedsaturation' => { 291 => 0x504 }, + 'modifiedsaturation' => { 293 => 0x504 }, 'modifiedsensorbluelevel' => { 65 => 0x5 }, 'modifiedsensorredlevel' => { 65 => 0x4 }, 'modifiedsharpness' => { 65 => 0x2 }, 'modifiedsharpnessfreq' => { 65 => 0x3 }, 'modifiedtonecurve' => { 65 => 0x1 }, 'modifiedwhitebalance' => { 65 => 0x8 }, 'modifiedwhitebalanceblue' => { 65 => 0x7 }, 'modifiedwhitebalancered' => { 65 => 0x6 }, - 'modifydate' => { 118 => 0x132, 156 => 'ModifyDate', 300 => 'ModDate', 302 => 'tIME', 365 => 'ModDate', 371 => 0x2, 495 => 'ModifyDate' }, - 'moirefilter' => { 118 => 0xfe58, 471 => 'MoireFilter', 473 => 'MoireFilter' }, + 'modifydate' => { 118 => 0x132, 156 => 'ModifyDate', 302 => 'ModDate', 304 => 'tIME', 367 => 'ModDate', 373 => 0x2, 497 => 'ModifyDate' }, + 'moirefilter' => { 118 => 0xfe58, 473 => 'MoireFilter', 475 => 'MoireFilter' }, 'monitordisplayoff' => { 183 => 0x4c }, 'monitormatrix' => { 137 => 0x8fc }, - 'monitorofftime' => { 274 => '18.2', 276 => '3.1', 285 => '3.1' }, - 'monochromecolor' => { 291 => 0x53b }, + 'monitorofftime' => { 276 => '18.2', 278 => '3.1', 287 => '3.1' }, + 'monochromecolor' => { 293 => 0x53b }, 'monochromecontrast' => { 108 => 0x3c }, - 'monochromefiltereffect' => { 102 => 0x20307, 108 => 0x3a, 314 => 0xac, 349 => 0x73 }, - 'monochromegraineffect' => { 314 => 0xd2 }, + 'monochromefiltereffect' => { 102 => 0x20307, 108 => 0x3a, 316 => 0xac, 351 => 0x73 }, + 'monochromegraineffect' => { 316 => 0xd2 }, 'monochromelinear' => { 108 => 0x3d }, 'monochromeoutputhighlightpoint' => { 108 => 0x41 }, 'monochromeoutputshadowpoint' => { 108 => 0x42 }, - 'monochromeprofilesettings' => { 291 => 0x537 }, + 'monochromeprofilesettings' => { 293 => 0x537 }, 'monochromerawhighlight' => { 108 => 0x7a }, 'monochromerawhighlightpoint' => { 108 => 0x3f }, 'monochromerawshadow' => { 108 => 0x83 }, 'monochromerawshadowpoint' => { 108 => 0x40 }, 'monochromesharpness' => { 108 => 0x3e }, - 'monochrometoning' => { 349 => 0x74 }, + 'monochrometoning' => { 351 => 0x74 }, 'monochrometoningeffect' => { 102 => 0x20306, 108 => 0x3b }, 'monochromeunsharpmaskfineness' => { 108 => 0xb2 }, 'monochromeunsharpmaskstrength' => { 108 => 0xb0 }, 'monochromeunsharpmaskthreshold' => { 108 => 0xb4 }, - 'monochromevignetting' => { 291 => 0x53a }, + 'monochromevignetting' => { 293 => 0x53a }, 'monthdaycreated' => { 139 => 0x12, 148 => 0xe }, 'mood' => { 178 => 'WM/Mood' }, - 'moonphase' => { 375 => 0x12, 376 => 0x43, 377 => 0x4c }, - 'morepermissions' => { 469 => 'morePermissions' }, - 'motionsensitivity' => { 375 => 0x29, 377 => 0x60 }, - 'movementcount' => { 366 => "\xa9mvc" }, - 'movementname' => { 366 => "\xa9mvn" }, - 'movementnumber' => { 366 => "\xa9mvi" }, - 'movieactived-lighting' => { 259 => 0x238 }, - 'movieaelockbuttonassignment' => { 287 => '40.1' }, - 'movieautodistortioncontrol' => { 259 => 0x242 }, - 'moviediffrationcompensation' => { 259 => 0x168b }, - 'moviefocusmode' => { 259 => 0x248 }, - 'movieframerate' => { 259 => 0x1f8 }, - 'movieframesize' => { 259 => 0x1f6 }, - 'moviefunc1button' => { 277 => '41.1', 278 => '41.1', 288 => '41.1' }, - 'moviefunctionbutton' => { 275 => '41.1', 287 => '41.1' }, - 'moviefunctionbuttonplusdials' => { 275 => '52.1' }, - 'moviehighisonoisereduction' => { 259 => 0x23c }, - 'movieisoautomanualmode' => { 259 => 0x204 }, - 'moviepreviewbutton' => { 275 => '41.2', 277 => '41.2', 278 => '41.2', 287 => '41.2', 288 => '41.2' }, - 'moviepreviewbuttonplusdials' => { 275 => '52.2' }, - 'movieshutterbutton' => { 275 => '38.3', 277 => '38.3', 278 => '38.3', 287 => '38.3', 288 => '38.3' }, - 'movieslowmotion' => { 259 => 0x1fa }, - 'moviesubselectorassignment' => { 275 => '48.2' }, - 'moviesubselectorassignmentplusdials' => { 275 => '53.1' }, - 'movietype' => { 247 => 0xc55c, 259 => 0x1fe }, - 'movievibrationreduction' => { 259 => 0x24e }, - 'movievibrationreductionsameasphoto' => { 259 => 0x24f }, - 'movievignettecontrol' => { 259 => 0x23e }, - 'movievignettecontrolsameasphoto' => { 259 => 0x240 }, - 'multiburstimageheight' => { 414 => 0x1002 }, - 'multiburstimagewidth' => { 414 => 0x1001 }, - 'multiburstmode' => { 414 => 0x1000 }, + 'moonphase' => { 377 => 0x12, 378 => 0x43, 379 => 0x4c }, + 'morepermissions' => { 471 => 'morePermissions' }, + 'motionsensitivity' => { 377 => 0x29, 379 => 0x60 }, + 'movementcount' => { 368 => "\xa9mvc" }, + 'movementname' => { 368 => "\xa9mvn" }, + 'movementnumber' => { 368 => "\xa9mvi" }, + 'movieactived-lighting' => { 261 => 0x238 }, + 'movieaelockbuttonassignment' => { 289 => '40.1' }, + 'movieautodistortioncontrol' => { 261 => 0x242 }, + 'moviediffractioncompensation' => { 261 => 0x241 }, + 'moviefocusmode' => { 261 => 0x248 }, + 'movieframerate' => { 261 => 0x1f8 }, + 'movieframesize' => { 261 => 0x1f6 }, + 'moviefunc1button' => { 279 => '41.1', 280 => '41.1', 290 => '41.1' }, + 'moviefunctionbutton' => { 277 => '41.1', 289 => '41.1' }, + 'moviefunctionbuttonplusdials' => { 277 => '52.1' }, + 'moviehighisonoisereduction' => { 261 => 0x23c }, + 'movieisoautomanualmode' => { 261 => 0x204 }, + 'moviepreviewbutton' => { 277 => '41.2', 279 => '41.2', 280 => '41.2', 289 => '41.2', 290 => '41.2' }, + 'moviepreviewbuttonplusdials' => { 277 => '52.2' }, + 'movieshutterbutton' => { 277 => '38.3', 279 => '38.3', 280 => '38.3', 289 => '38.3', 290 => '38.3' }, + 'movieslowmotion' => { 261 => 0x1fa }, + 'moviesubselectorassignment' => { 277 => '48.2' }, + 'moviesubselectorassignmentplusdials' => { 277 => '53.1' }, + 'movietype' => { 248 => 0xc55c, 261 => 0x1fe }, + 'movievibrationreduction' => { 261 => 0x24e }, + 'movievibrationreductionsameasphoto' => { 261 => 0x24f }, + 'movievignettecontrol' => { 261 => 0x23e }, + 'movievignettecontrolsameasphoto' => { 261 => 0x240 }, + 'multiburstimageheight' => { 416 => 0x1002 }, + 'multiburstimagewidth' => { 416 => 0x1001 }, + 'multiburstmode' => { 416 => 0x1000 }, 'multicontrollerwhilemetering' => { 83 => 0x517 }, - 'multiexposure' => { 67 => 0x1, 314 => 0xb4 }, - 'multiexposureautogain' => { 225 => 0x3 }, + 'multiexposure' => { 67 => 0x1, 316 => 0xb4 }, + 'multiexposureautogain' => { 226 => 0x3 }, 'multiexposurecontrol' => { 67 => 0x2 }, - 'multiexposuremode' => { 225 => 0x1 }, - 'multiexposureshots' => { 67 => 0x3, 225 => 0x2 }, - 'multiframenoisereduction' => { 403 => 0x35, 414 => 0x200b, 419 => 0x15 }, - 'multiframenreffect' => { 414 => 0x2023 }, + 'multiexposuremode' => { 226 => 0x1 }, + 'multiexposureshots' => { 67 => 0x3, 226 => 0x2 }, + 'multiframenoisereduction' => { 405 => 0x35, 416 => 0x200b, 421 => 0x15 }, + 'multiframenreffect' => { 416 => 0x2023 }, 'multifunctionlock' => { 83 => 0x70f }, - 'multipleexposuremode' => { 295 => 0x101c }, - 'multipleexposureset' => { 330 => '10.1' }, - 'multisample' => { 232 => 0x40 }, - 'multiselector' => { 274 => '9.4', 275 => '10.3', 277 => '10.3', 278 => '10.3', 283 => '27.4', 287 => '10.3', 288 => '10.3' }, - 'multiselectorliveview' => { 274 => '4.3', 277 => '37.1', 278 => '37.1', 287 => '37.1', 288 => '37.1' }, - 'multiselectorliveviewmode' => { 242 => 0x18c2 }, - 'multiselectorplaybackmode' => { 274 => ['13.5','9.2'], 275 => '10.2', 278 => '10.2', 283 => '27.2', 287 => '10.2', 288 => '10.2' }, - 'multiselectorshootmode' => { 274 => '9.1', 275 => '10.1', 277 => '10.1', 278 => '10.1', 283 => '27.1', 287 => '10.1', 288 => '10.1' }, - 'multishot' => { 319 => 0x121 }, - 'mute' => { 368 => 'player.movie.audio.mute' }, + 'multipleexposuremode' => { 297 => 0x101c }, + 'multipleexposureset' => { 332 => '10.1' }, + 'multisample' => { 233 => 0x40 }, + 'multiselector' => { 276 => '9.4', 277 => '10.3', 279 => '10.3', 280 => '10.3', 285 => '27.4', 289 => '10.3', 290 => '10.3' }, + 'multiselectorliveview' => { 276 => '4.3', 279 => '37.1', 280 => '37.1', 289 => '37.1', 290 => '37.1' }, + 'multiselectorliveviewmode' => { 243 => 0x18c2 }, + 'multiselectorplaybackmode' => { 276 => ['13.5','9.2'], 277 => '10.2', 280 => '10.2', 285 => '27.2', 289 => '10.2', 290 => '10.2' }, + 'multiselectorshootmode' => { 276 => '9.1', 277 => '10.1', 279 => '10.1', 280 => '10.1', 285 => '27.1', 289 => '10.1', 290 => '10.1' }, + 'multishot' => { 321 => 0x121 }, + 'mute' => { 370 => 'player.movie.audio.mute' }, 'mycolormode' => { 68 => 0x2 }, - 'name' => { 374 => 'name', 471 => 'Name', 473 => 'Name' }, - 'narrator' => { 366 => "\xa9nrt" }, - 'nationalcatalognumber' => { 487 => 'nationalCatalogNumber' }, - 'nativedigest' => { 477 => 'NativeDigest', 493 => 'NativeDigest' }, - 'ndfilter' => { 76 => 0x1c, 291 => 0x204, 381 => 0x1019 }, - 'near' => { 456 => 'Near' }, + 'name' => { 376 => 'name', 473 => 'Name', 475 => 'Name' }, + 'narrator' => { 368 => "\xa9nrt" }, + 'nationalcatalognumber' => { 489 => 'nationalCatalogNumber' }, + 'nativedigest' => { 479 => 'NativeDigest', 495 => 'NativeDigest' }, + 'ndfilter' => { 76 => 0x1c, 293 => 0x204, 383 => 0x1019 }, + 'near' => { 458 => 'Near' }, 'nefbitdepth' => { 224 => 0xe22 }, - 'nefcompression' => { 224 => 0x93 }, + 'nefcompression' => { 224 => 0x93, 225 => 0xa }, 'neflinearizationtable' => { 224 => 0x96 }, - 'negativecachelargepreviewsize' => { 471 => 'NegativeCacheLargePreviewSize', 473 => 'NegativeCacheLargePreviewSize' }, - 'negativecachemaximumsize' => { 471 => 'NegativeCacheMaximumSize', 473 => 'NegativeCacheMaximumSize' }, - 'negativecachepath' => { 471 => 'NegativeCachePath', 473 => 'NegativeCachePath' }, - 'neutraldensityfactor' => { 468 => 'NeutralDensityFactor' }, - 'neutraldensityfilter' => { 349 => 0x88 }, + 'negativecachelargepreviewsize' => { 473 => 'NegativeCacheLargePreviewSize', 475 => 'NegativeCacheLargePreviewSize' }, + 'negativecachemaximumsize' => { 473 => 'NegativeCacheMaximumSize', 475 => 'NegativeCacheMaximumSize' }, + 'negativecachepath' => { 473 => 'NegativeCachePath', 475 => 'NegativeCachePath' }, + 'neutraldensityfactor' => { 470 => 'NeutralDensityFactor' }, + 'neutraldensityfilter' => { 351 => 0x88 }, 'neutraloutputhighlightpoint' => { 108 => 0x2f }, 'neutraloutputshadowpoint' => { 108 => 0x30 }, 'neutralrawcolortone' => { 108 => 0x28 }, 'neutralrawcontrast' => { 108 => 0x2a }, 'neutralrawhighlight' => { 108 => 0x78 }, @@ -4529,67 +4531,67 @@ my %tagLookup = ( 'neutralunsharpmaskfineness' => { 108 => 0xa6 }, 'neutralunsharpmaskthreshold' => { 108 => 0xa8 }, 'neutraunsharpmaskstrength' => { 108 => 0xa4 }, 'newrawimagedigest' => { 118 => 0xc7a7 }, 'newsphotoversion' => { 132 => 0x0 }, - 'nickname' => { 495 => 'Nickname' }, + 'nickname' => { 497 => 'Nickname' }, 'nikoncapturedata' => { 224 => 0xe01 }, 'nikoncaptureeditversions' => { 224 => 0xe13 }, 'nikoncaptureoffsets' => { 224 => 0xe0e }, 'nikoncaptureoutput' => { 224 => 0xe1e }, 'nikoncaptureversion' => { 224 => 0xe09 }, 'nikoniccprofile' => { 224 => 0xe1d }, - 'nikonimagesize' => { 239 => '723.1', 240 => '732.1', 250 => 0x2c4 }, - 'nikonmeteringmode' => { 243 => 0x2ea4, 252 => 0x175e, 259 => 0x146 }, + 'nikonimagesize' => { 240 => '723.1', 241 => '732.1', 251 => 0x2c4 }, + 'nikonmeteringmode' => { 244 => 0x2ea4, 253 => 0x175e, 261 => 0x146 }, 'nikonsettings' => { 224 => 0x4e }, - 'noisefilter' => { 291 => 0x527 }, + 'noisefilter' => { 293 => 0x527 }, 'noiseprofile' => { 118 => 0xc761 }, - 'noisereduction' => { 126 => [0x100b,0x100e], 181 => 0xb0, 182 => 0x60, 183 => 0x3f, 224 => 0x95, 267 => 0x753dcbc0, 268 => 0x17, 291 => 0x50a, 296 => 0x103a, 314 => 0x2d, 349 => 0x49, 381 => 0x100f, 383 => 0x2a }, - 'noisereduction2' => { 295 => 0x1010 }, + 'noisereduction' => { 126 => [0x100b,0x100e], 181 => 0xb0, 182 => 0x60, 183 => 0x3f, 224 => 0x95, 269 => 0x753dcbc0, 270 => 0x17, 293 => 0x50a, 298 => 0x103a, 316 => 0x2d, 351 => 0x49, 383 => 0x100f, 385 => 0x2a }, + 'noisereduction2' => { 297 => 0x1010 }, 'noisereductionapplied' => { 118 => 0xc6f7 }, - 'noisereductionintensity' => { 268 => 0x9 }, - 'noisereductionmethod' => { 268 => 0x11 }, - 'noisereductionmode' => { 448 => 0x801e }, + 'noisereductionintensity' => { 270 => 0x9 }, + 'noisereductionmethod' => { 270 => 0x11 }, + 'noisereductionmode' => { 450 => 0x801e }, 'noisereductionparametersatcapture' => { 137 => 0xe73 }, 'noisereductionparameterscamera' => { 137 => 0xe72 }, 'noisereductionparametershost3mp' => { 137 => 0xe71 }, 'noisereductionparametershost6mp' => { 137 => 0xe70 }, 'noisereductionparametershostrgb' => { 137 => 0xe6f }, 'noisereductionparameterskhufu3mp' => { 137 => 0xe65 }, 'noisereductionparameterskhufu6mp' => { 137 => 0xe64 }, 'noisereductionparameterskhufurgb' => { 137 => 0xe63 }, - 'noisereductionparams' => { 319 => 0x1b }, - 'noisereductionsharpness' => { 268 => 0xd }, - 'noisereductionstrength' => { 314 => 0xd6 }, - 'noisereductionvalue' => { 448 => 0x8027 }, - 'nomemorycard' => { 274 => '22.1', 275 => '4.2', 276 => '0.3', 279 => '2.4', 280 => '3.2', 281 => '3.2', 283 => '33.7', 284 => '3.2', 285 => '0.3', 287 => '4.2', 289 => '4.5' }, - 'nominalmaxaperture' => { 340 => 0xa }, - 'nominalminaperture' => { 340 => '10.1' }, + 'noisereductionparams' => { 321 => 0x1b }, + 'noisereductionsharpness' => { 270 => 0xd }, + 'noisereductionstrength' => { 316 => 0xd6 }, + 'noisereductionvalue' => { 450 => 0x8027 }, + 'nomemorycard' => { 276 => '22.1', 277 => '4.2', 278 => '0.3', 281 => '2.4', 282 => '3.2', 283 => '3.2', 285 => '33.7', 286 => '3.2', 287 => '0.3', 289 => '4.2', 291 => '4.5' }, + 'nominalmaxaperture' => { 342 => 0xa }, + 'nominalminaperture' => { 342 => '10.1' }, 'normallinetime' => { 137 => 0x186a }, 'normalwhitelevel' => { 41 => 0x32a, 42 => 0x280, 45 => [0x2b8,0x2cf,0x2d3], 46 => 0x569, 47 => 0x1e3, 48 => [0x1fc,0x2dc], 49 => [0x230,0x30e], 50 => 0x31c }, - 'notes' => { 449 => 'Notes', 466 => 'notes' }, - 'npages' => { 502 => 'NPages' }, + 'notes' => { 451 => 'Notes', 468 => 'notes' }, + 'npages' => { 504 => 'NPages' }, 'nullrecord' => { 96 => 0x0 }, - 'numafpoints' => { 326 => 0x2 }, - 'number' => { 487 => 'number' }, - 'numberofbeats' => { 497 => 'numberOfBeats' }, - 'numberoffocuspoints' => { 277 => '1.3', 278 => '1.3', 281 => '0.2', 282 => '0.3', 284 => '0.3' }, + 'numafpoints' => { 328 => 0x2 }, + 'number' => { 489 => 'number' }, + 'numberofbeats' => { 499 => 'numberOfBeats' }, + 'numberoffocuspoints' => { 279 => '1.3', 280 => '1.3', 283 => '0.2', 284 => '0.3', 286 => '0.3' }, 'numfaceelements' => { 126 => 0x4200 }, - 'numfacepositions' => { 306 => 0x0 }, + 'numfacepositions' => { 308 => 0x0 }, 'numindexentries' => { 132 => 0x54 }, - 'numwbentries' => { 320 => 0x0, 321 => 0x0 }, - 'object' => { 487 => 'object' }, + 'numwbentries' => { 322 => 0x0, 323 => 0x0 }, + 'object' => { 489 => 'object' }, 'objectattributereference' => { 130 => 0x4 }, - 'objectcycle' => { 130 => 0x4b, 466 => 'ObjectCycle' }, - 'objectdescription' => { 486 => 'objectDescription' }, + 'objectcycle' => { 130 => 0x4b, 468 => 'ObjectCycle' }, + 'objectdescription' => { 488 => 'objectDescription' }, 'objectdistance' => { 111 => 0x6, 112 => 0x2022 }, 'objectname' => { 130 => 0x5 }, 'objectpreviewdata' => { 130 => 0xca }, 'objectpreviewfileformat' => { 130 => 0xc8 }, 'objectpreviewfileversion' => { 130 => 0xc9 }, - 'objectsubtype' => { 486 => 'objectSubtype' }, - 'objecttype' => { 486 => 'objectType' }, + 'objectsubtype' => { 488 => 'objectSubtype' }, + 'objecttype' => { 488 => 'objectType' }, 'objecttypereference' => { 130 => 0x3 }, 'occurrence' => { 117 => 'Occurrence' }, 'occurrenceassociatedmedia' => { 117 => [\'Occurrence','OccurrenceAssociatedMedia'] }, 'occurrenceassociatedoccurrences' => { 117 => [\'Occurrence','OccurrenceAssociatedOccurrences'] }, 'occurrenceassociatedreferences' => { 117 => [\'Occurrence','OccurrenceAssociatedReferences'] }, @@ -4613,325 +4615,325 @@ my %tagLookup = ( 'occurrencerecordnumber' => { 117 => [\'Occurrence','OccurrenceRecordNumber'] }, 'occurrenceremarks' => { 117 => [\'Occurrence','OccurrenceOccurrenceRemarks'] }, 'occurrencereproductivecondition' => { 117 => [\'Occurrence','OccurrenceReproductiveCondition'] }, 'occurrencesex' => { 117 => [\'Occurrence','OccurrenceSex'] }, 'occurrencestatus' => { 117 => [\'Occurrence','OccurrenceOccurrenceStatus'] }, - 'oecfcolumns' => { 477 => [\'OECF','OECFColumns'] }, - 'oecfnames' => { 477 => [\'OECF','OECFNames'] }, - 'oecfrows' => { 477 => [\'OECF','OECFRows'] }, - 'oecfvalues' => { 477 => [\'OECF','OECFValues'] }, - 'offsaledate' => { 487 => 'offSaleDate' }, - 'offsaledatea-platform' => { 487 => [\'offSaleDate','offSaleDateA-platform'] }, - 'offsaledatedate' => { 487 => [\'offSaleDate','offSaleDateDate'] }, + 'oecfcolumns' => { 479 => [\'OECF','OECFColumns'] }, + 'oecfnames' => { 479 => [\'OECF','OECFNames'] }, + 'oecfrows' => { 479 => [\'OECF','OECFRows'] }, + 'oecfvalues' => { 479 => [\'OECF','OECFValues'] }, + 'offsaledate' => { 489 => 'offSaleDate' }, + 'offsaledatea-platform' => { 489 => [\'offSaleDate','offSaleDateA-platform'] }, + 'offsaledatedate' => { 489 => [\'offSaleDate','offSaleDateDate'] }, 'offsetdacvalue' => { 137 => 0x190a }, 'offsetschema' => { 118 => 0xea1d }, 'offsettime' => { 118 => 0x9010 }, 'offsettimedigitized' => { 118 => 0x9012 }, 'offsettimeoriginal' => { 118 => 0x9011 }, - 'okbutton' => { 284 => '15.1', 289 => '16.1' }, + 'okbutton' => { 286 => '15.1', 291 => '16.1' }, 'oldsubfiletype' => { 118 => 0xff }, - 'olympusimageheight' => { 296 => 0x102f }, - 'olympusimagewidth' => { 296 => 0x102e }, + 'olympusimageheight' => { 298 => 0x102f }, + 'olympusimagewidth' => { 298 => 0x102e }, 'omenatcapturestrength' => { 137 => 0xa60 }, 'omenautostrength' => { 137 => 0xa5f }, 'omenearlystrength' => { 137 => 0xa5e }, 'omenfocallengthlimit' => { 137 => 0xa62 }, 'omeninitialipfstrength' => { 137 => 0xa5d }, 'omensurfaceindex' => { 137 => 0xa64 }, 'oneshotafrelease' => { 2 => 0x9 }, - 'onetouchwb' => { 296 => 0x302 }, - 'onsaledate' => { 487 => 'onSaleDate' }, - 'onsaledatea-platform' => { 487 => [\'onSaleDate','onSaleDateA-platform'] }, - 'onsaledatedate' => { 487 => [\'onSaleDate','onSaleDateDate'] }, - 'onsaleday' => { 487 => 'onSaleDay' }, - 'onsaledaya-platform' => { 487 => [\'onSaleDay','onSaleDayA-platform'] }, - 'onsaledayday' => { 487 => [\'onSaleDay','onSaleDayDay'] }, + 'onetouchwb' => { 298 => 0x302 }, + 'onsaledate' => { 489 => 'onSaleDate' }, + 'onsaledatea-platform' => { 489 => [\'onSaleDate','onSaleDateA-platform'] }, + 'onsaledatedate' => { 489 => [\'onSaleDate','onSaleDateDate'] }, + 'onsaleday' => { 489 => 'onSaleDay' }, + 'onsaledaya-platform' => { 489 => [\'onSaleDay','onSaleDayA-platform'] }, + 'onsaledayday' => { 489 => [\'onSaleDay','onSaleDayDay'] }, 'opcodelist1' => { 118 => 0xc740 }, 'opcodelist2' => { 118 => 0xc741 }, 'opcodelist3' => { 118 => 0xc74e }, 'opticalzoom' => { 141 => 0xfa3d, 143 => [0x6006,0xf006], 144 => 0x1000, 145 => 0xf, 148 => 0x1e, 150 => 0x20, 151 => 0x1c, 162 => 'OpticalZoom' }, 'opticalzoomcode' => { 76 => 0xa }, - 'opticalzoommode' => { 314 => 0x34 }, - 'opticalzoomon' => { 390 => 0x219 }, - 'optionenddate' => { 490 => 'optionEndDate' }, - 'opto-electricconvfactor' => { 477 => 'OECF' }, + 'opticalzoommode' => { 316 => 0x34 }, + 'opticalzoomon' => { 392 => 0x219 }, + 'optionenddate' => { 492 => 'optionEndDate' }, + 'opto-electricconvfactor' => { 479 => 'OECF' }, 'orangehsl' => { 102 => 0x20911 }, 'ordernumber' => { 126 => 0x8002 }, - 'organisationinimagecode' => { 483 => 'OrganisationInImageCode' }, - 'organisationinimagename' => { 483 => 'OrganisationInImageName' }, + 'organisationinimagecode' => { 485 => 'OrganisationInImageCode' }, + 'organisationinimagename' => { 485 => 'OrganisationInImageName' }, 'organism' => { 117 => 'Organism' }, 'organismassociatedoccurrences' => { 117 => [\'Organism','OrganismAssociatedOccurrences'] }, 'organismassociatedorganisms' => { 117 => [\'Organism','OrganismAssociatedOrganisms'] }, 'organismid' => { 117 => [\'Organism','OrganismOrganismID'] }, 'organismname' => { 117 => [\'Organism','OrganismOrganismName'] }, 'organismpreviousidentifications' => { 117 => [\'Organism','OrganismPreviousIdentifications'] }, 'organismremarks' => { 117 => [\'Organism','OrganismOrganismRemarks'] }, 'organismscope' => { 117 => [\'Organism','OrganismOrganismScope'] }, - 'organization' => { 487 => 'organization' }, - 'orientation' => { 118 => 0x112, 319 => 0x112, 486 => 'orientation', 493 => 'Orientation' }, - 'orientation2' => { 419 => [0x28,0x2e] }, + 'organization' => { 489 => 'organization' }, + 'orientation' => { 118 => 0x112, 321 => 0x112, 488 => 'orientation', 495 => 'Orientation' }, + 'orientation2' => { 421 => [0x28,0x2e] }, 'orientationlinkedaf' => { 2 => 0xe }, 'orientationlinkedafpoint' => { 83 => 0x516 }, 'originalalbumtitle' => { 178 => 'WM/OriginalAlbumTitle' }, - 'originalartist' => { 178 => 'WM/OriginalArtist', 366 => "\xa9ope" }, + 'originalartist' => { 178 => 'WM/OriginalArtist', 368 => "\xa9ope" }, 'originalbestqualitysize' => { 118 => 0xc792 }, - 'originalcreatedatetime' => { 461 => 'OriginalCreateDateTime' }, + 'originalcreatedatetime' => { 463 => 'OriginalCreateDateTime' }, 'originaldecisiondata' => { 113 => 'Canon-OriginalDecisionData' }, 'originaldecisiondataoffset' => { 63 => 0x83 }, 'originaldefaultcropsize' => { 118 => 0xc793 }, 'originaldefaultfinalsize' => { 118 => 0xc791 }, - 'originaldirectory' => { 311 => 0x408 }, - 'originaldocumentid' => { 498 => 'OriginalDocumentID' }, - 'originalfilename' => { 96 => 0x816, 137 => 0x3e9, 149 => 0x20, 311 => 0x407, 461 => 'OriginalFilename' }, + 'originaldirectory' => { 313 => 0x408 }, + 'originaldocumentid' => { 500 => 'OriginalDocumentID' }, + 'originalfilename' => { 96 => 0x816, 137 => 0x3e9, 149 => 0x20, 313 => 0x407, 463 => 'OriginalFilename' }, 'originalimageheight' => { 78 => 0xc, 122 => 0x1 }, 'originalimagewidth' => { 78 => 0xb, 122 => 0x0 }, 'originallyricist' => { 178 => 'WM/OriginalLyricist' }, 'originalrawfiledata' => { 118 => 0xc68c }, 'originalrawfiledigest' => { 118 => 0xc71d }, 'originalrawfilename' => { 118 => 0xc68b }, 'originaltransmissionreference' => { 130 => 0x67 }, - 'originatingprogram' => { 130 => 0x41, 466 => 'OriginatingProgram' }, - 'originplatform' => { 487 => 'originPlatform' }, - 'os' => { 475 => 'os' }, - 'otherconditions' => { 301 => 'OtherConditions' }, - 'otherconstraints' => { 301 => 'OtherConstraints' }, + 'originatingprogram' => { 130 => 0x41, 468 => 'OriginatingProgram' }, + 'originplatform' => { 489 => 'originPlatform' }, + 'os' => { 477 => 'os' }, + 'otherconditions' => { 303 => 'OtherConditions' }, + 'otherconstraints' => { 303 => 'OtherConstraints' }, 'otherimage' => { 113 => 'Exif-OtherImage' }, - 'otherimageinfo' => { 301 => 'OtherImageInfo' }, + 'otherimageinfo' => { 303 => 'OtherImageInfo' }, 'otherimagelength' => { 118 => 0x202 }, 'otherimagestart' => { 118 => 0x201 }, - 'otherlicensedocuments' => { 301 => 'OtherLicenseDocuments' }, - 'otherlicenseinfo' => { 301 => 'OtherLicenseInfo' }, - 'otherlicenserequirements' => { 301 => 'OtherLicenseRequirements' }, - 'outcue' => { 497 => 'outCue' }, - 'outcuescale' => { 497 => [\'outCue','outCueScale'] }, - 'outcuevalue' => { 497 => [\'outCue','outCueValue'] }, + 'otherlicensedocuments' => { 303 => 'OtherLicenseDocuments' }, + 'otherlicenseinfo' => { 303 => 'OtherLicenseInfo' }, + 'otherlicenserequirements' => { 303 => 'OtherLicenseRequirements' }, + 'outcue' => { 499 => 'outCue' }, + 'outcuescale' => { 499 => [\'outCue','outCueScale'] }, + 'outcuevalue' => { 499 => [\'outCue','outCueValue'] }, 'outputimageheight' => { 195 => 0x3 }, 'outputimagewidth' => { 195 => 0x2 }, - 'outputlut' => { 314 => 0xa7 }, + 'outputlut' => { 316 => 0xa7 }, 'outputprofile' => { 137 => 0x138b }, 'outputresolution' => { 195 => 0x4 }, 'overclockcols' => { 137 => 0x189c }, 'overclockrows' => { 137 => 0x18c4 }, - 'overridelookvignette' => { 471 => 'OverrideLookVignette', 473 => 'OverrideLookVignette' }, - 'owner' => { 501 => 'Owner' }, + 'overridelookvignette' => { 473 => 'OverrideLookVignette', 475 => 'OverrideLookVignette' }, + 'owner' => { 503 => 'Owner' }, 'ownerid' => { 130 => 0xbc }, - 'ownername' => { 15 => 0x10f, 63 => 0x9, 96 => 0x810, 118 => [0xa430,0xfde8], 155 => 'OwnerName', 468 => 'OwnerName', 478 => 'CameraOwnerName' }, + 'ownername' => { 15 => 0x10f, 63 => 0x9, 96 => 0x810, 118 => [0xa430,0xfde8], 155 => 'OwnerName', 470 => 'OwnerName', 480 => 'CameraOwnerName' }, 'padding' => { 118 => 0xea1c }, - 'pagecount' => { 487 => 'pageCount' }, - 'pageimage' => { 495 => [\'PageInfo','PageInfoImage'] }, - 'pageimageformat' => { 495 => [\'PageInfo','PageInfoFormat'] }, - 'pageimageheight' => { 495 => [\'PageInfo','PageInfoHeight'] }, - 'pageimagepagenumber' => { 495 => [\'PageInfo','PageInfoPageNumber'] }, - 'pageimagewidth' => { 495 => [\'PageInfo','PageInfoWidth'] }, - 'pageinfo' => { 495 => 'PageInfo' }, + 'pagecount' => { 489 => 'pageCount' }, + 'pageimage' => { 497 => [\'PageInfo','PageInfoImage'] }, + 'pageimageformat' => { 497 => [\'PageInfo','PageInfoFormat'] }, + 'pageimageheight' => { 497 => [\'PageInfo','PageInfoHeight'] }, + 'pageimagepagenumber' => { 497 => [\'PageInfo','PageInfoPageNumber'] }, + 'pageimagewidth' => { 497 => [\'PageInfo','PageInfoWidth'] }, + 'pageinfo' => { 497 => 'PageInfo' }, 'pagename' => { 118 => 0x11d }, 'pagenumber' => { 118 => 0x129 }, - 'pageprogressiondirection' => { 487 => 'pageProgressionDirection' }, - 'pagerange' => { 487 => 'pageRange' }, - 'paintbasedcorrectionmasks' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'] }, - 'paintbasedcorrections' => { 471 => 'PaintBasedCorrections', 473 => 'PaintBasedCorrections' }, - 'paintcorrectionactive' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'] }, - 'paintcorrectionamount' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'] }, - 'paintcorrectionblacks2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'] }, - 'paintcorrectionbrightness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'] }, - 'paintcorrectionclarity' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'] }, - 'paintcorrectionclarity2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'] }, - 'paintcorrectioncontrast' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'] }, - 'paintcorrectioncontrast2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'] }, - 'paintcorrectioncorrectionname' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'] }, - 'paintcorrectioncorrectionsyncid' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'] }, - 'paintcorrectiondefringe' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'] }, - 'paintcorrectiondehaze' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'] }, - 'paintcorrectionexposure' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'] }, - 'paintcorrectionexposure2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'] }, - 'paintcorrectionhighlights2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'] }, - 'paintcorrectionhue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'] }, - 'paintcorrectionluminancenoise' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'] }, - 'paintcorrectionmaskalpha' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'] }, - 'paintcorrectionmaskangle' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'] }, - 'paintcorrectionmaskbottom' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'] }, - 'paintcorrectionmaskcentervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'] }, - 'paintcorrectionmaskcenterweight' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'] }, - 'paintcorrectionmaskdabs' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'] }, - 'paintcorrectionmaskfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'] }, - 'paintcorrectionmaskflipped' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'] }, - 'paintcorrectionmaskflow' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'] }, - 'paintcorrectionmaskfullx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'] }, - 'paintcorrectionmaskfully' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'] }, - 'paintcorrectionmaskinputdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'] }, - 'paintcorrectionmaskleft' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'] }, - 'paintcorrectionmaskmaskactive' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'] }, - 'paintcorrectionmaskmaskblendmode' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'] }, - 'paintcorrectionmaskmaskdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'] }, - 'paintcorrectionmaskmaskinverted' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'] }, - 'paintcorrectionmaskmaskname' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'] }, - 'paintcorrectionmaskmasks' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'] }, - 'paintcorrectionmaskmasksalpha' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'] }, - 'paintcorrectionmaskmasksangle' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'] }, - 'paintcorrectionmaskmasksbottom' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'] }, - 'paintcorrectionmaskmaskscentervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'] }, - 'paintcorrectionmaskmaskscenterweight' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, - 'paintcorrectionmaskmasksdabs' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'] }, - 'paintcorrectionmaskmasksfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'] }, - 'paintcorrectionmaskmasksflipped' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'] }, - 'paintcorrectionmaskmasksflow' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'] }, - 'paintcorrectionmaskmasksfullx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'] }, - 'paintcorrectionmaskmasksfully' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'] }, - 'paintcorrectionmaskmasksinputdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'] }, - 'paintcorrectionmaskmasksleft' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'] }, - 'paintcorrectionmaskmasksmaskactive' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'] }, - 'paintcorrectionmaskmasksmaskblendmode' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, - 'paintcorrectionmaskmasksmaskdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, - 'paintcorrectionmaskmasksmaskinverted' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, - 'paintcorrectionmaskmasksmaskname' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'] }, - 'paintcorrectionmaskmasksmasksubtype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, - 'paintcorrectionmaskmasksmasksyncid' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, - 'paintcorrectionmaskmasksmaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, - 'paintcorrectionmaskmasksmidpoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'] }, - 'paintcorrectionmaskmasksorigin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'] }, - 'paintcorrectionmaskmasksperimetervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, - 'paintcorrectionmaskmasksradius' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'] }, - 'paintcorrectionmaskmasksreferencepoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, - 'paintcorrectionmaskmasksright' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'] }, - 'paintcorrectionmaskmasksroundness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'] }, - 'paintcorrectionmaskmaskssizex' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'] }, - 'paintcorrectionmaskmaskssizey' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'] }, - 'paintcorrectionmaskmaskstop' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'] }, - 'paintcorrectionmaskmasksubtype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'] }, - 'paintcorrectionmaskmasksvalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'] }, - 'paintcorrectionmaskmasksversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'] }, - 'paintcorrectionmaskmaskswhat' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'] }, - 'paintcorrectionmaskmaskswholeimagearea' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, - 'paintcorrectionmaskmasksx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'] }, - 'paintcorrectionmaskmasksy' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'] }, - 'paintcorrectionmaskmasksyncid' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'] }, - 'paintcorrectionmaskmaskszerox' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'] }, - 'paintcorrectionmaskmaskszeroy' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'] }, - 'paintcorrectionmaskmaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'] }, - 'paintcorrectionmaskmidpoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'] }, - 'paintcorrectionmaskorigin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'] }, - 'paintcorrectionmaskperimetervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'] }, - 'paintcorrectionmaskradius' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'] }, - 'paintcorrectionmaskrange' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, - 'paintcorrectionmaskrangeareamodels' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, - 'paintcorrectionmaskrangeareamodelscolorsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'paintcorrectionmaskrangeareamodelscomponents' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'paintcorrectionmaskrangecoloramount' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, - 'paintcorrectionmaskrangedepthfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, - 'paintcorrectionmaskrangedepthmax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, - 'paintcorrectionmaskrangedepthmin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, - 'paintcorrectionmaskrangeinvert' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, - 'paintcorrectionmaskrangelumfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, - 'paintcorrectionmaskrangeluminancedepthsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'paintcorrectionmaskrangelummax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, - 'paintcorrectionmaskrangelummin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, - 'paintcorrectionmaskrangelumrange' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, - 'paintcorrectionmaskrangesampletype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, - 'paintcorrectionmaskrangetype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, - 'paintcorrectionmaskrangeversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, - 'paintcorrectionmaskreferencepoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'] }, - 'paintcorrectionmaskright' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'] }, - 'paintcorrectionmaskroundness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'] }, - 'paintcorrectionmasksizex' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'] }, - 'paintcorrectionmasksizey' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'] }, - 'paintcorrectionmasktop' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'] }, - 'paintcorrectionmaskvalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'] }, - 'paintcorrectionmaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'] }, - 'paintcorrectionmaskwhat' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'] }, - 'paintcorrectionmaskwholeimagearea' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'] }, - 'paintcorrectionmaskx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'] }, - 'paintcorrectionmasky' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'] }, - 'paintcorrectionmaskzerox' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'] }, - 'paintcorrectionmaskzeroy' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'] }, - 'paintcorrectionmoire' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'] }, - 'paintcorrectionrangemask' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'] }, - 'paintcorrectionrangemaskareamodels' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'] }, - 'paintcorrectionrangemaskareamodelscolorsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'paintcorrectionrangemaskareamodelscomponents' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'paintcorrectionrangemaskcoloramount' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'] }, - 'paintcorrectionrangemaskdepthfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, - 'paintcorrectionrangemaskdepthmax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'] }, - 'paintcorrectionrangemaskdepthmin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'] }, - 'paintcorrectionrangemaskinvert' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'] }, - 'paintcorrectionrangemasklumfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'] }, - 'paintcorrectionrangemaskluminancedepthsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'paintcorrectionrangemasklummax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'] }, - 'paintcorrectionrangemasklummin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'] }, - 'paintcorrectionrangemasklumrange' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'] }, - 'paintcorrectionrangemasksampletype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'] }, - 'paintcorrectionrangemasktype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'] }, - 'paintcorrectionrangemaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'] }, - 'paintcorrectionsaturation' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'] }, - 'paintcorrectionshadows2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'] }, - 'paintcorrectionsharpness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'] }, - 'paintcorrectiontemperature' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'] }, - 'paintcorrectiontexture' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'] }, - 'paintcorrectiontint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'] }, - 'paintcorrectiontoninghue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'] }, - 'paintcorrectiontoningsaturation' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'] }, - 'paintcorrectionwhat' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'] }, - 'paintcorrectionwhites2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'] }, - 'panasonicdatetime' => { 317 => 0x0 }, - 'panasonicexifversion' => { 314 => 0x26 }, - 'panasonicimageheight' => { 314 => 0x4c }, - 'panasonicimagewidth' => { 314 => 0x4b }, - 'panasonicrawversion' => { 319 => 0x1 }, + 'pageprogressiondirection' => { 489 => 'pageProgressionDirection' }, + 'pagerange' => { 489 => 'pageRange' }, + 'paintbasedcorrectionmasks' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'] }, + 'paintbasedcorrections' => { 473 => 'PaintBasedCorrections', 475 => 'PaintBasedCorrections' }, + 'paintcorrectionactive' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'] }, + 'paintcorrectionamount' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'] }, + 'paintcorrectionblacks2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'] }, + 'paintcorrectionbrightness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'] }, + 'paintcorrectionclarity' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'] }, + 'paintcorrectionclarity2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'] }, + 'paintcorrectioncontrast' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'] }, + 'paintcorrectioncontrast2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'] }, + 'paintcorrectioncorrectionname' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'] }, + 'paintcorrectioncorrectionsyncid' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'] }, + 'paintcorrectiondefringe' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'] }, + 'paintcorrectiondehaze' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'] }, + 'paintcorrectionexposure' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'] }, + 'paintcorrectionexposure2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'] }, + 'paintcorrectionhighlights2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'] }, + 'paintcorrectionhue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'] }, + 'paintcorrectionluminancenoise' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'] }, + 'paintcorrectionmaskalpha' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'] }, + 'paintcorrectionmaskangle' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'] }, + 'paintcorrectionmaskbottom' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'] }, + 'paintcorrectionmaskcentervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'] }, + 'paintcorrectionmaskcenterweight' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'] }, + 'paintcorrectionmaskdabs' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'] }, + 'paintcorrectionmaskfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'] }, + 'paintcorrectionmaskflipped' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'] }, + 'paintcorrectionmaskflow' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'] }, + 'paintcorrectionmaskfullx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'] }, + 'paintcorrectionmaskfully' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'] }, + 'paintcorrectionmaskinputdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'] }, + 'paintcorrectionmaskleft' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'] }, + 'paintcorrectionmaskmaskactive' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'] }, + 'paintcorrectionmaskmaskblendmode' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'] }, + 'paintcorrectionmaskmaskdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'] }, + 'paintcorrectionmaskmaskinverted' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'] }, + 'paintcorrectionmaskmaskname' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'] }, + 'paintcorrectionmaskmasks' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'] }, + 'paintcorrectionmaskmasksalpha' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'] }, + 'paintcorrectionmaskmasksangle' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'] }, + 'paintcorrectionmaskmasksbottom' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'] }, + 'paintcorrectionmaskmaskscentervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'] }, + 'paintcorrectionmaskmaskscenterweight' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, + 'paintcorrectionmaskmasksdabs' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'] }, + 'paintcorrectionmaskmasksfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'] }, + 'paintcorrectionmaskmasksflipped' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'] }, + 'paintcorrectionmaskmasksflow' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'] }, + 'paintcorrectionmaskmasksfullx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'] }, + 'paintcorrectionmaskmasksfully' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'] }, + 'paintcorrectionmaskmasksinputdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'] }, + 'paintcorrectionmaskmasksleft' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'] }, + 'paintcorrectionmaskmasksmaskactive' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'] }, + 'paintcorrectionmaskmasksmaskblendmode' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, + 'paintcorrectionmaskmasksmaskdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, + 'paintcorrectionmaskmasksmaskinverted' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, + 'paintcorrectionmaskmasksmaskname' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'] }, + 'paintcorrectionmaskmasksmasksubtype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, + 'paintcorrectionmaskmasksmasksyncid' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, + 'paintcorrectionmaskmasksmaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, + 'paintcorrectionmaskmasksmidpoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'] }, + 'paintcorrectionmaskmasksorigin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'] }, + 'paintcorrectionmaskmasksperimetervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, + 'paintcorrectionmaskmasksradius' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'] }, + 'paintcorrectionmaskmasksreferencepoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, + 'paintcorrectionmaskmasksright' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'] }, + 'paintcorrectionmaskmasksroundness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'] }, + 'paintcorrectionmaskmaskssizex' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'] }, + 'paintcorrectionmaskmaskssizey' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'] }, + 'paintcorrectionmaskmaskstop' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'] }, + 'paintcorrectionmaskmasksubtype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'] }, + 'paintcorrectionmaskmasksvalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'] }, + 'paintcorrectionmaskmasksversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'] }, + 'paintcorrectionmaskmaskswhat' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'] }, + 'paintcorrectionmaskmaskswholeimagearea' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, + 'paintcorrectionmaskmasksx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'] }, + 'paintcorrectionmaskmasksy' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'] }, + 'paintcorrectionmaskmasksyncid' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'] }, + 'paintcorrectionmaskmaskszerox' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'] }, + 'paintcorrectionmaskmaskszeroy' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'] }, + 'paintcorrectionmaskmaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'] }, + 'paintcorrectionmaskmidpoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'] }, + 'paintcorrectionmaskorigin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'] }, + 'paintcorrectionmaskperimetervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'] }, + 'paintcorrectionmaskradius' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'] }, + 'paintcorrectionmaskrange' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, + 'paintcorrectionmaskrangeareamodels' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, + 'paintcorrectionmaskrangeareamodelscolorsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'paintcorrectionmaskrangeareamodelscomponents' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'paintcorrectionmaskrangecoloramount' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, + 'paintcorrectionmaskrangedepthfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, + 'paintcorrectionmaskrangedepthmax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, + 'paintcorrectionmaskrangedepthmin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, + 'paintcorrectionmaskrangeinvert' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, + 'paintcorrectionmaskrangelumfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, + 'paintcorrectionmaskrangeluminancedepthsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'paintcorrectionmaskrangelummax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, + 'paintcorrectionmaskrangelummin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, + 'paintcorrectionmaskrangelumrange' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, + 'paintcorrectionmaskrangesampletype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, + 'paintcorrectionmaskrangetype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, + 'paintcorrectionmaskrangeversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, + 'paintcorrectionmaskreferencepoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'] }, + 'paintcorrectionmaskright' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'] }, + 'paintcorrectionmaskroundness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'] }, + 'paintcorrectionmasksizex' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'] }, + 'paintcorrectionmasksizey' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'] }, + 'paintcorrectionmasktop' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'] }, + 'paintcorrectionmaskvalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'] }, + 'paintcorrectionmaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'] }, + 'paintcorrectionmaskwhat' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'] }, + 'paintcorrectionmaskwholeimagearea' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'] }, + 'paintcorrectionmaskx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'] }, + 'paintcorrectionmasky' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'] }, + 'paintcorrectionmaskzerox' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'] }, + 'paintcorrectionmaskzeroy' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'] }, + 'paintcorrectionmoire' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'] }, + 'paintcorrectionrangemask' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'] }, + 'paintcorrectionrangemaskareamodels' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'] }, + 'paintcorrectionrangemaskareamodelscolorsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'paintcorrectionrangemaskareamodelscomponents' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'paintcorrectionrangemaskcoloramount' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'] }, + 'paintcorrectionrangemaskdepthfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, + 'paintcorrectionrangemaskdepthmax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'] }, + 'paintcorrectionrangemaskdepthmin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'] }, + 'paintcorrectionrangemaskinvert' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'] }, + 'paintcorrectionrangemasklumfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'] }, + 'paintcorrectionrangemaskluminancedepthsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'paintcorrectionrangemasklummax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'] }, + 'paintcorrectionrangemasklummin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'] }, + 'paintcorrectionrangemasklumrange' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'] }, + 'paintcorrectionrangemasksampletype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'] }, + 'paintcorrectionrangemasktype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'] }, + 'paintcorrectionrangemaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'] }, + 'paintcorrectionsaturation' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'] }, + 'paintcorrectionshadows2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'] }, + 'paintcorrectionsharpness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'] }, + 'paintcorrectiontemperature' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'] }, + 'paintcorrectiontexture' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'] }, + 'paintcorrectiontint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'] }, + 'paintcorrectiontoninghue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'] }, + 'paintcorrectiontoningsaturation' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'] }, + 'paintcorrectionwhat' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'] }, + 'paintcorrectionwhites2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'] }, + 'panasonicdatetime' => { 319 => 0x0 }, + 'panasonicexifversion' => { 316 => 0x26 }, + 'panasonicimageheight' => { 316 => 0x4c }, + 'panasonicimagewidth' => { 316 => 0x4b }, + 'panasonicrawversion' => { 321 => 0x1 }, 'panasonictitle' => { 118 => 0xc6d2 }, 'panasonictitle2' => { 118 => 0xc6d3 }, 'panoramaangle' => { 126 => 0x1153 }, - 'panoramacropbottom' => { 420 => 0x7 }, - 'panoramacropleft' => { 420 => 0x4 }, - 'panoramacropright' => { 420 => 0x6 }, - 'panoramacroptop' => { 420 => 0x5 }, - 'panoramadirection' => { 71 => 0x5, 126 => 0x1154, 420 => 0x3 }, - 'panoramaframeheight' => { 420 => 0x9 }, + 'panoramacropbottom' => { 422 => 0x7 }, + 'panoramacropleft' => { 422 => 0x4 }, + 'panoramacropright' => { 422 => 0x6 }, + 'panoramacroptop' => { 422 => 0x5 }, + 'panoramadirection' => { 71 => 0x5, 126 => 0x1154, 422 => 0x3 }, + 'panoramaframeheight' => { 422 => 0x9 }, 'panoramaframenumber' => { 71 => 0x2 }, - 'panoramaframewidth' => { 420 => 0x8 }, - 'panoramafullheight' => { 420 => 0x2 }, - 'panoramafullwidth' => { 420 => 0x1 }, - 'panoramamode' => { 139 => 0x3c, 291 => 0x601 }, - 'panoramasize3d' => { 403 => 0x38 }, - 'panoramasourceheight' => { 420 => 0xb }, - 'panoramasourcewidth' => { 420 => 0xa }, + 'panoramaframewidth' => { 422 => 0x8 }, + 'panoramafullheight' => { 422 => 0x2 }, + 'panoramafullwidth' => { 422 => 0x1 }, + 'panoramamode' => { 139 => 0x3c, 293 => 0x601 }, + 'panoramasize3d' => { 405 => 0x38 }, + 'panoramasourceheight' => { 422 => 0xb }, + 'panoramasourcewidth' => { 422 => 0xa }, 'panoramicstitchcameramotion' => { 175 => 'PanoramicStitchCameraMotion', 176 => 0x1 }, 'panoramicstitchmaptype' => { 175 => 'PanoramicStitchMapType', 176 => 0x2 }, 'panoramicstitchphi0' => { 175 => 'PanoramicStitchPhi0', 176 => 0x5 }, 'panoramicstitchphi1' => { 175 => 'PanoramicStitchPhi1', 176 => 0x6 }, 'panoramicstitchtheta0' => { 175 => 'PanoramicStitchTheta0', 176 => 0x3 }, 'panoramicstitchtheta1' => { 175 => 'PanoramicStitchTheta1', 176 => 0x4 }, 'panoramicstitchversion' => { 176 => 0x0 }, - 'pantry' => { 498 => 'Pantry' }, - 'pantryinstanceid' => { 498 => [\'Pantry','PantryInstanceID'] }, - 'parallax' => { 126 => 0xb211, 290 => 0x28 }, - 'parametricdarks' => { 471 => 'ParametricDarks', 473 => 'ParametricDarks' }, - 'parametrichighlights' => { 471 => 'ParametricHighlights', 473 => 'ParametricHighlights' }, - 'parametrichighlightsplit' => { 471 => 'ParametricHighlightSplit', 473 => 'ParametricHighlightSplit' }, - 'parametriclights' => { 471 => 'ParametricLights', 473 => 'ParametricLights' }, - 'parametricmidtonesplit' => { 471 => 'ParametricMidtoneSplit', 473 => 'ParametricMidtoneSplit' }, - 'parametricshadows' => { 471 => 'ParametricShadows', 473 => 'ParametricShadows' }, - 'parametricshadowsplit' => { 471 => 'ParametricShadowSplit', 473 => 'ParametricShadowSplit' }, + 'pantry' => { 500 => 'Pantry' }, + 'pantryinstanceid' => { 500 => [\'Pantry','PantryInstanceID'] }, + 'parallax' => { 126 => 0xb211, 292 => 0x28 }, + 'parametricdarks' => { 473 => 'ParametricDarks', 475 => 'ParametricDarks' }, + 'parametrichighlights' => { 473 => 'ParametricHighlights', 475 => 'ParametricHighlights' }, + 'parametrichighlightsplit' => { 473 => 'ParametricHighlightSplit', 475 => 'ParametricHighlightSplit' }, + 'parametriclights' => { 473 => 'ParametricLights', 475 => 'ParametricLights' }, + 'parametricmidtonesplit' => { 473 => 'ParametricMidtoneSplit', 475 => 'ParametricMidtoneSplit' }, + 'parametricshadows' => { 473 => 'ParametricShadows', 475 => 'ParametricShadows' }, + 'parametricshadowsplit' => { 473 => 'ParametricShadowSplit', 475 => 'ParametricShadowSplit' }, 'parentalrating' => { 178 => 'WM/ParentalRating' }, - 'parentmediaeventid' => { 461 => 'ParentMediaEventID' }, - 'parentmeid' => { 461 => 'ParentMEID' }, - 'parentproductid' => { 366 => '@ppi' }, - 'parentreference1' => { 481 => [\'TagStructure','TagStructureParentReference'] }, - 'parentreference2' => { 481 => [\'TagStructure','TagStructureSubLabelsParentReference'] }, - 'parentreference3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsParentReference'] }, - 'parentreference4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsParentReference'] }, - 'parentreference5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, - 'parentreference6' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, - 'parentshorttitle' => { 366 => '@PST' }, - 'parenttitle' => { 366 => '@pti' }, + 'parentmediaeventid' => { 463 => 'ParentMediaEventID' }, + 'parentmeid' => { 463 => 'ParentMEID' }, + 'parentproductid' => { 368 => '@ppi' }, + 'parentreference1' => { 483 => [\'TagStructure','TagStructureParentReference'] }, + 'parentreference2' => { 483 => [\'TagStructure','TagStructureSubLabelsParentReference'] }, + 'parentreference3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsParentReference'] }, + 'parentreference4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsParentReference'] }, + 'parentreference5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, + 'parentreference6' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, + 'parentshorttitle' => { 368 => '@PST' }, + 'parenttitle' => { 368 => '@pti' }, 'partialactivecols1' => { 137 => 0x17e8 }, 'partialactivecols2' => { 137 => 0x17f2 }, 'partialactiverows1' => { 137 => 0x17fc }, 'partialactiverows2' => { 137 => 0x1806 }, - 'partofcompilation' => { 497 => 'partOfCompilation' }, - 'patientbirthdate' => { 450 => 'PatientDOB' }, - 'patientid' => { 450 => 'PatientID' }, - 'patientname' => { 450 => 'PatientName' }, - 'patientsex' => { 450 => 'PatientSex' }, + 'partofcompilation' => { 499 => 'partOfCompilation' }, + 'patientbirthdate' => { 452 => 'PatientDOB' }, + 'patientid' => { 452 => 'PatientID' }, + 'patientname' => { 452 => 'PatientName' }, + 'patientsex' => { 452 => 'PatientSex' }, 'patternareaheight' => { 137 => 0x963 }, 'patternareawidth' => { 137 => 0x962 }, 'patterncorrectionfactorscale' => { 137 => 0x969 }, 'patterncropcols1' => { 137 => 0x96c }, 'patterncropcols2' => { 137 => 0x96d }, @@ -4939,56 +4941,56 @@ my %tagLookup = ( 'patterncroprows2' => { 137 => 0x96b }, 'patternimagerheight' => { 137 => 0x961 }, 'patternimagerwidth' => { 137 => 0x960 }, 'patternx' => { 137 => 0x966 }, 'patterny' => { 137 => 0x967 }, - 'pdfversion' => { 484 => 'PDFVersion' }, - 'pentaximagesize' => { 349 => 0x9 }, - 'pentaxmodelid' => { 329 => 0x0, 349 => 0x5 }, - 'pentaxmodeltype' => { 349 => 0x1 }, - 'pentaxversion' => { 349 => 0x0 }, - 'people' => { 452 => 'People', 464 => 'People' }, + 'pdfversion' => { 486 => 'PDFVersion' }, + 'pentaximagesize' => { 351 => 0x9 }, + 'pentaxmodelid' => { 331 => 0x0, 351 => 0x5 }, + 'pentaxmodeltype' => { 351 => 0x1 }, + 'pentaxversion' => { 351 => 0x0 }, + 'people' => { 454 => 'People', 466 => 'People' }, 'perchannelblacklevel' => { 41 => 0x157, 42 => 0x16b, 44 => 0xc4, 45 => [0x2b4,0x2cb,0x2cf], 46 => [0x108,0x14d], 47 => 0x1df, 48 => [0x1f8,0x2d8], 49 => [0x22c,0x30a], 50 => 0x149 }, - 'performer' => { 366 => 'perf', 374 => 'perf' }, - 'performerkeywords' => { 374 => "\xa9prk" }, - 'performers' => { 374 => "\xa9prf" }, - 'performerurl' => { 374 => "\xa9prl" }, + 'performer' => { 368 => 'perf', 376 => 'perf' }, + 'performerkeywords' => { 376 => "\xa9prk" }, + 'performers' => { 376 => "\xa9prf" }, + 'performerurl' => { 376 => "\xa9prl" }, 'period' => { 178 => 'WM/Period' }, - 'peripheralillumcentralradius' => { 448 => 0x8030 }, - 'peripheralillumcentralvalue' => { 448 => 0x8031 }, + 'peripheralillumcentralradius' => { 450 => 0x8030 }, + 'peripheralillumcentralvalue' => { 450 => 0x8031 }, 'peripheralillumination' => { 102 => 0x20702, 108 => 0x68 }, - 'peripheralilluminationcorr' => { 62 => 0x1, 339 => 0x2 }, + 'peripheralilluminationcorr' => { 62 => 0x1, 341 => 0x2 }, 'peripheralilluminationon' => { 102 => '0x20702.0', 108 => 0x64 }, - 'peripheralillumperiphvalue' => { 448 => 0x8032 }, + 'peripheralillumperiphvalue' => { 450 => 0x8032 }, 'peripherallighting' => { 78 => 0x2, 126 => 0x3804 }, 'peripherallightingsetting' => { 79 => 0x5 }, 'peripherallightingvalue' => { 78 => 0x6 }, - 'permissions' => { 490 => 'permissions' }, - 'permits' => { 469 => 'permits' }, - 'person' => { 487 => 'person' }, - 'personality' => { 461 => 'Personality' }, - 'personheard' => { 483 => 'PersonHeard' }, - 'personheardidentifier' => { 483 => [\'PersonHeard','PersonHeardIdentifier'] }, - 'personheardname' => { 483 => [\'PersonHeard','PersonHeardName'] }, - 'personinimage' => { 483 => 'PersonInImage' }, - 'personinimagecharacteristic' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristic'] }, - 'personinimagecvtermcvid' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvId'] }, - 'personinimagecvtermid' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermId'] }, - 'personinimagecvtermname' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermName'] }, - 'personinimagecvtermrefinedabout' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermRefinedAbout'] }, - 'personinimagedescription' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonDescription'] }, - 'personinimageid' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonId'] }, - 'personinimagename' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonName'] }, - 'personinimagewdetails' => { 483 => 'PersonInImageWDetails' }, - 'perspectiveaspect' => { 471 => 'PerspectiveAspect', 473 => 'PerspectiveAspect' }, - 'perspectivehorizontal' => { 471 => 'PerspectiveHorizontal', 473 => 'PerspectiveHorizontal' }, - 'perspectiverotate' => { 471 => 'PerspectiveRotate', 473 => 'PerspectiveRotate' }, - 'perspectivescale' => { 471 => 'PerspectiveScale', 473 => 'PerspectiveScale' }, - 'perspectiveupright' => { 471 => 'PerspectiveUpright', 473 => 'PerspectiveUpright' }, - 'perspectivevertical' => { 471 => 'PerspectiveVertical', 473 => 'PerspectiveVertical' }, - 'perspectivex' => { 471 => 'PerspectiveX', 473 => 'PerspectiveX' }, - 'perspectivey' => { 471 => 'PerspectiveY', 473 => 'PerspectiveY' }, + 'permissions' => { 492 => 'permissions' }, + 'permits' => { 471 => 'permits' }, + 'person' => { 489 => 'person' }, + 'personality' => { 463 => 'Personality' }, + 'personheard' => { 485 => 'PersonHeard' }, + 'personheardidentifier' => { 485 => [\'PersonHeard','PersonHeardIdentifier'] }, + 'personheardname' => { 485 => [\'PersonHeard','PersonHeardName'] }, + 'personinimage' => { 485 => 'PersonInImage' }, + 'personinimagecharacteristic' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristic'] }, + 'personinimagecvtermcvid' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvId'] }, + 'personinimagecvtermid' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermId'] }, + 'personinimagecvtermname' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermName'] }, + 'personinimagecvtermrefinedabout' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermRefinedAbout'] }, + 'personinimagedescription' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonDescription'] }, + 'personinimageid' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonId'] }, + 'personinimagename' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonName'] }, + 'personinimagewdetails' => { 485 => 'PersonInImageWDetails' }, + 'perspectiveaspect' => { 473 => 'PerspectiveAspect', 475 => 'PerspectiveAspect' }, + 'perspectivehorizontal' => { 473 => 'PerspectiveHorizontal', 475 => 'PerspectiveHorizontal' }, + 'perspectiverotate' => { 473 => 'PerspectiveRotate', 475 => 'PerspectiveRotate' }, + 'perspectivescale' => { 473 => 'PerspectiveScale', 475 => 'PerspectiveScale' }, + 'perspectiveupright' => { 473 => 'PerspectiveUpright', 475 => 'PerspectiveUpright' }, + 'perspectivevertical' => { 473 => 'PerspectiveVertical', 475 => 'PerspectiveVertical' }, + 'perspectivex' => { 473 => 'PerspectiveX', 475 => 'PerspectiveX' }, + 'perspectivey' => { 473 => 'PerspectiveY', 475 => 'PerspectiveY' }, 'pf0customfuncregistration' => { 91 => 0x1 }, 'pf10retainprogramshift' => { 91 => 0xb }, 'pf13drivepriority' => { 91 => 0xe }, 'pf14disablefocussearch' => { 91 => 0xf }, 'pf15disableafassistbeam' => { 91 => 0x10 }, @@ -5041,113 +5043,113 @@ my %tagLookup = ( 'pf8setbracketshots' => { 91 => 0x9 }, 'pf9changebracketsequence' => { 91 => 0xa }, 'phasedetectaf' => { 192 => 0x6 }, 'phonenumber' => { 156 => 'Phone' }, 'photoeffect' => { 34 => 0x28 }, - 'photoeffecthistoryxml' => { 267 => 0xe9651831 }, - 'photoeffects' => { 267 => 0xab5eca5e }, - 'photoeffectsblue' => { 269 => 0x8 }, - 'photoeffectsgreen' => { 269 => 0x6 }, - 'photoeffectsred' => { 269 => 0x4 }, - 'photoeffectstype' => { 269 => 0x0 }, - 'photographicsensitivity' => { 478 => 'PhotographicSensitivity' }, - 'photoinfoplayback' => { 274 => '17.6', 283 => '33.6' }, - 'photometricinterpretation' => { 118 => 0x106, 493 => 'PhotometricInterpretation' }, - 'photoshootingmenubank' => { 243 => 0xe7d, 253 => 0xfbd }, - 'photoshootingmenubankimagearea' => { 243 => '3716.1', 253 => 0x791 }, - 'photoshopbgrthumbnail' => { 363 => 0x409 }, - 'photoshopquality' => { 362 => 0x0 }, - 'photoshopthumbnail' => { 363 => 0x40c }, - 'photostyle' => { 314 => 0x89 }, - 'picklabel' => { 476 => 'PickLabel' }, - 'pictinfo' => { 390 => 0x208 }, - 'picturecontrol' => { 267 => 0xe2173c47 }, - 'picturecontrolactive' => { 270 => 0x0 }, - 'picturecontroladjust' => { 226 => 0x30, 227 => 0x30, 228 => 0x36 }, - 'picturecontrolbase' => { 226 => 0x18, 227 => 0x18, 228 => 0x1c }, + 'photoeffecthistoryxml' => { 269 => 0xe9651831 }, + 'photoeffects' => { 269 => 0xab5eca5e }, + 'photoeffectsblue' => { 271 => 0x8 }, + 'photoeffectsgreen' => { 271 => 0x6 }, + 'photoeffectsred' => { 271 => 0x4 }, + 'photoeffectstype' => { 271 => 0x0 }, + 'photographicsensitivity' => { 480 => 'PhotographicSensitivity' }, + 'photoinfoplayback' => { 276 => '17.6', 285 => '33.6' }, + 'photometricinterpretation' => { 118 => 0x106, 495 => 'PhotometricInterpretation' }, + 'photoshootingmenubank' => { 244 => 0xe7d, 254 => 0xfbd }, + 'photoshootingmenubankimagearea' => { 244 => '3716.1', 254 => 0x791 }, + 'photoshopbgrthumbnail' => { 365 => 0x409 }, + 'photoshopquality' => { 364 => 0x0 }, + 'photoshopthumbnail' => { 365 => 0x40c }, + 'photostyle' => { 316 => 0x89 }, + 'picklabel' => { 478 => 'PickLabel' }, + 'pictinfo' => { 392 => 0x208 }, + 'picturecontrol' => { 269 => 0xe2173c47 }, + 'picturecontrolactive' => { 272 => 0x0 }, + 'picturecontroladjust' => { 227 => 0x30, 228 => 0x30, 229 => 0x36 }, + 'picturecontrolbase' => { 227 => 0x18, 228 => 0x18, 229 => 0x1c }, 'picturecontroldata' => { 224 => [0xbd,0x23] }, - 'picturecontrolmode' => { 270 => 0x13 }, - 'picturecontrolname' => { 226 => 0x4, 227 => 0x4, 228 => 0x8 }, - 'picturecontrolquickadjust' => { 226 => 0x31, 227 => 0x31, 228 => 0x37 }, - 'pictureeffect' => { 414 => 0x200e }, - 'pictureeffect2' => { 422 => 0x1163, 423 => 0x1167, 424 => 0x1143, 425 => 0x11bf, 426 => 0x119b, 427 => 0x1053, 428 => 0x24b, 429 => 0x24b, 430 => 0x23c, 444 => 0x46 }, + 'picturecontrolmode' => { 272 => 0x13 }, + 'picturecontrolname' => { 227 => 0x4, 228 => 0x4, 229 => 0x8 }, + 'picturecontrolquickadjust' => { 227 => 0x31, 228 => 0x31, 229 => 0x37 }, + 'pictureeffect' => { 416 => 0x200e }, + 'pictureeffect2' => { 424 => 0x1163, 425 => 0x1167, 426 => 0x1143, 427 => 0x11bf, 428 => 0x119b, 429 => 0x1053, 430 => 0x24b, 431 => 0x24b, 432 => 0x23c, 446 => 0x46 }, 'picturefinish' => { 181 => 0x71 }, - 'picturemode' => { 126 => 0x1031, 291 => 0x520, 349 => [0xb,0x33], 391 => 0x3d }, - 'picturemode2' => { 330 => 0x0 }, - 'picturemodebwfilter' => { 291 => 0x525 }, - 'picturemodecontrast' => { 291 => 0x523 }, - 'picturemodeeffect' => { 291 => 0x52d }, - 'picturemodehue' => { 291 => 0x522 }, - 'picturemodesaturation' => { 291 => 0x521 }, - 'picturemodesharpness' => { 291 => 0x524 }, - 'picturemodetone' => { 291 => 0x526 }, - 'pictureprofile' => { 422 => [0x115e,0x115f], 423 => [0x1162,0x1163], 424 => [0x113e,0x113f], 425 => [0x11ba,0x11bb], 426 => [0x1196,0x1197], 427 => [0x104e,0x104f], 428 => [0x246,0x247], 429 => [0x246,0x247], 430 => [0x237,0x238] }, + 'picturemode' => { 126 => 0x1031, 293 => 0x520, 351 => [0xb,0x33], 393 => 0x3d }, + 'picturemode2' => { 332 => 0x0 }, + 'picturemodebwfilter' => { 293 => 0x525 }, + 'picturemodecontrast' => { 293 => 0x523 }, + 'picturemodeeffect' => { 293 => 0x52d }, + 'picturemodehue' => { 293 => 0x522 }, + 'picturemodesaturation' => { 293 => 0x521 }, + 'picturemodesharpness' => { 293 => 0x524 }, + 'picturemodetone' => { 293 => 0x526 }, + 'pictureprofile' => { 424 => [0x115e,0x115f], 425 => [0x1162,0x1163], 426 => [0x113e,0x113f], 427 => [0x11ba,0x11bb], 428 => [0x1196,0x1197], 429 => [0x104e,0x104f], 430 => [0x246,0x247], 431 => [0x246,0x247], 432 => [0x237,0x238] }, 'picturestyle' => { 8 => [0x4b,0x51], 9 => 0xf4, 10 => 0x6c, 11 => 0x86, 12 => 0x73, 16 => 0xab, 17 => 0xa7, 18 => 0xb0, 19 => 0x6c, 20 => 0xa7, 21 => 0xf4, 22 => 0xb3, 24 => 0xf4, 25 => 0xfa, 27 => 0x169, 73 => 0xa, 102 => 0x20301, 108 => 0x2 }, 'picturestylepc' => { 63 => 0x4009 }, 'picturestyleuserdef' => { 63 => 0x4008 }, - 'picturewizard' => { 388 => 0x21 }, - 'picturewizardcolor' => { 387 => 0x1 }, - 'picturewizardcontrast' => { 387 => 0x4 }, - 'picturewizardmode' => { 387 => 0x0 }, - 'picturewizardsaturation' => { 387 => 0x2 }, - 'picturewizardsharpness' => { 387 => 0x3 }, + 'picturewizard' => { 390 => 0x21 }, + 'picturewizardcolor' => { 389 => 0x1 }, + 'picturewizardcontrast' => { 389 => 0x4 }, + 'picturewizardmode' => { 389 => 0x0 }, + 'picturewizardsaturation' => { 389 => 0x2 }, + 'picturewizardsharpness' => { 389 => 0x3 }, 'pipelineversion' => { 175 => 'PipelineVersion' }, - 'pitch' => { 114 => 0x6, 275 => '4.1', 287 => '4.1', 374 => ['ptch',"\xa9fpt"] }, - 'pitchangle' => { 242 => 0x350f, 243 => 0x2c28, 247 => 0xc21e, 252 => 0x36f8, 253 => 0x2eff, 255 => 0xce36, 291 => 0x904, 314 => 0x91, 348 => 0x2, 386 => 0x1 }, - 'pitchshift' => { 368 => 'player.movie.audio.pitchshift' }, - 'pixelaspectratio' => { 367 => 'pasp' }, + 'pitch' => { 114 => 0x6, 277 => '4.1', 289 => '4.1', 376 => ['ptch',"\xa9fpt"] }, + 'pitchangle' => { 243 => 0x350f, 244 => 0x2c28, 248 => 0xc21e, 253 => 0x36f8, 254 => 0x2eff, 256 => 0xce36, 257 => 0xeaef, 293 => 0x904, 316 => 0x91, 350 => 0x2, 388 => 0x1 }, + 'pitchshift' => { 370 => 'player.movie.audio.pitchshift' }, + 'pixelaspectratio' => { 369 => 'pasp' }, 'pixelclockfrequency' => { 137 => 0x40b }, 'pixelcorrectionoffset' => { 137 => 0x972 }, 'pixelcorrectionscale' => { 137 => 0x971 }, 'pixelscale' => { 118 => 0x830e }, - 'pixelshiftinfo' => { 414 => 0x202f }, + 'pixelshiftinfo' => { 416 => 0x202f }, 'pixelshiftoffset' => { 126 => 0x1106 }, - 'pixelshiftresolution' => { 350 => 0x0 }, + 'pixelshiftresolution' => { 352 => 0x0 }, 'pixelshiftshots' => { 126 => 0x1105 }, - 'pixelsperunitx' => { 303 => 0x0 }, - 'pixelsperunity' => { 303 => 0x4 }, - 'pixelunits' => { 303 => 0x8 }, - 'planarconfiguration' => { 118 => 0x11c, 493 => 'PlanarConfiguration' }, - 'plane' => { 451 => [\'Planes','PlanesPlane'] }, - 'planeboundary' => { 451 => [\'Planes','PlanesPlaneBoundary'] }, - 'planeboundaryvertexcount' => { 451 => [\'Planes','PlanesPlaneBoundaryVertexCount'] }, - 'planeextentx' => { 451 => [\'Planes','PlanesPlaneExtentX'] }, - 'planeextentz' => { 451 => [\'Planes','PlanesPlaneExtentZ'] }, - 'planepose' => { 451 => [\'Planes','PlanesPlanePose'] }, - 'planeposepositionx' => { 451 => [\'Planes','PlanesPlanePosePositionX'] }, - 'planeposepositiony' => { 451 => [\'Planes','PlanesPlanePosePositionY'] }, - 'planeposepositionz' => { 451 => [\'Planes','PlanesPlanePosePositionZ'] }, - 'planeposerotationw' => { 451 => [\'Planes','PlanesPlanePoseRotationW'] }, - 'planeposerotationx' => { 451 => [\'Planes','PlanesPlanePoseRotationX'] }, - 'planeposerotationy' => { 451 => [\'Planes','PlanesPlanePoseRotationY'] }, - 'planeposerotationz' => { 451 => [\'Planes','PlanesPlanePoseRotationZ'] }, - 'planeposetimestamp' => { 451 => [\'Planes','PlanesPlanePoseTimestamp'] }, - 'planes' => { 451 => 'Planes' }, - 'planningref' => { 483 => 'PlanningRef' }, - 'planningrefidentifier' => { 483 => [\'PlanningRef','PlanningRefIdentifier'] }, - 'planningrefname' => { 483 => [\'PlanningRef','PlanningRefName'] }, - 'planningrefrole' => { 483 => [\'PlanningRef','PlanningRefRole'] }, - 'platenames' => { 502 => 'PlateNames' }, - 'platform' => { 487 => 'platform' }, - 'playallframes' => { 374 => 'AllF' }, - 'playbackmenustime' => { 279 => '20.1', 280 => '21.1', 281 => '21.1' }, - 'playbackmonitorofftime' => { 274 => '25.2', 275 => '36.1', 277 => '36.1', 278 => '36.1', 282 => '35.1', 283 => '8.1', 284 => '35.1', 287 => '36.1', 288 => '36.1', 289 => '21.1' }, - 'playbackzoom' => { 275 => '37.1' }, + 'pixelsperunitx' => { 305 => 0x0 }, + 'pixelsperunity' => { 305 => 0x4 }, + 'pixelunits' => { 305 => 0x8 }, + 'planarconfiguration' => { 118 => 0x11c, 495 => 'PlanarConfiguration' }, + 'plane' => { 453 => [\'Planes','PlanesPlane'] }, + 'planeboundary' => { 453 => [\'Planes','PlanesPlaneBoundary'] }, + 'planeboundaryvertexcount' => { 453 => [\'Planes','PlanesPlaneBoundaryVertexCount'] }, + 'planeextentx' => { 453 => [\'Planes','PlanesPlaneExtentX'] }, + 'planeextentz' => { 453 => [\'Planes','PlanesPlaneExtentZ'] }, + 'planepose' => { 453 => [\'Planes','PlanesPlanePose'] }, + 'planeposepositionx' => { 453 => [\'Planes','PlanesPlanePosePositionX'] }, + 'planeposepositiony' => { 453 => [\'Planes','PlanesPlanePosePositionY'] }, + 'planeposepositionz' => { 453 => [\'Planes','PlanesPlanePosePositionZ'] }, + 'planeposerotationw' => { 453 => [\'Planes','PlanesPlanePoseRotationW'] }, + 'planeposerotationx' => { 453 => [\'Planes','PlanesPlanePoseRotationX'] }, + 'planeposerotationy' => { 453 => [\'Planes','PlanesPlanePoseRotationY'] }, + 'planeposerotationz' => { 453 => [\'Planes','PlanesPlanePoseRotationZ'] }, + 'planeposetimestamp' => { 453 => [\'Planes','PlanesPlanePoseTimestamp'] }, + 'planes' => { 453 => 'Planes' }, + 'planningref' => { 485 => 'PlanningRef' }, + 'planningrefidentifier' => { 485 => [\'PlanningRef','PlanningRefIdentifier'] }, + 'planningrefname' => { 485 => [\'PlanningRef','PlanningRefName'] }, + 'planningrefrole' => { 485 => [\'PlanningRef','PlanningRefRole'] }, + 'platenames' => { 504 => 'PlateNames' }, + 'platform' => { 489 => 'platform' }, + 'playallframes' => { 376 => 'AllF' }, + 'playbackmenustime' => { 281 => '20.1', 282 => '21.1', 283 => '21.1' }, + 'playbackmonitorofftime' => { 276 => '25.2', 277 => '36.1', 279 => '36.1', 280 => '36.1', 284 => '35.1', 285 => '8.1', 286 => '35.1', 289 => '36.1', 290 => '36.1', 291 => '21.1' }, + 'playbackzoom' => { 277 => '37.1' }, 'playdisplay' => { 183 => 0x4e }, - 'playerversion' => { 368 => 'player.version' }, - 'playgap' => { 366 => 'pgap' }, - 'playlistid' => { 366 => 'plID' }, - 'playmode' => { 374 => 'SDLN' }, - 'playselection' => { 374 => 'SelO' }, - 'plusversion' => { 301 => 'Version' }, - 'pmversion' => { 361 => 'PMVersion' }, - 'pngwarning' => { 304 => 'Warning' }, - 'podcast' => { 366 => 'pcst' }, - 'podcasturl' => { 366 => 'purl' }, + 'playerversion' => { 370 => 'player.version' }, + 'playgap' => { 368 => 'pgap' }, + 'playlistid' => { 368 => 'plID' }, + 'playmode' => { 376 => 'SDLN' }, + 'playselection' => { 376 => 'SelO' }, + 'plusversion' => { 303 => 'Version' }, + 'pmversion' => { 363 => 'PMVersion' }, + 'pngwarning' => { 306 => 'Warning' }, + 'podcast' => { 368 => 'pcst' }, + 'podcasturl' => { 368 => 'purl' }, 'poilevel' => { 223 => 0x8 }, - 'portraitimpressionbalance' => { 255 => 0x7fa0 }, - 'portraitnote' => { 454 => 'PortraitNote' }, + 'portraitimpressionbalance' => { 256 => 0x7fa0 }, + 'portraitnote' => { 456 => 'PortraitNote' }, 'portraitoutputhighlightpoint' => { 108 => 0x1d }, 'portraitoutputshadowpoint' => { 108 => 0x1e }, 'portraitrawcolortone' => { 108 => 0x16 }, 'portraitrawcontrast' => { 108 => 0x18 }, 'portraitrawhighlight' => { 108 => 0x76 }, @@ -5156,113 +5158,113 @@ my %tagLookup = ( 'portraitrawsaturation' => { 108 => 0x17 }, 'portraitrawshadow' => { 108 => 0x7f }, 'portraitrawshadowpoint' => { 108 => 0x1c }, 'portraitrawsharpness' => { 108 => 0x1a }, 'portraitrefiner' => { 112 => 0x302b }, - 'portraitrequest' => { 454 => 'PortraitRequest' }, + 'portraitrequest' => { 456 => 'PortraitRequest' }, 'portraitunsharpmaskfineness' => { 108 => 0x9a }, 'portraitunsharpmaskstrength' => { 108 => 0x98 }, 'portraitunsharpmaskthreshold' => { 108 => 0x9c }, - 'portraitversion' => { 454 => 'PortraitVersion' }, - 'pose' => { 451 => 'Pose' }, - 'poseheadingdegrees' => { 459 => 'PoseHeadingDegrees' }, - 'posepitchdegrees' => { 459 => 'PosePitchDegrees' }, - 'posepositionx' => { 451 => [\'Pose','PosePositionX'] }, - 'posepositiony' => { 451 => [\'Pose','PosePositionY'] }, - 'posepositionz' => { 451 => [\'Pose','PosePositionZ'] }, - 'poserolldegrees' => { 459 => 'PoseRollDegrees' }, - 'poserotationw' => { 451 => [\'Pose','PoseRotationW'] }, - 'poserotationx' => { 451 => [\'Pose','PoseRotationX'] }, - 'poserotationy' => { 451 => [\'Pose','PoseRotationY'] }, - 'poserotationz' => { 451 => [\'Pose','PoseRotationZ'] }, - 'posetimestamp' => { 451 => [\'Pose','PoseTimestamp'] }, - 'positiondescriptor' => { 486 => 'positionDescriptor' }, + 'portraitversion' => { 456 => 'PortraitVersion' }, + 'pose' => { 453 => 'Pose' }, + 'poseheadingdegrees' => { 461 => 'PoseHeadingDegrees' }, + 'posepitchdegrees' => { 461 => 'PosePitchDegrees' }, + 'posepositionx' => { 453 => [\'Pose','PosePositionX'] }, + 'posepositiony' => { 453 => [\'Pose','PosePositionY'] }, + 'posepositionz' => { 453 => [\'Pose','PosePositionZ'] }, + 'poserolldegrees' => { 461 => 'PoseRollDegrees' }, + 'poserotationw' => { 453 => [\'Pose','PoseRotationW'] }, + 'poserotationx' => { 453 => [\'Pose','PoseRotationX'] }, + 'poserotationy' => { 453 => [\'Pose','PoseRotationY'] }, + 'poserotationz' => { 453 => [\'Pose','PoseRotationZ'] }, + 'posetimestamp' => { 453 => [\'Pose','PoseTimestamp'] }, + 'positiondescriptor' => { 488 => 'positionDescriptor' }, 'postalcode' => { 160 => 'PostalCode' }, - 'postcropvignetteamount' => { 471 => 'PostCropVignetteAmount', 473 => 'PostCropVignetteAmount' }, - 'postcropvignettefeather' => { 471 => 'PostCropVignetteFeather', 473 => 'PostCropVignetteFeather' }, - 'postcropvignettehighlightcontrast' => { 471 => 'PostCropVignetteHighlightContrast', 473 => 'PostCropVignetteHighlightContrast' }, - 'postcropvignettemidpoint' => { 471 => 'PostCropVignetteMidpoint', 473 => 'PostCropVignetteMidpoint' }, - 'postcropvignetteroundness' => { 471 => 'PostCropVignetteRoundness', 473 => 'PostCropVignetteRoundness' }, - 'postcropvignettestyle' => { 471 => 'PostCropVignetteStyle', 473 => 'PostCropVignetteStyle' }, - 'postfocusmerging' => { 314 => 0xbf }, - 'potentialface1position' => { 411 => 0xb }, - 'potentialface2position' => { 411 => 0x15 }, - 'potentialface3position' => { 411 => 0x1f }, - 'potentialface4position' => { 411 => 0x29 }, - 'potentialface5position' => { 411 => 0x33 }, - 'potentialface6position' => { 411 => 0x3d }, - 'potentialface7position' => { 411 => 0x47 }, - 'potentialface8position' => { 411 => 0x51 }, - 'powersource' => { 328 => '0.1' }, + 'postcropvignetteamount' => { 473 => 'PostCropVignetteAmount', 475 => 'PostCropVignetteAmount' }, + 'postcropvignettefeather' => { 473 => 'PostCropVignetteFeather', 475 => 'PostCropVignetteFeather' }, + 'postcropvignettehighlightcontrast' => { 473 => 'PostCropVignetteHighlightContrast', 475 => 'PostCropVignetteHighlightContrast' }, + 'postcropvignettemidpoint' => { 473 => 'PostCropVignetteMidpoint', 475 => 'PostCropVignetteMidpoint' }, + 'postcropvignetteroundness' => { 473 => 'PostCropVignetteRoundness', 475 => 'PostCropVignetteRoundness' }, + 'postcropvignettestyle' => { 473 => 'PostCropVignetteStyle', 475 => 'PostCropVignetteStyle' }, + 'postfocusmerging' => { 316 => 0xbf }, + 'potentialface1position' => { 413 => 0xb }, + 'potentialface2position' => { 413 => 0x15 }, + 'potentialface3position' => { 413 => 0x1f }, + 'potentialface4position' => { 413 => 0x29 }, + 'potentialface5position' => { 413 => 0x33 }, + 'potentialface6position' => { 413 => 0x3d }, + 'potentialface7position' => { 413 => 0x47 }, + 'potentialface8position' => { 413 => 0x51 }, + 'powersource' => { 330 => '0.1' }, 'poweruptime' => { 224 => 0xb6 }, 'preaf' => { 125 => '0.2' }, - 'precaptureframes' => { 296 => 0x300 }, + 'precaptureframes' => { 298 => 0x300 }, 'predictor' => { 118 => 0x13d }, - 'preflashreturnstrength' => { 240 => 0x28a }, - 'prefs' => { 130 => 0xdd, 361 => 'Prefs' }, + 'preflashreturnstrength' => { 241 => 0x28a }, + 'prefs' => { 130 => 0xdd, 363 => 'Prefs' }, 'prereadfastresetcount' => { 137 => 0x187e }, - 'preservedfilename' => { 498 => 'PreservedFileName' }, + 'preservedfilename' => { 500 => 'PreservedFileName' }, 'preservedspecimen' => { 117 => 'PreservedSpecimen' }, 'preservedspecimenmaterialsampleid' => { 117 => [\'PreservedSpecimen','PreservedSpecimenMaterialSampleID'] }, - 'presettype' => { 471 => 'PresetType', 473 => 'PresetType' }, - 'presetwhitebalance' => { 183 => 0x24, 448 => 0x8002 }, - 'presetwhitebalanceadj' => { 448 => 0x8014 }, - 'pressure' => { 118 => 0x9402, 478 => 'Pressure' }, + 'presettype' => { 473 => 'PresetType', 475 => 'PresetType' }, + 'presetwhitebalance' => { 183 => 0x24, 450 => 0x8002 }, + 'presetwhitebalanceadj' => { 450 => 0x8014 }, + 'pressure' => { 118 => 0x9402, 480 => 'Pressure' }, 'previewapplicationname' => { 118 => 0xc716 }, 'previewapplicationversion' => { 118 => 0xc717 }, - 'previewbutton' => { 274 => ['14.1','15.1'], 275 => '15.1', 277 => '15.1', 278 => '15.1', 283 => '29.1', 284 => '14.1', 287 => '15.1', 288 => '15.1' }, - 'previewbuttonplusdials' => { 274 => ['14.2','15.2'], 275 => '15.2', 277 => '43.1', 278 => '43.1', 283 => '31.2', 287 => '43.1', 288 => '43.1' }, + 'previewbutton' => { 276 => ['14.1','15.1'], 277 => '15.1', 279 => '15.1', 280 => '15.1', 285 => '29.1', 286 => '14.1', 289 => '15.1', 290 => '15.1' }, + 'previewbuttonplusdials' => { 276 => ['14.2','15.2'], 277 => '15.2', 279 => '43.1', 280 => '43.1', 285 => '31.2', 289 => '43.1', 290 => '43.1' }, 'previewcolorspace' => { 118 => 0xc71a }, - 'previewcropbottom' => { 360 => 0xef }, - 'previewcropleft' => { 360 => 0xec }, - 'previewcropright' => { 360 => 0xee }, - 'previewcroptop' => { 360 => 0xed }, - 'previewdate' => { 372 => 0x0 }, + 'previewcropbottom' => { 362 => 0xef }, + 'previewcropleft' => { 362 => 0xec }, + 'previewcropright' => { 362 => 0xee }, + 'previewcroptop' => { 362 => 0xed }, + 'previewdate' => { 374 => 0x0 }, 'previewdatetime' => { 118 => 0xc71b }, - 'previewimage' => { 112 => 0x2000, 113 => 'Exif-PreviewImage', 119 => 'PreviewImage', 121 => 0x4, 165 => 'data', 185 => 0x81, 296 => 0x280, 312 => 0x300, 374 => 'mcvr', 414 => 0x2001 }, - 'previewimageborders' => { 349 => 0x3e }, + 'previewimage' => { 112 => 0x2000, 113 => 'Exif-PreviewImage', 119 => 'PreviewImage', 121 => 0x4, 165 => 'data', 185 => 0x81, 298 => 0x280, 314 => 0x300, 376 => 'mcvr', 416 => 0x2001 }, + 'previewimageborders' => { 351 => 0x3e }, 'previewimageheight' => { 72 => 0x4, 141 => 0xfa58 }, - 'previewimagelength' => { 72 => 0x2, 112 => 0x3, 118 => [0x117,0x202], 185 => 0x89, 229 => 0x202, 291 => 0x102, 296 => 0x1037, 349 => 0x3, 380 => 0x1e, 385 => 0x3, 391 => [0x1b,0x1d], 404 => 0x202 }, + 'previewimagelength' => { 72 => 0x2, 112 => 0x3, 118 => [0x117,0x202], 185 => 0x89, 230 => 0x202, 293 => 0x102, 298 => 0x1037, 351 => 0x3, 382 => 0x1e, 387 => 0x3, 393 => [0x1b,0x1d], 406 => 0x202 }, 'previewimagename' => { 165 => '1Name' }, - 'previewimagesize' => { 112 => 0x2, 146 => 0x2, 165 => 'ImageSize', 349 => 0x2, 391 => [0x1c,0x1e], 414 => 0xb02c, 448 => 0x9012 }, - 'previewimagestart' => { 72 => 0x5, 112 => 0x4, 118 => [0x111,0x201], 185 => 0x88, 229 => 0x201, 291 => 0x101, 296 => 0x1036, 349 => 0x4, 380 => 0x1c, 385 => 0x2, 391 => [0x1a,0x1c], 404 => 0x201 }, + 'previewimagesize' => { 112 => 0x2, 146 => 0x2, 165 => 'ImageSize', 351 => 0x2, 393 => [0x1c,0x1e], 416 => 0xb02c, 450 => 0x9012 }, + 'previewimagestart' => { 72 => 0x5, 112 => 0x4, 118 => [0x111,0x201], 185 => 0x88, 230 => 0x201, 293 => 0x101, 298 => 0x1036, 351 => 0x4, 382 => 0x1c, 387 => 0x2, 393 => [0x1a,0x1c], 406 => 0x201 }, 'previewimagetype' => { 165 => '0Type' }, - 'previewimagevalid' => { 291 => 0x100, 296 => 0x1035 }, + 'previewimagevalid' => { 293 => 0x100, 298 => 0x1035 }, 'previewimagewidth' => { 72 => 0x3, 141 => 0xfa57 }, 'previewquality' => { 72 => 0x1 }, 'previewsettingsdigest' => { 118 => 0xc719 }, 'previewsettingsname' => { 118 => 0xc718 }, 'primaryafpoint' => { 192 => [0x38,0x44,0x7] }, - 'primarychromaticities' => { 118 => 0x13f, 493 => 'PrimaryChromaticities' }, - 'primaryftp' => { 461 => 'PrimaryFTP' }, - 'primaryslot' => { 243 => 0xe7f, 253 => 0xfbf }, + 'primarychromaticities' => { 118 => 0x13f, 495 => 'PrimaryChromaticities' }, + 'primaryftp' => { 463 => 'PrimaryFTP' }, + 'primaryslot' => { 244 => 0xe7f, 254 => 0xfbf }, 'printim' => { 118 => 0xc4a5 }, - 'prioritysetinawb' => { 414 => 0x202b }, - 'prioritysetupshutterrelease' => { 183 => 0x1d, 401 => 0x28 }, - 'privatertkinfo' => { 463 => 'privateRTKInfo' }, + 'prioritysetinawb' => { 416 => 0x202b }, + 'prioritysetupshutterrelease' => { 183 => 0x1d, 403 => 0x28 }, + 'privatertkinfo' => { 465 => 'privateRTKInfo' }, 'processbordercolsleft' => { 137 => 0xc61 }, 'processbordercolsright' => { 137 => 0xc62 }, 'processborderrowsbottom' => { 137 => 0xc64 }, 'processborderrowstop' => { 137 => 0xc63 }, 'processingsoftware' => { 118 => 0xb }, - 'processversion' => { 471 => 'ProcessVersion', 473 => 'ProcessVersion' }, - 'producer' => { 178 => 'WM/Producer', 300 => 'Producer', 366 => "\xa9prd", 368 => 'producer', 374 => "\xa9prd", 484 => 'Producer' }, - 'producerkeywords' => { 374 => "\xa9pdk" }, - 'productcode' => { 487 => 'productCode' }, - 'productid' => { 131 => 0x32, 366 => 'prID', 486 => 'productID' }, - 'productidtype' => { 486 => 'productIDType' }, - 'productinimage' => { 483 => 'ProductInImage' }, - 'productinimagedescription' => { 483 => [\'ProductInImage','ProductInImageProductDescription'] }, - 'productinimagegtin' => { 483 => [\'ProductInImage','ProductInImageProductGTIN'] }, - 'productinimagename' => { 483 => [\'ProductInImage','ProductInImageProductName'] }, - 'productioncode' => { 329 => 0x2 }, - 'productorserviceconstraints' => { 301 => 'ProductOrServiceConstraints' }, - 'productversion' => { 366 => 'VERS' }, - 'profession' => { 487 => 'profession' }, - 'profile' => { 451 => [\'Profiles','ProfilesProfile'] }, + 'processversion' => { 473 => 'ProcessVersion', 475 => 'ProcessVersion' }, + 'producer' => { 178 => 'WM/Producer', 302 => 'Producer', 368 => "\xa9prd", 370 => 'producer', 376 => "\xa9prd", 486 => 'Producer' }, + 'producerkeywords' => { 376 => "\xa9pdk" }, + 'productcode' => { 489 => 'productCode' }, + 'productid' => { 131 => 0x32, 368 => 'prID', 488 => 'productID' }, + 'productidtype' => { 488 => 'productIDType' }, + 'productinimage' => { 485 => 'ProductInImage' }, + 'productinimagedescription' => { 485 => [\'ProductInImage','ProductInImageProductDescription'] }, + 'productinimagegtin' => { 485 => [\'ProductInImage','ProductInImageProductGTIN'] }, + 'productinimagename' => { 485 => [\'ProductInImage','ProductInImageProductName'] }, + 'productioncode' => { 331 => 0x2 }, + 'productorserviceconstraints' => { 303 => 'ProductOrServiceConstraints' }, + 'productversion' => { 368 => 'VERS' }, + 'profession' => { 489 => 'profession' }, + 'profile' => { 453 => [\'Profiles','ProfilesProfile'] }, 'profilecalibrationsig' => { 118 => 0xc6f4 }, - 'profilecameraindices' => { 451 => [\'Profiles','ProfilesProfileCameraIndices'] }, + 'profilecameraindices' => { 453 => [\'Profiles','ProfilesProfileCameraIndices'] }, 'profilecopyright' => { 118 => 0xc6fe }, 'profileembedpolicy' => { 118 => 0xc6fd }, 'profilegaintablemap' => { 118 => 0xcd2d }, 'profilehuesatmapdata1' => { 118 => 0xc6fa }, 'profilehuesatmapdata2' => { 118 => 0xc6fb }, @@ -5271,169 +5273,169 @@ my %tagLookup = ( 'profilehuesatmapencoding' => { 118 => 0xc7a3 }, 'profilelooktabledata' => { 118 => 0xc726 }, 'profilelooktabledims' => { 118 => 0xc725 }, 'profilelooktableencoding' => { 118 => 0xc7a4 }, 'profilename' => { 118 => 0xc6f8 }, - 'profiles' => { 451 => 'Profiles' }, + 'profiles' => { 453 => 'Profiles' }, 'profiletonecurve' => { 118 => 0xc6fc }, - 'profiletype' => { 451 => [\'Profiles','ProfilesProfileType'] }, - 'programiso' => { 314 => 0x3c }, - 'programline' => { 330 => '1.1' }, + 'profiletype' => { 453 => [\'Profiles','ProfilesProfileType'] }, + 'programiso' => { 316 => 0x3c }, + 'programline' => { 332 => '1.1' }, 'programmode' => { 188 => 0x5 }, 'programshift' => { 224 => 0xd }, 'programversion' => { 130 => 0x46 }, - 'prohibits' => { 469 => 'prohibits' }, - 'projectiontype' => { 459 => 'ProjectionType', 460 => 'ProjectionType' }, - 'projectname' => { 497 => 'projectName' }, - 'projectref' => { 497 => 'projectRef' }, - 'projectrefpath' => { 497 => [\'projectRef','projectRefPath'] }, - 'projectreftype' => { 497 => [\'projectRef','projectRefType'] }, + 'prohibits' => { 471 => 'prohibits' }, + 'projectiontype' => { 461 => 'ProjectionType', 462 => 'ProjectionType' }, + 'projectname' => { 499 => 'projectName' }, + 'projectref' => { 499 => 'projectRef' }, + 'projectrefpath' => { 499 => [\'projectRef','projectRefPath'] }, + 'projectreftype' => { 499 => [\'projectRef','projectRefType'] }, 'promotionurl' => { 178 => 'WM/PromotionURL' }, - 'propertyreleaseid' => { 301 => 'PropertyReleaseID' }, - 'propertyreleasestatus' => { 301 => 'PropertyReleaseStatus' }, + 'propertyreleaseid' => { 303 => 'PropertyReleaseID' }, + 'propertyreleasestatus' => { 303 => 'PropertyReleaseStatus' }, 'provider' => { 178 => 'WM/Provider' }, 'province-state' => { 130 => 0x5f }, - 'publicationdate' => { 487 => 'publicationDate' }, - 'publicationdatea-platform' => { 487 => [\'publicationDate','publicationDateA-platform'] }, - 'publicationdatedate' => { 487 => [\'publicationDate','publicationDateDate'] }, - 'publicationdisplaydate' => { 487 => 'publicationDisplayDate' }, - 'publicationdisplaydatea-platform' => { 487 => [\'publicationDisplayDate','publicationDisplayDateA-platform'] }, - 'publicationdisplaydatedate' => { 487 => [\'publicationDisplayDate','publicationDisplayDateDate'] }, - 'publicationevent' => { 483 => 'PublicationEvent' }, - 'publicationeventdate' => { 483 => [\'PublicationEvent','PublicationEventDate'] }, - 'publicationeventidentifier' => { 483 => [\'PublicationEvent','PublicationEventIdentifier'] }, - 'publicationeventname' => { 483 => [\'PublicationEvent','PublicationEventName'] }, - 'publicationname' => { 487 => 'publicationName' }, - 'publisher' => { 178 => 'WM/Publisher', 366 => "\xa9pub", 368 => 'publisher', 474 => 'publisher' }, - 'publishingfrequency' => { 487 => 'publishingFrequency' }, - 'pulldown' => { 497 => 'pullDown' }, - 'purchasedate' => { 366 => 'purd' }, + 'publicationdate' => { 489 => 'publicationDate' }, + 'publicationdatea-platform' => { 489 => [\'publicationDate','publicationDateA-platform'] }, + 'publicationdatedate' => { 489 => [\'publicationDate','publicationDateDate'] }, + 'publicationdisplaydate' => { 489 => 'publicationDisplayDate' }, + 'publicationdisplaydatea-platform' => { 489 => [\'publicationDisplayDate','publicationDisplayDateA-platform'] }, + 'publicationdisplaydatedate' => { 489 => [\'publicationDisplayDate','publicationDisplayDateDate'] }, + 'publicationevent' => { 485 => 'PublicationEvent' }, + 'publicationeventdate' => { 485 => [\'PublicationEvent','PublicationEventDate'] }, + 'publicationeventidentifier' => { 485 => [\'PublicationEvent','PublicationEventIdentifier'] }, + 'publicationeventname' => { 485 => [\'PublicationEvent','PublicationEventName'] }, + 'publicationname' => { 489 => 'publicationName' }, + 'publisher' => { 178 => 'WM/Publisher', 368 => "\xa9pub", 370 => 'publisher', 476 => 'publisher' }, + 'publishingfrequency' => { 489 => 'publishingFrequency' }, + 'pulldown' => { 499 => 'pullDown' }, + 'purchasedate' => { 368 => 'purd' }, 'purplehsl' => { 102 => 0x20916 }, - 'pxshiftperiphedgenr' => { 448 => 0x9013 }, - 'pxshiftperiphedgenrvalue' => { 448 => 0x9014 }, - 'quality' => { 0 => 0x1, 34 => 0x3, 111 => 0x2, 112 => 0x3002, 126 => 0x1000, 139 => 0x9, 224 => 0x4, 256 => 0x3, 296 => 0x201, 309 => 0x300, 349 => 0x8, 356 => 0x2, 391 => 0x16, 401 => 0x56, 402 => 0x56, 403 => 0xb, 414 => [0x102,0x202e] }, - 'quality2' => { 422 => 0x1170, 423 => 0x1174, 424 => 0x1150, 426 => 0x11a8, 427 => 0x1060, 428 => 0x258, 429 => 0x258, 430 => 0x247, 435 => 0x29, 436 => 0x25, 437 => 0x2a }, + 'pxshiftperiphedgenr' => { 450 => 0x9013 }, + 'pxshiftperiphedgenrvalue' => { 450 => 0x9014 }, + 'quality' => { 0 => 0x1, 34 => 0x3, 111 => 0x2, 112 => 0x3002, 126 => 0x1000, 139 => 0x9, 224 => 0x4, 258 => 0x3, 298 => 0x201, 311 => 0x300, 351 => 0x8, 358 => 0x2, 393 => 0x16, 403 => 0x56, 404 => 0x56, 405 => 0xb, 416 => [0x102,0x202e] }, + 'quality2' => { 424 => 0x1170, 425 => 0x1174, 426 => 0x1150, 428 => 0x11a8, 429 => 0x1060, 430 => 0x258, 431 => 0x258, 432 => 0x247, 437 => 0x29, 438 => 0x25, 439 => 0x2a }, 'qualitymode' => { 112 => 0x8 }, 'quantizationmethod' => { 132 => 0x78 }, - 'quickadjust' => { 270 => 0x2a }, + 'quickadjust' => { 272 => 0x2a }, 'quickcontroldialinmeter' => { 83 => 0x703 }, - 'quickfix' => { 267 => 0x416391c6 }, - 'quickshot' => { 390 => 0x213 }, + 'quickfix' => { 269 => 0x416391c6 }, + 'quickshot' => { 392 => 0x213 }, 'quiettime' => { 137 => 0x188a }, - 'rads' => { 374 => 'rads' }, - 'rangefinder' => { 279 => '4.1', 280 => '5.1', 281 => '5.1' }, - 'rangemask' => { 471 => 'RangeMaskMapInfo', 473 => 'RangeMaskMapInfo' }, - 'rangemaskmapinfo' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'] }, - 'rangemaskmapinfolabmax' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'] }, - 'rangemaskmapinfolabmin' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'] }, - 'rangemaskmapinfolumeq' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'] }, - 'rangemaskmapinforgbmax' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'] }, - 'rangemaskmapinforgbmin' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'] }, + 'rads' => { 376 => 'rads' }, + 'rangefinder' => { 281 => '4.1', 282 => '5.1', 283 => '5.1' }, + 'rangemask' => { 473 => 'RangeMaskMapInfo', 475 => 'RangeMaskMapInfo' }, + 'rangemaskmapinfo' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'] }, + 'rangemaskmapinfolabmax' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'] }, + 'rangemaskmapinfolabmin' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'] }, + 'rangemaskmapinfolumeq' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'] }, + 'rangemaskmapinforgbmax' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'] }, + 'rangemaskmapinforgbmin' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'] }, 'rasterizedcaption' => { 130 => 0x7d }, - 'rating' => { 118 => 0x4746, 126 => 0x1431, 360 => 0xdf, 366 => 'rtng', 374 => 'rtng', 414 => 0x2002, 466 => 'rating', 475 => 'rating', 483 => 'Rating', 487 => 'rating', 495 => 'Rating' }, - 'ratingpercent' => { 118 => 0x4749, 177 => 'Rating', 366 => 'rate', 495 => 'RatingPercent' }, - 'ratingregion' => { 483 => [\'Rating','RatingRatingRegion'] }, - 'ratingregioncity' => { 483 => [\'Rating','RatingRatingRegionCity'] }, - 'ratingregioncountrycode' => { 483 => [\'Rating','RatingRatingRegionCountryCode'] }, - 'ratingregioncountryname' => { 483 => [\'Rating','RatingRatingRegionCountryName'] }, - 'ratingregiongpsaltitude' => { 483 => [\'Rating','RatingRatingRegionGPSAltitude'] }, - 'ratingregiongpslatitude' => { 483 => [\'Rating','RatingRatingRegionGPSLatitude'] }, - 'ratingregiongpslongitude' => { 483 => [\'Rating','RatingRatingRegionGPSLongitude'] }, - 'ratingregionidentifier' => { 483 => [\'Rating','RatingRatingRegionIdentifier'] }, - 'ratingregionlocationid' => { 483 => [\'Rating','RatingRatingRegionLocationId'] }, - 'ratingregionlocationname' => { 483 => [\'Rating','RatingRatingRegionLocationName'] }, - 'ratingregionprovincestate' => { 483 => [\'Rating','RatingRatingRegionProvinceState'] }, - 'ratingregionsublocation' => { 483 => [\'Rating','RatingRatingRegionSublocation'] }, - 'ratingregionworldregion' => { 483 => [\'Rating','RatingRatingRegionWorldRegion'] }, - 'ratingscalemaxvalue' => { 483 => [\'Rating','RatingRatingScaleMaxValue'] }, - 'ratingscaleminvalue' => { 483 => [\'Rating','RatingRatingScaleMinValue'] }, - 'ratingsourcelink' => { 483 => [\'Rating','RatingRatingSourceLink'] }, - 'ratingvalue' => { 483 => [\'Rating','RatingRatingValue'] }, - 'ratingvaluelogolink' => { 483 => [\'Rating','RatingRatingValueLogoLink'] }, - 'rawandjpgrecording' => { 81 => 0x8, 185 => 0x109, 330 => 0xd }, + 'rating' => { 118 => 0x4746, 126 => 0x1431, 362 => 0xdf, 368 => 'rtng', 376 => 'rtng', 416 => 0x2002, 468 => 'rating', 477 => 'rating', 485 => 'Rating', 489 => 'rating', 497 => 'Rating' }, + 'ratingpercent' => { 118 => 0x4749, 177 => 'Rating', 368 => 'rate', 497 => 'RatingPercent' }, + 'ratingregion' => { 485 => [\'Rating','RatingRatingRegion'] }, + 'ratingregioncity' => { 485 => [\'Rating','RatingRatingRegionCity'] }, + 'ratingregioncountrycode' => { 485 => [\'Rating','RatingRatingRegionCountryCode'] }, + 'ratingregioncountryname' => { 485 => [\'Rating','RatingRatingRegionCountryName'] }, + 'ratingregiongpsaltitude' => { 485 => [\'Rating','RatingRatingRegionGPSAltitude'] }, + 'ratingregiongpslatitude' => { 485 => [\'Rating','RatingRatingRegionGPSLatitude'] }, + 'ratingregiongpslongitude' => { 485 => [\'Rating','RatingRatingRegionGPSLongitude'] }, + 'ratingregionidentifier' => { 485 => [\'Rating','RatingRatingRegionIdentifier'] }, + 'ratingregionlocationid' => { 485 => [\'Rating','RatingRatingRegionLocationId'] }, + 'ratingregionlocationname' => { 485 => [\'Rating','RatingRatingRegionLocationName'] }, + 'ratingregionprovincestate' => { 485 => [\'Rating','RatingRatingRegionProvinceState'] }, + 'ratingregionsublocation' => { 485 => [\'Rating','RatingRatingRegionSublocation'] }, + 'ratingregionworldregion' => { 485 => [\'Rating','RatingRatingRegionWorldRegion'] }, + 'ratingscalemaxvalue' => { 485 => [\'Rating','RatingRatingScaleMaxValue'] }, + 'ratingscaleminvalue' => { 485 => [\'Rating','RatingRatingScaleMinValue'] }, + 'ratingsourcelink' => { 485 => [\'Rating','RatingRatingSourceLink'] }, + 'ratingvalue' => { 485 => [\'Rating','RatingRatingValue'] }, + 'ratingvaluelogolink' => { 485 => [\'Rating','RatingRatingValueLogoLink'] }, + 'rawandjpgrecording' => { 81 => 0x8, 185 => 0x109, 332 => 0xd }, 'rawbrightnessadj' => { 102 => 0x20001, 107 => 0x38 }, 'rawburstimagecount' => { 74 => 0x2 }, 'rawburstimagenum' => { 74 => 0x1 }, 'rawcoloradj' => { 107 => 0x2e }, - 'rawcropbottom' => { 360 => 0xd4 }, - 'rawcropleft' => { 360 => 0xd1 }, - 'rawcropright' => { 360 => 0xd3 }, - 'rawcroptop' => { 360 => 0xd2 }, + 'rawcropbottom' => { 362 => 0xd4 }, + 'rawcropleft' => { 362 => 0xd1 }, + 'rawcropright' => { 362 => 0xd3 }, + 'rawcroptop' => { 362 => 0xd2 }, 'rawcustomsaturation' => { 107 => 0x30 }, 'rawcustomtone' => { 107 => 0x34 }, - 'rawdata' => { 388 => 0xa048 }, - 'rawdatabyteorder' => { 388 => 0x40 }, - 'rawdatacfapattern' => { 388 => 0x50 }, + 'rawdata' => { 390 => 0xa048 }, + 'rawdatabyteorder' => { 390 => 0x40 }, + 'rawdatacfapattern' => { 390 => 0x50 }, 'rawdatauniqueid' => { 118 => 0xc65d }, 'rawdepth' => { 187 => 0x10 }, - 'rawdevartfilter' => { 298 => 0x121 }, - 'rawdevautogradation' => { 298 => 0x119 }, - 'rawdevcolorspace' => { 297 => 0x108, 298 => 0x109 }, - 'rawdevcontrastvalue' => { 297 => 0x106, 298 => 0x105 }, - 'rawdeveditstatus' => { 297 => 0x10b }, - 'rawdevelopmentprocess' => { 349 => 0x62 }, - 'rawdevengine' => { 297 => 0x109, 298 => 0x10b }, - 'rawdevexposurebiasvalue' => { 297 => 0x100, 298 => 0x100 }, - 'rawdevgradation' => { 298 => 0x112 }, - 'rawdevgraypoint' => { 297 => 0x103, 298 => 0x104 }, - 'rawdevmemorycoloremphasis' => { 297 => 0x105, 298 => 0x108 }, - 'rawdevnoisereduction' => { 297 => 0x10a, 298 => 0x10a }, - 'rawdevpicturemode' => { 298 => 0x10c }, - 'rawdevpm_bwfilter' => { 298 => 0x110 }, - 'rawdevpmcontrast' => { 298 => 0x10e }, - 'rawdevpmnoisefilter' => { 298 => 0x120 }, - 'rawdevpmpicturetone' => { 298 => 0x111 }, - 'rawdevpmsaturation' => { 298 => 0x10d }, - 'rawdevpmsharpness' => { 298 => 0x10f }, - 'rawdevsaturation3' => { 298 => 0x113 }, - 'rawdevsaturationemphasis' => { 297 => 0x104, 298 => 0x107 }, - 'rawdevsettings' => { 297 => 0x10c }, - 'rawdevsharpnessvalue' => { 297 => 0x107, 298 => 0x106 }, - 'rawdevversion' => { 297 => 0x0, 298 => 0x0 }, - 'rawdevwbfineadjustment' => { 297 => 0x102, 298 => 0x103 }, - 'rawdevwhitebalance' => { 298 => 0x101 }, - 'rawdevwhitebalancevalue' => { 297 => 0x101, 298 => 0x102 }, + 'rawdevartfilter' => { 300 => 0x121 }, + 'rawdevautogradation' => { 300 => 0x119 }, + 'rawdevcolorspace' => { 299 => 0x108, 300 => 0x109 }, + 'rawdevcontrastvalue' => { 299 => 0x106, 300 => 0x105 }, + 'rawdeveditstatus' => { 299 => 0x10b }, + 'rawdevelopmentprocess' => { 351 => 0x62 }, + 'rawdevengine' => { 299 => 0x109, 300 => 0x10b }, + 'rawdevexposurebiasvalue' => { 299 => 0x100, 300 => 0x100 }, + 'rawdevgradation' => { 300 => 0x112 }, + 'rawdevgraypoint' => { 299 => 0x103, 300 => 0x104 }, + 'rawdevmemorycoloremphasis' => { 299 => 0x105, 300 => 0x108 }, + 'rawdevnoisereduction' => { 299 => 0x10a, 300 => 0x10a }, + 'rawdevpicturemode' => { 300 => 0x10c }, + 'rawdevpm_bwfilter' => { 300 => 0x110 }, + 'rawdevpmcontrast' => { 300 => 0x10e }, + 'rawdevpmnoisefilter' => { 300 => 0x120 }, + 'rawdevpmpicturetone' => { 300 => 0x111 }, + 'rawdevpmsaturation' => { 300 => 0x10d }, + 'rawdevpmsharpness' => { 300 => 0x10f }, + 'rawdevsaturation3' => { 300 => 0x113 }, + 'rawdevsaturationemphasis' => { 299 => 0x104, 300 => 0x107 }, + 'rawdevsettings' => { 299 => 0x10c }, + 'rawdevsharpnessvalue' => { 299 => 0x107, 300 => 0x106 }, + 'rawdevversion' => { 299 => 0x0, 300 => 0x0 }, + 'rawdevwbfineadjustment' => { 299 => 0x102, 300 => 0x103 }, + 'rawdevwhitebalance' => { 300 => 0x101 }, + 'rawdevwhitebalancevalue' => { 299 => 0x101, 300 => 0x102 }, 'rawfile' => { 118 => 0xfe4c }, - 'rawfilename' => { 471 => 'RawFileName', 473 => 'RawFileName' }, - 'rawfiletype' => { 414 => 0x2029 }, - 'rawformat' => { 319 => 0x2d, 358 => 0x10e }, + 'rawfilename' => { 473 => 'RawFileName', 475 => 'RawFileName' }, + 'rawfiletype' => { 416 => 0x2029 }, + 'rawformat' => { 321 => 0x2d, 360 => 0x10e }, 'rawimagecenter' => { 224 => 0x99 }, 'rawimagedigest' => { 118 => 0xc71c }, - 'rawimagesize' => { 349 => 0x39 }, - 'rawinfoversion' => { 299 => 0x0 }, + 'rawimagesize' => { 351 => 0x39 }, + 'rawinfoversion' => { 301 => 0x0 }, 'rawjpgheight' => { 98 => 0x4 }, 'rawjpgquality' => { 57 => 0x6, 98 => 0x1 }, 'rawjpgsize' => { 57 => 0x7, 98 => 0x2 }, 'rawjpgwidth' => { 98 => 0x3 }, 'rawmeasuredrggb' => { 43 => 0x26a, 45 => 0x280, 47 => 0x194, 48 => [0x1ad,0x26b] }, - 'rawrppused' => { 466 => 'rawrppused' }, + 'rawrppused' => { 468 => 'rawrppused' }, 'rawtopreviewgain' => { 118 => 0xc7a8 }, 'readouttypeactual' => { 137 => 0x1903 }, 'readouttyperequested' => { 137 => 0x1902 }, - 'reardisplay' => { 274 => '12.3', 275 => '6.2' }, - 'recdevice' => { 483 => 'RecDevice' }, - 'recdeviceattlensdescription' => { 483 => [\'RecDevice','RecDeviceAttLensDescription'] }, - 'recdevicemanufacturer' => { 483 => [\'RecDevice','RecDeviceManufacturer'] }, - 'recdevicemodelname' => { 483 => [\'RecDevice','RecDeviceModelName'] }, - 'recdeviceownersdeviceid' => { 483 => [\'RecDevice','RecDeviceOwnersDeviceId'] }, - 'recdeviceserialnumber' => { 483 => [\'RecDevice','RecDeviceSerialNumber'] }, - 'recipeendingpage' => { 489 => 'recipeEndingPage' }, - 'recipepagerange' => { 489 => 'recipePageRange' }, - 'recipesource' => { 489 => 'recipeSource' }, - 'recipestartingpage' => { 489 => 'recipeStartingPage' }, - 'recipetitle' => { 489 => 'recipeTitle' }, - 'recognizedface1age' => { 307 => 0x20 }, - 'recognizedface1name' => { 307 => 0x4 }, - 'recognizedface1position' => { 307 => 0x18 }, - 'recognizedface2age' => { 307 => 0x50 }, - 'recognizedface2name' => { 307 => 0x34 }, - 'recognizedface2position' => { 307 => 0x48 }, - 'recognizedface3age' => { 307 => 0x80 }, - 'recognizedface3name' => { 307 => 0x64 }, - 'recognizedface3position' => { 307 => 0x78 }, - 'recognizedfaceflags' => { 314 => 0x63 }, - 'recommendedexposureindex' => { 118 => 0x8832, 478 => 'RecommendedExposureIndex' }, + 'reardisplay' => { 276 => '12.3', 277 => '6.2' }, + 'recdevice' => { 485 => 'RecDevice' }, + 'recdeviceattlensdescription' => { 485 => [\'RecDevice','RecDeviceAttLensDescription'] }, + 'recdevicemanufacturer' => { 485 => [\'RecDevice','RecDeviceManufacturer'] }, + 'recdevicemodelname' => { 485 => [\'RecDevice','RecDeviceModelName'] }, + 'recdeviceownersdeviceid' => { 485 => [\'RecDevice','RecDeviceOwnersDeviceId'] }, + 'recdeviceserialnumber' => { 485 => [\'RecDevice','RecDeviceSerialNumber'] }, + 'recipeendingpage' => { 491 => 'recipeEndingPage' }, + 'recipepagerange' => { 491 => 'recipePageRange' }, + 'recipesource' => { 491 => 'recipeSource' }, + 'recipestartingpage' => { 491 => 'recipeStartingPage' }, + 'recipetitle' => { 491 => 'recipeTitle' }, + 'recognizedface1age' => { 309 => 0x20 }, + 'recognizedface1name' => { 309 => 0x4 }, + 'recognizedface1position' => { 309 => 0x18 }, + 'recognizedface2age' => { 309 => 0x50 }, + 'recognizedface2name' => { 309 => 0x34 }, + 'recognizedface2position' => { 309 => 0x48 }, + 'recognizedface3age' => { 309 => 0x80 }, + 'recognizedface3name' => { 309 => 0x64 }, + 'recognizedface3position' => { 309 => 0x78 }, + 'recognizedfaceflags' => { 316 => 0x63 }, + 'recommendedexposureindex' => { 118 => 0x8832, 480 => 'RecommendedExposureIndex' }, 'record' => { 117 => 'Record' }, 'recordbasisofrecord' => { 117 => [\'Record','RecordBasisOfRecord'] }, 'recordcollectioncode' => { 117 => [\'Record','RecordCollectionCode'] }, 'recordcollectionid' => { 117 => [\'Record','RecordCollectionID'] }, 'recorddatageneralizations' => { 117 => [\'Record','RecordDataGeneralizations'] }, @@ -5441,41 +5443,41 @@ my %tagLookup = ( 'recorddatasetname' => { 117 => [\'Record','RecordDatasetName'] }, 'recorddisplay' => { 183 => 0x4d }, 'recorddynamicproperties' => { 117 => [\'Record','RecordDynamicProperties'] }, 'recordid' => { 96 => 0x1804 }, 'recordinformationwithheld' => { 117 => [\'Record','RecordInformationWithheld'] }, - 'recordingcopyright' => { 374 => "\xa9phg" }, - 'recordingformat' => { 381 => 0x1000 }, - 'recordingmode' => { 111 => 0x1, 356 => 0x1 }, + 'recordingcopyright' => { 376 => "\xa9phg" }, + 'recordingformat' => { 383 => 0x1000 }, + 'recordingmode' => { 111 => 0x1, 358 => 0x1 }, 'recordinstitutioncode' => { 117 => [\'Record','RecordInstitutionCode'] }, 'recordinstitutionid' => { 117 => [\'Record','RecordInstitutionID'] }, - 'recordlabelname' => { 374 => "\xa9lab" }, - 'recordlabelurl' => { 374 => "\xa9lal" }, + 'recordlabelname' => { 376 => "\xa9lab" }, + 'recordlabelurl' => { 376 => "\xa9lal" }, 'recordmode' => { 34 => 0x9, 112 => 0x3000 }, 'recordownerinstitutioncode' => { 117 => [\'Record','RecordOwnerInstitutionCode'] }, - 'recordshutterrelease' => { 390 => 0x217 }, - 'redbalance' => { 296 => 0x1017, 319 => 0x11, 349 => 0x1c }, + 'recordshutterrelease' => { 392 => 0x217 }, + 'redbalance' => { 298 => 0x1017, 321 => 0x11, 351 => 0x1c }, 'redcurvelimits' => { 107 => 0x18a }, 'redcurvepoints' => { 106 => 0x2d, 107 => 0x160 }, - 'redeyecorrection' => { 271 => 0x0 }, - 'redeyeinfo' => { 471 => 'RedEyeInfo', 473 => 'RedEyeInfo' }, - 'redeyereduction' => { 183 => 0x41, 401 => 0x6a, 403 => 0x28 }, - 'redeyeremoval' => { 314 => 0xb9 }, + 'redeyecorrection' => { 273 => 0x0 }, + 'redeyeinfo' => { 473 => 'RedEyeInfo', 475 => 'RedEyeInfo' }, + 'redeyereduction' => { 183 => 0x41, 403 => 0x6a, 405 => 0x28 }, + 'redeyeremoval' => { 316 => 0xb9 }, 'redhsl' => { 102 => 0x20910 }, - 'redhue' => { 471 => 'RedHue', 473 => 'RedHue' }, - 'redsaturation' => { 471 => 'RedSaturation', 473 => 'RedSaturation' }, + 'redhue' => { 473 => 'RedHue', 475 => 'RedHue' }, + 'redsaturation' => { 473 => 'RedSaturation', 475 => 'RedSaturation' }, 'reductionmatrix1' => { 118 => 0xc625 }, 'reductionmatrix2' => { 118 => 0xc626 }, 'reductionmatrix3' => { 118 => 0xcd3a }, - 'reelname' => { 118 => 0xc789, 374 => 'reel' }, - 'reference1' => { 481 => [\'TagStructure','TagStructureReference'] }, - 'reference2' => { 481 => [\'TagStructure','TagStructureSubLabelsReference'] }, - 'reference3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsReference'] }, - 'reference4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsReference'] }, - 'reference5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, - 'reference6' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, - 'referenceblackwhite' => { 118 => 0x214, 493 => 'ReferenceBlackWhite' }, + 'reelname' => { 118 => 0xc789, 376 => 'reel' }, + 'reference1' => { 483 => [\'TagStructure','TagStructureReference'] }, + 'reference2' => { 483 => [\'TagStructure','TagStructureSubLabelsReference'] }, + 'reference3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsReference'] }, + 'reference4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsReference'] }, + 'reference5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, + 'reference6' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, + 'referenceblackwhite' => { 118 => 0x214, 495 => 'ReferenceBlackWhite' }, 'referencedate' => { 130 => 0x2f }, 'referencenumber' => { 130 => 0x32 }, 'references' => { 156 => 'References' }, 'referenceservice' => { 130 => 0x2d }, 'regionappliedtodimensions' => { 171 => [\'Regions','RegionsAppliedToDimensions'] }, @@ -5488,11 +5490,11 @@ my %tagLookup = ( 'regionareaunit' => { 171 => [\'Regions','RegionsRegionListAreaUnit'] }, 'regionareaw' => { 171 => [\'Regions','RegionsRegionListAreaW'] }, 'regionareax' => { 171 => [\'Regions','RegionsRegionListAreaX'] }, 'regionareay' => { 171 => [\'Regions','RegionsRegionListAreaY'] }, 'regionbarcodevalue' => { 171 => [\'Regions','RegionsRegionListBarCodeValue'] }, - 'regionconstraints' => { 301 => 'RegionConstraints' }, + 'regionconstraints' => { 303 => 'RegionConstraints' }, 'regiondescription' => { 171 => [\'Regions','RegionsRegionListDescription'] }, 'regionextensions' => { 171 => [\'Regions','RegionsRegionListExtensions'] }, 'regionfocususage' => { 171 => [\'Regions','RegionsRegionListFocusUsage'] }, 'regioninfo' => { 171 => 'Regions' }, 'regioninfodateregionsvalid' => { 174 => [\'RegionInfo','RegionInfoDateRegionsValid'] }, @@ -5506,274 +5508,274 @@ my %tagLookup = ( 'regionpersonsourceid' => { 174 => [\'RegionInfo','RegionInfoRegionsPersonSourceID'] }, 'regionrectangle' => { 174 => [\'RegionInfo','RegionInfoRegionsRectangle'] }, 'regionrotation' => { 171 => [\'Regions','RegionsRegionListRotation'] }, 'regionseealso' => { 171 => [\'Regions','RegionsRegionListSeeAlso'] }, 'regiontype' => { 171 => [\'Regions','RegionsRegionListType'] }, - 'registryentryrole' => { 483 => [\'RegistryId','RegistryIdRegEntryRole'] }, - 'registryid' => { 483 => 'RegistryId' }, - 'registryitemid' => { 483 => [\'RegistryId','RegistryIdRegItemId'] }, - 'registryorganisationid' => { 483 => [\'RegistryId','RegistryIdRegOrgId'] }, + 'registryentryrole' => { 485 => [\'RegistryId','RegistryIdRegEntryRole'] }, + 'registryid' => { 485 => 'RegistryId' }, + 'registryitemid' => { 485 => [\'RegistryId','RegistryIdRegItemId'] }, + 'registryorganisationid' => { 485 => [\'RegistryId','RegistryIdRegOrgId'] }, 'relatedaudiofile' => { 154 => 'data' }, 'relatedaudiofilename' => { 154 => '1Name' }, 'relatedaudiofiletype' => { 154 => '0Type' }, 'relatedimagefileformat' => { 118 => 0x1000 }, 'relatedimageheight' => { 118 => 0x1002 }, 'relatedimagewidth' => { 118 => 0x1001 }, 'relatedresourceid' => { 117 => [\'ResourceRelationship','ResourceRelationshipRelatedResourceID'] }, - 'relatedsoundfile' => { 118 => 0xa004, 477 => 'RelatedSoundFile' }, + 'relatedsoundfile' => { 118 => 0xa004, 479 => 'RelatedSoundFile' }, 'relatedvideofile' => { 168 => 'data' }, 'relatedvideofilename' => { 168 => '1Name' }, 'relatedvideofiletype' => { 168 => '0Type' }, - 'relation' => { 474 => 'relation' }, + 'relation' => { 476 => 'relation' }, 'relationshipaccordingto' => { 117 => [\'ResourceRelationship','ResourceRelationshipRelationshipAccordingTo'] }, 'relationshipestablisheddate' => { 117 => [\'ResourceRelationship','ResourceRelationshipRelationshipEstablishedDate'] }, 'relationshipofresource' => { 117 => [\'ResourceRelationship','ResourceRelationshipRelationshipOfResource'] }, 'relationshipremarks' => { 117 => [\'ResourceRelationship','ResourceRelationshipRelationshipRemarks'] }, 'relativealtitude' => { 115 => 'RelativeAltitude' }, - 'relativepeakaudiofilepath' => { 497 => 'relativePeakAudioFilePath' }, - 'relativetimestamp' => { 497 => 'relativeTimestamp' }, - 'relativetimestampscale' => { 497 => [\'relativeTimestamp','relativeTimestampScale'] }, - 'relativetimestampvalue' => { 497 => [\'relativeTimestamp','relativeTimestampValue'] }, - 'releasebuttontousedial' => { 274 => '17.8', 275 => '18.5', 277 => '18.4', 278 => '18.4', 283 => '33.8', 284 => '17.6', 287 => '18.5', 288 => '18.4' }, - 'releasedate' => { 130 => 0x1e, 366 => 'rldt', 466 => 'ReleaseDate', 497 => 'releaseDate' }, - 'releasemode' => { 112 => 0x3001, 242 => 0x184d, 414 => 0xb049 }, - 'releasemode2' => { 422 => 0x112c, 423 => [0x112c,0x8], 424 => [0x1108,0x8], 425 => [0x1184,0x8], 426 => [0x1160,0x8], 427 => [0x4,0x1018], 428 => [0x4,0x210], 429 => [0x4,0x210], 430 => [0x4,0x208], 432 => [0x67,0x3f], 433 => [0x6b,0x6d,0x73,0x4b], 434 => [0x6b,0x4b], 435 => 0x10, 436 => 0x10, 437 => 0x9, 444 => 0x34 }, - 'releasemode3' => { 422 => 0x1128, 423 => 0x1128, 424 => 0x1104, 425 => 0x1180, 426 => 0x115c, 427 => 0x1014, 428 => 0x20c, 429 => 0x20c, 430 => 0x204 }, - 'releaseready' => { 483 => 'ReleaseReady' }, + 'relativepeakaudiofilepath' => { 499 => 'relativePeakAudioFilePath' }, + 'relativetimestamp' => { 499 => 'relativeTimestamp' }, + 'relativetimestampscale' => { 499 => [\'relativeTimestamp','relativeTimestampScale'] }, + 'relativetimestampvalue' => { 499 => [\'relativeTimestamp','relativeTimestampValue'] }, + 'releasebuttontousedial' => { 276 => '17.8', 277 => '18.5', 279 => '18.4', 280 => '18.4', 285 => '33.8', 286 => '17.6', 289 => '18.5', 290 => '18.4' }, + 'releasedate' => { 130 => 0x1e, 368 => 'rldt', 468 => 'ReleaseDate', 499 => 'releaseDate' }, + 'releasemode' => { 112 => 0x3001, 243 => 0x184d, 416 => 0xb049 }, + 'releasemode2' => { 424 => 0x112c, 425 => [0x112c,0x8], 426 => [0x1108,0x8], 427 => [0x1184,0x8], 428 => [0x1160,0x8], 429 => [0x4,0x1018], 430 => [0x4,0x210], 431 => [0x4,0x210], 432 => [0x4,0x208], 434 => [0x67,0x3f], 435 => [0x6b,0x6d,0x73,0x4b], 436 => [0x6b,0x4b], 437 => 0x10, 438 => 0x10, 439 => 0x9, 446 => 0x34 }, + 'releasemode3' => { 424 => 0x1128, 425 => 0x1128, 426 => 0x1104, 427 => 0x1180, 428 => 0x115c, 429 => 0x1014, 430 => 0x20c, 431 => 0x20c, 432 => 0x204 }, + 'releaseready' => { 485 => 'ReleaseReady' }, 'releasesetting' => { 96 => 0x1016 }, - 'releasetime' => { 130 => 0x23, 466 => 'ReleaseTime' }, - 'remoteonduration' => { 276 => '3.4', 279 => '17.2', 280 => '18.2', 281 => '18.2', 282 => '18.2', 284 => '18.2', 285 => '4.3', 289 => '19.2' }, - 'renditionclass' => { 498 => 'RenditionClass' }, - 'renditionof' => { 498 => 'RenditionOf' }, - 'renditionofalternatepaths' => { 498 => [\'RenditionOf','RenditionOfAlternatePaths'] }, - 'renditionofdocumentid' => { 498 => [\'RenditionOf','RenditionOfDocumentID'] }, - 'renditionoffilepath' => { 498 => [\'RenditionOf','RenditionOfFilePath'] }, - 'renditionoffrompart' => { 498 => [\'RenditionOf','RenditionOfFromPart'] }, - 'renditionofinstanceid' => { 498 => [\'RenditionOf','RenditionOfInstanceID'] }, - 'renditionoflastmodifydate' => { 498 => [\'RenditionOf','RenditionOfLastModifyDate'] }, - 'renditionoflasturl' => { 498 => [\'RenditionOf','RenditionOfLastURL'] }, - 'renditionoflinkcategory' => { 498 => [\'RenditionOf','RenditionOfLinkCategory'] }, - 'renditionoflinkform' => { 498 => [\'RenditionOf','RenditionOfLinkForm'] }, - 'renditionofmanager' => { 498 => [\'RenditionOf','RenditionOfManager'] }, - 'renditionofmanagervariant' => { 498 => [\'RenditionOf','RenditionOfManagerVariant'] }, - 'renditionofmanageto' => { 498 => [\'RenditionOf','RenditionOfManageTo'] }, - 'renditionofmanageui' => { 498 => [\'RenditionOf','RenditionOfManageUI'] }, - 'renditionofmaskmarkers' => { 498 => [\'RenditionOf','RenditionOfMaskMarkers'] }, - 'renditionoforiginaldocumentid' => { 498 => [\'RenditionOf','RenditionOfOriginalDocumentID'] }, - 'renditionofpartmapping' => { 498 => [\'RenditionOf','RenditionOfPartMapping'] }, - 'renditionofplacedresolutionunit' => { 498 => [\'RenditionOf','RenditionOfPlacedResolutionUnit'] }, - 'renditionofplacedxresolution' => { 498 => [\'RenditionOf','RenditionOfPlacedXResolution'] }, - 'renditionofplacedyresolution' => { 498 => [\'RenditionOf','RenditionOfPlacedYResolution'] }, - 'renditionofrenditionclass' => { 498 => [\'RenditionOf','RenditionOfRenditionClass'] }, - 'renditionofrenditionparams' => { 498 => [\'RenditionOf','RenditionOfRenditionParams'] }, - 'renditionoftopart' => { 498 => [\'RenditionOf','RenditionOfToPart'] }, - 'renditionofversionid' => { 498 => [\'RenditionOf','RenditionOfVersionID'] }, - 'renditionparams' => { 498 => 'RenditionParams' }, - 'repeatingflashcount' => { 207 => 0xd, 208 => 0xe, 209 => 0xe, 210 => 0xe, 211 => 0xe, 283 => '17.2', 284 => '24.2', 285 => '9.2', 286 => '24.2', 289 => '25.2' }, - 'repeatingflashcountbuilt-in' => { 251 => 0x4db }, - 'repeatingflashcountexternal' => { 251 => 0x4c3 }, - 'repeatingflashoutput' => { 283 => '17.1', 284 => '24.1', 285 => '9.1', 286 => '24.1', 289 => '25.1' }, - 'repeatingflashoutputexternal' => { 251 => 0x4c0 }, - 'repeatingflashrate' => { 207 => 0xc, 208 => 0xd, 209 => 0xd, 210 => 0xd, 211 => 0xd, 283 => '18.1', 284 => '25.1', 285 => '10.1', 286 => '25.1', 289 => '26.1' }, - 'repeatingflashratebuilt-in' => { 251 => 0x4da }, - 'repeatingflashrateexternal' => { 251 => 0x4c2 }, - 'requirements' => { 374 => "\xa9req" }, - 'requires' => { 469 => 'requires' }, - 'resampleparams' => { 497 => 'resampleParams' }, - 'resampleparamsquality' => { 497 => [\'resampleParams','resampleParamsQuality'] }, + 'releasetime' => { 130 => 0x23, 468 => 'ReleaseTime' }, + 'remoteonduration' => { 278 => '3.4', 281 => '17.2', 282 => '18.2', 283 => '18.2', 284 => '18.2', 286 => '18.2', 287 => '4.3', 291 => '19.2' }, + 'renditionclass' => { 500 => 'RenditionClass' }, + 'renditionof' => { 500 => 'RenditionOf' }, + 'renditionofalternatepaths' => { 500 => [\'RenditionOf','RenditionOfAlternatePaths'] }, + 'renditionofdocumentid' => { 500 => [\'RenditionOf','RenditionOfDocumentID'] }, + 'renditionoffilepath' => { 500 => [\'RenditionOf','RenditionOfFilePath'] }, + 'renditionoffrompart' => { 500 => [\'RenditionOf','RenditionOfFromPart'] }, + 'renditionofinstanceid' => { 500 => [\'RenditionOf','RenditionOfInstanceID'] }, + 'renditionoflastmodifydate' => { 500 => [\'RenditionOf','RenditionOfLastModifyDate'] }, + 'renditionoflasturl' => { 500 => [\'RenditionOf','RenditionOfLastURL'] }, + 'renditionoflinkcategory' => { 500 => [\'RenditionOf','RenditionOfLinkCategory'] }, + 'renditionoflinkform' => { 500 => [\'RenditionOf','RenditionOfLinkForm'] }, + 'renditionofmanager' => { 500 => [\'RenditionOf','RenditionOfManager'] }, + 'renditionofmanagervariant' => { 500 => [\'RenditionOf','RenditionOfManagerVariant'] }, + 'renditionofmanageto' => { 500 => [\'RenditionOf','RenditionOfManageTo'] }, + 'renditionofmanageui' => { 500 => [\'RenditionOf','RenditionOfManageUI'] }, + 'renditionofmaskmarkers' => { 500 => [\'RenditionOf','RenditionOfMaskMarkers'] }, + 'renditionoforiginaldocumentid' => { 500 => [\'RenditionOf','RenditionOfOriginalDocumentID'] }, + 'renditionofpartmapping' => { 500 => [\'RenditionOf','RenditionOfPartMapping'] }, + 'renditionofplacedresolutionunit' => { 500 => [\'RenditionOf','RenditionOfPlacedResolutionUnit'] }, + 'renditionofplacedxresolution' => { 500 => [\'RenditionOf','RenditionOfPlacedXResolution'] }, + 'renditionofplacedyresolution' => { 500 => [\'RenditionOf','RenditionOfPlacedYResolution'] }, + 'renditionofrenditionclass' => { 500 => [\'RenditionOf','RenditionOfRenditionClass'] }, + 'renditionofrenditionparams' => { 500 => [\'RenditionOf','RenditionOfRenditionParams'] }, + 'renditionoftopart' => { 500 => [\'RenditionOf','RenditionOfToPart'] }, + 'renditionofversionid' => { 500 => [\'RenditionOf','RenditionOfVersionID'] }, + 'renditionparams' => { 500 => 'RenditionParams' }, + 'repeatingflashcount' => { 207 => 0xd, 208 => 0xe, 209 => 0xe, 210 => 0xe, 211 => 0xe, 285 => '17.2', 286 => '24.2', 287 => '9.2', 288 => '24.2', 291 => '25.2' }, + 'repeatingflashcountbuilt-in' => { 252 => 0x4db }, + 'repeatingflashcountexternal' => { 252 => 0x4c3 }, + 'repeatingflashoutput' => { 285 => '17.1', 286 => '24.1', 287 => '9.1', 288 => '24.1', 291 => '25.1' }, + 'repeatingflashoutputexternal' => { 252 => 0x4c0 }, + 'repeatingflashrate' => { 207 => 0xc, 208 => 0xd, 209 => 0xd, 210 => 0xd, 211 => 0xd, 285 => '18.1', 286 => '25.1', 287 => '10.1', 288 => '25.1', 291 => '26.1' }, + 'repeatingflashratebuilt-in' => { 252 => 0x4da }, + 'repeatingflashrateexternal' => { 252 => 0x4c2 }, + 'requirements' => { 376 => "\xa9req" }, + 'requires' => { 471 => 'requires' }, + 'resampleparams' => { 499 => 'resampleParams' }, + 'resampleparamsquality' => { 499 => [\'resampleParams','resampleParamsQuality'] }, 'resamplingkerneldenominators050' => { 137 => 0xe50 }, 'resamplingkerneldenominators067' => { 137 => 0xe4f }, 'resamplingkerneldenominators100' => { 137 => 0xe51 }, - 'resaved' => { 390 => 0x21e }, + 'resaved' => { 392 => 0x21e }, 'resetblacksegrows' => { 137 => 0x181a }, 'resolution' => { 161 => 'Resolution' }, - 'resolutionmode' => { 391 => [0x87,0x4] }, - 'resolutionunit' => { 118 => 0x128, 133 => 0x2, 493 => 'ResolutionUnit' }, + 'resolutionmode' => { 393 => [0x87,0x4] }, + 'resolutionunit' => { 118 => 0x128, 133 => 0x2, 495 => 'ResolutionUnit' }, 'resourceid' => { 117 => [\'ResourceRelationship','ResourceRelationshipResourceID'] }, 'resourcerelationship' => { 117 => 'ResourceRelationship' }, 'resourcerelationshipid' => { 117 => [\'ResourceRelationship','ResourceRelationshipResourceRelationshipID'] }, 'restrictdrivemodes' => { 83 => 0x612 }, - 'restrictions' => { 490 => 'restrictions' }, - 'retouchareafeather' => { 471 => [\'RetouchAreas','RetouchAreasFeather'], 473 => [\'RetouchAreas','RetouchAreasFeather'] }, - 'retouchareamaskalpha' => { 471 => [\'RetouchAreas','RetouchAreasMasksAlpha'], 473 => [\'RetouchAreas','RetouchAreasMasksAlpha'] }, - 'retouchareamaskangle' => { 471 => [\'RetouchAreas','RetouchAreasMasksAngle'], 473 => [\'RetouchAreas','RetouchAreasMasksAngle'] }, - 'retouchareamaskbottom' => { 471 => [\'RetouchAreas','RetouchAreasMasksBottom'], 473 => [\'RetouchAreas','RetouchAreasMasksBottom'] }, - 'retouchareamaskcentervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksCenterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksCenterValue'] }, - 'retouchareamaskcenterweight' => { 471 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'], 473 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'] }, - 'retouchareamaskdabs' => { 471 => [\'RetouchAreas','RetouchAreasMasksDabs'], 473 => [\'RetouchAreas','RetouchAreasMasksDabs'] }, - 'retouchareamaskfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksFeather'] }, - 'retouchareamaskflipped' => { 471 => [\'RetouchAreas','RetouchAreasMasksFlipped'], 473 => [\'RetouchAreas','RetouchAreasMasksFlipped'] }, - 'retouchareamaskflow' => { 471 => [\'RetouchAreas','RetouchAreasMasksFlow'], 473 => [\'RetouchAreas','RetouchAreasMasksFlow'] }, - 'retouchareamaskfullx' => { 471 => [\'RetouchAreas','RetouchAreasMasksFullX'], 473 => [\'RetouchAreas','RetouchAreasMasksFullX'] }, - 'retouchareamaskfully' => { 471 => [\'RetouchAreas','RetouchAreasMasksFullY'], 473 => [\'RetouchAreas','RetouchAreasMasksFullY'] }, - 'retouchareamaskinputdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksInputDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksInputDigest'] }, - 'retouchareamaskleft' => { 471 => [\'RetouchAreas','RetouchAreasMasksLeft'], 473 => [\'RetouchAreas','RetouchAreasMasksLeft'] }, - 'retouchareamaskmaskactive' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskActive'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskActive'] }, - 'retouchareamaskmaskblendmode' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'] }, - 'retouchareamaskmaskdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'] }, - 'retouchareamaskmaskinverted' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'] }, - 'retouchareamaskmaskname' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskName'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskName'] }, - 'retouchareamaskmasks' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasks'], 473 => [\'RetouchAreas','RetouchAreasMasksMasks'] }, - 'retouchareamaskmasksalpha' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'] }, - 'retouchareamaskmasksangle' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'] }, - 'retouchareamaskmasksbottom' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'] }, - 'retouchareamaskmaskscentervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'] }, - 'retouchareamaskmaskscenterweight' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'] }, - 'retouchareamaskmasksdabs' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'] }, - 'retouchareamaskmasksfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'] }, - 'retouchareamaskmasksflipped' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'] }, - 'retouchareamaskmasksflow' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'] }, - 'retouchareamaskmasksfullx' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'] }, - 'retouchareamaskmasksfully' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'] }, - 'retouchareamaskmasksinputdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'] }, - 'retouchareamaskmasksleft' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'] }, - 'retouchareamaskmasksmaskactive' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'] }, - 'retouchareamaskmasksmaskblendmode' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'] }, - 'retouchareamaskmasksmaskdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'] }, - 'retouchareamaskmasksmaskinverted' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'] }, - 'retouchareamaskmasksmaskname' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'] }, - 'retouchareamaskmasksmasksubtype' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'] }, - 'retouchareamaskmasksmasksyncid' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'] }, - 'retouchareamaskmasksmaskversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'] }, - 'retouchareamaskmasksmidpoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'] }, - 'retouchareamaskmasksorigin' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'] }, - 'retouchareamaskmasksperimetervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'] }, - 'retouchareamaskmasksradius' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'] }, - 'retouchareamaskmasksreferencepoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'] }, - 'retouchareamaskmasksright' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksRight'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksRight'] }, - 'retouchareamaskmasksroundness' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'] }, - 'retouchareamaskmaskssizex' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'] }, - 'retouchareamaskmaskssizey' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'] }, - 'retouchareamaskmaskstop' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksTop'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksTop'] }, - 'retouchareamaskmasksubtype' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'] }, - 'retouchareamaskmasksvalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'] }, - 'retouchareamaskmasksversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'] }, - 'retouchareamaskmaskswhat' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'] }, - 'retouchareamaskmaskswholeimagearea' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'] }, - 'retouchareamaskmasksx' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksX'] }, - 'retouchareamaskmasksy' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksY'] }, - 'retouchareamaskmasksyncid' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'] }, - 'retouchareamaskmaskszerox' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'] }, - 'retouchareamaskmaskszeroy' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'] }, - 'retouchareamaskmaskversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'] }, - 'retouchareamaskmidpoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksMidpoint'], 473 => [\'RetouchAreas','RetouchAreasMasksMidpoint'] }, - 'retouchareamaskorigin' => { 471 => [\'RetouchAreas','RetouchAreasMasksOrigin'], 473 => [\'RetouchAreas','RetouchAreasMasksOrigin'] }, - 'retouchareamaskperimetervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'] }, - 'retouchareamaskradius' => { 471 => [\'RetouchAreas','RetouchAreasMasksRadius'], 473 => [\'RetouchAreas','RetouchAreasMasksRadius'] }, - 'retouchareamaskrange' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'] }, - 'retouchareamaskrangeareamodels' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'] }, - 'retouchareamaskrangeareamodelscolorsampleinfo' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, - 'retouchareamaskrangeareamodelscomponents' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, - 'retouchareamaskrangecoloramount' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'] }, - 'retouchareamaskrangedepthfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'] }, - 'retouchareamaskrangedepthmax' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'] }, - 'retouchareamaskrangedepthmin' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'] }, - 'retouchareamaskrangeinvert' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'] }, - 'retouchareamaskrangelumfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'] }, - 'retouchareamaskrangeluminancedepthsampleinfo' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, - 'retouchareamaskrangelummax' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'] }, - 'retouchareamaskrangelummin' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'] }, - 'retouchareamaskrangelumrange' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'] }, - 'retouchareamaskrangesampletype' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'] }, - 'retouchareamaskrangetype' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'] }, - 'retouchareamaskrangeversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'] }, - 'retouchareamaskreferencepoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'], 473 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'] }, - 'retouchareamaskright' => { 471 => [\'RetouchAreas','RetouchAreasMasksRight'], 473 => [\'RetouchAreas','RetouchAreasMasksRight'] }, - 'retouchareamaskroundness' => { 471 => [\'RetouchAreas','RetouchAreasMasksRoundness'], 473 => [\'RetouchAreas','RetouchAreasMasksRoundness'] }, - 'retouchareamasks' => { 471 => [\'RetouchAreas','RetouchAreasMasks'], 473 => [\'RetouchAreas','RetouchAreasMasks'] }, - 'retouchareamasksizex' => { 471 => [\'RetouchAreas','RetouchAreasMasksSizeX'], 473 => [\'RetouchAreas','RetouchAreasMasksSizeX'] }, - 'retouchareamasksizey' => { 471 => [\'RetouchAreas','RetouchAreasMasksSizeY'], 473 => [\'RetouchAreas','RetouchAreasMasksSizeY'] }, - 'retouchareamasktop' => { 471 => [\'RetouchAreas','RetouchAreasMasksTop'], 473 => [\'RetouchAreas','RetouchAreasMasksTop'] }, - 'retouchareamaskvalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskValue'] }, - 'retouchareamaskversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksVersion'] }, - 'retouchareamaskwhat' => { 471 => [\'RetouchAreas','RetouchAreasMasksWhat'], 473 => [\'RetouchAreas','RetouchAreasMasksWhat'] }, - 'retouchareamaskwholeimagearea' => { 471 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'], 473 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'] }, - 'retouchareamaskx' => { 471 => [\'RetouchAreas','RetouchAreasMasksX'], 473 => [\'RetouchAreas','RetouchAreasMasksX'] }, - 'retouchareamasky' => { 471 => [\'RetouchAreas','RetouchAreasMasksY'], 473 => [\'RetouchAreas','RetouchAreasMasksY'] }, - 'retouchareamaskzerox' => { 471 => [\'RetouchAreas','RetouchAreasMasksZeroX'], 473 => [\'RetouchAreas','RetouchAreasMasksZeroX'] }, - 'retouchareamaskzeroy' => { 471 => [\'RetouchAreas','RetouchAreasMasksZeroY'], 473 => [\'RetouchAreas','RetouchAreasMasksZeroY'] }, - 'retouchareamethod' => { 471 => [\'RetouchAreas','RetouchAreasMethod'], 473 => [\'RetouchAreas','RetouchAreasMethod'] }, - 'retouchareaoffsety' => { 471 => [\'RetouchAreas','RetouchAreasOffsetY'], 473 => [\'RetouchAreas','RetouchAreasOffsetY'] }, - 'retouchareaopacity' => { 471 => [\'RetouchAreas','RetouchAreasOpacity'], 473 => [\'RetouchAreas','RetouchAreasOpacity'] }, - 'retouchareas' => { 471 => 'RetouchAreas', 473 => 'RetouchAreas' }, - 'retouchareaseed' => { 471 => [\'RetouchAreas','RetouchAreasSeed'], 473 => [\'RetouchAreas','RetouchAreasSeed'] }, - 'retouchareasourcestate' => { 471 => [\'RetouchAreas','RetouchAreasSourceState'], 473 => [\'RetouchAreas','RetouchAreasSourceState'] }, - 'retouchareasourcex' => { 471 => [\'RetouchAreas','RetouchAreasSourceX'], 473 => [\'RetouchAreas','RetouchAreasSourceX'] }, - 'retouchareaspottype' => { 471 => [\'RetouchAreas','RetouchAreasSpotType'], 473 => [\'RetouchAreas','RetouchAreasSpotType'] }, + 'restrictions' => { 492 => 'restrictions' }, + 'retouchareafeather' => { 473 => [\'RetouchAreas','RetouchAreasFeather'], 475 => [\'RetouchAreas','RetouchAreasFeather'] }, + 'retouchareamaskalpha' => { 473 => [\'RetouchAreas','RetouchAreasMasksAlpha'], 475 => [\'RetouchAreas','RetouchAreasMasksAlpha'] }, + 'retouchareamaskangle' => { 473 => [\'RetouchAreas','RetouchAreasMasksAngle'], 475 => [\'RetouchAreas','RetouchAreasMasksAngle'] }, + 'retouchareamaskbottom' => { 473 => [\'RetouchAreas','RetouchAreasMasksBottom'], 475 => [\'RetouchAreas','RetouchAreasMasksBottom'] }, + 'retouchareamaskcentervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksCenterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksCenterValue'] }, + 'retouchareamaskcenterweight' => { 473 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'], 475 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'] }, + 'retouchareamaskdabs' => { 473 => [\'RetouchAreas','RetouchAreasMasksDabs'], 475 => [\'RetouchAreas','RetouchAreasMasksDabs'] }, + 'retouchareamaskfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksFeather'] }, + 'retouchareamaskflipped' => { 473 => [\'RetouchAreas','RetouchAreasMasksFlipped'], 475 => [\'RetouchAreas','RetouchAreasMasksFlipped'] }, + 'retouchareamaskflow' => { 473 => [\'RetouchAreas','RetouchAreasMasksFlow'], 475 => [\'RetouchAreas','RetouchAreasMasksFlow'] }, + 'retouchareamaskfullx' => { 473 => [\'RetouchAreas','RetouchAreasMasksFullX'], 475 => [\'RetouchAreas','RetouchAreasMasksFullX'] }, + 'retouchareamaskfully' => { 473 => [\'RetouchAreas','RetouchAreasMasksFullY'], 475 => [\'RetouchAreas','RetouchAreasMasksFullY'] }, + 'retouchareamaskinputdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksInputDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksInputDigest'] }, + 'retouchareamaskleft' => { 473 => [\'RetouchAreas','RetouchAreasMasksLeft'], 475 => [\'RetouchAreas','RetouchAreasMasksLeft'] }, + 'retouchareamaskmaskactive' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskActive'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskActive'] }, + 'retouchareamaskmaskblendmode' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'] }, + 'retouchareamaskmaskdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'] }, + 'retouchareamaskmaskinverted' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'] }, + 'retouchareamaskmaskname' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskName'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskName'] }, + 'retouchareamaskmasks' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasks'], 475 => [\'RetouchAreas','RetouchAreasMasksMasks'] }, + 'retouchareamaskmasksalpha' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'] }, + 'retouchareamaskmasksangle' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'] }, + 'retouchareamaskmasksbottom' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'] }, + 'retouchareamaskmaskscentervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'] }, + 'retouchareamaskmaskscenterweight' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'] }, + 'retouchareamaskmasksdabs' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'] }, + 'retouchareamaskmasksfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'] }, + 'retouchareamaskmasksflipped' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'] }, + 'retouchareamaskmasksflow' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'] }, + 'retouchareamaskmasksfullx' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'] }, + 'retouchareamaskmasksfully' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'] }, + 'retouchareamaskmasksinputdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'] }, + 'retouchareamaskmasksleft' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'] }, + 'retouchareamaskmasksmaskactive' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'] }, + 'retouchareamaskmasksmaskblendmode' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'] }, + 'retouchareamaskmasksmaskdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'] }, + 'retouchareamaskmasksmaskinverted' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'] }, + 'retouchareamaskmasksmaskname' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'] }, + 'retouchareamaskmasksmasksubtype' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'] }, + 'retouchareamaskmasksmasksyncid' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'] }, + 'retouchareamaskmasksmaskversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'] }, + 'retouchareamaskmasksmidpoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'] }, + 'retouchareamaskmasksorigin' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'] }, + 'retouchareamaskmasksperimetervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'] }, + 'retouchareamaskmasksradius' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'] }, + 'retouchareamaskmasksreferencepoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'] }, + 'retouchareamaskmasksright' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksRight'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksRight'] }, + 'retouchareamaskmasksroundness' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'] }, + 'retouchareamaskmaskssizex' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'] }, + 'retouchareamaskmaskssizey' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'] }, + 'retouchareamaskmaskstop' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksTop'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksTop'] }, + 'retouchareamaskmasksubtype' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'] }, + 'retouchareamaskmasksvalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'] }, + 'retouchareamaskmasksversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'] }, + 'retouchareamaskmaskswhat' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'] }, + 'retouchareamaskmaskswholeimagearea' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'] }, + 'retouchareamaskmasksx' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksX'] }, + 'retouchareamaskmasksy' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksY'] }, + 'retouchareamaskmasksyncid' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'] }, + 'retouchareamaskmaskszerox' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'] }, + 'retouchareamaskmaskszeroy' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'] }, + 'retouchareamaskmaskversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'] }, + 'retouchareamaskmidpoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksMidpoint'], 475 => [\'RetouchAreas','RetouchAreasMasksMidpoint'] }, + 'retouchareamaskorigin' => { 473 => [\'RetouchAreas','RetouchAreasMasksOrigin'], 475 => [\'RetouchAreas','RetouchAreasMasksOrigin'] }, + 'retouchareamaskperimetervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'] }, + 'retouchareamaskradius' => { 473 => [\'RetouchAreas','RetouchAreasMasksRadius'], 475 => [\'RetouchAreas','RetouchAreasMasksRadius'] }, + 'retouchareamaskrange' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'] }, + 'retouchareamaskrangeareamodels' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'] }, + 'retouchareamaskrangeareamodelscolorsampleinfo' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, + 'retouchareamaskrangeareamodelscomponents' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, + 'retouchareamaskrangecoloramount' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'] }, + 'retouchareamaskrangedepthfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'] }, + 'retouchareamaskrangedepthmax' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'] }, + 'retouchareamaskrangedepthmin' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'] }, + 'retouchareamaskrangeinvert' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'] }, + 'retouchareamaskrangelumfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'] }, + 'retouchareamaskrangeluminancedepthsampleinfo' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, + 'retouchareamaskrangelummax' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'] }, + 'retouchareamaskrangelummin' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'] }, + 'retouchareamaskrangelumrange' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'] }, + 'retouchareamaskrangesampletype' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'] }, + 'retouchareamaskrangetype' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'] }, + 'retouchareamaskrangeversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'] }, + 'retouchareamaskreferencepoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'], 475 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'] }, + 'retouchareamaskright' => { 473 => [\'RetouchAreas','RetouchAreasMasksRight'], 475 => [\'RetouchAreas','RetouchAreasMasksRight'] }, + 'retouchareamaskroundness' => { 473 => [\'RetouchAreas','RetouchAreasMasksRoundness'], 475 => [\'RetouchAreas','RetouchAreasMasksRoundness'] }, + 'retouchareamasks' => { 473 => [\'RetouchAreas','RetouchAreasMasks'], 475 => [\'RetouchAreas','RetouchAreasMasks'] }, + 'retouchareamasksizex' => { 473 => [\'RetouchAreas','RetouchAreasMasksSizeX'], 475 => [\'RetouchAreas','RetouchAreasMasksSizeX'] }, + 'retouchareamasksizey' => { 473 => [\'RetouchAreas','RetouchAreasMasksSizeY'], 475 => [\'RetouchAreas','RetouchAreasMasksSizeY'] }, + 'retouchareamasktop' => { 473 => [\'RetouchAreas','RetouchAreasMasksTop'], 475 => [\'RetouchAreas','RetouchAreasMasksTop'] }, + 'retouchareamaskvalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskValue'] }, + 'retouchareamaskversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksVersion'] }, + 'retouchareamaskwhat' => { 473 => [\'RetouchAreas','RetouchAreasMasksWhat'], 475 => [\'RetouchAreas','RetouchAreasMasksWhat'] }, + 'retouchareamaskwholeimagearea' => { 473 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'], 475 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'] }, + 'retouchareamaskx' => { 473 => [\'RetouchAreas','RetouchAreasMasksX'], 475 => [\'RetouchAreas','RetouchAreasMasksX'] }, + 'retouchareamasky' => { 473 => [\'RetouchAreas','RetouchAreasMasksY'], 475 => [\'RetouchAreas','RetouchAreasMasksY'] }, + 'retouchareamaskzerox' => { 473 => [\'RetouchAreas','RetouchAreasMasksZeroX'], 475 => [\'RetouchAreas','RetouchAreasMasksZeroX'] }, + 'retouchareamaskzeroy' => { 473 => [\'RetouchAreas','RetouchAreasMasksZeroY'], 475 => [\'RetouchAreas','RetouchAreasMasksZeroY'] }, + 'retouchareamethod' => { 473 => [\'RetouchAreas','RetouchAreasMethod'], 475 => [\'RetouchAreas','RetouchAreasMethod'] }, + 'retouchareaoffsety' => { 473 => [\'RetouchAreas','RetouchAreasOffsetY'], 475 => [\'RetouchAreas','RetouchAreasOffsetY'] }, + 'retouchareaopacity' => { 473 => [\'RetouchAreas','RetouchAreasOpacity'], 475 => [\'RetouchAreas','RetouchAreasOpacity'] }, + 'retouchareas' => { 473 => 'RetouchAreas', 475 => 'RetouchAreas' }, + 'retouchareaseed' => { 473 => [\'RetouchAreas','RetouchAreasSeed'], 475 => [\'RetouchAreas','RetouchAreasSeed'] }, + 'retouchareasourcestate' => { 473 => [\'RetouchAreas','RetouchAreasSourceState'], 475 => [\'RetouchAreas','RetouchAreasSourceState'] }, + 'retouchareasourcex' => { 473 => [\'RetouchAreas','RetouchAreasSourceX'], 475 => [\'RetouchAreas','RetouchAreasSourceX'] }, + 'retouchareaspottype' => { 473 => [\'RetouchAreas','RetouchAreasSpotType'], 475 => [\'RetouchAreas','RetouchAreasSpotType'] }, 'retouchhistory' => { 224 => 0x9e }, - 'retouchinfo' => { 471 => 'RetouchInfo', 473 => 'RetouchInfo' }, - 'retouchnefprocessing' => { 231 => 0x5 }, + 'retouchinfo' => { 473 => 'RetouchInfo', 475 => 'RetouchInfo' }, + 'retouchnefprocessing' => { 232 => 0x5 }, 'retractlensonpoweroff' => { 83 => 0x814 }, - 'reuse' => { 301 => 'Reuse' }, - 'reuseallowed' => { 500 => 'ReuseAllowed' }, - 'reuseprohibited' => { 490 => 'reuseProhibited' }, - 'reverseexposurecompdial' => { 281 => '5.2' }, - 'reverseindicators' => { 274 => '12.1', 275 => '6.1', 277 => '6.1', 278 => '6.1', 279 => '4.3', 280 => '5.2', 281 => '5.4', 283 => '33.5', 284 => '5.1', 287 => '6.1', 288 => '6.1', 289 => '6.2' }, - 'reverseshutterspeedaperture' => { 281 => '5.3' }, - 'revision' => { 475 => 'revision' }, + 'reuse' => { 303 => 'Reuse' }, + 'reuseallowed' => { 502 => 'ReuseAllowed' }, + 'reuseprohibited' => { 492 => 'reuseProhibited' }, + 'reverseexposurecompdial' => { 283 => '5.2' }, + 'reverseindicators' => { 276 => '12.1', 277 => '6.1', 279 => '6.1', 280 => '6.1', 281 => '4.3', 282 => '5.2', 283 => '5.4', 285 => '33.5', 286 => '5.1', 289 => '6.1', 290 => '6.1', 291 => '6.2' }, + 'reverseshutterspeedaperture' => { 283 => '5.3' }, + 'revision' => { 477 => 'revision' }, 'rflensmffocusringsensitivity' => { 83 => 0x714 }, 'rflenstype' => { 57 => 0x3d }, 'rgbcurvelimits' => { 107 => 0x238 }, 'rgbcurvepoints' => { 106 => 0x7, 107 => 0x20e }, 'rgbtables' => { 118 => 0xcd3b }, - 'richtextcomment' => { 480 => 'RichTextComment' }, - 'ricohdate' => { 380 => 0x6 }, - 'ricohimageheight' => { 380 => 0x2 }, - 'ricohimagewidth' => { 380 => 0x0 }, - 'rightalbedo' => { 462 => 'RightAlbedo' }, + 'richtextcomment' => { 482 => 'RichTextComment' }, + 'ricohdate' => { 382 => 0x6 }, + 'ricohimageheight' => { 382 => 0x2 }, + 'ricohimagewidth' => { 382 => 0x0 }, + 'rightalbedo' => { 464 => 'RightAlbedo' }, 'rightascension' => { 164 => 'RightAscension' }, - 'rights' => { 474 => 'rights' }, - 'rightsagent' => { 490 => 'rightsAgent' }, - 'rightsowner' => { 490 => 'rightsOwner' }, - 'roll' => { 114 => 0x8, 374 => ['roll',"\xa9frl"] }, - 'rollangle' => { 242 => 0x350b, 243 => 0x2c24, 247 => 0xc21a, 252 => 0x36f4, 253 => 0x2efb, 255 => 0xce32, 291 => 0x903, 314 => 0x90, 348 => 0x1, 386 => 0x2 }, + 'rights' => { 476 => 'rights' }, + 'rightsagent' => { 492 => 'rightsAgent' }, + 'rightsowner' => { 492 => 'rightsOwner' }, + 'roll' => { 114 => 0x8, 376 => ['roll',"\xa9frl"] }, + 'rollangle' => { 243 => 0x350b, 244 => 0x2c24, 248 => 0xc21a, 253 => 0x36f4, 254 => 0x2efb, 256 => 0xce32, 257 => 0xeaeb, 293 => 0x903, 316 => 0x90, 350 => 0x1, 388 => 0x2 }, 'romoperationmode' => { 96 => 0x80d }, - 'rotation' => { 30 => 0x17, 31 => 0x18, 95 => 0x3, 102 => 0x10002, 107 => 0x26e, 113 => 'QuickTime-Rotation', 122 => 0x4, 164 => 'Rotation', 181 => [0x65,0x50], 182 => 0x46, 183 => 0x5a, 186 => 0x10, 242 => 0x3693, 243 => 0xca, 250 => '590.1', 267 => 0x76a43207, 314 => 0x30, 330 => '17.2', 360 => 0xd8, 367 => 'irot', 401 => 0x3f, 402 => 0x3f, 412 => 0x10 }, - 'routedto' => { 479 => 'RoutedTo' }, - 'routing' => { 365 => 'Routing' }, - 'routingdestinations' => { 461 => 'RoutingDestinations' }, - 'routingexclusions' => { 461 => 'RoutingExclusions' }, - 'routingnotes' => { 479 => 'RoutingNotes' }, + 'rotation' => { 30 => 0x17, 31 => 0x18, 95 => 0x3, 102 => 0x10002, 107 => 0x26e, 113 => 'QuickTime-Rotation', 122 => 0x4, 164 => 'Rotation', 181 => [0x65,0x50], 182 => 0x46, 183 => 0x5a, 186 => 0x10, 243 => 0x3693, 244 => 0xca, 251 => '590.1', 269 => 0x76a43207, 316 => 0x30, 332 => '17.2', 362 => 0xd8, 369 => 'irot', 403 => 0x3f, 404 => 0x3f, 414 => 0x10 }, + 'routedto' => { 481 => 'RoutedTo' }, + 'routing' => { 367 => 'Routing' }, + 'routingdestinations' => { 463 => 'RoutingDestinations' }, + 'routingexclusions' => { 463 => 'RoutingExclusions' }, + 'routingnotes' => { 481 => 'RoutingNotes' }, 'rowsperstrip' => { 118 => 0x116 }, - 'rpp' => { 466 => 'rpp' }, + 'rpp' => { 468 => 'rpp' }, 'rtkflag' => { 115 => 'RtkFlag' }, 'rtkstdhgt' => { 115 => 'RtkStdHgt' }, 'rtkstdlat' => { 115 => 'RtkStdLat' }, 'rtkstdlon' => { 115 => 'RtkStdLon' }, 'safetyshift' => { 83 => 0x108 }, 'safetyshiftinavortv' => { 81 => 0x10, 82 => 0x10, 84 => 0xf, 85 => 0x10, 88 => 0x10 }, 'sameexposurefornewaperture' => { 83 => 0x112 }, 'samplebits' => { 154 => 'SampleBits' }, - 'samplepagerange' => { 487 => 'samplePageRange' }, + 'samplepagerange' => { 489 => 'samplePageRange' }, 'samplerate' => { 154 => 'SampleRate' }, - 'samplesperpixel' => { 118 => 0x115, 319 => 0x8, 493 => 'SamplesPerPixel' }, + 'samplesperpixel' => { 118 => 0x115, 321 => 0x8, 495 => 'SamplesPerPixel' }, 'samplestructure' => { 132 => 0x5a }, - 'samsungmodelid' => { 388 => 0x3 }, - 'sanyoquality' => { 390 => 0x201 }, - 'sanyothumbnail' => { 390 => 0x100 }, - 'saturation' => { 10 => 0x6e, 12 => 0x76, 34 => 0xe, 51 => 0x1, 111 => 0xd, 112 => [0x3013,0x1f], 118 => [0xa409,0xfe55], 126 => 0x1003, 155 => 'Saturation', 180 => 0x1f, 181 => 0x32, 182 => 0x28, 183 => 0x1a, 188 => 0x1, 224 => 0xaa, 226 => 0x35, 227 => 0x3b, 228 => 0x43, 314 => 0x40, 316 => 0x300d, 349 => 0x1f, 356 => 0xd, 375 => 0x27, 377 => 0x58, 380 => 0x28, 381 => 0x1013, 391 => 0x10, 401 => 0x1e, 402 => 0x1b, 414 => 0x2005, 471 => 'Saturation', 473 => 'Saturation', 477 => 'Saturation' }, - 'saturationadj' => { 102 => 0x20901, 107 => 0x116, 224 => 0x94, 266 => 0x1, 270 => 0x2e, 448 => 0x8016 }, - 'saturationadjustmentaqua' => { 471 => 'SaturationAdjustmentAqua', 473 => 'SaturationAdjustmentAqua' }, - 'saturationadjustmentblue' => { 471 => 'SaturationAdjustmentBlue', 473 => 'SaturationAdjustmentBlue' }, - 'saturationadjustmentgreen' => { 471 => 'SaturationAdjustmentGreen', 473 => 'SaturationAdjustmentGreen' }, - 'saturationadjustmentmagenta' => { 471 => 'SaturationAdjustmentMagenta', 473 => 'SaturationAdjustmentMagenta' }, - 'saturationadjustmentorange' => { 471 => 'SaturationAdjustmentOrange', 473 => 'SaturationAdjustmentOrange' }, - 'saturationadjustmentpurple' => { 471 => 'SaturationAdjustmentPurple', 473 => 'SaturationAdjustmentPurple' }, - 'saturationadjustmentred' => { 471 => 'SaturationAdjustmentRed', 473 => 'SaturationAdjustmentRed' }, - 'saturationadjustmentyellow' => { 471 => 'SaturationAdjustmentYellow', 473 => 'SaturationAdjustmentYellow' }, + 'samsungmodelid' => { 390 => 0x3 }, + 'sanyoquality' => { 392 => 0x201 }, + 'sanyothumbnail' => { 392 => 0x100 }, + 'saturation' => { 10 => 0x6e, 12 => 0x76, 34 => 0xe, 51 => 0x1, 111 => 0xd, 112 => [0x3013,0x1f], 118 => [0xa409,0xfe55], 126 => 0x1003, 155 => 'Saturation', 180 => 0x1f, 181 => 0x32, 182 => 0x28, 183 => 0x1a, 188 => 0x1, 224 => 0xaa, 227 => 0x35, 228 => 0x3b, 229 => 0x43, 316 => 0x40, 318 => 0x300d, 351 => 0x1f, 358 => 0xd, 377 => 0x27, 379 => 0x58, 382 => 0x28, 383 => 0x1013, 393 => 0x10, 403 => 0x1e, 404 => 0x1b, 416 => 0x2005, 473 => 'Saturation', 475 => 'Saturation', 479 => 'Saturation' }, + 'saturationadj' => { 102 => 0x20901, 107 => 0x116, 224 => 0x94, 268 => 0x1, 272 => 0x2e, 450 => 0x8016 }, + 'saturationadjustmentaqua' => { 473 => 'SaturationAdjustmentAqua', 475 => 'SaturationAdjustmentAqua' }, + 'saturationadjustmentblue' => { 473 => 'SaturationAdjustmentBlue', 475 => 'SaturationAdjustmentBlue' }, + 'saturationadjustmentgreen' => { 473 => 'SaturationAdjustmentGreen', 475 => 'SaturationAdjustmentGreen' }, + 'saturationadjustmentmagenta' => { 473 => 'SaturationAdjustmentMagenta', 475 => 'SaturationAdjustmentMagenta' }, + 'saturationadjustmentorange' => { 473 => 'SaturationAdjustmentOrange', 475 => 'SaturationAdjustmentOrange' }, + 'saturationadjustmentpurple' => { 473 => 'SaturationAdjustmentPurple', 475 => 'SaturationAdjustmentPurple' }, + 'saturationadjustmentred' => { 473 => 'SaturationAdjustmentRed', 475 => 'SaturationAdjustmentRed' }, + 'saturationadjustmentyellow' => { 473 => 'SaturationAdjustmentYellow', 475 => 'SaturationAdjustmentYellow' }, 'saturationauto' => { 70 => 0x98 }, 'saturationfaithful' => { 19 => 0xfe, 69 => 0x68, 70 => 0x68 }, 'saturationlandscape' => { 19 => 0xfc, 69 => 0x38, 70 => 0x38 }, 'saturationmonochrome' => { 69 => 0x80, 70 => 0x80 }, 'saturationneutral' => { 19 => 0xfd, 69 => 0x50, 70 => 0x50 }, 'saturationportrait' => { 19 => 0xfb, 69 => 0x20, 70 => 0x20 }, - 'saturationsetting' => { 299 => 0x1010, 403 => 0x11, 419 => 0x9 }, + 'saturationsetting' => { 301 => 0x1010, 405 => 0x11, 421 => 0x9 }, 'saturationstandard' => { 19 => 0xfa, 69 => 0x8, 70 => 0x8 }, 'saturationuserdef1' => { 19 => 0x100, 69 => 0x98, 70 => 0xb0 }, 'saturationuserdef2' => { 19 => 0x101, 69 => 0xb0, 70 => 0xc8 }, 'saturationuserdef3' => { 19 => 0x102, 69 => 0xc8, 70 => 0xe0 }, - 'saveid' => { 498 => 'SaveID' }, + 'saveid' => { 500 => 'SaveID' }, 'sbaanalysiscomplete' => { 137 => 0xc35 }, 'sbablack' => { 137 => 0xc25 }, 'sbagmoffset' => { 137 => 0xc4a }, 'sbagray' => { 137 => 0xc26 }, 'sbagreenmagentabal' => { 137 => 0xc33 }, @@ -5781,303 +5783,303 @@ my %tagLookup = ( 'sbailloffset' => { 137 => 0xc49 }, 'sbailluminantbal' => { 137 => 0xc34 }, 'sbalowgray' => { 137 => 0xc47 }, 'sbaneutralbal' => { 137 => 0xc32 }, 'sbawhite' => { 137 => 0xc27 }, - 'scaletype' => { 497 => 'scaleType' }, - 'scanimageenhancer' => { 232 => 0x60 }, + 'scaletype' => { 499 => 'scaleType' }, + 'scanimageenhancer' => { 233 => 0x60 }, 'scanningdirection' => { 132 => 0x64 }, - 'scene' => { 374 => 'scen', 482 => 'Scene', 497 => 'scene' }, - 'scenearea' => { 294 => 0x211, 296 => 0x1031 }, + 'scene' => { 376 => 'scen', 484 => 'Scene', 499 => 'scene' }, + 'scenearea' => { 296 => 0x211, 298 => 0x1031 }, 'sceneassist' => { 224 => 0x9c }, - 'scenecapturetype' => { 118 => 0xa406, 477 => 'SceneCaptureType' }, - 'scenedetect' => { 294 => 0x210, 296 => 0x1030 }, - 'scenedetectdata' => { 294 => 0x212, 296 => 0x1033 }, - 'scenemode' => { 141 => 0xfa02, 185 => 0x100, 224 => 0x8f, 291 => 0x509, 296 => 0x403, 314 => 0x8001, 323 => 0xf, 414 => 0xb023 }, + 'scenecapturetype' => { 118 => 0xa406, 479 => 'SceneCaptureType' }, + 'scenedetect' => { 296 => 0x210, 298 => 0x1030 }, + 'scenedetectdata' => { 296 => 0x212, 298 => 0x1033 }, + 'scenemode' => { 141 => 0xfa02, 185 => 0x100, 224 => 0x8f, 293 => 0x509, 298 => 0x403, 316 => 0x8001, 325 => 0xf, 416 => 0xb023 }, 'scenemodeused' => { 143 => [0x6002,0xf002] }, 'scenerecognition' => { 126 => 0x1425 }, - 'sceneselect' => { 390 => 0x21f }, - 'scenetype' => { 118 => 0xa301, 477 => 'SceneType' }, - 'screentips' => { 274 => '12.7', 275 => '5.3', 283 => '13.1', 284 => '4.4', 287 => '5.4', 289 => '5.1' }, + 'sceneselect' => { 392 => 0x21f }, + 'scenetype' => { 118 => 0xa301, 479 => 'SceneType' }, + 'screentips' => { 276 => '12.7', 277 => '5.3', 285 => '13.1', 286 => '4.4', 289 => '5.4', 291 => '5.1' }, 'scriptversion' => { 137 => 0x1770 }, - 'season' => { 483 => 'Season', 486 => 'season' }, - 'seasonidentifier' => { 483 => [\'Season','SeasonIdentifier'] }, - 'seasonname' => { 483 => [\'Season','SeasonName'] }, - 'seasonnumber' => { 483 => [\'Season','SeasonNumber'] }, - 'secondaryftp' => { 461 => 'SecondaryFTP' }, - 'secondaryslotfunction' => { 242 => 0x1d0, 252 => 0x1d0 }, - 'section' => { 487 => 'section' }, + 'season' => { 485 => 'Season', 488 => 'season' }, + 'seasonidentifier' => { 485 => [\'Season','SeasonIdentifier'] }, + 'seasonname' => { 485 => [\'Season','SeasonName'] }, + 'seasonnumber' => { 485 => [\'Season','SeasonNumber'] }, + 'secondaryftp' => { 463 => 'SecondaryFTP' }, + 'secondaryslotfunction' => { 243 => 0x1d0, 253 => 0x1d0 }, + 'section' => { 489 => 'section' }, 'securityclassification' => { 118 => 0x9212 }, 'selectableafpoint' => { 83 => 0x509 }, 'selectafareaselectionmode' => { 2 => 0xc }, 'selectafareaselectmode' => { 83 => 0x512 }, 'selfdata' => { 115 => 'SelfData' }, - 'selftimer' => { 34 => 0x2, 314 => 0x2e, 390 => 0x214, 422 => 0x1134, 423 => 0x1134, 424 => 0x1110, 425 => 0x118c, 426 => 0x1168, 427 => 0x1020, 428 => 0x218, 429 => 0x218, 430 => 0x210 }, + 'selftimer' => { 34 => 0x2, 316 => 0x2e, 392 => 0x214, 424 => 0x1134, 425 => 0x1134, 426 => 0x1110, 427 => 0x118c, 428 => 0x1168, 429 => 0x1020, 430 => 0x218, 431 => 0x218, 432 => 0x210 }, 'selftimer2' => { 76 => 0x1d }, - 'selftimerinterval' => { 284 => '19.2' }, + 'selftimerinterval' => { 286 => '19.2' }, 'selftimermode' => { 118 => 0x882b }, - 'selftimershotcount' => { 275 => '20.2', 277 => '20.3', 278 => '20.3', 279 => '18.2', 280 => '19.2', 281 => '19.2', 282 => '19.3', 284 => '19.3', 287 => '20.3', 288 => '20.3', 289 => '20.2' }, - 'selftimershotinterval' => { 275 => '20.3', 277 => '20.2', 278 => '20.2', 282 => '19.2', 287 => '20.2', 288 => '20.2' }, - 'selftimertime' => { 96 => 0x1806, 183 => 0x1f, 274 => '18.1', 275 => '20.1', 276 => '3.3', 277 => '20.1', 278 => '20.1', 279 => '18.1', 280 => '19.1', 281 => '19.1', 282 => '19.1', 283 => '7.2', 284 => '19.1', 285 => '3.3', 287 => '20.1', 288 => '20.1', 289 => '20.1' }, - 'sellingagency' => { 487 => 'sellingAgency' }, + 'selftimershotcount' => { 277 => '20.2', 279 => '20.3', 280 => '20.3', 281 => '18.2', 282 => '19.2', 283 => '19.2', 284 => '19.3', 286 => '19.3', 289 => '20.3', 290 => '20.3', 291 => '20.2' }, + 'selftimershotinterval' => { 277 => '20.3', 279 => '20.2', 280 => '20.2', 284 => '19.2', 289 => '20.2', 290 => '20.2' }, + 'selftimertime' => { 96 => 0x1806, 183 => 0x1f, 276 => '18.1', 277 => '20.1', 278 => '3.3', 279 => '20.1', 280 => '20.1', 281 => '18.1', 282 => '19.1', 283 => '19.1', 284 => '19.1', 285 => '7.2', 286 => '19.1', 287 => '3.3', 289 => '20.1', 290 => '20.1', 291 => '20.1' }, + 'sellingagency' => { 489 => 'sellingAgency' }, 'seminfo' => { 118 => 0x8546 }, - 'sensingmethod' => { 118 => 0xa217, 477 => 'SensingMethod' }, - 'sensitivityadjust' => { 349 => 0x40 }, - 'sensitivitysteps' => { 330 => ['14.3','17.4'], 332 => 0x1 }, - 'sensitivitytype' => { 118 => 0x8830, 478 => 'SensitivityType' }, + 'sensingmethod' => { 118 => 0xa217, 479 => 'SensingMethod' }, + 'sensitivityadjust' => { 351 => 0x40 }, + 'sensitivitysteps' => { 332 => ['14.3','17.4'], 334 => 0x1 }, + 'sensitivitytype' => { 118 => 0x8830, 480 => 'SensitivityType' }, 'sensor' => { 190 => 0x665e }, - 'sensorarea' => { 296 => 0x400 }, - 'sensorareas' => { 388 => 0xa010 }, - 'sensorbitdepth' => { 316 => 0x312d }, + 'sensorarea' => { 298 => 0x400 }, + 'sensorareas' => { 390 => 0xa010 }, + 'sensorbitdepth' => { 318 => 0x312d }, 'sensorbluelevel' => { 73 => 0x5 }, - 'sensorcalibration' => { 295 => 0x805 }, + 'sensorcalibration' => { 297 => 0x805 }, 'sensorcleaning' => { 89 => 0xd }, 'sensorfullheight' => { 136 => 0xf904 }, 'sensorfullwidth' => { 136 => 0xf903 }, - 'sensorheight' => { 136 => 0xf901, 141 => 0xfa21, 187 => 0x8, 316 => 0x312c, 358 => 0x109, 381 => 0x1602 }, + 'sensorheight' => { 136 => 0xf901, 141 => 0xfa21, 187 => 0x8, 318 => 0x312c, 360 => 0x109, 383 => 0x1602 }, 'sensorimageheight' => { 137 => 0x3ee }, 'sensorimagewidth' => { 137 => 0x3ed }, 'sensorleftborder' => { 137 => 0x3eb }, - 'sensorleftmargin' => { 358 => 0x10a }, + 'sensorleftmargin' => { 360 => 0x10a }, 'sensorpixelsize' => { 224 => 0x9a }, 'sensorredlevel' => { 73 => 0x4 }, 'sensorserialnumber' => { 137 => 0x9ce }, - 'sensorsize' => { 155 => 'SensorSize', 349 => 0x35 }, - 'sensortemperature' => { 294 => 0x1500, 296 => 0x1007, 354 => 0xc, 358 => 0x210, 391 => [0x39,0x55] }, - 'sensortemperature2' => { 354 => 0xe, 358 => 0x211 }, + 'sensorsize' => { 155 => 'SensorSize', 351 => 0x35 }, + 'sensortemperature' => { 296 => 0x1500, 298 => 0x1007, 356 => 0xc, 360 => 0x210, 393 => [0x39,0x55] }, + 'sensortemperature2' => { 356 => 0xe, 360 => 0x211 }, 'sensortopborder' => { 137 => 0x3ec }, - 'sensortopmargin' => { 358 => 0x10b }, - 'sensortype' => { 314 => 0xca }, - 'sensorwidth' => { 136 => 0xf900, 141 => 0xfa20, 187 => 0xa, 316 => 0x312b, 358 => 0x108, 381 => 0x1601 }, - 'sequence' => { 375 => 0x7, 376 => 0x35, 377 => 0x36 }, - 'sequencefilenumber' => { 423 => 0x4, 424 => 0x4, 425 => 0x4, 426 => 0x4, 435 => 0xc, 436 => 0xc, 437 => 0x1a }, - 'sequenceimagenumber' => { 423 => 0x0, 424 => 0x0, 425 => 0x0, 426 => 0x0, 435 => 0x8, 436 => 0x8, 437 => 0x12, 444 => 0x24 }, - 'sequencelength' => { 435 => 0x22, 436 => 0x1e, 437 => [0x16,0x1e] }, - 'sequencename' => { 486 => 'sequenceName' }, - 'sequencenumber' => { 76 => 0x9, 112 => 0x301c, 126 => 0x1101, 139 => 0x1d, 251 => 0x51c, 314 => 0x2b, 403 => [0x10c,0x30c], 414 => 0xb04a, 486 => 'sequenceNumber' }, - 'sequenceshotinterval' => { 390 => 0x224 }, - 'sequencetotalnumber' => { 486 => 'sequenceTotalNumber' }, - 'sequentialshot' => { 390 => 0x20e }, - 'serialnumber' => { 63 => 0xc, 96 => 0x180b, 118 => [0xa431,0xfde9], 136 => 0xfa04, 138 => 0xfa00, 140 => 0xc354, 141 => 0xfa19, 152 => 0x0, 155 => 'SerialNumber', 190 => 0x5501, 224 => [0xa0,0x1d], 292 => 0x101, 296 => [0x404,0x101a], 309 => 0x303, 311 => 0x305, 316 => 0x3103, 349 => 0x229, 358 => 0x102, 359 => 0x407, 374 => ['SNum','slno'], 375 => 0x15, 376 => 0x4b, 377 => 0x7e, 381 => 0x5, 388 => 0xa002, 391 => 0x2, 414 => 0x2031, 468 => 'SerialNumber', 478 => 'BodySerialNumber' }, + 'sensortopmargin' => { 360 => 0x10b }, + 'sensortype' => { 316 => 0xca }, + 'sensorwidth' => { 136 => 0xf900, 141 => 0xfa20, 187 => 0xa, 318 => 0x312b, 360 => 0x108, 383 => 0x1601 }, + 'sequence' => { 377 => 0x7, 378 => 0x35, 379 => 0x36 }, + 'sequencefilenumber' => { 425 => 0x4, 426 => 0x4, 427 => 0x4, 428 => 0x4, 437 => 0xc, 438 => 0xc, 439 => 0x1a }, + 'sequenceimagenumber' => { 425 => 0x0, 426 => 0x0, 427 => 0x0, 428 => 0x0, 437 => 0x8, 438 => 0x8, 439 => 0x12, 446 => 0x24 }, + 'sequencelength' => { 437 => 0x22, 438 => 0x1e, 439 => [0x16,0x1e] }, + 'sequencename' => { 488 => 'sequenceName' }, + 'sequencenumber' => { 76 => 0x9, 112 => 0x301c, 126 => 0x1101, 139 => 0x1d, 252 => 0x51c, 316 => 0x2b, 405 => [0x10c,0x30c], 416 => 0xb04a, 488 => 'sequenceNumber' }, + 'sequenceshotinterval' => { 392 => 0x224 }, + 'sequencetotalnumber' => { 488 => 'sequenceTotalNumber' }, + 'sequentialshot' => { 392 => 0x20e }, + 'serialnumber' => { 63 => 0xc, 96 => 0x180b, 118 => [0xa431,0xfde9], 136 => 0xfa04, 138 => 0xfa00, 140 => 0xc354, 141 => 0xfa19, 152 => 0x0, 155 => 'SerialNumber', 190 => 0x5501, 224 => [0xa0,0x1d], 294 => 0x101, 298 => [0x404,0x101a], 311 => 0x303, 313 => 0x305, 318 => 0x3103, 351 => 0x229, 360 => 0x102, 361 => 0x407, 376 => ['SNum','slno'], 377 => 0x15, 378 => 0x4b, 379 => 0x7e, 383 => 0x5, 390 => 0xa002, 393 => 0x2, 416 => 0x2031, 470 => 'SerialNumber', 480 => 'BodySerialNumber' }, 'serialnumberformat' => { 63 => 0x15, 96 => 0x183b }, - 'serialnumberhash' => { 374 => 'CAME' }, - 'series' => { 483 => 'Series' }, - 'seriesdatetime' => { 450 => 'SeriesDateTime' }, - 'seriesdescription' => { 450 => 'SeriesDescription' }, - 'seriesidentifier' => { 483 => [\'Series','SeriesIdentifier'] }, - 'seriesmodality' => { 450 => 'SeriesModality' }, - 'seriesname' => { 483 => [\'Series','SeriesName'] }, - 'seriesnumber' => { 450 => 'SeriesNumber', 487 => 'seriesNumber' }, - 'seriestitle' => { 487 => 'seriesTitle' }, + 'serialnumberhash' => { 376 => 'CAME' }, + 'series' => { 485 => 'Series' }, + 'seriesdatetime' => { 452 => 'SeriesDateTime' }, + 'seriesdescription' => { 452 => 'SeriesDescription' }, + 'seriesidentifier' => { 485 => [\'Series','SeriesIdentifier'] }, + 'seriesmodality' => { 452 => 'SeriesModality' }, + 'seriesname' => { 485 => [\'Series','SeriesName'] }, + 'seriesnumber' => { 452 => 'SeriesNumber', 489 => 'seriesNumber' }, + 'seriestitle' => { 489 => 'seriesTitle' }, 'serviceidentifier' => { 131 => 0x1e }, - 'servingsize' => { 489 => 'servingSize' }, + 'servingsize' => { 491 => 'servingSize' }, 'setbuttoncrosskeysfunc' => { 86 => 0x0, 87 => 0x0 }, 'setbuttonwhenshooting' => { 81 => 0x1, 83 => 0x704, 89 => 0xc }, 'setfunctionwhenshooting' => { 84 => 0x0, 85 => 0x1, 88 => 0x1 }, - 'setting' => { 486 => 'setting' }, - 'shadingcompensation' => { 291 => 0x50c, 314 => 0x8a }, - 'shadingcompensation2' => { 295 => 0x1012 }, - 'shadow' => { 391 => 0xe }, + 'setting' => { 488 => 'setting' }, + 'shadingcompensation' => { 293 => 0x50c, 316 => 0x8a }, + 'shadingcompensation2' => { 297 => 0x1012 }, + 'shadow' => { 393 => 0xe }, 'shadowadj' => { 102 => 0x2030b }, - 'shadowcorrection' => { 349 => 0x79 }, - 'shadowprotection' => { 266 => 0x0 }, - 'shadows' => { 118 => 0xfe52, 414 => 0x2032, 465 => 'Shadows', 471 => 'Shadows', 473 => 'Shadows' }, - 'shadows2012' => { 471 => 'Shadows2012', 473 => 'Shadows2012' }, - 'shadowsadj' => { 448 => 0x901a }, + 'shadowcorrection' => { 351 => 0x79 }, + 'shadowprotection' => { 268 => 0x0 }, + 'shadows' => { 118 => 0xfe52, 416 => 0x2032, 467 => 'Shadows', 473 => 'Shadows', 475 => 'Shadows' }, + 'shadows2012' => { 473 => 'Shadows2012', 475 => 'Shadows2012' }, + 'shadowsadj' => { 450 => 0x901a }, 'shadowscale' => { 118 => 0xc633 }, - 'shadowtint' => { 471 => 'ShadowTint', 473 => 'ShadowTint' }, + 'shadowtint' => { 473 => 'ShadowTint', 475 => 'ShadowTint' }, 'shadowtone' => { 126 => 0x1040 }, - 'shakereduction' => { 351 => 0x1, 352 => 0x1 }, + 'shakereduction' => { 353 => 0x1, 354 => 0x1 }, 'shareduserrating' => { 178 => 'WM/SharedUserRating' }, - 'sharpendetail' => { 471 => 'SharpenDetail', 473 => 'SharpenDetail' }, - 'sharpenedgemasking' => { 471 => 'SharpenEdgeMasking', 473 => 'SharpenEdgeMasking' }, - 'sharpening' => { 316 => 0x300b }, - 'sharpeningadj' => { 270 => 0x2b }, + 'sharpendetail' => { 473 => 'SharpenDetail', 475 => 'SharpenDetail' }, + 'sharpenedgemasking' => { 473 => 'SharpenEdgeMasking', 475 => 'SharpenEdgeMasking' }, + 'sharpening' => { 318 => 0x300b }, + 'sharpeningadj' => { 272 => 0x2b }, 'sharpeningkernel' => { 137 => 0x92f }, - 'sharpenradius' => { 471 => 'SharpenRadius', 473 => 'SharpenRadius' }, - 'sharpness' => { 8 => [0x42,0x48], 10 => 0x72, 12 => 0x74, 34 => 0xf, 73 => 0x2, 111 => 0xb, 112 => [0x3011,0x21], 118 => [0xa40a,0xfe56], 126 => 0x1001, 139 => 0x6b, 148 => 0x37, 155 => 'Sharpness', 180 => 0x21, 181 => 0x30, 182 => 0x26, 183 => 0x18, 188 => 0x3, 224 => 0x6, 226 => 0x32, 227 => 0x33, 228 => 0x39, 296 => 0x100f, 314 => 0x41, 349 => 0x21, 356 => 0xb, 375 => 0x26, 377 => 0x56, 380 => 0x22, 381 => [0x1003,0x1014], 391 => 0x11, 401 => 0x1c, 402 => 0x19, 414 => 0x2006, 444 => 0x52, 471 => 'Sharpness', 473 => 'Sharpness', 477 => 'Sharpness' }, - 'sharpnessadj' => { 102 => 0x20310, 107 => 0x25a, 448 => 0x801a }, + 'sharpenradius' => { 473 => 'SharpenRadius', 475 => 'SharpenRadius' }, + 'sharpness' => { 8 => [0x42,0x48], 10 => 0x72, 12 => 0x74, 34 => 0xf, 73 => 0x2, 111 => 0xb, 112 => [0x3011,0x21], 118 => [0xa40a,0xfe56], 126 => 0x1001, 139 => 0x6b, 148 => 0x37, 155 => 'Sharpness', 180 => 0x21, 181 => 0x30, 182 => 0x26, 183 => 0x18, 188 => 0x3, 224 => 0x6, 227 => 0x32, 228 => 0x33, 229 => 0x39, 298 => 0x100f, 316 => 0x41, 351 => 0x21, 358 => 0xb, 377 => 0x26, 379 => 0x56, 382 => 0x22, 383 => [0x1003,0x1014], 393 => 0x11, 403 => 0x1c, 404 => 0x19, 416 => 0x2006, 446 => 0x52, 473 => 'Sharpness', 475 => 'Sharpness', 479 => 'Sharpness' }, + 'sharpnessadj' => { 102 => 0x20310, 107 => 0x25a, 450 => 0x801a }, 'sharpnessadjon' => { 102 => '0x20310.0' }, 'sharpnessauto' => { 70 => 0x94 }, - 'sharpnessfactor' => { 296 => 0x102a }, + 'sharpnessfactor' => { 298 => 0x102a }, 'sharpnessfaithful' => { 19 => 0xf5, 69 => 0x64, 70 => 0x64 }, 'sharpnessfrequency' => { 8 => [0x41,0x47], 73 => 0x3 }, 'sharpnesslandscape' => { 19 => 0xf3, 69 => 0x34, 70 => 0x34 }, 'sharpnessmonochrome' => { 19 => 0xf6, 69 => 0x7c, 70 => 0x7c }, 'sharpnessneutral' => { 19 => 0xf4, 69 => 0x4c, 70 => 0x4c }, - 'sharpnessovershoot' => { 448 => 0x801b }, + 'sharpnessovershoot' => { 450 => 0x801b }, 'sharpnessportrait' => { 19 => 0xf2, 69 => 0x1c, 70 => 0x1c }, - 'sharpnessrange' => { 414 => 0x2035 }, - 'sharpnesssetting' => { 291 => 0x506, 299 => 0x1013, 403 => 0x12, 419 => 0xa }, + 'sharpnessrange' => { 416 => 0x2035 }, + 'sharpnesssetting' => { 293 => 0x506, 301 => 0x1013, 405 => 0x12, 421 => 0xa }, 'sharpnessstandard' => { 19 => 0xf1, 69 => 0x4, 70 => 0x4 }, 'sharpnessstrength' => { 102 => 0x20311 }, - 'sharpnessthreshold' => { 448 => 0x801d }, - 'sharpnessundershoot' => { 448 => 0x801c }, + 'sharpnessthreshold' => { 450 => 0x801d }, + 'sharpnessundershoot' => { 450 => 0x801c }, 'sharpnessuserdef1' => { 19 => 0xf7, 69 => 0x94, 70 => 0xac }, 'sharpnessuserdef2' => { 19 => 0xf8, 69 => 0xac, 70 => 0xc4 }, 'sharpnessuserdef3' => { 19 => 0xf9, 69 => 0xc4, 70 => 0xdc }, 'shiftcols' => { 137 => 0xc70 }, - 'shootid' => { 486 => 'shootID' }, + 'shootid' => { 488 => 'shootID' }, 'shootingdistance' => { 102 => 0x20701 }, - 'shootinginfodisplay' => { 274 => '13.2', 275 => '5.1', 283 => '10.2', 284 => '4.1', 287 => '5.1', 289 => '5.3' }, - 'shootinginfomonitorofftime' => { 274 => '26.2', 275 => '22.2', 277 => '22.2', 278 => '22.2', 282 => '21.2', 283 => '9.1', 284 => '21.2', 287 => '22.2', 288 => '22.2', 289 => '22.2' }, - 'shootingmode' => { 155 => 'ShootingMode', 224 => 0x89, 314 => 0x1f }, - 'shootingmodesetting' => { 276 => '5.1' }, - 'shortdescription' => { 475 => 'shortdescription' }, + 'shootinginfodisplay' => { 276 => '13.2', 277 => '5.1', 285 => '10.2', 286 => '4.1', 289 => '5.1', 291 => '5.3' }, + 'shootinginfomonitorofftime' => { 276 => '26.2', 277 => '22.2', 279 => '22.2', 280 => '22.2', 284 => '21.2', 285 => '9.1', 286 => '21.2', 289 => '22.2', 290 => '22.2', 291 => '22.2' }, + 'shootingmode' => { 155 => 'ShootingMode', 224 => 0x89, 316 => 0x1f }, + 'shootingmodesetting' => { 278 => '5.1' }, + 'shortdescription' => { 477 => 'shortdescription' }, 'shortdocumentid' => { 130 => 0xba }, - 'shortname' => { 471 => 'ShortName', 473 => 'ShortName' }, + 'shortname' => { 473 => 'ShortName', 475 => 'ShortName' }, 'shortownername' => { 19 => 0xac }, 'shortreleasetimelag' => { 83 => 0x80d }, - 'shorttitle' => { 366 => '@sti' }, - 'shotdate' => { 497 => 'shotDate' }, - 'shotday' => { 497 => 'shotDay' }, - 'shotlocation' => { 497 => 'shotLocation' }, - 'shotname' => { 374 => 'shot', 497 => 'shotName' }, - 'shotnumber' => { 497 => 'shotNumber' }, - 'shotnumbersincepowerup' => { 418 => 0x44e, 435 => 0x1a, 436 => 0x16, 437 => 0xa }, - 'shotnumbersincepowerup2' => { 403 => 0x200 }, - 'shotsize' => { 497 => 'shotSize' }, - 'shotsperinterval' => { 247 => 0xc412, 259 => 0xb4 }, - 'showmovement' => { 366 => 'shwm' }, - 'shownevent' => { 483 => 'EventExt' }, - 'showneventidentifier' => { 483 => [\'EventExt','EventExtIdentifier'] }, - 'showneventname' => { 483 => [\'EventExt','EventExtName'] }, - 'shutter' => { 432 => 0x20, 433 => 0x26, 434 => 0x26 }, + 'shorttitle' => { 368 => '@sti' }, + 'shotdate' => { 499 => 'shotDate' }, + 'shotday' => { 499 => 'shotDay' }, + 'shotlocation' => { 499 => 'shotLocation' }, + 'shotname' => { 376 => 'shot', 499 => 'shotName' }, + 'shotnumber' => { 499 => 'shotNumber' }, + 'shotnumbersincepowerup' => { 420 => 0x44e, 437 => 0x1a, 438 => 0x16, 439 => 0xa }, + 'shotnumbersincepowerup2' => { 405 => 0x200 }, + 'shotsize' => { 499 => 'shotSize' }, + 'shotsperinterval' => { 248 => 0xc412, 261 => 0xb4 }, + 'showmovement' => { 368 => 'shwm' }, + 'shownevent' => { 485 => 'EventExt' }, + 'showneventidentifier' => { 485 => [\'EventExt','EventExtIdentifier'] }, + 'showneventname' => { 485 => [\'EventExt','EventExtName'] }, + 'shutter' => { 434 => 0x20, 435 => 0x26, 436 => 0x26 }, 'shutter-aelock' => { 81 => 0x4, 83 => 0x701, 84 => 0x3, 85 => 0x4, 86 => 0x3, 87 => 0x3, 88 => 0x4, 89 => 0x2 }, 'shutteraelbutton' => { 82 => 0x4 }, 'shutterbuttonafonbutton' => { 83 => 0x701 }, - 'shuttercount' => { 11 => 0x176, 57 => 0x1, 224 => 0xa7, 233 => [0x6a,0x157,0x24d], 234 => 0x286, 235 => 0x279, 236 => 0x284, 237 => 0x242, 238 => 0x280, 239 => 0x276, 240 => [0x27d,0x27f], 241 => 0x246, 244 => 0x2d6, 245 => 0x321, 246 => 0xbd8, 248 => 0x287, 249 => 0x320, 250 => 0x24a, 251 => 0x5fb, 254 => 0x2d5, 349 => 0x5d, 412 => 0x846, 417 => [0x125,0x14a], 432 => 0x32, 433 => 0x3a, 434 => 0x3a }, - 'shuttercount2' => { 432 => 0x4c, 433 => [0x50,0x52,0x58], 434 => 0x50 }, - 'shuttercount3' => { 432 => [0x1a0,0x1aa,0x1bd], 433 => [0x19f,0x1cb,0x1cd] }, + 'shuttercount' => { 11 => 0x176, 57 => 0x1, 224 => 0xa7, 234 => [0x6a,0x157,0x24d], 235 => 0x286, 236 => 0x279, 237 => 0x284, 238 => 0x242, 239 => 0x280, 240 => 0x276, 241 => [0x27d,0x27f], 242 => 0x246, 245 => 0x2d6, 246 => 0x321, 247 => 0xbd8, 249 => 0x287, 250 => 0x320, 251 => 0x24a, 252 => 0x5fb, 255 => 0x2d5, 351 => 0x5d, 414 => 0x846, 419 => [0x125,0x14a], 434 => 0x32, 435 => 0x3a, 436 => 0x3a }, + 'shuttercount2' => { 434 => 0x4c, 435 => [0x50,0x52,0x58], 436 => 0x50 }, + 'shuttercount3' => { 434 => [0x1a0,0x1aa,0x1bd], 435 => [0x19f,0x1cb,0x1cd] }, 'shuttercurtainsync' => { 81 => 0xf, 82 => 0xf, 83 => 0x305, 84 => 0xe, 85 => 0xf, 86 => 0x8, 87 => 0x8, 88 => 0xf, 89 => 0x8 }, 'shuttermode' => { 57 => 0x17, 139 => 0x1b, 224 => 0x34 }, - 'shutterreleasebuttonae-l' => { 274 => '17.7', 275 => '18.4', 277 => '78.4', 278 => '78.4', 279 => '16.1', 280 => '17.1', 281 => '17.1', 282 => '17.1', 283 => '7.1', 284 => '17.5', 287 => '18.4', 288 => '78.4', 289 => '18.2' }, + 'shutterreleasebuttonae-l' => { 276 => '17.7', 277 => '18.4', 279 => '78.4', 280 => '78.4', 281 => '16.1', 282 => '17.1', 283 => '17.1', 284 => '17.1', 285 => '7.1', 286 => '17.5', 289 => '18.4', 290 => '78.4', 291 => '18.2' }, 'shutterreleasemethod' => { 96 => 0x1010 }, 'shutterreleasenocfcard' => { 81 => 0x2, 82 => 0x2, 89 => 0xf }, 'shutterreleasetiming' => { 96 => 0x1011 }, 'shutterreleasewithoutlens' => { 83 => 0x711 }, - 'shutterspeedlock' => { 275 => '38.1', 277 => '38.1', 278 => '38.1', 287 => '38.1', 288 => '38.1' }, + 'shutterspeedlock' => { 277 => '38.1', 279 => '38.1', 280 => '38.1', 289 => '38.1', 290 => '38.1' }, 'shutterspeedrange' => { 83 => 0x10c }, - 'shutterspeedsetting' => { 183 => 0x6, 401 => 0x2f, 402 => 0x28, 403 => 0x0 }, - 'shutterspeedvalue' => { 92 => 0x1, 118 => 0x9201, 296 => 0x1000, 358 => 0x400, 477 => 'ShutterSpeedValue' }, - 'shuttertype' => { 126 => 0x1050, 314 => 0x9f, 349 => 0x87 }, - 'sidecarforextension' => { 485 => 'SidecarForExtension' }, + 'shutterspeedsetting' => { 183 => 0x6, 403 => 0x2f, 404 => 0x28, 405 => 0x0 }, + 'shutterspeedvalue' => { 92 => 0x1, 118 => 0x9201, 298 => 0x1000, 360 => 0x400, 479 => 'ShutterSpeedValue' }, + 'shuttertype' => { 126 => 0x1050, 316 => 0x9f, 351 => 0x87 }, + 'sidecarforextension' => { 487 => 'SidecarForExtension' }, 'sigmaimpulseparameters' => { 137 => 0xe0d }, 'sigmascalingfactorcamera' => { 137 => 0xe0c }, 'sigmascalingfactorlowres' => { 137 => 0xe0b }, 'sigmasizetable' => { 137 => 0xe0f }, 'silentphotography' => { 224 => 0xbf }, 'similarityindex' => { 130 => 0xe4 }, 'singleframebracketing' => { 183 => 0x21 }, - 'skilllevel' => { 489 => 'skillLevel' }, - 'skintonecorrection' => { 349 => 0x95 }, + 'skilllevel' => { 491 => 'skillLevel' }, + 'skintonecorrection' => { 351 => 0x95 }, 'skiplinetime' => { 137 => 0x184e }, - 'slaveflashmeteringsegments' => { 349 => 0x20b }, - 'slideshowname' => { 486 => 'slideshowName' }, - 'slideshownumber' => { 486 => 'slideshowNumber' }, - 'slideshowtotalnumber' => { 486 => 'slideshowTotalNumber' }, + 'slaveflashmeteringsegments' => { 351 => 0x20b }, + 'slideshowname' => { 488 => 'slideshowName' }, + 'slideshownumber' => { 488 => 'slideshowNumber' }, + 'slideshowtotalnumber' => { 488 => 'slideshowTotalNumber' }, 'slowshutter' => { 76 => 0x8 }, 'slowsync' => { 126 => 0x1030 }, - 'smartalbumcolor' => { 388 => 0x20 }, - 'smartrange' => { 388 => 0xa012 }, - 'smileshutter' => { 403 => 0x31 }, - 'smileshuttermode' => { 403 => 0x27 }, - 'smoothness' => { 118 => 0xfe57, 471 => 'Smoothness', 473 => 'Smoothness' }, - 'snapshot' => { 483 => 'SnapshotLink' }, - 'snapshotformat' => { 483 => [\'SnapshotLink','SnapshotLinkFormat'] }, - 'snapshotheightpixels' => { 483 => [\'SnapshotLink','SnapshotLinkHeightPixels'] }, - 'snapshotimagerole' => { 483 => [\'SnapshotLink','SnapshotLinkImageRole'] }, - 'snapshotlink' => { 483 => [\'SnapshotLink','SnapshotLinkLink'] }, - 'snapshotlinkqualifier' => { 483 => [\'SnapshotLink','SnapshotLinkLinkQualifier'] }, - 'snapshots' => { 466 => 'Snapshots' }, - 'snapshotusedvideoframe' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrame'] }, - 'snapshotusedvideoframetimeformat' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeFormat'] }, - 'snapshotusedvideoframetimevalue' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeValue'] }, - 'snapshotusedvideoframevalue' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameValue'] }, - 'snapshotwidthpixels' => { 483 => [\'SnapshotLink','SnapshotLinkWidthPixels'] }, - 'softskineffect' => { 414 => 0x200f }, - 'software' => { 118 => 0x131, 156 => 'Software', 304 => 'Software', 358 => 0x203, 368 => 'software', 391 => 0x18, 456 => 'Software', 493 => 'Software' }, - 'softwareversion' => { 374 => ['@swr',"\xa9swr"], 390 => 0x207 }, - 'soloist' => { 366 => "\xa9sol" }, - 'songwriter' => { 374 => "\xa9swf" }, - 'songwriterkeywords' => { 374 => "\xa9swk" }, + 'smartalbumcolor' => { 390 => 0x20 }, + 'smartrange' => { 390 => 0xa012 }, + 'smileshutter' => { 405 => 0x31 }, + 'smileshuttermode' => { 405 => 0x27 }, + 'smoothness' => { 118 => 0xfe57, 473 => 'Smoothness', 475 => 'Smoothness' }, + 'snapshot' => { 485 => 'SnapshotLink' }, + 'snapshotformat' => { 485 => [\'SnapshotLink','SnapshotLinkFormat'] }, + 'snapshotheightpixels' => { 485 => [\'SnapshotLink','SnapshotLinkHeightPixels'] }, + 'snapshotimagerole' => { 485 => [\'SnapshotLink','SnapshotLinkImageRole'] }, + 'snapshotlink' => { 485 => [\'SnapshotLink','SnapshotLinkLink'] }, + 'snapshotlinkqualifier' => { 485 => [\'SnapshotLink','SnapshotLinkLinkQualifier'] }, + 'snapshots' => { 468 => 'Snapshots' }, + 'snapshotusedvideoframe' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrame'] }, + 'snapshotusedvideoframetimeformat' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeFormat'] }, + 'snapshotusedvideoframetimevalue' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeValue'] }, + 'snapshotusedvideoframevalue' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameValue'] }, + 'snapshotwidthpixels' => { 485 => [\'SnapshotLink','SnapshotLinkWidthPixels'] }, + 'softskineffect' => { 416 => 0x200f }, + 'software' => { 118 => 0x131, 156 => 'Software', 306 => 'Software', 360 => 0x203, 370 => 'software', 393 => 0x18, 458 => 'Software', 495 => 'Software' }, + 'softwareversion' => { 376 => ['@swr',"\xa9swr"], 392 => 0x207 }, + 'soloist' => { 368 => "\xa9sol" }, + 'songwriter' => { 376 => "\xa9swf" }, + 'songwriterkeywords' => { 376 => "\xa9swk" }, 'sonycropsize' => { 118 => 0x74c8 }, 'sonycroptopleft' => { 118 => 0x74c7 }, - 'sonydatetime' => { 421 => 0x6, 423 => 0x1b6, 424 => 0x210, 425 => 0x1fe, 426 => 0x22c }, - 'sonydatetime2' => { 432 => 0x51 }, - 'sonyexposuretime' => { 432 => 0x3a, 433 => 0x46, 434 => [0x66,0x46] }, - 'sonyexposuretime2' => { 444 => 0xe }, - 'sonyfnumber' => { 432 => 0x3c, 433 => 0x48, 434 => [0x68,0x48], 444 => 0x14 }, - 'sonyimageheight' => { 421 => 0x1a, 435 => 0x44, 436 => 0x3f, 437 => 0x47 }, - 'sonyimageheightmax' => { 444 => 0x40 }, - 'sonyimagesize' => { 183 => 0x3b, 401 => 0x54, 402 => 0x54, 403 => 0x9 }, - 'sonyimagewidth' => { 421 => 0x1c }, - 'sonyimagewidthmax' => { 444 => 0x3e }, - 'sonyiso' => { 423 => 0x1218, 424 => 0x11f4, 425 => 0x1270, 426 => [0x1254,0x1258,0x1280], 427 => 0x113c, 428 => 0x344, 429 => 0x346, 430 => 0x320, 444 => 0x4 }, - 'sonymaxaperture' => { 432 => 0x0, 433 => 0x0 }, - 'sonymaxaperturevalue' => { 444 => 0x16 }, - 'sonyminaperture' => { 432 => 0x1, 433 => 0x1 }, - 'sonymodelid' => { 414 => 0xb001 }, + 'sonydatetime' => { 423 => 0x6, 425 => 0x1b6, 426 => 0x210, 427 => 0x1fe, 428 => 0x22c }, + 'sonydatetime2' => { 434 => 0x51 }, + 'sonyexposuretime' => { 434 => 0x3a, 435 => 0x46, 436 => [0x66,0x46] }, + 'sonyexposuretime2' => { 446 => 0xe }, + 'sonyfnumber' => { 434 => 0x3c, 435 => 0x48, 436 => [0x68,0x48], 446 => 0x14 }, + 'sonyimageheight' => { 423 => 0x1a, 437 => 0x44, 438 => 0x3f, 439 => 0x47 }, + 'sonyimageheightmax' => { 446 => 0x40 }, + 'sonyimagesize' => { 183 => 0x3b, 403 => 0x54, 404 => 0x54, 405 => 0x9 }, + 'sonyimagewidth' => { 423 => 0x1c }, + 'sonyimagewidthmax' => { 446 => 0x3e }, + 'sonyiso' => { 425 => 0x1218, 426 => 0x11f4, 427 => 0x1270, 428 => [0x1254,0x1258,0x1280], 429 => 0x113c, 430 => 0x344, 431 => 0x346, 432 => 0x320, 446 => 0x4 }, + 'sonymaxaperture' => { 434 => 0x0, 435 => 0x0 }, + 'sonymaxaperturevalue' => { 446 => 0x16 }, + 'sonyminaperture' => { 434 => 0x1, 435 => 0x1 }, + 'sonymodelid' => { 416 => 0xb001 }, 'sonyquality' => { 183 => 0x3c }, - 'sonytimeminsec' => { 433 => 0x61 }, - 'sortalbum' => { 366 => 'soal' }, - 'sortalbumartist' => { 366 => 'soaa' }, - 'sortartist' => { 366 => 'soar' }, - 'sortcomposer' => { 366 => 'soco' }, - 'sortname' => { 366 => 'sonm', 471 => 'SortName', 473 => 'SortName' }, - 'sortshow' => { 366 => 'sosn' }, - 'soundengineer' => { 366 => "\xa9sne" }, - 'source' => { 130 => 0x73, 304 => 'Source', 474 => 'source', 475 => 'source', 485 => 'Source' }, - 'sourcecount' => { 460 => 'SourceCount' }, - 'sourcecredits' => { 374 => "\xa9src" }, - 'sourcedirectoryindex' => { 336 => 0x0 }, - 'sourcefileindex' => { 336 => 0x2 }, - 'sourcephotoscount' => { 459 => 'SourcePhotosCount' }, + 'sonytimeminsec' => { 435 => 0x61 }, + 'sortalbum' => { 368 => 'soal' }, + 'sortalbumartist' => { 368 => 'soaa' }, + 'sortartist' => { 368 => 'soar' }, + 'sortcomposer' => { 368 => 'soco' }, + 'sortname' => { 368 => 'sonm', 473 => 'SortName', 475 => 'SortName' }, + 'sortshow' => { 368 => 'sosn' }, + 'soundengineer' => { 368 => "\xa9sne" }, + 'source' => { 130 => 0x73, 306 => 'Source', 476 => 'source', 477 => 'source', 487 => 'Source' }, + 'sourcecount' => { 462 => 'SourceCount' }, + 'sourcecredits' => { 376 => "\xa9src" }, + 'sourcedirectoryindex' => { 338 => 0x0 }, + 'sourcefileindex' => { 338 => 0x2 }, + 'sourcephotoscount' => { 461 => 'SourcePhotosCount' }, 'sourceprofileprefix' => { 137 => 0x1390 }, - 'spatialfrequencyresponse' => { 477 => 'SpatialFrequencyResponse' }, - 'spatialfrequencyresponsecolumns' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseColumns'] }, - 'spatialfrequencyresponsenames' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseNames'] }, - 'spatialfrequencyresponserows' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseRows'] }, - 'spatialfrequencyresponsevalues' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseValues'] }, - 'speakerplacement' => { 497 => 'speakerPlacement' }, + 'spatialfrequencyresponse' => { 479 => 'SpatialFrequencyResponse' }, + 'spatialfrequencyresponsecolumns' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseColumns'] }, + 'spatialfrequencyresponsenames' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseNames'] }, + 'spatialfrequencyresponserows' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseRows'] }, + 'spatialfrequencyresponsevalues' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseValues'] }, + 'speakerplacement' => { 499 => 'speakerPlacement' }, 'specialeffectlevel' => { 112 => 0x3030 }, 'specialeffectmode' => { 112 => 0x2076 }, 'specialeffectsetting' => { 112 => 0x3031 }, 'specialinstructions' => { 130 => 0x28 }, - 'specialmode' => { 296 => 0x200, 390 => 0x200 }, - 'specialoccasion' => { 489 => 'specialOccasion' }, - 'specialtypeid' => { 454 => 'SpecialTypeID' }, - 'spectralsensitivity' => { 118 => 0x8824, 477 => 'SpectralSensitivity' }, + 'specialmode' => { 298 => 0x200, 392 => 0x200 }, + 'specialoccasion' => { 491 => 'specialOccasion' }, + 'specialtypeid' => { 456 => 'SpecialTypeID' }, + 'spectralsensitivity' => { 118 => 0x8824, 479 => 'SpectralSensitivity' }, 'specularwhitelevel' => { 41 => 0x32b, 42 => 0x281, 45 => [0x2b9,0x2d0,0x2d4], 46 => 0x56a, 47 => 0x1e4, 48 => [0x1fd,0x2dd], 49 => [0x231,0x30f], 50 => 0x31d }, - 'speedx' => { 114 => 0x3, 374 => "\xa9xsp" }, - 'speedy' => { 114 => 0x4, 374 => "\xa9ysp" }, - 'speedz' => { 114 => 0x5, 374 => "\xa9zsp" }, - 'spherical' => { 460 => 'Spherical' }, - 'splitcolumn' => { 358 => 0x222 }, - 'splittoningbalance' => { 471 => 'SplitToningBalance', 473 => 'SplitToningBalance' }, - 'splittoninghighlighthue' => { 471 => 'SplitToningHighlightHue', 473 => 'SplitToningHighlightHue' }, - 'splittoninghighlightsaturation' => { 471 => 'SplitToningHighlightSaturation', 473 => 'SplitToningHighlightSaturation' }, - 'splittoningshadowhue' => { 471 => 'SplitToningShadowHue', 473 => 'SplitToningShadowHue' }, - 'splittoningshadowsaturation' => { 471 => 'SplitToningShadowSaturation', 473 => 'SplitToningShadowSaturation' }, - 'sport' => { 487 => 'sport' }, + 'speedx' => { 114 => 0x3, 376 => "\xa9xsp" }, + 'speedy' => { 114 => 0x4, 376 => "\xa9ysp" }, + 'speedz' => { 114 => 0x5, 376 => "\xa9zsp" }, + 'spherical' => { 462 => 'Spherical' }, + 'splitcolumn' => { 360 => 0x222 }, + 'splittoningbalance' => { 473 => 'SplitToningBalance', 475 => 'SplitToningBalance' }, + 'splittoninghighlighthue' => { 473 => 'SplitToningHighlightHue', 475 => 'SplitToningHighlightHue' }, + 'splittoninghighlightsaturation' => { 473 => 'SplitToningHighlightSaturation', 475 => 'SplitToningHighlightSaturation' }, + 'splittoningshadowhue' => { 473 => 'SplitToningShadowHue', 475 => 'SplitToningShadowHue' }, + 'splittoningshadowsaturation' => { 473 => 'SplitToningShadowSaturation', 475 => 'SplitToningShadowSaturation' }, + 'sport' => { 489 => 'sport' }, 'spotfocuspointx' => { 180 => 0x2d }, 'spotfocuspointy' => { 180 => 0x2e }, 'spotmeteringmode' => { 34 => 0x27 }, 'spotmeterlinktoafpoint' => { 83 => 0x107 }, - 'sractive' => { 330 => '17.1' }, + 'sractive' => { 332 => '17.1' }, 'srawquality' => { 34 => 0x2e }, - 'srfocallength' => { 351 => 0x3 }, - 'srhalfpresstime' => { 351 => 0x2 }, - 'srresult' => { 351 => 0x0, 352 => 0x0 }, - 'stackedimage' => { 291 => 0x804 }, + 'srfocallength' => { 353 => 0x3 }, + 'srhalfpresstime' => { 353 => 0x2 }, + 'srresult' => { 353 => 0x0, 354 => 0x0 }, + 'stackedimage' => { 293 => 0x804 }, 'standardmatrixcustom' => { 137 => 0x7d4 }, 'standardmatrixdaylight' => { 137 => 0x7d0 }, 'standardmatrixflash' => { 137 => 0x7d3 }, 'standardmatrixfluorescent' => { 137 => 0x7d2 }, 'standardmatrixtungsten' => { 137 => 0x7d1 }, 'standardoutputhighlightpoint' => { 108 => 0x14 }, - 'standardoutputsensitivity' => { 118 => 0x8831, 478 => 'StandardOutputSensitivity' }, + 'standardoutputsensitivity' => { 118 => 0x8831, 480 => 'StandardOutputSensitivity' }, 'standardoutputshadowpoint' => { 108 => 0x15 }, 'standardrawcolortone' => { 108 => 0xd }, 'standardrawcontrast' => { 108 => 0xf }, 'standardrawhighlight' => { 108 => 0x75 }, 'standardrawhighlightpoint' => { 108 => 0x12 }, @@ -6092,127 +6094,127 @@ my %tagLookup = ( 'standardwhitecustom' => { 137 => 0x838 }, 'standardwhitedaylight' => { 137 => 0x834 }, 'standardwhiteflash' => { 137 => 0x837 }, 'standardwhitefluorescent' => { 137 => 0x836 }, 'standardwhitetungsten' => { 137 => 0x835 }, - 'standbytimer' => { 275 => '19.1', 277 => '19.1', 278 => '19.1', 281 => '18.1', 282 => '18.1', 287 => '19.1', 288 => '19.1' }, - 'startingpage' => { 487 => 'startingPage' }, + 'standbytimer' => { 277 => '19.1', 279 => '19.1', 280 => '19.1', 283 => '18.1', 284 => '18.1', 289 => '19.1', 290 => '19.1' }, + 'startingpage' => { 489 => 'startingPage' }, 'startmovieshooting' => { 83 => 0x70d }, - 'starttimecode' => { 374 => "\xa9TIM", 497 => 'startTimecode' }, - 'starttimecodetimeformat' => { 497 => [\'startTimecode','startTimecodeTimeFormat'] }, - 'starttimecodetimevalue' => { 497 => [\'startTimecode','startTimecodeTimeValue'] }, - 'starttimecodevalue' => { 497 => [\'startTimecode','startTimecodeValue'] }, - 'starttimesamplesize' => { 374 => "\xa9TSZ", 497 => 'startTimeSampleSize' }, - 'starttimescale' => { 374 => "\xa9TSC", 497 => 'startTimeScale' }, - 'state' => { 160 => 'State', 314 => 0x6b, 485 => 'State' }, - 'status' => { 452 => 'Status', 464 => 'Status' }, - 'stereomode' => { 460 => 'StereoMode' }, - 'stitched' => { 460 => 'Stitched' }, - 'stitchingsoftware' => { 459 => 'StitchingSoftware', 460 => 'StitchingSoftware' }, - 'stopsabovebaseiso' => { 422 => 0x113e, 423 => 0x113e, 424 => 0x111a, 425 => 0x1196, 426 => 0x1172, 427 => 0x102a, 428 => 0x222, 429 => 0x222, 430 => 0x217, 444 => 0xa }, + 'starttimecode' => { 376 => "\xa9TIM", 499 => 'startTimecode' }, + 'starttimecodetimeformat' => { 499 => [\'startTimecode','startTimecodeTimeFormat'] }, + 'starttimecodetimevalue' => { 499 => [\'startTimecode','startTimecodeTimeValue'] }, + 'starttimecodevalue' => { 499 => [\'startTimecode','startTimecodeValue'] }, + 'starttimesamplesize' => { 376 => "\xa9TSZ", 499 => 'startTimeSampleSize' }, + 'starttimescale' => { 376 => "\xa9TSC", 499 => 'startTimeScale' }, + 'state' => { 160 => 'State', 316 => 0x6b, 487 => 'State' }, + 'status' => { 454 => 'Status', 466 => 'Status' }, + 'stereomode' => { 462 => 'StereoMode' }, + 'stitched' => { 462 => 'Stitched' }, + 'stitchingsoftware' => { 461 => 'StitchingSoftware', 462 => 'StitchingSoftware' }, + 'stopsabovebaseiso' => { 424 => 0x113e, 425 => 0x113e, 426 => 0x111a, 427 => 0x1196, 428 => 0x1172, 429 => 0x102a, 430 => 0x222, 431 => 0x222, 432 => 0x217, 446 => 0xa }, 'storagemethod' => { 187 => 0x12 }, - 'storebyorientation' => { 275 => '46.3', 277 => '47.3', 278 => '47.3', 287 => '47.3', 288 => '47.3' }, - 'storedescription' => { 366 => 'sdes' }, - 'storylineidentifier' => { 483 => 'StorylineIdentifier' }, - 'straightenangle' => { 267 => 0x2fc08431 }, - 'streamready' => { 483 => 'StreamReady' }, + 'storebyorientation' => { 277 => '46.3', 279 => '47.3', 280 => '47.3', 289 => '47.3', 290 => '47.3' }, + 'storedescription' => { 368 => 'sdes' }, + 'storylineidentifier' => { 485 => 'StorylineIdentifier' }, + 'straightenangle' => { 269 => 0x2fc08431 }, + 'streamready' => { 485 => 'StreamReady' }, 'streamtype' => { 175 => 'StreamType' }, - 'stretchmode' => { 497 => 'stretchMode' }, - 'studydatetime' => { 450 => 'StudyDateTime' }, - 'studydescription' => { 450 => 'StudyDescription' }, - 'studyid' => { 450 => 'StudyID' }, - 'studyphysician' => { 450 => 'StudyPhysician' }, - 'styleperiod' => { 483 => 'StylePeriod' }, + 'stretchmode' => { 499 => 'stretchMode' }, + 'studydatetime' => { 452 => 'StudyDateTime' }, + 'studydescription' => { 452 => 'StudyDescription' }, + 'studyid' => { 452 => 'StudyID' }, + 'studyphysician' => { 452 => 'StudyPhysician' }, + 'styleperiod' => { 485 => 'StylePeriod' }, 'sub-location' => { 130 => 0x5c }, 'subfiledata' => { 163 => 'data' }, 'subfiledirectory' => { 163 => '1Directory' }, 'subfilemimetype' => { 163 => '2MIME' }, 'subfilename' => { 163 => '1Name' }, 'subfileresource' => { 163 => 'rsrc' }, 'subfiletype' => { 118 => 0xfe, 163 => '0Type' }, - 'subject' => { 300 => 'Subject', 365 => 'Subject', 474 => 'subject', 484 => 'Subject', 498 => 'subject' }, - 'subjectarea' => { 118 => 0x9214, 477 => 'SubjectArea' }, - 'subjectcode' => { 482 => 'SubjectCode' }, - 'subjectdistance' => { 118 => 0x9206, 139 => 0x3e, 477 => 'SubjectDistance' }, - 'subjectdistancerange' => { 118 => 0xa40c, 477 => 'SubjectDistanceRange' }, - 'subjectlocation' => { 118 => 0xa214, 477 => 'SubjectLocation' }, - 'subjectmotion' => { 277 => '78.2', 278 => '78.2', 288 => '78.2' }, + 'subject' => { 302 => 'Subject', 367 => 'Subject', 476 => 'subject', 486 => 'Subject', 500 => 'subject' }, + 'subjectarea' => { 118 => 0x9214, 479 => 'SubjectArea' }, + 'subjectcode' => { 484 => 'SubjectCode' }, + 'subjectdistance' => { 118 => 0x9206, 139 => 0x3e, 479 => 'SubjectDistance' }, + 'subjectdistancerange' => { 118 => 0xa40c, 479 => 'SubjectDistanceRange' }, + 'subjectlocation' => { 118 => 0xa214, 479 => 'SubjectLocation' }, + 'subjectmotion' => { 279 => '78.2', 280 => '78.2', 290 => '78.2' }, 'subjectprogram' => { 180 => 0x22 }, 'subjectreference' => { 130 => 0xc }, - 'sublabels1' => { 481 => [\'TagStructure','TagStructureSubLabels'] }, - 'sublabels2' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabels'] }, - 'sublabels3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabels'] }, - 'sublabels4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabels'] }, - 'sublabels5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabels'] }, + 'sublabels1' => { 483 => [\'TagStructure','TagStructureSubLabels'] }, + 'sublabels2' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabels'] }, + 'sublabels3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabels'] }, + 'sublabels4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabels'] }, + 'sublabels5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabels'] }, 'subseccreatedate' => { 113 => 'Exif-SubSecCreateDate' }, 'subsecdatetimeoriginal' => { 113 => 'Exif-SubSecDateTimeOriginal' }, 'subsecmodifydate' => { 113 => 'Exif-SubSecModifyDate' }, 'subsectime' => { 118 => 0x9290 }, 'subsectimedigitized' => { 118 => 0x9292 }, 'subsectimeoriginal' => { 118 => 0x9291 }, - 'subsection1' => { 487 => 'subsection1' }, - 'subsection2' => { 487 => 'subsection2' }, - 'subsection3' => { 487 => 'subsection3' }, - 'subsection4' => { 487 => 'subsection4' }, - 'subselector' => { 275 => '49.1', 277 => '71.1', 278 => '71.1', 288 => '71.1' }, - 'subselectorassignment' => { 275 => '48.1' }, - 'subselectorcenter' => { 277 => '72.1', 278 => '72.1', 288 => '72.1' }, - 'subselectorplusdials' => { 275 => '49.2', 277 => '73.1', 278 => '73.1', 288 => '73.1' }, - 'subtitle' => { 178 => 'WM/SubTitle', 366 => "\xa9st3", 374 => "\xa9snm", 487 => 'subtitle' }, - 'subtitlekeywords' => { 374 => "\xa9snk" }, - 'subversionfilename' => { 481 => [\'SubVersions','SubVersionsFileName'] }, - 'subversionreference' => { 481 => [\'SubVersions','SubVersionsVersRef'] }, - 'subversions' => { 481 => 'SubVersions' }, + 'subsection1' => { 489 => 'subsection1' }, + 'subsection2' => { 489 => 'subsection2' }, + 'subsection3' => { 489 => 'subsection3' }, + 'subsection4' => { 489 => 'subsection4' }, + 'subselector' => { 277 => '49.1', 279 => '71.1', 280 => '71.1', 290 => '71.1' }, + 'subselectorassignment' => { 277 => '48.1' }, + 'subselectorcenter' => { 279 => '72.1', 280 => '72.1', 290 => '72.1' }, + 'subselectorplusdials' => { 277 => '49.2', 279 => '73.1', 280 => '73.1', 290 => '73.1' }, + 'subtitle' => { 178 => 'WM/SubTitle', 368 => "\xa9st3", 376 => "\xa9snm", 489 => 'subtitle' }, + 'subtitlekeywords' => { 376 => "\xa9snk" }, + 'subversionfilename' => { 483 => [\'SubVersions','SubVersionsFileName'] }, + 'subversionreference' => { 483 => [\'SubVersions','SubVersionsVersRef'] }, + 'subversions' => { 483 => 'SubVersions' }, 'superimposeddisplay' => { 81 => 0xa, 83 => 0x510, 84 => 0x9, 85 => 0xa, 88 => 0xa, 89 => 0xe }, 'supermacro' => { 63 => 0x1a }, - 'supplementalcategories' => { 130 => 0x14, 485 => 'SupplementalCategories' }, + 'supplementalcategories' => { 130 => 0x14, 487 => 'SupplementalCategories' }, 'supplementaltype' => { 132 => 0x37 }, - 'supplementdisplayid' => { 487 => 'supplementDisplayID' }, - 'supplementstartingpage' => { 487 => 'supplementStartingPage' }, - 'supplementtitle' => { 487 => 'supplementTitle' }, - 'supplychainsource' => { 483 => 'SupplyChainSource' }, - 'supplychainsourceidentifier' => { 483 => [\'SupplyChainSource','SupplyChainSourceIdentifier'] }, - 'supplychainsourcename' => { 483 => [\'SupplyChainSource','SupplyChainSourceName'] }, - 'supportsamount' => { 471 => 'SupportsAmount', 473 => 'SupportsAmount' }, - 'supportscolor' => { 471 => 'SupportsColor', 473 => 'SupportsColor' }, - 'supportshighdynamicrange' => { 471 => 'SupportsHighDynamicRange', 473 => 'SupportsHighDynamicRange' }, - 'supportsmonochrome' => { 471 => 'SupportsMonochrome', 473 => 'SupportsMonochrome' }, - 'supportsnormaldynamicrange' => { 471 => 'SupportsNormalDynamicRange', 473 => 'SupportsNormalDynamicRange' }, - 'supportsoutputreferred' => { 471 => 'SupportsOutputReferred', 473 => 'SupportsOutputReferred' }, - 'supportsscenereferred' => { 471 => 'SupportsSceneReferred', 473 => 'SupportsSceneReferred' }, - 'svisosetting' => { 330 => 0x14 }, - 'swatchcoloranta' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsA'] }, - 'swatchcolorantb' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsB'] }, - 'swatchcolorantblack' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsBlack'] }, - 'swatchcolorantblue' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsBlue'] }, - 'swatchcolorantcyan' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsCyan'] }, - 'swatchcolorantgray' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsGray'] }, - 'swatchcolorantgreen' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsGreen'] }, - 'swatchcolorantl' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsL'] }, - 'swatchcolorantmagenta' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsMagenta'] }, - 'swatchcolorantmode' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsMode'] }, - 'swatchcolorantred' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsRed'] }, - 'swatchcolorantswatchname' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsSwatchName'] }, - 'swatchcoloranttint' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsTint'] }, - 'swatchcoloranttype' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsType'] }, - 'swatchcolorantyellow' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsYellow'] }, - 'swatchgroupname' => { 502 => [\'SwatchGroups','SwatchGroupsGroupName'] }, - 'swatchgroups' => { 502 => 'SwatchGroups' }, - 'swatchgroupscolorants' => { 502 => [\'SwatchGroups','SwatchGroupsColorants'] }, - 'swatchgrouptype' => { 502 => [\'SwatchGroups','SwatchGroupsGroupType'] }, - 'sweeppanoramadirection' => { 314 => 0x93, 403 => 0x33 }, - 'sweeppanoramafieldofview' => { 314 => 0x94 }, - 'sweeppanoramasize' => { 403 => 0x32 }, + 'supplementdisplayid' => { 489 => 'supplementDisplayID' }, + 'supplementstartingpage' => { 489 => 'supplementStartingPage' }, + 'supplementtitle' => { 489 => 'supplementTitle' }, + 'supplychainsource' => { 485 => 'SupplyChainSource' }, + 'supplychainsourceidentifier' => { 485 => [\'SupplyChainSource','SupplyChainSourceIdentifier'] }, + 'supplychainsourcename' => { 485 => [\'SupplyChainSource','SupplyChainSourceName'] }, + 'supportsamount' => { 473 => 'SupportsAmount', 475 => 'SupportsAmount' }, + 'supportscolor' => { 473 => 'SupportsColor', 475 => 'SupportsColor' }, + 'supportshighdynamicrange' => { 473 => 'SupportsHighDynamicRange', 475 => 'SupportsHighDynamicRange' }, + 'supportsmonochrome' => { 473 => 'SupportsMonochrome', 475 => 'SupportsMonochrome' }, + 'supportsnormaldynamicrange' => { 473 => 'SupportsNormalDynamicRange', 475 => 'SupportsNormalDynamicRange' }, + 'supportsoutputreferred' => { 473 => 'SupportsOutputReferred', 475 => 'SupportsOutputReferred' }, + 'supportsscenereferred' => { 473 => 'SupportsSceneReferred', 475 => 'SupportsSceneReferred' }, + 'svisosetting' => { 332 => 0x14 }, + 'swatchcoloranta' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsA'] }, + 'swatchcolorantb' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsB'] }, + 'swatchcolorantblack' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsBlack'] }, + 'swatchcolorantblue' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsBlue'] }, + 'swatchcolorantcyan' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsCyan'] }, + 'swatchcolorantgray' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsGray'] }, + 'swatchcolorantgreen' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsGreen'] }, + 'swatchcolorantl' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsL'] }, + 'swatchcolorantmagenta' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsMagenta'] }, + 'swatchcolorantmode' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsMode'] }, + 'swatchcolorantred' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsRed'] }, + 'swatchcolorantswatchname' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsSwatchName'] }, + 'swatchcoloranttint' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsTint'] }, + 'swatchcoloranttype' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsType'] }, + 'swatchcolorantyellow' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsYellow'] }, + 'swatchgroupname' => { 504 => [\'SwatchGroups','SwatchGroupsGroupName'] }, + 'swatchgroups' => { 504 => 'SwatchGroups' }, + 'swatchgroupscolorants' => { 504 => [\'SwatchGroups','SwatchGroupsColorants'] }, + 'swatchgrouptype' => { 504 => [\'SwatchGroups','SwatchGroupsGroupType'] }, + 'sweeppanoramadirection' => { 316 => 0x93, 405 => 0x33 }, + 'sweeppanoramafieldofview' => { 316 => 0x94 }, + 'sweeppanoramasize' => { 405 => 0x32 }, 'switchtoregisteredafpoint' => { 82 => 0x12, 83 => 0x50a }, 'symlink' => { 119 => 'SymLink' }, - 'syncreleasemode' => { 277 => '77.1', 278 => '77.1', 288 => '77.1' }, - 'system' => { 358 => 0x204 }, - 'tagged' => { 360 => 0xdd, 361 => 'Tagged', 466 => 'tagged' }, - 'tagslist' => { 476 => 'TagsList' }, - 'tagstructure' => { 481 => 'TagStructure' }, - 'takenumber' => { 497 => 'takeNumber' }, - 'tapename' => { 497 => 'tapeName' }, + 'syncreleasemode' => { 279 => '77.1', 280 => '77.1', 290 => '77.1' }, + 'system' => { 360 => 0x204 }, + 'tagged' => { 362 => 0xdd, 363 => 'Tagged', 468 => 'tagged' }, + 'tagslist' => { 478 => 'TagsList' }, + 'tagstructure' => { 483 => 'TagStructure' }, + 'takenumber' => { 499 => 'takeNumber' }, + 'tapename' => { 499 => 'tapeName' }, 'targetaperture' => { 76 => 0x4 }, 'targetcompressionratio' => { 94 => 0x1 }, 'targetdistancesetting' => { 96 => 0x1807 }, 'targetexposuretime' => { 76 => 0x5 }, 'targetimagetype' => { 96 => 0x100a }, @@ -6265,386 +6267,386 @@ my %tagLookup = ( 'tda3offset' => { 137 => 0x1982 }, 'tda4bandwidth' => { 137 => 0x198d }, 'tda4edgepolarity' => { 137 => 0x198f }, 'tda4gain' => { 137 => 0x198e }, 'tda4offset' => { 137 => 0x198c }, - 'teaser' => { 487 => 'teaser' }, - 'teleconverter' => { 185 => 0x105, 414 => 0x105 }, + 'teaser' => { 489 => 'teaser' }, + 'teleconverter' => { 185 => 0x105, 416 => 0x105 }, 'tempampgainx100' => { 137 => 0x1914 }, - 'tempo' => { 497 => 'tempo' }, - 'temporalcoverage' => { 483 => 'TemporalCoverage' }, - 'temporalcoveragefrom' => { 483 => [\'TemporalCoverage','TemporalCoverageTempCoverageFrom'] }, - 'temporalcoverageto' => { 483 => [\'TemporalCoverage','TemporalCoverageTempCoverageTo'] }, - 'termsandconditionstext' => { 301 => 'TermsAndConditionsText' }, - 'termsandconditionsurl' => { 301 => 'TermsAndConditionsURL' }, + 'tempo' => { 499 => 'tempo' }, + 'temporalcoverage' => { 485 => 'TemporalCoverage' }, + 'temporalcoveragefrom' => { 485 => [\'TemporalCoverage','TemporalCoverageTempCoverageFrom'] }, + 'temporalcoverageto' => { 485 => [\'TemporalCoverage','TemporalCoverageTempCoverageTo'] }, + 'termsandconditionstext' => { 303 => 'TermsAndConditionsText' }, + 'termsandconditionsurl' => { 303 => 'TermsAndConditionsURL' }, 'testname' => { 119 => 'TestName' }, 'textencoding' => { 223 => 0x4 }, - 'textlayername' => { 485 => [\'TextLayers','TextLayersLayerName'] }, - 'textlayers' => { 485 => 'TextLayers' }, - 'textlayertext' => { 485 => [\'TextLayers','TextLayersLayerText'] }, - 'textstamp' => { 314 => [0x8008,0x8009,0x3b,0x3e] }, - 'texture' => { 471 => 'Texture', 473 => 'Texture' }, - 'three-dtrackingfacedetection' => { 277 => '1.4', 278 => '1.4', 288 => '1.4' }, - 'three-dtrackingwatcharea' => { 277 => '78.1', 278 => '78.1', 288 => '78.1' }, + 'textlayername' => { 487 => [\'TextLayers','TextLayersLayerName'] }, + 'textlayers' => { 487 => 'TextLayers' }, + 'textlayertext' => { 487 => [\'TextLayers','TextLayersLayerText'] }, + 'textstamp' => { 316 => [0x8008,0x8009,0x3b,0x3e] }, + 'texture' => { 473 => 'Texture', 475 => 'Texture' }, + 'three-dtrackingfacedetection' => { 279 => '1.4', 280 => '1.4', 290 => '1.4' }, + 'three-dtrackingwatcharea' => { 279 => '78.1', 280 => '78.1', 290 => '78.1' }, 'thresholding' => { 118 => 0x107 }, 'thumbnailfilename' => { 96 => 0x817 }, - 'thumbnailformat' => { 495 => [\'Thumbnails','ThumbnailsFormat'] }, - 'thumbnailheight' => { 141 => 0xfa55, 495 => [\'Thumbnails','ThumbnailsHeight'] }, - 'thumbnailimage' => { 6 => 'CNDA', 96 => 0x2008, 113 => 'Exif-ThumbnailImage', 121 => 0x3, 166 => 'data', 296 => 0x100, 374 => 'thmb', 495 => [\'Thumbnails','ThumbnailsImage'] }, + 'thumbnailformat' => { 497 => [\'Thumbnails','ThumbnailsFormat'] }, + 'thumbnailheight' => { 141 => 0xfa55, 497 => [\'Thumbnails','ThumbnailsHeight'] }, + 'thumbnailimage' => { 6 => 'CNDA', 96 => 0x2008, 113 => 'Exif-ThumbnailImage', 121 => 0x3, 166 => 'data', 298 => 0x100, 376 => 'thmb', 497 => [\'Thumbnails','ThumbnailsImage'] }, 'thumbnailimagename' => { 166 => '1Name' }, 'thumbnailimagesize' => { 166 => 'ImageSize' }, 'thumbnailimagetype' => { 166 => '0Type' }, 'thumbnailimagevalidarea' => { 63 => 0x13 }, 'thumbnaillength' => { 118 => 0x202 }, 'thumbnailoffset' => { 118 => 0x201 }, - 'thumbnailpng' => { 374 => 'thmb' }, - 'thumbnails' => { 495 => 'Thumbnails' }, - 'thumbnailwidth' => { 141 => 0xfa54, 495 => [\'Thumbnails','ThumbnailsWidth'] }, - 'ticker' => { 487 => 'ticker' }, - 'tiffhandling' => { 471 => 'TIFFHandling', 473 => 'TIFFHandling' }, - 'tiffmeteringimage' => { 186 => 0x104c, 412 => 0x1110 }, + 'thumbnailpng' => { 376 => 'thmb' }, + 'thumbnails' => { 497 => 'Thumbnails' }, + 'thumbnailwidth' => { 141 => 0xfa54, 497 => [\'Thumbnails','ThumbnailsWidth'] }, + 'ticker' => { 489 => 'ticker' }, + 'tiffhandling' => { 473 => 'TIFFHandling', 475 => 'TIFFHandling' }, + 'tiffmeteringimage' => { 186 => 0x104c, 414 => 0x1110 }, 'tilelength' => { 118 => 0x143 }, 'tilewidth' => { 118 => 0x142 }, - 'time' => { 137 => 0x401, 349 => 0x7 }, + 'time' => { 137 => 0x401, 351 => 0x7 }, 'timecodes' => { 118 => 0xc763 }, - 'timecreated' => { 130 => 0x3c, 139 => 0x14, 148 => 0x10, 361 => 'TimeCreated' }, - 'timelapseshotnumber' => { 317 => 0x10 }, - 'timeperiod' => { 487 => 'timePeriod' }, - 'timerfunctionbutton' => { 276 => '5.2', 279 => '12.1', 280 => '13.1' }, + 'timecreated' => { 130 => 0x3c, 139 => 0x14, 148 => 0x10, 363 => 'TimeCreated' }, + 'timelapseshotnumber' => { 319 => 0x10 }, + 'timeperiod' => { 489 => 'timePeriod' }, + 'timerfunctionbutton' => { 278 => '5.2', 281 => '12.1', 282 => '13.1' }, 'timerlength' => { 83 => 0x80c }, - 'timerrecording' => { 314 => 0x96 }, - 'timescaleparams' => { 497 => 'timeScaleParams' }, - 'timescaleparamsframeoverlappingpercentage' => { 497 => [\'timeScaleParams','timeScaleParamsFrameOverlappingPercentage'] }, - 'timescaleparamsframesize' => { 497 => [\'timeScaleParams','timeScaleParamsFrameSize'] }, - 'timescaleparamsquality' => { 497 => [\'timeScaleParams','timeScaleParamsQuality'] }, + 'timerrecording' => { 316 => 0x96 }, + 'timescaleparams' => { 499 => 'timeScaleParams' }, + 'timescaleparamsframeoverlappingpercentage' => { 499 => [\'timeScaleParams','timeScaleParamsFrameOverlappingPercentage'] }, + 'timescaleparamsframesize' => { 499 => [\'timeScaleParams','timeScaleParamsFrameSize'] }, + 'timescaleparamsquality' => { 499 => [\'timeScaleParams','timeScaleParamsQuality'] }, 'timesent' => { 131 => 0x50 }, - 'timeshot' => { 461 => 'TimeShot' }, - 'timesignature' => { 497 => 'timeSignature' }, - 'timesincepoweron' => { 314 => 0x29 }, - 'timestamp' => { 11 => 0x45e, 19 => 0x11c, 290 => 0x8, 304 => 'TimeStamp', 314 => 0xaf, 460 => 'Timestamp', 467 => 'Timestamp', 481 => 'TimeStamp' }, + 'timeshot' => { 463 => 'TimeShot' }, + 'timesignature' => { 499 => 'timeSignature' }, + 'timesincepoweron' => { 316 => 0x29 }, + 'timestamp' => { 11 => 0x45e, 19 => 0x11c, 292 => 0x8, 306 => 'TimeStamp', 316 => 0xaf, 462 => 'Timestamp', 469 => 'Timestamp', 483 => 'TimeStamp' }, 'timestamp1' => { 11 => 0x45a }, - 'timezone' => { 77 => 0x1, 258 => 0x0, 384 => 0xa }, + 'timezone' => { 77 => 0x1, 260 => 0x0, 386 => 0xa }, 'timezonecity' => { 77 => 0x2 }, 'timezonecode' => { 99 => 0x1 }, 'timezoneinfo' => { 99 => 0x2 }, 'timezoneoffset' => { 118 => 0x882a }, - 'tint' => { 368 => 'player.movie.visual.tint', 471 => 'Tint', 473 => 'Tint' }, - 'title' => { 156 => 'Title', 300 => 'Title', 304 => 'Title', 314 => 0x65, 365 => 'Title', 366 => ['titl',"\xa9nam"], 368 => 'title', 374 => ['titl',"\xa9nam"], 474 => 'title', 484 => 'Title', 495 => 'Title' }, - 'togglestyleamount' => { 471 => 'ToggleStyleAmount', 473 => 'ToggleStyleAmount' }, - 'togglestyledigest' => { 471 => 'ToggleStyleDigest', 473 => 'ToggleStyleDigest' }, + 'tint' => { 370 => 'player.movie.visual.tint', 473 => 'Tint', 475 => 'Tint' }, + 'title' => { 156 => 'Title', 302 => 'Title', 306 => 'Title', 316 => 0x65, 367 => 'Title', 368 => ['titl',"\xa9nam"], 370 => 'title', 376 => ['titl',"\xa9nam"], 476 => 'title', 486 => 'Title', 497 => 'Title' }, + 'togglestyleamount' => { 473 => 'ToggleStyleAmount', 475 => 'ToggleStyleAmount' }, + 'togglestyledigest' => { 473 => 'ToggleStyleDigest', 475 => 'ToggleStyleDigest' }, 'tonecomp' => { 224 => 0x81 }, - 'tonecurve' => { 73 => 0x1, 349 => 0x402, 471 => 'ToneCurve', 473 => 'ToneCurve' }, + 'tonecurve' => { 73 => 0x1, 351 => 0x402, 473 => 'ToneCurve', 475 => 'ToneCurve' }, 'tonecurveactive' => { 107 => 0x110 }, - 'tonecurveadobergb' => { 388 => 0xa043 }, - 'tonecurveadobergbdefault' => { 388 => 0xa041 }, - 'tonecurveblue' => { 471 => 'ToneCurveBlue', 473 => 'ToneCurveBlue' }, - 'tonecurvebluex' => { 448 => 0x9003 }, - 'tonecurvebluey' => { 448 => 0x9007 }, + 'tonecurveadobergb' => { 390 => 0xa043 }, + 'tonecurveadobergbdefault' => { 390 => 0xa041 }, + 'tonecurveblue' => { 473 => 'ToneCurveBlue', 475 => 'ToneCurveBlue' }, + 'tonecurvebluex' => { 450 => 0x9003 }, + 'tonecurvebluey' => { 450 => 0x9007 }, 'tonecurvebrightness' => { 102 => 0x20410 }, - 'tonecurvebrightnessx' => { 448 => 0x9000 }, - 'tonecurvebrightnessy' => { 448 => 0x9004 }, + 'tonecurvebrightnessx' => { 450 => 0x9000 }, + 'tonecurvebrightnessy' => { 450 => 0x9004 }, 'tonecurvecolorspace' => { 106 => 0x0 }, 'tonecurvecontrast' => { 102 => 0x20411 }, - 'tonecurvegreen' => { 471 => 'ToneCurveGreen', 473 => 'ToneCurveGreen' }, - 'tonecurvegreenx' => { 448 => 0x9002 }, - 'tonecurvegreeny' => { 448 => 0x9006 }, + 'tonecurvegreen' => { 473 => 'ToneCurveGreen', 475 => 'ToneCurveGreen' }, + 'tonecurvegreenx' => { 450 => 0x9002 }, + 'tonecurvegreeny' => { 450 => 0x9006 }, 'tonecurveinputrange' => { 106 => 0x3 }, 'tonecurveinterpolation' => { 107 => 0x159 }, 'tonecurvemode' => { 107 => 0x113 }, - 'tonecurvename' => { 471 => 'ToneCurveName', 473 => 'ToneCurveName' }, - 'tonecurvename2012' => { 471 => 'ToneCurveName2012', 473 => 'ToneCurveName2012' }, + 'tonecurvename' => { 473 => 'ToneCurveName', 475 => 'ToneCurveName' }, + 'tonecurvename2012' => { 473 => 'ToneCurveName2012', 475 => 'ToneCurveName2012' }, 'tonecurveoriginal' => { 102 => '0x20400.1' }, 'tonecurveoutputrange' => { 106 => 0x5 }, 'tonecurveprofilename' => { 137 => 0x1391 }, 'tonecurveproperty' => { 107 => 0x3c }, - 'tonecurvepv2012' => { 471 => 'ToneCurvePV2012', 473 => 'ToneCurvePV2012' }, - 'tonecurvepv2012blue' => { 471 => 'ToneCurvePV2012Blue', 473 => 'ToneCurvePV2012Blue' }, - 'tonecurvepv2012green' => { 471 => 'ToneCurvePV2012Green', 473 => 'ToneCurvePV2012Green' }, - 'tonecurvepv2012red' => { 471 => 'ToneCurvePV2012Red', 473 => 'ToneCurvePV2012Red' }, - 'tonecurvered' => { 471 => 'ToneCurveRed', 473 => 'ToneCurveRed' }, - 'tonecurveredx' => { 448 => 0x9001 }, - 'tonecurveredy' => { 448 => 0x9005 }, - 'tonecurves' => { 349 => 0x403 }, + 'tonecurvepv2012' => { 473 => 'ToneCurvePV2012', 475 => 'ToneCurvePV2012' }, + 'tonecurvepv2012blue' => { 473 => 'ToneCurvePV2012Blue', 475 => 'ToneCurvePV2012Blue' }, + 'tonecurvepv2012green' => { 473 => 'ToneCurvePV2012Green', 475 => 'ToneCurvePV2012Green' }, + 'tonecurvepv2012red' => { 473 => 'ToneCurvePV2012Red', 475 => 'ToneCurvePV2012Red' }, + 'tonecurvered' => { 473 => 'ToneCurveRed', 475 => 'ToneCurveRed' }, + 'tonecurveredx' => { 450 => 0x9001 }, + 'tonecurveredy' => { 450 => 0x9005 }, + 'tonecurves' => { 351 => 0x403 }, 'tonecurveshape' => { 106 => 0x1 }, - 'tonecurvesrgb' => { 388 => 0xa042 }, - 'tonecurvesrgbdefault' => { 388 => 0xa040 }, + 'tonecurvesrgb' => { 390 => 0xa042 }, + 'tonecurvesrgbdefault' => { 390 => 0xa040 }, 'tonecurvex' => { 106 => 0xa }, 'tonecurvey' => { 106 => 0xb }, - 'tonelevel' => { 291 => 0x52e }, - 'tonemapstrength' => { 471 => 'ToneMapStrength', 473 => 'ToneMapStrength' }, - 'toningeffect' => { 57 => 0xf, 224 => 0xb3, 226 => 0x38, 227 => 0x40, 228 => 0x48, 381 => 0x1015 }, + 'tonelevel' => { 293 => 0x52e }, + 'tonemapstrength' => { 473 => 'ToneMapStrength', 475 => 'ToneMapStrength' }, + 'toningeffect' => { 57 => 0xf, 224 => 0xb3, 227 => 0x38, 228 => 0x40, 229 => 0x48, 383 => 0x1015 }, 'toningeffectauto' => { 70 => 0xa4 }, 'toningeffectfaithful' => { 69 => 0x74, 70 => 0x74 }, 'toningeffectlandscape' => { 69 => 0x44, 70 => 0x44 }, 'toningeffectmonochrome' => { 19 => 0x108, 69 => 0x8c, 70 => 0x8c }, 'toningeffectneutral' => { 69 => 0x5c, 70 => 0x5c }, 'toningeffectportrait' => { 69 => 0x2c, 70 => 0x2c }, 'toningeffectstandard' => { 69 => 0x14, 70 => 0x14 }, 'toningeffectuserdef1' => { 69 => 0xa4, 70 => 0xbc }, 'toningeffectuserdef2' => { 69 => 0xbc, 70 => 0xd4 }, 'toningeffectuserdef3' => { 69 => 0xd4, 70 => 0xec }, - 'toningsaturation' => { 226 => 0x39, 227 => 0x41, 228 => 0x49 }, + 'toningsaturation' => { 227 => 0x39, 228 => 0x41, 229 => 0x49 }, 'totalzoom' => { 139 => 0x62 }, - 'touchae' => { 314 => 0xab }, - 'track' => { 366 => "\xa9trk", 374 => "\xa9trk" }, - 'trackcreatedate' => { 373 => 0x1 }, - 'trackmodifydate' => { 373 => 0x2 }, - 'tracknumber' => { 366 => 'trkn', 497 => 'trackNumber' }, - 'tracks' => { 497 => 'Tracks' }, - 'tracksframerate' => { 497 => [\'Tracks','TracksFrameRate'] }, - 'tracksmarkers' => { 497 => [\'Tracks','TracksMarkers'] }, - 'tracksmarkerscomment' => { 497 => [\'Tracks','TracksMarkersComment'] }, - 'tracksmarkerscuepointparams' => { 497 => [\'Tracks','TracksMarkersCuePointParams'] }, - 'tracksmarkerscuepointparamskey' => { 497 => [\'Tracks','TracksMarkersCuePointParamsKey'] }, - 'tracksmarkerscuepointparamsvalue' => { 497 => [\'Tracks','TracksMarkersCuePointParamsValue'] }, - 'tracksmarkerscuepointtype' => { 497 => [\'Tracks','TracksMarkersCuePointType'] }, - 'tracksmarkersduration' => { 497 => [\'Tracks','TracksMarkersDuration'] }, - 'tracksmarkerslocation' => { 497 => [\'Tracks','TracksMarkersLocation'] }, - 'tracksmarkersname' => { 497 => [\'Tracks','TracksMarkersName'] }, - 'tracksmarkersprobability' => { 497 => [\'Tracks','TracksMarkersProbability'] }, - 'tracksmarkersspeaker' => { 497 => [\'Tracks','TracksMarkersSpeaker'] }, - 'tracksmarkersstarttime' => { 497 => [\'Tracks','TracksMarkersStartTime'] }, - 'tracksmarkerstarget' => { 497 => [\'Tracks','TracksMarkersTarget'] }, - 'tracksmarkerstype' => { 497 => [\'Tracks','TracksMarkersType'] }, - 'trackstrackname' => { 497 => [\'Tracks','TracksTrackName'] }, - 'trackstracktype' => { 497 => [\'Tracks','TracksTrackType'] }, - 'tracktype' => { 374 => 'kgtt' }, + 'touchae' => { 316 => 0xab }, + 'track' => { 368 => "\xa9trk", 376 => "\xa9trk" }, + 'trackcreatedate' => { 375 => 0x1 }, + 'trackmodifydate' => { 375 => 0x2 }, + 'tracknumber' => { 368 => 'trkn', 499 => 'trackNumber' }, + 'tracks' => { 499 => 'Tracks' }, + 'tracksframerate' => { 499 => [\'Tracks','TracksFrameRate'] }, + 'tracksmarkers' => { 499 => [\'Tracks','TracksMarkers'] }, + 'tracksmarkerscomment' => { 499 => [\'Tracks','TracksMarkersComment'] }, + 'tracksmarkerscuepointparams' => { 499 => [\'Tracks','TracksMarkersCuePointParams'] }, + 'tracksmarkerscuepointparamskey' => { 499 => [\'Tracks','TracksMarkersCuePointParamsKey'] }, + 'tracksmarkerscuepointparamsvalue' => { 499 => [\'Tracks','TracksMarkersCuePointParamsValue'] }, + 'tracksmarkerscuepointtype' => { 499 => [\'Tracks','TracksMarkersCuePointType'] }, + 'tracksmarkersduration' => { 499 => [\'Tracks','TracksMarkersDuration'] }, + 'tracksmarkerslocation' => { 499 => [\'Tracks','TracksMarkersLocation'] }, + 'tracksmarkersname' => { 499 => [\'Tracks','TracksMarkersName'] }, + 'tracksmarkersprobability' => { 499 => [\'Tracks','TracksMarkersProbability'] }, + 'tracksmarkersspeaker' => { 499 => [\'Tracks','TracksMarkersSpeaker'] }, + 'tracksmarkersstarttime' => { 499 => [\'Tracks','TracksMarkersStartTime'] }, + 'tracksmarkerstarget' => { 499 => [\'Tracks','TracksMarkersTarget'] }, + 'tracksmarkerstype' => { 499 => [\'Tracks','TracksMarkersType'] }, + 'trackstrackname' => { 499 => [\'Tracks','TracksTrackName'] }, + 'trackstracktype' => { 499 => [\'Tracks','TracksTrackType'] }, + 'tracktype' => { 376 => 'kgtt' }, 'trailer' => { 119 => 'Trailer' }, 'trailersignature' => { 163 => 'zmie' }, - 'transcript' => { 483 => 'Transcript' }, - 'transcriptlink' => { 483 => 'TranscriptLink' }, - 'transcriptlinklink' => { 483 => [\'TranscriptLink','TranscriptLinkLink'] }, - 'transcriptlinklinkqualifier' => { 483 => [\'TranscriptLink','TranscriptLinkLinkQualifier'] }, - 'transferfunction' => { 118 => 0x12d, 493 => 'TransferFunction' }, + 'transcript' => { 485 => 'Transcript' }, + 'transcriptlink' => { 485 => 'TranscriptLink' }, + 'transcriptlinklink' => { 485 => [\'TranscriptLink','TranscriptLinkLink'] }, + 'transcriptlinklinkqualifier' => { 485 => [\'TranscriptLink','TranscriptLinkLinkQualifier'] }, + 'transferfunction' => { 118 => 0x12d, 495 => 'TransferFunction' }, 'transfertimenormal' => { 137 => 0x1888 }, 'transfertimetest' => { 137 => 0x1889 }, - 'transform' => { 314 => [0x8012,0x59] }, - 'transmissionreference' => { 485 => 'TransmissionReference' }, - 'trapped' => { 300 => 'Trapped', 484 => 'Trapped' }, + 'transform' => { 316 => [0x8012,0x59] }, + 'transmissionreference' => { 487 => 'TransmissionReference' }, + 'trapped' => { 302 => 'Trapped', 486 => 'Trapped' }, 'trashbuttonfunction' => { 83 => 0x710 }, - 'travelday' => { 314 => 0x36 }, - 'treble' => { 368 => 'player.movie.audio.treble' }, - 'triggermode' => { 375 => 0x6, 376 => 0x34, 377 => 0x34 }, + 'travelday' => { 316 => 0x36 }, + 'treble' => { 370 => 'player.movie.audio.treble' }, + 'triggermode' => { 377 => 0x6, 378 => 0x34, 379 => 0x34 }, 'tstop' => { 118 => 0xc772 }, - 'ttl_da_adown' => { 337 => 0x5 }, - 'ttl_da_aup' => { 337 => 0x4 }, - 'ttl_da_bdown' => { 337 => 0x7 }, - 'ttl_da_bup' => { 337 => 0x6 }, - 'tungstenawb' => { 327 => 0x1 }, - 'tvepisode' => { 366 => 'tves' }, - 'tvepisodeid' => { 366 => 'tven' }, - 'tvexposuretimesetting' => { 330 => 0x12 }, - 'tvnetworkname' => { 366 => 'tvnn' }, - 'tvseason' => { 366 => 'tvsn' }, - 'tvshow' => { 366 => 'tvsh' }, - 'type' => { 474 => 'type', 492 => 'type' }, + 'ttl_da_adown' => { 339 => 0x5 }, + 'ttl_da_aup' => { 339 => 0x4 }, + 'ttl_da_bdown' => { 339 => 0x7 }, + 'ttl_da_bup' => { 339 => 0x6 }, + 'tungstenawb' => { 329 => 0x1 }, + 'tvepisode' => { 368 => 'tves' }, + 'tvepisodeid' => { 368 => 'tven' }, + 'tvexposuretimesetting' => { 332 => 0x12 }, + 'tvnetworkname' => { 368 => 'tvnn' }, + 'tvseason' => { 368 => 'tvsn' }, + 'tvshow' => { 368 => 'tvsh' }, + 'type' => { 476 => 'type', 494 => 'type' }, 'typestatus' => { 117 => [\'Identification','IdentificationTypeStatus'] }, 'uniquecameramodel' => { 118 => 0xc614 }, 'uniquedocumentid' => { 130 => 0xbb }, 'uniquematrixauto' => { 137 => 0x7e9 }, 'uniquematrixcustom' => { 137 => 0x7e8 }, 'uniquematrixdaylight' => { 137 => 0x7e4 }, 'uniquematrixflash' => { 137 => 0x7e7 }, 'uniquematrixfluorescent' => { 137 => 0x7e6 }, 'uniquematrixtungsten' => { 137 => 0x7e5 }, 'uniqueobjectname' => { 131 => 0x64 }, - 'units' => { 456 => 'Units' }, - 'unknown_aacr' => { 366 => 'AACR' }, - 'unknown_cdek' => { 366 => 'CDEK' }, - 'unknown_cdet' => { 366 => 'CDET' }, - 'unknownblock' => { 349 => 0x405 }, - 'unknownblock1' => { 295 => 0x635 }, - 'unknownblock2' => { 295 => 0x636 }, - 'unknownblock3' => { 295 => 0x1103 }, - 'unknownblock4' => { 295 => 0x1104 }, + 'units' => { 458 => 'Units' }, + 'unknown_aacr' => { 368 => 'AACR' }, + 'unknown_cdek' => { 368 => 'CDEK' }, + 'unknown_cdet' => { 368 => 'CDET' }, + 'unknownblock' => { 351 => 0x405 }, + 'unknownblock1' => { 297 => 0x635 }, + 'unknownblock2' => { 297 => 0x636 }, + 'unknownblock3' => { 297 => 0x1103 }, + 'unknownblock4' => { 297 => 0x1104 }, 'unknowncontrast' => { 108 => 0x45 }, - 'unknowndate' => { 358 => 0x212 }, + 'unknowndate' => { 360 => 0x212 }, 'unknownev' => { 137 => 0x1 }, 'unknownlinear' => { 108 => 0x46 }, 'unknownnumber' => { 96 => 0x180b }, 'unknownoutputhighlightpoint' => { 108 => 0x4a }, 'unknownoutputshadowpoint' => { 108 => 0x4b }, 'unknownrawhighlight' => { 108 => 0x7b }, 'unknownrawhighlightpoint' => { 108 => 0x48 }, 'unknownrawshadow' => { 108 => 0x84 }, 'unknownrawshadowpoint' => { 108 => 0x49 }, 'unknownsharpness' => { 108 => 0x47 }, - 'unknowntags' => { 374 => 'TAGS' }, + 'unknowntags' => { 376 => 'TAGS' }, 'unknowntemperature' => { 120 => 0x4 }, - 'unknownthumbnail' => { 374 => 'thmb' }, - 'unsharp1color' => { 272 => 0x13 }, - 'unsharp1halowidth' => { 272 => 0x19 }, - 'unsharp1intensity' => { 272 => 0x17 }, - 'unsharp1threshold' => { 272 => 0x1b }, - 'unsharp2color' => { 272 => 0x2e }, - 'unsharp2halowidth' => { 272 => 0x34 }, - 'unsharp2intensity' => { 272 => 0x32 }, - 'unsharp2threshold' => { 272 => 0x36 }, - 'unsharp3color' => { 272 => 0x49 }, - 'unsharp3halowidth' => { 272 => 0x4f }, - 'unsharp3intensity' => { 272 => 0x4d }, - 'unsharp3threshold' => { 272 => 0x51 }, - 'unsharp4color' => { 272 => 0x64 }, - 'unsharp4halowidth' => { 272 => 0x6a }, - 'unsharp4intensity' => { 272 => 0x68 }, - 'unsharp4threshold' => { 272 => 0x6c }, - 'unsharpcount' => { 272 => 0x0 }, - 'unsharpmask' => { 108 => 0x90, 267 => 0x76a43200 }, + 'unknownthumbnail' => { 376 => 'thmb' }, + 'unsharp1color' => { 274 => 0x13 }, + 'unsharp1halowidth' => { 274 => 0x19 }, + 'unsharp1intensity' => { 274 => 0x17 }, + 'unsharp1threshold' => { 274 => 0x1b }, + 'unsharp2color' => { 274 => 0x2e }, + 'unsharp2halowidth' => { 274 => 0x34 }, + 'unsharp2intensity' => { 274 => 0x32 }, + 'unsharp2threshold' => { 274 => 0x36 }, + 'unsharp3color' => { 274 => 0x49 }, + 'unsharp3halowidth' => { 274 => 0x4f }, + 'unsharp3intensity' => { 274 => 0x4d }, + 'unsharp3threshold' => { 274 => 0x51 }, + 'unsharp4color' => { 274 => 0x64 }, + 'unsharp4halowidth' => { 274 => 0x6a }, + 'unsharp4intensity' => { 274 => 0x68 }, + 'unsharp4threshold' => { 274 => 0x6c }, + 'unsharpcount' => { 274 => 0x0 }, + 'unsharpmask' => { 108 => 0x90, 269 => 0x76a43200 }, 'unsharpmaskfineness' => { 102 => 0x20309 }, 'unsharpmaskstrength' => { 102 => 0x20308 }, 'unsharpmaskthreshold' => { 102 => 0x2030a }, - 'uprightcentermode' => { 471 => 'UprightCenterMode', 473 => 'UprightCenterMode' }, - 'uprightcenternormx' => { 471 => 'UprightCenterNormX', 473 => 'UprightCenterNormX' }, - 'uprightcenternormy' => { 471 => 'UprightCenterNormY', 473 => 'UprightCenterNormY' }, - 'uprightdependentdigest' => { 471 => 'UprightDependentDigest', 473 => 'UprightDependentDigest' }, - 'uprightfocallength35mm' => { 471 => 'UprightFocalLength35mm', 473 => 'UprightFocalLength35mm' }, - 'uprightfocalmode' => { 471 => 'UprightFocalMode', 473 => 'UprightFocalMode' }, - 'uprightfoursegmentscount' => { 471 => 'UprightFourSegmentsCount', 473 => 'UprightFourSegmentsCount' }, - 'uprightpreview' => { 471 => 'UprightPreview', 473 => 'UprightPreview' }, - 'uprighttransform_0' => { 471 => 'UprightTransform_0', 473 => 'UprightTransform_0' }, - 'uprighttransform_1' => { 471 => 'UprightTransform_1', 473 => 'UprightTransform_1' }, - 'uprighttransform_2' => { 471 => 'UprightTransform_2', 473 => 'UprightTransform_2' }, - 'uprighttransform_3' => { 471 => 'UprightTransform_3', 473 => 'UprightTransform_3' }, - 'uprighttransform_4' => { 471 => 'UprightTransform_4', 473 => 'UprightTransform_4' }, - 'uprighttransform_5' => { 471 => 'UprightTransform_5', 473 => 'UprightTransform_5' }, - 'uprighttransformcount' => { 471 => 'UprightTransformCount', 473 => 'UprightTransformCount' }, - 'uprightversion' => { 471 => 'UprightVersion', 473 => 'UprightVersion' }, - 'urgency' => { 130 => 0xa, 485 => 'Urgency' }, - 'url' => { 156 => 'URL', 304 => 'URL', 363 => 0x40b, 487 => 'url' }, - 'url_list' => { 363 => 0x41e }, - 'urla-platform' => { 487 => [\'url','urlA-platform'] }, - 'urlurl' => { 487 => [\'url','urlUrl'] }, + 'uprightcentermode' => { 473 => 'UprightCenterMode', 475 => 'UprightCenterMode' }, + 'uprightcenternormx' => { 473 => 'UprightCenterNormX', 475 => 'UprightCenterNormX' }, + 'uprightcenternormy' => { 473 => 'UprightCenterNormY', 475 => 'UprightCenterNormY' }, + 'uprightdependentdigest' => { 473 => 'UprightDependentDigest', 475 => 'UprightDependentDigest' }, + 'uprightfocallength35mm' => { 473 => 'UprightFocalLength35mm', 475 => 'UprightFocalLength35mm' }, + 'uprightfocalmode' => { 473 => 'UprightFocalMode', 475 => 'UprightFocalMode' }, + 'uprightfoursegmentscount' => { 473 => 'UprightFourSegmentsCount', 475 => 'UprightFourSegmentsCount' }, + 'uprightpreview' => { 473 => 'UprightPreview', 475 => 'UprightPreview' }, + 'uprighttransform_0' => { 473 => 'UprightTransform_0', 475 => 'UprightTransform_0' }, + 'uprighttransform_1' => { 473 => 'UprightTransform_1', 475 => 'UprightTransform_1' }, + 'uprighttransform_2' => { 473 => 'UprightTransform_2', 475 => 'UprightTransform_2' }, + 'uprighttransform_3' => { 473 => 'UprightTransform_3', 475 => 'UprightTransform_3' }, + 'uprighttransform_4' => { 473 => 'UprightTransform_4', 475 => 'UprightTransform_4' }, + 'uprighttransform_5' => { 473 => 'UprightTransform_5', 475 => 'UprightTransform_5' }, + 'uprighttransformcount' => { 473 => 'UprightTransformCount', 475 => 'UprightTransformCount' }, + 'uprightversion' => { 473 => 'UprightVersion', 475 => 'UprightVersion' }, + 'urgency' => { 130 => 0xa, 487 => 'Urgency' }, + 'url' => { 156 => 'URL', 306 => 'URL', 365 => 0x40b, 489 => 'url' }, + 'url_list' => { 365 => 0x41e }, + 'urla-platform' => { 489 => [\'url','urlA-platform'] }, + 'urlurl' => { 489 => [\'url','urlUrl'] }, 'usablemeteringmodes' => { 83 => 0x10a }, 'usableshootingmodes' => { 83 => 0x109 }, - 'usage' => { 488 => 'usage' }, - 'usageterms' => { 501 => 'UsageTerms' }, - 'useguidelines' => { 469 => 'useGuidelines' }, - 'usepanoramaviewer' => { 459 => 'UsePanoramaViewer' }, - 'usercollection' => { 368 => 'collection.user' }, - 'usercomment' => { 96 => 0x805, 118 => 0x9286, 477 => 'UserComment' }, + 'usage' => { 490 => 'usage' }, + 'usageterms' => { 503 => 'UsageTerms' }, + 'useguidelines' => { 471 => 'useGuidelines' }, + 'usepanoramaviewer' => { 461 => 'UsePanoramaViewer' }, + 'usercollection' => { 370 => 'collection.user' }, + 'usercomment' => { 96 => 0x805, 118 => 0x9286, 479 => 'UserComment' }, 'userdef1picturestyle' => { 19 => 0x10c, 69 => 0xd8, 70 => 0xf0 }, 'userdef2picturestyle' => { 19 => 0x10e, 69 => 0xda, 70 => 0xf2 }, 'userdef3picturestyle' => { 19 => 0x110, 69 => 0xdc, 70 => 0xf4 }, - 'userfields' => { 464 => 'UserFields' }, - 'userlabel' => { 375 => 0x2b, 376 => 0x5a, 377 => 0x68 }, - 'userprofile' => { 309 => 0x302, 313 => 0x34c, 316 => 0x3038 }, - 'userrating' => { 368 => 'rating.user', 374 => 'urat' }, + 'userfields' => { 466 => 'UserFields' }, + 'userlabel' => { 377 => 0x2b, 378 => 0x5a, 379 => 0x68 }, + 'userprofile' => { 311 => 0x302, 315 => 0x34c, 318 => 0x3038 }, + 'userrating' => { 370 => 'rating.user', 376 => 'urat' }, 'usmlenselectronicmf' => { 2 => 0x7, 82 => 0x7, 83 => 0x501 }, - 'uspsnumber' => { 487 => 'uspsNumber' }, + 'uspsnumber' => { 489 => 'uspsNumber' }, 'utmeasting' => { 167 => 'Easting' }, 'utmmapdatum' => { 167 => 'Datum' }, 'utmnorthing' => { 167 => 'Northing' }, 'utmzone' => { 167 => 'Zone' }, - 'uuid' => { 471 => 'UUID', 473 => 'UUID' }, - 'uv-irfiltercorrection' => { 309 => 0x325 }, - 'validbits' => { 295 => 0x611, 296 => 0x102c }, - 'validpixeldepth' => { 299 => 0x611 }, - 'variablelowpassfilter' => { 414 => 0x2028 }, + 'uuid' => { 473 => 'UUID', 475 => 'UUID' }, + 'uv-irfiltercorrection' => { 311 => 0x325 }, + 'validbits' => { 297 => 0x611, 298 => 0x102c }, + 'validpixeldepth' => { 301 => 0x611 }, + 'variablelowpassfilter' => { 416 => 0x2028 }, 'variousmodes' => { 139 => 0x26 }, 'variousmodes2' => { 139 => 0x3a }, 'variprogram' => { 224 => 0xab }, 'varraydacnominalvalues' => { 137 => 0x191e }, - 'vendor' => { 374 => 'vndr' }, - 'vendorinfo' => { 451 => 'VendorInfo' }, - 'vendorinfomanufacturer' => { 451 => [\'VendorInfo','VendorInfoManufacturer'] }, - 'vendorinfomodel' => { 451 => [\'VendorInfo','VendorInfoModel'] }, - 'vendorinfonotes' => { 451 => [\'VendorInfo','VendorInfoNotes'] }, - 'version' => { 126 => 0x0, 365 => 'Version', 368 => 'version', 471 => 'Version', 473 => 'Version' }, - 'versioncreatedate' => { 448 => 0xd100 }, - 'versionid' => { 498 => 'VersionID' }, - 'versionidentifier' => { 487 => 'versionIdentifier' }, - 'versionmodifydate' => { 448 => 0xd101 }, - 'versions' => { 498 => 'Versions' }, - 'versionscomments' => { 498 => [\'Versions','VersionsComments'] }, - 'versionsevent' => { 498 => [\'Versions','VersionsEvent'] }, - 'versionseventaction' => { 498 => [\'Versions','VersionsEventAction'] }, - 'versionseventchanged' => { 498 => [\'Versions','VersionsEventChanged'] }, - 'versionseventinstanceid' => { 498 => [\'Versions','VersionsEventInstanceID'] }, - 'versionseventparameters' => { 498 => [\'Versions','VersionsEventParameters'] }, - 'versionseventsoftwareagent' => { 498 => [\'Versions','VersionsEventSoftwareAgent'] }, - 'versionseventwhen' => { 498 => [\'Versions','VersionsEventWhen'] }, - 'versionsmodifier' => { 498 => [\'Versions','VersionsModifier'] }, - 'versionsmodifydate' => { 498 => [\'Versions','VersionsModifyDate'] }, - 'versionsversion' => { 498 => [\'Versions','VersionsVersion'] }, - 'verticalafonbutton' => { 274 => '3.2', 275 => '47.2', 277 => '79.1' }, + 'vendor' => { 376 => 'vndr' }, + 'vendorinfo' => { 453 => 'VendorInfo' }, + 'vendorinfomanufacturer' => { 453 => [\'VendorInfo','VendorInfoManufacturer'] }, + 'vendorinfomodel' => { 453 => [\'VendorInfo','VendorInfoModel'] }, + 'vendorinfonotes' => { 453 => [\'VendorInfo','VendorInfoNotes'] }, + 'version' => { 126 => 0x0, 367 => 'Version', 370 => 'version', 473 => 'Version', 475 => 'Version' }, + 'versioncreatedate' => { 450 => 0xd100 }, + 'versionid' => { 500 => 'VersionID' }, + 'versionidentifier' => { 489 => 'versionIdentifier' }, + 'versionmodifydate' => { 450 => 0xd101 }, + 'versions' => { 500 => 'Versions' }, + 'versionscomments' => { 500 => [\'Versions','VersionsComments'] }, + 'versionsevent' => { 500 => [\'Versions','VersionsEvent'] }, + 'versionseventaction' => { 500 => [\'Versions','VersionsEventAction'] }, + 'versionseventchanged' => { 500 => [\'Versions','VersionsEventChanged'] }, + 'versionseventinstanceid' => { 500 => [\'Versions','VersionsEventInstanceID'] }, + 'versionseventparameters' => { 500 => [\'Versions','VersionsEventParameters'] }, + 'versionseventsoftwareagent' => { 500 => [\'Versions','VersionsEventSoftwareAgent'] }, + 'versionseventwhen' => { 500 => [\'Versions','VersionsEventWhen'] }, + 'versionsmodifier' => { 500 => [\'Versions','VersionsModifier'] }, + 'versionsmodifydate' => { 500 => [\'Versions','VersionsModifyDate'] }, + 'versionsversion' => { 500 => [\'Versions','VersionsVersion'] }, + 'verticalafonbutton' => { 276 => '3.2', 277 => '47.2', 279 => '79.1' }, 'verticalclockoverlaps' => { 137 => 0x412 }, - 'verticalfuncbutton' => { 275 => '42.2', 277 => '67.1' }, - 'verticalfuncbuttonplusdials' => { 275 => '43.1' }, - 'verticalfuncplusdials' => { 277 => '68.1' }, - 'verticalmultiselector' => { 275 => '42.1', 277 => '66.1', 278 => '66.1', 288 => '66.1' }, + 'verticalfuncbutton' => { 277 => '42.2', 279 => '67.1' }, + 'verticalfuncbuttonplusdials' => { 277 => '43.1' }, + 'verticalfuncplusdials' => { 279 => '68.1' }, + 'verticalmultiselector' => { 277 => '42.1', 279 => '66.1', 280 => '66.1', 290 => '66.1' }, 'vfdisplayillumination' => { 2 => 0x11, 83 => [0x510,0x51d] }, - 'vibrance' => { 465 => 'Vibrance', 471 => 'Vibrance', 473 => 'Vibrance' }, - 'vibrationreduction' => { 233 => [0x75,0x82,0x1ae], 241 => '586.1', 250 => '590.2', 257 => 0x4 }, - 'videoalphamode' => { 497 => 'videoAlphaMode' }, - 'videoalphapremultiplecolor' => { 497 => 'videoAlphaPremultipleColor' }, - 'videoalphapremultiplecolora' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorA'] }, - 'videoalphapremultiplecolorb' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorB'] }, - 'videoalphapremultiplecolorblack' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlack'] }, - 'videoalphapremultiplecolorblue' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlue'] }, - 'videoalphapremultiplecolorcyan' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorCyan'] }, - 'videoalphapremultiplecolorgray' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGray'] }, - 'videoalphapremultiplecolorgreen' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGreen'] }, - 'videoalphapremultiplecolorl' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorL'] }, - 'videoalphapremultiplecolormagenta' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMagenta'] }, - 'videoalphapremultiplecolormode' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMode'] }, - 'videoalphapremultiplecolorred' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorRed'] }, - 'videoalphapremultiplecolorswatchname' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorSwatchName'] }, - 'videoalphapremultiplecolortint' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorTint'] }, - 'videoalphapremultiplecolortype' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorType'] }, - 'videoalphapremultiplecoloryellow' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorYellow'] }, - 'videoalphaunityistransparent' => { 497 => 'videoAlphaUnityIsTransparent' }, - 'videobitrate' => { 483 => 'videoBitRate' }, - 'videobitratemode' => { 483 => 'videoBitRateMode' }, - 'videoburstmode' => { 314 => 0xbb }, - 'videoburstresolution' => { 314 => 0xb3 }, + 'vibrance' => { 467 => 'Vibrance', 473 => 'Vibrance', 475 => 'Vibrance' }, + 'vibrationreduction' => { 234 => [0x75,0x82,0x1ae], 242 => '586.1', 251 => '590.2', 259 => 0x4 }, + 'videoalphamode' => { 499 => 'videoAlphaMode' }, + 'videoalphapremultiplecolor' => { 499 => 'videoAlphaPremultipleColor' }, + 'videoalphapremultiplecolora' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorA'] }, + 'videoalphapremultiplecolorb' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorB'] }, + 'videoalphapremultiplecolorblack' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlack'] }, + 'videoalphapremultiplecolorblue' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlue'] }, + 'videoalphapremultiplecolorcyan' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorCyan'] }, + 'videoalphapremultiplecolorgray' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGray'] }, + 'videoalphapremultiplecolorgreen' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGreen'] }, + 'videoalphapremultiplecolorl' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorL'] }, + 'videoalphapremultiplecolormagenta' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMagenta'] }, + 'videoalphapremultiplecolormode' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMode'] }, + 'videoalphapremultiplecolorred' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorRed'] }, + 'videoalphapremultiplecolorswatchname' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorSwatchName'] }, + 'videoalphapremultiplecolortint' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorTint'] }, + 'videoalphapremultiplecolortype' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorType'] }, + 'videoalphapremultiplecoloryellow' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorYellow'] }, + 'videoalphaunityistransparent' => { 499 => 'videoAlphaUnityIsTransparent' }, + 'videobitrate' => { 485 => 'videoBitRate' }, + 'videobitratemode' => { 485 => 'videoBitRateMode' }, + 'videoburstmode' => { 316 => 0xbb }, + 'videoburstresolution' => { 316 => 0xb3 }, 'videocodec' => { 66 => 0x74 }, - 'videocolorspace' => { 497 => 'videoColorSpace' }, + 'videocolorspace' => { 499 => 'videoColorSpace' }, 'videocompression' => { 126 => 0x3806 }, - 'videocompressor' => { 497 => 'videoCompressor' }, - 'videodisplayaspectratio' => { 483 => 'videoDisplayAspectRatio' }, - 'videoencodingprofile' => { 483 => 'videoEncodingProfile' }, - 'videofieldorder' => { 497 => 'videoFieldOrder' }, - 'videoframerate' => { 314 => 0x27, 497 => 'videoFrameRate' }, - 'videoframesize' => { 497 => 'videoFrameSize' }, - 'videoframesizeh' => { 497 => [\'videoFrameSize','videoFrameSizeH'] }, - 'videoframesizeunit' => { 497 => [\'videoFrameSize','videoFrameSizeUnit'] }, - 'videoframesizew' => { 497 => [\'videoFrameSize','videoFrameSizeW'] }, - 'videomoddate' => { 497 => 'videoModDate' }, - 'videopixelaspectratio' => { 497 => 'videoPixelAspectRatio' }, - 'videopixeldepth' => { 497 => 'videoPixelDepth' }, - 'videopreburst' => { 314 => 0xc1 }, + 'videocompressor' => { 499 => 'videoCompressor' }, + 'videodisplayaspectratio' => { 485 => 'videoDisplayAspectRatio' }, + 'videoencodingprofile' => { 485 => 'videoEncodingProfile' }, + 'videofieldorder' => { 499 => 'videoFieldOrder' }, + 'videoframerate' => { 316 => 0x27, 499 => 'videoFrameRate' }, + 'videoframesize' => { 499 => 'videoFrameSize' }, + 'videoframesizeh' => { 499 => [\'videoFrameSize','videoFrameSizeH'] }, + 'videoframesizeunit' => { 499 => [\'videoFrameSize','videoFrameSizeUnit'] }, + 'videoframesizew' => { 499 => [\'videoFrameSize','videoFrameSizeW'] }, + 'videomoddate' => { 499 => 'videoModDate' }, + 'videopixelaspectratio' => { 499 => 'videoPixelAspectRatio' }, + 'videopixeldepth' => { 499 => 'videoPixelDepth' }, + 'videopreburst' => { 316 => 0xc1 }, 'videoquality' => { 112 => 0x4003 }, 'videorecordingmode' => { 126 => 0x3803 }, - 'videoshottype' => { 483 => 'VideoShotType' }, - 'videoshottypeidentifier' => { 483 => [\'VideoShotType','VideoShotTypeIdentifier'] }, - 'videoshottypename' => { 483 => [\'VideoShotType','VideoShotTypeName'] }, - 'videostreamscount' => { 483 => 'videoStreamsCount' }, - 'viewfinder' => { 358 => 0x455 }, - 'viewfinderdisplay' => { 274 => '12.4', 275 => '6.3' }, - 'viewfinderwarning' => { 274 => '13.4', 284 => '3.5', 285 => '6.2', 289 => '4.4' }, + 'videoshottype' => { 485 => 'VideoShotType' }, + 'videoshottypeidentifier' => { 485 => [\'VideoShotType','VideoShotTypeIdentifier'] }, + 'videoshottypename' => { 485 => [\'VideoShotType','VideoShotTypeName'] }, + 'videostreamscount' => { 485 => 'videoStreamsCount' }, + 'viewfinder' => { 360 => 0x455 }, + 'viewfinderdisplay' => { 276 => '12.4', 277 => '6.3' }, + 'viewfinderwarning' => { 276 => '13.4', 286 => '3.5', 287 => '6.2', 291 => '4.4' }, 'viewfinderwarnings' => { 83 => 0x40a }, 'viewinfoduringexposure' => { 83 => 0x407 }, - 'viewingmode' => { 403 => 0x2f, 419 => 0x18 }, - 'viewingmode2' => { 403 => [0x85,0x285] }, - 'viewpoint' => { 486 => 'viewpoint' }, - 'vignetteamount' => { 471 => 'VignetteAmount', 473 => 'VignetteAmount' }, - 'vignettecontrol' => { 224 => 0x2a, 267 => 0x76a43205 }, - 'vignettecontrolintensity' => { 267 => 0xac6bd5c0 }, - 'vignettecorrectionalreadyapplied' => { 468 => 'VignetteCorrectionAlreadyApplied' }, - 'vignettemidpoint' => { 471 => 'VignetteMidpoint', 473 => 'VignetteMidpoint' }, - 'vignetting' => { 381 => 0x1011, 388 => 0xa052 }, - 'vignettingcorrection' => { 118 => 0x7031, 388 => 0xa053, 414 => 0x2011 }, - 'vignettingcorrparams' => { 118 => 0x7032, 443 => 0x64a, 444 => [0x34a,0x350,0x35c,0x368] }, - 'vignettingsetting' => { 388 => 0xa054 }, - 'visualcolor' => { 483 => 'VisualColour' }, - 'visualtechnique' => { 486 => 'visualTechnique' }, - 'voicememo' => { 390 => 0x216 }, - 'volume' => { 487 => 'volume' }, - 'vr_0x66' => { 233 => 0x66 }, + 'viewingmode' => { 405 => 0x2f, 421 => 0x18 }, + 'viewingmode2' => { 405 => [0x85,0x285] }, + 'viewpoint' => { 488 => 'viewpoint' }, + 'vignetteamount' => { 473 => 'VignetteAmount', 475 => 'VignetteAmount' }, + 'vignettecontrol' => { 224 => 0x2a, 269 => 0x76a43205 }, + 'vignettecontrolintensity' => { 269 => 0xac6bd5c0 }, + 'vignettecorrectionalreadyapplied' => { 470 => 'VignetteCorrectionAlreadyApplied' }, + 'vignettemidpoint' => { 473 => 'VignetteMidpoint', 475 => 'VignetteMidpoint' }, + 'vignetting' => { 383 => 0x1011, 390 => 0xa052 }, + 'vignettingcorrection' => { 118 => 0x7031, 390 => 0xa053, 416 => 0x2011 }, + 'vignettingcorrparams' => { 118 => 0x7032, 445 => 0x64a, 446 => [0x34a,0x350,0x35c,0x368] }, + 'vignettingsetting' => { 390 => 0xa054 }, + 'visualcolor' => { 485 => 'VisualColour' }, + 'visualtechnique' => { 488 => 'visualTechnique' }, + 'voicememo' => { 392 => 0x216 }, + 'volume' => { 489 => 'volume' }, + 'vr_0x66' => { 234 => 0x66 }, 'vrdoffset' => { 63 => 0xd0 }, - 'vrmode' => { 257 => 0x6 }, - 'waterdepth' => { 118 => 0x9403, 478 => 'WaterDepth' }, + 'vrmode' => { 259 => 0x6 }, + 'waterdepth' => { 118 => 0x9403, 480 => 'WaterDepth' }, 'wb_bluelevel3500k' => { 186 => 0x19a }, 'wb_bluelevel6500k' => { 186 => 0x18a }, 'wb_bluelevelcustom' => { 186 => 0x18e }, 'wb_bluelevelscloudy' => { 186 => 0x106 }, 'wb_bluelevelsdaylight' => { 186 => 0xea }, @@ -6652,23 +6654,23 @@ my %tagLookup = ( 'wb_bluelevelsfluorescent' => { 186 => [0x40a,0x15a] }, 'wb_bluelevelskelvin' => { 186 => 0x254 }, 'wb_bluelevelsshade' => { 186 => 0x176 }, 'wb_bluelevelstungsten' => { 186 => 0xce }, 'wb_gbrglevels' => { 186 => 0xae, 189 => 0x4 }, - 'wb_glevel' => { 295 => 0x11f }, - 'wb_glevel3000k' => { 295 => 0x113 }, - 'wb_glevel3300k' => { 295 => 0x114 }, - 'wb_glevel3600k' => { 295 => 0x115 }, - 'wb_glevel3900k' => { 295 => 0x116 }, - 'wb_glevel4000k' => { 295 => 0x117 }, - 'wb_glevel4300k' => { 295 => 0x118 }, - 'wb_glevel4500k' => { 295 => 0x119 }, - 'wb_glevel4800k' => { 295 => 0x11a }, - 'wb_glevel5300k' => { 295 => 0x11b }, - 'wb_glevel6000k' => { 295 => 0x11c }, - 'wb_glevel6600k' => { 295 => 0x11d }, - 'wb_glevel7500k' => { 295 => 0x11e }, + 'wb_glevel' => { 297 => 0x11f }, + 'wb_glevel3000k' => { 297 => 0x113 }, + 'wb_glevel3300k' => { 297 => 0x114 }, + 'wb_glevel3600k' => { 297 => 0x115 }, + 'wb_glevel3900k' => { 297 => 0x116 }, + 'wb_glevel4000k' => { 297 => 0x117 }, + 'wb_glevel4300k' => { 297 => 0x118 }, + 'wb_glevel4500k' => { 297 => 0x119 }, + 'wb_glevel4800k' => { 297 => 0x11a }, + 'wb_glevel5300k' => { 297 => 0x11b }, + 'wb_glevel6000k' => { 297 => 0x11c }, + 'wb_glevel6600k' => { 297 => 0x11d }, + 'wb_glevel7500k' => { 297 => 0x11e }, 'wb_grbglevels' => { 199 => 0x0 }, 'wb_grgblevelsauto' => { 80 => 0x2 }, 'wb_grgblevelscloudy' => { 80 => 0x12 }, 'wb_grgblevelscustom1' => { 80 => 0x42 }, 'wb_grgblevelscustom2' => { 80 => 0x4a }, @@ -6677,56 +6679,56 @@ my %tagLookup = ( 'wb_grgblevelsfluorescent' => { 80 => 0x22 }, 'wb_grgblevelsfluorhigh' => { 80 => 0x2a }, 'wb_grgblevelstungsten' => { 80 => 0x1a }, 'wb_grgblevelsunderwater' => { 80 => 0x3a }, 'wb_rbgglevels' => { 196 => 0x0 }, - 'wb_rblevels' => { 200 => 0x270, 224 => 0xc, 295 => 0x100 }, - 'wb_rblevels1' => { 320 => 0x2 }, - 'wb_rblevels2' => { 320 => 0x5 }, - 'wb_rblevels3' => { 320 => 0x8 }, - 'wb_rblevels3000k' => { 295 => 0x102 }, - 'wb_rblevels3300k' => { 295 => 0x103 }, + 'wb_rblevels' => { 200 => 0x270, 224 => 0xc, 297 => 0x100 }, + 'wb_rblevels1' => { 322 => 0x2 }, + 'wb_rblevels2' => { 322 => 0x5 }, + 'wb_rblevels3' => { 322 => 0x8 }, + 'wb_rblevels3000k' => { 297 => 0x102 }, + 'wb_rblevels3300k' => { 297 => 0x103 }, 'wb_rblevels3500k' => { 186 => 0x430 }, - 'wb_rblevels3600k' => { 295 => 0x104 }, - 'wb_rblevels3900k' => { 295 => 0x105 }, - 'wb_rblevels4' => { 320 => 0xb }, - 'wb_rblevels4000k' => { 295 => 0x106 }, - 'wb_rblevels4300k' => { 295 => 0x107 }, - 'wb_rblevels4500k' => { 295 => 0x108 }, - 'wb_rblevels4800k' => { 295 => 0x109 }, - 'wb_rblevels5' => { 320 => 0xe }, - 'wb_rblevels5300k' => { 295 => 0x10a }, - 'wb_rblevels6' => { 320 => 0x11 }, - 'wb_rblevels6000k' => { 295 => 0x10b }, + 'wb_rblevels3600k' => { 297 => 0x104 }, + 'wb_rblevels3900k' => { 297 => 0x105 }, + 'wb_rblevels4' => { 322 => 0xb }, + 'wb_rblevels4000k' => { 297 => 0x106 }, + 'wb_rblevels4300k' => { 297 => 0x107 }, + 'wb_rblevels4500k' => { 297 => 0x108 }, + 'wb_rblevels4800k' => { 297 => 0x109 }, + 'wb_rblevels5' => { 322 => 0xe }, + 'wb_rblevels5300k' => { 297 => 0x10a }, + 'wb_rblevels6' => { 322 => 0x11 }, + 'wb_rblevels6000k' => { 297 => 0x10b }, 'wb_rblevels6500k' => { 186 => 0x420 }, - 'wb_rblevels6600k' => { 295 => 0x10c }, - 'wb_rblevels7' => { 320 => 0x14 }, - 'wb_rblevels7500k' => { 295 => 0x10d }, - 'wb_rblevelsauto' => { 200 => 0x272, 299 => 0x110 }, - 'wb_rblevelscloudy' => { 186 => 0x3f0, 188 => 0x10, 200 => 0x296, 299 => 0x121 }, + 'wb_rblevels6600k' => { 297 => 0x10c }, + 'wb_rblevels7' => { 322 => 0x14 }, + 'wb_rblevels7500k' => { 297 => 0x10d }, + 'wb_rblevelsauto' => { 200 => 0x272, 301 => 0x110 }, + 'wb_rblevelscloudy' => { 186 => 0x3f0, 188 => 0x10, 200 => 0x296, 301 => 0x121 }, 'wb_rblevelscoolwhitef' => { 186 => 0x308, 188 => 0x14 }, - 'wb_rblevelscoolwhitefluor' => { 299 => 0x132 }, + 'wb_rblevelscoolwhitefluor' => { 301 => 0x132 }, 'wb_rblevelscustom' => { 186 => 0x424, 188 => 0x1c }, - 'wb_rblevelscwb1' => { 295 => 0x10e }, - 'wb_rblevelscwb2' => { 295 => 0x10f }, - 'wb_rblevelscwb3' => { 295 => 0x110 }, - 'wb_rblevelscwb4' => { 295 => 0x111 }, + 'wb_rblevelscwb1' => { 297 => 0x10e }, + 'wb_rblevelscwb2' => { 297 => 0x10f }, + 'wb_rblevelscwb3' => { 297 => 0x110 }, + 'wb_rblevelscwb4' => { 297 => 0x111 }, 'wb_rblevelsdaylight' => { 186 => [0x3ec,0x528], 188 => 0xc, 200 => 0x274 }, 'wb_rblevelsdaylightf' => { 188 => 0x24 }, - 'wb_rblevelsdaylightfluor' => { 299 => 0x130 }, + 'wb_rblevelsdaylightfluor' => { 301 => 0x130 }, 'wb_rblevelsdaywhitef' => { 188 => 0x28 }, - 'wb_rblevelsdaywhitefluor' => { 299 => 0x131 }, - 'wb_rblevelseveningsunlight' => { 299 => 0x124 }, - 'wb_rblevelsfineweather' => { 299 => 0x122 }, + 'wb_rblevelsdaywhitefluor' => { 301 => 0x131 }, + 'wb_rblevelseveningsunlight' => { 301 => 0x124 }, + 'wb_rblevelsfineweather' => { 301 => 0x122 }, 'wb_rblevelsflash' => { 186 => [0x3f4,0x304], 188 => 0x18, 200 => 0x2a4 }, 'wb_rblevelsfluorescent' => { 200 => 0x290 }, 'wb_rblevelsincandescent' => { 200 => 0x282 }, - 'wb_rblevelsshade' => { 186 => 0x418, 188 => 0x20, 200 => 0x2b2, 299 => 0x120 }, - 'wb_rblevelstungsten' => { 186 => 0x3e8, 188 => 0x8, 299 => 0x123 }, - 'wb_rblevelsused' => { 299 => 0x100 }, + 'wb_rblevelsshade' => { 186 => 0x418, 188 => 0x20, 200 => 0x2b2, 301 => 0x120 }, + 'wb_rblevelstungsten' => { 186 => 0x3e8, 188 => 0x8, 301 => 0x123 }, + 'wb_rblevelsused' => { 301 => 0x100 }, 'wb_rblevelswhitef' => { 188 => 0x2c }, - 'wb_rblevelswhitefluorescent' => { 299 => 0x133 }, + 'wb_rblevelswhitefluorescent' => { 301 => 0x133 }, 'wb_redlevel3500k' => { 186 => 0x198 }, 'wb_redlevel6500k' => { 186 => 0x188 }, 'wb_redlevelcustom' => { 186 => 0x18c }, 'wb_redlevelscloudy' => { 186 => 0xf8 }, 'wb_redlevelsdaylight' => { 186 => 0xdc }, @@ -6734,70 +6736,70 @@ my %tagLookup = ( 'wb_redlevelsfluorescent' => { 186 => [0x3fc,0x14c] }, 'wb_redlevelskelvin' => { 186 => 0x1be }, 'wb_redlevelsshade' => { 186 => 0x168 }, 'wb_redlevelstungsten' => { 186 => 0xc0 }, 'wb_rgbglevels' => { 198 => 0x0 }, - 'wb_rgblevels' => { 186 => [0x546,0x96], 310 => 0xd, 311 => 0x413, 316 => 0x3036, 358 => 0x107, 422 => 0x117c, 423 => 0x1180, 424 => 0x115c, 425 => 0x11d8, 426 => 0x11b4, 427 => 0x106c, 428 => 0x264, 429 => 0x264, 430 => 0x252 }, - 'wb_rgblevels1' => { 321 => 0x2 }, - 'wb_rgblevels2' => { 321 => 0x6 }, - 'wb_rgblevels3' => { 321 => 0xa }, - 'wb_rgblevels4' => { 321 => 0xe }, - 'wb_rgblevels5' => { 321 => 0x12 }, - 'wb_rgblevels6' => { 321 => 0x16 }, - 'wb_rgblevels7' => { 321 => 0x1a }, - 'wb_rgblevelsauto' => { 392 => 0x0 }, - 'wb_rgblevelscustom1' => { 392 => 0x15 }, - 'wb_rgblevelscustom2' => { 392 => 0x18 }, - 'wb_rgblevelscustom3' => { 392 => 0x1b }, - 'wb_rgblevelsdaylight' => { 392 => 0x3 }, - 'wb_rgblevelsflash' => { 392 => 0x12 }, - 'wb_rgblevelsfluorescent' => { 392 => 0xf }, - 'wb_rgblevelsincandescent' => { 392 => 0xc }, - 'wb_rgblevelsovercast' => { 392 => 0x9 }, - 'wb_rgblevelsshade' => { 392 => 0x6 }, - 'wb_rgblevelsunknown0' => { 393 => 0x0 }, - 'wb_rgblevelsunknown1' => { 393 => 0x3 }, - 'wb_rgblevelsunknown2' => { 393 => 0x6 }, - 'wb_rgblevelsunknown3' => { 393 => 0x9 }, - 'wb_rgblevelsunknown4' => { 393 => 0xc }, - 'wb_rgblevelsunknown5' => { 393 => 0xf }, - 'wb_rgblevelsunknown6' => { 393 => 0x12 }, - 'wb_rgblevelsunknown7' => { 393 => 0x15 }, - 'wb_rgblevelsunknown8' => { 393 => 0x18 }, - 'wb_rgblevelsunknown9' => { 393 => 0x1b }, + 'wb_rgblevels' => { 186 => [0x546,0x96], 312 => 0xd, 313 => 0x413, 318 => 0x3036, 360 => 0x107, 424 => 0x117c, 425 => 0x1180, 426 => 0x115c, 427 => 0x11d8, 428 => 0x11b4, 429 => 0x106c, 430 => 0x264, 431 => 0x264, 432 => 0x252 }, + 'wb_rgblevels1' => { 323 => 0x2 }, + 'wb_rgblevels2' => { 323 => 0x6 }, + 'wb_rgblevels3' => { 323 => 0xa }, + 'wb_rgblevels4' => { 323 => 0xe }, + 'wb_rgblevels5' => { 323 => 0x12 }, + 'wb_rgblevels6' => { 323 => 0x16 }, + 'wb_rgblevels7' => { 323 => 0x1a }, + 'wb_rgblevelsauto' => { 394 => 0x0 }, + 'wb_rgblevelscustom1' => { 394 => 0x15 }, + 'wb_rgblevelscustom2' => { 394 => 0x18 }, + 'wb_rgblevelscustom3' => { 394 => 0x1b }, + 'wb_rgblevelsdaylight' => { 394 => 0x3 }, + 'wb_rgblevelsflash' => { 394 => 0x12 }, + 'wb_rgblevelsfluorescent' => { 394 => 0xf }, + 'wb_rgblevelsincandescent' => { 394 => 0xc }, + 'wb_rgblevelsovercast' => { 394 => 0x9 }, + 'wb_rgblevelsshade' => { 394 => 0x6 }, + 'wb_rgblevelsunknown0' => { 395 => 0x0 }, + 'wb_rgblevelsunknown1' => { 395 => 0x3 }, + 'wb_rgblevelsunknown2' => { 395 => 0x6 }, + 'wb_rgblevelsunknown3' => { 395 => 0x9 }, + 'wb_rgblevelsunknown4' => { 395 => 0xc }, + 'wb_rgblevelsunknown5' => { 395 => 0xf }, + 'wb_rgblevelsunknown6' => { 395 => 0x12 }, + 'wb_rgblevelsunknown7' => { 395 => 0x15 }, + 'wb_rgblevelsunknown8' => { 395 => 0x18 }, + 'wb_rgblevelsunknown9' => { 395 => 0x1b }, 'wb_rgbmuldaylight' => { 137 => 0x852 }, 'wb_rgbmulflash' => { 137 => 0x855 }, 'wb_rgbmulfluorescent' => { 137 => 0x854 }, 'wb_rgbmultungsten' => { 137 => 0x853 }, 'wb_rggbblacklevels' => { 35 => 0x25 }, 'wb_rggblevels' => { 189 => 0x4, 197 => 0x0, 201 => 0x13e8, 202 => 0x38 }, 'wb_rggblevelsasshot' => { 38 => 0x0, 39 => 0x0, 40 => 0x19, 41 => 0x55, 42 => 0x69, 43 => 0x22, 44 => 0x3f, 47 => 0x3f, 48 => 0x3f, 49 => 0x3f, 50 => 0x47 }, - 'wb_rggblevelsauto' => { 35 => 0x1, 38 => 0x5, 39 => 0x8, 40 => 0x1e, 41 => 0x5a, 42 => 0x6e, 43 => 0x18, 44 => 0x44, 47 => 0x44, 48 => 0x44, 49 => 0x44, 50 => 0x4c, 201 => 0x1478, 202 => 0x114, 388 => 0xa022 }, - 'wb_rggblevelsblack' => { 388 => 0xa028 }, - 'wb_rggblevelscloudy' => { 35 => 0xd, 38 => 0x1e, 39 => 0x30, 40 => 0x2d, 41 => 0xa0, 42 => 0xd7, 43 => 0x31, 44 => 0x58, 47 => 0x71, 48 => 0x8a, 49 => 0x8f, 50 => 0x92, 201 => 0x1408, 202 => 0x60, 349 => 0x20f, 357 => 0x14 }, + 'wb_rggblevelsauto' => { 35 => 0x1, 38 => 0x5, 39 => 0x8, 40 => 0x1e, 41 => 0x5a, 42 => 0x6e, 43 => 0x18, 44 => 0x44, 47 => 0x44, 48 => 0x44, 49 => 0x44, 50 => 0x4c, 201 => 0x1478, 202 => 0x114, 390 => 0xa022 }, + 'wb_rggblevelsblack' => { 390 => 0xa028 }, + 'wb_rggblevelscloudy' => { 35 => 0xd, 38 => 0x1e, 39 => 0x30, 40 => 0x2d, 41 => 0xa0, 42 => 0xd7, 43 => 0x31, 44 => 0x58, 47 => 0x71, 48 => 0x8a, 49 => 0x8f, 50 => 0x92, 201 => 0x1408, 202 => 0x60, 351 => 0x20f, 359 => 0x14 }, 'wb_rggblevelscustom' => { 35 => 0x1d, 44 => 0x80, 201 => 0x1468, 202 => 0x100 }, 'wb_rggblevelscustom1' => { 40 => 0x41 }, 'wb_rggblevelscustom2' => { 40 => 0x46 }, - 'wb_rggblevelsdaylight' => { 35 => 0x5, 38 => 0x14, 39 => 0x20, 40 => 0x23, 41 => 0x96, 42 => 0xcd, 43 => 0x27, 44 => 0x4e, 47 => 0x67, 48 => 0x80, 49 => 0x85, 50 => 0x88, 201 => 0x13f8, 202 => 0x4c, 349 => 0x20d, 357 => 0x2 }, - 'wb_rggblevelsflash' => { 35 => 0x19, 38 => 0x32, 39 => 0x50, 40 => 0x3c, 41 => 0xb4, 42 => 0xeb, 43 => 0x45, 44 => 0x6c, 47 => 0x85, 48 => 0x9e, 49 => 0xa3, 50 => 0xa6, 201 => 0x1448, 349 => 0x214, 357 => 0x41 }, + 'wb_rggblevelsdaylight' => { 35 => 0x5, 38 => 0x14, 39 => 0x20, 40 => 0x23, 41 => 0x96, 42 => 0xcd, 43 => 0x27, 44 => 0x4e, 47 => 0x67, 48 => 0x80, 49 => 0x85, 50 => 0x88, 201 => 0x13f8, 202 => 0x4c, 351 => 0x20d, 359 => 0x2 }, + 'wb_rggblevelsflash' => { 35 => 0x19, 38 => 0x32, 39 => 0x50, 40 => 0x3c, 41 => 0xb4, 42 => 0xeb, 43 => 0x45, 44 => 0x6c, 47 => 0x85, 48 => 0x9e, 49 => 0xa3, 50 => 0xa6, 201 => 0x1448, 351 => 0x214, 359 => 0x41 }, 'wb_rggblevelsfluorescent' => { 35 => 0x15, 38 => 0x28, 39 => 0x40, 40 => 0x37, 41 => 0xaa, 42 => 0xe1, 43 => 0x3b, 44 => 0x62, 47 => 0x7b, 48 => 0x94, 49 => 0x99, 50 => 0x9c }, - 'wb_rggblevelsfluorescentd' => { 202 => 0xc4, 349 => 0x211, 357 => 0x26 }, - 'wb_rggblevelsfluorescentl' => { 357 => 0x4a }, - 'wb_rggblevelsfluorescentn' => { 202 => 0xb0, 349 => 0x212, 357 => 0x2f }, - 'wb_rggblevelsfluorescentw' => { 201 => 0x1438, 202 => 0x9c, 349 => 0x213, 357 => 0x38 }, + 'wb_rggblevelsfluorescentd' => { 202 => 0xc4, 351 => 0x211, 359 => 0x26 }, + 'wb_rggblevelsfluorescentl' => { 359 => 0x4a }, + 'wb_rggblevelsfluorescentn' => { 202 => 0xb0, 351 => 0x212, 359 => 0x2f }, + 'wb_rggblevelsfluorescentw' => { 201 => 0x1438, 202 => 0x9c, 351 => 0x213, 359 => 0x38 }, 'wb_rggblevelshtmercury' => { 202 => 0xd8 }, - 'wb_rggblevelsilluminator1' => { 388 => 0xa023 }, - 'wb_rggblevelsilluminator2' => { 388 => 0xa024 }, + 'wb_rggblevelsilluminator1' => { 390 => 0xa023 }, + 'wb_rggblevelsilluminator2' => { 390 => 0xa024 }, 'wb_rggblevelskelvin' => { 35 => 0x21, 38 => 0x2d, 39 => 0x48, 41 => 0xaf, 42 => 0xe6, 43 => 0x40, 44 => 0x67, 47 => 0x80, 48 => 0x99, 49 => 0x9e, 50 => 0xa1 }, 'wb_rggblevelsmeasured' => { 38 => 0xa, 39 => 0x10, 41 => 0x5f, 42 => 0x73, 44 => 0x49, 47 => 0x49, 48 => 0x49, 49 => 0x49, 50 => 0x51 }, 'wb_rggblevelspc1' => { 43 => 0x90, 44 => 0x71 }, 'wb_rggblevelspc2' => { 43 => 0x95, 44 => 0x76 }, 'wb_rggblevelspc3' => { 43 => 0x9a, 44 => 0x7b }, - 'wb_rggblevelsshade' => { 35 => 0x9, 38 => 0x19, 39 => 0x28, 40 => 0x28, 41 => 0x9b, 42 => 0xd2, 43 => 0x2c, 44 => 0x53, 47 => 0x6c, 48 => 0x85, 49 => 0x8a, 50 => 0x8d, 202 => 0x74, 349 => 0x20e, 357 => 0xb }, - 'wb_rggblevelstungsten' => { 35 => 0x11, 38 => 0x23, 39 => 0x38, 40 => 0x32, 41 => 0xa5, 42 => 0xdc, 43 => 0x36, 44 => 0x5d, 47 => 0x76, 48 => 0x8f, 49 => 0x94, 50 => 0x97, 201 => 0x1428, 202 => 0x88, 349 => 0x210, 357 => 0x1d }, - 'wb_rggblevelsuncorrected' => { 388 => 0xa021 }, - 'wb_rggblevelsunknown' => { 38 => 0xf, 39 => 0x18, 41 => 0x64, 42 => 0x78, 43 => 0x1d, 47 => 0x4e, 48 => 0x4e, 49 => 0x4e, 50 => 0x56, 357 => 0x53 }, + 'wb_rggblevelsshade' => { 35 => 0x9, 38 => 0x19, 39 => 0x28, 40 => 0x28, 41 => 0x9b, 42 => 0xd2, 43 => 0x2c, 44 => 0x53, 47 => 0x6c, 48 => 0x85, 49 => 0x8a, 50 => 0x8d, 202 => 0x74, 351 => 0x20e, 359 => 0xb }, + 'wb_rggblevelstungsten' => { 35 => 0x11, 38 => 0x23, 39 => 0x38, 40 => 0x32, 41 => 0xa5, 42 => 0xdc, 43 => 0x36, 44 => 0x5d, 47 => 0x76, 48 => 0x8f, 49 => 0x94, 50 => 0x97, 201 => 0x1428, 202 => 0x88, 351 => 0x210, 359 => 0x1d }, + 'wb_rggblevelsuncorrected' => { 390 => 0xa021 }, + 'wb_rggblevelsunknown' => { 38 => 0xf, 39 => 0x18, 41 => 0x64, 42 => 0x78, 43 => 0x1d, 47 => 0x4e, 48 => 0x4e, 49 => 0x4e, 50 => 0x56, 359 => 0x53 }, 'wb_rggblevelsunknown10' => { 38 => 0x5f, 39 => 0x98, 41 => 0x91, 42 => 0xa5, 43 => 0x72, 47 => 0x9e, 48 => 0x7b, 49 => 0x7b, 50 => 0x83 }, 'wb_rggblevelsunknown11' => { 38 => 0x64, 39 => 0xa0, 41 => 0xb9, 42 => [0xaa,0xaf], 43 => 0x77, 47 => 0xa3, 48 => 0xa3, 49 => 0x80, 50 => 0xab }, 'wb_rggblevelsunknown12' => { 38 => 0x69, 39 => 0xa8, 41 => 0xbe, 42 => 0xb4, 43 => 0x7c, 47 => 0xa8, 48 => 0xa8, 49 => 0xa8, 50 => 0xb0 }, 'wb_rggblevelsunknown13' => { 38 => 0x6e, 39 => 0xb0, 41 => 0xc3, 42 => 0xb9, 43 => 0x81, 47 => 0xad, 48 => 0xad, 49 => 0xad, 50 => 0xb5 }, 'wb_rggblevelsunknown14' => { 41 => 0xc8, 42 => 0xbe, 43 => 0x86, 47 => 0xb2, 48 => 0xb2, 49 => 0xb2, 50 => 0xba }, @@ -6823,132 +6825,132 @@ my %tagLookup = ( 'wb_rggblevelsunknown5' => { 38 => 0x46, 39 => 0x70, 41 => 0x78, 42 => 0x8c, 43 => 0x59, 47 => 0x62, 48 => 0x62, 49 => 0x62, 50 => 0x6a }, 'wb_rggblevelsunknown6' => { 38 => 0x4b, 39 => 0x78, 41 => 0x7d, 42 => 0x91, 43 => 0x5e, 47 => 0x8a, 48 => 0x67, 49 => 0x67, 50 => 0x6f }, 'wb_rggblevelsunknown7' => { 38 => 0x50, 39 => 0x80, 41 => 0x82, 42 => 0x96, 43 => 0x63, 47 => 0x8f, 48 => 0x6c, 49 => 0x6c, 50 => 0x74 }, 'wb_rggblevelsunknown8' => { 38 => 0x55, 39 => 0x88, 41 => 0x87, 42 => 0x9b, 43 => 0x68, 47 => 0x94, 48 => 0x71, 49 => 0x71, 50 => 0x79 }, 'wb_rggblevelsunknown9' => { 38 => 0x5a, 39 => 0x90, 41 => 0x8c, 42 => 0xa0, 43 => 0x6d, 47 => 0x99, 48 => 0x76, 49 => 0x76, 50 => 0x7e }, - 'wb_rggblevelsuserselected' => { 357 => 0x5c }, + 'wb_rggblevelsuserselected' => { 359 => 0x5c }, 'wbadjblueamber' => { 102 => 0x20106 }, - 'wbadjbluebalance' => { 273 => 0x8 }, + 'wbadjbluebalance' => { 275 => 0x8 }, 'wbadjcolortemp' => { 102 => 0x20102, 107 => 0x1a }, - 'wbadjlighting' => { 273 => 0x14 }, + 'wbadjlighting' => { 275 => 0x14 }, 'wbadjmagentagreen' => { 102 => 0x20105 }, - 'wbadjmode' => { 273 => 0x10 }, - 'wbadjredbalance' => { 273 => 0x0 }, + 'wbadjmode' => { 275 => 0x10 }, + 'wbadjredbalance' => { 275 => 0x0 }, 'wbadjrggblevels' => { 102 => 0x20125, 107 => 0x6 }, - 'wbadjtemperature' => { 273 => 0x18 }, - 'wbadjtint' => { 273 => 0x25 }, - 'wbbluelevel' => { 309 => 0x324, 314 => 0x8006, 319 => 0x26 }, - 'wbbracketingsteps' => { 242 => 0x174d, 243 => 0x87c, 252 => 0x1757 }, + 'wbadjtemperature' => { 275 => 0x18 }, + 'wbadjtint' => { 275 => 0x25 }, + 'wbbluelevel' => { 311 => 0x324, 316 => 0x8006, 321 => 0x26 }, + 'wbbracketingsteps' => { 243 => 0x174d, 244 => 0x87c, 253 => 0x1757 }, 'wbbracketmode' => { 57 => 0x9 }, - 'wbbracketshotnumber' => { 186 => 0x2b, 381 => 0x101a }, + 'wbbracketshotnumber' => { 186 => 0x2b, 383 => 0x101a }, 'wbbracketvalueab' => { 57 => 0xc }, 'wbbracketvaluegm' => { 57 => 0xd }, 'wbfinetuneactive' => { 107 => 0x24 }, 'wbfinetunesaturation' => { 107 => 0x28 }, 'wbfinetunetone' => { 107 => 0x2c }, - 'wbgreenlevel' => { 309 => 0x323, 314 => 0x8005, 319 => 0x25 }, + 'wbgreenlevel' => { 311 => 0x323, 316 => 0x8005, 321 => 0x25 }, 'wbmediaimagesizesetting' => { 83 => 0x708 }, - 'wbmode' => { 188 => 0x4, 296 => 0x1015 }, - 'wbredlevel' => { 309 => 0x322, 314 => 0x8004, 319 => 0x24 }, + 'wbmode' => { 188 => 0x4, 298 => 0x1015 }, + 'wbredlevel' => { 311 => 0x322, 316 => 0x8004, 321 => 0x24 }, 'wbscale' => { 189 => 0x0 }, - 'wbshiftab' => { 73 => 0xc, 314 => 0x46, 331 => 0x10 }, - 'wbshiftab_gm' => { 414 => 0x2014 }, - 'wbshiftab_gm_precise' => { 414 => 0x2026 }, - 'wbshiftcreativecontrol' => { 314 => 0x92 }, - 'wbshiftgm' => { 73 => 0xd, 314 => 0x47, 331 => 0x11 }, - 'wbshiftintelligentauto' => { 314 => 0x8b }, - 'wbtype1' => { 320 => 0x1, 321 => 0x1 }, - 'wbtype2' => { 320 => 0x4, 321 => 0x5 }, - 'wbtype3' => { 320 => 0x7, 321 => 0x9 }, - 'wbtype4' => { 320 => 0xa, 321 => 0xd }, - 'wbtype5' => { 320 => 0xd, 321 => 0x11 }, - 'wbtype6' => { 320 => 0x10, 321 => 0x15 }, - 'wbtype7' => { 320 => 0x13, 321 => 0x19 }, - 'webstatement' => { 501 => 'WebStatement' }, - 'weightedflatsubject' => { 463 => 'weightedFlatSubject' }, - 'what' => { 471 => 'What', 473 => 'What' }, - 'whitebalance' => { 7 => 0x6f, 8 => [0x44,0x4a], 9 => 0xbc, 10 => 0x36, 11 => 0x5e, 12 => 0x36, 13 => 0x78, 14 => 0x6f, 15 => 0x6f, 16 => 0x73, 17 => 0x6f, 18 => 0x78, 19 => 0x54, 20 => 0x6f, 21 => 0xbc, 22 => 0x7b, 24 => 0xbc, 25 => 0xc2, 27 => 0x131, 28 => 0x77, 73 => 0x8, 76 => 0x7, 111 => 0x7, 112 => [0x19,0x2012], 118 => [0xa403,0xfe4e], 126 => 0x1002, 137 => 0x3fc, 138 => 0xfa0d, 139 => 0x40, 150 => 0x1a, 180 => 0x3, 181 => 0xe, 182 => 0x4, 183 => 0xb, 185 => 0x115, 224 => 0x5, 256 => 0x7, 309 => 0x304, 314 => 0x3, 316 => 0x3033, 349 => 0x19, 356 => 0x7, 380 => 0x26, 381 => 0x1003, 391 => [0x88,0x3c,0x7,0x58], 401 => 0xf, 402 => 0xe, 414 => [0x115,0xb054], 471 => 'WhiteBalance', 473 => 'WhiteBalance', 477 => 'WhiteBalance' }, + 'wbshiftab' => { 73 => 0xc, 316 => 0x46, 333 => 0x10 }, + 'wbshiftab_gm' => { 416 => 0x2014 }, + 'wbshiftab_gm_precise' => { 416 => 0x2026 }, + 'wbshiftcreativecontrol' => { 316 => 0x92 }, + 'wbshiftgm' => { 73 => 0xd, 316 => 0x47, 333 => 0x11 }, + 'wbshiftintelligentauto' => { 316 => 0x8b }, + 'wbtype1' => { 322 => 0x1, 323 => 0x1 }, + 'wbtype2' => { 322 => 0x4, 323 => 0x5 }, + 'wbtype3' => { 322 => 0x7, 323 => 0x9 }, + 'wbtype4' => { 322 => 0xa, 323 => 0xd }, + 'wbtype5' => { 322 => 0xd, 323 => 0x11 }, + 'wbtype6' => { 322 => 0x10, 323 => 0x15 }, + 'wbtype7' => { 322 => 0x13, 323 => 0x19 }, + 'webstatement' => { 503 => 'WebStatement' }, + 'weightedflatsubject' => { 465 => 'weightedFlatSubject' }, + 'what' => { 473 => 'What', 475 => 'What' }, + 'whitebalance' => { 7 => 0x6f, 8 => [0x44,0x4a], 9 => 0xbc, 10 => 0x36, 11 => 0x5e, 12 => 0x36, 13 => 0x78, 14 => 0x6f, 15 => 0x6f, 16 => 0x73, 17 => 0x6f, 18 => 0x78, 19 => 0x54, 20 => 0x6f, 21 => 0xbc, 22 => 0x7b, 24 => 0xbc, 25 => 0xc2, 27 => 0x131, 28 => 0x77, 73 => 0x8, 76 => 0x7, 111 => 0x7, 112 => [0x19,0x2012], 118 => [0xa403,0xfe4e], 126 => 0x1002, 137 => 0x3fc, 138 => 0xfa0d, 139 => 0x40, 150 => 0x1a, 180 => 0x3, 181 => 0xe, 182 => 0x4, 183 => 0xb, 185 => 0x115, 224 => 0x5, 258 => 0x7, 311 => 0x304, 316 => 0x3, 318 => 0x3033, 351 => 0x19, 358 => 0x7, 382 => 0x26, 383 => 0x1003, 393 => [0x88,0x3c,0x7,0x58], 403 => 0xf, 404 => 0xe, 416 => [0x115,0xb054], 473 => 'WhiteBalance', 475 => 'WhiteBalance', 479 => 'WhiteBalance' }, 'whitebalance0' => { 175 => 'WhiteBalance0' }, 'whitebalance1' => { 175 => 'WhiteBalance1' }, - 'whitebalance2' => { 175 => 'WhiteBalance2', 291 => 0x500 }, - 'whitebalanceadj' => { 102 => 0x20101, 107 => 0x18, 267 => 0x76a43204 }, - 'whitebalanceautoadjustment' => { 327 => 0x0 }, - 'whitebalancebias' => { 112 => 0x2011, 296 => 0x304, 314 => 0x23 }, + 'whitebalance2' => { 175 => 'WhiteBalance2', 293 => 0x500 }, + 'whitebalanceadj' => { 102 => 0x20101, 107 => 0x18, 269 => 0x76a43204 }, + 'whitebalanceautoadjustment' => { 329 => 0x0 }, + 'whitebalancebias' => { 112 => 0x2011, 298 => 0x304, 316 => 0x23 }, 'whitebalanceblue' => { 73 => 0x7 }, - 'whitebalancebracket' => { 291 => 0x502, 296 => 0x303 }, - 'whitebalancebracketing' => { 183 => 0x22, 186 => 0x2c, 412 => 0x2c }, - 'whitebalancecomp' => { 299 => 0x1001 }, + 'whitebalancebracket' => { 293 => 0x502, 298 => 0x303 }, + 'whitebalancebracketing' => { 183 => 0x22, 186 => 0x2c, 414 => 0x2c }, + 'whitebalancecomp' => { 301 => 0x1001 }, 'whitebalancedetected' => { 137 => 0x3fb }, - 'whitebalancefinetune' => { 126 => 0x100a, 183 => 0x38, 185 => 0x112, 224 => 0xb, 381 => 0x1004, 401 => 0x6, 402 => 0x5, 414 => 0x112 }, - 'whitebalancemode' => { 137 => 0x3fa, 349 => 0x1a }, + 'whitebalancefinetune' => { 126 => 0x100a, 183 => 0x38, 185 => 0x112, 224 => 0xb, 383 => 0x1004, 403 => 0x6, 404 => 0x5, 416 => 0x112 }, + 'whitebalancemode' => { 137 => 0x3fa, 351 => 0x1a }, 'whitebalancered' => { 73 => 0x6 }, - 'whitebalanceset' => { 330 => 0xa }, - 'whitebalancesetting' => { 183 => 0x23, 401 => 0x5, 402 => 0x4, 403 => 0x16, 419 => 0xd }, - 'whitebalancesetup' => { 388 => 0x41 }, - 'whitebalancetemperature' => { 291 => 0x501 }, - 'whiteboard' => { 296 => 0x301 }, - 'whitelevel' => { 118 => 0xc61d, 349 => 0x7e }, - 'whitepoint' => { 118 => 0x13e, 313 => 0x35d, 349 => 0x201, 493 => 'WhitePoint' }, - 'whites2012' => { 471 => 'Whites2012', 473 => 'Whites2012' }, - 'whitesadj' => { 448 => 0x9017 }, - 'wideadapter' => { 381 => 0x1017 }, + 'whitebalanceset' => { 332 => 0xa }, + 'whitebalancesetting' => { 183 => 0x23, 403 => 0x5, 404 => 0x4, 405 => 0x16, 421 => 0xd }, + 'whitebalancesetup' => { 390 => 0x41 }, + 'whitebalancetemperature' => { 293 => 0x501 }, + 'whiteboard' => { 298 => 0x301 }, + 'whitelevel' => { 118 => 0xc61d, 351 => 0x7e }, + 'whitepoint' => { 118 => 0x13e, 315 => 0x35d, 351 => 0x201, 495 => 'WhitePoint' }, + 'whites2012' => { 473 => 'Whites2012', 475 => 'Whites2012' }, + 'whitesadj' => { 450 => 0x9017 }, + 'wideadapter' => { 383 => 0x1017 }, 'widefocuszone' => { 180 => 0x2f }, - 'widerange' => { 390 => 0x20f }, + 'widerange' => { 392 => 0x20f }, 'windmode' => { 137 => 0x3f4 }, - 'windowlocation' => { 374 => 'WLOC' }, - 'windowsatom' => { 472 => 'windowsAtom' }, - 'windowsatomextension' => { 472 => [\'windowsAtom','windowsAtomExtension'] }, - 'windowsatominvocationflags' => { 472 => [\'windowsAtom','windowsAtomInvocationFlags'] }, - 'windowsatomuncprojectpath' => { 472 => [\'windowsAtom','windowsAtomUncProjectPath'] }, - 'wordcount' => { 487 => 'wordCount' }, - 'work' => { 366 => "\xa9wrk" }, + 'windowlocation' => { 376 => 'WLOC' }, + 'windowsatom' => { 474 => 'windowsAtom' }, + 'windowsatomextension' => { 474 => [\'windowsAtom','windowsAtomExtension'] }, + 'windowsatominvocationflags' => { 474 => [\'windowsAtom','windowsAtomInvocationFlags'] }, + 'windowsatomuncprojectpath' => { 474 => [\'windowsAtom','windowsAtomUncProjectPath'] }, + 'wordcount' => { 489 => 'wordCount' }, + 'work' => { 368 => "\xa9wrk" }, 'workcolorspace' => { 102 => 0x10200, 107 => 0x270 }, - 'workflowtag' => { 483 => 'WorkflowTag' }, - 'workflowtagcvid' => { 483 => [\'WorkflowTag','WorkflowTagCvId'] }, - 'workflowtagcvtermid' => { 483 => [\'WorkflowTag','WorkflowTagCvTermId'] }, - 'workflowtagcvtermname' => { 483 => [\'WorkflowTag','WorkflowTagCvTermName'] }, - 'workflowtagcvtermrefinedabout' => { 483 => [\'WorkflowTag','WorkflowTagCvTermRefinedAbout'] }, - 'worktodo' => { 479 => 'WorkToDo' }, - 'worldtimelocation' => { 314 => 0x3a, 349 => 0x22, 355 => '0.1' }, + 'workflowtag' => { 485 => 'WorkflowTag' }, + 'workflowtagcvid' => { 485 => [\'WorkflowTag','WorkflowTagCvId'] }, + 'workflowtagcvtermid' => { 485 => [\'WorkflowTag','WorkflowTagCvTermId'] }, + 'workflowtagcvtermname' => { 485 => [\'WorkflowTag','WorkflowTagCvTermName'] }, + 'workflowtagcvtermrefinedabout' => { 485 => [\'WorkflowTag','WorkflowTagCvTermRefinedAbout'] }, + 'worktodo' => { 481 => 'WorkToDo' }, + 'worldtimelocation' => { 316 => 0x3a, 351 => 0x22, 357 => '0.1' }, 'writer' => { 178 => 'WM/Writer' }, 'writer-editor' => { 130 => 0x7a }, - 'x3filllight' => { 391 => 0x12 }, + 'x3filllight' => { 393 => 0x12 }, 'xattrquarantine' => { 173 => 'com.apple.quarantine' }, 'xilinxversion' => { 137 => 0x414 }, 'xml' => { 135 => 'xml ' }, 'xmp' => { 105 => 0xffff00f6, 119 => 'XMP' }, - 'xmptoolkit' => { 494 => 'xmptk' }, + 'xmptoolkit' => { 496 => 'xmptk' }, 'xpauthor' => { 118 => 0x9c9d }, 'xpcomment' => { 118 => 0x9c9c }, 'xpkeywords' => { 118 => 0x9c9e }, 'xposition' => { 118 => 0x11e }, 'xpsubject' => { 118 => 0x9c9f }, 'xptitle' => { 118 => 0x9c9b }, - 'xresolution' => { 118 => 0x11a, 133 => 0x3, 364 => 0x0, 493 => 'XResolution' }, + 'xresolution' => { 118 => 0x11a, 133 => 0x3, 366 => 0x0, 495 => 'XResolution' }, 'xyresolution' => { 122 => 0x3 }, - 'yaw' => { 114 => 0x7, 374 => ['_yaw',"\xa9fyw"] }, - 'yawangle' => { 242 => 0x3513, 243 => 0x2c2c, 247 => 0xc222, 252 => 0x36fc, 253 => 0x2f03, 255 => 0xce3a, 386 => 0x0 }, - 'ycbcrcoefficients' => { 118 => 0x211, 493 => 'YCbCrCoefficients' }, - 'ycbcrpositioning' => { 118 => 0x213, 493 => 'YCbCrPositioning' }, - 'ycbcrsubsampling' => { 118 => 0x212, 493 => 'YCbCrSubSampling' }, - 'year' => { 366 => 'yrrc', 368 => 'year', 374 => 'yrrc' }, + 'yaw' => { 114 => 0x7, 376 => ['_yaw',"\xa9fyw"] }, + 'yawangle' => { 243 => 0x3513, 244 => 0x2c2c, 248 => 0xc222, 253 => 0x36fc, 254 => 0x2f03, 256 => 0xce3a, 257 => 0xeaf3, 388 => 0x0 }, + 'ycbcrcoefficients' => { 118 => 0x211, 495 => 'YCbCrCoefficients' }, + 'ycbcrpositioning' => { 118 => 0x213, 495 => 'YCbCrPositioning' }, + 'ycbcrsubsampling' => { 118 => 0x212, 495 => 'YCbCrSubSampling' }, + 'year' => { 368 => 'yrrc', 370 => 'year', 376 => 'yrrc' }, 'yearcreated' => { 139 => 0x10, 148 => 0xc }, 'yellowhsl' => { 102 => 0x20912 }, - 'yield' => { 489 => 'yield' }, + 'yield' => { 491 => 'yield' }, 'yposition' => { 118 => 0x11f }, - 'yresolution' => { 118 => 0x11b, 133 => 0x5, 364 => 0x4, 493 => 'YResolution' }, - 'zmenusettingsoffset' => { 255 => 0xceb6 }, + 'yresolution' => { 118 => 0x11b, 133 => 0x5, 366 => 0x4, 495 => 'YResolution' }, + 'zmenusettingsoffset' => { 256 => 0xceb6 }, 'zoneidentifier' => { 119 => 'ZoneIdentifier' }, - 'zonematching' => { 185 => 0x10a, 188 => [0x3a,0x4a], 414 => 0xb024 }, + 'zonematching' => { 185 => 0x10a, 188 => [0x3a,0x4a], 416 => 0xb024 }, 'zonematchingmode' => { 183 => 0x14 }, 'zonematchingon' => { 182 => 0x75 }, - 'zonematchingvalue' => { 401 => 0x1f }, - 'zoomedpreviewlength' => { 296 => 0xf05 }, - 'zoomedpreviewsize' => { 296 => 0xf06 }, - 'zoomedpreviewstart' => { 296 => 0xf04 }, + 'zonematchingvalue' => { 403 => 0x1f }, + 'zoomedpreviewlength' => { 298 => 0xf05 }, + 'zoomedpreviewsize' => { 298 => 0xf06 }, + 'zoomedpreviewstart' => { 298 => 0xf04 }, 'zoomsourcewidth' => { 34 => 0x24 }, - 'zoomstepcount' => { 294 => 0x300, 296 => 0x100d }, + 'zoomstepcount' => { 296 => 0x300, 298 => 0x100d }, 'zoomtargetwidth' => { 34 => 0x25 }, ); # lookup for non-writable tags to check if the name exists my %tagExists = ( @@ -11132,10 +11134,11 @@ my %tagExists = ( 'shotinfod850' => 1, 'shotinfod90' => 1, 'shotinfounknown' => 1, 'shotinfoversion' => 1, 'shotinfoz7_2' => 1, + 'shotinfoz9' => 1, 'showmode' => 1, 'showobjects' => 1, 'shutterangle' => 1, 'shuttercurtainhack' => 1, 'shutterspeed' => 1, diff --git a/lib/Image/ExifTool/TagNames.pod b/lib/Image/ExifTool/TagNames.pod index 06b325d8..f1a198d8 100644 --- a/lib/Image/ExifTool/TagNames.pod +++ b/lib/Image/ExifTool/TagNames.pod @@ -10,11 +10,11 @@ tables based on information type. Tag names are used to reference specific meta information extracted from or written to a file. =head1 TAG TABLES The tables listed below give the names of all tags recognized by ExifTool. -They contain a total of 25513 tags, with 16386 unique tag names. +They contain a total of 25521 tags, with 16386 unique tag names. B<Tag ID>, B<Index#> or B<Sequence> is given in the first column of each table. A B<Tag ID> is the computer-readable equivalent of a tag name, and is the identifier that is actually stored in the file. B<Index#> refers to the offset of a value when found at a fixed position within a data block @@ -13496,10 +13496,11 @@ DiMAGE X and Xt. ShotInfoD5 Nikon ShotInfoD500 ShotInfoD500 Nikon ShotInfoD500 ShotInfoD6 Nikon ShotInfoD6 ShotInfoD610 Nikon ShotInfoD610 ShotInfoZ7_2 Nikon ShotInfoZ7_2 + ShotInfoZ9 Nikon ShotInfoZ9 ShotInfo02xx Nikon ShotInfo ShotInfoUnknown Nikon ShotInfo 0x0092 HueAdjustment int16s 0x0093 NEFCompression int16u 0x0094 SaturationAdj int16s @@ -13780,10 +13781,17 @@ Tags written by some Nikon GPS-equipped cameras like the AW100. 4 TextEncoding int8u 5 CountryCode undef[3] 8 POILevel int8u 9 Location undef[70] +=head3 Nikon MakerNotes0x51 Tags + + Index1 Tag Name Writable + ------ -------- -------- + 0 FirmwareVersion no + 10 NEFCompression int16u[0.5] + =head3 Nikon AFInfo Tags Index1 Tag Name Writable ------ -------- -------- 0 AFAreaMode int8u @@ -14193,16 +14201,28 @@ These tags are used by the Z5 Z6 Z7 Z6II Z7II Z50 Zfc 516 MovieISOAutoManualMode? no 568 MovieActiveD-Lighting? int8u 572 MovieHighISONoiseReduction? int8u 574 MovieVignetteControl? int8u 576 MovieVignetteControlSameAsPhoto? int8u + 577 MovieDiffractionCompensation? int8u 578 MovieAutoDistortionControl? int8u 584 MovieFocusMode? int8u 590 MovieVibrationReduction? int8u 591 MovieVibrationReductionSameAsPhoto? int8u 858 HDMIOutputN-Log? int8u - 5771 MovieDiffrationCompensation? int8u + +=head3 Nikon ShotInfoZ9 Tags + +These tags are extracted from encrypted data in images from the Z9. + + Index Tag Name Writable + ----- -------- -------- + 0 ShotInfoVersion no + 4 FirmwareVersion no + 60139 RollAngle fixed32u + 60143 PitchAngle fixed32u + 60147 YawAngle fixed32u =head3 Nikon ShotInfo Tags This information is encrypted for ShotInfoVersion 02xx, and some tags are only valid for specific models. diff --git a/lib/Image/ExifTool/XMP.pm b/lib/Image/ExifTool/XMP.pm index 2cb87439..9f63b926 100644 --- a/lib/Image/ExifTool/XMP.pm +++ b/lib/Image/ExifTool/XMP.pm @@ -48,11 +48,11 @@ use vars qw($VERSION $AUTOLOAD @ISA @EXPORT_OK %stdXlatNS %nsURI %latConv %longC use Image::ExifTool qw(:Utils); use Image::ExifTool::Exif; use Image::ExifTool::GPS; require Exporter; -$VERSION = '3.49'; +$VERSION = '3.50'; @ISA = qw(Exporter); @EXPORT_OK = qw(EscapeXML UnescapeXML); sub ProcessXMP($$;$); sub WriteXMP($$;$); @@ -2132,12 +2132,12 @@ my %sPantryItem = ( }, GPSMeasureMode => { Groups => { 2 => 'Location' }, Writable => 'integer', PrintConv => { - 2 => '2-Dimensional', - 3 => '3-Dimensional', + 2 => '2-Dimensional Measurement', + 3 => '3-Dimensional Measurement', }, }, GPSDOP => { Groups => { 2 => 'Location' }, Writable => 'rational' }, GPSSpeedRef => { Groups => { 2 => 'Location' }, diff --git a/perl-Image-ExifTool.spec b/perl-Image-ExifTool.spec index 16cdc3af..3b3a912a 100644 --- a/perl-Image-ExifTool.spec +++ b/perl-Image-ExifTool.spec @@ -1,8 +1,8 @@ Summary: perl module for image data extraction Name: perl-Image-ExifTool -Version: 12.37 +Version: 12.38 Release: 1 License: Artistic/GPL Group: Development/Libraries/Perl URL: https://exiftool.org/ Source0: Image-ExifTool-%{version}.tar.gz diff --git a/pp_build_exe.args b/pp_build_exe.args index 57a12615..03747a5d 100644 --- a/pp_build_exe.args +++ b/pp_build_exe.args @@ -19,14 +19,14 @@ # 8) Rename "exiftool.exe" to "exiftool(-k).exe". # 9) Create a .zip archive: "zip exiftool-#.##.zip exiftool\(-k\).exe". # 10) Copy zip archive to web servers. # 11) Update zip file version in link and text of html/index.html. #------------------------------------------------------------------------------ --T exiftool-12.37 -#--info=FileVersion=12.3.7.0 -#--info=ProductVersion=12.3.7.0 -##"--info=Build Date=2021:12:08 08:27:04-05:00" +-T exiftool-12.38 +#--info=FileVersion=12.3.8.0 +#--info=ProductVersion=12.3.8.0 +##"--info=Build Date=2021:12:20 08:55:06-05:00" ##"--info=Bundled Perl Version=ActivePerl 5.24.0" ##"--info=LegalCopyright=Copyright (c) 2003-2021, Phil Harvey" ##"--info=ProductName=ExifTool" ##"--info=Comments=ExifTool EXE for Windows" ##"--info=Home Page=https://exiftool.org/" diff --git a/windows_exiftool b/windows_exiftool index 2f1b10f0..0415427d 100755 --- a/windows_exiftool +++ b/windows_exiftool @@ -8,11 +8,11 @@ # (See html/history.html for revision history) #------------------------------------------------------------------------------ use strict; require 5.004; -my $version = '12.37'; +my $version = '12.38'; # add our 'lib' directory to the include list BEFORE 'use Image::ExifTool' my $exePath; BEGIN { # (undocumented -xpath option added in 11.91, must come before other options) @@ -1965,10 +1965,11 @@ sub GetImageInfo($$) if ($type eq 'gz') { $pipe = qq{gzip -dc "$file" |}; } else { $pipe = qq{bzip2 -dc "$file" |}; } + $$et{TRUST_PIPE} = 1; } } # evaluate -if expression for conditional processing if (@condition) { unless ($file eq '-' or $et->Exists($file)) { @@ -2235,16 +2236,17 @@ sub GetImageInfo($$) ($grp0, $grp1) = $et->GetGroup($tag); unless ($grp1) { next unless defined $forcePrint; $grp0 = $grp1 = 'Unknown'; } + # add groups from structure fields + AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; next if $groups{$grp1}; # include family 0 and 1 groups in URI except for internal tags # (this will put internal tags in the "XML" group on readback) $groups{$grp1} = $grp0; push @groups, $grp1; - AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; } foreach $grp1 (@groups) { my $grp = $groups{$grp1}; unless ($grp eq $grp1 and $grp =~ /^(ExifTool|File|Composite|Unknown)$/) { $grp .= "/$grp1"; @@ -5457,11 +5459,11 @@ OPTIONS exiftool -p test.fmt a.jpg b.jpg produces output like this: - -- Generated by ExifTool 12.37 -- + -- Generated by ExifTool 12.38 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end -- @@ -5744,11 +5746,11 @@ OPTIONS 4) Adding the -v option to -W sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using -W+ with an output file *FMT* that does not - contain %t, $g, %s or %o.) + contain %t, %g, %s or %o.) 5) Individual list items are stored in separate files when -W is combined with -b, but note that for separate files to be created %c or %C must be used in *FMT* to give the files unique names.
"version" : "12.37", version: 12.37 gzip -dc Image-ExifTool-12.37.tar.gz | tar -xf - cd Image-ExifTool-12.37 my $version = '12.37'; AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; -- Generated by ExifTool 12.37 -- B<-W+> with an output file I<FMT> that does not contain %t, $g, %s or %o.) ( -- Image::ExifTool 12.37 -- 1)Tj ( -- Image::ExifTool 12.37 -- 2)Tj ( -- Image::ExifTool 12.37 -- 3)Tj ( -- Image::ExifTool 12.37 -- 4)Tj ( -- Image::ExifTool 12.37 -- 5)Tj ( -- Image::ExifTool 12.37 -- 6)Tj ( -- Image::ExifTool 12.37 -- 7)Tj ( -- Image::ExifTool 12.37 -- 8)Tj ( -- Image::ExifTool 12.37 -- 9)Tj ( -- Image::ExifTool 12.37 -- 10)Tj ( -- Image::ExifTool 12.37 -- 11)Tj ( -- Image::ExifTool 12.37 -- 12)Tj ( -- Image::ExifTool 12.37 -- 13)Tj ( -- Image::ExifTool 12.37 -- 14)Tj ( -- Image::ExifTool 12.37 -- 15)Tj ( -- Image::ExifTool 12.37 -- 16)Tj ( -- Image::ExifTool 12.37 -- 17)Tj ( -- Image::ExifTool 12.37 -- 18)Tj ( -- Image::ExifTool 12.37 -- 19)Tj ( -- Image::ExifTool 12.37 -- 20)Tj ( -- Image::ExifTool 12.37 -- 21)Tj ( -- Image::ExifTool 12.37 -- 22)Tj ( -- Image::ExifTool 12.37 -- 23)Tj ( -- Image::ExifTool 12.37 -- 24)Tj ( -- Image::ExifTool 12.37 -- 25)Tj ( -- Image::ExifTool 12.37 -- 26)Tj ( -- Image::ExifTool 12.37 -- 27)Tj ( -- Image::ExifTool 12.37 -- 28)Tj ( -- Image::ExifTool 12.37 -- 29)Tj ( -- Image::ExifTool 12.37 -- 30)Tj ( -- Image::ExifTool 12.37 -- 31)Tj ( -- Image::ExifTool 12.37 -- 32)Tj ( -- Image::ExifTool 12.37 -- 33)Tj ( -- Image::ExifTool 12.37 -- 34)Tj ( -- Image::ExifTool 12.37 -- 35)Tj ( -- Image::ExifTool 12.37 -- 36)Tj /CreationDate (D:20211208084216-05'00') /ModDate (D:20211208084216-05'00') /ID [<fce7540a206eb2b24772d6bc057b8426><fce7540a206eb2b24772d6bc057b8426>] /CreationDate (D:20211208084216-05'00') /ModDate (D:20211208084216-05'00') /ID [<6dd9b26ea01595e9aa96e9186dc21ed7><6dd9b26ea01595e9aa96e9186dc21ed7>] <td><span class=s><span class=n>(one value for some models...)</span> <br><span class=n>(two values for others)</span> <br><i>Last revised Feb 3, 2021</i> <td class=c>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-</td> <td><table class=cols><tr> <td>1 = Lossy (type 1) <br>2 = Uncompressed <br>3 = Lossless <br>4 = Lossy (type 2) <br>5 = Striped packed 12 bits <br>6 = Uncompressed (reduced to 12 bit) <br>7 = Unpacked 12 bits <br>8 = Small <br>9 = Packed 12 bits <br>10 = Packed 14 bits</td></tr></table> </td></tr> <tr> <tr class=b> <tr> <tr class=b> <td class=r title='5771 = 0x168b'>5771</td> <td>MovieDiffrationCompensation?</td> <td class=c>int8u</td> <td><span class=s>0 = Off <br>1 = On</span></td></tr> <br><i>Last revised Dec 8, 2021</i> <td><span class=s>2 = 2-Dimensional <br>3 = 3-Dimensional</span></td></tr> <br><i>Last revised Dec 8, 2021</i> They contain a total of 25513 tags, with 16386 unique tag names. <br><i>Last revised Dec 8, 2021</i> <pre><code> -- Generated by ExifTool 12.37 -- <p>4) Adding the <b>-v</b> option to <b>-W</b> sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using <b>-W+</b> with an output file <i>FMT</i> that does not contain %t, $g, %s or %o.)</p> ( -- ExifTool 12.37 -- 1)Tj ( -- ExifTool 12.37 -- 2)Tj ( -- ExifTool 12.37 -- 3)Tj ( -- ExifTool 12.37 -- 4)Tj ( -- ExifTool 12.37 -- 5)Tj ( -- ExifTool 12.37 -- 6)Tj ( -- ExifTool 12.37 -- 7)Tj ( -- ExifTool 12.37 -- 8)Tj ( -- ExifTool 12.37 -- 9)Tj ( -- ExifTool 12.37 -- 10)Tj ( -- ExifTool 12.37 -- 11)Tj ( -- ExifTool 12.37 -- 12)Tj ( -- ExifTool 12.37 -- 13)Tj ( -- ExifTool 12.37 -- 14)Tj ( -- ExifTool 12.37 -- 15)Tj ( -- Generated by ExifTool 12.37 --)Tj ( -- ExifTool 12.37 -- 16)Tj ( -- ExifTool 12.37 -- 17)Tj ( -- ExifTool 12.37 -- 18)Tj ( -- ExifTool 12.37 -- 19)Tj ( contain %t, $g, %s or %o.\))Tj ( -- ExifTool 12.37 -- 20)Tj ( -- ExifTool 12.37 -- 21)Tj ( -- ExifTool 12.37 -- 22)Tj ( -- ExifTool 12.37 -- 23)Tj ( -- ExifTool 12.37 -- 24)Tj ( -- ExifTool 12.37 -- 25)Tj ( -- ExifTool 12.37 -- 26)Tj ( -- ExifTool 12.37 -- 27)Tj ( -- ExifTool 12.37 -- 28)Tj ( -- ExifTool 12.37 -- 29)Tj ( -- ExifTool 12.37 -- 30)Tj ( -- ExifTool 12.37 -- 31)Tj ( -- ExifTool 12.37 -- 32)Tj ( -- ExifTool 12.37 -- 33)Tj ( -- ExifTool 12.37 -- 34)Tj ( -- ExifTool 12.37 -- 35)Tj ( -- ExifTool 12.37 -- 36)Tj ( -- ExifTool 12.37 -- 37)Tj ( -- ExifTool 12.37 -- 38)Tj ( -- ExifTool 12.37 -- 39)Tj ( -- ExifTool 12.37 -- 40)Tj (perl v5.18.4 2021-12-08 EXIFTOOL\(1\))Tj /CreationDate (D:20211208084215-05'00') /ModDate (D:20211208084215-05'00') /ID [<e7d8a9c31bc587c7a180529b93797d8a><e7d8a9c31bc587c7a180529b93797d8a>] <li>Improved warning when incorrectly using "<" instead of "=" to write FileName or Directory with a format string <li>Fixed typo in a QuickTime tag name <a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.37.tar.gz/download"> Download Version 12.37</a> (4.8 MB) - <a href="history.html">Dec. 8, 2021</a></b></td></tr></table></blockquote> <a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.37.zip/download"> exiftool-12.37.zip</a> (6.4 MB)</b></td></tr></table></blockquote> ExifTool-12.37.dmg</a> (3.0 MB)</b></td></tr></table></blockquote> <br><span class=lt>(The file you download should be named "<code>exiftool-12.37.zip</code>".)</span></li> <br><span class=lt>(Double-click on "<code>exiftool-12.37.zip</code>" to open <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.37.tar.gz</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>ExifTool-12.37.dmg</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.37.tar.gz</code>".)</span></li> tar -xzf Image-ExifTool-12.37.tar.gz cd Image-ExifTool-12.37 <blockquote class=red>"ExifTool-12.37.pkg" can't be opened because it is from an <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.37.tar.gz</code>".)</span></li> gzip -dc Image-ExifTool-12.37.tar.gz | tar -xf - cd Image-ExifTool-12.37 $VERSION = '12.37'; # default to read mode ('<') unless input is a pipe $mode = ($file =~ /\|$/ ? '' : '<') unless $mode; Notes => 'one value for some models...', Notes => 'two values for others', $VERSION = '4.02'; PrintConv => { 1 => 'Lossy (type 1)', # (older models) 2 => 'Uncompressed', #JD - D100 (even though TIFF compression is set!) 3 => 'Lossless', 4 => 'Lossy (type 2)', 5 => 'Striped packed 12 bits', #IB 6 => 'Uncompressed (reduced to 12 bit)', #IB 7 => 'Unpacked 12 bits', #IB (padded to 16) 8 => 'Small', #IB 9 => 'Packed 12 bits', #IB (2 pixels in 3 bytes) 10 => 'Packed 14 bits', #28 (4 pixels in 7 bytes, eg. D6 uncompressed 14 bit) }, 5771 => { Name => 'MovieDiffrationCompensation', $VERSION = '1.02'; unless ($buff =~ /^([^\0]{1,31})\0([^\0]{1,31})\0(.{4})/sg) { 'about' => { 491 => 'about' }, 'aboutcvterm' => { 483 => 'AboutCvTerm' }, 'aboutcvtermcvid' => { 483 => [\'AboutCvTerm','AboutCvTermCvId'] }, 'aboutcvtermid' => { 483 => [\'AboutCvTerm','AboutCvTermCvTermId'] }, 'aboutcvtermname' => { 483 => [\'AboutCvTerm','AboutCvTermCvTermName'] }, 'aboutcvtermrefinedabout' => { 483 => [\'AboutCvTerm','AboutCvTermCvTermRefinedAbout'] }, 'abspeakaudiofilepath' => { 497 => 'absPeakAudioFilePath' }, 'academicfield' => { 487 => 'academicField' }, 'acceleration' => { 118 => 0x9404, 478 => 'Acceleration' }, 'accelerometer' => { 384 => 0x3 }, 'accelerometerdata' => { 374 => 'vrot' }, 'accelerometerx' => { 314 => 0x8d }, 'accelerometery' => { 314 => 0x8e }, 'accelerometerz' => { 314 => 0x8c }, 'accessoryserialnumber' => { 314 => 0x54 }, 'accessorytype' => { 314 => 0x53 }, 'actived-lighting' => { 224 => 0x22, 265 => 0x24 }, 'actived-lightingmode' => { 265 => 0x25 }, 'additionalmodelinformation' => { 483 => 'AddlModelInfo' }, 'adjustmentmode' => { 391 => 0x15 }, 'adlbracketingstep' => { 243 => 0x883 }, 'adlbracketingtype' => { 243 => 0x884 }, 'adultcontentwarning' => { 301 => 'AdultContentWarning', 490 => 'adultContentWarning' }, 'advancedraw' => { 267 => 0x76a43203 }, 'advancedscenetype' => { 314 => 0x3d }, 'advisory' => { 495 => 'Advisory' }, 'ae_iso' => { 322 => 0x2, 323 => 0x4, 324 => 0x12 }, 'aeaperture' => { 322 => 0x1, 323 => 0x3, 324 => 0x11 }, 'aeaperturesteps' => { 322 => 0x8, 323 => 0xb }, 'aebracketingsteps' => { 242 => 0x174c, 243 => 0x87b, 252 => 0x1756 }, 'aebxv' => { 322 => 0x4, 323 => 0x6 }, 'aeerror' => { 323 => 0x8 }, 'aeexposuretime' => { 322 => 0x0, 323 => 0x2, 324 => 0x10 }, 'aelock' => { 183 => 0x5b, 276 => '4.2', 285 => '4.2', 291 => 0x201, 349 => 0x48, 401 => 0x40, 402 => 0x40, 403 => [0x86,0x286] }, 'aelockbutton' => { 274 => '16.1', 276 => '4.1', 279 => '15.1', 280 => '16.1', 281 => '16.1', 283 => '30.1', 284 => '16.1', 285 => '4.1', 287 => '17.1', 289 => '17.1' }, 'aelockbuttonplusdials' => { 274 => '16.2', 283 => '32.1', 287 => '44.1' }, 'aelockformb-d80' => { 289 => '3.1' }, 'aemaxaperture' => { 322 => 0x9, 323 => 0x10, 324 => 0x1c }, 'aemaxaperture2' => { 322 => 0xa, 323 => 0x11, 324 => 0x1d }, 'aemeteringmode' => { 322 => 0xc }, 'aemeteringmode2' => { 322 => '13.1' }, 'aemeteringsegments' => { 186 => 0x628, 349 => 0x209 }, 'aeminaperture' => { 322 => 0xb, 323 => 0x12, 324 => 0x1e }, 'aeminexposuretime' => { 322 => 0x5, 323 => 0x13, 324 => 0x1f }, 'aeprogrammode' => { 322 => 0x6 }, 'aeprojectlink' => { 472 => 'aeProjectLink' }, 'aeprojectlinkcompositionid' => { 472 => [\'aeProjectLink','aeProjectLinkCompositionID'] }, 'aeprojectlinkfullpath' => { 472 => [\'aeProjectLink','aeProjectLinkFullPath'] }, 'aeprojectlinkrenderoutputmoduleindex' => { 472 => [\'aeProjectLink','aeProjectLinkRenderOutputModuleIndex'] }, 'aeprojectlinkrenderqueueitemid' => { 472 => [\'aeProjectLink','aeProjectLinkRenderQueueItemID'] }, 'aeprojectlinkrendertimestamp' => { 472 => [\'aeProjectLink','aeProjectLinkRenderTimeStamp'] }, 'aewhitebalance' => { 322 => 0xd }, 'aexv' => { 322 => 0x3, 323 => 0x5 }, 'af-cpriorityselection' => { 274 => '1.1', 275 => '1.1', 277 => '1.1', 278 => '1.1', 280 => '0.1', 281 => '0.1', 282 => '0.1', 283 => '1.1', 284 => '0.1', 287 => '1.1', 288 => '1.1' }, 'af-onbutton' => { 277 => '70.1', 278 => '70.1', 288 => '70.1' }, 'af-onformb-d10' => { 274 => '3.3', 283 => '3.2' }, 'af-onformb-d11' => { 284 => '2.2' }, 'af-onformb-d12' => { 287 => '50.1' }, 'af-spriorityselection' => { 274 => '1.2', 275 => '1.2', 277 => '1.2', 278 => '1.2', 282 => '0.2', 283 => '1.2', 284 => '0.2', 287 => '1.2', 288 => '1.2' }, 'afactivation' => { 274 => '2.1', 275 => '2.1', 277 => '78.3', 278 => '78.3', 283 => '2.1', 287 => '2.1', 288 => '78.3' }, 'afadjustment' => { 349 => 0x72, 358 => 0x267 }, 'afareaillumination' => { 183 => 0x4b, 285 => '15.3' }, 'afareamode' => { 125 => '0.3', 179 => 0x33, 183 => 0xe, 191 => 0x0, 192 => 0x5, 314 => 0xf, 381 => 0x1205, 394 => [0xa,0x3a], 401 => 0x11, 402 => 0x10, 403 => 0x24, 414 => 0xb043, 438 => 0x17 }, 'afareamodesetting' => { 276 => '11.1', 279 => '0.1', 285 => '16.1', 289 => '2.1', 414 => 0x201c }, 'afareas' => { 291 => 0x304 }, 'afareaxposition' => { 192 => [0x14,0x2e,0x4a], 381 => 0x1203 }, 'afareaxposition1' => { 381 => 0x1201 }, 'afareayposition' => { 192 => [0x16,0x30,0x4c], 381 => 0x1204 }, 'afareayposition1' => { 381 => 0x1202 }, 'afassist' => { 81 => 0x5, 89 => 0x5, 183 => 0x48, 274 => '2.5', 276 => '0.2', 279 => '0.2', 280 => '1.1', 281 => '1.1', 282 => '1.3', 283 => '2.4', 284 => '1.3', 285 => '0.2', 287 => '2.4', 289 => '2.3' }, 'afassistlamp' => { 314 => 0x31 }, 'afbuttonpressed' => { 403 => [0x83,0x283] }, 'afdefocus' => { 325 => 0x6 }, 'affinea' => { 465 => 'AffineA' }, 'affineb' => { 465 => 'AffineB' }, 'affinec' => { 465 => 'AffineC' }, 'affined' => { 465 => 'AffineD' }, 'affinetune' => { 193 => 0x0, 291 => 0x306 }, 'affinetuneadj' => { 193 => 0x2, 235 => 0x2d1, 236 => 0x2dc, 291 => 0x307 }, 'affinex' => { 465 => 'AffineX' }, 'affiney' => { 465 => 'AffineY' }, 'afhold' => { 325 => 0x1fd }, 'afilluminator' => { 401 => 0x29, 414 => 0xb044 }, 'afintegrationtime' => { 325 => 0x7 }, 'afmicroadj' => { 394 => [0x17d,0x50] }, 'afmicroadjmode' => { 3 => 0x1, 398 => 0x131 }, 'afmicroadjregisteredlenses' => { 398 => '305.1' }, 'afmicroadjvalue' => { 3 => 0x2, 398 => 0x130 }, 'afmode' => { 112 => 0x3009, 126 => 0x1022, 179 => 0x16, 391 => 0x5 }, 'afmoderestrictions' => { 275 => '50.3', 277 => '48.3', 278 => '48.3', 287 => '48.3', 288 => '48.3' }, 'afonbutton' => { 274 => '3.1', 275 => '47.1' }, 'afpoint' => { 34 => 0x13, 111 => 0x18, 179 => 0x15, 191 => 0x1, 294 => 0x308, 391 => 0x1f, 394 => [0x37,0x7], 398 => 0x19, 399 => 0x18, 400 => [0x18,0x20] }, 'afpointatshutterrelease' => { 394 => [0x39,0x9] }, 'afpointbrightness' => { 83 => 0x50d, 274 => '2.4', 275 => '46.5', 277 => '2.2', 278 => '2.2', 287 => '2.3', 288 => '2.2' }, 'afpointillumination' => { 82 => 0xa, 274 => '2.3', 275 => '46.2', 277 => '47.2', 278 => '47.2', 282 => '1.2', 283 => '2.3', 284 => '1.2', 287 => '47.2', 288 => '47.2', 289 => '2.4' }, 'afpointinfocus' => { 394 => [0x38,0x8] }, 'afpointmode' => { 330 => 0x3 }, 'afpointposition' => { 112 => 0x2021, 314 => 0x4d }, 'afpointselected' => { 183 => 0xd, 291 => 0x305, 349 => 0xe, 398 => 0x15, 399 => 0x14, 400 => [0x14,0x1c], 414 => 0x201e }, 'afpointselected2' => { 330 => 0x4 }, 'afpointselection' => { 82 => 0xb, 274 => '1.3', 275 => '1.3', 283 => '1.3', 287 => '1.3', 288 => '1.3' }, 'afpointsetting' => { 401 => 0x12, 402 => 0x11 }, 'afpointsinfocus' => { 76 => 0xe, 191 => 0x2, 192 => 0x30, 325 => 0xb, 326 => 0x4, 349 => [0xf,0x3c] }, 'afpointsselected' => { 192 => 0x1c, 326 => '4.1', 446 => 0x4 }, 'afpointsspecial' => { 326 => '4.2' }, 'afpointsunknown1' => { 325 => 0x0 }, 'afpointsunknown2' => { 325 => 0x2 }, 'afpointsused' => { 192 => [0xa,0x8], 394 => [0x10,0x16e] }, 'afpredictor' => { 325 => 0x4 }, 'afresult' => { 296 => 0x1038 }, 'afsearch' => { 291 => 0x303 }, 'afstatus' => { 381 => 0x1200 }, 'afstatus_00_b4' => { 397 => 0x0 }, 'afstatus_01_c4' => { 397 => 0x2 }, 'afstatus_02_d4' => { 397 => 0x4 }, 'afstatus_03_e4' => { 397 => 0x6 }, 'afstatus_04_f4' => { 397 => 0x8 }, 'afstatus_05_g4' => { 397 => 0xa }, 'afstatus_06_h4' => { 397 => 0xc }, 'afstatus_07_b3' => { 397 => 0xe }, 'afstatus_08_c3' => { 397 => 0x10 }, 'afstatus_09_d3' => { 397 => 0x12 }, 'afstatus_10_e3' => { 397 => 0x14 }, 'afstatus_11_f3' => { 397 => 0x16 }, 'afstatus_12_g3' => { 397 => 0x18 }, 'afstatus_13_h3' => { 397 => 0x1a }, 'afstatus_14_b2' => { 397 => 0x1c }, 'afstatus_15_c2' => { 397 => 0x1e }, 'afstatus_16_d2' => { 397 => 0x20 }, 'afstatus_17_e2' => { 397 => 0x22 }, 'afstatus_18_f2' => { 397 => 0x24 }, 'afstatus_19_g2' => { 397 => 0x26 }, 'afstatus_20_h2' => { 397 => 0x28 }, 'afstatus_21_c1' => { 397 => 0x2a }, 'afstatus_22_d1' => { 397 => 0x2c }, 'afstatus_23_e1' => { 397 => 0x2e }, 'afstatus_24_f1' => { 397 => 0x30 }, 'afstatus_25_g1' => { 397 => 0x32 }, 'afstatus_26_a7_vertical' => { 397 => 0x34 }, 'afstatus_27_a6_vertical' => { 397 => 0x36 }, 'afstatus_28_a5_vertical' => { 397 => 0x38 }, 'afstatus_29_c7_vertical' => { 397 => 0x3a }, 'afstatus_30_c6_vertical' => { 397 => 0x3c }, 'afstatus_31_c5_vertical' => { 397 => 0x3e }, 'afstatus_32_e7_vertical' => { 397 => 0x40 }, 'afstatus_33_e6_center_vertical' => { 397 => 0x42 }, 'afstatus_34_e5_vertical' => { 397 => 0x44 }, 'afstatus_35_g7_vertical' => { 397 => 0x46 }, 'afstatus_36_g6_vertical' => { 397 => 0x48 }, 'afstatus_37_g5_vertical' => { 397 => 0x4a }, 'afstatus_38_i7_vertical' => { 397 => 0x4c }, 'afstatus_39_i6_vertical' => { 397 => 0x4e }, 'afstatus_40_i5_vertical' => { 397 => 0x50 }, 'afstatus_41_a7' => { 397 => 0x52 }, 'afstatus_42_b7' => { 397 => 0x54 }, 'afstatus_43_c7' => { 397 => 0x56 }, 'afstatus_44_d7' => { 397 => 0x58 }, 'afstatus_45_e7' => { 397 => 0x5a }, 'afstatus_46_f7' => { 397 => 0x5c }, 'afstatus_47_g7' => { 397 => 0x5e }, 'afstatus_48_h7' => { 397 => 0x60 }, 'afstatus_49_i7' => { 397 => 0x62 }, 'afstatus_50_a6' => { 397 => 0x64 }, 'afstatus_51_b6' => { 397 => 0x66 }, 'afstatus_52_c6' => { 397 => 0x68 }, 'afstatus_53_d6' => { 397 => 0x6a }, 'afstatus_54_e6_center' => { 397 => 0x6c }, 'afstatus_55_f6' => { 397 => 0x6e }, 'afstatus_56_g6' => { 397 => 0x70 }, 'afstatus_57_h6' => { 397 => 0x72 }, 'afstatus_58_i6' => { 397 => 0x74 }, 'afstatus_59_a5' => { 397 => 0x76 }, 'afstatus_60_b5' => { 397 => 0x78 }, 'afstatus_61_c5' => { 397 => 0x7a }, 'afstatus_62_d5' => { 397 => 0x7c }, 'afstatus_63_e5' => { 397 => 0x7e }, 'afstatus_64_f5' => { 397 => 0x80 }, 'afstatus_65_g5' => { 397 => 0x82 }, 'afstatus_66_h5' => { 397 => 0x84 }, 'afstatus_67_i5' => { 397 => 0x86 }, 'afstatus_68_c11' => { 397 => 0x88 }, 'afstatus_69_d11' => { 397 => 0x8a }, 'afstatus_70_e11' => { 397 => 0x8c }, 'afstatus_71_f11' => { 397 => 0x8e }, 'afstatus_72_g11' => { 397 => 0x90 }, 'afstatus_73_b10' => { 397 => 0x92 }, 'afstatus_74_c10' => { 397 => 0x94 }, 'afstatus_75_d10' => { 397 => 0x96 }, 'afstatus_76_e10' => { 397 => 0x98 }, 'afstatus_77_f10' => { 397 => 0x9a }, 'afstatus_78_g10' => { 397 => 0x9c }, 'afstatus_79_h10' => { 397 => 0x9e }, 'afstatus_80_b9' => { 397 => 0xa0 }, 'afstatus_81_c9' => { 397 => 0xa2 }, 'afstatus_82_d9' => { 397 => 0xa4 }, 'afstatus_83_e9' => { 397 => 0xa6 }, 'afstatus_84_f9' => { 397 => 0xa8 }, 'afstatus_85_g9' => { 397 => 0xaa }, 'afstatus_86_h9' => { 397 => 0xac }, 'afstatus_87_b8' => { 397 => 0xae }, 'afstatus_88_c8' => { 397 => 0xb0 }, 'afstatus_89_d8' => { 397 => 0xb2 }, 'afstatus_90_e8' => { 397 => 0xb4 }, 'afstatus_91_f8' => { 397 => 0xb6 }, 'afstatus_92_g8' => { 397 => 0xb8 }, 'afstatus_93_h8' => { 397 => 0xba }, 'afstatus_94_e6_center_f2-8' => { 397 => 0xbc }, 'afstatusactivesensor' => { 179 => 0x2, 394 => [0x4,0x3b], 398 => 0x1e, 399 => 0x1b, 400 => [0x1b,0x21] }, 'afstatusbottom' => { 179 => 0x8, 398 => 0x2a, 399 => 0x21, 400 => 0x21 }, 'afstatusbottom-left' => { 179 => 0x12, 399 => 0x2b, 400 => 0x2b }, 'afstatusbottom-right' => { 179 => 0x6, 399 => 0x1f, 400 => 0x1f }, 'afstatusbottomassist-left' => { 398 => 0x28 }, 'afstatusbottomassist-right' => { 398 => 0x2c }, 'afstatusbottomhorizontal' => { 395 => 0x10, 396 => 0x1c }, 'afstatusbottomvertical' => { 395 => 0x16, 396 => 0x26 }, 'afstatuscenter-10' => { 398 => 0x34 }, 'afstatuscenter-11' => { 398 => 0x36 }, 'afstatuscenter-12' => { 398 => 0x38 }, 'afstatuscenter-14' => { 398 => 0x3c }, 'afstatuscenter-7' => { 398 => 0x2e }, 'afstatuscenter-9' => { 398 => 0x32 }, 'afstatuscenter-horizontal' => { 398 => 0x30 }, 'afstatuscenter-vertical' => { 398 => 0x3a }, 'afstatuscenterf2-8' => { 398 => 0x4c }, 'afstatuscenterhorizontal' => { 179 => 0x2f, 395 => 0xc, 396 => 0x18, 399 => 0x2f, 400 => 0x2f }, 'afstatuscentervertical' => { 179 => 0xc, 395 => 0x14, 396 => 0x22, 399 => 0x25, 400 => 0x25 }, 'afstatusfarleft' => { 395 => 0x6, 398 => 0x26 }, 'afstatusfarlefthorizontal' => { 396 => 0x4 }, 'afstatusfarleftvertical' => { 396 => 0x12 }, 'afstatusfarright' => { 395 => 0x18, 398 => 0x44 }, 'afstatusfarrighthorizontal' => { 396 => 0x2c }, 'afstatusfarrightvertical' => { 396 => 0x34 }, 'afstatusleft' => { 179 => 0x2d, 395 => 0x2, 398 => 0x22, 399 => 0x2d, 400 => 0x2d }, 'afstatuslefthorizontal' => { 396 => 0x6 }, 'afstatusleftvertical' => { 396 => 0xe }, 'afstatuslower-left' => { 395 => 0x4, 398 => 0x24 }, 'afstatuslower-lefthorizontal' => { 396 => 0xa }, 'afstatuslower-leftvertical' => { 396 => 0x10 }, 'afstatuslower-middle' => { 395 => 0x22, 396 => 0x24 }, 'afstatuslower-right' => { 395 => 0x1e, 398 => 0x4a }, 'afstatuslower-righthorizontal' => { 396 => 0x32 }, 'afstatuslower-rightvertical' => { 396 => 0x3a }, 'afstatuslowerfarleft' => { 396 => 0x8 }, 'afstatuslowerfarright' => { 396 => 0x30 }, 'afstatusmiddlehorizontal' => { 179 => 0xa, 399 => 0x23, 400 => 0x23 }, 'afstatusnearleft' => { 395 => 0xe, 396 => 0x1a }, 'afstatusnearright' => { 395 => 0xa, 396 => 0x16 }, 'afstatusright' => { 179 => 0x31, 395 => 0x1c, 398 => 0x48, 399 => 0x31, 400 => 0x31 }, 'afstatusrighthorizontal' => { 396 => 0x2e }, 'afstatusrightvertical' => { 396 => 0x38 }, 'afstatustop' => { 179 => 0xe, 398 => 0x40, 399 => 0x27, 400 => 0x27 }, 'afstatustop-left' => { 179 => 0x10, 399 => 0x29, 400 => 0x29 }, 'afstatustop-right' => { 179 => 0x4, 399 => 0x1d, 400 => 0x1d }, 'afstatustopassist-left' => { 398 => 0x3e }, 'afstatustopassist-right' => { 398 => 0x42 }, 'afstatustophorizontal' => { 395 => 0x8, 396 => 0x14 }, 'afstatustopvertical' => { 395 => 0x12, 396 => 0x1e }, 'afstatusupper-left' => { 395 => 0x0, 398 => 0x20 }, 'afstatusupper-lefthorizontal' => { 396 => 0x2 }, 'afstatusupper-leftvertical' => { 396 => 0xc }, 'afstatusupper-middle' => { 395 => 0x20, 396 => 0x20 }, 'afstatusupper-right' => { 395 => 0x1a, 398 => 0x46 }, 'afstatusupper-righthorizontal' => { 396 => 0x2a }, 'afstatusupper-rightvertical' => { 396 => 0x36 }, 'afstatusupperfarleft' => { 396 => 0x0 }, 'afstatusupperfarright' => { 396 => 0x28 }, 'aftracking' => { 414 => 0x2021 }, 'aftype' => { 394 => 0x2 }, 'afwithshutter' => { 401 => 0x2a }, 'aggregateissuenumber' => { 487 => 'aggregateIssueNumber' }, 'aggregationtype' => { 487 => 'aggregationType' }, 'agreement' => { 490 => 'agreement' }, 'album' => { 366 => ['albm',"\xa9alb"], 368 => 'album', 374 => ['albm',"\xa9alb"], 497 => 'album' }, 'albumartist' => { 178 => 'WM/AlbumArtist', 366 => 'aART', 374 => 'albr' }, 'albumtitleid' => { 366 => 'atID' }, 'alreadyapplied' => { 471 => 'AlreadyApplied', 473 => 'AlreadyApplied' }, 'alternatetitle' => { 487 => 'alternateTitle' }, 'alternatetitlea-lang' => { 487 => [\'alternateTitle','alternateTitleA-lang'] }, 'alternatetitlea-platform' => { 487 => [\'alternateTitle','alternateTitleA-platform'] }, 'alternatetitletext' => { 487 => [\'alternateTitle','alternateTitleText'] }, 'alttapename' => { 497 => 'altTapeName' }, 'alttextaccessibility' => { 482 => 'AltTextAccessibility' }, 'alttimecode' => { 497 => 'altTimecode' }, 'alttimecodetimeformat' => { 497 => [\'altTimecode','altTimecodeTimeFormat'] }, 'alttimecodetimevalue' => { 497 => [\'altTimecode','altTimecodeTimeValue'] }, 'alttimecodevalue' => { 497 => [\'altTimecode','altTimecodeValue'] }, 'ambientinfrared' => { 377 => 0x5c }, 'ambientlight' => { 377 => 0x5e }, 'ambienttemperature' => { 118 => 0x9400, 375 => 0x14, 376 => 0x46, 377 => 0x50, 438 => 0x4, 478 => 'Temperature' }, 'ambienttemperaturefahrenheit' => { 375 => 0x13, 376 => 0x44, 377 => 0x4e }, 'androidversion' => { 368 => 'com.android.version' }, 'angleinforoll' => { 467 => 'AngleInfoRoll' }, 'angleinfoyaw' => { 467 => 'AngleInfoYaw' }, 'anti-blur' => { 414 => 0xb04b }, 'aperturelock' => { 275 => '38.2', 277 => '38.2', 278 => '38.2', 287 => '38.2', 288 => '38.2' }, 'aperturemode' => { 374 => 'apmd' }, 'apertureringuse' => { 330 => '1.4' }, 'aperturesetting' => { 183 => 0x7, 401 => 0x30, 402 => 0x29, 403 => 0x1 }, 'aperturevalue' => { 92 => 0x2, 118 => 0x9202, 296 => 0x1002, 358 => 0x401, 477 => 'ApertureValue' }, 'appinfo' => { 451 => 'AppInfo' }, 'appinfoapplication' => { 451 => [\'AppInfo','AppInfoApplication'] }, 'appinfoitemuri' => { 451 => [\'AppInfo','AppInfoItemURI'] }, 'appinfoversion' => { 451 => [\'AppInfo','AppInfoVersion'] }, 'applekeywords' => { 300 => 'AAPL:Keywords' }, 'applephotosvariationidentifier' => { 368 => 'apple.photos.variation-identifier' }, 'applestoreaccount' => { 366 => 'apID' }, 'applestoreaccounttype' => { 366 => 'akID' }, 'applestorecatalogid' => { 366 => 'cnID' }, 'applestorecountry' => { 366 => 'sfID' }, 'applicationnotes' => { 118 => 0x2bc, 319 => 0x2bc }, 'approved' => { 479 => 'Approved' }, 'approvedby' => { 479 => 'ApprovedBy' }, 'approximatefnumber' => { 309 => 0x313, 316 => 0x3406 }, 'approximatefocusdistance' => { 468 => 'ApproximateFocusDistance' }, 'appversion' => { 481 => 'AppVersion' }, 'aps-csizecapture' => { 432 => 0x114, 433 => [0x114,0x1eb,0x1ee,0x21a,0x21c] }, 'arranger' => { 366 => "\xa9arg", 374 => "\xa9arg" }, 'arrangerkeywords' => { 374 => "\xa9ark" }, 'artdirector' => { 366 => "\xa9ard" }, 'artfilter' => { 291 => 0x529 }, 'artfiltereffect' => { 291 => 0x52f }, 'artist' => { 118 => 0x13b, 304 => 'Artist', 349 => 0x22e, 366 => "\xa9ART", 368 => 'artist', 374 => "\xa9ART", 493 => 'Artist', 497 => 'artist' }, 'artwork' => { 368 => 'artwork' }, 'artworkcircadatecreated' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCircaDateCreated'] }, 'artworkcontentdescription' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOContentDescription'] }, 'artworkcontributiondescription' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOContributionDescription'] }, 'artworkcopyrightnotice' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCopyrightNotice'] }, 'artworkcopyrightownerid' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerId'] }, 'artworkcopyrightownername' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerName'] }, 'artworkcreator' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCreator'] }, 'artworkcreatorid' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCreatorId'] }, 'artworkdatecreated' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAODateCreated'] }, 'artworklicensorid' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorId'] }, 'artworklicensorname' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorName'] }, 'artworkorobject' => { 483 => 'ArtworkOrObject' }, 'artworkphysicaldescription' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOPhysicalDescription'] }, 'artworksource' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOSource'] }, 'artworksourceinventoryno' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvNo'] }, 'artworksourceinvurl' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvURL'] }, 'artworkstyleperiod' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOStylePeriod'] }, 'artworktitle' => { 483 => [\'ArtworkOrObject','ArtworkOrObjectAOTitle'] }, 'aspectframe' => { 295 => 0x1113 }, 'aspectratio' => { 5 => 0x0, 295 => 0x1112, 349 => 0x80, 401 => 0x55, 402 => 0x55, 403 => 0xa }, 'assetid' => { 461 => 'AssetID' }, 'assignbktbutton' => { 274 => '4.2', 275 => '16.1', 277 => '16.1', 278 => '16.1', 287 => '16.1', 288 => '16.1' }, 'assignmb-d17af-onbutton' => { 278 => '79.1' }, 'assignmb-d17funcbutton' => { 278 => '67.1' }, 'assignmb-d17funcbuttonplusdials' => { 278 => '68.1' }, 'assignmb-d18af-onbutton' => { 288 => '79.1' }, 'assignmb-d18funcbutton' => { 288 => '67.1' }, 'assignmb-d18funcbuttonplusdials' => { 288 => '68.1' }, 'assignmoviefunc1buttonplusdials' => { 277 => '75.1', 278 => '75.1', 288 => '75.1' }, 'assignmoviefunc2button' => { 277 => '82.1', 278 => '82.1', 288 => '82.1' }, 'assignmoviepreviewbuttonplusdials' => { 277 => '75.2', 278 => '75.2', 288 => '75.2' }, 'assignmovierecordbutton' => { 275 => '43.2', 287 => '45.1' }, 'assignmovierecordbuttonplusdials' => { 277 => '45.1', 278 => '45.1', 288 => '45.1' }, 'assignmoviesubselector' => { 277 => '74.1', 278 => '74.1', 288 => '74.1' }, 'assignmoviesubselectorplusdials' => { 277 => '76.1', 278 => '76.1', 288 => '76.1' }, 'assignremotefnbutton' => { 275 => '54.1', 287 => '51.1' }, 'attributionname' => { 469 => 'attributionName' }, 'attributionurl' => { 469 => 'attributionURL' }, 'audio' => { 314 => 0x20 }, 'audiobitrate' => { 66 => 0x6c, 483 => 'audioBitRate' }, 'audiobitratemode' => { 483 => 'audioBitRateMode' }, 'audiobitspersample' => { 483 => 'audioBitsPerSample' }, 'audiochannelcount' => { 483 => 'audioChannelCount' }, 'audiochanneltype' => { 497 => 'audioChannelType' }, 'audiocompressor' => { 497 => 'audioCompressor' }, 'audiodata' => { 453 => 'Data' }, 'audiogain' => { 368 => 'player.movie.audio.gain' }, 'audiomimetype' => { 453 => 'Mime' }, 'audiomoddate' => { 497 => 'audioModDate' }, 'audiosamplerate' => { 66 => 0x6e, 497 => 'audioSampleRate' }, 'audiosampletype' => { 497 => 'audioSampleType' }, 'author' => { 156 => 'Author', 300 => 'Author', 304 => 'Author', 365 => 'Author', 366 => ['auth',"\xa9aut"], 368 => 'author', 374 => 'auth', 466 => 'author', 484 => 'Author', 495 => 'Author' }, 'authorsposition' => { 485 => 'AuthorsPosition' }, 'autoaperture' => { 340 => '0.1' }, 'autobracket' => { 391 => 0x19 }, 'autobracketing' => { 126 => 0x1100, 349 => 0x18, 381 => 0x1007 }, 'autobracketingmode' => { 286 => '12.3' }, 'autobracketingset' => { 286 => '12.1' }, 'autobracketmodem' => { 274 => '21.2', 275 => '13.3', 277 => '13.2', 278 => '13.2', 283 => '26.2', 287 => '13.3', 288 => '13.2' }, 'autobracketorder' => { 183 => 0x43, 274 => '21.3', 275 => '13.2', 277 => '13.1', 278 => '13.1', 283 => '26.3', 284 => '12.2', 285 => '2.2', 286 => '12.2', 287 => '13.2', 288 => '13.1', 289 => '13.2' }, 'autobracketset' => { 274 => '21.1', 275 => '13.1', 279 => '11.1', 280 => '12.1', 281 => '12.1', 283 => '26.1', 284 => '12.1', 285 => '2.1', 287 => '13.1', 289 => '13.1' }, 'autobrightness' => { 471 => 'AutoBrightness', 473 => 'AutoBrightness' }, 'autocontrast' => { 471 => 'AutoContrast', 473 => 'AutoContrast' }, 'autodistortioncontrol' => { 204 => 0x4, 259 => 0x143 }, 'autoexposure' => { 471 => 'AutoExposure', 473 => 'AutoExposure' }, 'autoflashisosensitivity' => { 277 => '38.5', 278 => '38.5', 288 => '38.5' }, 'autofocus' => { 294 => 0x209 }, 'autofp' => { 285 => '7.3', 289 => '31.4' }, 'autoiso' => { 76 => 0x1, 112 => 0x3008, 276 => '1.1', 285 => '1.1' }, 'autoisomax' => { 276 => '1.2', 285 => '1.2' }, 'autoisominshutterspeed' => { 276 => '1.3', 285 => '1.3' }, 'autolateralca' => { 471 => 'AutoLateralCA', 473 => 'AutoLateralCA' }, 'autoportraitframed' => { 414 => 0x2016 }, 'autoredeye' => { 267 => 0xfe28a44f }, 'autoshadows' => { 471 => 'AutoShadows', 473 => 'AutoShadows' }, 'autotone' => { 471 => 'AutoTone', 473 => 'AutoTone' }, 'autotonedigest' => { 471 => 'AutoToneDigest', 473 => 'AutoToneDigest' }, 'autotonedigestnosat' => { 471 => 'AutoToneDigestNoSat', 473 => 'AutoToneDigestNoSat' }, 'autowhiteversion' => { 471 => 'AutoWhiteVersion', 473 => 'AutoWhiteVersion' }, 'avaperturesetting' => { 330 => 0x13 }, 'babyage' => { 314 => [0x8010,0x33] }, 'babyname' => { 314 => 0x66 }, 'backgroundalpha' => { 492 => 'bgalpha' }, 'balance' => { 368 => 'player.movie.audio.balance' }, 'baseexposurecompensation' => { 330 => 0x15 }, 'baseiso' => { 76 => 0x2, 96 => 0x101c, 137 => 0x903, 316 => 0x312a, 444 => 0x6 }, 'baseurl' => { 495 => 'BaseURL' }, 'bass' => { 368 => 'player.movie.audio.bass' }, 'batterylevel' => { 314 => 0x38, 401 => 0x51, 405 => 0xc, 406 => 0x4, 407 => 0x4, 445 => 0x7 }, 'batterylevelgrip1' => { 445 => 0x6 }, 'batterylevelgrip2' => { 445 => 0x8 }, 'batteryorder' => { 274 => '12.5', 283 => '13.2', 284 => '2.1', 287 => '3.1' }, 'batterystate' => { 183 => 0x60, 401 => 0x50, 407 => 0x14 }, 'batterytemperature' => { 405 => 0x1, 407 => 0x2, 445 => 0x5 }, 'batterytype' => { 63 => 0x38, 377 => 0x66 }, 'batteryunknown' => { 405 => 0x2, 407 => 0x0 }, 'batteryvoltage' => { 137 => 0x408, 375 => 0x2a, 376 => 0x49, 377 => 0x62, 405 => 0x8 }, 'batteryvoltage1' => { 407 => 0x6 }, 'batteryvoltage2' => { 407 => 0x8 }, 'batteryvoltageavg' => { 377 => 0x64 }, 'beatsperminute' => { 366 => 'tmpo' }, 'beatspliceparams' => { 497 => 'beatSpliceParams' }, 'beatspliceparamsriseindecibel' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInDecibel'] }, 'beatspliceparamsriseintimeduration' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDuration'] }, 'beatspliceparamsriseintimedurationscale' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationScale'] }, 'beatspliceparamsriseintimedurationvalue' => { 497 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationValue'] }, 'beatspliceparamsusefilebeatsmarker' => { 497 => [\'beatSpliceParams','beatSpliceParamsUseFileBeatsMarker'] }, 'beep' => { 274 => '13.1', 275 => '5.4', 276 => '0.1', 279 => '2.1', 280 => '3.1', 281 => '3.1', 283 => '10.1', 285 => '0.1', 287 => '5.5', 289 => '4.1' }, 'beeppitch' => { 284 => '3.1' }, 'beepvolume' => { 284 => '4.5' }, 'bitdepth' => { 161 => 'BitDepth', 187 => 0x11, 232 => 0x41 }, 'bitspersample' => { 118 => 0x102, 319 => 0xa, 493 => 'BitsPerSample' }, 'blacklevel' => { 118 => 0xc61a, 202 => 0x20, 224 => 0x3d, 296 => [0x401,0x1012], 358 => 0x21d }, 'blacklevel2' => { 295 => 0x600, 299 => 0x600 }, 'blacklevelblue' => { 319 => 0x1e }, 'blackleveldata' => { 358 => 0x223 }, 'blacklevelgreen' => { 319 => 0x1d }, 'blacklevelred' => { 319 => 0x1c }, 'blackpoint' => { 349 => 0x200 }, 'blacks2012' => { 471 => 'Blacks2012', 473 => 'Blacks2012' }, 'blacksadj' => { 448 => 0x9018 }, 'bleachbypasstoning' => { 349 => 0x7f }, 'blockshotafresponse' => { 277 => '1.5', 278 => '1.5', 288 => '1.5' }, 'blogtitle' => { 487 => 'blogTitle' }, 'blogurl' => { 487 => 'blogURL' }, 'bluebalance' => { 296 => 0x1018, 319 => 0x12, 349 => 0x1b }, 'bluehue' => { 471 => 'BlueHue', 473 => 'BlueHue' }, 'bluesaturation' => { 471 => 'BlueSaturation', 473 => 'BlueSaturation' }, 'bluratinfinity' => { 457 => 'BlurAtInfinity' }, 'blurcontrol' => { 349 => 0x82 }, 'bodybatteryadload' => { 328 => 0x3 }, 'bodybatteryadnoload' => { 328 => 0x2 }, 'bodybatterystate' => { 328 => '1.1' }, 'bodybatteryvoltage1' => { 328 => 0x2 }, 'bodybatteryvoltage2' => { 328 => 0x4 }, 'bodybatteryvoltage3' => { 328 => 0x6 }, 'bodybatteryvoltage4' => { 328 => 0x8 }, 'bodyfirmware' => { 382 => 0x0 }, 'bodyfirmwareversion' => { 292 => 0x104, 293 => 0x100, 296 => 0x104 }, 'bodyserialnumber' => { 382 => 0x10 }, 'bookedition' => { 487 => 'bookEdition' }, 'bootloaderversion' => { 376 => 0x26 }, 'bracketsettings' => { 314 => 0x45 }, 'bracketshotnumber' => { 57 => 0x5, 330 => 0x9, 412 => 0x2b }, 'bracketshotnumber2' => { 412 => 0x2d }, 'brightness' => { 118 => 0xfe53, 155 => 'Brightness', 175 => 'Brightness', 180 => 0x2c, 226 => 0x34, 227 => 0x39, 228 => 0x41, 368 => 'player.movie.visual.brightness', 375 => 0x25, 377 => 0x54, 401 => 0x22, 414 => 0x2007, 471 => 'Brightness', 473 => 'Brightness' }, 'brightnessadj' => { 107 => 0x114, 260 => 0x0, 270 => 0x2d, 448 => 0x8018 }, 'brightnessvalue' => { 118 => 0x9203, 186 => [0x691,0x49c3], 296 => 0x1003, 419 => 0x1e, 422 => 0x1140, 423 => 0x1140, 424 => 0x111c, 425 => 0x1198, 426 => 0x1174, 427 => 0x102c, 428 => 0x224, 429 => 0x224, 430 => 0x219, 477 => 'BrightnessValue' }, 'burstid' => { 454 => 'BurstID' }, 'burstmode' => { 139 => 0xa, 314 => 0x2a }, 'burstprimary' => { 454 => 'BurstPrimary' }, 'burstshot' => { 391 => 0x34 }, 'burstspeed' => { 314 => 0x77 }, 'bwmode' => { 296 => 0x203 }, 'bytecount' => { 487 => 'byteCount' }, 'calibration' => { 391 => [0x24,0x30] }, 'callforimage' => { 461 => 'CallForImage' }, 'camera' => { 451 => [\'Cameras','CamerasCamera'] }, 'cameraangle' => { 374 => 'angl', 497 => 'cameraAngle' }, 'cameraappinfo' => { 451 => [\'Cameras','CamerasCameraAppInfo'] }, 'cameraappinfoapplication' => { 451 => [\'Cameras','CamerasCameraAppInfoApplication'] }, 'cameraappinfoitemuri' => { 451 => [\'Cameras','CamerasCameraAppInfoItemURI'] }, 'cameraappinfoversion' => { 451 => [\'Cameras','CamerasCameraAppInfoVersion'] }, 'cameraburstid' => { 455 => 'CameraBurstID' }, 'cameracalibration' => { 391 => 0x11f }, 'cameradepthmap' => { 451 => [\'Cameras','CamerasCameraDepthMap'] }, 'cameradepthmapconfidenceuri' => { 451 => [\'Cameras','CamerasCameraDepthMapConfidenceURI'] }, 'cameradepthmapdepthuri' => { 451 => [\'Cameras','CamerasCameraDepthMapDepthURI'] }, 'cameradepthmapfar' => { 451 => [\'Cameras','CamerasCameraDepthMapFar'] }, 'cameradepthmapfocaltable' => { 451 => [\'Cameras','CamerasCameraDepthMapFocalTable'] }, 'cameradepthmapfocaltableentrycount' => { 451 => [\'Cameras','CamerasCameraDepthMapFocalTableEntryCount'] }, 'cameradepthmapformat' => { 451 => [\'Cameras','CamerasCameraDepthMapFormat'] }, 'cameradepthmapitemsemantic' => { 451 => [\'Cameras','CamerasCameraDepthMapItemSemantic'] }, 'cameradepthmapmeasuretype' => { 451 => [\'Cameras','CamerasCameraDepthMapMeasureType'] }, 'cameradepthmapnear' => { 451 => [\'Cameras','CamerasCameraDepthMapNear'] }, 'cameradepthmapsoftware' => { 451 => [\'Cameras','CamerasCameraDepthMapSoftware'] }, 'cameradepthmapunits' => { 451 => [\'Cameras','CamerasCameraDepthMapUnits'] }, 'cameradirection' => { 368 => 'direction.facing' }, 'camerae-mountversion' => { 447 => 0xb }, 'cameraelevationangle' => { 118 => 0x9405, 478 => 'CameraElevationAngle' }, 'camerafilename' => { 461 => 'CameraFilename' }, 'cameraid' => { 296 => 0x209, 374 => 'cmid', 390 => 0x209 }, 'cameraidentifier' => { 368 => 'camera.identifier' }, 'cameraimage' => { 451 => [\'Cameras','CamerasCameraImage'] }, 'cameraimageitemsemantic' => { 451 => [\'Cameras','CamerasCameraImageItemSemantic'] }, 'cameraimageitemuri' => { 451 => [\'Cameras','CamerasCameraImageItemURI'] }, 'cameraimagingmodel' => { 451 => [\'Cameras','CamerasCameraImagingModel'] }, 'cameraimagingmodeldistortion' => { 451 => [\'Cameras','CamerasCameraImagingModelDistortion'] }, 'cameraimagingmodeldistortioncount' => { 451 => [\'Cameras','CamerasCameraImagingModelDistortionCount'] }, 'cameraimagingmodelfocallengthx' => { 451 => [\'Cameras','CamerasCameraImagingModelFocalLengthX'] }, 'cameraimagingmodelfocallengthy' => { 451 => [\'Cameras','CamerasCameraImagingModelFocalLengthY'] }, 'cameraimagingmodelimageheight' => { 451 => [\'Cameras','CamerasCameraImagingModelImageHeight'] }, 'cameraimagingmodelimagewidth' => { 451 => [\'Cameras','CamerasCameraImagingModelImageWidth'] }, 'cameraimagingmodelpixelaspectratio' => { 451 => [\'Cameras','CamerasCameraImagingModelPixelAspectRatio'] }, 'cameraimagingmodelprincipalpointx' => { 451 => [\'Cameras','CamerasCameraImagingModelPrincipalPointX'] }, 'cameraimagingmodelprincipalpointy' => { 451 => [\'Cameras','CamerasCameraImagingModelPrincipalPointY'] }, 'cameraimagingmodelskew' => { 451 => [\'Cameras','CamerasCameraImagingModelSkew'] }, 'cameralabel' => { 118 => 0xc7a1, 497 => 'cameraLabel' }, 'cameralightestimate' => { 451 => [\'Cameras','CamerasCameraLightEstimate'] }, 'cameralightestimatecolorcorrectionb' => { 451 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionB'] }, 'cameralightestimatecolorcorrectiong' => { 451 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionG'] }, 'cameralightestimatecolorcorrectionr' => { 451 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionR'] }, 'cameralightestimatepixelintensity' => { 451 => [\'Cameras','CamerasCameraLightEstimatePixelIntensity'] }, 'cameramakemodel' => { 461 => 'CameraMakeModel' }, 'cameramodel' => { 358 => 0x410, 497 => 'cameraModel' }, 'cameramodelrestriction' => { 471 => 'CameraModelRestriction', 473 => 'CameraModelRestriction' }, 'cameramotion' => { 368 => 'direction.motion' }, 'cameramove' => { 497 => 'cameraMove' }, 'cameraorientation' => { 7 => 0x30, 9 => 0x7d, 11 => 0x30, 13 => 0x35, 14 => 0x30, 15 => 0x30, 16 => 0x31, 17 => 0x31, 18 => 0x35, 19 => 0x27, 20 => 0x31, 21 => 0x7d, 22 => 0x38, 23 => [0x36,0x3a], 24 => 0x7d, 25 => 0x83, 26 => 0x84, 27 => 0x96, 28 => 0x35, 29 => 0x96, 314 => 0x8f, 353 => 0x1, 358 => 0x100, 407 => [0x16,0x18], 435 => 0x28, 436 => 0x24, 437 => 0x29 }, 'cameraparameters' => { 296 => 0x2050 }, 'camerapitch' => { 114 => 0x9, 374 => "\xa9gpt" }, 'camerapointcloud' => { 451 => [\'Cameras','CamerasCameraPointCloud'] }, 'camerapointcloudmetric' => { 451 => [\'Cameras','CamerasCameraPointCloudMetric'] }, 'camerapointcloudpointcloud' => { 451 => [\'Cameras','CamerasCameraPointCloudPointCloud'] }, 'camerapointcloudpoints' => { 451 => [\'Cameras','CamerasCameraPointCloudPoints'] }, 'camerapose' => { 451 => [\'Cameras','CamerasCameraPose'] }, 'cameraposepositionx' => { 451 => [\'Cameras','CamerasCameraPosePositionX'] }, 'cameraposepositiony' => { 451 => [\'Cameras','CamerasCameraPosePositionY'] }, 'cameraposepositionz' => { 451 => [\'Cameras','CamerasCameraPosePositionZ'] }, 'cameraposerotationw' => { 451 => [\'Cameras','CamerasCameraPoseRotationW'] }, 'cameraposerotationx' => { 451 => [\'Cameras','CamerasCameraPoseRotationX'] }, 'cameraposerotationy' => { 451 => [\'Cameras','CamerasCameraPoseRotationY'] }, 'cameraposerotationz' => { 451 => [\'Cameras','CamerasCameraPoseRotationZ'] }, 'cameraposetimestamp' => { 451 => [\'Cameras','CamerasCameraPoseTimestamp'] }, 'cameraprofile' => { 471 => 'CameraProfile', 473 => 'CameraProfile' }, 'cameraprofiledigest' => { 471 => 'CameraProfileDigest', 473 => 'CameraProfileDigest' }, 'cameraroll' => { 114 => 0xb, 374 => "\xa9grl" }, 'cameras' => { 451 => 'Cameras' }, 'cameraserialnumber' => { 118 => 0xc62f, 177 => 'CameraSerialNumber', 461 => 'CameraSerialNumber' }, 'camerasettingsversion' => { 291 => 0x0 }, 'cameratemperature' => { 7 => 0x18, 9 => 0x1b, 11 => 0x18, 13 => 0x19, 14 => 0x18, 15 => 0x18, 16 => 0x19, 17 => 0x19, 18 => 0x19, 19 => 0x17, 20 => 0x19, 21 => 0x1b, 22 => 0x19, 23 => 0x19, 24 => 0x1b, 25 => 0x1b, 26 => 0x1b, 27 => 0x1b, 28 => 0x19, 29 => 0x1b, 30 => [0x87,0x91], 31 => [0x99,0x9f,0xa4,0xa8,0x105], 33 => ['-3',0x64,0x47,0x53,0x5b,0x5c], 76 => 0xc, 137 => 0x406, 295 => 0x1306, 309 => 0x320, 316 => 0x3402, 349 => 0x47, 388 => 0x43, 439 => 0x5 }, 'cameratemperature4' => { 354 => 0x14 }, 'cameratemperature5' => { 354 => 0x16 }, 'cameratrait' => { 451 => [\'Cameras','CamerasCameraTrait'] }, 'cameratype' => { 76 => 0x1a, 296 => 0x207 }, 'cameratype2' => { 292 => 0x100 }, 'cameravendorinfo' => { 451 => [\'Cameras','CamerasCameraVendorInfo'] }, 'cameravendorinfomanufacturer' => { 451 => [\'Cameras','CamerasCameraVendorInfoManufacturer'] }, 'cameravendorinfomodel' => { 451 => [\'Cameras','CamerasCameraVendorInfoModel'] }, 'cameravendorinfonotes' => { 451 => [\'Cameras','CamerasCameraVendorInfoNotes'] }, 'camerayaw' => { 114 => 0xa, 374 => "\xa9gyw" }, 'caption' => { 466 => 'caption' }, 'captionsauthornames' => { 476 => 'CaptionsAuthorNames' }, 'captionsdatetimestamps' => { 476 => 'CaptionsDateTimeStamps' }, 'captionwriter' => { 485 => 'CaptionWriter' }, 'capturemode' => { 368 => 'com.apple.photos.captureMode' }, 'capturesoftware' => { 459 => 'CaptureSoftware' }, 'catalogsets' => { 130 => 0xff, 452 => 'CatalogSets', 464 => 'CatalogSets' }, 'categories' => { 63 => 0x23, 466 => 'categories' }, 'category' => { 130 => 0xf, 178 => 'WM/Category', 290 => 0x30, 366 => 'catg', 485 => 'Category' }, 'cbcrgain' => { 388 => 0xa036 }, 'cbcrgaindefault' => { 388 => 0xa035 }, 'cbcrmatrix' => { 388 => 0xa034 }, 'cbcrmatrixdefault' => { 388 => 0xa033 }, 'ccdboardversion' => { 309 => 0x331 }, 'ccdscanmode' => { 296 => 0x1039 }, 'ccdsensitivity' => { 256 => 0x6 }, 'ccdversion' => { 309 => 0x330 }, 'cellglobalid' => { 470 => 'cgi' }, 'cellr' => { 470 => 'r' }, 'celltowerid' => { 470 => 'cellid' }, 'centerafarea' => { 285 => '15.1' }, 'centerfocuspoint' => { 289 => '2.2' }, 'centerweightedareasize' => { 274 => '7.1', 275 => '8.1', 277 => '8.1', 278 => '8.1', 282 => '7.1', 283 => '5.1', 284 => '7.1', 285 => '6.3', 287 => '8.1', 288 => '8.1', 289 => '8.1' }, 'certificate' => { 501 => 'Certificate' }, 'cfapattern' => { 118 => 0xa302, 319 => 0x9, 477 => 'CFAPattern' }, 'cfapatterncolumns' => { 477 => [\'CFAPattern','CFAPatternColumns'] }, 'cfapatternrows' => { 477 => [\'CFAPattern','CFAPatternRows'] }, 'cfapatternvalues' => { 477 => [\'CFAPattern','CFAPatternValues'] }, 'channel' => { 487 => 'channel' }, 'channela-lang' => { 487 => [\'channel','channelA-lang'] }, 'channelchannel' => { 487 => [\'channel','channelChannel'] }, 'channelsubchannel1' => { 487 => [\'channel','channelSubchannel1'] }, 'channelsubchannel2' => { 487 => [\'channel','channelSubchannel2'] }, 'channelsubchannel3' => { 487 => [\'channel','channelSubchannel3'] }, 'channelsubchannel4' => { 487 => [\'channel','channelSubchannel4'] }, 'chapterlist' => { 374 => 'chpl' }, 'childfontfiles' => { 502 => [\'Fonts','FontsChildFontFiles'] }, 'chmodeshootingspeed' => { 274 => '10.3', 275 => '11.2' }, 'chromaticaberration' => { 102 => 0x20703, 108 => 0x66, 388 => 0xa051 }, 'chromaticaberrationb' => { 471 => 'ChromaticAberrationB', 473 => 'ChromaticAberrationB' }, 'chromaticaberrationcorrection' => { 118 => 0x7034, 339 => 0x1, 448 => 0x900d }, 'chromaticaberrationcorrparams' => { 118 => 0x7035, 443 => 0x66a, 444 => [0x37c,0x384,0x39c,0x3b0,0x3b8] }, 'chromaticaberrationr' => { 471 => 'ChromaticAberrationR', 473 => 'ChromaticAberrationR' }, 'chrominancenoisereduction' => { 102 => 0x20601, 108 => 0x5e, 391 => 0x1a }, 'circadatecreated' => { 483 => 'CircaDateCreated' }, 'circgradbasedcorractive' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'] }, 'circgradbasedcorramount' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'] }, 'circgradbasedcorrblacks2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'] }, 'circgradbasedcorrbrightness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'] }, 'circgradbasedcorrclarity' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'] }, 'circgradbasedcorrclarity2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'] }, 'circgradbasedcorrcontrast' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'] }, 'circgradbasedcorrcontrast2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'] }, 'circgradbasedcorrcorrectionname' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'] }, 'circgradbasedcorrcorrectionsyncid' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'] }, 'circgradbasedcorrdefringe' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'] }, 'circgradbasedcorrdehaze' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'] }, 'circgradbasedcorrexposure' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'] }, 'circgradbasedcorrexposure2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'] }, 'circgradbasedcorrhighlights2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'] }, 'circgradbasedcorrhue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'] }, 'circgradbasedcorrluminancenoise' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'] }, 'circgradbasedcorrmaskalpha' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'] }, 'circgradbasedcorrmaskangle' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'] }, 'circgradbasedcorrmaskbottom' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'] }, 'circgradbasedcorrmaskcentervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'] }, 'circgradbasedcorrmaskcenterweight' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'] }, 'circgradbasedcorrmaskdabs' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'] }, 'circgradbasedcorrmaskfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'] }, 'circgradbasedcorrmaskflipped' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'] }, 'circgradbasedcorrmaskflow' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'] }, 'circgradbasedcorrmaskfullx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'] }, 'circgradbasedcorrmaskfully' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'] }, 'circgradbasedcorrmaskinputdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'] }, 'circgradbasedcorrmaskleft' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'] }, 'circgradbasedcorrmaskmaskactive' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'] }, 'circgradbasedcorrmaskmaskblendmode' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'circgradbasedcorrmaskmaskdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'] }, 'circgradbasedcorrmaskmaskinverted' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'] }, 'circgradbasedcorrmaskmaskname' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'] }, 'circgradbasedcorrmaskmasks' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'] }, 'circgradbasedcorrmaskmasksalpha' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'circgradbasedcorrmaskmasksangle' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'] }, 'circgradbasedcorrmaskmasksbottom' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'] }, 'circgradbasedcorrmaskmaskscentervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'circgradbasedcorrmaskmaskscenterweight' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'circgradbasedcorrmaskmasksdabs' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'] }, 'circgradbasedcorrmaskmasksfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'] }, 'circgradbasedcorrmaskmasksflipped' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'circgradbasedcorrmaskmasksflow' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'] }, 'circgradbasedcorrmaskmasksfullx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'] }, 'circgradbasedcorrmaskmasksfully' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'] }, 'circgradbasedcorrmaskmasksinputdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'circgradbasedcorrmaskmasksleft' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'] }, 'circgradbasedcorrmaskmasksmaskactive' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'circgradbasedcorrmaskmasksmaskblendmode' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'circgradbasedcorrmaskmasksmaskdigest' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'circgradbasedcorrmaskmasksmaskinverted' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'circgradbasedcorrmaskmasksmaskname' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'circgradbasedcorrmaskmasksmasksubtype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'circgradbasedcorrmaskmasksmasksyncid' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'circgradbasedcorrmaskmasksmaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'circgradbasedcorrmaskmasksmidpoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'circgradbasedcorrmaskmasksorigin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'circgradbasedcorrmaskmasksperimetervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'circgradbasedcorrmaskmasksradius' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'] }, 'circgradbasedcorrmaskmasksreferencepoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'circgradbasedcorrmaskmasksright' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'] }, 'circgradbasedcorrmaskmasksroundness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'circgradbasedcorrmaskmaskssizex' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'circgradbasedcorrmaskmaskssizey' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'circgradbasedcorrmaskmaskstop' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'] }, 'circgradbasedcorrmaskmasksubtype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'] }, 'circgradbasedcorrmaskmasksvalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'circgradbasedcorrmaskmasksversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'] }, 'circgradbasedcorrmaskmaskswhat' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'] }, 'circgradbasedcorrmaskmaskswholeimagearea' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'circgradbasedcorrmaskmasksx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'] }, 'circgradbasedcorrmaskmasksy' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'] }, 'circgradbasedcorrmaskmasksyncid' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'circgradbasedcorrmaskmaskszerox' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'circgradbasedcorrmaskmaskszeroy' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'circgradbasedcorrmaskmaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'] }, 'circgradbasedcorrmaskmidpoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'] }, 'circgradbasedcorrmaskorigin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'] }, 'circgradbasedcorrmaskperimetervalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'circgradbasedcorrmaskradius' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'] }, 'circgradbasedcorrmaskrange' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'circgradbasedcorrmaskrangeareamodels' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'circgradbasedcorrmaskrangeareamodelscolorsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'circgradbasedcorrmaskrangeareamodelscomponents' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'circgradbasedcorrmaskrangecoloramount' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'circgradbasedcorrmaskrangedepthfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'circgradbasedcorrmaskrangedepthmax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'circgradbasedcorrmaskrangedepthmin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'circgradbasedcorrmaskrangeinvert' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'circgradbasedcorrmaskrangelumfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'circgradbasedcorrmaskrangeluminancedepthsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'circgradbasedcorrmaskrangelummax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'circgradbasedcorrmaskrangelummin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'circgradbasedcorrmaskrangelumrange' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'circgradbasedcorrmaskrangesampletype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'circgradbasedcorrmaskrangetype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'circgradbasedcorrmaskrangeversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'circgradbasedcorrmaskreferencepoint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'] }, 'circgradbasedcorrmaskright' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'] }, 'circgradbasedcorrmaskroundness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'] }, 'circgradbasedcorrmasks' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'] }, 'circgradbasedcorrmasksizex' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'] }, 'circgradbasedcorrmasksizey' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'] }, 'circgradbasedcorrmasktop' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'] }, 'circgradbasedcorrmaskvalue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'] }, 'circgradbasedcorrmaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'] }, 'circgradbasedcorrmaskwhat' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'] }, 'circgradbasedcorrmaskwholeimagearea' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'circgradbasedcorrmaskx' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'] }, 'circgradbasedcorrmasky' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'] }, 'circgradbasedcorrmaskzerox' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'] }, 'circgradbasedcorrmaskzeroy' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'] }, 'circgradbasedcorrmoire' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'] }, 'circgradbasedcorrrangemask' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'] }, 'circgradbasedcorrrangemaskareamodels' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'circgradbasedcorrrangemaskareamodelscolorsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'circgradbasedcorrrangemaskareamodelscomponents' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'circgradbasedcorrrangemaskcoloramount' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'circgradbasedcorrrangemaskdepthfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'circgradbasedcorrrangemaskdepthmax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'circgradbasedcorrrangemaskdepthmin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'circgradbasedcorrrangemaskinvert' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'] }, 'circgradbasedcorrrangemasklumfeather' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'circgradbasedcorrrangemaskluminancedepthsampleinfo' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'circgradbasedcorrrangemasklummax' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'circgradbasedcorrrangemasklummin' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'circgradbasedcorrrangemasklumrange' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'circgradbasedcorrrangemasksampletype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'circgradbasedcorrrangemasktype' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'] }, 'circgradbasedcorrrangemaskversion' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'] }, 'circgradbasedcorrsaturation' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'] }, 'circgradbasedcorrshadows2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'] }, 'circgradbasedcorrsharpness' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'] }, 'circgradbasedcorrtemperature' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'] }, 'circgradbasedcorrtexture' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'] }, 'circgradbasedcorrtint' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'] }, 'circgradbasedcorrtoninghue' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'] }, 'circgradbasedcorrtoningsaturation' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'] }, 'circgradbasedcorrwhat' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'] }, 'circgradbasedcorrwhites2012' => { 471 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'], 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'] }, 'circulargradientbasedcorrections' => { 471 => 'CircularGradientBasedCorrections', 473 => 'CircularGradientBasedCorrections' }, 'city' => { 130 => 0x5a, 160 => 'City', 314 => 0x6d, 485 => 'City' }, 'city2' => { 314 => 0x80 }, 'clarity' => { 227 => 0x35, 228 => 0x3d, 414 => 0x2036, 471 => 'Clarity', 473 => 'Clarity' }, 'clarity2012' => { 471 => 'Clarity2012', 473 => 'Clarity2012' }, 'claritycontrol' => { 349 => 0x96 }, 'classification' => { 374 => 'clsf' }, 'clearretouch' => { 314 => 0x7c }, 'clearretouchvalue' => { 314 => 0xa3 }, 'client' => { 497 => 'client' }, 'clientname' => { 479 => 'ClientName' }, 'clipboardaspectratio' => { 471 => 'ClipboardAspectRatio', 473 => 'ClipboardAspectRatio' }, 'clipboardorientation' => { 471 => 'ClipboardOrientation', 473 => 'ClipboardOrientation' }, 'clipfilename' => { 374 => 'clfn' }, 'clipid' => { 374 => 'clid' }, 'clmodeshootingspeed' => { 274 => '10.2', 275 => '11.3', 277 => '11.2', 278 => '11.2', 283 => '11.2', 284 => '10.2', 287 => '11.2', 288 => '11.2', 289 => '11.1' }, 'cluster' => { 471 => 'Cluster', 473 => 'Cluster' }, 'cmcontrast' => { 299 => 0x2022 }, 'cmexposurecompensation' => { 299 => 0x2000 }, 'cmhue' => { 299 => 0x2021 }, 'cmsaturation' => { 299 => 0x2020 }, 'cmsharpness' => { 299 => 0x2023 }, 'cmwhitebalance' => { 299 => 0x2001 }, 'cmwhitebalancecomp' => { 299 => 0x2002 }, 'cmwhitebalancegraypoint' => { 299 => 0x2010 }, 'codeversion' => { 374 => 'cver' }, 'collection' => { 304 => 'Collection' }, 'collectionname' => { 169 => [\'Collections','CollectionsCollectionName'], 374 => 'coll' }, 'collections' => { 169 => 'Collections', 466 => 'collections' }, 'color' => { 368 => 'player.movie.visual.color', 486 => 'color' }, 'coloraberrationcontrol' => { 267 => 0xc89224b }, 'coloradjustment' => { 391 => 0x14 }, 'coloradjustmentmode' => { 390 => 0x210 }, 'coloranta' => { 502 => [\'Colorants','ColorantsA'] }, 'colorantb' => { 502 => [\'Colorants','ColorantsB'] }, 'colorantblack' => { 502 => [\'Colorants','ColorantsBlack'] }, 'colorantblue' => { 502 => [\'Colorants','ColorantsBlue'] }, 'colorantcyan' => { 502 => [\'Colorants','ColorantsCyan'] }, 'colorantgray' => { 502 => [\'Colorants','ColorantsGray'] }, 'colorantgreen' => { 502 => [\'Colorants','ColorantsGreen'] }, 'colorantl' => { 502 => [\'Colorants','ColorantsL'] }, 'colorantmagenta' => { 502 => [\'Colorants','ColorantsMagenta'] }, 'colorantmode' => { 502 => [\'Colorants','ColorantsMode'] }, 'colorantred' => { 502 => [\'Colorants','ColorantsRed'] }, 'colorants' => { 502 => 'Colorants' }, 'colorantswatchname' => { 502 => [\'Colorants','ColorantsSwatchName'] }, 'coloranttint' => { 502 => [\'Colorants','ColorantsTint'] }, 'coloranttype' => { 502 => [\'Colorants','ColorantsType'] }, 'colorantyellow' => { 502 => [\'Colorants','ColorantsYellow'] }, 'colorbalanceadj' => { 267 => 0x76a43202 }, 'colorbooster' => { 267 => 0x5f0e7d23 }, 'colorboostlevel' => { 261 => 0x1 }, 'colorboosttype' => { 261 => 0x0 }, 'colorclass' => { 360 => 0xde, 361 => 'ColorClass' }, 'colorcompensationfilter' => { 183 => [0x3a,0x5f], 185 => 0x111, 414 => 0xb022 }, 'colorcompensationfiltercustom' => { 401 => 0xd, 402 => 0xc }, 'colorcompensationfilterset' => { 401 => 0x8, 402 => 0x7, 403 => 0x18, 419 => 0xf }, 'colorcontrol' => { 296 => 0x102b }, 'colorcorrection' => { 448 => 0x8015 }, 'colorcreatoreffect' => { 291 => 0x532 }, 'coloreffect' => { 314 => 0x28 }, 'colorfilter' => { 111 => 0x17, 112 => 0x3017, 180 => 0x29, 188 => [0x38,0x4d,0x4f], 356 => 0x17 }, 'colorgain' => { 232 => 0x51 }, 'colorgradeblending' => { 471 => 'ColorGradeBlending', 473 => 'ColorGradeBlending' }, 'colorgradeglobalhue' => { 471 => 'ColorGradeGlobalHue', 473 => 'ColorGradeGlobalHue' }, 'colorgradegloballum' => { 471 => 'ColorGradeGlobalLum', 473 => 'ColorGradeGlobalLum' }, 'colorgradeglobalsat' => { 471 => 'ColorGradeGlobalSat', 473 => 'ColorGradeGlobalSat' }, 'colorgradehighlightlum' => { 471 => 'ColorGradeHighlightLum', 473 => 'ColorGradeHighlightLum' }, 'colorgrademidtonehue' => { 471 => 'ColorGradeMidtoneHue', 473 => 'ColorGradeMidtoneHue' }, 'colorgrademidtonelum' => { 471 => 'ColorGradeMidtoneLum', 473 => 'ColorGradeMidtoneLum' }, 'colorgrademidtonesat' => { 471 => 'ColorGradeMidtoneSat', 473 => 'ColorGradeMidtoneSat' }, 'colorgradeshadowlum' => { 471 => 'ColorGradeShadowLum', 473 => 'ColorGradeShadowLum' }, 'colorlabel' => { 476 => 'ColorLabel' }, 'colormatrix' => { 295 => 0x200, 296 => 0x1011, 388 => 0xa030 }, 'colormatrix1' => { 118 => 0xc621, 358 => 0x106 }, 'colormatrix2' => { 118 => 0xc622, 299 => 0x200, 358 => 0x226 }, 'colormatrixa' => { 349 => 0x203 }, 'colormatrixa2' => { 349 => 0x21c }, 'colormatrixadobergb' => { 388 => 0xa032 }, 'colormatrixb' => { 349 => 0x204 }, 'colormatrixb2' => { 349 => 0x21d }, 'colormatrixnumber' => { 296 => 0x1019 }, 'colormatrixsrgb' => { 388 => 0xa031 }, 'colormode' => { 112 => 0x3015, 126 => 0x1210, 139 => 0x66, 180 => 0x28, 183 => 0x16, 185 => 0x101, 186 => 0x36, 188 => 0x7, 224 => 0x3, 256 => 0x4, 314 => 0x32, 391 => 0x2c, 414 => 0xb029, 485 => 'ColorMode' }, 'colormoirereduction' => { 102 => 0x20670, 268 => 0x15 }, 'colormoirereductionmode' => { 268 => 0x5 }, 'colornoisereduction' => { 448 => 0x8029, 471 => 'ColorNoiseReduction', 473 => 'ColorNoiseReduction' }, 'colornoisereductiondetail' => { 471 => 'ColorNoiseReductionDetail', 473 => 'ColorNoiseReductionDetail' }, 'colornoisereductionintensity' => { 268 => 0x18 }, 'colornoisereductionsharpness' => { 268 => 0x1c }, 'colornoisereductionsmoothness' => { 471 => 'ColorNoiseReductionSmoothness', 473 => 'ColorNoiseReductionSmoothness' }, 'colorprofilesettings' => { 291 => 0x539 }, 'colorspace' => { 51 => 0x3, 63 => 0xb4, 96 => 0x10b4, 118 => 0xa001, 134 => 0x3, 161 => 'ColorSpace', 181 => 0x2f, 182 => 0x25, 183 => 0x17, 224 => 0x1e, 291 => 0x507, 349 => 0x37, 388 => 0xa011, 391 => 0xb, 401 => 0x1b, 402 => 0x83, 403 => 0xe, 419 => 0x6, 477 => 'ColorSpace' }, 'colortempcloudy' => { 38 => 0x22, 39 => 0x37, 40 => 0x31, 41 => 0xa4, 42 => 0xdb, 43 => 0x35, 44 => 0x5c, 47 => 0x75, 48 => 0x8e, 49 => 0x93, 50 => 0x96, 349 => 0x55 }, 'colortempdaylight' => { 38 => 0x18, 39 => 0x27, 40 => 0x27, 41 => 0x9a, 42 => 0xd1, 43 => 0x2b, 44 => 0x52, 47 => 0x6b, 48 => 0x84, 49 => 0x89, 50 => 0x8c, 349 => 0x53 }, 'colortemperature' => { 7 => 0x73, 8 => [0x48,0x4e], 9 => 0xc0, 10 => 0x37, 11 => 0x62, 12 => 0x37, 13 => 0x7c, 14 => 0x73, 15 => 0x73, 16 => 0x77, 17 => 0x73, 18 => 0x7c, 19 => 0x58, 20 => 0x73, 21 => 0xc0, 22 => 0x7f, 23 => 0x7d, 24 => 0xc0, 25 => 0xc6, 26 => 0xc7, 27 => 0x135, 28 => 0x7b, 29 => 0x13a, 63 => 0xae, 73 => 0x9, 96 => 0x10ae, 126 => 0x1005, 137 => 0x846, 155 => 'ColorTemperature', 181 => [0x6e,0x49], 182 => 0x3f, 183 => [0x39,0x5e], 185 => 0x10b, 188 => [0x3c,0x4c,0x4e], 309 => 0x321, 349 => 0x50, 381 => 0x1308, 414 => 0xb021, 471 => 'Temperature', 473 => 'Temperature' }, 'colortemperatureadj' => { 448 => 0x8013 }, 'colortemperaturebg' => { 296 => 0x1013 }, 'colortemperaturecustom' => { 401 => 0xc, 402 => 0xb }, 'colortemperaturerg' => { 296 => 0x1014 }, 'colortemperatureset' => { 401 => 0x7, 402 => 0x6 }, 'colortemperaturesetting' => { 183 => 0x25, 403 => 0x17, 419 => 0xe }, 'colortempflash' => { 38 => 0x36, 39 => 0x57, 40 => 0x40, 41 => 0xb8, 42 => 0xef, 43 => 0x49, 44 => 0x70, 47 => 0x89, 48 => 0xa2, 49 => 0xa7, 50 => 0xaa, 349 => 0x5a }, 'colortempfluorescentd' => { 349 => 0x57 }, 'colortempfluorescentn' => { 349 => 0x58 }, 'colortempfluorescentw' => { 349 => 0x59 }, 'colortempkelvin' => { 38 => 0x31, 39 => 0x4f, 41 => 0xb3, 42 => 0xea, 43 => 0x44, 44 => 0x6b, 47 => 0x84, 48 => 0x9d, 49 => 0xa2, 50 => 0xa5, 314 => 0x44, 381 => 0x1307 }, 'colortempshade' => { 38 => 0x1d, 39 => 0x2f, 40 => 0x2c, 41 => 0x9f, 42 => 0xd6, 43 => 0x30, 44 => 0x57, 47 => 0x70, 48 => 0x89, 49 => 0x8e, 50 => 0x91, 349 => 0x54 }, 'colortemptungsten' => { 38 => 0x27, 39 => 0x3f, 40 => 0x36, 41 => 0xa9, 42 => 0xe0, 43 => 0x3a, 44 => 0x61, 47 => 0x7a, 48 => 0x93, 49 => 0x98, 50 => 0x9b, 349 => 0x56 }, 'colortint' => { 313 => 0x35c }, 'commanddials' => { 285 => '5.1' }, 'commanddialsaperturesetting' => { 274 => '17.3', 275 => '18.3', 277 => '18.3', 278 => '18.3', 283 => '33.3', 284 => '17.3', 287 => '18.3', 288 => '18.3' }, 'commanddialschangemainsub' => { 274 => '17.2', 275 => '18.1', 277 => '18.1', 278 => '18.1', 283 => '33.2', 284 => '17.2', 287 => '18.1', 288 => '18.1' }, 'commanddialsmenuandplayback' => { 274 => '17.4', 275 => '18.2', 277 => '18.2', 278 => '18.2', 283 => '33.4', 284 => '17.4', 287 => '18.2', 288 => '18.2' }, 'commanddialsreverserotation' => { 274 => '17.1', 275 => '6.4', 277 => '6.2', 278 => '6.2', 279 => '16.2', 280 => '17.2', 283 => '33.1', 284 => '17.1', 287 => '6.2', 288 => '6.2', 289 => '18.1' }, 'commanderchannel' => { 285 => '10.2', 286 => '25.2' }, 'commandergroupa_ttl-aacomp' => { 285 => '13.1', 286 => '31.1' }, 'commandergroupa_ttlcomp' => { 289 => '32.1' }, 'commandergroupamanualoutput' => { 285 => '13.2', 286 => '28.2' }, 'commandergroupamode' => { 285 => '11.2', 286 => '28.1' }, 'commandergroupb_ttl-aacomp' => { 285 => '14.1', 286 => '32.1' }, 'commandergroupb_ttlcomp' => { 289 => '33.1' }, 'commandergroupbmanualoutput' => { 285 => '14.2', 286 => '29.2' }, 'commandergroupbmode' => { 285 => '11.3', 286 => '29.1' }, 'commanderinternalflash' => { 285 => '11.1', 286 => '27.1' }, 'commanderinternalmanualoutput' => { 285 => '12.2', 286 => '27.2' }, 'commanderinternalttlchannel' => { 283 => '18.2' }, 'commanderinternalttlcomp' => { 285 => '12.1', 286 => '30.2', 289 => '31.2' }, 'commanderinternalttlcompbuiltin' => { 283 => '20.1', 284 => '26.1' }, 'commanderinternalttlcompgroupa' => { 283 => '21.1', 284 => '27.1' }, 'commanderinternalttlcompgroupb' => { 283 => '22.1', 284 => '28.1' }, 'comment' => { 0 => 0x2, 119 => 'Comment', 156 => 'Comment', 304 => 'Comment', 366 => "\xa9cmt", 368 => 'comment', 374 => "\xa9cmt" }, 'compass' => { 384 => 0x4 }, 'compatibleversion' => { 471 => 'CompatibleVersion', 473 => 'CompatibleVersion' }, 'compilation' => { 366 => 'cpil' }, 'compimageimagespersequence' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfImagesInSequences'] }, 'compimagemaxexposureall' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfAll'] }, 'compimagemaxexposureused' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfUsed'] }, 'compimageminexposureall' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfAll'] }, 'compimageminexposureused' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfUsed'] }, 'compimagenumsequences' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfSequences'] }, 'compimagesumexposureall' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfAll'] }, 'compimagesumexposureused' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfUsed'] }, 'compimagetotalexposureperiod' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesTotalExposurePeriod'] }, 'compimagevalues' => { 478 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesValues'] }, 'complianceprofile' => { 487 => 'complianceProfile' }, 'componentsconfiguration' => { 118 => 0x9101, 161 => 'Components', 477 => 'ComponentsConfiguration' }, 'composer' => { 178 => 'WM/Composer', 366 => ["\xa9com","\xa9wrt"], 374 => ["\xa9com","\xa9wrt"], 497 => 'composer' }, 'composerkeywords' => { 374 => "\xa9cok" }, 'compositeimage' => { 118 => 0xa460, 478 => 'CompositeImage' }, 'compositeimagecount' => { 118 => 0xa461, 478 => 'CompositeImageCount' }, 'compositeimageexposuretimes' => { 118 => 0xa462, 478 => 'CompositeImageExposureTimes' }, 'composition' => { 461 => 'Composition' }, 'compositionadjust' => { 348 => '0.1' }, 'compositionadjustrotation' => { 348 => 0x7 }, 'compositionadjustx' => { 348 => 0x5 }, 'compositionadjusty' => { 348 => 0x6 }, 'compressedbitsperpixel' => { 118 => 0x9102, 477 => 'CompressedBitsPerPixel' }, 'compressedimagesize' => { 185 => 0x40, 296 => 0x40 }, 'compression' => { 118 => 0x103, 319 => 0xb, 493 => 'Compression' }, 'compressionfactor' => { 291 => 0x50d }, 'compressionratio' => { 161 => 'Compression', 296 => 0x1034 }, 'compressorversion' => { 374 => 'CNCV' }, 'conductor' => { 178 => 'WM/Conductor', 366 => "\xa9con" }, 'confidence' => { 456 => 'Confidence' }, 'confidencelevel' => { 467 => 'ConfidenceLevel' }, 'confidencemime' => { 456 => 'ConfidenceMime' }, 'constrainedcropheight' => { 107 => 0x266, 360 => 0xd6 }, 'constrainedcropwidth' => { 107 => 0x262, 360 => 0xd5 }, 'contactinfo' => { 471 => 'ContactInfo', 473 => 'ContactInfo', 486 => 'contactInfo' }, 'container' => { 451 => 'Container' }, 'containerdirectory' => { 451 => [\'Container','ContainerDirectory'] }, 'containerdirectoryitem' => { 451 => [\'Container','ContainerDirectoryItem'] }, 'containerdirectoryitemdatauri' => { 451 => [\'Container','ContainerDirectoryItemDataURI'] }, 'containerdirectoryitemlength' => { 451 => [\'Container','ContainerDirectoryItemLength'] }, 'containerdirectoryitemmime' => { 451 => [\'Container','ContainerDirectoryItemMime'] }, 'containerdirectoryitempadding' => { 451 => [\'Container','ContainerDirectoryItemPadding'] }, 'containerformat' => { 483 => 'ContainerFormat' }, 'containerformatidentifier' => { 483 => [\'ContainerFormat','ContainerFormatIdentifier'] }, 'containerformatname' => { 483 => [\'ContainerFormat','ContainerFormatName'] }, 'contentcreatedate' => { 366 => "\xa9day", 374 => ['@day',"\xa9day"] }, 'contentdistributorid' => { 374 => 'cdis' }, 'contentid' => { 374 => 'ccid' }, 'contenttype' => { 487 => 'contentType' }, 'continuousmodeliveview' => { 288 => '77.2' }, 'contrast' => { 10 => 0x73, 12 => 0x75, 34 => 0xd, 111 => 0xc, 112 => [0x3012,0x20], 118 => [0xa408,0xfe54], 126 => [0x1004,0x1006], 155 => 'Contrast', 175 => 'Contrast', 180 => 0x20, 181 => 0x31, 182 => 0x27, 183 => 0x19, 188 => 0x2, 226 => 0x33, 227 => 0x37, 228 => 0x3f, 296 => 0x1029, 314 => 0x39, 316 => 0x300a, 349 => 0x20, 356 => 0xc, 368 => 'player.movie.visual.contrast', 375 => 0x24, 377 => 0x52, 381 => 0x1012, 391 => 0xd, 401 => 0x1d, 402 => 0x1a, 414 => 0x2004, 471 => 'Contrast', 473 => 'Contrast', 477 => 'Contrast' }, 'contrast2012' => { 471 => 'Contrast2012', 473 => 'Contrast2012' }, 'contrastadj' => { 102 => 0x20303, 107 => 0x115, 270 => 0x2c, 448 => 0x8017 }, 'contrastdetectafarea' => { 349 => 0x231 }, 'contrasthighlight' => { 349 => 0x6d }, 'contrasthighlightshadowadj' => { 349 => 0x6f }, 'contrastmode' => { 314 => 0x2c }, 'contrastsetting' => { 291 => 0x505, 299 => 0x1012, 403 => 0x10, 419 => 0x8 }, 'contrastshadow' => { 349 => 0x6e }, 'contributedmedia' => { 497 => 'contributedMedia' }, 'contributedmediaduration' => { 497 => [\'contributedMedia','contributedMediaDuration'] }, 'contributedmediadurationscale' => { 497 => [\'contributedMedia','contributedMediaDurationScale'] }, 'contributedmediadurationvalue' => { 497 => [\'contributedMedia','contributedMediaDurationValue'] }, 'contributedmediamanaged' => { 497 => [\'contributedMedia','contributedMediaManaged'] }, 'contributedmediapath' => { 497 => [\'contributedMedia','contributedMediaPath'] }, 'contributedmediastarttime' => { 497 => [\'contributedMedia','contributedMediaStartTime'] }, 'contributedmediastarttimescale' => { 497 => [\'contributedMedia','contributedMediaStartTimeScale'] }, 'contributedmediastarttimevalue' => { 497 => [\'contributedMedia','contributedMediaStartTimeValue'] }, 'contributedmediatrack' => { 497 => [\'contributedMedia','contributedMediaTrack'] }, 'contributedmediawebstatement' => { 497 => [\'contributedMedia','contributedMediaWebStatement'] }, 'contributor' => { 474 => 'contributor', 483 => 'Contributor' }, 'contributoridentifier' => { 483 => [\'Contributor','ContributorIdentifier'] }, 'contributorname' => { 483 => [\'Contributor','ContributorName'] }, 'contributorrole' => { 483 => [\'Contributor','ContributorRole'] }, 'controlledvocabularyterm' => { 483 => 'CVterm' }, 'controllerboardversion' => { 309 => 0x332 }, 'conversionlens' => { 292 => 0x403, 314 => 0x35 }, 'converter' => { 118 => 0xfe4d, 256 => 0xb, 471 => 'Converter', 473 => 'Converter' }, 'converttograyscale' => { 471 => 'ConvertToGrayscale', 473 => 'ConvertToGrayscale' }, 'cookingequipment' => { 489 => 'cookingEquipment' }, 'cookingmethod' => { 489 => 'cookingMethod' }, 'copyright' => { 0 => 0x3, 118 => 0x8298, 156 => 'Copyright', 304 => 'Copyright', 349 => 0x22f, 365 => 'Copyright', 366 => ['cprt',"\xa9cpy"], 368 => 'copyright', 374 => ['cprt',"\xa9cpy"], 471 => 'Copyright', 473 => 'Copyright', 484 => 'Copyright', 490 => 'copyright', 493 => 'Copyright', 497 => 'copyright' }, 'copyrightflag' => { 363 => 0x40a }, 'copyrightowner' => { 301 => 'CopyrightOwner' }, 'copyrightownerid' => { 301 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerID'] }, 'copyrightownerimageid' => { 301 => 'CopyrightOwnerImageID' }, 'copyrightownername' => { 301 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerName'] }, 'copyrightregistrationnumber' => { 301 => 'CopyrightRegistrationNumber' }, 'copyrightstatus' => { 301 => 'CopyrightStatus' }, 'copyrightyear' => { 483 => 'CopyrightYear', 487 => 'copyrightYear' }, 'coringfilter' => { 295 => 0x310, 296 => 0x102d, 299 => 0x310 }, 'coringvalues' => { 295 => 0x311, 299 => 0x311 }, 'corporateentity' => { 487 => 'corporateEntity' }, 'correlatedcolortemp' => { 313 => 0x35b }, 'country' => { 160 => 'Country', 314 => 0x69, 485 => 'Country' }, 'countrycode' => { 223 => 0x5, 361 => 'CountryCode', 482 => 'CountryCode' }, 'course' => { 489 => 'course' }, 'coverage' => { 474 => 'coverage' }, 'coverart' => { 366 => 'covr' }, 'coverdate' => { 487 => 'coverDate' }, 'coverdisplaydate' => { 487 => 'coverDisplayDate' }, 'coveruri' => { 374 => 'cvru' }, 'cpufirmwareversion' => { 349 => 0x28 }, 'crc32' => { 475 => 'crc32' }, 'createdate' => { 118 => 0x9004, 156 => 'CreateDate', 300 => 'CreationDate', 304 => 'create-date', 365 => 'CreationDate', 371 => 0x1, 495 => 'CreateDate' }, 'creationdate' => { 368 => 'creationdate', 484 => 'CreationDate', 487 => 'creationDate' }, 'creationtime' => { 304 => 'Creation Time' }, 'creativestyle' => { 401 => 0x1a, 402 => 0x18, 412 => 0x41, 414 => 0xb020, 444 => 0x4a }, 'creativestylesetting' => { 403 => 0xf, 419 => 0x7 }, 'creativestylewaschanged' => { 448 => 0x8001 }, 'creator' => { 300 => 'Creator', 365 => 'Creator', 474 => 'creator', 483 => 'Creator', 484 => 'Creator' }, 'creatoraddress' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrExtadr'] }, 'creatorcity' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCity'] }, 'creatorcontactinfo' => { 482 => 'CreatorContactInfo' }, 'creatorcountry' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCtry'] }, 'creatoridentifier' => { 483 => [\'Creator','CreatorIdentifier'] }, 'creatorname' => { 483 => [\'Creator','CreatorName'] }, 'creatorpostalcode' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrPcode'] }, 'creatorregion' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiAdrRegion'] }, 'creatorrole' => { 483 => [\'Creator','CreatorRole'] }, 'creatortool' => { 495 => 'CreatorTool' }, 'creatorworkemail' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiEmailWork'] }, 'creatorworktelephone' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiTelWork'] }, 'creatorworkurl' => { 482 => [\'CreatorContactInfo','CreatorContactInfoCiUrlWork'] }, 'credit' => { 130 => 0x6e, 485 => 'Credit' }, 'creditline' => { 490 => 'creditLine' }, 'creditlinereq' => { 500 => 'CreditLineReq' }, 'creditlinerequired' => { 301 => 'CreditLineRequired' }, 'cropangle' => { 471 => 'CropAngle', 473 => 'CropAngle' }, 'croparea' => { 224 => 0x45, 448 => 0x9011 }, 'cropbottom' => { 122 => 0x9, 262 => 0x36, 319 => 0x31, 360 => 0xdc, 471 => 'CropBottom', 473 => 'CropBottom' }, 'cropconstraintowarp' => { 471 => 'CropConstrainToWarp', 473 => 'CropConstrainToWarp' }, 'croph' => { 465 => 'CropH' }, 'cropheight' => { 100 => 0x6, 107 => 0x24c, 295 => 0x615, 299 => 0x615, 471 => 'CropHeight', 473 => 'CropHeight' }, 'cropleft' => { 107 => 0x246, 122 => 0x6, 262 => 0x1e, 295 => 0x612, 299 => 0x612, 319 => 0x30, 360 => 0xd9, 471 => 'CropLeft', 473 => 'CropLeft' }, 'cropmode' => { 126 => 0x104d, 381 => 0x1018 }, 'cropoutputheight' => { 262 => 0xce }, 'cropoutputheightinches' => { 262 => 0x96 }, 'cropoutputpixels' => { 262 => 0xd6 }, 'cropoutputresolution' => { 262 => 0xb6 }, 'cropoutputscale' => { 262 => 0xbe }, 'cropoutputwidth' => { 262 => 0xc6 }, 'cropoutputwidthinches' => { 262 => 0x8e }, 'croppedareaimageheightpixels' => { 459 => 'CroppedAreaImageHeightPixels', 460 => 'CroppedAreaImageHeightPixels' }, 'croppedareaimagewidthpixels' => { 459 => 'CroppedAreaImageWidthPixels', 460 => 'CroppedAreaImageWidthPixels' }, 'croppedarealeftpixels' => { 459 => 'CroppedAreaLeftPixels', 460 => 'CroppedAreaLeftPixels' }, 'croppedareatoppixels' => { 459 => 'CroppedAreaTopPixels', 460 => 'CroppedAreaTopPixels' }, 'croppedimageheight' => { 5 => 0x2, 381 => 0x1604 }, 'croppedimagewidth' => { 5 => 0x1, 381 => 0x1603 }, 'cropping' => { 448 => 0x9010 }, 'cropright' => { 122 => 0x8, 262 => 0x2e, 319 => 0x32, 360 => 0xdb, 471 => 'CropRight', 473 => 'CropRight' }, 'cropscaledresolution' => { 262 => 0x9e }, 'cropsourceresolution' => { 262 => 0xae }, 'croptop' => { 107 => 0x248, 122 => 0x7, 262 => 0x26, 295 => 0x613, 299 => 0x613, 319 => 0x2f, 360 => 0xda, 471 => 'CropTop', 473 => 'CropTop' }, 'cropunit' => { 471 => 'CropUnit', 473 => 'CropUnit' }, 'cropunits' => { 471 => 'CropUnits', 473 => 'CropUnits' }, 'cropw' => { 465 => 'CropW' }, 'cropwidth' => { 100 => 0x5, 107 => 0x24a, 295 => 0x614, 299 => 0x614, 471 => 'CropWidth', 473 => 'CropWidth' }, 'cropx' => { 100 => 0x3, 465 => 'CropX' }, 'cropy' => { 100 => 0x4, 465 => 'CropY' }, 'crossprocess' => { 349 => 0x7b }, 'crossprocessparams' => { 349 => 0x235 }, 'cuisine' => { 489 => 'cuisine' }, 'currentversion' => { 448 => 0xd000 }, 'curve0x' => { 465 => 'Curve0x' }, 'curve0y' => { 465 => 'Curve0y' }, 'curve1x' => { 465 => 'Curve1x' }, 'curve1y' => { 465 => 'Curve1y' }, 'curve2x' => { 465 => 'Curve2x' }, 'curve2y' => { 465 => 'Curve2y' }, 'curve3x' => { 465 => 'Curve3x' }, 'curve3y' => { 465 => 'Curve3y' }, 'curve4x' => { 465 => 'Curve4x' }, 'curve4y' => { 465 => 'Curve4y' }, 'curves' => { 267 => 0x76a43201 }, 'custom1' => { 301 => 'Custom1' }, 'custom10' => { 301 => 'Custom10' }, 'custom2' => { 301 => 'Custom2' }, 'custom3' => { 301 => 'Custom3' }, 'custom4' => { 301 => 'Custom4' }, 'custom5' => { 301 => 'Custom5' }, 'custom6' => { 301 => 'Custom6' }, 'custom7' => { 301 => 'Custom7' }, 'custom8' => { 301 => 'Custom8' }, 'custom9' => { 301 => 'Custom9' }, 'customrendered' => { 118 => 0xa401, 477 => 'CustomRendered' }, 'customsaturation' => { 108 => 0x4d, 291 => 0x503 }, 'customsettingsalldefault' => { 274 => '0.2', 283 => '0.2' }, 'customsettingsbank' => { 274 => '0.1', 275 => '0.1', 277 => '0.1', 278 => '0.1', 283 => '0.1', 287 => '0.2', 288 => '0.2' }, 'customwb_rblevels' => { 419 => 0x1a }, 'customwb_rgblevels' => { 402 => 0x8, 403 => 0x19 }, 'cx' => { 374 => '_cx_' }, 'cy' => { 374 => '_cy_' }, 'd-lightinghq' => { 267 => 0x2175eb78 }, 'd-lightinghqcolorboost' => { 263 => 0x2 }, 'd-lightinghqhighlight' => { 263 => 0x1 }, 'd-lightinghqselected' => { 267 => 0x6a6e36b6 }, 'd-lightinghqshadow' => { 263 => 0x0 }, 'd-lightinghs' => { 267 => 0xce5554aa }, 'd-lightinghsadjustment' => { 264 => 0x0 }, 'd-lightinghscolorboost' => { 264 => 0x1 }, 'd-rangeoptimizerhighlight' => { 448 => 0x8024 }, 'd-rangeoptimizermode' => { 448 => 0x8022 }, 'd-rangeoptimizershadow' => { 448 => 0x802d }, 'd-rangeoptimizervalue' => { 448 => 0x8023 }, 'darkfocusenvironment' => { 314 => 0x8003 }, 'dataonscreen' => { 483 => 'DataOnScreen' }, 'dataonscreenregion' => { 483 => [\'DataOnScreen','DataOnScreenRegion'] }, 'dataonscreenregiond' => { 483 => [\'DataOnScreen','DataOnScreenRegionD'] }, 'dataonscreenregionh' => { 483 => [\'DataOnScreen','DataOnScreenRegionH'] }, 'dataonscreenregiontext' => { 483 => [\'DataOnScreen','DataOnScreenRegionText'] }, 'dataonscreenregionunit' => { 483 => [\'DataOnScreen','DataOnScreenRegionUnit'] }, 'dataonscreenregionw' => { 483 => [\'DataOnScreen','DataOnScreenRegionW'] }, 'dataonscreenregionx' => { 483 => [\'DataOnScreen','DataOnScreenRegionX'] }, 'dataonscreenregiony' => { 483 => [\'DataOnScreen','DataOnScreenRegionY'] }, 'datascaling' => { 349 => 0x3d }, 'date' => { 349 => 0x6, 474 => 'date' }, 'datecreated' => { 130 => 0x37, 485 => 'DateCreated' }, 'datedisplayformat' => { 258 => 0x3 }, 'dateimprint' => { 279 => '4.2' }, 'daterecieved' => { 487 => 'dateRecieved' }, 'datetime' => { 466 => 'datetime', 493 => 'DateTime' }, 'datetimedigitized' => { 477 => 'DateTimeDigitized' }, 'datetimeoriginal' => { 99 => 0x0, 118 => 0x9003, 153 => 0x14, 156 => 'OriginalDate', 369 => 'IDIT', 374 => 'date', 375 => 0xb, 376 => 0x3b, 377 => 0x3e, 477 => 'DateTimeOriginal' }, 'datetimeutc' => { 291 => 0x908 }, 'daylightsavings' => { 77 => 0x3, 258 => 0x2 }, 'dayofweek' => { 376 => 0x42, 377 => 0x4a }, 'defaultautogray' => { 471 => 'DefaultAutoGray', 473 => 'DefaultAutoGray' }, 'defaultautotone' => { 471 => 'DefaultAutoTone', 473 => 'DefaultAutoTone' }, 'defaultsspecifictoiso' => { 471 => 'DefaultsSpecificToISO', 473 => 'DefaultsSpecificToISO' }, 'defaultsspecifictoserial' => { 471 => 'DefaultsSpecificToSerial', 473 => 'DefaultsSpecificToSerial' }, 'defringe' => { 471 => 'Defringe', 473 => 'Defringe' }, 'defringegreenamount' => { 471 => 'DefringeGreenAmount', 473 => 'DefringeGreenAmount' }, 'defringegreenhuehi' => { 471 => 'DefringeGreenHueHi', 473 => 'DefringeGreenHueHi' }, 'defringegreenhuelo' => { 471 => 'DefringeGreenHueLo', 473 => 'DefringeGreenHueLo' }, 'defringepurpleamount' => { 471 => 'DefringePurpleAmount', 473 => 'DefringePurpleAmount' }, 'defringepurplehuehi' => { 471 => 'DefringePurpleHueHi', 473 => 'DefringePurpleHueHi' }, 'defringepurplehuelo' => { 471 => 'DefringePurpleHueLo', 473 => 'DefringePurpleHueLo' }, 'dehaze' => { 471 => 'Dehaze', 473 => 'Dehaze' }, 'deletedimagecount' => { 224 => 0xa6, 233 => 0x6e }, 'deprecatedon' => { 469 => 'deprecatedOn' }, 'depthimage' => { 456 => 'Data' }, 'derivedfrom' => { 498 => 'DerivedFrom' }, 'derivedfromalternatepaths' => { 498 => [\'DerivedFrom','DerivedFromAlternatePaths'] }, 'derivedfromdocumentid' => { 498 => [\'DerivedFrom','DerivedFromDocumentID'] }, 'derivedfromfilepath' => { 498 => [\'DerivedFrom','DerivedFromFilePath'] }, 'derivedfromfrompart' => { 498 => [\'DerivedFrom','DerivedFromFromPart'] }, 'derivedfrominstanceid' => { 498 => [\'DerivedFrom','DerivedFromInstanceID'] }, 'derivedfromlastmodifydate' => { 498 => [\'DerivedFrom','DerivedFromLastModifyDate'] }, 'derivedfromlasturl' => { 498 => [\'DerivedFrom','DerivedFromLastURL'] }, 'derivedfromlinkcategory' => { 498 => [\'DerivedFrom','DerivedFromLinkCategory'] }, 'derivedfromlinkform' => { 498 => [\'DerivedFrom','DerivedFromLinkForm'] }, 'derivedfrommanager' => { 498 => [\'DerivedFrom','DerivedFromManager'] }, 'derivedfrommanagervariant' => { 498 => [\'DerivedFrom','DerivedFromManagerVariant'] }, 'derivedfrommanageto' => { 498 => [\'DerivedFrom','DerivedFromManageTo'] }, 'derivedfrommanageui' => { 498 => [\'DerivedFrom','DerivedFromManageUI'] }, 'derivedfrommaskmarkers' => { 498 => [\'DerivedFrom','DerivedFromMaskMarkers'] }, 'derivedfromoriginaldocumentid' => { 498 => [\'DerivedFrom','DerivedFromOriginalDocumentID'] }, 'derivedfrompartmapping' => { 498 => [\'DerivedFrom','DerivedFromPartMapping'] }, 'derivedfromplacedresolutionunit' => { 498 => [\'DerivedFrom','DerivedFromPlacedResolutionUnit'] }, 'derivedfromplacedxresolution' => { 498 => [\'DerivedFrom','DerivedFromPlacedXResolution'] }, 'derivedfromplacedyresolution' => { 498 => [\'DerivedFrom','DerivedFromPlacedYResolution'] }, 'derivedfromrenditionclass' => { 498 => [\'DerivedFrom','DerivedFromRenditionClass'] }, 'derivedfromrenditionparams' => { 498 => [\'DerivedFrom','DerivedFromRenditionParams'] }, 'derivedfromtopart' => { 498 => [\'DerivedFrom','DerivedFromToPart'] }, 'derivedfromversionid' => { 498 => [\'DerivedFrom','DerivedFromVersionID'] }, 'description' => { 304 => 'Description', 366 => ['desc','dscp',"\xa9des"], 368 => 'description', 374 => 'dscp', 471 => 'Description', 473 => 'Description', 474 => 'description', 495 => 'Description' }, 'destinationcity' => { 349 => 0x24, 355 => 0x3 }, 'destinationcitycode' => { 356 => 0x1001 }, 'destinationdst' => { 349 => 0x26, 355 => '0.3' }, 'device' => { 487 => 'device' }, 'devicesettingdescription' => { 477 => 'DeviceSettingDescription' }, 'devicesettingdescriptioncolumns' => { 477 => [\'DeviceSettingDescription','DeviceSettingDescriptionColumns'] }, 'devicesettingdescriptionrows' => { 477 => [\'DeviceSettingDescription','DeviceSettingDescriptionRows'] }, 'devicesettingdescriptionsettings' => { 477 => [\'DeviceSettingDescription','DeviceSettingDescriptionSettings'] }, 'devicetype' => { 388 => 0x2 }, 'dietaryneeds' => { 489 => 'dietaryNeeds' }, 'diffractioncompensation' => { 247 => 0xc4a0, 259 => 0x142 }, 'diffractioncorrection' => { 314 => 0xbc, 339 => 0x3 }, 'digitaldeehighlightadj' => { 232 => 0x202 }, 'digitaldeeshadowadj' => { 232 => 0x200 }, 'digitaldeethreshold' => { 232 => 0x201 }, 'digitalfilter' => { 391 => 0x59 }, 'digitalfilter01' => { 336 => 0x5 }, 'digitalfilter02' => { 336 => 0x16 }, 'digitalfilter03' => { 336 => 0x27 }, 'digitalfilter04' => { 336 => 0x38 }, 'digitalfilter05' => { 336 => 0x49 }, 'digitalfilter06' => { 336 => 0x5a }, 'digitalfilter07' => { 336 => 0x6b }, 'digitalfilter08' => { 336 => 0x7c }, 'digitalfilter09' => { 336 => 0x8d }, 'digitalfilter10' => { 336 => 0x9e }, 'digitalfilter11' => { 336 => 0xaf }, 'digitalfilter12' => { 336 => 0xc0 }, 'digitalfilter13' => { 336 => 0xd1 }, 'digitalfilter14' => { 336 => 0xe2 }, 'digitalfilter15' => { 336 => 0xf3 }, 'digitalfilter16' => { 336 => 0x104 }, 'digitalfilter17' => { 336 => 0x115 }, 'digitalfilter18' => { 336 => 0x126 }, 'digitalfilter19' => { 336 => 0x137 }, 'digitalfilter20' => { 336 => 0x148 }, 'digitalice' => { 232 => 0x100 }, 'digitalimageguid' => { 483 => 'DigImageGUID' }, 'digitalroc' => { 230 => 0x0 }, 'digitalsourcefiletype' => { 483 => 'DigitalSourcefileType' }, 'digitalsourcetype' => { 483 => 'DigitalSourceType' }, 'digitalzoom' => { 34 => 0xc, 111 => 0xa, 126 => 0x1044, 139 => 0x68, 150 => 0x22, 151 => 0x1e, 155 => 'DigitalZoom', 180 => 0xc, 224 => 0x86, 256 => 0xa, 296 => 0x204, 349 => 0x1e, 356 => 0xa, 390 => 0x204, 435 => 0x12, 436 => 0x12 }, 'digitalzoomon' => { 390 => 0x21b }, 'digitalzoomratio' => { 118 => 0xa404, 424 => 0x200, 426 => 0x21c, 477 => 'DigitalZoomRatio' }, 'director' => { 178 => 'WM/Director', 366 => "\xa9dir", 368 => 'director', 374 => "\xa9dir", 497 => 'director' }, 'directorphotography' => { 497 => 'directorPhotography' }, 'directorynumber' => { 206 => 0x3, 377 => 0x12 }, 'disableautocreation' => { 454 => 'DisableAutoCreation' }, 'disclaimer' => { 304 => 'Disclaimer' }, 'discnumber' => { 497 => 'discNumber' }, 'dishtype' => { 489 => 'dishType' }, 'disknumber' => { 366 => 'disk' }, 'displayedunitsx' => { 364 => 0x2 }, 'displayedunitsy' => { 364 => 0x6 }, 'displayname' => { 368 => 'displayname', 486 => 'displayName' }, 'distortion' => { 388 => 0xa050 }, 'distortioncompensation' => { 448 => 0x8040 }, 'distortioncontrol' => { 233 => 0x10 }, 'distortioncorrection' => { 78 => 0x3, 102 => 0x20705, 108 => 0x67, 118 => 0x7036, 291 => 0x50b, 318 => '7.1', 339 => 0x0, 443 => 0x601, 444 => 0x5b }, 'distortioncorrection2' => { 295 => 0x1011 }, 'distortioncorrectionalreadyapplied' => { 468 => 'DistortionCorrectionAlreadyApplied' }, 'distortioncorrectionsetting' => { 79 => 0x7, 414 => 0x2013 }, 'distortioncorrparams' => { 118 => 0x7037, 423 => 0x1a23, 426 => 0x1870, 428 => 0x189c, 429 => 0x18cc, 430 => 0x17d0, 443 => 0x6ca, 444 => 0x64 }, 'distortioncorrparamsnumber' => { 426 => 0x1899, 428 => 0x18c5, 429 => 0x18f5, 430 => 0x17f9 }, 'distortioncorrparamspresent' => { 426 => 0x1898, 428 => 0x18c4, 429 => 0x18f4, 430 => 0x17f8, 432 => 0x10b, 433 => 0x10b, 443 => 0x600, 444 => 0x5a }, 'distortionn' => { 318 => 0xc }, 'distortionparam02' => { 318 => 0x2 }, 'distortionparam04' => { 318 => 0x4 }, 'distortionparam08' => { 318 => 0x8 }, 'distortionparam09' => { 318 => 0x9 }, 'distortionparam11' => { 318 => 0xb }, 'distortionscale' => { 318 => 0x5 }, 'distributor' => { 487 => 'distributor' }, 'distributorproductid' => { 486 => 'distributorProductID' }, 'dmcomment' => { 497 => 'comment' }, 'dngignoresidecars' => { 471 => 'DNGIgnoreSidecars', 473 => 'DNGIgnoreSidecars' }, 'document' => { 304 => 'Document' }, 'documentancestors' => { 485 => 'DocumentAncestors' }, 'documentid' => { 498 => 'DocumentID' }, 'doi' => { 487 => 'doi' }, 'dopesheet' => { 483 => 'Dopesheet' }, 'dopesheetlink' => { 483 => 'DopesheetLink' }, 'dopesheetlinklink' => { 483 => [\'DopesheetLink','DopesheetLinkLink'] }, 'dopesheetlinklinkqualifier' => { 483 => [\'DopesheetLink','DopesheetLinkLinkQualifier'] }, 'dpp' => { 466 => 'dpp' }, 'drivemode' => { 112 => 0x3103, 124 => '0.1', 180 => 0x6, 183 => 0x1e, 186 => 0xe, 291 => 0x600, 349 => 0x34, 381 => 0x1002, 391 => 0x3, 401 => 0x4, 402 => 0x7e, 403 => 0x34 }, 'drivemode2' => { 183 => 0xa, 330 => 0x7, 412 => 0xe, 419 => 0x1 }, 'drivemodesetting' => { 403 => 0x4 }, 'dspfirmwareversion' => { 349 => 0x27 }, 'duration' => { 66 => 0x6a, 154 => 'Duration', 168 => 'Duration', 489 => 'duration', 497 => 'duration' }, 'durationscale' => { 497 => [\'duration','durationScale'] }, 'durationvalue' => { 497 => [\'duration','durationValue'] }, 'dynamicafarea' => { 274 => '1.4', 283 => '1.4' }, 'dynamicareaafdisplay' => { 275 => '46.1', 277 => '47.1', 278 => '47.1', 287 => '47.1', 288 => '47.1' }, 'dynamicrangeexpansion' => { 349 => 0x69, 381 => 0x100e }, 'dynamicrangeoptimizer' => { 183 => 0x15, 414 => [0xb025,0xb04f], 422 => 0x1144, 423 => [0x1144,0x324], 424 => [0x1120,0x300], 425 => [0x119c,0x37c], 426 => [0x1178,0x328], 427 => [0x1030,0x50], 428 => [0x228,0x50], 429 => [0x228,0x50], 430 => [0x21b,0x4e] }, 'dynamicrangeoptimizerbracket' => { 412 => 0x2e }, 'dynamicrangeoptimizerlevel' => { 401 => 0x19, 402 => 0x17, 403 => 0xd, 412 => 0x79, 419 => 0x5 }, 'dynamicrangeoptimizermode' => { 186 => 0x15, 401 => 0x18, 402 => 0x16, 412 => [0x77,0x15] }, 'dynamicrangeoptimizersetting' => { 183 => 0x27, 403 => 0xc, 419 => 0x4 }, 'e-dialinprogram' => { 330 => '1.3' }, 'earthpos' => { 451 => 'EarthPos' }, 'earthposaltitude' => { 451 => [\'EarthPos','EarthPosAltitude'] }, 'earthposlatitude' => { 451 => [\'EarthPos','EarthPosLatitude'] }, 'earthposlongitude' => { 451 => [\'EarthPos','EarthPosLongitude'] }, 'earthposrotationw' => { 451 => [\'EarthPos','EarthPosRotationW'] }, 'earthposrotationx' => { 451 => [\'EarthPos','EarthPosRotationX'] }, 'earthposrotationy' => { 451 => [\'EarthPos','EarthPosRotationY'] }, 'earthposrotationz' => { 451 => [\'EarthPos','EarthPosRotationZ'] }, 'earthpostimestamp' => { 451 => [\'EarthPos','EarthPosTimestamp'] }, 'easyexposurecomp' => { 289 => '6.1' }, 'easyexposurecompensation' => { 274 => '6.4', 275 => '6.5', 277 => '6.3', 278 => '6.3', 282 => '5.1', 283 => '4.4', 284 => '5.2', 287 => '6.3', 288 => '6.3' }, 'edgenoisereduction' => { 268 => 0x4, 448 => 0x8028 }, 'edit1' => { 374 => "\xa9ed1" }, 'edit2' => { 374 => "\xa9ed2" }, 'edit3' => { 374 => "\xa9ed3" }, 'edit4' => { 374 => "\xa9ed4" }, 'edit5' => { 374 => "\xa9ed5" }, 'edit6' => { 374 => "\xa9ed6" }, 'edit7' => { 374 => "\xa9ed7" }, 'edit8' => { 374 => "\xa9ed8" }, 'edit9' => { 374 => "\xa9ed9" }, 'edition' => { 487 => 'edition' }, 'editstatus' => { 130 => 0x7, 361 => 'EditStatus', 466 => 'EditStatus' }, 'editversionname' => { 267 => 0x3d136244 }, 'effectivelv' => { 349 => 0x2d }, 'eissn' => { 487 => 'eIssn' }, 'electronicfront-curtainshutter' => { 277 => '5.2', 278 => '5.2', 287 => '5.3', 288 => '5.2' }, 'electronicfrontcurtainshutter' => { 414 => 0x201a }, 'embargodate' => { 490 => 'embargoDate' }, 'embdencrightsexpr' => { 483 => 'EmbdEncRightsExpr' }, 'embeddedencodedrightsexpr' => { 483 => [\'EmbdEncRightsExpr','EmbdEncRightsExprEncRightsExpr'] }, 'embeddedencodedrightsexprlangid' => { 483 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprLangId'] }, 'embeddedencodedrightsexprtype' => { 483 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprEncType'] }, 'embeddedxmpdigest' => { 485 => 'EmbeddedXMPDigest' }, 'encodedby' => { 178 => 'WM/EncodedBy', 366 => "\xa9enc" }, 'encodedwith' => { 368 => 'Encoded_With' }, 'encoder' => { 366 => "\xa9too", 374 => "\xa9too" }, 'encoderid' => { 374 => "\xa9enc" }, 'encryptionkey' => { 388 => 0xa020 }, 'endingpage' => { 487 => 'endingPage' }, 'enduser' => { 301 => 'EndUser' }, 'enduserid' => { 301 => [\'EndUser','EndUserEndUserID'] }, 'endusername' => { 301 => [\'EndUser','EndUserEndUserName'] }, 'engineer' => { 497 => 'engineer' }, 'enhancedarktones' => { 260 => 0x8 }, 'enhancer' => { 295 => 0x300 }, 'enhancervalues' => { 295 => 0x301 }, 'episode' => { 483 => 'Episode' }, 'episodeglobaluniqueid' => { 366 => 'egid' }, 'episodeidentifier' => { 483 => [\'Episode','EpisodeIdentifier'] }, 'episodename' => { 483 => [\'Episode','EpisodeName'] }, 'episodenumber' => { 483 => [\'Episode','EpisodeNumber'] }, 'epsonimageheight' => { 296 => 0x20c }, 'epsonimagewidth' => { 296 => 0x20b }, 'epsonsoftware' => { 296 => 0x20d }, 'equipmentinstitution' => { 450 => 'EquipmentInstitution' }, 'equipmentmanufacturer' => { 450 => 'EquipmentManufacturer' }, 'equipmentversion' => { 292 => 0x0 }, 'event' => { 452 => 'Event', 464 => 'Event', 483 => 'Event', 487 => 'event' }, 'eventalias' => { 486 => 'eventAlias' }, 'eventend' => { 486 => 'eventEnd' }, 'eventid' => { 117 => [\'Event','EventEventID'], 483 => 'EventId' }, 'eventnumber' => { 375 => 0x9, 376 => 0x37, 377 => 0x3a }, 'eventstart' => { 486 => 'eventStart' }, 'eventsubtype' => { 486 => 'eventSubtype' }, 'eventtype' => { 486 => 'eventType' }, 'evsteps' => { 330 => '1.2', 332 => 0x0 }, 'evstepsize' => { 279 => '5.1', 280 => '6.1', 281 => '6.1', 285 => '0.7' }, 'exclusivecoverage' => { 461 => 'ExclusiveCoverage' }, 'exclusivityenddate' => { 490 => 'exclusivityEndDate' }, 'executiveproducer' => { 366 => "\xa9xpd" }, 'exifimageheight' => { 118 => 0xa003, 477 => 'PixelYDimension' }, 'exifimagewidth' => { 118 => 0xa002, 477 => 'PixelXDimension' }, 'exifversion' => { 118 => 0x9000, 477 => 'ExifVersion' }, 'expirationdate' => { 130 => 0x25, 490 => 'expirationDate' }, 'exposure' => { 118 => 0xfe51, 471 => 'Exposure', 473 => 'Exposure' }, 'exposure2012' => { 471 => 'Exposure2012', 473 => 'Exposure2012' }, 'exposureadj' => { 265 => 0x0 }, 'exposureadj2' => { 265 => 0x12 }, 'exposureadjust' => { 391 => 0xc }, 'exposurebracketshotnumber' => { 186 => 0x2d, 412 => 0x2f }, 'exposurebracketstepsize' => { 330 => 0x8 }, 'exposurecompensation' => { 76 => 0x6, 92 => 0x0, 118 => 0x9204, 139 => 0x24, 155 => 'ExposureComp', 175 => 'ExposureCompensation', 180 => 0xd, 181 => 0x53, 182 => 0x1e, 186 => 0x49c0, 296 => 0x1006, 349 => 0x16, 358 => 0x402, 388 => 0xa013, 391 => [0xc,0x35,0x4d], 422 => 0x114c, 423 => 0x114c, 424 => 0x1128, 426 => 0x1180, 427 => 0x1038, 428 => 0x230, 429 => 0x230, 430 => 0x223, 477 => 'ExposureBiasValue' }, 'exposurecompensation2' => { 419 => [0x24,0x26,0x2a] }, 'exposurecompensationset' => { 401 => 0x3, 402 => 0x3, 403 => 0x3, 419 => 0x1e }, 'exposurecompstepsize' => { 274 => '6.3', 275 => '7.3', 277 => '7.3', 278 => '7.3', 283 => '4.3', 287 => '7.3', 288 => '7.3' }, 'exposurecontrolstep' => { 282 => '6.1', 284 => '6.1' }, 'exposurecontrolstepsize' => { 274 => '6.2', 275 => '7.1', 277 => '7.1', 278 => '7.1', 283 => '4.2', 287 => '7.1', 288 => '7.1', 289 => '7.1' }, 'exposuredelaymode' => { 274 => '10.1', 275 => '11.1', 277 => '11.1', 278 => '11.1', 279 => '9.1', 280 => '10.1', 281 => '10.1', 283 => '10.4', 284 => '10.1', 285 => '6.4', 287 => '11.1', 288 => '11.1', 289 => '11.2' }, 'exposureindex' => { 118 => 0xa215, 477 => 'ExposureIndex' }, 'exposurelevelincrements' => { 81 => 0x6, 82 => 0x6, 83 => 0x101, 84 => 0x5, 85 => 0x6, 86 => 0x5, 87 => 0x5, 88 => 0x6, 89 => 0x4, 401 => 0x58, 402 => 0x58 }, 'exposurelockused' => { 459 => 'ExposureLockUsed' }, 'exposuremode' => { 118 => 0xa402, 155 => 'ExposureMode', 180 => 0x1, 181 => 0xa, 182 => 0x0, 183 => 0x0, 186 => 0x34, 291 => 0x200, 311 => 0x40d, 391 => 0x8, 414 => 0xb041, 477 => 'ExposureMode' }, 'exposureprogram' => { 118 => 0x8822, 381 => 0x1001, 394 => [0x17e,0x43], 401 => 0x3c, 402 => 0x3c, 403 => 0x5, 407 => 0x14, 412 => 0x3f, 419 => 0x2, 422 => 0x1175, 423 => 0x1179, 424 => 0x1155, 425 => 0x11d1, 426 => 0x11ad, 427 => 0x1065, 428 => 0x25d, 429 => 0x25d, 430 => 0x24c, 440 => 0xb, 441 => 0xc, 442 => 0xb, 444 => 0x48, 477 => 'ExposureProgram' }, 'exposureshift' => { 291 => 0x203 }, 'exposurestandardadjustment' => { 414 => 0x202d }, 'exposuretime' => { 7 => 0x4, 8 => 0x4, 9 => 0x4, 10 => 0x4, 11 => 0x4, 12 => 0x4, 13 => 0x4, 14 => 0x4, 15 => 0x4, 16 => 0x4, 17 => 0x4, 18 => 0x4, 19 => 0x4, 20 => 0x4, 21 => 0x4, 22 => 0x4, 23 => 0x4, 24 => 0x4, 25 => 0x4, 26 => 0x4, 27 => 0x4, 28 => 0x4, 29 => 0x4, 30 => 0x6, 31 => 0x7, 76 => 0x16, 118 => 0x829a, 136 => 0xfd05, 139 => 0x20, 141 => 0xfa24, 143 => 0xf104, 146 => 0x12, 148 => 0x38, 150 => 0x14, 151 => 0x10, 153 => 0x10, 155 => 'ExposureTime', 180 => 0x9, 181 => 0x35, 182 => 0x48, 183 => 0x8, 186 => 0x49b8, 349 => 0x12, 388 => 0xa018, 391 => [0x32,0x4a], 401 => 0x0, 402 => 0x0, 419 => [0x21,0x23,0x27], 444 => 0x10, 477 => 'ExposureTime' }, 'exposuretime2' => { 391 => [0x33,0x4b] }, 'extdescraccessibility' => { 482 => 'ExtDescrAccessibility' }, 'extendedwbdetect' => { 291 => 0x902 }, 'extender' => { 292 => 0x301 }, 'extenderfirmwareversion' => { 292 => 0x304 }, 'extendermodel' => { 157 => 'Model', 292 => 0x303 }, 'extenderserialnumber' => { 157 => 'SerialNumber', 292 => 0x302 }, 'extenderstatus' => { 347 => 0x3 }, 'externalflash' => { 294 => 0x1201 }, 'externalflashae1' => { 296 => 0x101f }, 'externalflashae1_0' => { 296 => 0x101b }, 'externalflashae2' => { 296 => 0x1020 }, 'externalflashae2_0' => { 296 => 0x101c }, 'externalflashbounce' => { 294 => 0x1204, 296 => 0x1026, 337 => 0x1a }, 'externalflashexposurecomp' => { 224 => 0x17, 337 => 0x19 }, 'externalflashguidenumber' => { 294 => 0x1203, 337 => '24.1' }, 'externalflashgvalue' => { 296 => 0x1025 }, 'externalflashmode' => { 296 => 0x1028, 337 => 0x2 }, 'externalflashzoom' => { 294 => 0x1205, 296 => 0x1027 }, 'externalmetadatalink' => { 483 => 'ExternalMetadataLink' }, 'externalsensorbrightnessvalue' => { 309 => 0x311, 312 => 0x311, 313 => 0x311, 316 => 0x3408 }, 'extrainfoversion' => { 405 => 0x1a }, 'face10position' => { 109 => 0x3f4, 110 => 0x1ec, 205 => 0x28, 334 => 0x12 }, 'face10size' => { 335 => 0x12 }, 'face11position' => { 205 => 0x2c, 334 => 0x14 }, 'face11size' => { 335 => 0x14 }, 'face12position' => { 205 => 0x30, 334 => 0x16 }, 'face12size' => { 335 => 0x16 }, 'face13position' => { 334 => 0x18 }, 'face13size' => { 335 => 0x18 }, 'face14position' => { 334 => 0x1a }, 'face14size' => { 335 => 0x1a }, 'face15position' => { 334 => 0x1c }, 'face15size' => { 335 => 0x1c }, 'face16position' => { 334 => 0x1e }, 'face16size' => { 335 => 0x1e }, 'face17position' => { 334 => 0x20 }, 'face17size' => { 335 => 0x20 }, 'face18position' => { 334 => 0x22 }, 'face18size' => { 335 => 0x22 }, 'face19position' => { 334 => 0x24 }, 'face19size' => { 335 => 0x24 }, 'face1position' => { 54 => 0x8, 109 => 0xd, 110 => 0x18, 205 => 0x4, 306 => 0x1, 334 => 0x0, 378 => 0xbc, 408 => 0x1, 409 => 0x0, 410 => 0x0, 411 => 0x5b }, 'face1size' => { 335 => 0x0 }, 'face20position' => { 334 => 0x26 }, 'face20size' => { 335 => 0x26 }, 'face21position' => { 334 => 0x28 }, 'face21size' => { 335 => 0x28 }, 'face22position' => { 334 => 0x2a }, 'face22size' => { 335 => 0x2a }, 'face23position' => { 334 => 0x2c }, 'face23size' => { 335 => 0x2c }, 'face24position' => { 334 => 0x2e }, 'face24size' => { 335 => 0x2e }, 'face25position' => { 334 => 0x30 }, 'face25size' => { 335 => 0x30 }, 'face26position' => { 334 => 0x32 }, 'face26size' => { 335 => 0x32 }, 'face27position' => { 334 => 0x34 }, 'face27size' => { 335 => 0x34 }, 'face28position' => { 334 => 0x36 }, 'face28size' => { 335 => 0x36 }, 'face29position' => { 334 => 0x38 }, 'face29size' => { 335 => 0x38 }, 'face2position' => { 54 => 0xa, 109 => 0x7c, 110 => 0x4c, 205 => 0x8, 306 => 0x5, 334 => 0x2, 378 => 0xc8, 408 => 0x6, 409 => 0x20, 410 => 0x25, 411 => 0x65 }, 'face2size' => { 335 => 0x2 }, 'face30position' => { 334 => 0x3a }, 'face30size' => { 335 => 0x3a }, 'face31position' => { 334 => 0x3c }, 'face31size' => { 335 => 0x3c }, 'face32position' => { 334 => 0x3e }, 'face32size' => { 335 => 0x3e }, 'face3position' => { 54 => 0xc, 109 => 0xeb, 110 => 0x80, 205 => 0xc, 306 => 0x9, 334 => 0x4, 378 => 0xd4, 408 => 0xb, 409 => 0x40, 410 => 0x4a, 411 => 0x6f }, 'face3size' => { 335 => 0x4 }, 'face4position' => { 54 => 0xe, 109 => 0x15a, 110 => 0xb4, 205 => 0x10, 306 => 0xd, 334 => 0x6, 378 => 0xe0, 408 => 0x10, 409 => 0x60, 410 => 0x6f, 411 => 0x79 }, 'face4size' => { 335 => 0x6 }, 'face5position' => { 54 => 0x10, 109 => 0x1c9, 110 => 0xe8, 205 => 0x14, 306 => 0x11, 334 => 0x8, 378 => 0xec, 408 => 0x15, 409 => 0x80, 410 => 0x94 }, 'face5size' => { 335 => 0x8 }, 'face6position' => { 54 => 0x12, 109 => 0x238, 110 => 0x11c, 205 => 0x18, 334 => 0xa, 378 => 0xf8, 408 => 0x1a, 409 => 0xa0, 410 => 0xb9 }, 'face6size' => { 335 => 0xa }, 'face7position' => { 54 => 0x14, 109 => 0x2a7, 110 => 0x150, 205 => 0x1c, 334 => 0xc, 378 => 0x104, 408 => 0x1f, 409 => 0xc0, 410 => 0xde }, 'face7size' => { 335 => 0xc }, 'face8position' => { 54 => 0x16, 109 => 0x316, 110 => 0x184, 205 => 0x20, 334 => 0xe, 378 => 0x110, 408 => 0x24, 409 => 0xe0, 410 => 0x103 }, 'face8size' => { 335 => 0xe }, 'face9position' => { 54 => 0x18, 109 => 0x385, 110 => 0x1b8, 205 => 0x24, 334 => 0x10 }, 'face9size' => { 335 => 0x10 }, 'facebalanceorigi' => { 465 => 'FaceBalanceOrigI' }, 'facebalanceorigq' => { 465 => 'FaceBalanceOrigQ' }, 'facebalancestrength' => { 465 => 'FaceBalanceStrength' }, 'facebalancewarmth' => { 465 => 'FaceBalanceWarmth' }, 'facedetect' => { 349 => 0x76, 388 => 0x100 }, 'facedetectarea' => { 295 => 0x1201 }, 'facedetectframecrop' => { 295 => 0x1207 }, 'facedetectframesize' => { 54 => 0x3, 109 => 0x1, 110 => 0x4, 205 => 0x1, 295 => 0x1203, 349 => 0x77, 378 => 0xb6 }, 'facedetection' => { 403 => 0x30, 419 => 0x19 }, 'faceid' => { 467 => 'FaceID' }, 'facename' => { 388 => 0x123 }, 'faceposition' => { 333 => 0x2, 389 => 0x4 }, 'facerecognition' => { 388 => 0x120 }, 'facesdetected' => { 54 => 0x2, 55 => 0x2, 56 => 0x3, 109 => 0x0, 110 => 0x2, 112 => 0x211c, 126 => 0x4100, 205 => 0x3, 295 => 0x1200, 314 => 0x3f, 333 => 0x0, 378 => 0xb5, 389 => 0x0, 408 => 0x0, 411 => 0x3, 421 => 0x30 }, 'facesrecognized' => { 307 => 0x0 }, 'fade' => { 414 => 0x2034 }, 'far' => { 456 => 'Far' }, 'feedidentifier' => { 483 => 'FeedIdentifier' }, 'ffid' => { 475 => 'ffid' }, 'field' => { 486 => 'field' }, 'fieldcount' => { 296 => 0x103f }, 'fieldofview' => { 374 => "FOV\x00" }, 'filedatarate' => { 497 => 'fileDataRate' }, 'fileformat' => { 94 => 0x0, 131 => 0x14, 391 => [0x22,0x26], 414 => 0xb000 }, 'fileindex' => { 7 => 0x143, 9 => 0x2d0, 11 => 0x172, 13 => 0x22c, 14 => 0x133, 15 => 0x13f, 16 => 0x1d3, 17 => 0x19b, 18 => 0x1e4, 19 => 0xd0, 20 => 0x1bb, 21 => 0x28c, 22 => 0x1db, 23 => 0x1d9, 24 => [0x270,0x274], 25 => 0x2aa, 26 => 0x2b3, 28 => 0x1eb, 29 => 0x4ae, 315 => 0x0 }, 'filenameasdelivered' => { 301 => 'FileNameAsDelivered' }, 'filenumber' => { 57 => 0x1, 63 => 0x8, 96 => 0x1817, 113 => 'Canon-FileNumber', 206 => 0x4, 377 => 0x10 }, 'filenumbersequence' => { 274 => '12.2', 279 => '3.1', 280 => '4.1', 281 => '4.1', 283 => '11.1', 284 => '4.3', 289 => '5.2' }, 'filesource' => { 118 => 0xa300, 126 => 0x8000, 477 => 'FileSource' }, 'filllight' => { 471 => 'FillLight', 473 => 'FillLight' }, 'filmgraineffect' => { 291 => 0x538 }, 'filmmode' => { 126 => 0x1401, 311 => 0x412, 314 => 0x42 }, 'filmtype' => { 232 => 0x2 }, 'filtereffect' => { 57 => 0xe, 226 => 0x37, 227 => 0x3f, 228 => 0x47, 314 => 0xa1 }, 'finesharpness' => { 349 => 0x70 }, 'finetuneoptcenterweighted' => { 274 => '7.2', 275 => '9.1', 277 => '9.1', 278 => '9.1', 282 => '8.1', 287 => '9.1', 288 => '9.1', 289 => '9.1' }, 'finetuneopthighlightweighted' => { 277 => '46.1', 278 => '46.1', 287 => '46.1', 288 => '46.1' }, 'finetuneoptmatrixmetering' => { 274 => '8.1', 275 => '8.2', 277 => '8.2', 278 => '8.2', 282 => '7.2', 283 => '6.1', 287 => '8.2', 288 => '8.2', 289 => '8.2' }, 'finetuneoptspotmetering' => { 274 => '8.2', 275 => '9.2', 277 => '9.2', 278 => '9.2', 282 => '8.2', 283 => '6.2', 287 => '9.2', 288 => '9.2', 289 => '9.2' }, 'firmware' => { 296 => 0x405, 391 => [0x8c,0x17,0x3b], 468 => 'Firmware' }, 'firmware2' => { 391 => 0x57 }, 'firmwaredate' => { 111 => 0x15, 112 => 0x2001, 375 => 0x4, 377 => 0x30 }, 'firmwarename' => { 388 => 0xa001 }, 'firmwarerevision' => { 19 => 0xa4, 63 => 0x1e, 379 => 0x0 }, 'firmwarerevision2' => { 379 => 0xc }, 'firmwareversion' => { 7 => 0x10b, 11 => 0x136, 14 => 0xff, 15 => 0x107, 137 => [0x415,0xce5], 153 => 0x57, 155 => 'FirmwareVersion', 312 => 0x320, 314 => 0x2, 316 => 0x3109, 349 => 0x230, 374 => ['CNFV','FIRM'], 376 => 0x18, 377 => 0x2a, 381 => 0x2 }, 'firmwareversions' => { 358 => 0x301 }, 'firstphotodate' => { 459 => 'FirstPhotoDate' }, 'firstpublicationdate' => { 301 => 'FirstPublicationDate' }, 'fixtureidentifier' => { 130 => 0x16, 466 => 'FixtureIdentifier' }, 'flash' => { 113 => 'XMP-Flash', 118 => 0x9209, 151 => 0x22, 181 => 0x1f, 182 => 0x15, 377 => 0x5a, 477 => 'Flash' }, 'flashaction' => { 401 => 0x3e, 402 => 0x3e, 414 => 0x2017, 419 => [0x2a,0x2c,0x30] }, 'flashaction2' => { 401 => 0x4c, 402 => 0x4c, 419 => 0x77 }, 'flashactionexternal' => { 419 => [0x78,0x7c] }, 'flashbias' => { 314 => 0x24 }, 'flashchargelevel' => { 296 => 0x1010 }, 'flashcompensation' => { 137 => 0x3f3, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 211 => 0xa, 212 => 0x1b, 468 => 'FlashCompensation' }, 'flashcontrol' => { 401 => 0x23, 402 => 0x1f, 403 => 0x21 }, 'flashcontrolbuilt-in' => { 283 => '16.1', 284 => '23.1', 286 => '23.1', 287 => '24.1' }, 'flashcontrolmode' => { 207 => '9.2', 208 => '9.2', 209 => '9.2', 210 => '9.2', 247 => 0xc4a6, 259 => 0x148, 291 => 0x404 }, 'flashcurtain' => { 314 => 0x48 }, 'flashdevice' => { 296 => 0x1005 }, 'flashenergy' => { 118 => 0xa20b, 477 => 'FlashEnergy' }, 'flashexposurecomp' => { 76 => 0xf, 126 => 0x1011, 158 => 'ExposureComp', 180 => 0x23, 185 => 0x104, 186 => 0x49c1, 224 => 0x12, 291 => 0x401, 296 => 0x1023, 349 => 0x4d, 381 => 0x100b, 391 => [0x3a,0x56], 414 => 0x104 }, 'flashexposurecomp2' => { 251 => 0x4d2 }, 'flashexposurecomparea' => { 275 => '38.4', 277 => '38.4', 278 => '38.4', 287 => '38.4', 288 => '38.4' }, 'flashexposurecompset' => { 183 => 0x10, 322 => 0xe, 401 => 0x14, 402 => 0x12, 403 => 0x23, 419 => 0x1f }, 'flashexposurecompset2' => { 419 => [0x26,0x2c] }, 'flashfired' => { 139 => 0x5d, 158 => 'Fired', 180 => 0x14, 250 => '590.3', 477 => [\'Flash','FlashFired'] }, 'flashfirmwareversion' => { 292 => 0x1002 }, 'flashfunction' => { 186 => 0x31, 477 => [\'Flash','FlashFunction'] }, 'flashgndistance' => { 207 => 0xe, 208 => 0xf, 209 => 0xf, 210 => 0xf, 211 => 0xf, 247 => 0xc4ac, 259 => 0x14e }, 'flashintensity' => { 111 => [0x19,0x5], 291 => 0x405 }, 'flashlevel' => { 276 => 0x9, 414 => 0xb048 }, 'flashmastercompensation' => { 247 => 0xc4c0, 259 => 0x162 }, 'flashmastercontrolmode' => { 247 => 0xc4be, 259 => 0x160 }, 'flashmasteroutput' => { 247 => 0xc4c4, 259 => 0x166 }, 'flashmeteringsegments' => { 349 => 0x20a }, 'flashmode' => { 111 => 0x4, 137 => 0x3f2, 139 => 0x5c, 150 => 0x27, 158 => 'Mode', 180 => 0x2, 181 => 0x20, 182 => 0x16, 183 => 0xf, 224 => 0x87, 291 => 0x400, 296 => 0x1004, 349 => 0xc, 356 => 0x4, 380 => 0x20, 381 => 0x100a, 390 => 0x225, 401 => 0x13, 402 => 0x7f, 403 => 0x20, 419 => 0x10, 422 => 0x1138, 423 => 0x1138, 424 => 0x1114, 425 => 0x1190, 426 => 0x116c, 427 => 0x1024, 428 => 0x21c, 429 => 0x21c, 430 => 0x211, 477 => [\'Flash','FlashMode'] }, 'flashmodel' => { 158 => 'Model', 177 => 'FlashModel', 292 => 0x1001 }, 'flashoptions' => { 330 => 0x2 }, 'flashoptions2' => { 330 => 0x10 }, 'flashoutput' => { 44 => 0x248, 76 => 0x21, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 247 => 0xc4b0, 259 => 0x152 }, 'flashpixversion' => { 118 => 0xa000, 477 => 'FlashpixVersion' }, 'flashredeyemode' => { 477 => [\'Flash','FlashRedEyeMode'] }, 'flashremotecontrol' => { 247 => 0xc4ba, 259 => 0x15c, 291 => 0x403 }, 'flashreturn' => { 477 => [\'Flash','FlashReturn'] }, 'flashserialnumber' => { 158 => 'SerialNumber', 292 => 0x1003 }, 'flashshutterspeed' => { 274 => '20.2', 275 => '23.2', 277 => '23.2', 278 => '23.2', 283 => '15.2', 284 => '22.2', 285 => '7.2', 286 => '22.2', 287 => '23.2', 288 => '23.2', 289 => '23.1' }, 'flashstatus' => { 337 => 0x0, 419 => [0x82,0x86], 432 => 0x31, 433 => 0x39, 434 => 0x39 }, 'flashstatusbuilt-in' => { 403 => [0x87,0x287] }, 'flashstatusexternal' => { 403 => [0x88,0x288] }, 'flashsyncspeed' => { 274 => '20.1', 275 => '23.1', 277 => '23.1', 278 => '23.1', 283 => '15.1', 284 => '22.1', 286 => '22.1', 287 => '23.1', 288 => '23.1' }, 'flashtype' => { 158 => 'Type', 183 => 0x59, 224 => 0x9, 292 => 0x1000 }, 'flashwarning' => { 284 => '30.1', 285 => '7.1', 289 => '31.1', 314 => 0x62 }, 'flashwirelessoption' => { 247 => 0xc4c6, 259 => 0x15a }, 'flexiblespotposition' => { 414 => 0x201d }, 'flickerreduce' => { 390 => 0x218 }, 'flickerreduction' => { 126 => 0x1446, 243 => 0xe84 }, 'flickerreductionindicator' => { 243 => 0x5e2 }, 'fliphorizontal' => { 267 => 0x76a43206 }, 'fnumber' => { 7 => 0x3, 9 => 0x3, 11 => 0x3, 13 => 0x3, 14 => 0x3, 15 => 0x3, 16 => 0x3, 17 => 0x3, 18 => 0x3, 19 => 0x3, 20 => 0x3, 21 => 0x3, 22 => 0x3, 23 => 0x3, 24 => 0x3, 25 => 0x3, 26 => 0x3, 27 => 0x3, 28 => 0x3, 29 => 0x3, 30 => 0x5, 31 => 0x6, 76 => 0x15, 118 => 0x829d, 136 => 0xfd04, 139 => 0x1e, 141 => 0xfa23, 143 => 0xf103, 146 => 0x13, 148 => 0x3c, 150 => 0x1c, 151 => 0x18, 153 => 0xc, 162 => 'FNumber', 180 => 0xa, 181 => 0x36, 182 => 0x47, 183 => 0x9, 186 => 0x49c7, 222 => 0x38, 313 => 0x35a, 349 => 0x13, 388 => 0xa019, 391 => [0x31,0x49], 401 => 0x1, 402 => 0x1, 419 => [0x20,0x22,0x26], 477 => 'FNumber' }, 'focaldistance' => { 457 => 'FocalDistance' }, 'focallength' => { 7 => 0x1d, 8 => 0xa, 9 => 0x23, 10 => 0x9, 11 => 0x1d, 12 => 0x9, 13 => 0x1e, 14 => 0x1d, 15 => 0x1d, 16 => 0x1e, 17 => 0x1e, 18 => 0x1e, 19 => 0x28, 20 => 0x1e, 21 => 0x23, 22 => 0x1e, 23 => 0x1e, 24 => 0x23, 25 => 0x23, 26 => 0x23, 27 => 0x23, 28 => 0x1e, 29 => 0x23, 59 => 0x1, 112 => 0x1d, 118 => 0x920a, 146 => 0x1d, 162 => 'FocalLength', 180 => 0x12, 217 => 0xa, 218 => 0xb, 222 => [0xc,0x3c], 308 => 0x1, 349 => 0x1d, 358 => 0x403, 381 => 0x1500, 400 => 0xe, 426 => 0x1278, 427 => 0x1134, 428 => 0x32c, 429 => 0x32c, 430 => 0x30a, 477 => 'FocalLength' }, 'focallength2' => { 419 => [0x23,0x25,0x29] }, 'focallengthin35mmformat' => { 118 => 0xa405, 388 => 0xa01a, 477 => 'FocalLengthIn35mmFilm' }, 'focallengthtelezoom' => { 400 => 0x10 }, 'focalplaneafpointarea' => { 431 => 0x2 }, 'focalplaneafpointlocation1' => { 431 => 0x6 }, 'focalplaneafpointlocation10' => { 431 => 0x2a }, 'focalplaneafpointlocation11' => { 431 => 0x2e }, 'focalplaneafpointlocation12' => { 431 => 0x32 }, 'focalplaneafpointlocation13' => { 431 => 0x36 }, 'focalplaneafpointlocation14' => { 431 => 0x3a }, 'focalplaneafpointlocation15' => { 431 => 0x3e }, 'focalplaneafpointlocation2' => { 431 => 0xa }, 'focalplaneafpointlocation3' => { 431 => 0xe }, 'focalplaneafpointlocation4' => { 431 => 0x12 }, 'focalplaneafpointlocation5' => { 431 => 0x16 }, 'focalplaneafpointlocation6' => { 431 => 0x1a }, 'focalplaneafpointlocation7' => { 431 => 0x1e }, 'focalplaneafpointlocation8' => { 431 => 0x22 }, 'focalplaneafpointlocation9' => { 431 => 0x26 }, 'focalplaneafpointsused' => { 431 => 0x1 }, 'focalplanediagonal' => { 292 => 0x103, 296 => 0x205 }, 'focalplaneresolutionunit' => { 118 => 0xa210, 477 => 'FocalPlaneResolutionUnit' }, 'focalplanexresolution' => { 118 => 0xa20e, 477 => 'FocalPlaneXResolution' }, 'focalplaneyresolution' => { 118 => 0xa20f, 477 => 'FocalPlaneYResolution' }, 'focalpointx' => { 457 => 'FocalPointX' }, 'focalpointy' => { 457 => 'FocalPointY' }, 'focus' => { 256 => 0x8 }, 'focusareaselection' => { 285 => '15.2' }, 'focusbracket' => { 314 => 0xbd }, 'focusbracketstepsize' => { 291 => 0x308 }, 'focusdistance' => { 162 => 'FocusDistance', 180 => 0x13, 186 => 0x49bb, 217 => 0x9, 218 => 0xa, 222 => [0xb,0x4f], 294 => 0x305, 308 => 0x0, 312 => 0x304, 313 => 0x304 }, 'focusinfoversion' => { 294 => 0x0 }, 'focuslocation' => { 414 => 0x2027 }, 'focusmode' => { 34 => 0x7, 111 => 0x3, 112 => [0x3003,0xd], 126 => 0x1021, 137 => 0x3f5, 139 => 0x38, 155 => 'FocusMode', 180 => 0x30, 182 => 0xe, 183 => 0xc, 224 => 0x7, 291 => 0x301, 296 => 0x100b, 314 => 0x7, 349 => 0xd, 356 => 0x3, 381 => 0x1006, 394 => [0xb,0x5], 400 => [0x15,0x1d], 401 => 0x4d, 402 => 0x4d, 414 => [0xb042,0xb04e,0x201b], 419 => 0x13, 438 => 0x16 }, 'focusmode2' => { 125 => '0.1', 330 => '3.1', 419 => [0x2c,0x2e,0x32] }, 'focusmodesetting' => { 276 => '10.1', 398 => 0x14, 399 => 0x15, 401 => 0x10, 402 => 0xf, 403 => 0x6 }, 'focusmodeswitch' => { 183 => 0x58, 401 => 0x2e }, 'focuspointwrap' => { 274 => '2.2', 275 => '2.2', 277 => '2.1', 278 => '2.1', 282 => '1.1', 283 => '2.2', 284 => '1.1', 287 => '2.2', 288 => '2.1', 289 => '2.5' }, 'focusposition' => { 217 => 0x8, 218 => 0x8, 222 => 0x9, 349 => 0x10, 412 => 0x9bb }, 'focusposition2' => { 419 => [0x29,0x2b,0x2f], 438 => 0x2d, 441 => 0x20 }, 'focusprocess' => { 291 => 0x302 }, 'focusrange' => { 34 => 0x12, 296 => 0x100a }, 'focusrangeindex' => { 340 => '3.1' }, 'focussetting' => { 391 => 0x6 }, 'focusshiftexposurelock' => { 247 => 0xc446, 259 => 0xe8 }, 'focusshiftinterval' => { 247 => 0xc442, 259 => 0xe4 }, 'focusshiftnumbershots' => { 247 => 0xc43a, 259 => 0xdc }, 'focusshiftstepwidth' => { 247 => 0xc43e, 259 => 0xe0 }, 'focusstatus' => { 400 => 0x19, 401 => 0x53, 402 => 0x53 }, 'focusstepcount' => { 294 => 0x301, 296 => 0x100e }, 'focusstepinfinity' => { 294 => 0x303, 296 => 0x103b }, 'focusstepnear' => { 294 => 0x304, 296 => 0x103c }, 'focustrackinglockon' => { 274 => ['1.5','4.1'], 275 => '1.4', 282 => '0.4', 283 => '3.1', 284 => '0.4', 287 => '1.4' }, 'foldernumber' => { 401 => 0x9a, 403 => [0x402,0x114,0x316] }, 'fontcomposite' => { 502 => [\'Fonts','FontsComposite'] }, 'fontface' => { 502 => [\'Fonts','FontsFontFace'] }, 'fontfamily' => { 502 => [\'Fonts','FontsFontFamily'] }, 'fontfilename' => { 502 => [\'Fonts','FontsFontFileName'] }, 'fontname' => { 502 => [\'Fonts','FontsFontName'] }, 'fonts' => { 502 => 'Fonts' }, 'fonttype' => { 502 => [\'Fonts','FontsFontType'] }, 'fontversion' => { 502 => [\'Fonts','FontsVersionString'] }, 'for' => { 365 => 'For' }, 'format' => { 374 => "\xa9fmt", 456 => 'Format', 474 => 'format', 495 => 'Format' }, 'forwardlock' => { 492 => 'forwardlock' }, 'framenum' => { 360 => 0xd7 }, 'framenumber' => { 126 => 0x8003, 186 => 0x3c, 349 => 0x29 }, 'framereadouttime' => { 368 => 'camera.framereadouttimeinmicroseconds' }, 'framing' => { 486 => 'framing' }, 'fullimagesize' => { 414 => 0xb02b }, 'fullpanoheightpixels' => { 459 => 'FullPanoHeightPixels', 460 => 'FullPanoHeightPixels' }, 'fullpanowidthpixels' => { 459 => 'FullPanoWidthPixels', 460 => 'FullPanoWidthPixels' }, 'fullpresssnap' => { 381 => 0x100d }, 'func1button' => { 277 => '14.1', 278 => '14.1', 288 => '14.1' }, 'func1buttonplusdials' => { 277 => '42.1', 278 => '42.1', 288 => '42.1' }, 'func2button' => { 277 => '80.1', 278 => '80.1', 288 => '80.1' }, 'func2buttonplusdials' => { 277 => '81.1' }, 'func3button' => { 277 => '83.1' }, 'funcbutton' => { 274 => ['14.1','15.1'], 275 => '14.1', 283 => '28.1', 284 => '13.1', 287 => '14.1', 289 => '14.1' }, 'funcbuttonplusdials' => { 274 => ['14.2','15.2'], 275 => '14.2', 283 => '31.1', 287 => '42.1' }, 'functionbutton' => { 281 => '13.1', 285 => '5.2' }, 'gainbase' => { 295 => 0x610 }, 'gaincontrol' => { 118 => 0xa407, 477 => 'GainControl' }, 'gamma' => { 118 => 0xa500, 137 => 0x8fe, 319 => 0x11c, 478 => 'Gamma' }, 'garminsettings' => { 374 => 'pmcc' }, 'garminsoftware' => { 374 => 'uuid' }, 'genre' => { 366 => ['gnre',"\xa9gen"], 368 => 'genre', 374 => ['gnre',"\xa9gen"], 483 => 'Genre', 487 => 'genre', 497 => 'genre' }, 'genrecvid' => { 483 => [\'Genre','GenreCvId'] }, 'genrecvtermid' => { 483 => [\'Genre','GenreCvTermId'] }, 'genrecvtermname' => { 483 => [\'Genre','GenreCvTermName'] }, 'genrecvtermrefinedabout' => { 483 => [\'Genre','GenreCvTermRefinedAbout'] }, 'genreid' => { 366 => 'geID' }, 'geography' => { 488 => 'geography' }, 'giftftppriority' => { 461 => 'GIFTFtpPriority' }, 'globalaltitude' => { 363 => 0x419 }, 'globalangle' => { 363 => 0x40d }, 'good' => { 497 => 'good' }, 'googlehostheader' => { 366 => 'gshh' }, 'googlepingmessage' => { 366 => 'gspm' }, 'googlepingurl' => { 366 => 'gspu' }, 'googlesourcedata' => { 366 => 'gssd' }, 'googlestarttime' => { 366 => 'gsst' }, 'googletrackduration' => { 366 => 'gstd' }, 'goprotype' => { 374 => 'GoPr' }, 'gpsaltitude' => { 129 => 0x6, 159 => 'Altitude', 477 => 'GPSAltitude' }, 'gpsaltituderef' => { 129 => 0x5, 477 => 'GPSAltitudeRef' }, 'gpsareainformation' => { 129 => 0x1c, 477 => 'GPSAreaInformation' }, 'gpscoordinates' => { 366 => "\xa9xyz", 368 => 'location.ISO6709', 374 => ['@xyz',"\xa9xyz"] }, 'gpsdatetime' => { 159 => 'DateTime', 477 => 'GPSTimeStamp' }, 'gpsdestbearing' => { 129 => 0x18, 159 => 'Bearing', 477 => 'GPSDestBearing' }, 'gpsdestbearingref' => { 129 => 0x17, 477 => 'GPSDestBearingRef' }, 'gpsdestdistance' => { 129 => 0x1a, 159 => 'Distance', 477 => 'GPSDestDistance' }, 'gpsdestdistanceref' => { 129 => 0x19, 477 => 'GPSDestDistanceRef' }, 'gpsdestlatitude' => { 129 => 0x14, 477 => 'GPSDestLatitude' }, 'gpsdestlongitude' => { 129 => 0x16, 477 => 'GPSDestLongitude' }, 'gpsdifferential' => { 129 => 0x1e, 159 => 'Differential', 477 => 'GPSDifferential' }, 'gpsdop' => { 129 => 0xb, 477 => 'GPSDOP' }, 'gpshpositioningerror' => { 129 => 0x1f, 477 => 'GPSHPositioningError' }, 'gpsimgdirection' => { 129 => 0x11, 477 => 'GPSImgDirection' }, 'gpsimgdirectionref' => { 129 => 0x10, 477 => 'GPSImgDirectionRef' }, 'gpslatitude' => { 115 => 'GpsLatitude', 129 => 0x2, 159 => 'Latitude', 477 => 'GPSLatitude' }, 'gpslongitude' => { 115 => 'GpsLongitude', 129 => 0x4, 159 => 'Longitude', 477 => 'GPSLongitude' }, 'gpsmapdatum' => { 129 => 0x12, 159 => 'Datum', 477 => 'GPSMapDatum' }, 'gpsmeasuremode' => { 129 => 0xa, 159 => 'MeasureMode', 477 => 'GPSMeasureMode' }, 'gpsprocessingmethod' => { 129 => 0x1b, 477 => 'GPSProcessingMethod' }, 'gpssatellites' => { 129 => 0x8, 159 => 'Satellites', 477 => 'GPSSatellites' }, 'gpsspeed' => { 129 => 0xd, 159 => 'Speed', 477 => 'GPSSpeed' }, 'gpsspeedref' => { 129 => 0xc, 477 => 'GPSSpeedRef' }, 'gpsstatus' => { 129 => 0x9, 477 => 'GPSStatus' }, 'gpstrack' => { 129 => 0xf, 159 => 'Heading', 477 => 'GPSTrack' }, 'gpstrackref' => { 129 => 0xe, 477 => 'GPSTrackRef' }, 'gpsversionid' => { 129 => 0x0, 477 => 'GPSVersionID' }, 'gradation' => { 291 => 0x50f }, 'gradientbasedcorractive' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'] }, 'gradientbasedcorramount' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'] }, 'gradientbasedcorrblacks2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'] }, 'gradientbasedcorrbrightness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'] }, 'gradientbasedcorrclarity' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'] }, 'gradientbasedcorrclarity2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'] }, 'gradientbasedcorrcontrast' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'] }, 'gradientbasedcorrcontrast2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'] }, 'gradientbasedcorrcorrectionname' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'] }, 'gradientbasedcorrcorrectionsyncid' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'] }, 'gradientbasedcorrdefringe' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'] }, 'gradientbasedcorrdehaze' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'] }, 'gradientbasedcorrections' => { 471 => 'GradientBasedCorrections', 473 => 'GradientBasedCorrections' }, 'gradientbasedcorrexposure' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'] }, 'gradientbasedcorrexposure2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'] }, 'gradientbasedcorrhighlights2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'] }, 'gradientbasedcorrhue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'] }, 'gradientbasedcorrluminancenoise' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'] }, 'gradientbasedcorrmaskalpha' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'] }, 'gradientbasedcorrmaskangle' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'] }, 'gradientbasedcorrmaskbottom' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'] }, 'gradientbasedcorrmaskcentervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'] }, 'gradientbasedcorrmaskcenterweight' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'] }, 'gradientbasedcorrmaskdabs' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'] }, 'gradientbasedcorrmaskfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'] }, 'gradientbasedcorrmaskflipped' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'] }, 'gradientbasedcorrmaskflow' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'] }, 'gradientbasedcorrmaskfullx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'] }, 'gradientbasedcorrmaskfully' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'] }, 'gradientbasedcorrmaskinputdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'] }, 'gradientbasedcorrmaskleft' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'] }, 'gradientbasedcorrmaskmaskactive' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'] }, 'gradientbasedcorrmaskmaskblendmode' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'gradientbasedcorrmaskmaskdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'] }, 'gradientbasedcorrmaskmaskinverted' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'] }, 'gradientbasedcorrmaskmaskname' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'] }, 'gradientbasedcorrmaskmasks' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'] }, 'gradientbasedcorrmaskmasksalpha' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'gradientbasedcorrmaskmasksangle' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'] }, 'gradientbasedcorrmaskmasksbottom' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'] }, 'gradientbasedcorrmaskmaskscentervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'gradientbasedcorrmaskmaskscenterweight' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'gradientbasedcorrmaskmasksdabs' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'] }, 'gradientbasedcorrmaskmasksfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'] }, 'gradientbasedcorrmaskmasksflipped' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'gradientbasedcorrmaskmasksflow' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'] }, 'gradientbasedcorrmaskmasksfullx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'] }, 'gradientbasedcorrmaskmasksfully' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'] }, 'gradientbasedcorrmaskmasksinputdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'gradientbasedcorrmaskmasksleft' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'] }, 'gradientbasedcorrmaskmasksmaskactive' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'gradientbasedcorrmaskmasksmaskblendmode' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'gradientbasedcorrmaskmasksmaskdigest' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'gradientbasedcorrmaskmasksmaskinverted' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'gradientbasedcorrmaskmasksmaskname' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'gradientbasedcorrmaskmasksmasksubtype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'gradientbasedcorrmaskmasksmasksyncid' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'gradientbasedcorrmaskmasksmaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'gradientbasedcorrmaskmasksmidpoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'gradientbasedcorrmaskmasksorigin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'gradientbasedcorrmaskmasksperimetervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'gradientbasedcorrmaskmasksradius' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'] }, 'gradientbasedcorrmaskmasksreferencepoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'gradientbasedcorrmaskmasksright' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'] }, 'gradientbasedcorrmaskmasksroundness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'gradientbasedcorrmaskmaskssizex' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'gradientbasedcorrmaskmaskssizey' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'gradientbasedcorrmaskmaskstop' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'] }, 'gradientbasedcorrmaskmasksubtype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'] }, 'gradientbasedcorrmaskmasksvalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'gradientbasedcorrmaskmasksversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'] }, 'gradientbasedcorrmaskmaskswhat' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'] }, 'gradientbasedcorrmaskmaskswholeimagearea' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'gradientbasedcorrmaskmasksx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'] }, 'gradientbasedcorrmaskmasksy' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'] }, 'gradientbasedcorrmaskmasksyncid' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'gradientbasedcorrmaskmaskszerox' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'gradientbasedcorrmaskmaskszeroy' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'gradientbasedcorrmaskmaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'] }, 'gradientbasedcorrmaskmidpoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'] }, 'gradientbasedcorrmaskorigin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'] }, 'gradientbasedcorrmaskperimetervalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'gradientbasedcorrmaskradius' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'] }, 'gradientbasedcorrmaskrange' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'gradientbasedcorrmaskrangeareamodels' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'gradientbasedcorrmaskrangeareamodelscolorsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'gradientbasedcorrmaskrangeareamodelscomponents' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'gradientbasedcorrmaskrangecoloramount' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'gradientbasedcorrmaskrangedepthfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'gradientbasedcorrmaskrangedepthmax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'gradientbasedcorrmaskrangedepthmin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'gradientbasedcorrmaskrangeinvert' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'gradientbasedcorrmaskrangelumfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'gradientbasedcorrmaskrangeluminancedepthsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'gradientbasedcorrmaskrangelummax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'gradientbasedcorrmaskrangelummin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'gradientbasedcorrmaskrangelumrange' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'gradientbasedcorrmaskrangesampletype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'gradientbasedcorrmaskrangetype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'gradientbasedcorrmaskrangeversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'gradientbasedcorrmaskreferencepoint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'] }, 'gradientbasedcorrmaskright' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'] }, 'gradientbasedcorrmaskroundness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'] }, 'gradientbasedcorrmasks' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'] }, 'gradientbasedcorrmasksizex' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'] }, 'gradientbasedcorrmasksizey' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'] }, 'gradientbasedcorrmasktop' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'] }, 'gradientbasedcorrmaskvalue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'] }, 'gradientbasedcorrmaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'] }, 'gradientbasedcorrmaskwhat' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'] }, 'gradientbasedcorrmaskwholeimagearea' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'gradientbasedcorrmaskx' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'] }, 'gradientbasedcorrmasky' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'] }, 'gradientbasedcorrmaskzerox' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'] }, 'gradientbasedcorrmaskzeroy' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'] }, 'gradientbasedcorrmoire' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'] }, 'gradientbasedcorrrangemask' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'] }, 'gradientbasedcorrrangemaskareamodels' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'gradientbasedcorrrangemaskareamodelscolorsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'gradientbasedcorrrangemaskareamodelscomponents' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'gradientbasedcorrrangemaskcoloramount' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'gradientbasedcorrrangemaskdepthfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'gradientbasedcorrrangemaskdepthmax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'gradientbasedcorrrangemaskdepthmin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'gradientbasedcorrrangemaskinvert' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'] }, 'gradientbasedcorrrangemasklumfeather' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'gradientbasedcorrrangemaskluminancedepthsampleinfo' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'gradientbasedcorrrangemasklummax' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'gradientbasedcorrrangemasklummin' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'gradientbasedcorrrangemasklumrange' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'gradientbasedcorrrangemasksampletype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'gradientbasedcorrrangemasktype' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'] }, 'gradientbasedcorrrangemaskversion' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'] }, 'gradientbasedcorrsaturation' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'] }, 'gradientbasedcorrshadows2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'] }, 'gradientbasedcorrsharpness' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'] }, 'gradientbasedcorrtemperature' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'] }, 'gradientbasedcorrtexture' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'] }, 'gradientbasedcorrtint' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'] }, 'gradientbasedcorrtoninghue' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'] }, 'gradientbasedcorrtoningsaturation' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'] }, 'gradientbasedcorrwhat' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'] }, 'gradientbasedcorrwhites2012' => { 471 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'], 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'] }, 'grainamount' => { 471 => 'GrainAmount', 473 => 'GrainAmount' }, 'grainfrequency' => { 471 => 'GrainFrequency', 473 => 'GrainFrequency' }, 'grainseed' => { 471 => 'GrainSeed', 473 => 'GrainSeed' }, 'grainsize' => { 471 => 'GrainSize', 473 => 'GrainSize' }, 'graymixeraqua' => { 471 => 'GrayMixerAqua', 473 => 'GrayMixerAqua' }, 'graymixerblue' => { 471 => 'GrayMixerBlue', 473 => 'GrayMixerBlue' }, 'graymixergreen' => { 471 => 'GrayMixerGreen', 473 => 'GrayMixerGreen' }, 'graymixermagenta' => { 471 => 'GrayMixerMagenta', 473 => 'GrayMixerMagenta' }, 'graymixerorange' => { 471 => 'GrayMixerOrange', 473 => 'GrayMixerOrange' }, 'graymixerpurple' => { 471 => 'GrayMixerPurple', 473 => 'GrayMixerPurple' }, 'graymixerred' => { 471 => 'GrayMixerRed', 473 => 'GrayMixerRed' }, 'graymixeryellow' => { 471 => 'GrayMixerYellow', 473 => 'GrayMixerYellow' }, 'graypoint' => { 448 => 0x8021 }, 'greenhue' => { 471 => 'GreenHue', 473 => 'GreenHue' }, 'greensaturation' => { 471 => 'GreenSaturation', 473 => 'GreenSaturation' }, 'griddisplay' => { 274 => '13.3', 275 => '4.3', 277 => '4.2', 278 => '4.2', 279 => '2.2', 283 => '10.5', 284 => '3.4', 285 => '6.1', 287 => '4.4', 288 => '4.2', 289 => '4.2' }, 'gripbatteryadload' => { 328 => 0x5 }, 'gripbatteryadnoload' => { 328 => 0x4 }, 'gripbatterystate' => { 328 => '1.2' }, 'group' => { 471 => 'Group', 473 => 'Group' }, 'groupareaafillumination' => { 275 => '46.4', 278 => '47.4', 287 => '47.4' }, 'grouping' => { 366 => ['grup',"\xa9grp"], 374 => "\xa9grp" }, 'guid' => { 366 => 'GUID' }, 'hasalternative' => { 487 => 'hasAlternative' }, 'hascorrection' => { 487 => 'hasCorrection' }, 'hascorrectiona-lang' => { 487 => [\'hasCorrection','hasCorrectionA-lang'] }, 'hascorrectiona-platform' => { 487 => [\'hasCorrection','hasCorrectionA-platform'] }, 'hascorrectiontext' => { 487 => [\'hasCorrection','hasCorrectionText'] }, 'hascrop' => { 471 => 'HasCrop', 473 => 'HasCrop' }, 'hasextendedxmp' => { 499 => 'HasExtendedXMP' }, 'hassettings' => { 471 => 'HasSettings', 473 => 'HasSettings' }, 'hastranslation' => { 487 => 'hasTranslation' }, 'hasvisibleoverprint' => { 502 => 'HasVisibleOverprint' }, 'hasvisibletransparency' => { 502 => 'HasVisibleTransparency' }, 'hdmioutputn-log' => { 259 => 0x35a }, 'hdr' => { 60 => 0x1, 214 => 0x4, 314 => 0x9e, 349 => 0x85, 414 => 0x200a }, 'hdrlevel' => { 214 => 0x5, 403 => 0x2e, 419 => 0x17 }, 'hdrpmakernote' => { 454 => 'hdrp_makernote' }, 'hdrsetting' => { 403 => 0x2d, 419 => 0x16, 422 => 0x1148, 423 => 0x1148, 424 => 0x1124, 425 => 0x11a0, 426 => 0x117c, 427 => 0x1034, 428 => 0x22c, 429 => 0x22c, 430 => 0x21f }, 'hdrshot' => { 314 => 0x76 }, 'hdvideo' => { 366 => 'hdvd' }, 'headline' => { 130 => 0x69, 483 => 'Headline', 485 => 'Headline' }, 'hierarchicalsubject' => { 463 => 'hierarchicalSubject' }, 'highisomultiplierblue' => { 319 => 0x1a }, 'highisomultipliergreen' => { 319 => 0x19 }, 'highisomultiplierred' => { 319 => 0x18 }, 'highisonoisereduction' => { 16 => 0xbc, 17 => 0xbd, 20 => 0xbd, 28 => 0xc9, 62 => 0x5, 83 => 0x202, 224 => 0xb1, 349 => 0x71, 401 => 0x2c, 402 => 0x26, 403 => 0x26, 414 => 0x2009, 419 => 0x12, 444 => 0x42 }, 'highisonoisereduction2' => { 414 => 0xb050 }, 'highlight' => { 391 => 0xf }, 'highlight2012' => { 471 => 'Highlight2012', 473 => 'Highlight2012' }, 'highlightcolordistortreduct' => { 448 => 0x8026 }, 'highlightlinearitylimit' => { 388 => 0xa025 }, 'highlightprotection' => { 266 => 0x6 }, 'highlightrecovery' => { 471 => 'HighlightRecovery', 473 => 'HighlightRecovery' }, 'highlights' => { 414 => 0x2033, 465 => 'Highlights' }, 'highlights2012' => { 471 => 'Highlights2012', 473 => 'Highlights2012' }, 'highlightsadj' => { 448 => 0x9019 }, 'highlightshadow' => { 314 => 0xad }, 'highlightwarning' => { 314 => 0x8002 }, 'highlowkeyadj' => { 349 => 0x6c }, 'highspeedsync' => { 183 => 0x5, 401 => 0x2, 402 => 0x2 }, 'hintversion' => { 374 => 'hinv' }, 'histogramxml' => { 267 => 0x83a1a25 }, 'history' => { 485 => 'History', 498 => 'History' }, 'historyaction' => { 498 => [\'History','HistoryAction'] }, 'historychanged' => { 498 => [\'History','HistoryChanged'] }, 'historyinstanceid' => { 498 => [\'History','HistoryInstanceID'] }, 'historyparameters' => { 498 => [\'History','HistoryParameters'] }, 'historysoftwareagent' => { 498 => [\'History','HistorySoftwareAgent'] }, 'historywhen' => { 498 => [\'History','HistoryWhen'] }, 'hometowncity' => { 112 => 0x3006, 349 => 0x23, 355 => 0x2 }, 'hometowncitycode' => { 356 => 0x1000 }, 'hometowndst' => { 349 => 0x25, 355 => '0.2' }, 'hue' => { 188 => 0x3b, 227 => 0x3d, 228 => 0x45, 349 => 0x67 }, 'hueadj' => { 270 => 0x2f, 448 => 0x8019 }, 'hueadjust' => { 381 => 0x1016 }, 'hueadjustment' => { 181 => 0x4a, 182 => 0x40, 224 => 0x92, 226 => 0x36 }, 'hueadjustmentaqua' => { 471 => 'HueAdjustmentAqua', 473 => 'HueAdjustmentAqua' }, 'hueadjustmentblue' => { 471 => 'HueAdjustmentBlue', 473 => 'HueAdjustmentBlue' }, 'hueadjustmentgreen' => { 471 => 'HueAdjustmentGreen', 473 => 'HueAdjustmentGreen' }, 'hueadjustmentmagenta' => { 471 => 'HueAdjustmentMagenta', 473 => 'HueAdjustmentMagenta' }, 'hueadjustmentorange' => { 471 => 'HueAdjustmentOrange', 473 => 'HueAdjustmentOrange' }, 'hueadjustmentpurple' => { 471 => 'HueAdjustmentPurple', 473 => 'HueAdjustmentPurple' }, 'hueadjustmentred' => { 471 => 'HueAdjustmentRed', 473 => 'HueAdjustmentRed' }, 'hueadjustmentyellow' => { 471 => 'HueAdjustmentYellow', 473 => 'HueAdjustmentYellow' }, 'huesetting' => { 299 => 0x1011 }, 'humidity' => { 118 => 0x9401, 478 => 'Humidity' }, 'iccprofilename' => { 485 => 'ICCProfile' }, 'iconuri' => { 374 => 'icnu' }, 'idccreativestyle' => { 448 => 0x8000 }, 'idcpreviewlength' => { 448 => 0x202 }, 'idcpreviewstart' => { 448 => 0x201 }, 'identifier' => { 474 => 'identifier', 495 => 'Identifier' }, 'illumination' => { 285 => '0.5', 376 => 0x48 }, 'imageadjustment' => { 224 => 0x80, 256 => 0x5 }, 'imagealterationconstraints' => { 301 => 'ImageAlterationConstraints' }, 'imagearea' => { 237 => 0x10, 240 => 0x10 }, 'imageareaoffset' => { 349 => 0x38 }, 'imagecount' => { 126 => 0x1438, 224 => 0xa5, 417 => 0x11b }, 'imagecreator' => { 301 => 'ImageCreator' }, 'imagecreatorid' => { 301 => [\'ImageCreator','ImageCreatorImageCreatorID'] }, 'imagecreatorimageid' => { 301 => 'ImageCreatorImageID' }, 'imagecreatorname' => { 301 => [\'ImageCreator','ImageCreatorImageCreatorName'] }, 'imagedata' => { 458 => 'Data' }, 'imagedescription' => { 118 => 0x10e, 493 => 'ImageDescription' }, 'imageduplicationconstraints' => { 301 => 'ImageDuplicationConstraints' }, 'imagedustoff' => { 267 => 0xfe443a45 }, 'imageeditcount' => { 349 => 0x41 }, 'imageediting' => { 349 => 0x32 }, 'imageeffects' => { 381 => 0x1010 }, 'imagefileconstraints' => { 301 => 'ImageFileConstraints' }, 'imagefileformatasdelivered' => { 301 => 'ImageFileFormatAsDelivered' }, 'imagefilesizeasdelivered' => { 301 => 'ImageFileSizeAsDelivered' }, 'imageheight' => { 118 => 0x101, 187 => 0xc, 358 => 0x10d, 456 => 'ImageHeight', 493 => 'ImageLength' }, 'imagehistory' => { 118 => 0x9213, 476 => 'ImageHistory' }, 'imageidnumber' => { 309 => 0x340 }, 'imagemimetype' => { 458 => 'Mime' }, 'imagenumber' => { 118 => 0x9211, 155 => 'ImageNumber', 181 => 0xae, 182 => 0x5e, 358 => 0x113, 401 => 0x9b, 403 => [0x400,'276.1',0x314], 468 => 'ImageNumber' }, 'imageprocessingversion' => { 295 => 0x0 }, 'imagequality' => { 155 => 'ImageQuality', 239 => '723.2', 240 => '732.2', 250 => '708.1', 314 => 0x1 }, 'imagequality2' => { 291 => 0x603 }, 'imagerank' => { 461 => 'ImageRank' }, 'imageref' => { 481 => 'ImageRef' }, 'imageregion' => { 483 => 'ImageRegion' }, 'imageregionboundary' => { 483 => [\'ImageRegion','ImageRegionRegionBoundary'] }, 'imageregionboundaryh' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbH'] }, 'imageregionboundaryrx' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbRx'] }, 'imageregionboundaryshape' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbShape'] }, 'imageregionboundaryunit' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbUnit'] }, 'imageregionboundaryvertices' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbVertices'] }, 'imageregionboundaryverticesx' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbX'] }, 'imageregionboundaryverticesy' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbY'] }, 'imageregionboundaryw' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbW'] }, 'imageregionboundaryx' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbX'] }, 'imageregionboundaryy' => { 483 => [\'ImageRegion','ImageRegionRegionBoundaryRbY'] }, 'imageregionctype' => { 483 => [\'ImageRegion','ImageRegionRCtype'] }, 'imageregionctypeidentifier' => { 483 => [\'ImageRegion','ImageRegionRCtypeIdentifier'] }, 'imageregionctypename' => { 483 => [\'ImageRegion','ImageRegionRCtypeName'] }, 'imageregionid' => { 483 => [\'ImageRegion','ImageRegionRId'] }, 'imageregionname' => { 483 => [\'ImageRegion','ImageRegionName'] }, 'imageregionrole' => { 483 => [\'ImageRegion','ImageRegionRRole'] }, 'imageregionroleidentifier' => { 483 => [\'ImageRegion','ImageRegionRRoleIdentifier'] }, 'imageregionrolename' => { 483 => [\'ImageRegion','ImageRegionRRoleName'] }, 'imagereview' => { 276 => '0.4', 285 => '0.4' }, 'imagereviewmonitorofftime' => { 275 => '21.1', 277 => '21.1', 278 => '21.1', 282 => '20.1', 287 => '21.1', 288 => '21.1' }, 'imagereviewtime' => { 274 => '25.1', 276 => '2.1', 279 => '19.1', 280 => '20.1', 281 => '20.1', 283 => '9.2', 284 => '20.1', 289 => '21.2' }, 'imagesizerestriction' => { 490 => 'imageSizeRestriction' }, 'imagestabilization' => { 34 => 0x22, 112 => 0x3020, 126 => 0x1422, 155 => 'ImageStabilization', 181 => 0xbd, 182 => 0x71, 183 => 0x57, 184 => 0x0, 185 => [0x18,0x107,0x113], 186 => 0x49c2, 224 => 0xac, 291 => 0x604, 294 => 0x1600, 314 => 0x1a, 406 => 0x12, 407 => 0x11, 414 => 0xb026 }, 'imagestabilization2' => { 405 => 0xa }, 'imagestabilizationsetting' => { 186 => 0x14, 401 => 0x3d, 402 => 0x3d, 412 => 0x14 }, 'imagestyle' => { 401 => 0x2d, 402 => 0x27 }, 'imagesupplier' => { 301 => 'ImageSupplier' }, 'imagesupplierid' => { 301 => [\'ImageSupplier','ImageSupplierImageSupplierID'] }, 'imagesupplierimageid' => { 301 => 'ImageSupplierImageID' }, 'imagesuppliername' => { 301 => [\'ImageSupplier','ImageSupplierImageSupplierName'] }, 'imagetone' => { 349 => 0x4f }, 'imagetype' => { 130 => 0x82, 301 => 'ImageType' }, 'imageuniqueid' => { 1 => 0x15, 63 => 0x28, 118 => 0xa420, 476 => 'ImageUniqueID', 477 => 'ImageUniqueID' }, 'imagewidth' => { 118 => 0x100, 187 => 0xe, 358 => 0x10c, 456 => 'ImageWidth', 493 => 'ImageWidth' }, 'inclinationangle' => { 448 => 0x900f }, 'inclinationcorrection' => { 448 => 0x900e }, 'incrementaltemperature' => { 471 => 'IncrementalTemperature', 473 => 'IncrementalTemperature' }, 'incrementaltint' => { 471 => 'IncrementalTint', 473 => 'IncrementalTint' }, 'industry' => { 487 => 'industry', 488 => 'industry' }, 'information' => { 368 => 'information', 374 => "\xa9inf" }, 'infourl' => { 374 => 'infu' }, 'infraredilluminator' => { 375 => 0x28 }, 'ingredientexclusion' => { 489 => 'ingredientExclusion' }, 'ingredients' => { 498 => 'Ingredients' }, 'ingredientsalternatepaths' => { 498 => [\'Ingredients','IngredientsAlternatePaths'] }, 'ingredientsdocumentid' => { 498 => [\'Ingredients','IngredientsDocumentID'] }, 'ingredientsfilepath' => { 498 => [\'Ingredients','IngredientsFilePath'] }, 'ingredientsfrompart' => { 498 => [\'Ingredients','IngredientsFromPart'] }, 'ingredientsinstanceid' => { 498 => [\'Ingredients','IngredientsInstanceID'] }, 'ingredientslastmodifydate' => { 498 => [\'Ingredients','IngredientsLastModifyDate'] }, 'ingredientslasturl' => { 498 => [\'Ingredients','IngredientsLastURL'] }, 'ingredientslinkcategory' => { 498 => [\'Ingredients','IngredientsLinkCategory'] }, 'ingredientslinkform' => { 498 => [\'Ingredients','IngredientsLinkForm'] }, 'ingredientsmanager' => { 498 => [\'Ingredients','IngredientsManager'] }, 'ingredientsmanagervariant' => { 498 => [\'Ingredients','IngredientsManagerVariant'] }, 'ingredientsmanageto' => { 498 => [\'Ingredients','IngredientsManageTo'] }, 'ingredientsmanageui' => { 498 => [\'Ingredients','IngredientsManageUI'] }, 'ingredientsmaskmarkers' => { 498 => [\'Ingredients','IngredientsMaskMarkers'] }, 'ingredientsoriginaldocumentid' => { 498 => [\'Ingredients','IngredientsOriginalDocumentID'] }, 'ingredientspartmapping' => { 498 => [\'Ingredients','IngredientsPartMapping'] }, 'ingredientsplacedresolutionunit' => { 498 => [\'Ingredients','IngredientsPlacedResolutionUnit'] }, 'ingredientsplacedxresolution' => { 498 => [\'Ingredients','IngredientsPlacedXResolution'] }, 'ingredientsplacedyresolution' => { 498 => [\'Ingredients','IngredientsPlacedYResolution'] }, 'ingredientsrenditionclass' => { 498 => [\'Ingredients','IngredientsRenditionClass'] }, 'ingredientsrenditionparams' => { 498 => [\'Ingredients','IngredientsRenditionParams'] }, 'ingredientstopart' => { 498 => [\'Ingredients','IngredientsToPart'] }, 'ingredientsversionid' => { 498 => [\'Ingredients','IngredientsVersionID'] }, 'initialcameradolly' => { 459 => 'InitialCameraDolly' }, 'initialhorizontalfovdegrees' => { 459 => 'InitialHorizontalFOVDegrees' }, 'initialverticalfovdegrees' => { 459 => 'InitialVerticalFOVDegrees' }, 'initialviewheadingdegrees' => { 459 => 'InitialViewHeadingDegrees', 460 => 'InitialViewHeadingDegrees' }, 'initialviewpitchdegrees' => { 459 => 'InitialViewPitchDegrees', 460 => 'InitialViewPitchDegrees' }, 'initialviewrolldegrees' => { 459 => 'InitialViewRollDegrees', 460 => 'InitialViewRollDegrees' }, 'initialzoomliveview' => { 274 => '4.4' }, 'initialzoomsetting' => { 274 => '9.3', 283 => '27.3' }, 'instanceid' => { 498 => 'InstanceID' }, 'instructions' => { 485 => 'Instructions' }, 'instrument' => { 497 => 'instrument' }, 'intellectualgenre' => { 482 => 'IntellectualGenre' }, 'intelligentauto' => { 414 => 0xb052, 440 => 0xd, 441 => 0xe, 442 => 0xd }, 'intelligentd-range' => { 314 => 0x79 }, 'intelligentexposure' => { 314 => 0x5d }, 'intelligentresolution' => { 314 => 0x70 }, 'internalflash' => { 180 => 0x2b, 274 => '23.1', 276 => '8.1', 279 => '22.1', 281 => '23.1', 285 => '8.1', 289 => '24.1', 294 => 0x1208 }, 'internalflashae1' => { 296 => 0x1021 }, 'internalflashae1_0' => { 296 => 0x101d }, 'internalflashae2' => { 296 => 0x1022 }, 'internalflashae2_0' => { 296 => 0x101e }, 'internalflashmode' => { 337 => 0x1 }, 'internalflashstrength' => { 337 => 0x3 }, 'internalflashtable' => { 296 => 0x1024 }, 'internallensserialnumber' => { 388 => 0xa005 }, 'internalndfilter' => { 314 => 0x9d }, 'internalserialnumber' => { 63 => 0x96, 75 => 0x9, 126 => 0x10, 186 => 0x49dc, 290 => 0x18, 292 => 0x102, 311 => 0x500, 314 => 0x25, 329 => 0x4, 381 => 0x5, 432 => [0x7c,0xf0], 433 => 0x88, 434 => [0x88,0x8a] }, 'interopindex' => { 118 => 0x1, 478 => 'InteroperabilityIndex' }, 'interval' => { 243 => 0xd0 }, 'intervaldurationhours' => { 259 => 0xa0 }, 'intervaldurationminutes' => { 259 => 0xa4 }, 'intervaldurationseconds' => { 259 => 0xa8 }, 'intervalexposuresmoothing' => { 247 => 0xc416, 259 => 0xb8 }, 'intervalframe' => { 243 => 0xd4 }, 'intervalpriority' => { 247 => 0xc418, 259 => 0xba }, 'intervals' => { 247 => 0xc40e, 259 => 0xb0 }, 'intervalshooting' => { 247 => 0x760c, 255 => 0x760c, 349 => 0x92 }, 'introtime' => { 497 => 'introTime' }, 'introtimescale' => { 497 => [\'introTime','introTimeScale'] }, 'introtimevalue' => { 497 => [\'introTime','introTimeValue'] }, 'iptc-naa' => { 118 => 0x83bb, 319 => 0x83bb }, 'iptcdigest' => { 363 => 0x425 }, 'iptclastedited' => { 483 => 'IptcLastEdited' }, 'isalternativeof' => { 487 => 'isAlternativeOf' }, 'isbn' => { 487 => 'isbn' }, 'iscorrectionof' => { 487 => 'isCorrectionOf' }, 'ismergedhdr' => { 468 => 'IsMergedHDR' }, 'ismergedpanorama' => { 468 => 'IsMergedPanorama' }, 'iso' => { 7 => 0x6, 9 => 0x6, 10 => 0x75, 11 => 0x6, 12 => 0x79, 13 => 0x6, 14 => 0x6, 15 => 0x6, 16 => 0x6, 17 => 0x6, 18 => 0x6, 19 => 0x6, 20 => 0x6, 21 => 0x6, 22 => 0x6, 23 => 0x6, 24 => 0x6, 25 => 0x6, 26 => 0x6, 27 => 0x6, 28 => 0x6, 29 => 0x6, 30 => 0x0, 31 => 0x1, 111 => 0x14, 112 => [0x3014,0x14], 118 => 0x8827, 136 => 0xfd06, 137 => 0x1784, 139 => 0x60, 141 => [0xfa2e,0xfa46], 142 => [0x27,0x28], 143 => 0xf105, 146 => 0x14, 148 => 0x4e, 150 => 0x1e, 151 => 0x1a, 153 => 0x34, 155 => 'ISO', 180 => 0x8, 186 => 0x49ba, 215 => 0x0, 224 => 0x2, 314 => 0xd1, 319 => 0x17, 349 => [0x8b,0x14], 356 => 0x14, 358 => 0x105, 388 => 0xa014, 391 => 0x86, 412 => 0x6f, 419 => [0x1f,0x21,0x25], 477 => 'ISOSpeedRatings' }, 'iso2' => { 215 => 0x6, 234 => 0x265, 235 => 0x25c, 236 => 0x265, 237 => 0x221, 238 => 0x25d, 239 => 0x256, 240 => 0x25d, 244 => 0x2b5, 248 => 0x265, 254 => 0x2b5 }, 'isoauto' => { 330 => '14.4' }, 'isoautohilimit' => { 242 => 0x18eb, 243 => 0xe82, 252 => 0x185d }, 'isoautomax' => { 413 => 0x4 }, 'isoautomin' => { 413 => 0x2 }, 'isoautoparameters' => { 349 => 0x7a }, 'isoautoshuttertime' => { 242 => 0x18ea, 243 => 0xe81, 252 => 0x185c }, 'isodisplay' => { 277 => '4.1', 278 => '4.1', 279 => '2.3', 280 => '3.3', 281 => '3.3', 284 => '3.3', 287 => '4.3', 288 => '4.1', 289 => '4.3' }, 'isofloor' => { 330 => 0x6 }, 'isoselected' => { 313 => 0x359 }, 'isosensitivitystep' => { 282 => '6.2', 284 => '6.2' }, 'isosetting' => { 139 => 0x5e, 151 => 0x14, 155 => 'ISOSetting', 180 => 0x24, 181 => 0x26, 182 => 0x1c, 183 => 0x13, 188 => 0x6, 224 => 0x13, 330 => '17.3', 380 => 0x27, 401 => 0x16, 402 => 0x14, 403 => 0x2, 412 => 0x6d, 413 => 0x0 }, 'isospeed' => { 118 => 0x8833, 478 => 'ISOSpeed' }, 'isospeedlatitudeyyy' => { 118 => 0x8834, 478 => 'ISOSpeedLatitudeyyy' }, 'isospeedlatitudezzz' => { 118 => 0x8835, 478 => 'ISOSpeedLatitudezzz' }, 'isostepsize' => { 274 => '6.1', 275 => '7.2', 277 => '7.2', 278 => '7.2', 283 => '4.1', 287 => '7.2', 288 => '7.2' }, 'isovalue' => { 296 => 0x1001 }, 'isrccode' => { 374 => "\xa9isr" }, 'issn' => { 487 => 'issn' }, 'issueidentifier' => { 487 => 'issueIdentifier' }, 'issuename' => { 487 => 'issueName' }, 'issueteaser' => { 487 => 'issueTeaser' }, 'issuetype' => { 487 => 'issueType' }, 'istranslationof' => { 487 => 'isTranslationOf' }, 'itunesu' => { 366 => 'itnu' }, 'jobname' => { 479 => 'JobName' }, 'jobref' => { 496 => 'JobRef' }, 'jobrefid' => { 496 => [\'JobRef','JobRefId'] }, 'jobrefname' => { 496 => [\'JobRef','JobRefName'] }, 'jobrefurl' => { 496 => [\'JobRef','JobRefUrl'] }, 'jobstatus' => { 479 => 'JobStatus' }, 'jpeg-heifswitch' => { 414 => 0x2039 }, 'jpeghandling' => { 471 => 'JPEGHandling', 473 => 'JPEGHandling' }, 'jpegquality' => { 10 => 0x66, 314 => 0x43, 316 => 0x3034, 414 => 0xb047 }, 'jpegsize' => { 316 => 0x303a }, 'jpgcompression' => { 243 => 0x7d4 }, 'jpgfromraw' => { 96 => 0x2007, 113 => 'Exif-JpgFromRaw', 319 => 0x2e }, 'jpgrecordedpixels' => { 330 => '14.1' }, 'jurisdiction' => { 469 => 'jurisdiction' }, 'kelvinwb_01' => { 338 => 0x5 }, 'kelvinwb_02' => { 338 => 0x9 }, 'kelvinwb_03' => { 338 => 0xd }, 'kelvinwb_04' => { 338 => 0x11 }, 'kelvinwb_05' => { 338 => 0x15 }, 'kelvinwb_06' => { 338 => 0x19 }, 'kelvinwb_07' => { 338 => 0x1d }, 'kelvinwb_08' => { 338 => 0x21 }, 'kelvinwb_09' => { 338 => 0x25 }, 'kelvinwb_10' => { 338 => 0x29 }, 'kelvinwb_11' => { 338 => 0x2d }, 'kelvinwb_12' => { 338 => 0x31 }, 'kelvinwb_13' => { 338 => 0x35 }, 'kelvinwb_14' => { 338 => 0x39 }, 'kelvinwb_15' => { 338 => 0x3d }, 'kelvinwb_16' => { 338 => 0x41 }, 'kelvinwb_daylight' => { 338 => 0x1 }, 'key' => { 497 => 'key' }, 'keystonecompensation' => { 295 => 0x1900 }, 'keystonedirection' => { 295 => 0x1901 }, 'keystonevalue' => { 295 => 0x1906 }, 'keyword' => { 366 => 'keyw', 487 => 'keyword' }, 'keywords' => { 130 => 0x19, 156 => 'Keywords', 300 => 'Keywords', 365 => 'Keywords', 368 => 'keywords', 466 => 'keywords', 484 => 'Keywords', 495 => 'Keywords' }, 'killdate' => { 487 => 'killDate' }, 'killdatea-platform' => { 487 => [\'killDate','killDateA-platform'] }, 'killdatedate' => { 487 => [\'killDate','killDateDate'] }, 'label' => { 304 => 'Label', 495 => 'Label' }, 'labelname1' => { 481 => [\'TagStructure','TagStructureLabelName'] }, 'labelname2' => { 481 => [\'TagStructure','TagStructureSubLabelsLabelName'] }, 'labelname3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsLabelName'] }, 'labelname4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsLabelName'] }, 'labelname5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, 'labelname6' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, 'landmark' => { 314 => 0x6f }, 'language' => { 474 => 'language' }, 'largestvalidinteriorrectheight' => { 459 => 'LargestValidInteriorRectHeight' }, 'largestvalidinteriorrectleft' => { 459 => 'LargestValidInteriorRectLeft' }, 'largestvalidinteriorrecttop' => { 459 => 'LargestValidInteriorRectTop' }, 'largestvalidinteriorrectwidth' => { 459 => 'LargestValidInteriorRectWidth' }, 'lastphotodate' => { 459 => 'LastPhotoDate' }, 'lasturl' => { 498 => 'LastURL' }, 'lateralchromaticaberration' => { 414 => 0x2012 }, 'lateralchromaticaberrationcorrectionalreadyapplied' => { 468 => 'LateralChromaticAberrationCorrectionAlreadyApplied' }, 'lc1' => { 340 => 0x2 }, 'lc10' => { 340 => 0xb }, 'lc11' => { 340 => 0xc }, 'lc12' => { 340 => 0xd }, 'lc14' => { 340 => 0xf }, 'lc15' => { 340 => 0x10 }, 'lc3' => { 340 => 0x4 }, 'lc4' => { 340 => 0x5 }, 'lc5' => { 340 => 0x6 }, 'lc6' => { 340 => 0x7 }, 'lc7' => { 340 => 0x8 }, 'lc8' => { 340 => 0x9 }, 'lcdillumination' => { 274 => '17.5', 275 => '5.2', 277 => '5.1', 278 => '5.1', 283 => '10.3', 284 => '4.2', 287 => '5.2', 288 => '5.1', 289 => '5.4' }, 'lcheditor' => { 267 => 0x8ae85e }, 'legacyiptcdigest' => { 485 => 'LegacyIPTCDigest' }, 'legalcode' => { 469 => 'legalcode' }, 'lens' => { 118 => 0xfdea, 224 => 0x84, 468 => 'Lens' }, 'lensaperturerange' => { 391 => [0x30,0x48] }, 'lenscorrectionsettings' => { 476 => 'LensCorrectionSettings' }, 'lensdistortinfo' => { 468 => 'LensDistortInfo' }, 'lensdistortionparams' => { 296 => 0x206 }, 'lense-mountversion' => { 403 => 0x3f0, 447 => 0xd }, 'lensfirmware' => { 382 => 0x20, 388 => 0xa004 }, 'lensfirmwareversion' => { 292 => 0x204, 314 => 0x60, 403 => 0x3f3, 447 => 0x14 }, 'lensfocallength' => { 102 => 0xf0512, 340 => 0x9 }, 'lensfocalrange' => { 391 => [0xa,0x2a] }, 'lensfocusfunctionbuttons' => { 275 => '55.1', 277 => '52.1', 278 => '52.1', 287 => '52.1', 288 => '52.1' }, 'lensformat' => { 426 => 0x1891, 428 => 0x18bd, 429 => 0x18ed, 430 => 0x17f1, 432 => 0x106, 433 => 0x106, 443 => 0x603, 444 => 0x5d }, 'lensfstops' => { 216 => 0x7, 217 => 0xc, 218 => 0xd, 222 => 0xe, 224 => 0x8b, 340 => '0.3' }, 'lensid' => { 222 => 0x30, 468 => 'LensID' }, 'lensinfo' => { 118 => 0xa432, 346 => 0x2a, 468 => 'LensInfo', 478 => 'LensSpecification' }, 'lenskind' => { 340 => 0x1 }, 'lensmake' => { 118 => 0xa433, 162 => 'Make', 478 => 'LensMake' }, 'lensmanualdistortionamount' => { 471 => 'LensManualDistortionAmount', 473 => 'LensManualDistortionAmount' }, 'lensmaxaperturerange' => { 391 => 0x2b }, 'lensmodel' => { 7 => 0x937, 14 => 0x92b, 15 => 0x933, 63 => 0x95, 118 => 0xa434, 162 => 'Model', 177 => 'LensModel', 219 => 0x18a, 220 => 0x18b, 221 => 0x2ac, 292 => 0x203, 346 => 0xc, 358 => 0x412, 478 => 'LensModel' }, 'lensmount' => { 403 => 0x99, 426 => 0x1892, 428 => 0x18be, 429 => 0x18ee, 430 => 0x17f2, 432 => 0x105, 433 => 0x105, 443 => 0x604, 444 => 0x5e }, 'lensmount2' => { 447 => 0x8 }, 'lensprofilechromaticaberrationscale' => { 471 => 'LensProfileChromaticAberrationScale', 473 => 'LensProfileChromaticAberrationScale' }, 'lensprofiledigest' => { 471 => 'LensProfileDigest', 473 => 'LensProfileDigest' }, 'lensprofiledistortionscale' => { 471 => 'LensProfileDistortionScale', 473 => 'LensProfileDistortionScale' }, 'lensprofileenable' => { 471 => 'LensProfileEnable', 473 => 'LensProfileEnable' }, 'lensprofilefilename' => { 471 => 'LensProfileFilename', 473 => 'LensProfileFilename' }, 'lensprofileisembedded' => { 471 => 'LensProfileIsEmbedded', 473 => 'LensProfileIsEmbedded' }, 'lensprofilematchkeycameramodelname' => { 471 => 'LensProfileMatchKeyCameraModelName', 473 => 'LensProfileMatchKeyCameraModelName' }, 'lensprofilematchkeyexifmake' => { 471 => 'LensProfileMatchKeyExifMake', 473 => 'LensProfileMatchKeyExifMake' }, 'lensprofilematchkeyexifmodel' => { 471 => 'LensProfileMatchKeyExifModel', 473 => 'LensProfileMatchKeyExifModel' }, 'lensprofilematchkeyisraw' => { 471 => 'LensProfileMatchKeyIsRaw', 473 => 'LensProfileMatchKeyIsRaw' }, 'lensprofilematchkeylensid' => { 471 => 'LensProfileMatchKeyLensID', 473 => 'LensProfileMatchKeyLensID' }, 'lensprofilematchkeylensinfo' => { 471 => 'LensProfileMatchKeyLensInfo', 473 => 'LensProfileMatchKeyLensInfo' }, 'lensprofilematchkeylensname' => { 471 => 'LensProfileMatchKeyLensName', 473 => 'LensProfileMatchKeyLensName' }, 'lensprofilematchkeysensorformatfactor' => { 471 => 'LensProfileMatchKeySensorFormatFactor', 473 => 'LensProfileMatchKeySensorFormatFactor' }, 'lensprofilename' => { 471 => 'LensProfileName', 473 => 'LensProfileName' }, 'lensprofilesetup' => { 471 => 'LensProfileSetup', 473 => 'LensProfileSetup' }, 'lensprofilevignettingscale' => { 471 => 'LensProfileVignettingScale', 473 => 'LensProfileVignettingScale' }, 'lensproperties' => { 292 => 0x20b }, 'lensserialnumber' => { 21 => 0x164, 32 => 0x16b, 61 => 0x0, 118 => 0xa435, 162 => 'SerialNumber', 292 => 0x202, 312 => 0x321, 314 => 0x52, 374 => 'LENS', 382 => 0x30, 468 => 'LensSerialNumber', 478 => 'LensSerialNumber' }, 'lensspec' => { 398 => 0x0, 399 => 0x0, 400 => 0x0, 414 => 0xb02a }, 'lensspecfeatures' => { 432 => [0x115,0x116], 433 => [0x116,0x1ed,0x1f0,0x21c,0x21e] }, 'lenstemperature' => { 296 => 0x1008 }, 'lenstype' => { 7 => 0xe2, 8 => 0xd, 9 => 0x1a7, 10 => 0xc, 11 => 0x111, 12 => 0xc, 13 => 0x14f, 14 => 0xd6, 15 => 0xde, 16 => 0xf6, 17 => 0xea, 18 => 0xff, 19 => [0xc,0x97], 20 => 0xe6, 21 => 0x153, 22 => 0xea, 23 => 0xe8, 24 => 0x127, 25 => 0x161, 26 => 0x166, 27 => 0x184, 28 => 0x112, 29 => 0x189, 34 => 0x16, 185 => 0x10c, 186 => 0x49bd, 224 => 0x83, 292 => 0x201, 305 => 0x16, 309 => 0x310, 311 => 0x303, 312 => 0x303, 314 => 0x51, 316 => 0x3405, 341 => 0x0, 342 => 0x0, 343 => 0x1, 344 => 0x1, 345 => 0x1, 347 => 0x0, 388 => 0xa003, 391 => 0x27, 414 => 0xb027, 426 => 0x1896, 428 => 0x18c2, 429 => 0x18f2, 430 => 0x17f6, 432 => 0x109, 433 => 0x109, 443 => 0x608, 444 => 0x62 }, 'lenstype2' => { 403 => 0x3f7, 426 => 0x1893, 428 => 0x18bf, 429 => 0x18ef, 430 => 0x17f3, 432 => 0x107, 433 => 0x107, 443 => 0x605, 444 => 0x60 }, 'lenstype3' => { 447 => 0x9 }, 'lenstypemake' => { 314 => 0xc4 }, 'lenstypemodel' => { 314 => [0xc5,0xe4] }, 'lenszoomposition' => { 440 => 0x19, 441 => 0x1e, 444 => [0x342,0x34e,0x35a] }, 'levelindicator' => { 322 => 0x15 }, 'levelmeter' => { 374 => ['Lvlm','lvlm'] }, 'levelorientation' => { 348 => 0x0 }, 'license' => { 469 => 'license' }, 'licensee' => { 301 => 'Licensee' }, 'licenseeid' => { 301 => [\'Licensee','LicenseeLicenseeID'] }, 'licenseeimageid' => { 301 => 'LicenseeImageID' }, 'licenseeimagenotes' => { 301 => 'LicenseeImageNotes' }, 'licenseename' => { 301 => [\'Licensee','LicenseeLicenseeName'] }, 'licenseenddate' => { 301 => 'LicenseEndDate' }, 'licenseeprojectreference' => { 301 => 'LicenseeProjectReference' }, 'licenseetransactionid' => { 301 => 'LicenseeTransactionID' }, 'licenseid' => { 301 => 'LicenseID' }, 'licensestartdate' => { 301 => 'LicenseStartDate' }, 'licensetransactiondate' => { 301 => 'LicenseTransactionDate' }, 'licensetype' => { 475 => 'licensetype' }, 'licensor' => { 301 => 'Licensor' }, 'licensorcity' => { 301 => [\'Licensor','LicensorLicensorCity'] }, 'licensorcountry' => { 301 => [\'Licensor','LicensorLicensorCountry'] }, 'licensoremail' => { 301 => [\'Licensor','LicensorLicensorEmail'] }, 'licensorextendedaddress' => { 301 => [\'Licensor','LicensorLicensorExtendedAddress'] }, 'licensorid' => { 301 => [\'Licensor','LicensorLicensorID'] }, 'licensorimageid' => { 301 => 'LicensorImageID' }, 'licensorname' => { 301 => [\'Licensor','LicensorLicensorName'] }, 'licensornotes' => { 301 => 'LicensorNotes' }, 'licensorpostalcode' => { 301 => [\'Licensor','LicensorLicensorPostalCode'] }, 'licensorregion' => { 301 => [\'Licensor','LicensorLicensorRegion'] }, 'licensorstreetaddress' => { 301 => [\'Licensor','LicensorLicensorStreetAddress'] }, 'licensortelephone1' => { 301 => [\'Licensor','LicensorLicensorTelephone1'] }, 'licensortelephone2' => { 301 => [\'Licensor','LicensorLicensorTelephone2'] }, 'licensortelephonetype1' => { 301 => [\'Licensor','LicensorLicensorTelephoneType1'] }, 'licensortelephonetype2' => { 301 => [\'Licensor','LicensorLicensorTelephoneType2'] }, 'licensortransactionid' => { 301 => 'LicensorTransactionID' }, 'licensorurl' => { 301 => [\'Licensor','LicensorLicensorURL'] }, 'lightcondition' => { 296 => 0x1009 }, 'lightreading' => { 349 => 0x15 }, 'lightsource' => { 118 => 0x9208, 224 => 0x90, 299 => 0x1000, 477 => 'LightSource' }, 'lightsourcespecial' => { 390 => 0x21d }, 'lightswitch' => { 287 => '0.1', 289 => '0.1' }, 'lightvaluecenter' => { 296 => 0x103d }, 'lightvalueperiphery' => { 296 => 0x103e }, 'limitafareamodeselection' => { 275 => '51.1', 277 => '49.1', 278 => '49.1', 287 => '49.1', 288 => '49.1' }, 'linearitylimitblue' => { 319 => 0x10 }, 'linearitylimitgreen' => { 319 => 0xf }, 'linearitylimitred' => { 319 => 0xe }, 'link' => { 487 => 'link' }, 'linkaetoafpoint' => { 330 => '14.2' }, 'linkedencodedrightsexpr' => { 483 => [\'LinkedEncRightsExpr','LinkedEncRightsExprLinkedRightsExpr'] }, 'linkedencodedrightsexprlangid' => { 483 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprLangId'] }, 'linkedencodedrightsexprtype' => { 483 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprEncType'] }, 'linkedencrightsexpr' => { 483 => 'LinkedEncRightsExpr' }, 'livephotoauto' => { 368 => 'live-photo.auto' }, 'livephotovitalityscore' => { 368 => 'live-photo.vitality-score' }, 'livephotovitalityscoringversion' => { 368 => 'live-photo.vitality-scoring-version' }, 'liveviewaf' => { 279 => '32.1', 289 => '34.1' }, 'liveviewafareamode' => { 284 => '34.1' }, 'liveviewafmethod' => { 419 => 0x20 }, 'liveviewafmode' => { 284 => '34.2' }, 'liveviewafsetting' => { 403 => 0x36 }, 'liveviewbuttonoptions' => { 275 => '50.2', 277 => '48.2', 278 => '48.2', 287 => '48.2', 288 => '48.2' }, 'liveviewfocusmode' => { 403 => [0x8b,0x28b] }, 'liveviewmetering' => { 403 => [0x84,0x284] }, 'liveviewmonitorofftime' => { 275 => '21.2', 277 => '21.2', 278 => '21.2', 280 => '20.2', 281 => '20.2', 282 => '20.2', 284 => '20.2', 287 => '21.2', 288 => '21.2' }, 'locallocationname' => { 388 => 0x30 }, 'location' => { 223 => 0x9, 314 => 0x67, 464 => 'Location', 482 => 'Location', 486 => 'location', 487 => 'location' }, 'locationaccuracyhorizontal' => { 368 => 'location.accuracy.horizontal' }, 'locationareacode' => { 470 => 'lac' }, 'locationbody' => { 368 => 'location.body' }, 'locationcreated' => { 483 => 'LocationCreated' }, 'locationcreatedcity' => { 483 => [\'LocationCreated','LocationCreatedCity'] }, 'locationcreatedcountrycode' => { 483 => [\'LocationCreated','LocationCreatedCountryCode'] }, 'locationcreatedcountryname' => { 483 => [\'LocationCreated','LocationCreatedCountryName'] }, 'locationcreatedgpsaltitude' => { 483 => [\'LocationCreated','LocationCreatedGPSAltitude'] }, 'locationcreatedgpslatitude' => { 483 => [\'LocationCreated','LocationCreatedGPSLatitude'] }, 'locationcreatedgpslongitude' => { 483 => [\'LocationCreated','LocationCreatedGPSLongitude'] }, 'locationcreatedidentifier' => { 483 => [\'LocationCreated','LocationCreatedIdentifier'] }, 'locationcreatedlocationid' => { 483 => [\'LocationCreated','LocationCreatedLocationId'] }, 'locationcreatedlocationname' => { 483 => [\'LocationCreated','LocationCreatedLocationName'] }, 'locationcreatedprovincestate' => { 483 => [\'LocationCreated','LocationCreatedProvinceState'] }, 'locationcreatedsublocation' => { 483 => [\'LocationCreated','LocationCreatedSublocation'] }, 'locationcreatedworldregion' => { 483 => [\'LocationCreated','LocationCreatedWorldRegion'] }, 'locationdate' => { 368 => 'location.date' }, 'locationinformation' => { 374 => 'loci' }, 'locationname' => { 368 => 'location.name', 388 => 0x31 }, 'locationnote' => { 368 => 'location.note' }, 'locationrole' => { 368 => 'location.role' }, 'locationshown' => { 483 => 'LocationShown' }, 'locationshowncity' => { 483 => [\'LocationShown','LocationShownCity'] }, 'locationshowncountrycode' => { 483 => [\'LocationShown','LocationShownCountryCode'] }, 'locationshowncountryname' => { 483 => [\'LocationShown','LocationShownCountryName'] }, 'locationshowngpsaltitude' => { 483 => [\'LocationShown','LocationShownGPSAltitude'] }, 'locationshowngpslatitude' => { 483 => [\'LocationShown','LocationShownGPSLatitude'] }, 'locationshowngpslongitude' => { 483 => [\'LocationShown','LocationShownGPSLongitude'] }, 'locationshownidentifier' => { 483 => [\'LocationShown','LocationShownIdentifier'] }, 'locationshownlocationid' => { 483 => [\'LocationShown','LocationShownLocationId'] }, 'locationshownlocationname' => { 483 => [\'LocationShown','LocationShownLocationName'] }, 'locationshownprovincestate' => { 483 => [\'LocationShown','LocationShownProvinceState'] }, 'locationshownsublocation' => { 483 => [\'LocationShown','LocationShownSublocation'] }, 'locationshownworldregion' => { 483 => [\'LocationShown','LocationShownWorldRegion'] }, 'logcomment' => { 497 => 'logComment' }, 'longdescription' => { 366 => 'ldes' }, 'longexposurenoisereduction' => { 62 => 0x4, 83 => 0x201, 84 => 0x1, 85 => 0x2, 86 => 0x1, 87 => 0x1, 88 => 0x2, 89 => 0x1, 314 => 0x49, 401 => 0x2b, 402 => 0x25, 403 => 0x25, 414 => 0x2008, 419 => 0x11, 444 => 0x44 }, 'longexposurenrused' => { 314 => 0xbe }, 'look' => { 471 => 'Look', 473 => 'Look' }, 'lookamount' => { 471 => [\'Look','LookAmount'], 473 => [\'Look','LookAmount'] }, 'lookcluster' => { 471 => [\'Look','LookCluster'], 473 => [\'Look','LookCluster'] }, 'lookcopyright' => { 471 => [\'Look','LookCopyright'], 473 => [\'Look','LookCopyright'] }, 'lookgroup' => { 471 => [\'Look','LookGroup'], 473 => [\'Look','LookGroup'] }, 'lookname' => { 471 => 'LookName', 473 => 'LookName' }, 'lookparameters' => { 471 => [\'Look','LookParameters'], 473 => [\'Look','LookParameters'] }, 'lookparameterscameraprofile' => { 471 => [\'Look','LookParametersCameraProfile'], 473 => [\'Look','LookParametersCameraProfile'] }, 'lookparametersclarity2012' => { 471 => [\'Look','LookParametersClarity2012'], 473 => [\'Look','LookParametersClarity2012'] }, 'lookparametersconverttograyscale' => { 471 => [\'Look','LookParametersConvertToGrayscale'], 473 => [\'Look','LookParametersConvertToGrayscale'] }, 'lookparameterslooktable' => { 471 => [\'Look','LookParametersLookTable'], 473 => [\'Look','LookParametersLookTable'] }, 'lookparametersprocessversion' => { 471 => [\'Look','LookParametersProcessVersion'], 473 => [\'Look','LookParametersProcessVersion'] }, 'lookparameterstonecurvepv2012' => { 471 => [\'Look','LookParametersToneCurvePV2012'], 473 => [\'Look','LookParametersToneCurvePV2012'] }, 'lookparameterstonecurvepv2012blue' => { 471 => [\'Look','LookParametersToneCurvePV2012Blue'], 473 => [\'Look','LookParametersToneCurvePV2012Blue'] }, 'lookparameterstonecurvepv2012green' => { 471 => [\'Look','LookParametersToneCurvePV2012Green'], 473 => [\'Look','LookParametersToneCurvePV2012Green'] }, 'lookparameterstonecurvepv2012red' => { 471 => [\'Look','LookParametersToneCurvePV2012Red'], 473 => [\'Look','LookParametersToneCurvePV2012Red'] }, 'lookparametersversion' => { 471 => [\'Look','LookParametersVersion'], 473 => [\'Look','LookParametersVersion'] }, 'looksupportsamount' => { 471 => [\'Look','LookSupportsAmount'], 473 => [\'Look','LookSupportsAmount'] }, 'looksupportsmonochrome' => { 471 => [\'Look','LookSupportsMonochrome'], 473 => [\'Look','LookSupportsMonochrome'] }, 'looksupportsoutputreferred' => { 471 => [\'Look','LookSupportsOutputReferred'], 473 => [\'Look','LookSupportsOutputReferred'] }, 'lookuuid' => { 471 => [\'Look','LookUUID'], 473 => [\'Look','LookUUID'] }, 'loop' => { 497 => 'loop' }, 'loopstyle' => { 374 => 'LOOP' }, 'luminanceadjustmentaqua' => { 471 => 'LuminanceAdjustmentAqua', 473 => 'LuminanceAdjustmentAqua' }, 'luminanceadjustmentblue' => { 471 => 'LuminanceAdjustmentBlue', 473 => 'LuminanceAdjustmentBlue' }, 'luminanceadjustmentgreen' => { 471 => 'LuminanceAdjustmentGreen', 473 => 'LuminanceAdjustmentGreen' }, 'luminanceadjustmentmagenta' => { 471 => 'LuminanceAdjustmentMagenta', 473 => 'LuminanceAdjustmentMagenta' }, 'luminanceadjustmentorange' => { 471 => 'LuminanceAdjustmentOrange', 473 => 'LuminanceAdjustmentOrange' }, 'luminanceadjustmentpurple' => { 471 => 'LuminanceAdjustmentPurple', 473 => 'LuminanceAdjustmentPurple' }, 'luminanceadjustmentred' => { 471 => 'LuminanceAdjustmentRed', 473 => 'LuminanceAdjustmentRed' }, 'luminanceadjustmentyellow' => { 471 => 'LuminanceAdjustmentYellow', 473 => 'LuminanceAdjustmentYellow' }, 'luminancenoisereduction' => { 102 => 0x20600, 108 => 0x5f, 391 => 0x1b }, 'luminancenoisereductioncontrast' => { 471 => 'LuminanceNoiseReductionContrast', 473 => 'LuminanceNoiseReductionContrast' }, 'luminancenoisereductiondetail' => { 471 => 'LuminanceNoiseReductionDetail', 473 => 'LuminanceNoiseReductionDetail' }, 'luminancesmoothing' => { 471 => 'LuminanceSmoothing', 473 => 'LuminanceSmoothing' }, 'lyrics' => { 366 => "\xa9lyr", 374 => "\xa9lyr", 497 => 'lyrics' }, 'lyricsuri' => { 374 => 'lrcu' }, 'm16cversion' => { 309 => 0x333 }, 'macatom' => { 472 => 'macAtom' }, 'macatomapplicationcode' => { 472 => [\'macAtom','macAtomApplicationCode'] }, 'macatominvocationappleevent' => { 472 => [\'macAtom','macAtomInvocationAppleEvent'] }, 'macatomposixprojectpath' => { 472 => [\'macAtom','macAtomPosixProjectPath'] }, 'macro' => { 126 => 0x1020, 128 => 0x202, 150 => 0x2b, 296 => 0x202, 380 => 0x21, 390 => 0x202, 414 => 0xb040 }, 'macroled' => { 294 => 0x120a }, 'macromode' => { 34 => 0x1, 180 => 0xb, 291 => 0x300, 314 => 0x1c, 381 => 0x1009 }, 'magicfilter' => { 291 => 0x52c }, 'maindialexposurecomp' => { 285 => '0.6' }, 'mainingredient' => { 489 => 'mainIngredient' }, 'majorversion' => { 462 => 'MajorVersion' }, 'make' => { 97 => 0x0, 114 => 0x1, 118 => 0x10f, 155 => 'Make', 304 => 'Make', 319 => 0x10f, 368 => 'make', 374 => ['@mak',"\xa9mak"], 486 => 'make', 493 => 'Make' }, 'makernote' => { 477 => 'MakerNote' }, 'makernoteoffset' => { 390 => 0xff }, 'makernotepentaxunknown' => { 374 => 'PXMN' }, 'makernotetype' => { 381 => 0x1 }, 'makernoteversion' => { 185 => 0x0, 224 => 0x1, 296 => 0x0, 314 => 0x8000, 385 => 0x0, 388 => 0x1, 391 => [0x1d,0x1f], 404 => 0x2000 }, 'makerurl' => { 374 => "\xa9mal" }, 'managedfrom' => { 498 => 'ManagedFrom' }, 'managedfromalternatepaths' => { 498 => [\'ManagedFrom','ManagedFromAlternatePaths'] }, 'managedfromdocumentid' => { 498 => [\'ManagedFrom','ManagedFromDocumentID'] }, 'managedfromfilepath' => { 498 => [\'ManagedFrom','ManagedFromFilePath'] }, 'managedfromfrompart' => { 498 => [\'ManagedFrom','ManagedFromFromPart'] }, 'managedfrominstanceid' => { 498 => [\'ManagedFrom','ManagedFromInstanceID'] }, 'managedfromlastmodifydate' => { 498 => [\'ManagedFrom','ManagedFromLastModifyDate'] }, 'managedfromlasturl' => { 498 => [\'ManagedFrom','ManagedFromLastURL'] }, 'managedfromlinkcategory' => { 498 => [\'ManagedFrom','ManagedFromLinkCategory'] }, 'managedfromlinkform' => { 498 => [\'ManagedFrom','ManagedFromLinkForm'] }, 'managedfrommanager' => { 498 => [\'ManagedFrom','ManagedFromManager'] }, 'managedfrommanagervariant' => { 498 => [\'ManagedFrom','ManagedFromManagerVariant'] }, 'managedfrommanageto' => { 498 => [\'ManagedFrom','ManagedFromManageTo'] }, 'managedfrommanageui' => { 498 => [\'ManagedFrom','ManagedFromManageUI'] }, 'managedfrommaskmarkers' => { 498 => [\'ManagedFrom','ManagedFromMaskMarkers'] }, 'managedfromoriginaldocumentid' => { 498 => [\'ManagedFrom','ManagedFromOriginalDocumentID'] }, 'managedfrompartmapping' => { 498 => [\'ManagedFrom','ManagedFromPartMapping'] }, 'managedfromplacedresolutionunit' => { 498 => [\'ManagedFrom','ManagedFromPlacedResolutionUnit'] }, 'managedfromplacedxresolution' => { 498 => [\'ManagedFrom','ManagedFromPlacedXResolution'] }, 'managedfromplacedyresolution' => { 498 => [\'ManagedFrom','ManagedFromPlacedYResolution'] }, 'managedfromrenditionclass' => { 498 => [\'ManagedFrom','ManagedFromRenditionClass'] }, 'managedfromrenditionparams' => { 498 => [\'ManagedFrom','ManagedFromRenditionParams'] }, 'managedfromtopart' => { 498 => [\'ManagedFrom','ManagedFromToPart'] }, 'managedfromversionid' => { 498 => [\'ManagedFrom','ManagedFromVersionID'] }, 'manager' => { 498 => 'Manager' }, 'managervariant' => { 498 => 'ManagerVariant' }, 'manageto' => { 498 => 'ManageTo' }, 'manageui' => { 498 => 'ManageUI' }, 'manifest' => { 498 => 'Manifest' }, 'manifestlinkform' => { 498 => [\'Manifest','ManifestLinkForm'] }, 'manifestplacedresolutionunit' => { 498 => [\'Manifest','ManifestPlacedResolutionUnit'] }, 'manifestplacedxresolution' => { 498 => [\'Manifest','ManifestPlacedXResolution'] }, 'manifestplacedyresolution' => { 498 => [\'Manifest','ManifestPlacedYResolution'] }, 'manifestreference' => { 498 => [\'Manifest','ManifestReference'] }, 'manifestreferencealternatepaths' => { 498 => [\'Manifest','ManifestReferenceAlternatePaths'] }, 'manifestreferencedocumentid' => { 498 => [\'Manifest','ManifestReferenceDocumentID'] }, 'manifestreferencefilepath' => { 498 => [\'Manifest','ManifestReferenceFilePath'] }, 'manifestreferencefrompart' => { 498 => [\'Manifest','ManifestReferenceFromPart'] }, 'manifestreferenceinstanceid' => { 498 => [\'Manifest','ManifestReferenceInstanceID'] }, 'manifestreferencelastmodifydate' => { 498 => [\'Manifest','ManifestReferenceLastModifyDate'] }, 'manifestreferencelasturl' => { 498 => [\'Manifest','ManifestReferenceLastURL'] }, 'manifestreferencelinkcategory' => { 498 => [\'Manifest','ManifestReferenceLinkCategory'] }, 'manifestreferencelinkform' => { 498 => [\'Manifest','ManifestReferenceLinkForm'] }, 'manifestreferencemanager' => { 498 => [\'Manifest','ManifestReferenceManager'] }, 'manifestreferencemanagervariant' => { 498 => [\'Manifest','ManifestReferenceManagerVariant'] }, 'manifestreferencemanageto' => { 498 => [\'Manifest','ManifestReferenceManageTo'] }, 'manifestreferencemanageui' => { 498 => [\'Manifest','ManifestReferenceManageUI'] }, 'manifestreferencemaskmarkers' => { 498 => [\'Manifest','ManifestReferenceMaskMarkers'] }, 'manifestreferenceoriginaldocumentid' => { 498 => [\'Manifest','ManifestReferenceOriginalDocumentID'] }, 'manifestreferencepartmapping' => { 498 => [\'Manifest','ManifestReferencePartMapping'] }, 'manifestreferenceplacedresolutionunit' => { 498 => [\'Manifest','ManifestReferencePlacedResolutionUnit'] }, 'manifestreferenceplacedxresolution' => { 498 => [\'Manifest','ManifestReferencePlacedXResolution'] }, 'manifestreferenceplacedyresolution' => { 498 => [\'Manifest','ManifestReferencePlacedYResolution'] }, 'manifestreferencerenditionclass' => { 498 => [\'Manifest','ManifestReferenceRenditionClass'] }, 'manifestreferencerenditionparams' => { 498 => [\'Manifest','ManifestReferenceRenditionParams'] }, 'manifestreferencetopart' => { 498 => [\'Manifest','ManifestReferenceToPart'] }, 'manifestreferenceversionid' => { 498 => [\'Manifest','ManifestReferenceVersionID'] }, 'manometerpressure' => { 291 => 0x900, 314 => 0x86 }, 'manometerreading' => { 291 => 0x901 }, 'manualflash' => { 294 => 0x1209 }, 'manualflashoutput' => { 34 => 0x29, 276 => '8.2', 279 => '22.2', 280 => '23.1', 281 => '23.2', 283 => '16.2', 284 => '23.2', 285 => '8.2', 286 => '23.2', 289 => '24.2', 381 => 0x100c }, 'manualflashstrength' => { 291 => 0x406 }, 'manualfocusdistance' => { 224 => 0x85, 296 => 0x100c, 390 => 0x223 }, 'manufacturedate' => { 190 => 0x6705, 329 => 0x1 }, 'manufacturedate1' => { 383 => 0x4 }, 'manufacturedate2' => { 383 => 0x5 }, 'manufacturer' => { 456 => 'Manufacturer', 486 => 'manufacturer' }, 'marked' => { 484 => 'Marked', 501 => 'Marked' }, 'markers' => { 497 => 'markers' }, 'markerscomment' => { 497 => [\'markers','markersComment'] }, 'markerscuepointparams' => { 497 => [\'markers','markersCuePointParams'] }, 'markerscuepointparamskey' => { 497 => [\'markers','markersCuePointParamsKey'] }, 'markerscuepointparamsvalue' => { 497 => [\'markers','markersCuePointParamsValue'] }, 'markerscuepointtype' => { 497 => [\'markers','markersCuePointType'] }, 'markersduration' => { 497 => [\'markers','markersDuration'] }, 'markerslocation' => { 497 => [\'markers','markersLocation'] }, 'markersname' => { 497 => [\'markers','markersName'] }, 'markersprobability' => { 497 => [\'markers','markersProbability'] }, 'markersspeaker' => { 497 => [\'markers','markersSpeaker'] }, 'markersstarttime' => { 497 => [\'markers','markersStartTime'] }, 'markerstarget' => { 497 => [\'markers','markersTarget'] }, 'markerstype' => { 497 => [\'markers','markersType'] }, 'maskgroupbasedcorractive' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'] }, 'maskgroupbasedcorramount' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'] }, 'maskgroupbasedcorrblacks2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'] }, 'maskgroupbasedcorrbrightness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'] }, 'maskgroupbasedcorrclarity' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'] }, 'maskgroupbasedcorrclarity2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'] }, 'maskgroupbasedcorrcontrast' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'] }, 'maskgroupbasedcorrcontrast2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'] }, 'maskgroupbasedcorrcorrectionname' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'] }, 'maskgroupbasedcorrcorrectionsyncid' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'] }, 'maskgroupbasedcorrdefringe' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'] }, 'maskgroupbasedcorrdehaze' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'] }, 'maskgroupbasedcorrections' => { 471 => 'MaskGroupBasedCorrections', 473 => 'MaskGroupBasedCorrections' }, 'maskgroupbasedcorrexposure' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'] }, 'maskgroupbasedcorrexposure2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'] }, 'maskgroupbasedcorrhighlights2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'] }, 'maskgroupbasedcorrhue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'] }, 'maskgroupbasedcorrluminancenoise' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'] }, 'maskgroupbasedcorrmask' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'] }, 'maskgroupbasedcorrmaskalpha' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'] }, 'maskgroupbasedcorrmaskangle' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'] }, 'maskgroupbasedcorrmaskbottom' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'] }, 'maskgroupbasedcorrmaskcentervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'] }, 'maskgroupbasedcorrmaskcenterweight' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'] }, 'maskgroupbasedcorrmaskdabs' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'] }, 'maskgroupbasedcorrmaskfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'] }, 'maskgroupbasedcorrmaskflipped' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'] }, 'maskgroupbasedcorrmaskflow' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'] }, 'maskgroupbasedcorrmaskfullx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'] }, 'maskgroupbasedcorrmaskfully' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'] }, 'maskgroupbasedcorrmaskinputdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'] }, 'maskgroupbasedcorrmaskleft' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'] }, 'maskgroupbasedcorrmaskmaskactive' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'] }, 'maskgroupbasedcorrmaskmaskblendmode' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'maskgroupbasedcorrmaskmaskdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'] }, 'maskgroupbasedcorrmaskmaskinverted' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'] }, 'maskgroupbasedcorrmaskmaskname' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'] }, 'maskgroupbasedcorrmaskmasks' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'] }, 'maskgroupbasedcorrmaskmasksalpha' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'maskgroupbasedcorrmaskmasksangle' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'] }, 'maskgroupbasedcorrmaskmasksbottom' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'] }, 'maskgroupbasedcorrmaskmaskscentervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'maskgroupbasedcorrmaskmaskscenterweight' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'maskgroupbasedcorrmaskmasksdabs' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'] }, 'maskgroupbasedcorrmaskmasksfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'] }, 'maskgroupbasedcorrmaskmasksflipped' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'maskgroupbasedcorrmaskmasksflow' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'] }, 'maskgroupbasedcorrmaskmasksfullx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'] }, 'maskgroupbasedcorrmaskmasksfully' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'] }, 'maskgroupbasedcorrmaskmasksinputdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'maskgroupbasedcorrmaskmasksleft' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'] }, 'maskgroupbasedcorrmaskmasksmaskactive' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'maskgroupbasedcorrmaskmasksmaskblendmode' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'maskgroupbasedcorrmaskmasksmaskdigest' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'maskgroupbasedcorrmaskmasksmaskinverted' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'maskgroupbasedcorrmaskmasksmaskname' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'maskgroupbasedcorrmaskmasksmasksubtype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'maskgroupbasedcorrmaskmasksmasksyncid' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'maskgroupbasedcorrmaskmasksmaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'maskgroupbasedcorrmaskmasksmidpoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'maskgroupbasedcorrmaskmasksorigin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'maskgroupbasedcorrmaskmasksperimetervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'maskgroupbasedcorrmaskmasksradius' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'] }, 'maskgroupbasedcorrmaskmasksreferencepoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'maskgroupbasedcorrmaskmasksright' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'] }, 'maskgroupbasedcorrmaskmasksroundness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'maskgroupbasedcorrmaskmaskssizex' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'maskgroupbasedcorrmaskmaskssizey' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'maskgroupbasedcorrmaskmaskstop' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'] }, 'maskgroupbasedcorrmaskmasksubtype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'] }, 'maskgroupbasedcorrmaskmasksvalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'maskgroupbasedcorrmaskmasksversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'] }, 'maskgroupbasedcorrmaskmaskswhat' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'] }, 'maskgroupbasedcorrmaskmaskswholeimagearea' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'maskgroupbasedcorrmaskmasksx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'] }, 'maskgroupbasedcorrmaskmasksy' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'] }, 'maskgroupbasedcorrmaskmasksyncid' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'maskgroupbasedcorrmaskmaskszerox' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'maskgroupbasedcorrmaskmaskszeroy' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'maskgroupbasedcorrmaskmaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'] }, 'maskgroupbasedcorrmaskmidpoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'] }, 'maskgroupbasedcorrmaskorigin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'] }, 'maskgroupbasedcorrmaskperimetervalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'maskgroupbasedcorrmaskradius' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'] }, 'maskgroupbasedcorrmaskrange' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'maskgroupbasedcorrmaskrangeareamodels' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'maskgroupbasedcorrmaskrangeareamodelscolorsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'maskgroupbasedcorrmaskrangeareamodelscomponents' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'maskgroupbasedcorrmaskrangecoloramount' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'maskgroupbasedcorrmaskrangedepthfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'maskgroupbasedcorrmaskrangedepthmax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'maskgroupbasedcorrmaskrangedepthmin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'maskgroupbasedcorrmaskrangeinvert' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'maskgroupbasedcorrmaskrangelumfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'maskgroupbasedcorrmaskrangeluminancedepthsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'maskgroupbasedcorrmaskrangelummax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'maskgroupbasedcorrmaskrangelummin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'maskgroupbasedcorrmaskrangelumrange' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'maskgroupbasedcorrmaskrangesampletype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'maskgroupbasedcorrmaskrangetype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'maskgroupbasedcorrmaskrangeversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'maskgroupbasedcorrmaskreferencepoint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'] }, 'maskgroupbasedcorrmaskright' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'] }, 'maskgroupbasedcorrmaskroundness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'] }, 'maskgroupbasedcorrmasksizex' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'] }, 'maskgroupbasedcorrmasksizey' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'] }, 'maskgroupbasedcorrmasktop' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'] }, 'maskgroupbasedcorrmaskvalue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'] }, 'maskgroupbasedcorrmaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'] }, 'maskgroupbasedcorrmaskwhat' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'] }, 'maskgroupbasedcorrmaskwholeimagearea' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'maskgroupbasedcorrmaskx' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'] }, 'maskgroupbasedcorrmasky' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'] }, 'maskgroupbasedcorrmaskzerox' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'] }, 'maskgroupbasedcorrmaskzeroy' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'] }, 'maskgroupbasedcorrmoire' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'] }, 'maskgroupbasedcorrrangemask' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'] }, 'maskgroupbasedcorrrangemaskareamodels' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'maskgroupbasedcorrrangemaskareamodelscolorsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'maskgroupbasedcorrrangemaskareamodelscomponents' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'maskgroupbasedcorrrangemaskcoloramount' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'maskgroupbasedcorrrangemaskdepthfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'maskgroupbasedcorrrangemaskdepthmax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'maskgroupbasedcorrrangemaskdepthmin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'maskgroupbasedcorrrangemaskinvert' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'] }, 'maskgroupbasedcorrrangemasklumfeather' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'maskgroupbasedcorrrangemaskluminancedepthsampleinfo' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'maskgroupbasedcorrrangemasklummax' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'maskgroupbasedcorrrangemasklummin' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'maskgroupbasedcorrrangemasklumrange' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'maskgroupbasedcorrrangemasksampletype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'maskgroupbasedcorrrangemasktype' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'] }, 'maskgroupbasedcorrrangemaskversion' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'] }, 'maskgroupbasedcorrsaturation' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'] }, 'maskgroupbasedcorrshadows2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'] }, 'maskgroupbasedcorrsharpness' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'] }, 'maskgroupbasedcorrtemperature' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'] }, 'maskgroupbasedcorrtexture' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'] }, 'maskgroupbasedcorrtint' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'] }, 'maskgroupbasedcorrtoninghue' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'] }, 'maskgroupbasedcorrtoningsaturation' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'] }, 'maskgroupbasedcorrwhat' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'] }, 'maskgroupbasedcorrwhites2012' => { 471 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'], 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'] }, 'mastergain' => { 232 => 0x50 }, 'matrixmetering' => { 275 => '50.1', 277 => '48.1', 278 => '48.1', 287 => '48.1', 288 => '48.1' }, 'matrixstructure' => { 373 => 0xa }, 'maxaperture' => { 34 => 0x1a, 137 => 0x3f9, 143 => 0x6103, 162 => 'MaxAperture', 180 => 0x17, 186 => 0x49c5, 222 => 0x36, 292 => 0x20a, 340 => '14.1' }, 'maxapertureatmaxfocal' => { 126 => 0x1407, 162 => 'MaxApertureAtMaxFocal', 216 => 0xb, 217 => 0x10, 218 => 0x11, 222 => 0x12, 292 => 0x206 }, 'maxapertureatminfocal' => { 126 => 0x1406, 216 => 0xa, 217 => 0xf, 218 => 0x10, 222 => 0x11, 292 => 0x205 }, 'maxaperturevalue' => { 118 => 0x9205, 358 => 0x414, 477 => 'MaxApertureValue' }, 'maxavailheight' => { 483 => 'MaxAvailHeight' }, 'maxavailwidth' => { 483 => 'MaxAvailWidth' }, 'maxcontinuousrelease' => { 274 => 0xb, 275 => 0xc, 277 => '12.1', 278 => '12.1', 283 => 0xc, 284 => 0xb, 287 => '12.1', 288 => '12.1' }, 'maxfaces' => { 295 => 0x1202 }, 'maxfocallength' => { 7 => 0xe6, 8 => 0x10, 9 => 0x1ab, 10 => 0x13, 11 => 0x115, 12 => 0x13, 13 => 0x153, 14 => 0xda, 16 => 0xfa, 17 => 0xee, 18 => 0x103, 19 => 0x95, 20 => 0xea, 21 => 0x157, 22 => 0xee, 23 => 0xec, 24 => 0x12b, 25 => 0x165, 26 => 0x16a, 27 => 0x188, 28 => 0x116, 29 => 0x18d, 34 => 0x17, 126 => 0x1405, 162 => 'MaxFocalLength', 216 => 0x9, 217 => 0xe, 218 => 0xf, 222 => 0x10, 292 => 0x208, 426 => 0x127c, 427 => 0x1138, 428 => 0x330, 429 => 0x330, 430 => 0x30e }, 'maxpagesize' => { 502 => 'MaxPageSize' }, 'maxpagesizeh' => { 502 => [\'MaxPageSize','MaxPageSizeH'] }, 'maxpagesizeunit' => { 502 => [\'MaxPageSize','MaxPageSizeUnit'] }, 'maxpagesizew' => { 502 => [\'MaxPageSize','MaxPageSizeW'] }, 'maxstorage' => { 492 => 'maxstorage' }, 'mb-d10batteries' => { 274 => '12.6' }, 'mb-d10batterytype' => { 283 => '13.3' }, 'mb-d11batterytype' => { 284 => '2.3' }, 'mb-d12batterytype' => { 287 => '3.2' }, 'mb-d80batteries' => { 285 => '6.5' }, 'mb-d80batterytype' => { 289 => '3.2' }, 'meal' => { 489 => 'meal' }, 'measuredlv' => { 186 => 0x690, 309 => 0x312, 312 => 0x312, 313 => 0x312, 316 => 0x3407 }, 'measuretype' => { 456 => 'MeasureType' }, 'mediaconstraints' => { 301 => 'MediaConstraints' }, 'mediacreatedate' => { 370 => 0x1 }, 'mediaeventiddate' => { 461 => 'MediaEventIdDate' }, 'mediamodifydate' => { 370 => 0x2 }, 'mediasummarycode' => { 301 => 'MediaSummaryCode' }, 'mediatype' => { 366 => 'stik' }, 'memorycardconfiguration' => { 407 => 0x16 }, 'menumonitorofftime' => { 274 => '26.1', 275 => '22.1', 277 => '22.1', 278 => '22.1', 282 => '21.1', 283 => '8.2', 284 => '21.1', 287 => '22.1', 288 => '22.1', 289 => '22.1' }, 'metadatadate' => { 495 => 'MetadataDate' }, 'metadatamoddate' => { 497 => 'metadataModDate' }, 'metaversion' => { 421 => 0x34 }, 'meterinfo1row1' => { 415 => 0x0, 416 => 0x0 }, 'meterinfo1row2' => { 415 => 0x6c, 416 => 0x5a }, 'meterinfo1row3' => { 415 => 0xd8, 416 => 0xb4 }, 'meterinfo1row4' => { 415 => 0x144, 416 => 0x10e }, 'meterinfo1row5' => { 415 => 0x1b0, 416 => 0x168 }, 'meterinfo1row6' => { 415 => 0x21c, 416 => 0x1c2 }, 'meterinfo1row7' => { 415 => 0x288, 416 => 0x21c }, 'meterinfo2row1' => { 415 => 0x2f4, 416 => 0x276 }, 'meterinfo2row2' => { 415 => 0x378, 416 => 0x2e4 }, 'meterinfo2row3' => { 415 => 0x3fc, 416 => 0x352 }, 'meterinfo2row4' => { 415 => 0x480, 416 => 0x3c0 }, 'meterinfo2row5' => { 415 => 0x504, 416 => 0x42e }, 'meterinfo2row6' => { 415 => 0x588, 416 => 0x49c }, 'meterinfo2row7' => { 415 => 0x60c, 416 => 0x50a }, 'meterinfo2row8' => { 415 => 0x690, 416 => 0x578 }, 'meterinfo2row9' => { 415 => 0x714, 416 => 0x5e6 }, 'metering' => { 276 => '6.1' }, 'meteringmode' => { 34 => 0x11, 118 => 0x9207, 139 => 0x1c, 180 => 0x7, 181 => 0x25, 183 => 0x12, 291 => 0x202, 349 => 0x17, 391 => 0x9, 401 => 0x15, 402 => 0x13, 403 => 0x7, 419 => 0x3, 422 => 0x1174, 423 => 0x1178, 424 => 0x1154, 425 => 0x11d0, 426 => 0x11ac, 427 => 0x1064, 428 => 0x25c, 429 => 0x25c, 430 => 0x24b, 477 => 'MeteringMode' }, 'meteringmode2' => { 330 => '2.1', 414 => 0x202c }, 'meteringmode3' => { 330 => '16.1' }, 'meteringtime' => { 274 => '22.2', 276 => '3.2', 279 => '17.1', 280 => '18.1', 283 => '7.3', 284 => '18.1', 285 => '3.2', 289 => '19.1' }, 'micro1version' => { 376 => 0x1f }, 'micro2version' => { 376 => 0x2d }, 'microvideo' => { 454 => 'MicroVideo' }, 'microvideooffset' => { 454 => 'MicroVideoOffset' }, 'microvideopresentationtimestampus' => { 454 => 'MicroVideoPresentationTimestampUs' }, 'microvideoversion' => { 454 => 'MicroVideoVersion' }, 'midrangesharpness' => { 228 => 0x3b }, 'mime' => { 456 => 'Mime' }, 'minaperture' => { 34 => 0x1b, 137 => 0x3f8, 162 => 'MinAperture', 340 => '0.2' }, 'minaperturevalue' => { 358 => 0x415 }, 'minfocallength' => { 7 => 0xe4, 8 => 0xe, 9 => 0x1a9, 10 => 0x11, 11 => 0x113, 12 => 0x11, 13 => 0x151, 14 => 0xd8, 16 => 0xf8, 17 => 0xec, 18 => 0x101, 19 => 0x93, 20 => 0xe8, 21 => 0x155, 22 => 0xec, 23 => 0xea, 24 => 0x129, 25 => 0x163, 26 => 0x168, 27 => 0x186, 28 => 0x114, 29 => 0x18b, 34 => 0x18, 126 => 0x1404, 162 => 'MinFocalLength', 216 => 0x8, 217 => 0xd, 218 => 0xe, 222 => 0xf, 292 => 0x207, 426 => 0x127a, 427 => 0x1136, 428 => 0x32e, 429 => 0x32e, 430 => 0x30c }, 'minfocusdistance' => { 340 => 0x3 }, 'minormodelagedisclosure' => { 301 => 'MinorModelAgeDisclosure' }, 'minorversion' => { 462 => 'MinorVersion' }, 'mobilecountrycode' => { 470 => 'mcc' }, 'mobilenetworkcode' => { 470 => 'mnc' }, 'moddate' => { 304 => 'modify-date', 484 => 'ModDate' }, 'modedialposition' => { 407 => 0x14 }, 'model' => { 97 => 0x6, 118 => 0x110, 155 => 'Model', 304 => 'Model', 319 => 0x110, 349 => 0x23f, 368 => 'model', 374 => ['@mod','CNMN','cmnm',"\xa9mdl","\xa9mod"], 391 => 0x84, 456 => 'Model', 486 => 'model', 493 => 'Model' }, 'modelage' => { 483 => 'ModelAge' }, 'modelid' => { 290 => 0x0 }, 'modelingflash' => { 274 => '21.4', 275 => '31.1', 277 => '31.1', 278 => '31.1', 283 => '26.4', 284 => '30.2', 285 => '7.4', 286 => '30.1', 287 => '31.1', 288 => '31.1', 289 => '31.3' }, 'modelreleaseid' => { 301 => 'ModelReleaseID' }, 'modelreleasestatus' => { 301 => 'ModelReleaseStatus' }, 'modelreleaseyear' => { 435 => 0x52, 436 => 0x46, 437 => 0x53 }, 'modelyear' => { 486 => 'modelYear' }, 'modificationdate' => { 487 => 'modificationDate' }, 'modifiedsaturation' => { 291 => 0x504 }, 'modifydate' => { 118 => 0x132, 156 => 'ModifyDate', 300 => 'ModDate', 302 => 'tIME', 365 => 'ModDate', 371 => 0x2, 495 => 'ModifyDate' }, 'moirefilter' => { 118 => 0xfe58, 471 => 'MoireFilter', 473 => 'MoireFilter' }, 'monitorofftime' => { 274 => '18.2', 276 => '3.1', 285 => '3.1' }, 'monochromecolor' => { 291 => 0x53b }, 'monochromefiltereffect' => { 102 => 0x20307, 108 => 0x3a, 314 => 0xac, 349 => 0x73 }, 'monochromegraineffect' => { 314 => 0xd2 }, 'monochromeprofilesettings' => { 291 => 0x537 }, 'monochrometoning' => { 349 => 0x74 }, 'monochromevignetting' => { 291 => 0x53a }, 'moonphase' => { 375 => 0x12, 376 => 0x43, 377 => 0x4c }, 'morepermissions' => { 469 => 'morePermissions' }, 'motionsensitivity' => { 375 => 0x29, 377 => 0x60 }, 'movementcount' => { 366 => "\xa9mvc" }, 'movementname' => { 366 => "\xa9mvn" }, 'movementnumber' => { 366 => "\xa9mvi" }, 'movieactived-lighting' => { 259 => 0x238 }, 'movieaelockbuttonassignment' => { 287 => '40.1' }, 'movieautodistortioncontrol' => { 259 => 0x242 }, 'moviediffrationcompensation' => { 259 => 0x168b }, 'moviefocusmode' => { 259 => 0x248 }, 'movieframerate' => { 259 => 0x1f8 }, 'movieframesize' => { 259 => 0x1f6 }, 'moviefunc1button' => { 277 => '41.1', 278 => '41.1', 288 => '41.1' }, 'moviefunctionbutton' => { 275 => '41.1', 287 => '41.1' }, 'moviefunctionbuttonplusdials' => { 275 => '52.1' }, 'moviehighisonoisereduction' => { 259 => 0x23c }, 'movieisoautomanualmode' => { 259 => 0x204 }, 'moviepreviewbutton' => { 275 => '41.2', 277 => '41.2', 278 => '41.2', 287 => '41.2', 288 => '41.2' }, 'moviepreviewbuttonplusdials' => { 275 => '52.2' }, 'movieshutterbutton' => { 275 => '38.3', 277 => '38.3', 278 => '38.3', 287 => '38.3', 288 => '38.3' }, 'movieslowmotion' => { 259 => 0x1fa }, 'moviesubselectorassignment' => { 275 => '48.2' }, 'moviesubselectorassignmentplusdials' => { 275 => '53.1' }, 'movietype' => { 247 => 0xc55c, 259 => 0x1fe }, 'movievibrationreduction' => { 259 => 0x24e }, 'movievibrationreductionsameasphoto' => { 259 => 0x24f }, 'movievignettecontrol' => { 259 => 0x23e }, 'movievignettecontrolsameasphoto' => { 259 => 0x240 }, 'multiburstimageheight' => { 414 => 0x1002 }, 'multiburstimagewidth' => { 414 => 0x1001 }, 'multiburstmode' => { 414 => 0x1000 }, 'multiexposure' => { 67 => 0x1, 314 => 0xb4 }, 'multiexposureautogain' => { 225 => 0x3 }, 'multiexposuremode' => { 225 => 0x1 }, 'multiexposureshots' => { 67 => 0x3, 225 => 0x2 }, 'multiframenoisereduction' => { 403 => 0x35, 414 => 0x200b, 419 => 0x15 }, 'multiframenreffect' => { 414 => 0x2023 }, 'multipleexposuremode' => { 295 => 0x101c }, 'multipleexposureset' => { 330 => '10.1' }, 'multisample' => { 232 => 0x40 }, 'multiselector' => { 274 => '9.4', 275 => '10.3', 277 => '10.3', 278 => '10.3', 283 => '27.4', 287 => '10.3', 288 => '10.3' }, 'multiselectorliveview' => { 274 => '4.3', 277 => '37.1', 278 => '37.1', 287 => '37.1', 288 => '37.1' }, 'multiselectorliveviewmode' => { 242 => 0x18c2 }, 'multiselectorplaybackmode' => { 274 => ['13.5','9.2'], 275 => '10.2', 278 => '10.2', 283 => '27.2', 287 => '10.2', 288 => '10.2' }, 'multiselectorshootmode' => { 274 => '9.1', 275 => '10.1', 277 => '10.1', 278 => '10.1', 283 => '27.1', 287 => '10.1', 288 => '10.1' }, 'multishot' => { 319 => 0x121 }, 'mute' => { 368 => 'player.movie.audio.mute' }, 'name' => { 374 => 'name', 471 => 'Name', 473 => 'Name' }, 'narrator' => { 366 => "\xa9nrt" }, 'nationalcatalognumber' => { 487 => 'nationalCatalogNumber' }, 'nativedigest' => { 477 => 'NativeDigest', 493 => 'NativeDigest' }, 'ndfilter' => { 76 => 0x1c, 291 => 0x204, 381 => 0x1019 }, 'near' => { 456 => 'Near' }, 'nefcompression' => { 224 => 0x93 }, 'negativecachelargepreviewsize' => { 471 => 'NegativeCacheLargePreviewSize', 473 => 'NegativeCacheLargePreviewSize' }, 'negativecachemaximumsize' => { 471 => 'NegativeCacheMaximumSize', 473 => 'NegativeCacheMaximumSize' }, 'negativecachepath' => { 471 => 'NegativeCachePath', 473 => 'NegativeCachePath' }, 'neutraldensityfactor' => { 468 => 'NeutralDensityFactor' }, 'neutraldensityfilter' => { 349 => 0x88 }, 'nickname' => { 495 => 'Nickname' }, 'nikonimagesize' => { 239 => '723.1', 240 => '732.1', 250 => 0x2c4 }, 'nikonmeteringmode' => { 243 => 0x2ea4, 252 => 0x175e, 259 => 0x146 }, 'noisefilter' => { 291 => 0x527 }, 'noisereduction' => { 126 => [0x100b,0x100e], 181 => 0xb0, 182 => 0x60, 183 => 0x3f, 224 => 0x95, 267 => 0x753dcbc0, 268 => 0x17, 291 => 0x50a, 296 => 0x103a, 314 => 0x2d, 349 => 0x49, 381 => 0x100f, 383 => 0x2a }, 'noisereduction2' => { 295 => 0x1010 }, 'noisereductionintensity' => { 268 => 0x9 }, 'noisereductionmethod' => { 268 => 0x11 }, 'noisereductionmode' => { 448 => 0x801e }, 'noisereductionparams' => { 319 => 0x1b }, 'noisereductionsharpness' => { 268 => 0xd }, 'noisereductionstrength' => { 314 => 0xd6 }, 'noisereductionvalue' => { 448 => 0x8027 }, 'nomemorycard' => { 274 => '22.1', 275 => '4.2', 276 => '0.3', 279 => '2.4', 280 => '3.2', 281 => '3.2', 283 => '33.7', 284 => '3.2', 285 => '0.3', 287 => '4.2', 289 => '4.5' }, 'nominalmaxaperture' => { 340 => 0xa }, 'nominalminaperture' => { 340 => '10.1' }, 'notes' => { 449 => 'Notes', 466 => 'notes' }, 'npages' => { 502 => 'NPages' }, 'numafpoints' => { 326 => 0x2 }, 'number' => { 487 => 'number' }, 'numberofbeats' => { 497 => 'numberOfBeats' }, 'numberoffocuspoints' => { 277 => '1.3', 278 => '1.3', 281 => '0.2', 282 => '0.3', 284 => '0.3' }, 'numfacepositions' => { 306 => 0x0 }, 'numwbentries' => { 320 => 0x0, 321 => 0x0 }, 'object' => { 487 => 'object' }, 'objectcycle' => { 130 => 0x4b, 466 => 'ObjectCycle' }, 'objectdescription' => { 486 => 'objectDescription' }, 'objectsubtype' => { 486 => 'objectSubtype' }, 'objecttype' => { 486 => 'objectType' }, 'oecfcolumns' => { 477 => [\'OECF','OECFColumns'] }, 'oecfnames' => { 477 => [\'OECF','OECFNames'] }, 'oecfrows' => { 477 => [\'OECF','OECFRows'] }, 'oecfvalues' => { 477 => [\'OECF','OECFValues'] }, 'offsaledate' => { 487 => 'offSaleDate' }, 'offsaledatea-platform' => { 487 => [\'offSaleDate','offSaleDateA-platform'] }, 'offsaledatedate' => { 487 => [\'offSaleDate','offSaleDateDate'] }, 'okbutton' => { 284 => '15.1', 289 => '16.1' }, 'olympusimageheight' => { 296 => 0x102f }, 'olympusimagewidth' => { 296 => 0x102e }, 'onetouchwb' => { 296 => 0x302 }, 'onsaledate' => { 487 => 'onSaleDate' }, 'onsaledatea-platform' => { 487 => [\'onSaleDate','onSaleDateA-platform'] }, 'onsaledatedate' => { 487 => [\'onSaleDate','onSaleDateDate'] }, 'onsaleday' => { 487 => 'onSaleDay' }, 'onsaledaya-platform' => { 487 => [\'onSaleDay','onSaleDayA-platform'] }, 'onsaledayday' => { 487 => [\'onSaleDay','onSaleDayDay'] }, 'opticalzoommode' => { 314 => 0x34 }, 'opticalzoomon' => { 390 => 0x219 }, 'optionenddate' => { 490 => 'optionEndDate' }, 'opto-electricconvfactor' => { 477 => 'OECF' }, 'organisationinimagecode' => { 483 => 'OrganisationInImageCode' }, 'organisationinimagename' => { 483 => 'OrganisationInImageName' }, 'organization' => { 487 => 'organization' }, 'orientation' => { 118 => 0x112, 319 => 0x112, 486 => 'orientation', 493 => 'Orientation' }, 'orientation2' => { 419 => [0x28,0x2e] }, 'originalartist' => { 178 => 'WM/OriginalArtist', 366 => "\xa9ope" }, 'originalcreatedatetime' => { 461 => 'OriginalCreateDateTime' }, 'originaldirectory' => { 311 => 0x408 }, 'originaldocumentid' => { 498 => 'OriginalDocumentID' }, 'originalfilename' => { 96 => 0x816, 137 => 0x3e9, 149 => 0x20, 311 => 0x407, 461 => 'OriginalFilename' }, 'originatingprogram' => { 130 => 0x41, 466 => 'OriginatingProgram' }, 'originplatform' => { 487 => 'originPlatform' }, 'os' => { 475 => 'os' }, 'otherconditions' => { 301 => 'OtherConditions' }, 'otherconstraints' => { 301 => 'OtherConstraints' }, 'otherimageinfo' => { 301 => 'OtherImageInfo' }, 'otherlicensedocuments' => { 301 => 'OtherLicenseDocuments' }, 'otherlicenseinfo' => { 301 => 'OtherLicenseInfo' }, 'otherlicenserequirements' => { 301 => 'OtherLicenseRequirements' }, 'outcue' => { 497 => 'outCue' }, 'outcuescale' => { 497 => [\'outCue','outCueScale'] }, 'outcuevalue' => { 497 => [\'outCue','outCueValue'] }, 'outputlut' => { 314 => 0xa7 }, 'overridelookvignette' => { 471 => 'OverrideLookVignette', 473 => 'OverrideLookVignette' }, 'owner' => { 501 => 'Owner' }, 'ownername' => { 15 => 0x10f, 63 => 0x9, 96 => 0x810, 118 => [0xa430,0xfde8], 155 => 'OwnerName', 468 => 'OwnerName', 478 => 'CameraOwnerName' }, 'pagecount' => { 487 => 'pageCount' }, 'pageimage' => { 495 => [\'PageInfo','PageInfoImage'] }, 'pageimageformat' => { 495 => [\'PageInfo','PageInfoFormat'] }, 'pageimageheight' => { 495 => [\'PageInfo','PageInfoHeight'] }, 'pageimagepagenumber' => { 495 => [\'PageInfo','PageInfoPageNumber'] }, 'pageimagewidth' => { 495 => [\'PageInfo','PageInfoWidth'] }, 'pageinfo' => { 495 => 'PageInfo' }, 'pageprogressiondirection' => { 487 => 'pageProgressionDirection' }, 'pagerange' => { 487 => 'pageRange' }, 'paintbasedcorrectionmasks' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'] }, 'paintbasedcorrections' => { 471 => 'PaintBasedCorrections', 473 => 'PaintBasedCorrections' }, 'paintcorrectionactive' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'] }, 'paintcorrectionamount' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'] }, 'paintcorrectionblacks2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'] }, 'paintcorrectionbrightness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'] }, 'paintcorrectionclarity' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'] }, 'paintcorrectionclarity2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'] }, 'paintcorrectioncontrast' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'] }, 'paintcorrectioncontrast2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'] }, 'paintcorrectioncorrectionname' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'] }, 'paintcorrectioncorrectionsyncid' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'] }, 'paintcorrectiondefringe' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'] }, 'paintcorrectiondehaze' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'] }, 'paintcorrectionexposure' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'] }, 'paintcorrectionexposure2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'] }, 'paintcorrectionhighlights2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'] }, 'paintcorrectionhue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'] }, 'paintcorrectionluminancenoise' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'] }, 'paintcorrectionmaskalpha' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'] }, 'paintcorrectionmaskangle' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'] }, 'paintcorrectionmaskbottom' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'] }, 'paintcorrectionmaskcentervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'] }, 'paintcorrectionmaskcenterweight' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'] }, 'paintcorrectionmaskdabs' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'] }, 'paintcorrectionmaskfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'] }, 'paintcorrectionmaskflipped' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'] }, 'paintcorrectionmaskflow' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'] }, 'paintcorrectionmaskfullx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'] }, 'paintcorrectionmaskfully' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'] }, 'paintcorrectionmaskinputdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'] }, 'paintcorrectionmaskleft' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'] }, 'paintcorrectionmaskmaskactive' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'] }, 'paintcorrectionmaskmaskblendmode' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'paintcorrectionmaskmaskdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'] }, 'paintcorrectionmaskmaskinverted' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'] }, 'paintcorrectionmaskmaskname' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'] }, 'paintcorrectionmaskmasks' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'] }, 'paintcorrectionmaskmasksalpha' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'paintcorrectionmaskmasksangle' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'] }, 'paintcorrectionmaskmasksbottom' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'] }, 'paintcorrectionmaskmaskscentervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'paintcorrectionmaskmaskscenterweight' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'paintcorrectionmaskmasksdabs' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'] }, 'paintcorrectionmaskmasksfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'] }, 'paintcorrectionmaskmasksflipped' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'paintcorrectionmaskmasksflow' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'] }, 'paintcorrectionmaskmasksfullx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'] }, 'paintcorrectionmaskmasksfully' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'] }, 'paintcorrectionmaskmasksinputdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'paintcorrectionmaskmasksleft' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'] }, 'paintcorrectionmaskmasksmaskactive' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'paintcorrectionmaskmasksmaskblendmode' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'paintcorrectionmaskmasksmaskdigest' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'paintcorrectionmaskmasksmaskinverted' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'paintcorrectionmaskmasksmaskname' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'paintcorrectionmaskmasksmasksubtype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'paintcorrectionmaskmasksmasksyncid' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'paintcorrectionmaskmasksmaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'paintcorrectionmaskmasksmidpoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'paintcorrectionmaskmasksorigin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'paintcorrectionmaskmasksperimetervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'paintcorrectionmaskmasksradius' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'] }, 'paintcorrectionmaskmasksreferencepoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'paintcorrectionmaskmasksright' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'] }, 'paintcorrectionmaskmasksroundness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'paintcorrectionmaskmaskssizex' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'paintcorrectionmaskmaskssizey' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'paintcorrectionmaskmaskstop' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'] }, 'paintcorrectionmaskmasksubtype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'] }, 'paintcorrectionmaskmasksvalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'paintcorrectionmaskmasksversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'] }, 'paintcorrectionmaskmaskswhat' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'] }, 'paintcorrectionmaskmaskswholeimagearea' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'paintcorrectionmaskmasksx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'] }, 'paintcorrectionmaskmasksy' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'] }, 'paintcorrectionmaskmasksyncid' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'paintcorrectionmaskmaskszerox' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'paintcorrectionmaskmaskszeroy' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'paintcorrectionmaskmaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'] }, 'paintcorrectionmaskmidpoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'] }, 'paintcorrectionmaskorigin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'] }, 'paintcorrectionmaskperimetervalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'paintcorrectionmaskradius' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'] }, 'paintcorrectionmaskrange' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'paintcorrectionmaskrangeareamodels' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'paintcorrectionmaskrangeareamodelscolorsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'paintcorrectionmaskrangeareamodelscomponents' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'paintcorrectionmaskrangecoloramount' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'paintcorrectionmaskrangedepthfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'paintcorrectionmaskrangedepthmax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'paintcorrectionmaskrangedepthmin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'paintcorrectionmaskrangeinvert' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'paintcorrectionmaskrangelumfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'paintcorrectionmaskrangeluminancedepthsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'paintcorrectionmaskrangelummax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'paintcorrectionmaskrangelummin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'paintcorrectionmaskrangelumrange' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'paintcorrectionmaskrangesampletype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'paintcorrectionmaskrangetype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'paintcorrectionmaskrangeversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'paintcorrectionmaskreferencepoint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'] }, 'paintcorrectionmaskright' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'] }, 'paintcorrectionmaskroundness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'] }, 'paintcorrectionmasksizex' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'] }, 'paintcorrectionmasksizey' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'] }, 'paintcorrectionmasktop' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'] }, 'paintcorrectionmaskvalue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'] }, 'paintcorrectionmaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'] }, 'paintcorrectionmaskwhat' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'] }, 'paintcorrectionmaskwholeimagearea' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'paintcorrectionmaskx' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'] }, 'paintcorrectionmasky' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'] }, 'paintcorrectionmaskzerox' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'] }, 'paintcorrectionmaskzeroy' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'] }, 'paintcorrectionmoire' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'] }, 'paintcorrectionrangemask' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'] }, 'paintcorrectionrangemaskareamodels' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'paintcorrectionrangemaskareamodelscolorsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'paintcorrectionrangemaskareamodelscomponents' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'paintcorrectionrangemaskcoloramount' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'paintcorrectionrangemaskdepthfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'paintcorrectionrangemaskdepthmax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'paintcorrectionrangemaskdepthmin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'paintcorrectionrangemaskinvert' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'] }, 'paintcorrectionrangemasklumfeather' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'paintcorrectionrangemaskluminancedepthsampleinfo' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'paintcorrectionrangemasklummax' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'paintcorrectionrangemasklummin' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'paintcorrectionrangemasklumrange' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'paintcorrectionrangemasksampletype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'paintcorrectionrangemasktype' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'] }, 'paintcorrectionrangemaskversion' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'] }, 'paintcorrectionsaturation' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'] }, 'paintcorrectionshadows2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'] }, 'paintcorrectionsharpness' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'] }, 'paintcorrectiontemperature' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'] }, 'paintcorrectiontexture' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'] }, 'paintcorrectiontint' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'] }, 'paintcorrectiontoninghue' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'] }, 'paintcorrectiontoningsaturation' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'] }, 'paintcorrectionwhat' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'] }, 'paintcorrectionwhites2012' => { 471 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'], 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'] }, 'panasonicdatetime' => { 317 => 0x0 }, 'panasonicexifversion' => { 314 => 0x26 }, 'panasonicimageheight' => { 314 => 0x4c }, 'panasonicimagewidth' => { 314 => 0x4b }, 'panasonicrawversion' => { 319 => 0x1 }, 'panoramacropbottom' => { 420 => 0x7 }, 'panoramacropleft' => { 420 => 0x4 }, 'panoramacropright' => { 420 => 0x6 }, 'panoramacroptop' => { 420 => 0x5 }, 'panoramadirection' => { 71 => 0x5, 126 => 0x1154, 420 => 0x3 }, 'panoramaframeheight' => { 420 => 0x9 }, 'panoramaframewidth' => { 420 => 0x8 }, 'panoramafullheight' => { 420 => 0x2 }, 'panoramafullwidth' => { 420 => 0x1 }, 'panoramamode' => { 139 => 0x3c, 291 => 0x601 }, 'panoramasize3d' => { 403 => 0x38 }, 'panoramasourceheight' => { 420 => 0xb }, 'panoramasourcewidth' => { 420 => 0xa }, 'pantry' => { 498 => 'Pantry' }, 'pantryinstanceid' => { 498 => [\'Pantry','PantryInstanceID'] }, 'parallax' => { 126 => 0xb211, 290 => 0x28 }, 'parametricdarks' => { 471 => 'ParametricDarks', 473 => 'ParametricDarks' }, 'parametrichighlights' => { 471 => 'ParametricHighlights', 473 => 'ParametricHighlights' }, 'parametrichighlightsplit' => { 471 => 'ParametricHighlightSplit', 473 => 'ParametricHighlightSplit' }, 'parametriclights' => { 471 => 'ParametricLights', 473 => 'ParametricLights' }, 'parametricmidtonesplit' => { 471 => 'ParametricMidtoneSplit', 473 => 'ParametricMidtoneSplit' }, 'parametricshadows' => { 471 => 'ParametricShadows', 473 => 'ParametricShadows' }, 'parametricshadowsplit' => { 471 => 'ParametricShadowSplit', 473 => 'ParametricShadowSplit' }, 'parentmediaeventid' => { 461 => 'ParentMediaEventID' }, 'parentmeid' => { 461 => 'ParentMEID' }, 'parentproductid' => { 366 => '@ppi' }, 'parentreference1' => { 481 => [\'TagStructure','TagStructureParentReference'] }, 'parentreference2' => { 481 => [\'TagStructure','TagStructureSubLabelsParentReference'] }, 'parentreference3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsParentReference'] }, 'parentreference4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsParentReference'] }, 'parentreference5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, 'parentreference6' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, 'parentshorttitle' => { 366 => '@PST' }, 'parenttitle' => { 366 => '@pti' }, 'partofcompilation' => { 497 => 'partOfCompilation' }, 'patientbirthdate' => { 450 => 'PatientDOB' }, 'patientid' => { 450 => 'PatientID' }, 'patientname' => { 450 => 'PatientName' }, 'patientsex' => { 450 => 'PatientSex' }, 'pdfversion' => { 484 => 'PDFVersion' }, 'pentaximagesize' => { 349 => 0x9 }, 'pentaxmodelid' => { 329 => 0x0, 349 => 0x5 }, 'pentaxmodeltype' => { 349 => 0x1 }, 'pentaxversion' => { 349 => 0x0 }, 'people' => { 452 => 'People', 464 => 'People' }, 'performer' => { 366 => 'perf', 374 => 'perf' }, 'performerkeywords' => { 374 => "\xa9prk" }, 'performers' => { 374 => "\xa9prf" }, 'performerurl' => { 374 => "\xa9prl" }, 'peripheralillumcentralradius' => { 448 => 0x8030 }, 'peripheralillumcentralvalue' => { 448 => 0x8031 }, 'peripheralilluminationcorr' => { 62 => 0x1, 339 => 0x2 }, 'peripheralillumperiphvalue' => { 448 => 0x8032 }, 'permissions' => { 490 => 'permissions' }, 'permits' => { 469 => 'permits' }, 'person' => { 487 => 'person' }, 'personality' => { 461 => 'Personality' }, 'personheard' => { 483 => 'PersonHeard' }, 'personheardidentifier' => { 483 => [\'PersonHeard','PersonHeardIdentifier'] }, 'personheardname' => { 483 => [\'PersonHeard','PersonHeardName'] }, 'personinimage' => { 483 => 'PersonInImage' }, 'personinimagecharacteristic' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristic'] }, 'personinimagecvtermcvid' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvId'] }, 'personinimagecvtermid' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermId'] }, 'personinimagecvtermname' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermName'] }, 'personinimagecvtermrefinedabout' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermRefinedAbout'] }, 'personinimagedescription' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonDescription'] }, 'personinimageid' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonId'] }, 'personinimagename' => { 483 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonName'] }, 'personinimagewdetails' => { 483 => 'PersonInImageWDetails' }, 'perspectiveaspect' => { 471 => 'PerspectiveAspect', 473 => 'PerspectiveAspect' }, 'perspectivehorizontal' => { 471 => 'PerspectiveHorizontal', 473 => 'PerspectiveHorizontal' }, 'perspectiverotate' => { 471 => 'PerspectiveRotate', 473 => 'PerspectiveRotate' }, 'perspectivescale' => { 471 => 'PerspectiveScale', 473 => 'PerspectiveScale' }, 'perspectiveupright' => { 471 => 'PerspectiveUpright', 473 => 'PerspectiveUpright' }, 'perspectivevertical' => { 471 => 'PerspectiveVertical', 473 => 'PerspectiveVertical' }, 'perspectivex' => { 471 => 'PerspectiveX', 473 => 'PerspectiveX' }, 'perspectivey' => { 471 => 'PerspectiveY', 473 => 'PerspectiveY' }, 'photoeffecthistoryxml' => { 267 => 0xe9651831 }, 'photoeffects' => { 267 => 0xab5eca5e }, 'photoeffectsblue' => { 269 => 0x8 }, 'photoeffectsgreen' => { 269 => 0x6 }, 'photoeffectsred' => { 269 => 0x4 }, 'photoeffectstype' => { 269 => 0x0 }, 'photographicsensitivity' => { 478 => 'PhotographicSensitivity' }, 'photoinfoplayback' => { 274 => '17.6', 283 => '33.6' }, 'photometricinterpretation' => { 118 => 0x106, 493 => 'PhotometricInterpretation' }, 'photoshootingmenubank' => { 243 => 0xe7d, 253 => 0xfbd }, 'photoshootingmenubankimagearea' => { 243 => '3716.1', 253 => 0x791 }, 'photoshopbgrthumbnail' => { 363 => 0x409 }, 'photoshopquality' => { 362 => 0x0 }, 'photoshopthumbnail' => { 363 => 0x40c }, 'photostyle' => { 314 => 0x89 }, 'picklabel' => { 476 => 'PickLabel' }, 'pictinfo' => { 390 => 0x208 }, 'picturecontrol' => { 267 => 0xe2173c47 }, 'picturecontrolactive' => { 270 => 0x0 }, 'picturecontroladjust' => { 226 => 0x30, 227 => 0x30, 228 => 0x36 }, 'picturecontrolbase' => { 226 => 0x18, 227 => 0x18, 228 => 0x1c }, 'picturecontrolmode' => { 270 => 0x13 }, 'picturecontrolname' => { 226 => 0x4, 227 => 0x4, 228 => 0x8 }, 'picturecontrolquickadjust' => { 226 => 0x31, 227 => 0x31, 228 => 0x37 }, 'pictureeffect' => { 414 => 0x200e }, 'pictureeffect2' => { 422 => 0x1163, 423 => 0x1167, 424 => 0x1143, 425 => 0x11bf, 426 => 0x119b, 427 => 0x1053, 428 => 0x24b, 429 => 0x24b, 430 => 0x23c, 444 => 0x46 }, 'picturemode' => { 126 => 0x1031, 291 => 0x520, 349 => [0xb,0x33], 391 => 0x3d }, 'picturemode2' => { 330 => 0x0 }, 'picturemodebwfilter' => { 291 => 0x525 }, 'picturemodecontrast' => { 291 => 0x523 }, 'picturemodeeffect' => { 291 => 0x52d }, 'picturemodehue' => { 291 => 0x522 }, 'picturemodesaturation' => { 291 => 0x521 }, 'picturemodesharpness' => { 291 => 0x524 }, 'picturemodetone' => { 291 => 0x526 }, 'pictureprofile' => { 422 => [0x115e,0x115f], 423 => [0x1162,0x1163], 424 => [0x113e,0x113f], 425 => [0x11ba,0x11bb], 426 => [0x1196,0x1197], 427 => [0x104e,0x104f], 428 => [0x246,0x247], 429 => [0x246,0x247], 430 => [0x237,0x238] }, 'picturewizard' => { 388 => 0x21 }, 'picturewizardcolor' => { 387 => 0x1 }, 'picturewizardcontrast' => { 387 => 0x4 }, 'picturewizardmode' => { 387 => 0x0 }, 'picturewizardsaturation' => { 387 => 0x2 }, 'picturewizardsharpness' => { 387 => 0x3 }, 'pitch' => { 114 => 0x6, 275 => '4.1', 287 => '4.1', 374 => ['ptch',"\xa9fpt"] }, 'pitchangle' => { 242 => 0x350f, 243 => 0x2c28, 247 => 0xc21e, 252 => 0x36f8, 253 => 0x2eff, 255 => 0xce36, 291 => 0x904, 314 => 0x91, 348 => 0x2, 386 => 0x1 }, 'pitchshift' => { 368 => 'player.movie.audio.pitchshift' }, 'pixelaspectratio' => { 367 => 'pasp' }, 'pixelshiftinfo' => { 414 => 0x202f }, 'pixelshiftresolution' => { 350 => 0x0 }, 'pixelsperunitx' => { 303 => 0x0 }, 'pixelsperunity' => { 303 => 0x4 }, 'pixelunits' => { 303 => 0x8 }, 'planarconfiguration' => { 118 => 0x11c, 493 => 'PlanarConfiguration' }, 'plane' => { 451 => [\'Planes','PlanesPlane'] }, 'planeboundary' => { 451 => [\'Planes','PlanesPlaneBoundary'] }, 'planeboundaryvertexcount' => { 451 => [\'Planes','PlanesPlaneBoundaryVertexCount'] }, 'planeextentx' => { 451 => [\'Planes','PlanesPlaneExtentX'] }, 'planeextentz' => { 451 => [\'Planes','PlanesPlaneExtentZ'] }, 'planepose' => { 451 => [\'Planes','PlanesPlanePose'] }, 'planeposepositionx' => { 451 => [\'Planes','PlanesPlanePosePositionX'] }, 'planeposepositiony' => { 451 => [\'Planes','PlanesPlanePosePositionY'] }, 'planeposepositionz' => { 451 => [\'Planes','PlanesPlanePosePositionZ'] }, 'planeposerotationw' => { 451 => [\'Planes','PlanesPlanePoseRotationW'] }, 'planeposerotationx' => { 451 => [\'Planes','PlanesPlanePoseRotationX'] }, 'planeposerotationy' => { 451 => [\'Planes','PlanesPlanePoseRotationY'] }, 'planeposerotationz' => { 451 => [\'Planes','PlanesPlanePoseRotationZ'] }, 'planeposetimestamp' => { 451 => [\'Planes','PlanesPlanePoseTimestamp'] }, 'planes' => { 451 => 'Planes' }, 'planningref' => { 483 => 'PlanningRef' }, 'planningrefidentifier' => { 483 => [\'PlanningRef','PlanningRefIdentifier'] }, 'planningrefname' => { 483 => [\'PlanningRef','PlanningRefName'] }, 'planningrefrole' => { 483 => [\'PlanningRef','PlanningRefRole'] }, 'platenames' => { 502 => 'PlateNames' }, 'platform' => { 487 => 'platform' }, 'playallframes' => { 374 => 'AllF' }, 'playbackmenustime' => { 279 => '20.1', 280 => '21.1', 281 => '21.1' }, 'playbackmonitorofftime' => { 274 => '25.2', 275 => '36.1', 277 => '36.1', 278 => '36.1', 282 => '35.1', 283 => '8.1', 284 => '35.1', 287 => '36.1', 288 => '36.1', 289 => '21.1' }, 'playbackzoom' => { 275 => '37.1' }, 'playerversion' => { 368 => 'player.version' }, 'playgap' => { 366 => 'pgap' }, 'playlistid' => { 366 => 'plID' }, 'playmode' => { 374 => 'SDLN' }, 'playselection' => { 374 => 'SelO' }, 'plusversion' => { 301 => 'Version' }, 'pmversion' => { 361 => 'PMVersion' }, 'pngwarning' => { 304 => 'Warning' }, 'podcast' => { 366 => 'pcst' }, 'podcasturl' => { 366 => 'purl' }, 'portraitimpressionbalance' => { 255 => 0x7fa0 }, 'portraitnote' => { 454 => 'PortraitNote' }, 'portraitrequest' => { 454 => 'PortraitRequest' }, 'portraitversion' => { 454 => 'PortraitVersion' }, 'pose' => { 451 => 'Pose' }, 'poseheadingdegrees' => { 459 => 'PoseHeadingDegrees' }, 'posepitchdegrees' => { 459 => 'PosePitchDegrees' }, 'posepositionx' => { 451 => [\'Pose','PosePositionX'] }, 'posepositiony' => { 451 => [\'Pose','PosePositionY'] }, 'posepositionz' => { 451 => [\'Pose','PosePositionZ'] }, 'poserolldegrees' => { 459 => 'PoseRollDegrees' }, 'poserotationw' => { 451 => [\'Pose','PoseRotationW'] }, 'poserotationx' => { 451 => [\'Pose','PoseRotationX'] }, 'poserotationy' => { 451 => [\'Pose','PoseRotationY'] }, 'poserotationz' => { 451 => [\'Pose','PoseRotationZ'] }, 'posetimestamp' => { 451 => [\'Pose','PoseTimestamp'] }, 'positiondescriptor' => { 486 => 'positionDescriptor' }, 'postcropvignetteamount' => { 471 => 'PostCropVignetteAmount', 473 => 'PostCropVignetteAmount' }, 'postcropvignettefeather' => { 471 => 'PostCropVignetteFeather', 473 => 'PostCropVignetteFeather' }, 'postcropvignettehighlightcontrast' => { 471 => 'PostCropVignetteHighlightContrast', 473 => 'PostCropVignetteHighlightContrast' }, 'postcropvignettemidpoint' => { 471 => 'PostCropVignetteMidpoint', 473 => 'PostCropVignetteMidpoint' }, 'postcropvignetteroundness' => { 471 => 'PostCropVignetteRoundness', 473 => 'PostCropVignetteRoundness' }, 'postcropvignettestyle' => { 471 => 'PostCropVignetteStyle', 473 => 'PostCropVignetteStyle' }, 'postfocusmerging' => { 314 => 0xbf }, 'potentialface1position' => { 411 => 0xb }, 'potentialface2position' => { 411 => 0x15 }, 'potentialface3position' => { 411 => 0x1f }, 'potentialface4position' => { 411 => 0x29 }, 'potentialface5position' => { 411 => 0x33 }, 'potentialface6position' => { 411 => 0x3d }, 'potentialface7position' => { 411 => 0x47 }, 'potentialface8position' => { 411 => 0x51 }, 'powersource' => { 328 => '0.1' }, 'precaptureframes' => { 296 => 0x300 }, 'preflashreturnstrength' => { 240 => 0x28a }, 'prefs' => { 130 => 0xdd, 361 => 'Prefs' }, 'preservedfilename' => { 498 => 'PreservedFileName' }, 'presettype' => { 471 => 'PresetType', 473 => 'PresetType' }, 'presetwhitebalance' => { 183 => 0x24, 448 => 0x8002 }, 'presetwhitebalanceadj' => { 448 => 0x8014 }, 'pressure' => { 118 => 0x9402, 478 => 'Pressure' }, 'previewbutton' => { 274 => ['14.1','15.1'], 275 => '15.1', 277 => '15.1', 278 => '15.1', 283 => '29.1', 284 => '14.1', 287 => '15.1', 288 => '15.1' }, 'previewbuttonplusdials' => { 274 => ['14.2','15.2'], 275 => '15.2', 277 => '43.1', 278 => '43.1', 283 => '31.2', 287 => '43.1', 288 => '43.1' }, 'previewcropbottom' => { 360 => 0xef }, 'previewcropleft' => { 360 => 0xec }, 'previewcropright' => { 360 => 0xee }, 'previewcroptop' => { 360 => 0xed }, 'previewdate' => { 372 => 0x0 }, 'previewimage' => { 112 => 0x2000, 113 => 'Exif-PreviewImage', 119 => 'PreviewImage', 121 => 0x4, 165 => 'data', 185 => 0x81, 296 => 0x280, 312 => 0x300, 374 => 'mcvr', 414 => 0x2001 }, 'previewimageborders' => { 349 => 0x3e }, 'previewimagelength' => { 72 => 0x2, 112 => 0x3, 118 => [0x117,0x202], 185 => 0x89, 229 => 0x202, 291 => 0x102, 296 => 0x1037, 349 => 0x3, 380 => 0x1e, 385 => 0x3, 391 => [0x1b,0x1d], 404 => 0x202 }, 'previewimagesize' => { 112 => 0x2, 146 => 0x2, 165 => 'ImageSize', 349 => 0x2, 391 => [0x1c,0x1e], 414 => 0xb02c, 448 => 0x9012 }, 'previewimagestart' => { 72 => 0x5, 112 => 0x4, 118 => [0x111,0x201], 185 => 0x88, 229 => 0x201, 291 => 0x101, 296 => 0x1036, 349 => 0x4, 380 => 0x1c, 385 => 0x2, 391 => [0x1a,0x1c], 404 => 0x201 }, 'previewimagevalid' => { 291 => 0x100, 296 => 0x1035 }, 'primarychromaticities' => { 118 => 0x13f, 493 => 'PrimaryChromaticities' }, 'primaryftp' => { 461 => 'PrimaryFTP' }, 'primaryslot' => { 243 => 0xe7f, 253 => 0xfbf }, 'prioritysetinawb' => { 414 => 0x202b }, 'prioritysetupshutterrelease' => { 183 => 0x1d, 401 => 0x28 }, 'privatertkinfo' => { 463 => 'privateRTKInfo' }, 'processversion' => { 471 => 'ProcessVersion', 473 => 'ProcessVersion' }, 'producer' => { 178 => 'WM/Producer', 300 => 'Producer', 366 => "\xa9prd", 368 => 'producer', 374 => "\xa9prd", 484 => 'Producer' }, 'producerkeywords' => { 374 => "\xa9pdk" }, 'productcode' => { 487 => 'productCode' }, 'productid' => { 131 => 0x32, 366 => 'prID', 486 => 'productID' }, 'productidtype' => { 486 => 'productIDType' }, 'productinimage' => { 483 => 'ProductInImage' }, 'productinimagedescription' => { 483 => [\'ProductInImage','ProductInImageProductDescription'] }, 'productinimagegtin' => { 483 => [\'ProductInImage','ProductInImageProductGTIN'] }, 'productinimagename' => { 483 => [\'ProductInImage','ProductInImageProductName'] }, 'productioncode' => { 329 => 0x2 }, 'productorserviceconstraints' => { 301 => 'ProductOrServiceConstraints' }, 'productversion' => { 366 => 'VERS' }, 'profession' => { 487 => 'profession' }, 'profile' => { 451 => [\'Profiles','ProfilesProfile'] }, 'profilecameraindices' => { 451 => [\'Profiles','ProfilesProfileCameraIndices'] }, 'profiles' => { 451 => 'Profiles' }, 'profiletype' => { 451 => [\'Profiles','ProfilesProfileType'] }, 'programiso' => { 314 => 0x3c }, 'programline' => { 330 => '1.1' }, 'prohibits' => { 469 => 'prohibits' }, 'projectiontype' => { 459 => 'ProjectionType', 460 => 'ProjectionType' }, 'projectname' => { 497 => 'projectName' }, 'projectref' => { 497 => 'projectRef' }, 'projectrefpath' => { 497 => [\'projectRef','projectRefPath'] }, 'projectreftype' => { 497 => [\'projectRef','projectRefType'] }, 'propertyreleaseid' => { 301 => 'PropertyReleaseID' }, 'propertyreleasestatus' => { 301 => 'PropertyReleaseStatus' }, 'publicationdate' => { 487 => 'publicationDate' }, 'publicationdatea-platform' => { 487 => [\'publicationDate','publicationDateA-platform'] }, 'publicationdatedate' => { 487 => [\'publicationDate','publicationDateDate'] }, 'publicationdisplaydate' => { 487 => 'publicationDisplayDate' }, 'publicationdisplaydatea-platform' => { 487 => [\'publicationDisplayDate','publicationDisplayDateA-platform'] }, 'publicationdisplaydatedate' => { 487 => [\'publicationDisplayDate','publicationDisplayDateDate'] }, 'publicationevent' => { 483 => 'PublicationEvent' }, 'publicationeventdate' => { 483 => [\'PublicationEvent','PublicationEventDate'] }, 'publicationeventidentifier' => { 483 => [\'PublicationEvent','PublicationEventIdentifier'] }, 'publicationeventname' => { 483 => [\'PublicationEvent','PublicationEventName'] }, 'publicationname' => { 487 => 'publicationName' }, 'publisher' => { 178 => 'WM/Publisher', 366 => "\xa9pub", 368 => 'publisher', 474 => 'publisher' }, 'publishingfrequency' => { 487 => 'publishingFrequency' }, 'pulldown' => { 497 => 'pullDown' }, 'purchasedate' => { 366 => 'purd' }, 'pxshiftperiphedgenr' => { 448 => 0x9013 }, 'pxshiftperiphedgenrvalue' => { 448 => 0x9014 }, 'quality' => { 0 => 0x1, 34 => 0x3, 111 => 0x2, 112 => 0x3002, 126 => 0x1000, 139 => 0x9, 224 => 0x4, 256 => 0x3, 296 => 0x201, 309 => 0x300, 349 => 0x8, 356 => 0x2, 391 => 0x16, 401 => 0x56, 402 => 0x56, 403 => 0xb, 414 => [0x102,0x202e] }, 'quality2' => { 422 => 0x1170, 423 => 0x1174, 424 => 0x1150, 426 => 0x11a8, 427 => 0x1060, 428 => 0x258, 429 => 0x258, 430 => 0x247, 435 => 0x29, 436 => 0x25, 437 => 0x2a }, 'quickadjust' => { 270 => 0x2a }, 'quickfix' => { 267 => 0x416391c6 }, 'quickshot' => { 390 => 0x213 }, 'rads' => { 374 => 'rads' }, 'rangefinder' => { 279 => '4.1', 280 => '5.1', 281 => '5.1' }, 'rangemask' => { 471 => 'RangeMaskMapInfo', 473 => 'RangeMaskMapInfo' }, 'rangemaskmapinfo' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'] }, 'rangemaskmapinfolabmax' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'] }, 'rangemaskmapinfolabmin' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'] }, 'rangemaskmapinfolumeq' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'] }, 'rangemaskmapinforgbmax' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'] }, 'rangemaskmapinforgbmin' => { 471 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'], 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'] }, 'rating' => { 118 => 0x4746, 126 => 0x1431, 360 => 0xdf, 366 => 'rtng', 374 => 'rtng', 414 => 0x2002, 466 => 'rating', 475 => 'rating', 483 => 'Rating', 487 => 'rating', 495 => 'Rating' }, 'ratingpercent' => { 118 => 0x4749, 177 => 'Rating', 366 => 'rate', 495 => 'RatingPercent' }, 'ratingregion' => { 483 => [\'Rating','RatingRatingRegion'] }, 'ratingregioncity' => { 483 => [\'Rating','RatingRatingRegionCity'] }, 'ratingregioncountrycode' => { 483 => [\'Rating','RatingRatingRegionCountryCode'] }, 'ratingregioncountryname' => { 483 => [\'Rating','RatingRatingRegionCountryName'] }, 'ratingregiongpsaltitude' => { 483 => [\'Rating','RatingRatingRegionGPSAltitude'] }, 'ratingregiongpslatitude' => { 483 => [\'Rating','RatingRatingRegionGPSLatitude'] }, 'ratingregiongpslongitude' => { 483 => [\'Rating','RatingRatingRegionGPSLongitude'] }, 'ratingregionidentifier' => { 483 => [\'Rating','RatingRatingRegionIdentifier'] }, 'ratingregionlocationid' => { 483 => [\'Rating','RatingRatingRegionLocationId'] }, 'ratingregionlocationname' => { 483 => [\'Rating','RatingRatingRegionLocationName'] }, 'ratingregionprovincestate' => { 483 => [\'Rating','RatingRatingRegionProvinceState'] }, 'ratingregionsublocation' => { 483 => [\'Rating','RatingRatingRegionSublocation'] }, 'ratingregionworldregion' => { 483 => [\'Rating','RatingRatingRegionWorldRegion'] }, 'ratingscalemaxvalue' => { 483 => [\'Rating','RatingRatingScaleMaxValue'] }, 'ratingscaleminvalue' => { 483 => [\'Rating','RatingRatingScaleMinValue'] }, 'ratingsourcelink' => { 483 => [\'Rating','RatingRatingSourceLink'] }, 'ratingvalue' => { 483 => [\'Rating','RatingRatingValue'] }, 'ratingvaluelogolink' => { 483 => [\'Rating','RatingRatingValueLogoLink'] }, 'rawandjpgrecording' => { 81 => 0x8, 185 => 0x109, 330 => 0xd }, 'rawcropbottom' => { 360 => 0xd4 }, 'rawcropleft' => { 360 => 0xd1 }, 'rawcropright' => { 360 => 0xd3 }, 'rawcroptop' => { 360 => 0xd2 }, 'rawdata' => { 388 => 0xa048 }, 'rawdatabyteorder' => { 388 => 0x40 }, 'rawdatacfapattern' => { 388 => 0x50 }, 'rawdevartfilter' => { 298 => 0x121 }, 'rawdevautogradation' => { 298 => 0x119 }, 'rawdevcolorspace' => { 297 => 0x108, 298 => 0x109 }, 'rawdevcontrastvalue' => { 297 => 0x106, 298 => 0x105 }, 'rawdeveditstatus' => { 297 => 0x10b }, 'rawdevelopmentprocess' => { 349 => 0x62 }, 'rawdevengine' => { 297 => 0x109, 298 => 0x10b }, 'rawdevexposurebiasvalue' => { 297 => 0x100, 298 => 0x100 }, 'rawdevgradation' => { 298 => 0x112 }, 'rawdevgraypoint' => { 297 => 0x103, 298 => 0x104 }, 'rawdevmemorycoloremphasis' => { 297 => 0x105, 298 => 0x108 }, 'rawdevnoisereduction' => { 297 => 0x10a, 298 => 0x10a }, 'rawdevpicturemode' => { 298 => 0x10c }, 'rawdevpm_bwfilter' => { 298 => 0x110 }, 'rawdevpmcontrast' => { 298 => 0x10e }, 'rawdevpmnoisefilter' => { 298 => 0x120 }, 'rawdevpmpicturetone' => { 298 => 0x111 }, 'rawdevpmsaturation' => { 298 => 0x10d }, 'rawdevpmsharpness' => { 298 => 0x10f }, 'rawdevsaturation3' => { 298 => 0x113 }, 'rawdevsaturationemphasis' => { 297 => 0x104, 298 => 0x107 }, 'rawdevsettings' => { 297 => 0x10c }, 'rawdevsharpnessvalue' => { 297 => 0x107, 298 => 0x106 }, 'rawdevversion' => { 297 => 0x0, 298 => 0x0 }, 'rawdevwbfineadjustment' => { 297 => 0x102, 298 => 0x103 }, 'rawdevwhitebalance' => { 298 => 0x101 }, 'rawdevwhitebalancevalue' => { 297 => 0x101, 298 => 0x102 }, 'rawfilename' => { 471 => 'RawFileName', 473 => 'RawFileName' }, 'rawfiletype' => { 414 => 0x2029 }, 'rawformat' => { 319 => 0x2d, 358 => 0x10e }, 'rawimagesize' => { 349 => 0x39 }, 'rawinfoversion' => { 299 => 0x0 }, 'rawrppused' => { 466 => 'rawrppused' }, 'reardisplay' => { 274 => '12.3', 275 => '6.2' }, 'recdevice' => { 483 => 'RecDevice' }, 'recdeviceattlensdescription' => { 483 => [\'RecDevice','RecDeviceAttLensDescription'] }, 'recdevicemanufacturer' => { 483 => [\'RecDevice','RecDeviceManufacturer'] }, 'recdevicemodelname' => { 483 => [\'RecDevice','RecDeviceModelName'] }, 'recdeviceownersdeviceid' => { 483 => [\'RecDevice','RecDeviceOwnersDeviceId'] }, 'recdeviceserialnumber' => { 483 => [\'RecDevice','RecDeviceSerialNumber'] }, 'recipeendingpage' => { 489 => 'recipeEndingPage' }, 'recipepagerange' => { 489 => 'recipePageRange' }, 'recipesource' => { 489 => 'recipeSource' }, 'recipestartingpage' => { 489 => 'recipeStartingPage' }, 'recipetitle' => { 489 => 'recipeTitle' }, 'recognizedface1age' => { 307 => 0x20 }, 'recognizedface1name' => { 307 => 0x4 }, 'recognizedface1position' => { 307 => 0x18 }, 'recognizedface2age' => { 307 => 0x50 }, 'recognizedface2name' => { 307 => 0x34 }, 'recognizedface2position' => { 307 => 0x48 }, 'recognizedface3age' => { 307 => 0x80 }, 'recognizedface3name' => { 307 => 0x64 }, 'recognizedface3position' => { 307 => 0x78 }, 'recognizedfaceflags' => { 314 => 0x63 }, 'recommendedexposureindex' => { 118 => 0x8832, 478 => 'RecommendedExposureIndex' }, 'recordingcopyright' => { 374 => "\xa9phg" }, 'recordingformat' => { 381 => 0x1000 }, 'recordingmode' => { 111 => 0x1, 356 => 0x1 }, 'recordlabelname' => { 374 => "\xa9lab" }, 'recordlabelurl' => { 374 => "\xa9lal" }, 'recordshutterrelease' => { 390 => 0x217 }, 'redbalance' => { 296 => 0x1017, 319 => 0x11, 349 => 0x1c }, 'redeyecorrection' => { 271 => 0x0 }, 'redeyeinfo' => { 471 => 'RedEyeInfo', 473 => 'RedEyeInfo' }, 'redeyereduction' => { 183 => 0x41, 401 => 0x6a, 403 => 0x28 }, 'redeyeremoval' => { 314 => 0xb9 }, 'redhue' => { 471 => 'RedHue', 473 => 'RedHue' }, 'redsaturation' => { 471 => 'RedSaturation', 473 => 'RedSaturation' }, 'reelname' => { 118 => 0xc789, 374 => 'reel' }, 'reference1' => { 481 => [\'TagStructure','TagStructureReference'] }, 'reference2' => { 481 => [\'TagStructure','TagStructureSubLabelsReference'] }, 'reference3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsReference'] }, 'reference4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsReference'] }, 'reference5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, 'reference6' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, 'referenceblackwhite' => { 118 => 0x214, 493 => 'ReferenceBlackWhite' }, 'regionconstraints' => { 301 => 'RegionConstraints' }, 'registryentryrole' => { 483 => [\'RegistryId','RegistryIdRegEntryRole'] }, 'registryid' => { 483 => 'RegistryId' }, 'registryitemid' => { 483 => [\'RegistryId','RegistryIdRegItemId'] }, 'registryorganisationid' => { 483 => [\'RegistryId','RegistryIdRegOrgId'] }, 'relatedsoundfile' => { 118 => 0xa004, 477 => 'RelatedSoundFile' }, 'relation' => { 474 => 'relation' }, 'relativepeakaudiofilepath' => { 497 => 'relativePeakAudioFilePath' }, 'relativetimestamp' => { 497 => 'relativeTimestamp' }, 'relativetimestampscale' => { 497 => [\'relativeTimestamp','relativeTimestampScale'] }, 'relativetimestampvalue' => { 497 => [\'relativeTimestamp','relativeTimestampValue'] }, 'releasebuttontousedial' => { 274 => '17.8', 275 => '18.5', 277 => '18.4', 278 => '18.4', 283 => '33.8', 284 => '17.6', 287 => '18.5', 288 => '18.4' }, 'releasedate' => { 130 => 0x1e, 366 => 'rldt', 466 => 'ReleaseDate', 497 => 'releaseDate' }, 'releasemode' => { 112 => 0x3001, 242 => 0x184d, 414 => 0xb049 }, 'releasemode2' => { 422 => 0x112c, 423 => [0x112c,0x8], 424 => [0x1108,0x8], 425 => [0x1184,0x8], 426 => [0x1160,0x8], 427 => [0x4,0x1018], 428 => [0x4,0x210], 429 => [0x4,0x210], 430 => [0x4,0x208], 432 => [0x67,0x3f], 433 => [0x6b,0x6d,0x73,0x4b], 434 => [0x6b,0x4b], 435 => 0x10, 436 => 0x10, 437 => 0x9, 444 => 0x34 }, 'releasemode3' => { 422 => 0x1128, 423 => 0x1128, 424 => 0x1104, 425 => 0x1180, 426 => 0x115c, 427 => 0x1014, 428 => 0x20c, 429 => 0x20c, 430 => 0x204 }, 'releaseready' => { 483 => 'ReleaseReady' }, 'releasetime' => { 130 => 0x23, 466 => 'ReleaseTime' }, 'remoteonduration' => { 276 => '3.4', 279 => '17.2', 280 => '18.2', 281 => '18.2', 282 => '18.2', 284 => '18.2', 285 => '4.3', 289 => '19.2' }, 'renditionclass' => { 498 => 'RenditionClass' }, 'renditionof' => { 498 => 'RenditionOf' }, 'renditionofalternatepaths' => { 498 => [\'RenditionOf','RenditionOfAlternatePaths'] }, 'renditionofdocumentid' => { 498 => [\'RenditionOf','RenditionOfDocumentID'] }, 'renditionoffilepath' => { 498 => [\'RenditionOf','RenditionOfFilePath'] }, 'renditionoffrompart' => { 498 => [\'RenditionOf','RenditionOfFromPart'] }, 'renditionofinstanceid' => { 498 => [\'RenditionOf','RenditionOfInstanceID'] }, 'renditionoflastmodifydate' => { 498 => [\'RenditionOf','RenditionOfLastModifyDate'] }, 'renditionoflasturl' => { 498 => [\'RenditionOf','RenditionOfLastURL'] }, 'renditionoflinkcategory' => { 498 => [\'RenditionOf','RenditionOfLinkCategory'] }, 'renditionoflinkform' => { 498 => [\'RenditionOf','RenditionOfLinkForm'] }, 'renditionofmanager' => { 498 => [\'RenditionOf','RenditionOfManager'] }, 'renditionofmanagervariant' => { 498 => [\'RenditionOf','RenditionOfManagerVariant'] }, 'renditionofmanageto' => { 498 => [\'RenditionOf','RenditionOfManageTo'] }, 'renditionofmanageui' => { 498 => [\'RenditionOf','RenditionOfManageUI'] }, 'renditionofmaskmarkers' => { 498 => [\'RenditionOf','RenditionOfMaskMarkers'] }, 'renditionoforiginaldocumentid' => { 498 => [\'RenditionOf','RenditionOfOriginalDocumentID'] }, 'renditionofpartmapping' => { 498 => [\'RenditionOf','RenditionOfPartMapping'] }, 'renditionofplacedresolutionunit' => { 498 => [\'RenditionOf','RenditionOfPlacedResolutionUnit'] }, 'renditionofplacedxresolution' => { 498 => [\'RenditionOf','RenditionOfPlacedXResolution'] }, 'renditionofplacedyresolution' => { 498 => [\'RenditionOf','RenditionOfPlacedYResolution'] }, 'renditionofrenditionclass' => { 498 => [\'RenditionOf','RenditionOfRenditionClass'] }, 'renditionofrenditionparams' => { 498 => [\'RenditionOf','RenditionOfRenditionParams'] }, 'renditionoftopart' => { 498 => [\'RenditionOf','RenditionOfToPart'] }, 'renditionofversionid' => { 498 => [\'RenditionOf','RenditionOfVersionID'] }, 'renditionparams' => { 498 => 'RenditionParams' }, 'repeatingflashcount' => { 207 => 0xd, 208 => 0xe, 209 => 0xe, 210 => 0xe, 211 => 0xe, 283 => '17.2', 284 => '24.2', 285 => '9.2', 286 => '24.2', 289 => '25.2' }, 'repeatingflashcountbuilt-in' => { 251 => 0x4db }, 'repeatingflashcountexternal' => { 251 => 0x4c3 }, 'repeatingflashoutput' => { 283 => '17.1', 284 => '24.1', 285 => '9.1', 286 => '24.1', 289 => '25.1' }, 'repeatingflashoutputexternal' => { 251 => 0x4c0 }, 'repeatingflashrate' => { 207 => 0xc, 208 => 0xd, 209 => 0xd, 210 => 0xd, 211 => 0xd, 283 => '18.1', 284 => '25.1', 285 => '10.1', 286 => '25.1', 289 => '26.1' }, 'repeatingflashratebuilt-in' => { 251 => 0x4da }, 'repeatingflashrateexternal' => { 251 => 0x4c2 }, 'requirements' => { 374 => "\xa9req" }, 'requires' => { 469 => 'requires' }, 'resampleparams' => { 497 => 'resampleParams' }, 'resampleparamsquality' => { 497 => [\'resampleParams','resampleParamsQuality'] }, 'resaved' => { 390 => 0x21e }, 'resolutionmode' => { 391 => [0x87,0x4] }, 'resolutionunit' => { 118 => 0x128, 133 => 0x2, 493 => 'ResolutionUnit' }, 'restrictions' => { 490 => 'restrictions' }, 'retouchareafeather' => { 471 => [\'RetouchAreas','RetouchAreasFeather'], 473 => [\'RetouchAreas','RetouchAreasFeather'] }, 'retouchareamaskalpha' => { 471 => [\'RetouchAreas','RetouchAreasMasksAlpha'], 473 => [\'RetouchAreas','RetouchAreasMasksAlpha'] }, 'retouchareamaskangle' => { 471 => [\'RetouchAreas','RetouchAreasMasksAngle'], 473 => [\'RetouchAreas','RetouchAreasMasksAngle'] }, 'retouchareamaskbottom' => { 471 => [\'RetouchAreas','RetouchAreasMasksBottom'], 473 => [\'RetouchAreas','RetouchAreasMasksBottom'] }, 'retouchareamaskcentervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksCenterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksCenterValue'] }, 'retouchareamaskcenterweight' => { 471 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'], 473 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'] }, 'retouchareamaskdabs' => { 471 => [\'RetouchAreas','RetouchAreasMasksDabs'], 473 => [\'RetouchAreas','RetouchAreasMasksDabs'] }, 'retouchareamaskfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksFeather'] }, 'retouchareamaskflipped' => { 471 => [\'RetouchAreas','RetouchAreasMasksFlipped'], 473 => [\'RetouchAreas','RetouchAreasMasksFlipped'] }, 'retouchareamaskflow' => { 471 => [\'RetouchAreas','RetouchAreasMasksFlow'], 473 => [\'RetouchAreas','RetouchAreasMasksFlow'] }, 'retouchareamaskfullx' => { 471 => [\'RetouchAreas','RetouchAreasMasksFullX'], 473 => [\'RetouchAreas','RetouchAreasMasksFullX'] }, 'retouchareamaskfully' => { 471 => [\'RetouchAreas','RetouchAreasMasksFullY'], 473 => [\'RetouchAreas','RetouchAreasMasksFullY'] }, 'retouchareamaskinputdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksInputDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksInputDigest'] }, 'retouchareamaskleft' => { 471 => [\'RetouchAreas','RetouchAreasMasksLeft'], 473 => [\'RetouchAreas','RetouchAreasMasksLeft'] }, 'retouchareamaskmaskactive' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskActive'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskActive'] }, 'retouchareamaskmaskblendmode' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'] }, 'retouchareamaskmaskdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'] }, 'retouchareamaskmaskinverted' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'] }, 'retouchareamaskmaskname' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskName'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskName'] }, 'retouchareamaskmasks' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasks'], 473 => [\'RetouchAreas','RetouchAreasMasksMasks'] }, 'retouchareamaskmasksalpha' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'] }, 'retouchareamaskmasksangle' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'] }, 'retouchareamaskmasksbottom' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'] }, 'retouchareamaskmaskscentervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'] }, 'retouchareamaskmaskscenterweight' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'] }, 'retouchareamaskmasksdabs' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'] }, 'retouchareamaskmasksfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'] }, 'retouchareamaskmasksflipped' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'] }, 'retouchareamaskmasksflow' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'] }, 'retouchareamaskmasksfullx' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'] }, 'retouchareamaskmasksfully' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'] }, 'retouchareamaskmasksinputdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'] }, 'retouchareamaskmasksleft' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'] }, 'retouchareamaskmasksmaskactive' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'] }, 'retouchareamaskmasksmaskblendmode' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'] }, 'retouchareamaskmasksmaskdigest' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'] }, 'retouchareamaskmasksmaskinverted' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'] }, 'retouchareamaskmasksmaskname' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'] }, 'retouchareamaskmasksmasksubtype' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'] }, 'retouchareamaskmasksmasksyncid' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'] }, 'retouchareamaskmasksmaskversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'] }, 'retouchareamaskmasksmidpoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'] }, 'retouchareamaskmasksorigin' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'] }, 'retouchareamaskmasksperimetervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'] }, 'retouchareamaskmasksradius' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'] }, 'retouchareamaskmasksreferencepoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'] }, 'retouchareamaskmasksright' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksRight'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksRight'] }, 'retouchareamaskmasksroundness' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'] }, 'retouchareamaskmaskssizex' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'] }, 'retouchareamaskmaskssizey' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'] }, 'retouchareamaskmaskstop' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksTop'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksTop'] }, 'retouchareamaskmasksubtype' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'] }, 'retouchareamaskmasksvalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'] }, 'retouchareamaskmasksversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'] }, 'retouchareamaskmaskswhat' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'] }, 'retouchareamaskmaskswholeimagearea' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'] }, 'retouchareamaskmasksx' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksX'] }, 'retouchareamaskmasksy' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksY'] }, 'retouchareamaskmasksyncid' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'] }, 'retouchareamaskmaskszerox' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'] }, 'retouchareamaskmaskszeroy' => { 471 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'], 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'] }, 'retouchareamaskmaskversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'] }, 'retouchareamaskmidpoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksMidpoint'], 473 => [\'RetouchAreas','RetouchAreasMasksMidpoint'] }, 'retouchareamaskorigin' => { 471 => [\'RetouchAreas','RetouchAreasMasksOrigin'], 473 => [\'RetouchAreas','RetouchAreasMasksOrigin'] }, 'retouchareamaskperimetervalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'], 473 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'] }, 'retouchareamaskradius' => { 471 => [\'RetouchAreas','RetouchAreasMasksRadius'], 473 => [\'RetouchAreas','RetouchAreasMasksRadius'] }, 'retouchareamaskrange' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'] }, 'retouchareamaskrangeareamodels' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'] }, 'retouchareamaskrangeareamodelscolorsampleinfo' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'retouchareamaskrangeareamodelscomponents' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'retouchareamaskrangecoloramount' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'] }, 'retouchareamaskrangedepthfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'] }, 'retouchareamaskrangedepthmax' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'] }, 'retouchareamaskrangedepthmin' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'] }, 'retouchareamaskrangeinvert' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'] }, 'retouchareamaskrangelumfeather' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'] }, 'retouchareamaskrangeluminancedepthsampleinfo' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'retouchareamaskrangelummax' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'] }, 'retouchareamaskrangelummin' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'] }, 'retouchareamaskrangelumrange' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'] }, 'retouchareamaskrangesampletype' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'] }, 'retouchareamaskrangetype' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'] }, 'retouchareamaskrangeversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'] }, 'retouchareamaskreferencepoint' => { 471 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'], 473 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'] }, 'retouchareamaskright' => { 471 => [\'RetouchAreas','RetouchAreasMasksRight'], 473 => [\'RetouchAreas','RetouchAreasMasksRight'] }, 'retouchareamaskroundness' => { 471 => [\'RetouchAreas','RetouchAreasMasksRoundness'], 473 => [\'RetouchAreas','RetouchAreasMasksRoundness'] }, 'retouchareamasks' => { 471 => [\'RetouchAreas','RetouchAreasMasks'], 473 => [\'RetouchAreas','RetouchAreasMasks'] }, 'retouchareamasksizex' => { 471 => [\'RetouchAreas','RetouchAreasMasksSizeX'], 473 => [\'RetouchAreas','RetouchAreasMasksSizeX'] }, 'retouchareamasksizey' => { 471 => [\'RetouchAreas','RetouchAreasMasksSizeY'], 473 => [\'RetouchAreas','RetouchAreasMasksSizeY'] }, 'retouchareamasktop' => { 471 => [\'RetouchAreas','RetouchAreasMasksTop'], 473 => [\'RetouchAreas','RetouchAreasMasksTop'] }, 'retouchareamaskvalue' => { 471 => [\'RetouchAreas','RetouchAreasMasksMaskValue'], 473 => [\'RetouchAreas','RetouchAreasMasksMaskValue'] }, 'retouchareamaskversion' => { 471 => [\'RetouchAreas','RetouchAreasMasksVersion'], 473 => [\'RetouchAreas','RetouchAreasMasksVersion'] }, 'retouchareamaskwhat' => { 471 => [\'RetouchAreas','RetouchAreasMasksWhat'], 473 => [\'RetouchAreas','RetouchAreasMasksWhat'] }, 'retouchareamaskwholeimagearea' => { 471 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'], 473 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'] }, 'retouchareamaskx' => { 471 => [\'RetouchAreas','RetouchAreasMasksX'], 473 => [\'RetouchAreas','RetouchAreasMasksX'] }, 'retouchareamasky' => { 471 => [\'RetouchAreas','RetouchAreasMasksY'], 473 => [\'RetouchAreas','RetouchAreasMasksY'] }, 'retouchareamaskzerox' => { 471 => [\'RetouchAreas','RetouchAreasMasksZeroX'], 473 => [\'RetouchAreas','RetouchAreasMasksZeroX'] }, 'retouchareamaskzeroy' => { 471 => [\'RetouchAreas','RetouchAreasMasksZeroY'], 473 => [\'RetouchAreas','RetouchAreasMasksZeroY'] }, 'retouchareamethod' => { 471 => [\'RetouchAreas','RetouchAreasMethod'], 473 => [\'RetouchAreas','RetouchAreasMethod'] }, 'retouchareaoffsety' => { 471 => [\'RetouchAreas','RetouchAreasOffsetY'], 473 => [\'RetouchAreas','RetouchAreasOffsetY'] }, 'retouchareaopacity' => { 471 => [\'RetouchAreas','RetouchAreasOpacity'], 473 => [\'RetouchAreas','RetouchAreasOpacity'] }, 'retouchareas' => { 471 => 'RetouchAreas', 473 => 'RetouchAreas' }, 'retouchareaseed' => { 471 => [\'RetouchAreas','RetouchAreasSeed'], 473 => [\'RetouchAreas','RetouchAreasSeed'] }, 'retouchareasourcestate' => { 471 => [\'RetouchAreas','RetouchAreasSourceState'], 473 => [\'RetouchAreas','RetouchAreasSourceState'] }, 'retouchareasourcex' => { 471 => [\'RetouchAreas','RetouchAreasSourceX'], 473 => [\'RetouchAreas','RetouchAreasSourceX'] }, 'retouchareaspottype' => { 471 => [\'RetouchAreas','RetouchAreasSpotType'], 473 => [\'RetouchAreas','RetouchAreasSpotType'] }, 'retouchinfo' => { 471 => 'RetouchInfo', 473 => 'RetouchInfo' }, 'retouchnefprocessing' => { 231 => 0x5 }, 'reuse' => { 301 => 'Reuse' }, 'reuseallowed' => { 500 => 'ReuseAllowed' }, 'reuseprohibited' => { 490 => 'reuseProhibited' }, 'reverseexposurecompdial' => { 281 => '5.2' }, 'reverseindicators' => { 274 => '12.1', 275 => '6.1', 277 => '6.1', 278 => '6.1', 279 => '4.3', 280 => '5.2', 281 => '5.4', 283 => '33.5', 284 => '5.1', 287 => '6.1', 288 => '6.1', 289 => '6.2' }, 'reverseshutterspeedaperture' => { 281 => '5.3' }, 'revision' => { 475 => 'revision' }, 'richtextcomment' => { 480 => 'RichTextComment' }, 'ricohdate' => { 380 => 0x6 }, 'ricohimageheight' => { 380 => 0x2 }, 'ricohimagewidth' => { 380 => 0x0 }, 'rightalbedo' => { 462 => 'RightAlbedo' }, 'rights' => { 474 => 'rights' }, 'rightsagent' => { 490 => 'rightsAgent' }, 'rightsowner' => { 490 => 'rightsOwner' }, 'roll' => { 114 => 0x8, 374 => ['roll',"\xa9frl"] }, 'rollangle' => { 242 => 0x350b, 243 => 0x2c24, 247 => 0xc21a, 252 => 0x36f4, 253 => 0x2efb, 255 => 0xce32, 291 => 0x903, 314 => 0x90, 348 => 0x1, 386 => 0x2 }, 'rotation' => { 30 => 0x17, 31 => 0x18, 95 => 0x3, 102 => 0x10002, 107 => 0x26e, 113 => 'QuickTime-Rotation', 122 => 0x4, 164 => 'Rotation', 181 => [0x65,0x50], 182 => 0x46, 183 => 0x5a, 186 => 0x10, 242 => 0x3693, 243 => 0xca, 250 => '590.1', 267 => 0x76a43207, 314 => 0x30, 330 => '17.2', 360 => 0xd8, 367 => 'irot', 401 => 0x3f, 402 => 0x3f, 412 => 0x10 }, 'routedto' => { 479 => 'RoutedTo' }, 'routing' => { 365 => 'Routing' }, 'routingdestinations' => { 461 => 'RoutingDestinations' }, 'routingexclusions' => { 461 => 'RoutingExclusions' }, 'routingnotes' => { 479 => 'RoutingNotes' }, 'rpp' => { 466 => 'rpp' }, 'samplepagerange' => { 487 => 'samplePageRange' }, 'samplesperpixel' => { 118 => 0x115, 319 => 0x8, 493 => 'SamplesPerPixel' }, 'samsungmodelid' => { 388 => 0x3 }, 'sanyoquality' => { 390 => 0x201 }, 'sanyothumbnail' => { 390 => 0x100 }, 'saturation' => { 10 => 0x6e, 12 => 0x76, 34 => 0xe, 51 => 0x1, 111 => 0xd, 112 => [0x3013,0x1f], 118 => [0xa409,0xfe55], 126 => 0x1003, 155 => 'Saturation', 180 => 0x1f, 181 => 0x32, 182 => 0x28, 183 => 0x1a, 188 => 0x1, 224 => 0xaa, 226 => 0x35, 227 => 0x3b, 228 => 0x43, 314 => 0x40, 316 => 0x300d, 349 => 0x1f, 356 => 0xd, 375 => 0x27, 377 => 0x58, 380 => 0x28, 381 => 0x1013, 391 => 0x10, 401 => 0x1e, 402 => 0x1b, 414 => 0x2005, 471 => 'Saturation', 473 => 'Saturation', 477 => 'Saturation' }, 'saturationadj' => { 102 => 0x20901, 107 => 0x116, 224 => 0x94, 266 => 0x1, 270 => 0x2e, 448 => 0x8016 }, 'saturationadjustmentaqua' => { 471 => 'SaturationAdjustmentAqua', 473 => 'SaturationAdjustmentAqua' }, 'saturationadjustmentblue' => { 471 => 'SaturationAdjustmentBlue', 473 => 'SaturationAdjustmentBlue' }, 'saturationadjustmentgreen' => { 471 => 'SaturationAdjustmentGreen', 473 => 'SaturationAdjustmentGreen' }, 'saturationadjustmentmagenta' => { 471 => 'SaturationAdjustmentMagenta', 473 => 'SaturationAdjustmentMagenta' }, 'saturationadjustmentorange' => { 471 => 'SaturationAdjustmentOrange', 473 => 'SaturationAdjustmentOrange' }, 'saturationadjustmentpurple' => { 471 => 'SaturationAdjustmentPurple', 473 => 'SaturationAdjustmentPurple' }, 'saturationadjustmentred' => { 471 => 'SaturationAdjustmentRed', 473 => 'SaturationAdjustmentRed' }, 'saturationadjustmentyellow' => { 471 => 'SaturationAdjustmentYellow', 473 => 'SaturationAdjustmentYellow' }, 'saturationsetting' => { 299 => 0x1010, 403 => 0x11, 419 => 0x9 }, 'saveid' => { 498 => 'SaveID' }, 'scaletype' => { 497 => 'scaleType' }, 'scanimageenhancer' => { 232 => 0x60 }, 'scene' => { 374 => 'scen', 482 => 'Scene', 497 => 'scene' }, 'scenearea' => { 294 => 0x211, 296 => 0x1031 }, 'scenecapturetype' => { 118 => 0xa406, 477 => 'SceneCaptureType' }, 'scenedetect' => { 294 => 0x210, 296 => 0x1030 }, 'scenedetectdata' => { 294 => 0x212, 296 => 0x1033 }, 'scenemode' => { 141 => 0xfa02, 185 => 0x100, 224 => 0x8f, 291 => 0x509, 296 => 0x403, 314 => 0x8001, 323 => 0xf, 414 => 0xb023 }, 'sceneselect' => { 390 => 0x21f }, 'scenetype' => { 118 => 0xa301, 477 => 'SceneType' }, 'screentips' => { 274 => '12.7', 275 => '5.3', 283 => '13.1', 284 => '4.4', 287 => '5.4', 289 => '5.1' }, 'season' => { 483 => 'Season', 486 => 'season' }, 'seasonidentifier' => { 483 => [\'Season','SeasonIdentifier'] }, 'seasonname' => { 483 => [\'Season','SeasonName'] }, 'seasonnumber' => { 483 => [\'Season','SeasonNumber'] }, 'secondaryftp' => { 461 => 'SecondaryFTP' }, 'secondaryslotfunction' => { 242 => 0x1d0, 252 => 0x1d0 }, 'section' => { 487 => 'section' }, 'selftimer' => { 34 => 0x2, 314 => 0x2e, 390 => 0x214, 422 => 0x1134, 423 => 0x1134, 424 => 0x1110, 425 => 0x118c, 426 => 0x1168, 427 => 0x1020, 428 => 0x218, 429 => 0x218, 430 => 0x210 }, 'selftimerinterval' => { 284 => '19.2' }, 'selftimershotcount' => { 275 => '20.2', 277 => '20.3', 278 => '20.3', 279 => '18.2', 280 => '19.2', 281 => '19.2', 282 => '19.3', 284 => '19.3', 287 => '20.3', 288 => '20.3', 289 => '20.2' }, 'selftimershotinterval' => { 275 => '20.3', 277 => '20.2', 278 => '20.2', 282 => '19.2', 287 => '20.2', 288 => '20.2' }, 'selftimertime' => { 96 => 0x1806, 183 => 0x1f, 274 => '18.1', 275 => '20.1', 276 => '3.3', 277 => '20.1', 278 => '20.1', 279 => '18.1', 280 => '19.1', 281 => '19.1', 282 => '19.1', 283 => '7.2', 284 => '19.1', 285 => '3.3', 287 => '20.1', 288 => '20.1', 289 => '20.1' }, 'sellingagency' => { 487 => 'sellingAgency' }, 'sensingmethod' => { 118 => 0xa217, 477 => 'SensingMethod' }, 'sensitivityadjust' => { 349 => 0x40 }, 'sensitivitysteps' => { 330 => ['14.3','17.4'], 332 => 0x1 }, 'sensitivitytype' => { 118 => 0x8830, 478 => 'SensitivityType' }, 'sensorarea' => { 296 => 0x400 }, 'sensorareas' => { 388 => 0xa010 }, 'sensorbitdepth' => { 316 => 0x312d }, 'sensorcalibration' => { 295 => 0x805 }, 'sensorheight' => { 136 => 0xf901, 141 => 0xfa21, 187 => 0x8, 316 => 0x312c, 358 => 0x109, 381 => 0x1602 }, 'sensorleftmargin' => { 358 => 0x10a }, 'sensorsize' => { 155 => 'SensorSize', 349 => 0x35 }, 'sensortemperature' => { 294 => 0x1500, 296 => 0x1007, 354 => 0xc, 358 => 0x210, 391 => [0x39,0x55] }, 'sensortemperature2' => { 354 => 0xe, 358 => 0x211 }, 'sensortopmargin' => { 358 => 0x10b }, 'sensortype' => { 314 => 0xca }, 'sensorwidth' => { 136 => 0xf900, 141 => 0xfa20, 187 => 0xa, 316 => 0x312b, 358 => 0x108, 381 => 0x1601 }, 'sequence' => { 375 => 0x7, 376 => 0x35, 377 => 0x36 }, 'sequencefilenumber' => { 423 => 0x4, 424 => 0x4, 425 => 0x4, 426 => 0x4, 435 => 0xc, 436 => 0xc, 437 => 0x1a }, 'sequenceimagenumber' => { 423 => 0x0, 424 => 0x0, 425 => 0x0, 426 => 0x0, 435 => 0x8, 436 => 0x8, 437 => 0x12, 444 => 0x24 }, 'sequencelength' => { 435 => 0x22, 436 => 0x1e, 437 => [0x16,0x1e] }, 'sequencename' => { 486 => 'sequenceName' }, 'sequencenumber' => { 76 => 0x9, 112 => 0x301c, 126 => 0x1101, 139 => 0x1d, 251 => 0x51c, 314 => 0x2b, 403 => [0x10c,0x30c], 414 => 0xb04a, 486 => 'sequenceNumber' }, 'sequenceshotinterval' => { 390 => 0x224 }, 'sequencetotalnumber' => { 486 => 'sequenceTotalNumber' }, 'sequentialshot' => { 390 => 0x20e }, 'serialnumber' => { 63 => 0xc, 96 => 0x180b, 118 => [0xa431,0xfde9], 136 => 0xfa04, 138 => 0xfa00, 140 => 0xc354, 141 => 0xfa19, 152 => 0x0, 155 => 'SerialNumber', 190 => 0x5501, 224 => [0xa0,0x1d], 292 => 0x101, 296 => [0x404,0x101a], 309 => 0x303, 311 => 0x305, 316 => 0x3103, 349 => 0x229, 358 => 0x102, 359 => 0x407, 374 => ['SNum','slno'], 375 => 0x15, 376 => 0x4b, 377 => 0x7e, 381 => 0x5, 388 => 0xa002, 391 => 0x2, 414 => 0x2031, 468 => 'SerialNumber', 478 => 'BodySerialNumber' }, 'serialnumberhash' => { 374 => 'CAME' }, 'series' => { 483 => 'Series' }, 'seriesdatetime' => { 450 => 'SeriesDateTime' }, 'seriesdescription' => { 450 => 'SeriesDescription' }, 'seriesidentifier' => { 483 => [\'Series','SeriesIdentifier'] }, 'seriesmodality' => { 450 => 'SeriesModality' }, 'seriesname' => { 483 => [\'Series','SeriesName'] }, 'seriesnumber' => { 450 => 'SeriesNumber', 487 => 'seriesNumber' }, 'seriestitle' => { 487 => 'seriesTitle' }, 'servingsize' => { 489 => 'servingSize' }, 'setting' => { 486 => 'setting' }, 'shadingcompensation' => { 291 => 0x50c, 314 => 0x8a }, 'shadingcompensation2' => { 295 => 0x1012 }, 'shadow' => { 391 => 0xe }, 'shadowcorrection' => { 349 => 0x79 }, 'shadowprotection' => { 266 => 0x0 }, 'shadows' => { 118 => 0xfe52, 414 => 0x2032, 465 => 'Shadows', 471 => 'Shadows', 473 => 'Shadows' }, 'shadows2012' => { 471 => 'Shadows2012', 473 => 'Shadows2012' }, 'shadowsadj' => { 448 => 0x901a }, 'shadowtint' => { 471 => 'ShadowTint', 473 => 'ShadowTint' }, 'shakereduction' => { 351 => 0x1, 352 => 0x1 }, 'sharpendetail' => { 471 => 'SharpenDetail', 473 => 'SharpenDetail' }, 'sharpenedgemasking' => { 471 => 'SharpenEdgeMasking', 473 => 'SharpenEdgeMasking' }, 'sharpening' => { 316 => 0x300b }, 'sharpeningadj' => { 270 => 0x2b }, 'sharpenradius' => { 471 => 'SharpenRadius', 473 => 'SharpenRadius' }, 'sharpness' => { 8 => [0x42,0x48], 10 => 0x72, 12 => 0x74, 34 => 0xf, 73 => 0x2, 111 => 0xb, 112 => [0x3011,0x21], 118 => [0xa40a,0xfe56], 126 => 0x1001, 139 => 0x6b, 148 => 0x37, 155 => 'Sharpness', 180 => 0x21, 181 => 0x30, 182 => 0x26, 183 => 0x18, 188 => 0x3, 224 => 0x6, 226 => 0x32, 227 => 0x33, 228 => 0x39, 296 => 0x100f, 314 => 0x41, 349 => 0x21, 356 => 0xb, 375 => 0x26, 377 => 0x56, 380 => 0x22, 381 => [0x1003,0x1014], 391 => 0x11, 401 => 0x1c, 402 => 0x19, 414 => 0x2006, 444 => 0x52, 471 => 'Sharpness', 473 => 'Sharpness', 477 => 'Sharpness' }, 'sharpnessadj' => { 102 => 0x20310, 107 => 0x25a, 448 => 0x801a }, 'sharpnessfactor' => { 296 => 0x102a }, 'sharpnessovershoot' => { 448 => 0x801b }, 'sharpnessrange' => { 414 => 0x2035 }, 'sharpnesssetting' => { 291 => 0x506, 299 => 0x1013, 403 => 0x12, 419 => 0xa }, 'sharpnessthreshold' => { 448 => 0x801d }, 'sharpnessundershoot' => { 448 => 0x801c }, 'shootid' => { 486 => 'shootID' }, 'shootinginfodisplay' => { 274 => '13.2', 275 => '5.1', 283 => '10.2', 284 => '4.1', 287 => '5.1', 289 => '5.3' }, 'shootinginfomonitorofftime' => { 274 => '26.2', 275 => '22.2', 277 => '22.2', 278 => '22.2', 282 => '21.2', 283 => '9.1', 284 => '21.2', 287 => '22.2', 288 => '22.2', 289 => '22.2' }, 'shootingmode' => { 155 => 'ShootingMode', 224 => 0x89, 314 => 0x1f }, 'shootingmodesetting' => { 276 => '5.1' }, 'shortdescription' => { 475 => 'shortdescription' }, 'shortname' => { 471 => 'ShortName', 473 => 'ShortName' }, 'shorttitle' => { 366 => '@sti' }, 'shotdate' => { 497 => 'shotDate' }, 'shotday' => { 497 => 'shotDay' }, 'shotlocation' => { 497 => 'shotLocation' }, 'shotname' => { 374 => 'shot', 497 => 'shotName' }, 'shotnumber' => { 497 => 'shotNumber' }, 'shotnumbersincepowerup' => { 418 => 0x44e, 435 => 0x1a, 436 => 0x16, 437 => 0xa }, 'shotnumbersincepowerup2' => { 403 => 0x200 }, 'shotsize' => { 497 => 'shotSize' }, 'shotsperinterval' => { 247 => 0xc412, 259 => 0xb4 }, 'showmovement' => { 366 => 'shwm' }, 'shownevent' => { 483 => 'EventExt' }, 'showneventidentifier' => { 483 => [\'EventExt','EventExtIdentifier'] }, 'showneventname' => { 483 => [\'EventExt','EventExtName'] }, 'shutter' => { 432 => 0x20, 433 => 0x26, 434 => 0x26 }, 'shuttercount' => { 11 => 0x176, 57 => 0x1, 224 => 0xa7, 233 => [0x6a,0x157,0x24d], 234 => 0x286, 235 => 0x279, 236 => 0x284, 237 => 0x242, 238 => 0x280, 239 => 0x276, 240 => [0x27d,0x27f], 241 => 0x246, 244 => 0x2d6, 245 => 0x321, 246 => 0xbd8, 248 => 0x287, 249 => 0x320, 250 => 0x24a, 251 => 0x5fb, 254 => 0x2d5, 349 => 0x5d, 412 => 0x846, 417 => [0x125,0x14a], 432 => 0x32, 433 => 0x3a, 434 => 0x3a }, 'shuttercount2' => { 432 => 0x4c, 433 => [0x50,0x52,0x58], 434 => 0x50 }, 'shuttercount3' => { 432 => [0x1a0,0x1aa,0x1bd], 433 => [0x19f,0x1cb,0x1cd] }, 'shutterreleasebuttonae-l' => { 274 => '17.7', 275 => '18.4', 277 => '78.4', 278 => '78.4', 279 => '16.1', 280 => '17.1', 281 => '17.1', 282 => '17.1', 283 => '7.1', 284 => '17.5', 287 => '18.4', 288 => '78.4', 289 => '18.2' }, 'shutterspeedlock' => { 275 => '38.1', 277 => '38.1', 278 => '38.1', 287 => '38.1', 288 => '38.1' }, 'shutterspeedsetting' => { 183 => 0x6, 401 => 0x2f, 402 => 0x28, 403 => 0x0 }, 'shutterspeedvalue' => { 92 => 0x1, 118 => 0x9201, 296 => 0x1000, 358 => 0x400, 477 => 'ShutterSpeedValue' }, 'shuttertype' => { 126 => 0x1050, 314 => 0x9f, 349 => 0x87 }, 'sidecarforextension' => { 485 => 'SidecarForExtension' }, 'skilllevel' => { 489 => 'skillLevel' }, 'skintonecorrection' => { 349 => 0x95 }, 'slaveflashmeteringsegments' => { 349 => 0x20b }, 'slideshowname' => { 486 => 'slideshowName' }, 'slideshownumber' => { 486 => 'slideshowNumber' }, 'slideshowtotalnumber' => { 486 => 'slideshowTotalNumber' }, 'smartalbumcolor' => { 388 => 0x20 }, 'smartrange' => { 388 => 0xa012 }, 'smileshutter' => { 403 => 0x31 }, 'smileshuttermode' => { 403 => 0x27 }, 'smoothness' => { 118 => 0xfe57, 471 => 'Smoothness', 473 => 'Smoothness' }, 'snapshot' => { 483 => 'SnapshotLink' }, 'snapshotformat' => { 483 => [\'SnapshotLink','SnapshotLinkFormat'] }, 'snapshotheightpixels' => { 483 => [\'SnapshotLink','SnapshotLinkHeightPixels'] }, 'snapshotimagerole' => { 483 => [\'SnapshotLink','SnapshotLinkImageRole'] }, 'snapshotlink' => { 483 => [\'SnapshotLink','SnapshotLinkLink'] }, 'snapshotlinkqualifier' => { 483 => [\'SnapshotLink','SnapshotLinkLinkQualifier'] }, 'snapshots' => { 466 => 'Snapshots' }, 'snapshotusedvideoframe' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrame'] }, 'snapshotusedvideoframetimeformat' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeFormat'] }, 'snapshotusedvideoframetimevalue' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeValue'] }, 'snapshotusedvideoframevalue' => { 483 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameValue'] }, 'snapshotwidthpixels' => { 483 => [\'SnapshotLink','SnapshotLinkWidthPixels'] }, 'softskineffect' => { 414 => 0x200f }, 'software' => { 118 => 0x131, 156 => 'Software', 304 => 'Software', 358 => 0x203, 368 => 'software', 391 => 0x18, 456 => 'Software', 493 => 'Software' }, 'softwareversion' => { 374 => ['@swr',"\xa9swr"], 390 => 0x207 }, 'soloist' => { 366 => "\xa9sol" }, 'songwriter' => { 374 => "\xa9swf" }, 'songwriterkeywords' => { 374 => "\xa9swk" }, 'sonydatetime' => { 421 => 0x6, 423 => 0x1b6, 424 => 0x210, 425 => 0x1fe, 426 => 0x22c }, 'sonydatetime2' => { 432 => 0x51 }, 'sonyexposuretime' => { 432 => 0x3a, 433 => 0x46, 434 => [0x66,0x46] }, 'sonyexposuretime2' => { 444 => 0xe }, 'sonyfnumber' => { 432 => 0x3c, 433 => 0x48, 434 => [0x68,0x48], 444 => 0x14 }, 'sonyimageheight' => { 421 => 0x1a, 435 => 0x44, 436 => 0x3f, 437 => 0x47 }, 'sonyimageheightmax' => { 444 => 0x40 }, 'sonyimagesize' => { 183 => 0x3b, 401 => 0x54, 402 => 0x54, 403 => 0x9 }, 'sonyimagewidth' => { 421 => 0x1c }, 'sonyimagewidthmax' => { 444 => 0x3e }, 'sonyiso' => { 423 => 0x1218, 424 => 0x11f4, 425 => 0x1270, 426 => [0x1254,0x1258,0x1280], 427 => 0x113c, 428 => 0x344, 429 => 0x346, 430 => 0x320, 444 => 0x4 }, 'sonymaxaperture' => { 432 => 0x0, 433 => 0x0 }, 'sonymaxaperturevalue' => { 444 => 0x16 }, 'sonyminaperture' => { 432 => 0x1, 433 => 0x1 }, 'sonymodelid' => { 414 => 0xb001 }, 'sonytimeminsec' => { 433 => 0x61 }, 'sortalbum' => { 366 => 'soal' }, 'sortalbumartist' => { 366 => 'soaa' }, 'sortartist' => { 366 => 'soar' }, 'sortcomposer' => { 366 => 'soco' }, 'sortname' => { 366 => 'sonm', 471 => 'SortName', 473 => 'SortName' }, 'sortshow' => { 366 => 'sosn' }, 'soundengineer' => { 366 => "\xa9sne" }, 'source' => { 130 => 0x73, 304 => 'Source', 474 => 'source', 475 => 'source', 485 => 'Source' }, 'sourcecount' => { 460 => 'SourceCount' }, 'sourcecredits' => { 374 => "\xa9src" }, 'sourcedirectoryindex' => { 336 => 0x0 }, 'sourcefileindex' => { 336 => 0x2 }, 'sourcephotoscount' => { 459 => 'SourcePhotosCount' }, 'spatialfrequencyresponse' => { 477 => 'SpatialFrequencyResponse' }, 'spatialfrequencyresponsecolumns' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseColumns'] }, 'spatialfrequencyresponsenames' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseNames'] }, 'spatialfrequencyresponserows' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseRows'] }, 'spatialfrequencyresponsevalues' => { 477 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseValues'] }, 'speakerplacement' => { 497 => 'speakerPlacement' }, 'specialmode' => { 296 => 0x200, 390 => 0x200 }, 'specialoccasion' => { 489 => 'specialOccasion' }, 'specialtypeid' => { 454 => 'SpecialTypeID' }, 'spectralsensitivity' => { 118 => 0x8824, 477 => 'SpectralSensitivity' }, 'speedx' => { 114 => 0x3, 374 => "\xa9xsp" }, 'speedy' => { 114 => 0x4, 374 => "\xa9ysp" }, 'speedz' => { 114 => 0x5, 374 => "\xa9zsp" }, 'spherical' => { 460 => 'Spherical' }, 'splitcolumn' => { 358 => 0x222 }, 'splittoningbalance' => { 471 => 'SplitToningBalance', 473 => 'SplitToningBalance' }, 'splittoninghighlighthue' => { 471 => 'SplitToningHighlightHue', 473 => 'SplitToningHighlightHue' }, 'splittoninghighlightsaturation' => { 471 => 'SplitToningHighlightSaturation', 473 => 'SplitToningHighlightSaturation' }, 'splittoningshadowhue' => { 471 => 'SplitToningShadowHue', 473 => 'SplitToningShadowHue' }, 'splittoningshadowsaturation' => { 471 => 'SplitToningShadowSaturation', 473 => 'SplitToningShadowSaturation' }, 'sport' => { 487 => 'sport' }, 'sractive' => { 330 => '17.1' }, 'srfocallength' => { 351 => 0x3 }, 'srhalfpresstime' => { 351 => 0x2 }, 'srresult' => { 351 => 0x0, 352 => 0x0 }, 'stackedimage' => { 291 => 0x804 }, 'standardoutputsensitivity' => { 118 => 0x8831, 478 => 'StandardOutputSensitivity' }, 'standbytimer' => { 275 => '19.1', 277 => '19.1', 278 => '19.1', 281 => '18.1', 282 => '18.1', 287 => '19.1', 288 => '19.1' }, 'startingpage' => { 487 => 'startingPage' }, 'starttimecode' => { 374 => "\xa9TIM", 497 => 'startTimecode' }, 'starttimecodetimeformat' => { 497 => [\'startTimecode','startTimecodeTimeFormat'] }, 'starttimecodetimevalue' => { 497 => [\'startTimecode','startTimecodeTimeValue'] }, 'starttimecodevalue' => { 497 => [\'startTimecode','startTimecodeValue'] }, 'starttimesamplesize' => { 374 => "\xa9TSZ", 497 => 'startTimeSampleSize' }, 'starttimescale' => { 374 => "\xa9TSC", 497 => 'startTimeScale' }, 'state' => { 160 => 'State', 314 => 0x6b, 485 => 'State' }, 'status' => { 452 => 'Status', 464 => 'Status' }, 'stereomode' => { 460 => 'StereoMode' }, 'stitched' => { 460 => 'Stitched' }, 'stitchingsoftware' => { 459 => 'StitchingSoftware', 460 => 'StitchingSoftware' }, 'stopsabovebaseiso' => { 422 => 0x113e, 423 => 0x113e, 424 => 0x111a, 425 => 0x1196, 426 => 0x1172, 427 => 0x102a, 428 => 0x222, 429 => 0x222, 430 => 0x217, 444 => 0xa }, 'storebyorientation' => { 275 => '46.3', 277 => '47.3', 278 => '47.3', 287 => '47.3', 288 => '47.3' }, 'storedescription' => { 366 => 'sdes' }, 'storylineidentifier' => { 483 => 'StorylineIdentifier' }, 'straightenangle' => { 267 => 0x2fc08431 }, 'streamready' => { 483 => 'StreamReady' }, 'stretchmode' => { 497 => 'stretchMode' }, 'studydatetime' => { 450 => 'StudyDateTime' }, 'studydescription' => { 450 => 'StudyDescription' }, 'studyid' => { 450 => 'StudyID' }, 'studyphysician' => { 450 => 'StudyPhysician' }, 'styleperiod' => { 483 => 'StylePeriod' }, 'subject' => { 300 => 'Subject', 365 => 'Subject', 474 => 'subject', 484 => 'Subject', 498 => 'subject' }, 'subjectarea' => { 118 => 0x9214, 477 => 'SubjectArea' }, 'subjectcode' => { 482 => 'SubjectCode' }, 'subjectdistance' => { 118 => 0x9206, 139 => 0x3e, 477 => 'SubjectDistance' }, 'subjectdistancerange' => { 118 => 0xa40c, 477 => 'SubjectDistanceRange' }, 'subjectlocation' => { 118 => 0xa214, 477 => 'SubjectLocation' }, 'subjectmotion' => { 277 => '78.2', 278 => '78.2', 288 => '78.2' }, 'sublabels1' => { 481 => [\'TagStructure','TagStructureSubLabels'] }, 'sublabels2' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabels'] }, 'sublabels3' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabels'] }, 'sublabels4' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabels'] }, 'sublabels5' => { 481 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabels'] }, 'subsection1' => { 487 => 'subsection1' }, 'subsection2' => { 487 => 'subsection2' }, 'subsection3' => { 487 => 'subsection3' }, 'subsection4' => { 487 => 'subsection4' }, 'subselector' => { 275 => '49.1', 277 => '71.1', 278 => '71.1', 288 => '71.1' }, 'subselectorassignment' => { 275 => '48.1' }, 'subselectorcenter' => { 277 => '72.1', 278 => '72.1', 288 => '72.1' }, 'subselectorplusdials' => { 275 => '49.2', 277 => '73.1', 278 => '73.1', 288 => '73.1' }, 'subtitle' => { 178 => 'WM/SubTitle', 366 => "\xa9st3", 374 => "\xa9snm", 487 => 'subtitle' }, 'subtitlekeywords' => { 374 => "\xa9snk" }, 'subversionfilename' => { 481 => [\'SubVersions','SubVersionsFileName'] }, 'subversionreference' => { 481 => [\'SubVersions','SubVersionsVersRef'] }, 'subversions' => { 481 => 'SubVersions' }, 'supplementalcategories' => { 130 => 0x14, 485 => 'SupplementalCategories' }, 'supplementdisplayid' => { 487 => 'supplementDisplayID' }, 'supplementstartingpage' => { 487 => 'supplementStartingPage' }, 'supplementtitle' => { 487 => 'supplementTitle' }, 'supplychainsource' => { 483 => 'SupplyChainSource' }, 'supplychainsourceidentifier' => { 483 => [\'SupplyChainSource','SupplyChainSourceIdentifier'] }, 'supplychainsourcename' => { 483 => [\'SupplyChainSource','SupplyChainSourceName'] }, 'supportsamount' => { 471 => 'SupportsAmount', 473 => 'SupportsAmount' }, 'supportscolor' => { 471 => 'SupportsColor', 473 => 'SupportsColor' }, 'supportshighdynamicrange' => { 471 => 'SupportsHighDynamicRange', 473 => 'SupportsHighDynamicRange' }, 'supportsmonochrome' => { 471 => 'SupportsMonochrome', 473 => 'SupportsMonochrome' }, 'supportsnormaldynamicrange' => { 471 => 'SupportsNormalDynamicRange', 473 => 'SupportsNormalDynamicRange' }, 'supportsoutputreferred' => { 471 => 'SupportsOutputReferred', 473 => 'SupportsOutputReferred' }, 'supportsscenereferred' => { 471 => 'SupportsSceneReferred', 473 => 'SupportsSceneReferred' }, 'svisosetting' => { 330 => 0x14 }, 'swatchcoloranta' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsA'] }, 'swatchcolorantb' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsB'] }, 'swatchcolorantblack' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsBlack'] }, 'swatchcolorantblue' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsBlue'] }, 'swatchcolorantcyan' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsCyan'] }, 'swatchcolorantgray' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsGray'] }, 'swatchcolorantgreen' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsGreen'] }, 'swatchcolorantl' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsL'] }, 'swatchcolorantmagenta' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsMagenta'] }, 'swatchcolorantmode' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsMode'] }, 'swatchcolorantred' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsRed'] }, 'swatchcolorantswatchname' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsSwatchName'] }, 'swatchcoloranttint' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsTint'] }, 'swatchcoloranttype' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsType'] }, 'swatchcolorantyellow' => { 502 => [\'SwatchGroups','SwatchGroupsColorantsYellow'] }, 'swatchgroupname' => { 502 => [\'SwatchGroups','SwatchGroupsGroupName'] }, 'swatchgroups' => { 502 => 'SwatchGroups' }, 'swatchgroupscolorants' => { 502 => [\'SwatchGroups','SwatchGroupsColorants'] }, 'swatchgrouptype' => { 502 => [\'SwatchGroups','SwatchGroupsGroupType'] }, 'sweeppanoramadirection' => { 314 => 0x93, 403 => 0x33 }, 'sweeppanoramafieldofview' => { 314 => 0x94 }, 'sweeppanoramasize' => { 403 => 0x32 }, 'syncreleasemode' => { 277 => '77.1', 278 => '77.1', 288 => '77.1' }, 'system' => { 358 => 0x204 }, 'tagged' => { 360 => 0xdd, 361 => 'Tagged', 466 => 'tagged' }, 'tagslist' => { 476 => 'TagsList' }, 'tagstructure' => { 481 => 'TagStructure' }, 'takenumber' => { 497 => 'takeNumber' }, 'tapename' => { 497 => 'tapeName' }, 'teaser' => { 487 => 'teaser' }, 'teleconverter' => { 185 => 0x105, 414 => 0x105 }, 'tempo' => { 497 => 'tempo' }, 'temporalcoverage' => { 483 => 'TemporalCoverage' }, 'temporalcoveragefrom' => { 483 => [\'TemporalCoverage','TemporalCoverageTempCoverageFrom'] }, 'temporalcoverageto' => { 483 => [\'TemporalCoverage','TemporalCoverageTempCoverageTo'] }, 'termsandconditionstext' => { 301 => 'TermsAndConditionsText' }, 'termsandconditionsurl' => { 301 => 'TermsAndConditionsURL' }, 'textlayername' => { 485 => [\'TextLayers','TextLayersLayerName'] }, 'textlayers' => { 485 => 'TextLayers' }, 'textlayertext' => { 485 => [\'TextLayers','TextLayersLayerText'] }, 'textstamp' => { 314 => [0x8008,0x8009,0x3b,0x3e] }, 'texture' => { 471 => 'Texture', 473 => 'Texture' }, 'three-dtrackingfacedetection' => { 277 => '1.4', 278 => '1.4', 288 => '1.4' }, 'three-dtrackingwatcharea' => { 277 => '78.1', 278 => '78.1', 288 => '78.1' }, 'thumbnailformat' => { 495 => [\'Thumbnails','ThumbnailsFormat'] }, 'thumbnailheight' => { 141 => 0xfa55, 495 => [\'Thumbnails','ThumbnailsHeight'] }, 'thumbnailimage' => { 6 => 'CNDA', 96 => 0x2008, 113 => 'Exif-ThumbnailImage', 121 => 0x3, 166 => 'data', 296 => 0x100, 374 => 'thmb', 495 => [\'Thumbnails','ThumbnailsImage'] }, 'thumbnailpng' => { 374 => 'thmb' }, 'thumbnails' => { 495 => 'Thumbnails' }, 'thumbnailwidth' => { 141 => 0xfa54, 495 => [\'Thumbnails','ThumbnailsWidth'] }, 'ticker' => { 487 => 'ticker' }, 'tiffhandling' => { 471 => 'TIFFHandling', 473 => 'TIFFHandling' }, 'tiffmeteringimage' => { 186 => 0x104c, 412 => 0x1110 }, 'time' => { 137 => 0x401, 349 => 0x7 }, 'timecreated' => { 130 => 0x3c, 139 => 0x14, 148 => 0x10, 361 => 'TimeCreated' }, 'timelapseshotnumber' => { 317 => 0x10 }, 'timeperiod' => { 487 => 'timePeriod' }, 'timerfunctionbutton' => { 276 => '5.2', 279 => '12.1', 280 => '13.1' }, 'timerrecording' => { 314 => 0x96 }, 'timescaleparams' => { 497 => 'timeScaleParams' }, 'timescaleparamsframeoverlappingpercentage' => { 497 => [\'timeScaleParams','timeScaleParamsFrameOverlappingPercentage'] }, 'timescaleparamsframesize' => { 497 => [\'timeScaleParams','timeScaleParamsFrameSize'] }, 'timescaleparamsquality' => { 497 => [\'timeScaleParams','timeScaleParamsQuality'] }, 'timeshot' => { 461 => 'TimeShot' }, 'timesignature' => { 497 => 'timeSignature' }, 'timesincepoweron' => { 314 => 0x29 }, 'timestamp' => { 11 => 0x45e, 19 => 0x11c, 290 => 0x8, 304 => 'TimeStamp', 314 => 0xaf, 460 => 'Timestamp', 467 => 'Timestamp', 481 => 'TimeStamp' }, 'timezone' => { 77 => 0x1, 258 => 0x0, 384 => 0xa }, 'tint' => { 368 => 'player.movie.visual.tint', 471 => 'Tint', 473 => 'Tint' }, 'title' => { 156 => 'Title', 300 => 'Title', 304 => 'Title', 314 => 0x65, 365 => 'Title', 366 => ['titl',"\xa9nam"], 368 => 'title', 374 => ['titl',"\xa9nam"], 474 => 'title', 484 => 'Title', 495 => 'Title' }, 'togglestyleamount' => { 471 => 'ToggleStyleAmount', 473 => 'ToggleStyleAmount' }, 'togglestyledigest' => { 471 => 'ToggleStyleDigest', 473 => 'ToggleStyleDigest' }, 'tonecurve' => { 73 => 0x1, 349 => 0x402, 471 => 'ToneCurve', 473 => 'ToneCurve' }, 'tonecurveadobergb' => { 388 => 0xa043 }, 'tonecurveadobergbdefault' => { 388 => 0xa041 }, 'tonecurveblue' => { 471 => 'ToneCurveBlue', 473 => 'ToneCurveBlue' }, 'tonecurvebluex' => { 448 => 0x9003 }, 'tonecurvebluey' => { 448 => 0x9007 }, 'tonecurvebrightnessx' => { 448 => 0x9000 }, 'tonecurvebrightnessy' => { 448 => 0x9004 }, 'tonecurvegreen' => { 471 => 'ToneCurveGreen', 473 => 'ToneCurveGreen' }, 'tonecurvegreenx' => { 448 => 0x9002 }, 'tonecurvegreeny' => { 448 => 0x9006 }, 'tonecurvename' => { 471 => 'ToneCurveName', 473 => 'ToneCurveName' }, 'tonecurvename2012' => { 471 => 'ToneCurveName2012', 473 => 'ToneCurveName2012' }, 'tonecurvepv2012' => { 471 => 'ToneCurvePV2012', 473 => 'ToneCurvePV2012' }, 'tonecurvepv2012blue' => { 471 => 'ToneCurvePV2012Blue', 473 => 'ToneCurvePV2012Blue' }, 'tonecurvepv2012green' => { 471 => 'ToneCurvePV2012Green', 473 => 'ToneCurvePV2012Green' }, 'tonecurvepv2012red' => { 471 => 'ToneCurvePV2012Red', 473 => 'ToneCurvePV2012Red' }, 'tonecurvered' => { 471 => 'ToneCurveRed', 473 => 'ToneCurveRed' }, 'tonecurveredx' => { 448 => 0x9001 }, 'tonecurveredy' => { 448 => 0x9005 }, 'tonecurves' => { 349 => 0x403 }, 'tonecurvesrgb' => { 388 => 0xa042 }, 'tonecurvesrgbdefault' => { 388 => 0xa040 }, 'tonelevel' => { 291 => 0x52e }, 'tonemapstrength' => { 471 => 'ToneMapStrength', 473 => 'ToneMapStrength' }, 'toningeffect' => { 57 => 0xf, 224 => 0xb3, 226 => 0x38, 227 => 0x40, 228 => 0x48, 381 => 0x1015 }, 'toningsaturation' => { 226 => 0x39, 227 => 0x41, 228 => 0x49 }, 'touchae' => { 314 => 0xab }, 'track' => { 366 => "\xa9trk", 374 => "\xa9trk" }, 'trackcreatedate' => { 373 => 0x1 }, 'trackmodifydate' => { 373 => 0x2 }, 'tracknumber' => { 366 => 'trkn', 497 => 'trackNumber' }, 'tracks' => { 497 => 'Tracks' }, 'tracksframerate' => { 497 => [\'Tracks','TracksFrameRate'] }, 'tracksmarkers' => { 497 => [\'Tracks','TracksMarkers'] }, 'tracksmarkerscomment' => { 497 => [\'Tracks','TracksMarkersComment'] }, 'tracksmarkerscuepointparams' => { 497 => [\'Tracks','TracksMarkersCuePointParams'] }, 'tracksmarkerscuepointparamskey' => { 497 => [\'Tracks','TracksMarkersCuePointParamsKey'] }, 'tracksmarkerscuepointparamsvalue' => { 497 => [\'Tracks','TracksMarkersCuePointParamsValue'] }, 'tracksmarkerscuepointtype' => { 497 => [\'Tracks','TracksMarkersCuePointType'] }, 'tracksmarkersduration' => { 497 => [\'Tracks','TracksMarkersDuration'] }, 'tracksmarkerslocation' => { 497 => [\'Tracks','TracksMarkersLocation'] }, 'tracksmarkersname' => { 497 => [\'Tracks','TracksMarkersName'] }, 'tracksmarkersprobability' => { 497 => [\'Tracks','TracksMarkersProbability'] }, 'tracksmarkersspeaker' => { 497 => [\'Tracks','TracksMarkersSpeaker'] }, 'tracksmarkersstarttime' => { 497 => [\'Tracks','TracksMarkersStartTime'] }, 'tracksmarkerstarget' => { 497 => [\'Tracks','TracksMarkersTarget'] }, 'tracksmarkerstype' => { 497 => [\'Tracks','TracksMarkersType'] }, 'trackstrackname' => { 497 => [\'Tracks','TracksTrackName'] }, 'trackstracktype' => { 497 => [\'Tracks','TracksTrackType'] }, 'tracktype' => { 374 => 'kgtt' }, 'transcript' => { 483 => 'Transcript' }, 'transcriptlink' => { 483 => 'TranscriptLink' }, 'transcriptlinklink' => { 483 => [\'TranscriptLink','TranscriptLinkLink'] }, 'transcriptlinklinkqualifier' => { 483 => [\'TranscriptLink','TranscriptLinkLinkQualifier'] }, 'transferfunction' => { 118 => 0x12d, 493 => 'TransferFunction' }, 'transform' => { 314 => [0x8012,0x59] }, 'transmissionreference' => { 485 => 'TransmissionReference' }, 'trapped' => { 300 => 'Trapped', 484 => 'Trapped' }, 'travelday' => { 314 => 0x36 }, 'treble' => { 368 => 'player.movie.audio.treble' }, 'triggermode' => { 375 => 0x6, 376 => 0x34, 377 => 0x34 }, 'ttl_da_adown' => { 337 => 0x5 }, 'ttl_da_aup' => { 337 => 0x4 }, 'ttl_da_bdown' => { 337 => 0x7 }, 'ttl_da_bup' => { 337 => 0x6 }, 'tungstenawb' => { 327 => 0x1 }, 'tvepisode' => { 366 => 'tves' }, 'tvepisodeid' => { 366 => 'tven' }, 'tvexposuretimesetting' => { 330 => 0x12 }, 'tvnetworkname' => { 366 => 'tvnn' }, 'tvseason' => { 366 => 'tvsn' }, 'tvshow' => { 366 => 'tvsh' }, 'type' => { 474 => 'type', 492 => 'type' }, 'units' => { 456 => 'Units' }, 'unknown_aacr' => { 366 => 'AACR' }, 'unknown_cdek' => { 366 => 'CDEK' }, 'unknown_cdet' => { 366 => 'CDET' }, 'unknownblock' => { 349 => 0x405 }, 'unknownblock1' => { 295 => 0x635 }, 'unknownblock2' => { 295 => 0x636 }, 'unknownblock3' => { 295 => 0x1103 }, 'unknownblock4' => { 295 => 0x1104 }, 'unknowndate' => { 358 => 0x212 }, 'unknowntags' => { 374 => 'TAGS' }, 'unknownthumbnail' => { 374 => 'thmb' }, 'unsharp1color' => { 272 => 0x13 }, 'unsharp1halowidth' => { 272 => 0x19 }, 'unsharp1intensity' => { 272 => 0x17 }, 'unsharp1threshold' => { 272 => 0x1b }, 'unsharp2color' => { 272 => 0x2e }, 'unsharp2halowidth' => { 272 => 0x34 }, 'unsharp2intensity' => { 272 => 0x32 }, 'unsharp2threshold' => { 272 => 0x36 }, 'unsharp3color' => { 272 => 0x49 }, 'unsharp3halowidth' => { 272 => 0x4f }, 'unsharp3intensity' => { 272 => 0x4d }, 'unsharp3threshold' => { 272 => 0x51 }, 'unsharp4color' => { 272 => 0x64 }, 'unsharp4halowidth' => { 272 => 0x6a }, 'unsharp4intensity' => { 272 => 0x68 }, 'unsharp4threshold' => { 272 => 0x6c }, 'unsharpcount' => { 272 => 0x0 }, 'unsharpmask' => { 108 => 0x90, 267 => 0x76a43200 }, 'uprightcentermode' => { 471 => 'UprightCenterMode', 473 => 'UprightCenterMode' }, 'uprightcenternormx' => { 471 => 'UprightCenterNormX', 473 => 'UprightCenterNormX' }, 'uprightcenternormy' => { 471 => 'UprightCenterNormY', 473 => 'UprightCenterNormY' }, 'uprightdependentdigest' => { 471 => 'UprightDependentDigest', 473 => 'UprightDependentDigest' }, 'uprightfocallength35mm' => { 471 => 'UprightFocalLength35mm', 473 => 'UprightFocalLength35mm' }, 'uprightfocalmode' => { 471 => 'UprightFocalMode', 473 => 'UprightFocalMode' }, 'uprightfoursegmentscount' => { 471 => 'UprightFourSegmentsCount', 473 => 'UprightFourSegmentsCount' }, 'uprightpreview' => { 471 => 'UprightPreview', 473 => 'UprightPreview' }, 'uprighttransform_0' => { 471 => 'UprightTransform_0', 473 => 'UprightTransform_0' }, 'uprighttransform_1' => { 471 => 'UprightTransform_1', 473 => 'UprightTransform_1' }, 'uprighttransform_2' => { 471 => 'UprightTransform_2', 473 => 'UprightTransform_2' }, 'uprighttransform_3' => { 471 => 'UprightTransform_3', 473 => 'UprightTransform_3' }, 'uprighttransform_4' => { 471 => 'UprightTransform_4', 473 => 'UprightTransform_4' }, 'uprighttransform_5' => { 471 => 'UprightTransform_5', 473 => 'UprightTransform_5' }, 'uprighttransformcount' => { 471 => 'UprightTransformCount', 473 => 'UprightTransformCount' }, 'uprightversion' => { 471 => 'UprightVersion', 473 => 'UprightVersion' }, 'urgency' => { 130 => 0xa, 485 => 'Urgency' }, 'url' => { 156 => 'URL', 304 => 'URL', 363 => 0x40b, 487 => 'url' }, 'url_list' => { 363 => 0x41e }, 'urla-platform' => { 487 => [\'url','urlA-platform'] }, 'urlurl' => { 487 => [\'url','urlUrl'] }, 'usage' => { 488 => 'usage' }, 'usageterms' => { 501 => 'UsageTerms' }, 'useguidelines' => { 469 => 'useGuidelines' }, 'usepanoramaviewer' => { 459 => 'UsePanoramaViewer' }, 'usercollection' => { 368 => 'collection.user' }, 'usercomment' => { 96 => 0x805, 118 => 0x9286, 477 => 'UserComment' }, 'userfields' => { 464 => 'UserFields' }, 'userlabel' => { 375 => 0x2b, 376 => 0x5a, 377 => 0x68 }, 'userprofile' => { 309 => 0x302, 313 => 0x34c, 316 => 0x3038 }, 'userrating' => { 368 => 'rating.user', 374 => 'urat' }, 'uspsnumber' => { 487 => 'uspsNumber' }, 'uuid' => { 471 => 'UUID', 473 => 'UUID' }, 'uv-irfiltercorrection' => { 309 => 0x325 }, 'validbits' => { 295 => 0x611, 296 => 0x102c }, 'validpixeldepth' => { 299 => 0x611 }, 'variablelowpassfilter' => { 414 => 0x2028 }, 'vendor' => { 374 => 'vndr' }, 'vendorinfo' => { 451 => 'VendorInfo' }, 'vendorinfomanufacturer' => { 451 => [\'VendorInfo','VendorInfoManufacturer'] }, 'vendorinfomodel' => { 451 => [\'VendorInfo','VendorInfoModel'] }, 'vendorinfonotes' => { 451 => [\'VendorInfo','VendorInfoNotes'] }, 'version' => { 126 => 0x0, 365 => 'Version', 368 => 'version', 471 => 'Version', 473 => 'Version' }, 'versioncreatedate' => { 448 => 0xd100 }, 'versionid' => { 498 => 'VersionID' }, 'versionidentifier' => { 487 => 'versionIdentifier' }, 'versionmodifydate' => { 448 => 0xd101 }, 'versions' => { 498 => 'Versions' }, 'versionscomments' => { 498 => [\'Versions','VersionsComments'] }, 'versionsevent' => { 498 => [\'Versions','VersionsEvent'] }, 'versionseventaction' => { 498 => [\'Versions','VersionsEventAction'] }, 'versionseventchanged' => { 498 => [\'Versions','VersionsEventChanged'] }, 'versionseventinstanceid' => { 498 => [\'Versions','VersionsEventInstanceID'] }, 'versionseventparameters' => { 498 => [\'Versions','VersionsEventParameters'] }, 'versionseventsoftwareagent' => { 498 => [\'Versions','VersionsEventSoftwareAgent'] }, 'versionseventwhen' => { 498 => [\'Versions','VersionsEventWhen'] }, 'versionsmodifier' => { 498 => [\'Versions','VersionsModifier'] }, 'versionsmodifydate' => { 498 => [\'Versions','VersionsModifyDate'] }, 'versionsversion' => { 498 => [\'Versions','VersionsVersion'] }, 'verticalafonbutton' => { 274 => '3.2', 275 => '47.2', 277 => '79.1' }, 'verticalfuncbutton' => { 275 => '42.2', 277 => '67.1' }, 'verticalfuncbuttonplusdials' => { 275 => '43.1' }, 'verticalfuncplusdials' => { 277 => '68.1' }, 'verticalmultiselector' => { 275 => '42.1', 277 => '66.1', 278 => '66.1', 288 => '66.1' }, 'vibrance' => { 465 => 'Vibrance', 471 => 'Vibrance', 473 => 'Vibrance' }, 'vibrationreduction' => { 233 => [0x75,0x82,0x1ae], 241 => '586.1', 250 => '590.2', 257 => 0x4 }, 'videoalphamode' => { 497 => 'videoAlphaMode' }, 'videoalphapremultiplecolor' => { 497 => 'videoAlphaPremultipleColor' }, 'videoalphapremultiplecolora' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorA'] }, 'videoalphapremultiplecolorb' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorB'] }, 'videoalphapremultiplecolorblack' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlack'] }, 'videoalphapremultiplecolorblue' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlue'] }, 'videoalphapremultiplecolorcyan' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorCyan'] }, 'videoalphapremultiplecolorgray' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGray'] }, 'videoalphapremultiplecolorgreen' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGreen'] }, 'videoalphapremultiplecolorl' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorL'] }, 'videoalphapremultiplecolormagenta' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMagenta'] }, 'videoalphapremultiplecolormode' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMode'] }, 'videoalphapremultiplecolorred' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorRed'] }, 'videoalphapremultiplecolorswatchname' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorSwatchName'] }, 'videoalphapremultiplecolortint' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorTint'] }, 'videoalphapremultiplecolortype' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorType'] }, 'videoalphapremultiplecoloryellow' => { 497 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorYellow'] }, 'videoalphaunityistransparent' => { 497 => 'videoAlphaUnityIsTransparent' }, 'videobitrate' => { 483 => 'videoBitRate' }, 'videobitratemode' => { 483 => 'videoBitRateMode' }, 'videoburstmode' => { 314 => 0xbb }, 'videoburstresolution' => { 314 => 0xb3 }, 'videocolorspace' => { 497 => 'videoColorSpace' }, 'videocompressor' => { 497 => 'videoCompressor' }, 'videodisplayaspectratio' => { 483 => 'videoDisplayAspectRatio' }, 'videoencodingprofile' => { 483 => 'videoEncodingProfile' }, 'videofieldorder' => { 497 => 'videoFieldOrder' }, 'videoframerate' => { 314 => 0x27, 497 => 'videoFrameRate' }, 'videoframesize' => { 497 => 'videoFrameSize' }, 'videoframesizeh' => { 497 => [\'videoFrameSize','videoFrameSizeH'] }, 'videoframesizeunit' => { 497 => [\'videoFrameSize','videoFrameSizeUnit'] }, 'videoframesizew' => { 497 => [\'videoFrameSize','videoFrameSizeW'] }, 'videomoddate' => { 497 => 'videoModDate' }, 'videopixelaspectratio' => { 497 => 'videoPixelAspectRatio' }, 'videopixeldepth' => { 497 => 'videoPixelDepth' }, 'videopreburst' => { 314 => 0xc1 }, 'videoshottype' => { 483 => 'VideoShotType' }, 'videoshottypeidentifier' => { 483 => [\'VideoShotType','VideoShotTypeIdentifier'] }, 'videoshottypename' => { 483 => [\'VideoShotType','VideoShotTypeName'] }, 'videostreamscount' => { 483 => 'videoStreamsCount' }, 'viewfinder' => { 358 => 0x455 }, 'viewfinderdisplay' => { 274 => '12.4', 275 => '6.3' }, 'viewfinderwarning' => { 274 => '13.4', 284 => '3.5', 285 => '6.2', 289 => '4.4' }, 'viewingmode' => { 403 => 0x2f, 419 => 0x18 }, 'viewingmode2' => { 403 => [0x85,0x285] }, 'viewpoint' => { 486 => 'viewpoint' }, 'vignetteamount' => { 471 => 'VignetteAmount', 473 => 'VignetteAmount' }, 'vignettecontrol' => { 224 => 0x2a, 267 => 0x76a43205 }, 'vignettecontrolintensity' => { 267 => 0xac6bd5c0 }, 'vignettecorrectionalreadyapplied' => { 468 => 'VignetteCorrectionAlreadyApplied' }, 'vignettemidpoint' => { 471 => 'VignetteMidpoint', 473 => 'VignetteMidpoint' }, 'vignetting' => { 381 => 0x1011, 388 => 0xa052 }, 'vignettingcorrection' => { 118 => 0x7031, 388 => 0xa053, 414 => 0x2011 }, 'vignettingcorrparams' => { 118 => 0x7032, 443 => 0x64a, 444 => [0x34a,0x350,0x35c,0x368] }, 'vignettingsetting' => { 388 => 0xa054 }, 'visualcolor' => { 483 => 'VisualColour' }, 'visualtechnique' => { 486 => 'visualTechnique' }, 'voicememo' => { 390 => 0x216 }, 'volume' => { 487 => 'volume' }, 'vr_0x66' => { 233 => 0x66 }, 'vrmode' => { 257 => 0x6 }, 'waterdepth' => { 118 => 0x9403, 478 => 'WaterDepth' }, 'wb_glevel' => { 295 => 0x11f }, 'wb_glevel3000k' => { 295 => 0x113 }, 'wb_glevel3300k' => { 295 => 0x114 }, 'wb_glevel3600k' => { 295 => 0x115 }, 'wb_glevel3900k' => { 295 => 0x116 }, 'wb_glevel4000k' => { 295 => 0x117 }, 'wb_glevel4300k' => { 295 => 0x118 }, 'wb_glevel4500k' => { 295 => 0x119 }, 'wb_glevel4800k' => { 295 => 0x11a }, 'wb_glevel5300k' => { 295 => 0x11b }, 'wb_glevel6000k' => { 295 => 0x11c }, 'wb_glevel6600k' => { 295 => 0x11d }, 'wb_glevel7500k' => { 295 => 0x11e }, 'wb_rblevels' => { 200 => 0x270, 224 => 0xc, 295 => 0x100 }, 'wb_rblevels1' => { 320 => 0x2 }, 'wb_rblevels2' => { 320 => 0x5 }, 'wb_rblevels3' => { 320 => 0x8 }, 'wb_rblevels3000k' => { 295 => 0x102 }, 'wb_rblevels3300k' => { 295 => 0x103 }, 'wb_rblevels3600k' => { 295 => 0x104 }, 'wb_rblevels3900k' => { 295 => 0x105 }, 'wb_rblevels4' => { 320 => 0xb }, 'wb_rblevels4000k' => { 295 => 0x106 }, 'wb_rblevels4300k' => { 295 => 0x107 }, 'wb_rblevels4500k' => { 295 => 0x108 }, 'wb_rblevels4800k' => { 295 => 0x109 }, 'wb_rblevels5' => { 320 => 0xe }, 'wb_rblevels5300k' => { 295 => 0x10a }, 'wb_rblevels6' => { 320 => 0x11 }, 'wb_rblevels6000k' => { 295 => 0x10b }, 'wb_rblevels6600k' => { 295 => 0x10c }, 'wb_rblevels7' => { 320 => 0x14 }, 'wb_rblevels7500k' => { 295 => 0x10d }, 'wb_rblevelsauto' => { 200 => 0x272, 299 => 0x110 }, 'wb_rblevelscloudy' => { 186 => 0x3f0, 188 => 0x10, 200 => 0x296, 299 => 0x121 }, 'wb_rblevelscoolwhitefluor' => { 299 => 0x132 }, 'wb_rblevelscwb1' => { 295 => 0x10e }, 'wb_rblevelscwb2' => { 295 => 0x10f }, 'wb_rblevelscwb3' => { 295 => 0x110 }, 'wb_rblevelscwb4' => { 295 => 0x111 }, 'wb_rblevelsdaylightfluor' => { 299 => 0x130 }, 'wb_rblevelsdaywhitefluor' => { 299 => 0x131 }, 'wb_rblevelseveningsunlight' => { 299 => 0x124 }, 'wb_rblevelsfineweather' => { 299 => 0x122 }, 'wb_rblevelsshade' => { 186 => 0x418, 188 => 0x20, 200 => 0x2b2, 299 => 0x120 }, 'wb_rblevelstungsten' => { 186 => 0x3e8, 188 => 0x8, 299 => 0x123 }, 'wb_rblevelsused' => { 299 => 0x100 }, 'wb_rblevelswhitefluorescent' => { 299 => 0x133 }, 'wb_rgblevels' => { 186 => [0x546,0x96], 310 => 0xd, 311 => 0x413, 316 => 0x3036, 358 => 0x107, 422 => 0x117c, 423 => 0x1180, 424 => 0x115c, 425 => 0x11d8, 426 => 0x11b4, 427 => 0x106c, 428 => 0x264, 429 => 0x264, 430 => 0x252 }, 'wb_rgblevels1' => { 321 => 0x2 }, 'wb_rgblevels2' => { 321 => 0x6 }, 'wb_rgblevels3' => { 321 => 0xa }, 'wb_rgblevels4' => { 321 => 0xe }, 'wb_rgblevels5' => { 321 => 0x12 }, 'wb_rgblevels6' => { 321 => 0x16 }, 'wb_rgblevels7' => { 321 => 0x1a }, 'wb_rgblevelsauto' => { 392 => 0x0 }, 'wb_rgblevelscustom1' => { 392 => 0x15 }, 'wb_rgblevelscustom2' => { 392 => 0x18 }, 'wb_rgblevelscustom3' => { 392 => 0x1b }, 'wb_rgblevelsdaylight' => { 392 => 0x3 }, 'wb_rgblevelsflash' => { 392 => 0x12 }, 'wb_rgblevelsfluorescent' => { 392 => 0xf }, 'wb_rgblevelsincandescent' => { 392 => 0xc }, 'wb_rgblevelsovercast' => { 392 => 0x9 }, 'wb_rgblevelsshade' => { 392 => 0x6 }, 'wb_rgblevelsunknown0' => { 393 => 0x0 }, 'wb_rgblevelsunknown1' => { 393 => 0x3 }, 'wb_rgblevelsunknown2' => { 393 => 0x6 }, 'wb_rgblevelsunknown3' => { 393 => 0x9 }, 'wb_rgblevelsunknown4' => { 393 => 0xc }, 'wb_rgblevelsunknown5' => { 393 => 0xf }, 'wb_rgblevelsunknown6' => { 393 => 0x12 }, 'wb_rgblevelsunknown7' => { 393 => 0x15 }, 'wb_rgblevelsunknown8' => { 393 => 0x18 }, 'wb_rgblevelsunknown9' => { 393 => 0x1b }, 'wb_rggblevelsauto' => { 35 => 0x1, 38 => 0x5, 39 => 0x8, 40 => 0x1e, 41 => 0x5a, 42 => 0x6e, 43 => 0x18, 44 => 0x44, 47 => 0x44, 48 => 0x44, 49 => 0x44, 50 => 0x4c, 201 => 0x1478, 202 => 0x114, 388 => 0xa022 }, 'wb_rggblevelsblack' => { 388 => 0xa028 }, 'wb_rggblevelscloudy' => { 35 => 0xd, 38 => 0x1e, 39 => 0x30, 40 => 0x2d, 41 => 0xa0, 42 => 0xd7, 43 => 0x31, 44 => 0x58, 47 => 0x71, 48 => 0x8a, 49 => 0x8f, 50 => 0x92, 201 => 0x1408, 202 => 0x60, 349 => 0x20f, 357 => 0x14 }, 'wb_rggblevelsdaylight' => { 35 => 0x5, 38 => 0x14, 39 => 0x20, 40 => 0x23, 41 => 0x96, 42 => 0xcd, 43 => 0x27, 44 => 0x4e, 47 => 0x67, 48 => 0x80, 49 => 0x85, 50 => 0x88, 201 => 0x13f8, 202 => 0x4c, 349 => 0x20d, 357 => 0x2 }, 'wb_rggblevelsflash' => { 35 => 0x19, 38 => 0x32, 39 => 0x50, 40 => 0x3c, 41 => 0xb4, 42 => 0xeb, 43 => 0x45, 44 => 0x6c, 47 => 0x85, 48 => 0x9e, 49 => 0xa3, 50 => 0xa6, 201 => 0x1448, 349 => 0x214, 357 => 0x41 }, 'wb_rggblevelsfluorescentd' => { 202 => 0xc4, 349 => 0x211, 357 => 0x26 }, 'wb_rggblevelsfluorescentl' => { 357 => 0x4a }, 'wb_rggblevelsfluorescentn' => { 202 => 0xb0, 349 => 0x212, 357 => 0x2f }, 'wb_rggblevelsfluorescentw' => { 201 => 0x1438, 202 => 0x9c, 349 => 0x213, 357 => 0x38 }, 'wb_rggblevelsilluminator1' => { 388 => 0xa023 }, 'wb_rggblevelsilluminator2' => { 388 => 0xa024 }, 'wb_rggblevelsshade' => { 35 => 0x9, 38 => 0x19, 39 => 0x28, 40 => 0x28, 41 => 0x9b, 42 => 0xd2, 43 => 0x2c, 44 => 0x53, 47 => 0x6c, 48 => 0x85, 49 => 0x8a, 50 => 0x8d, 202 => 0x74, 349 => 0x20e, 357 => 0xb }, 'wb_rggblevelstungsten' => { 35 => 0x11, 38 => 0x23, 39 => 0x38, 40 => 0x32, 41 => 0xa5, 42 => 0xdc, 43 => 0x36, 44 => 0x5d, 47 => 0x76, 48 => 0x8f, 49 => 0x94, 50 => 0x97, 201 => 0x1428, 202 => 0x88, 349 => 0x210, 357 => 0x1d }, 'wb_rggblevelsuncorrected' => { 388 => 0xa021 }, 'wb_rggblevelsunknown' => { 38 => 0xf, 39 => 0x18, 41 => 0x64, 42 => 0x78, 43 => 0x1d, 47 => 0x4e, 48 => 0x4e, 49 => 0x4e, 50 => 0x56, 357 => 0x53 }, 'wb_rggblevelsuserselected' => { 357 => 0x5c }, 'wbadjbluebalance' => { 273 => 0x8 }, 'wbadjlighting' => { 273 => 0x14 }, 'wbadjmode' => { 273 => 0x10 }, 'wbadjredbalance' => { 273 => 0x0 }, 'wbadjtemperature' => { 273 => 0x18 }, 'wbadjtint' => { 273 => 0x25 }, 'wbbluelevel' => { 309 => 0x324, 314 => 0x8006, 319 => 0x26 }, 'wbbracketingsteps' => { 242 => 0x174d, 243 => 0x87c, 252 => 0x1757 }, 'wbbracketshotnumber' => { 186 => 0x2b, 381 => 0x101a }, 'wbgreenlevel' => { 309 => 0x323, 314 => 0x8005, 319 => 0x25 }, 'wbmode' => { 188 => 0x4, 296 => 0x1015 }, 'wbredlevel' => { 309 => 0x322, 314 => 0x8004, 319 => 0x24 }, 'wbshiftab' => { 73 => 0xc, 314 => 0x46, 331 => 0x10 }, 'wbshiftab_gm' => { 414 => 0x2014 }, 'wbshiftab_gm_precise' => { 414 => 0x2026 }, 'wbshiftcreativecontrol' => { 314 => 0x92 }, 'wbshiftgm' => { 73 => 0xd, 314 => 0x47, 331 => 0x11 }, 'wbshiftintelligentauto' => { 314 => 0x8b }, 'wbtype1' => { 320 => 0x1, 321 => 0x1 }, 'wbtype2' => { 320 => 0x4, 321 => 0x5 }, 'wbtype3' => { 320 => 0x7, 321 => 0x9 }, 'wbtype4' => { 320 => 0xa, 321 => 0xd }, 'wbtype5' => { 320 => 0xd, 321 => 0x11 }, 'wbtype6' => { 320 => 0x10, 321 => 0x15 }, 'wbtype7' => { 320 => 0x13, 321 => 0x19 }, 'webstatement' => { 501 => 'WebStatement' }, 'weightedflatsubject' => { 463 => 'weightedFlatSubject' }, 'what' => { 471 => 'What', 473 => 'What' }, 'whitebalance' => { 7 => 0x6f, 8 => [0x44,0x4a], 9 => 0xbc, 10 => 0x36, 11 => 0x5e, 12 => 0x36, 13 => 0x78, 14 => 0x6f, 15 => 0x6f, 16 => 0x73, 17 => 0x6f, 18 => 0x78, 19 => 0x54, 20 => 0x6f, 21 => 0xbc, 22 => 0x7b, 24 => 0xbc, 25 => 0xc2, 27 => 0x131, 28 => 0x77, 73 => 0x8, 76 => 0x7, 111 => 0x7, 112 => [0x19,0x2012], 118 => [0xa403,0xfe4e], 126 => 0x1002, 137 => 0x3fc, 138 => 0xfa0d, 139 => 0x40, 150 => 0x1a, 180 => 0x3, 181 => 0xe, 182 => 0x4, 183 => 0xb, 185 => 0x115, 224 => 0x5, 256 => 0x7, 309 => 0x304, 314 => 0x3, 316 => 0x3033, 349 => 0x19, 356 => 0x7, 380 => 0x26, 381 => 0x1003, 391 => [0x88,0x3c,0x7,0x58], 401 => 0xf, 402 => 0xe, 414 => [0x115,0xb054], 471 => 'WhiteBalance', 473 => 'WhiteBalance', 477 => 'WhiteBalance' }, 'whitebalance2' => { 175 => 'WhiteBalance2', 291 => 0x500 }, 'whitebalanceadj' => { 102 => 0x20101, 107 => 0x18, 267 => 0x76a43204 }, 'whitebalanceautoadjustment' => { 327 => 0x0 }, 'whitebalancebias' => { 112 => 0x2011, 296 => 0x304, 314 => 0x23 }, 'whitebalancebracket' => { 291 => 0x502, 296 => 0x303 }, 'whitebalancebracketing' => { 183 => 0x22, 186 => 0x2c, 412 => 0x2c }, 'whitebalancecomp' => { 299 => 0x1001 }, 'whitebalancefinetune' => { 126 => 0x100a, 183 => 0x38, 185 => 0x112, 224 => 0xb, 381 => 0x1004, 401 => 0x6, 402 => 0x5, 414 => 0x112 }, 'whitebalancemode' => { 137 => 0x3fa, 349 => 0x1a }, 'whitebalanceset' => { 330 => 0xa }, 'whitebalancesetting' => { 183 => 0x23, 401 => 0x5, 402 => 0x4, 403 => 0x16, 419 => 0xd }, 'whitebalancesetup' => { 388 => 0x41 }, 'whitebalancetemperature' => { 291 => 0x501 }, 'whiteboard' => { 296 => 0x301 }, 'whitelevel' => { 118 => 0xc61d, 349 => 0x7e }, 'whitepoint' => { 118 => 0x13e, 313 => 0x35d, 349 => 0x201, 493 => 'WhitePoint' }, 'whites2012' => { 471 => 'Whites2012', 473 => 'Whites2012' }, 'whitesadj' => { 448 => 0x9017 }, 'wideadapter' => { 381 => 0x1017 }, 'widerange' => { 390 => 0x20f }, 'windowlocation' => { 374 => 'WLOC' }, 'windowsatom' => { 472 => 'windowsAtom' }, 'windowsatomextension' => { 472 => [\'windowsAtom','windowsAtomExtension'] }, 'windowsatominvocationflags' => { 472 => [\'windowsAtom','windowsAtomInvocationFlags'] }, 'windowsatomuncprojectpath' => { 472 => [\'windowsAtom','windowsAtomUncProjectPath'] }, 'wordcount' => { 487 => 'wordCount' }, 'work' => { 366 => "\xa9wrk" }, 'workflowtag' => { 483 => 'WorkflowTag' }, 'workflowtagcvid' => { 483 => [\'WorkflowTag','WorkflowTagCvId'] }, 'workflowtagcvtermid' => { 483 => [\'WorkflowTag','WorkflowTagCvTermId'] }, 'workflowtagcvtermname' => { 483 => [\'WorkflowTag','WorkflowTagCvTermName'] }, 'workflowtagcvtermrefinedabout' => { 483 => [\'WorkflowTag','WorkflowTagCvTermRefinedAbout'] }, 'worktodo' => { 479 => 'WorkToDo' }, 'worldtimelocation' => { 314 => 0x3a, 349 => 0x22, 355 => '0.1' }, 'x3filllight' => { 391 => 0x12 }, 'xmptoolkit' => { 494 => 'xmptk' }, 'xresolution' => { 118 => 0x11a, 133 => 0x3, 364 => 0x0, 493 => 'XResolution' }, 'yaw' => { 114 => 0x7, 374 => ['_yaw',"\xa9fyw"] }, 'yawangle' => { 242 => 0x3513, 243 => 0x2c2c, 247 => 0xc222, 252 => 0x36fc, 253 => 0x2f03, 255 => 0xce3a, 386 => 0x0 }, 'ycbcrcoefficients' => { 118 => 0x211, 493 => 'YCbCrCoefficients' }, 'ycbcrpositioning' => { 118 => 0x213, 493 => 'YCbCrPositioning' }, 'ycbcrsubsampling' => { 118 => 0x212, 493 => 'YCbCrSubSampling' }, 'year' => { 366 => 'yrrc', 368 => 'year', 374 => 'yrrc' }, 'yield' => { 489 => 'yield' }, 'yresolution' => { 118 => 0x11b, 133 => 0x5, 364 => 0x4, 493 => 'YResolution' }, 'zmenusettingsoffset' => { 255 => 0xceb6 }, 'zonematching' => { 185 => 0x10a, 188 => [0x3a,0x4a], 414 => 0xb024 }, 'zonematchingvalue' => { 401 => 0x1f }, 'zoomedpreviewlength' => { 296 => 0xf05 }, 'zoomedpreviewsize' => { 296 => 0xf06 }, 'zoomedpreviewstart' => { 296 => 0xf04 }, 'zoomstepcount' => { 294 => 0x300, 296 => 0x100d }, They contain a total of 25513 tags, with 16386 unique tag names. 5771 MovieDiffrationCompensation? int8u $VERSION = '3.49'; 2 => '2-Dimensional', 3 => '3-Dimensional', Version: 12.37 -T exiftool-12.37 #--info=FileVersion=12.3.7.0 #--info=ProductVersion=12.3.7.0 ##"--info=Build Date=2021:12:08 08:27:04-05:00" my $version = '12.37'; AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; -- Generated by ExifTool 12.37 -- contain %t, $g, %s or %o.)
Dec. 20, 2021 - Version 12.38 - Decode a number of new tags for the Nikon Z9 (thanks Warren Hatch) - Patched incorrect decoding of AEBShotCount for the Canon EOS 90D - Patched EXR reader to support long tag names - Patched security issue (thanks Joe Lothan) - Fixed an incorrect tag ID for a new Nikon MakerNote tag (github #108) - Fixed XMP-exif:GPSMeasureMode conversions to match EXIF - Fixed problem where some namespaces may be undeclared in the -X output when using the -struct option "version" : "12.38", version: 12.38 gzip -dc Image-ExifTool-12.38.tar.gz | tar -xf - cd Image-ExifTool-12.38 my $version = '12.38'; $$et{TRUST_PIPE} = 1; # add groups from structure fields AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; -- Generated by ExifTool 12.38 -- B<-W+> with an output file I<FMT> that does not contain %t, %g, %s or %o.) ( -- Image::ExifTool 12.38 -- 1)Tj ( -- Image::ExifTool 12.38 -- 2)Tj ( -- Image::ExifTool 12.38 -- 3)Tj ( -- Image::ExifTool 12.38 -- 4)Tj ( -- Image::ExifTool 12.38 -- 5)Tj ( -- Image::ExifTool 12.38 -- 6)Tj ( -- Image::ExifTool 12.38 -- 7)Tj ( -- Image::ExifTool 12.38 -- 8)Tj ( -- Image::ExifTool 12.38 -- 9)Tj ( -- Image::ExifTool 12.38 -- 10)Tj ( -- Image::ExifTool 12.38 -- 11)Tj ( -- Image::ExifTool 12.38 -- 12)Tj ( -- Image::ExifTool 12.38 -- 13)Tj ( -- Image::ExifTool 12.38 -- 14)Tj ( -- Image::ExifTool 12.38 -- 15)Tj ( -- Image::ExifTool 12.38 -- 16)Tj ( -- Image::ExifTool 12.38 -- 17)Tj ( -- Image::ExifTool 12.38 -- 18)Tj ( -- Image::ExifTool 12.38 -- 19)Tj ( -- Image::ExifTool 12.38 -- 20)Tj ( -- Image::ExifTool 12.38 -- 21)Tj ( -- Image::ExifTool 12.38 -- 22)Tj ( -- Image::ExifTool 12.38 -- 23)Tj ( -- Image::ExifTool 12.38 -- 24)Tj ( -- Image::ExifTool 12.38 -- 25)Tj ( -- Image::ExifTool 12.38 -- 26)Tj ( -- Image::ExifTool 12.38 -- 27)Tj ( -- Image::ExifTool 12.38 -- 28)Tj ( -- Image::ExifTool 12.38 -- 29)Tj ( -- Image::ExifTool 12.38 -- 30)Tj ( -- Image::ExifTool 12.38 -- 31)Tj ( -- Image::ExifTool 12.38 -- 32)Tj ( -- Image::ExifTool 12.38 -- 33)Tj ( -- Image::ExifTool 12.38 -- 34)Tj ( -- Image::ExifTool 12.38 -- 35)Tj ( -- Image::ExifTool 12.38 -- 36)Tj /CreationDate (D:20211220091758-05'00') /ModDate (D:20211220091758-05'00') /ID [<045a477e90d5dc19d250e85fec576a29><045a477e90d5dc19d250e85fec576a29>] /CreationDate (D:20211220091759-05'00') /ModDate (D:20211220091759-05'00') /ID [<8d6bced53aaea0d921a7e98a82a7dcca><8d6bced53aaea0d921a7e98a82a7dcca>] <td><span class=s><span class=n>(EOS 90D)</span> <br>2 = 2 shots <br>3 = 3 shots <br>5 = 5 shots <br>7 = 7 shots <br><span class=n>(other models storing a single value)</span> <br><span class=n>(models storing two values)</span> <br><i>Last revised Dec 20, 2021</i> <br>ShotInfoZ9 <td class=c>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-<br>-</td> <br>--&gt; <a href='Nikon.html#ShotInfoZ9'>Nikon ShotInfoZ9 Tags</a> <td>--&gt; <a href='Nikon.html#NEFCompression'>Nikon NEFCompression Values</a></td></tr> <h2><a name='NEFCompression'>Nikon NEFCompression Values</a></h2> <blockquote> <table class=frame><tr><td> <table class='inner sep' cellspacing=1> <tr class=h><th>Value</th><th>NEFCompression</th><th>Value</th><th>NEFCompression</th></tr> <tr><td class=r>1</td><td>= Lossy (type 1)</td> <td class='r b'>7</td><td class=b>= Unpacked 12 bits</td> </tr><tr><td class=r>2</td><td>= Uncompressed</td> <td class='r b'>8</td><td class=b>= Small</td> </tr><tr><td class=r>3</td><td>= Lossless</td> <td class='r b'>9</td><td class=b>= Packed 12 bits</td> </tr><tr><td class=r>4</td><td>= Lossy (type 2)</td> <td class='r b'>10</td><td class=b>= Packed 14 bits</td> </tr><tr><td class=r>5</td><td>= Striped packed 12 bits</td> <td class='r b'>13</td><td class=b>= High Efficiency</td> </tr><tr><td class=r>6</td><td>= Uncompressed (reduced to 12 bit)</td> <td class='r b'>14</td><td class=b>= High Efficiency*</td> </tr></table></td></tr></table></blockquote> <h2><a name='MakerNotes0x51'>Nikon MakerNotes0x51 Tags</a></h2> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Index1</th><th>Tag Name</th> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> <tr> <td class=r title='0 = 0x0'>0</td> <td>FirmwareVersion</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr class=b> <td class=r title='10 = 0xa'>10</td> <td>NEFCompression</td> <td class=c>int16u[0.5]</td> <td>--&gt; <a href='Nikon.html#NEFCompression'>Nikon NEFCompression Values</a></td></tr> </table></td></tr></table></blockquote> <td class=r title='577 = 0x241'>577</td> <td>MovieDiffractionCompensation?</td> <td class=c>int8u</td> <td><span class=s>0 = Off <br>1 = On</span></td></tr> <tr> <tr class=b> <tr> <tr class=b> <tr> </table></td></tr></table></blockquote> <h2><a name='ShotInfoZ9'>Nikon ShotInfoZ9 Tags</a></h2> <p>These tags are extracted from encrypted data in images from the Z9.</p> <blockquote> <table class=frame><tr><td> <table class=inner cellspacing=1> <tr class=h><th>Index</th><th>Tag Name</th> <th>Writable</th><th>Values / <span class=n>Notes</span></th></tr> <td class=r title='0 = 0x0'>0</td> <td>ShotInfoVersion</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr class=b> <td class=r title='4 = 0x4'>4</td> <td>FirmwareVersion</td> <td class=c>no</td> <td>&nbsp;</td></tr> <tr> <td class=r title='60139 = 0xeaeb'>60139</td> <td>RollAngle</td> <td class=c>fixed32u</td> <td><span class=s><span class=n>(converted to degrees of clockwise camera roll)</span></span></td></tr> <tr class=b> <td class=r title='60143 = 0xeaef'>60143</td> <td>PitchAngle</td> <td class=c>fixed32u</td> <td><span class=s><span class=n>(converted to degrees of upward camera tilt)</span></span></td></tr> <tr> <td class=r title='60147 = 0xeaf3'>60147</td> <td>YawAngle</td> <td class=c>fixed32u</td> <td><span class=s><span class=n>(the camera yaw angle when shooting in portrait orientation)</span></span></td></tr> <br><i>Last revised Dec 20, 2021</i> <td><span class=s>2 = 2-Dimensional Measurement <br>3 = 3-Dimensional Measurement</span></td></tr> <br><i>Last revised Dec 20, 2021</i> They contain a total of 25521 tags, with 16386 unique tag names. <br><i>Last revised Dec 20, 2021</i> <pre><code> -- Generated by ExifTool 12.38 -- <p>4) Adding the <b>-v</b> option to <b>-W</b> sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using <b>-W+</b> with an output file <i>FMT</i> that does not contain %t, %g, %s or %o.)</p> ( -- ExifTool 12.38 -- 1)Tj ( -- ExifTool 12.38 -- 2)Tj ( -- ExifTool 12.38 -- 3)Tj ( -- ExifTool 12.38 -- 4)Tj ( -- ExifTool 12.38 -- 5)Tj ( -- ExifTool 12.38 -- 6)Tj ( -- ExifTool 12.38 -- 7)Tj ( -- ExifTool 12.38 -- 8)Tj ( -- ExifTool 12.38 -- 9)Tj ( -- ExifTool 12.38 -- 10)Tj ( -- ExifTool 12.38 -- 11)Tj ( -- ExifTool 12.38 -- 12)Tj ( -- ExifTool 12.38 -- 13)Tj ( -- ExifTool 12.38 -- 14)Tj ( -- ExifTool 12.38 -- 15)Tj ( -- Generated by ExifTool 12.38 --)Tj ( -- ExifTool 12.38 -- 16)Tj ( -- ExifTool 12.38 -- 17)Tj ( -- ExifTool 12.38 -- 18)Tj ( -- ExifTool 12.38 -- 19)Tj ( contain %t, %g, %s or %o.\))Tj ( -- ExifTool 12.38 -- 20)Tj ( -- ExifTool 12.38 -- 21)Tj ( -- ExifTool 12.38 -- 22)Tj ( -- ExifTool 12.38 -- 23)Tj ( -- ExifTool 12.38 -- 24)Tj ( -- ExifTool 12.38 -- 25)Tj ( -- ExifTool 12.38 -- 26)Tj ( -- ExifTool 12.38 -- 27)Tj ( -- ExifTool 12.38 -- 28)Tj ( -- ExifTool 12.38 -- 29)Tj ( -- ExifTool 12.38 -- 30)Tj ( -- ExifTool 12.38 -- 31)Tj ( -- ExifTool 12.38 -- 32)Tj ( -- ExifTool 12.38 -- 33)Tj ( -- ExifTool 12.38 -- 34)Tj ( -- ExifTool 12.38 -- 35)Tj ( -- ExifTool 12.38 -- 36)Tj ( -- ExifTool 12.38 -- 37)Tj ( -- ExifTool 12.38 -- 38)Tj ( -- ExifTool 12.38 -- 39)Tj ( -- ExifTool 12.38 -- 40)Tj (perl v5.18.4 2021-12-20 EXIFTOOL\(1\))Tj /CreationDate (D:20211220091758-05'00') /ModDate (D:20211220091758-05'00') /ID [<d539a0bca295c908e8eb624683f14b7e><d539a0bca295c908e8eb624683f14b7e>] <a name='v12.38'><b>Dec. 20, 2021 - Version 12.38</b></a> <ul> <li>Decode a number of new tags for the Nikon Z9 (thanks Warren Hatch) <li>Patched incorrect decoding of AEBShotCount for the Canon EOS 90D <li>Patched EXR reader to support long tag names <li>Patched security issue (thanks Joe Lothan) <li>Fixed an incorrect tag ID for a new Nikon MakerNote tag (github #108) <li>Fixed XMP-exif:GPSMeasureMode conversions to match EXIF <li>Fixed problem where some namespaces may be undeclared in the -X output when using the -struct option </ul> <li>Improved warning when incorrectly using "<" instead of "=" to assign a tag value <li>Fixed typo in a QuickTime tag name (thanks Hubert) <a href="http://sourceforge.net/projects/exiftool/files/Image-ExifTool-12.38.tar.gz/download"> Download Version 12.38</a> (4.8 MB) - <a href="history.html">Dec. 20, 2021</a></b></td></tr></table></blockquote> <a href="http://sourceforge.net/projects/exiftool/files/exiftool-12.38.zip/download"> exiftool-12.38.zip</a> (6.4 MB)</b></td></tr></table></blockquote> ExifTool-12.38.dmg</a> (3.1 MB)</b></td></tr></table></blockquote> <br><span class=lt>(The file you download should be named "<code>exiftool-12.38.zip</code>".)</span></li> <br><span class=lt>(Double-click on "<code>exiftool-12.38.zip</code>" to open <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.38.tar.gz</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>ExifTool-12.38.dmg</code>".)</span></li> <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.38.tar.gz</code>".)</span></li> tar -xzf Image-ExifTool-12.38.tar.gz cd Image-ExifTool-12.38 <blockquote class=red>"ExifTool-12.38.pkg" can't be opened because it is from an <br><span class=lt>(The file you download should be named "<code>Image-ExifTool-12.38.tar.gz</code>".)</span></li> gzip -dc Image-ExifTool-12.38.tar.gz | tar -xf - cd Image-ExifTool-12.38 $VERSION = '12.38'; # default to read mode ('<') unless input is a trusted pipe $mode = (($file =~ /\|$/ and $$self{TRUST_PIPE}) ? '' : '<') unless $mode; undef $$self{TRUST_PIPE}; Name => 'AEBShotCount', Condition => '$$self{Model} =~ /\b90D\b/', Notes => 'EOS 90D', # (and who knows what others?) PrintConv => { 2 => '2 shots', 3 => '3 shots', 5 => '5 shots', 7 => '7 shots', }, },{ Notes => 'other models storing a single value', Notes => 'models storing two values', $VERSION = '4.03'; my %nefCompression = ( #28 relocated to MakerNotes_0x51 at offset x'0a (Z9) 1 => 'Lossy (type 1)', # (older models) 2 => 'Uncompressed', #JD - D100 (even though TIFF compression is set!) 3 => 'Lossless', 4 => 'Lossy (type 2)', 5 => 'Striped packed 12 bits', #IB 6 => 'Uncompressed (reduced to 12 bit)', #IB 7 => 'Unpacked 12 bits', #IB (padded to 16) 8 => 'Small', #IB 9 => 'Packed 12 bits', #IB (2 pixels in 3 bytes) 10 => 'Packed 14 bits', #28 (4 pixels in 7 bytes, eg. D6 uncompressed 14 bit) 13 => 'High Efficiency', #28 14 => 'High Efficiency*', #28 ); 0x0051 => { #28 (Z9) Name => 'MakerNotes0x51', Writable => 'undef', Hidden => 1, Permanent => 0, Flags => [ 'Binary', 'Protected' ], SubDirectory => { TagTable => 'Image::ExifTool::Nikon::MakerNotes0x51' }, }, { # (Z9 firmware version 1.00 ref 28) Condition => '$$valPt =~ /^0805/', Name => 'ShotInfoZ9', SubDirectory => { TagTable => 'Image::ExifTool::Nikon::ShotInfoZ9', DecryptStart => 4, DecryptLen => 0xeb5b + 1050, # thru decoded parts of Offset27 ByteOrder => 'LittleEndian', }, }, SeparateTable => 'NEFCompression', PrintConv => \%nefCompression, # shot information for the Z9 firmware 1.00 (encrypted) - ref 28 %Image::ExifTool::Nikon::ShotInfoZ9 = ( PROCESS_PROC => \&Image::ExifTool::Nikon::ProcessNikonEncrypted, WRITE_PROC => \&Image::ExifTool::Nikon::ProcessNikonEncrypted, CHECK_PROC => \&Image::ExifTool::CheckBinaryData, VARS => { ID_LABEL => 'Index' }, DATAMEMBER => [ 0x04, 0x0e, 0x18, 0x84, 0xeaea], WRITABLE => 1, FIRST_ENTRY => 0, GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' }, NOTES => 'These tags are extracted from encrypted data in images from the Z9.', 0x00 => { Name => 'ShotInfoVersion', Format => 'string[4]', Writable => 0, }, 0x04 => { Name => 'FirmwareVersion', DataMember => 'FirmwareVersion', Format => 'string[8]', Writable => 0, RawConv => '$$self{FirmwareVersion} = $val', }, 0x0e => { Name => 'FirmwareVersion2', Format => 'string[8]', Writable => 0, RawConv => '$$self{FirmwareVersion2} = $val', Hidden => 1, }, 0x18 => { Name => 'FirmwareVersion3', Format => 'string[8]', Writable => 0, RawConv => '$$self{FirmwareVersion3} = $val', Hidden => 1, }, 0x24 => { Name => 'NumberOffsets', # number of entries in offset table. offsets are from start of ShotInfo data. DataMember => 'NumberOffsets', Format => 'int32u', Writable => 0, Hidden => 1, }, 0x84 => { Name => 'OrientationOffset', #offset24 - length 108 DataMember => 'OrientationOffset', Format => 'int32u', Writable => 0, Hidden => 1, RawConv => '$$self{OrientationOffset} = $val || 0x10000000; undef', # (ignore if 0) }, ### 0xce32 - OrientationInfo start (Z9 firmware 1.00) 0xeaea => { Name => 'Hook1', Hidden => 1, RawConv => 'undef', # account for variable location of OrientationInfo data Hook => '$varSize = $$self{OrientationOffset} - 0xeaeb', }, 0xeaeb => { Name => 'RollAngle', Format => 'fixed32u', Notes => 'converted to degrees of clockwise camera roll', ValueConv => '$val <= 180 ? $val : $val - 360', ValueConvInv => '$val >= 0 ? $val : $val + 360', PrintConv => 'sprintf("%.1f", $val)', PrintConvInv => '$val', }, 0xeaef => { Name => 'PitchAngle', Format => 'fixed32u', Notes => 'converted to degrees of upward camera tilt', ValueConv => '$val <= 180 ? $val : $val - 360', ValueConvInv => '$val >= 0 ? $val : $val + 360', PrintConv => 'sprintf("%.1f", $val)', PrintConvInv => '$val', }, 0xeaf3 => { Name => 'YawAngle', Format => 'fixed32u', Notes => 'the camera yaw angle when shooting in portrait orientation', ValueConv => '$val <= 180 ? $val : $val - 360', ValueConvInv => '$val >= 0 ? $val : $val + 360', PrintConv => 'sprintf("%.1f", $val)', PrintConvInv => '$val', }, # note: DecryptLen currently set to 0xeb5b + 1050 ); 577 => { Name => 'MovieDiffractionCompensation', # MakerNotes0x51 - compression info for Z9 %Image::ExifTool::Nikon::MakerNotes0x51 = ( %binaryDataAttrs, DATAMEMBER => [ 0 ], GROUPS => { 0 => 'MakerNotes' }, 0 => { Name => 'FirmwareVersion', Format => 'string[8]', Writable => 0, RawConv => '$$self{FirmwareVersion} = $val', }, 10 => { Name => 'NEFCompression', Writable => 'int16u', SeparateTable => 'NEFCompression', PrintConv => \%nefCompression, }, ); $VERSION = '1.03'; my $maxLen = ($ver & 0x400) ? 255 : 31; unless ($buff =~ /^([^\0]{1,$maxLen})\0([^\0]{1,$maxLen})\0(.{4})/sg) { $name =~ s/([^a-zA-Z])([a-z])/$1\U$2/g; # capitalize first letter of each word 'Image::ExifTool::Nikon::MakerNotes0x51', 'Image::ExifTool::Nikon::ShotInfoZ9', 'about' => { 493 => 'about' }, 'aboutcvterm' => { 485 => 'AboutCvTerm' }, 'aboutcvtermcvid' => { 485 => [\'AboutCvTerm','AboutCvTermCvId'] }, 'aboutcvtermid' => { 485 => [\'AboutCvTerm','AboutCvTermCvTermId'] }, 'aboutcvtermname' => { 485 => [\'AboutCvTerm','AboutCvTermCvTermName'] }, 'aboutcvtermrefinedabout' => { 485 => [\'AboutCvTerm','AboutCvTermCvTermRefinedAbout'] }, 'abspeakaudiofilepath' => { 499 => 'absPeakAudioFilePath' }, 'academicfield' => { 489 => 'academicField' }, 'acceleration' => { 118 => 0x9404, 480 => 'Acceleration' }, 'accelerometer' => { 386 => 0x3 }, 'accelerometerdata' => { 376 => 'vrot' }, 'accelerometerx' => { 316 => 0x8d }, 'accelerometery' => { 316 => 0x8e }, 'accelerometerz' => { 316 => 0x8c }, 'accessoryserialnumber' => { 316 => 0x54 }, 'accessorytype' => { 316 => 0x53 }, 'actived-lighting' => { 224 => 0x22, 267 => 0x24 }, 'actived-lightingmode' => { 267 => 0x25 }, 'additionalmodelinformation' => { 485 => 'AddlModelInfo' }, 'adjustmentmode' => { 393 => 0x15 }, 'adlbracketingstep' => { 244 => 0x883 }, 'adlbracketingtype' => { 244 => 0x884 }, 'adultcontentwarning' => { 303 => 'AdultContentWarning', 492 => 'adultContentWarning' }, 'advancedraw' => { 269 => 0x76a43203 }, 'advancedscenetype' => { 316 => 0x3d }, 'advisory' => { 497 => 'Advisory' }, 'ae_iso' => { 324 => 0x2, 325 => 0x4, 326 => 0x12 }, 'aeaperture' => { 324 => 0x1, 325 => 0x3, 326 => 0x11 }, 'aeaperturesteps' => { 324 => 0x8, 325 => 0xb }, 'aebracketingsteps' => { 243 => 0x174c, 244 => 0x87b, 253 => 0x1756 }, 'aebxv' => { 324 => 0x4, 325 => 0x6 }, 'aeerror' => { 325 => 0x8 }, 'aeexposuretime' => { 324 => 0x0, 325 => 0x2, 326 => 0x10 }, 'aelock' => { 183 => 0x5b, 278 => '4.2', 287 => '4.2', 293 => 0x201, 351 => 0x48, 403 => 0x40, 404 => 0x40, 405 => [0x86,0x286] }, 'aelockbutton' => { 276 => '16.1', 278 => '4.1', 281 => '15.1', 282 => '16.1', 283 => '16.1', 285 => '30.1', 286 => '16.1', 287 => '4.1', 289 => '17.1', 291 => '17.1' }, 'aelockbuttonplusdials' => { 276 => '16.2', 285 => '32.1', 289 => '44.1' }, 'aelockformb-d80' => { 291 => '3.1' }, 'aemaxaperture' => { 324 => 0x9, 325 => 0x10, 326 => 0x1c }, 'aemaxaperture2' => { 324 => 0xa, 325 => 0x11, 326 => 0x1d }, 'aemeteringmode' => { 324 => 0xc }, 'aemeteringmode2' => { 324 => '13.1' }, 'aemeteringsegments' => { 186 => 0x628, 351 => 0x209 }, 'aeminaperture' => { 324 => 0xb, 325 => 0x12, 326 => 0x1e }, 'aeminexposuretime' => { 324 => 0x5, 325 => 0x13, 326 => 0x1f }, 'aeprogrammode' => { 324 => 0x6 }, 'aeprojectlink' => { 474 => 'aeProjectLink' }, 'aeprojectlinkcompositionid' => { 474 => [\'aeProjectLink','aeProjectLinkCompositionID'] }, 'aeprojectlinkfullpath' => { 474 => [\'aeProjectLink','aeProjectLinkFullPath'] }, 'aeprojectlinkrenderoutputmoduleindex' => { 474 => [\'aeProjectLink','aeProjectLinkRenderOutputModuleIndex'] }, 'aeprojectlinkrenderqueueitemid' => { 474 => [\'aeProjectLink','aeProjectLinkRenderQueueItemID'] }, 'aeprojectlinkrendertimestamp' => { 474 => [\'aeProjectLink','aeProjectLinkRenderTimeStamp'] }, 'aewhitebalance' => { 324 => 0xd }, 'aexv' => { 324 => 0x3, 325 => 0x5 }, 'af-cpriorityselection' => { 276 => '1.1', 277 => '1.1', 279 => '1.1', 280 => '1.1', 282 => '0.1', 283 => '0.1', 284 => '0.1', 285 => '1.1', 286 => '0.1', 289 => '1.1', 290 => '1.1' }, 'af-onbutton' => { 279 => '70.1', 280 => '70.1', 290 => '70.1' }, 'af-onformb-d10' => { 276 => '3.3', 285 => '3.2' }, 'af-onformb-d11' => { 286 => '2.2' }, 'af-onformb-d12' => { 289 => '50.1' }, 'af-spriorityselection' => { 276 => '1.2', 277 => '1.2', 279 => '1.2', 280 => '1.2', 284 => '0.2', 285 => '1.2', 286 => '0.2', 289 => '1.2', 290 => '1.2' }, 'afactivation' => { 276 => '2.1', 277 => '2.1', 279 => '78.3', 280 => '78.3', 285 => '2.1', 289 => '2.1', 290 => '78.3' }, 'afadjustment' => { 351 => 0x72, 360 => 0x267 }, 'afareaillumination' => { 183 => 0x4b, 287 => '15.3' }, 'afareamode' => { 125 => '0.3', 179 => 0x33, 183 => 0xe, 191 => 0x0, 192 => 0x5, 316 => 0xf, 383 => 0x1205, 396 => [0xa,0x3a], 403 => 0x11, 404 => 0x10, 405 => 0x24, 416 => 0xb043, 440 => 0x17 }, 'afareamodesetting' => { 278 => '11.1', 281 => '0.1', 287 => '16.1', 291 => '2.1', 416 => 0x201c }, 'afareas' => { 293 => 0x304 }, 'afareaxposition' => { 192 => [0x14,0x2e,0x4a], 383 => 0x1203 }, 'afareaxposition1' => { 383 => 0x1201 }, 'afareayposition' => { 192 => [0x16,0x30,0x4c], 383 => 0x1204 }, 'afareayposition1' => { 383 => 0x1202 }, 'afassist' => { 81 => 0x5, 89 => 0x5, 183 => 0x48, 276 => '2.5', 278 => '0.2', 281 => '0.2', 282 => '1.1', 283 => '1.1', 284 => '1.3', 285 => '2.4', 286 => '1.3', 287 => '0.2', 289 => '2.4', 291 => '2.3' }, 'afassistlamp' => { 316 => 0x31 }, 'afbuttonpressed' => { 405 => [0x83,0x283] }, 'afdefocus' => { 327 => 0x6 }, 'affinea' => { 467 => 'AffineA' }, 'affineb' => { 467 => 'AffineB' }, 'affinec' => { 467 => 'AffineC' }, 'affined' => { 467 => 'AffineD' }, 'affinetune' => { 193 => 0x0, 293 => 0x306 }, 'affinetuneadj' => { 193 => 0x2, 236 => 0x2d1, 237 => 0x2dc, 293 => 0x307 }, 'affinex' => { 467 => 'AffineX' }, 'affiney' => { 467 => 'AffineY' }, 'afhold' => { 327 => 0x1fd }, 'afilluminator' => { 403 => 0x29, 416 => 0xb044 }, 'afintegrationtime' => { 327 => 0x7 }, 'afmicroadj' => { 396 => [0x17d,0x50] }, 'afmicroadjmode' => { 3 => 0x1, 400 => 0x131 }, 'afmicroadjregisteredlenses' => { 400 => '305.1' }, 'afmicroadjvalue' => { 3 => 0x2, 400 => 0x130 }, 'afmode' => { 112 => 0x3009, 126 => 0x1022, 179 => 0x16, 393 => 0x5 }, 'afmoderestrictions' => { 277 => '50.3', 279 => '48.3', 280 => '48.3', 289 => '48.3', 290 => '48.3' }, 'afonbutton' => { 276 => '3.1', 277 => '47.1' }, 'afpoint' => { 34 => 0x13, 111 => 0x18, 179 => 0x15, 191 => 0x1, 296 => 0x308, 393 => 0x1f, 396 => [0x37,0x7], 400 => 0x19, 401 => 0x18, 402 => [0x18,0x20] }, 'afpointatshutterrelease' => { 396 => [0x39,0x9] }, 'afpointbrightness' => { 83 => 0x50d, 276 => '2.4', 277 => '46.5', 279 => '2.2', 280 => '2.2', 289 => '2.3', 290 => '2.2' }, 'afpointillumination' => { 82 => 0xa, 276 => '2.3', 277 => '46.2', 279 => '47.2', 280 => '47.2', 284 => '1.2', 285 => '2.3', 286 => '1.2', 289 => '47.2', 290 => '47.2', 291 => '2.4' }, 'afpointinfocus' => { 396 => [0x38,0x8] }, 'afpointmode' => { 332 => 0x3 }, 'afpointposition' => { 112 => 0x2021, 316 => 0x4d }, 'afpointselected' => { 183 => 0xd, 293 => 0x305, 351 => 0xe, 400 => 0x15, 401 => 0x14, 402 => [0x14,0x1c], 416 => 0x201e }, 'afpointselected2' => { 332 => 0x4 }, 'afpointselection' => { 82 => 0xb, 276 => '1.3', 277 => '1.3', 285 => '1.3', 289 => '1.3', 290 => '1.3' }, 'afpointsetting' => { 403 => 0x12, 404 => 0x11 }, 'afpointsinfocus' => { 76 => 0xe, 191 => 0x2, 192 => 0x30, 327 => 0xb, 328 => 0x4, 351 => [0xf,0x3c] }, 'afpointsselected' => { 192 => 0x1c, 328 => '4.1', 448 => 0x4 }, 'afpointsspecial' => { 328 => '4.2' }, 'afpointsunknown1' => { 327 => 0x0 }, 'afpointsunknown2' => { 327 => 0x2 }, 'afpointsused' => { 192 => [0xa,0x8], 396 => [0x10,0x16e] }, 'afpredictor' => { 327 => 0x4 }, 'afresult' => { 298 => 0x1038 }, 'afsearch' => { 293 => 0x303 }, 'afstatus' => { 383 => 0x1200 }, 'afstatus_00_b4' => { 399 => 0x0 }, 'afstatus_01_c4' => { 399 => 0x2 }, 'afstatus_02_d4' => { 399 => 0x4 }, 'afstatus_03_e4' => { 399 => 0x6 }, 'afstatus_04_f4' => { 399 => 0x8 }, 'afstatus_05_g4' => { 399 => 0xa }, 'afstatus_06_h4' => { 399 => 0xc }, 'afstatus_07_b3' => { 399 => 0xe }, 'afstatus_08_c3' => { 399 => 0x10 }, 'afstatus_09_d3' => { 399 => 0x12 }, 'afstatus_10_e3' => { 399 => 0x14 }, 'afstatus_11_f3' => { 399 => 0x16 }, 'afstatus_12_g3' => { 399 => 0x18 }, 'afstatus_13_h3' => { 399 => 0x1a }, 'afstatus_14_b2' => { 399 => 0x1c }, 'afstatus_15_c2' => { 399 => 0x1e }, 'afstatus_16_d2' => { 399 => 0x20 }, 'afstatus_17_e2' => { 399 => 0x22 }, 'afstatus_18_f2' => { 399 => 0x24 }, 'afstatus_19_g2' => { 399 => 0x26 }, 'afstatus_20_h2' => { 399 => 0x28 }, 'afstatus_21_c1' => { 399 => 0x2a }, 'afstatus_22_d1' => { 399 => 0x2c }, 'afstatus_23_e1' => { 399 => 0x2e }, 'afstatus_24_f1' => { 399 => 0x30 }, 'afstatus_25_g1' => { 399 => 0x32 }, 'afstatus_26_a7_vertical' => { 399 => 0x34 }, 'afstatus_27_a6_vertical' => { 399 => 0x36 }, 'afstatus_28_a5_vertical' => { 399 => 0x38 }, 'afstatus_29_c7_vertical' => { 399 => 0x3a }, 'afstatus_30_c6_vertical' => { 399 => 0x3c }, 'afstatus_31_c5_vertical' => { 399 => 0x3e }, 'afstatus_32_e7_vertical' => { 399 => 0x40 }, 'afstatus_33_e6_center_vertical' => { 399 => 0x42 }, 'afstatus_34_e5_vertical' => { 399 => 0x44 }, 'afstatus_35_g7_vertical' => { 399 => 0x46 }, 'afstatus_36_g6_vertical' => { 399 => 0x48 }, 'afstatus_37_g5_vertical' => { 399 => 0x4a }, 'afstatus_38_i7_vertical' => { 399 => 0x4c }, 'afstatus_39_i6_vertical' => { 399 => 0x4e }, 'afstatus_40_i5_vertical' => { 399 => 0x50 }, 'afstatus_41_a7' => { 399 => 0x52 }, 'afstatus_42_b7' => { 399 => 0x54 }, 'afstatus_43_c7' => { 399 => 0x56 }, 'afstatus_44_d7' => { 399 => 0x58 }, 'afstatus_45_e7' => { 399 => 0x5a }, 'afstatus_46_f7' => { 399 => 0x5c }, 'afstatus_47_g7' => { 399 => 0x5e }, 'afstatus_48_h7' => { 399 => 0x60 }, 'afstatus_49_i7' => { 399 => 0x62 }, 'afstatus_50_a6' => { 399 => 0x64 }, 'afstatus_51_b6' => { 399 => 0x66 }, 'afstatus_52_c6' => { 399 => 0x68 }, 'afstatus_53_d6' => { 399 => 0x6a }, 'afstatus_54_e6_center' => { 399 => 0x6c }, 'afstatus_55_f6' => { 399 => 0x6e }, 'afstatus_56_g6' => { 399 => 0x70 }, 'afstatus_57_h6' => { 399 => 0x72 }, 'afstatus_58_i6' => { 399 => 0x74 }, 'afstatus_59_a5' => { 399 => 0x76 }, 'afstatus_60_b5' => { 399 => 0x78 }, 'afstatus_61_c5' => { 399 => 0x7a }, 'afstatus_62_d5' => { 399 => 0x7c }, 'afstatus_63_e5' => { 399 => 0x7e }, 'afstatus_64_f5' => { 399 => 0x80 }, 'afstatus_65_g5' => { 399 => 0x82 }, 'afstatus_66_h5' => { 399 => 0x84 }, 'afstatus_67_i5' => { 399 => 0x86 }, 'afstatus_68_c11' => { 399 => 0x88 }, 'afstatus_69_d11' => { 399 => 0x8a }, 'afstatus_70_e11' => { 399 => 0x8c }, 'afstatus_71_f11' => { 399 => 0x8e }, 'afstatus_72_g11' => { 399 => 0x90 }, 'afstatus_73_b10' => { 399 => 0x92 }, 'afstatus_74_c10' => { 399 => 0x94 }, 'afstatus_75_d10' => { 399 => 0x96 }, 'afstatus_76_e10' => { 399 => 0x98 }, 'afstatus_77_f10' => { 399 => 0x9a }, 'afstatus_78_g10' => { 399 => 0x9c }, 'afstatus_79_h10' => { 399 => 0x9e }, 'afstatus_80_b9' => { 399 => 0xa0 }, 'afstatus_81_c9' => { 399 => 0xa2 }, 'afstatus_82_d9' => { 399 => 0xa4 }, 'afstatus_83_e9' => { 399 => 0xa6 }, 'afstatus_84_f9' => { 399 => 0xa8 }, 'afstatus_85_g9' => { 399 => 0xaa }, 'afstatus_86_h9' => { 399 => 0xac }, 'afstatus_87_b8' => { 399 => 0xae }, 'afstatus_88_c8' => { 399 => 0xb0 }, 'afstatus_89_d8' => { 399 => 0xb2 }, 'afstatus_90_e8' => { 399 => 0xb4 }, 'afstatus_91_f8' => { 399 => 0xb6 }, 'afstatus_92_g8' => { 399 => 0xb8 }, 'afstatus_93_h8' => { 399 => 0xba }, 'afstatus_94_e6_center_f2-8' => { 399 => 0xbc }, 'afstatusactivesensor' => { 179 => 0x2, 396 => [0x4,0x3b], 400 => 0x1e, 401 => 0x1b, 402 => [0x1b,0x21] }, 'afstatusbottom' => { 179 => 0x8, 400 => 0x2a, 401 => 0x21, 402 => 0x21 }, 'afstatusbottom-left' => { 179 => 0x12, 401 => 0x2b, 402 => 0x2b }, 'afstatusbottom-right' => { 179 => 0x6, 401 => 0x1f, 402 => 0x1f }, 'afstatusbottomassist-left' => { 400 => 0x28 }, 'afstatusbottomassist-right' => { 400 => 0x2c }, 'afstatusbottomhorizontal' => { 397 => 0x10, 398 => 0x1c }, 'afstatusbottomvertical' => { 397 => 0x16, 398 => 0x26 }, 'afstatuscenter-10' => { 400 => 0x34 }, 'afstatuscenter-11' => { 400 => 0x36 }, 'afstatuscenter-12' => { 400 => 0x38 }, 'afstatuscenter-14' => { 400 => 0x3c }, 'afstatuscenter-7' => { 400 => 0x2e }, 'afstatuscenter-9' => { 400 => 0x32 }, 'afstatuscenter-horizontal' => { 400 => 0x30 }, 'afstatuscenter-vertical' => { 400 => 0x3a }, 'afstatuscenterf2-8' => { 400 => 0x4c }, 'afstatuscenterhorizontal' => { 179 => 0x2f, 397 => 0xc, 398 => 0x18, 401 => 0x2f, 402 => 0x2f }, 'afstatuscentervertical' => { 179 => 0xc, 397 => 0x14, 398 => 0x22, 401 => 0x25, 402 => 0x25 }, 'afstatusfarleft' => { 397 => 0x6, 400 => 0x26 }, 'afstatusfarlefthorizontal' => { 398 => 0x4 }, 'afstatusfarleftvertical' => { 398 => 0x12 }, 'afstatusfarright' => { 397 => 0x18, 400 => 0x44 }, 'afstatusfarrighthorizontal' => { 398 => 0x2c }, 'afstatusfarrightvertical' => { 398 => 0x34 }, 'afstatusleft' => { 179 => 0x2d, 397 => 0x2, 400 => 0x22, 401 => 0x2d, 402 => 0x2d }, 'afstatuslefthorizontal' => { 398 => 0x6 }, 'afstatusleftvertical' => { 398 => 0xe }, 'afstatuslower-left' => { 397 => 0x4, 400 => 0x24 }, 'afstatuslower-lefthorizontal' => { 398 => 0xa }, 'afstatuslower-leftvertical' => { 398 => 0x10 }, 'afstatuslower-middle' => { 397 => 0x22, 398 => 0x24 }, 'afstatuslower-right' => { 397 => 0x1e, 400 => 0x4a }, 'afstatuslower-righthorizontal' => { 398 => 0x32 }, 'afstatuslower-rightvertical' => { 398 => 0x3a }, 'afstatuslowerfarleft' => { 398 => 0x8 }, 'afstatuslowerfarright' => { 398 => 0x30 }, 'afstatusmiddlehorizontal' => { 179 => 0xa, 401 => 0x23, 402 => 0x23 }, 'afstatusnearleft' => { 397 => 0xe, 398 => 0x1a }, 'afstatusnearright' => { 397 => 0xa, 398 => 0x16 }, 'afstatusright' => { 179 => 0x31, 397 => 0x1c, 400 => 0x48, 401 => 0x31, 402 => 0x31 }, 'afstatusrighthorizontal' => { 398 => 0x2e }, 'afstatusrightvertical' => { 398 => 0x38 }, 'afstatustop' => { 179 => 0xe, 400 => 0x40, 401 => 0x27, 402 => 0x27 }, 'afstatustop-left' => { 179 => 0x10, 401 => 0x29, 402 => 0x29 }, 'afstatustop-right' => { 179 => 0x4, 401 => 0x1d, 402 => 0x1d }, 'afstatustopassist-left' => { 400 => 0x3e }, 'afstatustopassist-right' => { 400 => 0x42 }, 'afstatustophorizontal' => { 397 => 0x8, 398 => 0x14 }, 'afstatustopvertical' => { 397 => 0x12, 398 => 0x1e }, 'afstatusupper-left' => { 397 => 0x0, 400 => 0x20 }, 'afstatusupper-lefthorizontal' => { 398 => 0x2 }, 'afstatusupper-leftvertical' => { 398 => 0xc }, 'afstatusupper-middle' => { 397 => 0x20, 398 => 0x20 }, 'afstatusupper-right' => { 397 => 0x1a, 400 => 0x46 }, 'afstatusupper-righthorizontal' => { 398 => 0x2a }, 'afstatusupper-rightvertical' => { 398 => 0x36 }, 'afstatusupperfarleft' => { 398 => 0x0 }, 'afstatusupperfarright' => { 398 => 0x28 }, 'aftracking' => { 416 => 0x2021 }, 'aftype' => { 396 => 0x2 }, 'afwithshutter' => { 403 => 0x2a }, 'aggregateissuenumber' => { 489 => 'aggregateIssueNumber' }, 'aggregationtype' => { 489 => 'aggregationType' }, 'agreement' => { 492 => 'agreement' }, 'album' => { 368 => ['albm',"\xa9alb"], 370 => 'album', 376 => ['albm',"\xa9alb"], 499 => 'album' }, 'albumartist' => { 178 => 'WM/AlbumArtist', 368 => 'aART', 376 => 'albr' }, 'albumtitleid' => { 368 => 'atID' }, 'alreadyapplied' => { 473 => 'AlreadyApplied', 475 => 'AlreadyApplied' }, 'alternatetitle' => { 489 => 'alternateTitle' }, 'alternatetitlea-lang' => { 489 => [\'alternateTitle','alternateTitleA-lang'] }, 'alternatetitlea-platform' => { 489 => [\'alternateTitle','alternateTitleA-platform'] }, 'alternatetitletext' => { 489 => [\'alternateTitle','alternateTitleText'] }, 'alttapename' => { 499 => 'altTapeName' }, 'alttextaccessibility' => { 484 => 'AltTextAccessibility' }, 'alttimecode' => { 499 => 'altTimecode' }, 'alttimecodetimeformat' => { 499 => [\'altTimecode','altTimecodeTimeFormat'] }, 'alttimecodetimevalue' => { 499 => [\'altTimecode','altTimecodeTimeValue'] }, 'alttimecodevalue' => { 499 => [\'altTimecode','altTimecodeValue'] }, 'ambientinfrared' => { 379 => 0x5c }, 'ambientlight' => { 379 => 0x5e }, 'ambienttemperature' => { 118 => 0x9400, 377 => 0x14, 378 => 0x46, 379 => 0x50, 440 => 0x4, 480 => 'Temperature' }, 'ambienttemperaturefahrenheit' => { 377 => 0x13, 378 => 0x44, 379 => 0x4e }, 'androidversion' => { 370 => 'com.android.version' }, 'angleinforoll' => { 469 => 'AngleInfoRoll' }, 'angleinfoyaw' => { 469 => 'AngleInfoYaw' }, 'anti-blur' => { 416 => 0xb04b }, 'aperturelock' => { 277 => '38.2', 279 => '38.2', 280 => '38.2', 289 => '38.2', 290 => '38.2' }, 'aperturemode' => { 376 => 'apmd' }, 'apertureringuse' => { 332 => '1.4' }, 'aperturesetting' => { 183 => 0x7, 403 => 0x30, 404 => 0x29, 405 => 0x1 }, 'aperturevalue' => { 92 => 0x2, 118 => 0x9202, 298 => 0x1002, 360 => 0x401, 479 => 'ApertureValue' }, 'appinfo' => { 453 => 'AppInfo' }, 'appinfoapplication' => { 453 => [\'AppInfo','AppInfoApplication'] }, 'appinfoitemuri' => { 453 => [\'AppInfo','AppInfoItemURI'] }, 'appinfoversion' => { 453 => [\'AppInfo','AppInfoVersion'] }, 'applekeywords' => { 302 => 'AAPL:Keywords' }, 'applephotosvariationidentifier' => { 370 => 'apple.photos.variation-identifier' }, 'applestoreaccount' => { 368 => 'apID' }, 'applestoreaccounttype' => { 368 => 'akID' }, 'applestorecatalogid' => { 368 => 'cnID' }, 'applestorecountry' => { 368 => 'sfID' }, 'applicationnotes' => { 118 => 0x2bc, 321 => 0x2bc }, 'approved' => { 481 => 'Approved' }, 'approvedby' => { 481 => 'ApprovedBy' }, 'approximatefnumber' => { 311 => 0x313, 318 => 0x3406 }, 'approximatefocusdistance' => { 470 => 'ApproximateFocusDistance' }, 'appversion' => { 483 => 'AppVersion' }, 'aps-csizecapture' => { 434 => 0x114, 435 => [0x114,0x1eb,0x1ee,0x21a,0x21c] }, 'arranger' => { 368 => "\xa9arg", 376 => "\xa9arg" }, 'arrangerkeywords' => { 376 => "\xa9ark" }, 'artdirector' => { 368 => "\xa9ard" }, 'artfilter' => { 293 => 0x529 }, 'artfiltereffect' => { 293 => 0x52f }, 'artist' => { 118 => 0x13b, 306 => 'Artist', 351 => 0x22e, 368 => "\xa9ART", 370 => 'artist', 376 => "\xa9ART", 495 => 'Artist', 499 => 'artist' }, 'artwork' => { 370 => 'artwork' }, 'artworkcircadatecreated' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCircaDateCreated'] }, 'artworkcontentdescription' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOContentDescription'] }, 'artworkcontributiondescription' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOContributionDescription'] }, 'artworkcopyrightnotice' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCopyrightNotice'] }, 'artworkcopyrightownerid' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerId'] }, 'artworkcopyrightownername' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentCopyrightOwnerName'] }, 'artworkcreator' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCreator'] }, 'artworkcreatorid' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCreatorId'] }, 'artworkdatecreated' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAODateCreated'] }, 'artworklicensorid' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorId'] }, 'artworklicensorname' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOCurrentLicensorName'] }, 'artworkorobject' => { 485 => 'ArtworkOrObject' }, 'artworkphysicaldescription' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOPhysicalDescription'] }, 'artworksource' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOSource'] }, 'artworksourceinventoryno' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvNo'] }, 'artworksourceinvurl' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOSourceInvURL'] }, 'artworkstyleperiod' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOStylePeriod'] }, 'artworktitle' => { 485 => [\'ArtworkOrObject','ArtworkOrObjectAOTitle'] }, 'aspectframe' => { 297 => 0x1113 }, 'aspectratio' => { 5 => 0x0, 297 => 0x1112, 351 => 0x80, 403 => 0x55, 404 => 0x55, 405 => 0xa }, 'assetid' => { 463 => 'AssetID' }, 'assignbktbutton' => { 276 => '4.2', 277 => '16.1', 279 => '16.1', 280 => '16.1', 289 => '16.1', 290 => '16.1' }, 'assignmb-d17af-onbutton' => { 280 => '79.1' }, 'assignmb-d17funcbutton' => { 280 => '67.1' }, 'assignmb-d17funcbuttonplusdials' => { 280 => '68.1' }, 'assignmb-d18af-onbutton' => { 290 => '79.1' }, 'assignmb-d18funcbutton' => { 290 => '67.1' }, 'assignmb-d18funcbuttonplusdials' => { 290 => '68.1' }, 'assignmoviefunc1buttonplusdials' => { 279 => '75.1', 280 => '75.1', 290 => '75.1' }, 'assignmoviefunc2button' => { 279 => '82.1', 280 => '82.1', 290 => '82.1' }, 'assignmoviepreviewbuttonplusdials' => { 279 => '75.2', 280 => '75.2', 290 => '75.2' }, 'assignmovierecordbutton' => { 277 => '43.2', 289 => '45.1' }, 'assignmovierecordbuttonplusdials' => { 279 => '45.1', 280 => '45.1', 290 => '45.1' }, 'assignmoviesubselector' => { 279 => '74.1', 280 => '74.1', 290 => '74.1' }, 'assignmoviesubselectorplusdials' => { 279 => '76.1', 280 => '76.1', 290 => '76.1' }, 'assignremotefnbutton' => { 277 => '54.1', 289 => '51.1' }, 'attributionname' => { 471 => 'attributionName' }, 'attributionurl' => { 471 => 'attributionURL' }, 'audio' => { 316 => 0x20 }, 'audiobitrate' => { 66 => 0x6c, 485 => 'audioBitRate' }, 'audiobitratemode' => { 485 => 'audioBitRateMode' }, 'audiobitspersample' => { 485 => 'audioBitsPerSample' }, 'audiochannelcount' => { 485 => 'audioChannelCount' }, 'audiochanneltype' => { 499 => 'audioChannelType' }, 'audiocompressor' => { 499 => 'audioCompressor' }, 'audiodata' => { 455 => 'Data' }, 'audiogain' => { 370 => 'player.movie.audio.gain' }, 'audiomimetype' => { 455 => 'Mime' }, 'audiomoddate' => { 499 => 'audioModDate' }, 'audiosamplerate' => { 66 => 0x6e, 499 => 'audioSampleRate' }, 'audiosampletype' => { 499 => 'audioSampleType' }, 'author' => { 156 => 'Author', 302 => 'Author', 306 => 'Author', 367 => 'Author', 368 => ['auth',"\xa9aut"], 370 => 'author', 376 => 'auth', 468 => 'author', 486 => 'Author', 497 => 'Author' }, 'authorsposition' => { 487 => 'AuthorsPosition' }, 'autoaperture' => { 342 => '0.1' }, 'autobracket' => { 393 => 0x19 }, 'autobracketing' => { 126 => 0x1100, 351 => 0x18, 383 => 0x1007 }, 'autobracketingmode' => { 288 => '12.3' }, 'autobracketingset' => { 288 => '12.1' }, 'autobracketmodem' => { 276 => '21.2', 277 => '13.3', 279 => '13.2', 280 => '13.2', 285 => '26.2', 289 => '13.3', 290 => '13.2' }, 'autobracketorder' => { 183 => 0x43, 276 => '21.3', 277 => '13.2', 279 => '13.1', 280 => '13.1', 285 => '26.3', 286 => '12.2', 287 => '2.2', 288 => '12.2', 289 => '13.2', 290 => '13.1', 291 => '13.2' }, 'autobracketset' => { 276 => '21.1', 277 => '13.1', 281 => '11.1', 282 => '12.1', 283 => '12.1', 285 => '26.1', 286 => '12.1', 287 => '2.1', 289 => '13.1', 291 => '13.1' }, 'autobrightness' => { 473 => 'AutoBrightness', 475 => 'AutoBrightness' }, 'autocontrast' => { 473 => 'AutoContrast', 475 => 'AutoContrast' }, 'autodistortioncontrol' => { 204 => 0x4, 261 => 0x143 }, 'autoexposure' => { 473 => 'AutoExposure', 475 => 'AutoExposure' }, 'autoflashisosensitivity' => { 279 => '38.5', 280 => '38.5', 290 => '38.5' }, 'autofocus' => { 296 => 0x209 }, 'autofp' => { 287 => '7.3', 291 => '31.4' }, 'autoiso' => { 76 => 0x1, 112 => 0x3008, 278 => '1.1', 287 => '1.1' }, 'autoisomax' => { 278 => '1.2', 287 => '1.2' }, 'autoisominshutterspeed' => { 278 => '1.3', 287 => '1.3' }, 'autolateralca' => { 473 => 'AutoLateralCA', 475 => 'AutoLateralCA' }, 'autoportraitframed' => { 416 => 0x2016 }, 'autoredeye' => { 269 => 0xfe28a44f }, 'autoshadows' => { 473 => 'AutoShadows', 475 => 'AutoShadows' }, 'autotone' => { 473 => 'AutoTone', 475 => 'AutoTone' }, 'autotonedigest' => { 473 => 'AutoToneDigest', 475 => 'AutoToneDigest' }, 'autotonedigestnosat' => { 473 => 'AutoToneDigestNoSat', 475 => 'AutoToneDigestNoSat' }, 'autowhiteversion' => { 473 => 'AutoWhiteVersion', 475 => 'AutoWhiteVersion' }, 'avaperturesetting' => { 332 => 0x13 }, 'babyage' => { 316 => [0x8010,0x33] }, 'babyname' => { 316 => 0x66 }, 'backgroundalpha' => { 494 => 'bgalpha' }, 'balance' => { 370 => 'player.movie.audio.balance' }, 'baseexposurecompensation' => { 332 => 0x15 }, 'baseiso' => { 76 => 0x2, 96 => 0x101c, 137 => 0x903, 318 => 0x312a, 446 => 0x6 }, 'baseurl' => { 497 => 'BaseURL' }, 'bass' => { 370 => 'player.movie.audio.bass' }, 'batterylevel' => { 316 => 0x38, 403 => 0x51, 407 => 0xc, 408 => 0x4, 409 => 0x4, 447 => 0x7 }, 'batterylevelgrip1' => { 447 => 0x6 }, 'batterylevelgrip2' => { 447 => 0x8 }, 'batteryorder' => { 276 => '12.5', 285 => '13.2', 286 => '2.1', 289 => '3.1' }, 'batterystate' => { 183 => 0x60, 403 => 0x50, 409 => 0x14 }, 'batterytemperature' => { 407 => 0x1, 409 => 0x2, 447 => 0x5 }, 'batterytype' => { 63 => 0x38, 379 => 0x66 }, 'batteryunknown' => { 407 => 0x2, 409 => 0x0 }, 'batteryvoltage' => { 137 => 0x408, 377 => 0x2a, 378 => 0x49, 379 => 0x62, 407 => 0x8 }, 'batteryvoltage1' => { 409 => 0x6 }, 'batteryvoltage2' => { 409 => 0x8 }, 'batteryvoltageavg' => { 379 => 0x64 }, 'beatsperminute' => { 368 => 'tmpo' }, 'beatspliceparams' => { 499 => 'beatSpliceParams' }, 'beatspliceparamsriseindecibel' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInDecibel'] }, 'beatspliceparamsriseintimeduration' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDuration'] }, 'beatspliceparamsriseintimedurationscale' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationScale'] }, 'beatspliceparamsriseintimedurationvalue' => { 499 => [\'beatSpliceParams','beatSpliceParamsRiseInTimeDurationValue'] }, 'beatspliceparamsusefilebeatsmarker' => { 499 => [\'beatSpliceParams','beatSpliceParamsUseFileBeatsMarker'] }, 'beep' => { 276 => '13.1', 277 => '5.4', 278 => '0.1', 281 => '2.1', 282 => '3.1', 283 => '3.1', 285 => '10.1', 287 => '0.1', 289 => '5.5', 291 => '4.1' }, 'beeppitch' => { 286 => '3.1' }, 'beepvolume' => { 286 => '4.5' }, 'bitdepth' => { 161 => 'BitDepth', 187 => 0x11, 233 => 0x41 }, 'bitspersample' => { 118 => 0x102, 321 => 0xa, 495 => 'BitsPerSample' }, 'blacklevel' => { 118 => 0xc61a, 202 => 0x20, 224 => 0x3d, 298 => [0x401,0x1012], 360 => 0x21d }, 'blacklevel2' => { 297 => 0x600, 301 => 0x600 }, 'blacklevelblue' => { 321 => 0x1e }, 'blackleveldata' => { 360 => 0x223 }, 'blacklevelgreen' => { 321 => 0x1d }, 'blacklevelred' => { 321 => 0x1c }, 'blackpoint' => { 351 => 0x200 }, 'blacks2012' => { 473 => 'Blacks2012', 475 => 'Blacks2012' }, 'blacksadj' => { 450 => 0x9018 }, 'bleachbypasstoning' => { 351 => 0x7f }, 'blockshotafresponse' => { 279 => '1.5', 280 => '1.5', 290 => '1.5' }, 'blogtitle' => { 489 => 'blogTitle' }, 'blogurl' => { 489 => 'blogURL' }, 'bluebalance' => { 298 => 0x1018, 321 => 0x12, 351 => 0x1b }, 'bluehue' => { 473 => 'BlueHue', 475 => 'BlueHue' }, 'bluesaturation' => { 473 => 'BlueSaturation', 475 => 'BlueSaturation' }, 'bluratinfinity' => { 459 => 'BlurAtInfinity' }, 'blurcontrol' => { 351 => 0x82 }, 'bodybatteryadload' => { 330 => 0x3 }, 'bodybatteryadnoload' => { 330 => 0x2 }, 'bodybatterystate' => { 330 => '1.1' }, 'bodybatteryvoltage1' => { 330 => 0x2 }, 'bodybatteryvoltage2' => { 330 => 0x4 }, 'bodybatteryvoltage3' => { 330 => 0x6 }, 'bodybatteryvoltage4' => { 330 => 0x8 }, 'bodyfirmware' => { 384 => 0x0 }, 'bodyfirmwareversion' => { 294 => 0x104, 295 => 0x100, 298 => 0x104 }, 'bodyserialnumber' => { 384 => 0x10 }, 'bookedition' => { 489 => 'bookEdition' }, 'bootloaderversion' => { 378 => 0x26 }, 'bracketsettings' => { 316 => 0x45 }, 'bracketshotnumber' => { 57 => 0x5, 332 => 0x9, 414 => 0x2b }, 'bracketshotnumber2' => { 414 => 0x2d }, 'brightness' => { 118 => 0xfe53, 155 => 'Brightness', 175 => 'Brightness', 180 => 0x2c, 227 => 0x34, 228 => 0x39, 229 => 0x41, 370 => 'player.movie.visual.brightness', 377 => 0x25, 379 => 0x54, 403 => 0x22, 416 => 0x2007, 473 => 'Brightness', 475 => 'Brightness' }, 'brightnessadj' => { 107 => 0x114, 262 => 0x0, 272 => 0x2d, 450 => 0x8018 }, 'brightnessvalue' => { 118 => 0x9203, 186 => [0x691,0x49c3], 298 => 0x1003, 421 => 0x1e, 424 => 0x1140, 425 => 0x1140, 426 => 0x111c, 427 => 0x1198, 428 => 0x1174, 429 => 0x102c, 430 => 0x224, 431 => 0x224, 432 => 0x219, 479 => 'BrightnessValue' }, 'burstid' => { 456 => 'BurstID' }, 'burstmode' => { 139 => 0xa, 316 => 0x2a }, 'burstprimary' => { 456 => 'BurstPrimary' }, 'burstshot' => { 393 => 0x34 }, 'burstspeed' => { 316 => 0x77 }, 'bwmode' => { 298 => 0x203 }, 'bytecount' => { 489 => 'byteCount' }, 'calibration' => { 393 => [0x24,0x30] }, 'callforimage' => { 463 => 'CallForImage' }, 'camera' => { 453 => [\'Cameras','CamerasCamera'] }, 'cameraangle' => { 376 => 'angl', 499 => 'cameraAngle' }, 'cameraappinfo' => { 453 => [\'Cameras','CamerasCameraAppInfo'] }, 'cameraappinfoapplication' => { 453 => [\'Cameras','CamerasCameraAppInfoApplication'] }, 'cameraappinfoitemuri' => { 453 => [\'Cameras','CamerasCameraAppInfoItemURI'] }, 'cameraappinfoversion' => { 453 => [\'Cameras','CamerasCameraAppInfoVersion'] }, 'cameraburstid' => { 457 => 'CameraBurstID' }, 'cameracalibration' => { 393 => 0x11f }, 'cameradepthmap' => { 453 => [\'Cameras','CamerasCameraDepthMap'] }, 'cameradepthmapconfidenceuri' => { 453 => [\'Cameras','CamerasCameraDepthMapConfidenceURI'] }, 'cameradepthmapdepthuri' => { 453 => [\'Cameras','CamerasCameraDepthMapDepthURI'] }, 'cameradepthmapfar' => { 453 => [\'Cameras','CamerasCameraDepthMapFar'] }, 'cameradepthmapfocaltable' => { 453 => [\'Cameras','CamerasCameraDepthMapFocalTable'] }, 'cameradepthmapfocaltableentrycount' => { 453 => [\'Cameras','CamerasCameraDepthMapFocalTableEntryCount'] }, 'cameradepthmapformat' => { 453 => [\'Cameras','CamerasCameraDepthMapFormat'] }, 'cameradepthmapitemsemantic' => { 453 => [\'Cameras','CamerasCameraDepthMapItemSemantic'] }, 'cameradepthmapmeasuretype' => { 453 => [\'Cameras','CamerasCameraDepthMapMeasureType'] }, 'cameradepthmapnear' => { 453 => [\'Cameras','CamerasCameraDepthMapNear'] }, 'cameradepthmapsoftware' => { 453 => [\'Cameras','CamerasCameraDepthMapSoftware'] }, 'cameradepthmapunits' => { 453 => [\'Cameras','CamerasCameraDepthMapUnits'] }, 'cameradirection' => { 370 => 'direction.facing' }, 'camerae-mountversion' => { 449 => 0xb }, 'cameraelevationangle' => { 118 => 0x9405, 480 => 'CameraElevationAngle' }, 'camerafilename' => { 463 => 'CameraFilename' }, 'cameraid' => { 298 => 0x209, 376 => 'cmid', 392 => 0x209 }, 'cameraidentifier' => { 370 => 'camera.identifier' }, 'cameraimage' => { 453 => [\'Cameras','CamerasCameraImage'] }, 'cameraimageitemsemantic' => { 453 => [\'Cameras','CamerasCameraImageItemSemantic'] }, 'cameraimageitemuri' => { 453 => [\'Cameras','CamerasCameraImageItemURI'] }, 'cameraimagingmodel' => { 453 => [\'Cameras','CamerasCameraImagingModel'] }, 'cameraimagingmodeldistortion' => { 453 => [\'Cameras','CamerasCameraImagingModelDistortion'] }, 'cameraimagingmodeldistortioncount' => { 453 => [\'Cameras','CamerasCameraImagingModelDistortionCount'] }, 'cameraimagingmodelfocallengthx' => { 453 => [\'Cameras','CamerasCameraImagingModelFocalLengthX'] }, 'cameraimagingmodelfocallengthy' => { 453 => [\'Cameras','CamerasCameraImagingModelFocalLengthY'] }, 'cameraimagingmodelimageheight' => { 453 => [\'Cameras','CamerasCameraImagingModelImageHeight'] }, 'cameraimagingmodelimagewidth' => { 453 => [\'Cameras','CamerasCameraImagingModelImageWidth'] }, 'cameraimagingmodelpixelaspectratio' => { 453 => [\'Cameras','CamerasCameraImagingModelPixelAspectRatio'] }, 'cameraimagingmodelprincipalpointx' => { 453 => [\'Cameras','CamerasCameraImagingModelPrincipalPointX'] }, 'cameraimagingmodelprincipalpointy' => { 453 => [\'Cameras','CamerasCameraImagingModelPrincipalPointY'] }, 'cameraimagingmodelskew' => { 453 => [\'Cameras','CamerasCameraImagingModelSkew'] }, 'cameralabel' => { 118 => 0xc7a1, 499 => 'cameraLabel' }, 'cameralightestimate' => { 453 => [\'Cameras','CamerasCameraLightEstimate'] }, 'cameralightestimatecolorcorrectionb' => { 453 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionB'] }, 'cameralightestimatecolorcorrectiong' => { 453 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionG'] }, 'cameralightestimatecolorcorrectionr' => { 453 => [\'Cameras','CamerasCameraLightEstimateColorCorrectionR'] }, 'cameralightestimatepixelintensity' => { 453 => [\'Cameras','CamerasCameraLightEstimatePixelIntensity'] }, 'cameramakemodel' => { 463 => 'CameraMakeModel' }, 'cameramodel' => { 360 => 0x410, 499 => 'cameraModel' }, 'cameramodelrestriction' => { 473 => 'CameraModelRestriction', 475 => 'CameraModelRestriction' }, 'cameramotion' => { 370 => 'direction.motion' }, 'cameramove' => { 499 => 'cameraMove' }, 'cameraorientation' => { 7 => 0x30, 9 => 0x7d, 11 => 0x30, 13 => 0x35, 14 => 0x30, 15 => 0x30, 16 => 0x31, 17 => 0x31, 18 => 0x35, 19 => 0x27, 20 => 0x31, 21 => 0x7d, 22 => 0x38, 23 => [0x36,0x3a], 24 => 0x7d, 25 => 0x83, 26 => 0x84, 27 => 0x96, 28 => 0x35, 29 => 0x96, 316 => 0x8f, 355 => 0x1, 360 => 0x100, 409 => [0x16,0x18], 437 => 0x28, 438 => 0x24, 439 => 0x29 }, 'cameraparameters' => { 298 => 0x2050 }, 'camerapitch' => { 114 => 0x9, 376 => "\xa9gpt" }, 'camerapointcloud' => { 453 => [\'Cameras','CamerasCameraPointCloud'] }, 'camerapointcloudmetric' => { 453 => [\'Cameras','CamerasCameraPointCloudMetric'] }, 'camerapointcloudpointcloud' => { 453 => [\'Cameras','CamerasCameraPointCloudPointCloud'] }, 'camerapointcloudpoints' => { 453 => [\'Cameras','CamerasCameraPointCloudPoints'] }, 'camerapose' => { 453 => [\'Cameras','CamerasCameraPose'] }, 'cameraposepositionx' => { 453 => [\'Cameras','CamerasCameraPosePositionX'] }, 'cameraposepositiony' => { 453 => [\'Cameras','CamerasCameraPosePositionY'] }, 'cameraposepositionz' => { 453 => [\'Cameras','CamerasCameraPosePositionZ'] }, 'cameraposerotationw' => { 453 => [\'Cameras','CamerasCameraPoseRotationW'] }, 'cameraposerotationx' => { 453 => [\'Cameras','CamerasCameraPoseRotationX'] }, 'cameraposerotationy' => { 453 => [\'Cameras','CamerasCameraPoseRotationY'] }, 'cameraposerotationz' => { 453 => [\'Cameras','CamerasCameraPoseRotationZ'] }, 'cameraposetimestamp' => { 453 => [\'Cameras','CamerasCameraPoseTimestamp'] }, 'cameraprofile' => { 473 => 'CameraProfile', 475 => 'CameraProfile' }, 'cameraprofiledigest' => { 473 => 'CameraProfileDigest', 475 => 'CameraProfileDigest' }, 'cameraroll' => { 114 => 0xb, 376 => "\xa9grl" }, 'cameras' => { 453 => 'Cameras' }, 'cameraserialnumber' => { 118 => 0xc62f, 177 => 'CameraSerialNumber', 463 => 'CameraSerialNumber' }, 'camerasettingsversion' => { 293 => 0x0 }, 'cameratemperature' => { 7 => 0x18, 9 => 0x1b, 11 => 0x18, 13 => 0x19, 14 => 0x18, 15 => 0x18, 16 => 0x19, 17 => 0x19, 18 => 0x19, 19 => 0x17, 20 => 0x19, 21 => 0x1b, 22 => 0x19, 23 => 0x19, 24 => 0x1b, 25 => 0x1b, 26 => 0x1b, 27 => 0x1b, 28 => 0x19, 29 => 0x1b, 30 => [0x87,0x91], 31 => [0x99,0x9f,0xa4,0xa8,0x105], 33 => ['-3',0x64,0x47,0x53,0x5b,0x5c], 76 => 0xc, 137 => 0x406, 297 => 0x1306, 311 => 0x320, 318 => 0x3402, 351 => 0x47, 390 => 0x43, 441 => 0x5 }, 'cameratemperature4' => { 356 => 0x14 }, 'cameratemperature5' => { 356 => 0x16 }, 'cameratrait' => { 453 => [\'Cameras','CamerasCameraTrait'] }, 'cameratype' => { 76 => 0x1a, 298 => 0x207 }, 'cameratype2' => { 294 => 0x100 }, 'cameravendorinfo' => { 453 => [\'Cameras','CamerasCameraVendorInfo'] }, 'cameravendorinfomanufacturer' => { 453 => [\'Cameras','CamerasCameraVendorInfoManufacturer'] }, 'cameravendorinfomodel' => { 453 => [\'Cameras','CamerasCameraVendorInfoModel'] }, 'cameravendorinfonotes' => { 453 => [\'Cameras','CamerasCameraVendorInfoNotes'] }, 'camerayaw' => { 114 => 0xa, 376 => "\xa9gyw" }, 'caption' => { 468 => 'caption' }, 'captionsauthornames' => { 478 => 'CaptionsAuthorNames' }, 'captionsdatetimestamps' => { 478 => 'CaptionsDateTimeStamps' }, 'captionwriter' => { 487 => 'CaptionWriter' }, 'capturemode' => { 370 => 'com.apple.photos.captureMode' }, 'capturesoftware' => { 461 => 'CaptureSoftware' }, 'catalogsets' => { 130 => 0xff, 454 => 'CatalogSets', 466 => 'CatalogSets' }, 'categories' => { 63 => 0x23, 468 => 'categories' }, 'category' => { 130 => 0xf, 178 => 'WM/Category', 292 => 0x30, 368 => 'catg', 487 => 'Category' }, 'cbcrgain' => { 390 => 0xa036 }, 'cbcrgaindefault' => { 390 => 0xa035 }, 'cbcrmatrix' => { 390 => 0xa034 }, 'cbcrmatrixdefault' => { 390 => 0xa033 }, 'ccdboardversion' => { 311 => 0x331 }, 'ccdscanmode' => { 298 => 0x1039 }, 'ccdsensitivity' => { 258 => 0x6 }, 'ccdversion' => { 311 => 0x330 }, 'cellglobalid' => { 472 => 'cgi' }, 'cellr' => { 472 => 'r' }, 'celltowerid' => { 472 => 'cellid' }, 'centerafarea' => { 287 => '15.1' }, 'centerfocuspoint' => { 291 => '2.2' }, 'centerweightedareasize' => { 276 => '7.1', 277 => '8.1', 279 => '8.1', 280 => '8.1', 284 => '7.1', 285 => '5.1', 286 => '7.1', 287 => '6.3', 289 => '8.1', 290 => '8.1', 291 => '8.1' }, 'certificate' => { 503 => 'Certificate' }, 'cfapattern' => { 118 => 0xa302, 321 => 0x9, 479 => 'CFAPattern' }, 'cfapatterncolumns' => { 479 => [\'CFAPattern','CFAPatternColumns'] }, 'cfapatternrows' => { 479 => [\'CFAPattern','CFAPatternRows'] }, 'cfapatternvalues' => { 479 => [\'CFAPattern','CFAPatternValues'] }, 'channel' => { 489 => 'channel' }, 'channela-lang' => { 489 => [\'channel','channelA-lang'] }, 'channelchannel' => { 489 => [\'channel','channelChannel'] }, 'channelsubchannel1' => { 489 => [\'channel','channelSubchannel1'] }, 'channelsubchannel2' => { 489 => [\'channel','channelSubchannel2'] }, 'channelsubchannel3' => { 489 => [\'channel','channelSubchannel3'] }, 'channelsubchannel4' => { 489 => [\'channel','channelSubchannel4'] }, 'chapterlist' => { 376 => 'chpl' }, 'childfontfiles' => { 504 => [\'Fonts','FontsChildFontFiles'] }, 'chmodeshootingspeed' => { 276 => '10.3', 277 => '11.2' }, 'chromaticaberration' => { 102 => 0x20703, 108 => 0x66, 390 => 0xa051 }, 'chromaticaberrationb' => { 473 => 'ChromaticAberrationB', 475 => 'ChromaticAberrationB' }, 'chromaticaberrationcorrection' => { 118 => 0x7034, 341 => 0x1, 450 => 0x900d }, 'chromaticaberrationcorrparams' => { 118 => 0x7035, 445 => 0x66a, 446 => [0x37c,0x384,0x39c,0x3b0,0x3b8] }, 'chromaticaberrationr' => { 473 => 'ChromaticAberrationR', 475 => 'ChromaticAberrationR' }, 'chrominancenoisereduction' => { 102 => 0x20601, 108 => 0x5e, 393 => 0x1a }, 'circadatecreated' => { 485 => 'CircaDateCreated' }, 'circgradbasedcorractive' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionActive'] }, 'circgradbasedcorramount' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionAmount'] }, 'circgradbasedcorrblacks2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBlacks2012'] }, 'circgradbasedcorrbrightness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalBrightness'] }, 'circgradbasedcorrclarity' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity'] }, 'circgradbasedcorrclarity2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalClarity2012'] }, 'circgradbasedcorrcontrast' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast'] }, 'circgradbasedcorrcontrast2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalContrast2012'] }, 'circgradbasedcorrcorrectionname' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionName'] }, 'circgradbasedcorrcorrectionsyncid' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionSyncID'] }, 'circgradbasedcorrdefringe' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDefringe'] }, 'circgradbasedcorrdehaze' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalDehaze'] }, 'circgradbasedcorrexposure' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure'] }, 'circgradbasedcorrexposure2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalExposure2012'] }, 'circgradbasedcorrhighlights2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHighlights2012'] }, 'circgradbasedcorrhue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalHue'] }, 'circgradbasedcorrluminancenoise' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalLuminanceNoise'] }, 'circgradbasedcorrmaskalpha' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAlpha'] }, 'circgradbasedcorrmaskangle' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksAngle'] }, 'circgradbasedcorrmaskbottom' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksBottom'] }, 'circgradbasedcorrmaskcentervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterValue'] }, 'circgradbasedcorrmaskcenterweight' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCenterWeight'] }, 'circgradbasedcorrmaskdabs' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksDabs'] }, 'circgradbasedcorrmaskfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFeather'] }, 'circgradbasedcorrmaskflipped' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlipped'] }, 'circgradbasedcorrmaskflow' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFlow'] }, 'circgradbasedcorrmaskfullx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullX'] }, 'circgradbasedcorrmaskfully' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksFullY'] }, 'circgradbasedcorrmaskinputdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksInputDigest'] }, 'circgradbasedcorrmaskleft' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksLeft'] }, 'circgradbasedcorrmaskmaskactive' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskActive'] }, 'circgradbasedcorrmaskmaskblendmode' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'circgradbasedcorrmaskmaskdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskDigest'] }, 'circgradbasedcorrmaskmaskinverted' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskInverted'] }, 'circgradbasedcorrmaskmaskname' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskName'] }, 'circgradbasedcorrmaskmasks' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasks'] }, 'circgradbasedcorrmaskmasksalpha' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'circgradbasedcorrmaskmasksangle' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksAngle'] }, 'circgradbasedcorrmaskmasksbottom' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksBottom'] }, 'circgradbasedcorrmaskmaskscentervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'circgradbasedcorrmaskmaskscenterweight' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'circgradbasedcorrmaskmasksdabs' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksDabs'] }, 'circgradbasedcorrmaskmasksfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFeather'] }, 'circgradbasedcorrmaskmasksflipped' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'circgradbasedcorrmaskmasksflow' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFlow'] }, 'circgradbasedcorrmaskmasksfullx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullX'] }, 'circgradbasedcorrmaskmasksfully' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksFullY'] }, 'circgradbasedcorrmaskmasksinputdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'circgradbasedcorrmaskmasksleft' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksLeft'] }, 'circgradbasedcorrmaskmasksmaskactive' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'circgradbasedcorrmaskmasksmaskblendmode' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'circgradbasedcorrmaskmasksmaskdigest' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'circgradbasedcorrmaskmasksmaskinverted' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'circgradbasedcorrmaskmasksmaskname' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'circgradbasedcorrmaskmasksmasksubtype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'circgradbasedcorrmaskmasksmasksyncid' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'circgradbasedcorrmaskmasksmaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'circgradbasedcorrmaskmasksmidpoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'circgradbasedcorrmaskmasksorigin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'circgradbasedcorrmaskmasksperimetervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'circgradbasedcorrmaskmasksradius' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRadius'] }, 'circgradbasedcorrmaskmasksreferencepoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'circgradbasedcorrmaskmasksright' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRight'] }, 'circgradbasedcorrmaskmasksroundness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'circgradbasedcorrmaskmaskssizex' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'circgradbasedcorrmaskmaskssizey' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'circgradbasedcorrmaskmaskstop' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksTop'] }, 'circgradbasedcorrmaskmasksubtype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSubType'] }, 'circgradbasedcorrmaskmasksvalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'circgradbasedcorrmaskmasksversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksVersion'] }, 'circgradbasedcorrmaskmaskswhat' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWhat'] }, 'circgradbasedcorrmaskmaskswholeimagearea' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'circgradbasedcorrmaskmasksx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksX'] }, 'circgradbasedcorrmaskmasksy' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksY'] }, 'circgradbasedcorrmaskmasksyncid' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'circgradbasedcorrmaskmaskszerox' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'circgradbasedcorrmaskmaskszeroy' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'circgradbasedcorrmaskmaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskVersion'] }, 'circgradbasedcorrmaskmidpoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMidpoint'] }, 'circgradbasedcorrmaskorigin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksOrigin'] }, 'circgradbasedcorrmaskperimetervalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'circgradbasedcorrmaskradius' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRadius'] }, 'circgradbasedcorrmaskrange' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'circgradbasedcorrmaskrangeareamodels' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'circgradbasedcorrmaskrangeareamodelscolorsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'circgradbasedcorrmaskrangeareamodelscomponents' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'circgradbasedcorrmaskrangecoloramount' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'circgradbasedcorrmaskrangedepthfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'circgradbasedcorrmaskrangedepthmax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'circgradbasedcorrmaskrangedepthmin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'circgradbasedcorrmaskrangeinvert' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'circgradbasedcorrmaskrangelumfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'circgradbasedcorrmaskrangeluminancedepthsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'circgradbasedcorrmaskrangelummax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'circgradbasedcorrmaskrangelummin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'circgradbasedcorrmaskrangelumrange' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'circgradbasedcorrmaskrangesampletype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'circgradbasedcorrmaskrangetype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'circgradbasedcorrmaskrangeversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'circgradbasedcorrmaskreferencepoint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksReferencePoint'] }, 'circgradbasedcorrmaskright' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRight'] }, 'circgradbasedcorrmaskroundness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksRoundness'] }, 'circgradbasedcorrmasks' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasks'] }, 'circgradbasedcorrmasksizex' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeX'] }, 'circgradbasedcorrmasksizey' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksSizeY'] }, 'circgradbasedcorrmasktop' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksTop'] }, 'circgradbasedcorrmaskvalue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksMaskValue'] }, 'circgradbasedcorrmaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksVersion'] }, 'circgradbasedcorrmaskwhat' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWhat'] }, 'circgradbasedcorrmaskwholeimagearea' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'circgradbasedcorrmaskx' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksX'] }, 'circgradbasedcorrmasky' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksY'] }, 'circgradbasedcorrmaskzerox' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroX'] }, 'circgradbasedcorrmaskzeroy' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionMasksZeroY'] }, 'circgradbasedcorrmoire' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalMoire'] }, 'circgradbasedcorrrangemask' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMask'] }, 'circgradbasedcorrrangemaskareamodels' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'circgradbasedcorrrangemaskareamodelscolorsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'circgradbasedcorrrangemaskareamodelscomponents' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'circgradbasedcorrrangemaskcoloramount' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'circgradbasedcorrrangemaskdepthfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'circgradbasedcorrrangemaskdepthmax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'circgradbasedcorrrangemaskdepthmin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'circgradbasedcorrrangemaskinvert' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskInvert'] }, 'circgradbasedcorrrangemasklumfeather' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'circgradbasedcorrrangemaskluminancedepthsampleinfo' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'circgradbasedcorrrangemasklummax' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'circgradbasedcorrrangemasklummin' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'circgradbasedcorrrangemasklumrange' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'circgradbasedcorrrangemasksampletype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'circgradbasedcorrrangemasktype' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskType'] }, 'circgradbasedcorrrangemaskversion' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsCorrectionRangeMaskVersion'] }, 'circgradbasedcorrsaturation' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSaturation'] }, 'circgradbasedcorrshadows2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalShadows2012'] }, 'circgradbasedcorrsharpness' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalSharpness'] }, 'circgradbasedcorrtemperature' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTemperature'] }, 'circgradbasedcorrtexture' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTexture'] }, 'circgradbasedcorrtint' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalTint'] }, 'circgradbasedcorrtoninghue' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningHue'] }, 'circgradbasedcorrtoningsaturation' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalToningSaturation'] }, 'circgradbasedcorrwhat' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsWhat'] }, 'circgradbasedcorrwhites2012' => { 473 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'], 475 => [\'CircularGradientBasedCorrections','CircularGradientBasedCorrectionsLocalWhites2012'] }, 'circulargradientbasedcorrections' => { 473 => 'CircularGradientBasedCorrections', 475 => 'CircularGradientBasedCorrections' }, 'city' => { 130 => 0x5a, 160 => 'City', 316 => 0x6d, 487 => 'City' }, 'city2' => { 316 => 0x80 }, 'clarity' => { 228 => 0x35, 229 => 0x3d, 416 => 0x2036, 473 => 'Clarity', 475 => 'Clarity' }, 'clarity2012' => { 473 => 'Clarity2012', 475 => 'Clarity2012' }, 'claritycontrol' => { 351 => 0x96 }, 'classification' => { 376 => 'clsf' }, 'clearretouch' => { 316 => 0x7c }, 'clearretouchvalue' => { 316 => 0xa3 }, 'client' => { 499 => 'client' }, 'clientname' => { 481 => 'ClientName' }, 'clipboardaspectratio' => { 473 => 'ClipboardAspectRatio', 475 => 'ClipboardAspectRatio' }, 'clipboardorientation' => { 473 => 'ClipboardOrientation', 475 => 'ClipboardOrientation' }, 'clipfilename' => { 376 => 'clfn' }, 'clipid' => { 376 => 'clid' }, 'clmodeshootingspeed' => { 276 => '10.2', 277 => '11.3', 279 => '11.2', 280 => '11.2', 285 => '11.2', 286 => '10.2', 289 => '11.2', 290 => '11.2', 291 => '11.1' }, 'cluster' => { 473 => 'Cluster', 475 => 'Cluster' }, 'cmcontrast' => { 301 => 0x2022 }, 'cmexposurecompensation' => { 301 => 0x2000 }, 'cmhue' => { 301 => 0x2021 }, 'cmsaturation' => { 301 => 0x2020 }, 'cmsharpness' => { 301 => 0x2023 }, 'cmwhitebalance' => { 301 => 0x2001 }, 'cmwhitebalancecomp' => { 301 => 0x2002 }, 'cmwhitebalancegraypoint' => { 301 => 0x2010 }, 'codeversion' => { 376 => 'cver' }, 'collection' => { 306 => 'Collection' }, 'collectionname' => { 169 => [\'Collections','CollectionsCollectionName'], 376 => 'coll' }, 'collections' => { 169 => 'Collections', 468 => 'collections' }, 'color' => { 370 => 'player.movie.visual.color', 488 => 'color' }, 'coloraberrationcontrol' => { 269 => 0xc89224b }, 'coloradjustment' => { 393 => 0x14 }, 'coloradjustmentmode' => { 392 => 0x210 }, 'coloranta' => { 504 => [\'Colorants','ColorantsA'] }, 'colorantb' => { 504 => [\'Colorants','ColorantsB'] }, 'colorantblack' => { 504 => [\'Colorants','ColorantsBlack'] }, 'colorantblue' => { 504 => [\'Colorants','ColorantsBlue'] }, 'colorantcyan' => { 504 => [\'Colorants','ColorantsCyan'] }, 'colorantgray' => { 504 => [\'Colorants','ColorantsGray'] }, 'colorantgreen' => { 504 => [\'Colorants','ColorantsGreen'] }, 'colorantl' => { 504 => [\'Colorants','ColorantsL'] }, 'colorantmagenta' => { 504 => [\'Colorants','ColorantsMagenta'] }, 'colorantmode' => { 504 => [\'Colorants','ColorantsMode'] }, 'colorantred' => { 504 => [\'Colorants','ColorantsRed'] }, 'colorants' => { 504 => 'Colorants' }, 'colorantswatchname' => { 504 => [\'Colorants','ColorantsSwatchName'] }, 'coloranttint' => { 504 => [\'Colorants','ColorantsTint'] }, 'coloranttype' => { 504 => [\'Colorants','ColorantsType'] }, 'colorantyellow' => { 504 => [\'Colorants','ColorantsYellow'] }, 'colorbalanceadj' => { 269 => 0x76a43202 }, 'colorbooster' => { 269 => 0x5f0e7d23 }, 'colorboostlevel' => { 263 => 0x1 }, 'colorboosttype' => { 263 => 0x0 }, 'colorclass' => { 362 => 0xde, 363 => 'ColorClass' }, 'colorcompensationfilter' => { 183 => [0x3a,0x5f], 185 => 0x111, 416 => 0xb022 }, 'colorcompensationfiltercustom' => { 403 => 0xd, 404 => 0xc }, 'colorcompensationfilterset' => { 403 => 0x8, 404 => 0x7, 405 => 0x18, 421 => 0xf }, 'colorcontrol' => { 298 => 0x102b }, 'colorcorrection' => { 450 => 0x8015 }, 'colorcreatoreffect' => { 293 => 0x532 }, 'coloreffect' => { 316 => 0x28 }, 'colorfilter' => { 111 => 0x17, 112 => 0x3017, 180 => 0x29, 188 => [0x38,0x4d,0x4f], 358 => 0x17 }, 'colorgain' => { 233 => 0x51 }, 'colorgradeblending' => { 473 => 'ColorGradeBlending', 475 => 'ColorGradeBlending' }, 'colorgradeglobalhue' => { 473 => 'ColorGradeGlobalHue', 475 => 'ColorGradeGlobalHue' }, 'colorgradegloballum' => { 473 => 'ColorGradeGlobalLum', 475 => 'ColorGradeGlobalLum' }, 'colorgradeglobalsat' => { 473 => 'ColorGradeGlobalSat', 475 => 'ColorGradeGlobalSat' }, 'colorgradehighlightlum' => { 473 => 'ColorGradeHighlightLum', 475 => 'ColorGradeHighlightLum' }, 'colorgrademidtonehue' => { 473 => 'ColorGradeMidtoneHue', 475 => 'ColorGradeMidtoneHue' }, 'colorgrademidtonelum' => { 473 => 'ColorGradeMidtoneLum', 475 => 'ColorGradeMidtoneLum' }, 'colorgrademidtonesat' => { 473 => 'ColorGradeMidtoneSat', 475 => 'ColorGradeMidtoneSat' }, 'colorgradeshadowlum' => { 473 => 'ColorGradeShadowLum', 475 => 'ColorGradeShadowLum' }, 'colorlabel' => { 478 => 'ColorLabel' }, 'colormatrix' => { 297 => 0x200, 298 => 0x1011, 390 => 0xa030 }, 'colormatrix1' => { 118 => 0xc621, 360 => 0x106 }, 'colormatrix2' => { 118 => 0xc622, 301 => 0x200, 360 => 0x226 }, 'colormatrixa' => { 351 => 0x203 }, 'colormatrixa2' => { 351 => 0x21c }, 'colormatrixadobergb' => { 390 => 0xa032 }, 'colormatrixb' => { 351 => 0x204 }, 'colormatrixb2' => { 351 => 0x21d }, 'colormatrixnumber' => { 298 => 0x1019 }, 'colormatrixsrgb' => { 390 => 0xa031 }, 'colormode' => { 112 => 0x3015, 126 => 0x1210, 139 => 0x66, 180 => 0x28, 183 => 0x16, 185 => 0x101, 186 => 0x36, 188 => 0x7, 224 => 0x3, 258 => 0x4, 316 => 0x32, 393 => 0x2c, 416 => 0xb029, 487 => 'ColorMode' }, 'colormoirereduction' => { 102 => 0x20670, 270 => 0x15 }, 'colormoirereductionmode' => { 270 => 0x5 }, 'colornoisereduction' => { 450 => 0x8029, 473 => 'ColorNoiseReduction', 475 => 'ColorNoiseReduction' }, 'colornoisereductiondetail' => { 473 => 'ColorNoiseReductionDetail', 475 => 'ColorNoiseReductionDetail' }, 'colornoisereductionintensity' => { 270 => 0x18 }, 'colornoisereductionsharpness' => { 270 => 0x1c }, 'colornoisereductionsmoothness' => { 473 => 'ColorNoiseReductionSmoothness', 475 => 'ColorNoiseReductionSmoothness' }, 'colorprofilesettings' => { 293 => 0x539 }, 'colorspace' => { 51 => 0x3, 63 => 0xb4, 96 => 0x10b4, 118 => 0xa001, 134 => 0x3, 161 => 'ColorSpace', 181 => 0x2f, 182 => 0x25, 183 => 0x17, 224 => 0x1e, 293 => 0x507, 351 => 0x37, 390 => 0xa011, 393 => 0xb, 403 => 0x1b, 404 => 0x83, 405 => 0xe, 421 => 0x6, 479 => 'ColorSpace' }, 'colortempcloudy' => { 38 => 0x22, 39 => 0x37, 40 => 0x31, 41 => 0xa4, 42 => 0xdb, 43 => 0x35, 44 => 0x5c, 47 => 0x75, 48 => 0x8e, 49 => 0x93, 50 => 0x96, 351 => 0x55 }, 'colortempdaylight' => { 38 => 0x18, 39 => 0x27, 40 => 0x27, 41 => 0x9a, 42 => 0xd1, 43 => 0x2b, 44 => 0x52, 47 => 0x6b, 48 => 0x84, 49 => 0x89, 50 => 0x8c, 351 => 0x53 }, 'colortemperature' => { 7 => 0x73, 8 => [0x48,0x4e], 9 => 0xc0, 10 => 0x37, 11 => 0x62, 12 => 0x37, 13 => 0x7c, 14 => 0x73, 15 => 0x73, 16 => 0x77, 17 => 0x73, 18 => 0x7c, 19 => 0x58, 20 => 0x73, 21 => 0xc0, 22 => 0x7f, 23 => 0x7d, 24 => 0xc0, 25 => 0xc6, 26 => 0xc7, 27 => 0x135, 28 => 0x7b, 29 => 0x13a, 63 => 0xae, 73 => 0x9, 96 => 0x10ae, 126 => 0x1005, 137 => 0x846, 155 => 'ColorTemperature', 181 => [0x6e,0x49], 182 => 0x3f, 183 => [0x39,0x5e], 185 => 0x10b, 188 => [0x3c,0x4c,0x4e], 311 => 0x321, 351 => 0x50, 383 => 0x1308, 416 => 0xb021, 473 => 'Temperature', 475 => 'Temperature' }, 'colortemperatureadj' => { 450 => 0x8013 }, 'colortemperaturebg' => { 298 => 0x1013 }, 'colortemperaturecustom' => { 403 => 0xc, 404 => 0xb }, 'colortemperaturerg' => { 298 => 0x1014 }, 'colortemperatureset' => { 403 => 0x7, 404 => 0x6 }, 'colortemperaturesetting' => { 183 => 0x25, 405 => 0x17, 421 => 0xe }, 'colortempflash' => { 38 => 0x36, 39 => 0x57, 40 => 0x40, 41 => 0xb8, 42 => 0xef, 43 => 0x49, 44 => 0x70, 47 => 0x89, 48 => 0xa2, 49 => 0xa7, 50 => 0xaa, 351 => 0x5a }, 'colortempfluorescentd' => { 351 => 0x57 }, 'colortempfluorescentn' => { 351 => 0x58 }, 'colortempfluorescentw' => { 351 => 0x59 }, 'colortempkelvin' => { 38 => 0x31, 39 => 0x4f, 41 => 0xb3, 42 => 0xea, 43 => 0x44, 44 => 0x6b, 47 => 0x84, 48 => 0x9d, 49 => 0xa2, 50 => 0xa5, 316 => 0x44, 383 => 0x1307 }, 'colortempshade' => { 38 => 0x1d, 39 => 0x2f, 40 => 0x2c, 41 => 0x9f, 42 => 0xd6, 43 => 0x30, 44 => 0x57, 47 => 0x70, 48 => 0x89, 49 => 0x8e, 50 => 0x91, 351 => 0x54 }, 'colortemptungsten' => { 38 => 0x27, 39 => 0x3f, 40 => 0x36, 41 => 0xa9, 42 => 0xe0, 43 => 0x3a, 44 => 0x61, 47 => 0x7a, 48 => 0x93, 49 => 0x98, 50 => 0x9b, 351 => 0x56 }, 'colortint' => { 315 => 0x35c }, 'commanddials' => { 287 => '5.1' }, 'commanddialsaperturesetting' => { 276 => '17.3', 277 => '18.3', 279 => '18.3', 280 => '18.3', 285 => '33.3', 286 => '17.3', 289 => '18.3', 290 => '18.3' }, 'commanddialschangemainsub' => { 276 => '17.2', 277 => '18.1', 279 => '18.1', 280 => '18.1', 285 => '33.2', 286 => '17.2', 289 => '18.1', 290 => '18.1' }, 'commanddialsmenuandplayback' => { 276 => '17.4', 277 => '18.2', 279 => '18.2', 280 => '18.2', 285 => '33.4', 286 => '17.4', 289 => '18.2', 290 => '18.2' }, 'commanddialsreverserotation' => { 276 => '17.1', 277 => '6.4', 279 => '6.2', 280 => '6.2', 281 => '16.2', 282 => '17.2', 285 => '33.1', 286 => '17.1', 289 => '6.2', 290 => '6.2', 291 => '18.1' }, 'commanderchannel' => { 287 => '10.2', 288 => '25.2' }, 'commandergroupa_ttl-aacomp' => { 287 => '13.1', 288 => '31.1' }, 'commandergroupa_ttlcomp' => { 291 => '32.1' }, 'commandergroupamanualoutput' => { 287 => '13.2', 288 => '28.2' }, 'commandergroupamode' => { 287 => '11.2', 288 => '28.1' }, 'commandergroupb_ttl-aacomp' => { 287 => '14.1', 288 => '32.1' }, 'commandergroupb_ttlcomp' => { 291 => '33.1' }, 'commandergroupbmanualoutput' => { 287 => '14.2', 288 => '29.2' }, 'commandergroupbmode' => { 287 => '11.3', 288 => '29.1' }, 'commanderinternalflash' => { 287 => '11.1', 288 => '27.1' }, 'commanderinternalmanualoutput' => { 287 => '12.2', 288 => '27.2' }, 'commanderinternalttlchannel' => { 285 => '18.2' }, 'commanderinternalttlcomp' => { 287 => '12.1', 288 => '30.2', 291 => '31.2' }, 'commanderinternalttlcompbuiltin' => { 285 => '20.1', 286 => '26.1' }, 'commanderinternalttlcompgroupa' => { 285 => '21.1', 286 => '27.1' }, 'commanderinternalttlcompgroupb' => { 285 => '22.1', 286 => '28.1' }, 'comment' => { 0 => 0x2, 119 => 'Comment', 156 => 'Comment', 306 => 'Comment', 368 => "\xa9cmt", 370 => 'comment', 376 => "\xa9cmt" }, 'compass' => { 386 => 0x4 }, 'compatibleversion' => { 473 => 'CompatibleVersion', 475 => 'CompatibleVersion' }, 'compilation' => { 368 => 'cpil' }, 'compimageimagespersequence' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfImagesInSequences'] }, 'compimagemaxexposureall' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfAll'] }, 'compimagemaxexposureused' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMaxExposureTimesOfUsed'] }, 'compimageminexposureall' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfAll'] }, 'compimageminexposureused' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesMinExposureTimesOfUsed'] }, 'compimagenumsequences' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesNumberOfSequences'] }, 'compimagesumexposureall' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfAll'] }, 'compimagesumexposureused' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesSumOfExposureTimesOfUsed'] }, 'compimagetotalexposureperiod' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesTotalExposurePeriod'] }, 'compimagevalues' => { 480 => [\'CompositeImageExposureTimes','CompositeImageExposureTimesValues'] }, 'complianceprofile' => { 489 => 'complianceProfile' }, 'componentsconfiguration' => { 118 => 0x9101, 161 => 'Components', 479 => 'ComponentsConfiguration' }, 'composer' => { 178 => 'WM/Composer', 368 => ["\xa9com","\xa9wrt"], 376 => ["\xa9com","\xa9wrt"], 499 => 'composer' }, 'composerkeywords' => { 376 => "\xa9cok" }, 'compositeimage' => { 118 => 0xa460, 480 => 'CompositeImage' }, 'compositeimagecount' => { 118 => 0xa461, 480 => 'CompositeImageCount' }, 'compositeimageexposuretimes' => { 118 => 0xa462, 480 => 'CompositeImageExposureTimes' }, 'composition' => { 463 => 'Composition' }, 'compositionadjust' => { 350 => '0.1' }, 'compositionadjustrotation' => { 350 => 0x7 }, 'compositionadjustx' => { 350 => 0x5 }, 'compositionadjusty' => { 350 => 0x6 }, 'compressedbitsperpixel' => { 118 => 0x9102, 479 => 'CompressedBitsPerPixel' }, 'compressedimagesize' => { 185 => 0x40, 298 => 0x40 }, 'compression' => { 118 => 0x103, 321 => 0xb, 495 => 'Compression' }, 'compressionfactor' => { 293 => 0x50d }, 'compressionratio' => { 161 => 'Compression', 298 => 0x1034 }, 'compressorversion' => { 376 => 'CNCV' }, 'conductor' => { 178 => 'WM/Conductor', 368 => "\xa9con" }, 'confidence' => { 458 => 'Confidence' }, 'confidencelevel' => { 469 => 'ConfidenceLevel' }, 'confidencemime' => { 458 => 'ConfidenceMime' }, 'constrainedcropheight' => { 107 => 0x266, 362 => 0xd6 }, 'constrainedcropwidth' => { 107 => 0x262, 362 => 0xd5 }, 'contactinfo' => { 473 => 'ContactInfo', 475 => 'ContactInfo', 488 => 'contactInfo' }, 'container' => { 453 => 'Container' }, 'containerdirectory' => { 453 => [\'Container','ContainerDirectory'] }, 'containerdirectoryitem' => { 453 => [\'Container','ContainerDirectoryItem'] }, 'containerdirectoryitemdatauri' => { 453 => [\'Container','ContainerDirectoryItemDataURI'] }, 'containerdirectoryitemlength' => { 453 => [\'Container','ContainerDirectoryItemLength'] }, 'containerdirectoryitemmime' => { 453 => [\'Container','ContainerDirectoryItemMime'] }, 'containerdirectoryitempadding' => { 453 => [\'Container','ContainerDirectoryItemPadding'] }, 'containerformat' => { 485 => 'ContainerFormat' }, 'containerformatidentifier' => { 485 => [\'ContainerFormat','ContainerFormatIdentifier'] }, 'containerformatname' => { 485 => [\'ContainerFormat','ContainerFormatName'] }, 'contentcreatedate' => { 368 => "\xa9day", 376 => ['@day',"\xa9day"] }, 'contentdistributorid' => { 376 => 'cdis' }, 'contentid' => { 376 => 'ccid' }, 'contenttype' => { 489 => 'contentType' }, 'continuousmodeliveview' => { 290 => '77.2' }, 'contrast' => { 10 => 0x73, 12 => 0x75, 34 => 0xd, 111 => 0xc, 112 => [0x3012,0x20], 118 => [0xa408,0xfe54], 126 => [0x1004,0x1006], 155 => 'Contrast', 175 => 'Contrast', 180 => 0x20, 181 => 0x31, 182 => 0x27, 183 => 0x19, 188 => 0x2, 227 => 0x33, 228 => 0x37, 229 => 0x3f, 298 => 0x1029, 316 => 0x39, 318 => 0x300a, 351 => 0x20, 358 => 0xc, 370 => 'player.movie.visual.contrast', 377 => 0x24, 379 => 0x52, 383 => 0x1012, 393 => 0xd, 403 => 0x1d, 404 => 0x1a, 416 => 0x2004, 473 => 'Contrast', 475 => 'Contrast', 479 => 'Contrast' }, 'contrast2012' => { 473 => 'Contrast2012', 475 => 'Contrast2012' }, 'contrastadj' => { 102 => 0x20303, 107 => 0x115, 272 => 0x2c, 450 => 0x8017 }, 'contrastdetectafarea' => { 351 => 0x231 }, 'contrasthighlight' => { 351 => 0x6d }, 'contrasthighlightshadowadj' => { 351 => 0x6f }, 'contrastmode' => { 316 => 0x2c }, 'contrastsetting' => { 293 => 0x505, 301 => 0x1012, 405 => 0x10, 421 => 0x8 }, 'contrastshadow' => { 351 => 0x6e }, 'contributedmedia' => { 499 => 'contributedMedia' }, 'contributedmediaduration' => { 499 => [\'contributedMedia','contributedMediaDuration'] }, 'contributedmediadurationscale' => { 499 => [\'contributedMedia','contributedMediaDurationScale'] }, 'contributedmediadurationvalue' => { 499 => [\'contributedMedia','contributedMediaDurationValue'] }, 'contributedmediamanaged' => { 499 => [\'contributedMedia','contributedMediaManaged'] }, 'contributedmediapath' => { 499 => [\'contributedMedia','contributedMediaPath'] }, 'contributedmediastarttime' => { 499 => [\'contributedMedia','contributedMediaStartTime'] }, 'contributedmediastarttimescale' => { 499 => [\'contributedMedia','contributedMediaStartTimeScale'] }, 'contributedmediastarttimevalue' => { 499 => [\'contributedMedia','contributedMediaStartTimeValue'] }, 'contributedmediatrack' => { 499 => [\'contributedMedia','contributedMediaTrack'] }, 'contributedmediawebstatement' => { 499 => [\'contributedMedia','contributedMediaWebStatement'] }, 'contributor' => { 476 => 'contributor', 485 => 'Contributor' }, 'contributoridentifier' => { 485 => [\'Contributor','ContributorIdentifier'] }, 'contributorname' => { 485 => [\'Contributor','ContributorName'] }, 'contributorrole' => { 485 => [\'Contributor','ContributorRole'] }, 'controlledvocabularyterm' => { 485 => 'CVterm' }, 'controllerboardversion' => { 311 => 0x332 }, 'conversionlens' => { 294 => 0x403, 316 => 0x35 }, 'converter' => { 118 => 0xfe4d, 258 => 0xb, 473 => 'Converter', 475 => 'Converter' }, 'converttograyscale' => { 473 => 'ConvertToGrayscale', 475 => 'ConvertToGrayscale' }, 'cookingequipment' => { 491 => 'cookingEquipment' }, 'cookingmethod' => { 491 => 'cookingMethod' }, 'copyright' => { 0 => 0x3, 118 => 0x8298, 156 => 'Copyright', 306 => 'Copyright', 351 => 0x22f, 367 => 'Copyright', 368 => ['cprt',"\xa9cpy"], 370 => 'copyright', 376 => ['cprt',"\xa9cpy"], 473 => 'Copyright', 475 => 'Copyright', 486 => 'Copyright', 492 => 'copyright', 495 => 'Copyright', 499 => 'copyright' }, 'copyrightflag' => { 365 => 0x40a }, 'copyrightowner' => { 303 => 'CopyrightOwner' }, 'copyrightownerid' => { 303 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerID'] }, 'copyrightownerimageid' => { 303 => 'CopyrightOwnerImageID' }, 'copyrightownername' => { 303 => [\'CopyrightOwner','CopyrightOwnerCopyrightOwnerName'] }, 'copyrightregistrationnumber' => { 303 => 'CopyrightRegistrationNumber' }, 'copyrightstatus' => { 303 => 'CopyrightStatus' }, 'copyrightyear' => { 485 => 'CopyrightYear', 489 => 'copyrightYear' }, 'coringfilter' => { 297 => 0x310, 298 => 0x102d, 301 => 0x310 }, 'coringvalues' => { 297 => 0x311, 301 => 0x311 }, 'corporateentity' => { 489 => 'corporateEntity' }, 'correlatedcolortemp' => { 315 => 0x35b }, 'country' => { 160 => 'Country', 316 => 0x69, 487 => 'Country' }, 'countrycode' => { 223 => 0x5, 363 => 'CountryCode', 484 => 'CountryCode' }, 'course' => { 491 => 'course' }, 'coverage' => { 476 => 'coverage' }, 'coverart' => { 368 => 'covr' }, 'coverdate' => { 489 => 'coverDate' }, 'coverdisplaydate' => { 489 => 'coverDisplayDate' }, 'coveruri' => { 376 => 'cvru' }, 'cpufirmwareversion' => { 351 => 0x28 }, 'crc32' => { 477 => 'crc32' }, 'createdate' => { 118 => 0x9004, 156 => 'CreateDate', 302 => 'CreationDate', 306 => 'create-date', 367 => 'CreationDate', 373 => 0x1, 497 => 'CreateDate' }, 'creationdate' => { 370 => 'creationdate', 486 => 'CreationDate', 489 => 'creationDate' }, 'creationtime' => { 306 => 'Creation Time' }, 'creativestyle' => { 403 => 0x1a, 404 => 0x18, 414 => 0x41, 416 => 0xb020, 446 => 0x4a }, 'creativestylesetting' => { 405 => 0xf, 421 => 0x7 }, 'creativestylewaschanged' => { 450 => 0x8001 }, 'creator' => { 302 => 'Creator', 367 => 'Creator', 476 => 'creator', 485 => 'Creator', 486 => 'Creator' }, 'creatoraddress' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrExtadr'] }, 'creatorcity' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCity'] }, 'creatorcontactinfo' => { 484 => 'CreatorContactInfo' }, 'creatorcountry' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrCtry'] }, 'creatoridentifier' => { 485 => [\'Creator','CreatorIdentifier'] }, 'creatorname' => { 485 => [\'Creator','CreatorName'] }, 'creatorpostalcode' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrPcode'] }, 'creatorregion' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiAdrRegion'] }, 'creatorrole' => { 485 => [\'Creator','CreatorRole'] }, 'creatortool' => { 497 => 'CreatorTool' }, 'creatorworkemail' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiEmailWork'] }, 'creatorworktelephone' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiTelWork'] }, 'creatorworkurl' => { 484 => [\'CreatorContactInfo','CreatorContactInfoCiUrlWork'] }, 'credit' => { 130 => 0x6e, 487 => 'Credit' }, 'creditline' => { 492 => 'creditLine' }, 'creditlinereq' => { 502 => 'CreditLineReq' }, 'creditlinerequired' => { 303 => 'CreditLineRequired' }, 'cropangle' => { 473 => 'CropAngle', 475 => 'CropAngle' }, 'croparea' => { 224 => 0x45, 450 => 0x9011 }, 'cropbottom' => { 122 => 0x9, 264 => 0x36, 321 => 0x31, 362 => 0xdc, 473 => 'CropBottom', 475 => 'CropBottom' }, 'cropconstraintowarp' => { 473 => 'CropConstrainToWarp', 475 => 'CropConstrainToWarp' }, 'croph' => { 467 => 'CropH' }, 'cropheight' => { 100 => 0x6, 107 => 0x24c, 297 => 0x615, 301 => 0x615, 473 => 'CropHeight', 475 => 'CropHeight' }, 'cropleft' => { 107 => 0x246, 122 => 0x6, 264 => 0x1e, 297 => 0x612, 301 => 0x612, 321 => 0x30, 362 => 0xd9, 473 => 'CropLeft', 475 => 'CropLeft' }, 'cropmode' => { 126 => 0x104d, 383 => 0x1018 }, 'cropoutputheight' => { 264 => 0xce }, 'cropoutputheightinches' => { 264 => 0x96 }, 'cropoutputpixels' => { 264 => 0xd6 }, 'cropoutputresolution' => { 264 => 0xb6 }, 'cropoutputscale' => { 264 => 0xbe }, 'cropoutputwidth' => { 264 => 0xc6 }, 'cropoutputwidthinches' => { 264 => 0x8e }, 'croppedareaimageheightpixels' => { 461 => 'CroppedAreaImageHeightPixels', 462 => 'CroppedAreaImageHeightPixels' }, 'croppedareaimagewidthpixels' => { 461 => 'CroppedAreaImageWidthPixels', 462 => 'CroppedAreaImageWidthPixels' }, 'croppedarealeftpixels' => { 461 => 'CroppedAreaLeftPixels', 462 => 'CroppedAreaLeftPixels' }, 'croppedareatoppixels' => { 461 => 'CroppedAreaTopPixels', 462 => 'CroppedAreaTopPixels' }, 'croppedimageheight' => { 5 => 0x2, 383 => 0x1604 }, 'croppedimagewidth' => { 5 => 0x1, 383 => 0x1603 }, 'cropping' => { 450 => 0x9010 }, 'cropright' => { 122 => 0x8, 264 => 0x2e, 321 => 0x32, 362 => 0xdb, 473 => 'CropRight', 475 => 'CropRight' }, 'cropscaledresolution' => { 264 => 0x9e }, 'cropsourceresolution' => { 264 => 0xae }, 'croptop' => { 107 => 0x248, 122 => 0x7, 264 => 0x26, 297 => 0x613, 301 => 0x613, 321 => 0x2f, 362 => 0xda, 473 => 'CropTop', 475 => 'CropTop' }, 'cropunit' => { 473 => 'CropUnit', 475 => 'CropUnit' }, 'cropunits' => { 473 => 'CropUnits', 475 => 'CropUnits' }, 'cropw' => { 467 => 'CropW' }, 'cropwidth' => { 100 => 0x5, 107 => 0x24a, 297 => 0x614, 301 => 0x614, 473 => 'CropWidth', 475 => 'CropWidth' }, 'cropx' => { 100 => 0x3, 467 => 'CropX' }, 'cropy' => { 100 => 0x4, 467 => 'CropY' }, 'crossprocess' => { 351 => 0x7b }, 'crossprocessparams' => { 351 => 0x235 }, 'cuisine' => { 491 => 'cuisine' }, 'currentversion' => { 450 => 0xd000 }, 'curve0x' => { 467 => 'Curve0x' }, 'curve0y' => { 467 => 'Curve0y' }, 'curve1x' => { 467 => 'Curve1x' }, 'curve1y' => { 467 => 'Curve1y' }, 'curve2x' => { 467 => 'Curve2x' }, 'curve2y' => { 467 => 'Curve2y' }, 'curve3x' => { 467 => 'Curve3x' }, 'curve3y' => { 467 => 'Curve3y' }, 'curve4x' => { 467 => 'Curve4x' }, 'curve4y' => { 467 => 'Curve4y' }, 'curves' => { 269 => 0x76a43201 }, 'custom1' => { 303 => 'Custom1' }, 'custom10' => { 303 => 'Custom10' }, 'custom2' => { 303 => 'Custom2' }, 'custom3' => { 303 => 'Custom3' }, 'custom4' => { 303 => 'Custom4' }, 'custom5' => { 303 => 'Custom5' }, 'custom6' => { 303 => 'Custom6' }, 'custom7' => { 303 => 'Custom7' }, 'custom8' => { 303 => 'Custom8' }, 'custom9' => { 303 => 'Custom9' }, 'customrendered' => { 118 => 0xa401, 479 => 'CustomRendered' }, 'customsaturation' => { 108 => 0x4d, 293 => 0x503 }, 'customsettingsalldefault' => { 276 => '0.2', 285 => '0.2' }, 'customsettingsbank' => { 276 => '0.1', 277 => '0.1', 279 => '0.1', 280 => '0.1', 285 => '0.1', 289 => '0.2', 290 => '0.2' }, 'customwb_rblevels' => { 421 => 0x1a }, 'customwb_rgblevels' => { 404 => 0x8, 405 => 0x19 }, 'cx' => { 376 => '_cx_' }, 'cy' => { 376 => '_cy_' }, 'd-lightinghq' => { 269 => 0x2175eb78 }, 'd-lightinghqcolorboost' => { 265 => 0x2 }, 'd-lightinghqhighlight' => { 265 => 0x1 }, 'd-lightinghqselected' => { 269 => 0x6a6e36b6 }, 'd-lightinghqshadow' => { 265 => 0x0 }, 'd-lightinghs' => { 269 => 0xce5554aa }, 'd-lightinghsadjustment' => { 266 => 0x0 }, 'd-lightinghscolorboost' => { 266 => 0x1 }, 'd-rangeoptimizerhighlight' => { 450 => 0x8024 }, 'd-rangeoptimizermode' => { 450 => 0x8022 }, 'd-rangeoptimizershadow' => { 450 => 0x802d }, 'd-rangeoptimizervalue' => { 450 => 0x8023 }, 'darkfocusenvironment' => { 316 => 0x8003 }, 'dataonscreen' => { 485 => 'DataOnScreen' }, 'dataonscreenregion' => { 485 => [\'DataOnScreen','DataOnScreenRegion'] }, 'dataonscreenregiond' => { 485 => [\'DataOnScreen','DataOnScreenRegionD'] }, 'dataonscreenregionh' => { 485 => [\'DataOnScreen','DataOnScreenRegionH'] }, 'dataonscreenregiontext' => { 485 => [\'DataOnScreen','DataOnScreenRegionText'] }, 'dataonscreenregionunit' => { 485 => [\'DataOnScreen','DataOnScreenRegionUnit'] }, 'dataonscreenregionw' => { 485 => [\'DataOnScreen','DataOnScreenRegionW'] }, 'dataonscreenregionx' => { 485 => [\'DataOnScreen','DataOnScreenRegionX'] }, 'dataonscreenregiony' => { 485 => [\'DataOnScreen','DataOnScreenRegionY'] }, 'datascaling' => { 351 => 0x3d }, 'date' => { 351 => 0x6, 476 => 'date' }, 'datecreated' => { 130 => 0x37, 487 => 'DateCreated' }, 'datedisplayformat' => { 260 => 0x3 }, 'dateimprint' => { 281 => '4.2' }, 'daterecieved' => { 489 => 'dateRecieved' }, 'datetime' => { 468 => 'datetime', 495 => 'DateTime' }, 'datetimedigitized' => { 479 => 'DateTimeDigitized' }, 'datetimeoriginal' => { 99 => 0x0, 118 => 0x9003, 153 => 0x14, 156 => 'OriginalDate', 371 => 'IDIT', 376 => 'date', 377 => 0xb, 378 => 0x3b, 379 => 0x3e, 479 => 'DateTimeOriginal' }, 'datetimeutc' => { 293 => 0x908 }, 'daylightsavings' => { 77 => 0x3, 260 => 0x2 }, 'dayofweek' => { 378 => 0x42, 379 => 0x4a }, 'defaultautogray' => { 473 => 'DefaultAutoGray', 475 => 'DefaultAutoGray' }, 'defaultautotone' => { 473 => 'DefaultAutoTone', 475 => 'DefaultAutoTone' }, 'defaultsspecifictoiso' => { 473 => 'DefaultsSpecificToISO', 475 => 'DefaultsSpecificToISO' }, 'defaultsspecifictoserial' => { 473 => 'DefaultsSpecificToSerial', 475 => 'DefaultsSpecificToSerial' }, 'defringe' => { 473 => 'Defringe', 475 => 'Defringe' }, 'defringegreenamount' => { 473 => 'DefringeGreenAmount', 475 => 'DefringeGreenAmount' }, 'defringegreenhuehi' => { 473 => 'DefringeGreenHueHi', 475 => 'DefringeGreenHueHi' }, 'defringegreenhuelo' => { 473 => 'DefringeGreenHueLo', 475 => 'DefringeGreenHueLo' }, 'defringepurpleamount' => { 473 => 'DefringePurpleAmount', 475 => 'DefringePurpleAmount' }, 'defringepurplehuehi' => { 473 => 'DefringePurpleHueHi', 475 => 'DefringePurpleHueHi' }, 'defringepurplehuelo' => { 473 => 'DefringePurpleHueLo', 475 => 'DefringePurpleHueLo' }, 'dehaze' => { 473 => 'Dehaze', 475 => 'Dehaze' }, 'deletedimagecount' => { 224 => 0xa6, 234 => 0x6e }, 'deprecatedon' => { 471 => 'deprecatedOn' }, 'depthimage' => { 458 => 'Data' }, 'derivedfrom' => { 500 => 'DerivedFrom' }, 'derivedfromalternatepaths' => { 500 => [\'DerivedFrom','DerivedFromAlternatePaths'] }, 'derivedfromdocumentid' => { 500 => [\'DerivedFrom','DerivedFromDocumentID'] }, 'derivedfromfilepath' => { 500 => [\'DerivedFrom','DerivedFromFilePath'] }, 'derivedfromfrompart' => { 500 => [\'DerivedFrom','DerivedFromFromPart'] }, 'derivedfrominstanceid' => { 500 => [\'DerivedFrom','DerivedFromInstanceID'] }, 'derivedfromlastmodifydate' => { 500 => [\'DerivedFrom','DerivedFromLastModifyDate'] }, 'derivedfromlasturl' => { 500 => [\'DerivedFrom','DerivedFromLastURL'] }, 'derivedfromlinkcategory' => { 500 => [\'DerivedFrom','DerivedFromLinkCategory'] }, 'derivedfromlinkform' => { 500 => [\'DerivedFrom','DerivedFromLinkForm'] }, 'derivedfrommanager' => { 500 => [\'DerivedFrom','DerivedFromManager'] }, 'derivedfrommanagervariant' => { 500 => [\'DerivedFrom','DerivedFromManagerVariant'] }, 'derivedfrommanageto' => { 500 => [\'DerivedFrom','DerivedFromManageTo'] }, 'derivedfrommanageui' => { 500 => [\'DerivedFrom','DerivedFromManageUI'] }, 'derivedfrommaskmarkers' => { 500 => [\'DerivedFrom','DerivedFromMaskMarkers'] }, 'derivedfromoriginaldocumentid' => { 500 => [\'DerivedFrom','DerivedFromOriginalDocumentID'] }, 'derivedfrompartmapping' => { 500 => [\'DerivedFrom','DerivedFromPartMapping'] }, 'derivedfromplacedresolutionunit' => { 500 => [\'DerivedFrom','DerivedFromPlacedResolutionUnit'] }, 'derivedfromplacedxresolution' => { 500 => [\'DerivedFrom','DerivedFromPlacedXResolution'] }, 'derivedfromplacedyresolution' => { 500 => [\'DerivedFrom','DerivedFromPlacedYResolution'] }, 'derivedfromrenditionclass' => { 500 => [\'DerivedFrom','DerivedFromRenditionClass'] }, 'derivedfromrenditionparams' => { 500 => [\'DerivedFrom','DerivedFromRenditionParams'] }, 'derivedfromtopart' => { 500 => [\'DerivedFrom','DerivedFromToPart'] }, 'derivedfromversionid' => { 500 => [\'DerivedFrom','DerivedFromVersionID'] }, 'description' => { 306 => 'Description', 368 => ['desc','dscp',"\xa9des"], 370 => 'description', 376 => 'dscp', 473 => 'Description', 475 => 'Description', 476 => 'description', 497 => 'Description' }, 'destinationcity' => { 351 => 0x24, 357 => 0x3 }, 'destinationcitycode' => { 358 => 0x1001 }, 'destinationdst' => { 351 => 0x26, 357 => '0.3' }, 'device' => { 489 => 'device' }, 'devicesettingdescription' => { 479 => 'DeviceSettingDescription' }, 'devicesettingdescriptioncolumns' => { 479 => [\'DeviceSettingDescription','DeviceSettingDescriptionColumns'] }, 'devicesettingdescriptionrows' => { 479 => [\'DeviceSettingDescription','DeviceSettingDescriptionRows'] }, 'devicesettingdescriptionsettings' => { 479 => [\'DeviceSettingDescription','DeviceSettingDescriptionSettings'] }, 'devicetype' => { 390 => 0x2 }, 'dietaryneeds' => { 491 => 'dietaryNeeds' }, 'diffractioncompensation' => { 248 => 0xc4a0, 261 => 0x142 }, 'diffractioncorrection' => { 316 => 0xbc, 341 => 0x3 }, 'digitaldeehighlightadj' => { 233 => 0x202 }, 'digitaldeeshadowadj' => { 233 => 0x200 }, 'digitaldeethreshold' => { 233 => 0x201 }, 'digitalfilter' => { 393 => 0x59 }, 'digitalfilter01' => { 338 => 0x5 }, 'digitalfilter02' => { 338 => 0x16 }, 'digitalfilter03' => { 338 => 0x27 }, 'digitalfilter04' => { 338 => 0x38 }, 'digitalfilter05' => { 338 => 0x49 }, 'digitalfilter06' => { 338 => 0x5a }, 'digitalfilter07' => { 338 => 0x6b }, 'digitalfilter08' => { 338 => 0x7c }, 'digitalfilter09' => { 338 => 0x8d }, 'digitalfilter10' => { 338 => 0x9e }, 'digitalfilter11' => { 338 => 0xaf }, 'digitalfilter12' => { 338 => 0xc0 }, 'digitalfilter13' => { 338 => 0xd1 }, 'digitalfilter14' => { 338 => 0xe2 }, 'digitalfilter15' => { 338 => 0xf3 }, 'digitalfilter16' => { 338 => 0x104 }, 'digitalfilter17' => { 338 => 0x115 }, 'digitalfilter18' => { 338 => 0x126 }, 'digitalfilter19' => { 338 => 0x137 }, 'digitalfilter20' => { 338 => 0x148 }, 'digitalice' => { 233 => 0x100 }, 'digitalimageguid' => { 485 => 'DigImageGUID' }, 'digitalroc' => { 231 => 0x0 }, 'digitalsourcefiletype' => { 485 => 'DigitalSourcefileType' }, 'digitalsourcetype' => { 485 => 'DigitalSourceType' }, 'digitalzoom' => { 34 => 0xc, 111 => 0xa, 126 => 0x1044, 139 => 0x68, 150 => 0x22, 151 => 0x1e, 155 => 'DigitalZoom', 180 => 0xc, 224 => 0x86, 258 => 0xa, 298 => 0x204, 351 => 0x1e, 358 => 0xa, 392 => 0x204, 437 => 0x12, 438 => 0x12 }, 'digitalzoomon' => { 392 => 0x21b }, 'digitalzoomratio' => { 118 => 0xa404, 426 => 0x200, 428 => 0x21c, 479 => 'DigitalZoomRatio' }, 'director' => { 178 => 'WM/Director', 368 => "\xa9dir", 370 => 'director', 376 => "\xa9dir", 499 => 'director' }, 'directorphotography' => { 499 => 'directorPhotography' }, 'directorynumber' => { 206 => 0x3, 379 => 0x12 }, 'disableautocreation' => { 456 => 'DisableAutoCreation' }, 'disclaimer' => { 306 => 'Disclaimer' }, 'discnumber' => { 499 => 'discNumber' }, 'dishtype' => { 491 => 'dishType' }, 'disknumber' => { 368 => 'disk' }, 'displayedunitsx' => { 366 => 0x2 }, 'displayedunitsy' => { 366 => 0x6 }, 'displayname' => { 370 => 'displayname', 488 => 'displayName' }, 'distortion' => { 390 => 0xa050 }, 'distortioncompensation' => { 450 => 0x8040 }, 'distortioncontrol' => { 234 => 0x10 }, 'distortioncorrection' => { 78 => 0x3, 102 => 0x20705, 108 => 0x67, 118 => 0x7036, 293 => 0x50b, 320 => '7.1', 341 => 0x0, 445 => 0x601, 446 => 0x5b }, 'distortioncorrection2' => { 297 => 0x1011 }, 'distortioncorrectionalreadyapplied' => { 470 => 'DistortionCorrectionAlreadyApplied' }, 'distortioncorrectionsetting' => { 79 => 0x7, 416 => 0x2013 }, 'distortioncorrparams' => { 118 => 0x7037, 425 => 0x1a23, 428 => 0x1870, 430 => 0x189c, 431 => 0x18cc, 432 => 0x17d0, 445 => 0x6ca, 446 => 0x64 }, 'distortioncorrparamsnumber' => { 428 => 0x1899, 430 => 0x18c5, 431 => 0x18f5, 432 => 0x17f9 }, 'distortioncorrparamspresent' => { 428 => 0x1898, 430 => 0x18c4, 431 => 0x18f4, 432 => 0x17f8, 434 => 0x10b, 435 => 0x10b, 445 => 0x600, 446 => 0x5a }, 'distortionn' => { 320 => 0xc }, 'distortionparam02' => { 320 => 0x2 }, 'distortionparam04' => { 320 => 0x4 }, 'distortionparam08' => { 320 => 0x8 }, 'distortionparam09' => { 320 => 0x9 }, 'distortionparam11' => { 320 => 0xb }, 'distortionscale' => { 320 => 0x5 }, 'distributor' => { 489 => 'distributor' }, 'distributorproductid' => { 488 => 'distributorProductID' }, 'dmcomment' => { 499 => 'comment' }, 'dngignoresidecars' => { 473 => 'DNGIgnoreSidecars', 475 => 'DNGIgnoreSidecars' }, 'document' => { 306 => 'Document' }, 'documentancestors' => { 487 => 'DocumentAncestors' }, 'documentid' => { 500 => 'DocumentID' }, 'doi' => { 489 => 'doi' }, 'dopesheet' => { 485 => 'Dopesheet' }, 'dopesheetlink' => { 485 => 'DopesheetLink' }, 'dopesheetlinklink' => { 485 => [\'DopesheetLink','DopesheetLinkLink'] }, 'dopesheetlinklinkqualifier' => { 485 => [\'DopesheetLink','DopesheetLinkLinkQualifier'] }, 'dpp' => { 468 => 'dpp' }, 'drivemode' => { 112 => 0x3103, 124 => '0.1', 180 => 0x6, 183 => 0x1e, 186 => 0xe, 293 => 0x600, 351 => 0x34, 383 => 0x1002, 393 => 0x3, 403 => 0x4, 404 => 0x7e, 405 => 0x34 }, 'drivemode2' => { 183 => 0xa, 332 => 0x7, 414 => 0xe, 421 => 0x1 }, 'drivemodesetting' => { 405 => 0x4 }, 'dspfirmwareversion' => { 351 => 0x27 }, 'duration' => { 66 => 0x6a, 154 => 'Duration', 168 => 'Duration', 491 => 'duration', 499 => 'duration' }, 'durationscale' => { 499 => [\'duration','durationScale'] }, 'durationvalue' => { 499 => [\'duration','durationValue'] }, 'dynamicafarea' => { 276 => '1.4', 285 => '1.4' }, 'dynamicareaafdisplay' => { 277 => '46.1', 279 => '47.1', 280 => '47.1', 289 => '47.1', 290 => '47.1' }, 'dynamicrangeexpansion' => { 351 => 0x69, 383 => 0x100e }, 'dynamicrangeoptimizer' => { 183 => 0x15, 416 => [0xb025,0xb04f], 424 => 0x1144, 425 => [0x1144,0x324], 426 => [0x1120,0x300], 427 => [0x119c,0x37c], 428 => [0x1178,0x328], 429 => [0x1030,0x50], 430 => [0x228,0x50], 431 => [0x228,0x50], 432 => [0x21b,0x4e] }, 'dynamicrangeoptimizerbracket' => { 414 => 0x2e }, 'dynamicrangeoptimizerlevel' => { 403 => 0x19, 404 => 0x17, 405 => 0xd, 414 => 0x79, 421 => 0x5 }, 'dynamicrangeoptimizermode' => { 186 => 0x15, 403 => 0x18, 404 => 0x16, 414 => [0x77,0x15] }, 'dynamicrangeoptimizersetting' => { 183 => 0x27, 405 => 0xc, 421 => 0x4 }, 'e-dialinprogram' => { 332 => '1.3' }, 'earthpos' => { 453 => 'EarthPos' }, 'earthposaltitude' => { 453 => [\'EarthPos','EarthPosAltitude'] }, 'earthposlatitude' => { 453 => [\'EarthPos','EarthPosLatitude'] }, 'earthposlongitude' => { 453 => [\'EarthPos','EarthPosLongitude'] }, 'earthposrotationw' => { 453 => [\'EarthPos','EarthPosRotationW'] }, 'earthposrotationx' => { 453 => [\'EarthPos','EarthPosRotationX'] }, 'earthposrotationy' => { 453 => [\'EarthPos','EarthPosRotationY'] }, 'earthposrotationz' => { 453 => [\'EarthPos','EarthPosRotationZ'] }, 'earthpostimestamp' => { 453 => [\'EarthPos','EarthPosTimestamp'] }, 'easyexposurecomp' => { 291 => '6.1' }, 'easyexposurecompensation' => { 276 => '6.4', 277 => '6.5', 279 => '6.3', 280 => '6.3', 284 => '5.1', 285 => '4.4', 286 => '5.2', 289 => '6.3', 290 => '6.3' }, 'edgenoisereduction' => { 270 => 0x4, 450 => 0x8028 }, 'edit1' => { 376 => "\xa9ed1" }, 'edit2' => { 376 => "\xa9ed2" }, 'edit3' => { 376 => "\xa9ed3" }, 'edit4' => { 376 => "\xa9ed4" }, 'edit5' => { 376 => "\xa9ed5" }, 'edit6' => { 376 => "\xa9ed6" }, 'edit7' => { 376 => "\xa9ed7" }, 'edit8' => { 376 => "\xa9ed8" }, 'edit9' => { 376 => "\xa9ed9" }, 'edition' => { 489 => 'edition' }, 'editstatus' => { 130 => 0x7, 363 => 'EditStatus', 468 => 'EditStatus' }, 'editversionname' => { 269 => 0x3d136244 }, 'effectivelv' => { 351 => 0x2d }, 'eissn' => { 489 => 'eIssn' }, 'electronicfront-curtainshutter' => { 279 => '5.2', 280 => '5.2', 289 => '5.3', 290 => '5.2' }, 'electronicfrontcurtainshutter' => { 416 => 0x201a }, 'embargodate' => { 492 => 'embargoDate' }, 'embdencrightsexpr' => { 485 => 'EmbdEncRightsExpr' }, 'embeddedencodedrightsexpr' => { 485 => [\'EmbdEncRightsExpr','EmbdEncRightsExprEncRightsExpr'] }, 'embeddedencodedrightsexprlangid' => { 485 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprLangId'] }, 'embeddedencodedrightsexprtype' => { 485 => [\'EmbdEncRightsExpr','EmbdEncRightsExprRightsExprEncType'] }, 'embeddedxmpdigest' => { 487 => 'EmbeddedXMPDigest' }, 'encodedby' => { 178 => 'WM/EncodedBy', 368 => "\xa9enc" }, 'encodedwith' => { 370 => 'Encoded_With' }, 'encoder' => { 368 => "\xa9too", 376 => "\xa9too" }, 'encoderid' => { 376 => "\xa9enc" }, 'encryptionkey' => { 390 => 0xa020 }, 'endingpage' => { 489 => 'endingPage' }, 'enduser' => { 303 => 'EndUser' }, 'enduserid' => { 303 => [\'EndUser','EndUserEndUserID'] }, 'endusername' => { 303 => [\'EndUser','EndUserEndUserName'] }, 'engineer' => { 499 => 'engineer' }, 'enhancedarktones' => { 262 => 0x8 }, 'enhancer' => { 297 => 0x300 }, 'enhancervalues' => { 297 => 0x301 }, 'episode' => { 485 => 'Episode' }, 'episodeglobaluniqueid' => { 368 => 'egid' }, 'episodeidentifier' => { 485 => [\'Episode','EpisodeIdentifier'] }, 'episodename' => { 485 => [\'Episode','EpisodeName'] }, 'episodenumber' => { 485 => [\'Episode','EpisodeNumber'] }, 'epsonimageheight' => { 298 => 0x20c }, 'epsonimagewidth' => { 298 => 0x20b }, 'epsonsoftware' => { 298 => 0x20d }, 'equipmentinstitution' => { 452 => 'EquipmentInstitution' }, 'equipmentmanufacturer' => { 452 => 'EquipmentManufacturer' }, 'equipmentversion' => { 294 => 0x0 }, 'event' => { 454 => 'Event', 466 => 'Event', 485 => 'Event', 489 => 'event' }, 'eventalias' => { 488 => 'eventAlias' }, 'eventend' => { 488 => 'eventEnd' }, 'eventid' => { 117 => [\'Event','EventEventID'], 485 => 'EventId' }, 'eventnumber' => { 377 => 0x9, 378 => 0x37, 379 => 0x3a }, 'eventstart' => { 488 => 'eventStart' }, 'eventsubtype' => { 488 => 'eventSubtype' }, 'eventtype' => { 488 => 'eventType' }, 'evsteps' => { 332 => '1.2', 334 => 0x0 }, 'evstepsize' => { 281 => '5.1', 282 => '6.1', 283 => '6.1', 287 => '0.7' }, 'exclusivecoverage' => { 463 => 'ExclusiveCoverage' }, 'exclusivityenddate' => { 492 => 'exclusivityEndDate' }, 'executiveproducer' => { 368 => "\xa9xpd" }, 'exifimageheight' => { 118 => 0xa003, 479 => 'PixelYDimension' }, 'exifimagewidth' => { 118 => 0xa002, 479 => 'PixelXDimension' }, 'exifversion' => { 118 => 0x9000, 479 => 'ExifVersion' }, 'expirationdate' => { 130 => 0x25, 492 => 'expirationDate' }, 'exposure' => { 118 => 0xfe51, 473 => 'Exposure', 475 => 'Exposure' }, 'exposure2012' => { 473 => 'Exposure2012', 475 => 'Exposure2012' }, 'exposureadj' => { 267 => 0x0 }, 'exposureadj2' => { 267 => 0x12 }, 'exposureadjust' => { 393 => 0xc }, 'exposurebracketshotnumber' => { 186 => 0x2d, 414 => 0x2f }, 'exposurebracketstepsize' => { 332 => 0x8 }, 'exposurecompensation' => { 76 => 0x6, 92 => 0x0, 118 => 0x9204, 139 => 0x24, 155 => 'ExposureComp', 175 => 'ExposureCompensation', 180 => 0xd, 181 => 0x53, 182 => 0x1e, 186 => 0x49c0, 298 => 0x1006, 351 => 0x16, 360 => 0x402, 390 => 0xa013, 393 => [0xc,0x35,0x4d], 424 => 0x114c, 425 => 0x114c, 426 => 0x1128, 428 => 0x1180, 429 => 0x1038, 430 => 0x230, 431 => 0x230, 432 => 0x223, 479 => 'ExposureBiasValue' }, 'exposurecompensation2' => { 421 => [0x24,0x26,0x2a] }, 'exposurecompensationset' => { 403 => 0x3, 404 => 0x3, 405 => 0x3, 421 => 0x1e }, 'exposurecompstepsize' => { 276 => '6.3', 277 => '7.3', 279 => '7.3', 280 => '7.3', 285 => '4.3', 289 => '7.3', 290 => '7.3' }, 'exposurecontrolstep' => { 284 => '6.1', 286 => '6.1' }, 'exposurecontrolstepsize' => { 276 => '6.2', 277 => '7.1', 279 => '7.1', 280 => '7.1', 285 => '4.2', 289 => '7.1', 290 => '7.1', 291 => '7.1' }, 'exposuredelaymode' => { 276 => '10.1', 277 => '11.1', 279 => '11.1', 280 => '11.1', 281 => '9.1', 282 => '10.1', 283 => '10.1', 285 => '10.4', 286 => '10.1', 287 => '6.4', 289 => '11.1', 290 => '11.1', 291 => '11.2' }, 'exposureindex' => { 118 => 0xa215, 479 => 'ExposureIndex' }, 'exposurelevelincrements' => { 81 => 0x6, 82 => 0x6, 83 => 0x101, 84 => 0x5, 85 => 0x6, 86 => 0x5, 87 => 0x5, 88 => 0x6, 89 => 0x4, 403 => 0x58, 404 => 0x58 }, 'exposurelockused' => { 461 => 'ExposureLockUsed' }, 'exposuremode' => { 118 => 0xa402, 155 => 'ExposureMode', 180 => 0x1, 181 => 0xa, 182 => 0x0, 183 => 0x0, 186 => 0x34, 293 => 0x200, 313 => 0x40d, 393 => 0x8, 416 => 0xb041, 479 => 'ExposureMode' }, 'exposureprogram' => { 118 => 0x8822, 383 => 0x1001, 396 => [0x17e,0x43], 403 => 0x3c, 404 => 0x3c, 405 => 0x5, 409 => 0x14, 414 => 0x3f, 421 => 0x2, 424 => 0x1175, 425 => 0x1179, 426 => 0x1155, 427 => 0x11d1, 428 => 0x11ad, 429 => 0x1065, 430 => 0x25d, 431 => 0x25d, 432 => 0x24c, 442 => 0xb, 443 => 0xc, 444 => 0xb, 446 => 0x48, 479 => 'ExposureProgram' }, 'exposureshift' => { 293 => 0x203 }, 'exposurestandardadjustment' => { 416 => 0x202d }, 'exposuretime' => { 7 => 0x4, 8 => 0x4, 9 => 0x4, 10 => 0x4, 11 => 0x4, 12 => 0x4, 13 => 0x4, 14 => 0x4, 15 => 0x4, 16 => 0x4, 17 => 0x4, 18 => 0x4, 19 => 0x4, 20 => 0x4, 21 => 0x4, 22 => 0x4, 23 => 0x4, 24 => 0x4, 25 => 0x4, 26 => 0x4, 27 => 0x4, 28 => 0x4, 29 => 0x4, 30 => 0x6, 31 => 0x7, 76 => 0x16, 118 => 0x829a, 136 => 0xfd05, 139 => 0x20, 141 => 0xfa24, 143 => 0xf104, 146 => 0x12, 148 => 0x38, 150 => 0x14, 151 => 0x10, 153 => 0x10, 155 => 'ExposureTime', 180 => 0x9, 181 => 0x35, 182 => 0x48, 183 => 0x8, 186 => 0x49b8, 351 => 0x12, 390 => 0xa018, 393 => [0x32,0x4a], 403 => 0x0, 404 => 0x0, 421 => [0x21,0x23,0x27], 446 => 0x10, 479 => 'ExposureTime' }, 'exposuretime2' => { 393 => [0x33,0x4b] }, 'extdescraccessibility' => { 484 => 'ExtDescrAccessibility' }, 'extendedwbdetect' => { 293 => 0x902 }, 'extender' => { 294 => 0x301 }, 'extenderfirmwareversion' => { 294 => 0x304 }, 'extendermodel' => { 157 => 'Model', 294 => 0x303 }, 'extenderserialnumber' => { 157 => 'SerialNumber', 294 => 0x302 }, 'extenderstatus' => { 349 => 0x3 }, 'externalflash' => { 296 => 0x1201 }, 'externalflashae1' => { 298 => 0x101f }, 'externalflashae1_0' => { 298 => 0x101b }, 'externalflashae2' => { 298 => 0x1020 }, 'externalflashae2_0' => { 298 => 0x101c }, 'externalflashbounce' => { 296 => 0x1204, 298 => 0x1026, 339 => 0x1a }, 'externalflashexposurecomp' => { 224 => 0x17, 339 => 0x19 }, 'externalflashguidenumber' => { 296 => 0x1203, 339 => '24.1' }, 'externalflashgvalue' => { 298 => 0x1025 }, 'externalflashmode' => { 298 => 0x1028, 339 => 0x2 }, 'externalflashzoom' => { 296 => 0x1205, 298 => 0x1027 }, 'externalmetadatalink' => { 485 => 'ExternalMetadataLink' }, 'externalsensorbrightnessvalue' => { 311 => 0x311, 314 => 0x311, 315 => 0x311, 318 => 0x3408 }, 'extrainfoversion' => { 407 => 0x1a }, 'face10position' => { 109 => 0x3f4, 110 => 0x1ec, 205 => 0x28, 336 => 0x12 }, 'face10size' => { 337 => 0x12 }, 'face11position' => { 205 => 0x2c, 336 => 0x14 }, 'face11size' => { 337 => 0x14 }, 'face12position' => { 205 => 0x30, 336 => 0x16 }, 'face12size' => { 337 => 0x16 }, 'face13position' => { 336 => 0x18 }, 'face13size' => { 337 => 0x18 }, 'face14position' => { 336 => 0x1a }, 'face14size' => { 337 => 0x1a }, 'face15position' => { 336 => 0x1c }, 'face15size' => { 337 => 0x1c }, 'face16position' => { 336 => 0x1e }, 'face16size' => { 337 => 0x1e }, 'face17position' => { 336 => 0x20 }, 'face17size' => { 337 => 0x20 }, 'face18position' => { 336 => 0x22 }, 'face18size' => { 337 => 0x22 }, 'face19position' => { 336 => 0x24 }, 'face19size' => { 337 => 0x24 }, 'face1position' => { 54 => 0x8, 109 => 0xd, 110 => 0x18, 205 => 0x4, 308 => 0x1, 336 => 0x0, 380 => 0xbc, 410 => 0x1, 411 => 0x0, 412 => 0x0, 413 => 0x5b }, 'face1size' => { 337 => 0x0 }, 'face20position' => { 336 => 0x26 }, 'face20size' => { 337 => 0x26 }, 'face21position' => { 336 => 0x28 }, 'face21size' => { 337 => 0x28 }, 'face22position' => { 336 => 0x2a }, 'face22size' => { 337 => 0x2a }, 'face23position' => { 336 => 0x2c }, 'face23size' => { 337 => 0x2c }, 'face24position' => { 336 => 0x2e }, 'face24size' => { 337 => 0x2e }, 'face25position' => { 336 => 0x30 }, 'face25size' => { 337 => 0x30 }, 'face26position' => { 336 => 0x32 }, 'face26size' => { 337 => 0x32 }, 'face27position' => { 336 => 0x34 }, 'face27size' => { 337 => 0x34 }, 'face28position' => { 336 => 0x36 }, 'face28size' => { 337 => 0x36 }, 'face29position' => { 336 => 0x38 }, 'face29size' => { 337 => 0x38 }, 'face2position' => { 54 => 0xa, 109 => 0x7c, 110 => 0x4c, 205 => 0x8, 308 => 0x5, 336 => 0x2, 380 => 0xc8, 410 => 0x6, 411 => 0x20, 412 => 0x25, 413 => 0x65 }, 'face2size' => { 337 => 0x2 }, 'face30position' => { 336 => 0x3a }, 'face30size' => { 337 => 0x3a }, 'face31position' => { 336 => 0x3c }, 'face31size' => { 337 => 0x3c }, 'face32position' => { 336 => 0x3e }, 'face32size' => { 337 => 0x3e }, 'face3position' => { 54 => 0xc, 109 => 0xeb, 110 => 0x80, 205 => 0xc, 308 => 0x9, 336 => 0x4, 380 => 0xd4, 410 => 0xb, 411 => 0x40, 412 => 0x4a, 413 => 0x6f }, 'face3size' => { 337 => 0x4 }, 'face4position' => { 54 => 0xe, 109 => 0x15a, 110 => 0xb4, 205 => 0x10, 308 => 0xd, 336 => 0x6, 380 => 0xe0, 410 => 0x10, 411 => 0x60, 412 => 0x6f, 413 => 0x79 }, 'face4size' => { 337 => 0x6 }, 'face5position' => { 54 => 0x10, 109 => 0x1c9, 110 => 0xe8, 205 => 0x14, 308 => 0x11, 336 => 0x8, 380 => 0xec, 410 => 0x15, 411 => 0x80, 412 => 0x94 }, 'face5size' => { 337 => 0x8 }, 'face6position' => { 54 => 0x12, 109 => 0x238, 110 => 0x11c, 205 => 0x18, 336 => 0xa, 380 => 0xf8, 410 => 0x1a, 411 => 0xa0, 412 => 0xb9 }, 'face6size' => { 337 => 0xa }, 'face7position' => { 54 => 0x14, 109 => 0x2a7, 110 => 0x150, 205 => 0x1c, 336 => 0xc, 380 => 0x104, 410 => 0x1f, 411 => 0xc0, 412 => 0xde }, 'face7size' => { 337 => 0xc }, 'face8position' => { 54 => 0x16, 109 => 0x316, 110 => 0x184, 205 => 0x20, 336 => 0xe, 380 => 0x110, 410 => 0x24, 411 => 0xe0, 412 => 0x103 }, 'face8size' => { 337 => 0xe }, 'face9position' => { 54 => 0x18, 109 => 0x385, 110 => 0x1b8, 205 => 0x24, 336 => 0x10 }, 'face9size' => { 337 => 0x10 }, 'facebalanceorigi' => { 467 => 'FaceBalanceOrigI' }, 'facebalanceorigq' => { 467 => 'FaceBalanceOrigQ' }, 'facebalancestrength' => { 467 => 'FaceBalanceStrength' }, 'facebalancewarmth' => { 467 => 'FaceBalanceWarmth' }, 'facedetect' => { 351 => 0x76, 390 => 0x100 }, 'facedetectarea' => { 297 => 0x1201 }, 'facedetectframecrop' => { 297 => 0x1207 }, 'facedetectframesize' => { 54 => 0x3, 109 => 0x1, 110 => 0x4, 205 => 0x1, 297 => 0x1203, 351 => 0x77, 380 => 0xb6 }, 'facedetection' => { 405 => 0x30, 421 => 0x19 }, 'faceid' => { 469 => 'FaceID' }, 'facename' => { 390 => 0x123 }, 'faceposition' => { 335 => 0x2, 391 => 0x4 }, 'facerecognition' => { 390 => 0x120 }, 'facesdetected' => { 54 => 0x2, 55 => 0x2, 56 => 0x3, 109 => 0x0, 110 => 0x2, 112 => 0x211c, 126 => 0x4100, 205 => 0x3, 297 => 0x1200, 316 => 0x3f, 335 => 0x0, 380 => 0xb5, 391 => 0x0, 410 => 0x0, 413 => 0x3, 423 => 0x30 }, 'facesrecognized' => { 309 => 0x0 }, 'fade' => { 416 => 0x2034 }, 'far' => { 458 => 'Far' }, 'feedidentifier' => { 485 => 'FeedIdentifier' }, 'ffid' => { 477 => 'ffid' }, 'field' => { 488 => 'field' }, 'fieldcount' => { 298 => 0x103f }, 'fieldofview' => { 376 => "FOV\x00" }, 'filedatarate' => { 499 => 'fileDataRate' }, 'fileformat' => { 94 => 0x0, 131 => 0x14, 393 => [0x22,0x26], 416 => 0xb000 }, 'fileindex' => { 7 => 0x143, 9 => 0x2d0, 11 => 0x172, 13 => 0x22c, 14 => 0x133, 15 => 0x13f, 16 => 0x1d3, 17 => 0x19b, 18 => 0x1e4, 19 => 0xd0, 20 => 0x1bb, 21 => 0x28c, 22 => 0x1db, 23 => 0x1d9, 24 => [0x270,0x274], 25 => 0x2aa, 26 => 0x2b3, 28 => 0x1eb, 29 => 0x4ae, 317 => 0x0 }, 'filenameasdelivered' => { 303 => 'FileNameAsDelivered' }, 'filenumber' => { 57 => 0x1, 63 => 0x8, 96 => 0x1817, 113 => 'Canon-FileNumber', 206 => 0x4, 379 => 0x10 }, 'filenumbersequence' => { 276 => '12.2', 281 => '3.1', 282 => '4.1', 283 => '4.1', 285 => '11.1', 286 => '4.3', 291 => '5.2' }, 'filesource' => { 118 => 0xa300, 126 => 0x8000, 479 => 'FileSource' }, 'filllight' => { 473 => 'FillLight', 475 => 'FillLight' }, 'filmgraineffect' => { 293 => 0x538 }, 'filmmode' => { 126 => 0x1401, 313 => 0x412, 316 => 0x42 }, 'filmtype' => { 233 => 0x2 }, 'filtereffect' => { 57 => 0xe, 227 => 0x37, 228 => 0x3f, 229 => 0x47, 316 => 0xa1 }, 'finesharpness' => { 351 => 0x70 }, 'finetuneoptcenterweighted' => { 276 => '7.2', 277 => '9.1', 279 => '9.1', 280 => '9.1', 284 => '8.1', 289 => '9.1', 290 => '9.1', 291 => '9.1' }, 'finetuneopthighlightweighted' => { 279 => '46.1', 280 => '46.1', 289 => '46.1', 290 => '46.1' }, 'finetuneoptmatrixmetering' => { 276 => '8.1', 277 => '8.2', 279 => '8.2', 280 => '8.2', 284 => '7.2', 285 => '6.1', 289 => '8.2', 290 => '8.2', 291 => '8.2' }, 'finetuneoptspotmetering' => { 276 => '8.2', 277 => '9.2', 279 => '9.2', 280 => '9.2', 284 => '8.2', 285 => '6.2', 289 => '9.2', 290 => '9.2', 291 => '9.2' }, 'firmware' => { 298 => 0x405, 393 => [0x8c,0x17,0x3b], 470 => 'Firmware' }, 'firmware2' => { 393 => 0x57 }, 'firmwaredate' => { 111 => 0x15, 112 => 0x2001, 377 => 0x4, 379 => 0x30 }, 'firmwarename' => { 390 => 0xa001 }, 'firmwarerevision' => { 19 => 0xa4, 63 => 0x1e, 381 => 0x0 }, 'firmwarerevision2' => { 381 => 0xc }, 'firmwareversion' => { 7 => 0x10b, 11 => 0x136, 14 => 0xff, 15 => 0x107, 137 => [0x415,0xce5], 153 => 0x57, 155 => 'FirmwareVersion', 314 => 0x320, 316 => 0x2, 318 => 0x3109, 351 => 0x230, 376 => ['CNFV','FIRM'], 378 => 0x18, 379 => 0x2a, 383 => 0x2 }, 'firmwareversions' => { 360 => 0x301 }, 'firstphotodate' => { 461 => 'FirstPhotoDate' }, 'firstpublicationdate' => { 303 => 'FirstPublicationDate' }, 'fixtureidentifier' => { 130 => 0x16, 468 => 'FixtureIdentifier' }, 'flash' => { 113 => 'XMP-Flash', 118 => 0x9209, 151 => 0x22, 181 => 0x1f, 182 => 0x15, 379 => 0x5a, 479 => 'Flash' }, 'flashaction' => { 403 => 0x3e, 404 => 0x3e, 416 => 0x2017, 421 => [0x2a,0x2c,0x30] }, 'flashaction2' => { 403 => 0x4c, 404 => 0x4c, 421 => 0x77 }, 'flashactionexternal' => { 421 => [0x78,0x7c] }, 'flashbias' => { 316 => 0x24 }, 'flashchargelevel' => { 298 => 0x1010 }, 'flashcompensation' => { 137 => 0x3f3, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 211 => 0xa, 212 => 0x1b, 470 => 'FlashCompensation' }, 'flashcontrol' => { 403 => 0x23, 404 => 0x1f, 405 => 0x21 }, 'flashcontrolbuilt-in' => { 285 => '16.1', 286 => '23.1', 288 => '23.1', 289 => '24.1' }, 'flashcontrolmode' => { 207 => '9.2', 208 => '9.2', 209 => '9.2', 210 => '9.2', 248 => 0xc4a6, 261 => 0x148, 293 => 0x404 }, 'flashcurtain' => { 316 => 0x48 }, 'flashdevice' => { 298 => 0x1005 }, 'flashenergy' => { 118 => 0xa20b, 479 => 'FlashEnergy' }, 'flashexposurecomp' => { 76 => 0xf, 126 => 0x1011, 158 => 'ExposureComp', 180 => 0x23, 185 => 0x104, 186 => 0x49c1, 224 => 0x12, 293 => 0x401, 298 => 0x1023, 351 => 0x4d, 383 => 0x100b, 393 => [0x3a,0x56], 416 => 0x104 }, 'flashexposurecomp2' => { 252 => 0x4d2 }, 'flashexposurecomparea' => { 277 => '38.4', 279 => '38.4', 280 => '38.4', 289 => '38.4', 290 => '38.4' }, 'flashexposurecompset' => { 183 => 0x10, 324 => 0xe, 403 => 0x14, 404 => 0x12, 405 => 0x23, 421 => 0x1f }, 'flashexposurecompset2' => { 421 => [0x26,0x2c] }, 'flashfired' => { 139 => 0x5d, 158 => 'Fired', 180 => 0x14, 251 => '590.3', 479 => [\'Flash','FlashFired'] }, 'flashfirmwareversion' => { 294 => 0x1002 }, 'flashfunction' => { 186 => 0x31, 479 => [\'Flash','FlashFunction'] }, 'flashgndistance' => { 207 => 0xe, 208 => 0xf, 209 => 0xf, 210 => 0xf, 211 => 0xf, 248 => 0xc4ac, 261 => 0x14e }, 'flashintensity' => { 111 => [0x19,0x5], 293 => 0x405 }, 'flashlevel' => { 278 => 0x9, 416 => 0xb048 }, 'flashmastercompensation' => { 248 => 0xc4c0, 261 => 0x162 }, 'flashmastercontrolmode' => { 248 => 0xc4be, 261 => 0x160 }, 'flashmasteroutput' => { 248 => 0xc4c4, 261 => 0x166 }, 'flashmeteringsegments' => { 351 => 0x20a }, 'flashmode' => { 111 => 0x4, 137 => 0x3f2, 139 => 0x5c, 150 => 0x27, 158 => 'Mode', 180 => 0x2, 181 => 0x20, 182 => 0x16, 183 => 0xf, 224 => 0x87, 293 => 0x400, 298 => 0x1004, 351 => 0xc, 358 => 0x4, 382 => 0x20, 383 => 0x100a, 392 => 0x225, 403 => 0x13, 404 => 0x7f, 405 => 0x20, 421 => 0x10, 424 => 0x1138, 425 => 0x1138, 426 => 0x1114, 427 => 0x1190, 428 => 0x116c, 429 => 0x1024, 430 => 0x21c, 431 => 0x21c, 432 => 0x211, 479 => [\'Flash','FlashMode'] }, 'flashmodel' => { 158 => 'Model', 177 => 'FlashModel', 294 => 0x1001 }, 'flashoptions' => { 332 => 0x2 }, 'flashoptions2' => { 332 => 0x10 }, 'flashoutput' => { 44 => 0x248, 76 => 0x21, 207 => 0xa, 208 => 0xa, 209 => 0xa, 210 => 0x27, 248 => 0xc4b0, 261 => 0x152 }, 'flashpixversion' => { 118 => 0xa000, 479 => 'FlashpixVersion' }, 'flashredeyemode' => { 479 => [\'Flash','FlashRedEyeMode'] }, 'flashremotecontrol' => { 248 => 0xc4ba, 261 => 0x15c, 293 => 0x403 }, 'flashreturn' => { 479 => [\'Flash','FlashReturn'] }, 'flashserialnumber' => { 158 => 'SerialNumber', 294 => 0x1003 }, 'flashshutterspeed' => { 276 => '20.2', 277 => '23.2', 279 => '23.2', 280 => '23.2', 285 => '15.2', 286 => '22.2', 287 => '7.2', 288 => '22.2', 289 => '23.2', 290 => '23.2', 291 => '23.1' }, 'flashstatus' => { 339 => 0x0, 421 => [0x82,0x86], 434 => 0x31, 435 => 0x39, 436 => 0x39 }, 'flashstatusbuilt-in' => { 405 => [0x87,0x287] }, 'flashstatusexternal' => { 405 => [0x88,0x288] }, 'flashsyncspeed' => { 276 => '20.1', 277 => '23.1', 279 => '23.1', 280 => '23.1', 285 => '15.1', 286 => '22.1', 288 => '22.1', 289 => '23.1', 290 => '23.1' }, 'flashtype' => { 158 => 'Type', 183 => 0x59, 224 => 0x9, 294 => 0x1000 }, 'flashwarning' => { 286 => '30.1', 287 => '7.1', 291 => '31.1', 316 => 0x62 }, 'flashwirelessoption' => { 248 => 0xc4c6, 261 => 0x15a }, 'flexiblespotposition' => { 416 => 0x201d }, 'flickerreduce' => { 392 => 0x218 }, 'flickerreduction' => { 126 => 0x1446, 244 => 0xe84 }, 'flickerreductionindicator' => { 244 => 0x5e2 }, 'fliphorizontal' => { 269 => 0x76a43206 }, 'fnumber' => { 7 => 0x3, 9 => 0x3, 11 => 0x3, 13 => 0x3, 14 => 0x3, 15 => 0x3, 16 => 0x3, 17 => 0x3, 18 => 0x3, 19 => 0x3, 20 => 0x3, 21 => 0x3, 22 => 0x3, 23 => 0x3, 24 => 0x3, 25 => 0x3, 26 => 0x3, 27 => 0x3, 28 => 0x3, 29 => 0x3, 30 => 0x5, 31 => 0x6, 76 => 0x15, 118 => 0x829d, 136 => 0xfd04, 139 => 0x1e, 141 => 0xfa23, 143 => 0xf103, 146 => 0x13, 148 => 0x3c, 150 => 0x1c, 151 => 0x18, 153 => 0xc, 162 => 'FNumber', 180 => 0xa, 181 => 0x36, 182 => 0x47, 183 => 0x9, 186 => 0x49c7, 222 => 0x38, 315 => 0x35a, 351 => 0x13, 390 => 0xa019, 393 => [0x31,0x49], 403 => 0x1, 404 => 0x1, 421 => [0x20,0x22,0x26], 479 => 'FNumber' }, 'focaldistance' => { 459 => 'FocalDistance' }, 'focallength' => { 7 => 0x1d, 8 => 0xa, 9 => 0x23, 10 => 0x9, 11 => 0x1d, 12 => 0x9, 13 => 0x1e, 14 => 0x1d, 15 => 0x1d, 16 => 0x1e, 17 => 0x1e, 18 => 0x1e, 19 => 0x28, 20 => 0x1e, 21 => 0x23, 22 => 0x1e, 23 => 0x1e, 24 => 0x23, 25 => 0x23, 26 => 0x23, 27 => 0x23, 28 => 0x1e, 29 => 0x23, 59 => 0x1, 112 => 0x1d, 118 => 0x920a, 146 => 0x1d, 162 => 'FocalLength', 180 => 0x12, 217 => 0xa, 218 => 0xb, 222 => [0xc,0x3c], 310 => 0x1, 351 => 0x1d, 360 => 0x403, 383 => 0x1500, 402 => 0xe, 428 => 0x1278, 429 => 0x1134, 430 => 0x32c, 431 => 0x32c, 432 => 0x30a, 479 => 'FocalLength' }, 'focallength2' => { 421 => [0x23,0x25,0x29] }, 'focallengthin35mmformat' => { 118 => 0xa405, 390 => 0xa01a, 479 => 'FocalLengthIn35mmFilm' }, 'focallengthtelezoom' => { 402 => 0x10 }, 'focalplaneafpointarea' => { 433 => 0x2 }, 'focalplaneafpointlocation1' => { 433 => 0x6 }, 'focalplaneafpointlocation10' => { 433 => 0x2a }, 'focalplaneafpointlocation11' => { 433 => 0x2e }, 'focalplaneafpointlocation12' => { 433 => 0x32 }, 'focalplaneafpointlocation13' => { 433 => 0x36 }, 'focalplaneafpointlocation14' => { 433 => 0x3a }, 'focalplaneafpointlocation15' => { 433 => 0x3e }, 'focalplaneafpointlocation2' => { 433 => 0xa }, 'focalplaneafpointlocation3' => { 433 => 0xe }, 'focalplaneafpointlocation4' => { 433 => 0x12 }, 'focalplaneafpointlocation5' => { 433 => 0x16 }, 'focalplaneafpointlocation6' => { 433 => 0x1a }, 'focalplaneafpointlocation7' => { 433 => 0x1e }, 'focalplaneafpointlocation8' => { 433 => 0x22 }, 'focalplaneafpointlocation9' => { 433 => 0x26 }, 'focalplaneafpointsused' => { 433 => 0x1 }, 'focalplanediagonal' => { 294 => 0x103, 298 => 0x205 }, 'focalplaneresolutionunit' => { 118 => 0xa210, 479 => 'FocalPlaneResolutionUnit' }, 'focalplanexresolution' => { 118 => 0xa20e, 479 => 'FocalPlaneXResolution' }, 'focalplaneyresolution' => { 118 => 0xa20f, 479 => 'FocalPlaneYResolution' }, 'focalpointx' => { 459 => 'FocalPointX' }, 'focalpointy' => { 459 => 'FocalPointY' }, 'focus' => { 258 => 0x8 }, 'focusareaselection' => { 287 => '15.2' }, 'focusbracket' => { 316 => 0xbd }, 'focusbracketstepsize' => { 293 => 0x308 }, 'focusdistance' => { 162 => 'FocusDistance', 180 => 0x13, 186 => 0x49bb, 217 => 0x9, 218 => 0xa, 222 => [0xb,0x4f], 296 => 0x305, 310 => 0x0, 314 => 0x304, 315 => 0x304 }, 'focusinfoversion' => { 296 => 0x0 }, 'focuslocation' => { 416 => 0x2027 }, 'focusmode' => { 34 => 0x7, 111 => 0x3, 112 => [0x3003,0xd], 126 => 0x1021, 137 => 0x3f5, 139 => 0x38, 155 => 'FocusMode', 180 => 0x30, 182 => 0xe, 183 => 0xc, 224 => 0x7, 293 => 0x301, 298 => 0x100b, 316 => 0x7, 351 => 0xd, 358 => 0x3, 383 => 0x1006, 396 => [0xb,0x5], 402 => [0x15,0x1d], 403 => 0x4d, 404 => 0x4d, 416 => [0xb042,0xb04e,0x201b], 421 => 0x13, 440 => 0x16 }, 'focusmode2' => { 125 => '0.1', 332 => '3.1', 421 => [0x2c,0x2e,0x32] }, 'focusmodesetting' => { 278 => '10.1', 400 => 0x14, 401 => 0x15, 403 => 0x10, 404 => 0xf, 405 => 0x6 }, 'focusmodeswitch' => { 183 => 0x58, 403 => 0x2e }, 'focuspointwrap' => { 276 => '2.2', 277 => '2.2', 279 => '2.1', 280 => '2.1', 284 => '1.1', 285 => '2.2', 286 => '1.1', 289 => '2.2', 290 => '2.1', 291 => '2.5' }, 'focusposition' => { 217 => 0x8, 218 => 0x8, 222 => 0x9, 351 => 0x10, 414 => 0x9bb }, 'focusposition2' => { 421 => [0x29,0x2b,0x2f], 440 => 0x2d, 443 => 0x20 }, 'focusprocess' => { 293 => 0x302 }, 'focusrange' => { 34 => 0x12, 298 => 0x100a }, 'focusrangeindex' => { 342 => '3.1' }, 'focussetting' => { 393 => 0x6 }, 'focusshiftexposurelock' => { 248 => 0xc446, 261 => 0xe8 }, 'focusshiftinterval' => { 248 => 0xc442, 261 => 0xe4 }, 'focusshiftnumbershots' => { 248 => 0xc43a, 261 => 0xdc }, 'focusshiftstepwidth' => { 248 => 0xc43e, 261 => 0xe0 }, 'focusstatus' => { 402 => 0x19, 403 => 0x53, 404 => 0x53 }, 'focusstepcount' => { 296 => 0x301, 298 => 0x100e }, 'focusstepinfinity' => { 296 => 0x303, 298 => 0x103b }, 'focusstepnear' => { 296 => 0x304, 298 => 0x103c }, 'focustrackinglockon' => { 276 => ['1.5','4.1'], 277 => '1.4', 284 => '0.4', 285 => '3.1', 286 => '0.4', 289 => '1.4' }, 'foldernumber' => { 403 => 0x9a, 405 => [0x402,0x114,0x316] }, 'fontcomposite' => { 504 => [\'Fonts','FontsComposite'] }, 'fontface' => { 504 => [\'Fonts','FontsFontFace'] }, 'fontfamily' => { 504 => [\'Fonts','FontsFontFamily'] }, 'fontfilename' => { 504 => [\'Fonts','FontsFontFileName'] }, 'fontname' => { 504 => [\'Fonts','FontsFontName'] }, 'fonts' => { 504 => 'Fonts' }, 'fonttype' => { 504 => [\'Fonts','FontsFontType'] }, 'fontversion' => { 504 => [\'Fonts','FontsVersionString'] }, 'for' => { 367 => 'For' }, 'format' => { 376 => "\xa9fmt", 458 => 'Format', 476 => 'format', 497 => 'Format' }, 'forwardlock' => { 494 => 'forwardlock' }, 'framenum' => { 362 => 0xd7 }, 'framenumber' => { 126 => 0x8003, 186 => 0x3c, 351 => 0x29 }, 'framereadouttime' => { 370 => 'camera.framereadouttimeinmicroseconds' }, 'framing' => { 488 => 'framing' }, 'fullimagesize' => { 416 => 0xb02b }, 'fullpanoheightpixels' => { 461 => 'FullPanoHeightPixels', 462 => 'FullPanoHeightPixels' }, 'fullpanowidthpixels' => { 461 => 'FullPanoWidthPixels', 462 => 'FullPanoWidthPixels' }, 'fullpresssnap' => { 383 => 0x100d }, 'func1button' => { 279 => '14.1', 280 => '14.1', 290 => '14.1' }, 'func1buttonplusdials' => { 279 => '42.1', 280 => '42.1', 290 => '42.1' }, 'func2button' => { 279 => '80.1', 280 => '80.1', 290 => '80.1' }, 'func2buttonplusdials' => { 279 => '81.1' }, 'func3button' => { 279 => '83.1' }, 'funcbutton' => { 276 => ['14.1','15.1'], 277 => '14.1', 285 => '28.1', 286 => '13.1', 289 => '14.1', 291 => '14.1' }, 'funcbuttonplusdials' => { 276 => ['14.2','15.2'], 277 => '14.2', 285 => '31.1', 289 => '42.1' }, 'functionbutton' => { 283 => '13.1', 287 => '5.2' }, 'gainbase' => { 297 => 0x610 }, 'gaincontrol' => { 118 => 0xa407, 479 => 'GainControl' }, 'gamma' => { 118 => 0xa500, 137 => 0x8fe, 321 => 0x11c, 480 => 'Gamma' }, 'garminsettings' => { 376 => 'pmcc' }, 'garminsoftware' => { 376 => 'uuid' }, 'genre' => { 368 => ['gnre',"\xa9gen"], 370 => 'genre', 376 => ['gnre',"\xa9gen"], 485 => 'Genre', 489 => 'genre', 499 => 'genre' }, 'genrecvid' => { 485 => [\'Genre','GenreCvId'] }, 'genrecvtermid' => { 485 => [\'Genre','GenreCvTermId'] }, 'genrecvtermname' => { 485 => [\'Genre','GenreCvTermName'] }, 'genrecvtermrefinedabout' => { 485 => [\'Genre','GenreCvTermRefinedAbout'] }, 'genreid' => { 368 => 'geID' }, 'geography' => { 490 => 'geography' }, 'giftftppriority' => { 463 => 'GIFTFtpPriority' }, 'globalaltitude' => { 365 => 0x419 }, 'globalangle' => { 365 => 0x40d }, 'good' => { 499 => 'good' }, 'googlehostheader' => { 368 => 'gshh' }, 'googlepingmessage' => { 368 => 'gspm' }, 'googlepingurl' => { 368 => 'gspu' }, 'googlesourcedata' => { 368 => 'gssd' }, 'googlestarttime' => { 368 => 'gsst' }, 'googletrackduration' => { 368 => 'gstd' }, 'goprotype' => { 376 => 'GoPr' }, 'gpsaltitude' => { 129 => 0x6, 159 => 'Altitude', 479 => 'GPSAltitude' }, 'gpsaltituderef' => { 129 => 0x5, 479 => 'GPSAltitudeRef' }, 'gpsareainformation' => { 129 => 0x1c, 479 => 'GPSAreaInformation' }, 'gpscoordinates' => { 368 => "\xa9xyz", 370 => 'location.ISO6709', 376 => ['@xyz',"\xa9xyz"] }, 'gpsdatetime' => { 159 => 'DateTime', 479 => 'GPSTimeStamp' }, 'gpsdestbearing' => { 129 => 0x18, 159 => 'Bearing', 479 => 'GPSDestBearing' }, 'gpsdestbearingref' => { 129 => 0x17, 479 => 'GPSDestBearingRef' }, 'gpsdestdistance' => { 129 => 0x1a, 159 => 'Distance', 479 => 'GPSDestDistance' }, 'gpsdestdistanceref' => { 129 => 0x19, 479 => 'GPSDestDistanceRef' }, 'gpsdestlatitude' => { 129 => 0x14, 479 => 'GPSDestLatitude' }, 'gpsdestlongitude' => { 129 => 0x16, 479 => 'GPSDestLongitude' }, 'gpsdifferential' => { 129 => 0x1e, 159 => 'Differential', 479 => 'GPSDifferential' }, 'gpsdop' => { 129 => 0xb, 479 => 'GPSDOP' }, 'gpshpositioningerror' => { 129 => 0x1f, 479 => 'GPSHPositioningError' }, 'gpsimgdirection' => { 129 => 0x11, 479 => 'GPSImgDirection' }, 'gpsimgdirectionref' => { 129 => 0x10, 479 => 'GPSImgDirectionRef' }, 'gpslatitude' => { 115 => 'GpsLatitude', 129 => 0x2, 159 => 'Latitude', 479 => 'GPSLatitude' }, 'gpslongitude' => { 115 => 'GpsLongitude', 129 => 0x4, 159 => 'Longitude', 479 => 'GPSLongitude' }, 'gpsmapdatum' => { 129 => 0x12, 159 => 'Datum', 479 => 'GPSMapDatum' }, 'gpsmeasuremode' => { 129 => 0xa, 159 => 'MeasureMode', 479 => 'GPSMeasureMode' }, 'gpsprocessingmethod' => { 129 => 0x1b, 479 => 'GPSProcessingMethod' }, 'gpssatellites' => { 129 => 0x8, 159 => 'Satellites', 479 => 'GPSSatellites' }, 'gpsspeed' => { 129 => 0xd, 159 => 'Speed', 479 => 'GPSSpeed' }, 'gpsspeedref' => { 129 => 0xc, 479 => 'GPSSpeedRef' }, 'gpsstatus' => { 129 => 0x9, 479 => 'GPSStatus' }, 'gpstrack' => { 129 => 0xf, 159 => 'Heading', 479 => 'GPSTrack' }, 'gpstrackref' => { 129 => 0xe, 479 => 'GPSTrackRef' }, 'gpsversionid' => { 129 => 0x0, 479 => 'GPSVersionID' }, 'gradation' => { 293 => 0x50f }, 'gradientbasedcorractive' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionActive'] }, 'gradientbasedcorramount' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionAmount'] }, 'gradientbasedcorrblacks2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBlacks2012'] }, 'gradientbasedcorrbrightness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalBrightness'] }, 'gradientbasedcorrclarity' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity'] }, 'gradientbasedcorrclarity2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalClarity2012'] }, 'gradientbasedcorrcontrast' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast'] }, 'gradientbasedcorrcontrast2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalContrast2012'] }, 'gradientbasedcorrcorrectionname' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionName'] }, 'gradientbasedcorrcorrectionsyncid' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionSyncID'] }, 'gradientbasedcorrdefringe' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDefringe'] }, 'gradientbasedcorrdehaze' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalDehaze'] }, 'gradientbasedcorrections' => { 473 => 'GradientBasedCorrections', 475 => 'GradientBasedCorrections' }, 'gradientbasedcorrexposure' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure'] }, 'gradientbasedcorrexposure2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalExposure2012'] }, 'gradientbasedcorrhighlights2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHighlights2012'] }, 'gradientbasedcorrhue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalHue'] }, 'gradientbasedcorrluminancenoise' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalLuminanceNoise'] }, 'gradientbasedcorrmaskalpha' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAlpha'] }, 'gradientbasedcorrmaskangle' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksAngle'] }, 'gradientbasedcorrmaskbottom' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksBottom'] }, 'gradientbasedcorrmaskcentervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterValue'] }, 'gradientbasedcorrmaskcenterweight' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCenterWeight'] }, 'gradientbasedcorrmaskdabs' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksDabs'] }, 'gradientbasedcorrmaskfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFeather'] }, 'gradientbasedcorrmaskflipped' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlipped'] }, 'gradientbasedcorrmaskflow' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFlow'] }, 'gradientbasedcorrmaskfullx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullX'] }, 'gradientbasedcorrmaskfully' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksFullY'] }, 'gradientbasedcorrmaskinputdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksInputDigest'] }, 'gradientbasedcorrmaskleft' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksLeft'] }, 'gradientbasedcorrmaskmaskactive' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskActive'] }, 'gradientbasedcorrmaskmaskblendmode' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'gradientbasedcorrmaskmaskdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskDigest'] }, 'gradientbasedcorrmaskmaskinverted' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskInverted'] }, 'gradientbasedcorrmaskmaskname' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskName'] }, 'gradientbasedcorrmaskmasks' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasks'] }, 'gradientbasedcorrmaskmasksalpha' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'gradientbasedcorrmaskmasksangle' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksAngle'] }, 'gradientbasedcorrmaskmasksbottom' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksBottom'] }, 'gradientbasedcorrmaskmaskscentervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'gradientbasedcorrmaskmaskscenterweight' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'gradientbasedcorrmaskmasksdabs' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksDabs'] }, 'gradientbasedcorrmaskmasksfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFeather'] }, 'gradientbasedcorrmaskmasksflipped' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'gradientbasedcorrmaskmasksflow' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFlow'] }, 'gradientbasedcorrmaskmasksfullx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullX'] }, 'gradientbasedcorrmaskmasksfully' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksFullY'] }, 'gradientbasedcorrmaskmasksinputdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'gradientbasedcorrmaskmasksleft' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksLeft'] }, 'gradientbasedcorrmaskmasksmaskactive' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'gradientbasedcorrmaskmasksmaskblendmode' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'gradientbasedcorrmaskmasksmaskdigest' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'gradientbasedcorrmaskmasksmaskinverted' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'gradientbasedcorrmaskmasksmaskname' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'gradientbasedcorrmaskmasksmasksubtype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'gradientbasedcorrmaskmasksmasksyncid' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'gradientbasedcorrmaskmasksmaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'gradientbasedcorrmaskmasksmidpoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'gradientbasedcorrmaskmasksorigin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'gradientbasedcorrmaskmasksperimetervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'gradientbasedcorrmaskmasksradius' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRadius'] }, 'gradientbasedcorrmaskmasksreferencepoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'gradientbasedcorrmaskmasksright' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRight'] }, 'gradientbasedcorrmaskmasksroundness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'gradientbasedcorrmaskmaskssizex' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'gradientbasedcorrmaskmaskssizey' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'gradientbasedcorrmaskmaskstop' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksTop'] }, 'gradientbasedcorrmaskmasksubtype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSubType'] }, 'gradientbasedcorrmaskmasksvalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'gradientbasedcorrmaskmasksversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksVersion'] }, 'gradientbasedcorrmaskmaskswhat' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWhat'] }, 'gradientbasedcorrmaskmaskswholeimagearea' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'gradientbasedcorrmaskmasksx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksX'] }, 'gradientbasedcorrmaskmasksy' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksY'] }, 'gradientbasedcorrmaskmasksyncid' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'gradientbasedcorrmaskmaskszerox' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'gradientbasedcorrmaskmaskszeroy' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'gradientbasedcorrmaskmaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskVersion'] }, 'gradientbasedcorrmaskmidpoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMidpoint'] }, 'gradientbasedcorrmaskorigin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksOrigin'] }, 'gradientbasedcorrmaskperimetervalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'gradientbasedcorrmaskradius' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRadius'] }, 'gradientbasedcorrmaskrange' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'gradientbasedcorrmaskrangeareamodels' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'gradientbasedcorrmaskrangeareamodelscolorsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'gradientbasedcorrmaskrangeareamodelscomponents' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'gradientbasedcorrmaskrangecoloramount' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'gradientbasedcorrmaskrangedepthfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'gradientbasedcorrmaskrangedepthmax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'gradientbasedcorrmaskrangedepthmin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'gradientbasedcorrmaskrangeinvert' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'gradientbasedcorrmaskrangelumfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'gradientbasedcorrmaskrangeluminancedepthsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'gradientbasedcorrmaskrangelummax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'gradientbasedcorrmaskrangelummin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'gradientbasedcorrmaskrangelumrange' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'gradientbasedcorrmaskrangesampletype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'gradientbasedcorrmaskrangetype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'gradientbasedcorrmaskrangeversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'gradientbasedcorrmaskreferencepoint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksReferencePoint'] }, 'gradientbasedcorrmaskright' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRight'] }, 'gradientbasedcorrmaskroundness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksRoundness'] }, 'gradientbasedcorrmasks' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasks'] }, 'gradientbasedcorrmasksizex' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeX'] }, 'gradientbasedcorrmasksizey' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksSizeY'] }, 'gradientbasedcorrmasktop' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksTop'] }, 'gradientbasedcorrmaskvalue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksMaskValue'] }, 'gradientbasedcorrmaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksVersion'] }, 'gradientbasedcorrmaskwhat' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWhat'] }, 'gradientbasedcorrmaskwholeimagearea' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'gradientbasedcorrmaskx' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksX'] }, 'gradientbasedcorrmasky' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksY'] }, 'gradientbasedcorrmaskzerox' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroX'] }, 'gradientbasedcorrmaskzeroy' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionMasksZeroY'] }, 'gradientbasedcorrmoire' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalMoire'] }, 'gradientbasedcorrrangemask' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMask'] }, 'gradientbasedcorrrangemaskareamodels' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'gradientbasedcorrrangemaskareamodelscolorsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'gradientbasedcorrrangemaskareamodelscomponents' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'gradientbasedcorrrangemaskcoloramount' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'gradientbasedcorrrangemaskdepthfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'gradientbasedcorrrangemaskdepthmax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'gradientbasedcorrrangemaskdepthmin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'gradientbasedcorrrangemaskinvert' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskInvert'] }, 'gradientbasedcorrrangemasklumfeather' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'gradientbasedcorrrangemaskluminancedepthsampleinfo' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'gradientbasedcorrrangemasklummax' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'gradientbasedcorrrangemasklummin' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'gradientbasedcorrrangemasklumrange' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'gradientbasedcorrrangemasksampletype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'gradientbasedcorrrangemasktype' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskType'] }, 'gradientbasedcorrrangemaskversion' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsCorrectionRangeMaskVersion'] }, 'gradientbasedcorrsaturation' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSaturation'] }, 'gradientbasedcorrshadows2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalShadows2012'] }, 'gradientbasedcorrsharpness' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalSharpness'] }, 'gradientbasedcorrtemperature' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTemperature'] }, 'gradientbasedcorrtexture' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTexture'] }, 'gradientbasedcorrtint' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalTint'] }, 'gradientbasedcorrtoninghue' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningHue'] }, 'gradientbasedcorrtoningsaturation' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalToningSaturation'] }, 'gradientbasedcorrwhat' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsWhat'] }, 'gradientbasedcorrwhites2012' => { 473 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'], 475 => [\'GradientBasedCorrections','GradientBasedCorrectionsLocalWhites2012'] }, 'grainamount' => { 473 => 'GrainAmount', 475 => 'GrainAmount' }, 'grainfrequency' => { 473 => 'GrainFrequency', 475 => 'GrainFrequency' }, 'grainseed' => { 473 => 'GrainSeed', 475 => 'GrainSeed' }, 'grainsize' => { 473 => 'GrainSize', 475 => 'GrainSize' }, 'graymixeraqua' => { 473 => 'GrayMixerAqua', 475 => 'GrayMixerAqua' }, 'graymixerblue' => { 473 => 'GrayMixerBlue', 475 => 'GrayMixerBlue' }, 'graymixergreen' => { 473 => 'GrayMixerGreen', 475 => 'GrayMixerGreen' }, 'graymixermagenta' => { 473 => 'GrayMixerMagenta', 475 => 'GrayMixerMagenta' }, 'graymixerorange' => { 473 => 'GrayMixerOrange', 475 => 'GrayMixerOrange' }, 'graymixerpurple' => { 473 => 'GrayMixerPurple', 475 => 'GrayMixerPurple' }, 'graymixerred' => { 473 => 'GrayMixerRed', 475 => 'GrayMixerRed' }, 'graymixeryellow' => { 473 => 'GrayMixerYellow', 475 => 'GrayMixerYellow' }, 'graypoint' => { 450 => 0x8021 }, 'greenhue' => { 473 => 'GreenHue', 475 => 'GreenHue' }, 'greensaturation' => { 473 => 'GreenSaturation', 475 => 'GreenSaturation' }, 'griddisplay' => { 276 => '13.3', 277 => '4.3', 279 => '4.2', 280 => '4.2', 281 => '2.2', 285 => '10.5', 286 => '3.4', 287 => '6.1', 289 => '4.4', 290 => '4.2', 291 => '4.2' }, 'gripbatteryadload' => { 330 => 0x5 }, 'gripbatteryadnoload' => { 330 => 0x4 }, 'gripbatterystate' => { 330 => '1.2' }, 'group' => { 473 => 'Group', 475 => 'Group' }, 'groupareaafillumination' => { 277 => '46.4', 280 => '47.4', 289 => '47.4' }, 'grouping' => { 368 => ['grup',"\xa9grp"], 376 => "\xa9grp" }, 'guid' => { 368 => 'GUID' }, 'hasalternative' => { 489 => 'hasAlternative' }, 'hascorrection' => { 489 => 'hasCorrection' }, 'hascorrectiona-lang' => { 489 => [\'hasCorrection','hasCorrectionA-lang'] }, 'hascorrectiona-platform' => { 489 => [\'hasCorrection','hasCorrectionA-platform'] }, 'hascorrectiontext' => { 489 => [\'hasCorrection','hasCorrectionText'] }, 'hascrop' => { 473 => 'HasCrop', 475 => 'HasCrop' }, 'hasextendedxmp' => { 501 => 'HasExtendedXMP' }, 'hassettings' => { 473 => 'HasSettings', 475 => 'HasSettings' }, 'hastranslation' => { 489 => 'hasTranslation' }, 'hasvisibleoverprint' => { 504 => 'HasVisibleOverprint' }, 'hasvisibletransparency' => { 504 => 'HasVisibleTransparency' }, 'hdmioutputn-log' => { 261 => 0x35a }, 'hdr' => { 60 => 0x1, 214 => 0x4, 316 => 0x9e, 351 => 0x85, 416 => 0x200a }, 'hdrlevel' => { 214 => 0x5, 405 => 0x2e, 421 => 0x17 }, 'hdrpmakernote' => { 456 => 'hdrp_makernote' }, 'hdrsetting' => { 405 => 0x2d, 421 => 0x16, 424 => 0x1148, 425 => 0x1148, 426 => 0x1124, 427 => 0x11a0, 428 => 0x117c, 429 => 0x1034, 430 => 0x22c, 431 => 0x22c, 432 => 0x21f }, 'hdrshot' => { 316 => 0x76 }, 'hdvideo' => { 368 => 'hdvd' }, 'headline' => { 130 => 0x69, 485 => 'Headline', 487 => 'Headline' }, 'hierarchicalsubject' => { 465 => 'hierarchicalSubject' }, 'highisomultiplierblue' => { 321 => 0x1a }, 'highisomultipliergreen' => { 321 => 0x19 }, 'highisomultiplierred' => { 321 => 0x18 }, 'highisonoisereduction' => { 16 => 0xbc, 17 => 0xbd, 20 => 0xbd, 28 => 0xc9, 62 => 0x5, 83 => 0x202, 224 => 0xb1, 351 => 0x71, 403 => 0x2c, 404 => 0x26, 405 => 0x26, 416 => 0x2009, 421 => 0x12, 446 => 0x42 }, 'highisonoisereduction2' => { 416 => 0xb050 }, 'highlight' => { 393 => 0xf }, 'highlight2012' => { 473 => 'Highlight2012', 475 => 'Highlight2012' }, 'highlightcolordistortreduct' => { 450 => 0x8026 }, 'highlightlinearitylimit' => { 390 => 0xa025 }, 'highlightprotection' => { 268 => 0x6 }, 'highlightrecovery' => { 473 => 'HighlightRecovery', 475 => 'HighlightRecovery' }, 'highlights' => { 416 => 0x2033, 467 => 'Highlights' }, 'highlights2012' => { 473 => 'Highlights2012', 475 => 'Highlights2012' }, 'highlightsadj' => { 450 => 0x9019 }, 'highlightshadow' => { 316 => 0xad }, 'highlightwarning' => { 316 => 0x8002 }, 'highlowkeyadj' => { 351 => 0x6c }, 'highspeedsync' => { 183 => 0x5, 403 => 0x2, 404 => 0x2 }, 'hintversion' => { 376 => 'hinv' }, 'histogramxml' => { 269 => 0x83a1a25 }, 'history' => { 487 => 'History', 500 => 'History' }, 'historyaction' => { 500 => [\'History','HistoryAction'] }, 'historychanged' => { 500 => [\'History','HistoryChanged'] }, 'historyinstanceid' => { 500 => [\'History','HistoryInstanceID'] }, 'historyparameters' => { 500 => [\'History','HistoryParameters'] }, 'historysoftwareagent' => { 500 => [\'History','HistorySoftwareAgent'] }, 'historywhen' => { 500 => [\'History','HistoryWhen'] }, 'hometowncity' => { 112 => 0x3006, 351 => 0x23, 357 => 0x2 }, 'hometowncitycode' => { 358 => 0x1000 }, 'hometowndst' => { 351 => 0x25, 357 => '0.2' }, 'hue' => { 188 => 0x3b, 228 => 0x3d, 229 => 0x45, 351 => 0x67 }, 'hueadj' => { 272 => 0x2f, 450 => 0x8019 }, 'hueadjust' => { 383 => 0x1016 }, 'hueadjustment' => { 181 => 0x4a, 182 => 0x40, 224 => 0x92, 227 => 0x36 }, 'hueadjustmentaqua' => { 473 => 'HueAdjustmentAqua', 475 => 'HueAdjustmentAqua' }, 'hueadjustmentblue' => { 473 => 'HueAdjustmentBlue', 475 => 'HueAdjustmentBlue' }, 'hueadjustmentgreen' => { 473 => 'HueAdjustmentGreen', 475 => 'HueAdjustmentGreen' }, 'hueadjustmentmagenta' => { 473 => 'HueAdjustmentMagenta', 475 => 'HueAdjustmentMagenta' }, 'hueadjustmentorange' => { 473 => 'HueAdjustmentOrange', 475 => 'HueAdjustmentOrange' }, 'hueadjustmentpurple' => { 473 => 'HueAdjustmentPurple', 475 => 'HueAdjustmentPurple' }, 'hueadjustmentred' => { 473 => 'HueAdjustmentRed', 475 => 'HueAdjustmentRed' }, 'hueadjustmentyellow' => { 473 => 'HueAdjustmentYellow', 475 => 'HueAdjustmentYellow' }, 'huesetting' => { 301 => 0x1011 }, 'humidity' => { 118 => 0x9401, 480 => 'Humidity' }, 'iccprofilename' => { 487 => 'ICCProfile' }, 'iconuri' => { 376 => 'icnu' }, 'idccreativestyle' => { 450 => 0x8000 }, 'idcpreviewlength' => { 450 => 0x202 }, 'idcpreviewstart' => { 450 => 0x201 }, 'identifier' => { 476 => 'identifier', 497 => 'Identifier' }, 'illumination' => { 287 => '0.5', 378 => 0x48 }, 'imageadjustment' => { 224 => 0x80, 258 => 0x5 }, 'imagealterationconstraints' => { 303 => 'ImageAlterationConstraints' }, 'imagearea' => { 238 => 0x10, 241 => 0x10 }, 'imageareaoffset' => { 351 => 0x38 }, 'imagecount' => { 126 => 0x1438, 224 => 0xa5, 419 => 0x11b }, 'imagecreator' => { 303 => 'ImageCreator' }, 'imagecreatorid' => { 303 => [\'ImageCreator','ImageCreatorImageCreatorID'] }, 'imagecreatorimageid' => { 303 => 'ImageCreatorImageID' }, 'imagecreatorname' => { 303 => [\'ImageCreator','ImageCreatorImageCreatorName'] }, 'imagedata' => { 460 => 'Data' }, 'imagedescription' => { 118 => 0x10e, 495 => 'ImageDescription' }, 'imageduplicationconstraints' => { 303 => 'ImageDuplicationConstraints' }, 'imagedustoff' => { 269 => 0xfe443a45 }, 'imageeditcount' => { 351 => 0x41 }, 'imageediting' => { 351 => 0x32 }, 'imageeffects' => { 383 => 0x1010 }, 'imagefileconstraints' => { 303 => 'ImageFileConstraints' }, 'imagefileformatasdelivered' => { 303 => 'ImageFileFormatAsDelivered' }, 'imagefilesizeasdelivered' => { 303 => 'ImageFileSizeAsDelivered' }, 'imageheight' => { 118 => 0x101, 187 => 0xc, 360 => 0x10d, 458 => 'ImageHeight', 495 => 'ImageLength' }, 'imagehistory' => { 118 => 0x9213, 478 => 'ImageHistory' }, 'imageidnumber' => { 311 => 0x340 }, 'imagemimetype' => { 460 => 'Mime' }, 'imagenumber' => { 118 => 0x9211, 155 => 'ImageNumber', 181 => 0xae, 182 => 0x5e, 360 => 0x113, 403 => 0x9b, 405 => [0x400,'276.1',0x314], 470 => 'ImageNumber' }, 'imageprocessingversion' => { 297 => 0x0 }, 'imagequality' => { 155 => 'ImageQuality', 240 => '723.2', 241 => '732.2', 251 => '708.1', 316 => 0x1 }, 'imagequality2' => { 293 => 0x603 }, 'imagerank' => { 463 => 'ImageRank' }, 'imageref' => { 483 => 'ImageRef' }, 'imageregion' => { 485 => 'ImageRegion' }, 'imageregionboundary' => { 485 => [\'ImageRegion','ImageRegionRegionBoundary'] }, 'imageregionboundaryh' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbH'] }, 'imageregionboundaryrx' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbRx'] }, 'imageregionboundaryshape' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbShape'] }, 'imageregionboundaryunit' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbUnit'] }, 'imageregionboundaryvertices' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbVertices'] }, 'imageregionboundaryverticesx' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbX'] }, 'imageregionboundaryverticesy' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbVerticesRbY'] }, 'imageregionboundaryw' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbW'] }, 'imageregionboundaryx' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbX'] }, 'imageregionboundaryy' => { 485 => [\'ImageRegion','ImageRegionRegionBoundaryRbY'] }, 'imageregionctype' => { 485 => [\'ImageRegion','ImageRegionRCtype'] }, 'imageregionctypeidentifier' => { 485 => [\'ImageRegion','ImageRegionRCtypeIdentifier'] }, 'imageregionctypename' => { 485 => [\'ImageRegion','ImageRegionRCtypeName'] }, 'imageregionid' => { 485 => [\'ImageRegion','ImageRegionRId'] }, 'imageregionname' => { 485 => [\'ImageRegion','ImageRegionName'] }, 'imageregionrole' => { 485 => [\'ImageRegion','ImageRegionRRole'] }, 'imageregionroleidentifier' => { 485 => [\'ImageRegion','ImageRegionRRoleIdentifier'] }, 'imageregionrolename' => { 485 => [\'ImageRegion','ImageRegionRRoleName'] }, 'imagereview' => { 278 => '0.4', 287 => '0.4' }, 'imagereviewmonitorofftime' => { 277 => '21.1', 279 => '21.1', 280 => '21.1', 284 => '20.1', 289 => '21.1', 290 => '21.1' }, 'imagereviewtime' => { 276 => '25.1', 278 => '2.1', 281 => '19.1', 282 => '20.1', 283 => '20.1', 285 => '9.2', 286 => '20.1', 291 => '21.2' }, 'imagesizerestriction' => { 492 => 'imageSizeRestriction' }, 'imagestabilization' => { 34 => 0x22, 112 => 0x3020, 126 => 0x1422, 155 => 'ImageStabilization', 181 => 0xbd, 182 => 0x71, 183 => 0x57, 184 => 0x0, 185 => [0x18,0x107,0x113], 186 => 0x49c2, 224 => 0xac, 293 => 0x604, 296 => 0x1600, 316 => 0x1a, 408 => 0x12, 409 => 0x11, 416 => 0xb026 }, 'imagestabilization2' => { 407 => 0xa }, 'imagestabilizationsetting' => { 186 => 0x14, 403 => 0x3d, 404 => 0x3d, 414 => 0x14 }, 'imagestyle' => { 403 => 0x2d, 404 => 0x27 }, 'imagesupplier' => { 303 => 'ImageSupplier' }, 'imagesupplierid' => { 303 => [\'ImageSupplier','ImageSupplierImageSupplierID'] }, 'imagesupplierimageid' => { 303 => 'ImageSupplierImageID' }, 'imagesuppliername' => { 303 => [\'ImageSupplier','ImageSupplierImageSupplierName'] }, 'imagetone' => { 351 => 0x4f }, 'imagetype' => { 130 => 0x82, 303 => 'ImageType' }, 'imageuniqueid' => { 1 => 0x15, 63 => 0x28, 118 => 0xa420, 478 => 'ImageUniqueID', 479 => 'ImageUniqueID' }, 'imagewidth' => { 118 => 0x100, 187 => 0xe, 360 => 0x10c, 458 => 'ImageWidth', 495 => 'ImageWidth' }, 'inclinationangle' => { 450 => 0x900f }, 'inclinationcorrection' => { 450 => 0x900e }, 'incrementaltemperature' => { 473 => 'IncrementalTemperature', 475 => 'IncrementalTemperature' }, 'incrementaltint' => { 473 => 'IncrementalTint', 475 => 'IncrementalTint' }, 'industry' => { 489 => 'industry', 490 => 'industry' }, 'information' => { 370 => 'information', 376 => "\xa9inf" }, 'infourl' => { 376 => 'infu' }, 'infraredilluminator' => { 377 => 0x28 }, 'ingredientexclusion' => { 491 => 'ingredientExclusion' }, 'ingredients' => { 500 => 'Ingredients' }, 'ingredientsalternatepaths' => { 500 => [\'Ingredients','IngredientsAlternatePaths'] }, 'ingredientsdocumentid' => { 500 => [\'Ingredients','IngredientsDocumentID'] }, 'ingredientsfilepath' => { 500 => [\'Ingredients','IngredientsFilePath'] }, 'ingredientsfrompart' => { 500 => [\'Ingredients','IngredientsFromPart'] }, 'ingredientsinstanceid' => { 500 => [\'Ingredients','IngredientsInstanceID'] }, 'ingredientslastmodifydate' => { 500 => [\'Ingredients','IngredientsLastModifyDate'] }, 'ingredientslasturl' => { 500 => [\'Ingredients','IngredientsLastURL'] }, 'ingredientslinkcategory' => { 500 => [\'Ingredients','IngredientsLinkCategory'] }, 'ingredientslinkform' => { 500 => [\'Ingredients','IngredientsLinkForm'] }, 'ingredientsmanager' => { 500 => [\'Ingredients','IngredientsManager'] }, 'ingredientsmanagervariant' => { 500 => [\'Ingredients','IngredientsManagerVariant'] }, 'ingredientsmanageto' => { 500 => [\'Ingredients','IngredientsManageTo'] }, 'ingredientsmanageui' => { 500 => [\'Ingredients','IngredientsManageUI'] }, 'ingredientsmaskmarkers' => { 500 => [\'Ingredients','IngredientsMaskMarkers'] }, 'ingredientsoriginaldocumentid' => { 500 => [\'Ingredients','IngredientsOriginalDocumentID'] }, 'ingredientspartmapping' => { 500 => [\'Ingredients','IngredientsPartMapping'] }, 'ingredientsplacedresolutionunit' => { 500 => [\'Ingredients','IngredientsPlacedResolutionUnit'] }, 'ingredientsplacedxresolution' => { 500 => [\'Ingredients','IngredientsPlacedXResolution'] }, 'ingredientsplacedyresolution' => { 500 => [\'Ingredients','IngredientsPlacedYResolution'] }, 'ingredientsrenditionclass' => { 500 => [\'Ingredients','IngredientsRenditionClass'] }, 'ingredientsrenditionparams' => { 500 => [\'Ingredients','IngredientsRenditionParams'] }, 'ingredientstopart' => { 500 => [\'Ingredients','IngredientsToPart'] }, 'ingredientsversionid' => { 500 => [\'Ingredients','IngredientsVersionID'] }, 'initialcameradolly' => { 461 => 'InitialCameraDolly' }, 'initialhorizontalfovdegrees' => { 461 => 'InitialHorizontalFOVDegrees' }, 'initialverticalfovdegrees' => { 461 => 'InitialVerticalFOVDegrees' }, 'initialviewheadingdegrees' => { 461 => 'InitialViewHeadingDegrees', 462 => 'InitialViewHeadingDegrees' }, 'initialviewpitchdegrees' => { 461 => 'InitialViewPitchDegrees', 462 => 'InitialViewPitchDegrees' }, 'initialviewrolldegrees' => { 461 => 'InitialViewRollDegrees', 462 => 'InitialViewRollDegrees' }, 'initialzoomliveview' => { 276 => '4.4' }, 'initialzoomsetting' => { 276 => '9.3', 285 => '27.3' }, 'instanceid' => { 500 => 'InstanceID' }, 'instructions' => { 487 => 'Instructions' }, 'instrument' => { 499 => 'instrument' }, 'intellectualgenre' => { 484 => 'IntellectualGenre' }, 'intelligentauto' => { 416 => 0xb052, 442 => 0xd, 443 => 0xe, 444 => 0xd }, 'intelligentd-range' => { 316 => 0x79 }, 'intelligentexposure' => { 316 => 0x5d }, 'intelligentresolution' => { 316 => 0x70 }, 'internalflash' => { 180 => 0x2b, 276 => '23.1', 278 => '8.1', 281 => '22.1', 283 => '23.1', 287 => '8.1', 291 => '24.1', 296 => 0x1208 }, 'internalflashae1' => { 298 => 0x1021 }, 'internalflashae1_0' => { 298 => 0x101d }, 'internalflashae2' => { 298 => 0x1022 }, 'internalflashae2_0' => { 298 => 0x101e }, 'internalflashmode' => { 339 => 0x1 }, 'internalflashstrength' => { 339 => 0x3 }, 'internalflashtable' => { 298 => 0x1024 }, 'internallensserialnumber' => { 390 => 0xa005 }, 'internalndfilter' => { 316 => 0x9d }, 'internalserialnumber' => { 63 => 0x96, 75 => 0x9, 126 => 0x10, 186 => 0x49dc, 292 => 0x18, 294 => 0x102, 313 => 0x500, 316 => 0x25, 331 => 0x4, 383 => 0x5, 434 => [0x7c,0xf0], 435 => 0x88, 436 => [0x88,0x8a] }, 'interopindex' => { 118 => 0x1, 480 => 'InteroperabilityIndex' }, 'interval' => { 244 => 0xd0 }, 'intervaldurationhours' => { 261 => 0xa0 }, 'intervaldurationminutes' => { 261 => 0xa4 }, 'intervaldurationseconds' => { 261 => 0xa8 }, 'intervalexposuresmoothing' => { 248 => 0xc416, 261 => 0xb8 }, 'intervalframe' => { 244 => 0xd4 }, 'intervalpriority' => { 248 => 0xc418, 261 => 0xba }, 'intervals' => { 248 => 0xc40e, 261 => 0xb0 }, 'intervalshooting' => { 248 => 0x760c, 256 => 0x760c, 351 => 0x92 }, 'introtime' => { 499 => 'introTime' }, 'introtimescale' => { 499 => [\'introTime','introTimeScale'] }, 'introtimevalue' => { 499 => [\'introTime','introTimeValue'] }, 'iptc-naa' => { 118 => 0x83bb, 321 => 0x83bb }, 'iptcdigest' => { 365 => 0x425 }, 'iptclastedited' => { 485 => 'IptcLastEdited' }, 'isalternativeof' => { 489 => 'isAlternativeOf' }, 'isbn' => { 489 => 'isbn' }, 'iscorrectionof' => { 489 => 'isCorrectionOf' }, 'ismergedhdr' => { 470 => 'IsMergedHDR' }, 'ismergedpanorama' => { 470 => 'IsMergedPanorama' }, 'iso' => { 7 => 0x6, 9 => 0x6, 10 => 0x75, 11 => 0x6, 12 => 0x79, 13 => 0x6, 14 => 0x6, 15 => 0x6, 16 => 0x6, 17 => 0x6, 18 => 0x6, 19 => 0x6, 20 => 0x6, 21 => 0x6, 22 => 0x6, 23 => 0x6, 24 => 0x6, 25 => 0x6, 26 => 0x6, 27 => 0x6, 28 => 0x6, 29 => 0x6, 30 => 0x0, 31 => 0x1, 111 => 0x14, 112 => [0x3014,0x14], 118 => 0x8827, 136 => 0xfd06, 137 => 0x1784, 139 => 0x60, 141 => [0xfa2e,0xfa46], 142 => [0x27,0x28], 143 => 0xf105, 146 => 0x14, 148 => 0x4e, 150 => 0x1e, 151 => 0x1a, 153 => 0x34, 155 => 'ISO', 180 => 0x8, 186 => 0x49ba, 215 => 0x0, 224 => 0x2, 316 => 0xd1, 321 => 0x17, 351 => [0x8b,0x14], 358 => 0x14, 360 => 0x105, 390 => 0xa014, 393 => 0x86, 414 => 0x6f, 421 => [0x1f,0x21,0x25], 479 => 'ISOSpeedRatings' }, 'iso2' => { 215 => 0x6, 235 => 0x265, 236 => 0x25c, 237 => 0x265, 238 => 0x221, 239 => 0x25d, 240 => 0x256, 241 => 0x25d, 245 => 0x2b5, 249 => 0x265, 255 => 0x2b5 }, 'isoauto' => { 332 => '14.4' }, 'isoautohilimit' => { 243 => 0x18eb, 244 => 0xe82, 253 => 0x185d }, 'isoautomax' => { 415 => 0x4 }, 'isoautomin' => { 415 => 0x2 }, 'isoautoparameters' => { 351 => 0x7a }, 'isoautoshuttertime' => { 243 => 0x18ea, 244 => 0xe81, 253 => 0x185c }, 'isodisplay' => { 279 => '4.1', 280 => '4.1', 281 => '2.3', 282 => '3.3', 283 => '3.3', 286 => '3.3', 289 => '4.3', 290 => '4.1', 291 => '4.3' }, 'isofloor' => { 332 => 0x6 }, 'isoselected' => { 315 => 0x359 }, 'isosensitivitystep' => { 284 => '6.2', 286 => '6.2' }, 'isosetting' => { 139 => 0x5e, 151 => 0x14, 155 => 'ISOSetting', 180 => 0x24, 181 => 0x26, 182 => 0x1c, 183 => 0x13, 188 => 0x6, 224 => 0x13, 332 => '17.3', 382 => 0x27, 403 => 0x16, 404 => 0x14, 405 => 0x2, 414 => 0x6d, 415 => 0x0 }, 'isospeed' => { 118 => 0x8833, 480 => 'ISOSpeed' }, 'isospeedlatitudeyyy' => { 118 => 0x8834, 480 => 'ISOSpeedLatitudeyyy' }, 'isospeedlatitudezzz' => { 118 => 0x8835, 480 => 'ISOSpeedLatitudezzz' }, 'isostepsize' => { 276 => '6.1', 277 => '7.2', 279 => '7.2', 280 => '7.2', 285 => '4.1', 289 => '7.2', 290 => '7.2' }, 'isovalue' => { 298 => 0x1001 }, 'isrccode' => { 376 => "\xa9isr" }, 'issn' => { 489 => 'issn' }, 'issueidentifier' => { 489 => 'issueIdentifier' }, 'issuename' => { 489 => 'issueName' }, 'issueteaser' => { 489 => 'issueTeaser' }, 'issuetype' => { 489 => 'issueType' }, 'istranslationof' => { 489 => 'isTranslationOf' }, 'itunesu' => { 368 => 'itnu' }, 'jobname' => { 481 => 'JobName' }, 'jobref' => { 498 => 'JobRef' }, 'jobrefid' => { 498 => [\'JobRef','JobRefId'] }, 'jobrefname' => { 498 => [\'JobRef','JobRefName'] }, 'jobrefurl' => { 498 => [\'JobRef','JobRefUrl'] }, 'jobstatus' => { 481 => 'JobStatus' }, 'jpeg-heifswitch' => { 416 => 0x2039 }, 'jpeghandling' => { 473 => 'JPEGHandling', 475 => 'JPEGHandling' }, 'jpegquality' => { 10 => 0x66, 316 => 0x43, 318 => 0x3034, 416 => 0xb047 }, 'jpegsize' => { 318 => 0x303a }, 'jpgcompression' => { 244 => 0x7d4 }, 'jpgfromraw' => { 96 => 0x2007, 113 => 'Exif-JpgFromRaw', 321 => 0x2e }, 'jpgrecordedpixels' => { 332 => '14.1' }, 'jurisdiction' => { 471 => 'jurisdiction' }, 'kelvinwb_01' => { 340 => 0x5 }, 'kelvinwb_02' => { 340 => 0x9 }, 'kelvinwb_03' => { 340 => 0xd }, 'kelvinwb_04' => { 340 => 0x11 }, 'kelvinwb_05' => { 340 => 0x15 }, 'kelvinwb_06' => { 340 => 0x19 }, 'kelvinwb_07' => { 340 => 0x1d }, 'kelvinwb_08' => { 340 => 0x21 }, 'kelvinwb_09' => { 340 => 0x25 }, 'kelvinwb_10' => { 340 => 0x29 }, 'kelvinwb_11' => { 340 => 0x2d }, 'kelvinwb_12' => { 340 => 0x31 }, 'kelvinwb_13' => { 340 => 0x35 }, 'kelvinwb_14' => { 340 => 0x39 }, 'kelvinwb_15' => { 340 => 0x3d }, 'kelvinwb_16' => { 340 => 0x41 }, 'kelvinwb_daylight' => { 340 => 0x1 }, 'key' => { 499 => 'key' }, 'keystonecompensation' => { 297 => 0x1900 }, 'keystonedirection' => { 297 => 0x1901 }, 'keystonevalue' => { 297 => 0x1906 }, 'keyword' => { 368 => 'keyw', 489 => 'keyword' }, 'keywords' => { 130 => 0x19, 156 => 'Keywords', 302 => 'Keywords', 367 => 'Keywords', 370 => 'keywords', 468 => 'keywords', 486 => 'Keywords', 497 => 'Keywords' }, 'killdate' => { 489 => 'killDate' }, 'killdatea-platform' => { 489 => [\'killDate','killDateA-platform'] }, 'killdatedate' => { 489 => [\'killDate','killDateDate'] }, 'label' => { 306 => 'Label', 497 => 'Label' }, 'labelname1' => { 483 => [\'TagStructure','TagStructureLabelName'] }, 'labelname2' => { 483 => [\'TagStructure','TagStructureSubLabelsLabelName'] }, 'labelname3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsLabelName'] }, 'labelname4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsLabelName'] }, 'labelname5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, 'labelname6' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsLabelName'] }, 'landmark' => { 316 => 0x6f }, 'language' => { 476 => 'language' }, 'largestvalidinteriorrectheight' => { 461 => 'LargestValidInteriorRectHeight' }, 'largestvalidinteriorrectleft' => { 461 => 'LargestValidInteriorRectLeft' }, 'largestvalidinteriorrecttop' => { 461 => 'LargestValidInteriorRectTop' }, 'largestvalidinteriorrectwidth' => { 461 => 'LargestValidInteriorRectWidth' }, 'lastphotodate' => { 461 => 'LastPhotoDate' }, 'lasturl' => { 500 => 'LastURL' }, 'lateralchromaticaberration' => { 416 => 0x2012 }, 'lateralchromaticaberrationcorrectionalreadyapplied' => { 470 => 'LateralChromaticAberrationCorrectionAlreadyApplied' }, 'lc1' => { 342 => 0x2 }, 'lc10' => { 342 => 0xb }, 'lc11' => { 342 => 0xc }, 'lc12' => { 342 => 0xd }, 'lc14' => { 342 => 0xf }, 'lc15' => { 342 => 0x10 }, 'lc3' => { 342 => 0x4 }, 'lc4' => { 342 => 0x5 }, 'lc5' => { 342 => 0x6 }, 'lc6' => { 342 => 0x7 }, 'lc7' => { 342 => 0x8 }, 'lc8' => { 342 => 0x9 }, 'lcdillumination' => { 276 => '17.5', 277 => '5.2', 279 => '5.1', 280 => '5.1', 285 => '10.3', 286 => '4.2', 289 => '5.2', 290 => '5.1', 291 => '5.4' }, 'lcheditor' => { 269 => 0x8ae85e }, 'legacyiptcdigest' => { 487 => 'LegacyIPTCDigest' }, 'legalcode' => { 471 => 'legalcode' }, 'lens' => { 118 => 0xfdea, 224 => 0x84, 470 => 'Lens' }, 'lensaperturerange' => { 393 => [0x30,0x48] }, 'lenscorrectionsettings' => { 478 => 'LensCorrectionSettings' }, 'lensdistortinfo' => { 470 => 'LensDistortInfo' }, 'lensdistortionparams' => { 298 => 0x206 }, 'lense-mountversion' => { 405 => 0x3f0, 449 => 0xd }, 'lensfirmware' => { 384 => 0x20, 390 => 0xa004 }, 'lensfirmwareversion' => { 294 => 0x204, 316 => 0x60, 405 => 0x3f3, 449 => 0x14 }, 'lensfocallength' => { 102 => 0xf0512, 342 => 0x9 }, 'lensfocalrange' => { 393 => [0xa,0x2a] }, 'lensfocusfunctionbuttons' => { 277 => '55.1', 279 => '52.1', 280 => '52.1', 289 => '52.1', 290 => '52.1' }, 'lensformat' => { 428 => 0x1891, 430 => 0x18bd, 431 => 0x18ed, 432 => 0x17f1, 434 => 0x106, 435 => 0x106, 445 => 0x603, 446 => 0x5d }, 'lensfstops' => { 216 => 0x7, 217 => 0xc, 218 => 0xd, 222 => 0xe, 224 => 0x8b, 342 => '0.3' }, 'lensid' => { 222 => 0x30, 470 => 'LensID' }, 'lensinfo' => { 118 => 0xa432, 348 => 0x2a, 470 => 'LensInfo', 480 => 'LensSpecification' }, 'lenskind' => { 342 => 0x1 }, 'lensmake' => { 118 => 0xa433, 162 => 'Make', 480 => 'LensMake' }, 'lensmanualdistortionamount' => { 473 => 'LensManualDistortionAmount', 475 => 'LensManualDistortionAmount' }, 'lensmaxaperturerange' => { 393 => 0x2b }, 'lensmodel' => { 7 => 0x937, 14 => 0x92b, 15 => 0x933, 63 => 0x95, 118 => 0xa434, 162 => 'Model', 177 => 'LensModel', 219 => 0x18a, 220 => 0x18b, 221 => 0x2ac, 294 => 0x203, 348 => 0xc, 360 => 0x412, 480 => 'LensModel' }, 'lensmount' => { 405 => 0x99, 428 => 0x1892, 430 => 0x18be, 431 => 0x18ee, 432 => 0x17f2, 434 => 0x105, 435 => 0x105, 445 => 0x604, 446 => 0x5e }, 'lensmount2' => { 449 => 0x8 }, 'lensprofilechromaticaberrationscale' => { 473 => 'LensProfileChromaticAberrationScale', 475 => 'LensProfileChromaticAberrationScale' }, 'lensprofiledigest' => { 473 => 'LensProfileDigest', 475 => 'LensProfileDigest' }, 'lensprofiledistortionscale' => { 473 => 'LensProfileDistortionScale', 475 => 'LensProfileDistortionScale' }, 'lensprofileenable' => { 473 => 'LensProfileEnable', 475 => 'LensProfileEnable' }, 'lensprofilefilename' => { 473 => 'LensProfileFilename', 475 => 'LensProfileFilename' }, 'lensprofileisembedded' => { 473 => 'LensProfileIsEmbedded', 475 => 'LensProfileIsEmbedded' }, 'lensprofilematchkeycameramodelname' => { 473 => 'LensProfileMatchKeyCameraModelName', 475 => 'LensProfileMatchKeyCameraModelName' }, 'lensprofilematchkeyexifmake' => { 473 => 'LensProfileMatchKeyExifMake', 475 => 'LensProfileMatchKeyExifMake' }, 'lensprofilematchkeyexifmodel' => { 473 => 'LensProfileMatchKeyExifModel', 475 => 'LensProfileMatchKeyExifModel' }, 'lensprofilematchkeyisraw' => { 473 => 'LensProfileMatchKeyIsRaw', 475 => 'LensProfileMatchKeyIsRaw' }, 'lensprofilematchkeylensid' => { 473 => 'LensProfileMatchKeyLensID', 475 => 'LensProfileMatchKeyLensID' }, 'lensprofilematchkeylensinfo' => { 473 => 'LensProfileMatchKeyLensInfo', 475 => 'LensProfileMatchKeyLensInfo' }, 'lensprofilematchkeylensname' => { 473 => 'LensProfileMatchKeyLensName', 475 => 'LensProfileMatchKeyLensName' }, 'lensprofilematchkeysensorformatfactor' => { 473 => 'LensProfileMatchKeySensorFormatFactor', 475 => 'LensProfileMatchKeySensorFormatFactor' }, 'lensprofilename' => { 473 => 'LensProfileName', 475 => 'LensProfileName' }, 'lensprofilesetup' => { 473 => 'LensProfileSetup', 475 => 'LensProfileSetup' }, 'lensprofilevignettingscale' => { 473 => 'LensProfileVignettingScale', 475 => 'LensProfileVignettingScale' }, 'lensproperties' => { 294 => 0x20b }, 'lensserialnumber' => { 21 => 0x164, 32 => 0x16b, 61 => 0x0, 118 => 0xa435, 162 => 'SerialNumber', 294 => 0x202, 314 => 0x321, 316 => 0x52, 376 => 'LENS', 384 => 0x30, 470 => 'LensSerialNumber', 480 => 'LensSerialNumber' }, 'lensspec' => { 400 => 0x0, 401 => 0x0, 402 => 0x0, 416 => 0xb02a }, 'lensspecfeatures' => { 434 => [0x115,0x116], 435 => [0x116,0x1ed,0x1f0,0x21c,0x21e] }, 'lenstemperature' => { 298 => 0x1008 }, 'lenstype' => { 7 => 0xe2, 8 => 0xd, 9 => 0x1a7, 10 => 0xc, 11 => 0x111, 12 => 0xc, 13 => 0x14f, 14 => 0xd6, 15 => 0xde, 16 => 0xf6, 17 => 0xea, 18 => 0xff, 19 => [0xc,0x97], 20 => 0xe6, 21 => 0x153, 22 => 0xea, 23 => 0xe8, 24 => 0x127, 25 => 0x161, 26 => 0x166, 27 => 0x184, 28 => 0x112, 29 => 0x189, 34 => 0x16, 185 => 0x10c, 186 => 0x49bd, 224 => 0x83, 294 => 0x201, 307 => 0x16, 311 => 0x310, 313 => 0x303, 314 => 0x303, 316 => 0x51, 318 => 0x3405, 343 => 0x0, 344 => 0x0, 345 => 0x1, 346 => 0x1, 347 => 0x1, 349 => 0x0, 390 => 0xa003, 393 => 0x27, 416 => 0xb027, 428 => 0x1896, 430 => 0x18c2, 431 => 0x18f2, 432 => 0x17f6, 434 => 0x109, 435 => 0x109, 445 => 0x608, 446 => 0x62 }, 'lenstype2' => { 405 => 0x3f7, 428 => 0x1893, 430 => 0x18bf, 431 => 0x18ef, 432 => 0x17f3, 434 => 0x107, 435 => 0x107, 445 => 0x605, 446 => 0x60 }, 'lenstype3' => { 449 => 0x9 }, 'lenstypemake' => { 316 => 0xc4 }, 'lenstypemodel' => { 316 => [0xc5,0xe4] }, 'lenszoomposition' => { 442 => 0x19, 443 => 0x1e, 446 => [0x342,0x34e,0x35a] }, 'levelindicator' => { 324 => 0x15 }, 'levelmeter' => { 376 => ['Lvlm','lvlm'] }, 'levelorientation' => { 350 => 0x0 }, 'license' => { 471 => 'license' }, 'licensee' => { 303 => 'Licensee' }, 'licenseeid' => { 303 => [\'Licensee','LicenseeLicenseeID'] }, 'licenseeimageid' => { 303 => 'LicenseeImageID' }, 'licenseeimagenotes' => { 303 => 'LicenseeImageNotes' }, 'licenseename' => { 303 => [\'Licensee','LicenseeLicenseeName'] }, 'licenseenddate' => { 303 => 'LicenseEndDate' }, 'licenseeprojectreference' => { 303 => 'LicenseeProjectReference' }, 'licenseetransactionid' => { 303 => 'LicenseeTransactionID' }, 'licenseid' => { 303 => 'LicenseID' }, 'licensestartdate' => { 303 => 'LicenseStartDate' }, 'licensetransactiondate' => { 303 => 'LicenseTransactionDate' }, 'licensetype' => { 477 => 'licensetype' }, 'licensor' => { 303 => 'Licensor' }, 'licensorcity' => { 303 => [\'Licensor','LicensorLicensorCity'] }, 'licensorcountry' => { 303 => [\'Licensor','LicensorLicensorCountry'] }, 'licensoremail' => { 303 => [\'Licensor','LicensorLicensorEmail'] }, 'licensorextendedaddress' => { 303 => [\'Licensor','LicensorLicensorExtendedAddress'] }, 'licensorid' => { 303 => [\'Licensor','LicensorLicensorID'] }, 'licensorimageid' => { 303 => 'LicensorImageID' }, 'licensorname' => { 303 => [\'Licensor','LicensorLicensorName'] }, 'licensornotes' => { 303 => 'LicensorNotes' }, 'licensorpostalcode' => { 303 => [\'Licensor','LicensorLicensorPostalCode'] }, 'licensorregion' => { 303 => [\'Licensor','LicensorLicensorRegion'] }, 'licensorstreetaddress' => { 303 => [\'Licensor','LicensorLicensorStreetAddress'] }, 'licensortelephone1' => { 303 => [\'Licensor','LicensorLicensorTelephone1'] }, 'licensortelephone2' => { 303 => [\'Licensor','LicensorLicensorTelephone2'] }, 'licensortelephonetype1' => { 303 => [\'Licensor','LicensorLicensorTelephoneType1'] }, 'licensortelephonetype2' => { 303 => [\'Licensor','LicensorLicensorTelephoneType2'] }, 'licensortransactionid' => { 303 => 'LicensorTransactionID' }, 'licensorurl' => { 303 => [\'Licensor','LicensorLicensorURL'] }, 'lightcondition' => { 298 => 0x1009 }, 'lightreading' => { 351 => 0x15 }, 'lightsource' => { 118 => 0x9208, 224 => 0x90, 301 => 0x1000, 479 => 'LightSource' }, 'lightsourcespecial' => { 392 => 0x21d }, 'lightswitch' => { 289 => '0.1', 291 => '0.1' }, 'lightvaluecenter' => { 298 => 0x103d }, 'lightvalueperiphery' => { 298 => 0x103e }, 'limitafareamodeselection' => { 277 => '51.1', 279 => '49.1', 280 => '49.1', 289 => '49.1', 290 => '49.1' }, 'linearitylimitblue' => { 321 => 0x10 }, 'linearitylimitgreen' => { 321 => 0xf }, 'linearitylimitred' => { 321 => 0xe }, 'link' => { 489 => 'link' }, 'linkaetoafpoint' => { 332 => '14.2' }, 'linkedencodedrightsexpr' => { 485 => [\'LinkedEncRightsExpr','LinkedEncRightsExprLinkedRightsExpr'] }, 'linkedencodedrightsexprlangid' => { 485 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprLangId'] }, 'linkedencodedrightsexprtype' => { 485 => [\'LinkedEncRightsExpr','LinkedEncRightsExprRightsExprEncType'] }, 'linkedencrightsexpr' => { 485 => 'LinkedEncRightsExpr' }, 'livephotoauto' => { 370 => 'live-photo.auto' }, 'livephotovitalityscore' => { 370 => 'live-photo.vitality-score' }, 'livephotovitalityscoringversion' => { 370 => 'live-photo.vitality-scoring-version' }, 'liveviewaf' => { 281 => '32.1', 291 => '34.1' }, 'liveviewafareamode' => { 286 => '34.1' }, 'liveviewafmethod' => { 421 => 0x20 }, 'liveviewafmode' => { 286 => '34.2' }, 'liveviewafsetting' => { 405 => 0x36 }, 'liveviewbuttonoptions' => { 277 => '50.2', 279 => '48.2', 280 => '48.2', 289 => '48.2', 290 => '48.2' }, 'liveviewfocusmode' => { 405 => [0x8b,0x28b] }, 'liveviewmetering' => { 405 => [0x84,0x284] }, 'liveviewmonitorofftime' => { 277 => '21.2', 279 => '21.2', 280 => '21.2', 282 => '20.2', 283 => '20.2', 284 => '20.2', 286 => '20.2', 289 => '21.2', 290 => '21.2' }, 'locallocationname' => { 390 => 0x30 }, 'location' => { 223 => 0x9, 316 => 0x67, 466 => 'Location', 484 => 'Location', 488 => 'location', 489 => 'location' }, 'locationaccuracyhorizontal' => { 370 => 'location.accuracy.horizontal' }, 'locationareacode' => { 472 => 'lac' }, 'locationbody' => { 370 => 'location.body' }, 'locationcreated' => { 485 => 'LocationCreated' }, 'locationcreatedcity' => { 485 => [\'LocationCreated','LocationCreatedCity'] }, 'locationcreatedcountrycode' => { 485 => [\'LocationCreated','LocationCreatedCountryCode'] }, 'locationcreatedcountryname' => { 485 => [\'LocationCreated','LocationCreatedCountryName'] }, 'locationcreatedgpsaltitude' => { 485 => [\'LocationCreated','LocationCreatedGPSAltitude'] }, 'locationcreatedgpslatitude' => { 485 => [\'LocationCreated','LocationCreatedGPSLatitude'] }, 'locationcreatedgpslongitude' => { 485 => [\'LocationCreated','LocationCreatedGPSLongitude'] }, 'locationcreatedidentifier' => { 485 => [\'LocationCreated','LocationCreatedIdentifier'] }, 'locationcreatedlocationid' => { 485 => [\'LocationCreated','LocationCreatedLocationId'] }, 'locationcreatedlocationname' => { 485 => [\'LocationCreated','LocationCreatedLocationName'] }, 'locationcreatedprovincestate' => { 485 => [\'LocationCreated','LocationCreatedProvinceState'] }, 'locationcreatedsublocation' => { 485 => [\'LocationCreated','LocationCreatedSublocation'] }, 'locationcreatedworldregion' => { 485 => [\'LocationCreated','LocationCreatedWorldRegion'] }, 'locationdate' => { 370 => 'location.date' }, 'locationinformation' => { 376 => 'loci' }, 'locationname' => { 370 => 'location.name', 390 => 0x31 }, 'locationnote' => { 370 => 'location.note' }, 'locationrole' => { 370 => 'location.role' }, 'locationshown' => { 485 => 'LocationShown' }, 'locationshowncity' => { 485 => [\'LocationShown','LocationShownCity'] }, 'locationshowncountrycode' => { 485 => [\'LocationShown','LocationShownCountryCode'] }, 'locationshowncountryname' => { 485 => [\'LocationShown','LocationShownCountryName'] }, 'locationshowngpsaltitude' => { 485 => [\'LocationShown','LocationShownGPSAltitude'] }, 'locationshowngpslatitude' => { 485 => [\'LocationShown','LocationShownGPSLatitude'] }, 'locationshowngpslongitude' => { 485 => [\'LocationShown','LocationShownGPSLongitude'] }, 'locationshownidentifier' => { 485 => [\'LocationShown','LocationShownIdentifier'] }, 'locationshownlocationid' => { 485 => [\'LocationShown','LocationShownLocationId'] }, 'locationshownlocationname' => { 485 => [\'LocationShown','LocationShownLocationName'] }, 'locationshownprovincestate' => { 485 => [\'LocationShown','LocationShownProvinceState'] }, 'locationshownsublocation' => { 485 => [\'LocationShown','LocationShownSublocation'] }, 'locationshownworldregion' => { 485 => [\'LocationShown','LocationShownWorldRegion'] }, 'logcomment' => { 499 => 'logComment' }, 'longdescription' => { 368 => 'ldes' }, 'longexposurenoisereduction' => { 62 => 0x4, 83 => 0x201, 84 => 0x1, 85 => 0x2, 86 => 0x1, 87 => 0x1, 88 => 0x2, 89 => 0x1, 316 => 0x49, 403 => 0x2b, 404 => 0x25, 405 => 0x25, 416 => 0x2008, 421 => 0x11, 446 => 0x44 }, 'longexposurenrused' => { 316 => 0xbe }, 'look' => { 473 => 'Look', 475 => 'Look' }, 'lookamount' => { 473 => [\'Look','LookAmount'], 475 => [\'Look','LookAmount'] }, 'lookcluster' => { 473 => [\'Look','LookCluster'], 475 => [\'Look','LookCluster'] }, 'lookcopyright' => { 473 => [\'Look','LookCopyright'], 475 => [\'Look','LookCopyright'] }, 'lookgroup' => { 473 => [\'Look','LookGroup'], 475 => [\'Look','LookGroup'] }, 'lookname' => { 473 => 'LookName', 475 => 'LookName' }, 'lookparameters' => { 473 => [\'Look','LookParameters'], 475 => [\'Look','LookParameters'] }, 'lookparameterscameraprofile' => { 473 => [\'Look','LookParametersCameraProfile'], 475 => [\'Look','LookParametersCameraProfile'] }, 'lookparametersclarity2012' => { 473 => [\'Look','LookParametersClarity2012'], 475 => [\'Look','LookParametersClarity2012'] }, 'lookparametersconverttograyscale' => { 473 => [\'Look','LookParametersConvertToGrayscale'], 475 => [\'Look','LookParametersConvertToGrayscale'] }, 'lookparameterslooktable' => { 473 => [\'Look','LookParametersLookTable'], 475 => [\'Look','LookParametersLookTable'] }, 'lookparametersprocessversion' => { 473 => [\'Look','LookParametersProcessVersion'], 475 => [\'Look','LookParametersProcessVersion'] }, 'lookparameterstonecurvepv2012' => { 473 => [\'Look','LookParametersToneCurvePV2012'], 475 => [\'Look','LookParametersToneCurvePV2012'] }, 'lookparameterstonecurvepv2012blue' => { 473 => [\'Look','LookParametersToneCurvePV2012Blue'], 475 => [\'Look','LookParametersToneCurvePV2012Blue'] }, 'lookparameterstonecurvepv2012green' => { 473 => [\'Look','LookParametersToneCurvePV2012Green'], 475 => [\'Look','LookParametersToneCurvePV2012Green'] }, 'lookparameterstonecurvepv2012red' => { 473 => [\'Look','LookParametersToneCurvePV2012Red'], 475 => [\'Look','LookParametersToneCurvePV2012Red'] }, 'lookparametersversion' => { 473 => [\'Look','LookParametersVersion'], 475 => [\'Look','LookParametersVersion'] }, 'looksupportsamount' => { 473 => [\'Look','LookSupportsAmount'], 475 => [\'Look','LookSupportsAmount'] }, 'looksupportsmonochrome' => { 473 => [\'Look','LookSupportsMonochrome'], 475 => [\'Look','LookSupportsMonochrome'] }, 'looksupportsoutputreferred' => { 473 => [\'Look','LookSupportsOutputReferred'], 475 => [\'Look','LookSupportsOutputReferred'] }, 'lookuuid' => { 473 => [\'Look','LookUUID'], 475 => [\'Look','LookUUID'] }, 'loop' => { 499 => 'loop' }, 'loopstyle' => { 376 => 'LOOP' }, 'luminanceadjustmentaqua' => { 473 => 'LuminanceAdjustmentAqua', 475 => 'LuminanceAdjustmentAqua' }, 'luminanceadjustmentblue' => { 473 => 'LuminanceAdjustmentBlue', 475 => 'LuminanceAdjustmentBlue' }, 'luminanceadjustmentgreen' => { 473 => 'LuminanceAdjustmentGreen', 475 => 'LuminanceAdjustmentGreen' }, 'luminanceadjustmentmagenta' => { 473 => 'LuminanceAdjustmentMagenta', 475 => 'LuminanceAdjustmentMagenta' }, 'luminanceadjustmentorange' => { 473 => 'LuminanceAdjustmentOrange', 475 => 'LuminanceAdjustmentOrange' }, 'luminanceadjustmentpurple' => { 473 => 'LuminanceAdjustmentPurple', 475 => 'LuminanceAdjustmentPurple' }, 'luminanceadjustmentred' => { 473 => 'LuminanceAdjustmentRed', 475 => 'LuminanceAdjustmentRed' }, 'luminanceadjustmentyellow' => { 473 => 'LuminanceAdjustmentYellow', 475 => 'LuminanceAdjustmentYellow' }, 'luminancenoisereduction' => { 102 => 0x20600, 108 => 0x5f, 393 => 0x1b }, 'luminancenoisereductioncontrast' => { 473 => 'LuminanceNoiseReductionContrast', 475 => 'LuminanceNoiseReductionContrast' }, 'luminancenoisereductiondetail' => { 473 => 'LuminanceNoiseReductionDetail', 475 => 'LuminanceNoiseReductionDetail' }, 'luminancesmoothing' => { 473 => 'LuminanceSmoothing', 475 => 'LuminanceSmoothing' }, 'lyrics' => { 368 => "\xa9lyr", 376 => "\xa9lyr", 499 => 'lyrics' }, 'lyricsuri' => { 376 => 'lrcu' }, 'm16cversion' => { 311 => 0x333 }, 'macatom' => { 474 => 'macAtom' }, 'macatomapplicationcode' => { 474 => [\'macAtom','macAtomApplicationCode'] }, 'macatominvocationappleevent' => { 474 => [\'macAtom','macAtomInvocationAppleEvent'] }, 'macatomposixprojectpath' => { 474 => [\'macAtom','macAtomPosixProjectPath'] }, 'macro' => { 126 => 0x1020, 128 => 0x202, 150 => 0x2b, 298 => 0x202, 382 => 0x21, 392 => 0x202, 416 => 0xb040 }, 'macroled' => { 296 => 0x120a }, 'macromode' => { 34 => 0x1, 180 => 0xb, 293 => 0x300, 316 => 0x1c, 383 => 0x1009 }, 'magicfilter' => { 293 => 0x52c }, 'maindialexposurecomp' => { 287 => '0.6' }, 'mainingredient' => { 491 => 'mainIngredient' }, 'majorversion' => { 464 => 'MajorVersion' }, 'make' => { 97 => 0x0, 114 => 0x1, 118 => 0x10f, 155 => 'Make', 306 => 'Make', 321 => 0x10f, 370 => 'make', 376 => ['@mak',"\xa9mak"], 488 => 'make', 495 => 'Make' }, 'makernote' => { 479 => 'MakerNote' }, 'makernoteoffset' => { 392 => 0xff }, 'makernotepentaxunknown' => { 376 => 'PXMN' }, 'makernotetype' => { 383 => 0x1 }, 'makernoteversion' => { 185 => 0x0, 224 => 0x1, 298 => 0x0, 316 => 0x8000, 387 => 0x0, 390 => 0x1, 393 => [0x1d,0x1f], 406 => 0x2000 }, 'makerurl' => { 376 => "\xa9mal" }, 'managedfrom' => { 500 => 'ManagedFrom' }, 'managedfromalternatepaths' => { 500 => [\'ManagedFrom','ManagedFromAlternatePaths'] }, 'managedfromdocumentid' => { 500 => [\'ManagedFrom','ManagedFromDocumentID'] }, 'managedfromfilepath' => { 500 => [\'ManagedFrom','ManagedFromFilePath'] }, 'managedfromfrompart' => { 500 => [\'ManagedFrom','ManagedFromFromPart'] }, 'managedfrominstanceid' => { 500 => [\'ManagedFrom','ManagedFromInstanceID'] }, 'managedfromlastmodifydate' => { 500 => [\'ManagedFrom','ManagedFromLastModifyDate'] }, 'managedfromlasturl' => { 500 => [\'ManagedFrom','ManagedFromLastURL'] }, 'managedfromlinkcategory' => { 500 => [\'ManagedFrom','ManagedFromLinkCategory'] }, 'managedfromlinkform' => { 500 => [\'ManagedFrom','ManagedFromLinkForm'] }, 'managedfrommanager' => { 500 => [\'ManagedFrom','ManagedFromManager'] }, 'managedfrommanagervariant' => { 500 => [\'ManagedFrom','ManagedFromManagerVariant'] }, 'managedfrommanageto' => { 500 => [\'ManagedFrom','ManagedFromManageTo'] }, 'managedfrommanageui' => { 500 => [\'ManagedFrom','ManagedFromManageUI'] }, 'managedfrommaskmarkers' => { 500 => [\'ManagedFrom','ManagedFromMaskMarkers'] }, 'managedfromoriginaldocumentid' => { 500 => [\'ManagedFrom','ManagedFromOriginalDocumentID'] }, 'managedfrompartmapping' => { 500 => [\'ManagedFrom','ManagedFromPartMapping'] }, 'managedfromplacedresolutionunit' => { 500 => [\'ManagedFrom','ManagedFromPlacedResolutionUnit'] }, 'managedfromplacedxresolution' => { 500 => [\'ManagedFrom','ManagedFromPlacedXResolution'] }, 'managedfromplacedyresolution' => { 500 => [\'ManagedFrom','ManagedFromPlacedYResolution'] }, 'managedfromrenditionclass' => { 500 => [\'ManagedFrom','ManagedFromRenditionClass'] }, 'managedfromrenditionparams' => { 500 => [\'ManagedFrom','ManagedFromRenditionParams'] }, 'managedfromtopart' => { 500 => [\'ManagedFrom','ManagedFromToPart'] }, 'managedfromversionid' => { 500 => [\'ManagedFrom','ManagedFromVersionID'] }, 'manager' => { 500 => 'Manager' }, 'managervariant' => { 500 => 'ManagerVariant' }, 'manageto' => { 500 => 'ManageTo' }, 'manageui' => { 500 => 'ManageUI' }, 'manifest' => { 500 => 'Manifest' }, 'manifestlinkform' => { 500 => [\'Manifest','ManifestLinkForm'] }, 'manifestplacedresolutionunit' => { 500 => [\'Manifest','ManifestPlacedResolutionUnit'] }, 'manifestplacedxresolution' => { 500 => [\'Manifest','ManifestPlacedXResolution'] }, 'manifestplacedyresolution' => { 500 => [\'Manifest','ManifestPlacedYResolution'] }, 'manifestreference' => { 500 => [\'Manifest','ManifestReference'] }, 'manifestreferencealternatepaths' => { 500 => [\'Manifest','ManifestReferenceAlternatePaths'] }, 'manifestreferencedocumentid' => { 500 => [\'Manifest','ManifestReferenceDocumentID'] }, 'manifestreferencefilepath' => { 500 => [\'Manifest','ManifestReferenceFilePath'] }, 'manifestreferencefrompart' => { 500 => [\'Manifest','ManifestReferenceFromPart'] }, 'manifestreferenceinstanceid' => { 500 => [\'Manifest','ManifestReferenceInstanceID'] }, 'manifestreferencelastmodifydate' => { 500 => [\'Manifest','ManifestReferenceLastModifyDate'] }, 'manifestreferencelasturl' => { 500 => [\'Manifest','ManifestReferenceLastURL'] }, 'manifestreferencelinkcategory' => { 500 => [\'Manifest','ManifestReferenceLinkCategory'] }, 'manifestreferencelinkform' => { 500 => [\'Manifest','ManifestReferenceLinkForm'] }, 'manifestreferencemanager' => { 500 => [\'Manifest','ManifestReferenceManager'] }, 'manifestreferencemanagervariant' => { 500 => [\'Manifest','ManifestReferenceManagerVariant'] }, 'manifestreferencemanageto' => { 500 => [\'Manifest','ManifestReferenceManageTo'] }, 'manifestreferencemanageui' => { 500 => [\'Manifest','ManifestReferenceManageUI'] }, 'manifestreferencemaskmarkers' => { 500 => [\'Manifest','ManifestReferenceMaskMarkers'] }, 'manifestreferenceoriginaldocumentid' => { 500 => [\'Manifest','ManifestReferenceOriginalDocumentID'] }, 'manifestreferencepartmapping' => { 500 => [\'Manifest','ManifestReferencePartMapping'] }, 'manifestreferenceplacedresolutionunit' => { 500 => [\'Manifest','ManifestReferencePlacedResolutionUnit'] }, 'manifestreferenceplacedxresolution' => { 500 => [\'Manifest','ManifestReferencePlacedXResolution'] }, 'manifestreferenceplacedyresolution' => { 500 => [\'Manifest','ManifestReferencePlacedYResolution'] }, 'manifestreferencerenditionclass' => { 500 => [\'Manifest','ManifestReferenceRenditionClass'] }, 'manifestreferencerenditionparams' => { 500 => [\'Manifest','ManifestReferenceRenditionParams'] }, 'manifestreferencetopart' => { 500 => [\'Manifest','ManifestReferenceToPart'] }, 'manifestreferenceversionid' => { 500 => [\'Manifest','ManifestReferenceVersionID'] }, 'manometerpressure' => { 293 => 0x900, 316 => 0x86 }, 'manometerreading' => { 293 => 0x901 }, 'manualflash' => { 296 => 0x1209 }, 'manualflashoutput' => { 34 => 0x29, 278 => '8.2', 281 => '22.2', 282 => '23.1', 283 => '23.2', 285 => '16.2', 286 => '23.2', 287 => '8.2', 288 => '23.2', 291 => '24.2', 383 => 0x100c }, 'manualflashstrength' => { 293 => 0x406 }, 'manualfocusdistance' => { 224 => 0x85, 298 => 0x100c, 392 => 0x223 }, 'manufacturedate' => { 190 => 0x6705, 331 => 0x1 }, 'manufacturedate1' => { 385 => 0x4 }, 'manufacturedate2' => { 385 => 0x5 }, 'manufacturer' => { 458 => 'Manufacturer', 488 => 'manufacturer' }, 'marked' => { 486 => 'Marked', 503 => 'Marked' }, 'markers' => { 499 => 'markers' }, 'markerscomment' => { 499 => [\'markers','markersComment'] }, 'markerscuepointparams' => { 499 => [\'markers','markersCuePointParams'] }, 'markerscuepointparamskey' => { 499 => [\'markers','markersCuePointParamsKey'] }, 'markerscuepointparamsvalue' => { 499 => [\'markers','markersCuePointParamsValue'] }, 'markerscuepointtype' => { 499 => [\'markers','markersCuePointType'] }, 'markersduration' => { 499 => [\'markers','markersDuration'] }, 'markerslocation' => { 499 => [\'markers','markersLocation'] }, 'markersname' => { 499 => [\'markers','markersName'] }, 'markersprobability' => { 499 => [\'markers','markersProbability'] }, 'markersspeaker' => { 499 => [\'markers','markersSpeaker'] }, 'markersstarttime' => { 499 => [\'markers','markersStartTime'] }, 'markerstarget' => { 499 => [\'markers','markersTarget'] }, 'markerstype' => { 499 => [\'markers','markersType'] }, 'maskgroupbasedcorractive' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionActive'] }, 'maskgroupbasedcorramount' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionAmount'] }, 'maskgroupbasedcorrblacks2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBlacks2012'] }, 'maskgroupbasedcorrbrightness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalBrightness'] }, 'maskgroupbasedcorrclarity' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity'] }, 'maskgroupbasedcorrclarity2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalClarity2012'] }, 'maskgroupbasedcorrcontrast' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast'] }, 'maskgroupbasedcorrcontrast2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalContrast2012'] }, 'maskgroupbasedcorrcorrectionname' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionName'] }, 'maskgroupbasedcorrcorrectionsyncid' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionSyncID'] }, 'maskgroupbasedcorrdefringe' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDefringe'] }, 'maskgroupbasedcorrdehaze' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalDehaze'] }, 'maskgroupbasedcorrections' => { 473 => 'MaskGroupBasedCorrections', 475 => 'MaskGroupBasedCorrections' }, 'maskgroupbasedcorrexposure' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure'] }, 'maskgroupbasedcorrexposure2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalExposure2012'] }, 'maskgroupbasedcorrhighlights2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHighlights2012'] }, 'maskgroupbasedcorrhue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalHue'] }, 'maskgroupbasedcorrluminancenoise' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalLuminanceNoise'] }, 'maskgroupbasedcorrmask' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasks'] }, 'maskgroupbasedcorrmaskalpha' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAlpha'] }, 'maskgroupbasedcorrmaskangle' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksAngle'] }, 'maskgroupbasedcorrmaskbottom' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksBottom'] }, 'maskgroupbasedcorrmaskcentervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterValue'] }, 'maskgroupbasedcorrmaskcenterweight' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCenterWeight'] }, 'maskgroupbasedcorrmaskdabs' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksDabs'] }, 'maskgroupbasedcorrmaskfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFeather'] }, 'maskgroupbasedcorrmaskflipped' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlipped'] }, 'maskgroupbasedcorrmaskflow' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFlow'] }, 'maskgroupbasedcorrmaskfullx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullX'] }, 'maskgroupbasedcorrmaskfully' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksFullY'] }, 'maskgroupbasedcorrmaskinputdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksInputDigest'] }, 'maskgroupbasedcorrmaskleft' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksLeft'] }, 'maskgroupbasedcorrmaskmaskactive' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskActive'] }, 'maskgroupbasedcorrmaskmaskblendmode' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'maskgroupbasedcorrmaskmaskdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskDigest'] }, 'maskgroupbasedcorrmaskmaskinverted' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskInverted'] }, 'maskgroupbasedcorrmaskmaskname' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskName'] }, 'maskgroupbasedcorrmaskmasks' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasks'] }, 'maskgroupbasedcorrmaskmasksalpha' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'maskgroupbasedcorrmaskmasksangle' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksAngle'] }, 'maskgroupbasedcorrmaskmasksbottom' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksBottom'] }, 'maskgroupbasedcorrmaskmaskscentervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'maskgroupbasedcorrmaskmaskscenterweight' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'maskgroupbasedcorrmaskmasksdabs' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksDabs'] }, 'maskgroupbasedcorrmaskmasksfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFeather'] }, 'maskgroupbasedcorrmaskmasksflipped' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'maskgroupbasedcorrmaskmasksflow' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFlow'] }, 'maskgroupbasedcorrmaskmasksfullx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullX'] }, 'maskgroupbasedcorrmaskmasksfully' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksFullY'] }, 'maskgroupbasedcorrmaskmasksinputdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'maskgroupbasedcorrmaskmasksleft' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksLeft'] }, 'maskgroupbasedcorrmaskmasksmaskactive' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'maskgroupbasedcorrmaskmasksmaskblendmode' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'maskgroupbasedcorrmaskmasksmaskdigest' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'maskgroupbasedcorrmaskmasksmaskinverted' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'maskgroupbasedcorrmaskmasksmaskname' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'maskgroupbasedcorrmaskmasksmasksubtype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'maskgroupbasedcorrmaskmasksmasksyncid' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'maskgroupbasedcorrmaskmasksmaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'maskgroupbasedcorrmaskmasksmidpoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'maskgroupbasedcorrmaskmasksorigin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'maskgroupbasedcorrmaskmasksperimetervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'maskgroupbasedcorrmaskmasksradius' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRadius'] }, 'maskgroupbasedcorrmaskmasksreferencepoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'maskgroupbasedcorrmaskmasksright' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRight'] }, 'maskgroupbasedcorrmaskmasksroundness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'maskgroupbasedcorrmaskmaskssizex' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'maskgroupbasedcorrmaskmaskssizey' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'maskgroupbasedcorrmaskmaskstop' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksTop'] }, 'maskgroupbasedcorrmaskmasksubtype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSubType'] }, 'maskgroupbasedcorrmaskmasksvalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'maskgroupbasedcorrmaskmasksversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksVersion'] }, 'maskgroupbasedcorrmaskmaskswhat' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWhat'] }, 'maskgroupbasedcorrmaskmaskswholeimagearea' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'maskgroupbasedcorrmaskmasksx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksX'] }, 'maskgroupbasedcorrmaskmasksy' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksY'] }, 'maskgroupbasedcorrmaskmasksyncid' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'maskgroupbasedcorrmaskmaskszerox' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'maskgroupbasedcorrmaskmaskszeroy' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'maskgroupbasedcorrmaskmaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskVersion'] }, 'maskgroupbasedcorrmaskmidpoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMidpoint'] }, 'maskgroupbasedcorrmaskorigin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksOrigin'] }, 'maskgroupbasedcorrmaskperimetervalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'maskgroupbasedcorrmaskradius' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRadius'] }, 'maskgroupbasedcorrmaskrange' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'maskgroupbasedcorrmaskrangeareamodels' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'maskgroupbasedcorrmaskrangeareamodelscolorsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'maskgroupbasedcorrmaskrangeareamodelscomponents' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'maskgroupbasedcorrmaskrangecoloramount' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'maskgroupbasedcorrmaskrangedepthfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'maskgroupbasedcorrmaskrangedepthmax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'maskgroupbasedcorrmaskrangedepthmin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'maskgroupbasedcorrmaskrangeinvert' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'maskgroupbasedcorrmaskrangelumfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'maskgroupbasedcorrmaskrangeluminancedepthsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'maskgroupbasedcorrmaskrangelummax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'maskgroupbasedcorrmaskrangelummin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'maskgroupbasedcorrmaskrangelumrange' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'maskgroupbasedcorrmaskrangesampletype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'maskgroupbasedcorrmaskrangetype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'maskgroupbasedcorrmaskrangeversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'maskgroupbasedcorrmaskreferencepoint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksReferencePoint'] }, 'maskgroupbasedcorrmaskright' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRight'] }, 'maskgroupbasedcorrmaskroundness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksRoundness'] }, 'maskgroupbasedcorrmasksizex' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeX'] }, 'maskgroupbasedcorrmasksizey' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksSizeY'] }, 'maskgroupbasedcorrmasktop' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksTop'] }, 'maskgroupbasedcorrmaskvalue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksMaskValue'] }, 'maskgroupbasedcorrmaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksVersion'] }, 'maskgroupbasedcorrmaskwhat' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWhat'] }, 'maskgroupbasedcorrmaskwholeimagearea' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'maskgroupbasedcorrmaskx' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksX'] }, 'maskgroupbasedcorrmasky' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksY'] }, 'maskgroupbasedcorrmaskzerox' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroX'] }, 'maskgroupbasedcorrmaskzeroy' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionMasksZeroY'] }, 'maskgroupbasedcorrmoire' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalMoire'] }, 'maskgroupbasedcorrrangemask' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMask'] }, 'maskgroupbasedcorrrangemaskareamodels' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'maskgroupbasedcorrrangemaskareamodelscolorsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'maskgroupbasedcorrrangemaskareamodelscomponents' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'maskgroupbasedcorrrangemaskcoloramount' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'maskgroupbasedcorrrangemaskdepthfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'maskgroupbasedcorrrangemaskdepthmax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'maskgroupbasedcorrrangemaskdepthmin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'maskgroupbasedcorrrangemaskinvert' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskInvert'] }, 'maskgroupbasedcorrrangemasklumfeather' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'maskgroupbasedcorrrangemaskluminancedepthsampleinfo' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'maskgroupbasedcorrrangemasklummax' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'maskgroupbasedcorrrangemasklummin' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'maskgroupbasedcorrrangemasklumrange' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'maskgroupbasedcorrrangemasksampletype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'maskgroupbasedcorrrangemasktype' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskType'] }, 'maskgroupbasedcorrrangemaskversion' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsCorrectionRangeMaskVersion'] }, 'maskgroupbasedcorrsaturation' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSaturation'] }, 'maskgroupbasedcorrshadows2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalShadows2012'] }, 'maskgroupbasedcorrsharpness' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalSharpness'] }, 'maskgroupbasedcorrtemperature' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTemperature'] }, 'maskgroupbasedcorrtexture' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTexture'] }, 'maskgroupbasedcorrtint' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalTint'] }, 'maskgroupbasedcorrtoninghue' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningHue'] }, 'maskgroupbasedcorrtoningsaturation' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalToningSaturation'] }, 'maskgroupbasedcorrwhat' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsWhat'] }, 'maskgroupbasedcorrwhites2012' => { 473 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'], 475 => [\'MaskGroupBasedCorrections','MaskGroupBasedCorrectionsLocalWhites2012'] }, 'mastergain' => { 233 => 0x50 }, 'matrixmetering' => { 277 => '50.1', 279 => '48.1', 280 => '48.1', 289 => '48.1', 290 => '48.1' }, 'matrixstructure' => { 375 => 0xa }, 'maxaperture' => { 34 => 0x1a, 137 => 0x3f9, 143 => 0x6103, 162 => 'MaxAperture', 180 => 0x17, 186 => 0x49c5, 222 => 0x36, 294 => 0x20a, 342 => '14.1' }, 'maxapertureatmaxfocal' => { 126 => 0x1407, 162 => 'MaxApertureAtMaxFocal', 216 => 0xb, 217 => 0x10, 218 => 0x11, 222 => 0x12, 294 => 0x206 }, 'maxapertureatminfocal' => { 126 => 0x1406, 216 => 0xa, 217 => 0xf, 218 => 0x10, 222 => 0x11, 294 => 0x205 }, 'maxaperturevalue' => { 118 => 0x9205, 360 => 0x414, 479 => 'MaxApertureValue' }, 'maxavailheight' => { 485 => 'MaxAvailHeight' }, 'maxavailwidth' => { 485 => 'MaxAvailWidth' }, 'maxcontinuousrelease' => { 276 => 0xb, 277 => 0xc, 279 => '12.1', 280 => '12.1', 285 => 0xc, 286 => 0xb, 289 => '12.1', 290 => '12.1' }, 'maxfaces' => { 297 => 0x1202 }, 'maxfocallength' => { 7 => 0xe6, 8 => 0x10, 9 => 0x1ab, 10 => 0x13, 11 => 0x115, 12 => 0x13, 13 => 0x153, 14 => 0xda, 16 => 0xfa, 17 => 0xee, 18 => 0x103, 19 => 0x95, 20 => 0xea, 21 => 0x157, 22 => 0xee, 23 => 0xec, 24 => 0x12b, 25 => 0x165, 26 => 0x16a, 27 => 0x188, 28 => 0x116, 29 => 0x18d, 34 => 0x17, 126 => 0x1405, 162 => 'MaxFocalLength', 216 => 0x9, 217 => 0xe, 218 => 0xf, 222 => 0x10, 294 => 0x208, 428 => 0x127c, 429 => 0x1138, 430 => 0x330, 431 => 0x330, 432 => 0x30e }, 'maxpagesize' => { 504 => 'MaxPageSize' }, 'maxpagesizeh' => { 504 => [\'MaxPageSize','MaxPageSizeH'] }, 'maxpagesizeunit' => { 504 => [\'MaxPageSize','MaxPageSizeUnit'] }, 'maxpagesizew' => { 504 => [\'MaxPageSize','MaxPageSizeW'] }, 'maxstorage' => { 494 => 'maxstorage' }, 'mb-d10batteries' => { 276 => '12.6' }, 'mb-d10batterytype' => { 285 => '13.3' }, 'mb-d11batterytype' => { 286 => '2.3' }, 'mb-d12batterytype' => { 289 => '3.2' }, 'mb-d80batteries' => { 287 => '6.5' }, 'mb-d80batterytype' => { 291 => '3.2' }, 'meal' => { 491 => 'meal' }, 'measuredlv' => { 186 => 0x690, 311 => 0x312, 314 => 0x312, 315 => 0x312, 318 => 0x3407 }, 'measuretype' => { 458 => 'MeasureType' }, 'mediaconstraints' => { 303 => 'MediaConstraints' }, 'mediacreatedate' => { 372 => 0x1 }, 'mediaeventiddate' => { 463 => 'MediaEventIdDate' }, 'mediamodifydate' => { 372 => 0x2 }, 'mediasummarycode' => { 303 => 'MediaSummaryCode' }, 'mediatype' => { 368 => 'stik' }, 'memorycardconfiguration' => { 409 => 0x16 }, 'menumonitorofftime' => { 276 => '26.1', 277 => '22.1', 279 => '22.1', 280 => '22.1', 284 => '21.1', 285 => '8.2', 286 => '21.1', 289 => '22.1', 290 => '22.1', 291 => '22.1' }, 'metadatadate' => { 497 => 'MetadataDate' }, 'metadatamoddate' => { 499 => 'metadataModDate' }, 'metaversion' => { 423 => 0x34 }, 'meterinfo1row1' => { 417 => 0x0, 418 => 0x0 }, 'meterinfo1row2' => { 417 => 0x6c, 418 => 0x5a }, 'meterinfo1row3' => { 417 => 0xd8, 418 => 0xb4 }, 'meterinfo1row4' => { 417 => 0x144, 418 => 0x10e }, 'meterinfo1row5' => { 417 => 0x1b0, 418 => 0x168 }, 'meterinfo1row6' => { 417 => 0x21c, 418 => 0x1c2 }, 'meterinfo1row7' => { 417 => 0x288, 418 => 0x21c }, 'meterinfo2row1' => { 417 => 0x2f4, 418 => 0x276 }, 'meterinfo2row2' => { 417 => 0x378, 418 => 0x2e4 }, 'meterinfo2row3' => { 417 => 0x3fc, 418 => 0x352 }, 'meterinfo2row4' => { 417 => 0x480, 418 => 0x3c0 }, 'meterinfo2row5' => { 417 => 0x504, 418 => 0x42e }, 'meterinfo2row6' => { 417 => 0x588, 418 => 0x49c }, 'meterinfo2row7' => { 417 => 0x60c, 418 => 0x50a }, 'meterinfo2row8' => { 417 => 0x690, 418 => 0x578 }, 'meterinfo2row9' => { 417 => 0x714, 418 => 0x5e6 }, 'metering' => { 278 => '6.1' }, 'meteringmode' => { 34 => 0x11, 118 => 0x9207, 139 => 0x1c, 180 => 0x7, 181 => 0x25, 183 => 0x12, 293 => 0x202, 351 => 0x17, 393 => 0x9, 403 => 0x15, 404 => 0x13, 405 => 0x7, 421 => 0x3, 424 => 0x1174, 425 => 0x1178, 426 => 0x1154, 427 => 0x11d0, 428 => 0x11ac, 429 => 0x1064, 430 => 0x25c, 431 => 0x25c, 432 => 0x24b, 479 => 'MeteringMode' }, 'meteringmode2' => { 332 => '2.1', 416 => 0x202c }, 'meteringmode3' => { 332 => '16.1' }, 'meteringtime' => { 276 => '22.2', 278 => '3.2', 281 => '17.1', 282 => '18.1', 285 => '7.3', 286 => '18.1', 287 => '3.2', 291 => '19.1' }, 'micro1version' => { 378 => 0x1f }, 'micro2version' => { 378 => 0x2d }, 'microvideo' => { 456 => 'MicroVideo' }, 'microvideooffset' => { 456 => 'MicroVideoOffset' }, 'microvideopresentationtimestampus' => { 456 => 'MicroVideoPresentationTimestampUs' }, 'microvideoversion' => { 456 => 'MicroVideoVersion' }, 'midrangesharpness' => { 229 => 0x3b }, 'mime' => { 458 => 'Mime' }, 'minaperture' => { 34 => 0x1b, 137 => 0x3f8, 162 => 'MinAperture', 342 => '0.2' }, 'minaperturevalue' => { 360 => 0x415 }, 'minfocallength' => { 7 => 0xe4, 8 => 0xe, 9 => 0x1a9, 10 => 0x11, 11 => 0x113, 12 => 0x11, 13 => 0x151, 14 => 0xd8, 16 => 0xf8, 17 => 0xec, 18 => 0x101, 19 => 0x93, 20 => 0xe8, 21 => 0x155, 22 => 0xec, 23 => 0xea, 24 => 0x129, 25 => 0x163, 26 => 0x168, 27 => 0x186, 28 => 0x114, 29 => 0x18b, 34 => 0x18, 126 => 0x1404, 162 => 'MinFocalLength', 216 => 0x8, 217 => 0xd, 218 => 0xe, 222 => 0xf, 294 => 0x207, 428 => 0x127a, 429 => 0x1136, 430 => 0x32e, 431 => 0x32e, 432 => 0x30c }, 'minfocusdistance' => { 342 => 0x3 }, 'minormodelagedisclosure' => { 303 => 'MinorModelAgeDisclosure' }, 'minorversion' => { 464 => 'MinorVersion' }, 'mobilecountrycode' => { 472 => 'mcc' }, 'mobilenetworkcode' => { 472 => 'mnc' }, 'moddate' => { 306 => 'modify-date', 486 => 'ModDate' }, 'modedialposition' => { 409 => 0x14 }, 'model' => { 97 => 0x6, 118 => 0x110, 155 => 'Model', 306 => 'Model', 321 => 0x110, 351 => 0x23f, 370 => 'model', 376 => ['@mod','CNMN','cmnm',"\xa9mdl","\xa9mod"], 393 => 0x84, 458 => 'Model', 488 => 'model', 495 => 'Model' }, 'modelage' => { 485 => 'ModelAge' }, 'modelid' => { 292 => 0x0 }, 'modelingflash' => { 276 => '21.4', 277 => '31.1', 279 => '31.1', 280 => '31.1', 285 => '26.4', 286 => '30.2', 287 => '7.4', 288 => '30.1', 289 => '31.1', 290 => '31.1', 291 => '31.3' }, 'modelreleaseid' => { 303 => 'ModelReleaseID' }, 'modelreleasestatus' => { 303 => 'ModelReleaseStatus' }, 'modelreleaseyear' => { 437 => 0x52, 438 => 0x46, 439 => 0x53 }, 'modelyear' => { 488 => 'modelYear' }, 'modificationdate' => { 489 => 'modificationDate' }, 'modifiedsaturation' => { 293 => 0x504 }, 'modifydate' => { 118 => 0x132, 156 => 'ModifyDate', 302 => 'ModDate', 304 => 'tIME', 367 => 'ModDate', 373 => 0x2, 497 => 'ModifyDate' }, 'moirefilter' => { 118 => 0xfe58, 473 => 'MoireFilter', 475 => 'MoireFilter' }, 'monitorofftime' => { 276 => '18.2', 278 => '3.1', 287 => '3.1' }, 'monochromecolor' => { 293 => 0x53b }, 'monochromefiltereffect' => { 102 => 0x20307, 108 => 0x3a, 316 => 0xac, 351 => 0x73 }, 'monochromegraineffect' => { 316 => 0xd2 }, 'monochromeprofilesettings' => { 293 => 0x537 }, 'monochrometoning' => { 351 => 0x74 }, 'monochromevignetting' => { 293 => 0x53a }, 'moonphase' => { 377 => 0x12, 378 => 0x43, 379 => 0x4c }, 'morepermissions' => { 471 => 'morePermissions' }, 'motionsensitivity' => { 377 => 0x29, 379 => 0x60 }, 'movementcount' => { 368 => "\xa9mvc" }, 'movementname' => { 368 => "\xa9mvn" }, 'movementnumber' => { 368 => "\xa9mvi" }, 'movieactived-lighting' => { 261 => 0x238 }, 'movieaelockbuttonassignment' => { 289 => '40.1' }, 'movieautodistortioncontrol' => { 261 => 0x242 }, 'moviediffractioncompensation' => { 261 => 0x241 }, 'moviefocusmode' => { 261 => 0x248 }, 'movieframerate' => { 261 => 0x1f8 }, 'movieframesize' => { 261 => 0x1f6 }, 'moviefunc1button' => { 279 => '41.1', 280 => '41.1', 290 => '41.1' }, 'moviefunctionbutton' => { 277 => '41.1', 289 => '41.1' }, 'moviefunctionbuttonplusdials' => { 277 => '52.1' }, 'moviehighisonoisereduction' => { 261 => 0x23c }, 'movieisoautomanualmode' => { 261 => 0x204 }, 'moviepreviewbutton' => { 277 => '41.2', 279 => '41.2', 280 => '41.2', 289 => '41.2', 290 => '41.2' }, 'moviepreviewbuttonplusdials' => { 277 => '52.2' }, 'movieshutterbutton' => { 277 => '38.3', 279 => '38.3', 280 => '38.3', 289 => '38.3', 290 => '38.3' }, 'movieslowmotion' => { 261 => 0x1fa }, 'moviesubselectorassignment' => { 277 => '48.2' }, 'moviesubselectorassignmentplusdials' => { 277 => '53.1' }, 'movietype' => { 248 => 0xc55c, 261 => 0x1fe }, 'movievibrationreduction' => { 261 => 0x24e }, 'movievibrationreductionsameasphoto' => { 261 => 0x24f }, 'movievignettecontrol' => { 261 => 0x23e }, 'movievignettecontrolsameasphoto' => { 261 => 0x240 }, 'multiburstimageheight' => { 416 => 0x1002 }, 'multiburstimagewidth' => { 416 => 0x1001 }, 'multiburstmode' => { 416 => 0x1000 }, 'multiexposure' => { 67 => 0x1, 316 => 0xb4 }, 'multiexposureautogain' => { 226 => 0x3 }, 'multiexposuremode' => { 226 => 0x1 }, 'multiexposureshots' => { 67 => 0x3, 226 => 0x2 }, 'multiframenoisereduction' => { 405 => 0x35, 416 => 0x200b, 421 => 0x15 }, 'multiframenreffect' => { 416 => 0x2023 }, 'multipleexposuremode' => { 297 => 0x101c }, 'multipleexposureset' => { 332 => '10.1' }, 'multisample' => { 233 => 0x40 }, 'multiselector' => { 276 => '9.4', 277 => '10.3', 279 => '10.3', 280 => '10.3', 285 => '27.4', 289 => '10.3', 290 => '10.3' }, 'multiselectorliveview' => { 276 => '4.3', 279 => '37.1', 280 => '37.1', 289 => '37.1', 290 => '37.1' }, 'multiselectorliveviewmode' => { 243 => 0x18c2 }, 'multiselectorplaybackmode' => { 276 => ['13.5','9.2'], 277 => '10.2', 280 => '10.2', 285 => '27.2', 289 => '10.2', 290 => '10.2' }, 'multiselectorshootmode' => { 276 => '9.1', 277 => '10.1', 279 => '10.1', 280 => '10.1', 285 => '27.1', 289 => '10.1', 290 => '10.1' }, 'multishot' => { 321 => 0x121 }, 'mute' => { 370 => 'player.movie.audio.mute' }, 'name' => { 376 => 'name', 473 => 'Name', 475 => 'Name' }, 'narrator' => { 368 => "\xa9nrt" }, 'nationalcatalognumber' => { 489 => 'nationalCatalogNumber' }, 'nativedigest' => { 479 => 'NativeDigest', 495 => 'NativeDigest' }, 'ndfilter' => { 76 => 0x1c, 293 => 0x204, 383 => 0x1019 }, 'near' => { 458 => 'Near' }, 'nefcompression' => { 224 => 0x93, 225 => 0xa }, 'negativecachelargepreviewsize' => { 473 => 'NegativeCacheLargePreviewSize', 475 => 'NegativeCacheLargePreviewSize' }, 'negativecachemaximumsize' => { 473 => 'NegativeCacheMaximumSize', 475 => 'NegativeCacheMaximumSize' }, 'negativecachepath' => { 473 => 'NegativeCachePath', 475 => 'NegativeCachePath' }, 'neutraldensityfactor' => { 470 => 'NeutralDensityFactor' }, 'neutraldensityfilter' => { 351 => 0x88 }, 'nickname' => { 497 => 'Nickname' }, 'nikonimagesize' => { 240 => '723.1', 241 => '732.1', 251 => 0x2c4 }, 'nikonmeteringmode' => { 244 => 0x2ea4, 253 => 0x175e, 261 => 0x146 }, 'noisefilter' => { 293 => 0x527 }, 'noisereduction' => { 126 => [0x100b,0x100e], 181 => 0xb0, 182 => 0x60, 183 => 0x3f, 224 => 0x95, 269 => 0x753dcbc0, 270 => 0x17, 293 => 0x50a, 298 => 0x103a, 316 => 0x2d, 351 => 0x49, 383 => 0x100f, 385 => 0x2a }, 'noisereduction2' => { 297 => 0x1010 }, 'noisereductionintensity' => { 270 => 0x9 }, 'noisereductionmethod' => { 270 => 0x11 }, 'noisereductionmode' => { 450 => 0x801e }, 'noisereductionparams' => { 321 => 0x1b }, 'noisereductionsharpness' => { 270 => 0xd }, 'noisereductionstrength' => { 316 => 0xd6 }, 'noisereductionvalue' => { 450 => 0x8027 }, 'nomemorycard' => { 276 => '22.1', 277 => '4.2', 278 => '0.3', 281 => '2.4', 282 => '3.2', 283 => '3.2', 285 => '33.7', 286 => '3.2', 287 => '0.3', 289 => '4.2', 291 => '4.5' }, 'nominalmaxaperture' => { 342 => 0xa }, 'nominalminaperture' => { 342 => '10.1' }, 'notes' => { 451 => 'Notes', 468 => 'notes' }, 'npages' => { 504 => 'NPages' }, 'numafpoints' => { 328 => 0x2 }, 'number' => { 489 => 'number' }, 'numberofbeats' => { 499 => 'numberOfBeats' }, 'numberoffocuspoints' => { 279 => '1.3', 280 => '1.3', 283 => '0.2', 284 => '0.3', 286 => '0.3' }, 'numfacepositions' => { 308 => 0x0 }, 'numwbentries' => { 322 => 0x0, 323 => 0x0 }, 'object' => { 489 => 'object' }, 'objectcycle' => { 130 => 0x4b, 468 => 'ObjectCycle' }, 'objectdescription' => { 488 => 'objectDescription' }, 'objectsubtype' => { 488 => 'objectSubtype' }, 'objecttype' => { 488 => 'objectType' }, 'oecfcolumns' => { 479 => [\'OECF','OECFColumns'] }, 'oecfnames' => { 479 => [\'OECF','OECFNames'] }, 'oecfrows' => { 479 => [\'OECF','OECFRows'] }, 'oecfvalues' => { 479 => [\'OECF','OECFValues'] }, 'offsaledate' => { 489 => 'offSaleDate' }, 'offsaledatea-platform' => { 489 => [\'offSaleDate','offSaleDateA-platform'] }, 'offsaledatedate' => { 489 => [\'offSaleDate','offSaleDateDate'] }, 'okbutton' => { 286 => '15.1', 291 => '16.1' }, 'olympusimageheight' => { 298 => 0x102f }, 'olympusimagewidth' => { 298 => 0x102e }, 'onetouchwb' => { 298 => 0x302 }, 'onsaledate' => { 489 => 'onSaleDate' }, 'onsaledatea-platform' => { 489 => [\'onSaleDate','onSaleDateA-platform'] }, 'onsaledatedate' => { 489 => [\'onSaleDate','onSaleDateDate'] }, 'onsaleday' => { 489 => 'onSaleDay' }, 'onsaledaya-platform' => { 489 => [\'onSaleDay','onSaleDayA-platform'] }, 'onsaledayday' => { 489 => [\'onSaleDay','onSaleDayDay'] }, 'opticalzoommode' => { 316 => 0x34 }, 'opticalzoomon' => { 392 => 0x219 }, 'optionenddate' => { 492 => 'optionEndDate' }, 'opto-electricconvfactor' => { 479 => 'OECF' }, 'organisationinimagecode' => { 485 => 'OrganisationInImageCode' }, 'organisationinimagename' => { 485 => 'OrganisationInImageName' }, 'organization' => { 489 => 'organization' }, 'orientation' => { 118 => 0x112, 321 => 0x112, 488 => 'orientation', 495 => 'Orientation' }, 'orientation2' => { 421 => [0x28,0x2e] }, 'originalartist' => { 178 => 'WM/OriginalArtist', 368 => "\xa9ope" }, 'originalcreatedatetime' => { 463 => 'OriginalCreateDateTime' }, 'originaldirectory' => { 313 => 0x408 }, 'originaldocumentid' => { 500 => 'OriginalDocumentID' }, 'originalfilename' => { 96 => 0x816, 137 => 0x3e9, 149 => 0x20, 313 => 0x407, 463 => 'OriginalFilename' }, 'originatingprogram' => { 130 => 0x41, 468 => 'OriginatingProgram' }, 'originplatform' => { 489 => 'originPlatform' }, 'os' => { 477 => 'os' }, 'otherconditions' => { 303 => 'OtherConditions' }, 'otherconstraints' => { 303 => 'OtherConstraints' }, 'otherimageinfo' => { 303 => 'OtherImageInfo' }, 'otherlicensedocuments' => { 303 => 'OtherLicenseDocuments' }, 'otherlicenseinfo' => { 303 => 'OtherLicenseInfo' }, 'otherlicenserequirements' => { 303 => 'OtherLicenseRequirements' }, 'outcue' => { 499 => 'outCue' }, 'outcuescale' => { 499 => [\'outCue','outCueScale'] }, 'outcuevalue' => { 499 => [\'outCue','outCueValue'] }, 'outputlut' => { 316 => 0xa7 }, 'overridelookvignette' => { 473 => 'OverrideLookVignette', 475 => 'OverrideLookVignette' }, 'owner' => { 503 => 'Owner' }, 'ownername' => { 15 => 0x10f, 63 => 0x9, 96 => 0x810, 118 => [0xa430,0xfde8], 155 => 'OwnerName', 470 => 'OwnerName', 480 => 'CameraOwnerName' }, 'pagecount' => { 489 => 'pageCount' }, 'pageimage' => { 497 => [\'PageInfo','PageInfoImage'] }, 'pageimageformat' => { 497 => [\'PageInfo','PageInfoFormat'] }, 'pageimageheight' => { 497 => [\'PageInfo','PageInfoHeight'] }, 'pageimagepagenumber' => { 497 => [\'PageInfo','PageInfoPageNumber'] }, 'pageimagewidth' => { 497 => [\'PageInfo','PageInfoWidth'] }, 'pageinfo' => { 497 => 'PageInfo' }, 'pageprogressiondirection' => { 489 => 'pageProgressionDirection' }, 'pagerange' => { 489 => 'pageRange' }, 'paintbasedcorrectionmasks' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasks'] }, 'paintbasedcorrections' => { 473 => 'PaintBasedCorrections', 475 => 'PaintBasedCorrections' }, 'paintcorrectionactive' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionActive'] }, 'paintcorrectionamount' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionAmount'] }, 'paintcorrectionblacks2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBlacks2012'] }, 'paintcorrectionbrightness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalBrightness'] }, 'paintcorrectionclarity' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity'] }, 'paintcorrectionclarity2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalClarity2012'] }, 'paintcorrectioncontrast' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast'] }, 'paintcorrectioncontrast2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalContrast2012'] }, 'paintcorrectioncorrectionname' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionName'] }, 'paintcorrectioncorrectionsyncid' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionSyncID'] }, 'paintcorrectiondefringe' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDefringe'] }, 'paintcorrectiondehaze' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalDehaze'] }, 'paintcorrectionexposure' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure'] }, 'paintcorrectionexposure2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalExposure2012'] }, 'paintcorrectionhighlights2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHighlights2012'] }, 'paintcorrectionhue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalHue'] }, 'paintcorrectionluminancenoise' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalLuminanceNoise'] }, 'paintcorrectionmaskalpha' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAlpha'] }, 'paintcorrectionmaskangle' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksAngle'] }, 'paintcorrectionmaskbottom' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksBottom'] }, 'paintcorrectionmaskcentervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterValue'] }, 'paintcorrectionmaskcenterweight' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCenterWeight'] }, 'paintcorrectionmaskdabs' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksDabs'] }, 'paintcorrectionmaskfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFeather'] }, 'paintcorrectionmaskflipped' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlipped'] }, 'paintcorrectionmaskflow' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFlow'] }, 'paintcorrectionmaskfullx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullX'] }, 'paintcorrectionmaskfully' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksFullY'] }, 'paintcorrectionmaskinputdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksInputDigest'] }, 'paintcorrectionmaskleft' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksLeft'] }, 'paintcorrectionmaskmaskactive' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskActive'] }, 'paintcorrectionmaskmaskblendmode' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskBlendMode'] }, 'paintcorrectionmaskmaskdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskDigest'] }, 'paintcorrectionmaskmaskinverted' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskInverted'] }, 'paintcorrectionmaskmaskname' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskName'] }, 'paintcorrectionmaskmasks' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasks'] }, 'paintcorrectionmaskmasksalpha' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAlpha'] }, 'paintcorrectionmaskmasksangle' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksAngle'] }, 'paintcorrectionmaskmasksbottom' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksBottom'] }, 'paintcorrectionmaskmaskscentervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterValue'] }, 'paintcorrectionmaskmaskscenterweight' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksCenterWeight'] }, 'paintcorrectionmaskmasksdabs' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksDabs'] }, 'paintcorrectionmaskmasksfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFeather'] }, 'paintcorrectionmaskmasksflipped' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlipped'] }, 'paintcorrectionmaskmasksflow' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFlow'] }, 'paintcorrectionmaskmasksfullx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullX'] }, 'paintcorrectionmaskmasksfully' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksFullY'] }, 'paintcorrectionmaskmasksinputdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksInputDigest'] }, 'paintcorrectionmaskmasksleft' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksLeft'] }, 'paintcorrectionmaskmasksmaskactive' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskActive'] }, 'paintcorrectionmaskmasksmaskblendmode' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskBlendMode'] }, 'paintcorrectionmaskmasksmaskdigest' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskDigest'] }, 'paintcorrectionmaskmasksmaskinverted' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskInverted'] }, 'paintcorrectionmaskmasksmaskname' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskName'] }, 'paintcorrectionmaskmasksmasksubtype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSubType'] }, 'paintcorrectionmaskmasksmasksyncid' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskSyncID'] }, 'paintcorrectionmaskmasksmaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskVersion'] }, 'paintcorrectionmaskmasksmidpoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMidpoint'] }, 'paintcorrectionmaskmasksorigin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksOrigin'] }, 'paintcorrectionmaskmasksperimetervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksPerimeterValue'] }, 'paintcorrectionmaskmasksradius' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRadius'] }, 'paintcorrectionmaskmasksreferencepoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksReferencePoint'] }, 'paintcorrectionmaskmasksright' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRight'] }, 'paintcorrectionmaskmasksroundness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksRoundness'] }, 'paintcorrectionmaskmaskssizex' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeX'] }, 'paintcorrectionmaskmaskssizey' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksSizeY'] }, 'paintcorrectionmaskmaskstop' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksTop'] }, 'paintcorrectionmaskmasksubtype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSubType'] }, 'paintcorrectionmaskmasksvalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksMaskValue'] }, 'paintcorrectionmaskmasksversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksVersion'] }, 'paintcorrectionmaskmaskswhat' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWhat'] }, 'paintcorrectionmaskmaskswholeimagearea' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksWholeImageArea'] }, 'paintcorrectionmaskmasksx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksX'] }, 'paintcorrectionmaskmasksy' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksY'] }, 'paintcorrectionmaskmasksyncid' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskSyncID'] }, 'paintcorrectionmaskmaskszerox' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroX'] }, 'paintcorrectionmaskmaskszeroy' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMasksZeroY'] }, 'paintcorrectionmaskmaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskVersion'] }, 'paintcorrectionmaskmidpoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMidpoint'] }, 'paintcorrectionmaskorigin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksOrigin'] }, 'paintcorrectionmaskperimetervalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksPerimeterValue'] }, 'paintcorrectionmaskradius' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRadius'] }, 'paintcorrectionmaskrange' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMask'] }, 'paintcorrectionmaskrangeareamodels' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModels'] }, 'paintcorrectionmaskrangeareamodelscolorsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'paintcorrectionmaskrangeareamodelscomponents' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'paintcorrectionmaskrangecoloramount' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskColorAmount'] }, 'paintcorrectionmaskrangedepthfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthFeather'] }, 'paintcorrectionmaskrangedepthmax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMax'] }, 'paintcorrectionmaskrangedepthmin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskDepthMin'] }, 'paintcorrectionmaskrangeinvert' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskInvert'] }, 'paintcorrectionmaskrangelumfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumFeather'] }, 'paintcorrectionmaskrangeluminancedepthsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'paintcorrectionmaskrangelummax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMax'] }, 'paintcorrectionmaskrangelummin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumMin'] }, 'paintcorrectionmaskrangelumrange' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskLumRange'] }, 'paintcorrectionmaskrangesampletype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskSampleType'] }, 'paintcorrectionmaskrangetype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskType'] }, 'paintcorrectionmaskrangeversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksCorrectionRangeMaskVersion'] }, 'paintcorrectionmaskreferencepoint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksReferencePoint'] }, 'paintcorrectionmaskright' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRight'] }, 'paintcorrectionmaskroundness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksRoundness'] }, 'paintcorrectionmasksizex' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeX'] }, 'paintcorrectionmasksizey' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksSizeY'] }, 'paintcorrectionmasktop' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksTop'] }, 'paintcorrectionmaskvalue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksMaskValue'] }, 'paintcorrectionmaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksVersion'] }, 'paintcorrectionmaskwhat' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWhat'] }, 'paintcorrectionmaskwholeimagearea' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksWholeImageArea'] }, 'paintcorrectionmaskx' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksX'] }, 'paintcorrectionmasky' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksY'] }, 'paintcorrectionmaskzerox' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroX'] }, 'paintcorrectionmaskzeroy' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionMasksZeroY'] }, 'paintcorrectionmoire' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalMoire'] }, 'paintcorrectionrangemask' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMask'] }, 'paintcorrectionrangemaskareamodels' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModels'] }, 'paintcorrectionrangemaskareamodelscolorsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'paintcorrectionrangemaskareamodelscomponents' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskAreaModelsAreaComponents'] }, 'paintcorrectionrangemaskcoloramount' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskColorAmount'] }, 'paintcorrectionrangemaskdepthfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthFeather'] }, 'paintcorrectionrangemaskdepthmax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMax'] }, 'paintcorrectionrangemaskdepthmin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskDepthMin'] }, 'paintcorrectionrangemaskinvert' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskInvert'] }, 'paintcorrectionrangemasklumfeather' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumFeather'] }, 'paintcorrectionrangemaskluminancedepthsampleinfo' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'paintcorrectionrangemasklummax' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMax'] }, 'paintcorrectionrangemasklummin' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumMin'] }, 'paintcorrectionrangemasklumrange' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskLumRange'] }, 'paintcorrectionrangemasksampletype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskSampleType'] }, 'paintcorrectionrangemasktype' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskType'] }, 'paintcorrectionrangemaskversion' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsCorrectionRangeMaskVersion'] }, 'paintcorrectionsaturation' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSaturation'] }, 'paintcorrectionshadows2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalShadows2012'] }, 'paintcorrectionsharpness' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalSharpness'] }, 'paintcorrectiontemperature' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTemperature'] }, 'paintcorrectiontexture' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTexture'] }, 'paintcorrectiontint' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalTint'] }, 'paintcorrectiontoninghue' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningHue'] }, 'paintcorrectiontoningsaturation' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalToningSaturation'] }, 'paintcorrectionwhat' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsWhat'] }, 'paintcorrectionwhites2012' => { 473 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'], 475 => [\'PaintBasedCorrections','PaintBasedCorrectionsLocalWhites2012'] }, 'panasonicdatetime' => { 319 => 0x0 }, 'panasonicexifversion' => { 316 => 0x26 }, 'panasonicimageheight' => { 316 => 0x4c }, 'panasonicimagewidth' => { 316 => 0x4b }, 'panasonicrawversion' => { 321 => 0x1 }, 'panoramacropbottom' => { 422 => 0x7 }, 'panoramacropleft' => { 422 => 0x4 }, 'panoramacropright' => { 422 => 0x6 }, 'panoramacroptop' => { 422 => 0x5 }, 'panoramadirection' => { 71 => 0x5, 126 => 0x1154, 422 => 0x3 }, 'panoramaframeheight' => { 422 => 0x9 }, 'panoramaframewidth' => { 422 => 0x8 }, 'panoramafullheight' => { 422 => 0x2 }, 'panoramafullwidth' => { 422 => 0x1 }, 'panoramamode' => { 139 => 0x3c, 293 => 0x601 }, 'panoramasize3d' => { 405 => 0x38 }, 'panoramasourceheight' => { 422 => 0xb }, 'panoramasourcewidth' => { 422 => 0xa }, 'pantry' => { 500 => 'Pantry' }, 'pantryinstanceid' => { 500 => [\'Pantry','PantryInstanceID'] }, 'parallax' => { 126 => 0xb211, 292 => 0x28 }, 'parametricdarks' => { 473 => 'ParametricDarks', 475 => 'ParametricDarks' }, 'parametrichighlights' => { 473 => 'ParametricHighlights', 475 => 'ParametricHighlights' }, 'parametrichighlightsplit' => { 473 => 'ParametricHighlightSplit', 475 => 'ParametricHighlightSplit' }, 'parametriclights' => { 473 => 'ParametricLights', 475 => 'ParametricLights' }, 'parametricmidtonesplit' => { 473 => 'ParametricMidtoneSplit', 475 => 'ParametricMidtoneSplit' }, 'parametricshadows' => { 473 => 'ParametricShadows', 475 => 'ParametricShadows' }, 'parametricshadowsplit' => { 473 => 'ParametricShadowSplit', 475 => 'ParametricShadowSplit' }, 'parentmediaeventid' => { 463 => 'ParentMediaEventID' }, 'parentmeid' => { 463 => 'ParentMEID' }, 'parentproductid' => { 368 => '@ppi' }, 'parentreference1' => { 483 => [\'TagStructure','TagStructureParentReference'] }, 'parentreference2' => { 483 => [\'TagStructure','TagStructureSubLabelsParentReference'] }, 'parentreference3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsParentReference'] }, 'parentreference4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsParentReference'] }, 'parentreference5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, 'parentreference6' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsParentReference'] }, 'parentshorttitle' => { 368 => '@PST' }, 'parenttitle' => { 368 => '@pti' }, 'partofcompilation' => { 499 => 'partOfCompilation' }, 'patientbirthdate' => { 452 => 'PatientDOB' }, 'patientid' => { 452 => 'PatientID' }, 'patientname' => { 452 => 'PatientName' }, 'patientsex' => { 452 => 'PatientSex' }, 'pdfversion' => { 486 => 'PDFVersion' }, 'pentaximagesize' => { 351 => 0x9 }, 'pentaxmodelid' => { 331 => 0x0, 351 => 0x5 }, 'pentaxmodeltype' => { 351 => 0x1 }, 'pentaxversion' => { 351 => 0x0 }, 'people' => { 454 => 'People', 466 => 'People' }, 'performer' => { 368 => 'perf', 376 => 'perf' }, 'performerkeywords' => { 376 => "\xa9prk" }, 'performers' => { 376 => "\xa9prf" }, 'performerurl' => { 376 => "\xa9prl" }, 'peripheralillumcentralradius' => { 450 => 0x8030 }, 'peripheralillumcentralvalue' => { 450 => 0x8031 }, 'peripheralilluminationcorr' => { 62 => 0x1, 341 => 0x2 }, 'peripheralillumperiphvalue' => { 450 => 0x8032 }, 'permissions' => { 492 => 'permissions' }, 'permits' => { 471 => 'permits' }, 'person' => { 489 => 'person' }, 'personality' => { 463 => 'Personality' }, 'personheard' => { 485 => 'PersonHeard' }, 'personheardidentifier' => { 485 => [\'PersonHeard','PersonHeardIdentifier'] }, 'personheardname' => { 485 => [\'PersonHeard','PersonHeardName'] }, 'personinimage' => { 485 => 'PersonInImage' }, 'personinimagecharacteristic' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristic'] }, 'personinimagecvtermcvid' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvId'] }, 'personinimagecvtermid' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermId'] }, 'personinimagecvtermname' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermName'] }, 'personinimagecvtermrefinedabout' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonCharacteristicCvTermRefinedAbout'] }, 'personinimagedescription' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonDescription'] }, 'personinimageid' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonId'] }, 'personinimagename' => { 485 => [\'PersonInImageWDetails','PersonInImageWDetailsPersonName'] }, 'personinimagewdetails' => { 485 => 'PersonInImageWDetails' }, 'perspectiveaspect' => { 473 => 'PerspectiveAspect', 475 => 'PerspectiveAspect' }, 'perspectivehorizontal' => { 473 => 'PerspectiveHorizontal', 475 => 'PerspectiveHorizontal' }, 'perspectiverotate' => { 473 => 'PerspectiveRotate', 475 => 'PerspectiveRotate' }, 'perspectivescale' => { 473 => 'PerspectiveScale', 475 => 'PerspectiveScale' }, 'perspectiveupright' => { 473 => 'PerspectiveUpright', 475 => 'PerspectiveUpright' }, 'perspectivevertical' => { 473 => 'PerspectiveVertical', 475 => 'PerspectiveVertical' }, 'perspectivex' => { 473 => 'PerspectiveX', 475 => 'PerspectiveX' }, 'perspectivey' => { 473 => 'PerspectiveY', 475 => 'PerspectiveY' }, 'photoeffecthistoryxml' => { 269 => 0xe9651831 }, 'photoeffects' => { 269 => 0xab5eca5e }, 'photoeffectsblue' => { 271 => 0x8 }, 'photoeffectsgreen' => { 271 => 0x6 }, 'photoeffectsred' => { 271 => 0x4 }, 'photoeffectstype' => { 271 => 0x0 }, 'photographicsensitivity' => { 480 => 'PhotographicSensitivity' }, 'photoinfoplayback' => { 276 => '17.6', 285 => '33.6' }, 'photometricinterpretation' => { 118 => 0x106, 495 => 'PhotometricInterpretation' }, 'photoshootingmenubank' => { 244 => 0xe7d, 254 => 0xfbd }, 'photoshootingmenubankimagearea' => { 244 => '3716.1', 254 => 0x791 }, 'photoshopbgrthumbnail' => { 365 => 0x409 }, 'photoshopquality' => { 364 => 0x0 }, 'photoshopthumbnail' => { 365 => 0x40c }, 'photostyle' => { 316 => 0x89 }, 'picklabel' => { 478 => 'PickLabel' }, 'pictinfo' => { 392 => 0x208 }, 'picturecontrol' => { 269 => 0xe2173c47 }, 'picturecontrolactive' => { 272 => 0x0 }, 'picturecontroladjust' => { 227 => 0x30, 228 => 0x30, 229 => 0x36 }, 'picturecontrolbase' => { 227 => 0x18, 228 => 0x18, 229 => 0x1c }, 'picturecontrolmode' => { 272 => 0x13 }, 'picturecontrolname' => { 227 => 0x4, 228 => 0x4, 229 => 0x8 }, 'picturecontrolquickadjust' => { 227 => 0x31, 228 => 0x31, 229 => 0x37 }, 'pictureeffect' => { 416 => 0x200e }, 'pictureeffect2' => { 424 => 0x1163, 425 => 0x1167, 426 => 0x1143, 427 => 0x11bf, 428 => 0x119b, 429 => 0x1053, 430 => 0x24b, 431 => 0x24b, 432 => 0x23c, 446 => 0x46 }, 'picturemode' => { 126 => 0x1031, 293 => 0x520, 351 => [0xb,0x33], 393 => 0x3d }, 'picturemode2' => { 332 => 0x0 }, 'picturemodebwfilter' => { 293 => 0x525 }, 'picturemodecontrast' => { 293 => 0x523 }, 'picturemodeeffect' => { 293 => 0x52d }, 'picturemodehue' => { 293 => 0x522 }, 'picturemodesaturation' => { 293 => 0x521 }, 'picturemodesharpness' => { 293 => 0x524 }, 'picturemodetone' => { 293 => 0x526 }, 'pictureprofile' => { 424 => [0x115e,0x115f], 425 => [0x1162,0x1163], 426 => [0x113e,0x113f], 427 => [0x11ba,0x11bb], 428 => [0x1196,0x1197], 429 => [0x104e,0x104f], 430 => [0x246,0x247], 431 => [0x246,0x247], 432 => [0x237,0x238] }, 'picturewizard' => { 390 => 0x21 }, 'picturewizardcolor' => { 389 => 0x1 }, 'picturewizardcontrast' => { 389 => 0x4 }, 'picturewizardmode' => { 389 => 0x0 }, 'picturewizardsaturation' => { 389 => 0x2 }, 'picturewizardsharpness' => { 389 => 0x3 }, 'pitch' => { 114 => 0x6, 277 => '4.1', 289 => '4.1', 376 => ['ptch',"\xa9fpt"] }, 'pitchangle' => { 243 => 0x350f, 244 => 0x2c28, 248 => 0xc21e, 253 => 0x36f8, 254 => 0x2eff, 256 => 0xce36, 257 => 0xeaef, 293 => 0x904, 316 => 0x91, 350 => 0x2, 388 => 0x1 }, 'pitchshift' => { 370 => 'player.movie.audio.pitchshift' }, 'pixelaspectratio' => { 369 => 'pasp' }, 'pixelshiftinfo' => { 416 => 0x202f }, 'pixelshiftresolution' => { 352 => 0x0 }, 'pixelsperunitx' => { 305 => 0x0 }, 'pixelsperunity' => { 305 => 0x4 }, 'pixelunits' => { 305 => 0x8 }, 'planarconfiguration' => { 118 => 0x11c, 495 => 'PlanarConfiguration' }, 'plane' => { 453 => [\'Planes','PlanesPlane'] }, 'planeboundary' => { 453 => [\'Planes','PlanesPlaneBoundary'] }, 'planeboundaryvertexcount' => { 453 => [\'Planes','PlanesPlaneBoundaryVertexCount'] }, 'planeextentx' => { 453 => [\'Planes','PlanesPlaneExtentX'] }, 'planeextentz' => { 453 => [\'Planes','PlanesPlaneExtentZ'] }, 'planepose' => { 453 => [\'Planes','PlanesPlanePose'] }, 'planeposepositionx' => { 453 => [\'Planes','PlanesPlanePosePositionX'] }, 'planeposepositiony' => { 453 => [\'Planes','PlanesPlanePosePositionY'] }, 'planeposepositionz' => { 453 => [\'Planes','PlanesPlanePosePositionZ'] }, 'planeposerotationw' => { 453 => [\'Planes','PlanesPlanePoseRotationW'] }, 'planeposerotationx' => { 453 => [\'Planes','PlanesPlanePoseRotationX'] }, 'planeposerotationy' => { 453 => [\'Planes','PlanesPlanePoseRotationY'] }, 'planeposerotationz' => { 453 => [\'Planes','PlanesPlanePoseRotationZ'] }, 'planeposetimestamp' => { 453 => [\'Planes','PlanesPlanePoseTimestamp'] }, 'planes' => { 453 => 'Planes' }, 'planningref' => { 485 => 'PlanningRef' }, 'planningrefidentifier' => { 485 => [\'PlanningRef','PlanningRefIdentifier'] }, 'planningrefname' => { 485 => [\'PlanningRef','PlanningRefName'] }, 'planningrefrole' => { 485 => [\'PlanningRef','PlanningRefRole'] }, 'platenames' => { 504 => 'PlateNames' }, 'platform' => { 489 => 'platform' }, 'playallframes' => { 376 => 'AllF' }, 'playbackmenustime' => { 281 => '20.1', 282 => '21.1', 283 => '21.1' }, 'playbackmonitorofftime' => { 276 => '25.2', 277 => '36.1', 279 => '36.1', 280 => '36.1', 284 => '35.1', 285 => '8.1', 286 => '35.1', 289 => '36.1', 290 => '36.1', 291 => '21.1' }, 'playbackzoom' => { 277 => '37.1' }, 'playerversion' => { 370 => 'player.version' }, 'playgap' => { 368 => 'pgap' }, 'playlistid' => { 368 => 'plID' }, 'playmode' => { 376 => 'SDLN' }, 'playselection' => { 376 => 'SelO' }, 'plusversion' => { 303 => 'Version' }, 'pmversion' => { 363 => 'PMVersion' }, 'pngwarning' => { 306 => 'Warning' }, 'podcast' => { 368 => 'pcst' }, 'podcasturl' => { 368 => 'purl' }, 'portraitimpressionbalance' => { 256 => 0x7fa0 }, 'portraitnote' => { 456 => 'PortraitNote' }, 'portraitrequest' => { 456 => 'PortraitRequest' }, 'portraitversion' => { 456 => 'PortraitVersion' }, 'pose' => { 453 => 'Pose' }, 'poseheadingdegrees' => { 461 => 'PoseHeadingDegrees' }, 'posepitchdegrees' => { 461 => 'PosePitchDegrees' }, 'posepositionx' => { 453 => [\'Pose','PosePositionX'] }, 'posepositiony' => { 453 => [\'Pose','PosePositionY'] }, 'posepositionz' => { 453 => [\'Pose','PosePositionZ'] }, 'poserolldegrees' => { 461 => 'PoseRollDegrees' }, 'poserotationw' => { 453 => [\'Pose','PoseRotationW'] }, 'poserotationx' => { 453 => [\'Pose','PoseRotationX'] }, 'poserotationy' => { 453 => [\'Pose','PoseRotationY'] }, 'poserotationz' => { 453 => [\'Pose','PoseRotationZ'] }, 'posetimestamp' => { 453 => [\'Pose','PoseTimestamp'] }, 'positiondescriptor' => { 488 => 'positionDescriptor' }, 'postcropvignetteamount' => { 473 => 'PostCropVignetteAmount', 475 => 'PostCropVignetteAmount' }, 'postcropvignettefeather' => { 473 => 'PostCropVignetteFeather', 475 => 'PostCropVignetteFeather' }, 'postcropvignettehighlightcontrast' => { 473 => 'PostCropVignetteHighlightContrast', 475 => 'PostCropVignetteHighlightContrast' }, 'postcropvignettemidpoint' => { 473 => 'PostCropVignetteMidpoint', 475 => 'PostCropVignetteMidpoint' }, 'postcropvignetteroundness' => { 473 => 'PostCropVignetteRoundness', 475 => 'PostCropVignetteRoundness' }, 'postcropvignettestyle' => { 473 => 'PostCropVignetteStyle', 475 => 'PostCropVignetteStyle' }, 'postfocusmerging' => { 316 => 0xbf }, 'potentialface1position' => { 413 => 0xb }, 'potentialface2position' => { 413 => 0x15 }, 'potentialface3position' => { 413 => 0x1f }, 'potentialface4position' => { 413 => 0x29 }, 'potentialface5position' => { 413 => 0x33 }, 'potentialface6position' => { 413 => 0x3d }, 'potentialface7position' => { 413 => 0x47 }, 'potentialface8position' => { 413 => 0x51 }, 'powersource' => { 330 => '0.1' }, 'precaptureframes' => { 298 => 0x300 }, 'preflashreturnstrength' => { 241 => 0x28a }, 'prefs' => { 130 => 0xdd, 363 => 'Prefs' }, 'preservedfilename' => { 500 => 'PreservedFileName' }, 'presettype' => { 473 => 'PresetType', 475 => 'PresetType' }, 'presetwhitebalance' => { 183 => 0x24, 450 => 0x8002 }, 'presetwhitebalanceadj' => { 450 => 0x8014 }, 'pressure' => { 118 => 0x9402, 480 => 'Pressure' }, 'previewbutton' => { 276 => ['14.1','15.1'], 277 => '15.1', 279 => '15.1', 280 => '15.1', 285 => '29.1', 286 => '14.1', 289 => '15.1', 290 => '15.1' }, 'previewbuttonplusdials' => { 276 => ['14.2','15.2'], 277 => '15.2', 279 => '43.1', 280 => '43.1', 285 => '31.2', 289 => '43.1', 290 => '43.1' }, 'previewcropbottom' => { 362 => 0xef }, 'previewcropleft' => { 362 => 0xec }, 'previewcropright' => { 362 => 0xee }, 'previewcroptop' => { 362 => 0xed }, 'previewdate' => { 374 => 0x0 }, 'previewimage' => { 112 => 0x2000, 113 => 'Exif-PreviewImage', 119 => 'PreviewImage', 121 => 0x4, 165 => 'data', 185 => 0x81, 298 => 0x280, 314 => 0x300, 376 => 'mcvr', 416 => 0x2001 }, 'previewimageborders' => { 351 => 0x3e }, 'previewimagelength' => { 72 => 0x2, 112 => 0x3, 118 => [0x117,0x202], 185 => 0x89, 230 => 0x202, 293 => 0x102, 298 => 0x1037, 351 => 0x3, 382 => 0x1e, 387 => 0x3, 393 => [0x1b,0x1d], 406 => 0x202 }, 'previewimagesize' => { 112 => 0x2, 146 => 0x2, 165 => 'ImageSize', 351 => 0x2, 393 => [0x1c,0x1e], 416 => 0xb02c, 450 => 0x9012 }, 'previewimagestart' => { 72 => 0x5, 112 => 0x4, 118 => [0x111,0x201], 185 => 0x88, 230 => 0x201, 293 => 0x101, 298 => 0x1036, 351 => 0x4, 382 => 0x1c, 387 => 0x2, 393 => [0x1a,0x1c], 406 => 0x201 }, 'previewimagevalid' => { 293 => 0x100, 298 => 0x1035 }, 'primarychromaticities' => { 118 => 0x13f, 495 => 'PrimaryChromaticities' }, 'primaryftp' => { 463 => 'PrimaryFTP' }, 'primaryslot' => { 244 => 0xe7f, 254 => 0xfbf }, 'prioritysetinawb' => { 416 => 0x202b }, 'prioritysetupshutterrelease' => { 183 => 0x1d, 403 => 0x28 }, 'privatertkinfo' => { 465 => 'privateRTKInfo' }, 'processversion' => { 473 => 'ProcessVersion', 475 => 'ProcessVersion' }, 'producer' => { 178 => 'WM/Producer', 302 => 'Producer', 368 => "\xa9prd", 370 => 'producer', 376 => "\xa9prd", 486 => 'Producer' }, 'producerkeywords' => { 376 => "\xa9pdk" }, 'productcode' => { 489 => 'productCode' }, 'productid' => { 131 => 0x32, 368 => 'prID', 488 => 'productID' }, 'productidtype' => { 488 => 'productIDType' }, 'productinimage' => { 485 => 'ProductInImage' }, 'productinimagedescription' => { 485 => [\'ProductInImage','ProductInImageProductDescription'] }, 'productinimagegtin' => { 485 => [\'ProductInImage','ProductInImageProductGTIN'] }, 'productinimagename' => { 485 => [\'ProductInImage','ProductInImageProductName'] }, 'productioncode' => { 331 => 0x2 }, 'productorserviceconstraints' => { 303 => 'ProductOrServiceConstraints' }, 'productversion' => { 368 => 'VERS' }, 'profession' => { 489 => 'profession' }, 'profile' => { 453 => [\'Profiles','ProfilesProfile'] }, 'profilecameraindices' => { 453 => [\'Profiles','ProfilesProfileCameraIndices'] }, 'profiles' => { 453 => 'Profiles' }, 'profiletype' => { 453 => [\'Profiles','ProfilesProfileType'] }, 'programiso' => { 316 => 0x3c }, 'programline' => { 332 => '1.1' }, 'prohibits' => { 471 => 'prohibits' }, 'projectiontype' => { 461 => 'ProjectionType', 462 => 'ProjectionType' }, 'projectname' => { 499 => 'projectName' }, 'projectref' => { 499 => 'projectRef' }, 'projectrefpath' => { 499 => [\'projectRef','projectRefPath'] }, 'projectreftype' => { 499 => [\'projectRef','projectRefType'] }, 'propertyreleaseid' => { 303 => 'PropertyReleaseID' }, 'propertyreleasestatus' => { 303 => 'PropertyReleaseStatus' }, 'publicationdate' => { 489 => 'publicationDate' }, 'publicationdatea-platform' => { 489 => [\'publicationDate','publicationDateA-platform'] }, 'publicationdatedate' => { 489 => [\'publicationDate','publicationDateDate'] }, 'publicationdisplaydate' => { 489 => 'publicationDisplayDate' }, 'publicationdisplaydatea-platform' => { 489 => [\'publicationDisplayDate','publicationDisplayDateA-platform'] }, 'publicationdisplaydatedate' => { 489 => [\'publicationDisplayDate','publicationDisplayDateDate'] }, 'publicationevent' => { 485 => 'PublicationEvent' }, 'publicationeventdate' => { 485 => [\'PublicationEvent','PublicationEventDate'] }, 'publicationeventidentifier' => { 485 => [\'PublicationEvent','PublicationEventIdentifier'] }, 'publicationeventname' => { 485 => [\'PublicationEvent','PublicationEventName'] }, 'publicationname' => { 489 => 'publicationName' }, 'publisher' => { 178 => 'WM/Publisher', 368 => "\xa9pub", 370 => 'publisher', 476 => 'publisher' }, 'publishingfrequency' => { 489 => 'publishingFrequency' }, 'pulldown' => { 499 => 'pullDown' }, 'purchasedate' => { 368 => 'purd' }, 'pxshiftperiphedgenr' => { 450 => 0x9013 }, 'pxshiftperiphedgenrvalue' => { 450 => 0x9014 }, 'quality' => { 0 => 0x1, 34 => 0x3, 111 => 0x2, 112 => 0x3002, 126 => 0x1000, 139 => 0x9, 224 => 0x4, 258 => 0x3, 298 => 0x201, 311 => 0x300, 351 => 0x8, 358 => 0x2, 393 => 0x16, 403 => 0x56, 404 => 0x56, 405 => 0xb, 416 => [0x102,0x202e] }, 'quality2' => { 424 => 0x1170, 425 => 0x1174, 426 => 0x1150, 428 => 0x11a8, 429 => 0x1060, 430 => 0x258, 431 => 0x258, 432 => 0x247, 437 => 0x29, 438 => 0x25, 439 => 0x2a }, 'quickadjust' => { 272 => 0x2a }, 'quickfix' => { 269 => 0x416391c6 }, 'quickshot' => { 392 => 0x213 }, 'rads' => { 376 => 'rads' }, 'rangefinder' => { 281 => '4.1', 282 => '5.1', 283 => '5.1' }, 'rangemask' => { 473 => 'RangeMaskMapInfo', 475 => 'RangeMaskMapInfo' }, 'rangemaskmapinfo' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfo'] }, 'rangemaskmapinfolabmax' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMax'] }, 'rangemaskmapinfolabmin' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLabMin'] }, 'rangemaskmapinfolumeq' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoLumEq'] }, 'rangemaskmapinforgbmax' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMax'] }, 'rangemaskmapinforgbmin' => { 473 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'], 475 => [\'RangeMaskMapInfo','RangeMaskMapInfoRangeMaskMapInfoRGBMin'] }, 'rating' => { 118 => 0x4746, 126 => 0x1431, 362 => 0xdf, 368 => 'rtng', 376 => 'rtng', 416 => 0x2002, 468 => 'rating', 477 => 'rating', 485 => 'Rating', 489 => 'rating', 497 => 'Rating' }, 'ratingpercent' => { 118 => 0x4749, 177 => 'Rating', 368 => 'rate', 497 => 'RatingPercent' }, 'ratingregion' => { 485 => [\'Rating','RatingRatingRegion'] }, 'ratingregioncity' => { 485 => [\'Rating','RatingRatingRegionCity'] }, 'ratingregioncountrycode' => { 485 => [\'Rating','RatingRatingRegionCountryCode'] }, 'ratingregioncountryname' => { 485 => [\'Rating','RatingRatingRegionCountryName'] }, 'ratingregiongpsaltitude' => { 485 => [\'Rating','RatingRatingRegionGPSAltitude'] }, 'ratingregiongpslatitude' => { 485 => [\'Rating','RatingRatingRegionGPSLatitude'] }, 'ratingregiongpslongitude' => { 485 => [\'Rating','RatingRatingRegionGPSLongitude'] }, 'ratingregionidentifier' => { 485 => [\'Rating','RatingRatingRegionIdentifier'] }, 'ratingregionlocationid' => { 485 => [\'Rating','RatingRatingRegionLocationId'] }, 'ratingregionlocationname' => { 485 => [\'Rating','RatingRatingRegionLocationName'] }, 'ratingregionprovincestate' => { 485 => [\'Rating','RatingRatingRegionProvinceState'] }, 'ratingregionsublocation' => { 485 => [\'Rating','RatingRatingRegionSublocation'] }, 'ratingregionworldregion' => { 485 => [\'Rating','RatingRatingRegionWorldRegion'] }, 'ratingscalemaxvalue' => { 485 => [\'Rating','RatingRatingScaleMaxValue'] }, 'ratingscaleminvalue' => { 485 => [\'Rating','RatingRatingScaleMinValue'] }, 'ratingsourcelink' => { 485 => [\'Rating','RatingRatingSourceLink'] }, 'ratingvalue' => { 485 => [\'Rating','RatingRatingValue'] }, 'ratingvaluelogolink' => { 485 => [\'Rating','RatingRatingValueLogoLink'] }, 'rawandjpgrecording' => { 81 => 0x8, 185 => 0x109, 332 => 0xd }, 'rawcropbottom' => { 362 => 0xd4 }, 'rawcropleft' => { 362 => 0xd1 }, 'rawcropright' => { 362 => 0xd3 }, 'rawcroptop' => { 362 => 0xd2 }, 'rawdata' => { 390 => 0xa048 }, 'rawdatabyteorder' => { 390 => 0x40 }, 'rawdatacfapattern' => { 390 => 0x50 }, 'rawdevartfilter' => { 300 => 0x121 }, 'rawdevautogradation' => { 300 => 0x119 }, 'rawdevcolorspace' => { 299 => 0x108, 300 => 0x109 }, 'rawdevcontrastvalue' => { 299 => 0x106, 300 => 0x105 }, 'rawdeveditstatus' => { 299 => 0x10b }, 'rawdevelopmentprocess' => { 351 => 0x62 }, 'rawdevengine' => { 299 => 0x109, 300 => 0x10b }, 'rawdevexposurebiasvalue' => { 299 => 0x100, 300 => 0x100 }, 'rawdevgradation' => { 300 => 0x112 }, 'rawdevgraypoint' => { 299 => 0x103, 300 => 0x104 }, 'rawdevmemorycoloremphasis' => { 299 => 0x105, 300 => 0x108 }, 'rawdevnoisereduction' => { 299 => 0x10a, 300 => 0x10a }, 'rawdevpicturemode' => { 300 => 0x10c }, 'rawdevpm_bwfilter' => { 300 => 0x110 }, 'rawdevpmcontrast' => { 300 => 0x10e }, 'rawdevpmnoisefilter' => { 300 => 0x120 }, 'rawdevpmpicturetone' => { 300 => 0x111 }, 'rawdevpmsaturation' => { 300 => 0x10d }, 'rawdevpmsharpness' => { 300 => 0x10f }, 'rawdevsaturation3' => { 300 => 0x113 }, 'rawdevsaturationemphasis' => { 299 => 0x104, 300 => 0x107 }, 'rawdevsettings' => { 299 => 0x10c }, 'rawdevsharpnessvalue' => { 299 => 0x107, 300 => 0x106 }, 'rawdevversion' => { 299 => 0x0, 300 => 0x0 }, 'rawdevwbfineadjustment' => { 299 => 0x102, 300 => 0x103 }, 'rawdevwhitebalance' => { 300 => 0x101 }, 'rawdevwhitebalancevalue' => { 299 => 0x101, 300 => 0x102 }, 'rawfilename' => { 473 => 'RawFileName', 475 => 'RawFileName' }, 'rawfiletype' => { 416 => 0x2029 }, 'rawformat' => { 321 => 0x2d, 360 => 0x10e }, 'rawimagesize' => { 351 => 0x39 }, 'rawinfoversion' => { 301 => 0x0 }, 'rawrppused' => { 468 => 'rawrppused' }, 'reardisplay' => { 276 => '12.3', 277 => '6.2' }, 'recdevice' => { 485 => 'RecDevice' }, 'recdeviceattlensdescription' => { 485 => [\'RecDevice','RecDeviceAttLensDescription'] }, 'recdevicemanufacturer' => { 485 => [\'RecDevice','RecDeviceManufacturer'] }, 'recdevicemodelname' => { 485 => [\'RecDevice','RecDeviceModelName'] }, 'recdeviceownersdeviceid' => { 485 => [\'RecDevice','RecDeviceOwnersDeviceId'] }, 'recdeviceserialnumber' => { 485 => [\'RecDevice','RecDeviceSerialNumber'] }, 'recipeendingpage' => { 491 => 'recipeEndingPage' }, 'recipepagerange' => { 491 => 'recipePageRange' }, 'recipesource' => { 491 => 'recipeSource' }, 'recipestartingpage' => { 491 => 'recipeStartingPage' }, 'recipetitle' => { 491 => 'recipeTitle' }, 'recognizedface1age' => { 309 => 0x20 }, 'recognizedface1name' => { 309 => 0x4 }, 'recognizedface1position' => { 309 => 0x18 }, 'recognizedface2age' => { 309 => 0x50 }, 'recognizedface2name' => { 309 => 0x34 }, 'recognizedface2position' => { 309 => 0x48 }, 'recognizedface3age' => { 309 => 0x80 }, 'recognizedface3name' => { 309 => 0x64 }, 'recognizedface3position' => { 309 => 0x78 }, 'recognizedfaceflags' => { 316 => 0x63 }, 'recommendedexposureindex' => { 118 => 0x8832, 480 => 'RecommendedExposureIndex' }, 'recordingcopyright' => { 376 => "\xa9phg" }, 'recordingformat' => { 383 => 0x1000 }, 'recordingmode' => { 111 => 0x1, 358 => 0x1 }, 'recordlabelname' => { 376 => "\xa9lab" }, 'recordlabelurl' => { 376 => "\xa9lal" }, 'recordshutterrelease' => { 392 => 0x217 }, 'redbalance' => { 298 => 0x1017, 321 => 0x11, 351 => 0x1c }, 'redeyecorrection' => { 273 => 0x0 }, 'redeyeinfo' => { 473 => 'RedEyeInfo', 475 => 'RedEyeInfo' }, 'redeyereduction' => { 183 => 0x41, 403 => 0x6a, 405 => 0x28 }, 'redeyeremoval' => { 316 => 0xb9 }, 'redhue' => { 473 => 'RedHue', 475 => 'RedHue' }, 'redsaturation' => { 473 => 'RedSaturation', 475 => 'RedSaturation' }, 'reelname' => { 118 => 0xc789, 376 => 'reel' }, 'reference1' => { 483 => [\'TagStructure','TagStructureReference'] }, 'reference2' => { 483 => [\'TagStructure','TagStructureSubLabelsReference'] }, 'reference3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsReference'] }, 'reference4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsReference'] }, 'reference5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, 'reference6' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabelsReference'] }, 'referenceblackwhite' => { 118 => 0x214, 495 => 'ReferenceBlackWhite' }, 'regionconstraints' => { 303 => 'RegionConstraints' }, 'registryentryrole' => { 485 => [\'RegistryId','RegistryIdRegEntryRole'] }, 'registryid' => { 485 => 'RegistryId' }, 'registryitemid' => { 485 => [\'RegistryId','RegistryIdRegItemId'] }, 'registryorganisationid' => { 485 => [\'RegistryId','RegistryIdRegOrgId'] }, 'relatedsoundfile' => { 118 => 0xa004, 479 => 'RelatedSoundFile' }, 'relation' => { 476 => 'relation' }, 'relativepeakaudiofilepath' => { 499 => 'relativePeakAudioFilePath' }, 'relativetimestamp' => { 499 => 'relativeTimestamp' }, 'relativetimestampscale' => { 499 => [\'relativeTimestamp','relativeTimestampScale'] }, 'relativetimestampvalue' => { 499 => [\'relativeTimestamp','relativeTimestampValue'] }, 'releasebuttontousedial' => { 276 => '17.8', 277 => '18.5', 279 => '18.4', 280 => '18.4', 285 => '33.8', 286 => '17.6', 289 => '18.5', 290 => '18.4' }, 'releasedate' => { 130 => 0x1e, 368 => 'rldt', 468 => 'ReleaseDate', 499 => 'releaseDate' }, 'releasemode' => { 112 => 0x3001, 243 => 0x184d, 416 => 0xb049 }, 'releasemode2' => { 424 => 0x112c, 425 => [0x112c,0x8], 426 => [0x1108,0x8], 427 => [0x1184,0x8], 428 => [0x1160,0x8], 429 => [0x4,0x1018], 430 => [0x4,0x210], 431 => [0x4,0x210], 432 => [0x4,0x208], 434 => [0x67,0x3f], 435 => [0x6b,0x6d,0x73,0x4b], 436 => [0x6b,0x4b], 437 => 0x10, 438 => 0x10, 439 => 0x9, 446 => 0x34 }, 'releasemode3' => { 424 => 0x1128, 425 => 0x1128, 426 => 0x1104, 427 => 0x1180, 428 => 0x115c, 429 => 0x1014, 430 => 0x20c, 431 => 0x20c, 432 => 0x204 }, 'releaseready' => { 485 => 'ReleaseReady' }, 'releasetime' => { 130 => 0x23, 468 => 'ReleaseTime' }, 'remoteonduration' => { 278 => '3.4', 281 => '17.2', 282 => '18.2', 283 => '18.2', 284 => '18.2', 286 => '18.2', 287 => '4.3', 291 => '19.2' }, 'renditionclass' => { 500 => 'RenditionClass' }, 'renditionof' => { 500 => 'RenditionOf' }, 'renditionofalternatepaths' => { 500 => [\'RenditionOf','RenditionOfAlternatePaths'] }, 'renditionofdocumentid' => { 500 => [\'RenditionOf','RenditionOfDocumentID'] }, 'renditionoffilepath' => { 500 => [\'RenditionOf','RenditionOfFilePath'] }, 'renditionoffrompart' => { 500 => [\'RenditionOf','RenditionOfFromPart'] }, 'renditionofinstanceid' => { 500 => [\'RenditionOf','RenditionOfInstanceID'] }, 'renditionoflastmodifydate' => { 500 => [\'RenditionOf','RenditionOfLastModifyDate'] }, 'renditionoflasturl' => { 500 => [\'RenditionOf','RenditionOfLastURL'] }, 'renditionoflinkcategory' => { 500 => [\'RenditionOf','RenditionOfLinkCategory'] }, 'renditionoflinkform' => { 500 => [\'RenditionOf','RenditionOfLinkForm'] }, 'renditionofmanager' => { 500 => [\'RenditionOf','RenditionOfManager'] }, 'renditionofmanagervariant' => { 500 => [\'RenditionOf','RenditionOfManagerVariant'] }, 'renditionofmanageto' => { 500 => [\'RenditionOf','RenditionOfManageTo'] }, 'renditionofmanageui' => { 500 => [\'RenditionOf','RenditionOfManageUI'] }, 'renditionofmaskmarkers' => { 500 => [\'RenditionOf','RenditionOfMaskMarkers'] }, 'renditionoforiginaldocumentid' => { 500 => [\'RenditionOf','RenditionOfOriginalDocumentID'] }, 'renditionofpartmapping' => { 500 => [\'RenditionOf','RenditionOfPartMapping'] }, 'renditionofplacedresolutionunit' => { 500 => [\'RenditionOf','RenditionOfPlacedResolutionUnit'] }, 'renditionofplacedxresolution' => { 500 => [\'RenditionOf','RenditionOfPlacedXResolution'] }, 'renditionofplacedyresolution' => { 500 => [\'RenditionOf','RenditionOfPlacedYResolution'] }, 'renditionofrenditionclass' => { 500 => [\'RenditionOf','RenditionOfRenditionClass'] }, 'renditionofrenditionparams' => { 500 => [\'RenditionOf','RenditionOfRenditionParams'] }, 'renditionoftopart' => { 500 => [\'RenditionOf','RenditionOfToPart'] }, 'renditionofversionid' => { 500 => [\'RenditionOf','RenditionOfVersionID'] }, 'renditionparams' => { 500 => 'RenditionParams' }, 'repeatingflashcount' => { 207 => 0xd, 208 => 0xe, 209 => 0xe, 210 => 0xe, 211 => 0xe, 285 => '17.2', 286 => '24.2', 287 => '9.2', 288 => '24.2', 291 => '25.2' }, 'repeatingflashcountbuilt-in' => { 252 => 0x4db }, 'repeatingflashcountexternal' => { 252 => 0x4c3 }, 'repeatingflashoutput' => { 285 => '17.1', 286 => '24.1', 287 => '9.1', 288 => '24.1', 291 => '25.1' }, 'repeatingflashoutputexternal' => { 252 => 0x4c0 }, 'repeatingflashrate' => { 207 => 0xc, 208 => 0xd, 209 => 0xd, 210 => 0xd, 211 => 0xd, 285 => '18.1', 286 => '25.1', 287 => '10.1', 288 => '25.1', 291 => '26.1' }, 'repeatingflashratebuilt-in' => { 252 => 0x4da }, 'repeatingflashrateexternal' => { 252 => 0x4c2 }, 'requirements' => { 376 => "\xa9req" }, 'requires' => { 471 => 'requires' }, 'resampleparams' => { 499 => 'resampleParams' }, 'resampleparamsquality' => { 499 => [\'resampleParams','resampleParamsQuality'] }, 'resaved' => { 392 => 0x21e }, 'resolutionmode' => { 393 => [0x87,0x4] }, 'resolutionunit' => { 118 => 0x128, 133 => 0x2, 495 => 'ResolutionUnit' }, 'restrictions' => { 492 => 'restrictions' }, 'retouchareafeather' => { 473 => [\'RetouchAreas','RetouchAreasFeather'], 475 => [\'RetouchAreas','RetouchAreasFeather'] }, 'retouchareamaskalpha' => { 473 => [\'RetouchAreas','RetouchAreasMasksAlpha'], 475 => [\'RetouchAreas','RetouchAreasMasksAlpha'] }, 'retouchareamaskangle' => { 473 => [\'RetouchAreas','RetouchAreasMasksAngle'], 475 => [\'RetouchAreas','RetouchAreasMasksAngle'] }, 'retouchareamaskbottom' => { 473 => [\'RetouchAreas','RetouchAreasMasksBottom'], 475 => [\'RetouchAreas','RetouchAreasMasksBottom'] }, 'retouchareamaskcentervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksCenterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksCenterValue'] }, 'retouchareamaskcenterweight' => { 473 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'], 475 => [\'RetouchAreas','RetouchAreasMasksCenterWeight'] }, 'retouchareamaskdabs' => { 473 => [\'RetouchAreas','RetouchAreasMasksDabs'], 475 => [\'RetouchAreas','RetouchAreasMasksDabs'] }, 'retouchareamaskfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksFeather'] }, 'retouchareamaskflipped' => { 473 => [\'RetouchAreas','RetouchAreasMasksFlipped'], 475 => [\'RetouchAreas','RetouchAreasMasksFlipped'] }, 'retouchareamaskflow' => { 473 => [\'RetouchAreas','RetouchAreasMasksFlow'], 475 => [\'RetouchAreas','RetouchAreasMasksFlow'] }, 'retouchareamaskfullx' => { 473 => [\'RetouchAreas','RetouchAreasMasksFullX'], 475 => [\'RetouchAreas','RetouchAreasMasksFullX'] }, 'retouchareamaskfully' => { 473 => [\'RetouchAreas','RetouchAreasMasksFullY'], 475 => [\'RetouchAreas','RetouchAreasMasksFullY'] }, 'retouchareamaskinputdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksInputDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksInputDigest'] }, 'retouchareamaskleft' => { 473 => [\'RetouchAreas','RetouchAreasMasksLeft'], 475 => [\'RetouchAreas','RetouchAreasMasksLeft'] }, 'retouchareamaskmaskactive' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskActive'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskActive'] }, 'retouchareamaskmaskblendmode' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskBlendMode'] }, 'retouchareamaskmaskdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskDigest'] }, 'retouchareamaskmaskinverted' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskInverted'] }, 'retouchareamaskmaskname' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskName'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskName'] }, 'retouchareamaskmasks' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasks'], 475 => [\'RetouchAreas','RetouchAreasMasksMasks'] }, 'retouchareamaskmasksalpha' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksAlpha'] }, 'retouchareamaskmasksangle' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksAngle'] }, 'retouchareamaskmasksbottom' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksBottom'] }, 'retouchareamaskmaskscentervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksCenterValue'] }, 'retouchareamaskmaskscenterweight' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksCenterWeight'] }, 'retouchareamaskmasksdabs' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksDabs'] }, 'retouchareamaskmasksfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFeather'] }, 'retouchareamaskmasksflipped' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFlipped'] }, 'retouchareamaskmasksflow' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFlow'] }, 'retouchareamaskmasksfullx' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFullX'] }, 'retouchareamaskmasksfully' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksFullY'] }, 'retouchareamaskmasksinputdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksInputDigest'] }, 'retouchareamaskmasksleft' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksLeft'] }, 'retouchareamaskmasksmaskactive' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskActive'] }, 'retouchareamaskmasksmaskblendmode' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskBlendMode'] }, 'retouchareamaskmasksmaskdigest' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskDigest'] }, 'retouchareamaskmasksmaskinverted' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskInverted'] }, 'retouchareamaskmasksmaskname' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskName'] }, 'retouchareamaskmasksmasksubtype' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSubType'] }, 'retouchareamaskmasksmasksyncid' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskSyncID'] }, 'retouchareamaskmasksmaskversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskVersion'] }, 'retouchareamaskmasksmidpoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMidpoint'] }, 'retouchareamaskmasksorigin' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksOrigin'] }, 'retouchareamaskmasksperimetervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksPerimeterValue'] }, 'retouchareamaskmasksradius' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksRadius'] }, 'retouchareamaskmasksreferencepoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksReferencePoint'] }, 'retouchareamaskmasksright' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksRight'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksRight'] }, 'retouchareamaskmasksroundness' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksRoundness'] }, 'retouchareamaskmaskssizex' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksSizeX'] }, 'retouchareamaskmaskssizey' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksSizeY'] }, 'retouchareamaskmaskstop' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksTop'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksTop'] }, 'retouchareamaskmasksubtype' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskSubType'] }, 'retouchareamaskmasksvalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksMaskValue'] }, 'retouchareamaskmasksversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksVersion'] }, 'retouchareamaskmaskswhat' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksWhat'] }, 'retouchareamaskmaskswholeimagearea' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksWholeImageArea'] }, 'retouchareamaskmasksx' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksX'] }, 'retouchareamaskmasksy' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksY'] }, 'retouchareamaskmasksyncid' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskSyncID'] }, 'retouchareamaskmaskszerox' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksZeroX'] }, 'retouchareamaskmaskszeroy' => { 473 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'], 475 => [\'RetouchAreas','RetouchAreasMasksMasksZeroY'] }, 'retouchareamaskmaskversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskVersion'] }, 'retouchareamaskmidpoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksMidpoint'], 475 => [\'RetouchAreas','RetouchAreasMasksMidpoint'] }, 'retouchareamaskorigin' => { 473 => [\'RetouchAreas','RetouchAreasMasksOrigin'], 475 => [\'RetouchAreas','RetouchAreasMasksOrigin'] }, 'retouchareamaskperimetervalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'], 475 => [\'RetouchAreas','RetouchAreasMasksPerimeterValue'] }, 'retouchareamaskradius' => { 473 => [\'RetouchAreas','RetouchAreasMasksRadius'], 475 => [\'RetouchAreas','RetouchAreasMasksRadius'] }, 'retouchareamaskrange' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMask'] }, 'retouchareamaskrangeareamodels' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModels'] }, 'retouchareamaskrangeareamodelscolorsampleinfo' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsColorRangeMaskAreaSampleInfo'] }, 'retouchareamaskrangeareamodelscomponents' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskAreaModelsAreaComponents'] }, 'retouchareamaskrangecoloramount' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskColorAmount'] }, 'retouchareamaskrangedepthfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthFeather'] }, 'retouchareamaskrangedepthmax' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMax'] }, 'retouchareamaskrangedepthmin' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskDepthMin'] }, 'retouchareamaskrangeinvert' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskInvert'] }, 'retouchareamaskrangelumfeather' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumFeather'] }, 'retouchareamaskrangeluminancedepthsampleinfo' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLuminanceDepthSampleInfo'] }, 'retouchareamaskrangelummax' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMax'] }, 'retouchareamaskrangelummin' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumMin'] }, 'retouchareamaskrangelumrange' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskLumRange'] }, 'retouchareamaskrangesampletype' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskSampleType'] }, 'retouchareamaskrangetype' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskType'] }, 'retouchareamaskrangeversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksCorrectionRangeMaskVersion'] }, 'retouchareamaskreferencepoint' => { 473 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'], 475 => [\'RetouchAreas','RetouchAreasMasksReferencePoint'] }, 'retouchareamaskright' => { 473 => [\'RetouchAreas','RetouchAreasMasksRight'], 475 => [\'RetouchAreas','RetouchAreasMasksRight'] }, 'retouchareamaskroundness' => { 473 => [\'RetouchAreas','RetouchAreasMasksRoundness'], 475 => [\'RetouchAreas','RetouchAreasMasksRoundness'] }, 'retouchareamasks' => { 473 => [\'RetouchAreas','RetouchAreasMasks'], 475 => [\'RetouchAreas','RetouchAreasMasks'] }, 'retouchareamasksizex' => { 473 => [\'RetouchAreas','RetouchAreasMasksSizeX'], 475 => [\'RetouchAreas','RetouchAreasMasksSizeX'] }, 'retouchareamasksizey' => { 473 => [\'RetouchAreas','RetouchAreasMasksSizeY'], 475 => [\'RetouchAreas','RetouchAreasMasksSizeY'] }, 'retouchareamasktop' => { 473 => [\'RetouchAreas','RetouchAreasMasksTop'], 475 => [\'RetouchAreas','RetouchAreasMasksTop'] }, 'retouchareamaskvalue' => { 473 => [\'RetouchAreas','RetouchAreasMasksMaskValue'], 475 => [\'RetouchAreas','RetouchAreasMasksMaskValue'] }, 'retouchareamaskversion' => { 473 => [\'RetouchAreas','RetouchAreasMasksVersion'], 475 => [\'RetouchAreas','RetouchAreasMasksVersion'] }, 'retouchareamaskwhat' => { 473 => [\'RetouchAreas','RetouchAreasMasksWhat'], 475 => [\'RetouchAreas','RetouchAreasMasksWhat'] }, 'retouchareamaskwholeimagearea' => { 473 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'], 475 => [\'RetouchAreas','RetouchAreasMasksWholeImageArea'] }, 'retouchareamaskx' => { 473 => [\'RetouchAreas','RetouchAreasMasksX'], 475 => [\'RetouchAreas','RetouchAreasMasksX'] }, 'retouchareamasky' => { 473 => [\'RetouchAreas','RetouchAreasMasksY'], 475 => [\'RetouchAreas','RetouchAreasMasksY'] }, 'retouchareamaskzerox' => { 473 => [\'RetouchAreas','RetouchAreasMasksZeroX'], 475 => [\'RetouchAreas','RetouchAreasMasksZeroX'] }, 'retouchareamaskzeroy' => { 473 => [\'RetouchAreas','RetouchAreasMasksZeroY'], 475 => [\'RetouchAreas','RetouchAreasMasksZeroY'] }, 'retouchareamethod' => { 473 => [\'RetouchAreas','RetouchAreasMethod'], 475 => [\'RetouchAreas','RetouchAreasMethod'] }, 'retouchareaoffsety' => { 473 => [\'RetouchAreas','RetouchAreasOffsetY'], 475 => [\'RetouchAreas','RetouchAreasOffsetY'] }, 'retouchareaopacity' => { 473 => [\'RetouchAreas','RetouchAreasOpacity'], 475 => [\'RetouchAreas','RetouchAreasOpacity'] }, 'retouchareas' => { 473 => 'RetouchAreas', 475 => 'RetouchAreas' }, 'retouchareaseed' => { 473 => [\'RetouchAreas','RetouchAreasSeed'], 475 => [\'RetouchAreas','RetouchAreasSeed'] }, 'retouchareasourcestate' => { 473 => [\'RetouchAreas','RetouchAreasSourceState'], 475 => [\'RetouchAreas','RetouchAreasSourceState'] }, 'retouchareasourcex' => { 473 => [\'RetouchAreas','RetouchAreasSourceX'], 475 => [\'RetouchAreas','RetouchAreasSourceX'] }, 'retouchareaspottype' => { 473 => [\'RetouchAreas','RetouchAreasSpotType'], 475 => [\'RetouchAreas','RetouchAreasSpotType'] }, 'retouchinfo' => { 473 => 'RetouchInfo', 475 => 'RetouchInfo' }, 'retouchnefprocessing' => { 232 => 0x5 }, 'reuse' => { 303 => 'Reuse' }, 'reuseallowed' => { 502 => 'ReuseAllowed' }, 'reuseprohibited' => { 492 => 'reuseProhibited' }, 'reverseexposurecompdial' => { 283 => '5.2' }, 'reverseindicators' => { 276 => '12.1', 277 => '6.1', 279 => '6.1', 280 => '6.1', 281 => '4.3', 282 => '5.2', 283 => '5.4', 285 => '33.5', 286 => '5.1', 289 => '6.1', 290 => '6.1', 291 => '6.2' }, 'reverseshutterspeedaperture' => { 283 => '5.3' }, 'revision' => { 477 => 'revision' }, 'richtextcomment' => { 482 => 'RichTextComment' }, 'ricohdate' => { 382 => 0x6 }, 'ricohimageheight' => { 382 => 0x2 }, 'ricohimagewidth' => { 382 => 0x0 }, 'rightalbedo' => { 464 => 'RightAlbedo' }, 'rights' => { 476 => 'rights' }, 'rightsagent' => { 492 => 'rightsAgent' }, 'rightsowner' => { 492 => 'rightsOwner' }, 'roll' => { 114 => 0x8, 376 => ['roll',"\xa9frl"] }, 'rollangle' => { 243 => 0x350b, 244 => 0x2c24, 248 => 0xc21a, 253 => 0x36f4, 254 => 0x2efb, 256 => 0xce32, 257 => 0xeaeb, 293 => 0x903, 316 => 0x90, 350 => 0x1, 388 => 0x2 }, 'rotation' => { 30 => 0x17, 31 => 0x18, 95 => 0x3, 102 => 0x10002, 107 => 0x26e, 113 => 'QuickTime-Rotation', 122 => 0x4, 164 => 'Rotation', 181 => [0x65,0x50], 182 => 0x46, 183 => 0x5a, 186 => 0x10, 243 => 0x3693, 244 => 0xca, 251 => '590.1', 269 => 0x76a43207, 316 => 0x30, 332 => '17.2', 362 => 0xd8, 369 => 'irot', 403 => 0x3f, 404 => 0x3f, 414 => 0x10 }, 'routedto' => { 481 => 'RoutedTo' }, 'routing' => { 367 => 'Routing' }, 'routingdestinations' => { 463 => 'RoutingDestinations' }, 'routingexclusions' => { 463 => 'RoutingExclusions' }, 'routingnotes' => { 481 => 'RoutingNotes' }, 'rpp' => { 468 => 'rpp' }, 'samplepagerange' => { 489 => 'samplePageRange' }, 'samplesperpixel' => { 118 => 0x115, 321 => 0x8, 495 => 'SamplesPerPixel' }, 'samsungmodelid' => { 390 => 0x3 }, 'sanyoquality' => { 392 => 0x201 }, 'sanyothumbnail' => { 392 => 0x100 }, 'saturation' => { 10 => 0x6e, 12 => 0x76, 34 => 0xe, 51 => 0x1, 111 => 0xd, 112 => [0x3013,0x1f], 118 => [0xa409,0xfe55], 126 => 0x1003, 155 => 'Saturation', 180 => 0x1f, 181 => 0x32, 182 => 0x28, 183 => 0x1a, 188 => 0x1, 224 => 0xaa, 227 => 0x35, 228 => 0x3b, 229 => 0x43, 316 => 0x40, 318 => 0x300d, 351 => 0x1f, 358 => 0xd, 377 => 0x27, 379 => 0x58, 382 => 0x28, 383 => 0x1013, 393 => 0x10, 403 => 0x1e, 404 => 0x1b, 416 => 0x2005, 473 => 'Saturation', 475 => 'Saturation', 479 => 'Saturation' }, 'saturationadj' => { 102 => 0x20901, 107 => 0x116, 224 => 0x94, 268 => 0x1, 272 => 0x2e, 450 => 0x8016 }, 'saturationadjustmentaqua' => { 473 => 'SaturationAdjustmentAqua', 475 => 'SaturationAdjustmentAqua' }, 'saturationadjustmentblue' => { 473 => 'SaturationAdjustmentBlue', 475 => 'SaturationAdjustmentBlue' }, 'saturationadjustmentgreen' => { 473 => 'SaturationAdjustmentGreen', 475 => 'SaturationAdjustmentGreen' }, 'saturationadjustmentmagenta' => { 473 => 'SaturationAdjustmentMagenta', 475 => 'SaturationAdjustmentMagenta' }, 'saturationadjustmentorange' => { 473 => 'SaturationAdjustmentOrange', 475 => 'SaturationAdjustmentOrange' }, 'saturationadjustmentpurple' => { 473 => 'SaturationAdjustmentPurple', 475 => 'SaturationAdjustmentPurple' }, 'saturationadjustmentred' => { 473 => 'SaturationAdjustmentRed', 475 => 'SaturationAdjustmentRed' }, 'saturationadjustmentyellow' => { 473 => 'SaturationAdjustmentYellow', 475 => 'SaturationAdjustmentYellow' }, 'saturationsetting' => { 301 => 0x1010, 405 => 0x11, 421 => 0x9 }, 'saveid' => { 500 => 'SaveID' }, 'scaletype' => { 499 => 'scaleType' }, 'scanimageenhancer' => { 233 => 0x60 }, 'scene' => { 376 => 'scen', 484 => 'Scene', 499 => 'scene' }, 'scenearea' => { 296 => 0x211, 298 => 0x1031 }, 'scenecapturetype' => { 118 => 0xa406, 479 => 'SceneCaptureType' }, 'scenedetect' => { 296 => 0x210, 298 => 0x1030 }, 'scenedetectdata' => { 296 => 0x212, 298 => 0x1033 }, 'scenemode' => { 141 => 0xfa02, 185 => 0x100, 224 => 0x8f, 293 => 0x509, 298 => 0x403, 316 => 0x8001, 325 => 0xf, 416 => 0xb023 }, 'sceneselect' => { 392 => 0x21f }, 'scenetype' => { 118 => 0xa301, 479 => 'SceneType' }, 'screentips' => { 276 => '12.7', 277 => '5.3', 285 => '13.1', 286 => '4.4', 289 => '5.4', 291 => '5.1' }, 'season' => { 485 => 'Season', 488 => 'season' }, 'seasonidentifier' => { 485 => [\'Season','SeasonIdentifier'] }, 'seasonname' => { 485 => [\'Season','SeasonName'] }, 'seasonnumber' => { 485 => [\'Season','SeasonNumber'] }, 'secondaryftp' => { 463 => 'SecondaryFTP' }, 'secondaryslotfunction' => { 243 => 0x1d0, 253 => 0x1d0 }, 'section' => { 489 => 'section' }, 'selftimer' => { 34 => 0x2, 316 => 0x2e, 392 => 0x214, 424 => 0x1134, 425 => 0x1134, 426 => 0x1110, 427 => 0x118c, 428 => 0x1168, 429 => 0x1020, 430 => 0x218, 431 => 0x218, 432 => 0x210 }, 'selftimerinterval' => { 286 => '19.2' }, 'selftimershotcount' => { 277 => '20.2', 279 => '20.3', 280 => '20.3', 281 => '18.2', 282 => '19.2', 283 => '19.2', 284 => '19.3', 286 => '19.3', 289 => '20.3', 290 => '20.3', 291 => '20.2' }, 'selftimershotinterval' => { 277 => '20.3', 279 => '20.2', 280 => '20.2', 284 => '19.2', 289 => '20.2', 290 => '20.2' }, 'selftimertime' => { 96 => 0x1806, 183 => 0x1f, 276 => '18.1', 277 => '20.1', 278 => '3.3', 279 => '20.1', 280 => '20.1', 281 => '18.1', 282 => '19.1', 283 => '19.1', 284 => '19.1', 285 => '7.2', 286 => '19.1', 287 => '3.3', 289 => '20.1', 290 => '20.1', 291 => '20.1' }, 'sellingagency' => { 489 => 'sellingAgency' }, 'sensingmethod' => { 118 => 0xa217, 479 => 'SensingMethod' }, 'sensitivityadjust' => { 351 => 0x40 }, 'sensitivitysteps' => { 332 => ['14.3','17.4'], 334 => 0x1 }, 'sensitivitytype' => { 118 => 0x8830, 480 => 'SensitivityType' }, 'sensorarea' => { 298 => 0x400 }, 'sensorareas' => { 390 => 0xa010 }, 'sensorbitdepth' => { 318 => 0x312d }, 'sensorcalibration' => { 297 => 0x805 }, 'sensorheight' => { 136 => 0xf901, 141 => 0xfa21, 187 => 0x8, 318 => 0x312c, 360 => 0x109, 383 => 0x1602 }, 'sensorleftmargin' => { 360 => 0x10a }, 'sensorsize' => { 155 => 'SensorSize', 351 => 0x35 }, 'sensortemperature' => { 296 => 0x1500, 298 => 0x1007, 356 => 0xc, 360 => 0x210, 393 => [0x39,0x55] }, 'sensortemperature2' => { 356 => 0xe, 360 => 0x211 }, 'sensortopmargin' => { 360 => 0x10b }, 'sensortype' => { 316 => 0xca }, 'sensorwidth' => { 136 => 0xf900, 141 => 0xfa20, 187 => 0xa, 318 => 0x312b, 360 => 0x108, 383 => 0x1601 }, 'sequence' => { 377 => 0x7, 378 => 0x35, 379 => 0x36 }, 'sequencefilenumber' => { 425 => 0x4, 426 => 0x4, 427 => 0x4, 428 => 0x4, 437 => 0xc, 438 => 0xc, 439 => 0x1a }, 'sequenceimagenumber' => { 425 => 0x0, 426 => 0x0, 427 => 0x0, 428 => 0x0, 437 => 0x8, 438 => 0x8, 439 => 0x12, 446 => 0x24 }, 'sequencelength' => { 437 => 0x22, 438 => 0x1e, 439 => [0x16,0x1e] }, 'sequencename' => { 488 => 'sequenceName' }, 'sequencenumber' => { 76 => 0x9, 112 => 0x301c, 126 => 0x1101, 139 => 0x1d, 252 => 0x51c, 316 => 0x2b, 405 => [0x10c,0x30c], 416 => 0xb04a, 488 => 'sequenceNumber' }, 'sequenceshotinterval' => { 392 => 0x224 }, 'sequencetotalnumber' => { 488 => 'sequenceTotalNumber' }, 'sequentialshot' => { 392 => 0x20e }, 'serialnumber' => { 63 => 0xc, 96 => 0x180b, 118 => [0xa431,0xfde9], 136 => 0xfa04, 138 => 0xfa00, 140 => 0xc354, 141 => 0xfa19, 152 => 0x0, 155 => 'SerialNumber', 190 => 0x5501, 224 => [0xa0,0x1d], 294 => 0x101, 298 => [0x404,0x101a], 311 => 0x303, 313 => 0x305, 318 => 0x3103, 351 => 0x229, 360 => 0x102, 361 => 0x407, 376 => ['SNum','slno'], 377 => 0x15, 378 => 0x4b, 379 => 0x7e, 383 => 0x5, 390 => 0xa002, 393 => 0x2, 416 => 0x2031, 470 => 'SerialNumber', 480 => 'BodySerialNumber' }, 'serialnumberhash' => { 376 => 'CAME' }, 'series' => { 485 => 'Series' }, 'seriesdatetime' => { 452 => 'SeriesDateTime' }, 'seriesdescription' => { 452 => 'SeriesDescription' }, 'seriesidentifier' => { 485 => [\'Series','SeriesIdentifier'] }, 'seriesmodality' => { 452 => 'SeriesModality' }, 'seriesname' => { 485 => [\'Series','SeriesName'] }, 'seriesnumber' => { 452 => 'SeriesNumber', 489 => 'seriesNumber' }, 'seriestitle' => { 489 => 'seriesTitle' }, 'servingsize' => { 491 => 'servingSize' }, 'setting' => { 488 => 'setting' }, 'shadingcompensation' => { 293 => 0x50c, 316 => 0x8a }, 'shadingcompensation2' => { 297 => 0x1012 }, 'shadow' => { 393 => 0xe }, 'shadowcorrection' => { 351 => 0x79 }, 'shadowprotection' => { 268 => 0x0 }, 'shadows' => { 118 => 0xfe52, 416 => 0x2032, 467 => 'Shadows', 473 => 'Shadows', 475 => 'Shadows' }, 'shadows2012' => { 473 => 'Shadows2012', 475 => 'Shadows2012' }, 'shadowsadj' => { 450 => 0x901a }, 'shadowtint' => { 473 => 'ShadowTint', 475 => 'ShadowTint' }, 'shakereduction' => { 353 => 0x1, 354 => 0x1 }, 'sharpendetail' => { 473 => 'SharpenDetail', 475 => 'SharpenDetail' }, 'sharpenedgemasking' => { 473 => 'SharpenEdgeMasking', 475 => 'SharpenEdgeMasking' }, 'sharpening' => { 318 => 0x300b }, 'sharpeningadj' => { 272 => 0x2b }, 'sharpenradius' => { 473 => 'SharpenRadius', 475 => 'SharpenRadius' }, 'sharpness' => { 8 => [0x42,0x48], 10 => 0x72, 12 => 0x74, 34 => 0xf, 73 => 0x2, 111 => 0xb, 112 => [0x3011,0x21], 118 => [0xa40a,0xfe56], 126 => 0x1001, 139 => 0x6b, 148 => 0x37, 155 => 'Sharpness', 180 => 0x21, 181 => 0x30, 182 => 0x26, 183 => 0x18, 188 => 0x3, 224 => 0x6, 227 => 0x32, 228 => 0x33, 229 => 0x39, 298 => 0x100f, 316 => 0x41, 351 => 0x21, 358 => 0xb, 377 => 0x26, 379 => 0x56, 382 => 0x22, 383 => [0x1003,0x1014], 393 => 0x11, 403 => 0x1c, 404 => 0x19, 416 => 0x2006, 446 => 0x52, 473 => 'Sharpness', 475 => 'Sharpness', 479 => 'Sharpness' }, 'sharpnessadj' => { 102 => 0x20310, 107 => 0x25a, 450 => 0x801a }, 'sharpnessfactor' => { 298 => 0x102a }, 'sharpnessovershoot' => { 450 => 0x801b }, 'sharpnessrange' => { 416 => 0x2035 }, 'sharpnesssetting' => { 293 => 0x506, 301 => 0x1013, 405 => 0x12, 421 => 0xa }, 'sharpnessthreshold' => { 450 => 0x801d }, 'sharpnessundershoot' => { 450 => 0x801c }, 'shootid' => { 488 => 'shootID' }, 'shootinginfodisplay' => { 276 => '13.2', 277 => '5.1', 285 => '10.2', 286 => '4.1', 289 => '5.1', 291 => '5.3' }, 'shootinginfomonitorofftime' => { 276 => '26.2', 277 => '22.2', 279 => '22.2', 280 => '22.2', 284 => '21.2', 285 => '9.1', 286 => '21.2', 289 => '22.2', 290 => '22.2', 291 => '22.2' }, 'shootingmode' => { 155 => 'ShootingMode', 224 => 0x89, 316 => 0x1f }, 'shootingmodesetting' => { 278 => '5.1' }, 'shortdescription' => { 477 => 'shortdescription' }, 'shortname' => { 473 => 'ShortName', 475 => 'ShortName' }, 'shorttitle' => { 368 => '@sti' }, 'shotdate' => { 499 => 'shotDate' }, 'shotday' => { 499 => 'shotDay' }, 'shotlocation' => { 499 => 'shotLocation' }, 'shotname' => { 376 => 'shot', 499 => 'shotName' }, 'shotnumber' => { 499 => 'shotNumber' }, 'shotnumbersincepowerup' => { 420 => 0x44e, 437 => 0x1a, 438 => 0x16, 439 => 0xa }, 'shotnumbersincepowerup2' => { 405 => 0x200 }, 'shotsize' => { 499 => 'shotSize' }, 'shotsperinterval' => { 248 => 0xc412, 261 => 0xb4 }, 'showmovement' => { 368 => 'shwm' }, 'shownevent' => { 485 => 'EventExt' }, 'showneventidentifier' => { 485 => [\'EventExt','EventExtIdentifier'] }, 'showneventname' => { 485 => [\'EventExt','EventExtName'] }, 'shutter' => { 434 => 0x20, 435 => 0x26, 436 => 0x26 }, 'shuttercount' => { 11 => 0x176, 57 => 0x1, 224 => 0xa7, 234 => [0x6a,0x157,0x24d], 235 => 0x286, 236 => 0x279, 237 => 0x284, 238 => 0x242, 239 => 0x280, 240 => 0x276, 241 => [0x27d,0x27f], 242 => 0x246, 245 => 0x2d6, 246 => 0x321, 247 => 0xbd8, 249 => 0x287, 250 => 0x320, 251 => 0x24a, 252 => 0x5fb, 255 => 0x2d5, 351 => 0x5d, 414 => 0x846, 419 => [0x125,0x14a], 434 => 0x32, 435 => 0x3a, 436 => 0x3a }, 'shuttercount2' => { 434 => 0x4c, 435 => [0x50,0x52,0x58], 436 => 0x50 }, 'shuttercount3' => { 434 => [0x1a0,0x1aa,0x1bd], 435 => [0x19f,0x1cb,0x1cd] }, 'shutterreleasebuttonae-l' => { 276 => '17.7', 277 => '18.4', 279 => '78.4', 280 => '78.4', 281 => '16.1', 282 => '17.1', 283 => '17.1', 284 => '17.1', 285 => '7.1', 286 => '17.5', 289 => '18.4', 290 => '78.4', 291 => '18.2' }, 'shutterspeedlock' => { 277 => '38.1', 279 => '38.1', 280 => '38.1', 289 => '38.1', 290 => '38.1' }, 'shutterspeedsetting' => { 183 => 0x6, 403 => 0x2f, 404 => 0x28, 405 => 0x0 }, 'shutterspeedvalue' => { 92 => 0x1, 118 => 0x9201, 298 => 0x1000, 360 => 0x400, 479 => 'ShutterSpeedValue' }, 'shuttertype' => { 126 => 0x1050, 316 => 0x9f, 351 => 0x87 }, 'sidecarforextension' => { 487 => 'SidecarForExtension' }, 'skilllevel' => { 491 => 'skillLevel' }, 'skintonecorrection' => { 351 => 0x95 }, 'slaveflashmeteringsegments' => { 351 => 0x20b }, 'slideshowname' => { 488 => 'slideshowName' }, 'slideshownumber' => { 488 => 'slideshowNumber' }, 'slideshowtotalnumber' => { 488 => 'slideshowTotalNumber' }, 'smartalbumcolor' => { 390 => 0x20 }, 'smartrange' => { 390 => 0xa012 }, 'smileshutter' => { 405 => 0x31 }, 'smileshuttermode' => { 405 => 0x27 }, 'smoothness' => { 118 => 0xfe57, 473 => 'Smoothness', 475 => 'Smoothness' }, 'snapshot' => { 485 => 'SnapshotLink' }, 'snapshotformat' => { 485 => [\'SnapshotLink','SnapshotLinkFormat'] }, 'snapshotheightpixels' => { 485 => [\'SnapshotLink','SnapshotLinkHeightPixels'] }, 'snapshotimagerole' => { 485 => [\'SnapshotLink','SnapshotLinkImageRole'] }, 'snapshotlink' => { 485 => [\'SnapshotLink','SnapshotLinkLink'] }, 'snapshotlinkqualifier' => { 485 => [\'SnapshotLink','SnapshotLinkLinkQualifier'] }, 'snapshots' => { 468 => 'Snapshots' }, 'snapshotusedvideoframe' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrame'] }, 'snapshotusedvideoframetimeformat' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeFormat'] }, 'snapshotusedvideoframetimevalue' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameTimeValue'] }, 'snapshotusedvideoframevalue' => { 485 => [\'SnapshotLink','SnapshotLinkUsedVideoFrameValue'] }, 'snapshotwidthpixels' => { 485 => [\'SnapshotLink','SnapshotLinkWidthPixels'] }, 'softskineffect' => { 416 => 0x200f }, 'software' => { 118 => 0x131, 156 => 'Software', 306 => 'Software', 360 => 0x203, 370 => 'software', 393 => 0x18, 458 => 'Software', 495 => 'Software' }, 'softwareversion' => { 376 => ['@swr',"\xa9swr"], 392 => 0x207 }, 'soloist' => { 368 => "\xa9sol" }, 'songwriter' => { 376 => "\xa9swf" }, 'songwriterkeywords' => { 376 => "\xa9swk" }, 'sonydatetime' => { 423 => 0x6, 425 => 0x1b6, 426 => 0x210, 427 => 0x1fe, 428 => 0x22c }, 'sonydatetime2' => { 434 => 0x51 }, 'sonyexposuretime' => { 434 => 0x3a, 435 => 0x46, 436 => [0x66,0x46] }, 'sonyexposuretime2' => { 446 => 0xe }, 'sonyfnumber' => { 434 => 0x3c, 435 => 0x48, 436 => [0x68,0x48], 446 => 0x14 }, 'sonyimageheight' => { 423 => 0x1a, 437 => 0x44, 438 => 0x3f, 439 => 0x47 }, 'sonyimageheightmax' => { 446 => 0x40 }, 'sonyimagesize' => { 183 => 0x3b, 403 => 0x54, 404 => 0x54, 405 => 0x9 }, 'sonyimagewidth' => { 423 => 0x1c }, 'sonyimagewidthmax' => { 446 => 0x3e }, 'sonyiso' => { 425 => 0x1218, 426 => 0x11f4, 427 => 0x1270, 428 => [0x1254,0x1258,0x1280], 429 => 0x113c, 430 => 0x344, 431 => 0x346, 432 => 0x320, 446 => 0x4 }, 'sonymaxaperture' => { 434 => 0x0, 435 => 0x0 }, 'sonymaxaperturevalue' => { 446 => 0x16 }, 'sonyminaperture' => { 434 => 0x1, 435 => 0x1 }, 'sonymodelid' => { 416 => 0xb001 }, 'sonytimeminsec' => { 435 => 0x61 }, 'sortalbum' => { 368 => 'soal' }, 'sortalbumartist' => { 368 => 'soaa' }, 'sortartist' => { 368 => 'soar' }, 'sortcomposer' => { 368 => 'soco' }, 'sortname' => { 368 => 'sonm', 473 => 'SortName', 475 => 'SortName' }, 'sortshow' => { 368 => 'sosn' }, 'soundengineer' => { 368 => "\xa9sne" }, 'source' => { 130 => 0x73, 306 => 'Source', 476 => 'source', 477 => 'source', 487 => 'Source' }, 'sourcecount' => { 462 => 'SourceCount' }, 'sourcecredits' => { 376 => "\xa9src" }, 'sourcedirectoryindex' => { 338 => 0x0 }, 'sourcefileindex' => { 338 => 0x2 }, 'sourcephotoscount' => { 461 => 'SourcePhotosCount' }, 'spatialfrequencyresponse' => { 479 => 'SpatialFrequencyResponse' }, 'spatialfrequencyresponsecolumns' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseColumns'] }, 'spatialfrequencyresponsenames' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseNames'] }, 'spatialfrequencyresponserows' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseRows'] }, 'spatialfrequencyresponsevalues' => { 479 => [\'SpatialFrequencyResponse','SpatialFrequencyResponseValues'] }, 'speakerplacement' => { 499 => 'speakerPlacement' }, 'specialmode' => { 298 => 0x200, 392 => 0x200 }, 'specialoccasion' => { 491 => 'specialOccasion' }, 'specialtypeid' => { 456 => 'SpecialTypeID' }, 'spectralsensitivity' => { 118 => 0x8824, 479 => 'SpectralSensitivity' }, 'speedx' => { 114 => 0x3, 376 => "\xa9xsp" }, 'speedy' => { 114 => 0x4, 376 => "\xa9ysp" }, 'speedz' => { 114 => 0x5, 376 => "\xa9zsp" }, 'spherical' => { 462 => 'Spherical' }, 'splitcolumn' => { 360 => 0x222 }, 'splittoningbalance' => { 473 => 'SplitToningBalance', 475 => 'SplitToningBalance' }, 'splittoninghighlighthue' => { 473 => 'SplitToningHighlightHue', 475 => 'SplitToningHighlightHue' }, 'splittoninghighlightsaturation' => { 473 => 'SplitToningHighlightSaturation', 475 => 'SplitToningHighlightSaturation' }, 'splittoningshadowhue' => { 473 => 'SplitToningShadowHue', 475 => 'SplitToningShadowHue' }, 'splittoningshadowsaturation' => { 473 => 'SplitToningShadowSaturation', 475 => 'SplitToningShadowSaturation' }, 'sport' => { 489 => 'sport' }, 'sractive' => { 332 => '17.1' }, 'srfocallength' => { 353 => 0x3 }, 'srhalfpresstime' => { 353 => 0x2 }, 'srresult' => { 353 => 0x0, 354 => 0x0 }, 'stackedimage' => { 293 => 0x804 }, 'standardoutputsensitivity' => { 118 => 0x8831, 480 => 'StandardOutputSensitivity' }, 'standbytimer' => { 277 => '19.1', 279 => '19.1', 280 => '19.1', 283 => '18.1', 284 => '18.1', 289 => '19.1', 290 => '19.1' }, 'startingpage' => { 489 => 'startingPage' }, 'starttimecode' => { 376 => "\xa9TIM", 499 => 'startTimecode' }, 'starttimecodetimeformat' => { 499 => [\'startTimecode','startTimecodeTimeFormat'] }, 'starttimecodetimevalue' => { 499 => [\'startTimecode','startTimecodeTimeValue'] }, 'starttimecodevalue' => { 499 => [\'startTimecode','startTimecodeValue'] }, 'starttimesamplesize' => { 376 => "\xa9TSZ", 499 => 'startTimeSampleSize' }, 'starttimescale' => { 376 => "\xa9TSC", 499 => 'startTimeScale' }, 'state' => { 160 => 'State', 316 => 0x6b, 487 => 'State' }, 'status' => { 454 => 'Status', 466 => 'Status' }, 'stereomode' => { 462 => 'StereoMode' }, 'stitched' => { 462 => 'Stitched' }, 'stitchingsoftware' => { 461 => 'StitchingSoftware', 462 => 'StitchingSoftware' }, 'stopsabovebaseiso' => { 424 => 0x113e, 425 => 0x113e, 426 => 0x111a, 427 => 0x1196, 428 => 0x1172, 429 => 0x102a, 430 => 0x222, 431 => 0x222, 432 => 0x217, 446 => 0xa }, 'storebyorientation' => { 277 => '46.3', 279 => '47.3', 280 => '47.3', 289 => '47.3', 290 => '47.3' }, 'storedescription' => { 368 => 'sdes' }, 'storylineidentifier' => { 485 => 'StorylineIdentifier' }, 'straightenangle' => { 269 => 0x2fc08431 }, 'streamready' => { 485 => 'StreamReady' }, 'stretchmode' => { 499 => 'stretchMode' }, 'studydatetime' => { 452 => 'StudyDateTime' }, 'studydescription' => { 452 => 'StudyDescription' }, 'studyid' => { 452 => 'StudyID' }, 'studyphysician' => { 452 => 'StudyPhysician' }, 'styleperiod' => { 485 => 'StylePeriod' }, 'subject' => { 302 => 'Subject', 367 => 'Subject', 476 => 'subject', 486 => 'Subject', 500 => 'subject' }, 'subjectarea' => { 118 => 0x9214, 479 => 'SubjectArea' }, 'subjectcode' => { 484 => 'SubjectCode' }, 'subjectdistance' => { 118 => 0x9206, 139 => 0x3e, 479 => 'SubjectDistance' }, 'subjectdistancerange' => { 118 => 0xa40c, 479 => 'SubjectDistanceRange' }, 'subjectlocation' => { 118 => 0xa214, 479 => 'SubjectLocation' }, 'subjectmotion' => { 279 => '78.2', 280 => '78.2', 290 => '78.2' }, 'sublabels1' => { 483 => [\'TagStructure','TagStructureSubLabels'] }, 'sublabels2' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabels'] }, 'sublabels3' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabels'] }, 'sublabels4' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabels'] }, 'sublabels5' => { 483 => [\'TagStructure','TagStructureSubLabelsSubLabelsSubLabelsSubLabelsSubLabels'] }, 'subsection1' => { 489 => 'subsection1' }, 'subsection2' => { 489 => 'subsection2' }, 'subsection3' => { 489 => 'subsection3' }, 'subsection4' => { 489 => 'subsection4' }, 'subselector' => { 277 => '49.1', 279 => '71.1', 280 => '71.1', 290 => '71.1' }, 'subselectorassignment' => { 277 => '48.1' }, 'subselectorcenter' => { 279 => '72.1', 280 => '72.1', 290 => '72.1' }, 'subselectorplusdials' => { 277 => '49.2', 279 => '73.1', 280 => '73.1', 290 => '73.1' }, 'subtitle' => { 178 => 'WM/SubTitle', 368 => "\xa9st3", 376 => "\xa9snm", 489 => 'subtitle' }, 'subtitlekeywords' => { 376 => "\xa9snk" }, 'subversionfilename' => { 483 => [\'SubVersions','SubVersionsFileName'] }, 'subversionreference' => { 483 => [\'SubVersions','SubVersionsVersRef'] }, 'subversions' => { 483 => 'SubVersions' }, 'supplementalcategories' => { 130 => 0x14, 487 => 'SupplementalCategories' }, 'supplementdisplayid' => { 489 => 'supplementDisplayID' }, 'supplementstartingpage' => { 489 => 'supplementStartingPage' }, 'supplementtitle' => { 489 => 'supplementTitle' }, 'supplychainsource' => { 485 => 'SupplyChainSource' }, 'supplychainsourceidentifier' => { 485 => [\'SupplyChainSource','SupplyChainSourceIdentifier'] }, 'supplychainsourcename' => { 485 => [\'SupplyChainSource','SupplyChainSourceName'] }, 'supportsamount' => { 473 => 'SupportsAmount', 475 => 'SupportsAmount' }, 'supportscolor' => { 473 => 'SupportsColor', 475 => 'SupportsColor' }, 'supportshighdynamicrange' => { 473 => 'SupportsHighDynamicRange', 475 => 'SupportsHighDynamicRange' }, 'supportsmonochrome' => { 473 => 'SupportsMonochrome', 475 => 'SupportsMonochrome' }, 'supportsnormaldynamicrange' => { 473 => 'SupportsNormalDynamicRange', 475 => 'SupportsNormalDynamicRange' }, 'supportsoutputreferred' => { 473 => 'SupportsOutputReferred', 475 => 'SupportsOutputReferred' }, 'supportsscenereferred' => { 473 => 'SupportsSceneReferred', 475 => 'SupportsSceneReferred' }, 'svisosetting' => { 332 => 0x14 }, 'swatchcoloranta' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsA'] }, 'swatchcolorantb' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsB'] }, 'swatchcolorantblack' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsBlack'] }, 'swatchcolorantblue' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsBlue'] }, 'swatchcolorantcyan' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsCyan'] }, 'swatchcolorantgray' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsGray'] }, 'swatchcolorantgreen' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsGreen'] }, 'swatchcolorantl' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsL'] }, 'swatchcolorantmagenta' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsMagenta'] }, 'swatchcolorantmode' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsMode'] }, 'swatchcolorantred' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsRed'] }, 'swatchcolorantswatchname' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsSwatchName'] }, 'swatchcoloranttint' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsTint'] }, 'swatchcoloranttype' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsType'] }, 'swatchcolorantyellow' => { 504 => [\'SwatchGroups','SwatchGroupsColorantsYellow'] }, 'swatchgroupname' => { 504 => [\'SwatchGroups','SwatchGroupsGroupName'] }, 'swatchgroups' => { 504 => 'SwatchGroups' }, 'swatchgroupscolorants' => { 504 => [\'SwatchGroups','SwatchGroupsColorants'] }, 'swatchgrouptype' => { 504 => [\'SwatchGroups','SwatchGroupsGroupType'] }, 'sweeppanoramadirection' => { 316 => 0x93, 405 => 0x33 }, 'sweeppanoramafieldofview' => { 316 => 0x94 }, 'sweeppanoramasize' => { 405 => 0x32 }, 'syncreleasemode' => { 279 => '77.1', 280 => '77.1', 290 => '77.1' }, 'system' => { 360 => 0x204 }, 'tagged' => { 362 => 0xdd, 363 => 'Tagged', 468 => 'tagged' }, 'tagslist' => { 478 => 'TagsList' }, 'tagstructure' => { 483 => 'TagStructure' }, 'takenumber' => { 499 => 'takeNumber' }, 'tapename' => { 499 => 'tapeName' }, 'teaser' => { 489 => 'teaser' }, 'teleconverter' => { 185 => 0x105, 416 => 0x105 }, 'tempo' => { 499 => 'tempo' }, 'temporalcoverage' => { 485 => 'TemporalCoverage' }, 'temporalcoveragefrom' => { 485 => [\'TemporalCoverage','TemporalCoverageTempCoverageFrom'] }, 'temporalcoverageto' => { 485 => [\'TemporalCoverage','TemporalCoverageTempCoverageTo'] }, 'termsandconditionstext' => { 303 => 'TermsAndConditionsText' }, 'termsandconditionsurl' => { 303 => 'TermsAndConditionsURL' }, 'textlayername' => { 487 => [\'TextLayers','TextLayersLayerName'] }, 'textlayers' => { 487 => 'TextLayers' }, 'textlayertext' => { 487 => [\'TextLayers','TextLayersLayerText'] }, 'textstamp' => { 316 => [0x8008,0x8009,0x3b,0x3e] }, 'texture' => { 473 => 'Texture', 475 => 'Texture' }, 'three-dtrackingfacedetection' => { 279 => '1.4', 280 => '1.4', 290 => '1.4' }, 'three-dtrackingwatcharea' => { 279 => '78.1', 280 => '78.1', 290 => '78.1' }, 'thumbnailformat' => { 497 => [\'Thumbnails','ThumbnailsFormat'] }, 'thumbnailheight' => { 141 => 0xfa55, 497 => [\'Thumbnails','ThumbnailsHeight'] }, 'thumbnailimage' => { 6 => 'CNDA', 96 => 0x2008, 113 => 'Exif-ThumbnailImage', 121 => 0x3, 166 => 'data', 298 => 0x100, 376 => 'thmb', 497 => [\'Thumbnails','ThumbnailsImage'] }, 'thumbnailpng' => { 376 => 'thmb' }, 'thumbnails' => { 497 => 'Thumbnails' }, 'thumbnailwidth' => { 141 => 0xfa54, 497 => [\'Thumbnails','ThumbnailsWidth'] }, 'ticker' => { 489 => 'ticker' }, 'tiffhandling' => { 473 => 'TIFFHandling', 475 => 'TIFFHandling' }, 'tiffmeteringimage' => { 186 => 0x104c, 414 => 0x1110 }, 'time' => { 137 => 0x401, 351 => 0x7 }, 'timecreated' => { 130 => 0x3c, 139 => 0x14, 148 => 0x10, 363 => 'TimeCreated' }, 'timelapseshotnumber' => { 319 => 0x10 }, 'timeperiod' => { 489 => 'timePeriod' }, 'timerfunctionbutton' => { 278 => '5.2', 281 => '12.1', 282 => '13.1' }, 'timerrecording' => { 316 => 0x96 }, 'timescaleparams' => { 499 => 'timeScaleParams' }, 'timescaleparamsframeoverlappingpercentage' => { 499 => [\'timeScaleParams','timeScaleParamsFrameOverlappingPercentage'] }, 'timescaleparamsframesize' => { 499 => [\'timeScaleParams','timeScaleParamsFrameSize'] }, 'timescaleparamsquality' => { 499 => [\'timeScaleParams','timeScaleParamsQuality'] }, 'timeshot' => { 463 => 'TimeShot' }, 'timesignature' => { 499 => 'timeSignature' }, 'timesincepoweron' => { 316 => 0x29 }, 'timestamp' => { 11 => 0x45e, 19 => 0x11c, 292 => 0x8, 306 => 'TimeStamp', 316 => 0xaf, 462 => 'Timestamp', 469 => 'Timestamp', 483 => 'TimeStamp' }, 'timezone' => { 77 => 0x1, 260 => 0x0, 386 => 0xa }, 'tint' => { 370 => 'player.movie.visual.tint', 473 => 'Tint', 475 => 'Tint' }, 'title' => { 156 => 'Title', 302 => 'Title', 306 => 'Title', 316 => 0x65, 367 => 'Title', 368 => ['titl',"\xa9nam"], 370 => 'title', 376 => ['titl',"\xa9nam"], 476 => 'title', 486 => 'Title', 497 => 'Title' }, 'togglestyleamount' => { 473 => 'ToggleStyleAmount', 475 => 'ToggleStyleAmount' }, 'togglestyledigest' => { 473 => 'ToggleStyleDigest', 475 => 'ToggleStyleDigest' }, 'tonecurve' => { 73 => 0x1, 351 => 0x402, 473 => 'ToneCurve', 475 => 'ToneCurve' }, 'tonecurveadobergb' => { 390 => 0xa043 }, 'tonecurveadobergbdefault' => { 390 => 0xa041 }, 'tonecurveblue' => { 473 => 'ToneCurveBlue', 475 => 'ToneCurveBlue' }, 'tonecurvebluex' => { 450 => 0x9003 }, 'tonecurvebluey' => { 450 => 0x9007 }, 'tonecurvebrightnessx' => { 450 => 0x9000 }, 'tonecurvebrightnessy' => { 450 => 0x9004 }, 'tonecurvegreen' => { 473 => 'ToneCurveGreen', 475 => 'ToneCurveGreen' }, 'tonecurvegreenx' => { 450 => 0x9002 }, 'tonecurvegreeny' => { 450 => 0x9006 }, 'tonecurvename' => { 473 => 'ToneCurveName', 475 => 'ToneCurveName' }, 'tonecurvename2012' => { 473 => 'ToneCurveName2012', 475 => 'ToneCurveName2012' }, 'tonecurvepv2012' => { 473 => 'ToneCurvePV2012', 475 => 'ToneCurvePV2012' }, 'tonecurvepv2012blue' => { 473 => 'ToneCurvePV2012Blue', 475 => 'ToneCurvePV2012Blue' }, 'tonecurvepv2012green' => { 473 => 'ToneCurvePV2012Green', 475 => 'ToneCurvePV2012Green' }, 'tonecurvepv2012red' => { 473 => 'ToneCurvePV2012Red', 475 => 'ToneCurvePV2012Red' }, 'tonecurvered' => { 473 => 'ToneCurveRed', 475 => 'ToneCurveRed' }, 'tonecurveredx' => { 450 => 0x9001 }, 'tonecurveredy' => { 450 => 0x9005 }, 'tonecurves' => { 351 => 0x403 }, 'tonecurvesrgb' => { 390 => 0xa042 }, 'tonecurvesrgbdefault' => { 390 => 0xa040 }, 'tonelevel' => { 293 => 0x52e }, 'tonemapstrength' => { 473 => 'ToneMapStrength', 475 => 'ToneMapStrength' }, 'toningeffect' => { 57 => 0xf, 224 => 0xb3, 227 => 0x38, 228 => 0x40, 229 => 0x48, 383 => 0x1015 }, 'toningsaturation' => { 227 => 0x39, 228 => 0x41, 229 => 0x49 }, 'touchae' => { 316 => 0xab }, 'track' => { 368 => "\xa9trk", 376 => "\xa9trk" }, 'trackcreatedate' => { 375 => 0x1 }, 'trackmodifydate' => { 375 => 0x2 }, 'tracknumber' => { 368 => 'trkn', 499 => 'trackNumber' }, 'tracks' => { 499 => 'Tracks' }, 'tracksframerate' => { 499 => [\'Tracks','TracksFrameRate'] }, 'tracksmarkers' => { 499 => [\'Tracks','TracksMarkers'] }, 'tracksmarkerscomment' => { 499 => [\'Tracks','TracksMarkersComment'] }, 'tracksmarkerscuepointparams' => { 499 => [\'Tracks','TracksMarkersCuePointParams'] }, 'tracksmarkerscuepointparamskey' => { 499 => [\'Tracks','TracksMarkersCuePointParamsKey'] }, 'tracksmarkerscuepointparamsvalue' => { 499 => [\'Tracks','TracksMarkersCuePointParamsValue'] }, 'tracksmarkerscuepointtype' => { 499 => [\'Tracks','TracksMarkersCuePointType'] }, 'tracksmarkersduration' => { 499 => [\'Tracks','TracksMarkersDuration'] }, 'tracksmarkerslocation' => { 499 => [\'Tracks','TracksMarkersLocation'] }, 'tracksmarkersname' => { 499 => [\'Tracks','TracksMarkersName'] }, 'tracksmarkersprobability' => { 499 => [\'Tracks','TracksMarkersProbability'] }, 'tracksmarkersspeaker' => { 499 => [\'Tracks','TracksMarkersSpeaker'] }, 'tracksmarkersstarttime' => { 499 => [\'Tracks','TracksMarkersStartTime'] }, 'tracksmarkerstarget' => { 499 => [\'Tracks','TracksMarkersTarget'] }, 'tracksmarkerstype' => { 499 => [\'Tracks','TracksMarkersType'] }, 'trackstrackname' => { 499 => [\'Tracks','TracksTrackName'] }, 'trackstracktype' => { 499 => [\'Tracks','TracksTrackType'] }, 'tracktype' => { 376 => 'kgtt' }, 'transcript' => { 485 => 'Transcript' }, 'transcriptlink' => { 485 => 'TranscriptLink' }, 'transcriptlinklink' => { 485 => [\'TranscriptLink','TranscriptLinkLink'] }, 'transcriptlinklinkqualifier' => { 485 => [\'TranscriptLink','TranscriptLinkLinkQualifier'] }, 'transferfunction' => { 118 => 0x12d, 495 => 'TransferFunction' }, 'transform' => { 316 => [0x8012,0x59] }, 'transmissionreference' => { 487 => 'TransmissionReference' }, 'trapped' => { 302 => 'Trapped', 486 => 'Trapped' }, 'travelday' => { 316 => 0x36 }, 'treble' => { 370 => 'player.movie.audio.treble' }, 'triggermode' => { 377 => 0x6, 378 => 0x34, 379 => 0x34 }, 'ttl_da_adown' => { 339 => 0x5 }, 'ttl_da_aup' => { 339 => 0x4 }, 'ttl_da_bdown' => { 339 => 0x7 }, 'ttl_da_bup' => { 339 => 0x6 }, 'tungstenawb' => { 329 => 0x1 }, 'tvepisode' => { 368 => 'tves' }, 'tvepisodeid' => { 368 => 'tven' }, 'tvexposuretimesetting' => { 332 => 0x12 }, 'tvnetworkname' => { 368 => 'tvnn' }, 'tvseason' => { 368 => 'tvsn' }, 'tvshow' => { 368 => 'tvsh' }, 'type' => { 476 => 'type', 494 => 'type' }, 'units' => { 458 => 'Units' }, 'unknown_aacr' => { 368 => 'AACR' }, 'unknown_cdek' => { 368 => 'CDEK' }, 'unknown_cdet' => { 368 => 'CDET' }, 'unknownblock' => { 351 => 0x405 }, 'unknownblock1' => { 297 => 0x635 }, 'unknownblock2' => { 297 => 0x636 }, 'unknownblock3' => { 297 => 0x1103 }, 'unknownblock4' => { 297 => 0x1104 }, 'unknowndate' => { 360 => 0x212 }, 'unknowntags' => { 376 => 'TAGS' }, 'unknownthumbnail' => { 376 => 'thmb' }, 'unsharp1color' => { 274 => 0x13 }, 'unsharp1halowidth' => { 274 => 0x19 }, 'unsharp1intensity' => { 274 => 0x17 }, 'unsharp1threshold' => { 274 => 0x1b }, 'unsharp2color' => { 274 => 0x2e }, 'unsharp2halowidth' => { 274 => 0x34 }, 'unsharp2intensity' => { 274 => 0x32 }, 'unsharp2threshold' => { 274 => 0x36 }, 'unsharp3color' => { 274 => 0x49 }, 'unsharp3halowidth' => { 274 => 0x4f }, 'unsharp3intensity' => { 274 => 0x4d }, 'unsharp3threshold' => { 274 => 0x51 }, 'unsharp4color' => { 274 => 0x64 }, 'unsharp4halowidth' => { 274 => 0x6a }, 'unsharp4intensity' => { 274 => 0x68 }, 'unsharp4threshold' => { 274 => 0x6c }, 'unsharpcount' => { 274 => 0x0 }, 'unsharpmask' => { 108 => 0x90, 269 => 0x76a43200 }, 'uprightcentermode' => { 473 => 'UprightCenterMode', 475 => 'UprightCenterMode' }, 'uprightcenternormx' => { 473 => 'UprightCenterNormX', 475 => 'UprightCenterNormX' }, 'uprightcenternormy' => { 473 => 'UprightCenterNormY', 475 => 'UprightCenterNormY' }, 'uprightdependentdigest' => { 473 => 'UprightDependentDigest', 475 => 'UprightDependentDigest' }, 'uprightfocallength35mm' => { 473 => 'UprightFocalLength35mm', 475 => 'UprightFocalLength35mm' }, 'uprightfocalmode' => { 473 => 'UprightFocalMode', 475 => 'UprightFocalMode' }, 'uprightfoursegmentscount' => { 473 => 'UprightFourSegmentsCount', 475 => 'UprightFourSegmentsCount' }, 'uprightpreview' => { 473 => 'UprightPreview', 475 => 'UprightPreview' }, 'uprighttransform_0' => { 473 => 'UprightTransform_0', 475 => 'UprightTransform_0' }, 'uprighttransform_1' => { 473 => 'UprightTransform_1', 475 => 'UprightTransform_1' }, 'uprighttransform_2' => { 473 => 'UprightTransform_2', 475 => 'UprightTransform_2' }, 'uprighttransform_3' => { 473 => 'UprightTransform_3', 475 => 'UprightTransform_3' }, 'uprighttransform_4' => { 473 => 'UprightTransform_4', 475 => 'UprightTransform_4' }, 'uprighttransform_5' => { 473 => 'UprightTransform_5', 475 => 'UprightTransform_5' }, 'uprighttransformcount' => { 473 => 'UprightTransformCount', 475 => 'UprightTransformCount' }, 'uprightversion' => { 473 => 'UprightVersion', 475 => 'UprightVersion' }, 'urgency' => { 130 => 0xa, 487 => 'Urgency' }, 'url' => { 156 => 'URL', 306 => 'URL', 365 => 0x40b, 489 => 'url' }, 'url_list' => { 365 => 0x41e }, 'urla-platform' => { 489 => [\'url','urlA-platform'] }, 'urlurl' => { 489 => [\'url','urlUrl'] }, 'usage' => { 490 => 'usage' }, 'usageterms' => { 503 => 'UsageTerms' }, 'useguidelines' => { 471 => 'useGuidelines' }, 'usepanoramaviewer' => { 461 => 'UsePanoramaViewer' }, 'usercollection' => { 370 => 'collection.user' }, 'usercomment' => { 96 => 0x805, 118 => 0x9286, 479 => 'UserComment' }, 'userfields' => { 466 => 'UserFields' }, 'userlabel' => { 377 => 0x2b, 378 => 0x5a, 379 => 0x68 }, 'userprofile' => { 311 => 0x302, 315 => 0x34c, 318 => 0x3038 }, 'userrating' => { 370 => 'rating.user', 376 => 'urat' }, 'uspsnumber' => { 489 => 'uspsNumber' }, 'uuid' => { 473 => 'UUID', 475 => 'UUID' }, 'uv-irfiltercorrection' => { 311 => 0x325 }, 'validbits' => { 297 => 0x611, 298 => 0x102c }, 'validpixeldepth' => { 301 => 0x611 }, 'variablelowpassfilter' => { 416 => 0x2028 }, 'vendor' => { 376 => 'vndr' }, 'vendorinfo' => { 453 => 'VendorInfo' }, 'vendorinfomanufacturer' => { 453 => [\'VendorInfo','VendorInfoManufacturer'] }, 'vendorinfomodel' => { 453 => [\'VendorInfo','VendorInfoModel'] }, 'vendorinfonotes' => { 453 => [\'VendorInfo','VendorInfoNotes'] }, 'version' => { 126 => 0x0, 367 => 'Version', 370 => 'version', 473 => 'Version', 475 => 'Version' }, 'versioncreatedate' => { 450 => 0xd100 }, 'versionid' => { 500 => 'VersionID' }, 'versionidentifier' => { 489 => 'versionIdentifier' }, 'versionmodifydate' => { 450 => 0xd101 }, 'versions' => { 500 => 'Versions' }, 'versionscomments' => { 500 => [\'Versions','VersionsComments'] }, 'versionsevent' => { 500 => [\'Versions','VersionsEvent'] }, 'versionseventaction' => { 500 => [\'Versions','VersionsEventAction'] }, 'versionseventchanged' => { 500 => [\'Versions','VersionsEventChanged'] }, 'versionseventinstanceid' => { 500 => [\'Versions','VersionsEventInstanceID'] }, 'versionseventparameters' => { 500 => [\'Versions','VersionsEventParameters'] }, 'versionseventsoftwareagent' => { 500 => [\'Versions','VersionsEventSoftwareAgent'] }, 'versionseventwhen' => { 500 => [\'Versions','VersionsEventWhen'] }, 'versionsmodifier' => { 500 => [\'Versions','VersionsModifier'] }, 'versionsmodifydate' => { 500 => [\'Versions','VersionsModifyDate'] }, 'versionsversion' => { 500 => [\'Versions','VersionsVersion'] }, 'verticalafonbutton' => { 276 => '3.2', 277 => '47.2', 279 => '79.1' }, 'verticalfuncbutton' => { 277 => '42.2', 279 => '67.1' }, 'verticalfuncbuttonplusdials' => { 277 => '43.1' }, 'verticalfuncplusdials' => { 279 => '68.1' }, 'verticalmultiselector' => { 277 => '42.1', 279 => '66.1', 280 => '66.1', 290 => '66.1' }, 'vibrance' => { 467 => 'Vibrance', 473 => 'Vibrance', 475 => 'Vibrance' }, 'vibrationreduction' => { 234 => [0x75,0x82,0x1ae], 242 => '586.1', 251 => '590.2', 259 => 0x4 }, 'videoalphamode' => { 499 => 'videoAlphaMode' }, 'videoalphapremultiplecolor' => { 499 => 'videoAlphaPremultipleColor' }, 'videoalphapremultiplecolora' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorA'] }, 'videoalphapremultiplecolorb' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorB'] }, 'videoalphapremultiplecolorblack' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlack'] }, 'videoalphapremultiplecolorblue' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorBlue'] }, 'videoalphapremultiplecolorcyan' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorCyan'] }, 'videoalphapremultiplecolorgray' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGray'] }, 'videoalphapremultiplecolorgreen' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorGreen'] }, 'videoalphapremultiplecolorl' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorL'] }, 'videoalphapremultiplecolormagenta' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMagenta'] }, 'videoalphapremultiplecolormode' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorMode'] }, 'videoalphapremultiplecolorred' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorRed'] }, 'videoalphapremultiplecolorswatchname' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorSwatchName'] }, 'videoalphapremultiplecolortint' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorTint'] }, 'videoalphapremultiplecolortype' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorType'] }, 'videoalphapremultiplecoloryellow' => { 499 => [\'videoAlphaPremultipleColor','videoAlphaPremultipleColorYellow'] }, 'videoalphaunityistransparent' => { 499 => 'videoAlphaUnityIsTransparent' }, 'videobitrate' => { 485 => 'videoBitRate' }, 'videobitratemode' => { 485 => 'videoBitRateMode' }, 'videoburstmode' => { 316 => 0xbb }, 'videoburstresolution' => { 316 => 0xb3 }, 'videocolorspace' => { 499 => 'videoColorSpace' }, 'videocompressor' => { 499 => 'videoCompressor' }, 'videodisplayaspectratio' => { 485 => 'videoDisplayAspectRatio' }, 'videoencodingprofile' => { 485 => 'videoEncodingProfile' }, 'videofieldorder' => { 499 => 'videoFieldOrder' }, 'videoframerate' => { 316 => 0x27, 499 => 'videoFrameRate' }, 'videoframesize' => { 499 => 'videoFrameSize' }, 'videoframesizeh' => { 499 => [\'videoFrameSize','videoFrameSizeH'] }, 'videoframesizeunit' => { 499 => [\'videoFrameSize','videoFrameSizeUnit'] }, 'videoframesizew' => { 499 => [\'videoFrameSize','videoFrameSizeW'] }, 'videomoddate' => { 499 => 'videoModDate' }, 'videopixelaspectratio' => { 499 => 'videoPixelAspectRatio' }, 'videopixeldepth' => { 499 => 'videoPixelDepth' }, 'videopreburst' => { 316 => 0xc1 }, 'videoshottype' => { 485 => 'VideoShotType' }, 'videoshottypeidentifier' => { 485 => [\'VideoShotType','VideoShotTypeIdentifier'] }, 'videoshottypename' => { 485 => [\'VideoShotType','VideoShotTypeName'] }, 'videostreamscount' => { 485 => 'videoStreamsCount' }, 'viewfinder' => { 360 => 0x455 }, 'viewfinderdisplay' => { 276 => '12.4', 277 => '6.3' }, 'viewfinderwarning' => { 276 => '13.4', 286 => '3.5', 287 => '6.2', 291 => '4.4' }, 'viewingmode' => { 405 => 0x2f, 421 => 0x18 }, 'viewingmode2' => { 405 => [0x85,0x285] }, 'viewpoint' => { 488 => 'viewpoint' }, 'vignetteamount' => { 473 => 'VignetteAmount', 475 => 'VignetteAmount' }, 'vignettecontrol' => { 224 => 0x2a, 269 => 0x76a43205 }, 'vignettecontrolintensity' => { 269 => 0xac6bd5c0 }, 'vignettecorrectionalreadyapplied' => { 470 => 'VignetteCorrectionAlreadyApplied' }, 'vignettemidpoint' => { 473 => 'VignetteMidpoint', 475 => 'VignetteMidpoint' }, 'vignetting' => { 383 => 0x1011, 390 => 0xa052 }, 'vignettingcorrection' => { 118 => 0x7031, 390 => 0xa053, 416 => 0x2011 }, 'vignettingcorrparams' => { 118 => 0x7032, 445 => 0x64a, 446 => [0x34a,0x350,0x35c,0x368] }, 'vignettingsetting' => { 390 => 0xa054 }, 'visualcolor' => { 485 => 'VisualColour' }, 'visualtechnique' => { 488 => 'visualTechnique' }, 'voicememo' => { 392 => 0x216 }, 'volume' => { 489 => 'volume' }, 'vr_0x66' => { 234 => 0x66 }, 'vrmode' => { 259 => 0x6 }, 'waterdepth' => { 118 => 0x9403, 480 => 'WaterDepth' }, 'wb_glevel' => { 297 => 0x11f }, 'wb_glevel3000k' => { 297 => 0x113 }, 'wb_glevel3300k' => { 297 => 0x114 }, 'wb_glevel3600k' => { 297 => 0x115 }, 'wb_glevel3900k' => { 297 => 0x116 }, 'wb_glevel4000k' => { 297 => 0x117 }, 'wb_glevel4300k' => { 297 => 0x118 }, 'wb_glevel4500k' => { 297 => 0x119 }, 'wb_glevel4800k' => { 297 => 0x11a }, 'wb_glevel5300k' => { 297 => 0x11b }, 'wb_glevel6000k' => { 297 => 0x11c }, 'wb_glevel6600k' => { 297 => 0x11d }, 'wb_glevel7500k' => { 297 => 0x11e }, 'wb_rblevels' => { 200 => 0x270, 224 => 0xc, 297 => 0x100 }, 'wb_rblevels1' => { 322 => 0x2 }, 'wb_rblevels2' => { 322 => 0x5 }, 'wb_rblevels3' => { 322 => 0x8 }, 'wb_rblevels3000k' => { 297 => 0x102 }, 'wb_rblevels3300k' => { 297 => 0x103 }, 'wb_rblevels3600k' => { 297 => 0x104 }, 'wb_rblevels3900k' => { 297 => 0x105 }, 'wb_rblevels4' => { 322 => 0xb }, 'wb_rblevels4000k' => { 297 => 0x106 }, 'wb_rblevels4300k' => { 297 => 0x107 }, 'wb_rblevels4500k' => { 297 => 0x108 }, 'wb_rblevels4800k' => { 297 => 0x109 }, 'wb_rblevels5' => { 322 => 0xe }, 'wb_rblevels5300k' => { 297 => 0x10a }, 'wb_rblevels6' => { 322 => 0x11 }, 'wb_rblevels6000k' => { 297 => 0x10b }, 'wb_rblevels6600k' => { 297 => 0x10c }, 'wb_rblevels7' => { 322 => 0x14 }, 'wb_rblevels7500k' => { 297 => 0x10d }, 'wb_rblevelsauto' => { 200 => 0x272, 301 => 0x110 }, 'wb_rblevelscloudy' => { 186 => 0x3f0, 188 => 0x10, 200 => 0x296, 301 => 0x121 }, 'wb_rblevelscoolwhitefluor' => { 301 => 0x132 }, 'wb_rblevelscwb1' => { 297 => 0x10e }, 'wb_rblevelscwb2' => { 297 => 0x10f }, 'wb_rblevelscwb3' => { 297 => 0x110 }, 'wb_rblevelscwb4' => { 297 => 0x111 }, 'wb_rblevelsdaylightfluor' => { 301 => 0x130 }, 'wb_rblevelsdaywhitefluor' => { 301 => 0x131 }, 'wb_rblevelseveningsunlight' => { 301 => 0x124 }, 'wb_rblevelsfineweather' => { 301 => 0x122 }, 'wb_rblevelsshade' => { 186 => 0x418, 188 => 0x20, 200 => 0x2b2, 301 => 0x120 }, 'wb_rblevelstungsten' => { 186 => 0x3e8, 188 => 0x8, 301 => 0x123 }, 'wb_rblevelsused' => { 301 => 0x100 }, 'wb_rblevelswhitefluorescent' => { 301 => 0x133 }, 'wb_rgblevels' => { 186 => [0x546,0x96], 312 => 0xd, 313 => 0x413, 318 => 0x3036, 360 => 0x107, 424 => 0x117c, 425 => 0x1180, 426 => 0x115c, 427 => 0x11d8, 428 => 0x11b4, 429 => 0x106c, 430 => 0x264, 431 => 0x264, 432 => 0x252 }, 'wb_rgblevels1' => { 323 => 0x2 }, 'wb_rgblevels2' => { 323 => 0x6 }, 'wb_rgblevels3' => { 323 => 0xa }, 'wb_rgblevels4' => { 323 => 0xe }, 'wb_rgblevels5' => { 323 => 0x12 }, 'wb_rgblevels6' => { 323 => 0x16 }, 'wb_rgblevels7' => { 323 => 0x1a }, 'wb_rgblevelsauto' => { 394 => 0x0 }, 'wb_rgblevelscustom1' => { 394 => 0x15 }, 'wb_rgblevelscustom2' => { 394 => 0x18 }, 'wb_rgblevelscustom3' => { 394 => 0x1b }, 'wb_rgblevelsdaylight' => { 394 => 0x3 }, 'wb_rgblevelsflash' => { 394 => 0x12 }, 'wb_rgblevelsfluorescent' => { 394 => 0xf }, 'wb_rgblevelsincandescent' => { 394 => 0xc }, 'wb_rgblevelsovercast' => { 394 => 0x9 }, 'wb_rgblevelsshade' => { 394 => 0x6 }, 'wb_rgblevelsunknown0' => { 395 => 0x0 }, 'wb_rgblevelsunknown1' => { 395 => 0x3 }, 'wb_rgblevelsunknown2' => { 395 => 0x6 }, 'wb_rgblevelsunknown3' => { 395 => 0x9 }, 'wb_rgblevelsunknown4' => { 395 => 0xc }, 'wb_rgblevelsunknown5' => { 395 => 0xf }, 'wb_rgblevelsunknown6' => { 395 => 0x12 }, 'wb_rgblevelsunknown7' => { 395 => 0x15 }, 'wb_rgblevelsunknown8' => { 395 => 0x18 }, 'wb_rgblevelsunknown9' => { 395 => 0x1b }, 'wb_rggblevelsauto' => { 35 => 0x1, 38 => 0x5, 39 => 0x8, 40 => 0x1e, 41 => 0x5a, 42 => 0x6e, 43 => 0x18, 44 => 0x44, 47 => 0x44, 48 => 0x44, 49 => 0x44, 50 => 0x4c, 201 => 0x1478, 202 => 0x114, 390 => 0xa022 }, 'wb_rggblevelsblack' => { 390 => 0xa028 }, 'wb_rggblevelscloudy' => { 35 => 0xd, 38 => 0x1e, 39 => 0x30, 40 => 0x2d, 41 => 0xa0, 42 => 0xd7, 43 => 0x31, 44 => 0x58, 47 => 0x71, 48 => 0x8a, 49 => 0x8f, 50 => 0x92, 201 => 0x1408, 202 => 0x60, 351 => 0x20f, 359 => 0x14 }, 'wb_rggblevelsdaylight' => { 35 => 0x5, 38 => 0x14, 39 => 0x20, 40 => 0x23, 41 => 0x96, 42 => 0xcd, 43 => 0x27, 44 => 0x4e, 47 => 0x67, 48 => 0x80, 49 => 0x85, 50 => 0x88, 201 => 0x13f8, 202 => 0x4c, 351 => 0x20d, 359 => 0x2 }, 'wb_rggblevelsflash' => { 35 => 0x19, 38 => 0x32, 39 => 0x50, 40 => 0x3c, 41 => 0xb4, 42 => 0xeb, 43 => 0x45, 44 => 0x6c, 47 => 0x85, 48 => 0x9e, 49 => 0xa3, 50 => 0xa6, 201 => 0x1448, 351 => 0x214, 359 => 0x41 }, 'wb_rggblevelsfluorescentd' => { 202 => 0xc4, 351 => 0x211, 359 => 0x26 }, 'wb_rggblevelsfluorescentl' => { 359 => 0x4a }, 'wb_rggblevelsfluorescentn' => { 202 => 0xb0, 351 => 0x212, 359 => 0x2f }, 'wb_rggblevelsfluorescentw' => { 201 => 0x1438, 202 => 0x9c, 351 => 0x213, 359 => 0x38 }, 'wb_rggblevelsilluminator1' => { 390 => 0xa023 }, 'wb_rggblevelsilluminator2' => { 390 => 0xa024 }, 'wb_rggblevelsshade' => { 35 => 0x9, 38 => 0x19, 39 => 0x28, 40 => 0x28, 41 => 0x9b, 42 => 0xd2, 43 => 0x2c, 44 => 0x53, 47 => 0x6c, 48 => 0x85, 49 => 0x8a, 50 => 0x8d, 202 => 0x74, 351 => 0x20e, 359 => 0xb }, 'wb_rggblevelstungsten' => { 35 => 0x11, 38 => 0x23, 39 => 0x38, 40 => 0x32, 41 => 0xa5, 42 => 0xdc, 43 => 0x36, 44 => 0x5d, 47 => 0x76, 48 => 0x8f, 49 => 0x94, 50 => 0x97, 201 => 0x1428, 202 => 0x88, 351 => 0x210, 359 => 0x1d }, 'wb_rggblevelsuncorrected' => { 390 => 0xa021 }, 'wb_rggblevelsunknown' => { 38 => 0xf, 39 => 0x18, 41 => 0x64, 42 => 0x78, 43 => 0x1d, 47 => 0x4e, 48 => 0x4e, 49 => 0x4e, 50 => 0x56, 359 => 0x53 }, 'wb_rggblevelsuserselected' => { 359 => 0x5c }, 'wbadjbluebalance' => { 275 => 0x8 }, 'wbadjlighting' => { 275 => 0x14 }, 'wbadjmode' => { 275 => 0x10 }, 'wbadjredbalance' => { 275 => 0x0 }, 'wbadjtemperature' => { 275 => 0x18 }, 'wbadjtint' => { 275 => 0x25 }, 'wbbluelevel' => { 311 => 0x324, 316 => 0x8006, 321 => 0x26 }, 'wbbracketingsteps' => { 243 => 0x174d, 244 => 0x87c, 253 => 0x1757 }, 'wbbracketshotnumber' => { 186 => 0x2b, 383 => 0x101a }, 'wbgreenlevel' => { 311 => 0x323, 316 => 0x8005, 321 => 0x25 }, 'wbmode' => { 188 => 0x4, 298 => 0x1015 }, 'wbredlevel' => { 311 => 0x322, 316 => 0x8004, 321 => 0x24 }, 'wbshiftab' => { 73 => 0xc, 316 => 0x46, 333 => 0x10 }, 'wbshiftab_gm' => { 416 => 0x2014 }, 'wbshiftab_gm_precise' => { 416 => 0x2026 }, 'wbshiftcreativecontrol' => { 316 => 0x92 }, 'wbshiftgm' => { 73 => 0xd, 316 => 0x47, 333 => 0x11 }, 'wbshiftintelligentauto' => { 316 => 0x8b }, 'wbtype1' => { 322 => 0x1, 323 => 0x1 }, 'wbtype2' => { 322 => 0x4, 323 => 0x5 }, 'wbtype3' => { 322 => 0x7, 323 => 0x9 }, 'wbtype4' => { 322 => 0xa, 323 => 0xd }, 'wbtype5' => { 322 => 0xd, 323 => 0x11 }, 'wbtype6' => { 322 => 0x10, 323 => 0x15 }, 'wbtype7' => { 322 => 0x13, 323 => 0x19 }, 'webstatement' => { 503 => 'WebStatement' }, 'weightedflatsubject' => { 465 => 'weightedFlatSubject' }, 'what' => { 473 => 'What', 475 => 'What' }, 'whitebalance' => { 7 => 0x6f, 8 => [0x44,0x4a], 9 => 0xbc, 10 => 0x36, 11 => 0x5e, 12 => 0x36, 13 => 0x78, 14 => 0x6f, 15 => 0x6f, 16 => 0x73, 17 => 0x6f, 18 => 0x78, 19 => 0x54, 20 => 0x6f, 21 => 0xbc, 22 => 0x7b, 24 => 0xbc, 25 => 0xc2, 27 => 0x131, 28 => 0x77, 73 => 0x8, 76 => 0x7, 111 => 0x7, 112 => [0x19,0x2012], 118 => [0xa403,0xfe4e], 126 => 0x1002, 137 => 0x3fc, 138 => 0xfa0d, 139 => 0x40, 150 => 0x1a, 180 => 0x3, 181 => 0xe, 182 => 0x4, 183 => 0xb, 185 => 0x115, 224 => 0x5, 258 => 0x7, 311 => 0x304, 316 => 0x3, 318 => 0x3033, 351 => 0x19, 358 => 0x7, 382 => 0x26, 383 => 0x1003, 393 => [0x88,0x3c,0x7,0x58], 403 => 0xf, 404 => 0xe, 416 => [0x115,0xb054], 473 => 'WhiteBalance', 475 => 'WhiteBalance', 479 => 'WhiteBalance' }, 'whitebalance2' => { 175 => 'WhiteBalance2', 293 => 0x500 }, 'whitebalanceadj' => { 102 => 0x20101, 107 => 0x18, 269 => 0x76a43204 }, 'whitebalanceautoadjustment' => { 329 => 0x0 }, 'whitebalancebias' => { 112 => 0x2011, 298 => 0x304, 316 => 0x23 }, 'whitebalancebracket' => { 293 => 0x502, 298 => 0x303 }, 'whitebalancebracketing' => { 183 => 0x22, 186 => 0x2c, 414 => 0x2c }, 'whitebalancecomp' => { 301 => 0x1001 }, 'whitebalancefinetune' => { 126 => 0x100a, 183 => 0x38, 185 => 0x112, 224 => 0xb, 383 => 0x1004, 403 => 0x6, 404 => 0x5, 416 => 0x112 }, 'whitebalancemode' => { 137 => 0x3fa, 351 => 0x1a }, 'whitebalanceset' => { 332 => 0xa }, 'whitebalancesetting' => { 183 => 0x23, 403 => 0x5, 404 => 0x4, 405 => 0x16, 421 => 0xd }, 'whitebalancesetup' => { 390 => 0x41 }, 'whitebalancetemperature' => { 293 => 0x501 }, 'whiteboard' => { 298 => 0x301 }, 'whitelevel' => { 118 => 0xc61d, 351 => 0x7e }, 'whitepoint' => { 118 => 0x13e, 315 => 0x35d, 351 => 0x201, 495 => 'WhitePoint' }, 'whites2012' => { 473 => 'Whites2012', 475 => 'Whites2012' }, 'whitesadj' => { 450 => 0x9017 }, 'wideadapter' => { 383 => 0x1017 }, 'widerange' => { 392 => 0x20f }, 'windowlocation' => { 376 => 'WLOC' }, 'windowsatom' => { 474 => 'windowsAtom' }, 'windowsatomextension' => { 474 => [\'windowsAtom','windowsAtomExtension'] }, 'windowsatominvocationflags' => { 474 => [\'windowsAtom','windowsAtomInvocationFlags'] }, 'windowsatomuncprojectpath' => { 474 => [\'windowsAtom','windowsAtomUncProjectPath'] }, 'wordcount' => { 489 => 'wordCount' }, 'work' => { 368 => "\xa9wrk" }, 'workflowtag' => { 485 => 'WorkflowTag' }, 'workflowtagcvid' => { 485 => [\'WorkflowTag','WorkflowTagCvId'] }, 'workflowtagcvtermid' => { 485 => [\'WorkflowTag','WorkflowTagCvTermId'] }, 'workflowtagcvtermname' => { 485 => [\'WorkflowTag','WorkflowTagCvTermName'] }, 'workflowtagcvtermrefinedabout' => { 485 => [\'WorkflowTag','WorkflowTagCvTermRefinedAbout'] }, 'worktodo' => { 481 => 'WorkToDo' }, 'worldtimelocation' => { 316 => 0x3a, 351 => 0x22, 357 => '0.1' }, 'x3filllight' => { 393 => 0x12 }, 'xmptoolkit' => { 496 => 'xmptk' }, 'xresolution' => { 118 => 0x11a, 133 => 0x3, 366 => 0x0, 495 => 'XResolution' }, 'yaw' => { 114 => 0x7, 376 => ['_yaw',"\xa9fyw"] }, 'yawangle' => { 243 => 0x3513, 244 => 0x2c2c, 248 => 0xc222, 253 => 0x36fc, 254 => 0x2f03, 256 => 0xce3a, 257 => 0xeaf3, 388 => 0x0 }, 'ycbcrcoefficients' => { 118 => 0x211, 495 => 'YCbCrCoefficients' }, 'ycbcrpositioning' => { 118 => 0x213, 495 => 'YCbCrPositioning' }, 'ycbcrsubsampling' => { 118 => 0x212, 495 => 'YCbCrSubSampling' }, 'year' => { 368 => 'yrrc', 370 => 'year', 376 => 'yrrc' }, 'yield' => { 491 => 'yield' }, 'yresolution' => { 118 => 0x11b, 133 => 0x5, 366 => 0x4, 495 => 'YResolution' }, 'zmenusettingsoffset' => { 256 => 0xceb6 }, 'zonematching' => { 185 => 0x10a, 188 => [0x3a,0x4a], 416 => 0xb024 }, 'zonematchingvalue' => { 403 => 0x1f }, 'zoomedpreviewlength' => { 298 => 0xf05 }, 'zoomedpreviewsize' => { 298 => 0xf06 }, 'zoomedpreviewstart' => { 298 => 0xf04 }, 'zoomstepcount' => { 296 => 0x300, 298 => 0x100d }, 'shotinfoz9' => 1, They contain a total of 25521 tags, with 16386 unique tag names. ShotInfoZ9 Nikon ShotInfoZ9 =head3 Nikon MakerNotes0x51 Tags Index1 Tag Name Writable ------ -------- -------- 0 FirmwareVersion no 10 NEFCompression int16u[0.5] 577 MovieDiffractionCompensation? int8u =head3 Nikon ShotInfoZ9 Tags These tags are extracted from encrypted data in images from the Z9. Index Tag Name Writable ----- -------- -------- 0 ShotInfoVersion no 4 FirmwareVersion no 60139 RollAngle fixed32u 60143 PitchAngle fixed32u 60147 YawAngle fixed32u $VERSION = '3.50'; 2 => '2-Dimensional Measurement', 3 => '3-Dimensional Measurement', Version: 12.38 -T exiftool-12.38 #--info=FileVersion=12.3.8.0 #--info=ProductVersion=12.3.8.0 ##"--info=Build Date=2021:12:20 08:55:06-05:00" my $version = '12.38'; $$et{TRUST_PIPE} = 1; # add groups from structure fields AddGroups($$info{$tag}, $grp0, \%groups, \@groups) if ref $$info{$tag}; -- Generated by ExifTool 12.38 -- contain %t, %g, %s or %o.)
[]
CVE-2020-15098
85d3e70dff35a99ef53f4b561114acfa9e5c47e1
https://github.com/TYPO3/TYPO3.CMS
[{'lang': 'en', 'value': 'In TYPO3 CMS greater than or equal to 9.0.0 and less than 9.5.20, and greater than or equal to 10.0.0 and less than 10.4.6, it has been discovered that an internal verification mechanism can be used to generate arbitrary checksums. This allows to inject arbitrary data having a valid cryptographic message authentication code (HMAC-SHA1) and can lead to various attack chains including potential privilege escalation, insecure deserialization & remote code execution. The overall severity of this vulnerability is high based on mentioned attack chains and the requirement of having a valid backend user session (authenticated). This has been patched in versions 9.5.20 and 10.4.6.'}]
6.5
8.8
2020-07-29T17:15Z
MEDIUM
CWE-327
Use of a Broken or Risky Cryptographic Algorithm
The product uses a broken or risky cryptographic algorithm or protocol.
[SECURITY] Avoid ambiguous HMAC results Cryptographic hashes being calculated from and for query parameters must only be used for a specific use-case or scope in order to avoid resulting hashes being ambiguous. Resolves: #91689 Releases: master, 10.4, 9.5 Change-Id: I59ca16fe71e27195b98a822607aab564425d248d Security-Bulletin: TYPO3-CORE-SA-2020-008 Security-References: CVE-2020-15098 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65125 Tested-by: Oliver Hader <oliver.hader@typo3.org> Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
2020-07-28 10:19:06 +0200
85d3e70dff
17,742
2
[ "typo3/sysext/backend/Classes/Controller/LinkBrowserController.php", "typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php", "typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php" ]
PHP
{"typo3/sysext/backend/Classes/Controller/LinkBrowserController.php": {"lines_added": 2, "lines_deleted": 2}, "typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php": {"lines_added": 1, "lines_deleted": 1}, "typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php b/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php index 619bfcbab5..94fc5417b0 100644 --- a/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php +++ b/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php @@ -117,11 +117,11 @@ class LinkBrowserController extends AbstractLinkBrowserController foreach ($fieldChangeFunctions as &$value) { $value = str_replace($originalName, $cleanedName, $value); } unset($value); } - $result = hash_equals(GeneralUtility::hmac(serialize($fieldChangeFunctions)), $this->parameters['fieldChangeFuncHash']); + $result = hash_equals(GeneralUtility::hmac(serialize($fieldChangeFunctions), 'backend-link-browser'), $this->parameters['fieldChangeFuncHash']); } return $result; } /** @@ -133,11 +133,11 @@ class LinkBrowserController extends AbstractLinkBrowserController { $formEngineParameters = []; $parameters = parent::getBodyTagAttributes(); $formEngineParameters['fieldChangeFunc'] = $this->parameters['fieldChangeFunc']; - $formEngineParameters['fieldChangeFuncHash'] = GeneralUtility::hmac(serialize($this->parameters['fieldChangeFunc'])); + $formEngineParameters['fieldChangeFuncHash'] = GeneralUtility::hmac(serialize($this->parameters['fieldChangeFunc']), 'backend-link-browser'); $parameters['data-add-on-params'] .= HttpUtility::buildQueryString(['P' => $formEngineParameters], '&'); return $parameters; } diff --git a/typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php b/typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php index 31e2a13393..849b47b4d3 100644 --- a/typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php +++ b/typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php @@ -76,11 +76,11 @@ class EditPopup extends AbstractNode 'formName' => 'editform', 'flexFormDataStructureIdentifier' => $flexFormDataStructureIdentifier, 'flexFormDataStructurePath' => $flexFormDataStructurePath, 'hmac' => GeneralUtility::hmac('editform' . $itemName, 'wizard_js'), 'fieldChangeFunc' => $parameterArray['fieldChangeFunc'], - 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc'])), + 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc']), 'backend-link-browser'), ], ]; $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class); $url = (string)$uriBuilder->buildUriFromRoute('wizard_edit', $urlParameters); diff --git a/typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php b/typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php index 932185bf2f..c04ba0aa73 100644 --- a/typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php +++ b/typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php @@ -61,11 +61,11 @@ class LinkPopup extends AbstractNode 'field' => $this->data['fieldName'], 'formName' => 'editform', 'itemName' => $itemName, 'hmac' => GeneralUtility::hmac('editform' . $itemName, 'wizard_js'), 'fieldChangeFunc' => $parameterArray['fieldChangeFunc'], - 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc'])), + 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc']), 'backend-link-browser'), ], ]; /** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */ $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class); $url = (string)$uriBuilder->buildUriFromRoute('wizard_link', $urlParameters);
$result = hash_equals(GeneralUtility::hmac(serialize($fieldChangeFunctions)), $this->parameters['fieldChangeFuncHash']); $formEngineParameters['fieldChangeFuncHash'] = GeneralUtility::hmac(serialize($this->parameters['fieldChangeFunc'])); 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc'])), 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc'])),
$result = hash_equals(GeneralUtility::hmac(serialize($fieldChangeFunctions), 'backend-link-browser'), $this->parameters['fieldChangeFuncHash']); $formEngineParameters['fieldChangeFuncHash'] = GeneralUtility::hmac(serialize($this->parameters['fieldChangeFunc']), 'backend-link-browser'); 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc']), 'backend-link-browser'), 'fieldChangeFuncHash' => GeneralUtility::hmac(serialize($parameterArray['fieldChangeFunc']), 'backend-link-browser'),
[ "cryptography" ]
CVE-2023-52266
17405b975948abc216f6a085d2d027ec1cfd5766
https://github.com/hongliuliao/ehttp
[{'lang': 'en', 'value': 'ehttp 1.0.6 before 17405b9 has an epoll_socket.cpp read_func use-after-free. An attacker can make many connections over a short time to trigger this.'}]
null
7.5
2023-12-31T00:15Z
nan
CWE-416
Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
fix log overflow & epoll_context use after free bug
2023-10-08 06:54:01 +0000
17405b9
407
2
[ "Makefile", "src/epoll_socket.cpp", "src/sim_parser.cpp", "test/issue38/poc.py" ]
C++
{"Makefile": {"lines_added": 2, "lines_deleted": 2}, "src/epoll_socket.cpp": {"lines_added": 3, "lines_deleted": 5}, "src/sim_parser.cpp": {"lines_added": 1, "lines_deleted": 1}, "test/issue38/poc.py": {"lines_added": 9, "lines_deleted": 0}}
diff --git a/Makefile b/Makefile index 9a312f5..79116e0 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,12 @@ CXX=g++ CXXFLAGS += -g -Wall LDFLAGS += -pthread ifdef ACOV - CXXFLAGS += -fprofile-arcs -ftest-coverage - LDFLAGS += -lgcov --coverage + CXXFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address + LDFLAGS += -lgcov --coverage -fsanitize=address endif MULTIPART_PARSER_INC_PATH=-I deps/multipart-parser-c/ MULTIPART_PARSER_LIB_PATH=deps/multipart-parser-c/multipart_parser.o diff --git a/src/epoll_socket.cpp b/src/epoll_socket.cpp index 635067c..0c75897 100644 --- a/src/epoll_socket.cpp +++ b/src/epoll_socket.cpp @@ -226,15 +226,10 @@ int EpollSocket::handle_accept_event(int &epollfd, epoll_event &event, EpollSock } void read_func(void *data) { TaskData *td = (TaskData *) data; td->es->handle_readable_event(td->event); - - EpollContext *hc = (EpollContext *) td->event.data.ptr; - if (hc != NULL) { - hc->_ctx_status = CONTEXT_READ_OVER; - } delete td; } int EpollSocket::handle_readable_event(epoll_event &event) { EpollContext *epoll_context = (EpollContext *) event.data.ptr; @@ -246,10 +241,13 @@ int EpollSocket::handle_readable_event(epoll_event &event) { int ret = _watcher->on_readable(_epollfd, event); if (ret == READ_CLOSE) { return close_and_release(event); } + if (epoll_context != NULL) { + epoll_context->_ctx_status = CONTEXT_READ_OVER; + } if (ret == READ_CONTINUE) { event.events = EPOLLIN | EPOLLONESHOT; ret = epoll_ctl(_epollfd, EPOLL_CTL_MOD, fd, &event); } else if (ret == READ_OVER) { // READ_OVER diff --git a/src/sim_parser.cpp b/src/sim_parser.cpp index 105db3a..faeba33 100644 --- a/src/sim_parser.cpp +++ b/src/sim_parser.cpp @@ -575,11 +575,11 @@ int Request::parse_request(const char *read_buffer, int read_size) { _total_req_size += read_size; if (_total_req_size > MAX_REQ_SIZE) { LOG_INFO("TOO BIG REQUEST WE WILL REFUSE IT! MAX_REQ_SIZE:%d", MAX_REQ_SIZE); return -1; } - LOG_DEBUG("read from client: size:%d, content:%s", read_size, read_buffer); + LOG_DEBUG("read from client: size:%d, content:%.4096s", read_size, read_buffer); ssize_t nparsed = http_parser_execute(&_parser, &_settings, read_buffer, read_size); if (nparsed != read_size) { std::string err_msg = "unkonw"; if (_parser.http_errno) { err_msg = http_errno_description(HTTP_PARSER_ERRNO(&_parser)); diff --git a/test/issue38/poc.py b/test/issue38/poc.py new file mode 100644 index 0000000..b299268 --- /dev/null +++ b/test/issue38/poc.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +import socket + +sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +sock.connect(("localhost", 8080)) +sock.send(b"GET"*5000+b" /hello"*5000+b" HTTP/1.1\r\nHost:localhost:8080\r\n\r\n") +response = sock.recv(4096) +sock.close()
CXXFLAGS += -fprofile-arcs -ftest-coverage LDFLAGS += -lgcov --coverage EpollContext *hc = (EpollContext *) td->event.data.ptr; if (hc != NULL) { hc->_ctx_status = CONTEXT_READ_OVER; } LOG_DEBUG("read from client: size:%d, content:%s", read_size, read_buffer);
CXXFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address LDFLAGS += -lgcov --coverage -fsanitize=address if (epoll_context != NULL) { epoll_context->_ctx_status = CONTEXT_READ_OVER; } LOG_DEBUG("read from client: size:%d, content:%.4096s", read_size, read_buffer); #!/usr/bin/env python3 import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(("localhost", 8080)) sock.send(b"GET"*5000+b" /hello"*5000+b" HTTP/1.1\r\nHost:localhost:8080\r\n\r\n") response = sock.recv(4096) sock.close()
[]
CVE-2023-52267
17405b975948abc216f6a085d2d027ec1cfd5766
https://github.com/hongliuliao/ehttp
[{'lang': 'en', 'value': 'ehttp 1.0.6 before 17405b9 has a simple_log.cpp _log out-of-bounds-read during error logging for long strings.'}]
null
7.5
2023-12-31T00:15Z
nan
CWE-125
Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
fix log overflow & epoll_context use after free bug
2023-10-08 06:54:01 +0000
17405b9
407
2
[ "Makefile", "src/epoll_socket.cpp", "src/sim_parser.cpp", "test/issue38/poc.py" ]
C++
{"Makefile": {"lines_added": 2, "lines_deleted": 2}, "src/epoll_socket.cpp": {"lines_added": 3, "lines_deleted": 5}, "src/sim_parser.cpp": {"lines_added": 1, "lines_deleted": 1}, "test/issue38/poc.py": {"lines_added": 9, "lines_deleted": 0}}
diff --git a/Makefile b/Makefile index 9a312f5..79116e0 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,12 @@ CXX=g++ CXXFLAGS += -g -Wall LDFLAGS += -pthread ifdef ACOV - CXXFLAGS += -fprofile-arcs -ftest-coverage - LDFLAGS += -lgcov --coverage + CXXFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address + LDFLAGS += -lgcov --coverage -fsanitize=address endif MULTIPART_PARSER_INC_PATH=-I deps/multipart-parser-c/ MULTIPART_PARSER_LIB_PATH=deps/multipart-parser-c/multipart_parser.o diff --git a/src/epoll_socket.cpp b/src/epoll_socket.cpp index 635067c..0c75897 100644 --- a/src/epoll_socket.cpp +++ b/src/epoll_socket.cpp @@ -226,15 +226,10 @@ int EpollSocket::handle_accept_event(int &epollfd, epoll_event &event, EpollSock } void read_func(void *data) { TaskData *td = (TaskData *) data; td->es->handle_readable_event(td->event); - - EpollContext *hc = (EpollContext *) td->event.data.ptr; - if (hc != NULL) { - hc->_ctx_status = CONTEXT_READ_OVER; - } delete td; } int EpollSocket::handle_readable_event(epoll_event &event) { EpollContext *epoll_context = (EpollContext *) event.data.ptr; @@ -246,10 +241,13 @@ int EpollSocket::handle_readable_event(epoll_event &event) { int ret = _watcher->on_readable(_epollfd, event); if (ret == READ_CLOSE) { return close_and_release(event); } + if (epoll_context != NULL) { + epoll_context->_ctx_status = CONTEXT_READ_OVER; + } if (ret == READ_CONTINUE) { event.events = EPOLLIN | EPOLLONESHOT; ret = epoll_ctl(_epollfd, EPOLL_CTL_MOD, fd, &event); } else if (ret == READ_OVER) { // READ_OVER diff --git a/src/sim_parser.cpp b/src/sim_parser.cpp index 105db3a..faeba33 100644 --- a/src/sim_parser.cpp +++ b/src/sim_parser.cpp @@ -575,11 +575,11 @@ int Request::parse_request(const char *read_buffer, int read_size) { _total_req_size += read_size; if (_total_req_size > MAX_REQ_SIZE) { LOG_INFO("TOO BIG REQUEST WE WILL REFUSE IT! MAX_REQ_SIZE:%d", MAX_REQ_SIZE); return -1; } - LOG_DEBUG("read from client: size:%d, content:%s", read_size, read_buffer); + LOG_DEBUG("read from client: size:%d, content:%.4096s", read_size, read_buffer); ssize_t nparsed = http_parser_execute(&_parser, &_settings, read_buffer, read_size); if (nparsed != read_size) { std::string err_msg = "unkonw"; if (_parser.http_errno) { err_msg = http_errno_description(HTTP_PARSER_ERRNO(&_parser)); diff --git a/test/issue38/poc.py b/test/issue38/poc.py new file mode 100644 index 0000000..b299268 --- /dev/null +++ b/test/issue38/poc.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +import socket + +sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +sock.connect(("localhost", 8080)) +sock.send(b"GET"*5000+b" /hello"*5000+b" HTTP/1.1\r\nHost:localhost:8080\r\n\r\n") +response = sock.recv(4096) +sock.close()
CXXFLAGS += -fprofile-arcs -ftest-coverage LDFLAGS += -lgcov --coverage EpollContext *hc = (EpollContext *) td->event.data.ptr; if (hc != NULL) { hc->_ctx_status = CONTEXT_READ_OVER; } LOG_DEBUG("read from client: size:%d, content:%s", read_size, read_buffer);
CXXFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address LDFLAGS += -lgcov --coverage -fsanitize=address if (epoll_context != NULL) { epoll_context->_ctx_status = CONTEXT_READ_OVER; } LOG_DEBUG("read from client: size:%d, content:%.4096s", read_size, read_buffer); #!/usr/bin/env python3 import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(("localhost", 8080)) sock.send(b"GET"*5000+b" /hello"*5000+b" HTTP/1.1\r\nHost:localhost:8080\r\n\r\n") response = sock.recv(4096) sock.close()
[]
CVE-2017-17713
628149159ba25adbfc29a3ae1d4b10c7eb936dd3
https://github.com/boxug/trape
[{'lang': 'en', 'value': 'Trape before 2017-11-05 has SQL injection via the /nr red parameter, the /nr vId parameter, the /register User-Agent HTTP header, the /register country parameter, the /register countryCode parameter, the /register cpu parameter, the /register isp parameter, the /register lat parameter, the /register lon parameter, the /register org parameter, the /register query parameter, the /register region parameter, the /register regionName parameter, the /register timezone parameter, the /register vId parameter, the /register zip parameter, or the /tping id parameter.'}]
7.5
9.8
2017-12-16T20:29Z
HIGH
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
SQL Insert error for some region [FIXED]
2017-11-05 09:46:10 -0500
6281491
59
3
[ "core/db.py", "core/stats.py", "core/victim.py" ]
Python
{"core/db.py": {"lines_added": 48, "lines_deleted": 31}, "core/stats.py": {"lines_added": 5, "lines_deleted": 4}, "core/victim.py": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/core/db.py b/core/db.py index 68a7283..fa18349 100644 --- a/core/db.py +++ b/core/db.py @@ -26,76 +26,93 @@ class Database(object): self.cursor.execute("""CREATE TABLE IF NOT EXISTS "clicks" ( `id` TEXT, `site` TEXT, `date` TEXT )""") self.conn.commit() return True def sql_execute(self, sentence): - self.cursor.execute(sentence) + if type(sentence) is str: + self.cursor.execute(sentence) + else: + self.cursor.execute(sentence[0], sentence[1]) return self.cursor.fetchall() def sql_one_row(self, sentence, column): - self.cursor.execute(sentence) + if type(sentence) is str: + self.cursor.execute(sentence) + else: + self.cursor.execute(sentence[0], sentence[1]) return self.cursor.fetchone()[column] def sql_insert(self, sentence): - self.cursor.execute(sentence) + if type(sentence) is str: + self.cursor.execute(sentence) + else: + self.cursor.execute(sentence[0], sentence[1]) self.conn.commit() return True def prop_sentences_stats(self, type, vId = None): return { - 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", - 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", - 'get_preview' : "SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = '%s'" % (vId), - 'id_networks' : "SELECT networks.* FROM networks WHERE id = '%s'" % (vId), - 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", - 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", - 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", - 'get_online' : "SELECT COUNT(*) AS Total FROM victims WHERE status = '%s'" % ('online') + 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", + 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", + 'get_preview' : ("SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = ?" , vId), + 'id_networks' : ("SELECT networks.* FROM networks WHERE id = ?", vId), + 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", + 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", + 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", + 'get_online' : ("SELECT COUNT(*) AS Total FROM victims WHERE status = ?", vId) }.get(type, False) def sentences_stats(self, type, vId = None): - return self.sql_execute(self.prop_sentences_stats(type, vId)) + return self.sql_execute(self.prop_sentences_stats(type, vId)) def prop_sentences_victim(self, type, data = None): if type == 'count_victim': - return "SELECT COUNT(*) AS C FROM victims WHERE id = '%s'" % (data) + t = (data,) + return ("SELECT COUNT(*) AS C FROM victims WHERE id = ?" , t) elif type == 'count_times': - return "SELECT COUNT(*) AS C FROM clicks WHERE id = '%s'" % (data) + t = (data,) + return ("SELECT COUNT(*) AS C FROM clicks WHERE id = ?" , t) elif type == 'update_victim': - return "UPDATE victims SET ip = '%s', date = '%s', bVersion = '%s', browser = '%s', device = '%s', ports = '%s', time = '%s', cpu = '%s', status = '%s' WHERE id = '%s'" % (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1]) + t = (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1],) + return ("UPDATE victims SET ip = ?, date = ?, bVersion = ?, browser = ?, device = ?, ports = ?, time = ?, cpu = ?, status = ? WHERE id = ?", t) elif type == 'update_victim_geo': - return "UPDATE geo SET city = '%s', country_code = '%s', country_name = '%s', ip = '%s', latitude = '%s', longitude = '%s', metro_code = '%s', region_code = '%s', region_name = '%s', time_zone = '%s', zip_code = '%s', isp = '%s', ua='%s' WHERE id = '%s'" % (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1]) + t = (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1],) + return ("UPDATE geo SET city = ?, country_code = ?, country_name = ?, ip = ?, latitude = ?, longitude = ?, metro_code = ?, region_code = ?, region_name = ?, time_zone = ?, zip_code = ?, isp = ?, ua=? WHERE id = ?", t) elif type == 'insert_victim': - return "INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES('%s','%s', '%s','%s', '%s','%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online') + t = (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online',) + return ("INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES(?,?, ?,?, ?,?, ?, ?, ?, ?)", t) elif type == 'insert_victim_geo': - return "INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua) + t = (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua,) + return ("INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" , t) elif type == 'count_victim_network': - return "SELECT COUNT(*) AS C FROM networks WHERE id = '%s' AND network = '%s'" % (data[0], data[1]) + return ("SELECT COUNT(*) AS C FROM networks WHERE id = ? AND network = ?", (data[0], data[1],)) elif type == 'delete_networks': - return "DELETE FROM networks WHERE id = '%s'" % (data[0]) + return ("DELETE FROM networks WHERE id = ?", (data[0],)) elif type == 'update_network': - return "UPDATE networks SET date = '%s' WHERE id = '%s' AND network = '%s'" % (data[2], data[0], data[1]) + return ("UPDATE networks SET date = ? WHERE id = ? AND network = ?" , (data[2], data[0], data[1],)) elif type == 'insert_networks': - return "INSERT INTO networks(id, public_ip, ip, network, date) VALUES('%s','%s', '%s', '%s','%s')" % (data[0], data[1], data[2], data[3], data[4]) + t = (data[0], data[1], data[2], data[3], data[4],) + return ("INSERT INTO networks(id, public_ip, ip, network, date) VALUES(?,?, ?, ?,?)" , t) elif type == 'insert_requests': - return "INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES('%s', '%s','%s', '%s', '%s','%s', '%s')" % (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1]) + t = (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1],) + return ("INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES(?, ?,?, ?, ?,?, ?)" , t) elif type == 'insert_click': - return "INSERT INTO clicks(id, site, date) VALUES('%s', '%s','%s')" % (data[0], data[1], data[2]) + return ("INSERT INTO clicks(id, site, date) VALUES(?, ?,?)", (data[0], data[1], data[2],)) elif type == 'report_online': - return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('online', data[0]) + return ("UPDATE victims SET status = ? WHERE id = ?" , ('online', data[0],)) elif type == 'clean_online': - return "UPDATE victims SET status = '%s' " % ('offline') + return ("UPDATE victims SET status = ? ", ('offline',)) elif type == 'disconnect_victim': - return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('offline', data) + return ("UPDATE victims SET status = ? WHERE id = ?" , ('offline', data,)) else: - return False + return False def sentences_victim(self, type, data = None, sRun = 1, column = 0): if sRun == 2: - return self.sql_insert(self.prop_sentences_victim(type, data)) + return self.sql_insert(self.prop_sentences_victim(type, data)) elif sRun == 3: - return self.sql_one_row(self.prop_sentences_victim(type, data), column) + return self.sql_one_row(self.prop_sentences_victim(type, data), column) else: - return self.sql_execute(self.prop_sentences_victim(type, data)) + return self.sql_execute(self.prop_sentences_victim(type, data)) def __del__(self): self.conn.close() \ No newline at end of file diff --git a/core/stats.py b/core/stats.py index a71f085..bb2cdd6 100644 --- a/core/stats.py +++ b/core/stats.py @@ -45,25 +45,26 @@ def login(): @app.route("/get_data", methods=["POST"]) def home_get_dat(): d = db.sentences_stats('get_data') n = db.sentences_stats('all_networks') - ('clean_online') rows = db.sentences_stats('get_clicks') c = rows[0][0] rows = db.sentences_stats('get_sessions') s = rows[0][0] - rows = db.sentences_stats('get_online') + vId = ('online', ) + rows = db.sentences_stats('get_online', vId) o = rows[0][0] return json.dumps({'status' : 'OK', 'd' : d, 'n' : n, 'c' : c, 's' : s, 'o' : o}); @app.route("/get_preview", methods=["POST"]) def home_get_preview(): vId = request.form['vId'] - d = db.sentences_stats('get_preview', vId) - n = db.sentences_stats('id_networks', vId) + t = (vId,) + d = db.sentences_stats('get_preview', t) + n = db.sentences_stats('id_networks', t) return json.dumps({'status' : 'OK', 'vId' : vId, 'd' : d, 'n' : n}); @app.route("/get_title", methods=["POST"]) def home_get_title(): opener = urllib2.build_opener() diff --git a/core/victim.py b/core/victim.py index 6ca13ea..047a45e 100644 --- a/core/victim.py +++ b/core/victim.py @@ -95,7 +95,7 @@ class victim_server(object): return json.dumps({'status' : 'OK', 'vId' : vrequest.id}); @app.route("/tping", methods=["POST"]) def receivePing(): vrequest = request.form['id'] - db.sentences_victim('report_online', [vrequest]) + db.sentences_victim('report_online', [vrequest], 2) return json.dumps({'status' : 'OK', 'vId' : vrequest});
self.cursor.execute(sentence) self.cursor.execute(sentence) self.cursor.execute(sentence) 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", 'get_preview' : "SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = '%s'" % (vId), 'id_networks' : "SELECT networks.* FROM networks WHERE id = '%s'" % (vId), 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", 'get_online' : "SELECT COUNT(*) AS Total FROM victims WHERE status = '%s'" % ('online') return self.sql_execute(self.prop_sentences_stats(type, vId)) return "SELECT COUNT(*) AS C FROM victims WHERE id = '%s'" % (data) return "SELECT COUNT(*) AS C FROM clicks WHERE id = '%s'" % (data) return "UPDATE victims SET ip = '%s', date = '%s', bVersion = '%s', browser = '%s', device = '%s', ports = '%s', time = '%s', cpu = '%s', status = '%s' WHERE id = '%s'" % (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1]) return "UPDATE geo SET city = '%s', country_code = '%s', country_name = '%s', ip = '%s', latitude = '%s', longitude = '%s', metro_code = '%s', region_code = '%s', region_name = '%s', time_zone = '%s', zip_code = '%s', isp = '%s', ua='%s' WHERE id = '%s'" % (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1]) return "INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES('%s','%s', '%s','%s', '%s','%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online') return "INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua) return "SELECT COUNT(*) AS C FROM networks WHERE id = '%s' AND network = '%s'" % (data[0], data[1]) return "DELETE FROM networks WHERE id = '%s'" % (data[0]) return "UPDATE networks SET date = '%s' WHERE id = '%s' AND network = '%s'" % (data[2], data[0], data[1]) return "INSERT INTO networks(id, public_ip, ip, network, date) VALUES('%s','%s', '%s', '%s','%s')" % (data[0], data[1], data[2], data[3], data[4]) return "INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES('%s', '%s','%s', '%s', '%s','%s', '%s')" % (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1]) return "INSERT INTO clicks(id, site, date) VALUES('%s', '%s','%s')" % (data[0], data[1], data[2]) return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('online', data[0]) return "UPDATE victims SET status = '%s' " % ('offline') return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('offline', data) return False return self.sql_insert(self.prop_sentences_victim(type, data)) return self.sql_one_row(self.prop_sentences_victim(type, data), column) return self.sql_execute(self.prop_sentences_victim(type, data)) ('clean_online') rows = db.sentences_stats('get_online') d = db.sentences_stats('get_preview', vId) n = db.sentences_stats('id_networks', vId) db.sentences_victim('report_online', [vrequest])
if type(sentence) is str: self.cursor.execute(sentence) else: self.cursor.execute(sentence[0], sentence[1]) if type(sentence) is str: self.cursor.execute(sentence) else: self.cursor.execute(sentence[0], sentence[1]) if type(sentence) is str: self.cursor.execute(sentence) else: self.cursor.execute(sentence[0], sentence[1]) 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", 'get_preview' : ("SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = ?" , vId), 'id_networks' : ("SELECT networks.* FROM networks WHERE id = ?", vId), 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", 'get_online' : ("SELECT COUNT(*) AS Total FROM victims WHERE status = ?", vId) return self.sql_execute(self.prop_sentences_stats(type, vId)) t = (data,) return ("SELECT COUNT(*) AS C FROM victims WHERE id = ?" , t) t = (data,) return ("SELECT COUNT(*) AS C FROM clicks WHERE id = ?" , t) t = (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1],) return ("UPDATE victims SET ip = ?, date = ?, bVersion = ?, browser = ?, device = ?, ports = ?, time = ?, cpu = ?, status = ? WHERE id = ?", t) t = (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1],) return ("UPDATE geo SET city = ?, country_code = ?, country_name = ?, ip = ?, latitude = ?, longitude = ?, metro_code = ?, region_code = ?, region_name = ?, time_zone = ?, zip_code = ?, isp = ?, ua=? WHERE id = ?", t) t = (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online',) return ("INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES(?,?, ?,?, ?,?, ?, ?, ?, ?)", t) t = (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua,) return ("INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" , t) return ("SELECT COUNT(*) AS C FROM networks WHERE id = ? AND network = ?", (data[0], data[1],)) return ("DELETE FROM networks WHERE id = ?", (data[0],)) return ("UPDATE networks SET date = ? WHERE id = ? AND network = ?" , (data[2], data[0], data[1],)) t = (data[0], data[1], data[2], data[3], data[4],) return ("INSERT INTO networks(id, public_ip, ip, network, date) VALUES(?,?, ?, ?,?)" , t) t = (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1],) return ("INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES(?, ?,?, ?, ?,?, ?)" , t) return ("INSERT INTO clicks(id, site, date) VALUES(?, ?,?)", (data[0], data[1], data[2],)) return ("UPDATE victims SET status = ? WHERE id = ?" , ('online', data[0],)) return ("UPDATE victims SET status = ? ", ('offline',)) return ("UPDATE victims SET status = ? WHERE id = ?" , ('offline', data,)) return False return self.sql_insert(self.prop_sentences_victim(type, data)) return self.sql_one_row(self.prop_sentences_victim(type, data), column) return self.sql_execute(self.prop_sentences_victim(type, data)) vId = ('online', ) rows = db.sentences_stats('get_online', vId) t = (vId,) d = db.sentences_stats('get_preview', t) n = db.sentences_stats('id_networks', t) db.sentences_victim('report_online', [vrequest], 2)
[]
CVE-2017-17714
628149159ba25adbfc29a3ae1d4b10c7eb936dd3
https://github.com/boxug/trape
[{'lang': 'en', 'value': 'Trape before 2017-11-05 has XSS via the /nr red parameter, the /nr vId parameter, the /register User-Agent HTTP header, the /register country parameter, the /register countryCode parameter, the /register cpu parameter, the /register isp parameter, the /register lat parameter, the /register lon parameter, the /register org parameter, the /register query parameter, the /register region parameter, the /register regionName parameter, the /register timezone parameter, the /register vId parameter, the /register zip parameter, or the /tping id parameter.'}]
4.3
6.1
2017-12-16T20:29Z
MEDIUM
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
SQL Insert error for some region [FIXED]
2017-11-05 09:46:10 -0500
6281491
59
3
[ "core/db.py", "core/stats.py", "core/victim.py" ]
Python
{"core/db.py": {"lines_added": 48, "lines_deleted": 31}, "core/stats.py": {"lines_added": 5, "lines_deleted": 4}, "core/victim.py": {"lines_added": 1, "lines_deleted": 1}}
diff --git a/core/db.py b/core/db.py index 68a7283..fa18349 100644 --- a/core/db.py +++ b/core/db.py @@ -26,76 +26,93 @@ class Database(object): self.cursor.execute("""CREATE TABLE IF NOT EXISTS "clicks" ( `id` TEXT, `site` TEXT, `date` TEXT )""") self.conn.commit() return True def sql_execute(self, sentence): - self.cursor.execute(sentence) + if type(sentence) is str: + self.cursor.execute(sentence) + else: + self.cursor.execute(sentence[0], sentence[1]) return self.cursor.fetchall() def sql_one_row(self, sentence, column): - self.cursor.execute(sentence) + if type(sentence) is str: + self.cursor.execute(sentence) + else: + self.cursor.execute(sentence[0], sentence[1]) return self.cursor.fetchone()[column] def sql_insert(self, sentence): - self.cursor.execute(sentence) + if type(sentence) is str: + self.cursor.execute(sentence) + else: + self.cursor.execute(sentence[0], sentence[1]) self.conn.commit() return True def prop_sentences_stats(self, type, vId = None): return { - 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", - 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", - 'get_preview' : "SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = '%s'" % (vId), - 'id_networks' : "SELECT networks.* FROM networks WHERE id = '%s'" % (vId), - 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", - 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", - 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", - 'get_online' : "SELECT COUNT(*) AS Total FROM victims WHERE status = '%s'" % ('online') + 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", + 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", + 'get_preview' : ("SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = ?" , vId), + 'id_networks' : ("SELECT networks.* FROM networks WHERE id = ?", vId), + 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", + 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", + 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", + 'get_online' : ("SELECT COUNT(*) AS Total FROM victims WHERE status = ?", vId) }.get(type, False) def sentences_stats(self, type, vId = None): - return self.sql_execute(self.prop_sentences_stats(type, vId)) + return self.sql_execute(self.prop_sentences_stats(type, vId)) def prop_sentences_victim(self, type, data = None): if type == 'count_victim': - return "SELECT COUNT(*) AS C FROM victims WHERE id = '%s'" % (data) + t = (data,) + return ("SELECT COUNT(*) AS C FROM victims WHERE id = ?" , t) elif type == 'count_times': - return "SELECT COUNT(*) AS C FROM clicks WHERE id = '%s'" % (data) + t = (data,) + return ("SELECT COUNT(*) AS C FROM clicks WHERE id = ?" , t) elif type == 'update_victim': - return "UPDATE victims SET ip = '%s', date = '%s', bVersion = '%s', browser = '%s', device = '%s', ports = '%s', time = '%s', cpu = '%s', status = '%s' WHERE id = '%s'" % (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1]) + t = (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1],) + return ("UPDATE victims SET ip = ?, date = ?, bVersion = ?, browser = ?, device = ?, ports = ?, time = ?, cpu = ?, status = ? WHERE id = ?", t) elif type == 'update_victim_geo': - return "UPDATE geo SET city = '%s', country_code = '%s', country_name = '%s', ip = '%s', latitude = '%s', longitude = '%s', metro_code = '%s', region_code = '%s', region_name = '%s', time_zone = '%s', zip_code = '%s', isp = '%s', ua='%s' WHERE id = '%s'" % (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1]) + t = (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1],) + return ("UPDATE geo SET city = ?, country_code = ?, country_name = ?, ip = ?, latitude = ?, longitude = ?, metro_code = ?, region_code = ?, region_name = ?, time_zone = ?, zip_code = ?, isp = ?, ua=? WHERE id = ?", t) elif type == 'insert_victim': - return "INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES('%s','%s', '%s','%s', '%s','%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online') + t = (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online',) + return ("INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES(?,?, ?,?, ?,?, ?, ?, ?, ?)", t) elif type == 'insert_victim_geo': - return "INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua) + t = (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua,) + return ("INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" , t) elif type == 'count_victim_network': - return "SELECT COUNT(*) AS C FROM networks WHERE id = '%s' AND network = '%s'" % (data[0], data[1]) + return ("SELECT COUNT(*) AS C FROM networks WHERE id = ? AND network = ?", (data[0], data[1],)) elif type == 'delete_networks': - return "DELETE FROM networks WHERE id = '%s'" % (data[0]) + return ("DELETE FROM networks WHERE id = ?", (data[0],)) elif type == 'update_network': - return "UPDATE networks SET date = '%s' WHERE id = '%s' AND network = '%s'" % (data[2], data[0], data[1]) + return ("UPDATE networks SET date = ? WHERE id = ? AND network = ?" , (data[2], data[0], data[1],)) elif type == 'insert_networks': - return "INSERT INTO networks(id, public_ip, ip, network, date) VALUES('%s','%s', '%s', '%s','%s')" % (data[0], data[1], data[2], data[3], data[4]) + t = (data[0], data[1], data[2], data[3], data[4],) + return ("INSERT INTO networks(id, public_ip, ip, network, date) VALUES(?,?, ?, ?,?)" , t) elif type == 'insert_requests': - return "INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES('%s', '%s','%s', '%s', '%s','%s', '%s')" % (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1]) + t = (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1],) + return ("INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES(?, ?,?, ?, ?,?, ?)" , t) elif type == 'insert_click': - return "INSERT INTO clicks(id, site, date) VALUES('%s', '%s','%s')" % (data[0], data[1], data[2]) + return ("INSERT INTO clicks(id, site, date) VALUES(?, ?,?)", (data[0], data[1], data[2],)) elif type == 'report_online': - return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('online', data[0]) + return ("UPDATE victims SET status = ? WHERE id = ?" , ('online', data[0],)) elif type == 'clean_online': - return "UPDATE victims SET status = '%s' " % ('offline') + return ("UPDATE victims SET status = ? ", ('offline',)) elif type == 'disconnect_victim': - return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('offline', data) + return ("UPDATE victims SET status = ? WHERE id = ?" , ('offline', data,)) else: - return False + return False def sentences_victim(self, type, data = None, sRun = 1, column = 0): if sRun == 2: - return self.sql_insert(self.prop_sentences_victim(type, data)) + return self.sql_insert(self.prop_sentences_victim(type, data)) elif sRun == 3: - return self.sql_one_row(self.prop_sentences_victim(type, data), column) + return self.sql_one_row(self.prop_sentences_victim(type, data), column) else: - return self.sql_execute(self.prop_sentences_victim(type, data)) + return self.sql_execute(self.prop_sentences_victim(type, data)) def __del__(self): self.conn.close() \ No newline at end of file diff --git a/core/stats.py b/core/stats.py index a71f085..bb2cdd6 100644 --- a/core/stats.py +++ b/core/stats.py @@ -45,25 +45,26 @@ def login(): @app.route("/get_data", methods=["POST"]) def home_get_dat(): d = db.sentences_stats('get_data') n = db.sentences_stats('all_networks') - ('clean_online') rows = db.sentences_stats('get_clicks') c = rows[0][0] rows = db.sentences_stats('get_sessions') s = rows[0][0] - rows = db.sentences_stats('get_online') + vId = ('online', ) + rows = db.sentences_stats('get_online', vId) o = rows[0][0] return json.dumps({'status' : 'OK', 'd' : d, 'n' : n, 'c' : c, 's' : s, 'o' : o}); @app.route("/get_preview", methods=["POST"]) def home_get_preview(): vId = request.form['vId'] - d = db.sentences_stats('get_preview', vId) - n = db.sentences_stats('id_networks', vId) + t = (vId,) + d = db.sentences_stats('get_preview', t) + n = db.sentences_stats('id_networks', t) return json.dumps({'status' : 'OK', 'vId' : vId, 'd' : d, 'n' : n}); @app.route("/get_title", methods=["POST"]) def home_get_title(): opener = urllib2.build_opener() diff --git a/core/victim.py b/core/victim.py index 6ca13ea..047a45e 100644 --- a/core/victim.py +++ b/core/victim.py @@ -95,7 +95,7 @@ class victim_server(object): return json.dumps({'status' : 'OK', 'vId' : vrequest.id}); @app.route("/tping", methods=["POST"]) def receivePing(): vrequest = request.form['id'] - db.sentences_victim('report_online', [vrequest]) + db.sentences_victim('report_online', [vrequest], 2) return json.dumps({'status' : 'OK', 'vId' : vrequest});
self.cursor.execute(sentence) self.cursor.execute(sentence) self.cursor.execute(sentence) 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", 'get_preview' : "SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = '%s'" % (vId), 'id_networks' : "SELECT networks.* FROM networks WHERE id = '%s'" % (vId), 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", 'get_online' : "SELECT COUNT(*) AS Total FROM victims WHERE status = '%s'" % ('online') return self.sql_execute(self.prop_sentences_stats(type, vId)) return "SELECT COUNT(*) AS C FROM victims WHERE id = '%s'" % (data) return "SELECT COUNT(*) AS C FROM clicks WHERE id = '%s'" % (data) return "UPDATE victims SET ip = '%s', date = '%s', bVersion = '%s', browser = '%s', device = '%s', ports = '%s', time = '%s', cpu = '%s', status = '%s' WHERE id = '%s'" % (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1]) return "UPDATE geo SET city = '%s', country_code = '%s', country_name = '%s', ip = '%s', latitude = '%s', longitude = '%s', metro_code = '%s', region_code = '%s', region_name = '%s', time_zone = '%s', zip_code = '%s', isp = '%s', ua='%s' WHERE id = '%s'" % (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1]) return "INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES('%s','%s', '%s','%s', '%s','%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online') return "INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')" % (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua) return "SELECT COUNT(*) AS C FROM networks WHERE id = '%s' AND network = '%s'" % (data[0], data[1]) return "DELETE FROM networks WHERE id = '%s'" % (data[0]) return "UPDATE networks SET date = '%s' WHERE id = '%s' AND network = '%s'" % (data[2], data[0], data[1]) return "INSERT INTO networks(id, public_ip, ip, network, date) VALUES('%s','%s', '%s', '%s','%s')" % (data[0], data[1], data[2], data[3], data[4]) return "INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES('%s', '%s','%s', '%s', '%s','%s', '%s')" % (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1]) return "INSERT INTO clicks(id, site, date) VALUES('%s', '%s','%s')" % (data[0], data[1], data[2]) return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('online', data[0]) return "UPDATE victims SET status = '%s' " % ('offline') return "UPDATE victims SET status = '%s' WHERE id = '%s'" % ('offline', data) return False return self.sql_insert(self.prop_sentences_victim(type, data)) return self.sql_one_row(self.prop_sentences_victim(type, data), column) return self.sql_execute(self.prop_sentences_victim(type, data)) ('clean_online') rows = db.sentences_stats('get_online') d = db.sentences_stats('get_preview', vId) n = db.sentences_stats('id_networks', vId) db.sentences_victim('report_online', [vrequest])
if type(sentence) is str: self.cursor.execute(sentence) else: self.cursor.execute(sentence[0], sentence[1]) if type(sentence) is str: self.cursor.execute(sentence) else: self.cursor.execute(sentence[0], sentence[1]) if type(sentence) is str: self.cursor.execute(sentence) else: self.cursor.execute(sentence[0], sentence[1]) 'get_data' : "SELECT victims.*, geo.*, victims.ip AS ip_local, COUNT(clicks.id) FROM victims INNER JOIN geo ON victims.id = geo.id LEFT JOIN clicks ON clicks.id = victims.id GROUP BY victims.id ORDER BY victims.time DESC", 'all_networks' : "SELECT networks.* FROM networks ORDER BY id", 'get_preview' : ("SELECT victims.*, geo.*, victims.ip AS ip_local FROM victims INNER JOIN geo ON victims.id = geo.id WHERE victims.id = ?" , vId), 'id_networks' : ("SELECT networks.* FROM networks WHERE id = ?", vId), 'get_requests' : "SELECT requests.*, geo.ip FROM requests INNER JOIN geo on geo.id = requests.user_id ORDER BY requests.date DESC, requests.id ", 'get_sessions' : "SELECT COUNT(*) AS Total FROM networks", 'get_clicks' : "SELECT COUNT(*) AS Total FROM clicks", 'get_online' : ("SELECT COUNT(*) AS Total FROM victims WHERE status = ?", vId) return self.sql_execute(self.prop_sentences_stats(type, vId)) t = (data,) return ("SELECT COUNT(*) AS C FROM victims WHERE id = ?" , t) t = (data,) return ("SELECT COUNT(*) AS C FROM clicks WHERE id = ?" , t) t = (data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online', data[1],) return ("UPDATE victims SET ip = ?, date = ?, bVersion = ?, browser = ?, device = ?, ports = ?, time = ?, cpu = ?, status = ? WHERE id = ?", t) t = (data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua, data[1],) return ("UPDATE geo SET city = ?, country_code = ?, country_name = ?, ip = ?, latitude = ?, longitude = ?, metro_code = ?, region_code = ?, region_name = ?, time_zone = ?, zip_code = ?, isp = ?, ua=? WHERE id = ?", t) t = (data[1], data[0].ip, data[0].date, data[0].version, data[0].browser, data[0].device, data[0].ports, data[2], data[0].cpu, 'online',) return ("INSERT INTO victims(id, ip, date, bVersion, browser, device, ports, time, cpu, status) VALUES(?,?, ?,?, ?,?, ?, ?, ?, ?)", t) t = (data[1], data[0].city, data[0].country_code, data[0].country_name, data[0].ip, data[0].latitude, data[0].longitude, data[0].metro_code, data[0].region_code, data[0].region_name, data[0].time_zone, data[0].zip_code, data[0].isp, data[0].ua,) return ("INSERT INTO geo(id, city, country_code, country_name, ip, latitude, longitude, metro_code, region_code, region_name, time_zone, zip_code, isp, ua) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" , t) return ("SELECT COUNT(*) AS C FROM networks WHERE id = ? AND network = ?", (data[0], data[1],)) return ("DELETE FROM networks WHERE id = ?", (data[0],)) return ("UPDATE networks SET date = ? WHERE id = ? AND network = ?" , (data[2], data[0], data[1],)) t = (data[0], data[1], data[2], data[3], data[4],) return ("INSERT INTO networks(id, public_ip, ip, network, date) VALUES(?,?, ?, ?,?)" , t) t = (data[0].sId, data[0].id, data[0].site, data[0].fid, data[0].name, data[0].value, data[1],) return ("INSERT INTO requests(id, user_id, site, fid, name, value, date) VALUES(?, ?,?, ?, ?,?, ?)" , t) return ("INSERT INTO clicks(id, site, date) VALUES(?, ?,?)", (data[0], data[1], data[2],)) return ("UPDATE victims SET status = ? WHERE id = ?" , ('online', data[0],)) return ("UPDATE victims SET status = ? ", ('offline',)) return ("UPDATE victims SET status = ? WHERE id = ?" , ('offline', data,)) return False return self.sql_insert(self.prop_sentences_victim(type, data)) return self.sql_one_row(self.prop_sentences_victim(type, data), column) return self.sql_execute(self.prop_sentences_victim(type, data)) vId = ('online', ) rows = db.sentences_stats('get_online', vId) t = (vId,) d = db.sentences_stats('get_preview', t) n = db.sentences_stats('id_networks', t) db.sentences_victim('report_online', [vrequest], 2)
[]
CVE-2021-29421
3f38f73218e5e782fe411ccbb3b44a793c0b343a
https://github.com/pikepdf/pikepdf
[{'lang': 'en', 'value': 'models/metadata.py in the pikepdf package 1.3.0 through 2.9.2 for Python allows XXE when parsing XMP metadata entries.'}]
5
7.5
2021-04-01T20:15Z
MEDIUM
CWE-611
Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
Fix XXE vulnerability in XMP metadata parsing For details: https://portswigger.net/web-security/xxe Reported by: Eric Therond eric.therond@sonarsource.com) of Sonarsource (https://www.sonarsource.com/)
2021-03-29 23:59:59 -0700
3f38f73
236
2
[ "src/pikepdf/_xml.py", "src/pikepdf/models/metadata.py", "tests/test_metadata.py" ]
Python
{"src/pikepdf/_xml.py": {"lines_added": 30, "lines_deleted": 0}, "src/pikepdf/models/metadata.py": {"lines_added": 5, "lines_deleted": 5}, "tests/test_metadata.py": {"lines_added": 24, "lines_deleted": 0}}
diff --git a/src/pikepdf/_xml.py b/src/pikepdf/_xml.py new file mode 100644 index 0000000..f0e1c38 --- /dev/null +++ b/src/pikepdf/_xml.py @@ -0,0 +1,30 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# Copyright (C) 2021, James R. Barlow (https://github.com/jbarlow83/) + + +from typing import IO, Any, AnyStr, Union + +from lxml.etree import XMLParser as _UnsafeXMLParser +from lxml.etree import parse as _parse + + +class _XMLParser(_UnsafeXMLParser): + def __init__(self, *args, **kwargs): + # Prevent XXE attacks + # https://rules.sonarsource.com/python/type/Vulnerability/RSPEC-2755 + kwargs['resolve_entities'] = False + kwargs['no_network'] = True + super().__init__(*args, **kwargs) + + +def parse_xml(source: Union[AnyStr, IO[Any]], recover: bool = False): + """Wrapper around lxml's parse to provide protection against XXE attacks.""" + + parser = _XMLParser(recover=recover, remove_pis=False) + return _parse(source, parser=parser) + + +__all__ = ['parse_xml'] diff --git a/src/pikepdf/models/metadata.py b/src/pikepdf/models/metadata.py index 086eed1..9cb2203 100644 --- a/src/pikepdf/models/metadata.py +++ b/src/pikepdf/models/metadata.py @@ -24,14 +24,15 @@ from typing import ( Union, ) from warnings import warn from lxml import etree -from lxml.etree import QName, XMLParser, XMLSyntaxError, parse +from lxml.etree import QName, XMLSyntaxError from .. import Name, Stream, String from .. import __version__ as pikepdf_version +from .._xml import parse_xml if sys.version_info < (3, 9): # pragma: no cover from typing import Iterable, MutableMapping else: from collections.abc import Iterable, MutableMapping @@ -411,18 +412,17 @@ class PdfMetadata(MutableMapping): def _load_from(self, data: bytes) -> None: if data.strip() == b'': data = XMP_EMPTY # on some platforms lxml chokes on empty documents def basic_parser(xml): - return parse(BytesIO(xml)) + return parse_xml(BytesIO(xml)) def strip_illegal_bytes_parser(xml): - return parse(BytesIO(re_xml_illegal_bytes.sub(b'', xml))) + return parse_xml(BytesIO(re_xml_illegal_bytes.sub(b'', xml))) def recovery_parser(xml): - parser = XMLParser(recover=True) - return parse(BytesIO(xml), parser) + return parse_xml(BytesIO(xml), recover=True) def replace_with_empty_xmp(_xml=None): log.warning("Error occurred parsing XMP, replacing with empty XMP.") return basic_parser(XMP_EMPTY) diff --git a/tests/test_metadata.py b/tests/test_metadata.py index d27f9a4..d6f35a2 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -727,5 +727,29 @@ def test_exception_undoes_edits(graph): except ValueError as e: if 'test_exception_aborts_edits' not in str(e): raise m = graph.open_metadata() assert m['dc:format'] != 'application/pdf-demo' + + +def test_xxe(trivial, outdir): + secret = outdir / 'secret.txt' + secret.write_text("This is a secret") + trivial.Root.Metadata = Stream( + trivial, + b"""\ +<?xpacket begin='\xef\xbb\xbf' id='W5M0MpCehiHzreSzNTczkc9d'?> +<!DOCTYPE rdf:RDF [<!ENTITY xxe SYSTEM "file://%s">]> +<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image'> +<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> +<note> +<to>&xxe;</to> +<from>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</from> +</note> +</rdf:RDF> +</x:xmpmeta> +<?xpacket end='w'?> + """ + % os.fsencode(secret), + ) + with trivial.open_metadata() as m: + assert 'This is a secret' not in str(m)
from lxml.etree import QName, XMLParser, XMLSyntaxError, parse return parse(BytesIO(xml)) return parse(BytesIO(re_xml_illegal_bytes.sub(b'', xml))) parser = XMLParser(recover=True) return parse(BytesIO(xml), parser)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (C) 2021, James R. Barlow (https://github.com/jbarlow83/) from typing import IO, Any, AnyStr, Union from lxml.etree import XMLParser as _UnsafeXMLParser from lxml.etree import parse as _parse class _XMLParser(_UnsafeXMLParser): def __init__(self, *args, **kwargs): # Prevent XXE attacks # https://rules.sonarsource.com/python/type/Vulnerability/RSPEC-2755 kwargs['resolve_entities'] = False kwargs['no_network'] = True super().__init__(*args, **kwargs) def parse_xml(source: Union[AnyStr, IO[Any]], recover: bool = False): """Wrapper around lxml's parse to provide protection against XXE attacks.""" parser = _XMLParser(recover=recover, remove_pis=False) return _parse(source, parser=parser) __all__ = ['parse_xml'] from lxml.etree import QName, XMLSyntaxError from .._xml import parse_xml return parse_xml(BytesIO(xml)) return parse_xml(BytesIO(re_xml_illegal_bytes.sub(b'', xml))) return parse_xml(BytesIO(xml), recover=True) def test_xxe(trivial, outdir): secret = outdir / 'secret.txt' secret.write_text("This is a secret") trivial.Root.Metadata = Stream( trivial, b"""\ <?xpacket begin='\xef\xbb\xbf' id='W5M0MpCehiHzreSzNTczkc9d'?> <!DOCTYPE rdf:RDF [<!ENTITY xxe SYSTEM "file://%s">]> <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image'> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <note> <to>&xxe;</to> <from>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</from> </note> </rdf:RDF> </x:xmpmeta> <?xpacket end='w'?> """ % os.fsencode(secret), ) with trivial.open_metadata() as m: assert 'This is a secret' not in str(m)
[]
CVE-2016-4444
5cd60033ea7f5bdf8c19c27b23ea2d773d9b09f5
https://github.com/fedora-selinux/setroubleshoot
[{'lang': 'en', 'value': 'The allow_execmod plugin for setroubleshoot before 3.2.23 allows local users to execute arbitrary commands by triggering an execmod SELinux denial with a crafted binary filename, related to the commands.getstatusoutput function.'}]
6.9
7
2017-04-11T18:59Z
MEDIUM
CWE-77
Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
plugins: get rid of commands.getstatusoutput()
2015-04-09 14:14:44 +0200
5cd6003
315
2
[ "plugins/src/allow_execmod.py" ]
Python
{"plugins/src/allow_execmod.py": {"lines_added": 8, "lines_deleted": 2}}
diff --git a/plugins/src/allow_execmod.py b/plugins/src/allow_execmod.py index a839fe3..42f2751 100644 --- a/plugins/src/allow_execmod.py +++ b/plugins/src/allow_execmod.py @@ -89,14 +89,20 @@ setroubleshoot examined '$FIX_TARGET_PATH' to make sure it was built correctly, def __init__(self): Plugin.__init__(self,__name__) self.set_priority(10) def analyze(self, avc): - import commands + import subprocess if avc.has_any_access_in(['execmod']): # MATCH - if (commands.getstatusoutput("eu-readelf -d %s | fgrep -q TEXTREL" % avc.tpath)[0] == 1): + # from https://docs.python.org/2.7/library/subprocess.html#replacing-shell-pipeline + p1 = subprocess.Popen(['eu-readelf', '-d', avc.tpath], stdout=subprocess.PIPE) + p2 = subprocess.Popen(["fgrep", "-q", "TEXTREL"], stdin=p1.stdout, stdout=subprocess.PIPE) + p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. + p1.wait() + p2.wait() + if p2.returncode == 1: return self.report(("unsafe")) mcon = selinux.matchpathcon(avc.tpath.strip('"'), S_IFREG)[1] if mcon.split(":")[2] == "lib_t": return self.report()
import commands if (commands.getstatusoutput("eu-readelf -d %s | fgrep -q TEXTREL" % avc.tpath)[0] == 1):
import subprocess # from https://docs.python.org/2.7/library/subprocess.html#replacing-shell-pipeline p1 = subprocess.Popen(['eu-readelf', '-d', avc.tpath], stdout=subprocess.PIPE) p2 = subprocess.Popen(["fgrep", "-q", "TEXTREL"], stdin=p1.stdout, stdout=subprocess.PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. p1.wait() p2.wait() if p2.returncode == 1:
[]
CVE-2016-4445
2d12677629ca319310f6263688bb1b7f676c01b7
https://github.com/fedora-selinux/setroubleshoot
[{'lang': 'en', 'value': 'The fix_lookup_id function in sealert in setroubleshoot before 3.2.23 allows local users to execute arbitrary commands as root by triggering an SELinux denial with a crafted file name, related to executing external commands with the commands.getstatusoutput function.'}]
6.9
7
2017-04-11T18:59Z
MEDIUM
CWE-77
Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
framework: get rid of commands.getstatusoutput()
2015-04-09 14:14:44 +0200
2d12677
315
2
[ "framework/src/sealert", "framework/src/setroubleshoot/signature.py" ]
Other
{"framework/src/sealert": {"lines_added": 7, "lines_deleted": 7}, "framework/src/setroubleshoot/signature.py": {"lines_added": 3, "lines_deleted": 0}}
diff --git a/framework/src/sealert b/framework/src/sealert index 9126012..d095a22 100755 --- a/framework/src/sealert +++ b/framework/src/sealert @@ -139,26 +139,26 @@ def fix_lookup_id(local_id, analysis_id): async_rpc = cl.alert_client.query_alerts(local_id) async_rpc.add_callback(query_alerts_callback) async_rpc.add_errback(query_alerts_error) def query_alerts_callback(sigs): - import commands + import subprocess for siginfo in sigs.signature_list: for plugin in siginfo.plugin_list: if analysis_id == plugin.analysis_id: p = load_plugins(analysis_id)[0] if p.fixable == False: print _("Not fixable.") cl.main_loop.quit() return siginfo.update_derived_template_substitutions() - command = siginfo.substitute(p.get_fix_cmd(siginfo.audit_event, plugin.args)) - rc, output = commands.getstatusoutput(command) - if rc == 0: - print _("Successfully ran %s" % command) - else: - print output + command = siginfo.substitute_array(p.get_fix_cmd(siginfo.audit_event, plugin.args).split()) + try: + output = subprocess.check_output(command) + print _("Successfully ran %s" % ' '.join(command)) + except subprocess.CalledProcessError as e: + print(e.output) cl.main_loop.quit() return print _("Plugin %s not valid for %s id") % (analysis_id, local_id) cl.main_loop.quit() diff --git a/framework/src/setroubleshoot/signature.py b/framework/src/setroubleshoot/signature.py index 04c875c..7d19e82 100755 --- a/framework/src/setroubleshoot/signature.py +++ b/framework/src/setroubleshoot/signature.py @@ -458,10 +458,13 @@ class SEFaultSignatureInfo(XmlSerialize): return total_priority, plugins def substitute(self, txt): return Template(txt).safe_substitute(self.template_substitutions) + def substitute_array(self, args): + return [self.substitute(txt) for txt in args] + def format_details(self, replace=False): env = self.environment text = _("Additional Information:\n") text += format_2_column_name_value(_("Source Context"), self.scontext.format())
import commands command = siginfo.substitute(p.get_fix_cmd(siginfo.audit_event, plugin.args)) rc, output = commands.getstatusoutput(command) if rc == 0: print _("Successfully ran %s" % command) else: print output
import subprocess command = siginfo.substitute_array(p.get_fix_cmd(siginfo.audit_event, plugin.args).split()) try: output = subprocess.check_output(command) print _("Successfully ran %s" % ' '.join(command)) except subprocess.CalledProcessError as e: print(e.output) def substitute_array(self, args): return [self.substitute(txt) for txt in args]
[]
CVE-2024-29187
6d372e5169f1a334a395cdf496443bc0732098e9
https://github.com/wixtoolset/wix3
[{'lang': 'en', 'value': "WiX toolset lets developers create installers for Windows Installer, the Windows installation engine. When a bundle runs as SYSTEM user, Burn uses GetTempPathW which points to an insecure directory C:\\Windows\\Temp to drop and load multiple binaries. Standard users can hijack the binary before it's loaded in the application resulting in elevation of privileges. This vulnerability is fixed in 3.14.1 and 4.0.5."}]
null
null
2024-03-24T20:15Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
Protect elevated working folder from malicious data When running elevated, Burn uses the Windows Temp folder as its working folder to prevent normal processes from tampering with the files. Windows Temp does allow non-elevated processes to write to the folder but they cannot see the files there. Unfortunately, contrary to our belief, non-elevated processes can read the files in Windows Temp by watching for directory changes. This allows a malicious process to lie in wait, watching the Windows Temp folder until a Burn process is launched elevated, then attack the working folder. Mitigate that attack by protecting the working folder to only elevated users. Managed custom actions also fall back to using the Windows Temp folder in some cases and thus can be exposed in a similar fashion as an elevated Burn process. Remove that possibility.
2024-03-22 01:04:33 -0700
6d372e51
3,295
2
[ "src/DTF/Tools/SfxCA/SfxUtil.cpp", "src/burn/engine/cache.cpp" ]
C++
{"src/DTF/Tools/SfxCA/SfxUtil.cpp": {"lines_added": 6, "lines_deleted": 26}, "src/burn/engine/cache.cpp": {"lines_added": 43, "lines_deleted": 10}}
diff --git a/src/DTF/Tools/SfxCA/SfxUtil.cpp b/src/DTF/Tools/SfxCA/SfxUtil.cpp index 2e6b0555..32dc6e04 100644 --- a/src/DTF/Tools/SfxCA/SfxUtil.cpp +++ b/src/DTF/Tools/SfxCA/SfxUtil.cpp @@ -162,42 +162,22 @@ bool ExtractToTempDirectory(__in MSIHANDLE hSession, __in HMODULE hModule, return false; } StringCchCopy(szTempDir, cchTempDirBuf, szModule); StringCchCat(szTempDir, cchTempDirBuf, L"-"); + BOOL fCreatedDirectory = FALSE; DWORD cchTempDir = (DWORD) wcslen(szTempDir); - for (int i = 0; DirectoryExists(szTempDir); i++) + for (int i = 0; i < 10000 && !fCreatedDirectory; i++) { swprintf_s(szTempDir + cchTempDir, cchTempDirBuf - cchTempDir, L"%d", i); + fCreatedDirectory = ::CreateDirectory(szTempDir, NULL); } - if (!CreateDirectory(szTempDir, NULL)) + if (!fCreatedDirectory) { - cchCopied = GetTempPath(cchTempDirBuf, szTempDir); - if (cchCopied == 0 || cchCopied >= cchTempDirBuf) - { - Log(hSession, L"Failed to get temp directory. Error code %d", GetLastError()); - return false; - } - - wchar_t* szModuleName = wcsrchr(szModule, L'\\'); - if (szModuleName == NULL) szModuleName = szModule; - else szModuleName = szModuleName + 1; - StringCchCat(szTempDir, cchTempDirBuf, szModuleName); - StringCchCat(szTempDir, cchTempDirBuf, L"-"); - - cchTempDir = (DWORD) wcslen(szTempDir); - for (int i = 0; DirectoryExists(szTempDir); i++) - { - swprintf_s(szTempDir + cchTempDir, cchTempDirBuf - cchTempDir, L"%d", i); - } - - if (!CreateDirectory(szTempDir, NULL)) - { - Log(hSession, L"Failed to create temp directory. Error code %d", GetLastError()); - return false; - } + Log(hSession, L"Failed to create temp directory. Error code %d", ::GetLastError()); + return false; } Log(hSession, L"Extracting custom action to temporary directory: %s\\", szTempDir); int err = ExtractCabinet(szModule, szTempDir); if (err != 0) diff --git a/src/burn/engine/cache.cpp b/src/burn/engine/cache.cpp index 46dc4146..7397eafb 100644 --- a/src/burn/engine/cache.cpp +++ b/src/burn/engine/cache.cpp @@ -11,17 +11,19 @@ static const DWORD FILE_OPERATION_RETRY_WAIT = 2000; static BOOL vfInitializedCache = FALSE; static BOOL vfRunningFromCache = FALSE; static LPWSTR vsczSourceProcessPath = NULL; static LPWSTR vsczWorkingFolder = NULL; +static BOOL vfWorkingFolderElevated = FALSE; static LPWSTR vsczDefaultUserPackageCache = NULL; static LPWSTR vsczDefaultMachinePackageCache = NULL; static LPWSTR vsczCurrentMachinePackageCache = NULL; static HRESULT CalculateWorkingFolder( __in_z LPCWSTR wzBundleId, - __deref_out_z LPWSTR* psczWorkingFolder + __deref_out_z LPWSTR* psczWorkingFolder, + __out_opt BOOL* pfWorkingFolderElevated ); static HRESULT GetLastUsedSourceFolder( __in BURN_VARIABLES* pVariables, __out_z LPWSTR* psczLastSource ); @@ -193,15 +195,33 @@ extern "C" HRESULT CacheEnsureWorkingFolder( __deref_out_z_opt LPWSTR* psczWorkingFolder ) { HRESULT hr = S_OK; LPWSTR sczWorkingFolder = NULL; + BOOL fElevatedWorkingFolder = FALSE; + PSECURITY_DESCRIPTOR psd = NULL; + LPSECURITY_ATTRIBUTES pWorkingFolderAcl = NULL; - hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder); + hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder, &fElevatedWorkingFolder); ExitOnFailure(hr, "Failed to calculate working folder to ensure it exists."); - hr = DirEnsureExists(sczWorkingFolder, NULL); + // If elevated, allocate the pWorkingFolderAcl to protect the working folder to only Admins and SYSTEM. + if (fElevatedWorkingFolder) + { + LPCWSTR wzSddl = L"D:PAI(A;;FA;;;BA)(A;OICIIO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)"; + if (!::ConvertStringSecurityDescriptorToSecurityDescriptorW(wzSddl, SDDL_REVISION_1, &psd, NULL)) + { + ExitWithLastError(hr, "Failed to create the security descriptor for the working folder."); + } + + pWorkingFolderAcl = reinterpret_cast<LPSECURITY_ATTRIBUTES>(MemAlloc(sizeof(SECURITY_ATTRIBUTES), TRUE)); + pWorkingFolderAcl->nLength = sizeof(SECURITY_ATTRIBUTES); + pWorkingFolderAcl->lpSecurityDescriptor = psd; + pWorkingFolderAcl->bInheritHandle = FALSE; + } + + hr = DirEnsureExists(sczWorkingFolder, pWorkingFolderAcl); ExitOnFailure(hr, "Failed create working folder."); // Best effort to ensure our working folder is not encrypted. ::DecryptFileW(sczWorkingFolder, 0); @@ -210,10 +230,15 @@ extern "C" HRESULT CacheEnsureWorkingFolder( hr = StrAllocString(psczWorkingFolder, sczWorkingFolder, 0); ExitOnFailure(hr, "Failed to copy working folder."); } LExit: + ReleaseMem(pWorkingFolderAcl); + if (psd) + { + ::LocalFree(psd); + } ReleaseStr(sczWorkingFolder); return hr; } @@ -235,11 +260,11 @@ extern "C" HRESULT CacheCalculateBundleWorkingPath( hr = PathForCurrentProcess(psczWorkingPath, NULL); ExitOnFailure(hr, "Failed to get current process path."); } else // Otherwise, use the real working folder. { - hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder); + hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder, NULL); ExitOnFailure(hr, "Failed to get working folder for bundle."); hr = StrAllocFormatted(psczWorkingPath, L"%ls%ls\\%ls", sczWorkingFolder, BUNDLE_WORKING_FOLDER_NAME, wzExecutableName); ExitOnFailure(hr, "Failed to calculate the bundle working path."); } @@ -256,11 +281,11 @@ extern "C" HRESULT CacheCalculateBundleLayoutWorkingPath( ) { HRESULT hr = S_OK; LPWSTR sczWorkingFolder = NULL; - hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath); + hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath, NULL); ExitOnFailure(hr, "Failed to get working folder for bundle layout."); hr = StrAllocConcat(psczWorkingPath, wzBundleId, 0); ExitOnFailure(hr, "Failed to append bundle id for bundle layout working path."); @@ -276,11 +301,11 @@ extern "C" HRESULT CacheCalculatePayloadWorkingPath( __deref_out_z LPWSTR* psczWorkingPath ) { HRESULT hr = S_OK; - hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath); + hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath, NULL); ExitOnFailure(hr, "Failed to get working folder for payload."); hr = StrAllocConcat(psczWorkingPath, pPayload->sczKey, 0); ExitOnFailure(hr, "Failed to append SHA1 hash as payload unverified path."); @@ -294,11 +319,11 @@ extern "C" HRESULT CacheCalculateContainerWorkingPath( __deref_out_z LPWSTR* psczWorkingPath ) { HRESULT hr = S_OK; - hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath); + hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath, NULL); ExitOnFailure(hr, "Failed to get working folder for container."); hr = StrAllocConcat(psczWorkingPath, pContainer->sczHash, 0); ExitOnFailure(hr, "Failed to append SHA1 hash as container unverified path."); @@ -919,11 +944,11 @@ extern "C" HRESULT CacheRemoveWorkingFolder( HRESULT hr = S_OK; LPWSTR sczWorkingFolder = NULL; if (vfInitializedCache) { - hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder); + hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder, NULL); ExitOnFailure(hr, "Failed to calculate the working folder to remove it."); // Try to clean out everything in the working folder. hr = DirEnsureDeleteEx(sczWorkingFolder, DIR_DELETE_FILES | DIR_DELETE_RECURSE | DIR_DELETE_SCHEDULE); TraceError(hr, "Could not delete bundle engine working folder."); @@ -1033,11 +1058,11 @@ extern "C" void CacheCleanup( hr = DirEnsureDeleteEx(sczFolder, DIR_DELETE_FILES | DIR_DELETE_RECURSE | DIR_DELETE_SCHEDULE); } if (!fPerMachine) { - hr = CalculateWorkingFolder(wzBundleId, &sczFolder); + hr = CalculateWorkingFolder(wzBundleId, &sczFolder, NULL); if (SUCCEEDED(hr)) { hr = PathConcat(sczFolder, L"*.*", &sczFiles); if (SUCCEEDED(hr)) { @@ -1097,11 +1122,12 @@ extern "C" void CacheUninitialize() // Internal functions. static HRESULT CalculateWorkingFolder( __in_z LPCWSTR /*wzBundleId*/, - __deref_out_z LPWSTR* psczWorkingFolder + __deref_out_z LPWSTR* psczWorkingFolder, + __out_opt BOOL* pfWorkingFolderElevated ) { HRESULT hr = S_OK; RPC_STATUS rs = RPC_S_OK; BOOL fElevated = FALSE; @@ -1141,15 +1167,22 @@ static HRESULT CalculateWorkingFolder( ExitOnRootFailure(hr, "Failed to convert working folder guid into string."); } hr = StrAllocFormatted(&vsczWorkingFolder, L"%ls%ls\\", wzTempPath, wzGuid); ExitOnFailure(hr, "Failed to append bundle id on to temp path for working folder."); + + vfWorkingFolderElevated = fElevated; } hr = StrAllocString(psczWorkingFolder, vsczWorkingFolder, 0); ExitOnFailure(hr, "Failed to copy working folder path."); + if (pfWorkingFolderElevated) + { + *pfWorkingFolderElevated = vfWorkingFolderElevated; + } + LExit: return hr; } static HRESULT GetRootPath(
for (int i = 0; DirectoryExists(szTempDir); i++) if (!CreateDirectory(szTempDir, NULL)) cchCopied = GetTempPath(cchTempDirBuf, szTempDir); if (cchCopied == 0 || cchCopied >= cchTempDirBuf) { Log(hSession, L"Failed to get temp directory. Error code %d", GetLastError()); return false; } wchar_t* szModuleName = wcsrchr(szModule, L'\\'); if (szModuleName == NULL) szModuleName = szModule; else szModuleName = szModuleName + 1; StringCchCat(szTempDir, cchTempDirBuf, szModuleName); StringCchCat(szTempDir, cchTempDirBuf, L"-"); cchTempDir = (DWORD) wcslen(szTempDir); for (int i = 0; DirectoryExists(szTempDir); i++) { swprintf_s(szTempDir + cchTempDir, cchTempDirBuf - cchTempDir, L"%d", i); } if (!CreateDirectory(szTempDir, NULL)) { Log(hSession, L"Failed to create temp directory. Error code %d", GetLastError()); return false; } __deref_out_z LPWSTR* psczWorkingFolder hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder); hr = DirEnsureExists(sczWorkingFolder, NULL); hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder); hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath); hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath); hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath); hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder); hr = CalculateWorkingFolder(wzBundleId, &sczFolder); __deref_out_z LPWSTR* psczWorkingFolder
BOOL fCreatedDirectory = FALSE; for (int i = 0; i < 10000 && !fCreatedDirectory; i++) fCreatedDirectory = ::CreateDirectory(szTempDir, NULL); if (!fCreatedDirectory) Log(hSession, L"Failed to create temp directory. Error code %d", ::GetLastError()); return false; static BOOL vfWorkingFolderElevated = FALSE; __deref_out_z LPWSTR* psczWorkingFolder, __out_opt BOOL* pfWorkingFolderElevated BOOL fElevatedWorkingFolder = FALSE; PSECURITY_DESCRIPTOR psd = NULL; LPSECURITY_ATTRIBUTES pWorkingFolderAcl = NULL; hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder, &fElevatedWorkingFolder); // If elevated, allocate the pWorkingFolderAcl to protect the working folder to only Admins and SYSTEM. if (fElevatedWorkingFolder) { LPCWSTR wzSddl = L"D:PAI(A;;FA;;;BA)(A;OICIIO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)"; if (!::ConvertStringSecurityDescriptorToSecurityDescriptorW(wzSddl, SDDL_REVISION_1, &psd, NULL)) { ExitWithLastError(hr, "Failed to create the security descriptor for the working folder."); } pWorkingFolderAcl = reinterpret_cast<LPSECURITY_ATTRIBUTES>(MemAlloc(sizeof(SECURITY_ATTRIBUTES), TRUE)); pWorkingFolderAcl->nLength = sizeof(SECURITY_ATTRIBUTES); pWorkingFolderAcl->lpSecurityDescriptor = psd; pWorkingFolderAcl->bInheritHandle = FALSE; } hr = DirEnsureExists(sczWorkingFolder, pWorkingFolderAcl); ReleaseMem(pWorkingFolderAcl); if (psd) { ::LocalFree(psd); } hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder, NULL); hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath, NULL); hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath, NULL); hr = CalculateWorkingFolder(wzBundleId, psczWorkingPath, NULL); hr = CalculateWorkingFolder(wzBundleId, &sczWorkingFolder, NULL); hr = CalculateWorkingFolder(wzBundleId, &sczFolder, NULL); __deref_out_z LPWSTR* psczWorkingFolder, __out_opt BOOL* pfWorkingFolderElevated vfWorkingFolderElevated = fElevated; if (pfWorkingFolderElevated) { *pfWorkingFolderElevated = vfWorkingFolderElevated; }
[]
CVE-2024-29188
93eeb5f6835776694021f66d4226c262c67d487a
https://github.com/wixtoolset/wix3
[{'lang': 'en', 'value': "WiX toolset lets developers create installers for Windows Installer, the Windows installation engine. The custom action behind WiX's `RemoveFolderEx` functionality could allow a standard user to delete protected directories. `RemoveFolderEx` deletes an entire directory tree during installation or uninstallation. It does so by recursing every subdirectory starting at a specified directory and adding each subdirectory to the list of directories Windows Installer should delete. If the setup author instructed `RemoveFolderEx` to delete a per-user folder from a per-machine installer, an attacker could create a directory junction in that per-user folder pointing to a per-machine, protected directory. Windows Installer, when executing the per-machine installer after approval by an administrator, would delete the target of the directory junction. This vulnerability is fixed in 3.14.1 and 4.0.5."}]
null
null
2024-03-24T20:15Z
nan
NVD-CWE-noinfo
Insufficient Information
There is insufficient information about the issue to classify it; details are unkown or unspecified.
Don't follow junctions when recursing directories. When deleting directories recursively, an elevated custom action following junctions in a user-writable location could recurse into any directory, including some that you might not want to be deleted. Therefore, avoid recursing into directories that are actually junctions (aka "reparse points"). This applies to: - The RemoveFoldersEx custom action (which doesn't actually do deletions but would instruct elevated MSI to delete on your behalf). - DTF's custom action runner.
2024-03-22 01:03:57 -0700
93eeb5f6
3,295
2
[ "src/DTF/Tools/SfxCA/SfxUtil.cpp", "src/ext/ca/wixca/dll/RemoveFoldersEx.cpp" ]
C++
{"src/DTF/Tools/SfxCA/SfxUtil.cpp": {"lines_added": 3, "lines_deleted": 1}, "src/ext/ca/wixca/dll/RemoveFoldersEx.cpp": {"lines_added": 10, "lines_deleted": 2}}
diff --git a/src/DTF/Tools/SfxCA/SfxUtil.cpp b/src/DTF/Tools/SfxCA/SfxUtil.cpp index 1bf2c5b2..2e6b0555 100644 --- a/src/DTF/Tools/SfxCA/SfxUtil.cpp +++ b/src/DTF/Tools/SfxCA/SfxUtil.cpp @@ -91,11 +91,13 @@ bool DeleteDirectory(const wchar_t* szDir) while (hSearch != INVALID_HANDLE_VALUE) { StringCchCopy(szPath + cchDir + 1, cchPathBuf - (cchDir + 1), fd.cFileName); if ((fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) { - if (wcscmp(fd.cFileName, L".") != 0 && wcscmp(fd.cFileName, L"..") != 0) + if (wcscmp(fd.cFileName, L".") != 0 + && wcscmp(fd.cFileName, L"..") != 0 + && ((fd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) == 0)) { DeleteDirectory(szPath); } } else diff --git a/src/ext/ca/wixca/dll/RemoveFoldersEx.cpp b/src/ext/ca/wixca/dll/RemoveFoldersEx.cpp index dbfaaf73..a2a29113 100644 --- a/src/ext/ca/wixca/dll/RemoveFoldersEx.cpp +++ b/src/ext/ca/wixca/dll/RemoveFoldersEx.cpp @@ -22,10 +22,18 @@ static HRESULT RecursePath( LPWSTR sczProperty = NULL; HANDLE hFind = INVALID_HANDLE_VALUE; WIN32_FIND_DATAW wfd; LPWSTR sczNext = NULL; + // Do NOT follow junctions. + DWORD dwAttributes = ::GetFileAttributesW(wzPath); + if (dwAttributes & FILE_ATTRIBUTE_REPARSE_POINT) + { + WcaLog(LOGMSG_STANDARD, "Path is a junction; skipping: %ls", wzPath); + ExitFunction(); + } + // First recurse down to all the child directories. hr = StrAllocFormatted(&sczSearch, L"%s*", wzPath); ExitOnFailure1(hr, "Failed to allocate file search string in path: %S", wzPath); hFind = ::FindFirstFileW(sczSearch, &wfd); @@ -157,14 +165,14 @@ extern "C" UINT WINAPI WixRemoveFoldersEx( ExitOnFailure2(hr = E_INVALIDARG, "Missing folder property: %S for row: %S", sczProperty, sczId); } hr = PathExpand(&sczExpandedPath, sczPath, PATH_EXPAND_ENVIRONMENT); ExitOnFailure2(hr, "Failed to expand path: %S for row: %S", sczPath, sczId); - + hr = PathBackslashTerminate(&sczExpandedPath); ExitOnFailure1(hr, "Failed to backslash-terminate path: %S", sczExpandedPath); - + WcaLog(LOGMSG_STANDARD, "Recursing path: %S for row: %S.", sczExpandedPath, sczId); hr = RecursePath(sczExpandedPath, sczId, sczComponent, sczProperty, iMode, &dwCounter, &hTable, &hColumns); ExitOnFailure2(hr, "Failed while navigating path: %S for row: %S", sczPath, sczId); }
if (wcscmp(fd.cFileName, L".") != 0 && wcscmp(fd.cFileName, L"..") != 0)
if (wcscmp(fd.cFileName, L".") != 0 && wcscmp(fd.cFileName, L"..") != 0 && ((fd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) == 0)) // Do NOT follow junctions. DWORD dwAttributes = ::GetFileAttributesW(wzPath); if (dwAttributes & FILE_ATTRIBUTE_REPARSE_POINT) { WcaLog(LOGMSG_STANDARD, "Path is a junction; skipping: %ls", wzPath); ExitFunction(); }
[]
CVE-2018-21234
9bffc3913aeb8472c11bb543243004b4b4376f16
https://github.com/oblac/jodd
[{'lang': 'en', 'value': 'Jodd before 5.0.4 performs Deserialization of Untrusted JSON Data when setClassMetadataName is set.'}]
7.5
9.8
2020-05-21T23:15Z
HIGH
CWE-502
Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently verifying that the resulting data will be valid.
Added `allowClass` (closes #628)
2018-08-17 18:32:20 +0200
9bffc3913
839
2
[ "CHANGELOG.md", "jodd-json/src/main/java/jodd/json/JsonParser.java", "jodd-json/src/main/java/jodd/json/JsonParserBase.java", "jodd-json/src/main/java/jodd/json/MapToBean.java", "jodd-json/src/test/java/jodd/json/JSONDeserializerTest.java" ]
Java
{"CHANGELOG.md": {"lines_added": 1, "lines_deleted": 0}, "jodd-json/src/main/java/jodd/json/JsonParser.java": {"lines_added": 21, "lines_deleted": 0}, "jodd-json/src/main/java/jodd/json/JsonParserBase.java": {"lines_added": 1, "lines_deleted": 0}, "jodd-json/src/main/java/jodd/json/MapToBean.java": {"lines_added": 14, "lines_deleted": 0}, "jodd-json/src/test/java/jodd/json/JSONDeserializerTest.java": {"lines_added": 32, "lines_deleted": 0}}
diff --git a/CHANGELOG.md b/CHANGELOG.md index 186210faa..4b77ee175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,10 +22,11 @@ All notable changes to Jodd project are documented here. + **joy** - added excluded jars for faster scanning. + **mail** - added custom properties. + **json** - added `onValue` callback for JSON serializer. + **json** - added `excludeEmpty` flag for JSON serializer. ++ **json** - added `allowClass` for whitelisting class names. + **petite** - allow injection in the private fields of super types. ## [v5.0.3](https://github.com/oblac/jodd/compare/v5.0.2...v5.0.3) diff --git a/jodd-json/src/main/java/jodd/json/JsonParser.java b/jodd-json/src/main/java/jodd/json/JsonParser.java index 95ff9b848..dc6d408f2 100644 --- a/jodd-json/src/main/java/jodd/json/JsonParser.java +++ b/jodd-json/src/main/java/jodd/json/JsonParser.java @@ -34,10 +34,11 @@ import jodd.util.CharArraySequence; import jodd.util.CharUtil; import jodd.util.StringPool; import jodd.util.UnsafeUtil; import java.math.BigInteger; +import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.function.Supplier; @@ -305,10 +306,30 @@ public class JsonParser extends JsonParserBase { classMetadataName = null; } return this; } + /** + * Adds a {@link jodd.util.Wildcard wildcard} pattern for white-listing classes. + * @see #setClassMetadataName(String) + */ + public JsonParser allowClass(final String classPattern) { + if (super.classnameWhitelist == null) { + super.classnameWhitelist = new ArrayList<>(); + } + classnameWhitelist.add(classPattern); + return this; + } + + /** + * Removes the whitelist of allowed classes. + * @see #setClassMetadataName(String) + */ + public JsonParser allowAllClasses() { + classnameWhitelist = null; + return this; + } // ---------------------------------------------------------------- parse /** * Parses input JSON as given type. diff --git a/jodd-json/src/main/java/jodd/json/JsonParserBase.java b/jodd-json/src/main/java/jodd/json/JsonParserBase.java index 5f9ba42bc..0a4cccda0 100644 --- a/jodd-json/src/main/java/jodd/json/JsonParserBase.java +++ b/jodd-json/src/main/java/jodd/json/JsonParserBase.java @@ -53,10 +53,11 @@ public abstract class JsonParserBase { protected static final Supplier<List> ARRAYLIST_SUPPLIER = ArrayList::new; protected static final Supplier<List> LAZYLIST_SUPPLIER = LazyList::new; protected Supplier<Map> mapSupplier = HASMAP_SUPPLIER; protected Supplier<List> listSupplier = ARRAYLIST_SUPPLIER; + protected List<String> classnameWhitelist; /** * Creates new instance of {@link jodd.json.MapToBean}. */ protected MapToBean createMapToBean(final String classMetadataName) { diff --git a/jodd-json/src/main/java/jodd/json/MapToBean.java b/jodd-json/src/main/java/jodd/json/MapToBean.java index d0472a5e4..dfd8bb2cf 100644 --- a/jodd-json/src/main/java/jodd/json/MapToBean.java +++ b/jodd-json/src/main/java/jodd/json/MapToBean.java @@ -30,10 +30,11 @@ import jodd.introspector.ClassIntrospector; import jodd.introspector.PropertyDescriptor; import jodd.introspector.Setter; import jodd.typeconverter.TypeConverterManager; import jodd.util.ClassLoaderUtil; import jodd.util.ClassUtil; +import jodd.util.Wildcard; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -67,10 +68,12 @@ public class MapToBean { // nothing to do, no information about target type found target = map; } } else { + checkClassName(jsonParser.classnameWhitelist, className); + try { targetType = ClassLoaderUtil.loadClass(className); } catch (ClassNotFoundException cnfex) { throw new JsonException(cnfex); } @@ -143,10 +146,21 @@ public class MapToBean { } return target; } + private void checkClassName(final List<String> classnameWhitelist, final String className) { + if (classnameWhitelist == null) { + return; + } + classnameWhitelist.forEach(pattern -> { + if (!Wildcard.equalsOrMatch(className, pattern)) { + throw new JsonException("Class can't be loaded as it is not whitelisted: " + className); + } + }); + } + /** * Converts type of all list elements to match the component type. */ private Object generifyList(final List list, final Class componentType) { for (int i = 0; i < list.size(); i++) { diff --git a/jodd-json/src/test/java/jodd/json/JSONDeserializerTest.java b/jodd-json/src/test/java/jodd/json/JSONDeserializerTest.java index 7eb48a16c..8301bc0e5 100644 --- a/jodd-json/src/test/java/jodd/json/JSONDeserializerTest.java +++ b/jodd-json/src/test/java/jodd/json/JSONDeserializerTest.java @@ -60,10 +60,11 @@ import java.util.TimeZone; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; class JSONDeserializerTest { @@ -707,10 +708,41 @@ class JSONDeserializerTest { assertEquals(1.0f, point.x, DELTA); assertEquals(2.0f, point.y, DELTA); }); } + @Test + void testPointWithException() { + JsonParser.Defaults.classMetadataName = "__class"; + JsonSerializer.Defaults.classMetadataName = "__class"; + + JsonParsers.forEachParser(jsonParser -> { + jsonParser.allowClass("notAllowed"); + final String json = new JsonSerializer().serialize(new Point2D.Float(1.0f, 2.0f)); + assertThrows(JsonException.class, () -> { + jsonParser.parse(json); + }); + jsonParser.allowAllClasses(); + }); + } + + @Test + void testPointWithoutExceptionWhitelisted() { + JsonParser.Defaults.classMetadataName = "__class"; + JsonSerializer.Defaults.classMetadataName = "__class"; + + JsonParsers.forEachParser(jsonParser -> { + jsonParser.allowClass("*.Point?D*"); + String json = new JsonSerializer().serialize(new Point2D.Float(1.0f, 2.0f)); + Point2D.Float point = jsonParser.parse(json); + assertEquals(1.0f, point.x, DELTA); + assertEquals(2.0f, point.y, DELTA); + jsonParser.allowAllClasses(); + }); + } + + @Test void testUnixEpoch() { JsonParsers.forEachParser(jsonParser -> { Calendar cal = Calendar.getInstance(); cal.setTimeZone(TimeZone.getTimeZone("GMT"));
+ **json** - added `allowClass` for whitelisting class names. import java.util.ArrayList; /** * Adds a {@link jodd.util.Wildcard wildcard} pattern for white-listing classes. * @see #setClassMetadataName(String) */ public JsonParser allowClass(final String classPattern) { if (super.classnameWhitelist == null) { super.classnameWhitelist = new ArrayList<>(); } classnameWhitelist.add(classPattern); return this; } /** * Removes the whitelist of allowed classes. * @see #setClassMetadataName(String) */ public JsonParser allowAllClasses() { classnameWhitelist = null; return this; } protected List<String> classnameWhitelist; import jodd.util.Wildcard; checkClassName(jsonParser.classnameWhitelist, className); private void checkClassName(final List<String> classnameWhitelist, final String className) { if (classnameWhitelist == null) { return; } classnameWhitelist.forEach(pattern -> { if (!Wildcard.equalsOrMatch(className, pattern)) { throw new JsonException("Class can't be loaded as it is not whitelisted: " + className); } }); } import static org.junit.jupiter.api.Assertions.assertThrows; @Test void testPointWithException() { JsonParser.Defaults.classMetadataName = "__class"; JsonSerializer.Defaults.classMetadataName = "__class"; JsonParsers.forEachParser(jsonParser -> { jsonParser.allowClass("notAllowed"); final String json = new JsonSerializer().serialize(new Point2D.Float(1.0f, 2.0f)); assertThrows(JsonException.class, () -> { jsonParser.parse(json); }); jsonParser.allowAllClasses(); }); } @Test void testPointWithoutExceptionWhitelisted() { JsonParser.Defaults.classMetadataName = "__class"; JsonSerializer.Defaults.classMetadataName = "__class"; JsonParsers.forEachParser(jsonParser -> { jsonParser.allowClass("*.Point?D*"); String json = new JsonSerializer().serialize(new Point2D.Float(1.0f, 2.0f)); Point2D.Float point = jsonParser.parse(json); assertEquals(1.0f, point.x, DELTA); assertEquals(2.0f, point.y, DELTA); jsonParser.allowAllClasses(); }); }
[]
CVE-2019-10767
f6e292c6750a491a5000d0f851b2fede4f9e2fda
https://github.com/ioBroker/ioBroker.js-controller
[{'lang': 'en', 'value': 'An attacker can include file contents from outside the `/adapter/xxx/` directory, where `xxx` is the name of an existent adapter like "admin". It is exploited using the administrative web panel with a request for an adapter file. **Note:** The attacker has to be logged in if the authentication is enabled (by default isn\'t enabled).'}]
5
7.5
2019-11-21T17:15Z
MEDIUM
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
some security enhancements to better prevent path traversing
2019-10-04 20:24:49 +0200
f6e292c
625
2
[ "lib/objects/objectsUtils.js", "test/lib/testObjects.js" ]
JavaScript
{"lib/objects/objectsUtils.js": {"lines_added": 9, "lines_deleted": 3}, "test/lib/testObjects.js": {"lines_added": 33, "lines_deleted": 0}}
diff --git a/lib/objects/objectsUtils.js b/lib/objects/objectsUtils.js index e23c481..d6df772 100644 --- a/lib/objects/objectsUtils.js +++ b/lib/objects/objectsUtils.js @@ -470,15 +470,21 @@ function sanitizePath(id, name, callback) { } return; } if (id) { - id = id.replace(/\.\./g, ''); // do not allow to write in parent directories + id = id.replace(/[\]\[*,;'"`<>\\?\/]/g, ''); // remove all invalid characters from states plus slashes } - if (name.indexOf('..') !== -1) { - name = path.normalize(name); + if (name.includes('..')) { + name = path.normalize('/' + name); + name = name.replace(/\\/g, '/'); + } + if (name.includes('..')) { + // Also after normalization we still have .. in it - should not happen if normalize worked correctly + name = name.replace(/\.\./g, ''); + name = path.normalize('/' + name); name = name.replace(/\\/g, '/'); } if (name[0] === '/') name = name.substring(1); // do not allow absolute paths return {id: id, name: name}; diff --git a/test/lib/testObjects.js b/test/lib/testObjects.js index add4c60..06d49b2 100644 --- a/test/lib/testObjects.js +++ b/test/lib/testObjects.js @@ -339,10 +339,43 @@ function register(it, expect, context) { }); }); }); }); + it(textName + 'should read file and prevent path traversing', done => { + const objects = context.objects; + objects.readFile(testId, '../../myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + objects.readFile(testId, '/myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + objects.readFile(testId, '/../../myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + objects.readFile(testId, 'myFile/../blubb/../myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + objects.readFile(testId, '/myFile/../blubb/../myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + objects.readFile(testId, '../blubb/../myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + objects.readFile(testId, '/../blubb/../myFile/abc1.txt', err => { + expect(err).to.be.not.ok; + expect(data).to.be.equal('dataInFile'); + done(); + }); + }); + }); + }); + }); + }); + }); + }); + it(textName + 'should unlink file', done => { const objects = context.objects; objects.unlink(testId, 'myFile/abc1.txt', err => { expect(err).to.be.not.ok; objects.unlink(testId, 'myFile/abc1.txt', err => {
id = id.replace(/\.\./g, ''); // do not allow to write in parent directories if (name.indexOf('..') !== -1) { name = path.normalize(name);
id = id.replace(/[\]\[*,;'"`<>\\?\/]/g, ''); // remove all invalid characters from states plus slashes if (name.includes('..')) { name = path.normalize('/' + name); name = name.replace(/\\/g, '/'); } if (name.includes('..')) { // Also after normalization we still have .. in it - should not happen if normalize worked correctly name = name.replace(/\.\./g, ''); name = path.normalize('/' + name); it(textName + 'should read file and prevent path traversing', done => { const objects = context.objects; objects.readFile(testId, '../../myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); objects.readFile(testId, '/myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); objects.readFile(testId, '/../../myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); objects.readFile(testId, 'myFile/../blubb/../myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); objects.readFile(testId, '/myFile/../blubb/../myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); objects.readFile(testId, '../blubb/../myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); objects.readFile(testId, '/../blubb/../myFile/abc1.txt', err => { expect(err).to.be.not.ok; expect(data).to.be.equal('dataInFile'); done(); }); }); }); }); }); }); }); });
[]
CVE-2021-32773
6ca4ffeca1e5877d44f835760ad89f18488d97e1
https://github.com/racket/racket
[{'lang': 'en', 'value': 'Racket is a general-purpose programming language and an ecosystem for language-oriented programming. In versions prior to 8.2, code evaluated using the Racket sandbox could cause system modules to incorrectly use attacker-created modules instead of their intended dependencies. This could allow system functions to be controlled by the attacker, giving access to facilities intended to be restricted. This problem is fixed in Racket version 8.2. A workaround is available, depending on system settings. For systems that provide arbitrary Racket evaluation, external sandboxing such as containers limit the impact of the problem. For multi-user evaluation systems, such as the `handin-server` system, it is not possible to work around this problem and upgrading is required.'}]
5
7.5
2021-07-20T00:15Z
MEDIUM
CWE-610
Externally Controlled Reference to a Resource in Another Sphere
The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.
racket/sandbox: documentation and tests for reader and require checking
2021-07-01 15:55:40 -0600
6ca4ffeca1
5,810
2
[ "pkgs/racket-doc/scribblings/reference/sandbox.scrbl", "pkgs/racket-test-core/tests/racket/sandbox.rktl" ]
Other
{"pkgs/racket-doc/scribblings/reference/sandbox.scrbl": {"lines_added": 56, "lines_deleted": 10}, "pkgs/racket-test-core/tests/racket/sandbox.rktl": {"lines_added": 28, "lines_deleted": 0}}
diff --git a/pkgs/racket-doc/scribblings/reference/sandbox.scrbl b/pkgs/racket-doc/scribblings/reference/sandbox.scrbl index c88a2362c6..ce489ea0d9 100644 --- a/pkgs/racket-doc/scribblings/reference/sandbox.scrbl +++ b/pkgs/racket-doc/scribblings/reference/sandbox.scrbl @@ -27,17 +27,20 @@ for the common use case where sandboxes are very limited. (listof (or/c module-path? path-string? (cons/c 'for-syntax (listof module-path?)))) null] [#:allow-for-require allow-for-require (listof (or/c module-path? path?)) null] [#:allow-for-load allow-for-load (listof path-string?) null] - [#:allow-read allow-read (listof (or/c module-path? path-string?)) null]) + [#:allow-read allow-read (listof (or/c module-path? path-string?)) null] + [#:allow-syntactic-requires allow-syntactic-requires (or/c #f (listof module-path?)) #f]) (any/c . -> . any)] [(make-module-evaluator [module-decl (or/c syntax? pair? path? input-port? string? bytes?)] - [#:language lang (or/c #f module-path?) #f] + [#:language lang (or/c #f module-path?) #f] + [#:readers readers (or/c #f (listof module-path?)) (and lang (default-language-readers lang))] [#:allow-for-require allow-for-require (listof (or/c module-path? path?)) null] [#:allow-for-load allow-for-load (listof path-string?) null] - [#:allow-read allow-read (listof (or/c module-path? path-string?)) null]) + [#:allow-read allow-read (listof (or/c module-path? path-string?)) null] + [#:allow-syntactic-requires allow-syntactic-requires (or/c #f (listof module-path?)) #f]) (any/c . -> . any)])]{ The @racket[make-evaluator] function creates an evaluator with a @racket[language] and @racket[requires] specification, and starts evaluating the given @racket[input-program]s. The @@ -48,15 +51,19 @@ function for further evaluation. The returned evaluator operates in an isolated and limited environment. In particular, filesystem access is restricted, which may interfere with using modules from the filesystem that are not in a @tech{collection}. See below for information on the @racket[allow-for-require], -@racket[allow-for-load], and @racket[allow-read] arguments. When +@racket[allow-for-load], and @racket[allow-read] arguments; collection-based +module files typically do not need to be included in those lists. When @racket[language] is a module path or when @racket[requires] is provided, the indicated modules are implicitly included in the -@racket[allow-for-require] list. (For backward compatibility, -non-@racket[module-path?] path strings are allowed in +@racket[allow-for-require] list. When @racket[allow-syntactic-requires] +is not @racket[#f], it constraints the set of modules that can be directly +referenced in a module; see below for more information. +(For backward compatibility, +non-@racket[module-path?] path strings are allowed in arguments like @racket[requires]; they are implicitly converted to paths before addition to @racket[allow-for-require].) Each @racket[input-program] or @racket[module-decl] argument provides a program in one of the following forms: @@ -140,10 +147,17 @@ argument: ] The @racket[requires] list adds additional imports to the module or namespace for the @racket[input-program]s, even in the case that @racket[require] is not made available through the @racket[language]. +The @racket[allow-syntactic-requires] argument, if non-@racket[#f], +constrains @racket[require] references expanded in the module when the +@racket[language] argument implies a @racket[module] wrapper; more +precisely, it constrains the module paths that can be resolved when a +syntax object is provided to the @tech{module name resolver}, which +will include @racket[require] forms that are created by macro +expansion. The following examples illustrate the difference between an evaluator that puts the program in a module and one that merely initializes a top-level namespace: @@ -168,13 +182,19 @@ top-level namespace: The @racket[make-module-evaluator] function is essentially a restriction of @racket[make-evaluator], where the program must be a module, and all imports are part of the program. In some cases it is useful to restrict the program to be a module using a specific module -in its language position --- use the optional @racket[lang] argument -to specify such a restriction (the default, @racket[#f], means no -restriction is enforced). When the program is specified as a path, then +in its language position; use the optional @racket[lang] argument +to specify such a restriction, where @racket[#f] means that no +restriction is enforced. The @racket[readers] argument similarly +constrains the paths that can follow @hash-lang[] or @schememetafont{#reader} +if it is not @racket[#f], and the default is based on @racket[lang]. +The @racket[allow-syntactic-requires] argument is treated the same as +for @racket[make-evaluator] in the module-wrapper case. + +When the program is specified as a path, then the path is implicitly added to the @racket[allow-for-load] list. @racketblock[ (define base-module-eval2 (code:comment @#,t{equivalent to @racket[base-module-eval]:}) @@ -272,11 +292,12 @@ ports, and works when used from a module (by using a new namespace): [current-namespace (make-empty-namespace)]) (parameterize ([current-eval (make-evaluator 'racket/base)]) (read-eval-print-loop))) ] -} +@history[#:changed "1.2" @elem{Added the @racket[#:readers] and + @racket[#:allow-syntactic-require] arguments.}]} @defproc*[([(exn:fail:sandbox-terminated? [v any/c]) boolean?] [(exn:fail:sandbox-terminated-reason [exn exn:fail:sandbox-terminated?]) symbol?])]{ @@ -822,10 +843,35 @@ A @tech{parameter} that determines the procedure used to create the procedure is called when initializing an evaluator, and the default parameter value constructs a new @tech{environment variable set} using @racket[(environment-variables-copy (current-environment-variables))].} +@defproc[(default-language-readers [lang module-path?]) (listof module-path?)]{ + +Creates a default list of readers that should be allowed to produce a +module that uses @racket[lang] as the language. + +This default list includes the following (and more paths may be added +in the future): + +@itemlist[ + + @item{@racket[`(submod ,lang reader)]} + + @item{@racketvalfont{'}@racket[lang]@racketvalfont{/lang/reader} if @racket[lang] is a symbol} + + @item{the module path producing by adding the relative path @racket["lang/reader.rkt"] + to @racket[lang] if @racket[lang] is not a symbol} + + @item{@racket['(submod at-exp reader)]} + + @item{@racket['at-exp/lang/reader]} + +] + +@history[#:added "1.2"]} + @; ---------------------------------------------------------------------- @section{Interacting with Evaluators} The following functions are used to interact with a sandboxed diff --git a/pkgs/racket-test-core/tests/racket/sandbox.rktl b/pkgs/racket-test-core/tests/racket/sandbox.rktl index 09df86253f..692505073e 100644 --- a/pkgs/racket-test-core/tests/racket/sandbox.rktl +++ b/pkgs/racket-test-core/tests/racket/sandbox.rktl @@ -720,6 +720,34 @@ (e '(require racket/sandbox)) (e '(make-module-evaluator (string-append "#lang racket/base\n")))) ;; ---------------------------------------- +;; Check reader guard on a sandbox: +(err/rt-test (make-module-evaluator "#lang s-exp something-bad" #:language 'racket/base) + exn:fail? + #rx"disallowed reader module path: [(]submod s-exp reader[)]") + +(void (make-module-evaluator "#lang at-exp racket/base" + #:language 'racket/base)) +(void (make-module-evaluator "#lang s-exp racket/base" + #:language 'racket/base + #:readers '((submod s-exp reader) + s-exp/lang/reader + racket/base + (submod racket/base reader)))) + +;; ---------------------------------------- + +;; Check require guard on a sandbox: + +(err/rt-test (make-module-evaluator "#lang racket/base (require json)" + #:allow-syntactic-requires '(racket/runtime-config)) + exn:fail? + #rx"disallowed `require` module path: json") +(void + (make-module-evaluator "#lang racket/base (require json)" + #:allow-syntactic-requires '(racket/runtime-config json))) + +;; ---------------------------------------- + (report-errs)
[#:allow-read allow-read (listof (or/c module-path? path-string?)) null]) [#:language lang (or/c #f module-path?) #f] [#:allow-read allow-read (listof (or/c module-path? path-string?)) null]) @racket[allow-for-load], and @racket[allow-read] arguments. When @racket[allow-for-require] list. (For backward compatibility, non-@racket[module-path?] path strings are allowed in in its language position --- use the optional @racket[lang] argument to specify such a restriction (the default, @racket[#f], means no restriction is enforced). When the program is specified as a path, then }
[#:allow-read allow-read (listof (or/c module-path? path-string?)) null] [#:allow-syntactic-requires allow-syntactic-requires (or/c #f (listof module-path?)) #f]) [#:language lang (or/c #f module-path?) #f] [#:readers readers (or/c #f (listof module-path?)) (and lang (default-language-readers lang))] [#:allow-read allow-read (listof (or/c module-path? path-string?)) null] [#:allow-syntactic-requires allow-syntactic-requires (or/c #f (listof module-path?)) #f]) @racket[allow-for-load], and @racket[allow-read] arguments; collection-based module files typically do not need to be included in those lists. When @racket[allow-for-require] list. When @racket[allow-syntactic-requires] is not @racket[#f], it constraints the set of modules that can be directly referenced in a module; see below for more information. (For backward compatibility, non-@racket[module-path?] path strings are allowed in arguments like The @racket[allow-syntactic-requires] argument, if non-@racket[#f], constrains @racket[require] references expanded in the module when the @racket[language] argument implies a @racket[module] wrapper; more precisely, it constrains the module paths that can be resolved when a syntax object is provided to the @tech{module name resolver}, which will include @racket[require] forms that are created by macro expansion. in its language position; use the optional @racket[lang] argument to specify such a restriction, where @racket[#f] means that no restriction is enforced. The @racket[readers] argument similarly constrains the paths that can follow @hash-lang[] or @schememetafont{#reader} if it is not @racket[#f], and the default is based on @racket[lang]. The @racket[allow-syntactic-requires] argument is treated the same as for @racket[make-evaluator] in the module-wrapper case. When the program is specified as a path, then @history[#:changed "1.2" @elem{Added the @racket[#:readers] and @racket[#:allow-syntactic-require] arguments.}]} @defproc[(default-language-readers [lang module-path?]) (listof module-path?)]{ Creates a default list of readers that should be allowed to produce a module that uses @racket[lang] as the language. This default list includes the following (and more paths may be added in the future): @itemlist[ @item{@racket[`(submod ,lang reader)]} @item{@racketvalfont{'}@racket[lang]@racketvalfont{/lang/reader} if @racket[lang] is a symbol} @item{the module path producing by adding the relative path @racket["lang/reader.rkt"] to @racket[lang] if @racket[lang] is not a symbol} @item{@racket['(submod at-exp reader)]} @item{@racket['at-exp/lang/reader]} ] @history[#:added "1.2"]} ;; Check reader guard on a sandbox: (err/rt-test (make-module-evaluator "#lang s-exp something-bad" #:language 'racket/base) exn:fail? #rx"disallowed reader module path: [(]submod s-exp reader[)]") (void (make-module-evaluator "#lang at-exp racket/base" #:language 'racket/base)) (void (make-module-evaluator "#lang s-exp racket/base" #:language 'racket/base #:readers '((submod s-exp reader) s-exp/lang/reader racket/base (submod racket/base reader)))) ;; ---------------------------------------- ;; Check require guard on a sandbox: (err/rt-test (make-module-evaluator "#lang racket/base (require json)" #:allow-syntactic-requires '(racket/runtime-config)) exn:fail? #rx"disallowed `require` module path: json") (void (make-module-evaluator "#lang racket/base (require json)" #:allow-syntactic-requires '(racket/runtime-config json))) ;; ----------------------------------------
[ "validation" ]
CVE-2013-7283
ef2d756e73a188401c36133c2e2f7ce4f3c6ae55
https://github.com/libreswan/libreswan
[{'lang': 'en', 'value': 'Race condition in the libreswan.spec files for Red Hat Enterprise Linux (RHEL) and Fedora packages in libreswan 3.6 has unspecified impact and attack vectors, involving the /var/tmp/libreswan-nss-pwd temporary file.'}]
9.3
null
2014-01-09T18:07Z
HIGH
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
The product contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently.
packaging: SECURITY, insecure temp files on rpm package installation
2013-11-08 10:35:00 +0200
ef2d756e7
16,875
2
[ "packaging/fedora/17/libreswan.spec", "packaging/fedora/18/libreswan.spec", "packaging/fedora/19/libreswan.spec", "packaging/rhel/5/libreswan.spec", "packaging/rhel/6/libreswan.spec", "packaging/rhel/7/libreswan.spec" ]
Other
{"packaging/fedora/17/libreswan.spec": {"lines_added": 9, "lines_deleted": 7}, "packaging/fedora/18/libreswan.spec": {"lines_added": 10, "lines_deleted": 8}, "packaging/fedora/19/libreswan.spec": {"lines_added": 10, "lines_deleted": 8}, "packaging/rhel/5/libreswan.spec": {"lines_added": 7, "lines_deleted": 5}, "packaging/rhel/6/libreswan.spec": {"lines_added": 10, "lines_deleted": 8}, "packaging/rhel/7/libreswan.spec": {"lines_added": 7, "lines_deleted": 5}}
diff --git a/packaging/fedora/17/libreswan.spec b/packaging/fedora/17/libreswan.spec index 7b950d160..793c4014b 100644 --- a/packaging/fedora/17/libreswan.spec +++ b/packaging/fedora/17/libreswan.spec @@ -147,12 +147,12 @@ install -d %{buildroot}%{_sbindir} %if %{USE_FIPSCHECK} mkdir -p %{buildroot}%{_libdir}/fipscheck %endif -echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets -rm -fr %{buildroot}/etc/rc.d/rc* +echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets +rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc* %files %doc BUGS CHANGES COPYING CREDITS README LICENSE %doc docs/*.* %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf @@ -193,15 +193,17 @@ fi %post if [ $1 -eq 1 ] ; then # Initial installation /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi -if [ ! -f /etc/ipsec.d/cert8.db ] ; then -echo > /var/tmp/libreswan-nss-pwd -certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d -restorecon /etc/ipsec.d/*db 2>/dev/null || : -rm /var/tmp/libreswan-nss-pwd +if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then + TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) + [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ + echo > ${TEMPFILE} + certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d + restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : + rm -f ${TEMPFILE} fi %changelog * Tue Jan 01 2013 Team Libreswan <team@libreswan.org> - IPSEBASEVERSION-1 diff --git a/packaging/fedora/18/libreswan.spec b/packaging/fedora/18/libreswan.spec index 52704a9a7..9997e0609 100644 --- a/packaging/fedora/18/libreswan.spec +++ b/packaging/fedora/18/libreswan.spec @@ -97,11 +97,11 @@ Libreswan is based on Openswan-2.6.38 which in turn is based on FreeS/WAN-2.04 INITSYSTEM=systemd \ USE_NM=%{USE_NM} \ USE_XAUTHPAM=true \ %if %{USE_FIPSCHECK} USE_FIPSCHECK="%{USE_FIPSCHECK}" \ - FIPSPRODUCTCHECK=/etc/system-fips \ + FIPSPRODUCTCHECK=%{_sysconfdir}/system-fips \ %endif USE_LIBCAP_NG="%{USE_LIBCAP_NG}" \ USE_LABELED_IPSEC="%{USE_LABELED_IPSEC}" \ %if %{USE_CRL_FETCHING} USE_LDAP=true \ @@ -151,12 +151,12 @@ install -d %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_libdir}/fipscheck install -d %{buildroot}%{_sysconfdir}/prelink.conf.d/ install -m644 packaging/fedora/libreswan-prelink.conf %{buildroot}%{_sysconfdir}/prelink.conf.d/libreswan-fips.conf %endif -echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets -rm -fr %{buildroot}/etc/rc.d/rc* +echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets +rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc* %files %doc BUGS CHANGES COPYING CREDITS README LICENSE %doc docs/*.* %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf @@ -188,15 +188,17 @@ rm -fr %{buildroot}/etc/rc.d/rc* %postun %systemd_postun_with_restart ipsec.service %post %systemd_post ipsec.service -if [ ! -f /etc/ipsec.d/cert8.db ] ; then -echo > /var/tmp/libreswan-nss-pwd -certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d -restorecon /etc/ipsec.d/*db 2>/dev/null || : -rm /var/tmp/libreswan-nss-pwd +if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then + TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) + [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ + echo > ${TEMPFILE} + certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d + restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : + rm -f ${TEMPFILE} fi %changelog * Tue Jan 01 2013 Team Libreswan <team@libreswan.org> - IPSECBASEVERSION-1 - Automated build from release tar ball diff --git a/packaging/fedora/19/libreswan.spec b/packaging/fedora/19/libreswan.spec index 52704a9a7..b4711f237 100644 --- a/packaging/fedora/19/libreswan.spec +++ b/packaging/fedora/19/libreswan.spec @@ -97,11 +97,11 @@ Libreswan is based on Openswan-2.6.38 which in turn is based on FreeS/WAN-2.04 INITSYSTEM=systemd \ USE_NM=%{USE_NM} \ USE_XAUTHPAM=true \ %if %{USE_FIPSCHECK} USE_FIPSCHECK="%{USE_FIPSCHECK}" \ - FIPSPRODUCTCHECK=/etc/system-fips \ + FIPSPRODUCTCHECK=%{_syconfdir}/system-fips \ %endif USE_LIBCAP_NG="%{USE_LIBCAP_NG}" \ USE_LABELED_IPSEC="%{USE_LABELED_IPSEC}" \ %if %{USE_CRL_FETCHING} USE_LDAP=true \ @@ -151,12 +151,12 @@ install -d %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_libdir}/fipscheck install -d %{buildroot}%{_sysconfdir}/prelink.conf.d/ install -m644 packaging/fedora/libreswan-prelink.conf %{buildroot}%{_sysconfdir}/prelink.conf.d/libreswan-fips.conf %endif -echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets -rm -fr %{buildroot}/etc/rc.d/rc* +echo "include %{_syconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets +rm -fr %{buildroot}%{_syconfdir}/rc.d/rc* %files %doc BUGS CHANGES COPYING CREDITS README LICENSE %doc docs/*.* %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf @@ -188,15 +188,17 @@ rm -fr %{buildroot}/etc/rc.d/rc* %postun %systemd_postun_with_restart ipsec.service %post %systemd_post ipsec.service -if [ ! -f /etc/ipsec.d/cert8.db ] ; then -echo > /var/tmp/libreswan-nss-pwd -certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d -restorecon /etc/ipsec.d/*db 2>/dev/null || : -rm /var/tmp/libreswan-nss-pwd +if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then + TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) + [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ + echo > ${TEMPFILE} + certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d + restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : + rm -f ${TEMPFILE} fi %changelog * Tue Jan 01 2013 Team Libreswan <team@libreswan.org> - IPSECBASEVERSION-1 - Automated build from release tar ball diff --git a/packaging/rhel/5/libreswan.spec b/packaging/rhel/5/libreswan.spec index caee3631b..3066e88d5 100644 --- a/packaging/rhel/5/libreswan.spec +++ b/packaging/rhel/5/libreswan.spec @@ -189,15 +189,17 @@ if [ $1 -ge 1 ] ; then /sbin/service ipsec condrestart 2>&1 >/dev/null || : fi %post /sbin/chkconfig --add ipsec || : -if [ ! -f /etc/ipsec.d/cert8.db ] ; then -echo > /var/tmp/libreswan-nss-pwd -certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d -restorecon /etc/ipsec.d/*db 2>/dev/null || : -rm /var/tmp/libreswan-nss-pwd +if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then + TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) + [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ + echo > ${TEMPFILE} + certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d + restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : + rm -f ${TEMPFILE} fi %changelog * Tue Jan 01 2013 Team Libreswan <team@libreswan.org> - 3.1-1 - Automated build from release tar ball diff --git a/packaging/rhel/6/libreswan.spec b/packaging/rhel/6/libreswan.spec index a8211f413..4be310da7 100644 --- a/packaging/rhel/6/libreswan.spec +++ b/packaging/rhel/6/libreswan.spec @@ -94,11 +94,11 @@ Libreswan is based on Openswan-2.6.38 which in turn is based on FreeS/WAN-2.04 INITSYSTEM=sysvinit \ USERLINK="-g -pie -Wl,-z,relro,-z,now %{?efence}" \ USE_NM=%{USE_NM} \ USE_XAUTHPAM=true \ USE_FIPSCHECK=%{USE_FIPSCHECK} \ - FIPSPRODUCTCHECK="/etc/system-fips" \ + FIPSPRODUCTCHECK="%{_sysconfdir}/system-fips" \ USE_LIBCAP_NG=%{USE_LIBCAP_NG} \ USE_LABELED_IPSEC=%{USE_LABELED_IPSEC} \ USE_LDAP=%{USE_CRL_FETCHING} \ USE_LIBCURL=%{USE_CRL_FETCHING} \ USE_DNSSEC=%{USE_DNSSEC} \ @@ -141,12 +141,12 @@ install -d -m 0755 %{buildroot}%{_localstatedir}/run/pluto install -d -m 0700 %{buildroot}%{_localstatedir}/log/pluto/peer install -d %{buildroot}%{_sbindir} # replace with rhel[56] specific version install -m 0755 initsystems/sysvinit/init.rhel %{buildroot}%{_initrddir}/ipsec -echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets -rm -fr %{buildroot}/etc/rc.d/rc* +echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets +rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc* %files %doc BUGS CHANGES COPYING CREDITS README LICENSE %doc docs/*.* %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf @@ -183,15 +183,17 @@ fi %post /sbin/chkconfig --add ipsec || : %if %{USE_FIPSCHECK} prelink -u %{_libexecdir}/ipsec/* 2>/dev/null || : %endif -if [ ! -f /etc/ipsec.d/cert8.db ] ; then -echo > /var/tmp/libreswan-nss-pwd -certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d -restorecon /etc/ipsec.d/*db 2>/dev/null || : -rm /var/tmp/libreswan-nss-pwd +if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then + TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) + [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ + echo > ${TEMPFILE} + certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d + restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : + rm -f ${TEMPFILE} fi %changelog * Tue Jan 01 2013 Team Libreswan <team@libreswan.org> - IPSECBASEVERSION-1 - Automated build from release tar ball diff --git a/packaging/rhel/7/libreswan.spec b/packaging/rhel/7/libreswan.spec index b4f4e582a..33839e4fb 100644 --- a/packaging/rhel/7/libreswan.spec +++ b/packaging/rhel/7/libreswan.spec @@ -188,15 +188,17 @@ rm -fr %{buildroot}/etc/rc.d/rc* %post %systemd_post ipsec.service %if %{USE_FIPSCHECK} prelink -u %{_libexecdir}/ipsec/* 2>/dev/null || : %endif -if [ ! -f /etc/ipsec.d/cert8.db ] ; then -echo > /var/tmp/libreswan-nss-pwd -certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d -restorecon /etc/ipsec.d/*db 2>/dev/null || : -rm /var/tmp/libreswan-nss-pwd +if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then + TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) + [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ + echo > ${TEMPFILE} + certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d + restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : + rm -f ${TEMPFILE} fi %changelog * Tue Jan 01 2013 Team Libreswan <team@libreswan.org> - IPSECBASEVERSION-1 - Automated build from release tar ball
echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}/etc/rc.d/rc* if [ ! -f /etc/ipsec.d/cert8.db ] ; then echo > /var/tmp/libreswan-nss-pwd certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d restorecon /etc/ipsec.d/*db 2>/dev/null || : rm /var/tmp/libreswan-nss-pwd FIPSPRODUCTCHECK=/etc/system-fips \ echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}/etc/rc.d/rc* if [ ! -f /etc/ipsec.d/cert8.db ] ; then echo > /var/tmp/libreswan-nss-pwd certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d restorecon /etc/ipsec.d/*db 2>/dev/null || : rm /var/tmp/libreswan-nss-pwd FIPSPRODUCTCHECK=/etc/system-fips \ echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}/etc/rc.d/rc* if [ ! -f /etc/ipsec.d/cert8.db ] ; then echo > /var/tmp/libreswan-nss-pwd certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d restorecon /etc/ipsec.d/*db 2>/dev/null || : rm /var/tmp/libreswan-nss-pwd if [ ! -f /etc/ipsec.d/cert8.db ] ; then echo > /var/tmp/libreswan-nss-pwd certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d restorecon /etc/ipsec.d/*db 2>/dev/null || : rm /var/tmp/libreswan-nss-pwd FIPSPRODUCTCHECK="/etc/system-fips" \ echo "include /etc/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}/etc/rc.d/rc* if [ ! -f /etc/ipsec.d/cert8.db ] ; then echo > /var/tmp/libreswan-nss-pwd certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d restorecon /etc/ipsec.d/*db 2>/dev/null || : rm /var/tmp/libreswan-nss-pwd if [ ! -f /etc/ipsec.d/cert8.db ] ; then echo > /var/tmp/libreswan-nss-pwd certutil -N -f /var/tmp/libreswan-nss-pwd -d /etc/ipsec.d restorecon /etc/ipsec.d/*db 2>/dev/null || : rm /var/tmp/libreswan-nss-pwd
echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc* if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ echo > ${TEMPFILE} certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : rm -f ${TEMPFILE} FIPSPRODUCTCHECK=%{_sysconfdir}/system-fips \ echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc* if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ echo > ${TEMPFILE} certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : rm -f ${TEMPFILE} FIPSPRODUCTCHECK=%{_syconfdir}/system-fips \ echo "include %{_syconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}%{_syconfdir}/rc.d/rc* if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ echo > ${TEMPFILE} certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : rm -f ${TEMPFILE} if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ echo > ${TEMPFILE} certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : rm -f ${TEMPFILE} FIPSPRODUCTCHECK="%{_sysconfdir}/system-fips" \ echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc* if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ echo > ${TEMPFILE} certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : rm -f ${TEMPFILE} if [ ! -f %{_sysconfdir}/ipsec.d/cert8.db ] ; then TEMPFILE=$(/bin/mktemp %{_sysconfdir}/ipsec.d/nsspw.XXXXXXX) [ $? -gt 0 ] && TEMPFILE=%{_sysconfdir}/ipsec.d/nsspw.$$ echo > ${TEMPFILE} certutil -N -f ${TEMPFILE} -d %{_sysconfdir}/ipsec.d restorecon %{_sysconfdir}/ipsec.d/*db 2>/dev/null || : rm -f ${TEMPFILE}
[]
CVE-2013-7294
2899351224fe2940aec37d7656e1e392c0fe07f0
https://github.com/libreswan/libreswan
[{'lang': 'en', 'value': 'The ikev2parent_inI1outR1 function in pluto/ikev2_parent.c in libreswan before 3.7 allows remote attackers to cause a denial of service (restart) via an IKEv2 I1 notification without a KE payload.'}]
5
null
2014-01-16T05:05Z
MEDIUM
CWE-20
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
SECURITY: Properly handle IKEv2 I1 notification packet without KE payload
2013-11-26 19:46:49 -0500
289935122
16,875
2
[ "programs/pluto/ikev2_parent.c" ]
C
{"programs/pluto/ikev2_parent.c": {"lines_added": 18, "lines_deleted": 13}}
diff --git a/programs/pluto/ikev2_parent.c b/programs/pluto/ikev2_parent.c index 72526ba03..ce67cc3c0 100644 --- a/programs/pluto/ikev2_parent.c +++ b/programs/pluto/ikev2_parent.c @@ -304,12 +304,10 @@ static void ikev2_parent_outI1_continue(struct pluto_crypto_req_cont *pcrc, if (ke->md) release_md(ke->md); } reset_cur_state(); reset_globals(); - - passert(GLOBALS_ARE_RESET()); } /* * unpack the calculate KE value, store it in state. * used by IKEv2: parent, child (PFS) @@ -727,22 +725,35 @@ stf_status ikev2parent_inI1outR1(struct msg_digest *md) * that might permit this group. If we think we are being DOS'ed * then we should demand a cookie. */ { struct ikev2_ke *ke; + char fromname[ADDRTOT_BUF]; + addrtot(&md->sender, 0, fromname, ADDRTOT_BUF); + + if (!md->chain[ISAKMP_NEXT_v2KE]) { + /* is this a notify? If so, log it */ + if(md->chain[ISAKMP_NEXT_v2N]) { + libreswan_log("Received Notify(%d): %s", + md->chain[ISAKMP_NEXT_v2N]->payload.v2n.isan_type, + enum_name(&ikev2_notify_names, + md->chain[ISAKMP_NEXT_v2N]->payload.v2n.isan_type)); + } + libreswan_log( + "rejecting I1 from %s:%u, no KE payload present", + fromname, md->sender_port); + return STF_FAIL + v2N_INVALID_KE_PAYLOAD; + } ke = &md->chain[ISAKMP_NEXT_v2KE]->payload.v2ke; st->st_oakley.group = lookup_group(ke->isak_group); if (st->st_oakley.group == NULL) { - char fromname[ADDRTOT_BUF]; - - addrtot(&md->sender, 0, fromname, ADDRTOT_BUF); libreswan_log( "rejecting I1 from %s:%u, invalid DH group=%u", fromname, md->sender_port, ke->isak_group); - return v2N_INVALID_KE_PAYLOAD; + return STF_FAIL + v2N_INVALID_KE_PAYLOAD; } } /* now. we need to go calculate the nonce, and the KE */ { @@ -817,12 +828,10 @@ static void ikev2_parent_inI1outR1_continue(struct pluto_crypto_req_cont *pcrc, complete_v2_state_transition(&ke->md, e); if (ke->md) release_md(ke->md); } reset_globals(); - - passert(GLOBALS_ARE_RESET()); } static stf_status ikev2_parent_inI1outR1_tail( struct pluto_crypto_req_cont *pcrc, struct pluto_crypto_req *r) @@ -1143,12 +1152,10 @@ static void ikev2_parent_inR1outI2_continue(struct pluto_crypto_req_cont *pcrc, complete_v2_state_transition(&dh->md, e); if (dh->md) release_md(dh->md); } reset_globals(); - - passert(GLOBALS_ARE_RESET()); } static void ikev2_padup_pre_encrypt(struct msg_digest *md, pb_stream *e_pbs_cipher) { @@ -1712,11 +1719,11 @@ stf_status ikev2parent_inI2outR2(struct msg_digest *md) "ikev2 parent inI2outR2: calculating g^{xy} in order to decrypt I2")); /* verify that there is in fact an encrypted payload */ if (!md->chain[ISAKMP_NEXT_v2E]) { libreswan_log("R2 state should receive an encrypted payload"); - reset_globals(); + reset_globals(); /* XXX suspicious - why was this deemed neccessary? */ return STF_FATAL; } /* now. we need to go calculate the g^xy */ { @@ -1792,12 +1799,10 @@ static void ikev2_parent_inI2outR2_continue(struct pluto_crypto_req_cont *pcrc, complete_v2_state_transition(&dh->md, e); if (dh->md) release_md(dh->md); } reset_globals(); - - passert(GLOBALS_ARE_RESET()); } static stf_status ikev2_parent_inI2outR2_tail( struct pluto_crypto_req_cont *pcrc, struct pluto_crypto_req *r)
passert(GLOBALS_ARE_RESET()); char fromname[ADDRTOT_BUF]; addrtot(&md->sender, 0, fromname, ADDRTOT_BUF); return v2N_INVALID_KE_PAYLOAD; passert(GLOBALS_ARE_RESET()); passert(GLOBALS_ARE_RESET()); reset_globals(); passert(GLOBALS_ARE_RESET());
char fromname[ADDRTOT_BUF]; addrtot(&md->sender, 0, fromname, ADDRTOT_BUF); if (!md->chain[ISAKMP_NEXT_v2KE]) { /* is this a notify? If so, log it */ if(md->chain[ISAKMP_NEXT_v2N]) { libreswan_log("Received Notify(%d): %s", md->chain[ISAKMP_NEXT_v2N]->payload.v2n.isan_type, enum_name(&ikev2_notify_names, md->chain[ISAKMP_NEXT_v2N]->payload.v2n.isan_type)); } libreswan_log( "rejecting I1 from %s:%u, no KE payload present", fromname, md->sender_port); return STF_FAIL + v2N_INVALID_KE_PAYLOAD; } return STF_FAIL + v2N_INVALID_KE_PAYLOAD; reset_globals(); /* XXX suspicious - why was this deemed neccessary? */
[]